C COBRASoft Active Member Licensed User Longtime User Nov 7, 2012 #1 Hi, Would this actually work? If so, how to do this in B4A? Disable home button in Android | Android,Easy Tutorials... Greetings, Sigurd
Hi, Would this actually work? If so, how to do this in B4A? Disable home button in Android | Android,Easy Tutorials... Greetings, Sigurd
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2012 #2 This solution will only work on Android 2.x devices (and also with some quirks). On newer devices it will crash. Note that I haven't tested it myself. This information was gathered from several discussions. Upvote 0
This solution will only work on Android 2.x devices (and also with some quirks). On newer devices it will crash. Note that I haven't tested it myself. This information was gathered from several discussions.
mc73 Well-Known Member Licensed User Longtime User Nov 7, 2012 #3 An alternative is to put your app behave like a home screen, as presented in a comment at Erel's kiosk mode post. I'm using it already and am quite happy with the results. Upvote 0
An alternative is to put your app behave like a home screen, as presented in a comment at Erel's kiosk mode post. I'm using it already and am quite happy with the results.
Informatix Expert Licensed User Longtime User Nov 7, 2012 #4 Erel said: This solution will only work on Android 2.x devices (and also with some quirks). On newer devices it will crash. Note that I haven't tested it myself. This information was gathered from several discussions. Click to expand... I confirm. You cannot change the window type once the window is added with ICS. Last edited: Nov 7, 2012 Upvote 0
Erel said: This solution will only work on Android 2.x devices (and also with some quirks). On newer devices it will crash. Note that I haven't tested it myself. This information was gathered from several discussions. Click to expand... I confirm. You cannot change the window type once the window is added with ICS.
luke2012 Well-Known Member Licensed User Longtime User Aug 30, 2013 #5 So no way to intercept home button also in Jelly Bean ? Upvote 0
Informatix Expert Licensed User Longtime User Aug 30, 2013 #6 There's a way but it's pretty complicated and can brick your device if you do it wrong, so forget it. I implemented it in my app MyPlayground. That redirects the Home button to your app. Upvote 0
There's a way but it's pretty complicated and can brick your device if you do it wrong, so forget it. I implemented it in my app MyPlayground. That redirects the Home button to your app.
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2013 #7 Have you seen the "kiosk" example? There is an explanation in the first or second page on how to make your app a "home" app. Upvote 0
Have you seen the "kiosk" example? There is an explanation in the first or second page on how to make your app a "home" app.
luke2012 Well-Known Member Licensed User Longtime User Aug 31, 2013 #8 Erel said: Have you seen the "kiosk" example? There is an explanation in the first or second page on how to make your app a "home" app. Click to expand... Yes cool tip and I did it in my app but I don't like the question proposed to the user to choose which home to set as default. In this way a user can se the android home or other launchers. Upvote 0
Erel said: Have you seen the "kiosk" example? There is an explanation in the first or second page on how to make your app a "home" app. Click to expand... Yes cool tip and I did it in my app but I don't like the question proposed to the user to choose which home to set as default. In this way a user can se the android home or other launchers.
Informatix Expert Licensed User Longtime User Aug 31, 2013 #9 luke2012 said: I don't like the question proposed to the user to choose which home to set as default. Click to expand... You have not the choice. This dialog is mandatory (at least the first time when you want to register your app as a home screen). And as I mentioned, replacing Home by your own program is very risky. I bricked two times my tablet while doing so. If the program crashes or is stuck and you turn off the device, then your device will display the nice Android logo at reboot and that's all (on the other hand, you will learn how to reinstall an Android system on a device ). So you have to add additional code (and not the easy kind) to circumvent all possible problems. I won't explain that because it's in Java and I don't want to take any responsability in that matter. I just wanted to say that's possible to redirect the Home button while the app is running and restore the original Home screen when you leave the app. Upvote 0
luke2012 said: I don't like the question proposed to the user to choose which home to set as default. Click to expand... You have not the choice. This dialog is mandatory (at least the first time when you want to register your app as a home screen). And as I mentioned, replacing Home by your own program is very risky. I bricked two times my tablet while doing so. If the program crashes or is stuck and you turn off the device, then your device will display the nice Android logo at reboot and that's all (on the other hand, you will learn how to reinstall an Android system on a device ). So you have to add additional code (and not the easy kind) to circumvent all possible problems. I won't explain that because it's in Java and I don't want to take any responsability in that matter. I just wanted to say that's possible to redirect the Home button while the app is running and restore the original Home screen when you leave the app.