diff --git a/Android/StatusBarNotification/README.md b/Android/StatusBarNotification/README.md index 675568a..c15a31c 100644 --- a/Android/StatusBarNotification/README.md +++ b/Android/StatusBarNotification/README.md @@ -24,6 +24,14 @@ Using this plugin requires [Android PhoneGap](http://github.com/phonegap/phonega <plugin name="StatusBarNotification" value="com.phonegap.plugins.statusBarNotification.StatusBarNotification"/> +5. You will need to add a nofication.png file to you applications res/drawable-ldpi, res/drawable-mdpi & res/drawable-hdpi directories. + +6. You will need to add an import line like: + + import com.my.app.R; + +Where com.my.app is your applications package name in order for this to compile. + ## Using the plugin ## The plugin creates the object `window.plugins.statusBarNotification`. To use, call one of the following, available methods: diff --git a/Android/StatusBarNotification/StatusBarNotification.java b/Android/StatusBarNotification/StatusBarNotification.java index 68f8bc3..d3ba5d2 100644 --- a/Android/StatusBarNotification/StatusBarNotification.java +++ b/Android/StatusBarNotification/StatusBarNotification.java @@ -25,7 +25,7 @@ * */ -package com.phonegap.plugins.statusBarNotification.StatusBarNotification; +package com.phonegap.plugins.statusBarNotification; import org.json.JSONArray; import org.json.JSONException; @@ -41,7 +41,7 @@ import com.phonegap.api.Plugin; import com.phonegap.api.PluginResult; import com.phonegap.api.PluginResult.Status; -public class StatusBarNotificationPlugin extends Plugin { +public class StatusBarNotification extends Plugin { // Action to execute public static final String ACTION="notify"; diff --git a/Android/StatusBarNotification/statusbarnotification.js b/Android/StatusBarNotification/statusbarnotification.js index 429d92e..b376870 100644 --- a/Android/StatusBarNotification/statusbarnotification.js +++ b/Android/StatusBarNotification/statusbarnotification.js @@ -37,7 +37,7 @@ var NotificationMessenger = function() { * @param body Body of the notification */ NotificationMessenger.prototype.notify = function(title, body) { - return PhoneGap.exec(null, null, 'StatusBarNotificationPlugin', 'notify', [title, body]); + return PhoneGap.exec(null, null, 'StatusBarNotification', 'notify', [title, body]); }; /** @@ -50,4 +50,4 @@ PhoneGap.addConstructor(function() { // @deprecated: No longer needed in PhoneGap 1.0. Uncomment the addService code for earlier // PhoneGap releases. // PluginManager.addService("StatusBarNotificationPlugin","com.trial.phonegap.plugin.directorylisting.StatusBarNotificationPlugin"); -}); \ No newline at end of file +});