×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    2

    How to send % string to flash contents from flash MMI.

    I made s60 application by embedded flash content and inserted flash MMI ECOM plugin.
    There is a fscommand2("GetVars") from Flash contents.

    If it is called GetVarsL( const RPointerArray<TDesC>& aArgs,struct FI_ReturnString* aRetVal ) funtions in MMI.
    And it will return by iMMIUtils->SetReturnStringFromKeyValuePairsL(arr, aRetVal).

    I just return the value of _LIT( KTest, "ABC%DEF").
    But flash contents only show "ABCDEF". There is no '%' character.

    Do you know how to show the '%' string or '&' string in flash contents?

    Thank you,
    Xenon.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: How to send % string to flash contents from flash MMI.

    Quote Originally Posted by ididan View Post
    I made s60 application by embedded flash content and inserted flash MMI ECOM plugin.
    There is a fscommand2("GetVars") from Flash contents.

    If it is called GetVarsL( const RPointerArray<TDesC>& aArgs,struct FI_ReturnString* aRetVal ) funtions in MMI.
    And it will return by iMMIUtils->SetReturnStringFromKeyValuePairsL(arr, aRetVal).

    I just return the value of _LIT( KTest, "ABC%DEF").
    But flash contents only show "ABCDEF". There is no '%' character.

    Do you know how to show the '%' string or '&' string in flash contents?

    Thank you,
    Xenon.
    According to my knowledge , these are the keywords used inside a string just like "\n" , "\0" etc. So what i did in this case is simply returned "and" (or u can put any other code) instead of "&" (or "%") and then by using split method in flash , i split the returned string (e.g arr = retruned_string.split("and") )and join each element of the array (which we get after splitting) by adding "&". So , what we get the end is a string having & or % . :P ..Hope it helps u..

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    2

    Re: How to send % string to flash contents from flash MMI.

    Quote Originally Posted by sajisoft View Post
    According to my knowledge , these are the keywords used inside a string just like "\n" , "\0" etc. So what i did in this case is simply returned "and" (or u can put any other code) instead of "&" (or "%") and then by using split method in flash , i split the returned string (e.g arr = retruned_string.split("and") )and join each element of the array (which we get after splitting) by adding "&". So , what we get the end is a string having & or % . :P ..Hope it helps u..

    Best Regards,
    SajiSoft
    Thank you for your reply.

    Actually the sting KTest comes from the user. KTest is a kind of user name.
    So user input these characters that are like "&" or "%".

    Is need any encoding to send to flash contents?
    I have no idea about this problem.

    Best Regards,
    Xenon.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: How to send % string to flash contents from flash MMI.

    Quote Originally Posted by ididan View Post
    Thank you for your reply.

    Actually the sting KTest comes from the user. KTest is a kind of user name.
    So user input these characters that are like "&" or "%".

    Is need any encoding to send to flash contents?
    I have no idea about this problem.

    Best Regards,
    Xenon.
    Yes..What u can do is encode the "&" or "%" before sending them to flash lite app and in flash lite app u can decode the string to get what the user sends . I think it is clear ...Hope it helps u..

    Best Regards,
    SajiSoft

Similar Threads

  1. How to send Flash SMS,Alert SMS using PC Connectivity Sdk
    By naveen_galipally in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-11-01, 03:01
  2. How to send Flash & Alert SMS Using AT Commands
    By naveen_galipally in forum General Messaging
    Replies: 1
    Last Post: 2002-10-23, 11:12
  3. how can I send Flash or Blink SMS ?
    By ivodimov in forum General Messaging
    Replies: 1
    Last Post: 2002-09-26, 12:49
  4. How to send Flash SMS using Nokia SDk
    By naveen_galipally in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-09-19, 05:07
  5. who can i send a flash sms ?
    By avi-sh in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-06-13, 10:49

Posting Permissions

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