Reputation: 306
Here is my scenario, on load of my main activity I have a checking that looks like this.
activity onCreate:
if(true) {
navigate to other intent
}
setContentView(layout);
//..rest of the code.
You see. If my condition is met, I want to navigate to other intent. Otherwise, I load the content view of the current activity. However, during implementation, an empty content view shows first before the "other intent".
Do you have any recommendation on how I can immediately load to the "other intent"? Thanks.
Upvotes: 0
Views: 266
Reputation: 306
@Techfist, thanks I've set my default theme to transparent. so, my previous condition was met. However, in this scenario:
if(false) {
navigate to other intent
}
setContentView(layout);
//..rest of the code.
my activity was shrunk. so I added this. Change Activity's theme programmatically
Upvotes: 1
Reputation: 4344
Try this:
Hope it help, if you face probelm again then try starting second activity for result, and when second finishes, finist first as well on receive result.
Upvotes: 0