Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
Re: [android-group-japan: 24104] 自分のアプリをアンインストールしたとき呼ばれるメソット、ブロードキャストはありますか?
500 views
Skip to first unread message
Message has been deleted
Hirokazu Fukami
unread,
Aug 23, 2013, 1:13:17 AM
8/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
こんにちはfkmです。
監視用アプリを用意してよいのであれば、BroadcastでアンインストールのIntentが飛んでくるので、
それを監視用アプリで捕まえてあげればいいような気がします。
参考
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REMOVED
2013/8/23 masa <
minadu...@gmail.com
>:
> 端末情報をサーバ側で一括管理するアプリを作成しています。
> 自分のアプリをアンインストールしたときに、サーバ側にその情報を伝えたいのですが
> アンインストール時に呼ばれるメソッド、またはブロードキャストのインテントなどはないのでしょうか?
>
> PACKAGE_REMOVEDは自分のアンインストール時は受信できないのは確認しました。
>
>
> システム自体は単純で、端末の電池残量、GPS情報etcを定期的にサーバに通知します。
> 自分のアプリがアンインストールされた場合に、その情報をサーバ側に通知するための方法を考えています。
>
> 上記を実装する方法が無ければ、メインアプリ(A)の常駐を監視するサブのアプリ(B)を同時にインストールして、
> BがAを定期的に監視、Aが無くなれば通知という方法ぐらいしか思いつきませんが、その方法はスマートではないので、できるだけ実装したくありません。
> ご存知の方がいましたら教えていただければ幸いです。
>
>
> --
> このメールは Google グループのグループ「日本Androidの会」の登録者に送られています。
> このグループから退会し、メールの受信を停止するには、
android-group-j...@googlegroups.com
> にメールを送信します。
> このグループに投稿するには、
android-g...@googlegroups.com
にメールを送信してください。
>
http://groups.google.com/group/android-group-japan
からこのグループにアクセスしてください。
> その他のオプションについては、
https://groups.google.com/groups/opt_out
にアクセスしてください。
--
-------------------------------------------------------------
深見 浩和(Hirokazu Fukami)
URI:
http://www.fkmsoft.jp
email:
f...@fkmsoft.jp
Hirokazu Fukami
unread,
Aug 23, 2013, 1:19:55 AM
8/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
おっとすいません単なる監視方法の紹介になってました
自身のアンインストールを知る方法はできないと思います。
もし、自分自身のアンインストール時に何か処理ができるとなると、
無限ループを仕込んで「アンインストールさせない」という悪質なアプリが作れてしまいます。
2013/8/23 Hirokazu Fukami <
fkm...@gmail.com
>:
masa
unread,
Aug 23, 2013, 2:45:35 AM
8/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
返信ありがとうございます。
やはり仕様で無理ですか・・・・・・
今回開発しているシステム上では、上記の実装がプログラム上で実装できないのは残念ですが、
やはりfkm様が言われた通り、セキュリティ上の現仕様だとすると諦めるしかないですね。
Shigeo Mutoh
unread,
Aug 23, 2013, 3:04:08 AM
8/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
武藤です。
私も以前にそのような実装を迫られたことがあったので少々述べます。
そもそも、仮にアンインストールされたことをbroadcast intentなどで知る
ことができたとして、果たして有効でしょうか? たぶんNoなのです。
たとえば全ての通信手段を絶った上で、端末のwipe(初期化)をされたら
それを知る手段がなかろうことは容易に想像できるからです。
では。
masa
unread,
Aug 23, 2013, 4:46:05 AM
8/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
武藤様
返信ありがとうございます。
私が言っているのは、インストールが完了後でなく、アンインストール実行を選択後、完了までに呼ばれるコールバックメソッドやブロードキャストについてです。
確かにPACKAGE_REMOVEDのブロードキャストは他のアプリのアンインストール完了後に呼ばれますが、他の方法がないかと模索していました。
畑違いですがWindowsで同じようなシステムを開発したときは、インストーラ内のスクリプトからアンインストール時にモジュールを起動して同じことをやった記憶があります。
Reply all
Reply to author
Forward
0 new messages