android-logcat

Execute shell commands and get output in a TextView

可紊 提交于 2020-01-22 15:04:26
问题 I want to execute some shell commands and get the output in a TextView . The command may have a continuous output like ping or logcat . Also, the TextView should scroll automatically as the command output is added in real-time. In order to do so, I have done this: package com.example.rootapp; import java.io.DataOutputStream; import java.io.InputStream; import android.app.Activity; import android.os.Bundle; import android.text.method.ScrollingMovementMethod; import android.widget.TextView;

Log cat don't show log's

走远了吗. 提交于 2020-01-17 00:40:14
问题 I'm working on android . it seem's that some times my LogCat doesn't work correctly and do not any thing mean that it don't show any thing . (specialy when i working on more than one emulator .) can any one help me ?I need my LogCat . 回答1: Usually it happens when eclipse loses the connection to the adb server. The cause is often testing on more devices/emulators. In order to fix this, open the DDMS perspective and in the Devices View click on the device for which you want to output the logs

NullPointerException in Android RSS app

馋奶兔 提交于 2020-01-15 11:23:10
问题 I'm trying to build an android RSS reader app but I keep getting a Null pointer exception. I'm new to java and can't tell if its the feed url not returning any data or the data not being stored properly. my logcat reads: 08-08 18:44:25.840: E/Trace(621): error opening trace file: No such file or directory (2) 08-08 18:44:25.910: W/ActivityThread(621): Application com.app.fullmetalmanga is waiting for the debugger on port 8100... 08-08 18:44:25.930: I/System.out(621): Sending WAIT chunk 08-08

How to read Android LogCat - Android

被刻印的时光 ゝ 提交于 2020-01-11 14:24:30
问题 I have an error in my Logcat that causes my app to crash but I have no idea how to tell what line the error is on or what the error exactly is, here is my LogCat hopefully someone can tell me what the problem is. 07-16 15:37:49.255: E/AndroidRuntime(21545): FATAL EXCEPTION: main 07-16 15:37:49.255: E/AndroidRuntime(21545): java.lang.NullPointerException 07-16 15:37:49.255: E/AndroidRuntime(21545): at android.widget.ListView.measureScrapChild(ListView.java:1163) 07-16 15:37:49.255: E

Getting force close while scrolling down the list View in Android

♀尐吖头ヾ 提交于 2020-01-11 13:04:12
问题 I am getting force close errors while I try to scroll down my list View in fragment activity, which has 1 image View and 2 text view. I am beginner in android, so don't have that much knowledge except basic scenario in mostly used components of android. No bitmap OOM error is there, as I checked without images too. I am retrieving images from sd card from the path. Here, is my logcat out put with errors. 04-05 18:07:02.868: E/AndroidRuntime(3257): FATAL EXCEPTION: main 04-05 18:07:02.868: E

Getting force close while scrolling down the list View in Android

女生的网名这么多〃 提交于 2020-01-11 13:04:07
问题 I am getting force close errors while I try to scroll down my list View in fragment activity, which has 1 image View and 2 text view. I am beginner in android, so don't have that much knowledge except basic scenario in mostly used components of android. No bitmap OOM error is there, as I checked without images too. I am retrieving images from sd card from the path. Here, is my logcat out put with errors. 04-05 18:07:02.868: E/AndroidRuntime(3257): FATAL EXCEPTION: main 04-05 18:07:02.868: E

Unable to solve errors in android?

坚强是说给别人听的谎言 提交于 2020-01-10 05:35:25
问题 I am working on android quiz game. QuestionActivity and EndgameActivity are 2 classes in my game. I want when my game over control transferred to EndgameActivity. For this in QuestionActivty class i add Intent i = new Intent(this, EndgameActivity.class); startActivity(i); finish(); in if(currentGame.isGameOver()) method. But after answering last question when my game over control not tranferring to EndgameActivity and log cat showing following errors. QuestionActivity Class- public class

Unable to solve errors in android?

*爱你&永不变心* 提交于 2020-01-10 05:35:23
问题 I am working on android quiz game. QuestionActivity and EndgameActivity are 2 classes in my game. I want when my game over control transferred to EndgameActivity. For this in QuestionActivty class i add Intent i = new Intent(this, EndgameActivity.class); startActivity(i); finish(); in if(currentGame.isGameOver()) method. But after answering last question when my game over control not tranferring to EndgameActivity and log cat showing following errors. QuestionActivity Class- public class

How to identify the error in logcat

风流意气都作罢 提交于 2020-01-07 02:34:20
问题 I have some error in logcat but i dont know how to identify it. pls help me to find out this problem. My system crashes after running the emulator. I don't know what is an error in my project. Thanks in advance. 02-14 16:45:44.527: D/dalvikvm(562): Not late-enabling CheckJNI (already on) 02-14 16:45:46.407: I/ActivityThread(562): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider 02-14 16:45:46.417: D/AndroidRuntime(562): Shutting down VM 02-14 16:45:46.417: W/dalvikvm(562):

How to identify the error in logcat

て烟熏妆下的殇ゞ 提交于 2020-01-07 02:34:13
问题 I have some error in logcat but i dont know how to identify it. pls help me to find out this problem. My system crashes after running the emulator. I don't know what is an error in my project. Thanks in advance. 02-14 16:45:44.527: D/dalvikvm(562): Not late-enabling CheckJNI (already on) 02-14 16:45:46.407: I/ActivityThread(562): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider 02-14 16:45:46.417: D/AndroidRuntime(562): Shutting down VM 02-14 16:45:46.417: W/dalvikvm(562):