R error Android Studio when rebuilding project - android

I was having an issue with the R symbol in my Android app (it was imported as import com.myName.runmate.R; When I removed this lined, I resynched with Gradle and rebuilt the project but I got the following in Messages Gradle Build - Error:(73, 44) error: package R does not exist
The logcat output:
09-19 13:21:01.969 746-821/? I/PowerManagerService﹕ Going to sleep due to screen timeout (uid 1000)...
09-19 13:21:01.970 746-821/? I/PowerManagerService﹕ Sleeping (uid 1000)...
09-19 13:21:02.078 909-909/? D/PhoneStatusBar﹕ disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH >
09-19 13:21:02.104 188-856/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=off
09-19 13:21:02.127 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2163
09-19 13:21:02.128 746-842/? E/native﹕ do suspend true
09-19 13:21:02.529 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:02.529 175-175/? D/SurfaceFlinger﹕ Set power mode=0, type=0 flinger=0xb6482000
09-19 13:21:02.529 175-175/? D/qdhwcomposer﹕ hwc_blank: Blanking display: 0
09-19 13:21:02.530 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:02.813 175-175/? D/qdhwcomposer﹕ hwc_blank: Done blanking display: 0
09-19 13:21:02.813 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 284ms
09-19 13:21:02.813 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to apply optimization for resource: 4 level: 0
09-19 13:21:28.638 746-746/? I/EntropyMixer﹕ Writing entropy...
09-19 13:21:28.640 746-821/? I/PowerManagerService﹕ Waking up from sleep (uid 1000)...
09-19 13:21:28.640 746-821/? I/DisplayPowerController﹕ Blocking screen on until initial contents have been drawn.
09-19 13:21:28.667 1086-1086/? I/PowerConnectionBroadcastReceiver﹕ onReceive() : Device plugged in.
09-19 13:21:28.667 1086-1086/? I/StatsUtilsManager﹕ startPeriodStatsRecorder() : Success
09-19 13:21:28.667 1086-1086/? I/PeriodicStatsRecorder﹕ shouldRecordStats() = Too Soon
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
09-19 13:21:28.672 9422-9422/? I/GCoreUlr﹕ Starting service, intent=Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) }, extras=Bundle[{receiverAction=android.intent.action.ACTION_POWER_CONNECTED}]
09-19 13:21:28.674 9422-9422/? I/GCoreUlr﹕ DispatchingService.onCreate()
09-19 13:21:28.678 9496-9496/? I/iu.Environment﹕ update battery state; isPlugged? true*
09-19 13:21:28.684 9496-12232/? I/iu.UploadsManager﹕ num queued entries: 0
09-19 13:21:28.686 9496-12232/? I/iu.UploadsManager﹕ num updated entries: 0
09-19 13:21:28.688 9496-12232/? I/iu.SyncManager﹕ NEXT; no task
09-19 13:21:28.697 9496-28033/? I/iu.FingerprintManager﹕ Start processing all media
09-19 13:21:28.708 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/images/media
09-19 13:21:28.719 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to reset optimization for resource: 4 level: 0
09-19 13:21:28.720 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state ON, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:28.720 175-175/? D/SurfaceFlinger﹕ Set power mode=2, type=0 flinger=0xb6482000
09-19 13:21:28.720 175-175/? D/qdhwcomposer﹕ hwc_blank: Unblanking display: 0
09-19 13:21:28.769 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/video/media
09-19 13:21:28.775 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/images/media
09-19 13:21:28.778 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/video/media
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ Finished generating fingerprints; 0.082 seconds
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ numSeen=680 numGenerated=0 numDeleted=0 numFailed=0
09-19 13:21:28.796 746-746/? V/KeyguardServiceDelegate﹕ onScreenTurnedOn(showListener = com.android.internal.policy.impl.PhoneWindowManager$2#280fe250)
09-19 13:21:28.797 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:28.807 27346-28044/? I/GAv4﹕ Google Analytics 7.8.95 is starting up. To enable debug logging on a device run:
adb shell setprop log.tag.GAv4 DEBUG
adb logcat -s GAv4
09-19 13:21:28.812 9422-28036/? I/GCoreUlr﹕ WorldUpdater received intent Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) } with receiverAction android.intent.action.ACTION_POWER_CONNECTED
09-19 13:21:28.823 746-1213/? V/KeyguardServiceDelegate﹕ **** SHOWN CALLED ****
09-19 13:21:28.823 746-821/? I/DisplayPowerController﹕ Unblocked screen on after 183 ms
09-19 13:21:28.829 188-188/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=on
09-19 13:21:28.845 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2164
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-1379/? D/BrcmNfcJni﹕ RoutingManager::commitRouting
09-19 13:21:28.846 746-842/? E/native﹕ do suspend false
09-19 13:21:28.856 27346-28044/? W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.856 746-762/? W/ActivityManager﹕ getRunningAppProcesses: caller 10065 does not hold REAL_GET_TASKS; limiting output
09-19 13:21:28.865 27346-28044/? W/GAv4﹕ CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.868 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT
09-19 13:21:28.871 27346-28055/? W/GAv4﹕ AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.906 746-761/? I/art﹕ Explicit concurrent mark sweep GC freed 28154(1676KB) AllocSpace objects, 2(73KB) LOS objects, 30% free, 36MB/52MB, paused 1.413ms total 89.320ms
09-19 13:21:28.919 746-1252/? I/ActivityManager﹕ Start proc 28057:com.estrongs.android.pop/u0a144 for broadcast com.estrongs.android.pop/.app.StartServiceReceiver
09-19 13:21:28.951 28057-28057/? E/ObjectHelper﹕ Can't find method:setCompatibilityInfo
09-19 13:21:28.959 175-175/? D/qdhwcomposer﹕ hwc_blank: Done unblanking display: 0
09-19 13:21:28.959 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 239ms
09-19 13:21:28.976 28057-28077/? D/an﹕ Refresh storage info done.21
09-19 13:21:28.982 9422-28036/? I/GCoreUlr﹕ WorldUpdater:android.intent.action.ACTION_POWER_CONNECTED: Ensuring that reporting is stopped because of reasons: {account#-19#=[InactiveReason{mVersionCode=0, mIdentifier=6, mName='ReportingNotEnabled'}]}
09-19 13:21:28.985 9422-28036/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ DispatchingService.onDestroy()
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ Stopping handler for UlrDispSvcFast
09-19 13:21:28.999 9422-9422/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:29.038 28057-28079/? W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
09-19 13:21:29.453 746-17030/? D/AlarmManagerService﹕ Kernel timezone updated to -60 minutes west of GMT
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Intent ACTION_SERVICE_STATE_CHANGED
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Service state changed! 0 Full: 0 0 voice home data home O2 - UK O2 - UK 23410 O2 - UK O2 - UK 23410 UMTS HSPAP CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ rematching NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ Network NetworkAgentInfo [MOBILE (HSPA) - 127] was already satisfying request 1. No change.
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ notifyType AVAILABLE for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.465 746-844/? D/ConnectivityService﹕ notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.466 746-844/? D/ConnectivityService﹕ Setting tx/rx TCP buffers to 122334,734003,2202010,32040,192239,576717
09-19 13:21:29.468 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.469 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.470 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.470 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.472 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.473 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.485 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.485 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.496 746-844/? D/ConnectivityService﹕ notifyType IP_CHANGED for NetworkAgentInfo [MOBILE (HSPA+) - 127]
09-19 13:21:29.500 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.501 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.505 27491-28097/? D/CellBroadcastConfigService﹕ enabling emergency cell broadcast channels
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4352 to 4354 from client com.android.cellbroadcastreceiver
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.523 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4356 to 4356 from client com.android.cellbroadcastreceiver
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.531 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4371 to 4372 from client com.android.cellbroadcastreceiver
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableCdmaBroadcastRange
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCdmaBroadcastConfig with 1 configurations
09-19 13:21:29.551 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4097 to 4097 from client com.android.cellbroadcastreceiver
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4373 to 4378 from client com.android.cellbroadcastreceiver

Just comment the Lines Where your Getting Error With R in Java File
Then Build the project
It Should Rebuild the R file Again
Now Remove Your Comments and You are good to go

Can you ensure all your package names are the same:
package com.khackett.runmate;
Not adding the folder extension for each folder the files are in.
package com.khackett.runmate.adapters;
As you have declared in your manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.khackett.runmate" >

Related

App crashes hard when docking

My Xamarin Android App crashes whenever the tablet docks or undocks from a cradle and i have no idea of where to start first.
The cradle only has power, no usb connectivity at all.
It doesn't crash when connecting the tablet via usb.
None of the other apps on the tablet have the same problem.
i've tried to stop the app to switching to 'car' mode using
UiModeManager amanger = (UiModeManager)Application.Context.GetSystemService(Context.UiModeService);
amanger?.DisableCarMode(DisableCarModeFlags.None);
but it doesn't help.
the debug output shows:
Thread finished: <Thread Pool> #2
The thread 'Unknown' (0x2) has exited with code 0 (0x0).
[0:] interrupted
Thread finished: UdpReceiveThread #11
The thread 'Unknown' (0xb) has exited with code 0 (0x0).
02-24 10:48:30.869 I/art (16696): Explicit concurrent mark sweep GC freed 43206(2MB) AllocSpace objects, 7(253KB) LOS objects, 44% free, 19MB/35MB, paused 1.553ms total 67.023ms
02-24 10:48:30.919 D/Mono (16696): GC_TAR_BRIDGE bridges 5451 objects 6861 colors 5451 ignored 485 sccs 5451 xref 45 cache 0/0 setup 1.39ms tarjan 9.60ms scc-setup 3.91ms gather-xref 0.37ms xref-setup 0.08ms cleanup 1.98ms
02-24 10:48:30.919 D/Mono (16696): GC_BRIDGE: Complete, was running for 159.38ms
02-24 10:48:30.919 D/Mono (16696): GC_MAJOR: (user request) time 77.69ms, stw 78.71ms los size: 4096K in use: 1740K
02-24 10:48:30.919 D/Mono (16696): GC_MAJOR_SWEEP: major size: 4672K in use: 3096K
(btw: the Thread finished: UdpReceiveThread #11 is because in the Dispose we cleanup the socket.. so it is the result not the cause of the app crashing.)
LogCat doesn't show a lot of interesting information to me:
02-24 10:48:30.239: E/SmartFaceService(990): onReceive: android.intent.action.DOCK_EVENT
02-24 10:48:30.299: W/BackupManagerService(990): dataChanged but no participant pkg='com.android.providers.settings' uid=1001
02-24 10:48:30.319: I/SecKeyguardClockSingleView(1221): Ignore. Because it is same clock text
02-24 10:48:30.319: W/MotionRecognitionService(990): onReceive() getIntExtra 1
02-24 10:48:30.319: I/AudioPolicyManager(346): setForceUse() usage 3, config 7, mPhoneState 0
02-24 10:48:30.329: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 2
02-24 10:48:30.329: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 4
02-24 10:48:30.339: I/PERF(1221): received broadcast android.intent.action.BATTERY_CHANGED
02-24 10:48:30.349: I/ActivityManager(990): Config changes=200 {0 1.0 ?mcc?mnc en_AU ?layoutDir sw600dp w961dp h576dp 213dpi lrg land desk finger -keyb/v/h -nav/h mkbd/? s.83}
02-24 10:48:30.379: I/SamsungIME(3463): [Before] hardKeyboardHidden(2) keyboardType(1)
02-24 10:48:30.379: I/SamsungIME(3463): mHwKeyboardShown [isHWKeyboardOpen()] = false --> false
02-24 10:48:30.379: E/SamsungIME(3463): isHWKeyboardConnected() = false --> false
02-24 10:48:30.379: I/SamsungIME(3463): [hasToCallSuper] true
02-24 10:48:30.389: I/SurfaceFlinger(322): id=1221 createSurf (800x1280),2 flag=4, TcreenshotS
02-24 10:48:30.399: I/PERF(1221): KeyguardViewMediator - onConfigurationChanged()
02-24 10:48:30.409: W/ScoverManager(1221): getCoverState : This device is not supported cover
02-24 10:48:30.419: I/ValidateNoPeople(990): skipping global notification
02-24 10:48:30.429: E/SmartFaceService(990): onReceive: android.intent.action.CONFIGURATION_CHANGED
02-24 10:48:30.429: E/SmartFaceService(990): mFolderCoverOpened: (true, true) -> true
02-24 10:48:30.439: E/Tethering(990): No numeric data
02-24 10:48:30.439: I/Telecom(990): CallAudioManager : turning speaker : true
02-24 10:48:30.439: I/Telecom(990): : received EVENT_DOCK_STATE_CHANGED. Phone inDock = true state=1
02-24 10:48:30.449: I/AudioPolicyManager(346): setForceUse() usage 0, config 1, mPhoneState 0
02-24 10:48:30.449: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 2
02-24 10:48:30.449: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 4
02-24 10:48:30.449: I/LocationManagerService(990): remove 31e0e601 by com.google.android.gms
02-24 10:48:30.459: I/PageBuddyNotiSvc(15563): Intent received : action=android.intent.action.DOCK_EVENT
02-24 10:48:30.459: I/PageBuddyNoti(15563): mCPBroadcastReceiver action=android.intent.action.DOCK_EVENT
02-24 10:48:30.479: E/WifiStateMachine(990): WifiStateMachine CMD_START_SCAN source 10008 txSuccessRate=0.25 rxSuccessRate=0.22 targetRoamBSSID=any RSSI=-36
02-24 10:48:30.479: I/wpa_supplicant(1199): wlan0: Setting scan request: 0 sec 0 usec
02-24 10:48:30.479: I/wpa_supplicant(1199): P2P: Current p2p state = IDLE
02-24 10:48:30.479: I/wpa_supplicant(1199): Scan requested (ret=0) - scan timeout 30 seconds
02-24 10:48:30.479: I/Sandman(990): Dreams currently disabled for docks.
02-24 10:48:30.539: E/LocSvc_utils_cfg(990): W/loc_read_sec_gps_conf: no secgps conf file, using defaults
02-24 10:48:30.539: I/SecKeyguardClockSingleView(1221): Ignore. Because it is same clock text
02-24 10:48:30.539: E/LocSvc_ApiV02(990): I/virtual loc_api_adapter_err LocApiV02::startFix(const LocPosMode&):428]: position_mode=0.
02-24 10:48:30.669: I/PhoneStatusBar(1221): Icon Only
02-24 10:48:30.669: I/StatusBar(1221): Icon Only
02-24 10:48:30.679: I/PhoneStatusBar(1221): Icon Only
02-24 10:48:30.679: I/StatusBar(1221): Icon Only
-------> APP is gone here <--------
02-24 10:48:30.869: I/art(16696): Explicit concurrent mark sweep GC freed 43206(2MB) AllocSpace objects, 7(253KB) LOS objects, 44% free, 19MB/35MB, paused 1.553ms total 67.023ms
02-24 10:48:31.009: I/WindowState(990): WIN DEATH: Window{3c5c909 u0 d0 my_app_tablet.my_app_tablet}
02-24 10:48:31.019: I/LocationManagerService(990): remove 1561a80 by my_app_tablet.my_app_tablet
02-24 10:48:31.019: I/ActivityManager(990): Process my_app_tablet.my_app_tablet (pid 16696)(adj 0) has died(144,547)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x194, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.019: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.019: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.019: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.019: I/SecVideoCapture(346): reset
02-24 10:48:31.019: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.029: W/ActivityManager(990): Force removing ActivityRecord{7563305 u0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView t183}: app died, no saved state
02-24 10:48:31.029: I/WindowState(990): WIN DEATH: Window{2e8aa90d u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView}
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x195, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.029: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.029: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.039: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.039: I/SecVideoCapture(346): reset
02-24 10:48:31.039: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.039: I/SurfaceFlinger(322): id=1220 Removed NainActivit (4/8)
02-24 10:48:31.039: I/SurfaceFlinger(322): id=1220 Removed NainActivit (-2/8)
02-24 10:48:31.049: W/SurfaceFlinger(322): couldn't log to binary event log: overflow.
02-24 10:48:31.049: W/InputDispatcher(990): channel ~ Consumer closed input channel or an error occurred. events=0x9
02-24 10:48:31.049: E/InputDispatcher(990): channel ~ Channel is unrecoverably broken and will be disposed!
02-24 10:48:31.049: W/InputDispatcher(990): channel ~ Consumer closed input channel or an error occurred. events=0x9
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x196, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.049: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.059: E/InputDispatcher(990): channel ~ Channel is unrecoverably broken and will be disposed!
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.059: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.059: I/SecVideoCapture(346): reset
02-24 10:48:31.059: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x197, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.069: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.069: I/SecVideoCapture(346): reset
02-24 10:48:31.069: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.079: I/WindowState(990): WIN DEATH: Window{28a73ed3 u0 d0 my_app_tablet.my_app_tablet}
02-24 10:48:31.079: W/InputDispatcher(990): Attempted to unregister already unregistered input channel
02-24 10:48:31.089: I/WindowState(990): WIN DEATH: Window{29805b27 u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.SoftMeterView}
02-24 10:48:31.089: W/InputDispatcher(990): Attempted to unregister already unregistered input channel
02-24 10:48:31.109: I/Zygote(364): Process 16696 exited due to signal (15)
02-24 10:48:31.119: I/WindowManager(990): Screen frozen for +734ms due to Window{2e8aa90d u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView}
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1222 createSurf (2560x800),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1223 createSurf (1280x1600),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1224 createSurf (2560x800),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1225 createSurf (1280x1600),-1 flag=20004, ClackSurfac
02-24 10:48:31.159: I/WallpaperManagerService(990): switchPersonaWallpaper is called for personaId-0
02-24 10:48:31.159: I/KnoxTimeoutHandler(990): postActiveUserChange, showWhenLocked: false
02-24 10:48:31.159: I/KnoxTimeoutHandler(990): Shared devices show user statefalse
02-24 10:48:31.169: I/SurfaceFlinger(322): id=1226 createSurf (1280x800),1 flag=4, Mauncher
02-24 10:48:31.169: I/art(16921): System.exit called, status: 0
02-24 10:48:31.169: I/AndroidRuntime(16921): VM exiting with result code 0, cleanup skipped.
02-24 10:48:31.189: W/InputMethodManagerService(990): Got RemoteException sending setActive(false) notification to pid 16696 uid 10163
02-24 10:48:31.189: I/ActivityManager(990): Process com.samsung.SMT (pid 16921)(adj 0) has died(163,547)
02-24 10:48:31.199: I/StatusBar(1221): Icon Only
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1221 Removed TcreenshotS (8/12)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1222 Removed ClackSurfac (8/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1221 Removed TcreenshotS (-2/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1222 Removed ClackSurfac (-2/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1223 Removed ClackSurfac (8/10)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1223 Removed ClackSurfac (-2/10)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1224 Removed ClackSurfac (8/9)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1224 Removed ClackSurfac (-2/9)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1225 Removed ClackSurfac (8/8)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1225 Removed ClackSurfac (-2/8)
02-24 10:48:31.389: I/Timeline(1487): Timeline: Activity_idle id: android.os.BinderProxy#279117fd time:22879950
02-24 10:48:31.449: E/AffinityControl(17142): AffinityControl: registerfunction enter
02-24 10:48:31.489: I/ActivityManager(990): Force stopping my_app_tablet.my_app_tablet appid=10163 user=0: from pid 17142
02-24 10:48:31.489: I/ActivityManager(990): Force finishing activity 3 ActivityRecord{2c73677b u0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.SoftMeterView t184}
02-24 10:48:31.819: I/Timeline(990): Timeline: Activity_windows_visible id: ActivityRecord{1045ef89 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t70} time:22880389
02-24 10:48:32.549: I/wpa_supplicant(1199): nl80211: Received scan results (24 BSSes)
02-24 10:48:32.549: I/wpa_supplicant(1199): scan_only_handler, so autoscan_notify() !!!
any leads on where i could look ?
fixed it by adding "ConfigurationChanges = ConfigChanges.UiMode"
to the Main Activity parameters:
[Activity(Label = "View for MainActivityView", LaunchMode = LaunchMode.SingleTop, ScreenOrientation = ScreenOrientation.SensorLandscape, ConfigurationChanges = ConfigChanges.UiMode)]
found it by investigating more about the
onReceive: android.intent.action.CONFIGURATION_CHANGED
in the log, finding out about config changes, and finding a comment that it is normal for Activities to restart when it gets received..
the parameter ConfigurationChanges = ConfigChanges.UiMode either stops these events being passed to my app or being handled properly.. i'm not sure, but it is now stable..

Android Firebase Analytics events dont display on console

I have integrated firebase analytics in My android project. I am trying to capture screen visit events like.
Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "Custom screen");
params.putString(FirebaseAnalytics.Param.ITEM_NAME,"Custom screen name");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
I have also tried from the google sample project with this code
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "1");
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "test name");
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
My debug logs are showing that events are successfully posted.
09-19 14:22:15.364 I/FA ( 3313): App measurement is starting up, version: 9452
09-19 14:22:15.364 I/FA ( 3313): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-19 14:22:15.364 D/FA ( 3313): Debug logging enabled
09-19 14:22:15.365 D/FA ( 3313): AppMeasurement singleton hash: 233567450
09-19 14:22:15.383 V/FA ( 3313): Collection enabled
09-19 14:22:15.383 V/FA ( 3313): App package, google app id: com.prabhu.test, 1:64059382301:android:4262dc7062227fc8
09-19 14:22:15.393 V/FA ( 3313): Registered activity lifecycle callback
09-19 14:22:15.403 V/FA ( 3313): Using measurement service
09-19 14:22:15.404 V/FA ( 3313): Connecting to remote service
09-19 14:22:15.433 V/FA ( 3313): onActivityCreated
09-19 14:22:15.529 I/FA ( 3313): Tag Manager is not found and thus will not be used
09-19 14:22:15.529 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:15.530 V/FA ( 3313): Using measurement service
09-19 14:22:15.530 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:15.532 V/FA ( 3313): Using measurement service
09-19 14:22:15.532 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 V/FA ( 3313): Activity resumed, time: 273496560
09-19 14:22:15.698 D/FA ( 3313): Connected to remote service
09-19 14:22:15.698 V/FA ( 3313): Processing queued up service tasks: 3
09-19 14:22:15.751 V/FA-SVC (10602): Logging event: origin=app,name=select_content,params=Bundle[mParcelledData.dataSize=168]
09-19 14:22:15.766 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:15.768 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
09-19 14:22:16.171 V/FA-SVC (10602): Background event processing time, ms: 423
09-19 14:22:16.171 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:16.175 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:16.175 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:16.212 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557187
09-19 14:22:16.215 V/FA-SVC (10602): Background event processing time, ms: 44
09-19 14:22:20.723 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:22:22.384 V/FA ( 3313): Activity paused, time: 273503415
09-19 14:22:23.515 V/FA ( 3313): onActivityCreated
09-19 14:22:23.531 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:23.531 V/FA ( 3313): Using measurement service
09-19 14:22:23.531 V/FA ( 3313): Connecting to remote service
09-19 14:22:23.539 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:23.539 V/FA ( 3313): Using measurement service
09-19 14:22:23.539 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:23.539 V/FA ( 3313): Activity resumed, time: 273504562
09-19 14:22:23.594 D/FA ( 3313): Connected to remote service
09-19 14:22:23.594 V/FA ( 3313): Processing queued up service tasks: 2
09-19 14:22:23.602 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:23.603 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:23.630 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549768
09-19 14:22:23.632 V/FA-SVC (10602): Background event processing time, ms: 35
09-19 14:22:23.632 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:23.636 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:23.636 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:23.648 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549750
09-19 14:22:23.651 V/FA-SVC (10602): Background event processing time, ms: 18
09-19 14:22:26.687 V/FA ( 3313): Session started, time: 273507718
09-19 14:22:26.699 D/FA ( 3313): Logging event (FE): _s, Bundle[{_o=auto}]
09-19 14:22:26.709 V/FA-SVC (10602): Logging event: origin=auto,name=_s,params=Bundle[mParcelledData.dataSize=36]
09-19 14:22:26.738 V/FA-SVC (10602): Saving event, name, data size: _s, 19
09-19 14:22:26.739 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_s', params=Bundle[{_o=auto}]}
09-19 14:22:26.754 V/FA-SVC (10602): Upload scheduled in approximately ms: 2546644
09-19 14:22:26.757 V/FA-SVC (10602): Background event processing time, ms: 48
09-19 14:22:31.717 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:24:23.422 V/FA ( 3313): Activity paused, time: 273624439
09-19 14:24:24.423 D/FA ( 3313): Application backgrounded. Logging engagement
09-19 14:24:24.427 D/FA ( 3313): Logging event (FE): _e, Bundle[{_o=auto, _et=126732}]
09-19 14:24:24.427 V/FA ( 3313): Using measurement service
09-19 14:24:24.428 V/FA ( 3313): Connecting to remote service
09-19 14:24:24.444 D/FA ( 3313): Connected to remote service
09-19 14:24:24.444 V/FA ( 3313): Processing queued up service tasks: 1
09-19 14:24:24.450 V/FA-SVC (10602): Logging event: origin=auto,name=_e,params=Bundle[mParcelledData.dataSize=60]
09-19 14:24:24.480 V/FA-SVC (10602): Saving event, name, data size: _e, 30
09-19 14:24:24.481 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_e', params=Bundle[{_o=auto, _et=126732}]}
09-19 14:24:24.500 V/FA-SVC (10602): Upload scheduled in approximately ms: 2428898
09-19 14:24:24.505 V/FA-SVC (10602): Background event processing time, ms: 56
09-19 14:24:29.455 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
But , In my firebase analytics console events are not shown.
Please help me whats wrong with me?
FYI, For the same Google Firebase Analytics Project, events are shown from IOS app.
Look at the log:
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
2557230 ms means 42 min 37 sec
Then also they seem to generate the reports regularly but not realtime.
https://firebase.google.com/docs/analytics/android/events
You can view aggregrated statistics about your events in the Firebase
console dashboards. These dashboards update periodically throughout
the day. For immediate testing, use the logcat output as described in
the previous section.
UPDATE:
See this answer from Steve Ganem, Product Manager for Firebase Analytics:
There is currently no way to manually override these settings.
However, we recognize the need to see your reporting more quickly and
we hope to address this need soon.
BUT, on the same thread Yoxi found a way to force initial upload sooner by clearing application data. I just did myself and I could see the initial upload. But that doesn't seem to make the data visible in the Firebase console any sooner.
11-04 14:46:14.112 V/FA (24746): Upload scheduled in approximately ms: 9028
You can run setprop adb shell setprop debug.firebase.analytics.app <package name>
for example adb shell setprop debug.firebase.analytics.app com.google.android.play.games
If you run this, firebase analytics events are uploaded in near real-time.
check this for more details
https://firebase.google.com/docs/analytics/debugview

Android app suddenly stops - in-app purchase

After I implemented in-app purchase in my android app, it suddenly stops when I close it. And Im struggling to see what the problem is in log cat. Im receiving the error
Permission Denial: get/set setting for user asks to run as user -2 but is calling from
user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
But I have received this error before, and the application still worked fine. Here is my log cat, I was uncertain for how much I needed to add so sorry if it is a lot. Please let me know if I need to add some more, thanks!
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/InputReader( 2347): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.16208 ] when=116815167044000
I/InputDispatcher( 2347): Delivering touch to: action: 0x0
I/InputReader( 2347): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=116815315918000
I/InputDispatcher( 2347): Delivering touch to: action: 0x1
D/BatteryService( 2347): update start
D/BatteryService( 2347): level:80, scale:100, status:2, health:2, present:true, voltage: 4085, temperature: 467, technology: Li-ion, AC powered:false, USB powered:true, Wireless powered:false, icon:17303550, invalid charger:0, online:4, charge type:1, current avg:460
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450, Prev AP = 450, Duration = 10006
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/InputReader( 2347): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.16209 ] when=116820660525000
D/InputDispatcher( 2347): Waiting for application to become ready for input: xxxx Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
D/PowerManagerService( 2347): [api] userActivityFromNative : 50 (event: 2 flags: 0)
D/SensorService( 2347): 0.4 9.9 -0.1
I/InputReader( 2347): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=116820774347000
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/dumpstate(29002): done
D/BatteryService( 2347): Sending ACTION_BATTERY_CHANGED.
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#5
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
W/ActivityManager( 2347): mDVFSHelper.acquire()
D/dalvikvm( 2347): GC_FOR_ALLOC freed 201K, 17% free 52076K/62236K, paused 330ms, total 331ms
I/ActivityManager( 2347): Process com.jb.gosms.emoji (pid 28888) (adj 11) has died.
D/InputDispatcher( 2347): Waiting for application to become ready for input: xxxx Reason: Waiting because the touched window is paused.
I/InputDispatcher( 2347): Window spent 8210.1ms processing the last input event: MotionEvent(action=0, deviceId=5, source=0x00001002, displayId=0)
I/InputDispatcher( 2347): Window spent 8061.8ms processing the last input event: MotionEvent(action=1, deviceId=5, source=0x00001002, displayId=0)
I/ActivityManager( 2347): Process com.google.android.apps.plus (pid 28904) (adj 9) has died.
W/Choreographer(28777): Already have a pending vsync event. There should only be one at a time.
I/ActivityManager( 2347): Process com.facebook.katana (pid 28332) (adj 8) has died.
D/MoPub (28777): Third-party network timed out.
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 11 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x4 level=4
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 11 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
V/MoPub (28777): MoPubErrorCode: Third-party network failed to respond in a timely manner.
D/MoPub (28777): Loading failover url: http://ads.mopub.com/m/ad?v=6&id=9228ebfca6504982941c5601765f658a&nv=1.17.2.0&dn=samsung%2CGT-I9300%2Cm0xx&udid=sha%3A32bc9016036e33b67730c1fadad5c452541e38a5&q=FBATTRID%3Aa3f781d2-2ba6-4265-9690-e4fe0b244cda&z=%2B0200&o=p&sc_a=2.0&mr=1&mcc=242&mnc=05&iso=no&cn=One%20Call&ct=3&av=1.3.8&android_perms_ext_storage=1&request_id=08889b4ab90911e3af000025907c4175&exclude=fbab69084c5611e381c11231392559e4
D/MoPub (28777): Loading url: http://ads.mopub.com/m/ad?v=6&id=9228ebfca6504982941c5601765f658a&nv=1.17.2.0&dn=samsung%2CGT-I9300%2Cm0xx&udid=sha%3A32bc9016036e33b67730c1fadad5c452541e38a5&q=FBATTRID%3Aa3f781d2-2ba6-4265-9690-e4fe0b244cda&z=%2B0200&o=p&sc_a=2.0&mr=1&mcc=242&mnc=05&iso=no&cn=One%20Call&ct=3&av=1.3.8&android_perms_ext_storage=1&request_id=08889b4ab90911e3af000025907c4175&exclude=fbab69084c5611e381c11231392559e4
I/MoPub (28777): Fetching ad for task #1
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 10 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 9 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
D/STATUSBAR-StatusBarManagerService( 2347): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/CrashAnrDetector( 2347): processName: com.guessSound.guessSound
D/CrashAnrDetector( 2347): broadcastEvent : com.guessSound.guessSound data_app_crash
D/STATUSBAR-BatteryController( 8423): onReceive() - ACTION_BATTERY_CHANGED
D/STATUSBAR-BatteryController( 8423): onReceive() - BATTERY_STATUS_CHARGING:
D/webviewglue(28777): nativeDestroy view: 0x5979cee0
D/webviewglue(28777): nativeDestroy view: 0x59c399f0
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
D/STATUSBAR-PhoneStatusBar( 8423): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true
D/STATUSBAR-AirplaneModeQuickSettingButton( 8423): mPhoneStateListener - inAirplaneMode: false
D/STATUSBAR-NetworkController( 8423): onServiceStateChanged state=0
D/STATUSBAR-NetworkController( 8423): updateDataNetType()
D/STATUSBAR-NetworkController( 8423): Nothing, mRoamingIconId = 0
D/WindowManager( 2347): computeScreenConfigurationLocked() set config.orientation=1 dw=720 dh=1280 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.realStartActivityLocked:1021
I/SurfaceFlinger( 1935): id=2621 createSurf (1x1),1 flag=4, huessSound
D/PowerManagerService( 2347): setKeyboardVisibility: false
I/GATE (28777): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
I/InputDispatcher( 2347): Delivering touch to: action: 0x0
I/InputDispatcher( 2347): Delivering touch to: action: 0x1
D/WifiController( 2347): SET_AP_BOOSTER_FLAG ignored due to state change
D/WifiService( 2347): onDataConnectionStateChanged: state -2, networkType - UMTS
D/STATUSBAR-NetworkController( 8423): onDataConnectionStateChanged: state=2 type=3
D/STATUSBAR-NetworkController( 8423): updateDataNetType()
D/STATUSBAR-NetworkController( 8423): Nothing, mRoamingIconId = 0
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
D/ContextualPageReceiver(20224): mContextualPageReceiver: ACTION_SERVICE_STATE_CHANGED isRoaming : false
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
W/ActivityManager( 2347): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 2347): Writing exception to parcel
E/DatabaseUtils( 2347): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 2347): at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13140)
E/DatabaseUtils( 2347): at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
E/DatabaseUtils( 2347): at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
E/DatabaseUtils( 2347): at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
E/DatabaseUtils( 2347): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
E/DatabaseUtils( 2347): at android.os.Binder.execTransact(Binder.java:388)
E/DatabaseUtils( 2347): at com.android.server.SystemServer.init1(Native Method)
E/DatabaseUtils( 2347): at com.android.server.SystemServer.main(SystemServer.java:2012)
E/DatabaseUtils( 2347): at java.lang.reflect.Method.invokeNative(Native Method)
E/DatabaseUtils( 2347): at java.lang.reflect.Method.invoke(Method.java:525)
E/DatabaseUtils( 2347): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
E/DatabaseUtils( 2347): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
E/DatabaseUtils( 2347): at dalvik.system.NativeStart.main(Native Method)
I/power ( 2347): *** release_dvfs_lock : lockType : 1
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#5
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#5
W/ActivityManager( 2347): mDVFSHelper.acquire()
V/RealCellState( 2689): telephonyManager network type is 3
D/PhoneApp( 2708): mReceiver: ACTION_ANY_DATA_CONNECTION_STATE_CHANGED
D/AbsListView(28777): unregisterIRListener() is called
D/FileWriteThread( 2708): FileWriteThread : threadType = 2
D/NotificationMgr( 2708): hideDataDisconnectedRoaming()...
D/MobileDataStateTracker( 2347): default: Received state=CONNECTED, old=CONNECTED, reason=(unspecified)
D/AbsListView(28777): Get MotionRecognitionManager
D/MotionRecognitionService( 2347): ssp status : false
D/dalvikvm(28777): GC_FOR_ALLOC freed 6233K, 27% free 20403K/27816K, paused 57ms, total 57ms
D/StatusChecker(29074): onReceive : android.intent.action.SERVICE_STATE
D/StatusChecker(29074): Service state changed : 0
D/STATUSBAR-NetworkController( 8423): onDataActivity: direction=2
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
I/BootupListener( 2708): mPendingNetworkManualSelection : false
W/FlurryAgent(28777): Continuing previous session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 0
D/AbsListView(28777): unregisterIRListener() is called
D/WindowManager( 2347): computeScreenConfigurationLocked() set config.orientation=1 dw=720 dh=1280 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.realStartActivityLocked:1021
D/PowerManagerService( 2347): setKeyboardVisibility: false
D/webviewglue(28777): nativeDestroy view: 0x596c5bb0
D/webviewglue(28777): nativeDestroy view: 0x57dc5168
I/SurfaceFlinger( 1935): id=2622 createSurf (1x1),1 flag=4, OewGameActi
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): Get MotionRecognitionManager
D/MotionRecognitionService( 2347): ssp status : false
D/dalvikvm( 2896): GC_CONCURRENT freed 410K, 30% free 10387K/14804K, paused 4ms+4ms, total 44ms
W/FlurryAgent(28777): Continuing previous session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 0
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
D/dalvikvm(28777): GC_CONCURRENT freed 651K, 23% free 21680K/27816K, paused 11ms+6ms, total 58ms
I/SurfaceFlinger( 1935): id=2623 createSurf (720x1280),1 flag=4, OewGameActi
D/dalvikvm(28826): GC_EXPLICIT freed 1284K, 19% free 11047K/13512K, paused 4ms+16ms, total 93ms
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/power ( 2347): *** release_dvfs_lock : lockType : 1
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#5
W/ActivityManager( 2347): mDVFSHelper.release()
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
D/AbsListView(28777): unregisterIRListener() is called
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#8
D/MoPub (28777): Ad Unit (9228ebfca6504982941c5601765f658a) going invisible: disabling refresh
D/MoPub (28777): Automatic refresh for com.mopub.mobileads.AdConfiguration#42d65750 set to: false.
D/STATUSBAR-NetworkController( 8423): onDataActivity: direction=0
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/SurfaceFlinger( 1935): id=2622 Removed OewGameActi (3/7)
I/SurfaceFlinger( 1935): id=2622 Removed OewGameActi (-2/7)
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
W/FlurryAgent(28777): Trying to end session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getBestProvider(Criteria[power=NO_REQ acc=---], true)=null
W/FlurryAgent(28777): Trying to end session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getBestProvider(Criteria[power=NO_REQ acc=---], true)=null
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/power ( 2347): *** release_dvfs_lock : lockType : 1
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#8
UPDATE
Here is my Android manifest, Im develop the app in phonegap and use therefore a plugin for the purchase, the java code is below the manifest
<manifest android:hardwareAccelerated="true" android:versionCode="5" android:versionName="1.3.0" android:windowSoftInputMode="adjustPan" package="com.guessSound.guessSound" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<application android:debuggable="false" android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:name="com.guessSound.guessSound.MainApplication">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/app_name" android:name="com.guessSound.guessSound.GuessThisSound" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.android.vending.BILLING" />
</manifest>
I do first buy it and then consume it, because it looks like I cant buy a consume item while testing with the test productID
private void buy(final String sku){
/* TODO: for security, generate your payload here for verification. See the comments on
* verifyDeveloperPayload() for more info. Since this is a sample, we just use
* an empty string, but on a production app you should generate this. */
final String payload = "";
if (mHelper == null){
callbackContext.error("Billing plugin was not initialized");
return;
}
this.cordova.setActivityResultCallback(this);
mHelper.launchPurchaseFlow(cordova.getActivity(), sku, RC_REQUEST,
mPurchaseFinishedListener, payload);
}
private void consumePurchase(JSONArray data) throws JSONException{
if (mHelper == null){
callbackContext.error("Did you forget to initialize the plugin?");
return;
}
String sku = data.getString(0);
// Get the purchase from the inventory
Purchase purchase = myInventory.getPurchase(sku);
if (purchase != null)
// Consume it
mHelper.consumeAsync(purchase, mConsumeFinishedListener);
else
callbackContext.error(sku + " is not owned so it cannot be consumed");
}
UPDATE 2.0
Im calling the consumePurchase in the successmethod to buy. Could this cause the problem? After I remove the consumepurchase in the successmethod, it looks like I don't get that error.. So how can I buy a consume item without using consumepurchase right after I have bought the item? Could it work if I add a timer, or is it any better solution to this?
User 0 usually indicates root. Are you running your app as root?

