我在自定义ContentProvider中,遇到了这个错误:
原因在于:
我在要分享数据的程序中创建数据库的弹出了一个土司,这个土司在主线程中,在第二个程序中,向数据库中添加数据的时候导致其挂了。
切记:不要在主线程中更新UI。...
分类:
其他好文 时间:
2014-12-24 18:05:24
阅读次数:
174
You can easily remove a Windows service from the Windows registry using a simple command prompt command called SC. SC is the command line utility whic...
DescriptionLet’s have a look at the picture belowNow, do you know what it’s? Yeah , O(∩_∩)O~ , It is the game called JinYueTuan. chjing plays it very ...
分类:
其他好文 时间:
2014-12-22 14:10:23
阅读次数:
189
In TFS2008, deleting a build removes it from the database itself. If you delete a build called Build_20110423.1 or 1.0.0.1 from Build Explorer and tri...
分类:
Web程序 时间:
2014-12-21 20:33:52
阅读次数:
371
http://acm.hdu.edu.cn/showproblem.php?pid=5148
Problem Description
Long long ago,there is a knight called JayYe.He lives in a small country.This country is made up of n cities connected by n-1...
分类:
其他好文 时间:
2014-12-21 11:33:39
阅读次数:
224
我刚下载并安装了最新的Android SDK,我想创建一个简单的工程学习。
根据向导创建的代码如下
package eu.mauriziopz.gps;
import android.app.Activity;
import android.os.Bundle;
public class ggps extends Activity {
/** Called when the a...
分类:
移动开发 时间:
2014-12-19 12:18:37
阅读次数:
154
一个服务器程序,长时间运行报错了. ----------- terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc ----------- 据查为内存不足所致 new 无法分配到相应内存...
分类:
其他好文 时间:
2014-12-17 09:40:45
阅读次数:
153
[PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ? ; ;;;;;;;;;;;;;;;;;;; ; PHP‘s initialization file, generally called php.ini, is responsible for ; configuring many of the aspects of PHP‘s behavior. ; P...
分类:
Web程序 时间:
2014-12-16 21:10:27
阅读次数:
791
Multiple lifecycle mechanisms configured for the same bean, with different initialization methods, are called as follows: Methods annotated with @Post...
分类:
编程语言 时间:
2014-12-16 11:16:15
阅读次数:
199
Recentlywe talked about Unity and WebGL. In that post we briefly spoke about how scripting works in WebGL, using new technology called “IL2CPP”. Howev...
分类:
编程语言 时间:
2014-12-16 00:59:42
阅读次数:
446