bind and unbind recording service in onStart and onStop

This commit is contained in:
Jimmy Shih
2012-10-31 11:21:21 -07:00
parent bf5b060123
commit 620b6e09b5
7 changed files with 67 additions and 57 deletions
@@ -51,15 +51,6 @@ public abstract class AbstractMyTracksActivity extends FragmentActivity {
*/
protected abstract int getLayoutResId();
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() != android.R.id.home) {
return super.onOptionsItemSelected(item);
}
onHomeSelected();
return true;
}
/**
* Returns true to hide the title. Be default, do not hide the title.
*/
@@ -73,4 +64,13 @@ public abstract class AbstractMyTracksActivity extends FragmentActivity {
protected void onHomeSelected() {
finish();
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() != android.R.id.home) {
return super.onOptionsItemSelected(item);
}
onHomeSelected();
return true;
}
}