Cannot install apk file from Eclipse Emulator to Note II

I am completely new to Android and Java. I am currently taking a course that is introducing me to Android and Eclipse. I am having an issue. Once I have built my app, I can run it through the virtual app, but I cannot install it to my Galaxy Note II phone. I have debugging, mock and unknown sources allowed. Eclipse can see my phone.
Also, I am able to install the apk through explorer. I recently read that the apk should be signed as well. How do I do this and can anyone else help?
[2013-12-10 18:44:47 - Awesome2a] ------------------------------
[2013-12-10 18:44:47 - Awesome2a] Android Launch!
[2013-12-10 18:44:48 - Awesome2a] adb is running normally.
[2013-12-10 18:44:48 - Awesome2a] Performing myapp.awesome2a.MainActivity activity launch
[2013-12-10 18:44:48 - Awesome2a] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-12-10 18:45:14 - Awesome2a] Uploading Awesome2a.apk onto device '42f73302b863bf67'
[2013-12-10 18:45:15 - Awesome2a] Installing Awesome2a.apk...
[2013-12-10 18:45:16 - Awesome2a] Installation failed due to invalid APK file!
[2013-12-10 18:45:16 - Awesome2a] Please check logcat output for more details.
[2013-12-10 18:45:16 - Awesome2a] Launch canceled!
When I take a look at Logcat, I receive this information.
12-10 18:44:00.002: D/STATUSBAR-Clock(3084): onReceive() - ACTION_TIME_TICK
12-10 18:44:00.007: D/STATUSBAR-Clock(3084): onReceive() - ACTION_TIME_TICK
12-10 18:44:00.032: D/ClockAlarmWidgetService(5457): [ClockAlarmWidgetService] onReceive: action = android.intent.action.TIME_TICK
12-10 18:44:00.032: E/ClockAlarmWidget(5457): [AlarmWidgetIdManager] getListItem() : itemIndex=0, widgetID:1
12-10 18:44:00.032: E/ClockAlarmWidget(5457): [AlarmWidgetIdManager] getListItem() : ItemIndex exceed ListItemCount. itemIndex=1
12-10 18:44:00.032: E/ClockAlarmWidget(5457): [AlarmWidgetIdManager] getListItem() : itemIndex=1, widgetID:1
12-10 18:44:00.032: D/ClockAlarmWidget(5457): [ClockAlarmWidgetProvider] fillData() - itemIndex:0, listitemID: 0
12-10 18:44:00.037: D/ClockAlarmDataProvider(5457): getAlarm() - too many same ID alarm data. nCount: 0
12-10 18:44:00.042: D/ClockAlarmWidget(5457): alarmItem = null
12-10 18:44:00.042: D/ClockWidget(2408): refreshTime()
12-10 18:44:00.047: D/ClockWidget(2408): TTS Message = It is 6 : 44 PM, Tuesday, December 10
12-10 18:44:05.727: E/MtpService(3505): In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
12-10 18:44:05.727: E/MtpService(3505): battPlugged Type : 2
12-10 18:44:05.727: D/BatteryService(2408): update start
12-10 18:44:05.727: D/BatteryService(2408): level:100 scale:100 status:2 health:2 present:true voltage: 4326 temperature: 249 technology: Li-ion AC powered:false USB powered:true icon:17303211 invalid charger:0
12-10 18:44:05.727: D/STATUSBAR-BatteryController(3084): onReceive() - ACTION_BATTERY_CHANGED
12-10 18:44:05.727: D/STATUSBAR-BatteryController(3084): onReceive() - level:100
12-10 18:44:05.727: D/STATUSBAR-BatteryController(3084): onReceive() - plugged:2
12-10 18:44:05.727: D/STATUSBAR-BatteryController(3084): onReceive() - BATTERY_STATUS_CHARGING:
12-10 18:44:05.732: D/STATUSBAR-PhoneStatusBar(3084): ACTION_BATTERY_CHANGED
12-10 18:44:05.732: D/STATUSBAR-PhoneStatusBar(3084): NORMAL_BATTERY
12-10 18:44:05.737: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:23.687: E/Watchdog(2408): !#Sync 28
12-10 18:44:29.682: E/WifiHW(2408): ##################### set firmware type 0 #####################
12-10 18:44:29.682: D/WifiStateMachine(2408): setWifiEnabled : WifiNative.setFwType(0)
12-10 18:44:29.682: V/AlarmManager(2408): waitForAlarm result :4
12-10 18:44:29.682: V/AlarmManager(2408): trigger ELAPSED_REALTIME_WAKEUP or RTC_WAKEUP
12-10 18:44:29.682: D/WifiService(2408): startScan: false pid=3965, uid=10019
12-10 18:44:29.687: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:29.697: I/wpa_supplicant(3889): Scan requested (ret=0) - scan timeout 30 seconds
12-10 18:44:29.762: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:33.347: I/wpa_supplicant(3889): nl80211: Received scan results (9 BSSes)
12-10 18:44:33.347: D/Tethering(2408): interfaceLinkStateChanged wlan0, true
12-10 18:44:33.347: D/Tethering(2408): interfaceStatusChanged wlan0, true
12-10 18:44:33.357: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:33.377: D/dalvikvm(3965): GC_CONCURRENT freed 511K, 8% free 13209K/14343K, paused 1ms+1ms, total 14ms
12-10 18:44:33.377: D/dalvikvm(3965): WAIT_FOR_CONCURRENT_GC blocked 8ms
12-10 18:44:33.382: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:33.412: E/WifiHW(2408): ##################### set firmware type 0 #####################
12-10 18:44:33.412: D/WifiStateMachine(2408): setWifiEnabled : WifiNative.setFwType(0)
12-10 18:44:33.417: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:33.467: I/GCoreUlr(3965): Successfully inserted location
12-10 18:44:33.467: I/GCoreUlr(3965): Not calling LocationReportingService, hasMoved: false, elapsed millis: 780030, request: Phone
12-10 18:44:34.682: V/AlarmManager(2408): waitForAlarm result :4
12-10 18:44:41.742: D/BatteryService(2408): update start
12-10 18:44:41.747: E/MtpService(3505): In MTPAPP onReceive:android.intent.action.BATTERY_CHANGED
12-10 18:44:41.747: E/MtpService(3505): battPlugged Type : 2
12-10 18:44:41.747: D/BatteryService(2408): level:100 scale:100 status:2 health:2 present:true voltage: 4326 temperature: 242 technology: Li-ion AC powered:false USB powered:true icon:17303211 invalid charger:0
12-10 18:44:41.747: D/STATUSBAR-BatteryController(3084): onReceive() - ACTION_BATTERY_CHANGED
12-10 18:44:41.747: D/STATUSBAR-BatteryController(3084): onReceive() - level:100
12-10 18:44:41.747: D/STATUSBAR-BatteryController(3084): onReceive() - plugged:2
12-10 18:44:41.747: D/STATUSBAR-BatteryController(3084): onReceive() - BATTERY_STATUS_CHARGING:
12-10 18:44:41.762: W/AlarmManager(2408): FACTORY_ON= 0
12-10 18:44:41.762: D/STATUSBAR-PhoneStatusBar(3084): ACTION_BATTERY_CHANGED
12-10 18:44:41.762: D/STATUSBAR-PhoneStatusBar(3084): NORMAL_BATTERY
12-10 18:44:41.777: D/dalvikvm(3965): GC_CONCURRENT freed 396K, 8% free 13201K/14343K, paused 12ms+1ms, total 27ms
12-10 18:44:53.687: E/Watchdog(2408): !#Sync 29
12-10 18:44:59.997: V/AlarmManager(2408): waitForAlarm result :8
12-10 18:44:59.997: V/AlarmManager(2408): ClockReceiver onReceive() ACTION_TIME_TICK
12-10 18:44:59.997: W/AlarmManager(2408): FACTORY_ON= 0
I have absolutely no clue. Can you help.
Hmm, I would suspect that there is something wrong with the project settings or androidmanifest.xml file. In Eclipse's top bar, can you go to Run > Run Configurations, flip over to the "Target" tab and select "Always prompt to pick device" for your current configuration? Just to make sure it's being deployed to the right device. Presuming that doesn't fix it, could you post the android manifest? Also, are you using any libraries or do you have any external dependencies?
Usualy if you go to
Project > Unset build automatically
and then,
Proyect > clean
and then, in project explorer:
right click on project name > refresh
and then,
Proyect > build project
Then uninstall from the device any version of the app that you could have, and try to install it again.

