templates/other/Service/root/src/app_package/Service.java.ftl
raw| 1 | package ${packageName}; |
| 2 | |
| 3 | import android.app.Service; |
| 4 | import android.content.Intent; |
| 5 | import android.os.IBinder; |
| 6 | |
| 7 | public class ${className} extends Service { |
| 8 | public ${className}() { |
| 9 | } |
| 10 | |
| 11 | @Override |
| 12 | public IBinder onBind(Intent intent) { |
| 13 | // TODO: Return the communication channel to the service. |
| 14 | throw new UnsupportedOperationException("Not yet implemented"); |
| 15 | } |
| 16 | } |