SpecialCharacters

Put your problem here if it does not fit any of the other categories.

SpecialCharacters

Postby rmeph » Thu Nov 27, 2008 10:21 am

I try to draw SpecialCharacters in Edittext..
i want draw '©' character
i am used

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  KeyCharacterMap keyCharacterMap = KeyCharacterMap
  3.  
  4.                                 .load(KeyCharacterMap.BUILT_IN_KEYBOARD);
  5.  
  6. keyEvents = keyCharacterMap.getEvents(new char[] { '©'  });                                                                                           
  7.  
  8.  dispatchKeyEvents(Main.edittext, keyEvents);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4



but it's show error..could u plz tel me..how to draw it???
rmeph
Senior Developer
Senior Developer
 
Posts: 121
Joined: Mon Dec 10, 2007 1:54 pm
Location: India

Top

Postby MrSnowflake » Thu Nov 27, 2008 1:51 pm

Try this: "©"
or maybe something like u"C2A9" (it's supposed to be the hex utf-8 code for it).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby rmeph » Thu Nov 27, 2008 2:10 pm

Thanks a lots for reply.
but how to pass string it only get char array..
rmeph
Senior Developer
Senior Developer
 
Posts: 121
Joined: Mon Dec 10, 2007 1:54 pm
Location: India

Postby MrSnowflake » Thu Nov 27, 2008 2:42 pm

Hehe, well I had this between the quotes:
Code: Select all
& #169;
(without the space!)
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby rmeph » Thu Nov 27, 2008 2:53 pm

im try with

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. keyEvents = keyCharacterMap                                                                                                                                             .getEvents(new char[] {'&','#','1','6','9',';'});
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


it's don't work.

and also

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. keyEvents = keyCharacterMap.getEvents(new char[] {'©'});
Parsed in 0.033 seconds, using GeSHi 1.0.8.4

and it's show invalid character...
rmeph
Senior Developer
Senior Developer
 
Posts: 121
Joined: Mon Dec 10, 2007 1:54 pm
Location: India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests