implement two project in one (Android)



i have two two different projects: 1st Wallpaper App and 2nd: Crop Wallpaper.


i am trying to combine both into one so i use 2nd: Crop Wallpaper function in 1st: Wallpaper App.


so i added src andd res from 2nd Crop Wallpaper to 1st: Wallpaper App successfully but i am having problem with manifest.xml i am not understanding how do i combine manifest.xml


please help me to combine these two different manivest.xml


1st Wallpaper App manifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://ift.tt/nIICcg"
package="info.androidhive.awesomewallpapers"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />

<application
android:name="info.androidhive.awesomewallpapers.app.AppController"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/FreeWallTheme" >
<activity
android:name="info.androidhive.awesomewallpapers.SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="info.androidhive.awesomewallpapers.MainActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="info.androidhive.awesomewallpapers.FullScreenViewActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="info.androidhive.awesomewallpapers.SettingsActivity"
android:label="@string/action_settings"
android:screenOrientation="portrait" >
</activity>
</application>

</manifest>


2nd: Crop Wallpaper manifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://ift.tt/nIICcg"
package="jp.juggler.CropWallpaper"
android:versionCode="34"
android:versionName="1.34">

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="14"
/>

<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"
/>

<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>

<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:name="jp.juggler.CropWallpaper.MyApp"
>

<activity
android:name=".FolderListScreen"
android:label="@string/app_name"
android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|fontScale|screenSize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>

<activity
android:name=".ImageListScreen"
android:label="@string/app_name"
android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|fontScale|screenSize"
>
</activity>

<activity
android:name=".MyPrefScreen"
android:label="@string/app_name"
android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|fontScale"
>
</activity>

<!-- CropWallpaper だけは縦横が変わったときにインスタンスを再構築させる -->
<activity android:name=".CropWallpaper"
android:label="@string/app_name"
android:process=":CropWallpaper"
android:configChanges="keyboard|keyboardHidden|fontScale"
>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>

</application>

</manifest>


Note: i want to add 2nd Crop Wallpaper manifest.xml in 1st: Wallpaper App manifest.xml


i want to get two different apk from one installetion


No comments:

Post a Comment