Re: [android-developers] how to monitor the activities launching in real time, so I can count how many times it has been launched?

2010-04-06 Thread Simone Russo
You can use the preferences to store an int value and increment it by one every time the onCreate() is executed Simone On Tue, Apr 6, 2010 at 12:37 PM, lei eirst...@gmail.com wrote: how to monitor the activities launching in real time, so I can count how many times it has been launched?

Re: [android-developers] Re: Modifying audio in real time

2010-03-26 Thread Simone Russo
Hi, thank you very much for your answer. The problem I have is that I got an audio stream, say 5 seconds long. I want the user to be able to change the volume and the playbackrate while the sound is being played. I'm able to modify those parameters before i call the play() method, but I need to

Re: [android-developers] how to determine length of a video programmatically?

2010-03-26 Thread Simone Russo
Try the MediaPlayer.getDuration() method Simone On Fri, Mar 26, 2010 at 5:58 PM, Abhi abhishek.r.sha...@gmail.com wrote: Is there a way to determine the length of a video before playing it? Thanks, Abi -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] How to sell through Android market?

2010-03-26 Thread Simone Russo
Unfortunately I think you will have to wait for Google to allow the citizens of Singapore to sell their applications. Regards, Simone On Fri, Mar 26, 2010 at 7:49 PM, chib...@gmail.com chib...@gmail.comwrote: Hi, We are from Singapore would like to sell our applications through Android

Re: [android-developers] Re: getDuration() in VideoView returns -1 !!!

2010-03-26 Thread Simone Russo
Maybe posting some more code would be of help! Simone On Fri, Mar 26, 2010 at 7:20 PM, Abhi abhishek.r.sha...@gmail.com wrote: The idea was to post the same question with a relevant subject this time... don't think it should annoy you that much On Mar 26, 2:17 pm, Yahel kaye...@gmail.com

Re: [android-developers] Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
I did this: uses-permission android:name=android.permission.VIBRATE/ But it still won't work. What gives? Simone On Mon, Mar 29, 2010 at 9:33 PM, Dan Sherman impact...@gmail.com wrote: Make sure you have the vibrate permission in your manifest. - Dan On Mon, Mar 29, 2010 at 1:31 PM,

Re: [android-developers] Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
Sorry for the double post, but I put that at the end of the manifest and it seems to work now. Still, I don't get any effect for the vibration. Shouldn't the emulator shake or something? Thanks again, Simone On Mon, Mar 29, 2010 at 9:50 PM, Simone Russo simone.russ...@gmail.comwrote: I did

Re: [android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
!= null) { try { vibraor.vibrate(mp.getDuration()); } catch (Exception e) {} } Maybe one of these two 'try - catch' clauses are not necessary, but you get the idea :-) On Mar 29, 3:54 pm, Simone Russo simone.russ...@gmail.com wrote: Sorry for the double post, but I put that at the end

Re: [android-developers] Re: storing an array of objects

2010-03-31 Thread Simone Russo
Uhm ok, thank you for the tip. Simone On Wed, Mar 31, 2010 at 6:42 PM, Kumar Bibek coomar@gmail.com wrote: You can serialize these objects, store it in files and retrieve it. Read up some articles on Serialization in Java. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com

Re: [android-developers] Re: storing an array of objects

2010-04-01 Thread Simone Russo
That is what I was gonna do ;) Simone On Thu, Apr 1, 2010 at 4:58 PM, Kumar Bibek coomar@gmail.com wrote: You can extend the Timer classes and implement the Serializable interface to achieve serialization. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Apr 1, 12:01

Re: [android-developers] saving the reference to an object

2010-04-02 Thread Simone Russo
mmm, I think I have to use the Handler class, am I right? Simone On Fri, Apr 2, 2010 at 10:27 PM, Simone simone.russ...@gmail.com wrote: Hi, I have a Timer in my application, and would like to allow the user to set the timer, and maybe cancel it in another execution of the application. To do