In this tutorial You will learn How You can Develop Nokia’s Bothie like Camera Application for Android.

We will be using Camera2 API in Android.

How to final Application will work?

Please Note that We Cannot Open two camera instances at the same time in Android. Why? Because there is no such way. Android Simply do not allow you to open Both Camera’s Front and Back at the same time.

So What are we going to Do?

We will open Both Camera’s almost simultaneously.

First We will open Back Camera of Android Programatically. After the user takes picture from Back Camera.

We will immediately close Back Camera and Will open Front Camera and Front Camera will automatically capture your picture (Selfie). This process of closing Back Camera and opening Front Camera will almost take few milliseconds.

After Both the Pictures are taken we will write a code which will combine both Images/Bitmaps into One Image.

And the resulting Image will be saved on local storage.

This Application is also available on Google Play Store.

We (Developine) do not misguide our beloved readers/users. So we have not claimed that our Application can take pictures from Front and Back Camera at the same. Because this is not possible (Trust us). So there will be delay of few milliseconds in Both Pictures!

Recommended Articles from Developine:

http://developine.com/difference-between-kotlin-native-and-flutter-a-comparison/

http://developine.com/building-android-mvp-app-in-kotlin-using-dagger-retrofit/

http://developine.com/develop-android-image-gallery-app-kotlin-with-source-code/

copyright: http://developine.com/

2 Responses

  1. Completely perceive what your stance on this matter. Although I might disagree on some of the finer particulars, I believe you probably did an awesome job explaining it. Positive beats having to research it on my own. Thanks. Anyway, in my language, there are usually not much good source like this.
    Monsoon outlet http://www.monsoonclothingshop.com

  2. Long time reader, first time commenter — so, thought I’d drop a comment..
    — and at the same time ask for a favor.

    Your wordpress site is very simplistic – hope you don’t mind me asking what theme you’re using?
    (and don’t mind if I steal it? :P)

    I just launched my small businesses site –also built in wordpress like
    yours– but the theme slows (!) the site down quite a bit.

    In case you have a minute, you can find it by searching for
    “royal cbd” on Google (would appreciate any feedback)

    Keep up the good work– and take care of yourself during the coronavirus
    scare!

    ~Justin