public void startUp() throws PlayMusicNotFoundException, NoSuperUserException, CouldNotOpenDatabaseException {
  PackageManager packageManager=mContext.getPackageManager();
  try {
    mPlayMusicApplicationInfo=packageManager.getApplicationInfo(PLAYMUSIC_PACKAGE_ID,0);
  }
 catch (  PackageManager.NameNotFoundException e) {
    throw new PlayMusicNotFoundException();
  }
  mPathPrivateData=mPlayMusicApplicationInfo.dataDir;
  List<String> publicDataList=new ArrayList<>();
  for (  String storage : FileTools.getStorages()) {
    String publicData=storage + "/Android/data/com.google.android.music";
    if (FileTools.directoryExists(publicData))     publicDataList.add(publicData);
  }
  mPathPublicData=publicDataList.toArray(new String[publicDataList.size()]);
  loadDatabase();
}

public void startUp ( ) throws PlayMusicNotFoundException , NoSuperUserException , CouldNotOpenDatabaseException { PackageManager packageManager = mContext . getPackageManager ( ) ; try { mPlayMusicApplicationInfo = packageManager . getApplicationInfo ( PLAYMUSIC_PACKAGE_ID , 0 ) ; } catch ( PackageManager . NameNotFoundException e ) { throw new PlayMusicNotFoundException ( ) ; } mPathPrivateData = mPlayMusicApplicationInfo . dataDir ; List < String > publicDataList = new ArrayList < > ( ) ; for ( String storage : FileTools . getStorages ( ) ) { String publicData = storage + "/Android/data/com.google.android.music" ; if ( FileTools . directoryExists ( publicData ) ) publicDataList . add ( publicData ) ; } mPathPublicData = publicDataList . toArray ( new String [ publicDataList . size ( ) ] ) ; loadDatabase ( ) ; }
loads all needed information and opens the database
