Interface to global information about an application environment
I've googled this question a lot and have found many differing recommendations on when to use getBaseContext, getApplicationContext or an …
android android-contextI'm trying to start an activity from a class that extends BroadcastReceiver. public void onReceive(Context context, Intent intent) { the …
android android-intent android-contextI have a class that needs to obtain a reference to it's application's AssetManager. This class does not extend any …
android android-contextI'll try really hard to turn this into one comprehensive question: I'm writing a method to get a String that …
android android-activity gps location android-contextIn my ongoing learning process (dialog boxes this time), I discovered that this works: AlertDialog.Builder builder = new AlertDialog.Builder(…
android android-activity android-alertdialog android-contextI am very confused with the usage of all these that where should we use them.
android android-activity android-contextI have TextView for showing time. I want to use Android's DataBinding plugin. For formatting time I am using DateUtils.…
android data-binding view android-contextI have several classes in my application. Some are Activities, Services and Pure java classes. I know i can display …
android toast android-contextI've read that it is a mistake and a source of memory leaks in Android application to keep a long-lived …
android android-contextI am trying to handle exceptions in my application. I am trying to log the exception, then use Toast to …
android android-activity android-context