Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User nitin.84india's Avatar
    Join Date
    Aug 2009
    Posts
    7
    Hi,

    When I'm trying to install my mobile application using following lines I get an error message saying "Certificate Error".

    try {
    Player p = Manager.createPlayer("capture://audio");
    p.realize();

    RecordControl rc = (RecordControl)p.getControl("RecordControl");
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    rc.setRecordStream(output);
    rc.startRecord();

    p.stop();
    rc.stopRecord();
    rc.commit();
    p.close();

    ByteArrayInputStream input= new ByteArrayInputStream(output.toByteArray());
    Player p2 = Manager.createPlayer(input, "audio/x-wav");
    p2.prefetch();
    p2.start();

    }catch(Exception ex){}

    Is there anything wrong here?

    Thanks,
    Nitin.

  2. #2
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    check your JAD file, do you ask for any permissions in the JAD for which the certificate is not present.
    On which device are you trying it...?

    thanks,
    ~Amitabh
    Last edited by im2amit; 2009-09-01 at 00:30.

  3. #3
    Registered User nitin.84india's Avatar
    Join Date
    Aug 2009
    Posts
    7
    No I dont think so. Btw i am trying it on Nokia N95.

  4. #4
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    How are you installing? (OTA, Bluetooth, ...?)

    Are you installing just a JAR, or JAD and JAR?

    Is the application signed?

    Graham.

  5. #5
    Registered User nitin.84india's Avatar
    Join Date
    Aug 2009
    Posts
    7
    I'm installing it by transferring both JAD and JAR files in a folder through data cable, and then opening the JAD file (tried opening JAR file also but same error popped up). The application is not signed.

  6. #6
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    OK. Make sure there are no other JADs or JARs in your message inbox. Ideally, make sure the inbox is empty.

    If it still won't install, please post the JAD and MANIFEST.MF files here.

    Graham.

  7. #7
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    What is the name of your Midlet suite... is a signed version of same already installed on the device ?
    Check the MIDP & CLDC versions of the target device & in the JAD file.

    Cut & Paste your JAD file here.

    thanks,
    ~Amitabh

Similar Threads

  1. Replies: 5
    Last Post: 2010-06-04, 10:28
  2. Cannot play the audio from the record store!
    By sweetsweet24 in forum Mobile Java General
    Replies: 3
    Last Post: 2008-10-17, 07:18
  3. Using Audio Proxy Server to play only (not play and record)
    By rob_savageminds in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2007-09-04, 12:11
  4. How to record and play audio at the same time?
    By huan23 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-01-31, 06:35
  5. Replies: 0
    Last Post: 2006-06-02, 06:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved