How to code an app that blocks other apps from launching for a certain time using Android Studio
ToC
I want to code an app that hinders other app from launching. Can someone please help to start from the beginning. Can someone provide an example and i'll try my best to understand it. Thanks (Full ...
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Asked
Modified 8 years, 2 months ago
Viewed 4k times
Part of Mobile Development Collective
This question shows research effort; it is useful and clear
0
Save this question.
Show activity on this post.
I want to code an app that hinders other app from launching. Can someone please help to start from the beginning. Can someone provide an example and i'll try my best to understand it. Thanks (Full code if possible:D)
One example is AppBlock in the play store.
Mobile Development Collective
This answer is useful
1
Save this answer.
Show activity on this post.
To create a feature that 'blocks' other apps from running like AppBlock, you simply just need to show a popup on top of the other apps.
Look into SYSTEM_ALERT_WINDOW, with this, you can draw on top of any other app.
Once you have that working, you should look into the other permissions of AppBlock,as it'll show you what they're doing.
AppBlock's Permissions
- bind to an accessibility service
- update component usage statistics
- receive data from Internet
- view network connections
- full network access
- run at startup
- reorder running apps
- control vibration
- prevent device from sleeping
脚注
Webmention0
Comments(0)
まだコメントはありません。
