Closed atpanos closed 6 months ago
I need the id of the created post. If I want to delete it in the future I have then the id stored.
Then change the type of AsyncTask<Void>
to AsyncTask<String>
and return post id from the response of api call.
Inactive!
Instead, what you can do is check the success and failure of the result in the method body itself and then throw an exception if it fails.