×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question How would i know my application is running somewhere ?

    Hi Everyone!!

    I have one more query. I want to know is it possible to know whether my application is running somewhere else in other mobile..

    Flow of my project is as follows :

    I have a login form. The user has to enter the login id and password. The user will be identified from the webservie integrated with application on the basis of three parameters : login_id, password and IMEI no. fetched from the mobile. if it is authenticated it will go through next form by collecting the data from database at server end.

    Now my question is, is it possible to know the whether the application has accessed mysql database from the particular imei number.

    Please Reply.
    Regards
    Rajan Verma

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How would i know my application is running somewhere ?

    I think you can not find out the IMEI number directly but u can check for device IP and other details at server.

  3. #3
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How would i know my application is running somewhere ?

    Quote Originally Posted by kkrish View Post
    I think you can not find out the IMEI number directly but u can check for device IP and other details at server.
    Sorry, but i found the IMEI using System.getProperty("com.nokia.mid.imei");

    Actually what i want is that the one user can login in one mobile at the same time.. The other mobile cannot enter the same login id and password.



    Please Reply.
    Regards
    Rajan Verma

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: How would i know my application is running somewhere ?

    You cannot access IMEI on all phones. Good thing that the device you are using will allow you to see it.
    http://library.forum.nokia.com/topic...B925CF670.html

    Simple solution. Keep track of currently logged in users on the server side. Clear the user from that list either after a logout, or after long enough inactivity period. The length of that period depends on the app in question. Unfortunately this can still lead to problems (user cannot log in as the system thinks it is still logged in from another phone) so I am questioning the rationale for this kind of access restriction

    Hartti

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How would i know my application is running somewhere ?

    you can add imei in your login request and check if some1 had already login with the same IMEI or not.

  6. #6
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How would i know my application is running somewhere ?

    Quote Originally Posted by kkrish View Post
    you can add imei in your login request and check if some1 had already login with the same IMEI or not.
    How is it possible i could not understand, since every mobile has its unique IMEI.

    Actually the IMEI no. is also authenticated from the server end. There is a list of IMEI nos. already saved in database at server end.
    The logic is the user enters the loginid and password..... LoginId, password and IMEI no. fetched are authenticated from the server end. if one of them is not found. the application will not move further.
    Suppose, the user is authenticated and logged in successfully.
    Now the other user can login with same id and password but with different IMEI(New Mobile) Which i do not want.

    I am using Nokia 6220 Classic phone, and i found the IMEI no. using the System property.

    Please Reply.
    Last edited by rajan701v; 2011-02-02 at 08:09.
    Regards
    Rajan Verma

  7. #7
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How would i know my application is running somewhere ?

    so while you are creating the authentication table, you can have the user name, password and IMEI no. so you map your user id with one IMEI no only.

  8. #8
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How would i know my application is running somewhere ?

    Quote Originally Posted by kkrish View Post
    so while you are creating the authentication table, you can have the user name, password and IMEI no. so you map your user id with one IMEI no only.
    You mean to say that one user must use only one mobile (IMEI No.)registered to him, but not other mobile.

    Please Reply
    Last edited by rajan701v; 2011-02-02 at 09:30.
    Regards
    Rajan Verma

  9. #9
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How would i know my application is running somewhere ?

    yes... by this you can achieve what you want.

  10. #10
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: How would i know my application is running somewhere ?

    Quote Originally Posted by kkrish View Post
    yes... by this you can achieve what you want.
    Suppose i have around 100 mobile phones then how would the user know his/her registered mobile.

    Please Reply.
    Regards
    Rajan Verma

  11. #11
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How would i know my application is running somewhere ?

    Quote Originally Posted by rajan701v View Post
    Suppose i have around 100 mobile phones then how would the user know his/her registered mobile.

    Please Reply.
    I will recommend you that use the hartti post number 4, Even you can mentain the user online and offline status on the server and about the issue that Hartti has described, you can manage the user using the unique ID as per the unique user name.

    let us know the concern if any..
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Replies: 2
    Last Post: 2009-01-07, 15:30
  2. Replies: 1
    Last Post: 2008-05-15, 17:43
  3. Replies: 0
    Last Post: 2004-10-26, 15:02
  4. Replies: 3
    Last Post: 2004-01-15, 10:10
  5. How to know that an app is running ?
    By eracer in forum Symbian C++
    Replies: 4
    Last Post: 2004-01-09, 11:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •