OK i solve this question with below Codes :
at first i declare a array like this :
CharSequence it[]={"آ","ا","ب","پ","ت","ث","ج","چ","ح","خ","د","ذ",
"ر","ز","ژ","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق"
,"ک","گ","ل","م","ن","و","ه","ی","ء"};
Then in TextWatcher wrote below codes :
private final TextWatcher TextWatcher_Method = new TextWatcher()
{
public void onTextChanged(CharSequence arg0, int start, int befor,int count) {}
public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,int arg3) {}
public void afterTextChanged(Editable arg0)
{
fa_cnt=8;
TextView counter=(TextView)findViewById(R.id.txt_counter);
String matn =matn_counter.getText().toString();
for (int i=0;i<it.length;i++)
{
if(matn.contains(it[i]))
{
fa_cnt=4;
}
}
cnt2=matn_counter.length();
cnt1=(int) Math.ceil(cnt2/fa_cnt);
Integer cnt3=(cnt2%fa_cnt);
counter.setText(Integer.toString(cnt1)+"/"+Integer.toString(cnt3));
}
}
This Codes , detect that in a edit-text , contains Persian(Parsi-Farsi-Iran) alphabet or no!