INTEGRATING APPLICATION DELPHI XE7 ANDROID WITH TWITTER
Both desktop and mobile, in development on several occasions the need to have our application interact with other applications of the target platform in our development.
how can send sms form delphi app in android?
please see this examples
Example 1:
uses
wifimanag is wifimanag is = (wifimanag is) getsystemservi by (context.wıfı_servı by); wifiınfo Winfo = wifimanager.getconnectionınfo (); String MacAddress = wınfo.getmacaddress ();
Uses {$ IFDEF IOS} iosapi.uıkit; {$ ENDIF} there is {$ IFDEF IOS} Device: uıdevi end; {$ ENDIF} begin {$ IFDEF IOS} Device: = tuıdevice.wrap (tuıdevice.occlass.currentdevi by); ShowMessage (device.uniqueıdentifier.utf8string); ShowMessage (device.identifierforvendor.uuıdstring.utf8string); {$ ENDIF} end;
uses
System.IOUtils;
procedure PlayAudio(ResourceID: string);
var
ResStream: TResourceStream;
TmpFile: string;
begin
ResStream := TResourceStream.Create(HInstance, ResourceID, RT_RCDATA);
try
TmpFile := TPath.Combine(TPath.GetTempPath, 'tmp.mp3');
ResStream.Position := 0;
ResStream.SaveToFile(TmpFile);
MediaPlayer1.FileName := TmpFile;
MediaPlayer1.Play;
finally
ResStream.Free;
end;
end;
PlayAudio('Resource_1');