1

I am trying to build an Android Application which contains more than one functionality and I want these functionalities to be accesses with one click from home menu in Android. ex. First (shortcut-icon) sends predefined SMS on user click. Second icon sends predefined email . Third and forth etc ... What I know is: it can be achieved through Widgets. But I need it from icons not only widgets is there a way to avoid making multi apps.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Yamen Nassif
  • 2,416
  • 2
  • 24
  • 48

1 Answers1

3

Create multiple Activities with unique functionality each. Then list them all in manifest like

<activity
    android:name="your.package.SmsActivity"
    android:label="Send SMS">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

and so on for each app's feature. You should end up with a single application having multiple "entry points".

Andrew
  • 490
  • 3
  • 18