I have an app which takes the location and sends it to a server. I get the following errors which I have no idea from where they came from:
11-05 02:47:11.699 27839-27839/? E/Zygote: MountEmulatedStorage()
11-05 02:47:11.699 27839-27839/? E/Zygote: v2
11-05 02:47:11.719 27839-27839/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
11-05 02:47:12.009 27839-27896/name.company.newapp E/GMPM: getGoogleAppId failed with status: 10
11-05 02:47:12.009 27839-27896/name.company.newapp E/GMPM: Uploading is not possible. App measurement disabled
And here is the full logcat:
11-05 02:47:11.699 27839-27839/? E/Zygote: MountEmulatedStorage()
11-05 02:47:11.699 27839-27839/? E/Zygote: v2
11-05 02:47:11.699 27839-27839/? I/libpersona: KNOX_SDCARD checking this for 10799
11-05 02:47:11.699 27839-27839/? I/libpersona: KNOX_SDCARD not a persona
11-05 02:47:11.719 27839-27839/? I/SELinux: Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-N9005_5.0 ver=27
11-05 02:47:11.719 27839-27839/? I/SELinux: Function: selinux_compare_spd_ram , priority [1] , priority version is VE=SEPF_SM-N9005_5.0_0027
11-05 02:47:11.719 27839-27839/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
11-05 02:47:11.719 27839-27839/? I/art: Late-enabling -Xcheck:jni
11-05 02:47:11.759 27839-27839/? D/TimaKeyStoreProvider: TimaSignature is unavailable
11-05 02:47:11.759 27839-27839/? D/ActivityThread: Added TimaKeyStore provider
11-05 02:47:11.819 27839-27839/name.company.newapp D/ResourcesManager: creating new AssetManager and set to /data/app/name.company.newapp-2/base.apk
11-05 02:47:11.989 27839-27896/name.company.newapp I/GMPM: App measurement is starting up
11-05 02:47:12.009 27839-27896/name.company.newapp E/GMPM: getGoogleAppId failed with status: 10
11-05 02:47:12.009 27839-27896/name.company.newapp E/GMPM: Uploading is not possible. App measurement disabled
11-05 02:47:12.189 27839-27839/name.company.newapp V/Cursor Object: >>>>> Dumping cursor android.content.ContentResolver$CursorWrapperInner#c87f19b
11-05 02:47:12.189 27839-27839/name.company.newapp V/Cursor Object: 0 {
11-05 02:47:12.189 27839-27839/name.company.newapp V/Cursor Object: email=bb#gmail.com
11-05 02:47:12.189 27839-27839/name.company.newapp V/Cursor Object: }
11-05 02:47:12.189 27839-27839/name.company.newapp V/Cursor Object: <<<<<
11-05 02:47:12.189 27839-27839/name.company.newapp I/Timeline: Timeline: Activity_launch_request id:name.company.newapp time:726092745
11-05 02:47:12.209 27839-27839/name.company.newapp D/Activity: performCreate Call secproduct feature valuefalse
11-05 02:47:12.209 27839-27839/name.company.newapp D/Activity: performCreate Call debug elastic valuetrue
11-05 02:47:12.269 27839-27839/name.company.newapp V/Cursor Object: >>>>> Dumping cursor android.content.ContentResolver$CursorWrapperInner#a9eedf8
11-05 02:47:12.269 27839-27839/name.company.newapp V/Cursor Object: 0 {
11-05 02:47:12.269 27839-27839/name.company.newapp V/Cursor Object: fname=D-B
11-05 02:47:12.269 27839-27839/name.company.newapp V/Cursor Object: }
11-05 02:47:12.269 27839-27839/name.company.newapp V/Cursor Object: <<<<<
11-05 02:47:12.269 27839-27839/name.company.newapp D/Activity: performCreate Call secproduct feature valuefalse
11-05 02:47:12.269 27839-27839/name.company.newapp D/Activity: performCreate Call debug elastic valuetrue
11-05 02:47:12.289 27839-27901/name.company.newapp D/OpenGLRenderer: Render dirty regions requested: true
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BF.1.1_RB1.05.00.00.002.025_msm8974_LA.BF.1.1_RB1__release_AU ()
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: OpenGL ES Shader Compiler Version: E031.25.01.03
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: Build Date: 11/19/14 Wed
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: Local Branch: mybranch5813579
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: Remote Branch: quic/LA.BF.1.1_rb1.11
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: Local Patches: NONE
11-05 02:47:12.339 27839-27901/name.company.newapp I/Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1_RB1.05.00.00.002.025 + 30e7589 + NOTHING
11-05 02:47:12.339 27839-27901/name.company.newapp I/OpenGLRenderer: Initialized EGL, version 1.4
11-05 02:47:12.369 27839-27901/name.company.newapp I/OpenGLRenderer: HWUI protection enabled for context , &this =0xaf022088 ,&mEglDisplay = 1 , &mEglConfig = 8
11-05 02:47:12.369 27839-27901/name.company.newapp D/OpenGLRenderer: Enabling debug mode 0
11-05 02:47:12.519 27839-27839/name.company.newapp I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#37fd12d1 time:726093077
I think I have all the necessary permissions.This is my manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="name.company.newapp" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but are recommended.
-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="#string/google_maps_key" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<provider
android:name=".InternetRelated.NightAssetContentProvider"
android:authorities="name.company.newapp.NightAssetContentProvider" >
</provider>
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:theme="#style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".UserActivities.Login"
android:label="#string/title_activity_login"
android:theme="#style/AppTheme.NoActionBar" >
</activity>
<activity
android:name=".UserActivities.AfterLogin"
android:label="#string/title_activity_after_login"
android:theme="#style/AppTheme.NoActionBar" >
</activity>
<activity
android:name=".UploadNewActivity"
android:label="#string/title_activity_upload_new"
android:theme="#style/AppTheme.NoActionBar" >
</activity>
</application>
</manifest>
Related
I'm trying to implement in Android Studio an app which uses Zbar scanner library (https://github.com/dm77/barcodescanner).
I've imported it into my IDE and after a long series of bleeding attempts to reorganize the compatibility of the various versions of the libraries, I've chosen to modify the existing example which uses the Zbar library.
Here comes the strange behaviour: When it comes to get to a new Activity (not one already existing in the original example), the app crashes with no errors or exceptions.
I sat "No filters" for the logs of my IDE, and the logs that I can see when this app crashes are:
04-03 16:22:42.381 2513-2513/? E/Thermal-daemon: [ap] temp_new :33 temp_old :34
04-03 16:22:42.382 2513-2513/? E/Thermal-daemon: Report temperature: [ap] temp :33 report_threshold:1
04-03 16:22:43.644 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense
04-03 16:22:43.702 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense
04-03 16:22:43.728 3085-3520/? E/InputReader: QEEXO fs_classify_touch NULL, not calling FingerSense
04-03 16:22:43.730 3085-3085/? E/QosMonitor: query:IPQos is not initial!!
04-03 16:22:43.757 3085-3103/? E/ReportTools: This is not beta user build
04-03 16:22:43.790 2484-2484/? E/lowmemorykiller: Error writing /proc/1360/oom_score_adj; errno=22
04-03 16:22:43.820 3085-3520/? E/InputReader: QEEXO fs_touch_up NULL, not calling FingerSense
04-03 16:22:43.828 3713-4443/? E/HwSystemManager: LeisureTrafficSetting:result is empty
04-03 16:22:43.865 3085-3519/? E/InputDispatcher: channel '8304ce5 me.dm7.barcodescanner.zbar.sample/me.dm7.barcodescanner.zbar.sample.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-03 16:22:43.867 3085-3095/? E/HsmCoreServiceImpl: onTransact in code is: 102
04-03 16:22:43.896 583-595/? E/TotemWeather: WidgetUtils getWidgetShowCityInfo return myLocation
04-03 16:22:43.899 4135-4207/? E/HwLauncher: SettingsEx , no such field.
04-03 16:22:43.963 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
04-03 16:22:44.012 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
04-03 16:22:44.146 2486-2486/? E/hwcomposer: setGpuBoost:228: Can't open /sys/class/devfreq/gpufreq/max_freq: Permission denied
04-03 16:22:44.494 2486-2486/? E/HAL: load: id=gralloc != hmi->id=gralloc
You have to go in AndroidManifest.xml and set your SplashActivity.class as the launching activity like this:
<activity android:name=".SplashActivity"
android:theme="#style/FullScreenTheme"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
I'm trying to build a Phone+Wear app with NativeScript for Android. I have been able to build both separately and to run them on the Android emulator also. The problem is that I'm unable to package them properly, I mean, I can't package them together in order to install only one APK, that will install the handheld app in the phone and push the wearable app into the watch.
Method and code
Even the post you wrote about Android Wear is quite outdated and the sample code repo is missing, I have been able to build a NativeScript app which APK runs properly in an Android Wear emulator.
I have also a normal phone app built with NativeScript that runs properly in the emulator and in my own device (described bellow).
I have tried to package the app following the steps described by the official documentation in the sections: "Signing the wearable and handheld app separately" and "Package Manually". I have tried both packaging methods but no one is working for me (the last one is also the one described in this post).
Bellow you can see the AndroidManifest.xml and app.gradle files of both applications and the commands that I'm executing to package the signed app:
Wearable App Files
bilbonbizi/wearable/package.json
"nativescript": {
"id": "com.berriart.bilbonbizi",
"tns-android": {
"version": "2.5.0"
}
},
bilbonbizi/wearable/app/App_Resources/Android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>
<uses-sdk
android:minSdkVersion="20"
android:targetSdkVersion="__APILEVEL__"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.location.network" />
<uses-feature android:name="android.hardware.type.watch" />
<application
android:name="com.tns.NativeScriptApplication"
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#android:style/Theme.DeviceDefault">
<activity
android:name="com.tns.NativeScriptActivity"
android:label="#string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="#style/LaunchScreenTheme">
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="#style/AppTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.tns.ErrorReportActivity"/>
</application>
</manifest>
bilbonbizi/wearable/app/App_Resources/Android/app.gradle
dependencies {
compile 'com.google.android.support:wearable:+'
}
android {
defaultConfig {
generatedDensities = []
applicationId = "com.berriart.bilbonbizi"
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
Handled App Files
bilbonbizi/wearable/package.json
"nativescript": {
"id": "com.berriart.bilbonbizi",
"tns-android": {
"version": "2.5.0"
}
},
bilbonbizi/handheld/app/App_Resources/Android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="__APILEVEL__"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.location.network" />
<uses-feature android:name="android.hardware.type.watch" />
<application
android:name="com.tns.NativeScriptApplication"
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<meta-data android:name="com.google.android.wearable.beta.app"
android:resource="#xml/wearable_app_desc"/>
<activity
android:name="com.tns.NativeScriptActivity"
android:label="#string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait"
android:theme="#style/LaunchScreenTheme">
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="#style/AppTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.tns.ErrorReportActivity"/>
<service android:name="com.mapbox.mapboxsdk.telemetry.TelemetryService" />
</application>
</manifest>
bilbonbizi/handheld/app/App_Resources/Android/app.gradle
android {
defaultConfig {
generatedDensities = []
applicationId = "com.berriart.bilbonbizi"
}
aaptOptions {
additionalParameters "--no-version-vectors"
noCompress "apk"
}
}
bilbonbizi/handheld/app/App_Resources/Android/xml/wearable_app_desc.xml
<wearableApp package="com.berriart.bilbonbizi">
<versionCode>1</versionCode>
<versionName>1.0</versionName>
<rawPathResId>wearable_app</rawPathResId>
</wearableApp>
Steps to package the app (steps to reproduce the issue)
The signing key used is the same for both:
cd bilbonbizi/wearable
tns platform remove android && tns platform add android && tns prepare android
tns build android --release --key-store-path [hiddenpath] --key-store-password [hiddenpass] --key-store-alias [hiddenalias] --key-store-alias-password [hiddenpass] --copy-to ../handheld/app/App_Resources/Android/raw/wearable_app.apk
cd ../handheld
tns platform remove android && tns platform add android && tns prepare android
tns build android --release --key-store-path [hiddenpath] --key-store-password [hiddenpass] --key-store-alias [hiddenalias] --key-store-alias-password [hiddenpass] --copy-to ../bilbonbizi.apk
cd ..
adb install ./bilbonbizi.apk
After this, the app is properly installed in the phone but is not being pushed to the watch.
Output logs
adb logcat
02-07 20:39:24.600 28861 7360 I ActivityUpsampling: AR upsampling state transition NORMAL_STATE --> NORMAL_STATE, activity: unknown
02-07 20:39:24.625 28861 7360 I Fit:LocationProvider: Location recording changed to : STOP_HIGH_FIDELITY_RECORDING.
02-07 20:39:25.962 3553 3553 D powerUI : accValue============37
02-07 20:39:25.962 3553 3553 D powerUI : mCputempVlaue============37
02-07 20:39:27.965 3553 3553 D powerUI : accValue============41
02-07 20:39:27.965 3553 3553 D powerUI : mCputempVlaue============41
02-07 20:39:28.825 5372 5527 D ClClient: Not sending keepalive. Current connection state=STOPPED
02-07 20:39:29.968 3553 3553 D powerUI : accValue============42
02-07 20:39:29.968 3553 3553 D powerUI : mCputempVlaue============42
02-07 20:39:30.506 7351 7351 I dex2oat : dex2oat took 8.052s (threads: 4) arena alloc=3MB java alloc=5MB native alloc=25MB free=3MB
02-07 20:39:30.964 997 1050 V BackupManagerService: restoreAtInstall pkg=com.berriart.bilbonbizi token=18 restoreSet=35825bc48d1581dc
02-07 20:39:30.966 997 3469 D BackupManagerService: MSG_RUN_RESTORE observer=null
02-07 20:39:30.975 4181 27142 I Backup : [GmsBackupTransport] New restore session, 2 apps
02-07 20:39:31.127 4181 27142 W Conscrypt: Could not set socket write timeout: null
02-07 20:39:31.198 4181 27142 W Conscrypt: Could not set socket write timeout: null
02-07 20:39:31.399 4181 27142 I GmsBackupTransport: Http Response Code : 200
02-07 20:39:31.411 4181 11827 I Backup : [GmsBackupTransport] Current restore package : PackageInfo{ebff3de #pm#}
02-07 20:39:31.411 4181 11827 I Backup : [GmsBackupTransport] A key/value pairs restore
02-07 20:39:31.412 997 3469 D BackupManagerService: initiateOneRestore packageName=#pm#
02-07 20:39:31.446 997 3469 V BackupManagerService: No more packages; finishing restore
02-07 20:39:31.450 4181 6449 I Backup : [GmsBackupTransport] restore finished
02-07 20:39:31.453 997 3469 I BackupRestoreController: restoreFinished for 0
02-07 20:39:31.453 997 3469 I BackupManagerService: Restore complete.
02-07 20:39:31.455 997 1050 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
02-07 20:39:31.456 997 1050 I art : Starting a blocking GC Explicit
02-07 20:39:31.687 997 1050 I art : Explicit concurrent mark sweep GC freed 192257(10MB) AllocSpace objects, 10(2MB) LOS objects, 33% free, 25MB/37MB, paused 2.673ms total 231.207ms
02-07 20:39:31.696 4764 4764 D BluetoothMapAppObserver: onReceive
02-07 20:39:31.696 4764 4764 D BluetoothMapAppObserver: The installed package is: com.berriart.bilbonbizi
02-07 20:39:31.700 4764 4764 D BluetoothMapAppObserver: Found 0 application(s) with intent android.bluetooth.action.BLUETOOTH_MAP_PROVIDER
02-07 20:39:31.703 4764 4764 D BluetoothMapAppObserver: Found 0 application(s) with intent android.bluetooth.action.BLUETOOTH_MAP_IM_PROVIDER
02-07 20:39:31.706 7337 7337 I art : System.exit called, status: 0
02-07 20:39:31.706 7337 7337 I AndroidRuntime: VM exiting with result code 0.
02-07 20:39:31.719 997 7064 W ActivityManager: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=6893, uid=1008$
that is not exported from uid 10065
02-07 20:39:31.722 7208 7364 D Documents: Update found 8 roots in 14ms
02-07 20:39:31.730 997 4095 W ActivityManager: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=12711, uid=1002
7 that is not exported from uid 10065
02-07 20:39:31.730 997 3363 I InputReader: Reconfiguring input devices. changes=0x00000010
02-07 20:39:31.802 7117 7117 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.co
ntent.ContextWrapper.startService:581 com.bq.gallerybq.app.PackagesMonitor.onReceive:40 android.app.ActivityThread.handleReceiver:2725
02-07 20:39:31.823 4108 4108 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
02-07 20:39:31.824 4108 4108 D CarrierServiceBindHelper: mHandler: 3
02-07 20:39:31.824 4108 4108 D CarrierConfigLoader: mHandler: 9 phoneId: 0
02-07 20:39:31.838 997 7064 I ActivityManager: Start proc 7371:com.google.android.partnersetup/u0a12 for broadcast com.google.android.partnersetup/.RlzPingBroadcastReceiver
02-07 20:39:31.891 7371 7371 W System : ClassLoader referenced unknown path: /system/priv-app/GooglePartnerSetup/lib/arm
02-07 20:39:31.970 3553 3553 D powerUI : accValue============39
02-07 20:39:31.970 3553 3553 D powerUI : mCputempVlaue============39
02-07 20:39:31.980 9247 9247 I Finsky : [1] com.google.android.finsky.wear.WearSupportService.a(307): Wear auto install disabled for package com.berriart.bilbonbizi
02-07 20:39:31.992 997 3623 I ActivityManager: Killing 6845:com.pushbullet.android/u0a118 (adj 15): empty #17
02-07 20:39:32.072 997 7067 D ActivityManager: cleanUpApplicationRecord -- 6845
02-07 20:39:32.116 9247 9247 I Finsky : [1] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(115): post-install permissions check for com.berriart.bilbonbizi
02-07 20:39:32.117 3947 7369 I WearablePkgInstaller: Setting DataItem to install wearable apps for com.berriart.bilbonbizi
02-07 20:39:32.155 9247 9247 I Finsky : [1] com.google.android.finsky.utils.bd.run(2300): Package state data is missing for com.berriart.bilbonbizi
02-07 20:39:32.303 5372 5372 V ApplicationReceiver:onReceive: 2017-02-07 19:39:32-03f1a6a6-fd89-4d04-98ad-0967d0ad6a4f-Application install message is received ver:1.2.2
02-07 20:39:32.304 5372 5372 V ApplicationReceiver:onReceive: 2017-02-07 19:39:32-03f1a6a6-fd89-4d04-98ad-0967d0ad6a4f-ApplicationReceiver detectes the installation of package:com.berriart.bilbonbizi ver:1.2.2
02-07 20:39:32.351 6446 7009 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
02-07 20:39:32.361 487 487 I MSM-irqbalance: Decided to move IRQ177 from CPU4 to CPU6
02-07 20:39:32.367 6446 7009 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
02-07 20:39:32.375 6446 7401 W IcingInternalCorpora: getNumBytesRead when not calculated.
02-07 20:39:32.503 9247 9247 I Finsky : [1] com.google.android.finsky.wear.bc.onPostExecute(2601): Writing installed apps for account [9oegQYjV2A_lG13uYgoCCNs4Sr8]
02-07 20:39:32.714 4764 5061 D bt_btm_pm: btm_pm_snd_md_req switching from SNIFF to ACTIVE.
02-07 20:39:32.747 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:32.749 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:32.795 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:32.798 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:32.994 4764 5061 D bt_btm_pm: btm_pm_proc_mode_change switched from UNKNOWN to ACTIVE.
02-07 20:39:33.106 3947 7369 I WearablePkgInstaller: Setting DataItem to install wearable apps for com.berriart.bilbonbizi
02-07 20:39:33.148 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.151 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.200 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.203 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.270 9247 9639 I PlayCommon: [1735] com.google.android.play.a.g.e(909): Preparing logs for uploading
02-07 20:39:33.270 9247 9639 I PlayCommon: [1735] com.google.android.play.a.g.e(911): No file ready to send
02-07 20:39:33.372 6446 6714 I Icing : Indexing FDFCB9FA2CA9FD93DE9DD0B9F5797CCEABC83AD6 from com.google.android.gms
02-07 20:39:33.449 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.451 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:33.509 6446 6714 I Icing : Indexing done FDFCB9FA2CA9FD93DE9DD0B9F5797CCEABC83AD6
02-07 20:39:33.974 3553 3553 D powerUI : accValue============36
02-07 20:39:33.974 3553 3553 D powerUI : mCputempVlaue============36
02-07 20:39:35.978 3553 3553 D powerUI : accValue============35
02-07 20:39:35.978 3553 3553 D powerUI : mCputempVlaue============35
02-07 20:39:37.360 487 487 I MSM-irqbalance: Decided to move IRQ130 from CPU4 to CPU6
02-07 20:39:37.982 3553 3553 D powerUI : accValue============35
02-07 20:39:37.982 3553 3553 D powerUI : mCputempVlaue============35
02-07 20:39:38.455 3947 4409 V WearableLS: bindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
02-07 20:39:38.457 3947 4409 V WearableLS: unbindService: com.google.android.wearable.app/com.google.android.clockwork.companion.DispatchingWearableListenerService
I have pasted a long log in order to provide as much info as possible, but probably the most relevant logs are: (picked from above)
BluetoothMapAppObserver: The installed package is: com.berriart.bilbonbizi
CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
Finsky : [1] com.google.android.finsky.wear.WearSupportService.a(307): Wear auto install disabled for package com.berriart.bilbonbizi
Finsky : [1] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(115): post-install permissions check for com.berriart.bilbonbizi
WearablePkgInstaller: Setting DataItem to install wearable apps for com.berriart.bilbonbizi
Finsky : [1] com.google.android.finsky.utils.bd.run(2300): Package state data is missing for com.berriart.bilbonbizi
ApplicationReceiver:onReceive: 2017-02-07 19:39:32-03f1a6a6-fd89-4d04-98ad-0967d0ad6a4f-Application install message is received ver:1.2.2
ApplicationReceiver:onReceive: 2017-02-07 19:39:32-03f1a6a6-fd89-4d04-98ad-0967d0ad6a4f-ApplicationReceiver detectes the installation of package:com.berriart.bilbonbizi ver:1.2.$
WearablePkgInstaller: Setting DataItem to install wearable apps for com.berriart.bilbonbizi
It's being extremely difficult for me to find information and understand the following log line:
Wear auto install disabled for package com.berriart.bilbonbizi
And also it is really strange to find the following line taking into account that I didn't change any version number and the one written in the manifest is 1.0:
the installation of package:com.berriart.bilbonbizi ver:1.2.$
Devices Information
PC
tns --version
# 2.5.0
cat /etc/lsb-release
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=16.10
# DISTRIB_CODENAME=yakkety
# DISTRIB_DESCRIPTION="Ubuntu 16.10"
tns-core-modules: "2.5.0"
tns-android: "2.5.0"
Phone
BQ Aquaris M5 (Android 6.0.1)
SmartWatch
Sony Smartwatch 3 (Compilation Number M1D64T)
Question
As I said, when the final APK is built and installed on a phone the wearable app is not being pushed to the connected watch. Is there anything wrong in the code/steps described above?
Let me know if I can help you by providing more information.
it could be useful to see the build.gradle files of your modules (both phone and weareable ones).
Also, you did not specify if you are trying to build an Android Wear App for Android Wear 2.0. I suppose you only need the Android Wear 1.x weareable app, since those are the only one that can be installed automatically over the air when installing the app on the handset.
In order for it to work correctly, your build.gradle file of the handset module should contains these dependencies:
dependencies {
...
compile 'com.google.android.gms:play-services-wearable:10.0.1'
compile 'com.android.support:support-compat:25.1.0'
wearApp project(':wearable')
...
}
Doing this you should normally just build and sign the handset apk
I am trying to integrate google+ sign in in an Android application. The API is connecting and the sign in also works. But unfortunately i am unable to retrieve users profile info. I have put 2 SHA1 key on the developer console. One is using the Android's SDK's debug.keystore file and another is from project keystore files which has been generated in Android Studio.
GoogleApiClient has been setup like this:
mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(Plus.API, Plus.PlusOptions.builder().build()).addScope(Plus.SCOPE_PLUS_PROFILE)
.addScope(Plus.SCOPE_PLUS_LOGIN).build();
onConnection method:
#Override
public void onConnected(Bundle arg0) {
signedInUser = false;
//Plus.PeopleApi.loadVisible(mGoogleApiClient, null).setResultCallback(this);
Toast.makeText(this, "Connected", Toast.LENGTH_LONG).show();
if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {
Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);
String personName = currentPerson.getDisplayName();
String personPhotoUrl = currentPerson.getImage().getUrl();
String email = Plus.AccountApi.getAccountName(mGoogleApiClient);
username.setText(personName);
emailLabel.setText(email);
}
}
AndroidManifest.xml permission:
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
build.gradle(app) :
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
..........
..........
dependencies {
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.android.gms:play-services-identity:8.1.0'
compile 'com.google.android.gms:play-services-plus:8.1.0'
compile files('libs/android_adcolony_2.2.0.jar')
compile files('libs/adcolony.jar')
compile files('libs/heyzap-ads-sdk.jar')
compile files('libs/android_unityads_4.0.1.jar')
}
I followed the official google+ api documentation regarding setting the configuration files and the SHA1 hashkey generation using keytool.
Logcat:
10-19 13:06:36.961 25859-25859/com.littlefroginc.rollnearn.android.activities E/Zygote﹕ MountEmulatedStorage()
10-19 13:06:36.971 5859-25859/com.littlefroginc.rollnearn.android.activities E/Zygote﹕ v2
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities I/libpersona﹕ KNOX_SDCARD checking this for 10272
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities I/SELinux﹕ Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-G920I_5.0.2 ver=22
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities I/libpersona﹕ KNOX_SDCARD not a persona
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities I/SELinux﹕ Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G920I_5.1.1_0035
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities E/Zygote﹕ accessInfo : 0
10-19 13:06:36.971 25859-25859/com.littlefroginc.rollnearn.android.activities E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
10-19 13:06:37.021 25859-25859/com.littlefroginc.rollnearn.android.activities D/TimaKeyStoreProvider﹕ TimaSignature is unavailable
10-19 13:06:37.021 25859-25859/com.littlefroginc.rollnearn.android.activities D/ActivityThread﹕ Added TimaKeyStore provider
10-19 13:06:37.091 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ Inside getClassLibPath + mLibMap{0=, 1=}
10-19 13:06:37.111 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ Inside getClassLibPath caller
10-19 13:06:37.151 25859-25880/com.littlefroginc.rollnearn.android.activities I/GMPM﹕ App measurement is starting up
10-19 13:06:37.151 25859-25859/com.littlefroginc.rollnearn.android.activities D/InjectionManager﹕ InjectionManager
10-19 13:06:37.151 25859-25859/com.littlefroginc.rollnearn.android.activities D/InjectionManager﹕ fillFeatureStoreMap com.littlefroginc.rollnearn.android.activities
10-19 13:06:37.151 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ Constructor com.littlefroginc.rollnearn.android.activities, Feature store :{}
10-19 13:06:37.151 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ featureStore :{}
10-19 13:06:37.161 25859-25880/com.littlefroginc.rollnearn.android.activities E/GMPM﹕ getGoogleAppId failed with status: 10
10-19 13:06:37.161 25859-25880/com.littlefroginc.rollnearn.android.activities E/GMPM﹕ Uploading is not possible. App measurement disabled
10-19 13:06:37.161 25859-25859/com.littlefroginc.rollnearn.android.activities D/SecWifiDisplayUtil﹕ Metadata value : SecSettings2
10-19 13:06:37.181 25859-25859/com.littlefroginc.rollnearn.android.activities D/PhoneWindow﹕ *FMB* installDecor mIsFloating : false
10-19 13:06:37.181 25859-25859/com.littlefroginc.rollnearn.android.activities D/PhoneWindow﹕ *FMB* installDecor flags : -2139029248
10-19 13:06:37.201 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ Inside getClassLibPath caller
10-19 13:06:37.201 25859-25859/com.littlefroginc.rollnearn.android.activities W/ResourcesManager﹕ Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
10-19 13:06:37.201 25859-25859/com.littlefroginc.rollnearn.android.activities W/ResourcesManager﹕ Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
10-19 13:06:37.271 25859-25859/com.littlefroginc.rollnearn.android.activities D/Activity﹕ performCreate Call Injection manager
10-19 13:06:37.271 25859-25859/com.littlefroginc.rollnearn.android.activities I/InjectionManager﹕ dispatchOnViewCreated > Target : com.littlefroginc.rollnearn.android.activities.TestActivity isFragment :false
10-19 13:06:37.281 25859-25889/com.littlefroginc.rollnearn.android.activities D/OpenGLRenderer﹕ Use EGL_SWAP_BEHAVIOR_PRESERVED: true
10-19 13:06:37.291 25859-25859/com.littlefroginc.rollnearn.android.activities D/PhoneWindow﹕ *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
10-19 13:06:37.291 25859-25859/com.littlefroginc.rollnearn.android.activities D/PhoneWindow﹕ *FMB* isFloatingMenuEnabled return false
10-19 13:06:37.321 25859-25859/com.littlefroginc.rollnearn.android.activities D/SRIB_DCS﹕ log_dcs ThreadedRenderer::initialize entered!
10-19 13:06:37.341 25859-25889/com.littlefroginc.rollnearn.android.activities D/libEGL﹕ loaded /vendor/lib64/egl/libGLES_mali.so
10-19 13:06:37.361 25859-25889/com.littlefroginc.rollnearn.android.activities I/OpenGLRenderer﹕ Initialized EGL, version 1.4
10-19 13:06:37.371 25859-25889/com.littlefroginc.rollnearn.android.activities I/OpenGLRenderer﹕ HWUI protection enabled for context , &this =0x7f761bfec0 ,&mEglDisplay = 1 , &mEglConfig = 1982403248
10-19 13:06:37.371 25859-25889/com.littlefroginc.rollnearn.android.activities D/OpenGLRenderer﹕ Get maximum texture size. GL_MAX_TEXTURE_SIZE is 8192
10-19 13:06:37.371 25859-25889/com.littlefroginc.rollnearn.android.activities D/OpenGLRenderer﹕ Enabling debug mode 0
10-19 13:06:37.371 25859-25889/com.littlefroginc.rollnearn.android.activities D/mali_winsys﹕ new_window_surface returns 0x3000, [1440x2560]-format:1
10-19 13:06:37.471 25859-25859/com.littlefroginc.rollnearn.android.activities I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy#324ea6d time:3900228
10-19 13:06:38.441 25859-25859/com.littlefroginc.rollnearn.android.activities D/SRIB_DCS﹕ log_dcs ThreadedRenderer::initialize entered!
10-19 13:06:38.441 25859-25889/com.littlefroginc.rollnearn.android.activities D/mali_winsys﹕ new_window_surface returns 0x3000, [497x181]-format:1
Try setting up your GoogleApiClient like this:
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API)
.addScope(new Scope(Scopes.PROFILE))
.addScope(new Scope(Scopes.EMAIL))
.build();
and if you dont have the below code in your manifest, then add it in side the application tag
<application>
.
.
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
.
.
</application>
you can use this code its working for me
mGoogleApiClient = new GoogleApiClient.Builder(LoginActivity.this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this).addApi(Plus.API)
.addScope(Plus.SCOPE_PLUS_LOGIN).build();
ang get email as
String email = Plus.AccountApi.getAccountName(mGoogleApiClient);
I have imported the Play Service sucessfully. But now when I want to loggin in with my device there is an error called:
The Application is incorrectly configured. Check that the package name and signing certificat match the client Id created in Developer Console. Also, if the application is not published yet, check that the account you are testing is an tester account. See log for more Information.
But the App is correytly the Id is correyt and the package name too.
I have also two accounts one is Tester the other not.
Loact is:
09-08 18:04:10.223 20100-20100/? E/Zygote﹕ MountEmulatedStorage()
09-08 18:04:10.223 20100-20100/? E/Zygote﹕ v2
09-08 18:04:10.223 20100-20100/? I/libpersona﹕ KNOX_SDCARD checking this for 10436
09-08 18:04:10.223 20100-20100/? I/libpersona﹕ KNOX_SDCARD not a persona
09-08 18:04:10.233 20100-20100/? I/SELinux﹕ Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-G900F_4.4.2 ver=34
09-08 18:04:10.233 20100-20100/? I/SELinux﹕ Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G900F_5.0_0014
09-08 18:04:10.233 20100-20100/? E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
09-08 18:04:10.233 20100-20100/? I/art﹕ Late-enabling -Xcheck:jni
09-08 18:04:10.263 20100-20100/de.developer.sixtysix.hiddenandroid D/TimaKeyStoreProvider﹕ TimaSignature is unavailable
09-08 18:04:10.263 20100-20100/de.developer.sixtysix.hiddenandroid D/ActivityThread﹕ Added TimaKeyStore provider
09-08 18:04:10.293 20100-20100/de.developer.sixtysix.hiddenandroid D/ResourcesManager﹕ creating new AssetManager and set to /data/app/de.developer.sixtysix.hiddenandroid-2/base.apk
09-08 18:04:10.493 20100-20100/de.developer.sixtysix.hiddenandroid D/Activity﹕ performCreate Call secproduct feature valuefalse
09-08 18:04:10.493 20100-20100/de.developer.sixtysix.hiddenandroid D/Activity﹕ performCreate Call debug elastic valuetrue
09-08 18:04:10.503 20100-20116/de.developer.sixtysix.hiddenandroid D/OpenGLRenderer﹕ Render dirty regions requested: true
09-08 18:04:10.523 20100-20116/de.developer.sixtysix.hiddenandroid I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: ()
OpenGL ES Shader Compiler Version: E031.25.01.03
Build Date: 03/03/15 Tue
Local Branch: LA.BF.1.1_RB1_20150108_025_1077123_1158499
Remote Branch:
Local Patches:
Reconstruct Branch:
09-08 18:04:10.523 20100-20116/de.developer.sixtysix.hiddenandroid I/OpenGLRenderer﹕ Initialized EGL, version 1.4
09-08 18:04:10.543 20100-20116/de.developer.sixtysix.hiddenandroid I/OpenGLRenderer﹕ HWUI protection enabled for context , &this =0xaed22088 ,&mEglDisplay = 1 , &mEglConfig = 8
09-08 18:04:10.543 20100-20116/de.developer.sixtysix.hiddenandroid D/OpenGLRenderer﹕ Enabling debug mode 0
09-08 18:04:10.723 20100-20100/de.developer.sixtysix.hiddenandroid I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy#216b7be4 time:20690728
09-08 18:04:13.503 20100-20100/de.developer.sixtysix.hiddenandroid I/Timeline﹕ Timeline: Activity_launch_request id:de.developer.sixtysix.hiddenandroid time:20693503
09-08 18:04:13.613 20100-20100/de.developer.sixtysix.hiddenandroid W/PopupManager﹕ You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments
09-08 18:04:13.633 20100-20100/de.developer.sixtysix.hiddenandroid I/MediaPlayer﹕ Need to enable context aware info
09-08 18:04:13.633 20100-20100/de.developer.sixtysix.hiddenandroid E/MediaPlayer-JNI﹕ QCMediaPlayer mediaplayer NOT present
09-08 18:04:13.663 20100-20119/de.developer.sixtysix.hiddenandroid W/MediaPlayer﹕ info/warning (973, 0)
09-08 18:04:13.663 20100-20100/de.developer.sixtysix.hiddenandroid E/MediaPlayer﹕ Should have subtitle controller already set
09-08 18:04:13.673 20100-20100/de.developer.sixtysix.hiddenandroid 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-08 18:04:13.693 20100-20100/de.developer.sixtysix.hiddenandroid W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See for instructions.
09-08 18:04:13.713 20100-20100/de.developer.sixtysix.hiddenandroid W/GAv4﹕ CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. for instructions.
09-08 18:04:13.723 20100-20100/de.developer.sixtysix.hiddenandroid D/Activity﹕ performCreate Call secproduct feature valuefalse
09-08 18:04:13.723 20100-20100/de.developer.sixtysix.hiddenandroid D/Activity﹕ performCreate Call debug elastic valuetrue
09-08 18:04:13.723 20100-20183/de.developer.sixtysix.hiddenandroid W/GAv4﹕ AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See for instructions.
09-08 18:04:13.733 20100-20100/de.developer.sixtysix.hiddenandroid E/MediaPlayer﹕ Should have subtitle controller already set
09-08 18:04:13.733 20100-20113/de.developer.sixtysix.hiddenandroid W/MediaPlayer﹕ info/warning (702, 0)
09-08 18:04:13.843 20100-20100/de.developer.sixtysix.hiddenandroid I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy#34d3307b time:20693840
09-08 18:04:22.433 20100-20100/de.developer.sixtysix.hiddenandroid I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy#34d3307b time:20702432
09-08 18:04:24.933 20100-20100/de.developer.sixtysix.hiddenandroid D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN
09-08 18:04:25.073 20100-20100/de.developer.sixtysix.hiddenandroid E/ViewRootImpl﹕ sendUserActionEvent() mView == null
Thanks for your answers.
Tim
I just started to study Android.
I made an app for simple test using PhoneGap, but the deviceready event wasn't fired.
So, I read LogCat and found some errors.
02-24 21:10:18.110: D/dalvikvm(8584): GC_FOR_ALLOC freed 93K, 21% free 9617K/12168K, paused 20ms, total 20ms
02-24 21:10:18.110: I/dalvikvm-heap(8584): Grow heap (frag case) to 12.861MB for 1127536-byte allocation
02-24 21:10:18.130: D/dalvikvm(8584): GC_FOR_ALLOC freed <1K, 20% free 10718K/13272K, paused 18ms, total 18ms
02-24 21:10:18.145: I/webclipboard(8584): clipservice: android.sec.clipboard.ClipboardExManager#4322ffe0
02-24 21:10:18.200: I/CordovaLog(8584): Changing log level to DEBUG(3)
02-24 21:10:18.200: I/CordovaLog(8584): Found preference for useBrowserHistory=true
02-24 21:10:18.200: D/CordovaLog(8584): Found preference for useBrowserHistory=true
02-24 21:10:18.200: I/CordovaLog(8584): Found preference for exit-on-suspend=false
02-24 21:10:18.200: D/CordovaLog(8584): Found preference for exit-on-suspend=false
02-24 21:10:18.205: D/JsMessageQueue(8584): Set native->JS mode to 2
02-24 21:10:18.210: D/DroidGap(8584): DroidGap.init()
02-24 21:10:18.225: D/CordovaWebView(8584): >>> loadUrl(file:///android_asset/www/index.html)
02-24 21:10:18.225: D/PluginManager(8584): init()
02-24 21:10:18.230: D/CordovaWebView(8584): >>> loadUrlNow()
02-24 21:10:18.235: D/WebView(8584): loadUrlImpl: called
02-24 21:10:18.235: D/DroidGap(8584): Resuming the App
02-24 21:10:18.285: D/SoftKeyboardDetect(8584): Ignore this event
02-24 21:10:18.325: V/webkit(8584): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {43227980}
02-24 21:10:18.335: D/webcore(8584): CORE loadUrl: called
02-24 21:10:18.335: D/webkit(8584): Firewall not null
02-24 21:10:18.345: D/webkit(8584): euler: isUrlBlocked = false
02-24 21:10:18.360: D/libEGL(8584): loaded /system/lib/egl/libEGL_mali.so
02-24 21:10:18.370: D/libEGL(8584): loaded /system/lib/egl/libGLESv1_CM_mali.so
02-24 21:10:18.450: D/libEGL(8584): loaded /system/lib/egl/libGLESv2_mali.so
02-24 21:10:18.455: E/(8584): Device driver API match
02-24 21:10:18.455: E/(8584): Device driver API version: 23
02-24 21:10:18.455: E/(8584): User space API version: 23
02-24 21:10:18.455: E/(8584): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Fri Nov 29 14:18:37 KST 2013
02-24 21:10:18.535: D/OpenGLRenderer(8584): Enabling debug mode 0
02-24 21:10:18.540: D/WebView(8584): onSizeChanged - w:720 h:1230
02-24 21:10:18.570: D/DroidGap(8584): onMessage(onPageStarted,file:///android_asset/www/index.html)
02-24 21:10:18.570: D/SoftKeyboardDetect(8584): Ignore this event
02-24 21:10:19.005: D/CordovaLog(8584): onload event
02-24 21:10:19.005: D/CordovaLog(8584): file:///android_asset/www/index.html: Line 50 : onload event
02-24 21:10:19.005: I/Web Console(8584): onload event:50
02-24 21:10:19.010: I/GATE(8584): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
02-24 21:10:19.010: D/Cordova(8584): onPageFinished(file:///android_asset/www/index.html)
02-24 21:10:19.010: D/WebView(8584): loadUrlImpl: called
02-24 21:10:19.010: D/webcore(8584): CORE loadUrl: called
02-24 21:10:19.010: D/webkit(8584): Firewall not null
02-24 21:10:19.010: D/webkit(8584): euler: isUrlBlocked = false
02-24 21:10:19.015: D/DroidGap(8584): onMessage(onNativeReady,null)
02-24 21:10:19.015: D/DroidGap(8584): onMessage(onPageFinished,file:///android_asset/www/index.html)
02-24 21:10:19.060: E/SQLiteLog(8584): (14) cannot open file at line 32516 of [00bb9c9ce4]
02-24 21:10:19.060: E/SQLiteLog(8584): (14) os_unix.c:32516: (2) open(/CachedGeoposition.db) -
02-24 21:10:19.060: D/WebKit(8584): ERROR:
02-24 21:10:19.060: D/WebKit(8584): SQLite database failed to load from /CachedGeoposition.db
02-24 21:10:19.060: D/WebKit(8584): Cause - unable to open database file
02-24 21:10:19.060: D/WebKit(8584): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
02-24 21:10:21.015: D/DroidGap(8584): onMessage(spinner,stop)
02-24 21:10:21.050: D/TilesManager(8584): Starting TG #0, 0x4225c580
02-24 21:10:21.050: D/TilesManager(8584): new EGLContext from framework: 421dcb88
02-24 21:10:21.050: D/GLWebViewState(8584): Reinit shader
02-24 21:10:21.050: D/GLWebViewState(8584): Reinit transferQueue
I think Device driver API Match error is problem..
And here's Manifest.xml file.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ex5"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.ex5.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
index.html File
<!DOCTYPE html>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="cordova-2.2.0.js"></script>
<script type="text/javascript">
function onDeviceReady() {
console.log("deviceready");
alert('test');
}
function init() {
console.log('onload event');
document.addEventListener("deviceready", onDeviceReady, false);
}
</script>
</head>
<body onload="init();">
</body>
</html>
And MainActivity.java File
package com.example.ex5;
import org.apache.cordova.DroidGap;
import android.os.Bundle;
import android.view.Menu;
public class MainActivity extends DroidGap {
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
I tested on Galaxy S3 Android Version is 4.3.
But, test on Galaxy S2 Android Version 4.0.3 worked well.
I don't know what are the problems of my sources or my Galaxy S3 Device or Android Version.
Please let me know what are the things I should fix.
That error was fun! I reseted the usb keys today on my S3 and after got that error. When I tried to run my another app, the error was gone :D