public boolean getMediaInfo(){
try {
Process p=Runtime.getRuntime().exec("mount");
BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String line=br.readLine();
while(line!=null){
if(line.indexOf("/data/media")>0){
return true;
}
line= br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
}
return false;
}
try {
Process p=Runtime.getRuntime().exec("mount");
BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String line=br.readLine();
while(line!=null){
if(line.indexOf("/data/media")>0){
return true;
}
line= br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
}
return false;
}