seskindell Active Member Licensed User Longtime User Oct 19, 2011 #1 Could somebody please help me figure out how I would send the following intent via p.Shell( ): org.metawatch.manager.NOTIFICATION "array" - int[96*96] or "buffer" - byte[96*96/8] // encoded buffer -- "vibrate_on" - int // ms "vibrate_off" - int // ms "vibrate_cycles" - int p.Shell("am broadcast -a org.metawatch.manager.NOTIFICATION Thank you!!!
Could somebody please help me figure out how I would send the following intent via p.Shell( ): org.metawatch.manager.NOTIFICATION "array" - int[96*96] or "buffer" - byte[96*96/8] // encoded buffer -- "vibrate_on" - int // ms "vibrate_off" - int // ms "vibrate_cycles" - int p.Shell("am broadcast -a org.metawatch.manager.NOTIFICATION Thank you!!!
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2011 #2 I'm not sure that is the structure of this intent. However you can use Phone.SendBroadcast to send it instead of shell. Upvote 0
I'm not sure that is the structure of this intent. However you can use Phone.SendBroadcast to send it instead of shell.
seskindell Active Member Licensed User Longtime User Oct 20, 2011 #3 Something like this? Dim i As Intent Dim datahere(9216) as int i.Initialize("org.metawatch.manager.NOTIFICATION", "") i.PutExtra("vibrate_on",10) i.PutExtra("array",datahere) Dim p As Phone p.SendBroadcastIntent(i) Upvote 0
Something like this? Dim i As Intent Dim datahere(9216) as int i.Initialize("org.metawatch.manager.NOTIFICATION", "") i.PutExtra("vibrate_on",10) i.PutExtra("array",datahere) Dim p As Phone p.SendBroadcastIntent(i)
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2011 #4 Yes. Search for a java example for your intent. It should be easy to convert it to Basic4android. Upvote 0