Where is the image of the camera? (Camera whitout library)

Der Mond

Member
Licensed User
Longtime User
Hi,
I'm trying to use the intent "android.media.action.IMAGE_CAPTURE" to
take pictures without using the library AdvancedCamera.

The used code is:
============================================
URI_File = "file:/" & File.Combine(File.DirRootExternal & "/MY_DATA/TEMP", "my_photo.jpg") 'Create path + file of the my photo

Log(URI_File) '---> file://mnt/sdcard/MY_DATA/TEMP/my_photo.jpg

ObjectIntent.Initialize("android.media.action.IMAGE_CAPTURE","")
ObjectIntent.PutExtra("output", URI_File) 'Set Output
StartActivity(ObjectIntent) 'Start CAMERA
============================================

Everything works perfectly, but unfortunately it does not save any files.

Where am I wrong? Have you got an example for me?

Thanks a lot
Vincenzo




------------------------------------------------------------------------------------------------------
Italian:
Sto cercando di utilizzare l'intent "android.media.action.IMAGE_CAPTURE" per
scattare delle foto senza utilizzare la libreria AdvancedCamera.

Il codice utilizzato è questo:
============================================
URI_File = "file:/" & File.Combine(File.DirRootExternal & "/MY_DATA/TEMP", "my_photo.jpg") 'Create path + file of the my photo

Log(URI_File) '---> file://mnt/sdcard/MY_DATA/TEMP/my_photo.jpg

ObjectIntent.Initialize("android.media.action.IMAGE_CAPTURE","")
ObjectIntent.PutExtra("output", URI_File) 'Set Output
StartActivity(ObjectIntent) 'Start CAMERA
============================================

Funziona tutto perfettamente ma purtroppo non salva nessun file.

Dove sto sbagliando? Avete un esempio da darmi?

Grazie 1000
Vincenzo
 

Der Mond

Member
Licensed User
Longtime User
Thanks for your answer
I tried to use the library AdvancedCamera but some properties
like "getCurrentPictureSize" and "getSupportedPictureSize" return values ​​that I can not understande.
For example, the code:
=============================================================
.......
Dim lst as list

lst.AddAll(Camera1.getSupportedPictureSize)
For i=0 To lst.Size-1
Log(lst.Get(i))
Next
=============================================================

Returns the values:

android.hardware.Camera$Size@3fe4e00
android.hardware.Camera$Size@32ea628
android.hardware.Camera$Size@27ef0c0
android.hardware.Camera$Size@13f7860

What are these one? How can I use them?

Forgive me if it's a stupid question.

Thanks a lot
Vincenzo
 
Upvote 0

Der Mond

Member
Licensed User
Longtime User
Thanks for the reply,
I am waiting for the new release of your library.

Thanks a lot
Vincenzo
 
Upvote 0

Roger Garstang

Well-Known Member
Licensed User
Longtime User
Has this been revisited in current Android versions? I've seen some posts in other forums that seem to indicate it is returning the full size image now. The camera itself works fine if I could just get it to save the file. Currently none of the Camera libraries give me what I need. As one of my main apps makes full use of a camera for its tasks I'd need to find an alternative way of doing the app if B4A can't make use of the camera. Using it this way is much like how Win Mobile did it and worked fine.
 
Upvote 0
Top