Here's a example: Create an alarm clock and set its time as 3:30, alarm name is m7yang.
$adb shell am start -a android.intent.action.SET_ALARM --ei "android.intent.extra.alarm.HOUR" 3 --ei "android.intent.extra.alarm.MINUTES" 30 --es "android.intent.extra.alarm.MESSAGE" m7yang |
If don’t want the UI popup, add parameter marked as red below.
$adb shell am start -a android.intent.action.SET_ALARM --ei "android.intent.extra.alarm.HOUR" 3 --ei "android.intent.extra.alarm.MINUTES" 30 --es "android.intent.extra.alarm.MESSAGE" m7yang --ez "android.intent.extra.alarm.SKIP_UI" true |
No comments:
Post a Comment