logcat

Over populating Logcat causes windows to freeze, until hard reboot is performed

穿精又带淫゛_ 提交于 2019-12-14 00:29:42
问题 The title speak for itself, but I would add some pointers I've noticed along the way. I would like anyone which also experience the end result while developing for Android to try to reproduce this and see if this scenario is really the case, and if someone have a solution, that would make me very happy :), it is extremely frustrating that I need to hard reboot my computer while developing... The crash happens when Logcat is over populated. By over populated I mean that from a point in time,

Android; SQLiteConnection object for database was leaked even closed

雨燕双飞 提交于 2019-12-13 20:14:09
问题 In my database helper I have both closed the cursor and database connection, but still the logcat says there's a leak! I have this code in my SQLiteOpenHelper // Getting all entries from database table wp_posts public ArrayList<String> getAllPosts() { // Open the database String path_to_db = context.getDatabasePath(db_name).getPath(); db = SQLiteDatabase.openDatabase(path_to_db, null, SQLiteDatabase.OPEN_READONLY); // Prepare the container array ArrayList<String> postsArrayList = new

OnTouchListener in a View - Android

五迷三道 提交于 2019-12-13 16:00:31
问题 When I am adding a listener 'OnTouchListener' to a View, it doesn't register. Here is my code: GUI gui; boolean guis = true; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gui = new GUI(getBaseContext()); gui.setOnTouchListener(this); setContentView(gui); } When I do setOnTouchListener(), I put 'this' as a parameter.. Should that be something else? I let the GUI class implement OnTouchListener and adds a OnTouch method... But I put Log.w("AA

RecyclerView log statement: W/RecyclerView: RecyclerView does not support scrolling to an absolute position. Use scrollToPosition instead

谁说胖子不能爱 提交于 2019-12-13 13:09:10
问题 I am updating an old Android project, and now I am getting this log statement from RecyclerView repeatedly: W/RecyclerView: RecyclerView does not support scrolling to an absolute position. Use scrollToPosition instead It occurs when the recyclerview is populated and displayed for the first time or when the items in the recyclerview are refreshed. Logcat: 11-05 14:02:23.290 20209-20209/com.mydomain W/RecyclerView: RecyclerView does not support scrolling to an absolute position. Use

Android app force closes when painting a ball?

拟墨画扇 提交于 2019-12-13 11:17:29
问题 I'm trying to paint a ball on the screen, but it force closes. Something is going wrong. Ball b = new Ball(); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ingame); start(); } private void start() { Ball b = new Ball(); } public void paint(Graphics g) { b.paint(g); g.setColor(Color.GREEN); g.fillOval(x-radius, y-radius, radius*2, radius*2); } Here's my LogCat: 10-15 21:02:45.492: E/dalvikvm(7847): Could not find class 'com

Android Studio - logcat

喜欢而已 提交于 2019-12-13 10:39:44
问题 Can someone tell me what is wrong with my app it crashes on statr . Here is the LogCat: Process: com.moneyegg.bdpsoft.makemonepaypal, PID: 3358 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.moneyegg.bdpsoft.makemonepaypal/com.moneyegg.bdpsoft.makemonepaypal.MainActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class uses-permission at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app

Can't use Serial debug console on Raspberry pi 3B Android Things

被刻印的时光 ゝ 提交于 2019-12-13 10:24:02
问题 I am trying to connect my Raspberry pi 3B which has Android Things installed to my PC using the Serial debug cable. I connected it as instructed Here and followed the below steps using PUTTY on Windows 10. N.B: Same issue is with the Android Emteria version for Raspberry pi 3B. All I get is an empty console window, which I can't even type into. The device is not seen either in Android studio or using the ADB tool I am not sure about which Com to use, here's my device manager: Note I am able

Inserting data into an sqlite database [duplicate]

我与影子孤独终老i 提交于 2019-12-13 10:14:28
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: inserting data in sqlite database errors I am trying to get the answers from a form in an application with android. Everything is fine with the activity , but the problem is that I can't get the answers to be inserted in the database . and here is the error i get in the logcat : 07-31 02:34:44.092: E/Database(398): Error inserting REP3=oui REP4=non REP1=oui REP2=oui LONGITUDE=0.0 ZONE=rabat REP5=oui LATITUDE=0.0

App stop working

℡╲_俬逩灬. 提交于 2019-12-13 10:02:07
问题 First I am trying this way. And I am stuck then I ask question But no one gives any answer. Then I try another way suggested by @sayed.jalil in this link. But my app stop working. If someone provide answer for first link Really appriciated. And if someone like to answer the alternative I've tried according to @sayed.jalil answer. For that my code below- Xml code- <com.info.abc.JustifiedTextView android:id="@+id/textview1" android:textColor="#FFFFFF"/> Activity code- JustifiedTextView

where can I get logcat [closed]

删除回忆录丶 提交于 2019-12-13 09:56:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I downloaded the combined Eclipse/ Android SDK a couple of weeks ago. I really need logging capability and I was disappointed that System.out.println() doesn't write to the console. After researching the problem, I read that I need to use LogCat to read my logs. Unfortunately I can't find LogCat in my SDK or