Start a new topic

Android Titanium SDK does not work on your example projects or ours

Android Titanium SDK does not work on your example projects or ours


Using your code found here https://github.com/Wikitude/wikitude-sdk-samples and selecting Mutliple POIs it crashes. We noted the same error message in our apps and currently an Enterprise customer with working iOS apps but non of our Android Apps work.  :-(

We tried this on Titanium SDK 5.1.0, 5.1.1, 5.1.2GA to no avail on Android only iOS works.

Below is output.  Regardless of the example this error message seems persistant.  Again this is using your example code

 

-- Start application log -----------------------------------------------------

 SELinux: Function: selinux_android_load_priority , There is no sepolicy file.

 SELinux:

 SELinux: Function: selinux_android_load_priority , There is no sepolicy version file.

 SELinux:

 SELinux: Function: selinux_android_load_priority , priority version is VE=SEPF_SAMSUNG-SGH-I747_4.4.2_0016

 SELinux:

 SELinux:

 SELinux: selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts

 TiApplication: (main) checkpoint, app created.

 TiApplication: (main) Titanium 5.1.2 (2015/12/16 19:00 ca822b2)

 DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default ''

 DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default ''

dalvikvm: Trying to load lib /data/app-lib/ly.dent.sales-1/libtiverify.so 0x42783c80

dalvikvm: Added shared lib /data/app-lib/ly.dent.sales-1/libtiverify.so 0x42783c80

 TiApplication: (main) Titanium Javascript runtime: v8

dalvikvm: Trying to load lib /data/app-lib/ly.dent.sales-1/libstlport_shared.so 0x42783c80

dalvikvm: Added shared lib /data/app-lib/ly.dent.sales-1/libstlport_shared.so 0x42783c80

dalvikvm: No JNI_OnLoad found in /data/app-lib/ly.dent.sales-1/libstlport_shared.so 0x42783c80, skipping init

dalvikvm: Trying to load lib /data/app-lib/ly.dent.sales-1/libkroll-v8.so 0x42783c80

dalvikvm: Added shared lib /data/app-lib/ly.dent.sales-1/libkroll-v8.so 0x42783c80

WikitudeandModule: (main) inside onAppCreate

 TiRootActivity: (main) checkpoint, on root activity create, savedInstanceState: null

APSAnalyticsModel: Creating Database appcAnalytics.db

 V8Object: (KrollRuntimeThread) Runtime disposed, cannot set property 'userAgent'

 dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasCameraPermission

 dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I

dalvikvm: VFY: replacing opcode 0x6e at 0x0012

 dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasStoragePermission

 dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I

dalvikvm: VFY: replacing opcode 0x6e at 0x0012

 dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasCameraPermissions

 dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I

dalvikvm: VFY: replacing opcode 0x6e at 0x0012

 dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method ti.modules.titanium.media.MediaModule.requestCameraPermissions

 dalvikvm: VFY: unable to resolve virtual method 78: Landroid/app/Activity;.requestPermissions (

Hi Will,
It looks like an Android 6 runtime permission error. Are you experience this type of error on Android 6.x devices? If so, please use the available function from Titanium to request Android 6 runtime permissions for location, camera and, depending on your use case, local storage.

Best regards

Andreas

No change.  I addded all entries to the manifest for Android for permisssions and even inside the applicaiton I added checks to validate permission was granted and on app info page it shows we have permission for Internet, Camera, External Storage, etc.  

 

Please kindly update your GitHub example project to a working state.   Since we have no access to your source code we can not troubleshoot any further.  

I am adding here a movie of sample code not working and also showing that all permissions are in place on the Android device running 4.4.2.. This was built using Titanium SDK 5.1.2.GA with Android SDK 6 (23).

https://s3.amazonaws.com/uploads.hipchat.com/40457/273840/C1iiSgt0emCwmPT/wikitude.mp4

 

 
Login or Signup to post a comment