• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

retrofit2

  1. Gioele

    don't know how to access data using retrofit

    I'm writing an application that have to get data from this site: https://api.spacex.land/graphql/. I'm using retrofit for the first time and I don't have idea how I have to set the API service to get, for example, the launchLatest from this site. This is my model: data class LaunchModel(...
  2. Marcell Tanure

    Error to send Firebase token to Wordpress plugin (missing os parameter)

    I'm trying to connect posts from a Wordpress website using the Wordpress plugin and Firebase for cloud messaging. So whenever there's a new post in the website, the app users will receive a notification about it First, I need to send an API POST request with the device's token to the plugin. Ex...
  3. A

    Apps Android Retrofit: Unable to upload image to server. Uploads 0 kb image when using file_put_contents

    Hi, I am trying to use retrofit to upload an image from the android device to mysql database and server. Below is the java code that I am using for uploading the image: ``` private void uploadImage() { Bitmap fullSizeBitmap = BitmapFactory.decodeFile(pathToFile); Bitmap...