- Androidプログラミング質問スレ revision50 [転載禁止]©2ch.net
699 :デフォルトの名無しさん[sage]:2016/02/03(水) 23:47:07.75 ID:UwUpuVzA - コードが途切れました。。。続き↓
Uri uri = Uri.parse( "dir path" ); Intent i = new Intent(Intent.ACTION_GET_CONTENT, uri); i.setDataAndType(uri, "text/csv"); PendingIntent intent = PendingIntent.getActivity(context, 0, i, 0); mNotificationBuilder.setContentTitle( title ).setContentText( text ).setContentIntent( intent ).setTicker( ticker ); nt = mNotificationBuilder.build(); nt.flags = Notification.FLAG_AUTO_CANCEL; mNotifyManager.notify(mNotifyId, nt);
|