Chuyển đến nội dung chính

Bài đăng nổi bật

Stardock DeskScapes Full

DeskScapes gives you the capability to animate and customize the wallpaper on your Windows desktop. Choose from the massive integrated library or use your own images or video files to personalize your desktop. Animate your Windows desktop wallpaper Use video and Dream files with DeskScapes to apply animated wallpaper to your desktop. The .Dream format, which DeskScapes uses, has been specially designed to contain content used to animate wallpaper. You can also apply any dream as your PC screensaver! Easily customize and create your own backgrounds DeskScapes includes over 60 special effects plus colorization options to make any image or video into a fantastic, custom background. Want to create a .Dream to share? Use the included Dream Maker app to package your own animated or video creations. System Requirements Requires a 64-bit processor and operating system Windows® 7 / 8 / 10 64-bit Microsoft DirectX™ Minimum screen resolution: 1280 x 720 Download  - DeskScapes Full  How ...

The Secret

Create first webview in android studio

     Webview is a tool in android studio and it is used to load html or website to mobile, through this we can easy to create the android application through html,css and javascript code.

1) First create a new project in android studio more details...

2) Open activity_main.xml file under the layout folder.

Open layout.xml file in android studio


3) Copy the following code to the activity_main.xml

<WebView  xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>

xml code for creating webview


     When you add the code to activity_main.xml you can see the preview by clicking Design.


Webview Preview in design tab

4) You must set internet permission in AndroidManifest.xml. Open AndroidManifest.xml file and enter the following code.

<uses-permission android:name="android.permission.INTERNET" />

add android.permission.Internet user permission in android

5) Open MainActivity.java file and modify it by the below steps.
  
    a) import the following class
import android.webkit.WebView;
import android.webkit.WebViewClient;

    b) When you want to load the url to your webview, just call the below code.
        WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl("http://www.google.com");


Java code for webview

6) Now you are done with your first webview, just run the code.


Java code for webview final output





Nhận xét

Bài đăng phổ biến từ blog này

SQLite first setup

   SQLite is not directly comparable to client/server SQL database engines such as MySQL, Oracle, PostgreSQL, or SQL Server since SQLite is trying to solve a different problem. Client/server SQL database engines strive to implement a shared repository of enterprise data. They emphasis scalability, concurrency, centralization, and control. SQLite strives to provide local data storage for individual applications and devices. SQLite emphasizes economy, efficiency, reliability, independence, and simplicity. SQLite does not compete with client/server databases. First configuration for SQLite      You have to write three js files they are 1) database_startup.js 2) database_query.js 3) database_debug.js       database_startup.js file helps you to initialize the database, create tables and if you want to insert any default values. var CreateTb1 = "CREATE TABLE IF NOT EXISTS tbl1(ID INTEGER PRIMARY KEY AUTOINCREMENT, CreatedDate TEXT,LastModifiedDa...

Facebook auto accept friend request

     Some one get too many friend requests and if they want to accept all friend request you need to click all the " Confirm " buttons. So it take long time to accept all friend requests. So you can use the following script for doing your work simply, the script will click your " Confirm " button automatically. Auto Delete Friend Request Script 1) Go the this URL link facebook friend request page 2) Just copy the following code and paste it to your browser console window and press enter key. Code javascript:for( i = 0;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);

Delete all facebook messages at once

     If you have many messages for delete from facebook, it is very difficult to select all the messages, because facebook don't have the option for select all the message at once and delete in a click. But we have the solution for this we will give a small script for selecting all the message at once and delete in a single click. Step 1:    Login to your facebook account and go to message section. Step 2:       Select whose message you want to delete. Step 3:      Scroll up all the messages will load. Step 4:       Click Action (gear icon) and click Delete Messages... button like the below image. Step 5:       After press the Delete Messages... button you can see some check box on righside of the messages. Step 5:       Now Right click anywhere of the facebook page and click Inspect and on that window press Console (or simply press ctrl+shift+j  ), copy the below code and pa...

Free $100