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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
babakar
Posts: 222
Registered: ‎05-29-2012
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.
Trusted Contributor
babakar
Posts: 222
Registered: ‎05-29-2012
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.
Trusted Contributor
babakar
Posts: 222
Registered: ‎05-29-2012
My Carrier: see later

Re: internet connection

 
Please use plain text.
Trusted Contributor
babakar
Posts: 222
Registered: ‎05-29-2012
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.