BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 03-05-2007, 11:52 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jan 2007
Location: Münster, Germany
Model: 8700
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to response on a HTTP Push?

Please Login to Remove!

I am able to push data on a blackberry device by following the JDE example (I made it more simple than in the example).

I establish a connection (HttpURLConnection) and send the data to http://...../push?DESTINATION...

The BB receives the Push and the data I send. Now I would like that the BB can response to that connection (StreamConnection). How is this possible? Has anyone a SIMPLE example?

What I tried: get an OutputStream (BB side) from the StreamConncetion and send data over that outputstream output.write(...). This didn't work when I waited with on the "other side".
Old 03-05-2007, 02:17 PM   #2 (permalink)
Knows Where the Search Button Is
Join Date: Feb 2007
Model: 9000
Carrier: SFR
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts

Socket connection is not "simple". If you go that way with a Blackberry you have to be sure you have the good data plan, there is some modification to do on url and there is some configuration issues.
If you want a simple connection, implement an http connection on the BB side too.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Digital Potentiometer LABGO 122
Digital Potentiometer LABGO 122 pictureDigital Potentiometer LABGO 114
Digital Potentiometer LABGO 114 pictureDigital Potentiometer LABGO 102
Digital Potentiometer LABGO 102 pictureDigital Potentiometer LABGO 101
Digital Potentiometer LABGO 101 pictureDigital Potentiometer LABGO 120
Digital Potentiometer LABGO 120 picture

Copyright © 2004-2016
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.