User Tools

Site Tools


intents:alarm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
intents:alarm [2021/04/21 11:09]
al4he6 created
intents:alarm [2021/04/21 12:28]
al4he6
Line 3: Line 3:
 (skipUI doesn't seem to work, so it always shows the user the Alarm in the clock app). (skipUI doesn't seem to work, so it always shows the user the Alarm in the clock app).
  
 +<code javascript>
  
 function  butalarm_OnTouch() { function  butalarm_OnTouch() {
Line 23: Line 24:
 } }
  
-function cal_si_insert() { +</code>
-var today = new Date().getTime(); +
-var packageName = null; +
-var className = null; +
-var action = "android.intent.action.INSERT"; +
- +
-var category = null; +
-var uri = "android.intent.Events.CONTENT_URI"; +
-var type = "vnd.android.cursor.item/event"; +
- +
-var extras = [ +
-{name:"description", type:"string", value:"DS SendIntent Description"}, +
-{name:"title", type:"string", value: "DS SendIntent Title"}, +
-{name:"beginTime", type:"long", value: today}, +
-{name:"eventLocation", type:"string", value: "DS SendIntent Address"}, +
-{name:"endTime", type:"long", value: today + 3600000}, +
-+
- +
-extras = JSON.stringify( extras ); +
-app.SendIntent( packageName, className, action, category, uri, type, extras ); +
-}+
  
  
  
intents/alarm.txt · Last modified: 2021/04/21 12:28 by al4he6