aboutsummaryrefslogtreecommitdiffstats
path: root/templates/other/Service/root
diff options
context:
space:
mode:
Diffstat (limited to 'templates/other/Service/root')
-rw-r--r--templates/other/Service/root/AndroidManifest.xml.ftl10
-rw-r--r--templates/other/Service/root/src/app_package/Service.java.ftl16
2 files changed, 26 insertions, 0 deletions
diff --git a/templates/other/Service/root/AndroidManifest.xml.ftl b/templates/other/Service/root/AndroidManifest.xml.ftl
new file mode 100644
index 0000000..14b0bce
--- /dev/null
+++ b/templates/other/Service/root/AndroidManifest.xml.ftl
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <application>
+ <service android:name=".${className}"
+ android:exported="${isExported?string}"
+ android:enabled="${isEnabled?string}" >
+ </service>
+ </application>
+
+</manifest>
diff --git a/templates/other/Service/root/src/app_package/Service.java.ftl b/templates/other/Service/root/src/app_package/Service.java.ftl
new file mode 100644
index 0000000..571d2b8
--- /dev/null
+++ b/templates/other/Service/root/src/app_package/Service.java.ftl
@@ -0,0 +1,16 @@
+package ${packageName};
+
+import android.app.Service;
+import android.content.Intent;
+import android.os.IBinder;
+
+public class ${className} extends Service {
+ public ${className}() {
+ }
+
+ @Override
+ public IBinder onBind(Intent intent) {
+ // TODO: Return the communication channel to the service.
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+}