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

Native Development

Reply
Developer
ekke
Posts: 1,428
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

bps - NETSTATUS_INTERFACE_TYPE - group WIFI vs CELLULAR

there are some types of NETSTATUS_INTERFACE_TYPE:

 

NETSTATUS_INTERFACE_TYPE_WIRED

NETSTATUS_INTERFACE_TYPE_WIFI

NETSTATUS_INTERFACE_TYPE_BLUETOOTH_DUN

NETSTATUS_INTERFACE_TYPE_USB

NETSTATUS_INTERFACE_TYPE_VPN

NETSTATUS_INTERFACE_TYPE_BB

NETSTATUS_INTERFACE_TYPE_CELLULAR

 

testing from my own device, I'm getting WIFI or CELLULAR if Internet available

 

if - connected - in my app I have to distinguish between

CELLULAR

WIFI

 

think some of the types like WIRED, USB are for future use or future devices

 

for situations where user wants to do some tasks only if in WIFI,

do you think grouping this way makes sense ?

 

CELLULAR:

  • NETSTATUS_INTERFACE_TYPE_BLUETOOTH_DUN
  • NETSTATUS_INTERFACE_TYPE_USB
  • NETSTATUS_INTERFACE_TYPE_CELLULAR

Bluetooth in most cases I expect will be used to use the Internet Connection of another mobile device

USB I expect will be used from USB-stick connecting to cellular

 

WIFI:

  • NETSTATUS_INTERFACE_TYPE_WIRED
  • NETSTATUS_INTERFACE_TYPE_WIFI

if there will be a way to connect wired, this will be of course same category as WIFI

 

what to do with:

 

NETSTATUS_INTERFACE_TYPE_VPN

NETSTATUS_INTERFACE_TYPE_BB

 

if NETSTATUS_INTERFACE_TYPE will give me VPN or BB, should I use it like WIFI or like CELLULAR ?

 

thanks for any tips and hints

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.