ArminKH Well-Known Member Jul 23, 2015 #1 Hi I want to create a security locker app which lock each selected programs(unlocked if correct pass entered)like most application which is available on play store Now i have a question We should listen for running applications and if the runing task be equal to selected package names then we should ask for password But how is this possible? By using service which is running always? Or by using brodcast receiver? If we have any receiver please let me to know Thank u
Hi I want to create a security locker app which lock each selected programs(unlocked if correct pass entered)like most application which is available on play store Now i have a question We should listen for running applications and if the runing task be equal to selected package names then we should ask for password But how is this possible? By using service which is running always? Or by using brodcast receiver? If we have any receiver please let me to know Thank u
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2015 #2 No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content Upvote 0
No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content
ArminKH Well-Known Member Jul 24, 2015 #3 Erel said: No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content Click to expand... excuse me but i'm not sure that i understand exactly Os library has internal service?where we could check os library for running apps?in additional service? Can we have any sample?i want my activity starts when my special package name is running Where we can listen for this intent? Upvote 0
Erel said: No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content Click to expand... excuse me but i'm not sure that i understand exactly Os library has internal service?where we could check os library for running apps?in additional service? Can we have any sample?i want my activity starts when my special package name is running Where we can listen for this intent?
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2015 #4 The OS library includes (partially working) methods that allow you to find the current running processes. You can use it from a service if you want. Upvote 0
The OS library includes (partially working) methods that allow you to find the current running processes. You can use it from a service if you want.
ArminKH Well-Known Member Jul 24, 2015 #5 Erel said: The OS library includes (partially working) methods that allow you to find the current running processes. You can use it from a service if you want. Click to expand... Thank u but then our service must be always running and this is not good for batery life And also maybe os kill that service My goal is a way like gcm solution which has a permission in manifest and has a internal listener and if any gcm message arrived then our service starts Now i want to do this for running apps and if running app has been changed then my service starts for check package name,etc... This is not possible? Last edited: Jul 24, 2015 Upvote 0
Erel said: The OS library includes (partially working) methods that allow you to find the current running processes. You can use it from a service if you want. Click to expand... Thank u but then our service must be always running and this is not good for batery life And also maybe os kill that service My goal is a way like gcm solution which has a permission in manifest and has a internal listener and if any gcm message arrived then our service starts Now i want to do this for running apps and if running app has been changed then my service starts for check package name,etc... This is not possible?
ArminKH Well-Known Member Jul 24, 2015 #6 THIS is my favorite locker app which has this permissions is this using service? Last edited: Jul 24, 2015 Upvote 0
ArminKH Well-Known Member Jul 31, 2015 #7 Erel said: No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content Click to expand... erel so what's this ? http://stackoverflow.com/questions/...dcastreceiver-if-app-is-running-on-foreground Upvote 0
Erel said: No global intent is sent when another app starts. You can try to use the OS library to find the running apps: https://www.b4x.com/android/forum/threads/os-library.11267/#content Click to expand... erel so what's this ? http://stackoverflow.com/questions/...dcastreceiver-if-app-is-running-on-foreground
DonManfred Expert Licensed User Longtime User Jul 31, 2015 #8 arminkh said: erel so what's this ? Click to expand... There is no answer marked a GOOD http://stackoverflow.com/questions/27974583/get-tasks-permission-deprecated Last edited: Jul 31, 2015 Upvote 0
arminkh said: erel so what's this ? Click to expand... There is no answer marked a GOOD http://stackoverflow.com/questions/27974583/get-tasks-permission-deprecated