android 为不同联系人设置不同铃声的功能要怎么实现? 大家请指点. 谢谢先.
解决方案 »
- android usb 插拔监听
- android播放器,点击暂停,再点暂停按钮可以继续播放,要是点播放按钮从头播放了
- 一个类继承于Application,启动应用的时候,这个类是什么时候创建的呢?
- “科学上网”客户端
- android 点击菜单按钮没反应,window already focused,求解.
- ProgressDialog进度条:使用ProgressDialog.show创建对象,程序出错
- android手机拍照问题,图像反转90度
- android 中listview的圆角边框和连接
- 求帮助
- 求助:有没有谁做过android的上拉出现图片的功能
- 请教关于WebView保存视频的问题
- 新手求教,onCreate多次调用问题
ContentValues values =new ContentValues();
Uri rawContactUri =contentResolver.insert(RawContacts.CONTENT_URI, values);long rawContactId =ContentUris.parseId(rawContactUri);
ᅤᅬᄁ
String ringtoneUri = content://media/external/audio/media/60;
values.clear();
values.put(ContactsContract.Contacts.CUSTOM_RINGTONE,ringtoneUri);
contentResolver.update(rawContactUri, values, null, null);
Uri rawContactUri = Uri.parse("content://com.android.contacts/raw_contacts/1");
// String ringtoneUri = content://media/external/audio/media/60;
String ringtoneUri = "content://media/external/audio/media/1";
values.clear();
values.put(ContactsContract.Contacts.CUSTOM_RINGTONE,ringtoneUri);
this.getContentResolver().update(rawContactUri, values, null, null);