hello guys thank you very much for your time but i still coudlnt find the right solution
A B C D A main screen B shows some items C shows some items D select that item and delete it I used on activity Result to refresh the data of C so that i would show the latest data items but for 3 secs C shows old data and then it called below method i still dont know how to resolve this issue. super.onActivityResult(requestCode, resultCode, data, extras); if (Activity.RESULT_CANCELED==resultCode) { if(isDelete){ myProgressDialog = Alert.getAlertIntance().showProgressDialog(this, "Please wait...", " Loading POIs... ", R.style.Main_Theme_Dialog, true); myProgressDialog.show(); setContentView(R.layout.blank); //new code0 this.getWindow().setBackgroundDrawable(CommandUtil.getGredient()); btla.setListItems(new ArrayList<BulletedText>()); setListAdapter(btla); createRequest(); setListAdapter(btla); } } On Apr 16, 10:46 pm, hackbod <[EMAIL PROTECTED]> wrote: > On Apr 16, 5:10 am, Greg <[EMAIL PROTECTED]> wrote: > > > when i used this code > > this.finish(); > > startSubActivity(i, ACTIVITY_CREATE); > > As I said before, you want to start the new activity before finishing > the current one. Otherwise you are first finishing the current one > and, yes, there is a time during which you may see the activity behind > it. > > Also there is no reason to use startSubActivity() if the calling > activity is not going to wait around for a result. The ONLY > difference between startActivity() and startSubActivity() is that the > former allows the started activity to return a result to the caller. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---