purplecabbage/phonegap-plugins — Issue #38: About Share plugin for Android Phonegap 1.0
Author: azureshin
Created: 2011-10-28 03:28:32+00:00
State: open

1. copy Share.java to com\schaul\plugins\share

2. edit plugins.xml

3. edit main app.java, import com.schaul.plugins.share.Share;

4. edit index.html,but it can’t work, ex:

$(“button”).click(function(){

window.plugins.share.show({

subject: ‘I like turtles’,

text: ‘http://www.mndaily.com'},

function() {alert(“OK”)}, // Success function

function() {alert(‘Share failed’)} // Failure function

);

})

the Logcat log show “TypeError: Result of expression ‘window.plugins.share’ [undefined] is not an object”

so what can i do ?