上一页 1 ··· 7 8 9 10 11

2013年6月8日

摘要: Shape Drawable这一类的shape定义在xml中file location:res/drawable/filename.xml The filename is used as the resource ID.(这个文件名作为资源id)compiled resource datatype:(复杂资源的数据类型)Resource pointer to aGradientDrawable.resource reference(资源参考):In Java:R.drawable.filename In XML:@[package:]drawable/filenamesyntax:(语法)&l 阅读全文
posted @ 2013-06-08 17:26 蓼蓝的梦想 阅读(329) 评论(0) 推荐(0) 编辑

2013年5月30日

摘要: 初试javax.mail最近在项目中用到发送邮件的功能,由于以前没有接触过,找了很多资料才终于把它弄出来,今天写下这些,算是做个总结吧。 1、首先定义一个邮件的数据结构类 public class EmailData() { String from = null;//发件人 String[] recipients = null;//收件人,可以多个 String subject = null;//邮件主题 String content = null;//邮件内容 String contentType = null;//邮件内容格式(文本或html) String fileName = nul. 阅读全文
posted @ 2013-05-30 16:10 蓼蓝的梦想 阅读(225) 评论(0) 推荐(0) 编辑

2013年4月25日

摘要: TextView tf = (TextView)findViewById(R.id.tf); try { Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec("mount"); InputStream is = proc.getInputStream(); InputStreamReader isr = new InputStreamReader(is); String line; ... 阅读全文
posted @ 2013-04-25 15:24 蓼蓝的梦想 阅读(251) 评论(0) 推荐(0) 编辑

2013年1月29日

摘要: public class UEHandler implements Thread.UncaughtExceptionHandler { private MyApp softApp; private Context context; public UEHandler(MyApp app,Context context) { softApp = app; this.context = context; } public void uncaughtException(Thread thread, Throwable ex) { ... 阅读全文
posted @ 2013-01-29 11:36 蓼蓝的梦想 阅读(377) 评论(0) 推荐(0) 编辑

2012年12月28日

摘要: 1. 当项目中包含大量图片,或者图片过大方法1:等比例缩小图片复制内容到剪贴板代码:BitmapFactory.Options options = new BitmapFactory.Options();options.inSampleSize = 4方法2:对图片采用软引用,及时地进行recyle()操作复制内容到剪贴板代码:SoftReference<Bitmap> bitmap;bitmap = new SoftReference<Bitmap>(pBitmap);if(bitmap != null){if(bitmap.get() != null &&a 阅读全文
posted @ 2012-12-28 15:43 蓼蓝的梦想 阅读(163) 评论(0) 推荐(0) 编辑

2012年11月8日

摘要: 先看效果图: 这是本人的习惯,先上图显示效果,看是否是想要的,再看代码。有图有真相代码:main 1 package com.gem.hsx.appupdate; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.os.Bundle; 6 import android.view.View; 7 import android.view.View.OnClickListener; 8 import android.widget.Button; 9 10 public class M. 阅读全文
posted @ 2012-11-08 11:19 蓼蓝的梦想 阅读(825) 评论(0) 推荐(0) 编辑

2012年6月8日

摘要: 原帖地址:http://www.eoeandroid.com/thread-76280-1-1.html方法一:设置背景颜色在drawable加一个xml文件 内容如下:<?xml version="1.0" encoding="UTF-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1 阅读全文
posted @ 2012-06-08 16:11 蓼蓝的梦想 阅读(7961) 评论(0) 推荐(0) 编辑

2012年5月29日

摘要: 1. 使用说明1.1 运行环境:Selenium IDE工具使用在火狐5.0以上高版本中;Selenium rc使用在火狐3.0.版本,不适用高版本。1.2 操作说明准备工作:为了方便selenium脚本的录制执行,我在本机安装了两个火狐,一个是3.0版本一个是5.0版本。5.0版本是为了录制selenium脚本使用selenium IDE准备的。3.0版本的火狐浏览器是为了执行selenium脚本,使用selenium rc准备的。1.2.1 使用介绍1.2.1.1 Selenium IDE使用介绍1.2.1.1.1 selenium IDE工具安装启动火狐浏览器(此处本人使用5.0版本)。 阅读全文
posted @ 2012-05-29 11:22 蓼蓝的梦想 阅读(484) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11