I want to do different operations in onCreate() depending activities I come from.
I do that making this:
Activity A:
intent to activity B;
intent.putBoolean("name",boolean=false);
startActivity B.
Activity B:
onCreate(){
Boolean.getBoolean("name");
if(boolean){
}else{**make this**}
on the other hand if click on a Button
onClick {starts activity C}.
Activity C:
do things...
-> if click on a Button ->
onClick {
intent.putBoolean(boolean=true);
starts ActivityB}
Activity B onCreate(){
if(boolean){**make this**
} else{}
My question: Can I do the same thing of better way?
Thanks