Hi i basically just started building apps for android, and i have been following some tutorials just to get started, but my apps won’t run in 4.2. I get the message “Unfrotunatley, your app has closed…”. So i created a android 2.2 emulator, and ran it fine, but in eclipse, it just shows “x” next to the 2.2 emulator, yet the 4.2 emulator displays perfectly.
How do i get the 2.2 emulator to work on eclipse, i have the SDK and all that, it just won’t give me the option to run it. It works fine when not launching from eclipse.
Also, i know this could be classed as another question, but my program has 0 errors, and is almost identical to the tutorials that i’ve been following. I have tried to debug it and it says “42 frames skipped. Perhaps your program is running to much processes”, so i went through the program, and nothing is actually happening, unless i hit the button.
logcat errors:
01-22 04:55:12.697: E/ActivityThread(740): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cf1f08 that was originally bound here
01-22 04:55:12.697: E/ActivityThread(740): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cf1f08 that was originally bound here
01-22 04:55:12.697: E/ActivityThread(740): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
01-22 04:55:12.697: E/ActivityThread(740): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
01-22 04:55:12.697: E/ActivityThread(740): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
01-22 04:55:12.697: E/ActivityThread(740): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
01-22 04:55:12.697: E/ActivityThread(740): at android.os.AsyncTask$2.call(AsyncTask.java:287)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
01-22 04:55:12.697: E/ActivityThread(740): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
01-22 04:55:12.697: E/ActivityThread(740): at java.lang.Thread.run(Thread.java:856)
Im also getting this frequently:
01-22 05:00:10.832: W/Trace(740): Unexpected value from nativeGetEnabledTags: 0
Try this way
select your project selected, go to the Top “Run” Menu. Open “Run Configurations” and select your target virtual device android2.2 avd. Click apply, and then run the project.
follow the steps
Right click the project -> select run as-> run configuration and the same virtual device
check this link
Unexpected value from nativeGetEnabledTags: 0