05 2014 档案
摘要:在AndroidManifest.xml文件中,可以对每一个Activity设置android:themetheme的设置 可以设置为系统自带的格式,也可以自定义格式。A: 系统自带格式@android:style/Theme.Black//背景黑色-有标题-非全屏@android:style/Th...
阅读全文
摘要:昨天在Eclipse中导入一个Android工程后点击运行时出现了Could not find XXX.apk!的错误信息,具体错误提示如下:到网上搜了好多方法,挨个尝试,最后都没解决但是,重启Eclipse居然好了, 观察发现在bin目录下没有apk文件,可能是因为工程没有完全编译通过无法生成ap...
阅读全文
摘要:1.打开读写SD卡的权限需要在AndroidManifest.xml加入如下代码: 第一种方法:public void saveBitmap(String bitName, Bitmap mBitmap) {File f = new File("/sdcard/" + bitName + ".pn...
阅读全文
摘要:一、通过相机选图片:布局文件:代码:package uk.ac.essex.camerademo1;import java.io.File;import android.app.Activity;import android.content.Intent;import android.graphic...
阅读全文
摘要:发送短信的方法有两种方法可以实现发送短信,其一是使用intent-startActivity,URI数据格式为"smsto:num",调用的action为Intent.ACTION_SENDTO:Uri uri = Uri.parse("smsto:5554");Intent it = new In...
阅读全文
摘要:在Android开发export项目时发现有时会报错,内容如下:Problems were encountered during export: Error exporting PalmIdentify/bin/jarlist.cache: Resource is out of sync with ...
阅读全文
摘要:1、打项目的properties -->android 为其指一个运版本,2、修改default properties 文件 ,改相应版本等级3、选中项目,单击右键,选中properties ,打开android 选中相应 sdk4、project -->clean. KO(blue moon ...
阅读全文
摘要:import java.util.*;public class GN { public static void main(String arg[]) { int a = 0;// 数字标记 int b = 0;// 位置标记 int time = 0;...
阅读全文
摘要:form1.cs using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Syst...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:C#常用函数表1、DateTime 数字型System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3...
阅读全文
摘要:一、一定要养成一个规范标准的代码排版格式,好的排版会让帮助你的人事半功倍。二、一定要培养自己查找错误的能力,要记住别人只帮你一时。三、一定要养成写注释的习惯,特别是你的代码要给别人看时。四、遇到问题,一定不要立刻问别人,其实很多问题都是自己不小心所致,回头看看书你可能会明白原来这也很简单。五、多看看...
阅读全文