android version compatibility - java

The question is myapp sometimes run well and sometimes doesn't.I used ionic+cordova+angular to do it. It does not work at 5.0.1 version.
This is the logcat when i test with android studio
07-28 15:55:19.894 9987-9987/? E/Zygote: MountEmulatedStorage()
07-28 15:55:19.894 9987-9987/? E/Zygote: v2
07-28 15:55:19.904 9987-9987/? E/Zygote: accessInfo : 0
07-28 15:55:19.904 9987-9987/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
07-28 15:55:20.084 9987-9987/io.ionic.starter E/SysUtils: ApplicationContext is null in ApplicationStatus
07-28 15:55:20.164 9987-9987/io.ionic.starter E/chromium: [ERROR:browser_gpu_channel_host_factory.cc(258)] Failed to init browser shader disk cache.
07-28 15:55:20.194 9987-9987/io.ionic.starter E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
07-28 15:55:20.194 9987-10081/io.ionic.starter E/ActivityThread: Failed to find provider info for com.google.settings

ionic cordova plugin add cordova-plugin-crosswalk-webview --save Add this will be work.

Related

Can we program the app to restart on its own? [duplicate]

This question already has answers here:
How do I programmatically "restart" an Android app?
(31 answers)
Closed 3 years ago.
My app doesn't function as intended after fresh installation on the device. The user has to manually close the app and start it again for proper functionality. A quick fix is needed, something as simple as the app restarting on its own after first launch (this only has to happen 1 time).
05/22 19:44:57: Launching app
$ adb install-multiple -r -t C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\resources\instant-run\debug\resources-debug.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\instant-run-apk\debug\app-debug.apk
Split APKs installed in 5 s 337 ms
$ adb shell am start -n "tk.gandriks.gaaudiotransform/tk.gandriks.gaaudiotransform.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 11440 on device samsung-sm_g930f-ce05160561e0761105
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/Zygote: isWhitelistProcess - Process is Whitelisted
E/libpersona: scanKnoxPersonas
Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G930F_8.0.0_0018, [-1 -1 -1 -1 0 1]
I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=tk.gandriks.gaaudiotransform
I/zygote64: Late-enabling -Xcheck:jni
D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
D/ActivityThread: Added TimaKeyStore provider
I/zygote64: no shared libraies, dex_files: 1
I/InstantRun: starting instant run server: is main process
D/OpenGLRenderer: HWUI GL Pipeline
D/ViewRootImpl#d597feb[MainActivity]: setView = DecorView#ed74148[MainActivity] TM=true MM=false
D/ViewRootImpl#d597feb[MainActivity]: dispatchAttachedToWindow
V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/ViewRootImpl#d597feb[MainActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1440,2560] result=0x7 surface={valid=true 484328804352} changed=true
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : tk.gandriks.gaaudiotransform
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1440x2560]-format:1
D/OpenGLRenderer: eglCreateWindowSurface = 0x70c9e2df00
D/ViewRootImpl#d597feb[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1440, 2560) ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
D/ViewRootImpl#d597feb[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#56c3619 nm : tk.gandriks.gaaudiotransform ic=null
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#7e4d6de nm : tk.gandriks.gaaudiotransform ic=null
D/ViewRootImpl#c82cf8d[Toast]: setView = android.widget.LinearLayout{2fd8542 V.E...... ......I. 0,0-0,0} TM=true MM=false
V/Toast: Text: Qerm in android.widget.Toast$TN#7980953
D/ViewRootImpl#c82cf8d[Toast]: dispatchAttachedToWindow
V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/ViewRootImpl#c82cf8d[Toast]: Relayout returned: old=[0,0][0,0] new=[373,2128][1066,2304] result=0x7 surface={valid=true 484137521152} changed=true
D/ViewRootImpl#c82cf8d[Toast]: MSG_RESIZED_REPORT: frame=Rect(373, 2128 - 1066, 2304) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
D/ViewRootImpl#c82cf8d[Toast]: dispatchDetachedFromWindow
D/InputEventReceiver: channel 'd449b05 Toast (client)' ~ Disposing input event receiver.
channel 'd449b05 Toast (client)' ~NativeInputEventReceiver.
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#7c57290 nm : tk.gandriks.gaaudiotransform ic=null
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/OpenGLRenderer: eglDestroySurface = 0x70c9e2df00
D/ViewRootImpl#d597feb[MainActivity]: Relayout returned: old=[0,0][1440,2560] new=[0,0][1440,2560] result=0x5 surface={valid=false 0} changed=true
D/ViewRootImpl#d597feb[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0
The error in this log is the line:
E/Zygote: isWhitelistProcess - Process is Whitelisted
E/libpersona: scanKnoxPersonas
Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
Even though there might be some answers to this question, from my(and probably most of the users) point of view this would be a terrible experience. Fix the original problem, any workaround that you do that results in app restarting itself will probably end in user uninstalling your app. Keep your app stable and users happy!

Android App crash when setting debuggable to False

MainActivity closed at runtime witout reason when setting debuggable to False in project gradle file. but when the App is debuggable it's work fine.
I have checked logcat but nothing found to help me.
anyone have an idea ?
the logcat output is:
02-07 11:08:48.157 13586-13586/? E/Zygote: v2
02-07 11:08:48.157 13586-13586/? I/libpersona: KNOX_SDCARD checking this for 10177
02-07 11:08:48.157 13586-13586/? I/libpersona: KNOX_SDCARD not a persona
02-07 11:08:48.167 13586-13586/? W/SELinux: Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0031
02-07 11:08:48.167 13586-13586/? E/Zygote: accessInfo : 0
02-07 11:08:48.167 13586-13586/? W/SELinux: SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=ir.androidsoftware.TelegramNew
02-07 11:08:48.217 13586-13586/? D/TimaKeyStoreProvider: TimaSignature is unavailable
02-07 11:08:48.217 13586-13586/? D/ActivityThread: Added TimaKeyStore provider
02-07 11:08:48.287 13586-13586/? I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=}
02-07 11:08:48.287 13586-13586/? W/ResourcesManager: getTopLevelResources: /data/app/ir.androidsoftware.TelegramNew-1/base.apk / 1.0 running in ir.androidsoftware.TelegramNew rsrc of package ir.androidsoftware.TelegramNew
02-07 11:08:48.287 13586-13586/? D/ResourcesManager: For user 0 new overlays fetched Null
02-07 11:08:48.297 13586-13586/? I/InjectionManager: Inside getClassLibPath caller
02-07 11:08:48.357 13586-13586/? I/GMPM: App measurement is starting up, version: 8487
02-07 11:08:48.357 13586-13586/? I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
02-07 11:08:48.367 13586-13586/? W/ResourcesManager: getTopLevelResources: /data/app/ir.androidsoftware.TelegramNew-1/base.apk / 1.0 running in ir.androidsoftware.TelegramNew rsrc of package ir.androidsoftware.TelegramNew
02-07 11:08:48.387 13586-13586/? I/GAv4: Google Analytics 8.4.87 is starting up. To enable debug logging on a device run:
02-07 11:08:48.387 13586-13586/? I/GAv4: adb shell setprop log.tag.GAv4 DEBUG
02-07 11:08:48.387 13586-13586/? I/GAv4: adb logcat -s GAv4
02-07 11:08:48.447 13586-13586/? D/InjectionManager: InjectionManager
02-07 11:08:48.447 13586-13586/? D/InjectionManager: fillFeatureStoreMap ir.androidsoftware.TelegramNew
02-07 11:08:48.447 13586-13586/? I/InjectionManager: Constructor ir.androidsoftware.TelegramNew, Feature store :{}
02-07 11:08:48.447 13586-13586/? I/InjectionManager: featureStore :{}
02-07 11:08:48.447 13586-13586/? D/RelationGraph: garbageCollect()
02-07 11:08:48.447 13586-13586/? W/ResourcesManager: getTopLevelResources: /data/app/ir.androidsoftware.TelegramNew-1/base.apk / 1.0 running in ir.androidsoftware.TelegramNew rsrc of package ir.androidsoftware.TelegramNew
02-07 11:08:48.447 13586-13586/? D/ContextRelationManager: ContextRelationManager() : FEATURE_ENABLED=true
02-07 11:08:48.757 13586-13586/? D/AbsListView: Get MotionRecognitionManager
02-07 11:08:48.757 13586-13586/? E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy#affb32a
02-07 11:08:48.757 13586-13586/? E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy#3f2451b
02-07 11:08:48.757 13586-13586/? E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy#3f2451b
02-07 11:08:48.957 13586-13586/? D/Minikin: FontFamily bestFont == NULL, so return vacant FakedFont
02-07 11:08:48.957 13586-13586/? D/Minikin: FontFamily bestFont == NULL, so return vacant FakedFont
02-07 11:08:48.957 13586-13586/? D/Minikin: FontFamily bestFont == NULL, so return vacant FakedFont
02-07 11:08:49.007 13586-13586/? I/Timeline: Timeline: Activity_launch_request id:ir.androidsoftware.TelegramNew time:245262389
02-07 11:08:49.027 13586-13586/? D/Activity: performCreate Call Injection manager
02-07 11:08:49.047 13586-13586/? D/RelationGraph: garbageCollect()
02-07 11:08:49.047 13586-13586/? D/TelegramNew: mainline 1
02-07 11:08:49.047 13586-13586/? W/ResourcesManager: getTopLevelResources: /data/app/ir.androidsoftware.TelegramNew-1/base.apk / 1.0 running in ir.androidsoftware.TelegramNew rsrc of package ir.androidsoftware.TelegramNew
02-07 11:08:49.097 13586-13586/? D/AbsListView: Get MotionRecognitionManager
02-07 11:08:49.097 13586-13586/? E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy#3f1b83c
02-07 11:08:49.097 13586-13586/? E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy#e75e9c5
02-07 11:08:49.097 13586-13586/? E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy#e75e9c5
02-07 11:08:49.097 13586-13586/? I/InjectionManager: dispatchOnViewCreated > Target : ir.androidsoftware.TelegramNew.NavigationDrawerFragment isFragment :true
02-07 11:08:49.117 13586-13586/? D/Activity: performCreate Call Injection manager
02-07 11:08:49.147 13586-13586/? I/InjectionManager: dispatchOnViewCreated > Target : ir.androidsoftware.TelegramNew.FragmentMain isFragment :true
02-07 11:08:49.157 13586-13586/? I/InjectionManager: dispatchOnViewCreated > Target : ir.androidsoftware.TelegramNew.FragmentSeeChannels isFragment :true
02-07 11:08:49.397 13586-13586/? D/TelegramNewLeft: CheckLefts killed()
02-07 11:08:49.397 13586-13586/? D/TelegramNewLeft: CheckLefts Stop()
02-07 11:08:50.577 13586-13624/? I/qtaguid: Tagging socket 60 with tag b59f8cea00000000{3047132394,0} uid -1, pid: 13586, getuid(): 10177
02-07 11:08:58.507 13586-13642/? D/Minikin: FontCollection getFamilyForChar is NULL, so assign fakedFont.font = NULL
02-07 11:08:58.507 13586-13642/? E/Minikin: no font for run starting u+dbba length 2
02-07 11:08:58.507 13586-13642/? D/Minikin: FontCollection getFamilyForChar is NULL, so assign fakedFont.font = NULL
02-07 11:08:58.507 13586-13642/? E/Minikin: no font for run starting u+dbba length 2
I found the problem.I have added this code in BaseActivity that mainActivity inherit from it:
if(!BuildConfig.DEBUG) {
Secure.CheckPckNm(this);
Secure.CheckAppSign(this);
}
The CheckAppSign finish mainActivity if signature is invalid.
I had forgotten that code :-) .
hi i see in your answer you using this
if(!BuildConfig.DEBUG) {
Secure.CheckPckNm(this);
Secure.CheckAppSign(this);
}
but this is not usefull because hacker/cracker can change BuildConfig class and if he change Debug value to true
this code not executed
you should check debug signature too

