Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Asynctask to fix error

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get JSON from RPC and I am keep getting error:



I found out that application is crashing at line:




Full code looks like:



I tried to put it in Asynctask but I didn't know how to do it, all attempts failed.
 
Rancher
Posts: 4453
47
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your AsyncTask look like?
How is it called?
 
Gaios Augustus
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:What does your AsyncTask look like?
How is it called?



Well I removed it completely as I didn't know how to get it work, it always returnet me NULL object.
 
Saloon Keeper
Posts: 11221
244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rewrite the asynchronous code and show it to us. We will comment on possible mistakes.
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!