Help LG V10 bricked
- By turcualex
- Smartphones
- 5 Replies
After lot of hours I successed! Thanks a lot, the site helped me! 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Will donice looks good, might have a go at it as well. let us know how you like this one.
Well it just came in, so far it's very well packaged and here is my thoughts in itnice looks good, might have a go at it as well. let us know how you like this one.
I'd suggest to just be connected to the internet and use SDK manager to update/install required Android SDK's.
Try to Sync gradle again and follow the instructions that appear when it fails. Android Studio can automatically download required files for syncing.
Ok, now that makes more sense..appreciate the education.
Hi ! I want to create a small program with android studio that can take a value entered by a user and compare that value to another identical value that exists in a file stored in the internal memory of the phone. If this value exists in the file, select the file in question and send it to a server... Could someone help me with that ?
private static String getFileContent(String file) {
String content = "";
try (BufferedReader br = new BufferedReader(new FileReader(file))) {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
line = br.readLine();
if (line != null) {
sb.append(System.lineSeparator());
}
}
content = sb.toString();
} catch (IOException e) {
e.printStackTrace();
}
return content;
}
if (getFileContent("/path/to/filename").contains("string-to-check")) {
// run your code here for a match
} else {
// run code here for no match
}


@override
public void surfaceDestroyed(SurfaceHolder arg0) {
if (mediaPlayer != null) {
mCurrentVideoPosition = mediaPlayer.getCurrentPosition();
mediaPlayer.release();
mediaPlayer = null;
}
}
@Override
public void surfaceCreated(SurfaceHolder arg0) {
if(mStream_id != null){
String contentUri = Url + "live/" + username + "/" + password + "/" + mStream_id + ".ts";
try {
mediaPlayer = new MediaPlayer();
mediaPlayer.setDisplay(vidHolder);
mediaPlayer.setDataSource(contentUri);
mediaPlayer.prepare();
mediaPlayer.setOnPreparedListener(this);
mediaPlayer.setOnBufferingUpdateListener(this);
mediaPlayer.setOnCompletionListener(this);
mediaPlayer.setScreenOnWhilePlaying(true);
mediaPlayer.setOnVideoSizeChangedListener(this);
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public Runnable r;
public Handler TSH = new Handler();
@Override
protected void onCreate(Bundle savedInstanceState) {
...
r = new Runnable() {
@Override
public void run() { Log.d("Tag","Hi Again");
RefreshList();}
};
Calendar c1 = Calendar.getInstance();
c1.add(Calendar.MINUTE,1);
TSH.postAtTime(r, c1.getTimeInMillis());
public class TrainCheckerAlarm extends BroadcastReceiver {
public MainActivity ma;
public void GetMA(MainActivity m) {ma = m;}
@Override
public void onReceive(Context context, Intent intent)
{
ma.RefreshList();
}
public void setAlarm(Context context, Calendar cal)
{
AlarmManager am =( AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
Intent i = new Intent(context, TrainCheckerAlarm.class);
PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, 0);
am.set(AlarmManager.ELAPSED_REALTIME, cal.getTimeInMillis(), pi);
}
}
Can we safely assume the second "can" is supposed to be "can't"?I can run my emulator but I can open my files.

What happens when you try to open a file? Does the same thing happen with different types of files?What should I do?
Im using the emulator 2 API 29, and programming with java.