No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp

We are having a problem running our Android app built with IONIC framework run on Genymotion emulator, although it runs fine on a real hardware, a real android phone.
I can see an error thrown No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
Here snippet of the complete log from logcat file:
09-27 21:53:24.258 I/ActivityManager( 5528): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ionicframework.myappandroid393856/.MainActivity (has extras)} from uid 10008 on display 0
09-27 21:53:24.317 I/art ( 6438): Late-enabling -Xcheck:jni
09-27 21:53:24.318 I/ActivityManager( 5528): Start proc 6438:com.ionicframework.myappandroid393856/u0a60 for activity com.ionicframework.myappandroid393856/.MainActivity
09-27 21:53:24.375 W/System ( 6438): ClassLoader referenced unknown path: /data/app/com.ionicframework.myappandroid393856-1/lib/x86
09-27 21:53:24.480 V/WebViewFactory( 6438): webViewPackageName: com.android.webview
09-27 21:53:24.482 I/WebViewFactory( 6438): Loading com.android.webview version 44.0.2403.119 (code 246011910)
09-27 21:53:24.514 W/System ( 6438): ClassLoader referenced unknown path: /system/app/webview/lib/x86
09-27 21:53:24.526 I/LibraryLoader( 6438): Time to load native libraries: 1 ms (timestamps 8014-8015)
09-27 21:53:24.532 I/LibraryLoader( 6438): Expected native library version number "",actual native library version number ""
09-27 21:53:24.577 V/WebViewChromiumFactoryProvider( 6438): Binding Chromium to main looper Looper (main, tid 1) {10f7532}
09-27 21:53:24.578 I/LibraryLoader( 6438): Expected native library version number "",actual native library version number ""
09-27 21:53:24.578 I/chromium( 6438): [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
09-27 21:53:24.589 I/BrowserStartupController( 6438): Initializing chromium process, singleProcess=true
09-27 21:53:24.589 W/art ( 6438): Attempt to remove non-JNI local reference, dumping thread
09-27 21:53:24.590 E/SysUtils( 6438): ApplicationContext is null in ApplicationStatus
09-27 21:53:24.659 W/chromium( 6438): [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
09-27 21:53:24.676 D/libEGL ( 6438): loaded /system/lib/egl/libEGL_emulation.so
09-27 21:53:24.677 D/libEGL ( 6438): loaded /system/lib/egl/libGLESv1_CM_emulation.so
09-27 21:53:24.697 D/libEGL ( 6438): loaded /system/lib/egl/libGLESv2_emulation.so
09-27 21:53:24.704 E/libEGL ( 6438): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-27 21:53:24.704 E/libEGL ( 6438): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-27 21:53:24.705 D/ ( 6438): HostConnection::get() New Host Connection established 0xe8a614f0, tid 6438
09-27 21:53:24.881 E/eglCodecCommon( 6438): glUtilsParamSize: unknow param 0x00008d57
09-27 21:53:25.010 W/AudioManagerAndroid( 6438): Requires BLUETOOTH permission
09-27 21:53:25.070 E/DataReductionProxySettingListener( 6438): No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
09-27 21:53:25.108 W/art ( 6438): Attempt to remove non-JNI local reference, dumping thread
09-27 21:53:25.140 W/AwContents( 6438): onDetachedFromWindow called when already detached. Ignoring
09-27 21:53:25.154 D/SystemWebViewEngine( 6438): CordovaWebView is running on device made by: Genymotion
09-27 21:53:25.163 W/art ( 6438): Attempt to remove non-JNI local reference, dumping thread
09-27 21:53:25.163 W/art ( 6438): Attempt to remove non-JNI local reference, dumping thread
09-27 21:53:25.174 E/Surface ( 5893): getSlotFromBufferLocked: unknown buffer: 0xe8a03180
09-27 21:53:25.267 D/OpenGLRenderer( 6438): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-27 21:53:25.332 V/StatusBar( 6438): StatusBar: initialization
I had this issue and it turned out to be the JavaScript that contained some ES6 fat arrows
()=> {...}
After removing them and returning to anonymous functions
function () {...}
this error was no longer thrown on the Genymotion emulator.
It was still there on the Android Studio emulator but didn't affect the JavaScript execution.

Android IOException is null, Throwing NullPointerException

I'm working on an application for Android and I'm having an AsyncTask connect to a server through a client socket in the doInBackground method.
All variables that are being used have been set and I have checked in real time that they are valid before being used. The weird thing is that after trying to create the socket with the designated host/port, it immediately throws an IOException, which in itself is not a problem :P but the value ex is null. I have never seen anything like this and I found some similar cases on google, but none of them yielded a solution.
The code that is throwing the exception,as well as the catch block:
#Override
protected Socket doInBackground(Void... params) {
Socket sock = null;
try {
sock = new Socket("10.0.0.86", 44444);
} catch (UnknownHostException ex) {
ex.printStackTrace();
} catch(IOException ex) {
ex.printStackTrace();
}
return sock;
}
The rest of the code is nothing of help, it's just some getter/setters. Here's the log from the android device:
07-28 03:30:23.438
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
Sending WAIT chunk 07-28 03:30:23.438
9514-9520/com.TestApplication.VEStudio.TestApplication I/dalvikvm﹕
Debugger is active 07-28 03:30:23.438
9514-9514/com.TestApplication.VEStudio.TestApplication
W/ActivityThread﹕ Application
com.TestApplication.VEStudio.TestApplication is waiting for the
debugger on port 8100... 07-28 03:30:23.638
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
Debugger has connected 07-28 03:30:23.638
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:23.838
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:24.038
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:24.238
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:24.438
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:24.638
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:24.838
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
waiting for debugger to settle... 07-28 03:30:25.038
9514-9514/com.TestApplication.VEStudio.TestApplication I/System.out﹕
debugger has settled (1482) 07-28 03:30:25.238
9514-9514/com.TestApplication.VEStudio.TestApplication I/Adreno-EGL﹕
: EGL 1.4 QUALCOMM build: ()
OpenGL ES Shader Compiler Version: E031.24.00.06
Build Date: 02/12/14 Wed
Local Branch: au090
Remote Branch:
Local Patches:
Reconstruct Branch: 07-28 03:30:25.268 9514-9514/com.TestApplication.VEStudio.TestApplication
D/OpenGLRenderer﹕ Enabling debug mode 0 07-28 03:30:25.308
9514-9514/com.TestApplication.VEStudio.TestApplication
D/OpenGLRenderer﹕ GL error from OpenGLRenderer: 0x502 07-28
03:30:25.308 9514-9514/com.TestApplication.VEStudio.TestApplication
E/OpenGLRenderer﹕ GL_INVALID_OPERATION 07-28 03:30:25.318
9514-9514/com.TestApplication.VEStudio.TestApplication
I/ActivityManager﹕ Timeline: Activity_idle id:
android.os.BinderProxy#43682588 time:268397923 07-28 03:30:26.468
9514-9514/com.TestApplication.VEStudio.TestApplication
I/ActivityManager﹕ Timeline: Activity_idle id:
android.os.BinderProxy#43682588 time:268399075 07-28 03:30:29.908
9514-9514/com.TestApplication.VEStudio.TestApplication
I/Choreographer﹕ Skipped 150 frames! The application may be doing too
much work on its main thread. 07-28 03:30:33.538
9514-9913/com.TestApplication.VEStudio.TestApplication W/dalvikvm﹕
threadid=15: thread exiting with uncaught exception (group=0x41e98d88)
07-28 03:30:33.578
9514-9913/com.TestApplication.VEStudio.TestApplication
E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #3
Process: com.TestApplication.VEStudio.TestApplication, PID: 9514
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException
at com.TestApplication.VEStudio.TestApplication.Networking.doInBackground(Networking.java:51)
at com.TestApplication.VEStudio.TestApplication.Networking.doInBackground(Networking.java:12)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841) 07-28 03:35:33.628 9514-9913/com.TestApplication.VEStudio.TestApplication
I/Process﹕ Sending signal. PID: 9514 SIG: 9
Any help at all with this issue would be greatly appreciated, and hopefully someone in the future will need the same intel.

Get session info failed

I'm trying to run the opentok android beta but I keep getting
07-28 19:46:03.703: W/opentok-session(1707): get session info failed
07-28 19:46:03.703: W/opentok-session(1707): com.opentok.webservices.TokenAuthRequest$TokenAuthRequestException: Error in response: Invalid Token: Sentinel missing
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.webservices.TokenAuthRequest.issue(TokenAuthRequest.java:99)
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.webservices.SessionInfo.<init>(SessionInfo.java:45)
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.webservices.SessionInfo.fetch(SessionInfo.java:31)
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.impl.SessionImpl.attach(SessionImpl.java:99)
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.impl.SessionImpl.access$000(SessionImpl.java:55)
07-28 19:46:03.703: W/opentok-session(1707): at com.opentok.impl.SessionImpl$1.run(SessionImpl.java:86)
07-28 19:46:03.703: W/opentok-session(1707): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
07-28 19:46:03.703: W/opentok-session(1707): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
07-28 19:46:03.703: W/opentok-session(1707): at java.lang.Thread.run(Thread.java:841)
07-28 19:46:03.834: E/demo-hello-world(1707): session failed! com.opentok.android.OpentokException: Authorization Failure - Invalid credentials were provided.
I know it means that the session id and the token I'm providing is wrong but I don't know who that can be because I'm getting it from the opentok dashboard.
EDIT
This is the session id I used 1_MX4zNjA3NDkwMn4xMjcuMC4wLjF-TW9uIEp1bCAyOSAwNDoxNjozMiBQRFQgMjAxM34wLjIzMTkwMzMxfg
and the token I used
cGFydG5lcl9pZD0zNjA3NDkwMiZzZGtfdmVyc2lvbj10YnJ1YnktdGJyYi12MC45MS4yMDExLTAyLTE3JnNpZz0wMzY4NzQzYjFiNDgzNDI3NDAzZWU0ZWM0Yzg1OGVlZGI5YjI0ZGQ1OnJvbGU9cHVibGlzaGVyJnNlc3Npb25faWQ9MV9NWDR6TmpBM05Ea3dNbjR4TWpjdU1DNHdMakYtVFc5dUlFcDFiQ0F5T1NBd05Eb3hOam96TWlCUVJGUWdNakF4TTM0d0xqSXpNVGt3TXpNeGZnJmNyZWF0ZV90aW1lPTEzNzUwOTY2NDYmbm9uY2U9MC44MjM1NjI5MDY2MTA3ODcxJmV4cGlyZV90aW1lPTEzNzUxODMwMjUmY29ubmVjdGlvbl9kYXRhPQ
A valid token will start with T1==, the token you've shown does not. Can you go back to the Dashboard, create a new token for that session, paste the entire string into your application code, and try again?

Categories