Launching external application from my app

后端 未结 5 1380
春和景丽
春和景丽 2020-12-16 06:25

I would like to launch an app the user selects from within my application. However, I\'m not sure how I\'d go about doing this. I\'ve tried this:

Intent inte         


        
5条回答
  •  难免孤独
    2020-12-16 07:24

    Please try the following code:

    Intent intent = new Intent(Contacts.Intents.SHOW_OR_CREATE_CONTACT);

    this.startActivity(intent);

    (sorry if there is something wrong on the syntax, I dont have android in this computer)

    And remove the action from the manifest. that is not needed. The action method is used for something else. For more info, please look at the android site: http://developer.android.com/reference/android/content/Intent.html

    Daniel

提交回复
热议问题