how to let user select Access Points?

Login to reply to this topic.
Wed, 2004-07-14 22:51
Joined: 2004-07-14
Forum posts: 3
I'm writing programs on Siemens SX1 (Nokia Series 60 v1.2 enabled).

When I was using socket APIs in STDLIB, everything is ok. If the program can't determine which Access Point to use, it will pop up a menu to let the user select one.

But after I switched to RSocket, I have a problem. Sometimes, (especially after I modified the source code and re-downloaded the binary image to the device), the program fails to pop up the menu and can't send out data. I need to run Opera, select the proper Access Point, and then run my program again, in order to solve this problem.

Does any one know how to let user choose an Access Point? Thanks!

Thu, 2004-07-15 10:46
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
There are more alternatives
Hi,

This kind of dialog that you were referring to pops up every time the user wants to open a socket and there is no active connection. This is done by the so-called Agent Dialog, whose responsibility is (among others, of course) to present a list of available access points when a connection is about to be established.

If you want to display a similar dialog yourself, then you may use Access Point engine and a UI library upon it, Access Point Settings Handler UI (ApSettingsHandlerUi.dll). I recommend you to use the latter. See ApSettingsHandlerUi.h header file for more details.

Cheers,

tOtE

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Thu, 2004-07-15 21:07
Joined: 2004-07-14
Forum posts: 3
how to let user select Access Points?
Thank you very much! I've been able to display the menu. But I still have two questions:

1) What do I need to do after showing the menu? Does it set the preferred AP automatically?

2) Now I'm running the program on the Series 60 V2.0 emulator. Although I have installed the ethernet plugin coming from Nokia, the menu shows only a "Dummy WAP settings..". But the SIP plugin shows that there is a LAN_IAP_1. I didn't use any filters. Could you please tell me how could I use LAN_IAP_1? Thanks!

BTW, I can only use APIs of Series 60 V1.2 ...
Fri, 2004-07-16 09:46
Joined: 2004-07-06
Forum posts: 30
how to let user select Access Points?
filamoon ,
I don't show the select access point menu?
can you tell me how to write code about it ?

please help me !
thanks

flyfish
Fri, 2004-07-16 10:30
Joined: 2004-07-06
Forum posts: 30
how to let user select Access Points?
My Code:
CApSettingsHandler* iApSettingHandler = CApSettingsHandler::NewLC(ETrue,
       EApSettingsSelListIsPopUp  ,
       EApSettingsSelMenuNormal ,
       KEApIspTypeAll,
       EApBearerTypeAll,
       KEApSortNameAscending);

   TUint32 originallyFocused(0);
   TUint32 aSelectedIap(0);
   
   // Show the dialog
   iApSettingHandler->RunSettingsL(originallyFocused, aSelectedIap);


but  I dont want to show this dialog~~
it's not the select access point  dialog after the program find  no active connection.

how to do ?

thanks
Fri, 2004-07-16 13:05
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Again
Hi,

As I told you, this dialog is to show a dialog to the user where (s)he can select an access point. AFAIK, an integer value returns on completion. This integer value is an access point ID, which can be used to create a connection based on the select AP.

The other dialog what you are missing is used by the system, when it is about establishing a connection without having a previously selected AP. This dialog can be found in Agent Dialog, but I'm sure that the only thing it provides is the possiblity of selecting an access point (ID), which is the same as what AP Settings Handler UI does. Then the system uses this ID and creates a connection itself.

Cheers,

tOtE

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Wed, 2004-10-06 09:08
Joined: 2004-09-23
Forum posts: 46
how to let user select Access Points?
symbian6.0 SDK1.2 hasn't  the CApSettingsHandler.How it can do in the SDK1.2?
  • Login to reply to this topic.