Simple-Camera icon indicating copy to clipboard operation
Simple-Camera copied to clipboard

Switch between photocamera and camcorder modes by swiping left and right

Open VGumbakis opened this issue 5 years ago • 1 comments

Switch between photo and videorecorder modes by swiping left and right Like in iphone cam app

VGumbakis avatar May 24 '19 09:05 VGumbakis

Try out this: https://github.com/Goody-h/ResidingTab

Well, firstly, you have to use fragments. Second, you have to draw the camera surface and layout. Third, if you plan to support and target to compile with/for Android Q or use androidx libraries, you will have to deal with newest FULLSCREEN permission, read more about it here:

  • https://android-developers.googleblog.com/2019/06/android-q-beta-4-and-final-apis.html
  • https://developer.android.com/preview/behavior-changes-q#full-screen-intents

After that, make it functional with Camera2, or even better use the newest Jetpack CameraX (https://developer.android.com/jetpack/androidx/releases/camera).

Moreover, your app should be compatible with Android OS 5.1 and newer, because you cannot read/write internal & external storage.

  • https://github.com/syncthing/syncthing-android/issues/29

Android 4.0, 4.1, 4.2, 4.3, 4.4 and even 5.0 are affected by the issue of Google, not having an option to change the permission for your application.

You cannot even call the request for permission, because it does not exist as is in the stated Android OS versions, while changing the android manifest.xml file does not help either.

And, you may want some backward compatibility too to support some older Android versions? :smile:

fritexvz avatar Jun 10 '19 01:06 fritexvz

camera has been rewritten from scratch in 5.4.0, so Im closing this

tibbi avatar Oct 15 '22 18:10 tibbi