-6

I'm creating a fake Cleaner app in android studio...but now i'm stuck... i have create the first two screens that contains a scan button in the first screen and a circle progress in the 2nd screen... but now i have no idea how to scan apps and find threats and boost them...like in Clean Master and other Cleaner apps..

e.g:

Image

please guide me from where i can get these things that are shown in the above image ..... any github??

Kiran Benny Joseph
  • 6,271
  • 3
  • 34
  • 55
Baadsha
  • 5
  • 7
  • you have to decide by yourself how exactly you are going to clean, boost and find issues. That is about 90% of all the app. It is not like there is some standard solution for that. You can't ask to write 90% of code instead of you. – Vladyslav Matviienko Mar 17 '17 at 07:21
  • sorry sir i'm creating a fake cleaner that only looks like real one – Baadsha Mar 17 '17 at 07:27
  • but why you ask `how to scan apps and find threats and boost them`, if you don't need to do that? – Vladyslav Matviienko Mar 17 '17 at 07:32

2 Answers2

0

Assuming you want to clear RAM from other applications.

  1. Add to manifest android.permission.KILL_BACKGROUND_PROCESSES

  2. You have to get all running packages

How to get a list of installed android applications and pick one to run

  1. You have to get process id of every running package and kill it

How to kill a 3rd-party application?

Community
  • 1
  • 1
Andrey Danilov
  • 5,024
  • 4
  • 22
  • 44
0

Since you asking about creating an app not a specific action I going to give you few hint only. The base for any cleaning app is to Scan Running Processes and Kill Unnecessary ones.

To Scan running applications you simply can do this: How to find the currently running applications programatically in android?

, And to Kill a Process you can do this: How to kill all running applications in android?

So far it's not that hard.. (Is it?) but the hard part is to find and kill unnecessary apps only. By killing a useful app with a meaningful service you only annoy users...

Edit I just dropped few hints to show you the track but remember that there is no shortcut to implements those features all at once, to create an app you have to implementing features one by one, work on each feature hours and hours..

Community
  • 1
  • 1
Keivan Esbati
  • 2,855
  • 1
  • 17
  • 35