An Error Occured While Executing Doinbackground(). Fatal Exception:asynctask #10
On the click event add data to MySQL database through php on the localhost. Its showing following logcat error on the click event. Please help me to solve this problem. 08-11 07:31
Solution 1:
jsonParser
has never been initialized. You need to initialize before you can use it.
Also you can not make Network requests on the UIThread
. This will cause a NetworkOnMainThreadException
. You will need to use an AsyncTask
. Check this NetworkOnMainThreadException
Post a Comment for "An Error Occured While Executing Doinbackground(). Fatal Exception:asynctask #10"