Results 1 to 6 of 6
  1. #1
    ki_ha1984 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    118
    Rep Power
    0

    Default Android app crashes in random time

    Hi,

    I am new in java android developments, and some days ago a developed an application that communicates with a server in order to get the content. Simply put, i developed a waiter order app which gets the content (dish categories, dishes etc) from the sever, i get the data from mysql with php.

    The problem is that the app crashes in random times, some times gives this error msg "connection lost the app stopped" and restart automatically the app. Never crashed in the simulator of my computer only when is installed in a tablet, example in LENOVO TAB 3 710F 7" ESSENTIAL.

    I developed it in Android Studio for 3.1 to 6 android versions.
    I export it in debug mode, is there any problem that i use the debug mode ???
    Also, is there any log file of the app in the tablet to find out why crashes ???
    How i can debug the app in the tablet??

    Thank you in advance

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,006
    Rep Power
    34

    Default Re: Android app crashes in random time

    Here is some code I developed that has worked sometimes for me: [Android] App Debugging Aids - Java Snippets | Dream.In.Code
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Android app crashes in random time

    For Android there are log files, which are accessed via logcat.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,006
    Rep Power
    34

    Default Re: Android app crashes in random time

    If you connect to a PC immediately after a crash, the ADB command can download the logcat to a file on the PC.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    ki_ha1984 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    118
    Rep Power
    0

    Default Re: Android app crashes in random time

    Thank you again Norm,

    I will try your code and to find out how i will get the logcat file and i will inform you.

    Thanks

  6. #6
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Location
    Planet Earth
    Posts
    278
    Rep Power
    0

    Default Re: Android app crashes in random time

    Analyze the stack trace and attach a debugger. Otherwise you can also add 'Splunkt Mint' or 'Crashlytics' if you want to receive crash reports from the device.

Similar Threads

  1. Replies: 0
    Last Post: 05-21-2015, 03:12 PM
  2. Android App Crashes/Won't Install
    By Curly in forum Android
    Replies: 1
    Last Post: 10-05-2012, 08:10 AM
  3. Setting time on the Android Emulator
    By Drun in forum Android
    Replies: 0
    Last Post: 09-18-2011, 11:35 PM
  4. Swing GUI crashes (using JNI)
    By divs in forum AWT / Swing
    Replies: 4
    Last Post: 06-10-2010, 08:04 AM
  5. Java crashes
    By Nicole in forum Advanced Java
    Replies: 2
    Last Post: 04-06-2009, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •