BlackBerry Forums Support Community               

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

Please Login to Remove!

Hello,

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)Connector.open(URL + ";deviceside=false");

but StreamConnectionNotifier is used for socket protocol like socket://abc.com

but what we should do to open http url like:
http://abc.com

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 ?
Offline  
The Following User Says Thank You to xmncxzvt For This Useful Post:
marrygold (05-25-2011)
Old 05-25-2011, 07:01 AM   #2 (permalink)
New Member
 
Join Date: May 2011
Model: inter
PIN: N/A
Carrier: SEO
Posts: 2
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Exclusive Nodeposit Casinos

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

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 08:53 AM
How to control location-based services (GPS) on the BlackBerry smartphone hdawg BES Admin Corner 23 03-26-2009 04: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 04:45 PM
BlackBerry Connection Newsletter, October 2006 d_fisher General BlackBerry Discussion 0 10-25-2006 09:37 AM





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