Hi All,
I'm back onto the B4A work and fine tuning my USB accessory app.
Embedded host provides USB Accessory data to Android 4.1.2 device which is the display and control device.
Everything works well apart from swipe screen unlock. (Swipe is min lock level on this device)
USB comms will wake-up Android device and appears to invoke my app but it is hidden behind the swipe lock screen. (Of course manual swipe works but I would llke app to auto boot and display with no manual intervention)
No luck with:
In fact I get a null pointer error when 1st line executes.
Found this:
Are these methods/ classes accessible via B4A?
All suggestions welcome
FP
I'm back onto the B4A work and fine tuning my USB accessory app.
Embedded host provides USB Accessory data to Android 4.1.2 device which is the display and control device.
Everything works well apart from swipe screen unlock. (Swipe is min lock level on this device)
USB comms will wake-up Android device and appears to invoke my app but it is hidden behind the swipe lock screen. (Of course manual swipe works but I would llke app to auto boot and display with no manual intervention)
No luck with:
B4X:
Sub SetShowWhenLocked
Dim r As Reflector
r.Target = r.GetActivity
r.Target = r.RunMethod("getWindow")
r.RunMethod2("addFlags", 6815872, "java.lang.int")
End Sub
In fact I get a null pointer error when 1st line executes.
Found this:
B4X:
'http://www.androidsnippets.com/disable-initial-screen-lock
'KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);
'KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
'lock.disableKeyguard();
'In androidmanifest:
' <uses-permission android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>
Are these methods/ classes accessible via B4A?
All suggestions welcome
FP