- 浏览: 327200 次
- 性别:
- 来自: 苏州
-
最新评论
-
waterM:
...
DBVis 连接数据库配置 -
航空母舰:
上源码吧,差资源,都跑不起来!
ListView_split 分割 -
wade200:
学习了
启动另一个Activity并返回结果(附源码) -
AndLi:
里面的坐标被我写死了啊,你注释掉就可以了
GPS定位 -
kunlinchen2010:
求指教,QQ:446482624
GPS定位
文章列表
<LinearLayout
android:id="@+id/main_radio"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
an ...
/**
*
* @author lilin
* @date 2012-5-18 下午2:21:14
* @annotation 对话框菜单
*/
public static void showAlertMenu(Context con, String title,
String menuitems[], DialogInterface.OnClickListener listener) {
AlertDialog.Builder builder = new AlertDialog.Builder(con);
builder.setT ...
如何同model匹配
- 博客分类:
- JWeb
注意表名是model的类名,不是数据库的表名
sql = "from FrameAttachInfo where CLIENGGUID='" + rowguid + "'";
执行方法:
List<FrameAttachStorage> list0 = em.createQuery(sql0).getResultList();
Model类生成注意:
1.注意有下划线的字段:
@Column(name = "DETAIL_ADDRESS")
private String DET ...
打开蓝牙:
有提示:
Intent enableIntent = new Intent(
BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableIntent, REQUEST_ENABLE_BT);
无提示:
mBluetoothAdp = BluetoothAdapter.getDefaultAdapter();// 获取本地蓝牙适配器
mBluetoothAdp.enable();
关闭蓝牙:
mBluetoothAdp.disenable();
...
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.Message;
/**
* 使用Looper来处理消息队列
*
* @author lilin
* @date 2011-8-10 上午09:03:32
* @ClassName: ...
package com.andli.handlerandthread;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
public class HandlerAndThreadDemo extends Activity {
private String tag = "andli";
public void onCreate(Bundle savedInstanceState) ...
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实现2秒自动换图
*
* @author lilin
* @date 2011-8-10 上午08:51:27
* @ClassName: Main
* @Description: ...
android 更新ADT之后 报java.lang.NoClassDefFound
选中工-->Java Build Path --> 选中标签 Order and Export -->选中 没有找到的class 的jar包 或者 包含的工程 -->点击OK
package org.yaoming.read_his;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
public class ...
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实现2秒自动换图
*
* @author lilin
* @date 2011-8-10 上午08:51:27
* @ClassName: Main
* @Description: ...
package com.andli.handlerandthread;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
public class HandlerAndThreadActivity extends Activity {
private String tag = "andli";
public void onCreate(Bundle savedInstanceSt ...
进度条对话框:通过Handler实现
- 博客分类:
- Dialog
package com.lilin.progressdialog;
//声明包语句
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import andr ...
一个简单C程序:
#define PRICE 30;//使用 #define来定义符号常量
//一般为大写,在其作用域里不能被改变,不能被赋值
#include <stdio.h>
int main()
{
// int a,b;
// scanf("%d,%d",&a,&b); //输入a,b scanf是输入函数
// // &a 意思是:取地址 将2个值分别输入a,b对应的地址中
//
// printf("sum = %d \n " ...