Can you share your exact code? Did you put that little snippet in the
doInBackground function in the
AsyncTask class in
onActivityResult of the
If so, that's not where that code should be, you should be receiving the response in
onPostExecute. You can't get predictions from the Clarifai API in
doInBackground as the request is asynchronous and needs time to execute.
Our website has a code snippet that should help you find what you have to change to use custom training https://developer.clarifai.com/quick-start/
Hope that helps, let me know if you have any more questions.