大约有 40,300 项符合查询结果(耗时:0.0313秒) [XML]
Dialog throwing "Unable to add window — token null is not for an application” with getApplication()
My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use:
28...
Difference between Activity and FragmentActivity
I was working on fragments and came across two things Activity and FragmentActivity which are used several times. I want to know that is there any difference between these two, because when I changed Activity with FragmentActivity , it had no effect on the app.
...
How do I get the SharedPreferences from a PreferenceActivity in Android?
I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks like this:
...
AI2 Keep Awake
...rmed only occasionally, it is not necessary for the CPU to be constantly active. Instead, an alarm can be used (see UrsAI2Alarm ). Motivation For some projects it is necessary to prevent the associated app from being deactivated by the operating system. A typical example would be that sen...
How to fix 'android.os.NetworkOnMainThreadException'?
...
Active
Oldest
Votes
1
2
Next
...
How can I access getSupportFragmentManager() in a fragment?
I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the support fragment manager to access it.
...
Further understanding setRetainInstance(true)
...
Active
Oldest
Votes
...
OnCreateOptionsMenu() not called in Fragment
I have an app which got one activity with 2 fragments placed horizontally.
8 Answers
8...
