![]() Data: the data to operate on, expressed as Uri.Action: the general action to be performed.The primary pieces of information in an intent are: else ShowMessage ( 'Receiver not found' ) end 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. Note: Send both applications to the same Android device, otherwise you need to use push notifications.
0 Comments
Leave a Reply. |