【问题标题】:perform action when application is uninstall卸载应用程序时执行操作
【发布时间】:2019-01-22 05:17:31
【问题描述】:

卸载应用时如何调用setlogout()

    private void setlogout() {
        StringRequest stringRequest = new StringRequest(Request.Method.GET, URLs.logout+user.getapi_token(),
                new Response.Listener<String>() {
                    @Override
                    public void onResponse(String response) {
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError error) {

                    }
                });
        //adding our stringrequest to queue
        Volley.newRequestQueue(context).add(stringRequest);
    }

【问题讨论】:

  • 卸载应用时无法控制
  • 安装应用程序后,数据将从存储和内存中删除,安装应用程序时您无法执行任何操作

标签: java android uninstallation


【解决方案1】:

这是不可行的,因为应用程序的卸载是由操作系统处理的。

【讨论】:

    猜你喜欢
    • 2018-10-09
    • 2013-03-12
    • 1970-01-01
    • 1970-01-01
    • 2021-04-24
    • 2012-10-20
    • 2011-08-19
    • 2012-08-29
    • 2012-04-13
    相关资源
    最近更新 更多