Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49166

Launch view using different app launchers

$
0
0

@gently1 wrote:

I have designed an app using ionic 1.x/cordova for android. I want multiple launchers that show different views of the ionic app. I have created launchers using AndroidManifest.xml and creating two activities

<activity android:label="Main" android:launchMode="singleTask" android:name="MainActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

<activity android:label="Books" android:launchMode="singleTask" android:name=".book" android:taskAffinity=".book">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

I have two icons which is what I want. Problem is, how to I get the second icon to launch the specific view I want in a separate instance of the same app? Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>