1. <small id='YrzDW'></small><noframes id='YrzDW'>

    2. <i id='YrzDW'><tr id='YrzDW'><dt id='YrzDW'><q id='YrzDW'><span id='YrzDW'><b id='YrzDW'><form id='YrzDW'><ins id='YrzDW'></ins><ul id='YrzDW'></ul><sub id='YrzDW'></sub></form><legend id='YrzDW'></legend><bdo id='YrzDW'><pre id='YrzDW'><center id='YrzDW'></center></pre></bdo></b><th id='YrzDW'></th></span></q></dt></tr></i><div id='YrzDW'><tfoot id='YrzDW'></tfoot><dl id='YrzDW'><fieldset id='YrzDW'></fieldset></dl></div>
      <tfoot id='YrzDW'></tfoot>

      <legend id='YrzDW'><style id='YrzDW'><dir id='YrzDW'><q id='YrzDW'></q></dir></style></legend>
        <bdo id='YrzDW'></bdo><ul id='YrzDW'></ul>
    3. 如何知道我的应用程序已从设备上卸载...?

      How to know my app is uninstalled from the device...?(如何知道我的应用程序已从设备上卸载...?)
        <tbody id='KUg7H'></tbody>

      <i id='KUg7H'><tr id='KUg7H'><dt id='KUg7H'><q id='KUg7H'><span id='KUg7H'><b id='KUg7H'><form id='KUg7H'><ins id='KUg7H'></ins><ul id='KUg7H'></ul><sub id='KUg7H'></sub></form><legend id='KUg7H'></legend><bdo id='KUg7H'><pre id='KUg7H'><center id='KUg7H'></center></pre></bdo></b><th id='KUg7H'></th></span></q></dt></tr></i><div id='KUg7H'><tfoot id='KUg7H'></tfoot><dl id='KUg7H'><fieldset id='KUg7H'></fieldset></dl></div>
      • <small id='KUg7H'></small><noframes id='KUg7H'>

        <legend id='KUg7H'><style id='KUg7H'><dir id='KUg7H'><q id='KUg7H'></q></dir></style></legend>
          <bdo id='KUg7H'></bdo><ul id='KUg7H'></ul>

            <tfoot id='KUg7H'></tfoot>

                本文介绍了如何知道我的应用程序已从设备上卸载...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在许多设备上都安装了一个应用程序.

                I have an app installed in many devices.

                如果从任何设备上卸载了应用程序,我需要一个指示.

                If app is uninstalled from any of the device I need an indication.

                如何实现这一点.

                提前谢谢...!

                推荐答案

                我的建议如下.您可以拦截应用程序卸载的意图.只需将以下代码放入清单文件中:

                My proposal will be the following. You can intercept the intent for your application uninstall. Simply put the following code in your manifest file:

                <uses-permission android:name="android.permission.INSTALL_PACKAGES" />
                <uses-permission android:name="android.permission.DELETE_PACKAGES" />
                <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
                <uses-permission android:name="android.permission.READ_PHONE_STATE" />
                <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />
                
                <application
                    android:icon="@drawable/ic_launcher"
                    android:label="@string/app_name" >
                    <activity
                        android:name=".UninstallIntentActivity"
                        android:label="@string/app_name" >
                        <intent-filter>
                            <action android:name="android.intent.action.MAIN" />
                
                            <category android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                        <intent-filter>
                            <action android:name="android.intent.action.VIEW" />
                            <action android:name="android.intent.action.DELETE" />
                            <category android:name="android.intent.category.DEFAULT" />
                            <data android:scheme="package" android:pathPattern="com.testpack.yourapp" />
                        </intent-filter>
                
                
                
                    </activity>
                
                </application>
                

                在此之后,您可以以某种方式处理您的应用程序将被删除(例如,向您发送电子邮件),并调用包管理器卸载程序.

                After this you can somehow process that your application is going to be deleted (for instance, send you a email), and call the package manager uninstaller.

                这篇关于如何知道我的应用程序已从设备上卸载...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Android - Is it possible to get install referrer programmatically(Android - 是否有可能以编程方式安装引荐来源网址)
                How to sign an APK with more than one certificate?(如何使用多个证书签署 APK?)
                versionCode vs versionName in Android Manifest(Android Manifest 中的 versionCode 与 versionName)
                What does this Google Play APK publish error message mean?(这个 Google Play APK 发布错误消息是什么意思?)
                Lost my keystore for uploaded app on android market(丢失了我在 android 市场上上传的应用程序的密钥库)
                App on Google Play always shows quot;Updatequot; instead of open(Google Play 上的应用程序总是显示“更新;而不是打开)

                • <bdo id='OF9QH'></bdo><ul id='OF9QH'></ul>

                  <small id='OF9QH'></small><noframes id='OF9QH'>

                      <legend id='OF9QH'><style id='OF9QH'><dir id='OF9QH'><q id='OF9QH'></q></dir></style></legend>

                          <tfoot id='OF9QH'></tfoot>
                        1. <i id='OF9QH'><tr id='OF9QH'><dt id='OF9QH'><q id='OF9QH'><span id='OF9QH'><b id='OF9QH'><form id='OF9QH'><ins id='OF9QH'></ins><ul id='OF9QH'></ul><sub id='OF9QH'></sub></form><legend id='OF9QH'></legend><bdo id='OF9QH'><pre id='OF9QH'><center id='OF9QH'></center></pre></bdo></b><th id='OF9QH'></th></span></q></dt></tr></i><div id='OF9QH'><tfoot id='OF9QH'></tfoot><dl id='OF9QH'><fieldset id='OF9QH'></fieldset></dl></div>

                            <tbody id='OF9QH'></tbody>