If Android Device Reboot / Power on automatically Open My App without user intervention / Click.
Using Android kiosk mode/Broadcast receiver
Related
I am developing an app which supports push notifications.
App is automatically restarting after disabling notifications from device settings.
this happens for android v > 12.
Is this required by system or how can I solve it?
I have recently bought an android phone, and it has a Device Admin App named DEVICE LOCK CONTROLLER which is unable to disable.
I have tried to turn on the developer option, but that is also locked by that app.
How I can fix that? It's a Realme phone
Can I "register" a (already installed) specific app to be launched when android device get physically connected to a specific usb device ?
Eg.
I connect a keyboard (of a certain brand or with a special USBid/class) and it automatically launch a text editor app
I connect an USB soundcard and it launches an audio app.
And "better", is there an autolaunch on Android ? I plug a keyboard+storage device to my smartphone and Android will ask me if I want to install the apk from the storage (or download it from predefined url)
Obviously for security reasons I understand installing the app from the storage will need confirmation by user. But, once the app has been "registered" would it be possible to launch the app automatically without having a confirmation screen ?
I know I could get USB info with android.hardware.usb.usbdevice. My question is more about how I can tell Android to launch this app rather than another when usb device is connected.
I think you could register your app to receive a system broadcast like USB_ACCESSORY_ATTACHED and make the logic to launch your app when this happens.
Check https://developer.android.com/guide/components/broadcasts
https://developer.android.com/reference/android/hardware/usb/UsbManager.html#ACTION_USB_DEVICE_ATTACHED
I develop an application that needs to send a notification with FCM.
But when I installed it on the Asus device when app closed (killed) data was not received in service.
I realized Asus and Huawei and some other vendors have auto start setting to save battery and user must allow to my app that have access background service.
Is it possible to run this service without permission from the user?
Some application does this! for example, Telegram.
Unfortunately you cannot whitelist your app in Auto Start / Auto Protect for ASUS and Huawei devices without user intervention.
The best course of action is to display a dialog in case the android.os.Build.MANUFACTURER is huawei or asus and open up the Auto Start / Auto Protect page to make things easier for the user:
"Protected Apps" setting on Huawei phones, and how to handle it
I am developing an Android Things application on Raspberry Pi 3. But once the app is installed, I cannot go back to the home screen of Android Things to get the ip address of the device to connect it to my computer.
I tried Esc key on the connected keyboard but it just restarts the app and when pressing it multiple times rapidly it shows a message with two options:
app keeps stopping:
- Open app again
- Close app
But they also just restart the app again.
So is there a way to show the home screen again?
Note: The installed version of Android Things is DP 0.6.0