Hello everybody
I m posting the solution myself cause I found it some crooked thing lets get to work straight
SOLUTION-My example I was facing the prob above mentioned now for that I conclude that every midlet needs an permission for using on air connection and in my case I need to get a login response so whenever it asked me for permission till that moment it become the midlet jumps the
test condition and show login error so better do one thing I tried is first I put a form saying initializing connection (its a malprcatice I think according to industry standard ) and sending some garbage connection which will be rejected obviously but enable other network connections after that to easily work without any interruption and midlet goes well.
CONCLUSION-At first any midlet trying to using HTTP connection needs that permission first and till the moment it gets it may be too late(due to might be some thread functioning )
so always initialize connection with some useless connection request.