Introduce PhonegapActivity class to separate plugin development from base Phonegap.

This commit is contained in:
Bryce Curtis
2010-11-06 02:10:51 +08:00
parent 36064c564e
commit b66535a17d
15 changed files with 80 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ import java.util.TimeZone;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.phonegap.api.PhonegapActivity;
import com.phonegap.api.Plugin;
import com.phonegap.api.PluginResult;
import android.content.Context;
@@ -35,7 +36,7 @@ public class Device extends Plugin {
*
* @param ctx The context of the main Activity.
*/
public void setContext(DroidGap ctx) {
public void setContext(PhonegapActivity ctx) {
super.setContext(ctx);
Device.uuid = getUuid();
}