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. 如何知道我的应用程序已从设备上卸载...?

      时间:2023-11-09
        <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.

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

                上一篇:将多个 APK 发布到 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>