[android-developers] Re: Developing Phone

2011-01-06 Thread BobG
I think if you want to write an app that uses the ambient light sensor, you should make sure the phone you buy has an ambient light sensor. Note that os ver 2.2 has the most phones now, so I'd get one that has that os. Google evidently has NO INTENTION of upgrading the developer phone they sell,

[android-developers] Developers near Orlando?

2010-12-24 Thread BobG
I asked this a couple months ago but didn't get much response. Hope you don't mind my asking if any developers near Orlando might want to 'collaborate' (that means help me debug my apps!) on a few projects? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] List of phone names?

2010-12-17 Thread BobG
Anyone ever seen a list of the HTC phone name followed by the Tmobile, Sprint, Verizon and ??? name? That and the screen res of each one would be Real Useful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Who has the Google Ion source?

2010-12-10 Thread BobG
HTC doesnt seem to claim the Google Ion. I hear its similar to a sapphire or a dream. Is it on Google somewhere? Who releases new OS versions? Google? HTC? T-mobile? HTC support won't say what chip is used in the audio codec. How can that be a secret? There must be a mic gain bit in a reg

[android-developers] Re: Improper Audio format while using AudioRecord API

2010-10-12 Thread BobG
Cant store a 16 bit sample into a byte array? -- 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] Re: Is the Market having problems today (October 3, 2010)?

2010-10-03 Thread BobG
Last couple days just accessing android developers google group has taken a looong time to load. I hope its all those new customers in the new countries loading down the google servers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Forum Real Slow last couple of days?

2010-09-30 Thread BobG
Is this slowdown due to lots of new traffic from the new customers in the new countries? -- 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,

[android-developers] Android developers in Central Florida?

2010-09-25 Thread BobG
Anyone live within about 50 miles of Orlando? Is it every developer for himself, or does anyone ever have a get together? -- 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] Re: Filter for crapps (crap apps)

2010-06-28 Thread BobG
It would be useful to just have a flashlite, tip calculator, and sexy asian girl category subfolder. That would clean up about 80% of the flotsam and jetsam so we could scan the market for interesting new 'killer apps' we can't live without. Might find the next Visicalc in there for free. -- You

[android-developers] How to adjust mic gain on HTC dev phone 2?

2010-06-10 Thread BobG
I have downloaded the HTC kernel source for the htc sapphire/magic from hts, and its huge and looks like its for a desktop because there are drivers for many different processors, busses, sound cards, video cards, everything imaginable except something that looks like audio for an htc phone. I

[android-developers] Re: How to detect CPU Speed?

2010-06-07 Thread BobG
call system time millis in a loop till it changes, Increment a variable, call system time millis until it changes again. You now know the number of system calls you can do in a ms. Note cpu mhz. Run this prog on 3 diff phones. Now you have a trend of syscalls per ms you can use to extrapolate mhz

[android-developers] Re: Motion Detection using camera?

2010-06-07 Thread BobG
This is the realm of 'image processing'. One algorithm might be: run a couple of nested for loops and find the x,y loc of the brightest pixel or the center of some bright feature, and do this in two frames. If the feature moves 3 pixels, you have solved the problem. Sounds easy when explained by a

[android-developers] Re: Accelerometer not working when screen turns off

2010-05-27 Thread BobG
Its the backlight that sucks coulombs. If you can dim that way down, you're golden. -- 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

Re: R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-25 Thread BobG
I cant seem to get that example I posted to run much faster than every 200ms, so if some Real Smart Guy can try to speed it up and tell us peons what the speedup trick was, we'd be grateful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-25 Thread BobG
So you are telling me I can get an app to run faster on a 20Mhz 8 bit AVR than on this 528MHz ARM because of the silly java interpreter overhead and several dozen other tasks running in the background? I can see why Objective C runs a lot faster. No interpreter. Bad design decision? Show Stopper?

[android-developers] Re: Is Google working on the Bluetooth bug? Any estimated date of completion?

2010-05-23 Thread BobG
So if I want to connect and read from a bluetooth stream on an adp2 phone running 1.6, I need to wait for some kind soul to write a backport from 2.2 to 1.6 and publish it so I can compile with the backport jar? Or patiently wait for some kind HTC employee to work on a 1.6 to 2.0 port, then a 2.1

[android-developers] Re: Filtering Android Sensors Noise

2010-05-21 Thread BobG
Averaging is the right algorithm. The tradeoff is averaging lots of readings makes the movement smoother but slower to respond (lag). try averaging 8,16,32,64 samples. When it gets too slow, back up one. -- You received this message because you are subscribed to the Google Groups Android

Re: R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-21 Thread BobG
try this, turn on audio record permission package com.aiti.vumeter; //vumeter //May 21 2010 Bob Gardner at aol.com import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color;

[android-developers] Re: Urgent Help: AudioTrack class ...Streaming Mode

2010-05-18 Thread BobG
8khz sample rate sends 8 samples per ms. If you bundle up 50ms worth of samples in a packet (400 samples, 800 bytes) and send them the 50 ms lag is almost undetectable (unless you can hear the original too... 2 phones at the same time for example) -- You received this message because you are

