diff options
author | Owen Lin <owenlin@google.com> | 2009-10-29 21:44:18 -0700 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-10-29 21:55:21 -0700 |
commit | 9c57ded79ff3d986acfed935865a2fc2a7f0d14e (patch) | |
tree | 659edd9a5cf8952949a0bdfc58766fa34700f88a /src/com/android/camera/VideoCamera.java | |
parent | 79bc8acc67097c09907a71c4a5a72ab85eb58087 (diff) | |
download | packages_apps_LegacyCamera-9c57ded79ff3d986acfed935865a2fc2a7f0d14e.zip packages_apps_LegacyCamera-9c57ded79ff3d986acfed935865a2fc2a7f0d14e.tar.gz packages_apps_LegacyCamera-9c57ded79ff3d986acfed935865a2fc2a7f0d14e.tar.bz2 |
remove unused resource files and elements
Change-Id: Ia4e7b9724501c0a1c5c16008390e0116bb409c14
Diffstat (limited to 'src/com/android/camera/VideoCamera.java')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 234fcff..ca53219 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -331,20 +331,6 @@ public class VideoCamera extends NoSearchActivity implements View.OnClickListene } } - private void startShareVideoActivity() { - Intent intent = new Intent(); - intent.setAction(Intent.ACTION_SEND); - intent.setType("video/3gpp"); - intent.putExtra(Intent.EXTRA_STREAM, mCurrentVideoUri); - try { - startActivity(Intent.createChooser(intent, - getText(R.string.sendVideo))); - } catch (android.content.ActivityNotFoundException ex) { - Toast.makeText(VideoCamera.this, R.string.no_way_to_share_video, - Toast.LENGTH_SHORT).show(); - } - } - private void startPlayVideoActivity() { Intent intent = new Intent(Intent.ACTION_VIEW, mCurrentVideoUri); try { @@ -354,7 +340,6 @@ public class VideoCamera extends NoSearchActivity implements View.OnClickListene } } - public void onClick(View v) { switch (v.getId()) { case R.id.btn_retake: @@ -379,14 +364,6 @@ public class VideoCamera extends NoSearchActivity implements View.OnClickListene MenuHelper.deleteVideo(this, deleteCallback); break; } - case R.id.share: { - startShareVideoActivity(); - break; - } - case R.id.play: { - doPlayCurrentVideo(); - break; - } case R.id.review_thumbnail: { stopVideoRecordingAndShowReview(); initializeRecorder(); @@ -420,16 +397,6 @@ public class VideoCamera extends NoSearchActivity implements View.OnClickListene } } - private void doPlayCurrentVideo() { - Log.v(TAG, "Playing current video: " + mCurrentVideoUri); - Intent intent = new Intent(Intent.ACTION_VIEW, mCurrentVideoUri); - try { - startActivity(intent); - } catch (android.content.ActivityNotFoundException ex) { - Log.e(TAG, "Couldn't view video " + mCurrentVideoUri, ex); - } - } - private void discardCurrentVideoAndInitRecorder() { deleteCurrentVideo(); hideAlertAndInitializeRecorder(); |