element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.38k stars 724 forks source link

Improve user experience for sending instant photos #4412

Open AdamTomaja opened 2 years ago

AdamTomaja commented 2 years ago

Your use case

What would you like to do?

Add new button in chat view with camera icon. When user clicks the button, application will instantly open the camera view. After creating the photo it will be sent to recipient.

Why would you like to do it?

In my opinion current implementation for creating photos/videos and sending is not very user friendly. Especially when I want to make fast photo and send it.

Currently i have to make 6 taps on screen to take photo and send it :)

How would you like to achieve it?

Im thinking about something similar to FB messenger implementation . image

The camera icon placed next to text field, it will hide when user clicks text area to input text.

The best solution would be to create custom 'photo/video taking' view, but first step can be only for photo, using standard android intent.

Have you considered any alternatives?

No response

Additional context

No response

AdamTomaja commented 2 years ago

Hello @bmarty Just implemented working prototype of such functionality.

Using "androidx.camera:camera-camera2" library.

After tapping additional "camera button", the popup pops out with preview.

image

For sure it should look better in terms of the design etc in prod version.. . but wanted to ask You if such feature will be welcome in the app :)

code: https://github.com/AdamTomaja/element-android/commit/79a7a5605db55007fc9d17674801300caafdc0a1

Best regards, Adam

daniellekirkwood commented 2 years ago

@amshakal will review this and make a recommendation on a solution. We can also add tracking to this selection and find how many users take a photo in the app vs adding from the gallery. We may be able to provide our own camera solution where users would not need this decision.