Sunday, November 10, 2013

Android Application Crash Logs

Android SDK shipped with many tools for development but sometime situation occur that application works perfect when you test. When you provide APK to client then error occur. How do you identify where the error comes. It difficult because usually clients are non-technical person. Clients might be in another country. In these situation you can suggest your client to follow following steps to collect application crash logs.

1.    Download & Install Log collector app from https://market.android.com/details?id=com.xtralogic.android.logcollector&feature=search_result on device.
2.    Now run application which you want to Test for crash logs.
3.    Whenever application crashes, start Log Collector application.
4.    It will ask you for sending options for crash logs, choose gmail app.
5.    Write recipient email id and send the email.


You can either download the SDK and use adb logcat or get aLogcat from the Market, which shows the log directly on your phone.


A found that CatLog displays the Android log a little bit better then aLogcat. Besides adb logcat, that's what I am using.



How can we use logcat for Android:
The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell to view the log messages.

For complete information about logcat options and filtering specifications, see Reading and Writing Logs.

For more information on accessing logcat from DDMS, instead of the command line, see Using DDMS.

Syntax
[adb] logcat [option].... [filter-spec] ...

You can run logcat as an adb command or directly in a shell prompt of your emulator or connected device. To view log output using adb, navigate to your SDK platform-tools/ directory and execute:

$ adb logcat

You can create a shell connection to a device and execute:

$ adb shell

# logcat

------------------------------------------------------------------- 

How to find the iPhone/iPad App Crash Logs

While troubleshooting crashes, we may request a crash log to determine what is happening. Here are instructions for finding a crash log on Pocket for iOS on Mac and Windows.

1. Sync with iTunes
Crash logs are transferred to iTunes whenever you sync your device. Plug in your device, and launch iTunes to complete the sync.

2. Retrieve the Crash Log

Mac Users


  • Open Finder (found in the Dock)
  • Click on the 'Go' menu at the top of your screen, and select 'Go to Folder'
  • Type (or paste): ~/Library/Logs/CrashReporter/MobileDevice/
  • Open the folder with the same 'name' as your device. (Note: your device name appears in iTunes on the left side, under 'Devices').
  • Open the folder called 'Retired'
  • You will see at least one item starting with 'ReadItLaterPro'. Copy any that you find to your Desktop.
  • Attach the file(s) to your reply, or send them to support [at] getpocket [dot] com.


Windows Vista/7 Users


  • Open any Windows Explorer Window (My Computer, My Documents, etc.)
  • Enter %appdata%, and press enter
  • Navigate to Roaming > Apple computer > Logs > CrashReporter > Mobile Device > *Device Name*. (Note: your device name appears in iTunes on the left side, under 'Devices')
  • You will see at least one item starting with 'ReadItLaterPro'. Copy any that you find to your Desktop.
  • Attach the file(s) to your reply, or send them to support [at] getpocket [dot] com.

1 comment:

  1. The TATI Team's Titanium Arts - TI Tech
    “To where is titanium found preserve our titanium metal trim heritage, micro hair trimmer we created titanium alloy nier the TATI team. where can i buy titanium trim This includes their current line of products and services.”.

    ReplyDelete