Is there a way to get context without going through the Android onCreate method?
android
If it is a method commonly used in two activities, how about making it into Class
separately?
ex)
public void method(Context context){
// // Todo: code
}
In this way, the method is made into a separate Class
and delivered Context
...!
http://stackoverflow.com/a/38931824/1025379 There's a way like this. I'm using this method, too.
© 2024 OneMinuteCode. All rights reserved.