Meet The Author

Main Uddin is one of the pioneer blogger cum e-marketer from North East India(Assam).He is also a Skilled web Developer and regular columnist for various news portals around the globe.Read More

author

Develop Android Mobile App For WordPress Website On Android Studio Platform

Leave a Comment
It’s like a dream come true for every business owner to have their own business mobile app along with the Business website. It can be of any platform like WordPress, PHP, Joomla, Magento etc. This can be possible with choosing a perfect mobile app developer. With this article, it becomes easy for every business owner to develop their own apps especially Android apps for WordPress website.


Does your WordPress website need a mobile app? If you check your website traffic in google analytics, then you will see that more and more people browse the internet using their mobile phones. One of the easiest ways to make sure that mobile users have a nice experience on your site is by making it mobile responsive.
For some businesses, having a responsive site is not sufficient enough. They may want to offer an even nicer user experience by creating their own mobile apps.
If you have been thinking about turning your WordPress site into an android app, then you might already be aware of how much it costs to have an app built from scratch.
There are two methods to convert a site into an android app:
  • Using plugins(paid plugins).
  • Coding(using Android Studio).

STEPS TO CONVERT WORDPRESS SITE INTO AN ANDROID APP

The first thing you need is a running WordPress site, for that you need the best hosting and essential plugins.

Step 1: Downloading and Installing Android Studio

Android Studio gives you an advanced code editor and a set of app templates. In addition, it contains tools for development, debugging, testing, and performance that make it faster and easier to develop apps.
Download the android studio from the official site. There are options available for different operating systems.
Android Studio
Complete the installation process after downloading the studio, it will take a few minutes for the process to complete.

Step 2: Creating a New Project

The Android Studio welcome screen gives you a number of options for what you want to do. I want to create a new project, so click on the option for Start a new Android Studio project.
Creating a android project

Step 3: Basic Settings for a new App

Android Studio uses the company domain and application name to form the name of the package that will be used for your app.
naming the app
Here you need to put your own application name as well as your own domain name and click on ‘Next’.
Device Selection
You now need to indicate which API level of Android your app will use. API levels increase with every new version of Android. Unless you only want your app to run on the very newest devices, you probably want to specify one of the older APIs.
Cavity Selection
Choose the activity for your app. I will recommend going with the empty activity.
Main Activity
Keep the names as it is and click on ‘Finish’. Now you have successfully created an empty app.

Step 4: Layout of the App

layout describes the appearance of the screen. Layouts are written as XML files and they tell Android how the different screen elements are arranged.
For editing the layout you need to open activity_main.xml.
Layout of app
Choose Android or Project >>App >>res >>layout >>activity_main.xml. Copy the code below and paste it in your xml file.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="in.couponsanddeals.bina.MainActivity">
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
view raw
activity_main hosted with ❤ by GitHub
Note: In the line tools:context=”com.example.first.MainActivity” you need to put your domain name and app name.

Step 5: Main Code for Running the App

The main activity code is a Java file MainActivity.java. This is the actual application file which ultimately runs your application.
convert
Choose Android or Project >>App >>Java >>your app name >>MainActivity.java. Following is the code you need to replace in your java file.
[java]
package com.example.first;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends AppCompatActivity {
private WebView mywebView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mywebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings= mywebView.getSettings();
webSettings.setJavaScriptEnabled(true);
mywebView.loadUrl("https://example.com/");
// Line of Code for opening links in app
mywebView.setWebViewClient(new WebViewClient());
}
//Code For Back Button
@Override
public void onBackPressed() {
if(mywebView.canGoBack())
{
mywebView.goBack();
}
else
{
super.onBackPressed();
}
}
}
[/java]
view raw
MainActivity hosted with ❤ by GitHub
NOTE: Replace the URL (example.com) with your Domain Name.

Step 6: Developing Components for the App

The components you develop as a part of your application, you must declare all its components in a manifest.xml which resides at the root of the application project directory. This file works as an interface between Android OS and your application, so if you do not declare your component in this file, then it will not be considered by the OS.
Note: You need to change android:label=”@string/app_name” and replace app_name with your app name.
Component Section
Choose Android or Project >>App>>manifests >>AndroidManifest.xml. Copy the code and paste in your xml file.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.couponsanddeals.bina">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
view raw
AndroidManifest hosted with ❤ by GitHub

