■ Installing the JDK 1.8
Link http://www.oracle.com/technetwork/java/ ... 33151.html
■ Configuring the IDE: Specify the JDK installation folder.
IDE : Menu file ➽ Preference ➽ Compiler
■ Configure the application.
Prepare your first code and save it.
Code: Select all
Enumeration
#mf
#mfFont
#mfTime
EndEnumeration
Declare Start()
Declare ShowTime()
;No debug
CloseDebugOutput()
Start()
Procedure Start()
LoadFont(#mfFont, "", 50)
OpenWindow(#mf, 0, 0, 0, 0, "", #PB_Window_Background)
TextGadget(#mfTime, 10, 100, 300, 50, "00:00:00")
SetGadgetFont(#mfTime, FontID(#mfFont))
AddWindowTimer(#mf, 0, 1000)
BindEvent(#PB_Event_Timer, @ShowTime())
EndProcedure
Procedure ShowTime()
Protected Time.s = FormatDate("%hh:%ii:%ss", Date())
SetGadgetText(#mfTime, Time)
EndProcedure
Configuring the APK: An android application has the.apk extension
IDE : Menu Compiler ➽ Create App
App Name : Name that will appear when installing the apk.
Version : Version of your application. To be incremented with each generation of the APK. Example : 1.0.0
Package id (lower case): Identifier of the Android application.
Package name : extensiondedomaine.nomdudomaine.android.nomduprojet
.android is optional.
You don't have to have a domain to publish an application. You can take for example your nickname on this forum.
Example : com.falsam.firstapplication
Outfile Filename : Application name for Android.
Ok button to save the configuration.
Create App button to create the Android application.
With this example, I transferred the final apk to a tablet and smartphone manually via the usb cable.
■ Transfers of unknown applications.
Installing unknown applications (Internet, alternative store, USB transfer, etc...) requires changing phone settings to allow applications from unknown sources.
Mobile : Parameters ➽ General tab ➽ Security: Check Unknown sources.