Android Question Try tu use Camera2

frederic

Member
Licensed User
Longtime User
Hello,

I would like to use Camera2 on my Samsung Galaxy GT19300, but I don't pass the compilation step.

I obtain this error:

"
B4A Version : 8.00
Analyse du code. (0.63s)
Compilation du code. (2.83s)
Compilation du code des layouts. (0.16s)
Organiser les bibliothèques. (0.00s)
Génération du fichier R. (4.53s)
Compilation du code Java. Error
B4A line: 255
Dim PreviewBuilder As JavaObject = Camera.Create
javac 1.8.0_161
src\b4a\example3\camex2.java:400: error: cannot access CameraAccessException
_previewbuilder.setObject((java.lang.Object)(parent._camera.CreatePreviewBuilder()));
^
class file for android.hardware.camera2.CameraAccessException not found
"
Is somebody to give me the solution?
Thanks by advance
fred
 

DonManfred

Expert
Licensed User
Longtime User
Which android version is running on this device?
 
Upvote 0

frederic

Member
Licensed User
Longtime User
Ok I note the recommendation, but
how is it that the device is not incriminated, since it does not go to compilation on my PC with B4A V8.0? I do not understand.
thanks for the responds.
frédéric
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i do not understand the question

You are using the B4A SDK Manager? And have setup a new SDK with it and also configured the IDE to use the newly installed SDK?

What is the android jar you have defined in Tools-Configure paths?`Please post a Screenshot of this Dialog. Or just the paths you set there...
 
Upvote 0

frederic

Member
Licensed User
Longtime User
Yes I use the B4A SDK Manager.

here the paths:
"
javac.exe: C:\Program Files\Java\jdk1.8.0_161\bin\javac.exe
android.jar: C:\Users\Frederic\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platforms\android-18\android.jar
additionnel biblio: C:\Program Files (x86)\Anywhere Software\Basic4android\AddLibraries
"

I see the problem.
My question is : where can I upload the android jar versus 21 ?
thanks
frédéric
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
android.jar: C:\Users\Frederic\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platforms\android-18\android.jar
Does´nt look correct

Watch the installation-Video and follow it. Use a empty folder to start like in the video.
https://www.b4x.com/b4a.html
 
Upvote 0
Top