private void createNotify(){
Intent resultIntent = new Intent(this, MainActivity.class);
resultIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent piShot = PendingIntent.getService(this, 0, shotIntent, PendingIntent.FLAG_CANCEL_CURRENT);
Icon icon = Icon.createWithResource(this, R.drawable.ic_camera);
Notification.Action shotAction = new Notification.Action.Builder(icon, getString(R.string.notify_title_shot), piShot).build();
NotifyUtil.notifyShot(this, resultIntent, 1, shotAction);
}
MainActivity.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:ScreenShotAnywhere
作者:
评论列表
文章目录