×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Disabling the alerts in handsets

    Hi,

    I have done a Receive message application,i'm sending a message to the specific port,once the message has been sent my application starts to recv the message and it gives me Alert as "Allow application to read the user data" many times, currently it asks more than 5 times.

    Is there any way so that i get this alert only once.
    Please reply ASAP.


    Tks,

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Disabling the alerts in handsets

    Hi nagesh.chetana,
    Are Is your application is using any Jsr75 API's ?
    Is your application is signed ?
    if your application is signed you have to change the application access settings
    juts go the application manager and then select the application then suite setting and then check the option out there..set the desired one as ask once.

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Disabling the alerts in handsets

    Quote Originally Posted by bhanuchandar.k View Post
    Hi nagesh.chetana,
    Are Is your application is using any Jsr75 API's ?
    Is your application is signed ?
    if your application is signed you have to change the application access settings
    juts go the application manager and then select the application then suite setting and then check the option out there..set the desired one as ask once.

    Hi,

    Yes i'm using the JSR 75 API's and i havent signed the application.
    The application is working fine, if i have not signed the application.
    Isnt there any other way?
    Can u please tell me how to sign the application

    Please excuse me if it is a silly question and has been answered already.


    Tks,

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Disabling the alerts in handsets

    If you have not signed your application then you will get this prompts there is no way to get out of the prompts if it is not signed. If you have signed then change the application access setting to ask once.

    For signing help
    http://www.spindriftpages.net/blog/d...orial-revised/
    http://developers.sun.com/mobility/w.../wtk-sign.html
    http://multivac.fatburen.org/localdo.../security.html
    http://blog.javia.org/midlet-signing/
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Disabling the alerts in handsets

    Thanks for the links.

    One more question :
    --While recvng some text message like "Hi hello" i get this alert "Allow application to read user data" 3 times.
    --While recvng some text message like "hi hello 9821345678(some mobile numbr)", in this case i get the alert 6 times.


    I'm still in a doubt whether its a problem in the code or is it the thing which can only be solved by signing the application.


    Thanks,

  6. #6
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Disabling the alerts in handsets

    Hi nagesh,
    I dont found so much alerts for sending and receiving sms. i have tried it and it will ask just once. Might be there is some problem with ur code. Please check it out.

    thanks,
    jitu_goldie..
    thanks,
    jitu_goldie..

    KEEP TRYING..

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

    Re: Disabling the alerts in handsets

    Quote Originally Posted by nagesh.chetana View Post
    Thanks for the links.

    One more question :
    --While recvng some text message like "Hi hello" i get this alert "Allow application to read user data" 3 times.
    --While recvng some text message like "hi hello 9821345678(some mobile numbr)", in this case i get the alert 6 times.


    I'm still in a doubt whether its a problem in the code or is it the thing which can only be solved by signing the application.




    Thanks,
    Hi Nagesh,
    Well the code for the sending the sms, ask you once that for the permission.and I guess that on receiving the sms it will not ask for the permission.

    Can you make sure that you are not sending the sms on a thread..Yeah I mean in a loop.please do check this and make sure...

    please do not get confuse,you must be using the thread for sending..but it must not be in a loop...send() methods must be call once.
    Last edited by raj_J2ME; 2009-03-24 at 12:28. Reason: add 1 more line
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  8. #8
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Disabling the alerts in handsets

    Quote Originally Posted by raj_J2ME View Post
    Hi Nagesh,
    Well the code for the sending the sms, ask you once that for the permission.and I guess that on receiving the sms it will not ask for the permission.

    Can you make sure that you are not sending the sms on a thread..Yeah I mean in a loop.please do check this and make sure...

    please do not get confuse,you must be using the thread for sending..but it must not be in a loop...send() methods must be call once.
    Hi Raj,

    The problem is not in sending, while sending it asks the permission only once.

    But the problem is while receiving the message, im reading the pim contacts to check whether the number which was sent in the message is present in my phone contacts, And at this time im getting so many alerts.(currently giving 6 alerts.)

    I'm not able to figure out which part of that code is giving this problem.

    (I also made a separate program of only reading PIM contacts from the memory, its giving me 3 alerts, irrespective of how many contacts are in there in my phone book).

    Please help me in solving this issue.


    Tks,

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

    Re: Disabling the alerts in handsets

    Quote Originally Posted by nagesh.chetana View Post
    Hi Raj,

    The problem is not in sending, while sending it asks the permission only once.

    But the problem is while receiving the message, im reading the pim contacts to check whether the number which was sent in the message is present in my phone contacts, And at this time im getting so many alerts.(currently giving 6 alerts.)

    I'm not able to figure out which part of that code is giving this problem.

    (I also made a separate program of only reading PIM contacts from the memory, its giving me 3 alerts, irrespective of how many contacts are in there in my phone book).

    Please help me in solving this issue.


    Tks,
    HI,
    You must be reading the contacts in a loop,how many contacts are there in the list.I guess there might be 3 or 6.correct me if I am wrong.
    Are you sure that these alerts are only shown while reading the contacts only.Make sure that there is nothing running in the code like file connection etc apart from these reading the contacts.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  10. #10
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: Disabling the alerts in handsets

    Quote Originally Posted by nagesh.chetana View Post
    One more question :
    --While recvng some text message like "Hi hello" i get this alert "Allow application to read user data" 3 times.
    --While recvng some text message like "hi hello 9821345678(some mobile numbr)", in this case i get the alert 6 times.

    I'm still in a doubt whether its a problem in the code or is it the thing which can only be solved by signing the application.
    You will need to sign your application to change the permission to "Always Allow" from "Ask Every Time" for the following subsystems:

    Call Control
    Messaging (e.g. SMS)
    Read User Data
    Edit User Data

    How many alerts you get with an unsigned application depends on how you have written your code. If you post the relevant code we can take a look at it.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

  11. #11
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Disabling the alerts in handsets

    Quote Originally Posted by raj_J2ME View Post
    HI,
    You must be reading the contacts in a loop,how many contacts are there in the list.I guess there might be 3 or 6.correct me if I am wrong.
    Are you sure that these alerts are only shown while reading the contacts only.Make sure that there is nothing running in the code like file connection etc apart from these reading the contacts.
    Hi Raj,

    Now i have 6 contacts in my phone book, and yes im using a for loop.

    Here is the code for that :-

    public void readContacts()
    {
    String[] lists = pim.listPIMLists(pim.CONTACT_LIST);
    for (int i = 0; i < lists.length; i++)
    {
    try{
    pimlist = pim.openPIMList(pim.CONTACT_LIST,pim.READ_ONLY);
    }catch(Exception e){}

    try{
    enumeration = pimlist.items();
    }catch(Exception e){}

    while (enumeration.hasMoreElements()){
    contact =(Contact)enumeration.nextElement();
    try{
    if(pimlist.isSupportedField(Contact.FORMATTED_NAME)&& (contact.countValues(Contact.FORMATTED_NAME) >0))
    {
    contactName += contact.getString(Contact.FORMATTED_NAME,0) +"\n";;
    System.out.println("Contact name:"+contactName);
    }
    }catch( Exception e){}

    int phoneNos = contact.countValues(Contact.TEL);
    try{

    if(pimlist.isSupportedField(Contact.TEL) &&(phoneNos > 0))
    {
    contactNo += contact.getString(contact.TEL,0) +"\n";
    System.out.println("contact No :"+contactNo);
    }
    }
    catch( Exception e){}

    }

    name = new StringItem("Name",contactName);
    telno = new StringItem("No",contactNo);
    append(name);
    append(telno);

    }
    }


    Tks,

  12. #12
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: Disabling the alerts in handsets

    Quote Originally Posted by nagesh.chetana View Post
    contact =(Contact)enumeration.nextElement();
    You are reading user data at this point. Every time this line is executed by an unsigned application the user will be asked to confirm the access.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

  13. #13
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    148

    Re: Disabling the alerts in handsets

    Quote Originally Posted by mikemoore View Post
    You are reading user data at this point. Every time this line is executed by an unsigned application the user will be asked to confirm the access.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com
    Thanks Mike,

    Is there any solution for this.

    What change i should make to that line of code ..so that it doesnt ask me the permission.

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

    Thumbs up Re: Disabling the alerts in handsets

    Hi Nagesh,
    Device will ask for the permission as many time as many times the user data is accessed...there is not workaround to get rid of this.
    There is nothing to be done.you have a hard luck.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  15. #15
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: Disabling the alerts in handsets

    Quote Originally Posted by nagesh.chetana View Post
    What change i should make to that line of code ..so that it doesnt ask me the permission.
    There is no change that you can make to your code that would mean the user is never asked for permission. The only way to do that is to purchase a certificate and sign the application - then the user will be asked just once, during the installation process.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

Similar Threads

  1. Automatic playback of SMIL in MMS on Nokia handsets
    By ws-robertsg in forum General Messaging
    Replies: 6
    Last Post: 2007-03-16, 15:34
  2. Disabling Alerts.
    By qatanah in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-14, 00:08
  3. Capturing the image from Nokia S40 3rd handsets.
    By salopge in forum Mobile Java Media (Graphics & Sounds)
    Replies: 22
    Last Post: 2006-04-12, 22:56
  4. image capture on S40 3rd Handsets
    By salopge in forum Mobile Java General
    Replies: 0
    Last Post: 2006-02-28, 07:13
  5. how many handsets can connection manager handle?
    By wboyd in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-05-09, 17:30

Posting Permissions

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