Android app installation
This chapter covers SQL Sample Data, Mail Chimp For Newsletter, Setting Consumer Key & Secret Key, Facebook Login and Import App into Android Studio.
Import App into Android Studio#
After CMS installation, please follow below given instructions to set up your mobile application..
4.1) – Getting Started
Download and install all latest tools, required for developing Android apps such as Java Development Kit and Android Studio as the Official Android IDE. For updated tutorial about how to install them, you can see and Download this from Android Developer website. Download JDK Download Android studio IDE
4.2) – Android Studio Setting
There are three main things interacting when you use Android Studio to create android applications.
· The code you write in Java or Kotlin to create interactive android apps · Android Studio itself, an IDE that provides you with a nice interface for coding · Android SDK, a selection of tools including the Android platform itself
Now you can click on Android Studio to launch it. Once it opens up, you’ll be presented with a menu where you’ll be able to get started or configure some options. The great thing is that everything is handled for you at this point, though you may want to familiarize yourself with the SDK Manager (Configure > SDK Manager) which is where you’ll update your Android SDK to support newer versions, as well as download things like code samples or support for Google Glass. But don’t worry about that now but if Android Studio says you’re missing something, this is where you’ll probably need to go to find it.
4.3) – Open up Project in Android Studio
Locate your Android app in the given project .zip folder and extract it somewhere in your computer.
Once Android studio ready, click open an existing android studio project.
Browse to directory where you placed the android project and click Open after selecting the root directory of project.
While opening up the project you will get a popup like this. please click OK to building the project.
After this android studio will download some of the packages and execute some gradle plugins into your project.
Note: This may take some time to compile.
While importing your android app you may get some dependencies errors. to resolve that you just need to update versions of libraries or dependencies.
After every thing is done. your android studio project will look like this. you may ignore the plugin update if it recommends that.
Note: if you want to update your gradle plugin that may need to change some deep source code. It is better to user the same version of plugin.
Project directory structure looks like this. your all Kotlin source code is placed under the following package.
we only need constants/AppConfig.java file to attach our backend.
AppConfig file looks like this.
SQL Sample Data#
This article will help you to import Sample SQL data. Consider these instruction to get Sample data and import into your website.
Please take backup first if you have added any products data. Because this restore demo content will delete your old data.
Open https://your-site.com/admin/managements/backup
Download our Sample SQL Dump From here.
Upload Sample Content Zip file by using below link.
Open https://your-site.com/admin/managements/import
Mail Chimp For Newsletter#
This allows you to Subscribe Newsletter for customers. Here is the official link with the detailed Mailchimp integration.
Step 1)Login to your MailChimp account. Under the user drop-down, select the Account.Step 2) Click on Extra->API keys.Step 3) Under the Your API keys section, click on Create A Key and copy your API key which you need in a moment. Step 4) Now you have our API key ready.Step 5) After that you need to enable Newsletter from back end and also put the Mailchimp API and Mailchimp Audience ID to complete MailChimp subscription process. You can get MailChimp Audience ID from below link
To enter your MailChimp Credentials use below link.
Open https://your-site.com/admin/newsletter
Setting Consumer Key & Secret Key#
Go to Admin Panel > Business Settings > Consumer Keys · Click Generate to create your Consumer Key and Consumer Secret. · Copy your Consumer Key and Consumer Secret.
· Open AppConfig in android studio app · Place your Backend URL, Consumer Key and Consumer Secret here.
Facebook Login#
This allows you to log in through your Facebook credentials. Here is the official link with the detailed demonstration of Facebook integration
After that you need to enable Facebook login and also need to put Facebook app id , secret id , Facebook app URL, to complete Facebook login process.
To enter your Facebook Credentials use below link.
Open https://your-site.com/admin/facebooksettings