android-context
Need to connect over a specific APN. But dont want to lose connectivity for other applications
The current version of android supports multiple APNs but does not support multiple active PDP contexts. Why had Android choose not to go down this route? And is it planned in future releases of the a[详细]
2023-03-12 06:27 分类:问答Context load from an APK file in Android
I am building a component-based application for Android. In short, I would like to load an APK file during runtime and execute code from it.[详细]
2023-03-11 22:01 分类:问答Android code starting from ContentProvider class rather than Main class
Yesterday I posted a similar question on why my code started on my content provider class rather than the main class and I\'ve gotten some feedback which I\'ve updated but the problem still remains wh[详细]
2023-03-11 00:30 分类:问答Creating independent "Loading" dialog
I would like to create a LoadingDialog class that could be used by ANY activity. I came up with code like this:[详细]
2023-03-10 09:46 分类:问答getActivity() returns null in Fragment function
I have a fragment (F1) with a public method like this public void asd() { if (getActivity() == null) { Log.d("yes","it is null");[详细]
2023-03-09 20:14 分类:问答Launching an activity from inside a SurfaceView
I\'m trying to start an Activity (StartGame) from inside of a SurfaceView once I touch in a certain spot. This code is inside the OnTouchEvent[详细]
2023-03-09 08:21 分类:问答getting the context in a class that implements Runnable
I have an app in android that in a different thread from the UI(which implements Runnable) I receive some data(GPS data in the form of latitude and longitude) and from this data I[详细]
2023-03-08 21:22 分类:问答implementing Geocoder
I\'m trying to implement Geocoder in a class that implements Runnable and I get er开发者_JAVA技巧ror at this line:[详细]
2023-03-08 20:13 分类:问答startActivityForResult Null pointer exception. Context?
At the risk of winning StackOverloads \"Dumbass of the Year Award\" I\'m still having problems with this (sigh). My other posts on this have been:[详细]
2023-03-08 09:10 分类:问答Android context from tab activity
I have a helper class that I need context so I can access the SharedPrefences. Other posts recommend passing in the application context on instantiation of the helper class. So I made that change, it[详细]
2023-03-07 12:28 分类:问答