[android-developers] Re: Weird ringtone bug...any solutions??

2009-07-13 Thread Alslayer
tydiz...@gmail.com do you have any sample code I can look at? --~--~-~--~~~---~--~~ 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 un

[android-developers] Re: Can only hear sound when playing video

2009-07-10 Thread Alslayer
That did it. Man that was difficult. Thank you so much for your help Marco. I still have a few problems. 1. the sound won't stop when I hit the back button 2. there are no controls to stop and start the video - guess I gotta make them 3. video is stretched out Here is the final code if anyone

[android-developers] Re: Can only hear sound when playing video

2009-07-10 Thread Alslayer
I noticed with all the copying and deleting code I forgot to add setContentView(R.layout.main);. So now I don't get the "The application stopped unexpectedly." error anymore. Now the app starts up with a black screen then goes back the home screen. Here is the whole code and the xml. import ja

[android-developers] Re: Can only hear sound when playing video

2009-07-10 Thread Alslayer
> I'm pretty sure there was more than just "NullPointerException" in the > log. Where exactly did this exception occur? Here is the full error. 07-10 08:21:04.030: ERROR/AndroidRuntime(11604): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.mycorp.myapp/com.mycorp.myapp.m

[android-developers] Re: Can only hear sound when playing video

2009-07-09 Thread Alslayer
I added the MediaPlayer.setDisplay() and I added a SurfaceView to my ui. Now I get "The application stopped unexpectedly." I looked in the debug log and the error says "NullPointerException". Any help would be great. Here is the code. AssetFileDescriptor afd = getResources().openRawRe

[android-developers] Re: Can only hear sound when playing video

2009-07-09 Thread Alslayer
> My bad, that method does not exist. You'll need to get an > AssetFileDescriptor for your resource, and then use > setDataSource(FileDescriptor, long, long) with the FileDescriptor, offset > and length from that AssetFileDescriptor. > > I was wondering. I had never heard that before, and I did r