Results 1 to 2 of 2
  1. #1
    Arnold is offline Member
    Join Date
    Oct 2009
    Location
    Rotterdam
    Posts
    52
    Rep Power
    0

    Unhappy Error stack trace

    I'm encountering a (runtime)error in my Android application and I have no idea what's wrong.
    It could help if it would print the stack trace, but I don't see anything in my Eclipse console.
    All I get is a error message saying that the application has to close at a certain point.

    So how can I know what's wrong??

  2. #2
    ryguy is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    1
    Rep Power
    0

    Default

    Arnold,

    You should see what's going on by going into Debug perspective and look in the LogCat.

    In a try...catch, you can print the stack trace:

    Java Code:
    try{
         //try
    }
    catch (Exception e){
            Log.e(tag, "catch: " + e.getMessage());
            e.printStackTrace();
    }

Similar Threads

  1. Replies: 3
    Last Post: 04-17-2010, 01:02 AM
  2. Log4j disables stack trace after exception repetition
    By vmb1967 in forum Advanced Java
    Replies: 2
    Last Post: 07-17-2009, 05:31 PM
  3. Can't trace where the error, need help
    By Hnin Hnin in forum Java Servlet
    Replies: 1
    Last Post: 03-16-2009, 04:24 PM
  4. Error trace in swing application
    By dnyan123 in forum AWT / Swing
    Replies: 15
    Last Post: 10-21-2008, 03:50 PM
  5. Stack Trace
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-10-2007, 06:29 PM

Posting Permissions

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