BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 05-25-2011, 05:36 AM   #1 (permalink)
Thumbs Must Hurt
Join Date: Mar 2011
Model: 8900
Carrier: Torch
Posts: 59
Post Thanks: 3
Thanked 1 Time in 1 Post
Default blackberry push demo

Please Login to Remove!


i created server side and client side.
my server app is working find and sending messages but i got class cast exception in client app.

i develop client side push app using http push demo.

I have registered with rim server to receive push messages from server side. For that I got application id.
I create url by appending app id, device info & device name then open connection to that url after which my code can listen to messages

I spread a lot of time on it . Finally i find conclusion that httppushdemo isnt correctly creating connection to the url

In push demo it creates connection in this way:
_notify = (StreamConnectionNotifier) + ";deviceside=false");

but StreamConnectionNotifier is used for socket protocol like socket://

but what we should do to open http url like:

above code throws class cast exception if i try to open http url in this way

this is major issue and i havent found any solution after a lot of search. if any one have worked on push application then how should i open http url if we are bound to use ServerSocketConnection due to push demo app ?
The Following User Says Thank You to xmncxzvt For This Useful Post:
marrygold (05-25-2011)
Old 05-25-2011, 06:01 AM   #2 (permalink)
New Member
Join Date: May 2011
Model: inter
Carrier: SEO
Posts: 2
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Exclusive Nodeposit Casinos

Welcome to where the best and most exclusive online casino bonuses, no deposit casino & no deposit bonuses are available at your fingertips.
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

Similar Threads for: blackberry push demo
Thread Thread Starter Forum Replies Last Post
Databases on a BlackBerry jsconyers General BlackBerry Discussion 5 04-13-2010 07:53 AM
How to control location-based services (GPS) on the BlackBerry smartphone hdawg BES Admin Corner 23 03-26-2009 03:44 PM
New Blackberry Server wants to reactivate users after power outage! Urlryn BES Admin Corner 19 12-27-2007 03:55 PM
First post thought I'd make it helpful mazzel General 8100 Series Discussion - Pearl 1 05-30-2007 03:45 PM
BlackBerry Connection Newsletter, October 2006 d_fisher General BlackBerry Discussion 0 10-25-2006 08:37 AM

RECTIFIER SEMICONDUCTOR DIODE S4220 8016 #51794 picturevishay general semiconductor p6ke220ca-e3/54 tvs diode, 600w, 220v, do-204ac
vishay general semiconductor p6ke220ca-e3/54 tvs diode, 600w, 220v, do-204ac picture moc3012m optoisolator, triac, 7500v (1 piece)
 moc3012m optoisolator, triac, 7500v (1 piece) picture74HC14A HEX INVERTER,SCHMITT TRIGGER,ON Semiconductor
74HC14A HEX INVERTER,SCHMITT TRIGGER,ON Semiconductor pictureBussmann XL50F800A Semiconductor Cylindrical Fuse 800 amp 200kA IR AC NIB
Bussmann XL50F800A  Semiconductor Cylindrical Fuse 800 amp 200kA IR AC NIB picture

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