Closed rohanrajadhyaksha closed 10 years ago
This problem occurs only in micromax devices..Works great in all other devices....
I don't have micromax devices. So it's hard to say where the problem happens. Perhaps I can add more log and you run the app and send the log back to me.
Okay..One more issue sir, i tried to edit your sample application as
package com.iosstyle.emojiedittext.sample;
import android.app.Activity; import android.os.Bundle;
import com.iosstyle.EmojiEditText; import com.iosstyle.emojiedittext.sample.R;
public class SampleActivity extends Activity {
private EmojiEditText et;
@Override
public void onCreate(Bundle savedInstanceState)
{
String unicode = "helo \\uD83D\\uDE00";
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
et = (EmojiEditText) findViewById(R.id.my_edit_text);
et.setText(unicode);
}
} But it did not gave me desired output
I am not able to erase emoji with single hit of backspace button,i had hit it many times,i have hash map of Unicode ,from which i am appending a Unicode to edit text public class EmojiUtils {
}
and this how i am appending an Unicode to edit text Integer key = index; Log.d("emoji", "index of clicked emoji is" + index); Log.d("emoji", "Unicode of clicked emoji is" + EmojiUtils.unicode.get(key)); SpannableString spannable =new SpannableString(EmojiUtils.unicode.get(key)); //String cs = EmojiUtils.unicode.get(key); int cursorPosition = edtMessage.getSelectionStart(); edtMessage.getText().insert(cursorPosition, spannable);