Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Processing for Android, use of libraries

Tags:

I have a Processing sketch that works fine on my computer.

I'm now trying to get it running on my Android tablet using Processing Android mode. But I'm getting a lot of compiler errors saying "cannot find symbol".

I'm using some Processing libraries I've created using https://github.com/processing/processing-library-template .

These libraries don't actually access system resources or call the Processing library themselves. Or any other external Java except Java.util. They're just manipulating data-structures.

However it seems Android mode has a problem with them.

Googling around it seems that a lot of Processing libraries don't work with Android Mode, but I can't find anything explicit : should I simply assume that external libraries can't work at all with Android mode? Or are there specific things that won't work? Or should I be looking for a specific bug somewhere in my code?

Update : Further details. I believe Processing Android mode targets Android 2.3.3. I'm using Processing 2.21. The libraries I'm talking about are my own.

like image 910
interstar Avatar asked Apr 16 '15 06:04

interstar


People also ask

What is the use of libraries in Android?

An Android library is structurally the same as an Android app module. It can include everything needed to build an app, including source code, resource files, and an Android manifest.

Which library is used in Android?

The Android Databinding Library is inbuilt to the Android Support Library. It requires at least Android studio version 1.3 to work. This library, unlike ButterKnife, does not make use annotations.

What is a processing library?

Processing is an open-source low level animation and GUI library built on Java with additional simplifications like additional classes, aliased mathematical functions and operations. It also provides a GUI for simple compilation of the programs written in processing.


1 Answers

From a related Git Issue page , a comment by omerjerk

The master branch of this repository is not buildable with the master branch of processing. processing has moved ahead and we haven't updated this repository yet. Why are you really building the Android mode yourself ? If you want to run your processing sketches on your phone, then just download processing 2.2.1 from the main website, open the IDE and from there, download the Android mode. In case, if you really want to build Android mode from source, apply this pull request - #98 .

See if this helps

like image 137
Vrashabh Irde Avatar answered Oct 11 '22 21:10

Vrashabh Irde