Need help!
I don’t understand why the onCreate method is not always called (it not activity).
If the program is stopped or forcibly stopped from the task manager, then run again in logcat I see that the OnCrete method is called normally.
But if you press the back button (or stop) and then run again, the creative method is no longer called. But at the same time, the creative method of the fragment is called normally, but not in the main class!
How can one be forced, or is there some way, to make oncrete always called up?
public class MyApplication extends MultiDexApplication
{
...
...
@Override
public void onCreate()
{
super.onCreate();
Log.v("CWF","----------------- BEGIN -------------------");
...
...
}
@Override
public void onTerminate()
{
}
@Override
public void onLowMemory()
{
super.onLowMemory();
}
@Override
public void onConfigurationChanged(Configuration newConfig)
{
}
my manifest
<application
android:name="com.sample.test.MyApplication"
android:icon="@mipmap/icon"
android:label="@string/app_name"
android:largeHeap="true"
android:restoreAnyVersion="true"
android:usesCleartextTraffic="true">