JavaImport for Android
Converts Java .jar files, .class files, and folders to Delphi/C++Builder units for Android.
Imported Android Toast API example:
// File generated on 10/11/2024 9:56:03 PM by JavaImport for Android, https://winsoft.sk/jimport.htm unit android.widget.Toast; interface uses Androidapi.JNIBridge, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.JavaTypes, Androidapi.JNI.Widget; type JToast = interface; {android/widget/Toast} JToastClass = interface(JObjectClass) ['{7F42BBD4-41F1-4779-BEF3-F28FE0710FCB}'] function _GetLENGTH_LONG: Integer; function _GetLENGTH_SHORT: Integer; function init(context: JContext): JToast; cdecl; function makeText(context: JContext; text: JCharSequence; duration: Integer): JToast; cdecl; overload; function makeText(context: JContext; resId: Integer; duration: Integer): JToast; cdecl; overload; property LENGTH_LONG: Integer read _GetLENGTH_LONG; property LENGTH_SHORT: Integer read _GetLENGTH_SHORT; end; [JavaSignature('android/widget/Toast')] JToast = interface(JObject) ['{4D0BEA79-606A-4395-B7E8-3235AFFE7E72}'] procedure addCallback(callback: JToast_Callback); cdecl; procedure cancel; cdecl; function getDuration: Integer; cdecl; function getGravity: Integer; cdecl; function getHorizontalMargin: Single; cdecl; function getVerticalMargin: Single; cdecl; function getView: JView; cdecl; deprecated; function getXOffset: Integer; cdecl; function getYOffset: Integer; cdecl; procedure removeCallback(callback: JToast_Callback); cdecl; procedure setDuration(duration: Integer); cdecl; procedure setGravity(gravity: Integer; xOffset: Integer; yOffset: Integer); cdecl; procedure setMargin(horizontalMargin: Single; verticalMargin: Single); cdecl; procedure setText(resId: Integer); cdecl; overload; procedure setText(s: JCharSequence); cdecl; overload; procedure setView(view: JView); cdecl; deprecated; procedure show; cdecl; end; TJToast = class(TJavaGenericImport<JToastClass, JToast>) end; const TJToast_LENGTH_LONG = 1; TJToast_LENGTH_SHORT = 0; implementation procedure RegisterTypes; begin TRegTypes.RegisterType('android.widget.Toast.JToast', TypeInfo(android.widget.Toast.JToast)); end; initialization RegisterTypes; end.
Download and order
Order JavaImport for Android $100 USD (license for one developer)
Order JavaImport for Android multi-license $300 USD (license for all developers in the company)
Order JavaImport for Android year upgrades $50 USD (registered users only)
Order JavaImport for Android year upgrades multi-license $150 USD (registered multi-license users only)