performance - Application gets freezed on Load Android? -
performance - Application gets freezed on Load Android? -
hi created application of images , working fine. there little bugs have come up. 1 when application icon clicked on launcher freezes , turns screen black sometimes. loads fast , properly. happens randomly.
so when loads or freezes app , turns black before load see gc running how prevent behaviour.
i have defined application extends application class phone call after application before launcher activity freezes screen.
following code in application:
public class wallieapplication extends application implements wallieconstants,         wallieparseconstants, walliesharedpreferencesconstant {      @override     public void oncreate() {          seek {             super.oncreate();             /**              *  phone call enable local   info storage.              */             log.i("debug", "enable local datastore parse");             parse.enablelocaldatastore(this);             log.i("debug", "initialize parse");             parse.initialize(getapplicationcontext(), parse_application_id,                     parse_client_key);               seek {                 crashlytics.start(this);                 helpshift.install(this, helpshift_api_key, helpshift_domain,                         helpshift_app_id);             }  grab (exception e) {                 crashlytics.log(e.getmessage());             }             log.i("debug", "enable  force callback");              pushservice.setdefaultpushcallback(getapplicationcontext(),                     homescreenactivity.class);             log.i("debug", "enable  force callback done");         }  grab (exception e) {             crashlytics.log(e.getmessage());         }     }  }    what see when close application see logs in code printed on logcat. if printed observed freezes app?
look @ time consuming tasks have in oncreate , other activity lifecycle methods execute before activity appears , move time consuming code background thread async task example
 android performance 
 
  
Comments
Post a Comment