Connection timed out after changing connection type

I use the following code in my app:
if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
...
Normally it works fine, but after switching from wifi to 3G I get the following exception:
21:04:21.358: I/WifiService(2277): setShowAccessPointListDialog():false
21:04:21.368: I/WifiService(2277): setWifiEnabledDialog(): false
21:04:21.393: I/WifiHW(2277): wifi_stop_supplicant: Enter
21:04:21.393: I/WifiHW(2277): wifi_stop_supplicant: connecting supplicant is done
21:04:21.393: I/WifiHW(2277): wifi_stop_supplicant: status of supplicant(connected), count(49)
21:04:21.393: I/wpa_supplicant(22752): CTRL-EVENT-TERMINATING - signal 15 received
21:04:21.393: I/wpa_supplicant(22752): CTRL-EVENT-TERMINATING - signal 0 received
21:04:21.393: I/WifiMonitor(2277): Event [CTRL-EVENT-TERMINATING - signal 15 received]
21:04:21.393: V/WifiStateTracker(2277): Connection to supplicant lost
21:04:21.418: I/wpa_supplicant(22752): CTRL-EVENT-STATE-CHANGE id=1 state=0 BSSID=00:00:00:00:00:00
21:04:22.443: I/dhcpcd(22766): received SIGTERM, stopping
21:04:22.508: I/WifiHW(2277): wifi_stop_supplicant: exit normally
21:04:22.508: D/WifiStateTracker(2277): Reset connections and stopping DHCP
21:04:22.513: I/WifiHW(2277): wifi_close_supplicant_connection: enter
21:04:22.513: I/WifiHW(2277): wifi_close_supplicant_connection: exit
21:04:22.528: D/NetworkStateTracker(2277): setDetailed state, old =CONNECTED and new state=DISCONNECTED
21:04:22.528: D/ConnectivityService(2277): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
21:04:22.528: D/ConnectivityService(2277): getMobileDataEnabled returning true
21:04:22.533: D/DataConnectionTracker(2332): setEnabled(0, true) with old state = false and enabledCount = 0
21:04:22.558: V/ConnectivityService(2277): Attempting to switch to mobile
21:04:22.578: D/MobileDataStateTracker(2277): default Received state= DISCONNECTED, old= DISCONNECTED, reason= apnSwitched, apnTypeList= default
21:04:22.583: D/Tethering(2277): Tethering got CONNECTIVITY_ACTION
21:04:22.583: D/Tethering(2277): MasterInitialState.processMessage what=3
21:04:22.583: E/HierarchicalStateMachine(2277): TetherMaster - unhandledMessage: msg.what=3
21:04:22.618: D/MobileDataStateTracker(2277): default Received state= DISCONNECTED, old= DISCONNECTED, reason= apnSwitched, apnTypeList= default
21:04:22.638: D/GpsLocationProvider(2277): updateNetworkState available info: NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: false
21:04:22.658: D/WifiStateTracker(2277): Disabling interface
21:04:22.658: I/WifiHW(2277): wifi_unload_driver: enter
21:04:22.663: D/MobileDataStateTracker(2277): default Received state= DISCONNECTED, old= DISCONNECTED, reason= apnSwitched, apnTypeList= default
21:04:22.723: D/MobileDataStateTracker(2277): default Received state= CONNECTING, old= DISCONNECTED, reason= apnSwitched, apnTypeList= default,supl
21:04:22.723: D/NetworkStateTracker(2277): setDetailed state, old =DISCONNECTED and new state=CONNECTING
21:04:22.728: D/ConnectivityService(2277): ConnectivityChange for mobile: CONNECTING/CONNECTING
21:04:22.773: I/GTalkService(22533): [ServiceAutoStarter] --- connectivity changed
21:04:22.773: I/GTalkService(22533): [ServiceAutoStarter] --- start GTalk service ---
21:04:22.883: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:22.888: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:22.893: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:22.893: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:23.453: E/WifiHW(2277): [WIFI] Unload Driver
21:04:23.453: I/WifiHW(2277): wifi_unload_driver: exit
21:04:23.493: I/DBG_WSS_DM(22809): [wssStartService.java Line:1413] ProtoIsWIFIConnected WiFi DisConnected
21:04:23.588: I/DBG_WSS_DM(22809): [wssTelephonyData.java Line:131] getInstance PHONE_TYPE_GSM
21:04:23.758: V/SettingsProvider(2277): secure <- value=0 name=wifi_on
21:04:23.758: V/SettingsProvider(2277): property: sys.settings_secure_version=42
21:04:23.768: V/SettingsProvider(2277): notifying: content://settings/secure/wifi_on
21:04:24.483: D/Tethering(2277): pdp0 is not a tetherable iface, ignoring
21:04:24.538: E/DataRouter(2171): [*] Received suspend/ resume event but DUN is not up so neglect
21:04:24.548: D/MobileDataStateTracker(2277): replacing old mInterfaceName (pdp0) with pdp0 for hipri
21:04:24.553: D/MobileDataStateTracker(2277): replacing old mInterfaceName (pdp0) with pdp0 for supl
21:04:24.553: D/MobileDataStateTracker(2277): default Received state= CONNECTED, old= CONNECTING, reason= apnSwitched, apnTypeList= default,supl
21:04:24.563: D/MobileDataStateTracker(2277): CONNECTED interface name pdp0
21:04:24.563: D/MobileDataStateTracker(2277): -> net.pdp0.gw: 100.97.40.1
21:04:24.563: D/MobileDataStateTracker(2277): -> mDefaultGatewayAddr: 19423588
21:04:24.563: D/MobileDataStateTracker(2277): -------------------------
21:04:24.563: D/MobileDataStateTracker(2277): #net.pdp0.gw: 100.97.40.1
21:04:24.563: D/MobileDataStateTracker(2277): #net.pdp1.gw:
21:04:24.563: D/MobileDataStateTracker(2277): #net.pdp2.gw:
21:04:24.563: D/MobileDataStateTracker(2277): -------------------------
21:04:24.568: D/NetworkStateTracker(2277): setDetailed state, old =CONNECTING and new state=CONNECTED
21:04:24.568: V/NetworkStateTracker(2277): Setting TCP values: [4094,87380,110208,4096,16384,110208] which comes from [net.tcp.buffersize.umts]
21:04:24.568: D/ConnectivityService(2277): ConnectivityChange for mobile: CONNECTED/CONNECTED
21:04:24.598: I/DBG_WSS_DM(22809): [wssTelephonyData.java Line:131] getInstance PHONE_TYPE_GSM
21:04:24.598: D/ConnectivityService(2277): adding dns 10.74.210.210 for mobile
21:04:24.608: D/NetworkStateTracker(2277): addDefaultRoute for mobile(pdp0), GatewayAddr=19423588 mDefaultRouteSet=false
21:04:24.608: D/NetworkStateTracker(2277): addDefaultRoute for mobile (pdp0), GatewayAddr=19423588
21:04:24.608: D/ConnectivityService(2277): adding dns 10.74.210.211 for mobile
21:04:24.623: D/Tethering(2277): Tethering got CONNECTIVITY_ACTION
21:04:24.628: D/Tethering(2277): MasterInitialState.processMessage what=3
21:04:24.628: E/HierarchicalStateMachine(2277): TetherMaster - unhandledMessage: msg.what=3
21:04:24.733: D/Smack(22533): [XMPPConn] close connection, notifyClosed=false
21:04:24.748: D/GpsLocationProvider(2277): updateNetworkState available info: NetworkInfo: type: mobile[UMTS], state: CONNECTED/CONNECTED, reason: apnSwitched, extra: internet.t-mobile, roaming: false, failover: false, isAvailable: true
21:04:24.798: I/DBG_WSS_TP(22809): [wssHttpAdapter.java Line:1722] getIsConnected connect status is false
21:04:24.808: I/DBG_WSS_DM(22809): [wssStartService.java Line:1413] ProtoIsWIFIConnected WiFi DisConnected
21:04:24.808: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:24.923: W/Smack/Packet(22533): notify conn break (IOEx), close connection
21:04:24.928: I/GTalkService(22533): [ServiceAutoStarter] --- connectivity changed
21:04:24.928: I/GTalkService(22533): [ServiceAutoStarter] --- start GTalk service ---
21:04:32.948: I/DBG_WSS_TP(22809): [wssHttpAdapter.java Line:1722] getIsConnected connect status is false
21:04:32.988: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:36.008: I/DBG_WSS_TP(22809): [wssHttpAdapter.java Line:1722] getIsConnected connect status is false
21:04:36.013: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:04:41.868: V/MyAppIntentService(22454): MyAppIntentService
21:04:41.943: V/MyAppIntentService(22454): myAppUpdate isOnline
21:04:42.003: V/MyAppIntentService(22454): myAppUpdate moveToNext
21:05:12.493: W/IInputConnectionWrapper(22454): getExtractedText on inactive InputConnection
21:05:12.498: W/IInputConnectionWrapper(22454): getExtractedText on inactive InputConnection
21:05:17.643: D/GoogleLoginService(22533): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
21:06:56.483: D/NativeCrypto(22533): Freeing OpenSSL session
21:26:51.628: W/System.err(22454): java.net.SocketException: Connection timed out
21:26:51.668: W/System.err(22454): at org.apache.harmony.luni.platform.OSNetworkSystem.readSocketImpl(Native Method)
21:26:51.673: W/System.err(22454): at org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java:358)
21:26:51.683: W/System.err(22454): at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:561)
21:26:51.688: W/System.err(22454): at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
21:26:51.703: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.readln(HttpURLConnectionImpl.java:1279)
21:26:51.708: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.readServerResponse(HttpURLConnectionImpl.java:1351)
21:26:51.718: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.sendRequest(HttpURLConnectionImpl.java:1339)
21:26:51.728: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequestInternal(HttpURLConnectionImpl.java:1656)
21:26:51.733: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequest(HttpURLConnectionImpl.java:1649)
21:26:51.743: W/System.err(22454): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:1374)
21:26:51.748: W/System.err(22454): at com.dummy.myApp.MyAppIntentService.myAppUpdate(MyAppIntentService.java:117)
21:26:51.753: W/System.err(22454): at com.dummy.myApp.MyAppIntentService.onHandleIntent(MyAppIntentService.java:85)
21:26:51.758: W/System.err(22454): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
21:26:51.768: W/System.err(22454): at android.os.Handler.dispatchMessage(Handler.java:99)
21:26:51.773: W/System.err(22454): at android.os.Looper.loop(Looper.java:123)
21:26:51.783: W/System.err(22454): at android.os.HandlerThread.run(HandlerThread.java:60)
21:26:51.783: V/MyAppIntentService(22454): myAppUpdate moveToNext
21:26:53.943: I/DBG_WSS_TP(22809): [wssHttpAdapter.java Line:1722] getIsConnected connect status is false
21:26:53.948: D/NetworkLocationProvider(2277): onDataConnectionStateChanged 3
21:26:55.723: V/MyAppIntentService(22454): myAppUpdate HTTP_OK
21:26:56.583: V/MyAppIntentService(22454): myAppUpdate moveToNext
21:26:57.943: V/MyAppIntentService(22454): myAppUpdate HTTP_OK
21:26:58.773: V/MyAppIntentService(22454): myAppUpdate moveToNext
21:26:59.983: V/MyAppIntentService(22454): myAppUpdate HTTP_OK
21:27:00.893: V/MyAppIntentService(22454): myAppUpdate moveToNext
21:27:02.253: V/MyAppIntentService(22454): myAppUpdate HTTP_OK
Why it doesn't work after changing the connection type from wifi to 3G? When switching from 3G to wifi everything works fine.
After the exception it works fine (HTTP_OK). It works also fine, when I kill MyAppIntentService before the exception happens and restart again.
might be your carrier is blocking the connection. test to get the resource with a browser.
or your connection is really slow, try to alter:
HttpConnectionParams.setConnectionTimeout(httpParameters, CONNECTION_TIMEOUT);
I've found a solution here. After adding the described workaround it works:
...
httpConnection.setRequestProperty("connection", "close");
if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
...

Categories

Resources