×

Discussion Board

Page 7 of 11 FirstFirst 1234567891011 LastLast
Results 91 to 105 of 159
  1. #91
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    A developer just spotted a very good wiki article:

    http://wiki.forum.nokia.com/index.php/Taskspy

    Inside the article, you may find a very useful freeware called "TaskSpy", which can be used to spy all of the running tasks in the phone. It is a pretty good tool to managing the tasks in the phone (like teminating, finding the process info). At the site, you may also find the source code for the application.


    If a developer wants to find a comercial software for managing the processes/tasks in the phone, another tool called "TaskMan" can also be used. You may easily find it on internet by googling it
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  2. #92
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Please find some good article written by my colleages on the Sensor:

    C++:
    http://wiki.forum.nokia.com/index.ph...nsor_Framework
    http://wiki.forum.nokia.com/index.ph...Example_50.zip

    And WRT:
    http://wiki.forum.nokia.com/index.ph..._API::_Sensors
    http://wiki.forum.nokia.com/index.ph...elloSensor.zip

    The C++ sample code at the link unfortunately cannot be successfully compiled under the S60 5th Edition. Attached please find my updated sample code for the Sensor.

    With the presence of Sensor, it brings more innovation applications for S60 5th Edition.
    Attached Files Attached Files
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  3. #93
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Today, I just found some new sample codes from the book "Quick Recipies on Symbian OS". It is a nice book, and it was co-authored by my one my colleagues (Symbianyucca). Inside the book, it has a number of code snippets. Fortunately, you may also find the codes without purchasing the book. The codes can be found at the following link:

    http://developer.symbian.com/wiki/di...an+OS+Examples

    Meanwhile, you may also find a Carbide.c++ plug-in for creating quick recipie codes on Symbian OS.
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  4. #94
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Today, I just found a tip from a developer to support Chinese or other languages even if the current SDK does not support it in the release. The tip is:

    delete the font files at the following directory:

    \epoc32\release\winscw\udeb\z\resource\fonts\

    Then copy the fonts files from the Windows directory (the path could be something else depending the Windows installed on your PC):

    C:\WINDOWS\Fonts\

    Copy "simfang.ttf" (for Chinese font "Fang Song Ti") or any other fonts (for other lanaguages) to the S60 SDK directory:

    \epoc32\release\winscw\udeb\z\resource\fonts\

    Now everything is OK. Recompile your code with localized language strings. Everything should be fine.

    I have not personally verified this. Please use this tip carefully. According to the developer's saying, it is claimed to be working!
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  5. #95
    Registered User
    Join Date
    Sep 2003
    Posts
    25

    Re: 3rd Edition application development

    Hi liuxg,

    I'm running your CameraApp on S60 3rd Edition MR SDK with Eseries plugin installed. I can run CameraApp on the emulator. But when I want to take a picture on the emulator, it return a System error (-20) which means corrupt. Do you have any idea what causes the error?

    Thanks,

  6. #96
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Camera is not supported on the 3rd edition emulator unfortunately.

    KErrCorrupt -20 -0x14
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  7. #97
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  8. #98
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Recently, I just found that when I used the following method to select a picture:

    TBool ret = MGFetch::RunL(
    *fileArray, // When dialog is closed, fileArray contains selected files
    EImageFile, // Displays only media files of type aMediaType
    EFalse, // Not used in S60 2.0 (single or multiple file selection)
    this // Pointer to class implementing MMGFetchVerifier;
    // when user has selected file(s),
    // MMGFetchVerifier::VerifySelectionL is called.
    );

    my app showed "No enough memory". The root cause of the problem is that my phone has over 1000 pictures. I solved the problem by adding the following line into my .mmp file:

    EPOCHEAPSIZE 0x20000 0x1000000 // Min 128Kb, Max 16Mb
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  9. #99
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Carbide.c++ 2.0 is now available with support for the latest technologies based on Symbian OS, such as S60 5th Edition and the Qt platform, and it offers significant improvements throughout.

    In addition to the technical improvements, Carbide.c++ 2.0 is now available free of charge.

    Editions

    Carbide.c++ offers three editions, free of charge:

    Carbide.c++ OEM Edition for device creation users.
    Carbide.c++ Professional Edition for developers working with preproduction devices.
    Carbide.c++ Developer Edition for application development on production phones.
    The user selects the appropriate edition during installation. All Carbide.c++ products are approved for commercial use.

    More information

    http://www.forum.nokia.com/info/sw.n...arbideArticle3
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  10. #100
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    On S60 5th Edition, there is an API for accessory monitor. The API is called CAccMonitor. By using the API, a developer is able to find the connection status of the accessories like Bluetooth, Headset, Carkit etc. Attached please find my sample code in which has the implementation for the Accessory monitor engine.
    Attached Files Attached Files
    Last edited by liuxg; 2008-12-19 at 02:41.
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  11. #101
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Attached please find the Compass sample code I used during my presentations in a Beijing event. Basically, it is a sample using the magnetic sensor API to find the north direction. It is a very simple and straightforward example to demonstrate how to make use of the sensors to create innovative application on S60 platform. The application can be running on Nokia 6210c phone, and it can be compiled under that S60 5th Edition SDK.

    S60 5th Edition release is the first release supporting the Nokia S60 sensor framework.
    Attached Files Attached Files
    Last edited by liuxg; 2008-12-19 at 08:10.
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  12. #102
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    Recently, I just found a tool called "HeapLogger". It is a tool used on the target to trouble shoot a real memory leak on the device when your app is running. As we know, trouble shooting memory leak is a very tedious work on S60 platform. Please find the link at:

    http://wiki.forum.nokia.com/index.php/HeapLogger
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  13. #103
    Super Contributor
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,361

    Re: 3rd Edition application development

    Quote Originally Posted by liuxg View Post
    Attached please find the Compass sample code I used during my presentations in a Beijing event. Basically, it is a sample using the magnetic sensor API to find the north direction. It is a very simple and straightforward example to demonstrate how to make use of the sensors to create innovative application on S60 platform.
    Hi Mr. liu, I have a problem with CompasEx.sis. I have installed N95AccelerometerPlugin.sis on my phone(N95 8G), and signed sis\ComapasEx.sis. When I run CompasEx, however, it failed to startup. There was only a info dialog: "system error(-1)".
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  14. #104
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd Edition application development

    I am sorry to mention that the "Compass" example code works for the 6210c phone since only that phone has the magnetic sensor. The code can be successfully compiled under the S60 5th Edition SDK.
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

  15. #105
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609

    Re: 3rd and 5th Edition application development

    I just found a very interesting tip on how to change the options of the GCCE compiler to make compilation more optimized. Here is the tip:

    ============================================================================================================================

    It is possible to change the default level of optimization used by GCC-E. This may result in code running up to three or four times as fast on the phone.

    In the SDK, find the file epoc32\tools\compilation_config\GCCE.mk and edit it with a text editor.

    Search for the lines:

    #---------------------
    # Release Mode Options
    #---------------------

    # Optimization Level in RELEASE mode
    REL_OPTIMISATION=

    Change the last line so that it reads:

    REL_OPTIMISATION= -O2 -fno-unit-at-a-time

    (You can find more information on the optimization options of GCC at http://gcc.gnu.org/onlinedocs/gcc-4....timize-Options. Note that the GCC version installed with the SDK is v3.4.3)

    Once you have changed this file, go to your project. Type abld clean to ensure any existing object files are deleted, then build your project as usual.

    Note 1: turning up the optimization level will make it more likely that your code makes assumptions which aren't honored by the compiler. If your code doesn't behave as it should, try setting back the optimization level to its initial setting.

    Note 2: as explained in the GCC documentation, there are some compatibility issues with unit-at-a-time mode (enabled by -O2), hence the suggestion to disable it.

    Note 3: a developer has reported getting the linker error: "undefined reference to `typeinfo for MTmTextLayoutForwarder'". This was solved by adding the following line to the mmp file: "LIBRARY form.lib tagma.lib".

    More links:
    http://symbiangeek.blogspot.com/2008...ome-space.html
    http://wiki.forum.nokia.com/index.ph...h_Symbian_SDKs
    http://wiki.forum.nokia.com/index.ph...下使用GCCE4 (Chinese link)
    Liuxg
    Forum Nokia <a href="http://wiki.forum.nokia.com/index.php/Qt_开发"><font color="red">Qt Application Development Resources</font></a>

Similar Threads

  1. Python for S60 1.9.0 released
    By tvijayan in forum Symbian
    Replies: 48
    Last Post: 2009-01-27, 15:39
  2. Replies: 0
    Last Post: 2009-01-07, 11:49
  3. Replies: 1
    Last Post: 2008-11-21, 12:12
  4. Who to start UI development in Series 60 5th edition??
    By rohanwaugh in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-11-03, 06:14

Posting Permissions

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