0

There are plenty of software in Google play which can be used to locate your phone when it is lost/stolen. There is a daemon running in the phone and you contact that daemon through internet over a web site.

There are two ways of doing this. The daemon can send the details like IP to a server periodically and the server can use those details to contact the phone. But this approach has a higher overhead.

Instead there should be another way to do this. In Google play (Earlier Market) a user can select an application and the device using web interface and the relevant software is automatically downloaded to the phone which is properly configured with the same Google account. How do I mimic this behaviour with a custom application.

As an example I am trying to develop an android application that can associate with a google account and then I should be able to connect to the phone over a web site given the Google credentials.

4

1 に答える 1

1

通常、デーモンはバッテリーを消費するため、アプリをデーモンにしたくありません。代わりに、これを C2DM で実装してください。アプリが最初に起動すると、Web サイトに登録されます。後で、所有者が自分の電話を見つけたい場合は、その Web サイトにログインし、[電話を探す] ボタンをクリックします。 GPS 位置情報を含む Web サイト。ウェブサイトはそれを表示するか、所有者にメールで送信し、所有者は所有者と一緒に転がります。

于 2012-04-27T06:30:29.703 に答える