多媒体程式开发.pptVIP

  • 11
  • 0
  • 约 45页
  • 2017-09-30 发布于北京
  • 举报
此程式主要為開啟系統的鈴聲設定,使用下列此行程式碼:Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER),接著因開啟Intent的方法是startActivityForResult(),因此當使用者選完鈴聲後,會返回此Activity,因此可以呼叫系統的方法RingtoneManager.setActualDefaultRingtoneUri()來指定鈴聲。 * * AudioTrack 範例圖: AudioTrack ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textView android:layout_width=fill_parent android:layout_height=wrap_content / Butt

文档评论(0)

1亿VIP精品文档

相关文档