An easy way to take/record/choose photo/video/audio with this small class (clMedia.bas).
No permission needed
It uses intents to call default app.
3 constants for media type
cPhoto = 0
2 constants for origin
1 method to call with 2 parameters (media...
my app should inform the user as soon as you receive an SMS.
The permissions etc. I have already assigned everything, in my emulator everything works perfectly but unfortunately not with my real phone (Xiaomi). The Android version is the same, what is the reason...
Hitex Intent is a almost complete intent
Initialize2 (Obj As Object)
obj can be :
Action and ...
Example 1 :
In Main 2 :
Dim Intetnt As...
I want to show the installation file of the application file in the internal folder of my application to the user.
In the market where I want to publish the application, I have a problem with the following access
For a way I want...
I ran my project in V 9.8.
PhoneCalls was not worked properly.
I declared "AddPermission(android.permission.CALL_PHONE)" in Manifest file.
I used not only "Intent" but also "PhoneCalls".
Both was not worked properly.
When I clicked on "imvPhone" (imageView), the app run out on the running.
This Code run perfectly when call from activity.
Sub CreateFileProviderUri (Dir As String, FileName As String) As Object
Log(Dir & " : " & FileName)
Dim FileProvider As JavaObject
Dim context As JavaObject
Hi, I need to open notifications settings via intent, on Android 7 I used the this code below and works fine, but in Android 9 or 10 it returns "activity not found".
Dim in1 As Intent
Dim jo As JavaObject
I've been working on an application that uses intent to send information via Whatsapp, twitter, Facebook, etc.
The problem I've run into is that the first time I run the app, I get a list of all the methods available to send information on my phone. The second time I use the app, I don't have...
I'm experimenting with the intent based camera by Erel and would like to alter this code in TakePicture so the confirmation screen with "Ok" and "Retry" is not displayed so execution goes directly to ion_Event.
Dim i As Intent...
This is a class (clsCameraIntent) inspired by this thread.
It adds Video support.
One line of code in your activity to call the camera intent
One Callback sub in your activity to get the dirame and filename of the picture/video taken/recorded
Demo Project with class in zip attached
Hello everyone, i'm currently trying to wrap a library for a POS system, the device has a built in app which makes it really easy to do all the Transactions between customer and banks, the app is called using a number of intents, they have provided a Class which defines all the actions and extra...
I tried to use Erel's new class (https://www.b4x.com/android/forum/threads/class-fileprovider-share-files.97865/#content) to share an image. I tried to share an image by the example of sharing a file, but the app crashed...
Does anybody have an example of sharing an image(only) using...
Hi I'm having problems with the FileProvider, I can not open pdf files with an external app. I use an intent to view other apps, but no apps appear in the selection panel, a message appears saying (that the app for this intent has either been blocked or not installed) but outside of my app in...
I'm using the following code to save an image to the gallery.
Dim Out AsOutputStream
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "PI.jpg", False)
bmp.WriteToStream(Out, 100, "JPEG")
I'm working with Voice Recognition and I would like to show the Voice Settings to the user. I know this can be done but I can't figure out the exact intent required.
This is the screen that I want to show:
Could someone tell me what the Intent would be to show this screen and also the...
This is my code which is running when i click to button
Dim obj4Url As Object
If ph.SdkVersion < 24 Then
Dim uri As Uri
uri.Parse("file://" & File.Combine(imageFolder, "iv1.jpg"))
obj4Url = uri
Dim FileProvider As JavaObject
Dim context As...
I was trying this code to open a package in playstore:
Dim fURI As String
fURI = "market://details?id=com.b4a.example"
Dim Market As Intent
However, it gives an option to any of the two android marketplaces...