# Unexcepted char \\

**URL:** <https://discourse.processing.org/t/unexcepted-char/4236>\
**Category:** Processing for Android\
**Created:** [October 8, 2018, 5:05am UTC](https://discourse.processing.org/t/unexcepted-char/4236 "2018-10-08T05:05:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkar25](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Post date:** [October 8, 2018, 5:05am UTC](https://discourse.processing.org/t/unexcepted-char/4236/1 "2018-10-08T05:05:57Z")

</div>

Hello everyone.i have code,that encodes image to file with very small size…but it has bug,so output very buggy…but my question not that…on pc that code works fine,but on android its showing error **see title of post** on line “int r = (argb[i] » 16) & 0xFF;”…i didnt changed anything in code…  
[https://pastebin.com/eUz9UY14](https://pastebin.com/eUz9UY14)

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [October 8, 2018, 5:43am UTC](https://discourse.processing.org/t/unexcepted-char/4236/2 "2018-10-08T05:43:54Z")

</div>

What is this symbol? »

Did you mean this? \>\>

Chances are good the code you copied didn’t format the bit-shift operator properly.

---

<div class="post-metadata">

**Author:** ![Darkar25](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Post date:** [October 8, 2018, 6:58am UTC](https://discourse.processing.org/t/unexcepted-char/4236/3 "2018-10-08T06:58:10Z")

</div>

No,that is right…on pc that works…but on android wont…

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [October 8, 2018, 9:44am UTC](https://discourse.processing.org/t/unexcepted-char/4236/4 "2018-10-08T09:44:37Z")

</div>

@Darkar25===

i dont know wether createWriter works with android; yet i am absolutely sure that PrintWriter(File file) works: of course you have to save your file in external storage if you want to see it: by default android saves it inside the app and you cannot see it. Perhaps that is the problem you are getting …Dont forget to add permissions for writing.

BTW: i have tried adapting your code and read the created file.
