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
Developer
babakar
Posts: 738
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

internet connection

if (DeviceInfo.isSimulator())
        {
            serviceUrl = ""+deviceside=true";
        }
        else
        {
            serviceUrl = """+;interface=wifi";
        }

 

 

for simulator i use deviceide, and for mobile i use interface=wifi . But my question is , is this sufficient?

what if mobile user is connecting via 3g mobile data...not wifi?

 

help out.

Please use plain text.
Developer
babakar
Posts: 738
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: internet connection

I would like to know, how can I detect on the mobile if user is connected to the internet world...and use his type of connection in my code.

how can i detect his using wifi? or 3g? or dunno what..
Please use plain text.
Please use plain text.
Developer
babakar
Posts: 738
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: internet connection

 
Please use plain text.
Developer
babakar
Posts: 738
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: internet connection

I did this

 http://www.2shared.com/document/_-M9QrlA/New_Text_Document.html

 

its working on simulator + device ( wifi). I hope its for all cases 3g network as well. my personal problem is, I am not having enough testing enviroment on all cases.SO i hope someone informs if i am going right.

Please use plain text.