diff options
author | Tor Norbye <tnorbye@google.com> | 2012-06-21 18:20:13 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-06-21 18:20:13 -0700 |
commit | a85ff38b62bbeb35ace582729a0cf07088d3905a (patch) | |
tree | db1a865d1844684f39c349c808e7fc9f5d880381 /templates/other/Service/root/src/app_package | |
parent | db2bdb124c713e8d56750e9c6406240023f2cc34 (diff) | |
download | sdk-a85ff38b62bbeb35ace582729a0cf07088d3905a.zip sdk-a85ff38b62bbeb35ace582729a0cf07088d3905a.tar.gz sdk-a85ff38b62bbeb35ace582729a0cf07088d3905a.tar.bz2 |
More template tweaks
Generalize the Add Activity wizard into an Add Android Object
wizard and move Custom View in there, such that it's no longer
a top level wizard. Also place service, content provider and
broadcast receivers there.
Fix indentation in simple activity template, and fix template
wizard such that it doesn't reset all the values when you
leave the page (to preview page or previous selector page)
and come back - unless the template has changed.
Change-Id: Idc1e7f76255d8f0010ccc09fbfc79915cc58690d
Diffstat (limited to 'templates/other/Service/root/src/app_package')
-rw-r--r-- | templates/other/Service/root/src/app_package/Service.java.ftl | 16 |
1 files changed, 16 insertions, 0 deletions
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"); + } +} |