I have a midlet which uses internet connection. When my midlet tries to connect to internet, it gives the options to select access point. If I choose WAP access point, it tries to connect for a long time and hangs there. But if I choose internet access point, it works perfectly.

My question is that how to use MIDLET to use WAP access point for internet connection.

Is it possible to use default accesspoint to connect from the midlet without giving the option to select access point?