android-context
Toast fails to show when within a AsyncTask
I have a simple application which sends an image (Base64 encoded) to a server, the server gets this data fine because the PHP script sends me an email with the Base64 Data attached. However, after the[详细]
2023-04-09 07:17 分类:问答Cannot get context to launch intent
I\'ve made a separate class to launch and intent as the class I would like to launch the intent from is a thread and does not inherit from activity and would not launch startActivity. Every time I lau[详细]
2023-04-09 03:30 分类:问答Android SharedPreferences design model
I have these two classes. SettingsManager extends another class and stores the data and also gets the context from the Activity as parameter. However this doesn\'t seem to work and I get empty EditTex[详细]
2023-04-07 16:55 分类:问答What is the 'context' that is being passed into the onUpdate, onEnabled, onDeleted, and onDisabled methods of the AppWidgetProvider?
Is it the ApplicationContext or the ActivityConte开发者_StackOverflow中文版xt of my app?Does it make a difference which one it is?[详细]
2023-04-07 12:08 分类:问答Determine If Current View is a Specific Activity
I am wanting to set an intent on a logo in the titleBar of my application to go back to the main entry screen when clicked unless of course we are already at that screen. How do I go开发者_开发百科 ab[详细]
2023-04-05 19:08 分类:问答Accessing an activity instance from a BroadcastReceiver
Taking the sample code from http://developer.android.com/resources/samples/SipDemo/src/com/example/android/sip/IncomingCallReceiver.html:[详细]
2023-04-05 05:46 分类:问答Android Context from another class
What I\'m trying to do is the following... FileInputStream fIn; try { fIn = openFileInput(\"samplefile.txt\");[详细]
2023-04-04 03:15 分类:问答getResources / OpenRawSource causing runtime exception
I want to read from a text file. In a Java app, this BufferedReader f = new BufferedReader(new FileReader(filename));[详细]
2023-04-02 18:54 分类:问答When to call activity context OR application context?
There has been a lot of posting about what these two contexts are.. But I\'m开发者_JS百科 still not getting it quite right[详细]
2023-04-02 02:13 分类:问答possible to share strings.xml between apps with the same sharedUserId?
I know that it is possible to share SharedPreferences (using the following) when the two apps have the same sharedUserId:[详细]
2023-03-31 09:01 分类:问答