B4A Tutorial [B4X] [B4XPages] Intent based camera - Erel    
Jul 23, 2024   
(17 reactions): MediaChooser - cross platform videos and images chooser
B4A + B4i project that uses an intent in B4A and the Camera object in B4i to take a picture using the default camera app.
The B4A code depends... stack.
The change adds a line before and after the Wait For Camera_Complete call:
Dim TopPage As String = B4XPages.GetManager.GetTopPage.Id
Wait For Camera_Complete (Success As Boolean, Image As Bitmap...
link: the camera intent is sent. This prevents the OS from killing the app while it is in the background...
B4A Tutorial Intent Based Camera - Erel    
Sep 19, 2021   
(20 reactions)Newer example: Intent based camera
This example uses an intent to take a picture with the default camera app.
It is based on this tutorial: https://developer.android.com/training/camera... on the default camera app to work properly and save the image file in the path passed in the intent.
As a fallback, if the image was not saved it tries to get the thumbnail from the intent returned.
Don't...
link: I use this intent taking photo:
https://www.b4x.com/android/forum/threads/intent-based-camera...
B4A Question Failed to find configured root ... using CameraIntent ... since B4A-Version 10.70 - JOTHA    
Mar 21, 2021Hello Community,
since I've installed B4A-Version 10.70 there is a new problem when using CameraIntent
(see Android Tutorial Intent based camera)
Error-message:
** Activity (main) Resume...
link:
No, unless the camera app enforces such limit.
Where is an example that the APP forces the limit?...
link:
Is it possible that only square photos can be taken?
No, unless the camera app enforces...
link:
Does it work?
Hello Erel,
your original code works fine!
I guess I made a mistake while transferr...
B4A Question Getting data back from camera app intent - IronSharpensIron    
Sep 8, 2011Still trying to wrap my head around how B4A handles intents. What I am looking to do is create an intent to launch the camera application:
Dim camintent as Intent
camintent.Initialize("android.media.action.IMAGE_CAPTURE","")
StartActivity(camintent)
works just fine, but what I need is to get the image from that transaction. Either filename (better for me), or image data.
Thanks,
-Sean...
B4A Question Issues with CameraIntent. display and save picture - GMan    
Sep 22, 2024I am using the CameraIntent to make a picture.
All is working fine, Permissions are set, Preview... a picture:
Camera1.TakePicture
I only want to put the taken image in an ImageView...
link: Private Sub TakePicture (TargetWidth As Int, TargetHeight As Int)
Dim i As Intent...
link: I am also using this sample , but have problems to implement the file section...
link: I just tried
https://www.b4x.com/android/forum/threads/b4x-b4xpages-intent-based-camera.120721/
and...
B4A Question image orientation from CameraIntent - peacemaker    
Oct 15, 2018HI, All
Any fresh solution for correct photo orientation got from the camera intent ?
CameraIntent sample gives the overturned photo on ImageView, if it was shot in the landscape mode.
I guess, it must be JPG EXIF info is checked firstly, but no sample was found on the forum....
link: I used Andrew Graham's jpegutils https://www.b4x.com/android/forum/threads/jpegutils-library-gives-access-to-exif-data.11629/#content
There some global variables in code bellow, but I think, in g...
B4A Question Native camera intents help - Douglas Farias    
Jul 20, 2016 the camera.
on this link u will see intent codes and one example.
https://developer.android.com/training/camera/photobasics.html
i m trying compile this intents for b4a
i m with a problem on the get...
link: lollll many many thx erel u is the best...
link: See this example: https://www.b4x.com/android/forum/threads/intent-based-camera.69215/...
link: that there's a camera activity to handle the intent
if (takePictureIntent.resolveActivity...
B4A Question b4xpages intent camera, foreground service with sdk 34 - John Leeson    
Jul 12, 2024Good morning,
in the b4xpages intent based camera, a foreground service is called in b4a, but I don't think this now works when the target version is 34
intent based camera
I'm not sure...
link: The most suitable type is shortService: https://developer.android.com/about/versions/14/changes/fgs-...
link: Thank you, simply adding these lines to the manifest does the trick.
SetServiceAttribute(KeepRunnin...
link: Read this
https://www.b4x.com/android/forum/threads/targetsdkversion-34-foreground-service-for-medi...
B4A Question Camera Intent triggers OK/Retry on phone, but returns an empty/0-byte image file on Android 14+ (TargetSDK 36) - teddybear (first post)    
Aug 30, 2026
I'm using Camera2 https://www.b4x.com/android/forum/threads/camera2-new-camera-library.83855/
This seems to be not related to the issue with this thread....
link: /getting-data-back-from-camera-app-intent.11378/...
link: anythting in Starter module. See the tutorial by Erel
I'm using Camera2 https://www.b4x.com/android...
link: .PERMISSION_CAMERA)
Starter.rp.CheckAndRequest(Permission)
Wait For...
B4A Question CameraIntent: how to make photo into Gallery ? - peacemaker    
Oct 17, 2018HI, All
I'm using CameraIntent, but it would be convenient to shoot like normal camera that saves photos into Gallery.
If some interruption - the user can later open those photo from Gallery by FileProvider.
Any help ?...
link: You will need to add the image to the gallery yourself. Example: https://www.b4x.com/android/forum/threads/show-image-in-gallery-android-7-0.97662/#post-615939...
Page: 1  
2  
3  
4  
5