custom activity transition animation in Android -


the current flow of app activity -> activity b ->fragment b trying implement activity transition animation. have read many posts on mentioning using overridependingtransition() , have implemented mentioned in these posts. somehow animation not working.

i need work on android 2.2 i.e. sdkversion 8

this code:

activity  oncreate method  intent detailintent = new intent(this, worddetailactivity.class);             detailintent.addflags(intent.flag_activity_no_animation);             detailintent.putextra(dbadapter.key_rowid, id);                 startactivity(detailintent);                 overridependingtransition(android.r.anim.fade_in, android.r.anim.fade_out);    @override     protected void onpause() {         super.onpause();         overridependingtransition(android.r.anim.fade_in, android.r.anim.fade_out);     }   activity b      @override     protected void onpause() {         // todo auto-generated method stub         super.onpause();         overridependingtransition(r.anim.fade_in, r.anim.fade_out);     } 

it great if suggest me alternative way implement activity transitions upto android 2.2

phones have animation disabled in phone settings wont show activity transition animations... don't count on it.

also, can't change these users settings.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -