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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:22:16+00:00 2026-05-23T02:22:16+00:00

There is one HTML page, streaming a music file and It’s working on window

  • 0

There is one HTML page, streaming a music file and It’s working on window but i need to run this html file on android.
also i need to control all the feature of music by javascript function e.g. play,pause,stop, volume up & down.

Can someone give me any idea?

Note : i am new to android but good hand in java. Just going through android tutorial and i came to know this feature can be done using webview. is it ?

  • 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-05-23T02:22:16+00:00Added an answer on May 23, 2026 at 2:22 am

    Here is an example quite close to the thing you’re going to do…

    public class MyJSInterface{
    private MediaPlayer mp = new MediaPlayer();
    ....
     public void play(String url){
    
        this.mp.setDataSource(url);
        this.mp.prepare();
        this.mp.start();    
    
    //  AlterDialog etc.
    
     }
    
     public void stop(){
    
        this.mp.stop();        
    
     }
    
    ....
    
    }
    
    
    HTML from your website:
    function _play(url){
      window.myappname.play(url);
    }
    function _stop(url){
      window.myappname.stop();
    }
    

    thing you may need
    Android Media

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a html page customized with css styles(I cannot change this css). One
There is one html page that contains only a .swf file that can be
HTML5Boiler plate suggests we put this one in our HTML page if we favour
I have one page(say jobs.html) with an iframe loads another page( say joblist.html).There is
I have one index.html page and on this page I have three controls; one
I generate a html page with HTMLTextWriter. At one point I do need some
$0 is the variable for the top level Ruby program, but is there one
Network file systems are offered by Windows and (L)Unix. Is there one for IBM
I am new in phonegap development. I have one html page which contains one
I have a html page and inside of it there are 4 script tags

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.