×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Post start 2 applications from a widget

    hey all

    how must it look like when I would start 2 applications from 2 links (image with link) in a widget with the S60UID?

    in the html:

    <input type="image" onclick="launchApp('img4')" value="LaunchApp"><img id="img4" src="pic/picture1.png" width="80" height="80" align="center"><br>

    how musst the second image-link look to work with the .js-file?


    ------------------------------
    and in the .js (I only want to start an app - not this part with the green/red symbol of an error like in the example):


    // Launch application

    function launchApp(imgId)

    {

    // get the appid by calling the getList()

    var appid = prompt("Please enter the AppId", "s60uid://0x101f4cce");



    if(appid == "" || appid == null)

    return;



    var opt = new Object();

    opt.Mode = "Standalone";



    var criteria = new Object();

    criteria.ApplicationID = appid;

    criteria.Option = opt;



    try {

    var result = so.IAppManager.LaunchApp(criteria);

    checkError("IAppManager::launchApp",result,DIV_ID,imgId);

    }

    catch (e) {

    showIMG(imgId,"no");

    alert ("launchApp: " + e);

    }

    }

    -------------

    It would be great if someone could help me :-)

    Mike

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

    Re: start 2 applications from a widget

    would it be rather easy to give different onclick handler functions for different images, then it would be really easy to determine which application to launch.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    10

    Re: start 2 applications from a widget

    Thanks a lot ... But I've got the little tool ready I've used the onclick feature ^^and it works well. Now I've got my little favourite-app-application.

    Only making it dynamic (safe which program should be shown etc. is too complicated for me. so it only works on my phone with my installed apps).

    Best regards

    Mike

Similar Threads

  1. S60 Widget specification
    By meetashish in forum Symbian
    Replies: 8
    Last Post: 2010-01-20, 14:16
  2. create and delete widget shortcut icon
    By priti2208 in forum Symbian
    Replies: 9
    Last Post: 2009-07-31, 11:08
  3. Customize the look and feel of the Nokia Device menu’s and applications
    By mukteshwar in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 2
    Last Post: 2006-04-07, 19:48
  4. Applications crashing in Cingular-branded 6682. Feedback appreciated.
    By Razor1973 in forum General Development Questions
    Replies: 3
    Last Post: 2006-01-27, 13:11
  5. Replies: 3
    Last Post: 2004-03-18, 11:11

Posting Permissions

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