Veritatis,
yes, it is working fine :-)
in fact, the only thing i changed was to include (override) the
onBackPressed() method as it was posted.
goBack() also remains as it was posted, calling finish() at the end,
after calling setResult(RESULT_OK, rit).
methods onPause, onStop, on destroy are n
Test thoroughly before you say "it works". I have to say this because
1) the solution you describe still has a bad feel to it and 2) you
TALK about "calling finish()", but you don't show it in this latest
post. Are you calling it from goBack()? As the last thing it does?
On Aug 13, 8:21 pm, "hecto
thank you guys,
finally it works by overriding the back button, calling goBack() and
also calling finish().
@Override
public void onBackPressed() {
goBack();
//return;
}//onBackPressed
hector
On Aug 13, 12:00 pm, TreKing wrote:
> On Sat,
On Sat, Aug 13, 2011 at 11:22 AM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:
> i am trying to also do it form onPause(), onStop() , onDestroy . :-
Well there's your problem.
I don't know what will actually happen with you doing this, but that seems
wrong. Those methods are alread
i callled goBack() with sucess from a button:
mButton_thisSpinValue.setOnLongClickListener(new
View.OnLongClickListener() {
public boolean onLongClick(View v) {
Toast.makeText(HDART10Activity.this, "GO BACK
...",
Toast.LENGTH_SHORT).show();
On Fri, Aug 12, 2011 at 5:36 PM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:
> i wonder if somebody has an idea to deal with this issue; i tried to catch
> the RESULT_CANCELED but nothing happens, the activity 1 is as follows:
>
How and where are you calling your "goBack()" method?
---
1- i saw an example using super.onActivityResult()
using it after the "if" didnt make any difference!
2-the process code is for RESULT_OK:
yellowRoullete = (Roullete)
rit.getParcelableExtra("updatedYellowRoullete");
blueRoullete = (Roullete)
rit.getParcelableExtra("updatedBlu
Two questions: 1) why do you call super.onActivityResult()? The
ApiDemo examples do not. If you must call it, you should call if after
your own processing, since you want to catch the CANCELED first 2)
what code DO you have for handling other result codes? You should have
a default case at least so
thank you guys for comments,
i wonder if somebody has an idea to deal with this issue; i tried to
catch the RESULT_CANCELED but nothing happens,
the activity 1 is as follows:
public void onActivityResult(int requestCode, int resultCode, Intent
rit) {
super.onActivityResult(requestCode, re
On Fri, Aug 12, 2011 at 3:17 PM, Kostya Vasilyev wrote:
> Try calling setResult from onPause - I believe onStop is too late, due
> to how Start/Stop/Pause/Resume are intermingled.
Last I checked, even onPause() is too late.
Hector:
The idea is that you call setResult() when the user makes a cho
On Fri, Aug 12, 2011 at 2:12 PM, hectordu...@yahoo.com <
hectordu...@yahoo.com> wrote:
> so, if the user press back, the method setResult(RESULT_OK, rit), called
> from onStop() ... does not work?
>
Yes it does. More than likely you are handling onActivityResult incorrectly.
Are you specifically
Try calling setResult from onPause - I believe onStop is too late, due
to how Start/Stop/Pause/Resume are intermingled.
2011/8/12 hectordu...@yahoo.com :
> :-(
>
> so, if the user press back, the method setResult(RESULT_OK, rit),
> called from onStop() ... does not work?
>
> On Aug 12, 12:35 pm, M
:-(
so, if the user press back, the method setResult(RESULT_OK, rit),
called from onStop() ... does not work?
On Aug 12, 12:35 pm, Mark Murphy wrote:
> On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com
>
> wrote:
> > "have Activity 1 use
> > startActivityForResult() to start up Activity 2,
On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com
wrote:
> "have Activity 1 use
> startActivityForResult() to start up Activity 2, with Activity 2
> sending the result back via setResult(), followed by finish(). "
>
> ok, thats exactly what the activities do; but the result back doesnt
> work
"have Activity 1 use
startActivityForResult() to start up Activity 2, with Activity 2
sending the result back via setResult(), followed by finish(). "
ok, thats exactly what the activities do; but the result back doesnt
work when the hardware keyboarb (back) is used.
What actvity 2 does is:
"A situation you will often run in to is when another entity (such as
the SearchManager or NotificationManager) starts one of your
activities. In this case, the Intent.FLAG_ACTIVITY_NEW_TASK flag must
be used, because the activity is being started outside of a task (and
the application/task may no
Awesome! You saved the day ... again.
--~--~-~--~~~---~--~~
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,
When setting the Notification intent, are you using the Flags CLEAR_TOP and
SINGLE_TASK?
ie. Intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_NEW_TASK)
More explanation about these launch modes is given in the docs below:
http://code.google.com/android/reference/android/conten
18 matches
Mail list logo