Hi, ActionBar title disappears in following simple program. Am I doing something wrong? Or it's a bug in Android? Anybody knows how to circumvent this problem?
What I did was... 1. launch ActivityA 2. press button to show chooser 3. choose video 4. Activity B launches and finishes soon 5. ActionBar title disappears ActivityA ========= @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void onClick(View v) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("video/*"); startActivityForResult(Intent.createChooser(intent, "choose"), 0); } @Override protected void onActivityResult(int requestCode, int resultCode, final Intent data) { if (resultCode != RESULT_OK) { return; } Intent intent = new Intent(this, ActivityB.class); startActivity(intent); } ActivityB ========= @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); finish(); } Thanks, Hiroshi SAKURAI -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en