Recently I met a strange problem,I start a activity from a service,but if I follow the steps :
after above steps,the activity starts more slowly than normal way.Because I add a log in Activity's onCreate method. normal way is same as above,except pressing home key. Please help me solve it.Thanks. | ||||
You can run the service and activity in different processes. Use the process attribute for service in AndroidManifest.xml Here's a snippit from the docs:
| |||
If you started from the IDE, hit back, and then tapped the launcher icon, you will be starting another instance of your app. This might help explain things. | |||
default
.
stackoverflow.comm
No comments:
Post a Comment