B4A Tutorial Intent Filters - Intercepting SMS messages in the background - Erel    Jan 13, 2023   (14 reactions) SmsInterceptor objects from the Phone library also use dynamic registration to listen for common intents... is that dynamic receivers listen to intents as long as the process is running. Static receivers... killed. This means that you cannot rely on dynamic receivers to intercept intents when your... type of intents then you may prefer to use a static receiver. Note that some intents can only... intents to the service. For example when you call StartServiceAt, it is the receiver that actually... B4A Tutorial [B4X] [B4XPages] Intent based camera - Erel    Jul 23, 2024   (17 reactions) This solution will not work with Android 14+. Please use the more powerful MediaChooser instead: 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 on JpegUtils: https://www.b4x.com/android/forum/threads/11629/#content It rotates the bitmap based on the EXIF orientation attribute. Don't miss: - Manifest code in B4A. - #PListExtra in main... B4A Tutorial Intent Based Camera - Erel    Sep 19, 2021   (20 reactions)   tags: Erel, camera, intent, Fotos, camera intent 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/photobasics.html It is simple to use and doesn't require any permission (*). It does rely 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... B4A Question android.intent.action.MEDIA_BUTTON again... - lemonisdead    Jan 2, 2015   (1 reaction) as I am not still understanding the intent process so perhaps my code is not for this button ? AddReceiverText(MyService, <intent-filter> <action android:name="android.intent.action.MEDIA_BUTTON" /> </intent-filter>) Many thanks :)... B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    Nov 1, 2024   (46 reactions) (Source As InputStream, MimeType As String, Title As String) As ResumableSub Dim intent As Intent intent.Initialize("android.intent.action.CREATE_DOCUMENT", "") intent.AddCategory("android.intent.category.OPENABLE") intent.PutExtra("android.intent.extra.TITLE", Title) intent.SetType(MimeType) StartActivityForResult(intent) Wait For... Dim result As Intent = Args(1) Dim jo As JavaObject = result Dim ctxt... B4A Example Intents and receivers - Star-Dust    Feb 2, 2023   (21 reactions) With the new imodules that allow you to work better with the intent and receivers, it is necessary... way). SOME DETAILS This B4A update handles static receivers not dynamic ones. Some intents no longer... can be raised by the OS listening to the intent or directly by an App calling the intent directly SAMPLE: LISTEN USB PORT I start with an example that through the use intent it is possible to... the intents. Remember to place the filter XML file in the object/res/xml folder as it is in the example... B4A Question Can Activity.GetStartingIntent be reset or cleared? - Gregg Homan    Feb 19, 2014   (1 reaction) Hello, I use the code (below) within Activity_Create to process starting intents stemming from multiple images selected via Gallery app's share menu. I also added intent filters (below) to my.... Everything works fine except that the code below keeps seeing the same starting intent each time... named strStartingIntent (below) to 'strong-arm' a solution, but, I am looking for a more elegant way to reset or clear 'something' within the starting intent so that successive calls to... B4A Question making the right app list in intent - help needed - Zeev Goldstein    Sep 6, 2024 this is the code i'm trying to use to send email (below) and the manifest i use it is exactly the code (copied) from @Erel 's post it works perfectly! one issue - the intent opens all... the intent list? what am i doing wrong? thanks my click sub Private Sub Button2_Click Dim FileName... in As Intent = Email.GetIntent in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION 'in.WrapAsIntentChooser("Send Email") StartActivity(in) End Sub manifest - i just... B4A Tutorial [java] Creating libraries for B4A - Erel    Sep 29, 2016   (8 reactions)   tags: Java library, Library, Creation (unlike most other methods that *create an intent object). */ public static...: /** * Using an Email object you can create an intent that holds a complete email message....GetIntent)</code> */ @ShortName("Email") public static class Email...(); Attachments.Initialize(); } /** * Returns the Intent that should be sent with StartActivity. */ public Intent GetIntent() { Intent emailIntent = new Intent... B4A Tutorial [TUTORIAL] Inter-app Communication with Intents - thedesolatesoul    Jun 28, 2013   (18 reactions)   tags: Communications, B4A Inter-app Communicate understand the process, not copy the code. An intent is a way for different applications to communicate... it with startActivity targets the intent to an activity. Broadcast intents are broadcast to all activities, and any applications with an intent filter can listen for it and perform an action. Explicit Intents: The target component (service or activity) is known. (For e.g. an intent to the browser) Implicit Intents: The system will determine which activity is best to launch this intent. (For e.g... Page: 1   2   3   4   5   6   7   |