Skip to content

Android usage

Shayan Rais edited this page Aug 4, 2016 · 3 revisions

Android Guidelines

static final constants are used instead of enums because of the memory overhead of enums, as mentioned in [Android Official Documents] (https://developer.android.com/training/articles/memory.html#Overhead)

Enums often require more than twice as much memory as static constants.
You should strictly avoid using enums on Android.

Codepoints

Import the emojee files, for example People.java

import packagename.People;

For logging the emojee-code on console

//https://www.emojibase.com/emoji/1f600/grinningface
Log.e("(int)", ": " + People.GRINNING_FACE); //128512

//https://www.emojibase.com/emoji/263a/whitesmilingface
Log.e("(char)", ": " + People.WHITE_SMILING_FACE); //☺

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
Log.e("(int[0])", ": " + People.PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2[0]); //128588

//http://emojipedia.org/family-man-woman-girl/
Log.e("(int[0])", ": " + People.FAMILY_MAN_WOMEN_GIRL[0]); //128104

String

Import the emojee files, for example People.java

import packagename.People;

For logging the emojee-code on console

//https://www.emojibase.com/emoji/1f600/grinningface
Log.e("(string)", ": " + People.GRINNING_FACE); //😀

//https://www.emojibase.com/emoji/263a/whitesmilingface
Log.e("(string)", ": " + People.WHITE_SMILING_FACE); //☺

//http://emojipedia.org/person-raising-both-hands-in-celebration-emoji-modifier-fitzpatrick-type-1-2/
Log.e("(string)", ": " + People.PERSON_BOTH_HAND_CELEBRATION_TYPE_1_2); //🙌🏻

//http://emojipedia.org/family-man-woman-girl/
Log.e("(string)", ": " + People.FAMILY_MAN_WOMEN_GIRL); //👨‍👩‍👧

Emoji Code Sheet

###Languages Usage

Clone this wiki locally