摘要:
Main.javapackage src.com;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.net.URL;import java.net.URLConnection;import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.util.Log;import android.v 阅读全文
摘要:
ToDoDB.javapackage src.com;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDatabase.CursorFactory;import android.database.sqlite.SQLiteOpenHelper;public class ToDoDB 阅读全文
摘要:
activity1.xml<?xml version="1.0" encoding="utf-8"?><AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="fill_parent" >< 阅读全文
摘要:
主要代码package com.bro;import android.app.Activity;import android.app.Dialog;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.Bundle;import android.view.View;import android.view.Window;import andr 阅读全文
摘要:
1,web浏览器Uri uri= Uri.parse("http://kuikui.javaeye.com");returnIt = new Intent(Intent.ACTION_VIEW, uri);2,地图Uri mapUri = Uri.parse("geo:38.899533,-77.036476");returnIt = new Intent(Intent.ACTION_VIEW, mapUri);3,调拨打电话界面Uri telUri = Uri.parse("tel:100861");returnIt = new I 阅读全文
摘要:
1.下载svn并加压安装2.创建版本库:例如:现在D盘新建一个文件夹repos然后到svn的bin目录执行指令svnadmin create D:/repos/llk那么llk里就会出现自动创建的svn信息在conf目录的svnserve.comf文件中进行配置authz文件中配置[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joedev=abc [/] @dev=rwpasswd文件中 [users] #harry = harryssecret #sally = sallysse 阅读全文
摘要:
MusicActivitypackage com.audio;import android.app.Activity;import android.media.MediaPlayer;import android.os.Bundle;import android.view.View;import android.widget.ImageButton;import android.widget.TextView;public class MusicActivity extends Activity { /* 声明一个 ImageButton,TextView,MediaPlayer变量 */pr 阅读全文
摘要:
package src.com;import android.graphics.Canvas;import android.graphics.ColorFilter;import android.graphics.PixelFormat;import android.graphics.drawable.Drawable;public class ProxyDrawable extends Drawable { private Drawable mProxy;//画图对象 public ProxyDrawable(Drawable target){//构造函数 mProxy = target.. 阅读全文
摘要:
一、如何获取 res 中的资源数据包package:android.content.res主要类:Resources其主要接口按照功能,划分为以下三部分:getXXXX()例如:int getColor(int id)Drawable getDrawable(int id)String getString(int id) 直接获取res中存放的资源InputStream openRawResource(int id) 获取资源的数据流,读取资源数据void parseBundleExtras(XmlResourceParser parser, Bundle outBundle) 从XML文件中 阅读全文
摘要:
A Drawable is a general abstraction for "something that can be drawn." Most oftenyou will deal with Drawable as the type of resource retrieved for drawing things tothe screen; the Drawable class provides a generic API for dealing with an underlyingvisual resource that may take a variety of 阅读全文