Why I can not play the ringtone in the real device?

by feeling3_4 » Thu, 03 Sep 2009 21:03:35 GMT

Sponsored Links
 Hi, all
  in the emulator 1.5, my app can get and play the contacts ringtone.
but after the app installed in the real G2, the app can not play the
contacts ringtone, and it does not throw any error. in the G2, I have
already the contacts ringtone.

  Does anybody encounter this before? thanks in advance!!

Why I can not play the ringtone in the real device?

by Chris Stratton » Thu, 03 Sep 2009 21:18:20 GMT


My guess would be a permissions issue, either in the android framework
sense or in the linux filesystem sense.

Instrument your code with log messages checking the validity of each
assumption that if untrue could make it fail.


Sponsored Links

Why I can not play the ringtone in the real device?

by feeling3_4 » Fri, 04 Sep 2009 09:32:01 GMT

 Thank you, chris

the update is that if the app installed in a G1, it can play the
contact ringtone, but if the app installed in a G2, it cann't.

so it may not be a permission issue....


Why I can not play the ringtone in the real device?

by Gulfam » Fri, 04 Sep 2009 14:35:09 GMT

 Hi feeling,

 Can you please explain why we cannot play contact ringtone  on G2.



Why I can not play the ringtone in the real device?

by feeling3_4 » Sun, 06 Sep 2009 11:41:25 GMT

 oh, my bad...

the G2 phone from my friend is a developer phone, this phone was given
at Google I/O conference,  this phone can paly the contact ringtone.
but another G2 phone from HTC does not have this issue.

thank you guys...


Other Threads

1. handle Camera preview data without a SurfaceView


I want to receive the data from the preview of the Camera, but without
having to set a SurfaceView with a SurfaceHolder in the view of my

I want to do something like this:

Camera cam = Camera.open();
cam.setPreviewCallback(new MyPreviewCallback());

This will not work because I need to call setPreviewDisplay
(SurfaceHoler) before I start the preview. I can get a SurfaceHolder
from a SurfaceView, but I don't want a SurfaceView, because I don't
need one. I just want to handle the preview data by myself. Any idees
on how to deal with this?

Thanks in advance!


2. opencore and alsa

In order to integrate alsa , I copied former platform bionic/libc (from 
android.bak) to android (have repo synced), and made a few change. But after  I 
ported alsa, I compiled  mydroid, it shows:

external/opencore/oscl/oscl/osclio/src/oscl_file_native.h:141: error: field 
'sigbushandler' has incomplete typ
anyone anyhelp? I can successfully compiled opencore before I repo synced, but 
no sound. Now I repo synced the mydroid. First , it shows I lack sys/shm.h , 
inorder to solve this problem , I copied some files from android.bak and now , 
it seems opencore  with problems with alsa. 

unsubscribe: android-porting+unsubscr...@googlegroups.com

3. Emulator crashing

4. Why was bionic/libc/include/sys/shm.h removed?

5. TERRIBLE BUG: aapt crashes on Windows

6. voice dialing via bluetooth headset

7. Data Picker Example