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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:37:13+00:00 2026-06-06T21:37:13+00:00

I am figuring out that can we pass a Uri in an SMS message

  • 0

I am figuring out that can we pass a Uri in an SMS message instead of hyperlink in Android. I am considering the following scenario:
1) I open a DDMS
2) In the Emulator Control panel, I am sending an SMS as “http://www.google.com”
3) The SMS arrives in the emulator.
4) I open the SMS and the message http://www.google.com has a hyperlink as shown here.
5) I click on the link and it redirects to a browser opening me the Google site in it.

Consider the another scenario:
1) I open a DDMS
2) In the Emulator Control panel, I am sending an SMS as “myscheme://com.android.myhost/mypath”
3) The SMS arrives in the emulator.
4) I open the SMS and it shows me the message myscheme://com.android.myhost/mypath
5) I click on the link and it redirects to the application which is registered with the above Uri.

How do I go for this. Any suggestions?

Regards And Thanks
Sohaib Rahman

  • 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-06T21:37:14+00:00Added an answer on June 6, 2026 at 9:37 pm

    I would not do it that way. Do not invent your own custom schemes.

    Instead, your first approach will work just fine, so long as you have an app installed that also claims to support that particular URL structure.

    For example, if you have Barcode Scanner installed, a URL like http://zxing.appspot.com/scan will launch the Barcode Scanner app once the link is clicked by the user. This is because Barcode Scanner has an activity with the following <intent-filter> element:

      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
      </intent-filter>
    

    There are two benefits to this approach over custom schemes:

    1. Members of the IETF will not threaten to break your kneecaps, for creating unauthorized schemes. 🙂

    2. The link still works, even for recipients who are not on Android or do not have Barcode Scanner installed. If you visit http://zxing.appspot.com/scan from the Web browser that you are using to view this SO answer, you will see that it leads to a valid Web page, from which an Android device user could click to download Barcode Scanner. Your custom-scheme approach creates URLs that are completely useless to anyone else who does not have your app installed (e.g., somebody tries forwarding your SMS to somebody else).

    Now, a certain fruit-flavored mobile operating system does encourage creating your own custom schemes, for reasons that are unfathomable to me. If you are really really certain that you want to do that, you would use an <intent-filter> with your scheme in it:

      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="zxing" android:host="scan" android:path="/"/>
      </intent-filter>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hard time figuring this one out, it's about mistakes that can
Question: Can I override default functions in Javascript? Background: After figuring out that I
I'm having some trouble figuring out to call methods that I have in other
I am having some problems figuring out this issue. I have a server that
I learn best by taking apart something that already does something and figuring out
I'm having some trouble figuring this out. I have an unordered list menu that
I'm having trouble figuring out how to filter a queryset appropriately for the following
Perhaps I'm just having trouble figuring out the callbackyness, but I can't figure out
I'm figuring out the right mechanism to pass data from UITableViewCell s to a
I'm having difficulty figuring out how to write a module with a form that

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.