I have an Application with a single root Activity. I've recently had it brought to my attention that any kind of Force Close on my Activity results in it restarting and I have no idea why this might happen. If I force an uncaught exception or use the 'long back press to force close' option, they both result in the same.
My only guess would have been some form of quirk relating to retained references to some part of the Activity, only I don't have any outside of some WeakReference entries at the Application level.
Relevant logcat entries:
05-25 08:25:49.137: INFO/ActivityManager(18449): Displayed uk.co.randomicon.rstb/.TreeBuilderActivity: +8s82ms
05-25 08:25:54.222: DEBUG/dalvikvm(18546): GC_EXPLICIT freed 12K, 57% free 3640K/8327K, external 8323K/10136K, paused 72ms
05-25 08:25:55.373: WARN/InputManagerService(18449): Got RemoteException sending setActive(false) notification to pid 19122 uid 10069
05-25 08:25:59.217: DEBUG/dalvikvm(18646): GC_EXPLICIT freed 128K, 48% free 2980K/5703K, external 0K/0K, paused 67ms
05-25 08:26:00.238: DEBUG/dalvikvm(18991): GC_CONCURRENT freed 343K, 51% free 2794K/5639K, external 303K/532K, paused 3ms+3ms
05-25 08:26:02.950: INFO/Process(18449): Sending signal. PID: 19554 SIG: 9
05-25 08:26:02.980: INFO/ActivityManager(18449): Process uk.co.randomicon.rstb (pid 19554) has died.
05-25 08:26:02.990: ERROR/InputDispatcher(18449): channel '40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
05-25 08:26:02.990: ERROR/InputDispatcher(18449): channel '40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-25 08:26:02.990: INFO/WindowManager(18449): WINDOW DIED Window{40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity paused=false}
05-25 08:26:03.010: WARN/WindowManager(18449): Failed looking up window
05-25 08:26:03.010: WARN/WindowManager(18449): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#40c774e0 does not exist
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8177)
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8168)
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7026)
05-25 08:26:03.010: WARN/WindowManager(18449): at android.os.BinderProxy.sendDeathNotice(Binder.java:385)
05-25 08:26:03.010: WARN/WindowManager(18449): at dalvik.system.NativeStart.run(Native Method)
05-25 08:26:03.010: INFO/WindowManager(18449): WIN DEATH: null
05-25 08:26:03.020: INFO/ActivityManager(18449): Start proc uk.co.randomicon.rstb for activity uk.co.randomicon.rstb/.TreeBuilderActivity: pid=19565 uid=10069 gids={1015}
Any ideas where to even begin poking would be gratefully received!
EDIT: This was caused by me setting android:stateNotNeeded="true" in my Manifest. While I don't need the state, this caused Android to decide it was best to relaunch my app on the assumption the user would want that.
Here is some useful info:
As far as when an activity is restarted -- if the process running the
foreground activity goes away, the system will throw away that activity if
it does not have a valid saved state for it (typically meaning it is paused
and has given the system the result of onSaveInstanceState from before the
pause). Once it has decided whether or not to throw away that activity, it
will resume whatever activity is now at the top of the stack. If this is
one of your activities -- either because you have another behind the one
that crashed, or the one that crashed was somehow it the settled pause state
-- then it will start your process again to show that top activity.
This may be caused by calling a system API that is not available on your target device. I ran into a similar issue then trying to call ActivityManager.MemoryInfo.totalMem on a 4.0.x device. I didn't get any compile errors as I was targeting 4.2.2 and ActivityManager.MemoryInfo.totalMem was added in API16 (4.1)
if app has android:persistent="true" in manifest, it will restart when killed.
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;
}
When I attempt to sign-in to my game application using Google Play Services, the login fails (error logs included below), and a dialog pops up that says "Unknown issue with Google Play services." I have the google-play-services_lib properly setup as a library dependency in Android Studio and my Activity extends the BaseGameActivity class.
As you can see in the Logs, it says the error is because: "Access Not Configured. The API (Drive API) is not enabled for your project." It comes from com.google.android.gms.drive.auth.c. However, nowhere in my Manifest file or in my code do I use the Drive API. I don't need this API at all, and have not imported or included it anywhere. I am simply calling the beginUserInitiatedSignIn(); method from the BaseGameActivity class. Why is this error message being generated?
I have noticed one line from the logs in particular that doesn't make much sense, but seems to be related:
I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: , callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
But I still can't wrap my head around why it's seemingly attempting to get data from the drive API. Any help would be really appreciated.
Here are the error logs as promised:
05-25 03:00:49.359 1250-1250/? V/GLSActivity﹕ AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
05-25 03:00:49.372 1448-1448/? D/ChimeraSrvcProxy﹕ Creating service proxy ComponentInfo{com.google.android.gms/com.google.android.gms.games.chimera.GamesAsyncServiceProxy}
05-25 03:00:49.372 1448-1448/? D/ChimeraSrvcProxy﹕ Proxying container service ComponentInfo{com.google.android.gms/com.google.android.gms.games.chimera.GamesAsyncServiceProxy} to Chimera service impl com.google.android.gms.games.service.PlayGamesAsyncService
05-25 03:00:49.372 1448-1448/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
05-25 03:00:49.372 1448-1448/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
05-25 03:00:49.387 1250-9249/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.392 1250-9249/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.412 1448-21701/? V/AuthAccountOperation﹕ offline access is not requested; requesting access token
05-25 03:00:49.428 1250-1990/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:49.431 1250-1990/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.437 1448-21701/? V/AuthAccountOperation﹕ access token request successful
05-25 03:00:49.463 1448-21698/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:49.466 1448-21698/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:49.476 1250-1278/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.481 1250-1278/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.490 1250-1990/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.496 1250-1990/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.523 1448-21701/? V/AuthAccountOperation﹕ offline access is not requested; requesting access token
05-25 03:00:49.541 1250-9249/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:49.543 1250-9249/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.552 1448-21701/? V/AuthAccountOperation﹕ access token request successful
05-25 03:00:49.754 746-1172/? I/art﹕ Explicit concurrent mark sweep GC freed 26211(1326KB) AllocSpace objects, 2(32KB) LOS objects, 22% free, 55MB/71MB, paused 1.903ms total 134.343ms
05-25 03:00:50.138 1046-1559/? D/skia﹕ --- SkImageDecoder::Factory returned null
05-25 03:00:50.139 1046-1559/? W/AssetUtil﹕ loadBitmapAssetFromResources: failed to decode bitmap resource for package com.twitter.android
05-25 03:00:50.204 1448-9053/? E/Volley﹕ [220] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/drive/v2beta/apps/self?prettyPrint=false&fields=id
05-25 03:00:50.210 3043-3105/? D/﹕ PORT_WriteDataCO: tx queue is full,tx.queue_size:10312,tx.queue.count:11,available:6683
05-25 03:00:50.222 1448-21694/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:50.225 1448-21698/? E/ClientConnectionOperation﹕ Handling authorization failure
com.google.android.gms.drive.auth.c: Authorization failed: server returned error: Access Not Configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration.. See https://developers.google.com/drive/handle-errors for details.
at com.google.android.gms.drive.auth.g.a(SourceFile:209)
at com.google.android.gms.drive.auth.g.a(SourceFile:139)
at com.google.android.gms.drive.api.g.<init>(SourceFile:226)
at com.google.android.gms.drive.api.a.k.a(SourceFile:46)
at com.google.android.gms.common.service.g.run(SourceFile:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
05-25 03:00:50.273 1250-2712/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:50.276 1250-2712/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:50.556 1448-9055/? E/Volley﹕ [222] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/drive/v2beta/apps/self?prettyPrint=false&fields=id
05-25 03:00:50.559 1448-21698/? E/ClientConnectionOperation﹕ Handling authorization failure
com.google.android.gms.drive.auth.c: Authorization failed: server returned error: Access Not Configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration.. See https://developers.google.com/drive/handle-errors for details.
at com.google.android.gms.drive.auth.g.a(SourceFile:209)
at com.google.android.gms.drive.auth.g.a(SourceFile:139)
at com.google.android.gms.drive.api.g.<init>(SourceFile:226)
at com.google.android.gms.drive.api.a.k.a(SourceFile:46)
at com.google.android.gms.common.service.g.run(SourceFile:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
05-25 03:00:50.562 20197-20197/? W/GameHelper﹕ disconnect() called when client was already disconnected.
05-25 03:00:50.564 20197-20197/? E/GooglePlayServicesUtil﹕ Internal error occurred. Please see logs for detailed information
we are porting whole android open source for the device Imx-6X-solo board.Developing and re-skinning all the applications.Every thing is done properly and device is ready now. But the problem is I am getting " Unfortunately, the process "android.process.acore has stopped" " error during uninstallation of the application. That is when I go to
Settings --> apps --> any third party app installed --> Uninstall .
Then I am getting this error.But app is successfully uninstalling. Can anyone please help me.. Thanks in adavance.
The logs while uninstalling are as follows..
I/ContentGridAdapter( 2576): ------- book pkg name for uninstalling is ------
com.vienom.kb.nini
D/FableSyncService( 2366): Tell package managere to uninstall: com.vienom.kb.nini
I/FableSyncManager( 2366): start processContentUninstallRequest
D/log ( 2366): ENTERED unInstallFableContent com.vienom.kb.nini
D/Log ( 2366): PACKAGE IS INSTALLED
D/log ( 2366): START FABLE UNINSTALL APP
I/FableSyncManager( 2366): exit processContentUninstallRequest
D/FableSyncService( 2366): package manager uninstalling..: com.vienom.kb.nini
W/audio_hw_primary( 1932): start_output_stream...
W/audio_hw_primary( 1932): headphone 0 ,headset 0 ,speaker 2, earpiece 0,
W/audio_hw_primary( 1932): card 0, port 0 device 2
I/PackageManager( 2059): Removing non-system package:com.vienom.kb.nini
I/ActivityManager( 2059): Force stopping package com.vienom.kb.nini uid=10034
D/dalvikvm( 2059): GC_CONCURRENT freed 360K, 11% free 7818K/8775K, paused 5ms+3ms
I/ActivityManager( 2059): Force stopping package com.vienom.kb.nini uid=10034
D/dalvikvm( 2576): GC_EXPLICIT freed 316K, 15% free 7755K/9031K, paused 2ms+2ms
D/PackageManager( 2059): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
D/PackageManager( 2059): generateServicesMap(android.content.SyncAdapter): 1 services unchanged
W/ResourceType( 2059): Failure getting entry for 0x7f060000 (t=5 e=0) in package 0 (error -75)
D/BackupManagerService( 2059): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.vienom.kb.nini flg=0x10000010 (has extras) }
V/BackupManagerService( 2059): removePackageParticipantsLocked: #1
D/dalvikvm( 2289): GC_EXPLICIT freed 358K, 8% free 5955K/6471K, paused 2ms+10ms
W/PluginManager( 2472): Can't find plugin: com.vienom.kb.nini
E/ActivityThread( 2223): Failed to find provider info for com.android.inputmethod.latin.dictionarypack
E/BinaryDictionaryGetter( 2223): Could not find a dictionary pack
W/Searchables( 2059): No global search activity found
D/VoicemailCleanupService( 2289): Cleaning up data for package: com.vienom.kb.nini
W/dalvikvm( 2289): threadid=15: thread exiting with uncaught exception (group=0x40a2b1f8)
E/AndroidRuntime( 2289): FATAL EXCEPTION: IntentService[VoicemailCleanupService]
E/AndroidRuntime( 2289): java.lang.SecurityException: The caller must have permission: com.android.voicemail.permission.ADD_VOICEMAIL
E/AndroidRuntime( 2289): at com.android.providers.contacts.VoicemailPermissions.checkCallerHasOwnVoicemailAccess(VoicemailPermissions.java:52)
E/AndroidRuntime( 2289): at com.android.providers.contacts.VoicemailContentProvider.checkPermissionsAndCreateUriData(VoicemailContentProvider.java:301)
E/AndroidRuntime( 2289): at com.android.providers.contacts.VoicemailContentProvider.delete(VoicemailContentProvider.java:129)
E/AndroidRuntime( 2289): at android.content.ContentProvider$Transport.delete(ContentProvider.java:213)
E/AndroidRuntime( 2289): at android.content.ContentResolver.delete(ContentResolver.java:822)
E/AndroidRuntime( 2289): at com.android.providers.contacts.VoicemailCleanupService.handleIntentInternal(VoicemailCleanupService.java:51)
E/AndroidRuntime( 2289): at com.android.providers.contacts.VoicemailCleanupService.onHandleIntent(VoicemailCleanupService.java:40)
E/AndroidRuntime( 2289): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
E/AndroidRuntime( 2289): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2289): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2289): at android.os.HandlerThread.run(HandlerThread.java:60)
I/ActivityManager( 2059): Start proc com.android.keychain for broadcast com.android.keychain/.KeyChainBroadcastReceiver: pid=2613 uid=1000 gids={1015, 3003, 2001, 3002, 3001}
D/dalvikvm( 2059): GC_CONCURRENT freed 635K, 13% free 7722K/8775K, paused 3ms+5ms
D/dalvikvm( 2059): GC_EXPLICIT freed 105K, 13% free 7698K/8775K, paused 5ms+5ms
D/log ( 2366): ENTERED PACKAGE UNINSTALLED OBSERVER
D/Log ( 2366): DELETE SUCCEEDEDcom.vienom.kb.nini
I/ActivityManager( 2059): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=2627 uid=10005 gids={1015, 2001}
I/FableDatabase( 2366): deleteContentName: 9001Status 0
I/FableDatabase( 2366):
I/FableDatabase( 2366): Thumbnail not found for :com.vienom.kb.nini
I/FableDatabase( 2366): Deleted from device: /mnt/sdcard/fable/books/22_fable_full.apk
D/MediaProvider( 2211): object removed 50
I got the solution. By mistake I removed the Contacts app. Every time, Contacts Storage app is checking for contacts.So Now again I installed Contacts.apk. And it works fine after installing.
one more solution is
Settings --> apps --> All --> Contacts Storage --> clear data and Force stop
Backup your contacts. Go to settings and clear the "Data" of Contact Storage. This will remove all your contacts. After that, restore your contacts back and the error will go. This basically happens when FB messes up with your contacts.
it is not directly contacts related. 10 minutes ago this message start to popup every 1 second (!). It started to popup after i removed my account from DROPBOX. I tried rebooting several times but nothing helped.
Finally i decided to re-link the account i removed from DROPBOX and then the popup message stopped !
The problem appears because there is a broken link. To some it appears with contacts. To me it happend with DROPBOX. I assume to others it can happend with a different app.
It is an Android failure, not an app faluire.
(I use Galaxy S4 with Kitkat 4.4.2)
Good Luck,
Yuval
My repair has not been posted as of yet - here is another.
Settings->applications manager->bottom left menu button / Choose reset app preferences / Choose Reset Apps.
This worked for me ,,, Must have shut something off that android/Samsung didn't like
cheers
In my application i try launching the browser with the following url:
https://maps.google.com/maps?saddr=indiranagar bangalore&daddr=mgroad bangalore
The browser launches and when the map loads my application gets killed with the following logcat message:
I/ActivityManager( 61): Starting: Intent { act=android.intent.action.VIEW dat=
http://View cmp=com.android.browser/.BrowserActivity (has extras) } from pid 355
I/ActivityManager( 61): Starting: Intent { act=android.intent.action.VIEW dat=
https://maps.google.com/maps?saddr=indiranagar bangalore&daddr=mgroad bangalore
cmp=com.android.browser/.BrowserActivity } from pid 355
D/PhoneWindow( 355): couldn't save which view has focus because the focused vie
w android.widget.EditText#40587640 has no id.
I/ActivityManager( 61): Displayed com.android.browser/.BrowserActivity: +760ms
W/IInputConnectionWrapper( 355): showStatusIcon on inactive InputConnection
I/dalvikvm( 373): Jit: resizing JitTable from 1024 to 2048
I/System.out( 355): Logout Counter:30
D/dalvikvm( 373): GC_CONCURRENT freed 369K, 50% free 3921K/7751K, external 2234
K/2645K, paused 5ms+18ms
D/dalvikvm( 355): GC_EXPLICIT freed 866K, 50% free 3666K/7239K, external 2693K/
3310K, paused 1640ms
D/dalvikvm( 373): GC_CONCURRENT freed 1400K, 54% free 3641K/7751K, external 226
6K/2645K, paused 6ms+26ms
W/browser ( 373): We should not show context menu when nothing is touched
W/browser ( 373): We should not show context menu when nothing is touched
W/browser ( 373): We should not show context menu when nothing is touched
**I/ActivityManager( 61): Process com.aavarp.mobile (pid 355) has died.
I/ActivityManager( 61): Low Memory: No more background processes.**
I/WindowManager( 61): WIN DEATH: Window{408793c0 com.aavarp.mobile/com.aavarp.
mobile.core.ui.ApplicationsActivity paused=false}
E/InputDispatcher( 61): channel '4070e4f8 com.aavarp.mobile/com.aavarp.mobile.
dashboard.ui.components.GraphActivity (server)' ~ Consumer closed input channel
or an error occurred. events=0x8
E/InputDispatcher( 61): channel '4070e4f8 com.aavarp.mobile/com.aavarp.mobile.
dashboard.ui.components.GraphActivity (server)' ~ Channel is unrecoverably broke
n and will be disposed!
I/WindowManager( 61): WIN DEATH: Window{4070e4f8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.GraphActivity paused=false}
I/WindowManager( 61): WIN DEATH: Window{406836a8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.NotificationList paused=false}
I/WindowManager( 61): WIN DEATH: Window{406825a8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.TableListActivity paused=false}
I/WindowManager( 61): WIN DEATH: Window{4083df30 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.DetailsActivity paused=false}
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=171, events=0x8
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=175, events=0x8
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=181, events=0x8
D/dalvikvm( 61): GC_CONCURRENT freed 1735K, 52% free 4435K/9159K, external 529
2K/6609K, paused 8ms+16ms
D/skia ( 129): purging 38K from font cache [5 entries]
D/dalvikvm( 129): GC_EXPLICIT freed 84K, 52% free 2801K/5767K, external 2117K/2
643K, paused 73ms
Again i tried launching the browser from my application with www.google.com and performed a search and browsed through various pages and navigated back to my application without any issues. I am not sure if am missing some message on the logcat. I use Android 2.3 OS.Could someone kindly help me resolve this issue please. Thanks in advance.
why do you want to load the maps in webview..? you load the map in a map activity or
use Intents List: Invoking Google Applications on Android Devices
String uri = "http://maps.google.com/maps?saddr=" + "9982878"+","+"76285774"+"&daddr="+"9992084"+","+"76286455";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
Note: for displaying route you should use map activity canvas
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.