Pi4j image transmit to Android app - java

I want to take an image from raspberry and recive it on and Android App (this is the problem). I already have a Java project that create an image and store it in a predefined location. I don't know how to create a server on Android app, and how to upload my image on the server. I think i will create a post webservice on raspberry to upload the image on my phone app.The image from rpi must be displayed on the phone (like notification or something). I need help on Android app, I don't know how to recive the image on the phone/how to send it from rpi location/how to show the notification when the image was send it/ how to show the image on the phone.

Related

How to upload and receive an image to an API in Android Studio

I'm trying to implement an Android app that uploads an image taken by the user to an API which removes the image's background, and sends it back to the Users device.
Here is the API for more info. I'm trying to send a jpeg image and receive the image as a jpeg aswell.
The API docs state that the POST request has to be multipart/form. I don't have any experience on making API calls using Volley and was wondering if any one could help me figure out how to do it. Thanks in advance.

Is it possible to send a thumbnail of an image with FCM?

I just developing a communication application like Whatsapp and I just want to know can i compress and decode an image for thumbnail with BASE64 with size of 4Kb to send it via FCM to target phone ?
As far as I know , you need to upload that first and then you can send that link using FCM and on the another side you need to fetch that image.

How to download an image on Android wear?

I have an ArrayList of Serialization objects on my handheld.
I found a solution to send it to my wearable device.
Can I send custom objects to Android Wear?
In my Object I have the URL of an image and in my handheld I am using Picasso to download the image from the URL (es in a ImageView).
Can I download the image in the wearable? (I think no).
Should I download all the images of the ArrayList in the handheld and send it putting them as assets in a DataMap?
You can't download images directly from the Wear as there's no direct internet access.
However you're on the right path by downloading images on mobile (e.g. using Picasso), then transferring them to the Wear via an Asset.
There's a tutorial with all the code required on how to send an image using an Asset in the Android training section:
https://developer.android.com/training/wearables/data-layer/assets.html

php triggers android app to send its gps location

I am a beginner in java and php.
My application is made of 2 parts:
server side (php)
client side android device (java).
Whenever the admin on the server side wants, he can send request to the android for its location coordinates even if the application on android is not running.
I managed to create the java file that will detect the mobile location and save it in a variable on the android.
My question is, how to enable the php(server side) to send request that will start the action of finding the location coordinates on the android?
thank you for the help in advance!
You can add push notification capability to your app using Google Cloud Messaging for Android.

How to transfer images from Android client to Java server

I am trying to developer an Android application which allows to capture pictures with the camera, and send the pictures to a Java server.
I don't need the picture after, so I do not need to store it in the phone locally.
I was able to successfully to transfer simple text from client to server, but I'm having problems with images.
What do I need to do to be able to send images from the Android client, and should anything special be made in the server apart from what it is doing now?
Solution is to use http request with MultipartEntity.

Categories