android - Activity lag on Jelly Bean -


i have lot of activities same thing each shows different text in .xml layout. noticed there lag 4 seconds every time activity starts. lag happens on jelly bean devices specifically.

here how classes like:

 @override public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     this.requestwindowfeature(window.feature_no_title);     overridependingtransition(r.anim.fadein, r.anim.fadeout);     setcontentview(r.layout.general);       textview txt1 = (textview) findviewbyid(r.id.textview1);      final edittext txt2 = (edittext) findviewbyid(r.id.edittext1);      final edittext txt3 = (edittext) findviewbyid(r.id.edittext2);       txt1.settext(getstring(r.string.k_item1));      txt2.settext(getstring(r.string.k1_0));      txt3.settext(getresources().getstring(r.string.k1_0tr));  fade = new alphaanimation(0,1); fade.setduration(500);   txt1.startanimation(fade);   txt2.startanimation(fade);}  

the manifest xml file looks this:

android:versioncode="4" android:versionname="1.0.1" > <uses-sdk android:minsdkversion="8"/>  <application     android:icon="@drawable/imamicn"     android:label="@string/app_name">     <activity         android:name="com.androidbook.balagha.welcomeactivity"         android:label="@string/app_name">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity android:name=“ktbactivity"></activity>     <activity android:name="ktb1_40"></activity>     <activity android:name="ktb41_80"></activity> 

i have texts title, main message, , third 1 shows when pulling drawer. tried disable animations in activity, didn’t solve problem actives still lag when first started, , when text fade animation enabled, doesn't run because lag longer duration. suggestions appreciated, thanks.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -