processing / processing-android

Processing mode and core library to create Android apps with Processing
http://android.processing.org
779 stars 292 forks source link

import processing.net.* that is not available in Android mode #643

Open ajavamind opened 3 years ago

ajavamind commented 3 years ago

I use processing.net in Java mode and would like to use in Android mode too. The library is missing. I got around the problem by using the Client source code in a tab, after removing package and public keywords. I think the net library would be useful. Another issue https://github.com/processing/processing-android/issues/177 discussed the same problem and solution but should not have been closed. I also found the Client code had an excessive timeout value that I think a new library should make configurable. My work around /**

ranaaditya commented 3 years ago

@codeanticode do we really need to separately implement Network and PDF library for android-mode ?

codeanticode commented 3 years ago

@ajavamind thanks for bringing this issue up.

@ranaaditya We might need a separate implementation of the Network library, not sure how much of the original Java library can be reused but according to what @ajavamind is saying, at least some of it. I don't think it makes sense to port the pdf library to Android becayse it's mean to render the output of the sketch to a pdf file, doesn't seem a very useful use case on mobile.

ranaaditya commented 3 years ago

@ajavamind thanks for bringing this issue up.

@ranaaditya We might need a separate implementation of the Network library, not sure how much of the original Java library can be reused but according to what @ajavamind is saying, at least some of it. I don't think it makes sense to port the pdf library to Android becayse it's mean to render the output of the sketch to a pdf file, doesn't seem a very useful use case on mobile.

@codeanticode I feel the same, actually we can make separate network library wrapper based on android.net package and java.net I mentioned this issue GSoC-potentials projects also :)