2012-02-29 6 views
1

私は現在アンドロイドアプリケーションで作業していますが、実行可能なソリューションを手に入れません。親切にそれをここにドロップ与えるこれらの質問に対する答え、可能な場合は、コードを持っている人がある場合アプリケーションリスナーをインストールし、インターネット/ 3G接続を一時停止する

1. Is there any code to Listen for Installed Applications and also when an Application is being installed? 
2. Is there anyway to suspend internet permissions granted to installed applications? 
3. Is there anyway to suspend 3G connection in the device without totally disabling it? 

てください:だから私は3つのことを知っていただきたいと思いますしてください。さらに、これらの3つの質問をカバーする優れた解決策がある場合は、それも公開しています。 ありがとうございます。

答えて

0

質問1の答えをあなたのマニフェストに入れて、あなたの意志を受け取る "YourReceiver"を書かなければなりません。これでonRecieveが呼び出されましたが、インストールされたばかりのアプリについての名前/情報を見つけるのに苦労しています。 Receiving package install and uninstall events

<receiver android:name=".YourReceiver"> 
    <intent-filter> 
     <action android:name="android.intent.action.PACKAGE_INSTALL" /> 
     <action android:name="android.intent.action.PACKAGE_ADDED" /> 
     <data android:scheme="package"/> 
    </intent-filter> 
</receiver> 

可能な重複はどこの人ですか?

関連する問題