Share via

Camera in Xamarin Android

Alessio Camaroto 81 Reputation points
2021-07-27T20:51:22.227+00:00

I want to add camera to my xamarin android app. I dont' want to capture photo I want to stream live video and then process it in real time. I need a simple example of camera in xamarin android (in FrameLayout position).

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@ hide /appbar_scrolling_view_behavior"
tools:showIn="@layout/app_bar_main">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:contentDescription="pippo"
android:id="@+id/imageView1"/>
</RelativeLayout>

Thanks
Alessio

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.