This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void save(View view) { | |
String text1 = username.getText().toString(); | |
String text2 = password.getText().toString(); | |
text1 = text1 + " "; | |
File file = null; | |
FileOutputStream fileOutputStream = null; | |
try { | |
file=getFilesDir(); | |
fileOutputStream = openFileOutput("vivz.txt", Context.MODE_PRIVATE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void load(View view) { | |
try { | |
FileInputStream fileInputStream = openFileInput("vivz.txt"); | |
int read = -1; | |
StringBuffer buffer = new StringBuffer(); | |
while((read=fileInputStream.read())!=-1) { | |
buffer.append((char) read); | |
} | |
Log.d("VIVZ",buffer.toString()); | |
String text1 = buffer.substring(0,buffer.indexOf(" ")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a demo task. | |
Write a function: | |
int solution(vector<int> &A); | |
that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. | |
For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcopy C:\Folders D:\Folders /t /e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:q! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Gradle settings configured through the IDE *will override* | |
# any settings specified in this file. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# Specifies the JVM arguments used for the daemon process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls > filenames.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to add jar file: | |
https://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library | |
How to find libs folder: | |
https://stackoverflow.com/questions/26956827/have-no-libs-directory-in-android-studio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android.os.NetworkOnMainThreadException? | |
You should almost always run network operations on a thread or as an asynchronous task. | |
https://stackoverflow.com/a/9289190/5151687 | |
com.jcraft.jsch.JSchException: UnknownHostKey: | |
session.setConfig("StrictHostKeyChecking", "no"); | |
Working ftp: | |
https://stackoverflow.com/questions/2003419/com-jcraft-jsch-jschexception-unknownhostkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb -d shell |