[android-developers] onSaveInstanceState (View)

2011-01-06 Thread Slash4
Hi, I've got some issues with onSaveInstanceState (the View one, not the Activity). I have in my main Activity several objects, here's a snippet of my two implementations, one through XML Inflate, and one in pure java code. //Inflated from XML dialbig = (Object1) findViewById(R.id.dialbig); //Im

[android-developers] Re: CPU cost of a semi-infinite loop

2011-01-04 Thread Slash4
db shell top > -t -m 10". > > > > On Sat, Jan 1, 2011 at 7:49 AM, Slash4 wrote: > > After several tests involving AudioTrack, both STATIC and STREAM mode, > > It was obvious I could not use this because of the specificity of my > > metronome, which can mix and play

[android-developers] Re: CPU cost of a semi-infinite loop

2011-01-01 Thread Slash4
debug log, but do not hear jitter anyway. Is there something like Task Manager on android to see how much CPU it costs now ? I would like to compare the two versions now :) Thanks for your reactive and precise help. And oh, happy new year :) Rgds, Alex On 30 déc 2010, 10:56, Slash4 wrote:

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-30 Thread Slash4
Thanks Kostya, Streaming seems to be a great solution. And it is very interesting because this way I can mix sounds... Let's do this :) Rgds, Alex On 29 déc, 21:23, Kostya Vasilyev wrote: > To elaborate a bit: > > http://developer.android.com/reference/android/media/AudioTrack.html > > AudioTra

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
need to be?  Have you tried other approaches such as > posting messages at a time?  What priority are you running your timing > thread at (priority would be the first thing I look at when it comes to > accuracy). > > > > On Tue, Dec 28, 2010 at 4:06 AM, Slash4 wrote: > >

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
ng I look at when it comes to > accuracy). > > > > On Tue, Dec 28, 2010 at 4:06 AM, Slash4 wrote: > > Hi, > > > I'm working on a metronome application, so I need a rather accurate > > time-measuring system to fire the metronome sound at the right time. >

[android-developers] CPU cost of a semi-infinite loop

2010-12-28 Thread Slash4
Hi, I'm working on a metronome application, so I need a rather accurate time-measuring system to fire the metronome sound at the right time. Actually I found a solution, but I'm wondering if my method will not be cpu consuming. Here is the code snippet : t = new Thread() { public voi