PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • This lesson will teach you the following concepts
  • Overview
  • Deployment via Google Play
  • Deployment via a Web server
  • Deployment from the PC via ADB (advanced mode)
  • Copying the application onto Mobile device
Lesson 2.3. Distributing the application
This lesson will teach you the following concepts
  • Generating the APK
  • Available distribution modes

Estimated time: 20 mn
Previous LessonTable of contentsNext Lesson
Overview
WINDEV Mobile allows you to develop applications for the Android operating system.
Once the applications are created, developed and checked, all you have to do is deploy them. Several deployment modes are available:
  • Deployment via Google Play (or another market).
  • Deployment on a Web server.
  • Deployment from the PC via ADB.
  • Deployment by copy.
Deployment via Google Play
Google Play is an online service used to download applications (free of charge or not) on mobiles devices compatible with Android.
Once published, the application can be downloaded by the users all around the world via the Google Play application installed on their phone.
The publication of applications on Google Play must comply with specific rules:
  • During the first publication, you must register beside the Google Play service via a Google account. Once registered, you have the ability to publish or update as many applications as you want as many times as necessary.
  • The published application must be signed with a private cryptographic key. You have the ability to sign your own application: using a third-party organism is optional. The validity period of certificate must end after October 23, 2033.
    The applications generated by WINDEV Mobile are automatically signed by using the information specified in the generation wizard ("Signature of application" step) with a sufficient validity period.
    Caution: The published application must not be signed with a generic key (whose use must be limited to the tests in GO mode).
  • An icon must be associated with the application. The generation wizard of WINDEV Mobile allows you to define the icon to use.
    Note: Google Play is the most common application but other applications are available.
Deployment via a Web server
You have the ability to propose Android applications for download from a link on a Web page.
To do so, you must:
  1. Copy the "apk" file of the application onto the Web server that hosts the page proposing the download of the application.
    Reminder: the "apk" file is created by WINDEV Mobile when generating the Android application.
  2. Add a link into the Web page for download. This link has the following format:
    <a href='Path of apk file on the server'>Link</a>
  3. On the server, add the following MIME type: application/vnd.android.package-archive
The user will only have to display the page with the browser of the phone. The application will be downloaded when the link is clicked. Then, all you have to do is click the downloaded file (in the download manager) to install the application.
Caution: The "Unknown sources" option must be enabled on the phone to allow this setup mode. To enable this option, go to the "Parameters" menu of phone, in the "Applications" sub-menu.
Deployment from the PC via ADB (advanced mode)
ADB (Android Debug Bridge) is a tool supplied with the Android SDK. It is used, among other things, to install or uninstall from the PC an Android application (APK file) on a mobile device compatible with Android.
This setup mode is an advanced mode. We recommend that you see in the online help the specific commands used to install an application. To do so:
Caution: The "Unknown sources" option must be enabled on the phone to allow this setup mode. To enable this option, go to the "Parameters" menu of phone, in the "Applications" sub-menu.
Copying the application onto Mobile device
The easiest way to install an Android application on a mobile device is to copy the apk file onto the device and to run it. The following operations must be performed:
  1. Connect the device to the PC by USB.
  2. Copy the apk file of application onto the device (external memory for example).
    Reminder: the "apk" file is created by WINDEV Mobile when generating the Android application.
  3. On the device, use a file explorer to go to the directory where the apk file was copied and click the file to start its setup.
Note: Some devices do not propose a file explorer but several ones are available for free.
Caution: The "Unknown sources" option must be enabled on the phone to allow this setup mode. To enable this option, go to the "Parameters" menu of phone, in the "Applications" sub-menu.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment