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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:15:55+00:00 2026-06-16T12:15:55+00:00

I have coded up a media player which streams MP3 from a website. With

  • 0

I have coded up a media player which streams MP3 from a website.

With a media player such as Winamp, I can go check my email or Facebook while its playing and then go back to win-amp by using the notification window. I wanted to know if I can do something like that with my media player.

I have looked at: Android Media Player Threading ,Notifications and many more.

I goggled this concept and found a lot of confusing topics. Some people made a service while some make a foreground service and then added notification to that. I am confused on how I can make this possible. If someone can explain this concept (going from my activity class to notification bar) to me, I will be grateful. Sample code will be greatly appreciated too.

  • 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-16T12:15:56+00:00Added an answer on June 16, 2026 at 12:15 pm

    I found an answer to my question and decided to share with fellow novice users/students who are learning android development.

    Basically, you have to use a service side by side with your activity class if you want an effective media player. After making the service, you have to make it into a foreground service which will help you make your media player into a notification.

    If I am incorrect then please correct me. Thank you

    Sample code: http://www.java2s.com/Code/Android/Media/UsingServicetoplaymediafile.htm

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

Sidebar

Related Questions

I have an HTML document ( here ), which creates an iframe-based media player
I'm starting on a project in making a customizable media player which can support
I have a custom multi-media player written in silverlight which displays both images and
I have create the service which implement the media player class to play the
I'm designing a media player, and I have a method called AddDirectory, which adds
I have an application in which the user can select from local video files.
I have coded up an ASP.NET website and running on win'08 (remotely hosted). The
I am trying to develop an Android based application, which can play video from
I have created a simple multicast player using actinscript 3 which works fine and
I have one .pls file which is online but when I am creating media

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.