[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread Greg

hello guys thank you very much for your time but i still coudlnt find
the right solution

A   BC   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());
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread hackbod

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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread Larry @ z

Hi greg, I think you can try to use 1 activity and 3 xml layout, and
tried  to setContentView() when you want to move from one panel to
another( each panel <-> each xml layout).

the setContentView() will change the whole screen, and you can keep
your backend data model (& update states) in one activity.

Is that feasible for your req?

On Apr 16, 8:10 pm, Greg <[EMAIL PROTECTED]> wrote:
> when i used this code
> this.finish();
> startSubActivity(i, ACTIVITY_CREATE);
>
> new activity stared but in new activity for moments it shows old
> activity
>
> y does it so ?
>
> On Apr 16, 3:17 pm, Greg <[EMAIL PROTECTED]> wrote:
>
>
>
> > ok
>
> > but what about this scenerio
>
> >  A --->B  "before  C i finished B" >  C
> > "before D  i finished B" ->D
>
> > from now D i have to go back to B again if user press cancel button
>
> > when user press Cancel Button C onActivity Result will be called in A
> > so i have to called B again from A ..activites again overlapped
>
> > ?
>
> > On Apr 16, 10:48 am, "Larry @ z" <[EMAIL PROTECTED]> wrote:
>
> > > as deepark said, you can A create B, B finished, Kill B, let A create
> > > C, C finished, kill C, return to A.
>
> > > On Apr 16, 1:04 pm, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > so what is the solution for this problem ?
>
> > > > any tested solution would be appreciated
>
> > > > please help me out ?
>
> > > > On Apr 15, 11:46 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > > > > Actually you want to finish B -after- starting the next activity.
>
> > > > > And yes, the activities get overlapped -- first B is paused, then C is
> > > > > created and resumed, then B is stopped and finished.  It is designed
> > > > > this way to allow B to save all of its important state before the next
> > > > > activity takes over, while reducing the amount of work as much as
> > > > > possible needed to get the next activity displayed to the user.
>
> > > > > On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
>
> > > > > > Before you start sub activity C finish the subactivity B using 
> > > > > > finish()
> > > > > > .Hope this Works
>
> > > > > > On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > > but activities are getting overlapping while finishing
>
> > > > > > > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > > > > > > Fwiw, there will be a better way to accomplish this in an 
> > > > > > > > upcoming
> > > > > > > > SDK.
>
> > > > > > > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > override B.onActivityResult and callfinish()
>
> > > > > > > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > I have three activies
>
> > > > > > > > > > A  B  C
>
> > > > > > > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > > > > > > i just want to do like when ifinishC ..itfinishall activies 
> > > > > > > > > > and
> > > > > > > > > > show me the Aactivity
>
> > > > > > > > > > please help me out
>
> > > > > > > > > > i tried to do that but ..when i press back button it again 
> > > > > > > > > > shows B
> > > > > > > > > >activity.
>
> > > > > > --
> > > > > > Deepak Kumar Singh- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread rezar

I just change the exit button to "back" on B and C activity.
I think it is usual in all mobile applications to go back to A then
exit the application.


On Apr 3, 11:23 am, Greg <[EMAIL PROTECTED]> wrote:
> I have three activies
>
> A  B  C
>
> i start sub activity from A then i startsubactivity from B
>
> i just want to do like when i finish C ..it finish all activies and
> show me the A activity
>
> please help me out
>
> i tried to do that but ..when i press back button it again shows B
> activity.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread Greg

when i used this code
this.finish();
startSubActivity(i, ACTIVITY_CREATE);

new activity stared but in new activity for moments it shows old
activity

y does it so ?

On Apr 16, 3:17 pm, Greg <[EMAIL PROTECTED]> wrote:
> ok
>
> but what about this scenerio
>
>  A --->B  "before  C i finished B" >  C
> "before D  i finished B" ->D
>
> from now D i have to go back to B again if user press cancel button
>
> when user press Cancel Button C onActivity Result will be called in A
> so i have to called B again from A ..activites again overlapped
>
> ?
>
> On Apr 16, 10:48 am, "Larry @ z" <[EMAIL PROTECTED]> wrote:
>
> > as deepark said, you can A create B, B finished, Kill B, let A create
> > C, C finished, kill C, return to A.
>
> > On Apr 16, 1:04 pm, Greg <[EMAIL PROTECTED]> wrote:
>
> > > so what is the solution for this problem ?
>
> > > any tested solution would be appreciated
>
> > > please help me out ?
>
> > > On Apr 15, 11:46 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > > > Actually you want to finish B -after- starting the next activity.
>
> > > > And yes, the activities get overlapped -- first B is paused, then C is
> > > > created and resumed, then B is stopped and finished.  It is designed
> > > > this way to allow B to save all of its important state before the next
> > > > activity takes over, while reducing the amount of work as much as
> > > > possible needed to get the next activity displayed to the user.
>
> > > > On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
>
> > > > > Before you start sub activity C finish the subactivity B using 
> > > > > finish()
> > > > > .Hope this Works
>
> > > > > On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > but activities are getting overlapping while finishing
>
> > > > > > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > > > > > Fwiw, there will be a better way to accomplish this in an upcoming
> > > > > > > SDK.
>
> > > > > > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > override B.onActivityResult and callfinish()
>
> > > > > > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > I have three activies
>
> > > > > > > > > A  B  C
>
> > > > > > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > > > > > i just want to do like when ifinishC ..itfinishall activies 
> > > > > > > > > and
> > > > > > > > > show me the Aactivity
>
> > > > > > > > > please help me out
>
> > > > > > > > > i tried to do that but ..when i press back button it again 
> > > > > > > > > shows B
> > > > > > > > >activity.
>
> > > > > --
> > > > > Deepak Kumar Singh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-16 Thread Greg

