1

Is it possible to launch an option like which application you want to open on contact icon is clicked in Android? So when I clicked on the Android phone icon, then it should ask to whether you want to launch Android default app or my application.

Basically I have developed call log module of Android application with customization so I want to give user to select any option at click of Android phone icon.

So is it possible?

3 Answers 3

1

It is possible, in fact it happens naturally when you have more than one application installed for a desired action. Intent filters would help you.

1
  • then how can i achieve this? can you give me any example regarding this? Aug 28, 2012 at 7:07
1

it is possible. i try for Dail icon put this code in your androidmenifest file

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

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

when clicked on call icon then open option complete action using list my application is in list.

i think also action tag available for contact icon.

1
  • if anyone find for Contact Icon then reply . Nov 27, 2013 at 5:33
0

No, it's not possible. When you click an icon in the launcher it simply launches the clicked app. You could instead ask the user which app to use in certain situations like when trying to call someone. I'm not very sure, but you might be able to ask the user which log to use when clicking on a missed call notification.

2
  • 1
    ok so for example if i want to ask this at the time of call then what I have to do with the code? Aug 27, 2012 at 13:19
  • 1
    I don't know exactly, but you can start here: Stackoverflow
    – dragostis
    Aug 27, 2012 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.