[android-developers] HTC kernel source... where's the mic sampling rate hidden?

2010-05-17 Thread BobG
I have a dev phone 2... I guess its mostly an HTC dream, or maybe a sapphire... I dled the kernal source from htc to see if I could find out what the mic sampling rates are. There are directories for alpha, arm, mips, x86, drivers for every device in the world, whether they are in the phone or

[android-developers] Google Devel Phone 2 (Google Ion) sane as HTC Dream?

2010-05-15 Thread BobG
I downloaded the HTC Dream source code... trying to find out if the mic preamp has a lo pass filter thats adjustable. I can grab mic samples of some whshing noise wchich I assume goes on up past 16khz at least, using audiotrack, but when I plot the output of a bp filter from say 8-16khz,

[android-developers] How much time per task?

2010-05-14 Thread BobG
Lets say I have 3 cpu bound activities running, and not much sensor/io/ radio activity. Just for puposes of this example. My model of how linux works is: the clock ticks every ms. All ready tasks are aged one tick. Some might become ready to run because they have 'aged' while waiting. Each running

[android-developers] Example to increment a var on a timer and print it out?

2010-05-11 Thread BobG
Seems like I need something like onTickListener, then I increment my variable and setText and invalidate. If you have a view, you can set onClickListener then performClick. Would that work? Thanks... I'm confused -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread BobG
I think a Fourier transform would give me equally spaced spectra. I'm interested in a frequency response, where the output of each third octave wide bandpass filter (lopass in series with hi pass one third octave higher) is averaged and plotted in db below full scale. These filters have equal

[android-developers] Re: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread BobG
Minbuffersize came back as 4096 bytes, but I need 2400 16 bit samples at 48000 samp per sec to get 50ms worth of samples one period of 20hz. So I set it to 4800 bytes. Timing is from system.currentTimeMillis on a dev phone 2 (528mhz cpu?). This timing would, I assume, include the timing of

[android-developers] Re: Will 900ms of calcs run faster in another thread?

2010-04-22 Thread BobG
Thanks for the replies folks. I saw the Real Time Analyzer in the market, and it runs like a scalded dog. I was trying to get the same sort of effect by feeding the same buffer full of samples thru a filter that steps up in freq every pass. I timed a bunch of floating point adds and multiplies in

[android-developers] Re: Could anyone with an HTC Desire/Droid help me

2010-04-21 Thread BobG
I downloaded the update yesterday, and I still got the force close. Sorry!. -- 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

[android-developers] Re: DevPhone1 SDK compatibility

2010-04-21 Thread BobG
I have a dev phone 2 with 1.6. My boss has a moto droid with 2.1 (I ASSUMED buying a google dev phone would have the latest rev, but evidently not). You can definitely develop an app for it, just select os revision 1.6 in the new-project-android project dialog. Evidently, the bluetooth is still

[android-developers] Will 900ms of calcs run faster in another thread?

2010-04-21 Thread BobG
I have this audio analyzer app that fills a buffer with audiorecord, runs it thru a bunch of filters, and plots the filter out as a bunch of vertical bars. I timed the sampling, filtering and drawing with systemTimeMillis and it takes about 100ms,900ms and 50ms. I cant see how putting the calcs in

[android-developers] Max samplerate in AudioRecord?

2010-04-20 Thread BobG
I have a dev phone 2... It says its a Google Ion... made by HTC same as what? A dream? Anyway, I can take a buffer full of samples at 48000 and run the buffer thru a bandpass filter... it looks like there is a sharp rolloff at 8khz. Now I wonder if its the model of the phone, the driver, the

[android-developers] Re: Could anyone with an HTC Desire/Droid help me

2010-04-19 Thread BobG
menu-newbook-forceclose on google devphone2 -- 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] Re: audio equalizer support

2010-04-15 Thread BobG
Harmony Central has Digital Signal Processing source code that will show you how to get er dun. -- 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

[android-developers] Re: how to get device's movement speed?

2010-04-11 Thread BobG
I see now he's asking about pitch roll and yaw velocity rather than x,y and z velocity. The simple case of pitch and roll tilt is detectable with a 3 axis accelerometer. Can't do yaw. That's what the magnetometer is for. So if you can get pitch and roll 20 times a sec (atan2(y,z) and atan2(x,z)),

[android-developers] Re: Accelerometer - direction of shake?

2010-04-08 Thread BobG
If you move the phone left and right when looking at the screen, thats moving in the x axis, so if you take sanples faster than you are shaking it, as ordained by Mr Nyquist, you will see the accel increasing, then slowing down, stopping, and accelerating back the other way. The info you asked for

[android-developers] Re: how to get device's movement speed?

2010-04-08 Thread BobG
Acceleration * time gives velocity. Accel * delta time gives delta velocity. You accumulate the deltas like this: velocity += deltavelocity. If you mult velocity * deltat you get delta position. Accumulate those to keep track of position. Thats how Inertial Navigation Systems flew ICBMs a couple

