在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Uses
procedure TForm1.FormCreate(Sender: TObject); {$IFDEF ANDROID} ShortcutIntent := TJIntent.JavaClass.init(SharedActivityContext, SharedActivityContext.getClass); addIntent := TJIntent.Create; // here we need to cast the intent as it’s not done in delphi by default, not like java addIntent.putExtra(TJIntent.JavaClass.EXTRA_SHORTCUT_NAME, StringToJString(Application.Title));
// if the app name change, you must change the package name //只适用于HeaderFooter,其他的要改下('com.embarcadero.HeaderFooterApplication')。 wIconResource := TJIntent_ShortcutIconResource.JavaClass.fromContext(SharedActivityContext, wIconIdentifier); // set icon for shortcut SharedActivityContext.sendBroadcast(addIntent); {$ENDIF} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论