摘要: 在开发一个平板点餐软件后台订单打印程序时,使用线程订单打印,为防打印阻塞使用临界区。 阅读全文
posted @ 2015-02-03 16:39 realhopezj 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: 1 printer.getprinter(mdevice, mdriver, mport, mhdmode);2 3 printer.setprinter(pchar(g_PRNzt), mdriver, mport, mhdmode);// 设置打印机,pchar(g_PRNzt)--打... 阅读全文
posted @ 2015-02-03 16:37 realhopezj 阅读(1400) 评论(0) 推荐(0) 编辑
摘要: //实例对象tablesList tables = new TableManager(getApplicationContext()).queryTables();spinnerValue = new String[tables.size()+1];spinnerValue[0]=table_no;... 阅读全文
posted @ 2015-02-03 16:13 realhopezj 阅读(480) 评论(0) 推荐(0) 编辑
摘要: String pxsize = context.getResources().getString(R.string.hello);资源文件格式: Hello World, WirelessActivity! 阅读全文
posted @ 2015-02-03 15:59 realhopezj 阅读(503) 评论(1) 推荐(0) 编辑
摘要: Java字符串格式化:1.数值转换为字符String.format("%.2f", num);String.format("%.0f", num);2.字符转浮点数Double.parseDouble(editText_ordernum); 阅读全文
posted @ 2015-02-03 15:42 realhopezj 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 图片动画播放:import android.view.animation.Animation; import android.view.animation.AnimationSet; //import android.view.animation.RotateAnimation; import an... 阅读全文
posted @ 2015-02-03 15:35 realhopezj 阅读(199) 评论(0) 推荐(0) 编辑