• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple connect and download

 
Ryan Greenwood
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I achieve a connection to a pc via serial stream from midp app and then download some resource to the handheld?

Would it be something like

try {
platformRequest("tel:12345678");//do I need to do this and/or is there any other work to be done here?
String uri = "file :/pics/pic.png";//windows
InputConnection conn = (InputConnection) Connector.open( uri, Connector.READ );
InputStream in = conn.openInputStream();

...use the stream??
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic