Android application with two application buttons -
I'm new to Android development. Currently, I'm building an Android app that has two launching icons. The first icon to launch the application's configuration portion. The second icon will be executed on the basis of the configuration.
The configuration will not be frequent activity.
But launching another icon would be too much to get results based on configuration. / P>
As I can see that most apps have a single launch icon Is there a way in Android that can fit my needs?
Thank you.
This can work.
In your manifest file (AndroidManifest.xml):
& lt; Application Android: Hardware Expected = "True" Android: Label = "@ string / app_name" Android: Icon = "@ drawable / ic_launcher" & gt; & Lt; Activity Android: name = "MainActivity" Android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = "SettingsActivity" android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; / Application & gt;
Comments
Post a Comment