Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created October 8, 2010 21:21
Show Gist options
  • Save brianleroux/617582 to your computer and use it in GitHub Desktop.
Save brianleroux/617582 to your computer and use it in GitHub Desktop.
public class HelloWorld extends Plugin {
public PluginResult execute(String action, JSONArray args, String callbackId) {
if (action.equals("sayHello")) {
return new PluginResult(PluginResult.Status.OK, "HELLO FROM NATIVE CODES!");
}
else {
return new PluginResult(PluginResult.Status.INVALID_ACTION);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment