[android-beginners] Serial ports?
Has anyone discovered a serial port in any android phone? Undocumented factory debug feature or something? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Real-time audio processing
Why have you chosen 10ms? (just out of curiousity). If you record at 44khz, you are grabbing 44 samps per ms, or 440 samps in 10ms. I dont think you can record from the mic higher than 16khz on an ADP2/Google Ion at least. The audio routines have a 'minimum buffer size' that you should probably use. Here's an experiment you can try to determine minimum acceptable latency... have a buddy walk 30 or 40 feet away from you. Have him talk to you from this distance. Watch his lips. The delay is 1ms per foot. Is there a noticable loss of sync between lips and ears? If not, this proves that 30 or 40ms is acceptable. I have noticed that the 300ms delay across a stadium at a concert is nuts. You see the drummer hit a rimshot, but you dont hear the Whack! for 300ms. Crazy. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] google ion/htc ??? source code?
Anyone know which file to dl from htc that corresponds to the android devel phone 2? sapphire? dream? I'm looking for the source to the audio bits... I suspect there might be a way to set gain on the mic? Anyone have any idea about this? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Programming model for embedded programmers?
I finally realized why I cant find a good overview of android programming tecnique that doesnt assume that the student is a proficient windows/event driven programmer. Android is a stack on top of java, which is a stack on top of an operating system, and I betcha most experienced java programmers have never really wondered what goes on below the java interpreter. It isnt necessary. Just call the function, and assume that there are lots of spare mips and megabytes left on the pc. Us old embedded programmers are painfully aware of the number of cycles to read a file and/or draw rectangles because weve probably written every subroutine in a file system and a graphics package at one time or another. My model is that after oncreate returns to the operating system, every event that gets delivered to the activity is sent by the operating system, and the activity gets a quantum to run, however long that is (100ms?) and one really has no idea how many ms will elapse until the activity gets to run again. Horrible for real time stuff like embedded guys are used to. The huge complex overhead of splitting a simple program that does input, process, output and runs in a loop into two tasks makes no sense because both of these tasks are being run by the operating system. Just more overhead. There doesnt seem to be a way to generate a 50ms timer event and run a program at a hi priority. Do any android gurus have an embedded backfround also? I know my lack of 'windows' model programming hinders my understanding, and I'd be grateful for a link to some examples that might help. I have no prob generating a timer interrupt that hits every 100usec on a 20mhz 8 bit microcontroller. Hard to believe I cant run a program faster than every 100ms on a 500mhz 32 bit arm. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Programming model for embedded programmers?
Is knowing how multithreaded operating systems work a prerequisite for being a java and an android programmer? Then how does a university teach java? Do those guys know how multithreaded operating systems work? I don't think I've ever even seen the term multithreaded operating system before. I've read about multithreaded languages, and multi tasking operating systems, but maybe this is part of the secret java cult? Kind of like ham radio. You cant join their club till you learn their lingo. Would this satisfy you as a real question?: Do any android programmers that also are embedded programmers ever recall reading any articles that might explain some of the similarities and differences? Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Converting audio format
I think this is what MediaRecorder does? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] How to force the first temperature sensor change event?
I use sensor change listener to read the accelerometer, and it works fine because there are a lot of changes. Now I ask for changes on the temperature sensor and it doesnt change very often... any way to tell it to go ahead and send what you have instead of waiting for it to change? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: HTC Hero Accelerometer
Specs in online docs say +-27 meters per sec^2. Divide by 9.81 m/sec^2 is +-2.81 Gs. The free sensor test app says its an AK8967A sensor. On May 17, 2:27 pm, T1000 t1...@zando.dyndns.org wrote: Hi, How accurate is the accelerometer (G-Sensor) on the HTC Hero phone? Where can I obtain the specifications for this sensor? Let me know! Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Moving a program from one computer to another
I have an eclipse workspace on my laptop, my desktop at work, and the company server. If I go home and edit program xx on the laptop, the only thing that changed is the java file ine the src dir, so thats all I need to copy to the desktop and the server when I get to work? I also want to figure out how to move an example from the samples dir in the sdk dir into my androiddevel dir. One problem is the samples have different package names... com.exmaples.android or something, and my androiddevel packages are all com.aiti.xx, so there an item in eclipse that does this, or does one edit every file in the src dir to change the package name? Thanks. Not used to eclipse yet. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Randomly generate sound from onClick and onShake events?
You shake and get a random sound from 1 to 8. What happens if you shake 3 more times real fast? You have 4 then 3 then 2 then 1 sounds playing? You either need a soundpool that will play a half dozen sounds, ot a half dozen mediaplayers. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool
I was working on it last night... was going to upload it as an example sure enough, I'm having problems too... I have a looping engine sound I can make louder and softer, faster and slower with the thumbwheel, thought I'd add a one shot wav that plays 4 beeps to it on a touch. The beep seems to start 4 times, and it kills the looping sound. If I get it working I'll post it. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool
package com.aiti.playsound; //play car_idle and adjust playback rate using soundpool //Mar 5 10 Bob G //Apr 29 10 Bob G add beep4 on touch import java.util.HashMap; import android.app.Activity; import android.media.AudioManager; import android.media.SoundPool; import android.os.Bundle; import android.view.GestureDetector; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.GestureDetector.OnGestureListener; import android.widget.TextView; public class playsound extends Activity implements OnGestureListener{ public GestureDetector gd; public SoundPool soundPool; public HashMapInteger, Integer soundPoolMap; public int soundkey1,soundkey2; //from put? public int soundid1,soundid2; //from load public int streamid1,streamid2; //from play public final float MAXRATE=1.5f; //docs say 2.0, scuttlebutt says 1.5 public final float NORMRATE=1.0f; public final float MINRATE=0.5f; public float rate1=MINRATE; public float rate2=NORMRATE; public final float MAXVOL=(float)1.0; public final float MINVOL=(float)0.01; public final float HALFVOL=(float)0.707; public float vol1=MAXVOL; public float vol2=HALFVOL; public final int LOOPON= -1; public final int LOOPOFF=0; public static TextView tv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); gd=new GestureDetector(this); tv = new TextView(this); setContentView(tv); //tv.setText(in oncreate\n); soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 0); soundPoolMap = new HashMapInteger, Integer(); //tv.setText(after soundpoolmap\n); soundid1= soundPool.load(getBaseContext(), R.raw.car_idle, 1); soundid2= soundPool.load(getBaseContext(), R.raw.beep4, 1); // tv.setText(after load\n); soundPoolMap.put(soundkey1, soundid1); //maps id to key? soundPoolMap.put(soundkey2, soundid2); //maps id to key? //tv.setText(after put\n); play1(); play2(); }//oncreate public void play1(){ streamid1=soundPool.play(soundid1, vol1, vol1, 1, LOOPON, rate1); // soundPool.setLoop(streamid1, LOOPON); //looping on soundPool.setRate(streamid1, MINRATE); tv.setText(after play1 streamid1= +streamid1); } public void play2(){ streamid2=soundPool.play(soundid2, vol2, vol2, 1, LOOPOFF, rate2); // //soundPool.setLoop(streamid2, LOOPOFF); //looping off // soundPool.setRate(streamid2, NORMRATE); tv.append(\nafter play2 streamid2= +streamid2); } public void adjVol(float k){ vol1 *= k; if(vol1 MAXVOL) vol1 = MAXVOL; //0db if(vol1 MINVOL) vol1 = MINVOL; //-40db soundPool.setVolume(streamid1, vol1, vol1); } public void adjrate(float k){ rate1 *= k; if(rate1 MAXRATE) rate1 = MAXRATE; if(rate1 MINRATE) rate1 = MINRATE; soundPool.setRate(streamid1, rate1); } @Override public boolean onKeyDown(int keyCode, KeyEvent event){ switch(keyCode){ case KeyEvent.KEYCODE_DPAD_UP:adjVol((float)1.414); break; // 3db up case KeyEvent.KEYCODE_DPAD_DOWN: adjVol((float)0.707); break; // 3db down case KeyEvent.KEYCODE_DPAD_LEFT: adjrate((float)0.9); break; // slower case KeyEvent.KEYCODE_DPAD_RIGHT: adjrate((float)1.1); break; // faster case KeyEvent.KEYCODE_DPAD_CENTER: play1(); break; default: return super.onKeyDown(keyCode, event); }//switch tv.append(\nrate +rate1+ vol +vol1); return true; } @Override public void onPause(){ super.onPause(); soundPool.pause(streamid1); //forum says pause doesnt work soundPool.stop(streamid1); soundPool.setLoop(streamid1, LOOPOFF); soundPool.setVolume(streamid1, MINVOL, MINVOL); soundPool.pause(streamid2); //forum says pause doesnt work soundPool.stop(streamid2); soundPool.setLoop(streamid2, LOOPOFF); soundPool.setVolume(streamid2, MINVOL, MINVOL); } @Override public void onResume(){ super.onResume(); soundPool.resume(streamid1); } @Override public void onStop(){ super.onStop(); soundPool.stop(streamid1); soundPool.setLoop(streamid1, LOOPOFF); soundPool.setVolume(streamid1, MINVOL, MINVOL); } @Override public void onDestroy(){ super.onDestroy(); soundPool.unload(soundid1); soundPool.unload(soundid2);
[android-beginners] Re: Android number formatting question
If I get the drift of the answers, its that Android Beginners can't make the mistake of asking a question in the Android Beginner's forum if it is a General Java question that could be answered from memory by an experienced java programmer, but not necessarily by a beginner? Tough Forum. Is there a certification test for when one has enough java/android facts memorized to be able to ask a question in the Android Developer forum, where all the answers are from experts? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Screen height?
On Apr 20, 2:16 am, Justin Anderson janderson@gmail.com wrote: May I ask why you need something like that? === Dev phone 2, supposed to be 320x480, so I go to draw a graph from 0 to 319 and it looks like its too big by the size of the title bar and status bar. How am I supposed to get the size of the screen? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] How often does an activity run?
If we run a simple little hello world program that just puts some text in a textview, I see the the onCreate runs, and I guess it calls ondraw once, then it sort of returns to the os, and if we have registered a sensor changed or an onclick listener, we can read the sensor and call invalidate and the os will call ondraw again, and it all is usually 'fast enough'. But my question is: Does ondraw ever get called again? Or is this now a 'zombie process' that will just sit there taking up memory until we kill it? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How often does an activity run?
On Apr 19, 9:08 am, ~ TreKing treking...@gmail.com wrote: I don't know what you're asking. Activities don't really run like threads that have a definite function that gets executed to do work. They have functions that are invoked in response to system events (onCreate, onPause, onConfigurationChanged, etc). = Here is my 'model' that compares an embedded program to an android program: embedded program: main gets called by os, main calls initstuff(), falls into a while(1) loop that calls inputs(), process() and outputs() forever. The os can kill it if it has to. In the android program, the onCreate is the init, the os scheduler is the while(1) loop, and the onSensorChanged events are like the input and process functions, and the onDraw is like the output function. Sort of. Does this model make sense to anyone else? Can it be explained more clearly by another model? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Screen height?
What's the name of the function that returns the screen height minus the title bar and status bar? Thanks... I've really been looking for a while... -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Add two buttons to a graphics view?
Hi Tony. Thanks for replying. Seems like what happens is: I make the GraphicsView view that extends view, and the first thing one has to do in graphics mode is drawPaint, which clears the whole screen, including the buttons which had been drawn in the startup Textview. So Someone needs to point me to the example that shows a big square of graphics in the middle of a portrait screem with a pair of buttons on the right or left of the graphics, maybe labeled 'up' and 'dn' and out' and 'in' or similar. I'm tempted to try and draw some ascii graphics, but they always get formatted into a mishmash. = On Apr 16, 9:20 am, tony obrien tobsourcecode...@gmail.com wrote: You can (easily?) create a simple main.xml layout file that contains, say, a LINEAR LAYOUT with the buttons... Then in your programming call the SetContextView(R.layout.main) and you WILL have an R.id.BUTTON#1 to use. You may have to call the super(canvas) in the override of onDraw() to ensure that xml items get drawn in addition to whatever you're drawing in onDraw(). -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool
Wouldnt you add both sounds to the pool, and issue 2 play looping commands? Then you can adj rate and volume while they are playing. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool
Looks like you are only adding sound1 to the pool. Need to add sound2 also? You need to remember the soundid the pool gives you... you could start 'airplane sound' then start 3 more of them, and they all have diff IDs so you can adj the vol of each as they fly by, etc. On Apr 13, 5:26 pm, Jack jackzo...@gmail.com wrote: Thanks BobG. But it doesn't work. I was told that if I call mSoundManager.playSound() twice in immediate succession, then it might work, but it doesn't. Can somebody help? On Apr 13, 12:53 pm, BobG bobgard...@aol.com wrote: Try declaring soundpool for 4 more sounds than you want to play. There's some messages saying that helps?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Is there a 'volume fader'?
I'd like to have a 'volume control'... a vertical fader with a knob you can slide up and down. I think the horizontal version is a 'seekbar' right? Any way to specify a vertical seekbar? If not, whats the next step? Make a 'volume control' widget? Any links to where to read about this? Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Re: The primitive type int of R does not have a field layout
Here's what caused this error... I went to draw a rectangle, so I declared Top, Left, Right and Bottom vars to hold the Xs and Ys, but, being an old lazy fortran programmer, I called them T,L,R,and B, and soon learned that the letter R aint a good choice for a variable name. Live and learn. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Add two buttons to a graphics view?
I have a little app that reads the accelerometer and draws a vector in graphics. Seems to be working ok, but I'd like to have a pair of buttons 'up' and 'dn' underneath it to inc and dec a variable, like a time picker, but just this one number 4 to 12 (represents height in ft). I'm stumped how to add the buttons, which are usually in a textview, to this graphics canvas view, so I guess I dont understand something fundamental. Good moment for me to learn something here if you've read my mind and can tell what I'm trying to do... thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Re: Question About Audio and Sources
A search in market for 'volume control' gave a half dozen free apps. Check those out and try to add some feature? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] The primitive type int of R does not have a field layout
Thats the error on R.layout.main... so something needs to be deleted somewhere? /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.main); -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Re: external input device
How about this for a crazy idea: make a keypad that is like a dtmf keypad, with 12 keys and 12 freqs, and splice it into the usb connector on the mic input. Write an app that measures number of samps between zero crossings to determine freq/keypressed. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Android sounds
If you have a beep.wav file, make a dir in res called raw, put it there. Up near the top of the activity you have public Mediaplayer beep; then in oncreate you have beep=Mediaplayer.create(getBaseContext(),R.raw.beep); and farther down in an ontouch or onsensorchanged or some other event, you say beep.start(); That works for me, but I might be leaving out something important... -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Serial Data Transfer via Bluetooth
Thanks Ben... your message was the clue I needed... I put the backport jar file in a dir in the package, went to the package properties and added the jar under 'link external jars', and the bt chat compiled right up. Lots of details need to be right to get this stuff to work, huh? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Android sounds
I get the idea from looking at the docs that tonegenerator makes it easy to use one of the listed tones, but not so easy to just play 1khz. Didnt see any spec for starttone(freq, duration) for example I just used cooledit to generate a wav file (it has a tone generator function) and play it as a resirce. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Terminal type text output for debugging?
Log files are redirected to a file, right? Anyway to write to the screen? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: Serial Data Transfer via Bluetooth
Hi Don. I think you need 2.0 or higher to run the bluetooth chat example.. wish it wasnt so... I have a dev phone 2 (Google Ion? Does it have other names? HTC something? TI something?) with 1.6. Someone know how to use the bt backport examples? What dir do I put the jar file in? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Terminal type text output for debugging?
I notice when I use setText to output some text to a textview it defaults to the top left. What class acts like a terminal window or stdout? Would be useful for debugging I think. (Old c programmer trying to grok java) -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Audio Processing
Hit the icon labeled 'market' on the front of the phone search for audio there's a good signal generator that does any waveform 20-20k, white noise pink noise, and there;s a cool real time analyzer with 30 bands for free... those used to cost $2000 not long ago... -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Any androiders in Central Florida?
Might be nice to have someone within driving distance to collaborate with -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] App running on dev phone creates a log??
Is there a log file on the phone? Someone tell me how to look at it? Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: App running on dev phone creates a log??
Yo Da Man Mark! Hope I don't use up all my question tickets before I get into the hard ones... -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] dev phone 2, 1.6 and bluetooth?
I have a dev phone 2 (htc ion?) with os 1.6. My boss has a moto droid with 2.0 and I can compile the bluetooth chat demo app and load it into his phone and it doesnt stop; It does bring up the unexpected stop dialog on my 1.6 phone. So my question is: there must be SOME level of bt support in 1.6. Has anyone EVER done ANYTHING with bluetooth on a 1.6 phone just so I know something is possible? If it is, where can I find out what the subset of full functionality is? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Format printing of floats?
What shows: 1.23456789 What I want: 1.23 In c it would be printf(%4.2f,n); In Java its? (I dont know yet). Thanks! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Is wav frequency adjustable?
Looks like SoundPool has adjustable playback freq. Now to find an example to use it. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android developers form
I clicked this and I couldnt close the page that came up. Beware? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Class Diagram
I'll second that request. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Dev phone messes up laptop boot
Acer aspire with windows 7 wont get past the 'acer press f2 for setup' screen if the dev phone is plugged into the usb. Dont know if this is any phone or any computer, but I was real bummed that it wouldnt boot, then I unplugged the phone and it was like being reborn. Hope this helps someone? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Help with sound aplication
So your app is going to be a simple waveform synthesizer. BUT... without a velocity sensing keyboard, you cant get a piano sound... you will get an organ sound... the tone starts when you press the key, and stops when you get a key up. You can impose an Attack Sustain Decay Release envelope on each note, but every note will sound the same whether you hit the touch screen real hard, or real soft. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Tracking locations using Sensor Manager
On Feb 18, 7:50 pm, Rana Aich aichr...@gmail.com wrote: I the View class I'm extracting the azimuth, pitch and roll...but then I don't know how to use those numbers to check the camera direction. === The heading to the target is the atan2(dy,dx). The direction to turn is your heading-heading to tgt. Or some similar application of trigonometry. I Think. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: example that increments a variable on the A key?
Thanks for the clarifications. Can you show me the smallest example of pressing A A A A and having the screen show 1 2 3 4? That would be really helpfule I think. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Emulator error cause?
Good idea... here's what the emulator gave me from the cmd window C:\Android\android-sdk-windows\toolsemulator -avd wvga854 qemu: fatal: exponent 255 too big R00=0002 R01=e118 R02=fe005000 R03=2209 R04=c595afa0 R05=c5863e94 R06=c5863e5c R07=c5863e5c R08=c5863e94 R09= R10= R11=c5863e0c R12=0009 R13=c5863df8 R14=c018e924 R15=c018e6cc PSR=6013 -ZC- A svc32 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] example that increments a variable on the A key?
My app 'almost' works. Its like a clock (its an auto gauge) with a resource bitmap as the dial and the needle is another resource that reads into a canvas, and I can draw it rotated like they do with the lunar lander example. What I'd like to see is an example that uses the onKeyDown keyevent.KEYCODE_A to increment a variable, and prints that variable out using drawText. I'm confused about what is the top level class. The activity? Then I need another view to draw the dial using onDraw? Then I need an override to grab the key events, but by now the member mCount that I declared to hold the count that gets printed out is out of scope? I'm an Old C Programmer, and I cant quite grok what needs to be public and protected and final and static. So basically, if someone could show me this small example that increments a variable on the A kay and prints it out, I think it would be very helpful. Thanks in Advance. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Emulator error cause?
Hello Android experts. Trying to run a HelloWorld app in an AVD for 2.1 and WVGA854 and right when the emulator pops up, it disappears and this comes up in the comsole. I 'think' it means 'you idiot... youre disk is almost full and the swap file cant grow, so were going to kill you'. Did I guess right? Anyone else seen this? [2010-02-11 11:18:16 - Emulator] [2010-02-11 11:18:16 - Emulator]This application has requested the Runtime to terminate it in an unusual way. [2010-02-11 11:18:16 - Emulator]Please contact the application's support team for more information. [2010-02-11 11:18:16 - HelloAndroid]emulator-5554 disconnected! Cancelling 'com.example.helloandroid.helloandroid activity launch'! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: All combinations of os and res ok?
Thanx Walt. I WAS wondering about the Google APIs I assume if one writes an app using maps, locations, etc, one needs the Google APIs. I'm just trying to get Real Simple single function apps working that test drawing on a canvas, loading and scaling a bitmap, popping up a toast when I click a button. You know, the basics. I think I have found that keeping only one project open in eclipse uses less swap file (need to get a bigger disk on this laptop). Any idea how big the AVD sd card needs to be to run a hello world? 8meg? On Feb 10, 12:11 am, Walt Armour waltarm...@gmail.com wrote: An error? You'll need to post more details (like the actual error) or else no one will be able to help. Here's a shot in the dark (since some folks at work hit this today): when you create the AVD you can target (for example) Android 1.6 - API Level 4 or Google APIs (Google Inc.) - API Level 4. Often you need the latter version to get the API support or else apps won't run (and possibly won't even install, not sure). On Tue, Feb 9, 2010 at 20:19, BobG bobgard...@aol.com wrote: I created an AVD with os level 2.1 and WVGA, but I get an error when I try to run the app on an AVD created with 2.1 and HVGA. Any illegal combos? All os levels do all resolutions? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: List of classes and methods?
On Feb 8, 4:09 pm, Mark Murphy mmur...@commonsware.com wrote: The documentation is included in the SDK for offline reading. == Thanks for the response Mark, but I cant see anything about downloading documentation anywhere on the android developer sdk page. I'm a c programmer transitioning to java, and I imagine there is a list of routines for java on the pc, but I was hoping that some google dude had already tailored the list so us new guys wouldnt have to plow through all that obscure stuff. Whats the java equivalent of reading the .h files to see what routines are in a file? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] eclipse help cant find canvas?
It cant find Canvas either. I'd say that's pretty useless. How do you search for methods? classes? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: eclipse help cant find canvas?
Man this java stuff is doggin me. I ask if there is a pdf file with all the classes and methods, and some cat says 'its all in the online help' and I search for a class or a method in the online help and nuthin pops up and some other cat says 'why you lookin there?'. If it was c I'd just grep fer it. What was Bill Joy thinkin? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] List of classes and methods?
Is there a downloadable file with the android java subset classes and methods that an old c programmer could study offline? The reference search box at android developers is giving me a lot of 'not founds'. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Emulator takes too much time to show up - any solution?
Check the pagefile size in task manager. Once it starts getting bigger than the ram size everything slows way down. Try making the sd file in the AVDs a lot smaller. Like a couple meg instead of a gig. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] How to rotate a bitmap?
I have a clock in the center of an 800x480 bitmap, and I have a 60x140 clock hand/dial needle with center of rot at 30,110 in the bitmap. To place the center of rotation in the center of the bitmap, do I plave the needle bitmap using the top left coord offset 30,100 from the center, which is 240,400? Thanks so far. Im stumped. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Developers in Central Florida?
Its lonely here with no one to bounce my questions off of. Anyone within about 50 miles of Orlando? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] XY picker in emulator?
Is there a way of reading out the mouse cursor loc in the emulator? I have a WVGA screen and I'd like to pick some points from my background etc -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en