How can i select our own internal secific network

in our project, i need to automate below steps . pls help me on this

  1. open the app ( i can do)
  2. switch to (device 's setting page => then click on wifi=> then choose specific network or go to wifi page then click on selected wifi)
  3. come to app again

i would like to know 1) how to swithc to device settings page ? then 2) how can i chose specic network 3) how to come back to my app again ?

thanks
A