Object documentation: Intent B4A Tutorial Intent Filters - Intercepting SMS messages in the background - Erel    Jan 13, 2023   (15 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 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 Tutorial [B4X] [B4XPages] Intent based camera - Erel    Oct 15, 2020   (17 reactions) 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 module in B4i. B4i code was updated to fix an issue with the top page being removed from B4XPages stack. The change adds a line before and after the Wait... 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    Sep 10, 2023   (43 reactions) 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 ion_Event (MethodName As String, Args() As Object) If -1 = Args(0) Then 'resultCode = RESULT_OK Dim result As Intent = Args(1) Dim... B4A Example Intents and receivers - Star-Dust    Feb 2, 2023   (20 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 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... 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 [SOLVED] Difficulty with new receivers to communicate with intents - Star-Dust    Jan 26, 2023 I'm trying to implement the new receivers but with little success. I enclose several examples below and illustrate the problems encountered 1) I've implemented a receiver that does something when boot completes. It works with Android 7 (after about 2/3 minutes from full boot) it doesn't work with Android 12. Am I doing something wrong? I attach the example... 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... Page: 1   2   3   4   5   6   7   |