Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Ionic
  • Toc
  • feedback
Learning Ionic

Learning Ionic

By : Ravulavaru
4.4 (14)
close
Learning Ionic

Learning Ionic

4.4 (14)
By: Ravulavaru

Overview of this book

This book is intended for those who want to learn how to build hybrid mobile applications using Ionic. It is also ideal for people who want to explore theming for Ionic apps. Prior knowledge of AngularJS is essential to complete this book successfully.
Table of Contents (12 chapters)
close
11
Index

Testing the setup


Let's take a look at how we can test the setup for Android and iOS.

Testing for Android

To test the setup, we will scaffold a new Ionic application, and emulate that using the Android and iOS emulators.

We will first scaffold a tabs application:

ionic start -a "Example 27" -i app.example.twentyseven example27 tabs

To test the tabs application, using the cd command go to the example27 folder and run this:

ionic serve

This will launch the app in the browser and you should be able to see the tabs application.

To emulate the app on an Android emulator, first we need to add Android platform support for this project and then emulate it.

To add the Android platform, run this:

ionic platform add android

Once that is done, run the following command:

ionic emulate android

After some time, you will see the emulator launch, and the app will be deployed and executed inside the emulator:

If you have already worked with native Android apps, you know how slow the Android emulator is. If you...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete