android-activity
Finishing an Activity from a Broadcast Receiver
I have an Activity that I display as modeless when the phone rings (over the phone app). I would like to finish the Activity when either of the following events occur. The first is if I touch anywhere[详细]
2023-04-07 14:32 分类:问答startActivity with Action and Uri crash the app
I want to open a new activity and pass it a URI of local html file(which i开发者_运维知识库s in the assets of the project):[详细]
2023-04-07 13:25 分类:问答How to prevent an application from being uninstalled?
I\'m developing an application for parents to watch out for their children. So this appl开发者_运维知识库ication cannot be removed by the child. I need to know how to make it uninstallable or the user[详细]
2023-04-07 12:20 分类:问答Error integrating simple GoogleMaps app with core app
I\'m doing my GPS app. Standalone app with GoogleMaps works smoothly (map intent is easy to invoke). I tried integrating it my core app (which has several other intents) and I\'m having problem launch[详细]
2023-04-07 10:31 分类:问答How to add another layout to display in OnActivityResult()?
I have an app that has a user take a picture and have it uploaded to a website. I have this code right now:[详细]
2023-04-07 05:08 分类:问答How to change the screen orientation before layout / drawing happens?
I want to set the orientation of a subactivity when it starts. The orientation has to be set in run-time and not in XML. So I put the code for it in onCreate(). I also have[详细]
2023-04-07 04:45 分类:问答Reusing the main activity
I have a main activity from where I will be switching from one activity to another..So i don\'t want to re initialize every time..After the first time[详细]
2023-04-07 03:23 分类:问答Android's Activity.runOnUiThread is not static, so how can i use it?
For example, if I have a thread doing expensive stuff, and from that thread I want to fire runOnUiThread in the Main (activity) class. Obviously I shouldn\'t make an instance of my activity class (Mai[详细]
2023-04-06 23:45 分类:问答Java generics in inheritance in Android
My intention is to set create a class with this type of inheritance: public class BaseActivity<T> extends <T extends Activity>开发者_开发技巧[详细]
2023-04-06 23:19 分类:问答How to implement a dialog for different activities?
I want to show the same dialog in different activities. I tried to make a BaseActivitiy. The Activities extends my BaseActivity. That worked so far, but now I want to update the Activity which shows t[详细]
2023-04-06 21:49 分类:问答