auto unistall program

lock255

Well-Known Member
Licensed User
Longtime User
Can proceed with the uninstall without asking your permission?

Also considered the case in which the application can be installed as root.
 
Last edited:
Upvote 0

Avansys

Member
Licensed User
Longtime User
When I used the Erel's code, I get the follow error:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.DELETE dat=package:efa.avansys.ultracable.operativa typ=application/vnd.android.package-archive flg=0x20000 }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
at android.app.Activity.startActivityForResult(Activity.java:2827)
at android.app.Activity.startActivity(Activity.java:2933)
at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:678)
at efa.avansys.ultracable.operativa.comun._descargarapp(comun.java:557)
at efa.avansys.ultracable.operativa.comun._compruebaversion(comun.java:369)
at efa.avansys.ultracable.operativa.main._httpconnection_responsesuccess(main.java:464)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA$3.run(BA.java:307)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3824)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.DELETE dat=package:efa.avansys.ultracable.operativa typ=application/vnd.android.package-archive flg=0x20000 }

Anyone know what I need? Thanks
 
Upvote 0

Avansys

Member
Licensed User
Longtime User
Which device are you using?

Does the install intent work?

I'm using ZTE v9a it's a tablet.

I guess that Intent doesn't work 'cause when I run it crashes :(
 
Upvote 0

merlin2049er

Well-Known Member
Licensed User
Longtime User
That's great. I had a similar question.

Can I add an .apk to my file assets, and check to see if the individual has that app installed , if not ask to install it for them?
 
Upvote 0

Avansys

Member
Licensed User
Longtime User
So what can it be?

I read that may be because it only works on android 4.0 or higher

Can that be the problem?
 
Upvote 0
Top