Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1326 from billdawson/timob-7435

TIMOB-7435 Properly setup KS-Nook to use android services
  • Loading branch information...
commit 3fe66422725fe622fb6c8cbdcd8983ddda5ea8db 2 parents 416bb3b + 422ab77
Opie Cyrus authored
View
5 demos/KitchenSink-Nook/Resources/android/testservice.js
@@ -0,0 +1,5 @@
+/*global Ti */
+var service = Ti.Android.currentService;
+var intent = service.getIntent();
+var teststring = intent.getStringExtra('message') + ' (instance ' + service.serviceInstanceId + ')';
+Ti.App.fireEvent('test_service_fire', { message: teststring});
View
3  demos/KitchenSink-Nook/platform/android/AndroidManifest.xml
@@ -49,6 +49,9 @@
<service android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"
android:exported="false" />
+ <service
+ android:name="com.appcelerator.kitchensinknook.TestserviceService"
+ />
</application>
View
3  demos/KitchenSink-Nook/tiapp.xml
@@ -41,6 +41,9 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
+ <services>
+ <service type="interval" url="testservice.js"/>
+ </services>
</android>
<modules/>
</ti:app>
Please sign in to comment.
Something went wrong with that request. Please try again.