[Q] Disable Home Button for toddler app? - Android Software Development

I've developed and app that is a slide show of pictures which each play a sound when you tap them. It's like a picture book for ages 2-4.
The problem is, since android won't let you capture a home button press and essentially disable it, when parents give the phone to their child to play with unattended (brave parent), the child can inadvertenly exit the app and then make calls or otherwise tweak the phone.
There are two other apps that currently have a psuedo fix for this issue. The apps are Toddler Lock and ToddlePhone. I've tried contacting the developers of these apps for some guidance but they haven't been willing to disclose anything, which if fine, but does anyone here have any suggestions?
It looks like both of those other apps are acting like a home screen replacement app. When you enable the "childproof mode" on those apps the user is prompted to chose and app for the action and the choices are "Launcher, LauncherPro, etc." plus the toddler app. You then have to make the toddler app the default and voila, the phone is "locked" and can only be "unlocked" using a key combination or touching the four corners of the screen, etc. when you "unlock" the phone. your normal home screen app default restored. You don't even have to make the toddler app the default the next time you enable the "childproof mode".
I have read that these two apps have problems with Samsung phones and they can cause an an infinite crash-and-restart-loop that requires a factory reset to fix. Obviously this is not the ideal solution to the problem but it looks like the only one availiable at this point.
Does anyone have any ideas on how to implement a "childproof mode"?

Could it run on top of the lock screen

So Do you mean making the app a lock screen replacement? I suppose that could work.
Do you have a suggestion on how to accomplish that?

Related

[REQ] Disable Touch Panel from shortcut

I have tried to make this myself but im not the best at c# I was hoping someone would like to write a small app that disables and enables the touch panel without using the gsensor or light sensor or nav sensor. i want to use this with a mort script so it would launch the app to disable touch panel then run the rest of the script then launch the app to enable it. i don't care if its two separate apps. if someone can help i would appreciate it so much. thanks
This isn't an actual shortcut, its a bit better than that if you ask me.
http://www.freewarepocketpc.net/ppc-download-sensorlock.html
Basically you just spin the phone in your hands and it will lock, watch the video, it shows what to do
I've also found an application called sleep, I used that for a while but now I'm on WinMo 6.5 and I just use the lock button instead. Just do a quick google for a program called sleep, shouldn't be too hard to find.
And also there is an inbuilt lock thingie where you can set your phone to lock the screen if you hold down the end call button for like 5 seconds but that one is a bit of a pain cause you gotta hold it for ages before it locks and then when you try to unlock it is hard especially if youre outside with the sun shining.
AdamHC said:
This isn't an actual shortcut, its a bit better than that if you ask me.
http://www.freewarepocketpc.net/ppc-download-sensorlock.html
Basically you just spin the phone in your hands and it will lock, watch the video, it shows what to do
I've also found an application called sleep, I used that for a while but now I'm on WinMo 6.5 and I just use the lock button instead. Just do a quick google for a program called sleep, shouldn't be too hard to find.
And also there is an inbuilt lock thingie where you can set your phone to lock the screen if you hold down the end call button for like 5 seconds but that one is a bit of a pain cause you gotta hold it for ages before it locks and then when you try to unlock it is hard especially if youre outside with the sun shining.
Click to expand...
Click to collapse
thanks for the response, i have used sensorlock and it is a great app but i want the screen lock so i can run script that involves buttons press while the phone is in my pocket
question about SIP default
i know this may not be the most appropriate thread to put this question on, my apologies. From the title I thought it may be. Anyhow, I installed phm registry editor and am trying to learn to use it, but not sure how to find something im wanting to change. My SIP default seems to be that anytime i open my sms inbox, or email, etc, my keyboard pops up without me selecting it to do so. I want to change it so it only pops up when I select the little tab/icon to MAKE it pop up.
Any help would be greatly appreciated. Much thanks in advance.

WP 8 and Multitasking

