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?
Related
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" >
I have been confused by a random crash in my app since I updated to cordova 5 and started using crosswalk.
This is my logcat:
D/STATUSBAR-NetworkController( 1110): refreshSignalCluster - setNWBoosterIndicators(false)
D/STATUSBAR-NetworkController( 1110): refreshSignalCluster: data=-1 bt=false
D/STATUSBAR-IconMerger( 1110): checkOverflow(1344), More:false, Req:false Child:5
W/ActivityManager( 891): Permission Denial: getCurrentUser() from pid=32252, uid=10037 requires android.permission.INTERACT_ACROSS_USERS
I/ActivityManager( 891): Process com.tesingguru.tesing_Guru (pid 29852) (adj 0) has died.
I/WindowState( 891): WIN DEATH: Window{42fb82c0 u0 com.tesingguru.tesing_Guru/com.tesingguru.tesing_Guru.MainActivity}
I/SurfaceFlinger( 329): id=3847 Removed NainActivit (16/29)
I/SurfaceFlinger( 329): id=3847 Removed NainActivit (-2/29)
I/FactoryTest( 891): isRunningFactoryApp=false
I/FactoryTest( 891): isRunningFactoryApp=false
W/ActivityManager( 891): Force removing ActivityRecord{4303e860 u0 com.tesingguru.tesing_Guru/.MainActivity t221}: app died, no saved state
I am completely confused by this? The line I am suspecting is:
W/ActivityManager( 891): Permission Denial: getCurrentUser() from pid=32252, uid=10037 requires android.permission.
iv been writing a few Android apps using Xe5 and they all have worked perfectly on Galaxy S3 recently bought a Akaso DTA90 tablet running Android 4.2.2 all the apps that worked on galaxy S3 crash on launch ? Any ideas why this may be ? possibly a Resolution issue ?
I have even tried a basic hello world app and that crashes also
My androidmanifest contans
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.embarcadero.tabtest2"
android:versionCode="1"
android:versionName="1.0.0">
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="9" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:persistent="False"
android:restoreAnyVersion="False"
android:label="tabtest2"
android:installLocation="preferExternal"
android:debuggable="True"
android:largeHeap="False"
android:icon="#drawable/ic_launcher"
android:theme="#android:style/Theme.NoTitleBar">
<!-- Our activity is a subclass of the built-in NativeActivity framework class.
This will take care of integrating with our NDK code. -->
<activity android:name="com.embarcadero.firemonkey.FMXNativeActivity"
android:label="tabtest2"
android:configChanges="orientation|keyboardHidden">
<!-- Tell NativeActivity the name of our .so -->
<meta-data android:name="android.app.lib_name"
android:value="tabtest2" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name="com.embarcadero.firemonkey.notifications.FMXNotificationAlarm" />
</application>
</manifest>
<!-- END_INCLUDE(manifest) -->
Using LogCat i get the following
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
I/ActivityManager( 1935): START u0 {act=android.intent.action.MAIN cat=[android.
intent.category.LAUNCHER] flg=0x10200000 pkg=com.embarcadero.testapp cmp=com.emb
arcadero.testapp/com.embarcadero.firemonkey.FMXNativeActivity bnds=[342,142][410
,222]} from pid 3097
D/audio_hw_primary( 1086): start_output_stream: card:0, port:0, rate:44100
V/alsa_pcm( 1086): pcm_open_req, playback card: 0, device: 0, req_rate: 44100
V/alsa_pcm( 1086): pcm_open_req try rate: 44100
V/alsa_pcm( 1086): pcm_open_req OK config->rate: 44100
I/ActivityManager( 1935): Start proc com.embarcadero.testapp for activity com.em
barcadero.testapp/com.embarcadero.firemonkey.FMXNativeActivity: pid=7014 uid=100
65 gids={50065, 1028}
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
I/dalvikvm( 7014): Turning on JNI app bug workarounds for target SDK version 9..
.
I/qtaguid ( 1935): Failed write_ctrl(s 1 10065) res=-1 errno=1
W/NetworkManagementSocketTagger( 1935): setKernelCountSet(10065, 1) failed with
errno -1
E/Trace ( 7014): error opening trace file: No such file or directory (2)
W/ContextImpl( 7014): Unable to create external files directory
V/TabletStatusBar( 2453): setLightsOn(true)
I/ActivityManager( 1935): Process com.embarcadero.testapp (pid 7014) has died.
I/qtaguid ( 1935): Failed write_ctrl(s 0 10065) res=-1 errno=1
W/NetworkManagementSocketTagger( 1935): setKernelCountSet(10065, 0) failed with
errno -1
I/WindowState( 1935): WIN DEATH: Window{4140e350 u0 com.embarcadero.testapp/com.
embarcadero.firemonkey.FMXNativeActivity}
D/Zygote ( 1084): Process 7014 exited cleanly (217)
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
W/BufferQueue( 1083): freeAllBuffersLocked called but mQueue is not empty
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
W/InputMethodManagerService( 1935): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4125bce8 attribute=n
ull, token = android.os.BinderProxy#41380338
W/WindowManager( 1935): Rebuild removed 5 windows but added 4
W/WindowManager( 1935): This window was lost: Window{4140e350 u0 com.embarcadero
.testapp/com.embarcadero.firemonkey.FMXNativeActivity EXITING}
W/WindowManager( 1935): mDisplayId=0 mSession=Session{4145d470 7014:u0a10065} mC
lient=android.os.BinderProxy#40fddb98
W/WindowManager( 1935): mOwnerUid=10065 mShowToOwnerOnly=true
W/WindowManager( 1935): mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#110 ty=1 fl
=#8010100 pfl=0x8 fmt=4 wanim=0x1030001}
W/WindowManager( 1935): Requested w=480 h=764 mLayoutSeq=4003
W/WindowManager( 1935): mBaseLayer=21000 mSubLayer=0 mAnimLayer=21000+0=21000 mL
astLayer=21025
W/WindowManager( 1935): mToken=AppWindowToken{41bc5f08 token=Token{4118b1d0 Acti
vityRecord{41087ea0 u0 com.embarcadero.testapp/com.embarcadero.firemonkey.FMXNat
iveActivity}}}
W/WindowManager( 1935): mRootToken=AppWindowToken{41bc5f08 token=Token{4118b1d0
ActivityRecord{41087ea0 u0 com.embarcadero.testapp/com.embarcadero.firemonkey.FM
XNativeActivity}}}
W/WindowManager( 1935): mAppToken=AppWindowToken{41bc5f08 token=Token{4118b1d0 A
ctivityRecord{41087ea0 u0 com.embarcadero.testapp/com.embarcadero.firemonkey.FMX
NativeActivity}}}
W/WindowManager( 1935): mViewVisibility=0x0 mHaveFrame=true mObscured=true
W/WindowManager( 1935): mSeq=0 mSystemUiVisibility=0x0
W/WindowManager( 1935): mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0]
[0,0]
W/WindowManager( 1935): mConfiguration={0.95 ?mcc?mnc en_US ldltr sw640dp w640dp
h1018dp 120dpi lrg port finger -keyb/v/h -nav/h s.49}
W/WindowManager( 1935): mHasSurface=true mShownFrame=[0.0,0.0][480.0,764.0] isRe
adyForDisplay()=false
W/WindowManager( 1935): mFrame=[0,0][480,764] last=[0,0][480,764]
W/WindowManager( 1935): mSystemDecorRect=[0,0][480,764] last=[0,0][480,764]
W/WindowManager( 1935): Frames: containing=[0,0][480,764] parent=[0,0][480,764]
display=[0,0][480,764]
W/WindowManager( 1935): content=[0,0][480,764] visible=[0,0][480,764]
W/WindowManager( 1935): Cur insets: content=[0,0][0,0] visible=[0,0][0,0]
W/WindowManager( 1935): Lst insets: content=[0,0][0,0] visible=[0,0][0,0]
W/WindowManager( 1935): WindowStateAnimator{4175e098 com.embarcadero.testapp/com
.embarcadero.firemonkey.FMXNativeActivity}:
W/WindowManager( 1935): mSurface=Surface(name=com.embarcadero.testapp/com.emba
rcadero.firemonkey.FMXNativeActivity, identity=722)
W/WindowManager( 1935): mDrawState=DRAW_PENDING mLastHidden=true
W/WindowManager( 1935): Surface: shown=false layer=21025 alpha=1.0 rect=(0.0,0
.0) 480.0 x 764.0
W/WindowManager( 1935): mExiting=true mRemoveOnExit=true mDestroying=false mRemo
ved=false
W/WindowManager( 1935): Current app token list:
V/WindowManager( 1935): #5: Token{4147e918 ActivityRecord{40f37df8 u0 com.andr
oid.launcher/com.android.launcher2.Launcher}}
V/WindowManager( 1935): #4: Token{40f8ba70 ActivityRecord{40f5a6e0 u0 com.andr
oid.settings/.Settings}}
V/WindowManager( 1935): #3: Token{41026c08 ActivityRecord{41066858 u0 com.andr
oid.vending/.AssetBrowserActivity}}
V/WindowManager( 1935): #2: Token{40fdb350 ActivityRecord{41065178 u0 com.andr
oid.systemui/.usb.UsbStorageActivity}}
V/WindowManager( 1935): #1: Token{412efc28 ActivityRecord{40f59780 u0 com.andr
oid.settings/.Settings$WifiSettingsActivity}}
V/WindowManager( 1935): #0: Token{411d1618 ActivityRecord{41301c10 u0 com.goog
le.android.setupwizard/.SetupWizardActivity}}
W/WindowManager( 1935): Final window list:
V/WindowManager( 1935): #0: Window{4118e328 u0 SearchPanel}
V/WindowManager( 1935): #1: Window{4102e078 u0 NotificationPanel}
V/WindowManager( 1935): #2: Window{40f5fc78 u0 SystemBar}
V/WindowManager( 1935): #3: Window{41207b30 u0 CompatModePanel}
V/WindowManager( 1935): #4: Window{41187228 u0 InputMethodsPanel}
V/WindowManager( 1935): #5: Window{4124bca0 u0 Keyguard}
V/WindowManager( 1935): #6: Window{410404a8 u0 InputMethod}
V/WindowManager( 1935): #7: Window{4130e7f0 u0 com.android.launcher/com.androi
d.launcher2.Launcher}
V/WindowManager( 1935): #8: Window{415a35a0 u0 com.android.settings/com.androi
d.settings.Settings}
V/WindowManager( 1935): #9: Window{413e70d0 u0 com.android.vending/com.android
.vending.AssetBrowserActivity}
V/WindowManager( 1935): #10: Window{41270650 u0 com.android.systemui/com.andro
id.systemui.usb.UsbStorageActivity}
V/WindowManager( 1935): #11: Window{40f526e0 u0 com.android.systemui.ImageWall
paper}
I/SurfaceFlinger( 1083): GraphicBufferAlloc::createGraphicBuffer
It appears, from your logcat, that despite the manifest containing a permission to write to external storage, your device is still not permitting it, perhaps due to an absence of external storage (or simulated external storage):
W/ContextImpl( 7014): Unable to create external files directory
I don't recall just now what it is that causes Delphi startup to want to write stuff, however if you remove the StartupCopy unit from the project fiule uses clause, yuo may see a difference in logcat....
Assuming you are doing an Ad-Hoc build via Eclipse, (Run As -> Android Application), just open the LogCat View (Window -> Show View -> Other, Android > LogCat) and post the error traceback that you get on the crashing tablet.
It's very possible that the Android version is wrong, or it doesn't have enough memory, or you are using a feature that is not available, but we won't know without the traceback.
I'm trying to create Android application based on Fousquare API. I need to connect to foursquare account. I generated keys as told in instructions: github - foursquare-android-oauth But result is "Connecting failed". Client id and client secret are in app's settings. What's wrong?
Logcat:
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.foursquare.android.sample/.MainActivity } from pid 1507
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
W/dalvikvm( 1507): disableGcForExternalAlloc: true
W/dalvikvm( 1507): disableGcForExternalAlloc: false
D/SensorService( 1355): enable: get sensor name = BMA150 3-axis Accelerometer
D/Sensors ( 1355): Enable akm: en = 1
D/SensorService( 1355): SensorDevice::activate--: handle = 0x0, enabled = 0x1
D/SensorService( 1355): enable: sensor->activate return value = 0x0
D/SensorService( 1355): enable: calling mActiveSensors.add(handle, rec) = (0x0, 0x991fc8)
D/SensorService( 1355): enable: mActiveConnections.indexOf(connection) = 0x0
D/SensorService( 1355): pid=1355, uid=1000
D/AK8975 ( 1260): Compass Start
V/WindowManager( 1355): Starting animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
D/AK8975 ( 1260): Ignore M_Sensor: (y, p, r) = ( 139, 0, 3), Status = 0
D/ATRecorder(19226): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader#4053d0e0
D/WindowManagerImpl(19226): addView, new view, mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView#40538ca8
D/WindowManagerImpl( 1355): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
I/ActivityManager( 1355): Displayed com.foursquare.android.sample/.MainActivity: +210ms
V/ActivityManager( 1355): Checking to restart com.foursquare.android.sample.MainActivity: changed=0x0, handles=0x0
V/ActivityManager( 1355): oldConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
V/ActivityManager( 1355): newConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=0,len=1
V/NotificationService( 1355): Charging...
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/brightness string=1,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3
V/NotificationService( 1355): Turn off Charm Ind LED
W/InputManagerService( 1355): [unbindCurrentClientLocked] Disable input method client.
W/InputManagerService( 1355): [startInputLocked] Enable input method client.
D/BatteryService( 1355): SendIntentforPowersaver
D/BatteryService( 1355): Current powersaver status == NORMAL_STATUS
D/WifiService( 1355): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 88 mWifiConnected: true
D/WifiService( 1355): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/StatusBarPolicy( 1507): plugged = true, health = 2, level = 88, mPluggedBatteryLevel = 87, mLowBatteryWarningLevel2 = 25, mshowLowChargingWarning2 = true
E/MyHTC ( 1643): [ImmediateModeProxyMgr] Failed to connect; wait some amount of time before trying again.
W/System.err( 1643): java.net.SocketTimeoutException: Connection timed out
W/System.err( 1643): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)
W/System.err( 1643): at dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:440)
W/System.err( 1643): at java.net.Socket.connect(Socket.java:1013)
W/System.err( 1643): at com.htc.handsetlib.proxy.ImmediateModeProxy.connect(ImmediateModeProxy.java:195)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr._connectToImcOrStatusServer(ImmediateModeProxyMgr.java:134)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr.onIntent(ImmediateModeProxyMgr.java:198)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeService$PushHandler.handleMessage(ImmediateModeService.java:708)
W/System.err( 1643): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1643): at android.os.Looper.loop(Looper.java:150)
W/System.err( 1643): at android.os.HandlerThread.run(HandlerThread.java:60)
D/MyHTC ( 1643): [ImmediateModeProxyMgr] _connectToImcOrStatusServer(): Fail IMC reconnect time = 172000
D/View (19226): onTouchEvent: viewFlags: 0x18004001
D/View (19226): onTouchEvent: isFocusable: true, isFocusableInTouchMode: false, isFocused: false; focusTaken: false
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.VIEW dat=foursquareauth://authorize?client_id=AP5RF0GZVCLPHHQ5HLHD5KQSYG03XIQUTKV1LXFCEQHPYMKS&v=20130509&androidKeyHash=60%3AA4%3AD9%3A06%3A0E%3AD2%3A27%3A56%3A00%3A57%3AF6%3A5D%3AE0%3AB7%3A65%3A39%3AC2%3AA9%3A64%3A34 cmp=com.joelapenna.foursquared/.OauthWebViewActivity } from pid 19226
E/ResourceType( 1355): Style contains key with bad entry: 0x01010397
E/ResourceType( 1355): Style contains key with bad entry: 0x0101039c
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40dce998
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/ActivityManager( 1355): Start proc com.joelapenna.foursquared for activity com.joelapenna.foursquared/.OauthWebViewActivity: pid=19512 uid=10077 gids={3003, 1015}
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971452
V/WindowManager( 1355): Starting animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971452
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971464
V/WindowManager( 1355): Finished animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971464
D/dalvikvm(19512): GC_CONCURRENT freed 139K, 44% free 3202K/5639K, external 0K/0K, paused 3ms+2ms
D/dalvikvm(19512): GC_CONCURRENT freed 96K, 41% free 3529K/5959K, external 0K/0K, paused 2ms+2ms
I/dalvikvm(19512): Could not find method android.os.StrictMode$ThreadPolicy$Builder.detectCustomSlowCalls, referenced from method com.joelapenna.foursquared.Foursquared.d
W/dalvikvm(19512): VFY: unable to resolve virtual method 1630: Landroid/os/StrictMode$ThreadPolicy$Builder;.detectCustomSlowCalls ()Landroid/os/StrictMode$ThreadPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0011
D/dalvikvm(19512): VFY: dead code 0x0014-003f in Lcom/joelapenna/foursquared/Foursquared;.d ()V
I/ActivityThread(19512): Pub com.joelapenna.foursquared: com.joelapenna.foursquared.providers.GlobalSearchProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.db.ConversationsContentProvider: com.joelapenna.foursquared.db.ConversationsContentProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider: com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.AppSearchSuggestionProvider: com.joelapenna.foursquared.providers.AppSearchSuggestionProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.foursquarebridgeprovider: com.joelapenna.foursquared.providers.FoursquareBridgeProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider: com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/dalvikvm(19512): Could not find method android.os.StrictMode$VmPolicy$Builder.detectLeakedClosableObjects, referenced from method com.foursquare.core.h.z.a
W/dalvikvm(19512): VFY: unable to resolve virtual method 1638: Landroid/os/StrictMode$VmPolicy$Builder;.detectLeakedClosableObjects ()Landroid/os/StrictMode$VmPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0025
D/dalvikvm(19512): VFY: dead code 0x0028-0038 in Lcom/foursquare/core/h/z;.a ()V
follow this link:
https://developer.foursquare.com/overview/auth
it's much more informative and explains the process great.
by the way it would be greate if you could paste the exact error and give some more information about what you did....theres not enough info to help you.
Maybe you didn't set the INTERNET PERMISSION in the Android manifest:
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
I'm using the Facebook SDK on Android to post an update to the user's feed. I was able to get it to work when I did not have the Facebook client installed. Now, even after removing the Facebook app, when I try to authorize or open the feed dialog the activity is abrupty killed.
I don't get any message telling me that the app has crashed or anything. It's just destroyed. The only message is Mono telling me that the thread 0x0 has been prematurely finalized, which is odd. Also, there's this odd "Not supported in this case." message from webcore.
I'm using the NativeActivity class. I don't use it directly but I extend it in my activity. Here's the logcat from around where things go wrong:
I/PixelWorldEngine( 6796): Authorizing for Facebook...
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, mode: delete, disk free size: 35 M, handle: 0x801450
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, mode: delete, disk free size: 35 M, handle: 0x7ff128
D/skia ( 6796): htcFlashPlugin::htcFlashPlugin
W/webcore ( 6796): Not supported in this case.
I/PixelWorld-glue( 6796): WindowFocusChanged: 0x333288 -- 0
D/SensorService( 120): disable: connection.get() = 0x9f5c20
D/SensorService( 120): disable: get sensor name = BMA150 3-axis Accelerometer
D/SensorService( 120): SensorDevice::activate: handle = 0x0, enabled = 0x0
D/Sensors ( 120): Enable akm: en = 0
D/SensorService( 120): noteStopSensor: uid = 0x274d, handle = 0x0
D/SensorService( 120): pid=6796, uid=10061
D/SensorService( 120): Active sensors:
D/SensorService( 120): CM3602 Light sensor (handle=0x00000004, connections=1)
W/webcore ( 6796): Not supported in this case.
W/mono ( 6796): Thread 0x0 may have been prematurely finalized
D/SensorGUI( 120): ~SensorChannel: mSendFd = 255, mReceiveFd = -1
D/AudioPolicyService( 72): stopOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
I/ActivityManager( 120): Process com.ri.BubblingUpLite (pid 6796) has died.
I/WindowManager( 120): WIN DEATH: Window{407e9548 com.ri.BubblingUpLite/com.ri.PixelWorldEngine.GameActivity paused=false}
I think it's an Android bug which seems to manifest on HTC devices.
See http://code.google.com/p/android/issues/detail?id=33612