Make WordPress as Android App. Yes, follow the article from top to bottom and do not miss out anything. In the end you will see your website or WordPress blog in Android phone as an application.
You can also publish the app in Google Play Store or any eco-system for Android apps (Such as Amazon app store, Samsung galaxy app store, Honor/Huawei App Gallery and So on).
How to Make WordPress as Android App?
Converting WordPress blog or Website is easy if you have hands-on with Android Studio and Android SDKs.
Yes, you need to know little bit of java coding knowledge and basics of Android application development. Do not worry if you have very little knowledge on these both should also be fine. If you follow this article carefully.
[email protected]:~/dev/folder1$ touch hello.txt
[email protected]:~/dev/folder1$ vi hello.txt
[Edit the file] to save press Esc + :wq (w is for save and q is for quit)
[email protected]:~/dev/folder1$ cat hello.txt
Keep the learning short, not to waste your precious time.
Apache Wicket is a Web Framework provided by Apache Foundation “apache.org“.
Why Apache Wicket?
To my understanding, Apache wicket is a Component based web framework. Which provides support to create the View and Model (UI and Business Logic) very quickly and easily.
What do we need to create Wicket Application?
In order for us to build Wicket Application, we need the Libraries and IDEs.
m2e – maven2 for Eclipse Plugin – How to download m2e from market place?
Tomcat 7 (We need a web server, to run our application to handle the Servlet/Filter Request & Response)
Note: If you are using maven to configure the project, you do not need to download the wicket libraries mentioned above, because maven will download the necessary jars required for Wicket Application.
Lets Get Start With Setting up the Workspace!!
Launch Eclipse
Create New Dynamic Web Project (New -> Project -> Other – Dynamic Web Project)
We have to add Filter to the web.xml, so that when we hit the URL in browser it uses the wicket filter to kick-start our application.
Now create new java package “in.balamt.app”
Create new Java Class “MainApplication.java” which extends from “org.apache.wicket.protocol.http.WebApplication”.
package in.balamt.app;
import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;
public class MainApplication extends WebApplication {
@Override
public Class getHomePage() {
// This getHomePage method will be called at first, and inorder to have our HomePage to be displayed we give the HomePage.class
return HomePage.class;
}
}
MainApplication.java
getHomePage() method is called when launching the application. so we have to provide the home page.
Create new package “in.balamt.pages”
Create New Java Class “HomePage.java” and Create New HTML “HomePage.html”
Note: Wicket required both java and html files, also both the files need to be placed together, meaning java and html file name and location should be same.