1

I am using sample code given in SDK. In this demo I observe that DeviceAdmin also included in this sample.

It seems that we can handle device lock or device wipe functionality remotely.

So can you help me that how can I do this? Is there any documentation?

Android Learner
  • 2,559
  • 6
  • 34
  • 43

2 Answers2

1

Yes there is documentation on developer.google.com: here.

Yury
  • 20,618
  • 7
  • 58
  • 86
  • I read this documentation. There no any way to how to do those task remotely. I have used DeviceAdmin in my sample app also. – Android Learner Mar 19 '12 at 13:04
  • If you have an installed application then you can simply include in your application methods for remote control: for instance, through C2DM or via SMS, MMS, Bluetooth and so on. The design is completely depends on you. – Yury Mar 19 '12 at 13:07
  • I have problem that how to send commands from 3rd Party server. Is it required to implement my own listener to handle those commands. How can I implement this? – Android Learner Mar 19 '12 at 13:19
  • You should read about push notifications (C2DM). And yes you should implement this by yourself. – Yury Mar 19 '12 at 13:30
  • Actually I am confused that when I will send a command from C2DM, my device will receive this, the is it necessary to implement a code that will read message and execute command? or is there any way that OS will handle commands automatically? – Android Learner Mar 19 '12 at 13:50
  • You should write this code by yourself. I do not think that there is a possibility to read the message by OS itself (it does not know the message and what to do with it). – Yury Mar 19 '12 at 15:29
1

You can use a persistent TCP connection between your App and the server for two-way communication. You can then send commands over this connection. For some sample code you can take a look at the following thread:

How can i lock the android device with a password programmatically

Community
  • 1
  • 1
openmobster
  • 1,027
  • 5
  • 17
  • Can you provide the link for your full source code please?. Thank you. – Android Learner Mar 20 '12 at 06:05
  • If you mean link for the open source project, it is: svn checkout http://openmobster.googlecode.com/svn/trunk/ openmobster-read-only. Full Disclosure: I am the Chief Engineer for OpenMobster – openmobster Mar 20 '12 at 12:20