well i was looking at some interesting things, some suggest to compile the project to eclipse. But as far as i can tell there is no way to do that in C2. Here was one I was very interested in. stackoverflow.com/questions/2162182/android-is-it-possible-to-disable-the-click-of-home-button
"I'm pretty sure Toddler Lock just uses a BroadcastReciever and listens for Intent.ACTION_MAIN and the category Intent.CATEGORY_HOME - that's why when you first launch it, it tells you to check the "use this application as default" box, and makes you select toddler lock.
So, it's not really blocking the Home button at all, it's just setting itself up as the default broadcast receiver for:
Intent i = new Intent(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_MAIN);
When you launch Toddler Lock, it probably sets an internal flag, and if you press the home button, it just brings the window to the front. If the flag is not set, it probably launches Launcher explicitly.
I hope that makes sense. It's just a theory, but I'm almost 100% sure that's how it's done.
share|improve this answer
answered Apr 16 '10 at 1:19
synic
11k16093
5
Sorry to comment on this old one, but just to correct some confusion -- you cannot receive startActivity() Intents via a broadcast receiver. However, another activity can declare itself to be a HOME activity, which will then allow the user to choose a home screen implementation when they press the HOME button. � CommonsWare Jun 28 '11 at 14:30"