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. Starting an Activity by sending an Intent with Extra Data


I have a newbie question which is puzzling me regarding using Intents
to start a new Activity but passing some data with the Intent for the
new Activity to use.

My app has  (say)  MainActivity from which I want to launch a second
activity, SecondActivity, within the same app, whilst I pass an
integer parameter to SecondActivity.

In MainActivity I want to use an explicit component with my Intent
like this,

MainActivity ---------------------------------------- FRAGMENT

int rowId ;
rowId = <some-value> ; // want to start SecondActivity and pass this
value to it.

Intent i = new Intent( this, SecondActivity.class );
// Now add rowId as Extra Data
i.putExtra("com.foo.bar.android.app.rowid", rowId);
// start the Activity

MainActivity ---------------------------------------- FRAGMENT

Now my problem is : how do I receive the Intent when SecondActivity
gets started and recover
the value of the integer parameter ? Which member function of

class SecondActivity extends Activity {


will receive the Intent ? SecondActivity::onCreate() ?
Or do I need to register a BroadcastReceiver with SecondActivity whose
onReceive() method would
pick up the Intent ?
What is the recommended way of doing this within the Android
Framework ?

Thanks for any help


2. IM, calendar Apps not launching


On my emulator IM, calendar apps (that comes as a part of android open
source platfrom) are not launching at all.

Also there is NO Maps application visible in Menu.

The logcat after launching IM is :-

I/ActivityManager(   46): Starting activity: Intent {
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={com.android.providers.im/com.android.providers.im.LandingPage} }
D/dalvikvm(   81): GC freed 9065 objects / 822568 bytes in 216ms
E/IM      (   81): Ignore bad IM frontdoor plugin:
ResolveInfo{437dc0a0 com.android.im.app.FrontDoorPlugin p=0 o=0
m=0x108000}. No providers found
E/IM      (   81): [onCreate] load plugin failed, no plugin found!
V/ActivityThread(   81): Resuming ActivityRecord{436b8bb8
{com.android.launcher/com.android.launcher.Launcher}} with

Please help me with some pointers.

Thanks & Regards


3. how to change the background color of the layout set in the main. xml file ,at runtime

4. Can't seem to get something as simple as a ListView to work

5. Use Widgets (Clock Search Etc...) on Custom Home

6. Determine scroll status of WebView?

7. Question about Loading Drivers on Android OS