Skip to content
Hossam Hassan edited this page May 15, 2016 · 9 revisions

InstaMonitor InstaMonitor is an Android library that can provide the following for any application:

-Period of time for which the application was open -Period of time spent on each Activity -Period of time spent on each Fragment -Include reset function to delete all saved stats -Include ignore(Activity) to ignore specific activities from tracking -Use local storage to store the results across application sessions

Let's get started:

Usage just one line of code to add to your Application class:

         InstaMonitor.getInstance().init(this);

and now feel free to get the data anytime and anywhere.

            ArrayList<Session> sessionsList;
            sessionsList = InstaMonitor.getInstance().getMonitorData();

Setup Including in your project via :

gradle :

             compile 'com.brandedme.hossamhassan.InstaMonitor:InstaMonitor:1.1.0'

Or

Maven :

             <dependency>
               <groupId>com.brandedme.hossamhassan.InstaMonitor</groupId>
               <artifactId>InstaMonitor</artifactId>
               <version>1.1.0</version>
               <type>pom</type>
             </dependency>
Clone this wiki locally