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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:19:52+00:00 2026-06-13T05:19:52+00:00

I am part way through writing a media player app for Android. It’s all

  • 0

I am part way through writing a media player app for Android. It’s all going really well so far, however I am now reaching the difficult stage!

I have two questions. Do i need to implement a service activity? As I understand it, this is required to allow the app to continue working in the background. However, mine is working fine while I move to other programs on the tablet, and returns to the app without problems. Can someone please explain what the advantages are of services?

Secondly, I would like to integrate the media player with the standard lock screen controls in ICS, and also make it take advantage of tablets (such as the asus transformer) that have keyboard play/pause skip controls. I would appreciate it if someone could point me in the right direction to get me started. From my googling it would seem that BroadcastReciever is needed, or perhaps RemoteControlClient, but I’ve no idea where to start!

I have a main activity with actionbar tabs, which contain a music player fragment and soon a video player fragment.

Do i need to create a layout specifically for the lock screen, or can i make use of standard API’s?

Any help gratefully received!

  • 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-13T05:19:54+00:00Added an answer on June 13, 2026 at 5:19 am

    You should check out the Random Music Player sample that comes with android SDK samples. It gives you lock screen controls and bluetooth control ability on ICS devices & up. I’ve used it myself, it is excellent. Also, the UniversalMusicPlayer sample on Github: https://github.com/googlesamples/android-UniversalMusicPlayer

    Sample code can be found online too.

    Igor

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

Sidebar

Related Questions

So I am part way through writing my first game on Android and after
I'm currently writing an OpenGL renderer and am part-way through writing some classes for
We are new to Scrum and part way through the first sprint we have
I've encountered a problem where part way through building a solution, VS 2010 becomes
The good folks at stackoverflow helped me part of the way with this, now
Any way to get a dash as part of a property name in C#?
As part of a project I have assigned myself as a way of improving
Is there any way to adjust the boundaries of the visible part of the
I am part of a software development company looking for a good way to
What is the best way to randomize the time part for a DATE column,

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.