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

  • SEARCH
  • Home
  • 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 8624761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:36:41+00:00 2026-06-12T07:36:41+00:00

The Android Uri.normaliseScheme() method always crashes. It doesn’t even throw an exception. I have

  • 0

The Android Uri.normaliseScheme() method always crashes.
It doesn’t even throw an exception. I have tried many different versions of the below code. What am I doing wrong?

Uri tableUri = Uri.parse("content://fake.company.app/TableName");
Log.d(TAG, "Table URI: "+tableUri);
try
{
    if (tableUri != null)
    {
        tableUri = tableUri.normalizeScheme();
    }
}
catch (Exception ex)
{
    Log.e(TAG, ex.getMessage());
    return false;
}
return true;

Basically I have determined that normaliseScheme is the culprit (by removing code, a line at a time). When normalizeScheme is entered my app crashes. I don’t even get any information in LogCat.

If I only keep the first 2 lines it runs fine and I get this log message:
Table URI: content://fake.company.app/TableName

  • 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-12T07:36:43+00:00Added an answer on June 12, 2026 at 7:36 am

    The only thing that seems to succeed is to do the work myself, by using the String toLowerCase method:

    String uriStr = "content://fake.company.app/TableName";
    Uri tableUri = Uri.parse(uriStr.toLowerCase());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get from an Android Uri to a byte array. I have
Does anyone have some helpful links to find out about Android Uri's? For example,
I have an android.net.URI object (of the kind returned by onActivityResult after MediaStore.ACTION_VIDEO_CAPTURE): it
I have an android.graphics.bitmap and an android.net.Uri both of these I can use anyway
I have this code on my Android phone. URI uri = new URI(url); HttpPost
android noob... I have two tables, with a one to many relationship between country_tbl
import android.content.Intent; import android.net.*; public class ignitionClass { Intent dialI = new Intent(Intent.ACTION_CALL, Uri.parse(tel:610-970-1218));
I have code straight from Google's dev guide: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(market://details?id=com.example.android));
Android programming. I have a json returning the date from a database as a
I am brand new to developing for android and have hit something of a

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.