Академический Документы
Профессиональный Документы
Культура Документы
txt]
Here is a rapid "get_start" for windows: "Laz4Android + Lazaru Azandroid Module
Wizard"
Note 1: for Linux: go to " lazandroidmodulewizard folder "...\linux"
and read: "new_how_to_install_by_renabor.txt"
I. Infrastructure
.Java sdk_x86 [32 bits]
.Android sdk, NDK-r10c
.Laz4Android [All in one!] =
FPC: 3.1.1 trunk svn 31903
-->> win32/arm-android/i386-android/jvm-android
Note: Need Android NDK: r10e (arm-linux-androideabi-4.9 + x86-4.
9)
Lazarus:1.5 trunk svn 49903
-->> http://sourceforge.net/projects/laz4android/files/?source=n
avbar
:To Install [*.7z], execute "build.bat"
.Android sdk
.Android NDK-r10e
2015-10-02]
s-x86.exe
.Ant [to build Apk]
http://ant.apache.org/bindownload.cgi
Simply extract the zip file to a convenient location...
.Eclipse is not mandatory! [but to facility, all projects [and demos] are Ecli
pse compatible!]
II. LAMW: Lazarus Android Module Wizard
ref. https://github.com/jmpessoa/lazandroidmodulewizard
.Install ordem.
tfpandroidbridge_pack.lpk
lazandroidwizardpack.lpk
amw_ide_tools.lpk
[../ide-tools]
III. USE
1. Configure Paths:
Lazarus IDE menu "Tools" ---> "[Lamw] Android Module Wizard" --> "Path
Settings ..."
2. New Project [thanks to @Developing!]
"android:targetSdkVersion" !!
[...\jni]
.Lazarus IDE menu "Tools" ---> "[Lamw] Android Module Wizard" --> "Change
Project [*.lpi] Ndk Path"
.set your "NDK" path!
.change/edit project "build.xml"
"PosRelativeToParent",
"PosRelativeToAnchor",
"LayoutParamHeight",
"LayoutParamWhidth"
Example:
1-Put a "jTextView" component on your AndroidModule form.
Set "PosRelativeToParent"
"rpCenterHorizontal" [True]
"rpTop" [True]
2-Put a "jButton" component on AndroidModule form.
Set "Anchor" to "jTextView" (Because you should set position relative wi
th "jTextView")
set "PosRelativeToAnchor"
"raBelow" [True]
3-Put a "jEditText" component on form.
Set "Anchor" to "jButton".
Set "PosRelativeToAnchor"
"raBelow" [True]
NOTE: