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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:21:09+00:00 2026-05-28T01:21:09+00:00

I am developing a media-player application. In the main activity, I have three tabs.

  • 0

I am developing a media-player application. In the main activity, I have three tabs. First tab displays the audio files in a ListView, which I parsed from a URL. Clicking on the list item will play that file. Up-to this I finished. The second tab is to display the frequently played audio files. For example if a file get played for max of 5 times, it has to be displayed in the frequent tab. I thought to store the position of the list item in a SharedPreferences. But I don’t know how to achieve this. Need help.

  • 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-28T01:21:10+00:00Added an answer on May 28, 2026 at 1:21 am

    Why don’t you maintain a database of all the media content that is being played and then count how many times been played. If the number is greater than 5, then display it in the Frequently played list.

    Your shared preferences ideally shouldn’t be doing what you’re trying to do. However; with the database in place, it would be a lot easier to add what you are trying to do.

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

Sidebar

Related Questions

I'm in the works of developing a media player kind of application. I have
I've been developing a Windows Forms application with a Windows Media Player COM embedded
I am developing a soundboard application in which I use Listview Activity. But since
I am developing a soundboard application in which I use Listview Activity. But since
I am developing media player and my application download mp3 file from server .
I am developing an Android media player streaming application. I get the following exception:
I'm developing a media player application in Android. I've an animation (Open Gl Surface
I'm working on developing a media player like application in Java (it's a swing
I am developing a new Java Desktop app. Something like a media player. I
I am in the middle of developing a PHP social media web application which

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.