Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2568] Android: Service "type" attribute in tiapp.xml accidentally making it into AndroidManifest.xml

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M01
ComponentsAndroid
Labelsandroid, defect, release-1.6.0
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:23:02.000+0000
Updated2011-04-17T01:59:28.000+0000

Description

You define an Android Service in tiapp.xml with a block such as this:

<android xmlns:android="http://schemas.android.com/apk/res/android">
    <services>
        <service url="myservice.js" type="interval"/>
    </services>
</android>

When build the app, the type attribute above is accidentally making it into the generated AndroidManifest.xml as service_type. It's confusing and ugly but doesn't actually hurt anything. It looks like this:

<service 
    android:name="com.billdawson.myservice.MyserviceService"
    service_type="interval"
/>

So that service_type attribute should not be there.

Comments

  1. Bill Dawson 2011-04-15

    To test this, just make sure that service_type is not in build/android/AndroidManifest.xml when you launch the app (after installing the fixed SDK).

  2. Thomas Huelbert 2011-04-15

    using [INFO] Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d) I see only:

    <service
    android:name="com.appcelerator.simpleStub.MyserviceService"
    />

JSON Source