Skip to content

Commit

Permalink
Merge pull request #1326 from billdawson/timob-7435
Browse files Browse the repository at this point in the history
TIMOB-7435 Properly setup KS-Nook to use android services
  • Loading branch information
Opie Cyrus committed Feb 3, 2012
2 parents 416bb3b + 422ab77 commit 3fe6642
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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});
3 changes: 3 additions & 0 deletions demos/KitchenSink-Nook/platform/android/AndroidManifest.xml
Expand Up @@ -49,6 +49,9 @@

<service android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"
android:exported="false" />
<service
android:name="com.appcelerator.kitchensinknook.TestserviceService"
/>


</application>
Expand Down
3 changes: 3 additions & 0 deletions demos/KitchenSink-Nook/tiapp.xml
Expand Up @@ -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>

0 comments on commit 3fe6642

Please sign in to comment.