1 2 3 4 |
{$IFDEF ANDROID},Androidapi.JNI.GraphicsContentViewText, FMX.Helpers.Android, IdURI, Androidapi.JNI.JavaTypes, Androidapi.Jni.Net, Androidapi.JNIBridge {$ENDIF}; |
The Java TimeInMills is similar to UnixTime but is in Millisenconds, so to convert it :
1 |
JavaTimeinMills := DateUtils.DateTimeToUnix(now) * 1000; |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
procedure TfrmTimeDetail.btnShareClick(Sender: TObject); {$IFDEF ANDROID} var Intent: JIntent; CalendarIni: JCalendar; Uri : string; begin Uri := 'content://com.android.calendar/events'; Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_EDIT, TJnet_Uri.JavaClass.parse(StringToJString(TIdURI.URLEncode(uri)))); //Intent.setType(StringToJString('vnd.android.cursor.item/event')); intent.putExtra(StringToJString('beginTime'), DateTimeToUnix( (clDay.Date + teTimeDal.Time)) * 1000 ); intent.putExtra(StringToJString('allDay'), false); intent.putExtra(StringToJString('rrule'), StringToJString('FREQ=YEARLY')); intent.putExtra(StringToJString('endTime'), DateTimeToUnix( (clDay.Date + teTimeAl.Time)) * 1000 ); intent.putExtra(StringToJString('title'), StringToJString(edCommessa.Text)); intent.putExtra(StringToJString('description'), StringToJString(Memo1.Text)); SharedActivity.startActivity(Intent); end; |
VMWare Workstation 9 on Windows and Linux provides command line commands to manage the status of virtual machines, all through a single “vmrun” command. This commands are also tested on VMWare Workstation 16. For example in Linux to make a virtual machine suffer you can connect to the shell where your VMWare Workstation is installed…
Read more
Hello, after so many tools tested, I tried dbforge which in my opinion is the best, first of all there is the “express” version which is free and at the same time very complete. In addition, there is also a paid version whose prices are more than affordable. For those interested, the link to the…
Read more
Canva is a service that allows you to create effective graphic projects quickly and easily. Within the portal there is also a section where hundreds of free icons and clipart are available at https : //www.canva.com/it_it/strumenti/icone-gratis/ . With Canva you can also create graphic projects directly online using your resources (uploading files and videos) or…
Read more
This is a simple example for usign Nevrona Indy components in Delphi to create a small server application using TCP/IP protocol. TO simplify we can build an example where there is a Server Application that recive a string from a Client App. and then return that string to the Client , but we use streams…
Read more
Sometime happen that you need to encode or decode an url manually , so not soo much characters need to be converteted to encode or decode an url string. In this post some example you can drag and use or modify. In recent version of Delphi you can use standard Delphi routine contained in the…
Read more