Giter VIP home page Giter VIP logo

audio-file-manager's Introduction

Audio File Manager

API

Logo

Introduction

This library allows you to manage Albums, Artists, Playlists, Genre and Audio Items that are under the MediaStore.Audio collection without having to deal with content resolvers or anything along those lines.

Gettting Started

Before you get started, take a look at a working example of this library Here.

Setup

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}
dependencies {
    implementation 'com.github.LebogangBantsijang:Audio-File-Manager:1.0.8'
}

Usage

Prerequisite

  • Before you start ensure that you have permission to read or write to enternal storage. Guide

Example

How to get Audio and Album information from the external storage

AudioManager audioManger = new AudioManager(context);
audioManger.registerCallbacks(new AudioCallbacks(){
    @Override
    public void onQueryComplete(List<Audio> audioList){
    //use data
    }
}, lifecycleOwner);

AlbumManager albumManager = new AlbumManager(context);
albumManager.registerCallbacks(new AlbumCallbacks(){
    @Override
    public void onQueryComplete(List<Album> albumList){
    //use data
    }
}, lifecycleOwner);

Alternatively you can do the following:

AudioManager audioManger = new AudioManager(context);
List<Audio> list = audioManger.getAudio();

AlbumManager albumManager = new AlbumManager(context);
List<Album> list = albumManager.getAlbums();

The library has: -

  • ArtistManager
  • PlaylistManager
  • GenreManager
  • AlbumManager
  • AudioManager

Video Tutorial

Compatability

  • Minimum Android SDK: Audio-File-Manager v4 requires a minimum API level of 21.

License

Apache 2.0. See the LICENSE file for details.

Contribute

Contributions are always welcome!

audio-file-manager's People

Contributors

lebogangbantsijang avatar

Watchers

 avatar  avatar

Forkers

biobut

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.