Step 7: Running the App

So far you have seen what your Android app looks like in Android Studio. Now we have to see how it’s running.
There are two options when it comes to running your apps. The first option is to run on a physical device and the second option is to use the Android emulator.
The emulator enables you to set up one or more Android virtual devices and then run your app in the emulator as though it is running on a physical device.
Now click on the Run button(play icon) at the top menu bar.
Running the app
Next, Android studio installs the app on your Android Virtual Device and starts it and if everything is fine with your set-up and application, it will display following
Video Player
00:00
00:34
The Run button builds and deploys your app to a device. However, to build your app to share or upload to Google Play, you’ll need to use one of the options in the Build menu to compile parts or all of your project. We will see that in Step 9.

Step 8: How to Change App Icon

Android Studio includes a tool called Image Asset Studio that helps you generate your own app icons from material icons, custom images, and text strings.
All you have to do is upload your image and image asset will generate a set of icons at the appropriate resolution for each size that your app supports. Follow the video to change the icon.
Video Player
00:00
00:30
Note: Click on the path field to find the image or logo you want to upload. If your image or logo name is different, then you need to add the name in android:icon=”@mipmap/new name” in AndroidManifest.xml code.

Step 9: Signing Your App to Share on Google Play

Android requires that the APK be digitally signed with a certificate before it can be installed. And you need to sign your App before you upload it to the Google Play.
Start the signing process by following the steps shown below.
In the top menu bar, click Build >Build>Generate Signed Bundle/APK.
build options
Below the Key Store Path, click on Create new.
keystore path
On the New Key Store window, provide the following information
keystore location
Key store path: Select the location where your keystore should be kept and create a password for your keystore.
The Alias name can be kept as shown in the image or you can change the name.
Create and confirm the password. This should be different from the password you chose for your keystore.
Validity: Your key should be valid for at least 25 years, so you can sign app updates with the same key.
Enter the necessary information in the certificate field and Click ‘OK’.
keystore file
To sign your APK for release in Android Studio, click on Build >> Generated Signed Bundle/APK and you will see the above image. Click on ‘Next’.
Signed App
In this window select the destination folder for your Signed App. Select the build type, whether it is free or paid app.
Next, select both V1 and V2 Signature Versions. Click on ‘Finish’ and you will see the following notification at the bottom of your screen.
Generated Signed APK
You can now distribute your App through Google Play Store.
Read More

Pro Bloggers Can Try These 25 Top Rated Keywords in 2020

4 comments
Do you know how Google makes a lot of money?. Surprisingly, 97% of its revenue comes from online pay-per-click advertising. Millions of companies pay pennies or dollars each time when a user clicks on their Google Adwords ads.
Where Does Google Make Its Money? [ infographic ]
Larry Kim, the Founder & CTO of WordStream, provider of the 20 Minute PPC Work Week and Google Ads Grader shared the search company’s research into the keyword categories that fuel Google’s market domination of PPC advertising – and which ones are the most expensive to bid on.
Google Ads is a powerful tool for your business to reach new potential customers. Unlike SEO, AdWords PPC has an immediate effect, it allows you to target on the keywords related to your business that you want to rank well, and it enables your business to set a budget and make budgets.
Marketing and advertising always arrive at ROI, and as long as most of them turn to customers, you can get a strong ROI with AdWords with a higher CPC. Many keyword categories in Infographic are for high-value items such as “business services” and “insurance”. Products or services with large value tags can support more expensive advertising.

Top 10 Most Expensive Google Keywords

  • Business Services: $58.64
  • Casino: $55.48
  • Insurance $54.91
  • Lawyer: $54.86
  • Asset Management: $49.86
  • Cash Services & Payday Loans: $48.18
  • Cleanup & Restoration Services: $47.61
  • Degree: $47.36
  • Attorney$47.07
  • Medical Coding Services: $46.84
