emmanuelpil / android-java-code-utilities-widgets-for-processing-for-android Goto Github PK
View Code? Open in Web Editor NEWAndroid code for Processing for Android
Android code for Processing for Android
hi
how to use Bluetooth example in separate tab ???
thanks in advance
As a Dialog or (better!) as a (transparent) overlay of your sketch display.
Great stuff!
Lots of tnx
Your brother in APDE.
Catch or Lock Back button
Hi again.
I have been (trying) pretty much the same, with mixed results...
java.lang.RuntimeException: Buffer not large enough for pixels
at android.graphics.Bitmap.copyPixelsFromBuffer(Bitmap.java:796)
at processing.a2d.PGraphicsAndroid2D.restoreSurface(PGraphicsAndroid2D.java:2102)
at processing.a2d.PGraphicsAndroid2D.checkCanvas(PGraphicsAndroid2D.java:217)
at processing.a2d.PGraphicsAndroid2D.beginDraw(PGraphicsAndroid2D.java:225)
at processing.core.PApplet.handleDraw(PApplet.java:1782)
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:471)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:503)
Some tinkering later:
Seems to be at least partially related to your use of settings/fullscreen:
keeps the App running.
Actually too much, as each mousePressed triggers the activity sgain..easy to fix by checking click area...
And now I will have to find out why my app is exiting on a non-RESULT_OK...hoped I could make you figure that out ;-)
And I had different plans for the weekend than fighting Android battles I cant win, too.
So far
Have a good week.
PS: Putting somrthin into draw() seems to help, too
void draw() {
background(0xff000000|frameCount);
text("Click on screen", width/2, height/3);
//if (img_loaded) image(img, 0, 0);
}
void mousePressed() {
if(mouseY<height-height/8)
searchFile();
}
Hello,
first let me thank you for providing these examples, wish I had found them a year ago.
I am just ~~~stealing~~~adapting eg. Popupmenu and Clipboard stuff...great!
Just out of interest I looked at your way of handling the dreaded back button.
I handle this by
@Override void onBackPressed()
....
handledBackPressed=false;
// to terminate ( or leave alone/ set to true if you want to continue)
...
Both ways work....
Tnx again, and have a look at my repo forU
Hi, thanks for sharing. I am trying to connect the Bluetooth. However, it always shows "java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10255 nor current process has android.permission.BLUETOOTH. I was wondering how can I give Bluetooth permission to the APP?
"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.