上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 105 下一页

2012年12月11日

指纹弹出确出确认

摘要: //单选型提示,记录两次手指的名称 public void CheckDialog(){ String sno = ""; if (FingerFirst == true|FingerSecond == false){ ... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(180) 评论(0) 推荐(0)

JAVA int String 的类型转换

摘要: nt -> String int i=12345; String s=""; 第一种方法:s=i+""; 第二种方法:s=String.valueOf(i); 这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢? String -> int s="12345"; int i; ... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(103) 评论(0) 推荐(0)

Android ProgressDialog 进度条

摘要: package com.yarin.android.TestOnPDialog;import android.app.Activity;import android.app.ProgressDialog;import android.content.DialogInterface;import ... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(203) 评论(0) 推荐(0)

Android ProgressDialog 转圈圈

摘要: 转圏圏型的等待 ProgressBarDemo.java: package com.lveyo.android.demo.progressbar;import android.app.Activity;import android.app.ProgressDialog;import andr... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(1417) 评论(0) 推荐(0)

android 计时器

摘要: 用JAVA 的方法: class timeextends TimerTask implements Runnable{ public void run() { System.out.println("开始倒计时2秒"); ... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(80) 评论(0) 推荐(0)

android 按扭设置为不可读 替换背景色

摘要: 代码: private Drawable dr1; private Button xxxx ; //setBackgroundDrawabler的图片资源设定,在drawable文件夹下放置所需的按扭背景图片 dr1 =this.getResources().getDrawable(R.dr... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(106) 评论(0) 推荐(0)

Can't create handler inside thre

摘要: 像提示说的,添加 Looper.prepare(); Threadaction=newThread(){ publicvoidrun(){ Looper.prepare(); todo(); Looper.loop();} }; action.start() 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(133) 评论(0) 推荐(0)

java 正常的线程停止操作思想

摘要: publicclass ttt{ runnnr = new runn(); threah t =new threah(r); t.start; ....................... } classrunnn implements Runnable{ ... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(85) 评论(0) 推荐(0)

java 线程同步 synchronized

摘要: Java语言的关键字,当它用来修饰一个方法或者一个代码块的时候,能够保证在同一时刻最多只有一个线程执行该段代码。 一、当两个并发线程访问同一个对象object中的这个synchronized(this)同步代码块时,一个时间内只能有一个线程得到执行。另一个线程必须等待当前线程执行完这个... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(163) 评论(0) 推荐(0)

Error ShouldNotReachHere()

摘要: 在Android项目中创建一个包含main()方法的类,直接右键运行该类时会报如下错误: # # A fatal error has been detected by the JavaRuntime Environment: # # Internal Error(classFilePars... 阅读全文

posted @ 2012-12-11 16:23 王大王 阅读(229) 评论(0) 推荐(0)

上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 105 下一页

导航