ConfirmationActivity Android Wear last for too short -
ConfirmationActivity Android Wear last for too short -
i have wear activity has button. when clicked method below run:
public void success(view view) { intent intent = new intent(this, confirmationactivity.class); intent.putextra(confirmationactivity.extra_animation_type, confirmationactivity.success_animation); intent.putextra(confirmationactivity.extra_message, "success!"); startactivity(intent); finish(); }
the confirmation animation shows few seconds. when include finish() line close current activity lastly shorter... ideas on how show confirmation more time? or other way finish current activity allow confirmation lastly longer?
thanks!
the confirmation animation handled os, dont think can alter duration.
inside confirmationactivity
class, there private fellow member variable private static final long success_message_delay_ms = 50l;
variable private final, can not change. also, variable used delay appearance of confirmation, not useful duration. in addition, private static long getanimationduration(android.graphics.drawable.animationdrawable animation)
private, not supposed know how long animation exactly.
when calling finish() on activity, telling os current activity finish. doesnt help create duration lastly longer. current activity shown after confirmation animation finished.
android android-intent android-activity android-wear
Comments
Post a Comment