Multiwindow playground sample in Android Automotive N - android

Iam trying to run Android multiwindow sample https://github.com/googlesamples/android-MultiWindowPlayground on Android Automotive N. Inorder to switch app into split screen mode, it is suggested to long-press the recents button. Though the resizableactivity attribute is set true in Android manifest, it doesnot works in split screen mode in Headunit.
Please let me know how can I enable split screen mode in Android N Automotive Headunit?

Hope I understand your question, but fairly sure the point of Android Auto is to provide 'safe' access to some phone features, multi-window kinda defeats that purpose so I'm guessing the force it off in the Android Auto app.

Related

Disable Android navigation in Kiosk Mode (Android Management API)

We have a Kiosk mode setup completed using Android Management API with our launcher app acting as kiosk app. However customizations applied through policy are not working as per expected.
"kioskCustomization": {
"systemNavigation":"HOME_BUTTON_ONLY",
"statusBar":"SYSTEM_INFO_ONLY",
"deviceSettings":"SETTINGS_ACCESS_BLOCKED"
}
We have this in the policy and it is getting synced to device but still all buttons in navigation bar working and still we can able to access settings.
What we need to do in order to disable navigation bar in kiosk mode? If we have app in full screen it is just hiding them but not disabling them.
Also is there way to disable gestures also?
I also noticed that when I applied:
"kioskCustomization": {
"systemNavigation":"NAVIGATION_ENABLED"
}
That it didn't work when I had the "installType":"KIOSK" set for an app, so this might indeed be a bug. Are you in kiosk mode via installType, then?
A workaround is to set "kioskCustomLauncherEnabled":true and then manually launch the app. This sort of defeats the purpose of having an app that can launch into kiosk mode on boot, but I've noticed with my app that if I am in kiosk mode via "kioskCustomLauncherEnabled":true, then it will properly apply the kioskCustomization settings.
I've been struggling with this issue for days! Finally found that it was the App I was using as my launcher app that was causing the issue.
For anyone else struggling with this, I suggest you set the Calculator app (com.google.android.calculator) as your Kiosk app and see if you're still getting the same issue. If not you know it's something to do with the app you're setting as the KIOSK app.
For me, the issue came from me including the following in the main actiivty intent-filter:
category android:name="android.intent.category.HOME"
As soon as I removed that the kioskCustomization worked perfectly.

Create custom LockScreen for Android

I'm trying to create a custom lockscreen for Android version 7.1.1. (Nougat). I know that there are a lot answers on how to create a custom lockscreen, but whatever code I try to use, it's not really working.
The problem appears because of using deprecated methods. The app crushes, and there are no methods to replace the deprecated ones.
Does anyone know a way that this still works?
These are some of the links I've tried to use (there were a few older ones also but I didn't save them):
how to make our own lock screen in android instead of default lock screen
https://github.com/thomasvidas/Simple-Lockscreen/tree/master
developing an android lock screen application
Create custom lockscreen for android 4.0 or above?
At the end I managed to make this app working. My biggest problem was to put my device in kiosk mode (disabling hardware buttons when the lockscreen is displayed). The solution that worked for me was enabling device owner mode using Android Debug Bridge. It wasn't the best solution, but it was the most acceptable one for this project.
Here are some of the links that I used to achieve this:
https://documentation.meraki.com/SM/Device_Enrollment/Enabling_Device_Owner_Mode_using_Android_Debug_Bridge_(ADB)
http://www.sureshjoshi.com/mobile/android-kiosk-mode-without-root/

How to block Android keys for public Tablet?

I want to disable Android keys. I developed an application for tablets. But I want to disable tablet or android keys. In addition,customer have to use only my single application.
I am aware of kiosk but still have some problem. Could you help me please ?
You are looking for something like site kiosk mode:
Check here: Kiosk mode in Android
or here: http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/
and here: Prevent status bar for appearing android (modified)

How to support new ambient mode in android wear?

Since last update Android Wear has a new feature - the always-on mode. This means that the Android Wear device doesn’t turn off the screen; it changes to the ambient mode to save battery and keeps certain apps running in the background.
How exactly should I implement this?
p.s. I'm developing sport application, not watchface.
We have also created a code lab to run through the steps. Please find it here:
https://io2015codelabs.appspot.com/codelabs/always-on#1
What you're looking for is how to support "Ambient Mode" in your Wear app's activity.
There is an entire doc dedicated to this:
http://developer.android.com/training/wearables/apps/always-on.html
As well as a code sample:
https://github.com/googlesamples/android-AlwaysOn/

How to start adobe air application automatically when the android device boots?

I have written an application using Adobe Air 3.4 SDK. I have deployed it to my android v4.0.4 device. It works fine (in full screen mode as expected).
Now the application is expected to run in full screen mode automatically before the device shows the native android screen to the user.
How can I do this? Suggestions anyone?
In the AIR native classes, there is a thing called startAtLogin that you can set to true or false :
NativeApplication.nativeApplication.startAtLogin = true;
But I doubt that can be used to override the native android screen and be displayed before it.
I suppose some built-in checks have been made to be sure nothing gets booted before the screen is ready and diplayed.
Still, you can try it :-)

Categories

Resources