If you are a new Google Ads user or you are considering entering one of these industries then be prepared to PPC rate for top keywords. While some may start providing better treatment facilities, keep in mind that you are one of the most expensive niche groups, and you have to pay more for those high CPC keywords.
If you want to target on the insurance keywords, you will spend an average of $ 54.91. So, whenever someone searches Google for a keyword like “Buy Auto Insurance Online” or “Online Insurence”, and clicks on your PPC campaign ad unit (which appear with the “Ad” label above and below Google’s organic search results), Google charges that advertiser almost $54.91(average).
So, suppose that an advertiser gets 10 clicks per day on that ad. An advertiser must pay:
  • 10 * $54.91 =  $5,49/day.
  • 30 * $5,49.1 = 16473/month.
  • 12 * $16473 = $2 million/year (approx).
So if you’re thinking about advertising on Google but worried about how expensive it seems to target keywords you want, just remember: these costs are the average.
  1. Loans (ex:- “Car loans”, “Auto loan ” and “Home Loan”)
  2. Mortgage (ex:- “Mortgage Services” and “Remortgage ”)
  3. Credit (ex:- “Home Credit” and “Credit Buyer”)
  4. Lawyer (ex:- “Criminal Lawyer,” “Defense Lawyer”, Top  lawyer)
  5. Attorney (ex:- “Defense Attorney”, “Personal Injury Attorney” )
  6. Donate (ex:- “Donation Centers,” “Donate for Child”)
  7. Degree ( ex:- “Bachelors Degree Course ”)
  8. Conference Call (ex:- “Top Conference Call service,” “Toll-free Conference Calls”)
  9. Trading (ex:- “Online Trading Service” “Online Stock Trades”)
  10. Software (ex:- “CRM software,” “Best Primavera Software”)
  11. Web Hosting (ex:- “Shared Hosting,” “Managed Web Hosting Solution”)
  12. Claim (ex:- “Medical Claim,” “Accident claims”)
  13. Recovery (ex:- “Computer Data Recovery,” “Hard Disk Data Recovery”)
  14. Transfer (ex:- “Zero apr Balance Transfer,” “Credit Card Balance Transfer”)
  15. Gas/Electricity (ex:-“Commercial Electricity Price Comparison,” “Best Commercial Electricity Suppliers”)
  16. Classes (ex:- “Online Classes,” “Training Classes”)
  17. Treatment (ex:- “Medical Treatment,” “Drug Treatment Centers”)
  18. Cord Blood (ex:- “Cord blood Bank,” “Store Umbilical Cord Bood”)
The most expensive niche groups paying for the most expensive keywords are an industry with very high lifetime customer value; The most expensive keywords of AdWords are present in those industries where the customer’s payment is too high. Finally, the sum of the insurance companies comes from signing up for insurance with one person, which makes a high cost of investment in per click rates, even $ 54.91/click.
As you can see in the above list, most of the keyword categories represent businesses with high lifetime customer value. That means that these businesses can pay more per click (CPC) for the new potential customers, even if the leads convert into sales, they will get a higher return on investment.

Some Tips for Advertising in Expensive Google Keywords

1). Be Specific: Only target a specific group of 3-5 keywords. Research detailed keywords and include long-tailed keywords, which are more likely to change, as well as the keywords you know that making the best return on investment. To come up with specific keyword ideas, the Google Ads Keyword Tool can be used for both broad and long-tail keywords.
2). Use Negative Keywords: Use a negative keyword tool to search for those keywords that you do not want to show your ads. As a result of irrelevant keywords, there are costly clicks that never run a conversion, and when you bid on the most expensive keywords at $ 50 per click, the negative keywords are absolutely necessary. By running a search query report, you’ll find a list of all the search queries that show your ads that allow you to add a non-related keyword as a negative keyword/phrase.
3). Focus on Relevancy:  Target and optimize your ads for the high-quality score, because it can help you to reduce your average CPC. Include your keywords in your headlines and/or statements, and add unique sales points to stand out from the competition.
4). Landing Page Optimisation: Set a clear goal and purpose for your website and AdWords campaign, and you know what you want visitors to take action there. While most AdWords conversion rates are around 2%, we often change landing pages by 20% or 30%. The key to landing page optimization is to try different types of offers and test how people respond to them.  When customizing your landing page, Google recommends three basic elements of quality: relevant and original content, transparency and access. Most importantly, to make sure that you have a clear and direct call to action, and show your unique selling points to increase conversions.
Implementing a keyword tool can help you create specific keyword ideas, just make sure that you are paying only for those keywords that are specific to your business.
Read More
Next PostNewer Posts Previous PostOlder Posts Home