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

New Developer
Posts: 8
Registered: ‎10-31-2013
My Device: simulator
My Carrier: local

Is VPN Api available through Java?

Hello. I have developed Android application, It's main purpose is establishing VPN connection through OpenVPN protocol using Vpn Service API http://developer.android.com/reference/android/net/VpnService.html.


Now I want to port my app to BB 10 platform and I have some questions:


1) Is there any API, that allows me to control system VPN connection - add/manage  own profiles and establish connection programmatically?


2) Can I establish VPN connection, using system-provided protocols without creating and saving new profile?


3) I found native API called VPN extension library http://developer.blackberry.com/native/reference/core/com.qnx.doc.vpnextensions.lib_ref/topic/manual... , is it available on Java and can I use native C libraries while main code written on Java?

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Is VPN Api available through Java?

[ Edited ]

Welcome to the forums.


You are actually posting in the wrong forum, this is for Java, you want this one:



I will ask for this to be moved.


Edit: Forgot to add, you will have to port your applicaition to C, there is no Java support on BB10. 

New Developer
Posts: 8
Registered: ‎10-31-2013
My Device: simulator
My Carrier: local

Re: Is VPN Api available through Java?

Thanks a lot for your reply. I understand, but what's for is Java Developer forum if BB10 has no Java support?

Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Is VPN Api available through Java?

The Java forum is for the BlackBerry 7 and earlier devices, which ran a different operating system.

Paul Bernhardt
Application Development Consultant

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker