Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App makes the apps screen slow

I am making a basic app in which the users can check their "dinning balance", i managed to do this by parsing the proper web page.

My app works just fine, but i found that when i exit it, the Current Running Apps Screen (Android app manager) goes really slow, even laggy, when my app is being displayed.

I tried to kill my app using the following methods so the app won't be running in background when i exit it, but it didnt work:

@Override
protected void onStop() {
    super.onStop();
    android.os.Process.killProcess(android.os.Process.myPid());
    System.exit(0);        
}

@Override
public void onBackPressed() {
    super.onBackPressed();
    finish();      
    System.exit(0);
}`

So right now, i am trying to figure out why does the "Current Apps" screen is going slower due to my app. My app is not executing anything in the background, its just idle. Newbie here.

like image 333
Alexander Oyarzabal Avatar asked Dec 05 '25 14:12

Alexander Oyarzabal


1 Answers

This happened to me a few days ago and I figured I messed up with my res folders and a very large icon ended up in my res/drawable folder.

Make sure your app's icon isn't too large (recommended specifications for icons can be found here: http://developer.android.com/design/style/iconography.html). Check all drawable folders (xxhdpi, xhdpi, hdpi...) inside [Your app folder]/app/src/main/res/drawable/

Hope I could help. Happy coding :)

like image 71
Rom Avatar answered Dec 07 '25 03:12

Rom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!