Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 43
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none
Accepted Solution

Connect with Yoigo 3G but no with Vodafone EDGE

Hello,

I have a problem with Blackberry connections:

My app connects to a webpage and get specific images of this web. 

My preferred trasport types is:

private final static int[] DISABLE_BISB_PREFERRED_TRANSPORT_TYPES = { TransportInfo.TRANSPORT_TCP_WIFI,
TransportInfo.TRANSPORT_WAP2, TransportInfo.TRANSPORT_TCP_CELLULAR,TransportInfo.TRANSPORT_WAP,
TransportInfo.TRANSPORT_MDS };

 

When use Wifi connection, it works fine, when I connect with Yoigo in 3G, it connects with TRANSPORT_TCP_CELLULAR and it works fine, but with Vodafone in EDGE, it connects with TRANSPORT_WAP2 and doesn´t work....

 

Can anybody help me?

Thank you.

Developer
Posts: 43
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none

Re: Connect with Yoigo 3G but no with Vodafone EDGE

Hello, I´ve found the solution. For the conection to the web I specified the header request, because it only be opened on a  browser mobile. The problem was that I specified Connection, User-Agent,  Accept, Accept-Language and Accept-Encoding, and I just need the User-Agent, like 

Mozilla/5.0 (BlackBerry; U; BlackBerry "
+ DeviceInfo.getDeviceName() + "; es)...