Hello there!
I would like to try it by myself, but unfortunately I cant. So, someone who tried the SDK, have you noticed changes in multitasking system?
Right now the only way to resume an app is using fast app switch. But I really dont like it. I rather just use the homescreen icon instead. Right now it relaunch the app.
Any changes on that? (oh please)
Thank you so much!
mikeeam said:
Hello there!
I would like to try it by myself, but unfortunately I cant. So, someone who tried the SDK, have you noticed changes in multitasking system?
Right now the only way to resume an app is using fast app switch. But I really dont like it. I rather just use the homescreen icon instead. Right now it relaunch the app.
Any changes on that? (oh please)
Thank you so much!
Click to expand...
Click to collapse
Windows Phone apps can never resume via the homescreen like iOS, due to the addition of the hardware OS back button.
To illustrate why; imagine you have an app that has start page and a settings menu. When a user goes to the settings menu, they can only go back to the start page by pressing the hardware back button (this is standard Metro design).
Now imagine a user opens the app, goes to the settings menu, then exists the app by pressing the Home button. They then do a few other tasks and then resume the app. They are now stuck in the settings menu and can't get back to the app start page; the back key will take them back to the WP8 Home screen (this is how the WP OS backstack works).
To get around this issue, Microsoft specify that starting the app from the front page always has to start a fresh instance, so the user can never get "stuck".
iOS has software back buttons on every page, so all apps can resume however you launch them. Android had the same problem with their back button (actually worse, as their backstack can be altered by the OS choosing to kill memory-intensive apps); to get around this, from ICS onwards Android apps are meant to have a software back button in the top-left, to go back within the application (hardware back key is still OS backstack).
Aphasaic2002 said:
Windows Phone apps can never resume via the homescreen like iOS, due to the addition of the hardware OS back button.
To illustrate why; imagine you have an app that has start page and a settings menu. When a user goes to the settings menu, they can only go back to the start page by pressing the hardware back button (this is standard Metro design).
Now imagine a user opens the app, goes to the settings menu, then exists the app by pressing the Home button. They then do a few other tasks and then resume the app. They are now stuck in the settings menu and can't get back to the app start page; the back key will take them back to the WP8 Home screen (this is how the WP OS backstack works).
To get around this issue, Microsoft specify that starting the app from the front page always has to start a fresh instance, so the user can never get "stuck".
iOS has software back buttons on every page, so all apps can resume however you launch them. Android had the same problem with their back button (actually worse, as their backstack can be altered by the OS choosing to kill memory-intensive apps); to get around this, from ICS onwards Android apps are meant to have a software back button in the top-left, to go back within the application (hardware back key is still OS backstack).
Click to expand...
Click to collapse
But it sucks so bad! They should review this. I hate to use the back button, and I hate to not resume the app. Using a common app, for example, WhatsApp. I was in a chat with someone. Then I hit Windows button and Im at start screen. Then I receive a message from the same person I just left the chat. What I do? I can open from the toast, can open from fast app switch (back button), or open from start screen icon.
If I open from toast, that will depend on what the app was meant to be. In WhatsApp it would take me to the chat, because of deep toast notification. But, right now, it needs to reload the whole app to open just the chat.
If I open from fast switch, it will resume the app right away. Nice. But in any other platform the message would be there waiting for you. Right now, in WP, it takes a lot to refresh the chat. You keep like 10 seconds staring at the screen waiting it. Its even faster to just reopen the whole app.
And if I open from start screen, its almost the same effect of toast, but it dont take me to the chat, but to the start screen of the app.
The point is, the fast switch is not helping that much. In fact, it would makes sense to change the fast switch to open when holding the Windows button instead of back button, and whenever an app is open, opening it from start screen icon just resume it. Actually, a lot of people doesnt even know, or even knowing, doesnt even use fast switch. Im not a common smartphone user, and even so I dont use fast switch.
For me, its the worse problem of platform. And I dont care about CE or NT if it works, but I care about it working at all. Doesnt make sense to put a whole computer in my pocket if it cant resume a single app.
i don't like the idea either to relaunch the app when you just have put it in background. then again, i also hope we will be able to close apps from the fast-appswitch-screen. and add an option to the gesture lovers out there: pinch out on homescreen to launch multitasking. or swipe from edge like w8. or anything like that. it would add to UI experience and would eliminate that 2-seconds-pause when pressing and holding down the backbutton.
Was the question not about Windows Phone 8?
Windows Phone 8 is supposed to behave differently, since true background processing is supposed to be enabled. I haven't played with the SDK yet, but I suspect that for non recompiled apps, things will behave as they do on Mango. But, I think that things changed to target WinRT and set to be able to run in the background will be able to resume right where you left off.
It wouldn't make sense for an app that is running and processing things in the background to restart when the tile is pressed.
It's been a while since I used Mango or wrote any apps for it. But, when an app is suspended, the dev has a specified amount of time to save the state.
That way when it is relaunched, the app can resume where it left off, by processing the saved state on launch. I thought with fast resume the app stayed in memory, but that was done through a registry hack and not directly made available by any carrier.
After doing some reading, the multi tasking enhancements might only add gps and voip to the currently supported background processing.
JVH3 said:
But it sucks so bad! They should review this. I hate to use the back button, and I hate to not resume the app. Using a common app, for example, WhatsApp. I was in a chat with someone. Then I hit Windows button and Im at start screen. Then I receive a message from the same person I just left the chat. What I do? I can open from the toast, can open from fast app switch (back button), or open from start screen icon.
If I open from toast, that will depend on what the app was meant to be. In WhatsApp it would take me to the chat, because of deep toast notification. But, right now, it needs to reload the whole app to open just the chat.
Click to expand...
Click to collapse
Tapping the toast to re-open the chat is the correct behavior here. I guess it's just bad coding that makes it take so long to resume; it should just be able to go straight to the conversation and skip all the "loading contacts...connecting" stuff.
JVH3 said:
Was the question not about Windows Phone 8?
Windows Phone 8 is supposed to behave differently, since true background processing is supposed to be enabled. I haven't played with the SDK yet, but I suspect that for non recompiled apps, things will behave as they do on Mango.
But, I think that things changed to target WinRT and set to be able to run in the background will be able to resume right where you left off.
Click to expand...
Click to collapse
Are you sure you're not thinking of Windows 8? For Windows Phone 8, no changes have been announced regarding multitasking or background tasks, *except* that a few select APIs (VOIP, location) will be able to run in the background, similar to iOS (not true backgrounding like Android)
Also we are talking about resuming, not background processing. In the WP8 SDK emulator, apps built into the OS don't resume; Therefore it's safe to assume 3rd party apps are not going to either.
JVH3 said:
It wouldn't make sense for an app that is running and processing things in the background to restart when the tile is pressed.
It's been a while since I used Mango or wrote any apps for it. But, when an app is suspended, the dev has a specified amount of time to save the state.
That way when it is relaunched, the app can resume where it left off, by processing the saved state on launch. I thought with fast resume the app stayed in memory, but that was done through a registry hack and not directly made available by any carrier.
Click to expand...
Click to collapse
When an app is closed the developer is meant to save the state, so that it can be reloaded if it is quick-resumed. However, once the app leaves the backstack (the 5 apps that appear in when you hold the back-button), this state is supposed to be discarded.
This is not a technical issue; it would be trivial for app developers to save the state and make their apps resume. The issue is that Microsoft's publishing guidelines (to get your app published on the WP app store) specifically says that an app launched from the home screen must launch showing it's introduction page, i.e. it can't resume. It could save some state, so a web-browser could still have all the recent tabs open, but it couldn't show the last one seen (ironically IE9 does resume it's state - guess Microsoft are allowed to break their own guidelines).
I agree it doesn't make sense to restart an app that is performing some background task; but then how to you avoid users getting stuck within a certain page, as in my example above? If WP8 includes a hardware back button, they can't change this policy.
Well, thats a shame. I hate reloading the app everytime I need it. Its so meaningless. I dont need VOIP, I dont need Skype running all the time. But I do need apps to be fast.
It really depends on how exactly the developers save their app state when the app is sent to background/tombstoned.
I, for one, use a text file to save data ( a lot of data) and proceed to loading the app as usual, and the moment the user presses a button, a pop up asks him weather he wants to restore or start anew.
I'm guessing that not every app will do this, as it is up to the developer to implement this.

[Q] holding home button

I looked around but didn't find anything, although that doesn't mean anything.
My question is that when holding the home button,you get a whole semi circle, but just giogke now or whatever that silly thing is. Is there a way of adding programs or shortcuts to this popup. I have zero use for the Google thing so seems a shame if I am unable to add more useful items to this semi circle. Could prove pretty useful.
hughlle said:
I looked around but didn't find anything, although that doesn't mean anything.
My question is that when holding the home button,you get a whole semi circle, but just giogke now or whatever that silly thing is. Is there a way of adding programs or shortcuts to this popup. I have zero use for the Google thing so seems a shame if I am unable to add more useful items to this semi circle. Could prove pretty useful.
Click to expand...
Click to collapse
I haven't seen anywhere you can add to that or change it. I love the google now thing, just to be able to tell it to wake me up in an hour if nothing else:laugh:
Try this app if you haven't already though, it will let you launch an app just by sliding in from the side of the screen, or bottom, or whereever you want.
https://play.google.com/store/apps/details?id=mobi.conduction.swipepad.android&feature=search_result#?t=W251bGwsMSwxLDEsIm1vYmkuY29uZHVjdGlvbi5zd2lwZXBhZC5hbmRyb2lkIl0.
Instead of launching Google Now you could get get an app launch list using 'Launch Now', which replaces default behavior. Just serach for it in PlayStore, as I may not insert links (10 posts rule)....
There's a way for people who want to hook into the swipe up action that may not be documented. Apps like "Sudo Quicklaunch" make the system switch the icon to a generic search icon and show you the standard action completion pop-up. (One can see this in the app's promotional video.) I haven't personally tested that app, but I have seen the swipe up reassignment behavior with "Secure Settings." The Secure Settings app actually changes the icon displayed by the swipe up menu, when you tell it to "Always" use that app, and Google Search does the same thing. Coincidentally, the same reassignment behavior appears to be possible with the shop icon in the stock launcher. (I saw it for myself in the days of Honeycomb with the transition from the original Honeycomb Market app to the new, unified Market app, because both were installed, it asked me to choose when I tapped shop.)

