Luna-send

From WebOS101

Revision as of 18:35, 21 November 2011 by Eblade (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

luna-send is a command-line tool accessible through the shell on the emulator and the device. luna-send can be used to perform any serviceRequest call that you could issue from an app.

Using luna-send

Here's an example of launching your app with additional parameters using luna-send:

try {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'launch',
parameters: {
id: 'com.rustyapps.gpxmapper',
params: {
openFile: fname
}
},
onFailure: this.viewFailed.bind(this), /* app missing */
onSuccess: function(){}
});
}
catch (e) {
 
}

can become just this (obviously, from the command line):

# luna-send -n 1 palm://com.palm.applicationManager/launch '{"id": "com.rustyapps.gpxmapper", "params": {"openFile": "/media/internal/someFile"}}'

From: Palm Developer Forum: Using Luna Send

Personal tools