This tutorial will teach you how to build an Android app to control a Q7 Camera P2P WIFI using the Android Studio development environment.
I create a new project with application name "Q7Camera". During the wizard i add a basic activity.
<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" />
<SurfaceView android:id="@+id/surfaceView_video" android:layout_width="match_parent" android:layout_height="match_parent" />
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: https://github.com/brusdev/q7cam/tree/master/app/src/main/jniLibs/armeabi. Copy the previous library in the path "app/src/main/jniLibs/armeabi" of your project. The packages to import are x1.Studio.Core at https://github.com/brusdev/q7cam/tree/master/app/src/main/java/x1/Studio/Core and com.microembed.sccodec at https://github.com/brusdev/q7cam/tree/master/app/src/main/java/com/microembed/sccodec.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" />
Hello, try the app and it reports these errors in the LOGCAST:
ReplyDeleteW/linker: /data/app/com.brusdev.q7cam-2/lib/arm/libSCCodec.so has text relocations. This is
wasting memory and prevents security hardening. Please fix.
W/linker: /data/app/com.brusdev.q7cam-2/lib/arm/libchinalink.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
W/linker: /data/app/com.brusdev.q7cam-2/lib/arm/libsystem.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
any ideas ?
thank you very much.
note: the app runs fine but does not show my q7 camera.
ReplyDeleteIt was right here that the one zero roulette wheel became the premier sport, and over time was exported around the globe, besides in the United States the place the double zero wheel had remained dominant. The roulette wheels used in the casinos of Paris in the late 1790s had purple for the one zero and black for the double zero. To keep away from confusion, the colour green was chosen for the zeros in roulette 우리카지노 wheels beginning in the 1800s. Between two and 6 gamers are recommended to participate in Live Roulette video games. The bulk of casino tables seats no more than|not more than} seven gamers concurrently. In order to protect an equal taking part in} field, one of many online roulette gamers ought to assume the position of the dealer; we advocate that this particular person remain nameless.
ReplyDelete