Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:17:48+00:00 2026-05-31T05:17:48+00:00

I’m using J2ME polish to develop an app on two samsung devices, the app

  • 0

I’m using J2ME polish to develop an app on two samsung devices, the app supports arabic language.
On Samsung star wifi, the app works fine, but on a device like samsung GT-S3653 all letters appears dis-assembled
any help will be highly appreciated
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:17:49+00:00Added an answer on May 31, 2026 at 5:17 am

    I speake farsi and I had the same problem in about 4 years ago.You have some way to solve this problem:
    1-using custom fonts.
    2-reshape your text before display it.
    A good article in about first,is “MIDP Terminal Emulation, Part 3: Custom Fonts for MIDP“.But for arabic letters I think that is not simple.
    In about second way,say you would to replace any character in your text with correct character.This means when you have:

    String str = "به";   
    

    If get str characters they will be look like:
    {1576,1607} that is like “ب ه” instead of “به”.So you would to replace incorrect Unicode with correct Unicode codes(in this case correct characters are: {65169, 65258}).You can use “Arabic Reshapers” even reshapers that designed for android!I saw 2 link for this reshapers:1-github 2-Arabic Android(I’m persian developer and so i do not try them).With using a good Arabic reshaper also you may have problem with character arranging from left to right instead of right to left.(some phones draw characters from left to right and other from right to left).I use below class to detect that ordering is true(from right to left) or not:

    public class DetectOrdering{   
    public static boolean hasTrueOrdering()
    {
        boolean b = false;
        try {
            char[] chArr = {65169, 65258};
            String str = new String(chArr);
            System.out.println(str);
            int width = f1.charWidth(chArr[1]) / 2;
            int height = f1.getHeight();
            image1 = Image.createImage(width, height);
            image2 = Image.createImage(width, height);
            Graphics g1 = image1.getGraphics();
            Graphics g2 = image2.getGraphics();
            g1.drawString(str, 0, 0, 0);
            g2.drawChar(chArr[1], 0, 0, 0);
            int[] im1 = new int[width * height];
            int[] im2 = new int[width * height];
    
            image1.getRGB(im1, 0, width, 0, 0, width, height);
            image2.getRGB(im2, 0, width, 0, 0, width, height);
            if (areEqualIntArrrays(im1, im2)) {
                b = true;
            } else {
                b = false;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return b;
    }
    
    private static boolean areEqualIntArrrays(int[] i1, int[] i2) {
        if (i1.length != i2.length) {
            return false;
        } else {
            for (int i = 0; i < i1.length; i++) {
                if (i1[i] != i2[i]) {
                    return false;
                }
            }
        }
        return true;
    }
    }    
    

    If DetectOrdering.hasTrueOrdering() returns true,sure that phone draw Arabic characters from right to left and display your String.If returns false it draws from left to right.If phone draws Arabic character from left to right you would to reverse string after reshape it and then you can display it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.