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 8998827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:05:22+00:00 2026-06-16T00:05:22+00:00

public class MainActivity extends Activity { Button b; //FrameLayout fl; @Override protected void onCreate(Bundle

  • 0
public class MainActivity extends Activity {

    Button b;
    //FrameLayout fl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        b=(Button)findViewById(R.id.button1);

        b.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent contactpicker=new Intent(Intent.ACTION_PICK,Contacts.CONTENT_URI);
                startActivityForResult(contactpicker, 0);
            }
        });

    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        // TODO Auto-generated method stub

        if (resultCode == RESULT_OK) {
            switch (requestCode) {
            case 0:
                Uri contactUri = data.getData();
                FrameLayout badgeLargeHolder = (FrameLayout)
                findViewById(R.id.badge_holder_large);
                QuickContactBadge badgeLarge = new QuickContactBadge(this);
                badgeLarge.assignContactUri(contactUri);
                badgeLarge.setMode(ContactsContract.QuickContact.MODE_LARGE);
                badgeLarge.setImageResource(R.drawable.ic_launcher);
                badgeLargeHolder.addView(badgeLarge);
                break;
            }
        }

    }
}

I got the error like this:
12-18 07:30:47.452: E/AndroidRuntime(657): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content://contacts }

give any suggestion to resolve this Error.

  • 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-06-16T00:05:23+00:00Added an answer on June 16, 2026 at 12:05 am

    use ContactsContract.Contacts.CONTENT_URI instead of Contacts.CONTENT_URI

    Intent contactpicker = new Intent(Intent.ACTION_PICK,
                                     ContactsContract.Contacts.CONTENT_URI); 
    startActivityForResult(contactpicker, 0);
    

    and also add this permission in AndroidManifest.xml

    <uses-permission android:name="android.permission.READ_CONTACTS" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public class MainActivity extends Activity { GridView gridView; LazyAdapter adapter; @Override public void onCreate(Bundle
public class MainActivity extends Activity implements Runnable{ private int progressBarStatus = 0; private Handler
just for learning purpose <Button android:id=@+id/button android:text= android:layout_width=fill_parent android:layout_height=fill_parent android:onClick=updateTime/> public class MainActivity extends
I have 2 tabs, named : Tab1, Tab2 class MainActivity extends TabActivity. MainActivity.java public
import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; public class Map2Activity extends MapActivity { /** Called
public class tryAnimActivity extends Activity { /** * The thread to process splash screen
I am trying to set a breakpoint inside an Activity class: public class MainActivity
public class Test { public static void main(String[] args) { DemoAbstractClass abstractClass = new
public class WeeklyInspection : Activity { WebView view = (WebView) FindViewById(Resource.Id.inspectionWV); view.Settings.JavaScriptEnabled = true;
public class MyClass { public string MyProperty{ get; set; } Now, I would like

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.