BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-05-2007, 10: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).

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

BB-SIDE
--------
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 inpu.read on the "other side".
Offline  
Old 03-05-2007, 01: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
Default

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.
Offline  
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





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.