×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    New to Symbian and C++

    Hi All,

    I am new to Symbian and C++.
    I have knowledge of Java and other similar languages but i am no expert.

    I have been asked to right a very simple application that can be loaded onto a Nokia E72 via USB.

    I needs to do this.

    > Press Up Arrow.
    > Up Arrow Pressed
    > Pressed Left Arrow
    > Left Arrow Pressed.

    Etc for up, down, left, right.

    Also it must have a function to turn the Bluetooth mode to Discoverable via a Gui Button,
    and also display Power On/Off and Current Battery %.

    It is a very simple screen.

    I guess for the experienced Symbianer this is as simple as it gets.

    However i don't really no where to start.

    Any help appreciated.

    Sam

  2. #2
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,355

    Re: New to Symbian and C++

    Welcome to discussion board.
    If you are done with the first Hello World application on Symbian then I would suggest you please read this on SDK doc, HandleKeyEventL() and OfferKeyEventL(), these are the functions to catch key events.
    also there are many examples in the SDK example.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: New to Symbian and C++

    the USB loading can be a bit tricky part.. unless you use normal Ovi suite to do that, building own ways on doing that would be tricky.. anyway that reminds me of my old job with factory automation boards, thus if this requirement is verbally communicated by senior developer, who is not having good knowledge, then, you should consider other means, and ask whether it is ok to simply send the installation file to device over BT and do the installation from the inbox.

    Other parts are simple programming, previous reply already gave good advice, and on top of that, you could search our wiki for ready made examples.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Hi

    many thanks for the quick reply's
    It is a requirement that the application be sent Via USB, this is to ensure that the USB is operating properly.
    however using the OVI Suite is probably the easiest option as you suggest and i do not intend to try amd program my own method of doing this.

    I will look at the WIKI for ready made examples, what would i search to find an application that would perform this kind of application.
    As i said i am new to Symbian and do not no how things are represented?
    Would it be;
    Keypad Click Listener
    Button push listener

    i am not sure.

    Sam

  5. #5
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,355

    Re: New to Symbian and C++

    For a basic reference you can follow this article http://wiki.forum.nokia.com/index.ph...nts_in_Symbian
    but there are lots many things to know about event handling, so the best way would be , just open any SDK example and run on emulator and see if there is any key event functionality is being implemented or not. Like the up/down key, if then search for the functions that I told in the whole project , this will give you the complete idea about the key event.

  6. #6
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Hi,

    Ok so I've been getting started with the HelloWorld.

    I want to now upload this to the phone so i can test that ive got that side of things working in my head.

    So I've created the SISX file and have used the OVI suite to install that on the phone when i install
    it says
    "Application not compatible with phone. Continue anyway?"

    If i say yes i cant find the app on the phone if i hit no it aborts.

    why would it not be compatible??

    Sam

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: New to Symbian and C++

    The E72 is an S60 3rd Edition Feature Pack 2 based phone. Did you build the app using S60 3rd Ed FP2 SDK, or earlier, for the S60 3rd Ed FP2 target (or FP1 or the S60 3rd Ed original release, no feature packs, using the S60 3rd Ed MR, Maintenance Release SDK).

    At least, make sure you're not building an S60 5th Ed or Symbian^3 version of your app.

    Post also the .pkg file of your project (as the above is reflected in the platform version specific UIDs that end up in the .pkg file, which impact the sis/sisx file creation, which further impact the installation process).

  8. #8
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Well now i feel stupid :-D

    I have been using Symbian^3 SDK!

    I will download S60 3rd Ed FP2 SDK
    and try again!!

    Sorry for the newbie error

  9. #9
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Same issue,

    I have done

    File > New Symbian OS C ++ Project > Basic Console App (EXE)
    Project Name = HelloWorld
    Select s60_3rd_FP2_SDK_v1.1

    Create Sis and SISx file

    upload sisx file using OVI

    Select install on phone

    and i get the same error message
    "Application not compatible with phone. Continue anyway?"
    and sometimes I'm getting a certificate error as well using the .sis file
    or the .sisx file
    :-( Help Please
    Last edited by SamB89; 2011-06-15 at 13:26.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: New to Symbian and C++

    The compatibility warning comes from missing/incompatible compatibility line in the .pkg file. It is the "Series60ProductId"-line you can see in many example codes
    Code:
    ; Supports S60 3rd Edition
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}
    actually you can use this line, since S60 3rd FP2 devices are compatible with S60 3rd noFP ones. But you can refine compatibility if you want, here is a list of platform/product codes: http://www.developer.nokia.com/Commu...fication_codes
    For the certificate time error, set the phone date/time a bit ahead of your computer (say, 2 minutes ahead). The installer does not accept .sisx files originating from the future.

  11. #11
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Ok i have added that line it the .pkg

    it now looks like this:

    ; Installation file for Symbian OS 9.x for generic console application
    ; Installation file for HelloWorld EXE
    ;
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ;

    ;
    ; UID is the exe's UID
    ;
    #{"HelloWorld EXE"},(0xEBBCC2D1),1,0,0

    ; Supports S60 3rd Edition
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\HelloWorld.exe" -"!:\sys\bin\HelloWorld.exe"

    I now dont get the compatibility error, but i get a Failed Installation Error code: 2148532241

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: New to Symbian and C++

    Does this message appear on the phone? Or in Ovi/PC Suite? In this latter case it may have to be restarted, but as a workaround it may be still possible to copy the installer file to the device, and install it there (using the File Manager of the phone).
    Also, make sure that the project is built for some GCCE (Phone) target.
    Note that Carbide.c++ does not generate icon for console applications. You can find a related article in the Wiki if you simply search for console icon (Wiki is part of the Community panel above). You may try reading my stuff on http://avalon.aut.bme.hu/~wizard/ about "HelloWorld, Console"

  13. #13
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Ok so ive now built the project ONLY for GCCE Phone and the installation works.

    Ive also added an icon and that works.

    Many Many thanks to everyone who helped.

    Now i just need to make the Application do what it is supposed to.

    That is test for keypad pushes.

    I.e

    >Please press UP
    > You pressed UP
    > Please Press Down
    > You pressed Down

    Etc for 8 different keys.
    Last edited by SamB89; 2011-06-15 at 14:45.

  14. #14
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: New to Symbian and C++

    What is the actual error note shown when you try installing the app ?

  15. #15
    Registered User
    Join Date
    Jun 2011
    Posts
    26

    Re: New to Symbian and C++

    Just a quick one that isnt worth a new thread how can i make the font size bigger as the text is hardly readbale

Similar Threads

  1. New to Symbian and Carbide C++
    By stmichael161 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 57
    Last Post: 2010-07-31, 05:34
  2. new to symbian C++ and j2me midlet
    By chan_fookmun in forum Symbian
    Replies: 1
    Last Post: 2005-07-14, 21:25
  3. Replies: 3
    Last Post: 2003-06-30, 04:20
  4. New to J2ME and Symbian
    By mciaccio in forum Symbian
    Replies: 1
    Last Post: 2002-10-30, 06:59

Posting Permissions

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