I have a serious problem about the transition in a transparent activity. When the application is installed and launched for the first time in the emulator, the transparent activity does the transition very well. But when I'm going out from the application and go back to it, both of activities do the same transition!
WallpaperAct is the activity background & ConnexionForm is the transparent Activity
public class WallpaperAct extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_arriere_plan);
Intent i = new Intent(WallpaperAct.this,ConnexionFormulaire.class);
startActivity(i);
overridePendingTransition(R.animator.animationbas_haut,0);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.arriere_plan, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
Thanks for helping me!