Warning: Activity not started, its current task has been brought to the front [duplicate]

南楼画角 提交于 2019-12-03 15:53:49

If you edit one character (delete a character and replace it) and then launch from eclipse, it will re-install the app, and you won't get this message.

If the app is already running on the emulator, and you haven't changed anything, you will see that message. Just restart the app on the emulator, ie close out the app then restart it. When you upload an app to the emulator, it loads it like it would on a real phone with an icon and all. you can even put that icon on the emulators home page.

It has nothing to do with your manifest file. Whenever your compiled code will change, the new version will install over the previous version. Otherwise, the older app will run.

For me it works with this little trick:

Create a new Builder:

Project -> Properties -> Builders -> New -> Program
Name: Touch Manifest
Location: /usr/bin/touch
Arguments: ${project_loc:MyProjectName}/AndroidManifest.xml

Then move it up to the top of the list.

Each time you hit run, it will touch the manifest file and cause a reload of the package.

Enjoy!

edit: changed arguments, ${resource_loc} only works if the project is selected.

If you get this warning it means you haven't changed any line of your code and this instance of your project is running on emulator or on your device. So if you want to run that again you can:

1- Make some changes in your code and then compile it again.

2- Or you can easily close the app and then relaunch it with eclipse or android studio or ...

If the problem still persist try to uninstall the app and run it again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!