ok

but what about this scenerio

 A --->B  "before  C i finished B" >  C
"before D  i finished B" ->D

from now D i have to go back to B again if user press cancel button

when user press Cancel Button C onActivity Result will be called in A
so i have to called B again from A ..activites again overlapped

?



On Apr 16, 10:48 am, "Larry @ z" <[EMAIL PROTECTED]> wrote:
> as deepark said, you can A create B, B finished, Kill B, let A create
> C, C finished, kill C, return to A.
>
> On Apr 16, 1:04 pm, Greg <[EMAIL PROTECTED]> wrote:
>
> > so what is the solution for this problem ?
>
> > any tested solution would be appreciated
>
> > please help me out ?
>
> > On Apr 15, 11:46 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > > Actually you want to finish B -after- starting the next activity.
>
> > > And yes, the activities get overlapped -- first B is paused, then C is
> > > created and resumed, then B is stopped and finished.  It is designed
> > > this way to allow B to save all of its important state before the next
> > > activity takes over, while reducing the amount of work as much as
> > > possible needed to get the next activity displayed to the user.
>
> > > On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
>
> > > > Before you start sub activity C finish the subactivity B using finish()
> > > > .Hope this Works
>
> > > > On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > but activities are getting overlapping while finishing
>
> > > > > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > > > > Fwiw, there will be a better way to accomplish this in an upcoming
> > > > > > SDK.
>
> > > > > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > > > > override B.onActivityResult and callfinish()
>
> > > > > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I have three activies
>
> > > > > > > > A  B  C
>
> > > > > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > > > > i just want to do like when ifinishC ..itfinishall activies and
> > > > > > > > show me the Aactivity
>
> > > > > > > > please help me out
>
> > > > > > > > i tried to do that but ..when i press back button it again 
> > > > > > > > shows B
> > > > > > > >activity.
>
> > > > --
> > > > Deepak Kumar Singh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-15 Thread Larry @ z

as deepark said, you can A create B, B finished, Kill B, let A create
C, C finished, kill C, return to A.

On Apr 16, 1:04 pm, Greg <[EMAIL PROTECTED]> wrote:
> so what is the solution for this problem ?
>
> any tested solution would be appreciated
>
> please help me out ?
>
> On Apr 15, 11:46 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > Actually you want to finish B -after- starting the next activity.
>
> > And yes, the activities get overlapped -- first B is paused, then C is
> > created and resumed, then B is stopped and finished.  It is designed
> > this way to allow B to save all of its important state before the next
> > activity takes over, while reducing the amount of work as much as
> > possible needed to get the next activity displayed to the user.
>
> > On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
>
> > > Before you start sub activity C finish the subactivity B using finish()
> > > .Hope this Works
>
> > > On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > but activities are getting overlapping while finishing
>
> > > > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > > > Fwiw, there will be a better way to accomplish this in an upcoming
> > > > > SDK.
>
> > > > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > > > override B.onActivityResult and callfinish()
>
> > > > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I have three activies
>
> > > > > > > A  B  C
>
> > > > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > > > i just want to do like when ifinishC ..itfinishall activies and
> > > > > > > show me the Aactivity
>
> > > > > > > please help me out
>
> > > > > > > i tried to do that but ..when i press back button it again shows B
> > > > > > >activity.
>
> > > --
> > > Deepak Kumar Singh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-15 Thread Greg

so what is the solution for this problem ?

any tested solution would be appreciated

please help me out ?

On Apr 15, 11:46 am, hackbod <[EMAIL PROTECTED]> wrote:
> Actually you want to finish B -after- starting the next activity.
>
> And yes, the activities get overlapped -- first B is paused, then C is
> created and resumed, then B is stopped and finished.  It is designed
> this way to allow B to save all of its important state before the next
> activity takes over, while reducing the amount of work as much as
> possible needed to get the next activity displayed to the user.
>
> On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
>
> > Before you start sub activity C finish the subactivity B using finish()
> > .Hope this Works
>
> > On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > but activities are getting overlapping while finishing
>
> > > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > > Fwiw, there will be a better way to accomplish this in an upcoming
> > > > SDK.
>
> > > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > > override B.onActivityResult and callfinish()
>
> > > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > > I have three activies
>
> > > > > > A  B  C
>
> > > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > > i just want to do like when ifinishC ..itfinishall activies and
> > > > > > show me the Aactivity
>
> > > > > > please help me out
>
> > > > > > i tried to do that but ..when i press back button it again shows B
> > > > > >activity.
>
> > --
> > Deepak Kumar Singh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-14 Thread hackbod

Actually you want to finish B -after- starting the next activity.

And yes, the activities get overlapped -- first B is paused, then C is
created and resumed, then B is stopped and finished.  It is designed
this way to allow B to save all of its important state before the next
activity takes over, while reducing the amount of work as much as
possible needed to get the next activity displayed to the user.

On Apr 14, 10:58 pm, "Deepak Singh" <[EMAIL PROTECTED]> wrote:
> Before you start sub activity C finish the subactivity B using finish()
> .Hope this Works
>
>
>
> On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > but activities are getting overlapping while finishing
>
> > On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > > Fwiw, there will be a better way to accomplish this in an upcoming
> > > SDK.
>
> > > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > > > override B.onActivityResult and callfinish()
>
> > > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > > I have three activies
>
> > > > > A  B  C
>
> > > > > i start subactivityfrom A then i startsubactivity from B
>
> > > > > i just want to do like when ifinishC ..itfinishall activies and
> > > > > show me the Aactivity
>
> > > > > please help me out
>
> > > > > i tried to do that but ..when i press back button it again shows B
> > > > >activity.
>
> --
> Deepak Kumar Singh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-14 Thread Deepak Singh
Before you start sub activity C finish the subactivity B using finish()
.Hope this Works

On Tue, Apr 15, 2008 at 10:29 AM, Greg <[EMAIL PROTECTED]> wrote:

>
> but activities are getting overlapping while finishing
>
> On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> > Fwiw, there will be a better way to accomplish this in an upcoming
> > SDK.
> >
> > On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
> >
> > > override B.onActivityResult and callfinish()
> >
> > > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
> >
> > > > I have three activies
> >
> > > > A  B  C
> >
> > > > i start subactivityfrom A then i startsubactivity from B
> >
> > > > i just want to do like when ifinishC ..itfinishall activies and
> > > > show me the Aactivity
> >
> > > > please help me out
> >
> > > > i tried to do that but ..when i press back button it again shows B
> > > >activity.
> >
>


-- 
Deepak Kumar Singh

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-14 Thread Greg

but activities are getting overlapping while finishing

On Apr 3, 9:36 pm, hackbod <[EMAIL PROTECTED]> wrote:
> Fwiw, there will be a better way to accomplish this in an upcoming
> SDK.
>
> On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
>
> > override B.onActivityResult and callfinish()
>
> > On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > > I have three activies
>
> > > A  B  C
>
> > > i start subactivityfrom A then i startsubactivity from B
>
> > > i just want to do like when ifinishC ..itfinishall activies and
> > > show me the Aactivity
>
> > > please help me out
>
> > > i tried to do that but ..when i press back button it again shows B
> > >activity.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-03 Thread hackbod

Fwiw, there will be a better way to accomplish this in an upcoming
SDK.

On Apr 3, 6:13 am, xingye <[EMAIL PROTECTED]> wrote:
> override B.onActivityResult and call finish()
>
> On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
>
> > I have three activies
>
> > A  B  C
>
> > i start sub activity from A then i startsubactivity from B
>
> > i just want to do like when i finish C ..it finish all activies and
> > show me the A activity
>
> > please help me out
>
> > i tried to do that but ..when i press back button it again shows B
> > activity.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-03 Thread xingye

override B.onActivityResult and call finish()


On 4月3日, 下午5时23分, Greg <[EMAIL PROTECTED]> wrote:
> I have three activies
>
> A  B  C
>
> i start sub activity from A then i startsubactivity from B
>
> i just want to do like when i finish C ..it finish all activies and
> show me the A activity
>
> please help me out
>
> i tried to do that but ..when i press back button it again shows B
> activity.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-03 Thread Semeria Stefano

Hi,

I am not an expert but I think that you should be able to call the 
Activity.finish() method just after you call the startSubactivity for C in 
Activity B.
If I understood correctly the Forwarding.java sample in 
samples\ApiDemos\src\com\google\android\samples\app
performs exactly what you need.

Let me know if you solved your issue.
Regards,

Stefano 

-Original Message-
From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Greg
Sent: giovedì 3 aprile 2008 11.23
To: Android Developers
Subject: [android-developers] Finish Activity(Urgent)


I have three activies

A  B  C

i start sub activity from A then i startsubactivity from B

i just want to do like when i finish C ..it finish all activies and
show me the A activity

please help me out

i tried to do that but ..when i press back button it again shows B
activity.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---