Hi @yannick - heard some feedback on this.
Without any additional info it's hard to know why this code fails, so you may want to test some Clarifai code in a regular Java project first to make sure that it works. On the object returned by
executeSync() method you can call the
.getStatus().errorDetails() methods to figure out if the Clarifai request failed. You'll also want to add some error handling (try/catch) and print errors to figure out the source.
Another thing - you probably don't want to run long-lasting code such as prediction in an
onCreate method, but rather, in a different method asynchronously.
You can find some Java Android examples at https://github.com/Clarifai/clarifai-android-starter