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

Johnson Controls VMA1620-0 Variable Air Volume Control Metasys
Johnson Controls VMA1620-0 Variable Air Volume Control  Metasys picture Johnson Controls NU-NCM350-8 Metasys Network Control Module Rev. K
 Johnson Controls NU-NCM350-8 Metasys Network Control Module Rev. K pictureJohnson Controls Temperature Control D350AA-1
Johnson Controls Temperature Control D350AA-1 pictureJohnson Controls A319ABC-24-01 Electronic Temperature Control
Johnson Controls A319ABC-24-01 Electronic Temperature Control pictureP66AAB-1C NEW Johnson Controls Condenser Fan Speed Control
P66AAB-1C NEW Johnson Controls Condenser Fan Speed Control picture

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