LoginSignup
1
1

More than 5 years have passed since last update.

tiapp.xml <activities>は<android>直下に記載する

Posted at

公式ドキュメント(*1)には「<android:application>」タグ配下に記載する説明となっているが、その場合直接AndroidManifest.xmlに転写される。これは素のAndroidManifest.xml用の書き方となる。
tiapp.xmlに記載できるJavascriptを使用したアクティビティの作成の場合、<android>タグの下に記載する必要がある。

tiapp.xml
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <activities>
            <activity url="MainWindow.js"
                android:label="@string/appname"
                android:name=".MyAppMainActivity"
                android:screenOrientation="portrait">
            </activity>
        </activities>
        <tool-api-level>10</tool-api-level>
        <manifest android:versionCode="2" android:versionName="1.1.0">
            <application android:label="@string/appname"
                android:debuggable="true">
            </application>
            <supports-screens
                android:smallScreens="false"
                android:normalScreens="true"
                android:largeScreens="true"
                android:xlargeScreens="false"
                android:anyDensity="true"/>
        </manifest>
    </android>

(*1) http://docs.appcelerator.com/titanium/2.1/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-Applicationproperties

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1