- 浏览: 97728 次
- 性别:
- 来自: 福州
最新评论
-
程言方:
为何只显示经纬度 而不显示所在城市呢
android 根据经纬度定位所在城市 -
cyminge:
楼主好人!
中国天气网城市代码 -
甘小六要帅气的生活:
为啥只有经纬度,获取不到城市名称喃
android 根据经纬度定位所在城市 -
team2014:
经纬度貌似没错31.2194543 121.409895,好像 ...
android 根据经纬度定位所在城市 -
mfkxk298:
确实不错的方法,经纬度我测试了下,保留三位小数后一直能取到正确 ...
android 根据经纬度定位所在城市
文章列表
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 延迟加载
- 博客分类:
- Android
目前的一个解决办法: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即是将分散在各个方法处的公共代码提取到一处, 并通过类似拦截器的机制实现代码的动态织入。
可以简单地想象成,在某个方法的调用前、返回前、调用后和抛出异常时,动态插入自己的代码。
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;
//生成保存本机名片 ...