Interface to global information about an application environment
In my android project, I have ImageAdapter class in which I pass app context for some further needs. public class …
java android singleton baseadapter android-contextI'm working on an Android application that has several Activities. In it I have a class with several static methods. …
android android-contextI have a Activity class from where I am passing some information to a helper class(Non-activity) class. In the …
java android android-contextI created a class to retrieve comments from a JSON encoding from a PHP file. This class, extends from AsyncTask: …
java android android-fragments android-asynctask android-contextWhat is difference between this and getContext(), when I say this I mean this within an Activity.
android this android-contextI allways get this java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' …
android nullpointerexception android-volley android-contextI basically want to make an intent and pass it to a service from my BroadcastReceiver's onReceive(). So far I …
android android-intent service broadcastreceiver android-contextI am using Dagger 2 and have it working however I now need access to the Android Application Context. Its not …
android dependency-injection android-context dagger-2Are Activity and Context the same, or are there differences? When should I have a method pass an Activity, and …
android android-activity android-contextI'm using Context to access system level services like WifiManager and BluetoothManager. How to mock this getApplicationContext() using Mockito?
android bluetooth mockito android-wifi android-context