google-code-export / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

[report from market]IllegalStateException@TweetArrayAdapter #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
java.lang.IllegalStateException: The content of the adapter has changed but 
ListView did not receive a notification. Make sure the content of your adapter 
is not modified from a background thread, but only from the UI thread. [in 
ListView(2131361801, class com.ch_linghu.fanfoudroid.ui.module.MyListView) with 
Adapter(class com.ch_linghu.fanfoudroid.ui.module.TweetArrayAdapter)]
at android.widget.ListView.layoutChildren(ListView.java:1601)
at android.widget.AbsListView$CheckForTap.run(AbsListView.java:2000)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by ch.lin...@gmail.com on 20 Jun 2011 at 1:46

GoogleCodeExporter commented 9 years ago
//come from another bug report but I think it's same problem

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.ch_linghu.fanfoudroid/com.ch_linghu.fanfoudroid.TwitterActivit
y}: java.lang.IllegalStateException: Content has been consumed
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2852)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2873)
at android.app.ActivityThread.access$2300(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2186)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5127)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: Content has been consumed
at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:84)
at 
org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:100)
at com.ch_linghu.fanfoudroid.http.Response.entityToString(Response.java:100)
at com.ch_linghu.fanfoudroid.http.Response.asString(Response.java:81)
at com.ch_linghu.fanfoudroid.http.Response.asJSONObject(Response.java:163)
at com.ch_linghu.fanfoudroid.fanfou.User.<init>(User.java:119)
at com.ch_linghu.fanfoudroid.fanfou.Weibo.showUser(Weibo.java:694)
at 
com.ch_linghu.fanfoudroid.TwitterApplication.fetchMyselfInfo(TwitterApplication.
java:63)
at 
com.ch_linghu.fanfoudroid.TwitterApplication.getMyselfId(TwitterApplication.java
:77)
at com.ch_linghu.fanfoudroid.TwitterActivity.getUserId(TwitterActivity.java:255)
at 
com.ch_linghu.fanfoudroid.TwitterActivity.fetchMessages(TwitterActivity.java:173
)
at 
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity.setupState(TwitterCu
rsorBaseActivity.java:213)
at 
com.ch_linghu.fanfoudroid.ui.base.TwitterListBaseActivity._onCreate(TwitterListB
aseActivity.java:136)
at 
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity._onCreate(TwitterCur
sorBaseActivity.java:317)
at com.ch_linghu.fanfoudroid.TwitterActivity._onCreate(TwitterActivity.java:91)
at com.ch_linghu.fanfoudroid.ui.base.BaseActivity.onCreate(BaseActivity.java:44)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2816)
... 11 more

Original comment by ch.lin...@gmail.com on 20 Jun 2011 at 1:49