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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:40:29+00:00 2026-06-06T23:40:29+00:00

Thanks in advance. When I print Log.d(me,getIntent().toString()); I am getting: Intent { act=android.intent.action.CALL_PRIVILEGED dat=tel:888

  • 0

Thanks in advance.
When I print Log.d("me",getIntent().toString());

I am getting:

Intent { act=android.intent.action.CALL_PRIVILEGED dat=tel:888 flg=0x13800000 cmp=com.ninetology.freecall.two/.CallFinalActivity }

I am trying to fetch the value which is associated with “dat” but I am getting NullPointer exception.

//the code I am using is
getIntent().getStringExtra("dat"); // no use
//i tried 
getIntent().getExtras("dat").toString(); // NullPointer exception

I tried with “tel” as key in above code still no use.

  • 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-06T23:40:30+00:00Added an answer on June 6, 2026 at 11:40 pm

    it seems you’re doing this wrong.

    1. The getExtras() function returns a bundle that you can extract data from and not a function that returns a specific String.

    2. dat is NOT a String value as you can see from the data that was printed. it’s a Uri,

    try parsing it as you should and I’m sure you’ll be able to get the data.

    public void onCreate(Bundle b) { //mistyped
        super.onCreate(b);
        Uri data = getIntent().getData();
        // OR USE THIS
        String data = getIntent().getDataString();
        // DO STUFF
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance to anyone who can think of a more efficient or a
Thanks in advance for your help. I have a need within an application to
thanks in advance for looking at this. Essentially, I'm calling didInsertElement() and binding an
Thanks in advance for your assistance. I have the following exported part: [Export (typeof(INewComponent))]
Thanks in advance for any help you can provide on this issue! I manage
Thanks in advance for taking the time to read my question. I'm using MySQL
Thanks in advance for your help experts. I want to be able to copy
Thanks in Advance for reading and answer this question. I got button in asp
thanks in advance for reviewing my post. I've only been using jquery for about
Thanks in advance. This is my sample code. Whenever i try to run it

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.