App idea: Alt+Tab style, single click switch to previous app. Exist already?

I I have looked all over for an app to do this but have found nothing. I am ready to start writing my own, but want to make sure it doesn't exist already? Seems hard to believe no one has done this yet!?
say i need to copy/paste listing descriptions from evernote into ebay... I want a QUICK trigger, maybe double tapping home or something that shows a simple app list in a transparent overlay.
Pick the ebay app and it loads. After pasting the title there, double tap home again and instantly, it flips back to Evernote where I can repeat this process with the description and other fields. Maybe the volume key could flip between the two apps, or better yet, a swipe.
Seeing how I use that technique a million times a day, it would save countless hours over all the other task manager types that always load a display of all (or none) of the recent apps when triggered. I don't know about everybody else, but there's a 90% chance that if I want to quickly flip to another app, it's because I intend to quickly flip right back in a few seconds.
This is such a vital function for me on computers that I dedicate a whole button on my mouse to pressing Alt+Tab so I can flip back and forth very fast. I have become very spoiled by that technique and can't stand doing work on Android just because of its annoyingly slow and painful "task manager" if you can even call it that. TIA!
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
toothpick5 said:
I I have looked all over for an app to do this but have found nothing. I am ready to start writing my own, but want to make sure it doesn't exist already? Seems hard to believe no one has done this yet!?
say i need to copy/paste listing descriptions from evernote into ebay... I want a QUICK trigger, like double tap home (or whatever) that shows a simple app list in a transparent overlay.
Pick the ebay app and it loads. After pasting the title there, double tap home again and instantly, it flips back to Evernote where I can repeat this process with the description and other fields. Maybe the volume key could flip between the two apps, or better yet, a swipe.
Seeing how I use that technique a million times a day, it would save countless hours over all the other task manager types that always load a display of all (or none) of the recent apps when triggered. I don't know about everybody else, but there's a 90% chance that if I want to quickly flip to another app, it's because I intend to quickly flip right back in a few seconds.
This is such a vital function for me on computers that I dedicate a whole button on my mouse to pressing Alt+Tab so I can flip back and forth very fast. I have become very spoiled by that technique and can't stand doing work on Android just because of its annoyingly slow and painful "task manager" if you can even call it that. TIA!
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
I am sorry, but you cannot override the home button.
You could try one of the various side bar apps though.
It could be a swipe gesture or anything that requires only ONE step. I don't want to bring up an app selection list on every switch, but just the first time. Maybe a notification bar button could bring up the selector, then a side swipe gesture could flip back and forth between the two apps? It should be simple to write this. I just cant believe that it hasn't already been done? Surely someone knows of an existing app?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
toothpick5 said:
It could be a swipe gesture or anything that requires only ONE step. I don't want to bring up an app selection list on every switch, but just the first time. Maybe a notification bar button could bring up the selector, then a side swipe gesture could flip back and forth between the two apps? It should be simple to write this. I just cant believe that it hasn't already been done? Surely someone knows of an existing app?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
The problem is that the part of the screen which will be "swipeable" will not react to touch events anymore.
nikwen said:
The problem is that the part of the screen which will be "swipeable" will not react to touch events anymore.
Click to expand...
Click to collapse
Yeah. But it could be a small invisible hotzone like many of the task managers do. Swiping is just for the cool factor really. Using the volume button should work just fine for my needs. Would that work? The volume button can still listen to an app thats not in focus because music players do it right? But i guess that would be a problem if one of the switched apps overrides the volume control...? Any suggestions? If nobody has pointed out an existing app with this capability I will start on it tonight. I'm still a newb to Android but, I am majoring in programming so I gotta jump in on something!
toothpick5 said:
Yeah. But it could be a small invisible hotzone like many of the task managers do. Swiping is just for the cool factor really. Using the volume button should work just fine for my needs. Would that work? The volume button can still listen to an app thats not in focus because music players do it right? But i guess that would be a problem if one of the switched apps overrides the volume control...? Any suggestions? If nobody has pointed out an existing app with this capability I will start on it tonight. I'm still a newb to Android but, I am majoring in programming so I gotta jump in on something!
Click to expand...
Click to collapse
if I understand correctly you just want to have multitasking without having to hit the multitask button and then choose the app; you just want to be able to choose the app. I would say something like floating folders would work for you.

Remove watch face and block external inputs

Hi everyone,
A bit more unusual question: I have a KW88, but am eager to remove the watch face alltogether.
What I want is that, as soon as button is pressed to show the screen, it will automatically unlock the phone and open an app which I preprogrammed to automatically open on android. It will directly show a big dial button on the screen. Funnily enough, sometimes my autoload app overrides the watch face, and sometimes it doesnt. I haven't been able yet to pinpoint why.
To avoid buggyness, I wish to remove the watch face alltogether and have it directly open to the normal app menu (then the app always opens).
Anyone have a good idea to do this?
Thanks!
Wattah

Categories

Resources