Back to project page PlayTunes.
The source code is released under:
Copyright (c) 2014, Impeccable Labs, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar...
If you think the Android project PlayTunes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ideabag.playtunes.adapter; /*w w w. jav a2 s .co m*/ import com.ideabag.playtunes.database.MediaQuery; import android.content.Context; import android.database.Cursor; import android.provider.MediaStore; import android.view.View; public class GenresOneAdapter extends SongListAdapter { protected String GENRE_ID; //public String GenreName; private static final String[] oneGenreSelection = new String[] { // Audio media ID must always be at position 0 MediaStore.Audio.Genres.Members._ID, MediaStore.Audio.Genres.Members.ALBUM, MediaStore.Audio.Genres.Members.TITLE, MediaStore.Audio.Genres.Members.ARTIST, MediaStore.Audio.Genres.Members.DATA, MediaStore.Audio.Genres.Members.DURATION }; public GenresOneAdapter( Context context, String genre_id, View.OnClickListener menuClickListener, MediaQuery.OnQueryCompletedListener listener ) { super( context, menuClickListener ); this.GENRE_ID = genre_id; mQuery = new MediaQuery( MediaStore.Audio.Genres.Members.getContentUri( "external", Long.parseLong( GENRE_ID ) ), oneGenreSelection ); requery(); } }