Leon is an open source mobile application framework. This framework wraps a website into a native Android application. Changes to the application occur on the web server and automatically sync to mobile devices with the application installed. A web connection is necessary for the application to work.

package com.leon.rleahey.leon;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebSettings;

    public class MainActivity extends Activity {

        private WebView LeonWebView;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            LeonWebView = (WebView) findViewById(R.id.leon_webview);
            LeonWebView.loadUrl("https:/apps.rleahey.com/leon-android/");
            WebSettings webSettings = LeonWebView.getSettings();
            webSettings.setJavaScriptEnabled(true);
            LeonWebView.setWebViewClient(new LeonWebViewClient());
        }

        @Override // Allows the back button to navigate inside application.
        public void onBackPressed() {
            if(LeonWebView.canGoBack()) {
                LeonWebView.goBack();
            } else {
                super.onBackPressed();
            }
        }

        @Override // Refreshes the web content when the application is sent to the background.
        public void onPause() {
            super.onPause();
            LeonWebView.loadUrl("https:/apps.rleahey.com/leon-android/");
        }

    }
MainActivity.Java
package com.leon.rleahey.leon;

import android.webkit.WebView;
import android.net.Uri;
import android.content.Intent;
import android.webkit.WebViewClient;

public class LeonWebViewClient extends WebViewClient {

    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        if(Uri.parse(url).getHost() != null && Uri.parse(url).getHost().endsWith("rleahey.com")) {
            return false;
        }
        else if(Uri.parse(url).getHost() != null && Uri.parse(url).getHost().length() == 0) {
            return false;
        }
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
        view.getContext().startActivity(intent);
        return true;
    }
}
LeonWebViewClient.java
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.leon.rleahey.leon" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
AndroidManifest.xml