[android-developers] Re: finish an activity not started from current activity

2010-05-05 Thread fabricio
Thanks a lot for taking some time to reply,


 Why not just start the second activity from the first? Why go through
 broadcasting and receiving an intent?

  And I can't use startActivityForResult() as activity 2 can't be started
  from activity 1.

 Why not?


Sorry for lack of accuracy, I probably should have gone into more
details.
Actually the first activity needs to send a SMS, and the second
activity is associated to the receiver that handles reply to another
SMS sent by my server.

As there's no way as far as I know to make this transaction
synchronous, outbound activity 1 needs to be separate from inbound
activity 2.

 Here's an idea: get rid of the quit application option. It's really
 unnecessary, especially if you're only dealing with 2 activities. You're
 saving, what, two back-button presses?

Yes, I considered that option.
I was trying to give the user best possible UI experience. On my low
memory LG eve, I do appreciate quit buttons :)

Regards

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


[android-developers] finish an activity not started from current activity

2010-05-03 Thread fabricio
Hi!

I have following problem with my application:

From my main activity (activity 1), there is a menu from which user
can launch an action.
This action will result in an Intent being received by a
BroadcastReceiver, defined in my application.
Finally, this BroadcastReceiver will start an activity (activity 2)
to deal with this intent.

The problem is that I have a quit application entry in my menu, and
I can only finish() currently active activity.
ie I am not able to finish activity 1 from the menu of activity 2.

And I can't use startActivityForResult() as activity 2 can't be
started from activity 1.

Any suggestion would be much appreciated
Thank you very much guys, regards.

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


Re: [android-developers] AudioTrack - Doesn't stop playing as requested.

2009-12-22 Thread Fabricio
Not been very familiar with it but maybe you could pause it and then proced
to stop and release.
Salutes.
Fabricio Tuosto


On Tue, Dec 22, 2009 at 11:22, Business Talk
roman.businesst...@gmail.comwrote:

 I've been trying to resolve the issue of the immediate termination of
 the AudioTrack played in the MODE_STREAM track with no avail. To do so
 I call stop and release;

audioTrack.stop();
audioTrack.release();
audioTrack = null;

 I tried flushing but it made no difference.

 It  finishes  playing the remaining of the buffer and than stops. It
 seems like the problem renders the AudioTrack useless if one can't
 stop playing at will. I can't imagine using it if I have to wait till
 it finishes playing its buffer. And since this is the only sound
 solution I can use for my application, the JetPlayer and the
 SoundPool, do not fit my needs, I am left with the decision if I
 should continue. It’s got to be a way. I assume others used it
 successfully since I haven’t seen any post.  Any thoughts?

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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