Add activity to manifest by ant -


i have 2 android projects, 1 of them can androidlibrary project. in case should add activity manifest file. must ant build script. example:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="ru.yes.app1"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="17" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name="ru.yes.app1.activity1"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>             <intent-filter>                 <action android:name="ru.yes.app1.activity1" />                 <category android:name="android.intent.category.default" />             </intent-filter>         </activity>     </application>  </manifest> 

and comes to:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="ru.yes.app1"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="17" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name="ru.yes.app1.activity1"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>             <intent-filter>                 <action android:name="ru.yes.app1.activity1" />                 <category android:name="android.intent.category.default" />             </intent-filter>         </activity>         <activity             android:name="ru.yes.app2.activity2"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="ru.yes.app1.activity2" />                 <category android:name="android.intent.category.default" />             </intent-filter>         </activity>     </application>  </manifest> 

how can using ant build.xml.

if 1 find same problem, visit http://www.stevenmarkford.com/j2me-polish-adding-android-activity-to-manifest-xml/


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -