I have an offline system that integrates with an Android app over a TCP
connection.
I need to get an image stored in the system (in the format of "c:/user/me/img/img.png"
) from the android app and display it inside a button (not imageButton as the button could be either text, or image with a text).
I've tried sending the raw url but I couldn't load the image from the app even after converting it to a bitmap and drawable. So I thought maybe the raw url idea is not a good idea. Do I send a different format (URI?)
from the pc to the app? What is the best working way to go about this?
Cheers
EDIT
exchange of data between the two are completely fine. i just need a way for the app to be able to display the image from the app's local database
, which was populated with the string data that was sent by the pc over tcp. im just not sure what to send