Native Android Application for website without WebView

May 19, 2019, at 12:00 PM

I need to build a Native Android Application for a Website that I have successfully developed. How do I go about this without using the webView. Someone talked about REST API But I don't just know how to go about it.

Although I have the Application in webView Version already but it is just still as the normal website mobile view. No Interactivity.

Answer 1

Your solution is REST API. Here is a good example.

How to create REST API for Android app using PHP, Slim and MySQL

Answer 2

Basically schema should looks like backend(all your data) - Rest Api (you must provide interface to your backend data with CRUD operation like PUT-DELETE-UPDATE-RETREIVE) - users for your Rest Api (mobile apps that would call this api to use data from backend)

For backend look at this tutorial to start

For android app you should use Retrofit2 to facilitate RestApi calls.

Search for a string name inside object with spaces

Search for a string name inside object with spaces

I have an object like this which contain a string name with whitespaces :

Empty return of variable

Empty return of variable

I have this code: