[android-developers] Problem streaming radio on Android 2.2 and up

2011-06-20 Thread Chandler Bennett
I am currently designing an android application that incorporates radio streaming. The app works as it should with devices below Android 2.2, but works slowly if the device is 2.2 or above. I am using the MediaPlayer object, and I am calling the 'setDataSource(mylink.com/ radio.mp3)' method as well

[android-developers] Re: Rotate an OptionMenu and a whole layout

2010-04-24 Thread Chandler
Hi Paolo, try adding this to the manifest android:screenOrientation="portrait". This is a setting for your whole app. Regards, Chandler On 23 apr., 22:05, Paolo wrote: > Hi Chandlar!I have the same code  but i've used it to solve another > problem, not the thing

[android-developers] Re: app crashes only on device

2010-04-23 Thread Chandler
emada emade, Did you set up your devices and manifest properly? If you're unsure look here: http://developer.android.com/guide/developing/device.html Chances are that you have a memory leak right at the start, that's what happened to me when testing on actual devices. Do you initialize any large

[android-developers] Re: Rotate an OptionMenu and a whole layout

2010-04-23 Thread Chandler
Paolo, I think I understand what your problem is. I had similar problems and I solved it with this code. It's probably bad programming, so please use it only as a temporary solution, just to see if this where your problem originates. Note the switching of width and height. public void surfaceChan