`
vyphn
  • 浏览: 97728 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表
private boolean addWeatherWidget(SQLiteDatabase db, ContentValues values,TypedArray a) { String packageName = a.getString(R.styleable.Favorite_packageName); String className = a.getString(R.styleable.Favorite_className); if(packageName == ...

自定义菜单

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="134dip" ...
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system use, # "build.properties", and override v ...
转自http://www.cnmsdn.com/html/201012/1293303753ID8853.html 从目前为止Android平台各方面做的都得到了广大用户的肯定,但是唯一Google在设计API方面有着很大的问题。相对于成熟的微软Android 平台的API设计的基本上可以说太糟糕了,架构师可能没有充分考虑到今天的升级。基本上Android123把目前平台分为三部分。1.0,1.1是一个时代,基本上已经全部淘汰了,1.5和1.6是第二个阶段,2.0,2.1和2.2是第三个阶段目前为主流,但是由于各个厂商的加入,导致了除了 Android版本问题外,针对Samsung、Motor ...
101010100=北京 101010200=海淀 101010300=朝阳 101010400=顺义 101010500=怀柔 101010600=通州 101010700=昌平 101010800=延庆 101010900=丰台 101011000=石景山 101011100=大兴 101011200=房山 101011300=密云 101011400=门头沟 101011500=平谷 101011600=八达岭 101011700=佛爷顶 101011800=汤河口 101011900=密云上甸子 101012000=斋堂 101012100=霞云岭 101020100=上海 1010 ...
package com.studio.android.chp08.ex01; import java.io.IOException; import java.util.List; import android.app.Activity; import android.content.Context; import android.location.Address; import android.location.Criteria; import android.location.Geocoder; import android.location.Location; ...
原文:http://www.dnbcw.com/biancheng/shouji/odqv228067.html Android应用程序被限制在16MB的堆上运行,应该尽可能少地使用内存,来确保其它应用程序得以运行。Android在内存中保留更多的应用程序,对于用户来说,程序间切换就能更快。Android应用程序的内存泄露大多数都是由于相同的错误导致的,即:对Context拥有较长时间的引用。 在Android上,Context常用于许多操作,更多的时候是加载和访问资源。这就是为什么所有的Widget在它们的构造函数里接受一个Context的参数。在一个正常的Android应用程序里,你会 ...
最近研究了Notification,参考了一些文档,写了一些心得。在官方文档中得知在Android的Notification中可以显示进度条 ,就想做个例子试一下。在网上查了下,没有找到 。决定自己写下,费了九牛二虎之力搞定了,现在拿出与大家分享下,废话少说,上代码:先自定义一个view <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi ...

实时文件夹

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.studio.android.ch10.ex2" android:versionCode="1" android:versionName="1.0"> <application android ...

listView 延迟加载

目前的一个解决办法:OnScrollListener来监听 list.setOnScrollListener(new OnScrollListener(){ @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { //判断 最后一条开始显示,那么加载新数据 if(firstVisibleItem+visibleItemCount == totalItemCount){ //加载新数据 mylist.add("a& ...
private class ConnectThread extends Thread { private final BluetoothSocket mmSocket; private final BluetoothDevice mmDevice; public ConnectThread(BluetoothDevice device) { BluetoothSocket tmp = null; mmDevice = device; //从BluetoothDevice中获取Socket ...
所谓AOP即是将分散在各个方法处的公共代码提取到一处, 并通过类似拦截器的机制实现代码的动态织入。 可以简单地想象成,在某个方法的调用前、返回前、调用后和抛出异常时,动态插入自己的代码。

文件IO

final String FILE_PATH="/data/data/com.android.hymake.ecard/"; final String FILE_NAME="CARD.XML"; final String TEXT_ENCODING = "UTF-8"; File file; FileOutputStream out; FileInputStream in; String display; //生成保存本机名片 ...
1.需求风险 ①需求已经成为项目基准,但需求还在继续变化; ②需求定义欠佳,而进一步的定义会扩展项目范畴; ③添加额外的需求; ④产品定义含混的部分比预期需要更多的时间; ⑤在做需求中客户参与不够; ⑥缺少有效的需求变化 ...
Global site tag (gtag.js) - Google Analytics