We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello I want to use my processing code in android studio as animated background did any budy know how to do it ?
@maxpower=== what version of processing, P2 or P3???
I got version P3
@maxpower===
a) P3 android is much more difficult to use than P2 because you are in a fragment
b) P3+eclipse (or AS) can be used (though i cannot see exactly why...) but it s even more complicated:
c) you have to create an android project
d) you have to import (in libs) the android-core.jar and fix (eclipse) the build path
e) you create a class for your processing code; this class extends PApplet
f) you create a frameLayout for your fragment
f) in your main activity you have to inflate this class as a fragment, so you have to import and use the android fragmentManager class...
Thanks for the help :-D
I´ll try it as the way told me
Answers
@maxpower=== what version of processing, P2 or P3???
I got version P3
@maxpower===
a) P3 android is much more difficult to use than P2 because you are in a fragment
b) P3+eclipse (or AS) can be used (though i cannot see exactly why...) but it s even more complicated:
c) you have to create an android project
d) you have to import (in libs) the android-core.jar and fix (eclipse) the build path
e) you create a class for your processing code; this class extends PApplet
f) you create a frameLayout for your fragment
f) in your main activity you have to inflate this class as a fragment, so you have to import and use the android fragmentManager class...
Thanks for the help :-D
I´ll try it as the way told me