public static void openArtistProfile(final Activity context,final String artistName,final long[] songs){
  if (artistName == null || artistName.isEmpty()) {
    return;
  }
  final Bundle bundle=new Bundle();
  bundle.putLong(Config.ID,MusicUtils.getIdForArtist(context,artistName));
  bundle.putString(Config.MIME_TYPE,MediaStore.Audio.Artists.CONTENT_TYPE);
  bundle.putString(Config.ARTIST_NAME,artistName);
  if (songs != null && songs.length > 0) {
    bundle.putLongArray(Config.TRACKS,songs);
  }
  final Intent intent=new Intent(context,ProfileActivity.class);
  intent.putExtras(bundle);
  context.startActivity(intent);
}

public static void openArtistProfile ( final Activity context , final String artistName , final long [ ] songs ) { if ( artistName == null || artistName . isEmpty ( ) ) { return ; } final Bundle bundle = new Bundle ( ) ; bundle . putLong ( Config . ID , MusicUtils . getIdForArtist ( context , artistName ) ) ; bundle . putString ( Config . MIME_TYPE , MediaStore . Audio . Artists . CONTENT_TYPE ) ; bundle . putString ( Config . ARTIST_NAME , artistName ) ; if ( songs != null && songs . length > 0 ) { bundle . putLongArray ( Config . TRACKS , songs ) ; } final Intent intent = new Intent ( context , ProfileActivity . class ) ; intent . putExtras ( bundle ) ; context . startActivity ( intent ) ; }
opens the profile of an artist .
