android-context
Method undefined for type SmsReciever - context
I am new to Android development. I am developing an app that upon receiving an SMS message with a unique string of text, the GPS is enabled and starts tracking the location of the phone. The issue I\'[详细]
2023-01-25 12:54 分类:问答How to return AlertDialogs from a generic class in Android?
Within a public class that doesn\'t extend any other class I\'m doing some evaluation stuff and I would like to return a Dialog if something needs to be communicated to the user.[详细]
2023-01-24 23:53 分类:问答How to use getSystemService in a non-activity class?
I am building an application which triggers an alarm via AlarmManager. I would like to be able to call the Alarm via it\'s own non-activity class, but since I am not extending Activity, I don\'t appe[详细]
2023-01-24 21:29 分类:问答Does the Android Application Context ever get destroyed?
I use my Android app\'s application Context as a storage area for \"current state\" information for my app.[详细]
2023-01-24 00:39 分类:问答Android - Getting context from a Broadcast receiver onReceive() to send to
I basically want to make an intent and pass it to a service from my BroadcastReceiver\'s onReceive().[详细]
2023-01-23 16:43 分类:问答Calling startActivity() from outside of an Activity context
I have implemented a ListView in my Android application.I bind to this ListView using a custom subclass of the ArrayAdapter class.Inside the overridden ArrayAdapter.getView(...)开发者_运维知识库 metho[详细]
2023-01-19 22:08 分类:问答Cannot figure out the context when launching an Intent from within a thread completion method
I am trying to launch a new intent after I have loaded data.I am using a handler that calls a method when the thread is complete and then in this method I am trying to launch a new Intent but my app i[详细]
2023-01-18 10:16 分类:问答Access Android activity stack from asynchronous thread?
There are a ton of activity stack related questions on StackOverflow, but I didn\'t really see any that answered the question I have.I\'m working on an online game that (for now) has 3 different activ[详细]
2023-01-17 21:28 分类:问答Extending Application
I\'d like to extend Application in my Android app.I\'ve done this such that I\'ve created an extended Application object called MyApplication and added it to the manifest.[详细]
2023-01-17 03:10 分类:问答Mimic Context.getExternalFilesDir() prior to Android API Level 8?
Android API level 8 introduced the Context.getExternalFilesDir() method, providing a File object reference to an SD card path specific to your app.I am wondering how to mimic this as low as API level[详细]
2023-01-17 02:58 分类:问答