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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:10:26+00:00 2026-06-09T10:10:26+00:00

When the Android browser opens a media file it can play, the built-in (stagefright?)

  • 0

When the Android browser opens a media file it can play, the built-in (stagefright?) media player opens up to stream it. A title for this media is displayed on the player dialog, based on the URL.

Android Media Player, with title highlighted

The URL in this case was http://10.0.37.195/waug_mp3_128k. The media player simply uses the last part of the path as its title.

Is it possible to change the displayed title?

I have tried a Content-Disposition header, but it had no effect:

Content-Disposition: inline; filename=Some Better Title
  • 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-09T10:10:27+00:00Added an answer on June 9, 2026 at 10:10 am

    The short answer is no. I don’t think you can change the displayed title to show something else from the server.

    I believe that player is the default AudioPreview activity from the default AOSP Music app. Looking at it’s source code, apparently it will simply use the last path segment of the URI for stream using the HTTP scheme (it will only query the media database for local content/files).

    Here are the relevant code snippets:

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
    
        // ...
    
        if (scheme.equals(ContentResolver.SCHEME_CONTENT)) {
    
            // ...
    
        } else if (scheme.equals("file")) {
    
            // ...
    
        } else {
            // We can't get metadata from the file/stream itself yet, because
            // that API is hidden, so instead we display the URI being played
            if (mPlayer.isPrepared()) {
                setNames();
            }
        }
    }
    
    // ...
    
    public void setNames() {
        if (TextUtils.isEmpty(mTextLine1.getText())) {
            mTextLine1.setText(mUri.getLastPathSegment());
        }
        if (TextUtils.isEmpty(mTextLine2.getText())) {
            mTextLine2.setVisibility(View.GONE);
        } else {
            mTextLine2.setVisibility(View.VISIBLE);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a reoccurring problem with the Android Browser. This is a mobile website
How to load url without launching android browser? Can anyone help me?
On the Android web browser (I'm seeing this on Android 2.3), when an Html
I have to play a video in my android app. The file is stored
I'm trying to open default browser in Android from an application's dialog with a
when I view this page on my android device' default web browser and click
I am trying to develop a tiny android app that just opens a browser
Sometimes PhoneGap opens web pages in the Android browser, sometimes it opens them in
When on android default browser long press on the back key opens the history
When I open my site http://www.gestaoeventos.com on Defy (Android 2.1 update 1 Browser version

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.