Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create an application that will lock the screen of the android device.
For example, Android A and Android B is connected to the same network/wifi. Is it possible to control Android A by Android B? I just want to lock the screen of Android A using B.
If:
Your app is installed on both A and B, and
You arrange for B to notify A that it needs to be locked, and
Your app on A is a properly-configured device administrator
Then your app on A can call lockNow() on DevicePolicyManager to lock the device.
The part that you ABSOLUTELY HAVE TO GET RIGHT is the communications from B to A. What you do not want to do is allow arbitrary other parties, such as the world's script kiddies, to go around locking people's devices on them. Using something (relatively) assured to be local, like Bluetooth, would help in this regard.
Yes, it is possible, but you have to deploy your programs on device A and B. You need a program which have a service and accepts connections to it in the background. This is device A. On device A you have to write a code snippet, like this How to programmatically lock screen in Android?
And on device B you have to have a program which communicates with this service on device A.
If you're not developing this for just yourself I think you should consider safety above all. (not enabling for anyone to just lock anyone else's screen)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
We want to develop application which used to share important data in secure way. Idea is:
Data to be exchanged between phone A and phone B (and vice versa) when users “Tap” the phones together. The date, time and location of this action is to be recorded.
This should work anywhere (in buildings or in rural areas where there is no mobile signal coverage), and work cross platform (iOS, Android, Windows).
we want to know is it possible to develop such application ?
Thanks,
Yes, you can 'bump' phones and send over Bluetooth. You would use the accelerometer of the phones to detect the 'bump' part. The date, time and location you can pull straight from the devices (given you have GPS permission).
It would be a lot of work to develop right, especially across multiple platforms, and I believe an app like that already exists, for sharing contact information.
Also for future reference, you're probably getting down-votes because you're not asking specifically about code. Best of luck.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have been developing a concept for an Android application for doctors to use, and it involves the use of an Android mobile phone and a tablet in the operation theater. I will have a clickwheel sort of menu on the app running on the phone, and another instance of the app running on the tablet. When a user selects an option using the wheel, this event has to trigger the rendering of a view on the tablet. I'm quite new to Android development, so any help on how this could be implemented would be great!
Thanks in advance!
Krishna
You'll have to get the devices on the same network (of some sort). And device some sort of communications whereby the phone can send the selected choice over the network to the tablet, and the tablet can then react by updating its UI.
This communication could be achieved in many different ways: Bluetooth, or Wifi I think are the easiest two to implement. Which one fits your use case better would be something we wouldn't know without more information though.
In order for this to be accomplished you have to have some sort of messaging system between the devices. You'd likely make some server API call on menu selection on the phone. From there you can have the web service kick off a GCM message to the tablet OR have the tablet polling the server every x seconds checking for the change and responding appropriately.
As FoamyGuy stated, bluetooth might also be a viable option.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How would you go about locking down an Android device while meeting the following requirements:
Access to Wifi networks
Access to a single company's App
Ability to download/update to newer versions of the company's App
Access to Bluetooth Printers
Obviously, this is a pretty general question, but I was hoping for some guidance. Are there any existing solutions to this problem? I am aware of apps like SecureLock and Device Lock, but do either of these allow application updating for JUST our application?
What about if we preconfigured the device to only have our application and nothing else, deleting all other applications?
Again, just looking for some direction/suggestions here.
Note: I am aware that essentially anything can be accomplished by releasing a custom version of Android, but implementation effort is a factor in which solution we will decide on.
I believe most of this can be achieved by building a "launcher" app and making it full screen (cover the status bar). Check out the API Demo Home.
Access to Wifi networks
You can use WifiManager to handle listing/connecting/etc.
Access to a single company's App
Creating the main app as a launcher gives you the ability to control what other apps may be installed/uninstalled/launched/etc.
Ability to download/update to newer versions of the company's App
This can easily be done by simply downloading the updated .apk (with a larger version code) and opening the file via Intent to install.
Access to Bluetooth Printers
I don't know much about this, but if it can be done in a normal app, the launcher method covers it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have developed an app which is destined for tablets in hospitals for patients use.
Right now I am being asked to make the tablet's only functionality be my app to prevent personel or any person from using it for web browsing, gaming or anything else.
Is this possible?
There are products on the market that offer 'kiosk mode' style device lock down whereby you can restrict applications.
Surelock
SuperLockLite
Also see this Stackoverflow post for similar discussion.
Kiosk mode in Android
This is the best solution to kiosk mode I've found so far
http://thebitplague.wordpress.com/2013/04/05/kiosk-mode-on-the-nexus-7/
android is a linux OS and you can create users with specific permission,
i never did this but I've seen it: http://l4android.org/
I hope might help
You can create your own custom android version, in order to prevent users to use the back button or to acceas settings, for instance. You have to take care of restarting your app if it crashes. You can ovverride the home launcher in order to be your app the only launchable. You want to take same sort of "back door" just in case you want to grant super user access
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am looking at locking down several Android Tablets (Samsung Galaxy tab) to allow the user to unlock the device and be sent straight into one application and not allowed to leave. I was wondering if this is possible without creating a custom ROM and if so how? Any help is greatly appreciated
You might try creating a custom launcher and see how far that gets you. I don't think it will be bulletproof but by adding some hacks like having it auto-launch a specific app, it's probably about as far as you can get without a custom ROM. See here for the code of the stock Android launcher:
https://android.googlesource.com/platform/packages/apps/Launcher/+/master/src/com/android/launcher/Launcher.java
You could create an app that is more or less "non-exitable" by overriding the hardware buttons' default behaviour in your application.
Although if your app crashes and doesn't automatically restart after a crash, the user has full access to the rest of the system.