Link two apk in one apk?

I have two completed projects, one for displaying a list of books, and the other a viewing application for reading books. But since the user needs to download the application for the list of books, and after downloading it, he must download the application for viewing, and I want it to be downloaded and installed at startup. When I tried to include the viewer application in the book list application, both of them were installed, but when I made apk, then only the book list application was installed using apk. Can someone tell me what the problem is? And is there a way to bundle two apk into one? or what should i do?

+5
source share
2 answers

You can combine them in one project.

. , com.package.booklist com.package.bookreader com.package. com.package.booklist com.package.bookreader.

AndroidManifests. <activity> .. . .bookreader .booklist. , , :

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.package"
    android:versionCode="1"
    android:versionName="1" >

    <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=".booklist.BookListActivity" >
            <intent-filter>
                <category android:name="android.intent.category.LAUNCHER" >
                </category>

                <action android:name="android.intent.action.MAIN" >
                </action>
            </intent-filter>
        </activity>

        <activity android:name=".bookreader.BookReaderActivity" >
            <intent-filter>
                <category android:name="android.intent.category.LAUNCHER" >
                </category>

                <action android:name="android.intent.action.MAIN" >
                </action>
            </intent-filter>
        </activity>
    </application>

</manifest>

:

            <intent-filter>
                <category android:name="android.intent.category.LAUNCHER" >
                </category>

                <action android:name="android.intent.action.MAIN" >
                </action>
            </intent-filter>

- , .

+3

APK APK.

int and.intent.category.LAUNCHER . Launcher.

. .

+1

All Articles