intent

  1. ViMeAv ICT

    Android Question Using intent, broadcast receiver and SDK version

    I'm getting something very strange, when using attached standard service, to receive an intent. This works well when using <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="25"/> But when I use <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="30"/> nothing is...
  2. G

    Android Question Intent Set & Add Flags

    Hello everyone. I want add these two lines in my code. lvIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); lvIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); Is there anyway to do it? Thank you in advance.
  3. yo3ggx

    Android Question Capture buttons from a Bluetooth audio device

    Hello, I have a Bluetooth audio device (mic+speaker) with 3 more buttons. Tried to capture following intents using BroadcastReceiver: "android.intent.action.MEDIA_BUTTON" "android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT" Tried to request AudioFocus and start a mediaplayer ( as...
  4. A

    Android Question How to open a PDF with Intent inside a panel?

    Hi all. I have a question. I need to select a PDF on the user's phone (user will select this file), then open it and show the content to the user. If the user selected the correct file, I want him to confirm it by clicking a button below to save the file name in the local database. I'm using...
  5. R

    Android Question AU.startActivitywithResult

    Hi everyone, I'm trying to get a response from a call via INTENT Dim intent1 As Intent intent1.Initialize("com.xxxxxx.action.xxxxxxxxxxx", "xxxxxxxxx://xxxxx.com/0/") intent1.SetPackage("com.xxxxx.xxxxx") intent1.AddCategory("android.intent.category.DEFAULT")...
  6. carlos7000

    Spanish Obtener información de Sensor laser.

    ¡Hola a todos! Recientemente adquirí un equipo que cuenta con un sensor láser incorporado para medir distancias. Sin embargo, la aplicación preinstalada en el dispositivo es bastante básica y no aprovecha todo el potencial del sensor. Estoy muy interesado en desarrollar una aplicación...
  7. H

    Android Question Error Google Play API 31 broadcast receiver Filter Intent

    Hello. When I changed the targetSdkVersion to work with api 31, I started to show the following message when I did the Uploading the app to Google Play: You've uploaded an APK or Android App Bundle that has an activity, activity alias, service, or broadcast receiver with an intent filter, but...
  8. Star-Dust

    Android Question [SOLVED] Difficulty with new receivers to communicate with intents

    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...
  9. yo3ggx

    Android Question Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE ...

    Hello, When I run the application I get the following error: notification_createnotification (java line: 204) java.lang.IllegalArgumentException: ro.yo3ggx.rxtxe: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent...
  10. Marcos Alves

    Android Question Share Image With Text (Caption) - Instagram and/or Twitter

    Hello all, I noticed that there are some alerts about Instagram deprecating receiving images with texts/captions pre filled. Is it true? If is possible, how can be done? Does anybody have a code sample? Thanks!
  11. B

    Android Question Receiver service starting intent bluetooth extras problem

    Hi all, in my project there's a service module that listen for the ACTION_ACL_DISCONNECTED event. When it occurs, I want to analyze the intent's extras available in the Service_Start Sub. In the Android developer page they said that the Broadcast Action "Always contains the extra fields...
  12. swChef

    Android Example Custom Intent Provider Requester Services, updated for Android 11 (API 30)

    Not long ago Don provided example Provider Requester Activity based communication via Intents. Although that Activity version had some hints in it for Service based version, it took several additional steps to get it working (Service Intent must be explicit, which may reflect more on my...
  13. Alex Guerrero

    Android Question How to select an option in an AlertDialog with intent

    Hello everyone, lately when I want to share a file I get an alertdialog 'want to share with...' with two options, 'Cancel' and 'Ok', in some cases I require 'Cancel' and in others 'Ok', I don't want the user to choose it, therefore I want to handle it with an intent, I have tried several...
  14. Duque

    Android Question [RESOLVED]Open android.settings.APP_NOTIFICATION_SETTINGS

    Greetings This worked until https://www.b4x.com/android/forum/threads/i-need-open-a-app_notification_settings-via-intent.73532/#post-476761 VERSION.SDK_INT 25 Since then he says: VERSION.SDK_INT 26, 27, 28, 29, 30... "The application is not in the list of installed applications" After reading...
  15. epiCode

    Android Question Headphone Media Button

    Can some please help with working example of media button detection ? Searched the forum, but mostly devs sharing their issues - no successful/working example (recent)
  16. S

    B4A Class Class media

    Hi, 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 cVideo=1 cAudio=2 2 constants for origin cNew=0 cChoose=1 1 method to call with 2 parameters (media...
  17. NachoImperium

    Android Question Broadcast listener isn't working on real phone

    Hey, 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...
  18. Programing Center

    Android Question Intent without remember my choice

    Hi all. I want to make intnet without 'remember my choise' option. How? First Pic have 'Remember my choise' but second Pic dosn't have this option.
  19. sadeq.hitex

    B4A Library Hitex Intent

    Hitex Intent is a almost complete intent Methods: Initialize Initialize2 (Obj As Object) obj can be : String Action and ... B4A Activity Class<?> Intent _____________ Example 1 : StartActivity(Intent.Initialize2(Main2).PutExtra("number","123456789")) In Main 2 : Dim Intetnt As...
  20. Programing Center

    Android Question Installer intent

    Hi All. 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 AddPermission(android.permission.REQUEST_INSTALL_PACKAGES) For a way I want...
Top