# This is a question related to the'gicentre' library. 'JAVA' and'ANDROID' results are different

**URL:** <https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136>\
**Category:** Processing for Android\
**Created:** [April 5, 2021, 1:40pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136 "2021-04-05T13:40:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [April 5, 2021, 1:40pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136/1 "2021-04-05T13:40:32Z")

</div>

This is a question related to the’gicentre’ library.

 ![a1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2f5a672793c6f2dfb1f64d90cde515267c8a5223.jpeg)

Hello. Thank you for your interest in my writing.  
Please refer to the picture.

1. When executed with’JAVA’, the text is written as the left standard.

2. When executed with’ANDROID’, the text is written in the right standard.

Is there a workaround?  
Is there a way to use the left standard in’ANDROID’?

Help me~.

> import org.gicentre.utils.stat.\*;
> 
> BarChart barChart;
> 
> void setup()  
> {
> 
> //fullScreen();  
> size(1000,600);  
> // textFont(createFont(“Arial”,10),10);
> 
> barChart = new BarChart(this);  
> barChart.setData(new float {0.76, 0.24, 0.39, 0.18, 0.20});
> 
> // Scaling  
> barChart.setMinValue(0);  
> barChart.setMaxValue(1);
> 
> // Axis appearance  
> textFont(createFont(“Serif”,10),10);
> 
> barChart.showValueAxis(true);  
> barChart.setValueFormat(“#%”);  
> barChart.setBarLabels(new String {“Cynthia”,“Daniel”,“Eli”,  
> “Fasil”,“Gertrude”});  
> barChart.showCategoryAxis(true);
> 
> }
> 
> // Draws the chart and a title.  
> void draw()  
> {
> 
> rectMode(CENTER); imageMode(CENTER); textAlign(RIGHT);  
> background(255);  
> textSize(30);  
> barChart.draw(50,50,width-50,height-100);
> 
> }

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [April 5, 2021, 2:28pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136/2 "2021-04-05T14:28:32Z")

</div>

Hi @GWAK,

Here’s a link to the GitHub issue you opened just in case the author answer 😉 :

> <https://github.com/gicentre/gicentreutils/issues/19>
>
> link : https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136
> Hello. Thank you for your interest in my writing.
> Please refer to the picture.
> When executed with’JAVA’, the text is written...

Looks like the last issue was on Nov 4, 2018 and the others are not solved yet 🤔

---

<div class="post-metadata">

**Author:** ![AdityaRana](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/adityarana/32/18501_2.png) [@AdityaRana](https://discourse.processing.org/u/AdityaRana)\
**Post date:** [April 5, 2021, 10:06pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136/3 "2021-04-05T22:06:59Z")

</div>

Hi @GWAK not sure why this happening for android-mode, maybe there’s some issue with library only(not sure, haven’t used this library so far).

Did you test this sketch on Physical device or on Emulator ?

Can you try it on device having different screen resolution or size(try with larger size) with fullscreen mode?

you can see [how to maintain screen compatibility on android devices](https://developer.android.com/guide/practices/screens_support)

thanks,  
Aditya Rana

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [April 5, 2021, 11:54pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136/4 "2021-04-05T23:54:46Z")

</div>

Even if I try various methods such as fullscreen

I don’t know what makes the right and left separate.
