Khaled AL-Shaibani
Khaled AL-Shaibani

Reputation: 11

how to reverse arabic text on java android studio?

this is the real text "السلام عليكم".

how can I make the output like this " ﻢﻜﻴﻠﻋ ﻡﻼﺴﻟﺍ"?

I tried used this code but the result not like what I want.

StringBuffer buffer = new StringBuffer("السلام عليكم");
buffer.reverse();
// The result "مكيلع مالسلا"

some games not support arabic language on the chat ... I want to build my own keyboard to write arabic verywell on those apps.

Upvotes: 1

Views: 89

Answers (1)

Sohan
Sohan

Reputation: 89

If you just want to write arabic well in your game then there are several Keyboard apps out there that can solve your problem, Such as:

  1. Gboard

  2. SwiftKey

  3. Tamam Arabic Keyboard

If you still want to make your own app, you may consider using the ICU4J library: See Documentation Here

Upvotes: 0

Related Questions