上一页 1 ··· 25 26 27 28 29
摘要: 1.打开读写SD卡的权限需要在AndroidManifest.xml加入如下代码: 第一种方法:public void saveBitmap(String bitName, Bitmap mBitmap) {File f = new File("/sdcard/" + bitName + ".pn... 阅读全文
posted @ 2014-05-24 16:54 n1rAy 阅读(7680) 评论(0) 推荐(0) 编辑
摘要: 一、通过相机选图片:布局文件:代码:package uk.ac.essex.camerademo1;import java.io.File;import android.app.Activity;import android.content.Intent;import android.graphic... 阅读全文
posted @ 2014-05-24 16:47 n1rAy 阅读(1680) 评论(0) 推荐(0) 编辑
摘要: 发送短信的方法有两种方法可以实现发送短信,其一是使用intent-startActivity,URI数据格式为"smsto:num",调用的action为Intent.ACTION_SENDTO:Uri uri = Uri.parse("smsto:5554");Intent it = new In... 阅读全文
posted @ 2014-05-24 16:44 n1rAy 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 在Android开发export项目时发现有时会报错,内容如下:Problems were encountered during export: Error exporting PalmIdentify/bin/jarlist.cache: Resource is out of sync with ... 阅读全文
posted @ 2014-05-24 16:41 n1rAy 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、打项目的properties -->android 为其指一个运版本,2、修改default properties 文件 ,改相应版本等级3、选中项目,单击右键,选中properties ,打开android 选中相应 sdk4、project -->clean. KO(blue moon ... 阅读全文
posted @ 2014-05-24 16:40 n1rAy 阅读(1251) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;public class GN { public static void main(String arg[]) { int a = 0;// 数字标记 int b = 0;// 位置标记 int time = 0;... 阅读全文
posted @ 2014-05-24 16:37 n1rAy 阅读(275) 评论(0) 推荐(0) 编辑
摘要: form1.cs using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Syst... 阅读全文
posted @ 2014-05-24 16:33 n1rAy 阅读(2287) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-05-24 16:29 n1rAy 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: C#常用函数表1、DateTime 数字型System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3... 阅读全文
posted @ 2014-05-24 16:22 n1rAy 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: 一、一定要养成一个规范标准的代码排版格式,好的排版会让帮助你的人事半功倍。二、一定要培养自己查找错误的能力,要记住别人只帮你一时。三、一定要养成写注释的习惯,特别是你的代码要给别人看时。四、遇到问题,一定不要立刻问别人,其实很多问题都是自己不小心所致,回头看看书你可能会明白原来这也很简单。五、多看看... 阅读全文
posted @ 2014-05-24 16:18 n1rAy 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29