摘要:
Activity中添加代码protected void onCreate(Bundle savedInstanceState) {/* 下面是判断当前手机是否支持语音识别功能 */ PackageManager pm = mapIndex.curr.getPackageManager(); List list = pm.queryIntentActivities(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); if(list.size()==0) {... 阅读全文
摘要:
public static void showNotification() { NotificationManager nm = (NotificationManager) DownLoadActivity.mContext .getSystemService(NOTIFICATION_SERVICE); Notification notification = new Notification(R.drawable.lx_download, "xxxx", System.currentTimeMillis()); Intent intent = new Intent(map 阅读全文