Flicker Between Activities

AllyAndroid

Member
Licensed User
Longtime User
I have an issue where I can see a flicker whenever I switch activities.

The flicker is not noticeable when testing an app on an LG Ally (2.2.2). But on my Motorola Droid 4 (4.1.2) and Nexus 7 (4.2.2) it is very noticeable and a distraction.

I would like to have a smooth transfer between activities.

Has anyone else experienced this and is there a work around?

As best as I can tell, it goes to a black screen with just the title of the app before going to the next activity.

I've attached a very simple app with three activities. Each has a single button that starts the next activity. The flicker is present even with an app this small with almost no coding.

The log only shows this:

B4X:
** Activity (main) Pause, UserClosed = false **
** Activity (mod1) Create, isFirst = false **
** Activity (mod1) Resume **
** Activity (mod1) Pause, UserClosed = false **
** Activity (mod2) Create, isFirst = false **
** Activity (mod2) Resume **
** Activity (mod2) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
 
Last edited:

AllyAndroid

Member
Licensed User
Longtime User
I guess that what you are seeing is the new default transition in Android 4. (activity - New Android 4.0 Screen Transitions Between Activities - Stack Overflow)

You can override it: Custom transitions between activities

Thanks Earl, that helps but now I have run into another issue.

Using the same test with three activities. The override method only works once for each activity. When I click on the Next button from the third activity to return to the main activity, it goes back to the default transition.
 

Attachments

  • test.zip
    13.4 KB · Views: 307
Upvote 0
Top