Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 41
Registered: ‎04-24-2012
My Device: storm
My Carrier: blackberry

System.in in blackberry java

hi im trying to port a app from andriod to blackberry java in 1 part of the app it gets input from the server and put it in a System.in.read() method but when i looked at the api there is no System.in in the system class is there any substitute for it in blackberry java?

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: System.in in blackberry java

You put data "in" to System.in? System.in is to read data "out".
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: System.in in blackberry java

to receive data from a server you open an inputstream, for example on an httpconnection.
check the httpdemo and other samples to see that in the field.

I suggest to read it with this method:
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter