Tuto WINDEV Mobile 25

Part 2: Android application 33 4. Write the following WLanguage code In the "Click" event of the "BTN_Display" control: Info("Hello") Note about the assisted input : As soon as the first two characters are typed, WINDEV Mobile proposes all words of WLanguage vocabulary containing these characters. The assisted development is a very powerful feature. No more mistakes when entering the name of an element: the syntax errors are reduced. All you have to do is select the requested word and press Enter to validate. You can focus on the algorithm. Remark When typing this WLanguage code in the code editor, you probably noticed that the different elements use different colors. This is the syntactic coloring. The code editor allows you to easily identify the different elements handled by the code: • the WLanguage functions are colored in blue, • the character strings (between quotes) are colored in purple, • the names of controls are colored in cyan. These colors can be modified element by element in the options of code editor (on the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor"). Info displays the message passed in parameter. ▶ Save the modifications by clicking among the quick access button or by pressing Ctrl + S. ▶ Close the code editor (cross at the top right of code editor). The window editor is redisplayed. First test For an Android application, WINDEV Mobile allows you to run the application test on the development computer via the simulation mode. This test simulates an Android device on the development computer. This test is useful when no Android device can be used by the developer. However, this test does not allow you to use the hardware components of device (GPS, SMS, camera, ...). Remark WINDEV Mobile also allows you to run a test of the application via the Android emulator (AVD) supplied with the SDK. See the online help for more details. ▶ We will now run the window test in simulation mode. 1. Click among the quick access buttons (or press F9). 2. Validate (if necessary) the information message regarding the simulator mode. 3. Choose (if necessary) the management mode of editor during the test (editor minimized or not).

RkJQdWJsaXNoZXIy NDQ0OA==