Posts

Showing posts from February, 2020

Installation Process of MySQL

Image
How to install MySQL ? Open google and search Click on Download MySQL-free - Latest version    Click on Free Download then it start to download    After download is complete click on show in folder     click on that then it will show where the file are downloaded step 1: Select the file and click on install Step 2:- click on box and next Step 3:- Select  Developer Default and click on Next Step 4:-  Click on Next Step 5:- In this click on Execute After complete all then click Next Step 6:- Click on Next Step 7:- Select Standalone MySQL Server / Classic MySQL Replication  and click on Next Step 8:-  In config type Select Development Computer  and  click on Next Step 9:- Select first which are shown in following image  and click on Next    After that in this Add password for MySQL Root and remember it & click on ...

Introduction of database

What is database? Database is a collection of information that is organized so that it can be easily accessed , managed and update. Database is a collection of information that is organized so that it can be easily accessed , managed and update. The name indicates what the database is. Why it use? Database helps in keeping the files in a systematic manner. It helps in managing large amount of  information in less time. A database is organized collection of data. Different types of databases:- MySQL SQLite Oracle MongoDB Firebase SAP , etc.

Desktop Mode Code

//put onCreate } public void setDesktopMode(WebView webview1,boolean enabled) { String newUserAgent = webview1.getSettings().getUserAgentString(); if (enabled) { try { String ua = webview1.getSettings().getUserAgentString(); String androidOSString = webview1.getSettings().getUserAgentString().substring(ua.indexOf("("), ua.indexOf(")") + 1); newUserAgent = webview1.getSettings().getUserAgentString().replace(androidOSString, "(X11; Linux x86_64)"); } catch (Exception e) { e.printStackTrace(); } } else { newUserAgent = null; } webview1.getSettings().setUserAgentString(newUserAgent); webview1.getSettings().setUseWideViewPort(enabled); webview1.getSettings().setLoadWithOverviewMode(enabled); webview1.reload(); //set Button onClick Desktop setDesktopMode(webview1, true); //set Button onClick Mobile setDesktopMode(webview1, false);

Finger zoom

Finger zoom webview1.getSettings().setBuiltInZoomControls(true);webview1.getSettings().setDisplayZoomControls(false); This code place in onCreate event

Swipe Refresh code

Swipe Refresh linear1.setOnTouchListener(new View.OnTouchListener() {@Override public boolean onTouch(View p1,MotionEvent p2) {switch(p2.getAction()) {case MotionEvent.ACTION_DOWN: d = p2.getY();break;case MotionEvent.ACTION_UP: u = p2.getY(); if(((d-u) < -50)) {_SwipeRefresh();}break;}return true;}}); This code place in onCreate event on your project