simpleAdapter里面的内容要修改啊,
解决方案 »
- 新手求教jquery mobile+phonegap中文乱码
- 一个线程new 的socket 能被 其他线程访问么?代码见正文。
- 请问gingerbread版本中的/dev/i2c-*设备文件对应ics4.0中的哪个文件?
- cannot find symbol symbol : class ServiceManager,求助!
- android蓝牙自动配对怎么解决
- 有android程序员想换工作的吗?地点南京
- 寻android调用webservice的源码
- 愁人的ANR(求助)
- 程序退出后,无法接收系统广播了,请帮忙看看,谢谢。
- Android 新搭建开发环境,gen目录下没有R类,clear 都不行
- View子类调用findViewById()方法报cannot cast 错误
- android应用发布问题
new AlertDialog.Builder(this).setTitle("重命名")
.setView(input).setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int which) {
String newfilename = input.getText().toString();
Map<String, Object> itempath =listItemsPath.get(selectedPosition);
File file = new File((String) itempath.get("filePath"));
String newFilePath = file.getParent();
File newFile = new File(newFilePath+"/"+newfilename);
try{
if(file.renameTo(newFile)){
listItemsPath.remove(selectedPosition);
simpleAdapter.notifyDataSetChanged();
// simpleAdapter.notifyDataSetChanged();
}
new AlertDialog.Builder(this).setTitle("重命名")
.setView(input).setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int which) {
String newfilename = input.getText().toString();
Map<String, Object> itempath =listItemsPath.get(selectedPosition);
File file = new File((String) itempath.get("filePath"));
String newFilePath = file.getParent();
File newFile = new File(newFilePath+"/"+newfilename);
try{
if(file.renameTo(newFile)){
listItemsPath.remove(selectedPosition);
simpleAdapter.notifyDataSetChanged();
// simpleAdapter.notifyDataSetChanged();
}