Delphi uses the ndk of Android through the JNI interface, packaged well, without having to write local code, directly call

Source: Internet
Author: User

I. Android platform programming Method:
1. Third-party applications developed based on the Android SDK must use the Java language (Android SDK based Java implementation)
2. Since the release of the NDK R5, it has been possible to develop applications or games entirely in C + + and no longer need to write any Java code
The Android program runs in the Dalvik virtual machine, and the NDK allows users to execute part of the program using native code languages such as C + +.

Two. Cross-platform mobile development
Delphi uses the Android NDK through the JNI interface, packaged well, without having to write local code, directly called.
Using the local code of Delphi can implement some functions, some functions can directly invoke the JNI interface, of course, can also be implemented by writing local code, but it is more troublesome.
What you need to do to cross-platform mobile development:
1. The native code realizes most functions, Androidapi realizes the function of some Android phones, Iosapi realizes the function of some iOS phones;
2. Use the option to compile {$IFDEF ANDROID} {$ENDIF} and {$ifdef iOS} {$endif}.
Three. Some parts of the design hardware must be called through the interface of the platform, without a unified Firemonkey native code can be addressed.
In addition to the features of geo-sensing, taking photos, calling, etc., hardware-related parts, such as SIM cards, Bluetooth and other unique devices, hardware, etc. are not cross-platform Firemonkey code can be achieved.

http://blog.csdn.net/syndicater/article/details/18549321

Delphi uses the ndk of Android through the JNI interface, packaged well, without having to write local code, directly call

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.