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

Web and WebWorks Development

Reply
Contributor
djgolu123
Posts: 15
Registered: ‎08-07-2011
My Device: Playbook

Monitoring internet traffic

I want to monitor internet traffic on BB10.

For android there is this is this class: http://developer.android.com/reference/android/net/TrafficStats.html

 

Is there something similar API for BB10? I couldn't find it in webworks APIs. Any other way this can be used?

 

Thanks

BlackBerry Development Advisor
chadtatro
Posts: 620
Registered: ‎10-01-2009
My Device: Z10

Re: Monitoring internet traffic

I'm not aware of any myself.  You might want to check with the Native forum.  If there is a native way, you could technically build an extension to use in WebWorks if that's your desired platform.

 

http://supportforums.blackberry.com/t5/Native-Development/bd-p/native_sdk

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C

Re: Monitoring internet traffic

The answer is (I think) both easy and damned hard

 

If you SSH into your device you'll find a directory called /dev - this is a fake filesystem that monitors and records the system state

 

QNX is, essentially, a Unix hybrid in many ways and as such shares many common features and systems

 

For this reason there WILL be something in the C++ API that does exactly what you want (probably) - it just ain't available from WebWorks quite yet (ever?)

 

The extensions Lab ran my Adam Stanley had a complete framework for DIY

 

I would suggest that you PM Adam (he's all over the place here - hard to miss him) as he's likely to point you in the right direction

 

 




Click the like button if you find my posts useful!
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C

Re: Monitoring internet traffic

Oh - just spotted your post count (newbie <g>)

 

Don't be afraid - ask anyone anything, we usually answer

 

This ain't FaceBook :smileyhappy:




Click the like button if you find my posts useful!