public void recordStartTime ( ) { PreferenceManager . getDefaultSharedPreferences ( BlockCanaryContext . get ( ) . provideContext ( ) ) . edit ( ) . putLong ( "BlockCanary_StartTime" , System . currentTimeMillis ( ) ) . commit ( ) ; }
Record monitor start time to preference you may use it when after push which tells start BlockCanary .