Deprecate addService().

This commit is contained in:
Bryce Curtis 2011-11-09 23:12:53 -06:00
parent 0caca9ae55
commit 827af8a920
2 changed files with 8 additions and 0 deletions

View File

@ -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. * Add a class that implements a service.
* *
* @param serviceType * @param serviceType
* @param className * @param className
*/ */
@Deprecated
public void addService(String serviceType, String className) { public void addService(String serviceType, String className) {
this.pluginManager.addService(serviceType, className); this.pluginManager.addService(serviceType, className);
} }

View File

@ -28,11 +28,15 @@ import android.content.Intent;
public abstract class PhonegapActivity extends Activity { public abstract class PhonegapActivity extends Activity {
/** /**
* @deprecated
* Add services to res/xml/plugins.xml instead.
*
* Add a class that implements a service. * Add a class that implements a service.
* *
* @param serviceType * @param serviceType
* @param className * @param className
*/ */
@Deprecated
abstract public void addService(String serviceType, String className); abstract public void addService(String serviceType, String className);
/** /**