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

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, 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
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

New Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank
$290.0
New Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank pictureVintage Mac Tools Starter / Altenator Current Indicator #ET3058
$18.0
Vintage Mac Tools Starter / Altenator Current Indicator #ET3058 pictureVtg MAC Tools X106 5/16" Chrome SAE Socket 3/8" Drive 6 Point Sabina Ohio USA
$7.0
Vtg MAC Tools X106 5/16VINTAGE VELOCETTE MAC MOV GTP KTS MSS REAR FENDER MUDGUARD STEEL REPRODUCTION@kp
$193.19
VINTAGE VELOCETTE MAC MOV GTP KTS MSS REAR FENDER MUDGUARD STEEL REPRODUCTION@kp pictureGW Instruments MacADIOS - Vintage Mac Lab Interface 411
$169.0
GW Instruments MacADIOS - Vintage Mac Lab Interface 411 picture






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