I want to enable/disable the Android market programmatically for my kids app (with a checkbox). Is this possible? How?
Generally, no. You cannot affect the behaviour of other apps from your app. There are tricks that allow you to monitor what has been stated and you can bring your own app in the foreground to sort of 'block' it, but this is neither supported, nor guaranteed to work on all devices and Android versions.
To disable the play store, do as you would with any other app if you were going to delete it, however in replace of the delete buttin wil be a disable button.
If you do not want to disable it all together, you can open the app, click menu, and then settings, and then half way down on the list you are abe to set a passcode for purchases.
EDIT
I know hat you said programmatically, however this could still be a solution as to what you may be looking for instead as a workaround.
Related
I have a question. I wanted to develop an app that would add a shortcut to the keyboard (Samsung SoftKeyboard).
The shortcut should be accessible via the dots at the top right (see attachment).
I would like to add a circle ("floating") over my app, as shown in the picture on the right.
Something specific should then be carried out via this circle (but that's not the point yet).
I've done a little research, but don't really know what to look for.
I hope you can help me.
thanks in advance
Example
afaik there is no such possibility to add anything in there. it's another app with own custom settings and options, you can't edit such or change in any way. your last chance is possibility of published API/some communication way for that app, which would allow to add such actions, but I very doubt Samsung made such API for own keyboard app and allowed ANY 3rd-party app to mess in their software... (btw. that would be very insecure for user)
I am looking for solution where i can detect All phone numbers in all android app, provide a feature click to call to my app user which they can make a call from my app. Since android has lot of restrictions looking for elegant solution to implement this feature. Please suggest is it possible in Andorid or not?
I try to explain better:
I want to put some tablets in my shop for my customers. I want them to use only a few apps that I've created.
So I need an Android version (or a launcher version, maybe?) where you can only choose between some apps to be played. All the settings, all the other apps and everything else must be unreachable (or, better, only reachable if you know the password).
Anyone has any suggestion on how to do it or where do I start?
Thanks a lot.
One Google search led me to the following:
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&hl=en
https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher&hl=en
Just whichever one you want and and hide the apps you don't want. It will hide them in the drawer as well. Nova Launcher already looks like stock Android, or close enough if you want that. In fact they both do.
I am working on a project where we have to put a Google TV in a public area. I am building a custom application for it that should be running all the time. Basically, we don't want someone to be able to switch out of this specific application. In a perfect world, people walking by should be able to use a keyboard that comes with the Google TV (Revue). My question is, is there a way to programmatically lock down the system? Or do we need to use a special keyboard that only has alphanumeric buttons on it?
I am not an expert in Google TV,but such a problem can be handled in the mobile by creating a Home application and making that as default.So the user cannot switch out the application.Of course you need to make sure that your app is the default Home app before giving it out to the user(anyways this is your device and not the users). I am not sure whether the Google TV has a home intent.
My question is, is there a way to diagrammatically lock down the system?
Not without creating your own custom firmware, which at the moment is not possible for Google TV IIRC.
Or do we need to use a special keyboard that only has alphanumeric buttons on it?
Not only do you need that, but you would have to get one that works with the device (not sure if a standard Bluetooth keyboard will work), and then you will run into problems with missing buttons like BACK and MENU. You might be able to engineer around those missing buttons by having adequate navigation in the app to avoid users needing them.
I am stuck with a problem. In the past, i set an application as default launcher on my android phone when the dialog popups up for selecting the default application and now i have forgot which application it was?
How can i detect which application has been set as default?
Any help appreciated.
Unless your aim is to do this programattically(I don't think you can, but I could be wrong) This would be a better fit at Android Stack Exchange
The easiest way will probably be to go into manage applications and find all of the home screen ones, select each of them and scroll down until you see the "Clear defaults" button. The one that is not greyed out is the one that is currently set for default.