- 博客(8)
- 收藏
- 关注
原创 属性文件配置
String dburl = Tools.getConfigFileValue("dburl"); String dbname = Tools.getConfigFileValue("dbname"); String dbssid = Tools.getConfigFileValue("dbssid"); String dbpassword = Tools.getCo...
2012-05-15 12:33:28 95
原创 底部菜单
<LinearLayout android:id="@+id/main_radio" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true"...
2012-05-15 12:06:19 96
原创 对话框菜单
/** * * @author lilin * @date 2012-5-18 下午2:21:14 * @annotation 对话框菜单 */ public static void showAlertMenu(Context con, String title, String menuitems[], DialogInterface.OnCli...
2012-05-10 22:21:49 97
原创 如何同model匹配
注意表名是model的类名,不是数据库的表名sql = "from FrameAttachInfo where CLIENGGUID='" + rowguid + "'";执行方法:List<FrameAttachStorage> list0 = em.createQuery(sql0).getResultList();Model类生成注意:1....
2012-05-04 09:44:48 207
原创 蓝牙常用方法
打开蓝牙:有提示: Intent enableIntent = new Intent( BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableIntent, REQUEST_ENABLE_BT);无提示:mBluetoothAdp = BluetoothAdapt...
2012-05-03 21:57:09 97
原创 HandlerThread的使用
package com.lilin.looper;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.HandlerThread;import android.os.Looper;import android.os.Mess...
2012-05-03 08:21:50 71
原创 通过Runnable来实现普通线程和Handler
package com.andli.handlerandthread;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.util.Log;public class HandlerAndThreadDemo extends Act...
2012-05-03 08:20:40 89
原创 handler处理message
package com.lilin.handler;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.widget.ImageView;/** * 通过Handler实...
2012-05-03 08:19:19 102
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人