I am developing an app like Notepad in which I want to change the selected text formatting dynamically (colors, changing font styles, bold, italic, underline etc.) How can I
EditText et1=(EditText)findViewById(R.id.edit); int startSelection=et.getSelectionStart(); int endSelection=et.getSelectionEnd(); String selectedText = et1.getText().substring(startSelection, endSelection);
Hope this code suits yours case