Build an Android app to control a Q7 Camera P2P WIFI

This tutorial will teach you how to build an Android app to control a Q7 Camera P2P WIFI using the Android Studio development environment.

Start a new project

I create a new project with application name "Q7Camera". During the wizard i add a basic activity.

Import native libraries and sources

To control the camera you need the libraries at this link: Copy the previous library in the path "app/src/main/jniLibs/armeabi" of your project. The packages to import are x1.Studio.Core at and com.microembed.sccodec at

Edit the manifest

To use the native libraries you need to add the following permissions to the manifest:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Edit the activity layout

I add the following sv to the activity layout to show the camera:
<SurfaceView android:id="@+id/surfaceView_video" android:layout_width="match_parent" android:layout_height="match_parent" />

Edit the activity source

To show the camera in an activity, it needs to implements the interfaces SurfaceHolder.Callback and IVideoDataCallBack, you can find an example here:


You can find the repository with the complete example here:


Popular posts from this blog

Smart solar water heating solution to take part in the Open IoT Challenge 4.0!

Smart solar water heating solution final report for Open IoT Challenge 4.0!

IoT cloud platform with EnMasse and Apache Spark using Red Hat OpenShift