Create an Android App from a Responsive website Easy.

 In Articles
The below code will help you create a Android app from your responsive website.Please copy this HTML code to the index file of your cordova project and then build the project.Change logo in your cordova project with your respective logos.


    <script type=”text/javascript” charset=”utf-8″ src=”cordova.js”></script>
    <script type=”text/javascript” charset=”utf-8″>

    // Wait for device API libraries to load
    function onLoad() {
        document.addEventListener(“deviceready”, onDeviceReady, false);

    // device APIs are available
    function onDeviceReady() {
        // Register the event listener
        document.addEventListener(“backbutton”, onBackKeyDown, false);

    // Handle the back button
    function onBackKeyDown() {


function magic (){

        //var h = document.getElementById(“myIFrame”).contentWindow.history;
        $(“#myIFrame”).attr(‘src’, window.history.back());



<iframe id=”myIFrame” src=”” style=”position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;” scrolling=”yes” frameborder=”0″ allowTransparency=”true”></iframe>



Recent Posts
Showing 2 comments

Leave a Comment