Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 523059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:25:06+00:00 2026-05-13T08:25:06+00:00

I would like to launch an app the user selects from within my application.

  • 0

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 intent = new Intent();
intent.setAction(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
startActivity(intent);

But this seems to throw an error and force close my application. I also tried adding:

<action android:name="Contacts.Intents.SHOW_OR_CREATE_CONTACT"/>

in the AndroidManifest file, but to no avail.

A look at Logcat shows that it’s an “IOexception – no such file or directory”. A couple of questions arise from this. I read through the Android docs and noticed that the Contact.Intents class is deprecated. However, it’s successor, ContactContracts is aimed at API level 5 whereas I’m targeting API level 3. Could this be the problem? Also, I’ve hardcoded this application into the code. Is there a way to retrieve the intents of any application the user selects so that they can be launched?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:25:06+00:00Added an answer on May 13, 2026 at 8:25 am

    You need to pass extra information into the intent to tell Android what you want to show or create. Otherwise Android doesn’t know what activity to start and (presumably in your case) throws an ActivityNotFoundException.

    For a contact, you use the generic Intent.ACTION_INSERT_OR_EDIT then use the MIME type of an individual contact (Contacts.People.CONTENT_ITEM_TYPE).

    For example:

    Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
    intent.setType(People.CONTENT_ITEM_TYPE);
    intent.putExtra(Contacts.Intents.Insert.PHONE, "+1234567890");
    intent.putExtra(Contacts.Intents.Insert.PHONE_TYPE, Contacts.PhonesColumns.TYPE_MOBILE);
    

    That will bring up the contacts app, prompting you to select an existing contact to add the phone number to, or to create a new contact.

    You don’t need to add anything special to your manifest to start external activities. Only if you were to directly manipulate the contacts ContentProvider would you need to add the appropriate CONTACT permissions to your manifest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 349k
  • Answers 349k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I tried more and I solved this problem with site… May 14, 2026 at 6:49 am
  • Editorial Team
    Editorial Team added an answer You could either Find all the dependencies of the gem… May 14, 2026 at 6:49 am
  • Editorial Team
    Editorial Team added an answer I would stick to UNION ALL. If there's no need… May 14, 2026 at 6:49 am

Related Questions

I have an application that launches a webpage in the current browser when the
I have an installer that needs to a person to be an admin (
I am building a Windows form application using .NET 3.5. I would like to
Sorry for the newbie question. I have a UITabBar in my main window view
Almost everything is in the title : Here's what I'd like to do :

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.