Reputation: 206
I am trying to post a status to facebook from my android apps...I have done the thing in a demo project and its runnning well when i am trying to do it in my own project ,after installing facebook in the device it is showing "can not post to wall"... Here is a snap of my logcat
Any suggestion please....
Upvotes: 0
Views: 195
Reputation: 13808
Don't perform network operation on the main UI. You can start a async task and post the message in it. http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html
The exception that is thrown when an application attempts to perform a networking operation on its main thread.
This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. See the document Designing for Responsiveness.
Upvotes: 1