ClarkKent - A remote reporting library for android apps
Post on 18-Jan-2015
443 Views
Preview:
DESCRIPTION
Transcript
ClarkKent‘A mild-mannered reporter’ library for android
Gaurav LochanLittle Eye Labs
Friday 6 December 13
Problem
Getting info from a production app
Important Events / Logs
Failures (not just crashes)
Latencies
Very useful for debugging issues, understanding app usage, and optimizing for different devices
Friday 6 December 13
Related Services
Crash Reporting - Crittercism, Crashlytics, Bugsense
Analytics - Flurry, Google Analytics, Omniture
BaaS: Parse, StackMob, etc
Provide good queries, flexible
Friday 6 December 13
Where would you see these?
Critter-cism Parse Flurry New
Relic
Errors Y Y Y N
Events N Y Y N
Latency Y Y N Y
Friday 6 December 13
ClarkKentProvides simple abstraction for ‘reportable’ objects:
Event
Failure
Latency
Configure which service to report to
Append key info for each report (deviceID, userID, timestamp, etc)
Optimized: Batch network calls, offline mode
Friday 6 December 13
Sample Code
Friday 6 December 13
RoadmapClient
Implement different reporters (Crittercism, Parse, Flurry etc)
Implement offline mode
Use Java annotations for reportables
Server
Implement a custom UI on top of Parse - better queries
Friday 6 December 13
Logger
Much more lightweight than log4j / slf4j
Wraps around android.util.log. Change log level with runtime flag
Write log to a file, support uploading log
Use varargs to prevent unnecessary string construction
Friday 6 December 13
Contact
@gauravl
https://github.com/LittleEyeLabs/Garage/tree/master/android/utils
Friday 6 December 13
top related