Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7683199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:44:27+00:00 2026-05-31T18:44:27+00:00

I was wondering how do i take complete logs from android device (From the

  • 0

I was wondering how do i take complete logs from android device (From the point of My application initialize to any crash or till force close of my application).

Reason i am posting here is my application is crashed some point,but when i take logs using DDMS/Logcat my crash details are over written with new logs.

How do i get my crashed reason logs..

Specially looking to capture Native Code Crash.

i.e I/DEBUG (21835): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000004...

Will this adb logcat > crash.txt ensures me that write to file will happen forever?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:44:28+00:00Added an answer on May 31, 2026 at 6:44 pm

    I tried this Works Real Well,Not sure How much battery it will consume..If your Application is in Testing Stage You can use this..Before Release you got to Remove this code and Publish..

    private void writeADBLogs(){
         BufferedWriter bufferedWriter = null;
    
          try {
             final File file = new File(sdcardPath);
            bufferedWriter = new BufferedWriter(new FileWriter(file,true));
            Process process = Runtime.getRuntime().exec("logcat -d");
            BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream()));
    
            String oneLine;
              while ((oneLine= bufferedReader.readLine()) != null) {
                  bufferedWriter.write(oneLine);
                  bufferedWriter.newLine();
              }
        } catch (IOException e) {
            e.printStackTrace();
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I was wondering if there is any jquery function around which can take
was wondering on how to take the current Time, and subtracting 3 hours from
I'm wondering how fast I can take pictures one after another withoud surprises from
Hi I was wondering I could make my flash program take input from an
I was wondering how to take a value from a ajax call and change
I was wondering if anyone knew of an application that would take a GEDCOM
I am wondering what other approaches you would take to do some simple string
I was wondering how you could take 1 string, split it into 2 with
I was wondering if something exists (in Java world) able to take an snapshot
I'm wondering if there are algorithms that can take, say, a 100x70 image and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.