在Windows下的路径分隔符和Linux下的路径分隔符是不一样的,当直接使用绝对路径时,跨平台会暴出“No such file or diretory”的异常。 比如说要在temp目录下建立一个test.txt文件,在Windows下应该这么写: File file1 = new File ("C ...
分类:
编程语言 时间:
2017-08-14 19:07:54
阅读次数:
126
selectpaypnoas放款计划编号, group_concat(concat(loano,‘-‘,custname)separator‘,‘)as‘订单号-客户姓名‘frompayp_itemagroupbypaypno
分类:
数据库 时间:
2017-08-14 15:18:52
阅读次数:
169
package org.samsung.miniproject;import android.app.Activity;import android.content.ContentValues;import android.content.Intent;import android.database... ...
分类:
其他好文 时间:
2017-08-13 23:34:49
阅读次数:
393
文章转载自http://blog.csdn.net/demonliuhui/article/details/51511136 这里仅供自己学习参考; Context,中文直译为“上下文”,SDK中对其说明如下: 1、它描述的是一个应用程序环境的信息,即上下文。 2、该类是一个抽象(abstract ...
分类:
其他好文 时间:
2017-08-13 19:22:21
阅读次数:
173
SELECT GROUP_CONCAT(COLUMN_NAME SEPARATOR ",") FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'db_name' AND TABLE_NAME = 'table_name' 修改红色部分为自己数 ...
分类:
数据库 时间:
2017-08-13 12:35:16
阅读次数:
190
1. Android中如何从一个Activity中ArrayList<HashMap<String,Object>>传递到另一个activity? eg: 存:intent.putExtra("arrayList", dataList); 取(记得强制类型转换): ArrayList<HashMap ...
分类:
其他好文 时间:
2017-08-13 10:04:50
阅读次数:
166
不时的回过头来看看自己的Andriod学习、实践之路,总发现有些曾经不明确的,如今清楚缘由。也会发现一些之前没怎么关注的。如今看到了 ,很想去深刻了解的。 比方:Bundle。 在一个Activity的生命周期中,首先要运行的是onCreate方法 @Override protected void ...
分类:
移动开发 时间:
2017-08-12 18:58:06
阅读次数:
194
Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.example.timer"... ...
分类:
移动开发 时间:
2017-08-12 14:02:46
阅读次数:
181
Intent i = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");String pkg = "com.android.settings";String cls = "com.android.settings.applicat ...
分类:
移动开发 时间:
2017-08-12 13:23:54
阅读次数:
287
android其中显式intent和隐式intent的差别 定义: Intent定义:Intent是一种在不同组件之间传递的请求消息。是应用程序发出的请求和意图。作为一个完整的消息传递机制,Intent不仅须要发送端,还须要接收端。 显式Intent定义:对于明白指出了目标组件名称的Intent。我 ...
分类:
其他好文 时间:
2017-08-11 14:47:17
阅读次数:
218