This post is the continuation of:

In this example, we will try to build/compile the App to obtain the APK file to try in some Android device.

To start, we need a user in PhoneGap website, once registered we can start deploying our content from GitHub. In this case we will use the source code of CoinMarketRank.io, can be obtained or get forked from the CoinMarketRank_PhoneGap repository.

Now we can create a new App. (https://build.phonegap.com/). Click on “New App”.

Captura de pantalla 2018-08-04 a las 20.17.48

And put the URL of your PhoneGap source code (like the example)

Captura de pantalla 2018-08-04 a las 20.18.21

Now we can start the push from GitHub and after this, build/compile and generate the unsigned APK binary file for Android Devices.

Captura de pantalla 2018-08-04 a las 20.20.48

Click to download the APK file. (We will sing and distribute on the Apple Store and Google Play Store marketplaces in the next post! )

Once downloaded the file, we can share in some FTP, Dropbox or some place internet visible. (In this example we use FileZilla to upload the APK file to  http://coinmarketrank.io/android/CoinMarketRank.apk )

Captura de pantalla 2018-08-04 a las 20.24.17

(NOTE: You can automatize the upload of the APK file to Android phones using the web/app http://www.apkinstall.com/ )

Now you can download the app from some navigator/browser of you Android device.

In this example we will use GenyMotion to emule (using VirtualBox) some Android Devices using Virtual Machines.

Captura de pantalla 2018-08-04 a las 20.32.37

We can launch a Custom Phone with Android 4.1.1 for example.

Once started, Open the browser and download, for example: http://coinmarketrank.io/android/CoinMarketRank.apk

Captura de pantalla 2018-08-04 a las 20.34.59

And install the App!

Captura de pantalla 2018-08-04 a las 20.38.58

(Remember to activate unknown Sources!)

Captura de pantalla 2018-08-04 a las 20.41.47

And just try it!

Captura de pantalla 2018-08-04 a las 20.43.33

Of course, also you can use in a real device the adb command to upload the APK file!

Using the Android SDK framework command line tools

  • adb install CoinMarketRank.apk

 

Captura de pantalla 2018-08-04 a las 21.36.43

Another way to test the APK file in multiple devices at same time is using Testing Cloud Services like Monkop. Just push the APK file and let the Service do the Rest.

Captura de pantalla 2018-08-04 a las 20.54.52

The process/service is a little bit slow… but it works!

Captura de pantalla 2018-08-04 a las 20.55.10

The testing results/reports are awesome, also contains videos of the use of the App in diverse devices and Android versions.

Captura de pantalla 2018-08-04 a las 20.55.28

You can try in multiple phones/tablets.

Captura de pantalla 2018-08-04 a las 20.56.20

And usability automatic testing videos!

Captura de pantalla 2018-08-04 a las 20.56.38

Another way is using https://appetize.io/ , very easy, just upload and test it!

Captura de pantalla 2018-08-04 a las 21.37.56

Example of the app CoinMarketRank.io running here.

Continues in this post:

By MrAddon

Advertisements
Posted by:.

2 replies on “Build and test a PhoneGap App

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s