Your SlideShare is downloading. ×
0
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Android app debug using ddms
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Android app debug using ddms

2,485

Published on

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,485
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Android App Debug Using DDMS (Dalvik Debug Monitor Server)
  • 2. DDMS
  • 3. Process Info Window
  • 4. Logcat
    Or Adb Shell:
    # logcat –v time > /storage/logcat.txt &
  • 5. Show Heap Updates
  • 6. Heap Dump
    Hprof converter
    Eclipse Memory Analyzer
  • 7. Memory Analyzer
  • 8. Method Profiling
  • 9. Memory Management
    Do not keep long-lived references to a context-activity (a reference to an activity should have the same life cycle as the activity itself)
    Try using the context-application instead of a context-activity
    Avoid non-static inner classes in an activity if you don't control their life cycle, use a static inner class and make a weak reference to the activity inside. The solution to this issue is to use a static inner class with a WeakReference to the outer class, as done in ViewRoot and its W inner class for instance
    A garbage collector is not an insurance against memory leaks
    http://developer.android.com/resources/articles/avoiding-memory-leaks.html

×