Demo entry 6284283

LHTRY

   

Submitted by anonymous on Oct 17, 2016 at 03:54
Language: Java. Code size: 863 Bytes.

if((keyCode == KeyEvent.KEYCODE_HOME) && down && (mFocusedApp.toString().contains("com.istv.ystframework.browser.ott.GefoActivity"))){
Log.i(TAG,"go in com.istv.ystframework.browser.ott.GefoActivity treat");
				int mPlayTime = MediaPlayer.mSoftDetectorTime;
				long getTime = System.currentTimeMillis();
				Intent mIntent = new Intent("MEDIA_PLAY_MONITOR_MESSAGE");
				Context mmContext = null;

				//add details of softdetect msg
				int mPlayID = SystemProperties.getInt("media.softdetector.playid",1);
				mIntent.putExtra("ID",mPlayID);
				mIntent.putExtra("TYPE","PLAY_QUIT");
				mIntent.putExtra("TIME",getTime);
				mIntent.putExtra("PLAY_TIME",mPlayTime);
				Log.i(TAG,"mPlayID is:"+mPlayID+"  mPlayTime is:"+mPlayTime);
				mContext.sendBroadcast(mIntent);
	Log.i(TAG,"out com.istv.ystframework.browser.ott.GefoActivity treat");
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).