WebView web sites kimoyo

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class kimoyo extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN); 

        setContentView(R.layout.main);
        WebView webview = new WebView(this);
        setContentView(webview);
        webview.loadUrl("http://m.kimoyo.com/");
        webview.setWebViewClient(new WebViewClientDemo());
    }

    private class WebViewClientDemo extends WebViewClient {
        @Override
        //  In WebView in instead of the default page displayed in the browser
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
    }
}
分类:Mobile 时间:2010-08-19 人气:292
分享到:
blog comments powered by Disqus

相关文章

  • public void testStatementAddBatch () public void testConnCommit () 2011-09-01

    public void testStatementAddBatch() { Connection conn = null; Statement stmt = null; try { conn = getDBConnectionMsSqlBySuperAdmin(); stmt = conn.createStatement(); for(int i = 0; i < 100; i++) { String sql = " sql " + i; stmt.addBatch(sql);

  • Custom Android Window Title 2010-12-14

    Custom Android Window Title Changing the window title in an Activity or globally across your entire application seems simple enough, but there is very little cohesive documentation for making it happen. You need to define custom styles and apply thos

  • Department of famous Gate Android (10) - HTTP communication, XML parsing, through asynchronous message processing Hander 2010-03-29

    Department of famous Gate Android (10) - HTTP communication, XML parsing, through asynchronous message processing Hander Author: webabcd Describes the Android do with the server-side HTTP communication, parsing XML, asynchronous message processing th

  • android HTTP communication, XML parsing, by Hander asynchronous message processing (1) 2010-04-14

    Introduced in the Android to do with the HTTP server communication, analytical XML, asynchronous message processing through the Handler HTTP communication - communication with the HTTP server to do, respectively, GET and POST methods to do demo mode

  • android Multithreading For Performance 2010-07-20

    A good practice in creating responsive applications is to make sure your main UI thread does the minimum amount of work. Any potentially long task that may hang your application should be handled in a different thread. Typical examples of such tasks

  • Department of famous door Android (10) - HTTP communication, XML parsing, asynchronous message processing by Hander 2010-08-26

    Department of famous door Android (10) - HTTP communication, XML parsing, asynchronous message processing by Hander Introduced in the Android to do with the HTTP server communication, analytical XML, asynchronous message processing through the Handle

  • Android zip文件下载和解压实例 2014-02-22

    这篇文章主要介绍了Android zip文件下载和解压实例,有需要的朋友可以参考一下 下载: DownLoaderTask.java package com.johnny.testzipanddownload; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.

  • Android中实现下载和解压zip文件功能代码分享 2014-06-04

    这篇文章主要介绍了Android中实现下载和解压zip文件功能代码分享,本文直接给出了实现代码,需要的朋友可以参考下 本文提供了2段Android代码,实现了从Android客户端下载ZIP文件并且实现ZIP文件的解压功能,非常实用,有需要的Android开发者可以尝试一下. 下载: DownLoaderTask.java package com.johnny.testzipanddownload; import java.io.BufferedInputStream; import java.

  • Android 软件自动更新功能实现的方法 2015-02-28

    本篇文章小编为大家介绍,Android 软件自动更新功能实现的方法.需要的朋友参考下 相信所有的用户都遇到过软件提醒更新的情况,下面就将实现此功能 首先看一下程序目录结构 步骤: 1.新建一个类UpdateManger,用于显示提示更新 public class UpdateManger { // 应用程序Context private Context mContext; // 提示消息 private String updateMsg = "有最新的软件包,请下载!"; // 下载安

  • [译]通过多线程技术提高Android应用性能 2012-12-04

    英文原文:Gilles Debunne,编译:ImportNew - 赵荣 有一个好方法可以让你的应用保持快速响应,那就是让主UI线程尽量少做事情,如果在UI线程中做一个耗时过长的处理,会导致UI僵死,因此对于有可能耗时过长的任务应该另起一个线程处理.这种典型的应用场景就是做网络相关的操作,因为网络传输过程中可能有意料不到的延迟.通常来说,用户可以忍受反馈时的一小段等待,但界面僵死就是另外一回事了. 本文就根据这种设计模式实现一个简单的图片下载应用,我们将实现一个带有图片预览功能的列表,这些图片

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 闽ICP备15018612号

processed in 0.034 (s). 13 q(s)