[android-developers] Re: How to send AT command in android?

2010-04-02 Thread BobG
cross post. rude. wastes time. pick a forum. -- 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] Re: Creating a textfile and writing to it

2010-03-31 Thread BobG
On Mar 30, 12:08 pm, Mark Murphy mmur...@commonsware.com wrote: You may wish to spend a few weeks learning Java outside of Android. I fear that you will find learning both at the same time to be frustrating. = You Betcha -- You

[android-developers] Re: Sound Processing

2010-03-30 Thread BobG
On Mar 29, 11:07 pm, Janaka wijes...@gmail.com wrote: I am testing the application on the emulator and i couldn't get the AudioTrack or AudioRecord to work. I am trying to apply fast furior transform to the input so I saw the guy down the

[android-developers] Re: Could not get audio input for record source

2010-03-30 Thread BobG
Change 11025 to 8000 and try one more time? -- 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] Re: Sound Processing

2010-03-29 Thread BobG
Read about AudioTrack, AudioRecord, and Soundpool I think. -- 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] Re: How to sell through Android market?

2010-03-26 Thread BobG
Hire a broker/agent in the US and pay a commision? -- 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] Re: AudioRecord on Emulator with friquency 8 kHz

2010-03-26 Thread BobG
For 16Khz freq response you need 32Khz sampling rate. What is your desired freq response? -- 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

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

2010-03-25 Thread BobG
To get a response in 'real time', you need to hear the volume change within 100ms or so of hitting the volume adjust picker or spinner or whatever. 8000 samples a sec is 8 samples in a ms, so if you process 800 sample chunks of the stream and shift each sample it left or right a bit to raise or

[android-developers] Re: cannot see my own paid app on the market place?

2010-03-25 Thread BobG
There's a Legion in the market on my adp2 phone, t-mobile service, in Florida. -- 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

[android-developers] SIngle or double digit picker?

2010-03-24 Thread BobG
What would we call a single digit picker or a double digit picker? They would be useful for simple numeric entry and parameter adjustment like height and width. I suppose one could hack and whack the time picker to pieces to get something like this? (Actually I want to adjust EQ parameters like

[android-developers] Re: recording volume indicator

2010-03-18 Thread BobG
I humbly suggest an 8 segment tower... assuming 8 bit audio, calc the avg level of 'a bunch' of samples (a frames worth? 30ms at 8 samps per ms is 240 samps for example), Set a bar in the level indicator for each bit that is set... 6 db per bit 1 or 2 or 3 db per segment would be more

[android-developers] Re: How to merge two bitmap into one

2010-03-15 Thread BobG
How about set the Alpha channel in each one to 50% so they are both half see through? -- 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,

[android-developers] Bluetooth chat example from sdk resources works ok?

2010-03-03 Thread BobG
Hello fellow android developers. I assume the bluetooth chat example on the developer resources page runs on something I have a dev phone 2, which I think is an HTC Ion, with os ver 1.6. Will the btchat example dl and run on 1.6? (right now its saying it stopped unexpectedly...). So is it

[android-developers] Request for onScroll example?

2010-02-25 Thread BobG
I would love for one of you smart folks to show me a small example that increments/decrements a count on onScroll up and down and prints it out. I'm still unsure of the sequence of extends and implements and super and listener and what order they are declared/invoked/ instantiated. Thanks. It will

[android-developers] Audio write speed?

2010-02-24 Thread BobG
Anyone know if you can write a mono 16 bit pcm stream to flash at 44100 words a sec/88200 bytes per sec? Thanks -- 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

[android-developers] Re: Example that redraws on a key without using a thread?

2010-02-19 Thread BobG
//This actually works. Hope it helps someone. package com.AITI.hellobutton; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button;

[android-developers] Example that redraws on a key without using a thread?

2010-02-17 Thread BobG
Howdy android experts. I thought I knew something about programming lots of experience with microcontrollers and embedded simulations that run in a loop and read inputs, do some calcs, send outputs. After days of trying to write a program that prints out a count that increments with a key, I

[android-developers] Example that prints 1 2 3 4 on A A A A?

2010-02-15 Thread BobG
I asked this question on Android Beginners several days ago, but didnt get any nibbles. I have an app that almost works... I can draw the needle on my gauge rotated, but I want to use A and Z keys to increment and decrement the needle angle. I'd be gratefule if someone could shoe me an example

[android-developers] Re: Example that prints 1 2 3 4 on A A A A?

2010-02-15 Thread BobG
Thanks for the reply. Can you flesh it out a little? I see some examples that dont use override, so there must be a reason? Do I stick this in the activity or the view or the onCreate or ?? I get this event, and 'do some stuff' like increment a count and print it out. Then what? When I hit the key

[android-developers] Re: device shaked? accelerometer once more

2010-02-02 Thread BobG
On Feb 2, 11:57 am, kretes kretesena...@gmail.com wrote: yes, my device wasn't entirely horizontal or vertical. However what I am looking for is function that will give me the same value when the device is not in movement, but in any position, it can be on a slant, it can be almost