My Fyrst app for call a VPN

this is my first time I try to develop an app, so I need help!!!
The app I would like to design is very simple:
1- connect android vpn called vpnname
2-check if the vpn is connect
3-if vpn is connect, open vnc

Pratically the equal to connect manually vpn and after open vnc.

Thanks a lot