Android intercept/disable recent apps button - android

I am trying to create a kiosk type app so when you press the recent apps button I dont want the user to be able to go to a different app. I have been googling around but cannot find anything on this matter. There is this solution in this
thread Recent apps button in android
However this does not seem to work for me on Android 6.0
Can someone please point me to the right direction on how to do this?
Thanks

In the link you provided yourself can find the answer:
Is that possible to override recent apps button in android? Not from
an ordinary SDK app.
You are welcome to build your own custom ROM that modifies the
overview screen, then convince people to install your custom ROM on
their devices.
So your answer is no in the app written by Google provided SDKs.

It is not possible. You can not control recent app AND home button in Android. You can't allow user to not leave the app. It is user's choice.
Edit: The only way you will be able to control those buttons is if you have system level permissions. To have system level permission for the device, you have to have system certificates and you won't have that unless you created the Android ROM on the device.

there's a app called "All in one Gestures" that can make the physical recent apps button without blocking some alternate way to trigger recent apps (like assistant menu in accessibility settings), i'm not the developer of that app but using APK editor, i see that the app are using accessibility service

Related

Can I temporarily stop to open other apps through my app for specific time?

i am developing phone addiction Android app
in this app i need a functionality don't open particular app for specific time
Not without system level permissions, no.
Device policy controller could probably solve your issue. Look at this repo
The thing you are trying to archive is a really tricky one. I think there is no easy solution. Even custom launcher won't enforce rules to google play app through which you will be able to open applications.

Can an Android Spyware hide from App List?

Is possible to any harmful software to be installed on Android, without the user's permission and hide that software in the App List?
Spyware, virus, etc.
Thanks.
It is possible to have an app with no launcher icon, but every app will show up in the Settings's Application list.
Additionally, starting with Android 3.1, applications aren't allowed to do anything at all until they have been started by the user at least once, which requires them to be present in the launcher.

How can i integrate a app into the phone settings?

Nova Launcher has an integration with cm9 settings like settings-->launcher
now i want to access an application through settings & i don't want any icon in app drawer..is this possible..can someone point me to a tutorial or an example..
I dont think its possible. Because System Settings itself is an app and you cannot push-in your contents into another app unless there's any interface available for this, which in this case Not.
The reason why cm9 has it because its a custom ROM and the developers have customly tailored its setting's section to integrate options from its supported packages at one place.
I don't think you can do that with a stock ROM, as you say Nova Launcher does it on Cyanogen.
Similar question: Integration into android's settings
I'm not sure about CM9-specific APIs (which may or may not exist).
In stock Android, your app can appear under Settings > Accounts & sync if you implement AccountManager. You will need to create a mock account if your app does not require sign in. I remember HTC Sense doing this with some of their apps (e.g. weather) at some point, not sure about the most recent versions though.

turn off recent apps button or clear list?

Is there any way to either turn off the recent apps button in android 3.0 (I have a xoom) or clear the list? I have not found one so far.
It breaks my app protector program and allows people to circumvent the app password if its in the list. (like my gmail)
If not, does someone have a confirmed app protector program that accounts for this and works in android 3.0?
Why not add android:noHistory="true" to your manifest for the activity?

Android: implement auto-updates for my apps?

I would like auto-updates to be enabled for my application. After lots of searching, I can not find any information about how to implements this. My interpretation is that it is a feature of 2.2 and android marketplace, and will happen automatically. However, I have a few questions about this that I cannot find answers to on Google:
How does this work? Do I just publish a new version to the Google marketplace and then users are prompted to update their application? If so, is there a way to control if I want to allow the user to be able to update? (like, if I publish 1.1, I would like to allow an update. but not for 2.0).
Do I need to specify anything in my manifest file or anywhere else in my app?
If this is a 2.2 feature, will it work if my app is 2.1 compliant? (I assume it would not work for users running 2.1, but want to make sure being 2.1 compliant would not break it).
Thank you.
I could be wrong here but I believe auto update is a function that the user would control. The user has the option to allow your app to auto update from the android market place provided the permissions have not changed. I do not think you can force the user to auto update.
just publish a new version and users will be prompted to install. i think for preventing updates to v2 you will need to create a new app (or change the properties so google thinks its a new app
you will need to increment your android:versionCode="??" in the manifest
you will have to specify the minSdkversion and if you use a newer feature than is available in an older version your app 'supports', you will have to check the version they are running and disable the feature or code it someother way.
You can control auto updates by opening the "market" When the 'Market" home screen is open, click the "menu" button( lower far left on your device.) a settings menu will pop up and you can set the auto-update features there...

Categories

Resources