Lines Matching refs:activity
262 final Activity activity) { in onShowMapClicked() argument
282 Toast.makeText(activity, in onShowMapClicked()
296 activity.startActivity(new Intent( in onShowMapClicked()
315 Activity activity) { in showExifInformation() argument
343 setLatLngDetails(d, activity, exif); in showExifInformation()
368 final Activity activity) { in onDetailsClicked() argument
376 new AlertDialog.Builder(activity); in onDetailsClicked()
378 final View d = View.inflate(activity, R.layout.detailsview, in onDetailsClicked()
392 : Formatter.formatFileSize(activity, length); in onDetailsClicked()
419 activity.getString(R.string.details_dimension_x), in onDetailsClicked()
444 showExifInformation(image, d, activity); in onDetailsClicked()
488 final Activity activity) { in onCropClicked() argument
498 activity.startActivityForResult( in onCropClicked()
507 final Activity activity) { in onSetAsClicked() argument
515 activity.startActivity(Intent.createChooser(intent, in onSetAsClicked()
516 activity.getText(R.string.setImage))); in onSetAsClicked()
524 final Activity activity) { in onImageShareClicked() argument
536 activity.startActivity(Intent.createChooser(intent, in onImageShareClicked()
537 activity.getText(isImage in onImageShareClicked()
541 Toast.makeText(activity, isImage in onImageShareClicked()
553 final Activity activity) { in onViewPlayClicked() argument
559 activity.startActivity(intent); in onViewPlayClicked()
567 final Activity activity, final Runnable onDelete) { in onDeleteClicked() argument
571 deleteImage(activity, onDelete, image); in onDeleteClicked()
580 final Activity activity, in addImageMenuItems() argument
633 return onCropClicked(onInvoke, activity); in addImageMenuItems()
647 return onSetAsClicked(onInvoke, activity); in addImageMenuItems()
659 return onImageShareClicked(onInvoke, activity); in addImageMenuItems()
674 return onDeleteClicked(onInvoke, activity, in addImageMenuItems()
687 return onDetailsClicked(onInvoke, handler, activity); in addImageMenuItems()
700 handler, activity); in addImageMenuItems()
712 return onViewPlayClicked(onInvoke, activity); in addImageMenuItems()
762 static void deletePhoto(Activity activity, Runnable onDelete) {
763 deleteImpl(activity, onDelete, true);
767 Activity activity, Runnable onDelete, IImage image) {
768 deleteImpl(activity, onDelete, ImageManager.isImage(image));
772 Activity activity, Runnable onDelete, boolean isImage) {
774 .getDefaultSharedPreferences(activity)
779 String title = activity.getString(R.string.confirm_delete_title);
780 String message = activity.getString(isImage
783 confirmAction(activity, title, message, onDelete);
821 static void addCapturePictureMenuItems(Menu menu, final Activity activity) {
827 return onCapturePictureClicked(activity);
832 private static boolean onCapturePictureClicked(Activity activity) {
836 activity.startActivity(intent);
843 static void addCaptureVideoMenuItems(Menu menu, final Activity activity) {
849 return onCaptureVideoClicked(activity);
854 private static boolean onCaptureVideoClicked(Activity activity) {
858 activity.startActivity(intent);
865 public static void addCaptureMenuItems(Menu menu, final Activity activity) {
866 addCapturePictureMenuItems(menu, activity);
867 addCaptureVideoMenuItems(menu, activity);
887 public static void showStorageToast(Activity activity) {
888 showStorageToast(activity, calculatePicturesRemaining());
891 public static void showStorageToast(Activity activity, int remaining) {
897 noStorageText = activity.getString(R.string.preparing_sd);
899 noStorageText = activity.getString(R.string.no_storage);
902 noStorageText = activity.getString(R.string.not_enough_space);
906 Toast.makeText(activity, noStorageText, 5000).show();