[android-beginners] Re: How to get resource path?

2009-10-10 Thread Kevin Grant
mediaplayer mp = new mediaplayer(); mp.getResources().openRawResources(myfilename); mp.start(); mp.stop(); On Oct 9, 7:08 pm, abhi rkabhi1...@gmail.com wrote: Thank you, Balwinder. But I just have a string for the name of the song and so, its not possible to get the ID for it using: . Please

[android-beginners] For a project demonstration, any way to clone device screen on a monitor?

2009-09-15 Thread Kevin Grant
Using android / G1 as a platform in a game development class I'm taking. We need to be able to do project presentations, and was wondering if there was any way to clone the device screen onto a monitor with the USB cable somehow. I would just load the game into the emulator and run it from

[android-beginners] Re: Basic java threading problems, code inside

2009-07-22 Thread Kevin Grant
Try to remove synchronized from stopThread() and startThread() this worked, thanks! On Jul 20, 7:52 pm, vladimir kroz vladimir.k...@gmail.com wrote: Try to remove synchronized from stopThread() and startThread() On Jul 17, 6:29 pm, Kevin Grant kevingra...@gmail.com wrote: I understand

[android-beginners] Basic java threading problems, code inside

2009-07-20 Thread Kevin Grant
I understand the concept of threads, and it almost seems like I understand how to implement them. This code executes properly until I press the back button (to close), and then gives a This application has stopped unexpectedly. Please try again. Well duh, I closed it! Heres the code Im using: