calsign / apde Goto Github PK
View Code? Open in Web Editor NEWSource code for APDE: Create and run Processing sketches on an Android device.
License: GNU General Public License v2.0
Source code for APDE: Create and run Processing sketches on an Android device.
License: GNU General Public License v2.0
Processing for Android crashes when importing a compressed library.
Message after opening processing again: Error occurred restoring state, likely caused by a crash in an activity further down the hierarchy
I have allowed installation from unknown sources. Yet, when I run a sketch I am presented with an install dialog in which I simply can't press the install button. I can press only cancel. Does anyone have any idea what might be going on?
import java.time.ZoneId;
^^^^^^^^^
The import java.time cannot be resolved
It'd be amazing if we could program our own live wallpapers like this: http://android.processing.org/tutorials/wallpapers/index.html
Using some very simple code I experienced a strange issue.
void setup(){
size(displayWidth, displayHeight);
}
void draw(){
}
When running with orientation set to portrait or unlocked while holding the phone portrait, it compiles and runs fine (blank screen as expected, no errors). But when trying landscape or reverse landscape it gives the "IllegalStateException: size() cannot be used here" error at runtime.
The current syntax highlighter is buggy and relies on a hard-coded offset that will probably break it on some devices. Work towards a new syntax highlighter has been done, and can be found in CodeEditText.java
.
Environment: Android 6.0
NOTE: This is in the test version from #24, I have not yet tested whether this would happen in the 0.4.0 release.
Attempting to open the sketch folder from within APDE (via android's native file browser) instead opens the "Recent" list as shown in the attachment.
This applies regardless of sketchbook location.
Link to image
Edit: image attachment was huge, added link instead.
Whenever I use Bluetooth for my app, the orientation and version preferences go back to default, along with min SDK version.
Not a big problem, but still a problem.
When ever I change from landscape to portrait the console fills the screen. Running hudl 2 android 5.1
I like this APDE.
I installed on my device HuaWei honor 3C ,with rom EMUI 2.0 based on android 4.2.2 .
All examples run perfect.But I cannot create another tab,when I entered new tab's name and press ok,ANR occur.
Hi.
As a daily user firstly I want to thank you for the code deletion fix. It never occured again.
When I turn my device vertically to horizontally or vice versa, with the soft keyboard displayed it returns with the console taking half or even th entire screen. Not really a problem; you just have to the dismiss the keyboard first.
But rather to ask for a fix I would suggest a free custom setting. I mean dragging the bar to a desired position. The console takes 30% of the little screen space we have. I think other users would agree with me. If I only had enough Java knowledge I would try it my self, but I'm affraid that will take a long time.
So if you have some time left , please consider.
I was trying to run DCC++ Controller but get 100+ errors
It appears that it can not find some libraries.
Can it be used to compile and run DCC++ Controller.
If so what am I doing wrong or what do I need to add & where?
Thanks,
Erich
After installing APDE on an Android 4.4.2 device I am unable to build any of the examples.
I have previously installed and run successfully on an older 4.1.1 device.
All attempts to build&run give the same error from the DX Merger as below. There is 1gb available on the internal storage.
Initializing build sequence...
Target: debug
Deleted old build folder
Pre-processing...
Injected log broadcaster
Writing AndroidManifest.xml...
Writing resources...
Copying android.jar...
Copying Processing libraries...
Copying dexed Processing libraries...
Copying contributed libaries...
Detected architecture armeabi-v7a
Using position independent executable (PIE) AAPT binary
Copying AAPT...
Changing execution permissions for AAPT...
Copying GLSL shader files...
Packaging resources with AAPT...
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Compiling with ECJ...
Compiling: /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java
[parsing /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java - #1/1]
[reading processing/core/PApplet.class]
[reading android/app/Activity.class]
[reading android/view/ContextThemeWrapper.class]
[reading android/content/ContextWrapper.class]
[reading android/content/Context.class]
[reading java/lang/Object.class]
[reading android/content/ComponentCallbacks.class]
[reading android/view/View$OnCreateContextMenuListener.class]
[reading android/view/View.class]
[reading android/view/KeyEvent$Callback.class]
[reading android/view/KeyEvent.class]
[reading android/os/Parcelable$Creator.class]
[reading android/os/Parcelable.class]
[reading android/view/Window$Callback.class]
[reading android/view/Window.class]
[reading android/view/LayoutInflater$Factory.class]
[reading android/view/LayoutInflater.class]
[reading java/lang/Runnable.class]
[reading processing/core/PConstants.class]
[analyzing /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java - #1/1]
[reading java/util/HashMap.class]
[reading java/util/Map$Entry.class]
[reading java/util/Map.class]
[reading java/util/Map$Entry.class]
[reading java/util/ArrayList.class]
[reading java/io/File.class]
[reading java/io/BufferedReader.class]
[reading java/io/PrintWriter.class]
[reading java/io/InputStream.class]
[reading java/io/OutputStream.class]
[reading java/io/IOException.class]
[reading android/content/res/Configuration.class]
[reading android/os/Bundle.class]
[reading android/content/res/Resources$Theme.class]
[reading android/content/res/Resources.class]
[reading java/lang/String.class]
[reading android/content/Intent.class]
[reading android/content/IntentSender.class]
[reading android/content/IntentSender$SendIntentException.class]
[reading android/content/pm/PackageManager$NameNotFoundException.class]
[reading android/content/pm/PackageManager.class]
[reading android/net/Uri.class]
[reading android/content/ComponentName.class]
[reading android/content/ServiceConnection.class]
[reading android/content/BroadcastReceiver.class]
[reading android/os/Handler.class]
[reading android/content/IntentFilter.class]
[reading android/graphics/Bitmap.class]
[reading android/graphics/drawable/Drawable.class]
[reading android/database/sqlite/SQLiteDatabase.class]
[reading android/database/sqlite/SQLiteDatabase$CursorFactory.class]
[reading java/io/FileOutputStream.class]
[reading java/io/FileNotFoundException.class]
[reading java/io/FileInputStream.class]
[reading android/content/SharedPreferences.class]
[reading android/content/pm/ApplicationInfo.class]
[reading java/lang/ClassLoader.class]
[reading android/os/Looper.class]
[reading android/content/ContentResolver.class]
[reading android/content/res/AssetManager.class]
[reading java/lang/System.class]
[reading java/io/PrintStream.class]
[parsing /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil.java - #2/2]
[reading java/lang/Thread.class]
[reading java/lang/Thread$UncaughtExceptionHandler.class]
[reading java/io/Flushable.class]
[reading java/io/Closeable.class]
[reading java/io/UnsupportedEncodingException.class]
[analyzing /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil.java - #2/2]
[writing processing/test/bouncybubbles/BouncyBubbles.class - #1]
[writing processing/test/bouncybubbles/BouncyBubbles$Ball.class - #2]
[reading java/lang/Throwable.class]
[completed /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java - #1/2]
[reading java/lang/Override.class]
[reading java/lang/Class.class]
[writing processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$1.class - #3]
[writing processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil.class - #4]
[writing processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class - #5]
[writing processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class - #6]
[completed /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil.java - #2/2]
[2 units compiled]
[6 .class files generated]
----------
1. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 4)
import processing.data.*;
^^^^^^^^^^^^^^^
The import processing.data is never used
----------
2. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 5)
import processing.event.*;
^^^^^^^^^^^^^^^^
The import processing.event is never used
----------
3. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 6)
import processing.opengl.*;
^^^^^^^^^^^^^^^^^
The import processing.opengl is never used
----------
4. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 8)
import java.util.HashMap;
^^^^^^^^^^^^^^^^^
The import java.util.HashMap is never used
----------
5. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 9)
import java.util.ArrayList;
^^^^^^^^^^^^^^^^^^^
The import java.util.ArrayList is never used
----------
6. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 10)
import java.io.File;
^^^^^^^^^^^^
The import java.io.File is never used
----------
7. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 11)
import java.io.BufferedReader;
^^^^^^^^^^^^^^^^^^^^^^
The import java.io.BufferedReader is never used
----------
8. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 12)
import java.io.PrintWriter;
^^^^^^^^^^^^^^^^^^^
The import java.io.PrintWriter is never used
----------
9. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 13)
import java.io.InputStream;
^^^^^^^^^^^^^^^^^^^
The import java.io.InputStream is never used
----------
10. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 14)
import java.io.OutputStream;
^^^^^^^^^^^^^^^^^^^^
The import java.io.OutputStream is never used
----------
11. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/bouncybubbles/BouncyBubbles.java (at line 15)
import java.io.IOException;
^^^^^^^^^^^^^^^^^^^
The import java.io.IOException is never used
----------
11 problems (11 warnings)
Dexing with DX Dexer...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/APDEInternalLogBroadcasterUtil$1.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/BouncyBubbles$Ball.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/bouncybubbles/BouncyBubbles.class...
Merging DEX files with DX Merger...
DX Merger failed
java.nio.BufferOverflowException
at java.nio.ByteArrayBuffer.putShort(ByteArrayBuffer.java:405)
at com.android.dex.Dex$Section.writeShort(Dex.java:818)
at com.android.dex.Dex$Section.writeTypeList(Dex.java:870)
at com.android.dx.merge.DexMerger$3.write(DexMerger.java:437)
at com.android.dx.merge.DexMerger$3.write(DexMerger.java:423)
at com.android.dx.merge.DexMerger$IdMerger.mergeUnsorted(DexMerger.java:317)
at com.android.dx.merge.DexMerger.mergeTypeLists(DexMerger.java:423)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:163)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:187)
at com.android.dx.merge.DexMerger.main(DexMerger.java:1114)
at com.calsignlabs.apde.build.Build.build(Build.java:898)
at com.calsignlabs.apde.EditorActivity$22.run(EditorActivity.java:2295)
at java.lang.Thread.run(Thread.java:841)
Hello,
I want install app via my processing app. I have see "INSTALL_PACKAGE", but how i can install app from a processing app?
I have a JXD S7800B and have been trying various combinations to try and read the joysticks.
Best I can get is an error that dispatchGenericMotionEvent(MotionEvent) is undefined for the type PApplet.
Does this mean Processing for Android has not been built to pick up gamepad joysticks?
I have started by simply trying to modify:
jeffThompson / ProcessingTeachingSketches / Android / AdvancedTouchInteractions
Any ideas? Help?
Cheers,
B
I have noticed this on early versions as well, but not beeing that important I didn't make an issue of it.
But just to report; on my KitKat the overflow menu pops up but none of the items like comment/ uncomment increase indent etc. will work. On my Lollipop 5.1 phone the menu pops up but closes again within a second.
If this uses Java, why is it not possible to code a hello world app?!
I recently created an app using APDE and it won't open. At first there were problems with the code and they were listed in the console, and I fixed all of them. When I run the sketch it installs fine and then a text box saying "(App) keeps stopping." pops up. I've tried uninstalling it and then running again and restarting my device. Not sure what to do in order for the app/sketch to work.
Have tried to implement this several times. Current attempt can be found in Build.java
. Receiving the following error:
Vertex shader filenames and URLs are both null!
At present, the auto format tool does not remember the location of the cursor, but jumps to the start of the file each time it is used.
My Samsung phone has this problem. Ver. 4.1.2.
The project makes apk but then crashes it 96% times... I am a teen can't buy a hi-end phone. This is a critical bug.
Lately I've been writing a simple raytracing renderer in processing, sometimes coding on my tablet. And I noticed that some colors are not displayed correctly in android sketches. But at the same time frames saved through saveFrame look correctly. On PC saved and displayed images look the same.
Image with color bugs
It is most noticeable at broken gradient from light at top right corner of image
Saved image without them
Images have been created by editing pixels array in PImage.
Images have a different file size, because I had to take a screenshot to capture first one.
Hi. Apde is very nice, but when i want tout use Jena , it always crash.
Here is thé code :
import com.hp.hpl.jena.rdf.model.*;
String personURI = "http://somewhere/JohnSmith";
String fullName = "John Smith";
String err="" ;
Model model;
// create an empty Model
void setup() {
try{
err="rt";
model = ModelFactory.createDefaultModel();
// create the resource
//Resource johnSmith = model.createResource(personURI);
// add the property
// johnSmith.addProperty(VCARD.FN, fullName);
}
catch( Exception e ) {
e.printStackTrace();
err+=e.toString();
//text(e.toString(), 100, 200);
}
}
void draw() {
text(" 54"+err, 100, 100);
}
Jena :https://jena.apache.org
But i have read that Jena vas some problems with Android si i've tried with this one :
http://elite.polito.it/jena-on-android
But the mater is the same. have you any idéal ?
Thx
David
Hi. First I want to thank you for this excellent App.
It makes coding on Android a lot easier.
The only problem I had until now is with the code below.
It saves the image but it is a corrupt one.
Using same code on Processing PC Android mode saves the file correctly.
The differences in the two generated files are:
A is the broken one. Seems to me header is missing.
- *** Comparing A: /storage/emulated/0/imgFolder/tempimg.png * regular file * 0 bytes * last status change: 2018-02-21.08:08:07 * last file modification: 2018-02-21.08:08:07 * mode [octal]: 100770
+ *** With B: /storage/emulated/0/DCIM/Camera/tempimg.png * regular file * 106 bytes * last status change: 2018-02-21.08:07:01 * last file modification: 2018-02-21.08:07:01 * mode [octal]: 100770
+000000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 �PNG IHDR
+000010 00 00 00 0a 00 00 00 0a 08 06 00 00 00 8d 32 cf �2�
+000020 bd 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 � sBIT | d
+000030 88 00 00 00 21 49 44 41 54 18 95 63 64 60 60 f8 � !IDAT �cd``�
+000040 cf 40 04 60 61 60 60 60 a8 af af 27 a8 90 89 18 �@ `a```���'���
+000050 d3 46 15 12 04 00 c5 56 02 92 03 5c 06 ad 00 00 �F �V � \ �
+000060 00 00 49 45 4e 44 ae 42 60 82 IEND�B`�
CODE:
import android.os.Environment;
PGraphics img;
String s = "tempimg.png";
void setup() {
// fullScreen();
size(200,200);
background(255);
img = createGraphics(10, 10);
drawImg();
saveImage(s);
}
void draw() {
image(img, width/2, height/2);
}
void drawImg() {
img.beginDraw();
img.fill(127);
img.rect(0, 0, img.width, img.height);
img.endDraw();
}
void saveImage(String s) {
try {
String directory = new String(Environment.getExternalStorageDirectory().getAbsolutePath() + "/imgFolder");
File imgFolder = new File(directory);
if (!imgFolder.exists()) {
boolean success = true;
success = imgFolder.mkdirs();
}
img.save(directory + "/" + s);
println("File saved successfully.");
}
catch (Exception e)
{
println("Error while saving file: " + e);
}
}
Hello,
I want to load and play a simple wav file. I discovered following things:
My questions are:
I have a Samsung Note 2 mobile phone.
Best regards, SimpleProgrammer
Hi, I just started to use your app, and it is awesome.
I wanted to import the library ketai, which simplifies the access to the devices captors and hardware, and it fails.
Once selected, the screen turns black, and the app stops responding.
It would be great to be able to use ketai, as it is quite powerful.
Regards.
When requesting the permission READ_EXTERNAL_STORAGE, ECJ fails with the following error messages:
1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/processing/test/sketch/MainActivity.java (at line 51)
check = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Manifest.permission.READ_EXTERNAL_STORAGE cannot be resolved
----------
2. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/processing/test/sketch/MainActivity.java (at line 53)
needed.add(Manifest.permission.READ_EXTERNAL_STORAGE);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Manifest.permission.READ_EXTERNAL_STORAGE cannot be resolved
Clearly ECJ can't find READ_EXTERNAL_STORAGE, but I cannot pinpoint why. This bug was introduced with v0.4.0.
The workaround is to remove READ_EXTERNAL_STORAGE entirely as it is unnecessary. If your sketch uses WRITE_EXTERNAL_STORAGE anyway then read permissions are implicitly requested as well, and READ_EXTERNAL_STORAGE is not even enforced on any current device.
EditText is too slowly, a good solution is to write a Custom Editor extend View or SurfaceView such as AIDE.
Hi,
since the lase update, onBackPressed is not overridden anymore. I can't find any turnaround.
test code :
void setup() { size(100,100); }
void draw() {}
void onBackPressed() {}
-> back button still makes the app quit
Going to tools - manage libraries force closes the app every time. I am unable to add libraries as a result. On kitkat.
Phone screen resolution: 480x854
Phone: HUAWEI Y625-U51
Android version: 4.4.2
APDE version: 0.4.0
When I compile my sketch in APDE, it succeeds but when I run the sketch after then it crashes while only having "void setup()" and a size(480,854) within the setup.
I like to make clear it is the sketch that stops working after it is installed - it is not APDE that crashes.
When the sketch starts it gives me a notification that it stopped working and APDE gives me a "java.lang.NullPointerException" type of errror. Some of the error lines mention PGraphics, background and (unknown source).
I did a quick experiment and I will list them from first to last:
I got a handy tip to use fullScreen(); in the meantime, which appeared to work the first time I compiled my sketch. However, it crashed my sketch again and I tried a new sketch with only having a void setup & fullScreen(); and it also crashed my sketch.
for some reason when I continue coding, it will crash unless I reduce my size() again.
I still have 2 sketch apps installed from before the update and those work fine (size(480,854)). I can't find their sketch files though so I can't compile them to see if these crash now.
Hello, I've already installed the library in " Install Compressed Library", but even after installing it, the Libraries folder is still empty !!! Please help
Not that it is that important, but neither can you re-download the eamples in the settings.
The library examples are installed correctly.
I use: Bq Curie 2 quad core
Version android: 4.4.2
Version kernel 3.0.36+
Error:
DX Merge failed
java.lang.Thread.run (Thread.java:841)
I am using Processing parseJsonObject(String)
it does not work for android. I tried to Install anothe Json lib for processing into android bt it showed improperly formatted library. somthing like that...
This one I tried. zip.
Today I downloaded the new 5.1 pre2 version and was happily surprised by the new preview option.
It looks very promising but on my device (Samsung Tab E 9.6 with KitKat) it runs really really fast but unfortunately just gives a blank screen with rhe error in the console showed below.. I tested different example codes
BTW Thanks for making the run and stop button a single toggle button. Now there is enough room for the undo/redo buttons!!!
Initializing build sequence…
Target: debug
Deleted old build folder
Pre-processing…
Writing AndroidManifest.xml…
Writing resources…
Injected log broadcaster
Copying Processing libraries…
Copying dexed Processing libraries…
Copying contributed libraries…
Detected architecture armeabi-v7a
Available cores: 4
Copying AAPT…
Using position independent executable (PIE) AAPT binary
Changing execution permissions for AAPT…
Packaging resources with AAPT…
/data/data/com.calsignlabs.apde/app_build/support-res/layout/abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:scrollIndicators from <ScrollView>
/data/data/com.calsignlabs.apde/app_build/support-res/layout/abc_alert_dialog_button_bar_material.xml: note: using v22 attributes; synthesizing resource processing.test.drift:layout/abc_alert_dialog_button_bar_material for configuration v22.
/data/data/com.calsignlabs.apde/app_build/support-res/layout/abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.widget.ActionBarContainer>
/data/data/com.calsignlabs.apde/app_build/support-res/layout/abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource processing.test.drift:layout/abc_screen_toolbar for configuration v21.
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_indicator_material.xml:25: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from <bitmap>
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_indicator_material.xml: note: using v21 attributes; synthesizing resource processing.test.drift:drawable/abc_ratingbar_indicator_material for configuration v21.
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_material.xml:25: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from <bitmap>
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_material.xml: note: using v21 attributes; synthesizing resource processing.test.drift:drawable/abc_ratingbar_material for configuration v21.
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_small_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from <bitmap>
/data/data/com.calsignlabs.apde/app_build/support-res/drawable/abc_ratingbar_small_material.xml: note: using v21 attributes; synthesizing resource processing.test.drift:drawable/abc_ratingbar_small_material for configuration v21.
Compiling with ECJ…
Compiling: /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java
[parsing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java - #1/5]
[parsing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/MainActivity.java - #2/5]
[parsing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/APDEInternalLogBroadcasterUtil.java - #3/5]
[parsing /data/data/com.calsignlabs.apde/app_build/gen/processing/test/drift/R.java - #4/5]
[parsing /data/data/com.calsignlabs.apde/app_build/gen/android/support/v7/appcompat/R.java - #5/5]
[reading processing/core/PApplet.class]
[reading java/lang/Object.class]
[reading processing/core/PConstants.class]
[reading processing/android/ActivityAPI.class]
[reading android/support/v7/app/AppCompatActivity.class]
[reading android/support/v4/app/FragmentActivity.class]
[reading android/support/v4/app/BaseFragmentActivityJB.class]
[reading android/support/v4/app/BaseFragmentActivityHoneycomb.class]
[reading android/support/v4/app/BaseFragmentActivityGingerbread.class]
[reading android/support/v4/app/SupportActivity.class]
[reading android/app/Activity.class]
[reading android/view/ContextThemeWrapper.class]
[reading android/content/ContextWrapper.class]
[reading android/content/Context.class]
[reading android/content/ComponentCallbacks2.class]
[reading android/view/View$OnCreateContextMenuListener.class]
[reading android/view/View.class]
[reading android/view/KeyEvent$Callback.class]
[reading android/view/KeyEvent.class]
[reading android/os/Parcelable$Creator.class]
[reading android/os/Parcelable.class]
[reading android/view/Window$Callback.class]
[reading android/view/Window.class]
[reading android/view/LayoutInflater$Factory2.class]
[reading android/view/LayoutInflater.class]
[reading android/view/LayoutInflater$Factory.class]
[reading android/content/ComponentCallbacks.class]
[reading android/support/v4/app/ActivityCompatApi23$RequestPermissionsRequestCodeValidator.class]
[reading android/support/v4/app/ActivityCompatApi23.class]
[reading android/support/v4/app/ActivityCompat$OnRequestPermissionsResultCallback.class]
[reading android/support/v4/app/ActivityCompat.class]
[reading android/support/v7/app/ActionBarDrawerToggle$DelegateProvider.class]
[reading android/support/v7/app/ActionBarDrawerToggle.class]
[reading android/support/v4/app/TaskStackBuilder$SupportParentable.class]
[reading android/support/v4/app/TaskStackBuilder.class]
[reading android/support/v7/app/AppCompatCallback.class]
[reading java/lang/Thread.class]
[reading java/lang/Runnable.class]
[reading java/lang/Thread$UncaughtExceptionHandler.class]
[reading java/io/OutputStream.class]
[reading java/io/Flushable.class]
[reading java/io/Closeable.class]
[reading java/lang/AutoCloseable.class]
[analyzing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java - #1/5]
[reading java/util/HashMap.class]
[reading java/util/Map$Entry.class]
[reading java/util/Map.class]
[reading java/util/Map$Entry.class]
[reading java/util/ArrayList.class]
[reading java/io/File.class]
[reading java/io/BufferedReader.class]
[reading java/io/PrintWriter.class]
[reading java/io/InputStream.class]
[reading java/io/IOException.class]
[reading java/lang/String.class]
[reading processing/core/PVector.class]
[reading processing/event/TouchEvent$Pointer.class]
[reading processing/event/TouchEvent.class]
[analyzing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/MainActivity.java - #2/5]
[reading android/os/Bundle.class]
[writing processing/test/drift/Drift$Particle.class - #1]
[writing processing/test/drift/Drift.class - #2]
[completed /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java - #1/5]
[reading android/content/Intent.class]
[reading android/view/ViewGroup.class]
[reading android/widget/FrameLayout.class]
[reading processing/android/PFragment.class]
[reading processing/android/CompatUtils.class]
[reading java/lang/Override.class]
[reading android/view/Menu.class]
[reading android/view/MenuItem.class]
[reading android/content/res/Configuration.class]
[reading android/util/AttributeSet.class]
[reading android/support/v4/app/SharedElementCallback.class]
[reading android/app/SharedElementCallback.class]
[reading java/io/FileDescriptor.class]
[reading java/lang/CharSequence.class]
[reading android/support/v4/app/Fragment.class]
[reading android/app/Fragment.class]
[reading android/content/IntentSender.class]
[reading android/content/IntentSender$SendIntentException.class]
[reading android/view/MenuInflater.class]
[reading android/view/ViewGroup$LayoutParams.class]
[reading android/content/res/Resources$Theme.class]
[reading android/content/res/Resources.class]
[reading android/content/res/AssetManager.class]
[reading android/view/Display.class]
[reading android/content/pm/PackageManager$NameNotFoundException.class]
[reading android/content/pm/PackageManager.class]
[reading android/net/Uri.class]
[reading java/lang/Class.class]
[reading android/content/ComponentName.class]
[reading android/content/ServiceConnection.class]
[reading android/content/BroadcastReceiver.class]
[reading android/os/Handler.class]
[reading android/content/IntentFilter.class]
[reading android/os/UserHandle.class]
[reading android/graphics/Bitmap.class]
[reading android/graphics/drawable/Drawable.class]
[reading android/database/sqlite/SQLiteDatabase.class]
[reading android/database/DatabaseErrorHandler.class]
[reading android/database/sqlite/SQLiteDatabase$CursorFactory.class]
[reading java/io/FileOutputStream.class]
[reading java/io/FileNotFoundException.class]
[reading java/io/FileInputStream.class]
[reading android/content/SharedPreferences.class]
[reading android/content/pm/ApplicationInfo.class]
[reading java/lang/ClassLoader.class]
[reading android/os/Looper.class]
[reading android/content/ContentResolver.class]
[reading android/view/ViewManager.class]
[reading android/view/ViewParent.class]
[reading android/view/accessibility/AccessibilityEventSource.class]
[reading android/graphics/drawable/Drawable$Callback.class]
[reading java/lang/System.class]
[reading java/io/PrintStream.class]
[reading java/io/UnsupportedEncodingException.class]
[analyzing /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/APDEInternalLogBroadcasterUtil.java - #3/5]
[writing processing/test/drift/MainActivity.class - #3]
[completed /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/MainActivity.java - #2/5]
[reading java/lang/Throwable.class]
[reading java/lang/Exception.class]
[reading android/os/Handler$Callback.class]
[writing processing/test/drift/APDEInternalLogBroadcasterUtil.class - #4]
[analyzing /data/data/com.calsignlabs.apde/app_build/gen/processing/test/drift/R.java - #4/5]
[writing processing/test/drift/APDEInternalLogBroadcasterUtil$1.class - #5]
[writing processing/test/drift/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class - #6]
[writing processing/test/drift/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class - #7]
[completed /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/APDEInternalLogBroadcasterUtil.java - #3/5]
[analyzing /data/data/com.calsignlabs.apde/app_build/gen/android/support/v7/appcompat/R.java - #5/5]
[writing processing/test/drift/R$layout.class - #8]
[writing processing/test/drift/R$drawable.class - #9]
[writing processing/test/drift/R$color.class - #10]
[writing processing/test/drift/R$dimen.class - #11]
[writing processing/test/drift/R.class - #12]
[writing processing/test/drift/R$styleable.class - #13]
[writing processing/test/drift/R$string.class - #14]
[writing processing/test/drift/R$anim.class - #15]
[writing processing/test/drift/R$style.class - #16]
[writing processing/test/drift/R$integer.class - #17]
[writing processing/test/drift/R$attr.class - #18]
[writing processing/test/drift/R$id.class - #19]
[writing processing/test/drift/R$bool.class - #20]
[completed /data/data/com.calsignlabs.apde/app_build/gen/processing/test/drift/R.java - #4/5]
[writing android/support/v7/appcompat/R$id.class - #21]
[writing android/support/v7/appcompat/R$color.class - #22]
[writing android/support/v7/appcompat/R$attr.class - #23]
[writing android/support/v7/appcompat/R$styleable.class - #24]
[writing android/support/v7/appcompat/R$drawable.class - #25]
[writing android/support/v7/appcompat/R$style.class - #26]
[writing android/support/v7/appcompat/R.class - #27]
[writing android/support/v7/appcompat/R$string.class - #28]
[writing android/support/v7/appcompat/R$integer.class - #29]
[writing android/support/v7/appcompat/R$dimen.class - #30]
[writing android/support/v7/appcompat/R$layout.class - #31]
[writing android/support/v7/appcompat/R$anim.class - #32]
[writing android/support/v7/appcompat/R$bool.class - #33]
[completed /data/data/com.calsignlabs.apde/app_build/gen/android/support/v7/appcompat/R.java - #5/5]
[5 units compiled]
[33 .class files generated]
----------
1. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 4)
import processing.data.*;
^^^^^^^^^^^^^^^
The import processing.data is never used
----------
2. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 5)
import processing.event.*;
^^^^^^^^^^^^^^^^
The import processing.event is never used
----------
3. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 6)
import processing.opengl.*;
^^^^^^^^^^^^^^^^^
The import processing.opengl is never used
----------
4. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 8)
import java.util.HashMap;
^^^^^^^^^^^^^^^^^
The import java.util.HashMap is never used
----------
5. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 9)
import java.util.ArrayList;
^^^^^^^^^^^^^^^^^^^
The import java.util.ArrayList is never used
----------
6. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 10)
import java.io.File;
^^^^^^^^^^^^
The import java.io.File is never used
----------
7. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 11)
import java.io.BufferedReader;
^^^^^^^^^^^^^^^^^^^^^^
The import java.io.BufferedReader is never used
----------
8. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 12)
import java.io.PrintWriter;
^^^^^^^^^^^^^^^^^^^
The import java.io.PrintWriter is never used
----------
9. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 13)
import java.io.InputStream;
^^^^^^^^^^^^^^^^^^^
The import java.io.InputStream is never used
----------
10. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 14)
import java.io.OutputStream;
^^^^^^^^^^^^^^^^^^^^
The import java.io.OutputStream is never used
----------
11. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/drift/Drift.java (at line 15)
import java.io.IOException;
^^^^^^^^^^^^^^^^^^^
The import java.io.IOException is never used
----------
11 problems (11 warnings)
Dexing with DX Dexer…
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/Drift$Particle.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/Drift.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/MainActivity.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/APDEInternalLogBroadcasterUtil.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/APDEInternalLogBroadcasterUtil$1.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$layout.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$drawable.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$color.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$dimen.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$styleable.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$string.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$anim.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$style.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$integer.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$attr.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$id.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/drift/R$bool.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$id.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$color.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$attr.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$styleable.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$drawable.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$style.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$string.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$integer.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$dimen.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$layout.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$anim.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./android/support/v7/appcompat/R$bool.class...
Launching sketch preview…
java.lang.ClassNotFoundException: processing.test.drift.Drift
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:251)
at com.calsignlabs.apde.sketchpreview.PreviewUtil.loadSketchPApplet(PreviewUtil.java:40)
at com.calsignlabs.apde.sketchpreview.PreviewActivity.init(PreviewActivity.java:81)
at com.calsignlabs.apde.sketchpreview.PreviewActivity.onCreate(PreviewActivity.java:48)
at android.app.Activity.performCreate(Activity.java:5447)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2393)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2493)
at android.app.ActivityThread.access$800(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5590)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: processing/test/drift/Drift
... 19 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "processing.test.drift.Drift" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
... 19 more
Hello.
I'm trying to use APDE ver 0.3.3 but I cant.
When trying to compile appear this error:
Initializing build sequence....
Deletec old build folder
Injected lod broadcaster
Detected architecture armeabi-v7a
Packaging resources with AAPT...
AAPT exited with error code 1
Device is a Sony Xperia M2 with Android 4.4.4
With ver 0.3.2 worked prefectly and enjoyed very much of APDE.
Best regards from Spain.
Hi, i need to make an Android version of a desktop processing sketch implementing the Beads audio library. So i manually installed it by following the tutorial contained in the GitHub wiki and the only trouble i had was not being able to dex the tool.jar library via the DX Dexer.
So after building and running the app of the first example of the library, it immediately crashes and an error appears on the console:
java.lang.NoClassDefFoundError: javax.sound.sampled.AudioFormat
Is there any attempt i can do to make the library work or is it just incompatible?
Hello,
I have experienced this issue numerous times now. I have written a review on Google Play - no fix, but then I noticed this repo.
Anyways, sometimes when I turn my screen off for a break, and then turn the screen back on, the sketch's code is just cleared. It is really frustrating, because I sometimes make large sketches and then suddenly all my code is gone.
How to install this library?
Processing.video needs to be build with ant as described here
I'm able to do with my desktop computer but how to do with a smartphone?
There is a smart procedure for installing this library?
Any help or hint will be very appreciated!
Thanks
Walter
In v0.3.2, the Conway example crashes with the error:
java.lang.RuntimeException: GL function glReadBuffer() is not available on this hardware (or driver) Read http://wiki.processing.org/w/OpenGL_Issues for help.
I haven't taken much time to look into the problem yet, but I think it has to do with OpenGL functionality added in the latest version of the Processing core.
The Conway example was already pretty broken on any higher-resolution device because every pixel is updated individually, so it needs some serious revamping.
A minor issue but maybe easy to fix.
When selecting a word in the lower part of the editor, the softkeyboard appears and the text will automatically scroll to a visible position.
This however only works one time after starting the app, and once you press three times the back key, and call back the app again. On all other ocasions incuding the use of the home key, the screen will not scroll anymore and the 'two select buttons' will appear floating above the soft keyboard.
(Tested on KitKat 4.4.4. and Lollipop 5.1 )
(As of 0.4.0) I really don't know what happened here but I'm lucky to have tested on an older copy of a sketch first. The compilation process seemed to go okay without throwing any errors, but when trying to launch the app it crashes (the code was fully working in 0.3.3, besides I do a lot of my own exception handling in it). When it crashed back to APDE I was greeted with no code at all. It's not scrolled off screen, does not return after fully restarting the app. I have also checked the sketchbook in a file explorer and that file is zero bytes in size. I consider this to be a critical bug, although I'm not sure if it triggers every time (and am not really willing to find out as I have no backups). If it is relevant, the app would have been locked to landscape orientation, so APDE would have been loading and changing orientation at the same time.
Note: I'm now using the account @1icri, so please mention/contact that account instead of Techy4198.
Google Pixel C
version 0.4.0
Android 7.1.2
landscape mode (since it's a tablet)
turning auto-save off appeared to help but I havn't tested it enough to say confidently that it fixed the issue.
When using the app, if the document autosaves then the currently selected tab is wiped of any code. and because it was just saved there is no way to recover it. It only occurs 1 out of every 5 times or so however, not every single time. EDIT: added some details
I called a sketch Pgraph demo
and the resultant .java
file contained the lines
package processing.text.pgraph demo;
public class Pgraph demo extends PApplet
with the obvious syntax errors raised. The normal PDE resolves these issues with an event listener on the text-area: see my latest version of it if you like. It replaces spaces with _, and bans special characters (and numbers where applicable). The current version is buggy, so don't incorporate that into your code, but it tries to do the same thing. Alternatively, a simple regex after submitting would do it.
Installed on my Samsung tablet Tab E with KitKat 4.4 even the most basic examples will compile but not run. A message is shown that rhe sketch stopped, and no error is given in the console with all verbose output enabled. I deletted all traces of previous versions with (rooted) SD Maid. I've repeted this several times.
When typing code into the editor in portrait mode and then simultaneously* hitting the power button and rotating the device to activate the auto rotate function in Android will clear all contents of the editor. Upon waking the device back up the editor is empty and the undo function is greyed out and reloading the sketch loads the editor in an empty state. *Does not have to be frame perfect simultaneous, there's some wiggle room.
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.