android-logcat

unable to start activity componentinfo

感情迁移 提交于 2019-12-11 19:06:09
问题 my program is not working , i have some kind of a problem with the surfaceviewexample class . Unable to start activity java.lang.NullPointerException. i am trying to push on the tut5 button which i made to start my surfaceview. what is the reason for it ? what am i doing wrong ? SurfaceViewExample.java public class SurfaceViewExample extends Activity implements View.OnTouchListener{ OurView v; Bitmap ball; float x,y; @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate

Handlers in for-loop Services

北慕城南 提交于 2019-12-11 18:12:28
问题 I used the following code in Activity class, it was working fine.K was updated accordingly. But when I used it in service class, the variable k in for-loop is not waiting for handler. for( k=0;k<personsToSend.length;k++) { Log.e(TAG,"outside k = "+k); new Handler().postDelayed(new Runnable() { public void run() { Log.e(TAG,"Inside k = "+k); } }, 1000); } Logcat: outside k = 0 outside k = 1 outside k = 2 outside k = 3 outside k = 4 Inside k = 5 Inside k = 5 Inside k = 5 Inside k = 5 Inside k =

endAllStagingAnimators explanation

青春壹個敷衍的年華 提交于 2019-12-11 15:22:54
问题 Today I noticed the following in my logcat: D/OpenGLRenderer: endAllStagingAnimators on 0xa2c70600 (CardView) with handle 0xa2c9d350 First of all, I haven't noticed any errors when running the application, but I did some research and couldn't find anything about this. There is also a few questions about this with no answers: endAllStagingAnimators on RippleEffect what is endAllStagingAnimators endAllStagingAnimators on CardView The name endAllStagingAnimators kind of says what it is, "ending

popupwindow closing issue by same button

烈酒焚心 提交于 2019-12-11 14:43:11
问题 I wanna close the PopupWindow by the same Button , But when I click on the Button again, it reopen the PopupWindow instead of closing it, and also should close the PopupWindow when i click outside of the PopupWindow any where, can anyone help me? here is my code, ivmainmenu.setOnClickListener(new OnClickListener() { @SuppressWarnings("null") @Override public void onClick(View v) { if(isShowing) { PopupWindow popupWindow = null; popupWindow.dismiss(); isShowing=false; } else { isShowing=true;

FATAL EXCEPTION: GLThread 84: FileNotFoundException Android logcat errors [duplicate]

我与影子孤独终老i 提交于 2019-12-11 14:27:34
问题 This question already has answers here : FileNotFoundException Android logcat errors (3 answers) Closed 5 years ago . My game runs correctly when I test the desktop version, but when I launch an android emulator and and try to run the game on the emulator the game closes and I get the logcat errors: 10-28 08:00:53.528: E/AndroidRuntime(1203): FATAL EXCEPTION: GLThread 84 10-28 08:00:53.528: E/AndroidRuntime(1203): Process: com.mkgame.game1.android, PID: 1203 10-28 08:00:53.528: E

Filtering LogCat in ACRA by application and not using TAG

为君一笑 提交于 2019-12-11 10:16:52
问题 I am currently using ACRA for capturing errors and improving my application. I would like to filter in Logcat all logs generated due to my application running which includes not only those that my app generates, but also those that are generated by libraries used by app (like GooglePlay). Usually what I have seen suggested is filtering by TAG, but that will not allow me to see logs that I have not tagged (like, for instance, ACRA... ) There is a solution in eclipse where I can filter both

Android Logcat error

半城伤御伤魂 提交于 2019-12-11 09:55:36
问题 Anyone can tell me what's the reason behind this run-time error? java.lang.RuntimeException: Unable to instantiate activity ComponentInfo Caused by: java.lang.InstantiationException i'm trying to make a PDF reader app following Joe Blough's Android PDF Viewer library at GitHub: https://github.com/jblough/Android-Pdf-Viewer-Library. I followed everything and I end up with this error. 12-20 03:43:14.037: E/AndroidRuntime(29822): java.lang.RuntimeException: Unable to instantiate activity

How to programmatically read logcat in real time?

隐身守侯 提交于 2019-12-11 04:45:38
问题 I have a service that would like to read data from logcat, from the start of the service (i.e. discarding logcat data prior to service start), monitoring the logcat data in real time, filtering the logcat to only show tags of "ActivityManager" and informational logs. I would then like to perform certain actions based on the filtered logcat data. I tried the following, but it doesn't work: Runtime.getRuntime().exec("logcat -c"); // flush the logcat first Process process = Runtime.getRuntime()

Gems App - Live Stream Fragment

最后都变了- 提交于 2019-12-11 02:49:20
问题 While developing a Gems app with the help of Fragments,logcat error occurred at runtime. LogCat: E/AndroidRuntime(667): FATAL EXCEPTION: main E/AndroidRuntime(667): java.lang.NullPointerException E/AndroidRuntime(667): at com.sit.gems.frgment.HomeBaseFragment.onMoreFragmentOptionSelected(HomeBaseFragment.java:345) E/AndroidRuntime(667): at com.sit.gems.activity.HomeActivity.onMoreFragmentOptionSelected(HomeActivity.java:80) E/AndroidRuntime(667): at com.sit.gems.frgment.MoreFragment$1

Can't get LogCat (Alcatel OneTouch Evolve)

北战南征 提交于 2019-12-11 02:18:28
问题 I've been trying to debug an application using my Alcatel OneTouch Evolve running "Firmware Version 4.1.2" (I guess that's Android Jellybean 4.1.2) but I get an empty logcat, and I'm using Android Studio 1.2.2. Debugging works just fine with another device (Samsung Exhibit 4G 2 running CyanogenMod 12.1 -- Lollipop), but it's excruciatingly slow. This suggests that my computer's setup is fine for debugging but that something is wrong with the Alcatel OneTouch's settings. Has anyone else seen