

- #USING INTENTS TO OPEN ANY FILE ANDROID HOW TO#
- #USING INTENTS TO OPEN ANY FILE ANDROID ANDROID#
- #USING INTENTS TO OPEN ANY FILE ANDROID CODE#
This function handles the intent the first time ReceiveIntent opens.

It receives and shows the text from the SendIntent application. ReceiveIntent project has one source file, Unit1.pas.

startActivity ( Intent ) //Calls startActivity() to send the intent to the system. size > 0 then //Checks if there is at least one application capable of receiving the intent. queryIntentActivities ( Intent, TJPackageManager. EXTRA_TEXT, StringtoJString ( AText )) if MainActivity. setType ( StringToJString ( 'text/pas' )) // Defines the data string.

SendTextViaIntent ( const AText : string ) var Intent : JIntent //Declares the intent object begin Intent := TJIntent. It uses the SendTextViaIntent procedure to create the intent object and start the activity for this intent. SendIntent application sends text using an intent. SendIntent project has one source file, Unit1.pas.
#USING INTENTS TO OPEN ANY FILE ANDROID ANDROID#
Note: Send both applications to the same Android device, otherwise you need to use push notifications. Select SendIntent on the Project Manager.Note: ReceiveIntent needs to be on the device to receive the broadcast information. Select the Android device on the Project Manager.Select ReceiveIntent on the Projects Window.Open the sample application group project file: oupproj.A corresponding and tags must exist in the section. Registers the receiver in the Android Manifest file.On the receiver you need to register the type of intent action that you want your application to be able to receive.Calls startActivity() when there is at least one application capable of receiving the intent.
#USING INTENTS TO OPEN ANY FILE ANDROID HOW TO#
This sample demonstrates how to register an Android intent action. Search by name into the samples repositories according to your RAD Studio version.
#USING INTENTS TO OPEN ANY FILE ANDROID CODE#
