diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 6db60112..35c1700a 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -827,11 +827,15 @@ public class DroidGap extends PhonegapActivity { } /** + * @deprecated + * Add services to res/xml/plugins.xml instead. + * * Add a class that implements a service. * * @param serviceType * @param className */ + @Deprecated public void addService(String serviceType, String className) { this.pluginManager.addService(serviceType, className); } diff --git a/framework/src/com/phonegap/api/PhonegapActivity.java b/framework/src/com/phonegap/api/PhonegapActivity.java index 45a688b4..fc5f5e27 100755 --- a/framework/src/com/phonegap/api/PhonegapActivity.java +++ b/framework/src/com/phonegap/api/PhonegapActivity.java @@ -28,11 +28,15 @@ import android.content.Intent; public abstract class PhonegapActivity extends Activity { /** + * @deprecated + * Add services to res/xml/plugins.xml instead. + * * Add a class that implements a service. * * @param serviceType * @param className */ + @Deprecated abstract public void addService(String serviceType, String className); /**