python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to execute the same function in the onCreate method of all activities?
What is the problem?
I want to add this custom window callback in each activity already implemented in the app, currently I need to manually modify the code of the onCreate method of each activity or ...

Davi Sousa
Votes: 0
Answers: 2
Is onDestroy() also indicate to the Garbage collector that the Activity object should be collected?
I'm trying to understand, if a class that extends Activity has attributes, and while working with the application those attributes are being set (values are different from null), if the Activity is be...
Eitanos30
Votes: 0
Answers: 1
Open a new Activity with chosen Fragment on click
this is what I want to achieve:
I'm in Activity A with couple options to choose from (buttons)
after clicking any of them, I want to be taken to Activity B
Activity B should contain a constant part (...
Lucyna Min
Votes: 0
Answers: 1
change activitiy from fragment
I want to change activity(MainActivity -> MapActivity) in fragment(LookFragment) button.
LookFragment is in MainActivity FrameLayout.
This is LookFragment.kt
'''
class LookFragment : Fragment() {
l...
Jungpago
Votes: 0
Answers: 0