Programming/Android

Android Service 등록

생각하는로뎅 2013. 3. 16. 18:54
반응형


AndroidManifest.xml

<service android:name=".MyService" android:enabled="true">
2.<intent-filter>
3.<action android:name="com.test.SERVICETEST">
4.</action></intent-filter>
5.</service>


code
01.startService(new Intent(this, MyService.class));stopService(new Intent(this, MyService.class));

반응형