summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2010-10-22 18:18:27 -0700
committerNick Pelly <npelly@google.com>2010-10-22 18:18:27 -0700
commit2f8ac1e6cdeb32569bc6477d53a2d0d5608758b1 (patch)
treea933513f0e1dc01536d32fbdba1f28d0df20211e /AndroidManifest.xml
parentf348bf5b21c5c39d7b3627327db1e61007d07539 (diff)
downloadpackages_apps_nfc-2f8ac1e6cdeb32569bc6477d53a2d0d5608758b1.zip
packages_apps_nfc-2f8ac1e6cdeb32569bc6477d53a2d0d5608758b1.tar.gz
packages_apps_nfc-2f8ac1e6cdeb32569bc6477d53a2d0d5608758b1.tar.bz2
Start NFC service at Application load time.
- starting at app onCreate() is about 6 seconds before BOOT_COMPLETE - enable hardware immediately, but do not send any intents until BOOT_COMPLETE (using mBootComplete to guard). - add mutex's around some fields that needed it The fields that are still not thread-safe were non-trivial to fix. Change-Id: Id1c2bf535610ac594a33d84fe9a32d01d698a321 Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'AndroidManifest.xml')
-rwxr-xr-xAndroidManifest.xml14
1 files changed, 4 insertions, 10 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 6a817a7..860ded6 100755
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -8,15 +8,9 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
- <application android:icon="@drawable/icon"
- android:label="@string/app_name"
- android:persistent="true" >
- <service android:name=".NfcService" >
- </service>
- <receiver android:name=".NfcReceiver" >
- <intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED" />
- </intent-filter>
- </receiver>
+ <application android:name=".NfcService"
+ android:icon="@drawable/icon"
+ android:label="@string/app_name"
+ android:persistent="true" >
</application>
</manifest>