Android socket programming

Hey guys,
I need a little help with socket programming for Android. I created a prototype client server using java socket programming. In the client server script, I send commands from 1 to 10 and perform some tasks in accordance with the command received from the client. for example, when the server receives a command, it will send a bufferedImage to the client. Its (java prototype) is working fine. In this case, both the server and the client are Java desktop applications, now I want to make android as a client. Can someone help me in this regard or offer me good socket programming resources for Android?
(Note that the BufferedImage class is not supported by android)

+6
source share
2 answers

No problem with porting the application. Android runs on Java, which is very similar to the desktop version. All you need to do is transfer the BufferedImage to a simple byte array and use ImageIO on your server side.

+7
source

@Op. Please note that you on the Android device probably also want to save PARTIAL_WAKE_LOCK during image loading.

0
source

Source: https://habr.com/ru/post/887429/


All Articles