- 博客(10)
- 资源 (1)
- 问答 (3)
- 收藏
- 关注
原创 google mapView 用法
activity 代码 package com.example.mapview;import android.os.Bundle;import android.view.Menu;import com.google.android.maps.MapActivity;import com.google.android.maps.MapController;im...
2014-12-31 17:57:05 297
原创 The method setBuiltInZoomControls(boolean) is undefined for the type MapView
package com.googlemaps;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;import com.google.android.gms.maps.MapView;import com.google.android.maps.MapActivi...
2014-12-31 17:54:50 193
原创 java List 集合 判不为空 和 判不为null的区别
List<String> list = new ArrayList<String>();判不为空的写法if(list != null && list.size() == 0){//代码} 判不为null 的写法if(list != null && list.size() != 0){//代码} ...
2014-12-31 15:24:42 374
原创 java List String 包含
List<String> list = new ArrayList<String>();list.add("fsfs");list.add("abc");list.add("ffdes");System.out.println(list.contains("abc"));上述代码即可解决:如何在List<String> 链表
2014-12-31 11:12:50 433
原创 android intent 传递各种结构数据
android intent 传递list或者对象方法一: 如果单纯的传递List<String> 或者List<Integer>的话 就可以直接使用 Java代码 intent.putStringArrayListExtra(name, value) intent.putIntegerArrayListExtra(name, value) 方法二:...
2014-12-29 14:55:42 359
actionbar back 图标自定义
<resources> <style name="MyCustomTheme" parent="Theme.Sherlock.Light"> <item name="homeAsUpIndicator">@drawable/ic_home_up</item> </style>
2014-12-29 13:54:43 114
原创 actiobar title icon 隐藏 解决方案
常用解决方案:getSupportActionBar().setDisplayShowHomeEnabled(false);getSupportActionBar().setDisplayShowTitleEnabled(false); 但是目前这种情况: 在启动activity 会出现显示icon 或 title, 然后消失的效果, 造成很不好的体验解决方...
2014-12-29 13:44:06 112
原创 android write file
public static void writefile(String text, String fileName){ File externalStorageDir = Environment.getExternalStorageDirectory(); File myFile = new File(externalStorageDir , fileName);//...
2014-12-29 11:24:54 385
progressDialog in AsyncTask
class QueryBibleDetail extends AsyncTask<Integer, Integer, String>{ private Activity activity; private ProgressDialog dialog; private Context context; publ...
2014-12-26 17:32:52 118
原创 android 表单布局 左右布局
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="match_parent" android:stretchColumns="*" > <TableRow
2014-12-22 11:32:27 1317
javamail如何不需要进行用户认证?并且使用的是企业内部无密码的邮箱账户?
2014-04-14
java如何使用qmail进行邮件转发
2014-04-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人