android studio 디버그
2021. 9. 24. 15:50ㆍ?
...
import android.util.Log;
public class MainActivity extends AppCompatActivity {
private final static String TAG = MainActivity.class.getSimpleName();
...
Log.d(TAG, "hello");
...
}
try {
...
} catch (IOException e) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String exceptionAsString = sw.toString();
Log.e("IOException!", exceptionAsString);
}
'?' 카테고리의 다른 글
android 11 모든 파일 접근 (0) | 2021.11.19 |
---|---|
python3 http.server (0) | 2021.09.29 |
부동소수점 (0) | 2021.08.14 |
docker 실행 (0) | 2021.06.23 |
apt-get update... 404 not found (0) | 2021.06.23 |