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
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

bps/netstatus classes not able to work in 10.2.1

Hi All,

 

I am using netstatus class methods in my application to get internet data usage. Previously I used 10.2.0 sdk version but to implement headless functionality I need to update it to 10.2.1.

But in 10.2.1 netstatus classes are not able to work.

netStatusError.PNG

Please help me to solve this issue...

 

Thanks,

Sonal

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: bps/netstatus classes not able to work in 10.2.1

did you copy the code from another place? it looks like an include is missing, or a namespace declaration or the like.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: bps/netstatus classes not able to work in 10.2.1

Everything is there..I have just copied error part from QNX memontics.

All import and namesapces are defined at the top of the file.

 

Same code is working in 10.2.0 but not in 10.2.1

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: bps/netstatus classes not able to work in 10.2.1

should work on 10.2.1

 

take a look at the MyDevice Cascades Community Samples App

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

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner