Hi,
I am trying to kill an application using " ActivityManager.killBackgrounProcess()" but the application is not killed.
Could anyone please help on how to kill an application programatically ?
bharath87 said:
Hi,
I am trying to kill an application using " ActivityManager.killBackgrounProcess()" but the application is not killed.
Could anyone please help on how to kill an application programatically ?
Click to expand...
Click to collapse
Try finish();
vishal007 said:
Try finish();
Click to expand...
Click to collapse
That will only work if the app he is trying to kill is his own and is currently running .
If I get you right, you need to use
Code:
android.os.Process.killProcess(android.os.Process.myPid());
Read this similar question for further help.
SimplicityApks said:
That will only work if the app he is trying to kill is his own and is currently running .
If I get you right, you need to use
Code:
android.os.Process.killProcess(android.os.Process.myPid());
Read this similar question for further help.
Click to expand...
Click to collapse
I see
Try this:
finish();
System.exit(0);
Related
I have the iphone app installed, but some of the icons do not work. I get an error saying "link file not found." Could someone please help me with this issue. Thanks in advance.
first off, you should not be starting a new thread for this, not cool.
to answer your question, your directories are probably not set up correctly, use this tool:
http://forum.xda-developers.com/showthread.php?p=1258500
link doesn't work
brady_f said:
link doesn't work
Click to expand...
Click to collapse
link fixed
Hi guys
Sorry for asking this simple question, but I've tried to locate the efrostminize.exe or cab file on this forum but all the search result only show people mentioning this program instead of the download link to this file.
I've hard reset my PPC this morning due to some problem and now I realise i didn't have this program in my PC.
Can some kind soul point me to the right thread/location to get this SUPERB program??
Thanks!!
Here you go...
ather90 said:
Here you go...
Click to expand...
Click to collapse
THANK YOU SO SO MUCH!!!
you are welcome
Where is the NORMAL minimize.exe located? He talks about it being located in his ftouchflo thread but i see NO download for the normal minimize.exe.
uh, aren't they the same thing? just change the file name? i know the old version of efrostminimize.exe minimizes you to today screen, and the newest version simply minimizes the open task like it should. maybe that's what you mean?
Azimuth21 said:
uh, aren't they the same thing? just change the file name? i know the old version of efrostminimize.exe minimizes you to today screen, and the newest version simply minimizes the open task like it should. maybe that's what you mean?
Click to expand...
Click to collapse
THANK YOU MY FRIEND.
Thanks for the file. But any ideas about the other version?
MM
Hi,
I've read before how those these aliases(i.e. :WMPLAYER, MSSOLITAIRE, etc) were discussed. I was wondering if the said aliases can be used/invoke programmatically? If yes, then how, what is the syntax? TIA. Btw, I could run it via sktools...
adomila said:
Hi,
I've read before how those these aliases(i.e. :WMPLAYER, MSSOLITAIRE, etc) were discussed. I was wondering if the said aliases can be used/invoke programmatically? If yes, then how, what is the syntax? TIA. Btw, I could run it via sktools...
Click to expand...
Click to collapse
Wait......what are you trying to do?
TheChampJT said:
Wait......what are you trying to do?
Click to expand...
Click to collapse
hi TheChampJT, actually i'm just trying out things. I'm just curious. I'm a programmer myself but not on windows mobile.
look at [HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Rai] and you will find all the aliases
Here they are from my device
Code:
:DEFBROWSER
:MSSHELL32
:WMPLAYER
:MSONENOTEMOBILE
:MSFEXPLORE
:MSINBOX
:MSSYNCAPP
:MSCPROG
:MSPOUTLOOK
:MSWELCOME
:MSINTERNET_SHARING
:MSPXL
:MSPPT
:MSPWORD
:MSTASKS
:MSCONTACTS
:MSCALENDAR
:MSBEAM
:MSNOTETAKE
:MSPIMG
:MSCALC_TPC
:MSCALC
:MSHOTVOICE
:MSVOICE
:Wceload
:MSCLOCK
:MSFIND
:MSWRLSMGR
:MSPIE
:MSREMNET
:MSSOLITAIRE
xplode said:
look at [HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Rai] and you will find all the aliases
Here they are from my device
Code:
:DEFBROWSER
:MSSHELL32
:WMPLAYER
:MSONENOTEMOBILE
:MSFEXPLORE
:MSINBOX
:MSSYNCAPP
:MSCPROG
:MSPOUTLOOK
:MSWELCOME
:MSINTERNET_SHARING
:MSPXL
:MSPPT
:MSPWORD
:MSTASKS
:MSCONTACTS
:MSCALENDAR
:MSBEAM
:MSNOTETAKE
:MSPIMG
:MSCALC_TPC
:MSCALC
:MSHOTVOICE
:MSVOICE
:Wceload
:MSCLOCK
:MSFIND
:MSWRLSMGR
:MSPIE
:MSREMNET
:MSSOLITAIRE
Click to expand...
Click to collapse
thanks xplode, good info. going back to my question, how can i/we utilize this, can we invoke/call this programatically? if yes, how? just being a curious beaver
I am developing an app which need password protected uninstallation .Please help me how can I prompt user while uninstalling app??
Thanks in Advance.
I am sorry to tell you, but it is not supported by Android.
Check this: http://stackoverflow.com/questions/12175461/uninstall-application-password-protected
thanks for replying nikwen.
but there are many apps on google store which prompts user before uninstalling an app??
Vikash316 said:
thanks for replying nikwen.
but there are many apps on google store which prompts user before uninstalling an app??
Click to expand...
Click to collapse
Could you please give me an example?
nikwen said:
Could you please give me an example?
Click to expand...
Click to collapse
Kasper Sky Antivirus
This can b done by binding the device administrator it's called something like that see more of this at developer.android.com I gives an option to do that
Sent from my GT-S5302 using Tapatalk 2
sak-venom1997 said:
Kasper Sky Antivirus
This can b done by binding the device administrator it's called something like that see more of this at developer.android.com I gives an option to do that
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
Check this: http://developer.android.com/guide/topics/admin/device-admin.html
nikwen said:
Check this: http://developer.android.com/guide/topics/admin/device-admin.html
Click to expand...
Click to collapse
Ya thats the article I read
Sent from my GT-S5302 using Tapatalk 2
Working on same issue
Hi, i'm working on same issue. i also find many apps that included this feature but yet i am unable to find way to do this.
can some body help me too????
Ahsanwarsi said:
Hi, i'm working on same issue. i also find many apps that included this feature but yet i am unable to find way to do this.
can some body help me too????
Click to expand...
Click to collapse
The three posts above yours contain the answer! Read.
Ever since updating my Nexus 5 to Android 5.0, I've found that you can't manage startup. I tried Clean Master, Autostarts, and Autorun Manager, but none of them works.
Please assist me in finding a solution. Thanks.
Anybody? Well, can the "Autorun" in the thread title be changed to "Startup" at least?
CrEdge said:
Anybody? Well, can the "Autorun" in the thread title be changed to "Startup" at least?
Click to expand...
Click to collapse
you can use app ops, the lastest version can do that
Do you mean the one by Lars Team? I just tried that, but disabling an autostart doesn't stick, it's enabled again when I recheck.
cpvm said:
you can use app ops, the lastest version can do that
Click to expand...
Click to collapse
Yeah, the settings don't stick for me either, at least the auto start.
Sent from my Nexus 5
same here, tried a bunch of apps none of them work :/
sssssbarn said:
Yeah, the settings don't stick for me either, at least the auto start.
Sent from my Nexus 5
Click to expand...
Click to collapse
you can use this app to remove the permissions and it does not require root too..
https://play.google.com/store/apps/details?id=com.gmail.heagoo.apkpermremover&hl=es_419
Does that manage startup entries? Doesn't look like it, and App Ops seem to manage permissions fine.
Greenify?
CrEdge said:
Does that manage startup entries? Doesn't look like it, and App Ops seem to manage permissions fine.
Click to expand...
Click to collapse
You can remove the unnecessary permissions like boot with the phone...
Greenify is an option, but I'd rather not depend on another running process... Oh well, have to make do with it for now.
Just tried APK Permission Remover. It requires you to uninstall, then reinstall the app. Too much trouble keeping up-to-date.
Simply deactivate the app.
BreckZeBoulay said:
Simply deactivate the app.
Click to expand...
Click to collapse
yes man thats it ...i deactivate chrome and cant Start it when i need it...facepalm
Send from my Nexus 5 with Tapatalk
Just flash Pie Patch
you should just flash the pie patch via recovery, it solves a lot of the problems root apps have in lollipop, including the startup one
http://forum.xda-developers.com/google-nexus-5/development/fix-bypassing-pie-security-check-t2797731
Sounds risky and unclear, maybe someone else can try?
CrEdge said:
Sounds risky and unclear, maybe someone else can try?
Click to expand...
Click to collapse
I agree, you should try it first, let us know how it goes...
What do you know, they just started working again for me... Didn't patch anything, just updated normally.
Autostarts has been updated to support lollipop.
Kingroot, but its also do more than I need.