大家好
请教一下用以下代码启动了Android自带的卸载程序后
有什么方法可以获取那个卸载程序启动的时刻,以及他界面上的Button
Uri packURI = Uri.parse("package" + packName);
Intent uninstall = new Intent(Intent.ACTION_DELETE, packURI);
startActivity(uninstall);
谢谢各位

解决方案 »

  1.   

    如果你的App不在屏幕上了,你的代码还会运行么?
    貌似后台线程可以,但是后台线程访问UI上的资源,就更难了。
    坐等牛人解答。
      

  2.   

    Winodow w=startActivity(uninstall);
    View v=w.getDecorView();
      

  3.   

    Winodow w=startActivity(uninstall);
    View v=w.getDecorView();
      

  4.   

    startActivity(uninstall)?能返回Window对象?