android - Moving Apk to SD Card -


moving sd card copies apk in /data/app folder sd card. wanted same code.

i tried failed canwrite(), setwriteable(true) , delete() returns false

file apkfile = new file(info.activityinfo.applicationinfo.sourcedir); apkfile.delete(); 

is @ possible delete/move apk sd card (and not copy it)?

fyi: installlocation not me. so, had take above approach.

you can not move /delete installed apk file without root privileges .

if want move/delete installed apk need rooted android device. becase installed apk inside system/ directory , mounted read-only. had remount this

mount -o remount,rw /system 

read more how write files system/ ?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -