User Tools

Site Tools


intents:alarm

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
intents:alarm [2021/04/21 11:35]
al4he6 Added <code javascript>
intents:alarm [2021/04/21 12:28]
al4he6
Line 22: Line 22:
          
     app.SendIntent(null, null, "android.intent.action.SET_ALARM", null, null, null, JSON.stringify(extras))     app.SendIntent(null, null, "android.intent.action.SET_ALARM", null, null, null, JSON.stringify(extras))
-} 
- 
-function cal_si_insert() { 
-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