Check mobile in which network

8 posts / 0 new
Last post
sikamedia
sikamedia's picture
Offline
Mobile Conjurer
Joined: 23 Jun 2010
Posts:
Check mobile in which network

1) There would be nice if Mosync SDK supports to check whether the mobile is in the local (home) or foreign (abroad) network (Mobile network).

2) currently, there are different network interfaces in mobile. mainly, wireless and 3G (2.5G) interfaces. Is there a API to decide which interface to use in the Mosync SDK??

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

1) I'm not sure how to do that. MoSync's CellID API (maGetCellInfo) can tell you where you are, but not where "home" is.

2) There is currently no such API. Normally, when a connection is attempted, the operating system decides which network to use. It may ask the end user (ex. Nokia), or it may use default settings (ex. SonyEricsson).

sikamedia
sikamedia's picture
Offline
Mobile Conjurer
Joined: 23 Jun 2010
Posts:

in my option, I dont think the operating system is so smart to decide to which network to use. Lets make a simple user scenario:

1) one mobile application is made for synchronization of time schedule with a server
2) people can use this mobile application to sync the time schedule with the sync server by using local registered mobile network (the sync happens without network usage notification to users)
3) when user brings the mobile to abroad, the mobile uses foreign mobile network which might costs a lot. Generally, it is wise to let application decide to not use the sync functionality.

Smart detection of using of local and foreign mobile network is a good feature in the users' perspective (saving money Wink ) .

Hopefully, I state my concerns clearly. Thanks!

"Fredrik" wrote:

1) I'm not sure how to do that. MoSync's CellID API (maGetCellInfo) can tell you where you are, but not where "home" is.

2) There is currently no such API. Normally, when a connection is attempted, the operating system decides which network to use. It may ask the end user (ex. Nokia), or it may use default settings (ex. SonyEricsson).

Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

Your concerns seem agreeable.

Now, it seems to me that if you detect that the user is abroad, the application should not connect to the internet unless it can find a WiFi (or other low-cost) connection.

This leaves us with two problems:

  • Detecting whether the user is abroad.[/*:m]
  • Getting a list of available connections, with name and type.[/*:m]

Like I said, maCellInfo() can tell you where you are, but not where "home" is. I don't know of any automated way to find that out, so you'll probably need the user to tell you. Like, "In which country do you live?" or "Are you currently in your home country?".

Getting a list of available connections is also tricky. It should be possible on Symbian, but not on JavaME. I don't know about Android, Windows Mobile or iPhone. I've opened an issue to track the feature's progress.[/]

sikamedia
sikamedia's picture
Offline
Mobile Conjurer
Joined: 23 Jun 2010
Posts:

I cant not find any function like maGetCellInfo() or maCellInfo() in http://www.mosync.com/docs/r767/html/index.html, could you point to the correct link where I can find the description?

"Fredrik" wrote:

Your concerns seem agreeable.

Now, it seems to me that if you detect that the user is abroad, the application should not connect to the internet unless it can find a WiFi (or other low-cost) connection.

This leaves us with two problems:

  • Detecting whether the user is abroad.[/*:m]
  • Getting a list of available connections, with name and type.[/*:m]

Like I said, maCellInfo() can tell you where you are, but not where "home" is. I don't know of any automated way to find that out, so you'll probably need the user to tell you. Like, "In which country do you live?" or "Are you currently in your home country?".

Getting a list of available connections is also tricky. It should be possible on Symbian, but not on JavaME. I don't know about Android, Windows Mobile or iPhone. I've opened an issue to track the feature's progress.

[/]

Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

I think that function is only available in our more recent nightly builds.

sikamedia
sikamedia's picture
Offline
Mobile Conjurer
Joined: 23 Jun 2010
Posts:

after downloading of MoSyncSetup-2.5(r1642).exe and installation of it, I went through briefly content under \MoSync\docs. I am not able to find the maGetCellInfo() or maCellInfo() description(definition). Could you tell me where they are located (which head file)? Thanks!

"Fredrik" wrote:

I think that function is only available in our more recent nightly builds.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

You need to include IX_CELLID.h