Back to project page FireCast.
The source code is released under:
MIT License
If you think the Android project FireCast listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.google.plus.dougnlamb.firecast; /* w w w .j a v a2s . c o m*/ import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.KeyEvent; import android.view.Menu; import android.widget.TextView; public class VideoControlsActivity extends FragmentActivity { TextView mTextView = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_video_controls); mTextView = (TextView) findViewById(R.id.name); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. // getMenuInflater().inflate(R.menu.video_controls, menu); return true; } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { MultimediaControlsFragment f = (MultimediaControlsFragment) getSupportFragmentManager().findFragmentById(R.id.multimedia_controls); if( f!= null ) { if( f.handleKeyDown(keyCode, event)) return true; } return super.onKeyDown(keyCode, event); } }