1. AC Question's Avatar
    I have created a web application with PHP language and MySQL database which is already live. What I want to do now is to create and app version of the application using the same MySQL database and the PHP language.

    What should be my approach and how do I go about?

    Thank you
    05-20-2016 01:33 PM
  2. Rukbat's Avatar
    A web page to run on a phone? Or the client to access your site?

    1. (website on the phone) You'll be using SQLite, not SQL (there are slight differences). You;ll be rewriting the page in Java (which I wouldn't want to do, but people have).

    2. (client) Just write an app in Java that connects to your page and accesses the right things on the page. (The site has to be written to be accessed by an app.)
    05-20-2016 06:21 PM
  3. BlueZORRO's Avatar
    You can use the web view approach that is the app will open the webpage of you PHP without having to write it in java for the app.
    For example java web view containers code will help you display your website or PHP page inside you app and not in the smartphone web browser.
    Example code (main activity, android xml):
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal" >

    Java code for the web view function:
    public class WebViewActivity extends Activity
    private WebView webView;

    protected void onCreate(Bundle savedInstanceState) {

    webView = (WebView) findViewById(R.id.webView);
    webView.setWebViewClient(new MyWebViewClient());

    String url = "http://THELOCATIONYOURPHPORWEBSIDE.com";

    private class MyWebViewClient extends WebViewClient {
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    return true;
    07-03-2016 09:54 AM

Similar Threads

  1. Replies: 6
    Last Post: 05-21-2016, 07:19 PM
  2. does disabling an app free up the storage ?
    By AC Question in forum Ask a Question
    Replies: 2
    Last Post: 05-20-2016, 07:26 PM
  3. Boost + app?
    By smc333 in forum HTC 10
    Replies: 3
    Last Post: 05-20-2016, 05:47 PM
  4. Pixelization of video on Nexus 6p
    By AC Question in forum Nexus 6P
    Replies: 0
    Last Post: 05-20-2016, 12:46 PM
  5. My HTC one m9 started to freeze on bootup. How do I fix this?
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 05-20-2016, 12:10 PM