I am trying from 2 days but cannot understand what is exactly happening.When i tried to install apk via USB it work fine But when Install from Gmail App Showing Package Could Not Parse.Please Help I am Stuck.I am using Google Cloud Messaging and jtds JDBC Libraries. Heres my LOG CAT
06-23 03:10:46.049: D/AndroidRuntime(682): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
<br/>
06-23 03:10:46.049: D/AndroidRuntime(682): CheckJNI is ON<br/>
06-23 03:10:46.401: D/AndroidRuntime(682): --- registering native functions ---<br/>
06-23 03:10:47.959: D/dalvikvm(250): GC_EXPLICIT freed 164 objects / 8184 bytes in 165ms<br/>
06-23 03:10:48.929: D/PackageParser(73): Scanning package: /data/app/vmdl12765.tmp<br/>
06-23 03:10:52.439: D/dalvikvm(73): GC_FOR_MALLOC freed 15105 objects / 840432 bytes in 416ms<br/>
06-23 03:10:54.299: I/PackageManager(73): Removing non-system package:com.android.msfm<br/>
06-23 03:10:54.299: I/ActivityManager(73): Force stopping package com.android.msfm uid=10040<br/>
06-23 03:10:54.329: I/Process(73): Sending signal. PID: 541 SIG: 9<br/>
06-23 03:10:54.419: I/WindowManager(73): WIN DEATH: Window{451f33e0 com.android.msfm/com.android.msfm.LoginActivity paused=false}<br/>
06-23 03:10:54.509: I/UsageStats(73): Unexpected resume of com.android.launcher while already resumed in com.android.msfm<br/>
06-23 03:10:54.884: W/InputManagerService(73): Got RemoteException sending setActive(false) notification to pid 541 uid 10040<br/>
06-23 03:10:56.690: D/PackageManager(73): Scanning package com.android.msfm<br/>
06-23 03:10:56.769: I/PackageManager(73): Package com.android.msfm codePath changed from /data/app/com.android.msfm-2.apk to /data/app/com.android.msfm-1.apk; Retaining data and using new<br/>
06-23 03:10:56.789: I/PackageManager(73): /data/app/com.android.msfm-1.apk changed; unpacking<br/>
06-23 03:10:57.018: D/installd(35): DexInv: --- BEGIN '/data/app/com.android.msfm-1.apk' ---<br/>
06-23 03:11:05.680: D/dalvikvm(693): DexOpt: load 1524ms, verify 4671ms, opt 288ms<br/>
06-23 03:11:05.919: D/installd(35): DexInv: --- END '/data/app/com.android.msfm-1.apk' (success) ---<br/>
06-23 03:11:05.933: W/PackageManager(73): Code path for pkg : com.android.msfm changing from /data/app/com.android.msfm-2.apk to /data/app/com.android.msfm-1.apk<br/>
06-23 03:11:05.933: W/PackageManager(73): Resource path for pkg : com.android.msfm changing from /data/app/com.android.msfm-2.apk to /data/app/com.android.msfm-1.apk<br/>
06-23 03:11:05.940: D/PackageManager(73): Services: com.android.msfm.GCMIntentService<br/>
06-23 03:11:05.940: D/PackageManager(73): Receivers: com.android.msfm.AlarmReceiver com.google.android.gcm.GCMBroadcastReceiver<br/>
06-23 03:11:05.940: D/PackageManager(73): Activities: com.android.msfm.SplashActivity com.android.msfm.LoginActivity com.android.msfm.DashBoard com.android.msfm.RetailerList com.android.msfm.SelectRetailer com.android.msfm.AddNewRetailer com.android.msfm.RetailerDetails com.android.msfm.CustomDialogBox com.android.msfm.TakeOrderStock com.android.msfm.TakeStockOrder com.android.msfm.Order com.android.msfm.TakeOrder com.android.msfm.TodaysMap com.android.msfm.ShopSelection com.android.msfm.ArrangeShop com.android.msfm.MapRoute com.android.msfm.SelectRoute com.android.msfm.NotificationDetails com.android.msfm.Notifications com.android.msfm.PendingOrders com.android.msfm.DisplayRetailers com.android.msfm.SelectTempRetailers com.android.msfm.SelectPendingRejectRetailer com.android.msfm.DisplayRoutes com.android.msfm.SelectPendingRejectRoute com.android.msfm.SelectTempRoutes com.android.msfm.SyncPopUpMenu com.android.msfm.OrderView com.android.msfm.DisplaySo com.android.msfm.TempItemDeleteDialog com.android.msfm.ProductDetails<br/><br/>
06-23 03:11:05.940: D/PackageManager(73): Permissions: com.android.msfm.permission.C2D_MESSAGE<br/><br/>
06-23 03:11:05.971: I/ActivityManager(73): Force stopping package com.android.msfm uid=10040<br/>
06-23 03:11:06.309: I/installd(35): move /data/dalvik-cache/data#app#com.android.msfm-1.apk#classes.dex -> /data/dalvik-cache/data#app#com.android.msfm-1.apk#classes.dex<br/>
06-23 03:11:06.320: D/PackageManager(73): New package installed in /data/app/com.android.msfm-1.apk <br/>
06-23 03:11:06.349: W/PackageManager(73): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone<br/>
06-23 03:11:06.360: W/PackageManager(73): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x1be45) <br/>
06-23 03:11:06.360: W/PackageManager(73): Unknown permission com.google.android.gm.permission.WRITE_GMAIL in package com.android.settings <br/>
06-23 03:11:06.370: W/PackageManager(73): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.android.settings <br/>
06-23 03:11:06.409: W/PackageManager(73): Unknown permission com.android.providers.im.permission.READ_ONLY in package com.google.android.apps.maps <br/>
06-23 03:11:06.409: W/PackageManager(73): Unknown permission com.google.android.pushmessaging.permission.RECEIVE in package com.google.android.apps.maps <br/>
06-23 03:11:06.820: I/ActivityManager(73): Force stopping package com.android.msfm uid=10040 <br/>
06-23 03:11:07.170: D/dalvikvm(73): GC_EXPLICIT freed 15893 objects / 819592 bytes in 307ms <br/>
06-23 03:11:08.330: D/dalvikvm(207): GC_EXPLICIT freed 70 objects / 3792 bytes in 805ms <br/>
06-23 03:11:16.913: W/RecognitionManagerService(73): no available voice recognition services found <br/>
06-23 03:11:18.196: D/dalvikvm(73): GC_EXPLICIT freed 9699 objects / 508136 bytes in 766ms <br/>
06-23 03:11:26.265: I/installd(35): unlink /data/dalvik-cache/data#app#com.android.msfm-2.apk#classes.dex <br/>
06-23 03:11:26.339: D/AndroidRuntime(682): Shutting down VM <br/>
06-23 03:11:26.389: D/jdwp(682): Got wake-up signal, bailing out of select <br/>
06-23 03:11:26.389: D/dalvikvm(682): Debugger has detached; object registry had 1 entries <br/>
06-23 03:11:27.490: D/AndroidRuntime(711): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< <br/><br/>
06-23 03:11:27.490: D/AndroidRuntime(711): CheckJNI is ON<br/><br/>
06-23 03:11:27.904: D/AndroidRuntime(711): --- registering native functions ---<br/>
06-23 03:11:29.205: I/ActivityManager(73): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.msfm/.SplashActivity }<br/>
06-23 03:11:29.559: D/AndroidRuntime(711): Shutting down VM<br/>
06-23 03:11:29.580: D/dalvikvm(711): Debugger has detached; object registry had 1 entries<br/>
06-23 03:11:29.609: I/AndroidRuntime(711): NOTE: attach of thread 'Binder Thread #3' failed<br/>
06-23 03:11:30.809: I/ActivityManager(73): Start proc com.android.msfm for activity com.android.msfm/.SplashActivity: pid=720 uid=10040 gids={3003}<br/>
06-23 03:11:35.029: I/ActivityManager(73): Displayed activity com.android.msfm/.SplashActivity: 5117 ms (total 5117 ms)<br/>
06-23 03:11:36.899: I/ActivityManager(73): Starting activity: Intent { cmp=com.android.msfm/.LoginActivity }<br/>
06-23 03:11:37.721: D/dalvikvm(720): GC_EXTERNAL_ALLOC freed 1222 objects / 83808 bytes in 128ms<br/>
06-23 03:11:42.011: W/ResourceType(73): Skipping entry 0x7f040000 in package table 0 because it is not complex!<br/>
06-23 03:11:42.051: W/ResourceType(73): Skipping entry 0x7f040001 in package table 0 because it is not complex!<br/>
06-23 03:11:45.419: I/ActivityManager(73): Displayed activity com.android.msfm/.LoginActivity: 8419 ms (total 8419 ms)<br/>
06-23 03:11:46.784: D/dalvikvm(320): GC_EXPLICIT freed 102 objects / 6424 bytes in 20531ms<br/>
06-23 03:11:48.071: D/dalvikvm(193): GC_EXPLICIT freed 1786 objects / 91120 bytes in 12179ms<br/>
06-23 03:11:51.613: D/dalvikvm(353): GC_EXPLICIT freed 63 objects / 2960 bytes in 905ms<br/>
06-23 03:11:55.869: D/dalvikvm(207): GC_EXPLICIT freed 690 objects / 38960 bytes in 169ms<br/>
Related
I am currently testing an app. This is the test case. Load the app and then go to google leader board. Then press home button and do some other tasks. Then come back to the app again by clicking on the app icon. When I do this I still see the previously loaded leaderboard. Afterwards if I click back button on the leaderboard to resume the app following exception occurs.
I have also listed the logcat output. I can't debug this to see whats null because dubug has been detached before this event. What can I do to solve this?
ava.lang.RuntimeException: Unable to start activity ComponentInfo{XXX: java.lang.NullPointerException
11-03 16:30:04.877: E/AndroidRuntime(619): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
u=0} from pid 13361
11-09 22:51:02.015 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:02.019 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:02.105 3677-13641/? V/BaseAuthAsyncOperation﹕ All scopes had been granted in the past, skip access token fetching
11-09 22:51:02.160 3677-13641/? V/BaseAuthAsyncOperation﹕ access token request successful
11-09 22:51:02.187 249-283/? I/ActivityManager﹕ Displayed invalid entry.
11-09 22:51:09.750 249-943/? I/WindowState﹕ WIN DEATH: Window{41fda2b8 com.champ/com.champ.controllers.MainActivity paused=false}
11-09 22:51:09.750 249-494/? I/ActivityManager﹕ Process com.champ (pid 13361) has died.
11-09 22:51:13.836 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:13.836 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:14.773 456-456/? D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 0ms
11-09 22:51:21.773 249-943/? D/dalvikvm﹕ GC_FOR_ALLOC freed 1448K, 17% free 19437K/23303K, paused 82ms, total 91ms
11-09 22:51:21.804 13789-13789/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:21.816 249-953/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13789 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.586 249-835/? I/ActivityManager﹕ Process com.champ (pid 13789) has died.
11-09 22:51:25.590 249-835/? W/ActivityManager﹕ Force removing ActivityRecord{415b2150 com.champ/.controllers.ErrorActivity}: app died, no saved state
11-09 22:51:25.617 13857-13857/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:25.621 249-835/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13857 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.687 249-953/? W/InputMethodManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41db2610 attribute=null
Use try catch to get more info.
Did You save some Data in Application or Static Utils?
Because the page before You leader board is kill by System. When you back from Leader board,System rebuild it.
But some data become null.
In this case , you may use some data is null.
Simplely:
Add a check before you get data from Util.
public getA(){
if(a = null){a = b;}
return a;
}
a lot of trouble come up this evening when I tried testing my app with genymotion on older Android-APIs.. (Gapps / Play Services installed by drag- & dropping the zip into the emulators window)
Here are some errors:
Reason: Executing service
com.pepperonas.libredrive/com.google.android.gms.analytics.AnalyticsService
Load: 0.24 / 0.1 / 0.04
CPU usage from 5073ms to 0ms ago:
0.1% 470/system_server: 0.1% user + 0% kernel / faults: 10 minor
0% 569/com.android.systemui: 0% user + 0% kernel
0% 1534/com.google.android.apps.maps: 0% user + 0% kernel
0.1% TOTAL: 0% user + 0.1% kernel
CPU usage from 104ms to 606ms later:
1.8% 665/com.android.phone: 0% user + 1.8% kernel / faults: 2 minor
0% TOTAL: 0% user + 0% kernel 06-23 02:08:29.707 470-486/system_process D/﹕ HostConnection::get() New Host Connection
established 0xb8a13a80, tid 486 06-23 02:08:32.107
470-481/system_process D/Sensors﹕ Client connection accepted (43)
06-23 02:08:33.067 470-520/system_process E/Genymotion﹕ Could not
open '/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:33.567 470-661/system_process W/ThrottleService﹕ unable to
find stats for iface rmnet0 06-23 02:08:38.068
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:43.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:48.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:53.068 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:58.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:03.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:04.780 989-2234/com.google.android.gms
I/GoogleURLConnFactory﹕ Using platform SSLCertificateSocketFactory
06-23 02:09:04.780 470-560/system_process D/SyncManager﹕ failed
sync operation martinpaush#gmail.com u0 (com.google), subscribedfeeds,
LOCAL, earliestRunTime 89277, SyncResult: stats [ numIoExceptions: 1]
06-23 02:09:06.895 989-994/com.google.android.gms D/dalvikvm﹕
GC_CONCURRENT freed 517K, 5% free 10637K/11180K, paused 1ms+1ms, total
6ms 06-23 02:09:06.899 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: ,
callingPkg: com.google.android.gms, service:
oauth2:https://www.googleapis.com/auth/ads_measurement] 06-23
02:09:06.899 770-1365/com.google.process.gapps I/Auth.Core﹕
[TokenCache] Missing snowballing token: no granted scopes set. 06-23
02:09:06.899 770-1365/com.google.process.gapps I/GLSUser﹕
[GLSUser] getTokenFromGoogle [account: , callingPkg:
com.google.android.gms, service:
oauth2:https://www.googleapis.com/auth/ads_measurement 06-23
02:09:06.939 770-779/com.google.process.gapps D/dalvikvm﹕
GC_CONCURRENT freed 357K, 4% free 9747K/10132K, paused 2ms+0ms, total
5ms 06-23 02:09:07.003 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] getAuthtoken(,
oauth2:https://www.googleapis.com/auth/ads_measurement) -> status:
null) 06-23 02:09:07.003 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] Extracting token using key: Auth 06-23
02:09:07.019 770-1365/com.google.process.gapps W/GLSUser﹕
[GLSUser] Permission for com.google.android.gms to access
oauth2:https://www.googleapis.com/auth/ads_measurement will be managed
locally. 06-23 02:09:07.027 989-2235/com.google.android.gms
D/dalvikvm﹕ DexOpt: --- BEGIN 'ads-1840532237.jar' (bootstrap=0) ---
06-23 02:09:07.039 2237-2237/? D/dalvikvm﹕ DexOpt: load 0ms,
verify+opt 1ms, 182196 bytes 06-23 02:09:07.039
989-2235/com.google.android.gms D/dalvikvm﹕ DexOpt: --- END
'ads-1840532237.jar' (success) --- 06-23 02:09:07.039
989-2235/com.google.android.gms D/dalvikvm﹕ DEX prep
'/data/data/com.google.android.gms/cache/ads-1840532237.jar': unzip in
0ms, rewrite 9ms 06-23 02:09:07.387
989-994/com.google.android.gms D/dalvikvm﹕ GC_CONCURRENT freed 581K,
6% free 10643K/11268K, paused 1ms+0ms, total 4ms 06-23 02:09:08.067
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:13.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:17.443 470-486/system_process W/ActivityManager﹕ Force
finishing activity com.pepperonas.libredrive/.activities.MainActivity
06-23 02:09:17.463 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 44149 to 23219 06-23 02:09:17.483
470-486/system_process D/dalvikvm﹕ GC_FOR_ALLOC freed 1337K, 20% free
14363K/17784K, paused 9ms, total 10ms 06-23 02:09:17.483
385-391/? W/genymotion_audio﹕ out_write() limiting sleep time 55759 to
23219 06-23 02:09:17.487 470-486/system_process
I/ActivityManager﹕ Killing ProcessRecord{536d67c8
2151:com.pepperonas.libredrive/u0a10071}: user's request 06-23
02:09:17.487 470-483/system_process I/ActivityManager﹕ Process
com.pepperonas.libredrive (pid 2151) has died. 06-23 02:09:17.487
470-483/system_process W/ActivityManager﹕ Scheduling restart of
crashed service
com.pepperonas.libredrive/com.google.android.gms.analytics.AnalyticsService
in 136866ms 06-23 02:09:17.499 470-547/system_process I/qtaguid﹕
Failed write_ctrl(s 0 10071) res=-1 errno=1 06-23 02:09:17.499
470-547/system_process W/NetworkManagementSocketTagger﹕
setKernelCountSet(10071, 0) failed with errno -1 06-23 02:09:17.503
385-391/? W/genymotion_audio﹕ out_write() limiting sleep time 67369 to
23219 06-23 02:09:17.527 681-681/com.android.launcher
W/EGL_genymotion﹕ eglSurfaceAttrib not implemented 06-23 02:09:17.527
470-470/system_process W/InputMethodManagerService﹕ Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy#536cc358
attribute=null, token = android.os.BinderProxy#536c06a4 06-23
02:09:17.555 385-391/? W/genymotion_audio﹕ out_write() limiting
sleep time 68979 to 23219 06-23 02:09:17.579 385-391/?
W/genymotion_audio﹕ out_write() limiting sleep time 60589 to 23219
06-23 02:09:17.599 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 52199 to 23219 06-23 02:09:17.619 385-391/?
W/genymotion_audio﹕ out_write() limiting sleep time 33809 to 23219
06-23 02:09:17.647 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 25419 to 23219 06-23 02:09:18.067
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:23.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:28.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present'
more...
06-23 02:08:09.147 2168-2194/com.google.android.gm E/Gmail﹕ Error
finding the version of the Email provider.....
android.content.pm.PackageManager$NameNotFoundException: com.google.android.email
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80)
at com.google.android.gm.EmailMigrationService.a(SourceFile:1279)
at com.google.android.gm.EmailMigrationService.onHandleIntent(SourceFile:219)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
and another error:
06-23 02:08:09.123 2168-2168/com.google.android.gm E/dalvikvm﹕
Could not find class 'android.app.AppOpsManager', referenced from
method com.google.android.gms.common.e.a
I've never seen these errors before.
The same "setup" was running a few hours before totally perfect (the issues came up when I started the updated emulator). Does anybody know how to fix this? I restarted my computer, adb and VirtualBox, but it didn't changed anything.
I'm very sure that the apk is fine and the Maps-Api / AdMob / Analytics is referenced correctly, the same app runs on my real device (HTC m8) without any issues.
now I got managed the issue. After I flashed gapps-jb-20130301-signed.zip the emulator executes the app without any errors.
This solutions assumes you use:
Genymotion 2.5
Virtual device running API17 (JellyBean)
Hope it helps others.
Regards
My application works with standard android contacts, so I have following permissions in my AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
Alas, when I clear user data for standard Contacts application ( Settings -> Applications -> Manage Applications -> All -> Contacts -> Clear data ), my application com.example.dialer restarts:
04-05 15:39:21.161 I/InstalledAppDetails( 9019): Clearing user data for package : com.android.providers.contacts
04-05 15:39:21.181 I/Process ( 252): Sending signal. PID: 8774 SIG: 9
04-05 15:39:21.181 I/Process ( 252): Sending signal. PID: 8761 SIG: 9
04-05 15:39:21.181 I/Process ( 252): Sending signal. PID: 8368 SIG: 9
04-05 15:39:21.181 I/ActivityManager( 252): Force stopping package com.android.providers.contacts uid=10017
04-05 15:39:21.181 I/ActivityManager( 252): Kill com.sonyericsson.android.socialphonebook (pid 8774): provider com.android.providers.contacts.SemcContactsProvider2 in dying process android.process.acore
04-05 15:39:21.181 I/ActivityManager( 252): Kill com.example.dialer (pid 8761): provider com.android.providers.contacts.SemcCallLogProvider in dying process android.process.acore
04-05 15:39:21.231 D/dalvikvm( 9019): GC_CONCURRENT freed 1572K, 52% free 3798K/7815K, external 4576K/5694K, paused 1ms+4ms
04-05 15:39:21.251 E/InputDispatcher( 252): channel '2b440330 com.example.dialer/com.example.dialer.Dialer (server)' ~ Consumer closed input channel or an error occurred. events=0x8
04-05 15:39:21.251 E/InputDispatcher( 252): channel '2b440330 com.example.dialer/com.example.dialer.Dialer (server)' ~ Channel is unrecoverably broken and will be disposed!
04-05 15:39:21.251 I/WindowManager( 252): WINDOW DIED Window{2b440330 com.example.dialer/com.example.dialer.Dialer paused=false}
04-05 15:39:21.261 I/ActivityManager( 252): Process com.example.dialer (pid 8761) has died.
04-05 15:39:21.261 W/ActivityManager( 252): Scheduling restart of crashed service com.example.dialer/.ContactsService in 5000ms
04-05 15:39:21.281 I/InstalledAppDetails( 9019): Cleared user data for package : com.android.providers.contacts
Is it possible to prevent this and update my app's state instead?
AFAIK, if your app contains CONTACT related permissions, means your app is associated with contact app somehow and is dependent on that.
When user cleared the contact app data, whole Contact package is restarted by the system(you can see in logs). That means all applications having CONTACTS related permissions will be restarted.
So I don't think you can stop this.
I am getting a problem in implementing a simple HelloGoogleMaps tutorial given at http://developer.android.com/resources/tutorials/views/hello-mapview.html
The problem is that everything seems fine, but on running the code, only the grid and google logo appears, also if I add another layer of markers, the markers show up but not the underlying map.
There is internet connection in the emulator as on all the other applications network is connected.
Somebody please help me.
The display on the console is :
[2011-10-19 18:17:21 - helloGoogleMaps] ------------------------------
[2011-10-19 18:17:21 - helloGoogleMaps] Android Launch!
[2011-10-19 18:17:21 - helloGoogleMaps] adb is running normally.
[2011-10-19 18:17:21 - helloGoogleMaps] Performing c.om.maps.my.HelloGoogleMapsActivity activity launch
[2011-10-19 18:17:21 - helloGoogleMaps] Automatic Target Mode: launching new emulator with compatible AVD 'maps'
[2011-10-19 18:17:21 - helloGoogleMaps] Launching a new emulator with Virtual Device 'maps'
[2011-10-19 18:17:29 - helloGoogleMaps] New emulator found: emulator-5554
[2011-10-19 18:17:29 - helloGoogleMaps] Waiting for HOME ('android.process.acore') to be launched...
[2011-10-19 18:18:51 - helloGoogleMaps] HOME is up on device 'emulator-5554'
[2011-10-19 18:18:51 - helloGoogleMaps] Uploading helloGoogleMaps.apk onto device 'emulator-5554'
[2011-10-19 18:18:51 - helloGoogleMaps] Installing helloGoogleMaps.apk...
[2011-10-19 18:19:35 - helloGoogleMaps] Success!
[2011-10-19 18:19:35 - helloGoogleMaps] Starting activity c.om.maps.my.HelloGoogleMapsActivity on device emulator-5554
[2011-10-19 18:19:38 - helloGoogleMaps] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=c.om.maps.my/.HelloGoogleMapsActivity }
[2011-10-19 18:41:48 - helloGoogleMaps] ------------------------------
The last portion of Log cat ouyputs ::
10-19 19:56:52.357: INFO/ActivityManager(70): Start proc com.google.android.apps.maps for broadcast com.google.android.apps.maps/com.google.android.location.internal.NlpPackageUpdateReceiver: pid=346 uid=10018 gids={3003, 1015}
10-19 19:56:52.787: DEBUG/dalvikvm(182): GC_EXPLICIT freed 292K, 49% free 2956K/5703K, external 1625K/2137K, paused 672ms
10-19 19:56:53.147: WARN/RecognitionManagerService(70): no available voice recognition services found
10-19 19:56:54.248: DEBUG/dalvikvm(70): GC_EXPLICIT freed 784K, 45% free 4854K/8711K, external 4373K/5461K, paused 290ms
10-19 19:56:54.347: INFO/ActivityThread(346): Pub com.google.android.maps.LocalSuggestionProvider: com.google.googlenav.provider.LocalSuggestionProvider
10-19 19:56:54.357: INFO/ActivityThread(346): Pub com.google.android.maps.LayerInfoProvider: com.google.googlenav.layer.LayerInfoProvider
10-19 19:56:54.377: INFO/installd(35): unlink /data/dalvik-cache/data#app#c.om.maps.my-1.apk#classes.dex
10-19 19:56:54.438: DEBUG/AndroidRuntime(202): Shutting down VM
10-19 19:56:54.457: DEBUG/dalvikvm(202): GC_CONCURRENT freed 100K, 72% free 294K/1024K, external 0K/0K, paused 3ms+1ms
10-19 19:56:54.479: DEBUG/jdwp(202): adbd disconnected
10-19 19:56:54.497: INFO/AndroidRuntime(202): NOTE: attach of thread 'Binder Thread #3' failed
10-19 19:56:54.587: INFO/ActivityThread(346): Pub com.google.android.maps.TrafficProvider: com.google.googlenav.appwidget.traffic.TrafficProvider
10-19 19:56:54.587: INFO/ActivityThread(346): Pub com.google.android.maps.SuggestionProvider: com.google.googlenav.suggest.android.SuggestProvider
10-19 19:56:54.637: INFO/ActivityThread(346): Pub com.google.android.maps.SearchHistoryProvider: com.google.googlenav.provider.SearchHistoryProvider
10-19 19:56:54.657: INFO/ActivityThread(346): Pub com.google.android.maps.NavigationAvailabilityProvider: com.google.googlenav.provider.NavigationAvailabilityProvider
10-19 19:56:55.327: INFO/ActivityThread(346): Pub com.google.android.maps.StarredItemProvider: com.google.googlenav.provider.StarredItemProvider
10-19 19:56:55.739: DEBUG/dalvikvm(346): GC_CONCURRENT freed 835K, 49% free 3476K/6727K, external 1625K/2137K, paused 8ms+8ms
10-19 19:56:56.337: INFO/ActivityManager(70): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=362 uid=10010 gids={}
10-19 19:56:56.527: DEBUG/AndroidRuntime(360): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-19 19:56:56.527: DEBUG/AndroidRuntime(360): CheckJNI is ON
10-19 19:56:57.397: INFO/ActivityThread(362): Pub com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider
10-19 19:56:57.548: DEBUG/GTalkService(204): handlePackageInstalled: re-initialize providers
10-19 19:56:57.557: DEBUG/GTalkService(204): [RawStanzaProvidersMgr] ##### searchProvidersFromIntent
10-19 19:56:57.587: DEBUG/GTalkService(204): [RawStanzaProvidersMgr] no intent receivers found
10-19 19:56:58.417: DEBUG/AndroidRuntime(360): Calling main entry com.android.commands.am.Am
10-19 19:56:58.569: INFO/ActivityManager(70): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=c.om.maps.my/.HelloGoogleMapsActivity } from pid 360
10-19 19:56:58.807: DEBUG/AndroidRuntime(360): Shutting down VM
10-19 19:56:58.856: DEBUG/dalvikvm(360): GC_CONCURRENT freed 101K, 69% free 318K/1024K, external 0K/0K, paused 1ms+32ms
10-19 19:56:58.856: INFO/AndroidRuntime(360): NOTE: attach of thread 'Binder Thread #3' failed
10-19 19:56:58.866: INFO/ActivityManager(70): Start proc c.om.maps.my for activity c.om.maps.my/.HelloGoogleMapsActivity: pid=378 uid=10038 gids={3003, 1015}
10-19 19:56:58.877: DEBUG/jdwp(360): adbd disconnected
10-19 19:56:59.367: DEBUG/dalvikvm(33): GC_EXPLICIT freed 11K, 50% free 2719K/5379K, external 1625K/2137K, paused 475ms
10-19 19:56:59.707: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 50% free 2719K/5379K, external 1625K/2137K, paused 306ms
10-19 19:56:59.966: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 50% free 2719K/5379K, external 1625K/2137K, paused 246ms
10-19 19:57:00.237: WARN/ActivityManager(70): finishReceiver called but no pending broadcasts
10-19 19:57:01.737: DEBUG/dalvikvm(378): GC_CONCURRENT freed 1168K, 54% free 3144K/6727K, external 1626K/2137K, paused 7ms+7ms
10-19 19:57:02.187: DEBUG/dalvikvm(378): GC_CONCURRENT freed 529K, 51% free 3304K/6727K, external 1626K/2137K, paused 9ms+9ms
10-19 19:57:02.838: INFO/MapActivity(378): Handling network change notification:CONNECTED
10-19 19:57:02.847: ERROR/MapActivity(378): Couldn't get connection factory client
10-19 19:57:03.177: DEBUG/dalvikvm(378): GC_CONCURRENT freed 810K, 54% free 3121K/6727K, external 2046K/2137K, paused 6ms+11ms
10-19 19:57:03.217: INFO/ActivityManager(70): Displayed c.om.maps.my/.HelloGoogleMapsActivity: +4s421ms
10-19 19:57:04.397: VERBOSE/MediaProvider(257): Attached volume: external
10-19 19:57:04.797: VERBOSE/MediaScanner(257): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#405c3dd8
10-19 19:57:04.797: VERBOSE/MediaScanner(257): /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#405c3dd8
10-19 19:57:04.817: DEBUG/MediaScanner(257): prescan time: 321ms
10-19 19:57:04.817: DEBUG/MediaScanner(257): scan time: 14ms
10-19 19:57:04.817: DEBUG/MediaScanner(257): postscan time: 57ms
10-19 19:57:04.827: DEBUG/MediaScanner(257): total time: 392ms
10-19 19:57:04.838: DEBUG/MediaScannerService(257): done scanning volume external
10-19 19:57:14.308: INFO/InputReader(70): Device reconfigured: id=0x0, name=qwerty2, display size is now 480x800
10-19 19:57:14.308: INFO/InputManager-Callbacks(70): No virtual keys found for device qwerty2.
10-19 19:57:15.248: INFO/ARMAssembler(70): generated scanline__00000077:03515104_00001004_00000000 [ 65 ipp] (85 ins) at [0x445fd520:0x445fd674] in 1499783 ns
10-19 19:57:15.377: INFO/ARMAssembler(70): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x445fd678:0x445fd840] in 813025 ns
10-19 19:57:25.087: DEBUG/dalvikvm(378): GC_EXTERNAL_ALLOC freed 89K, 54% free 3145K/6727K, external 2046K/2137K, paused 138ms
10-19 19:57:43.808: WARN/KeyCharacterMap(378): No keyboard for id 0
10-19 19:57:43.887: WARN/KeyCharacterMap(378): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
You need to generate MapView API key from your debug.keystore file.
read here how to do this http://code.google.com/android/add-ons/google-apis/mapkey.html
The spinning globe application unning on the emulator works on android 1.5 as target but puts out a "force close application" error in android 2.2 target. Where should i look to find the problem ?
I have enclosed the logcat details that I get,
D/MediaScanner( 183): prescan time: 4913ms
D/MediaScanner( 183): scan time: 693ms
D/MediaScanner( 183): postscan time: 45ms
D/MediaScanner( 183): total time: 5651ms
D/MediaScannerService( 183): done scanning volume internal
I/PackageManager( 67): Removing non-system package:com.android.SpinningGlobe
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
D/dalvikvm( 127): GC_EXPLICIT freed 12963 objects / 655936 bytes in 168ms
D/PackageManager( 67): Scanning package com.android.SpinningGlobe
I/PackageManager( 67): Package com.android.SpinningGlobe codePath changed from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk; Retaining data and using new
I/PackageManager( 67): /data/app/com.android.SpinningGlobe-1.apk changed; unpacking
D/installd( 34): DexInv: --- BEGIN '/data/app/com.android.SpinningGlobe-1.apk' ---
D/dalvikvm( 255): DexOpt: load 214ms, verify 229ms, opt 5ms
D/installd( 34): DexInv: --- END '/data/app/com.android.SpinningGlobe-1.apk' success)---
W/PackageManager( 67): Code path for pkg : com.android.SpinningGlobe changing from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk
W/PackageManager( 67): Resource path for pkg : com.android.SpinningGlobe changing from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
D/PackageManager( 67): Activities: com.android.SpinningGlobe.GLApp
I/installd( 34): move /data/dalvik-cache/data#app#com.android.SpinningGlobe-1.apk#classes.dex -> /data/dalvik-cache/data#app#com.android.SpinningGlobe-1.apk#classes.dex
D/PackageManager( 67): New package installed in /data/app/com.android.SpinningGlobe-1.apk
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
I/ActivityManager( 67): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=256 uid=10028 gids={}
D/dalvikvm( 167): GC_EXPLICIT freed 3943 objects / 244424 bytes in 1708ms
D/dalvikvm( 67): GC_EXPLICIT freed 7297 objects / 468432 bytes in 667ms
W/RecognitionManagerService( 67): no available voice recognition services found
I/ActivityThread( 256): Publishing provider com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider
I/installd( 34): unlink /data/dalvik-cache/data#app#com.android.SpinningGlobe-2.apk#classes.dex
D/AndroidRuntime( 118): Shutting down VM
D/jdwp ( 118): adbd disconnected
I/AndroidRuntime( 118): NOTE: attach of thread 'Binder Thread #3' failed
D/AndroidRuntime( 266):
D/AndroidRuntime( 266): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 266): CheckJNI is ON
D/AndroidRuntime( 266): --- registering native functions ---
I/ActivityManager( 67): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.SpinningGlobe/.GLApp }
D/AndroidRuntime( 266): Shutting down VM
D/jdwp ( 266): adbd disconnected
I/AndroidRuntime( 266): NOTE: attach of thread 'Binder Thread #3' failed
I/ActivityManager( 67): Start proc com.android.SpinningGlobe for activity com.android.SpinningGlobe/.GLApp: pid=273 uid=10038 gids={1015}
I/ARMAssembler( 67): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x32b4a0:0x32b5ac] in 3627836 ns
D/libEGL ( 273): egl.cfg not found, using default config
D/libEGL ( 273): loaded /system/lib/egl/libGLES_android.so
D/dalvikvm( 273): GC_EXTERNAL_ALLOC freed 839 objects / 59328 bytes in 151ms
W/dalvikvm( 273): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
I/ActivityManager( 67): Displayed activity com.android.SpinningGlobe/.GLApp: 4870 ms (total 4870 ms)
E/AndroidRuntime( 273): FATAL EXCEPTION: GLThread 8
E/AndroidRuntime( 273): java.lang.IndexOutOfBoundsException
E/AndroidRuntime( 273): at java.nio.IntArrayBuffer.get(IntArrayBuffer.java:63)
E/AndroidRuntime( 273): at com.android.SpinningGlobe.GLRenderer.onDrawFrame(GLRenderer.java:105)
E/AndroidRuntime( 273): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
E/AndroidRuntime( 273): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
W/ActivityManager( 67): Force finishing activity com.android.SpinningGlobe/.GLApp
I/ARMAssembler( 67): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x33f9a8:0x33fa64] in 1258819 ns
Any insights on where the problem could be ?
You should look at the log from the emulator.
You can get this on the command line using:
adb logcat
Or if you're using the ADT Plugin for Eclipse the log is visible there. If you can't see it select Window ▶ Show View ▶ Other... and then select Android ▶ LogCat.
It's probably also worth reading the Debugging page in the Android Developer Documentation.
Recompile it under 2.2 and look for deprecated warnings