Problem with german umlauts (UTF-8)

Hey everyone. I got a problem with a piece of code that worked some time (maybe a year) ago. When I print() a word containing any german umlaut, for example “Ü”, I get something like "ü ". Encoding selected in the android manifest is “UTF-8”. Processing version 3.5.3. I already tried several things I thought would solve the problem, but didn’t. If someone knows how to solve that issue, please let me know!

Using APDE I works well. Even a real print(“:grinning:”);

Could work. The problem is that there are other things in APDE working different from Processing for Windows… The Project I need the umlauts for is quite a big one… I need a solution working on Windows

You mean Processing for Android on PC or within AS? If first; could you point out what not can be done on APDE?

I mean Processing for Android on PC. I don’t know if it is impossible, but when I insert my code working so far in APDE and try to compile it I get more than a hundred errors of different kinds. Functions not existing, or problems for example with millis() or loadStrings() or rectMode or split() or key. Could be possible to solve all those problems, but I would have to do that every time I want to make a new version…

I am using it daily for one and half year now and have never experienced problems you mentioned, Are you sure you used the latest version?

I am pretty sure because I just downloaded the APDE app from the Play Store about 15 minutes ago.

Here ist what I get from my Code working with Processong for Android on windows:

Initializing build sequence…
Deleted old build folder
No library found for select.files
Injected log broadcaster
Detected architecture arm64-v8a

Packaging resources with AAPT…
Compiling with ECJ…

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 9)
    import select.files.*;
    ^^^^^^
    The import select cannot be resolved
all errors
  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 23)
    public class try extends PApplet {
    ^^^
    Syntax error on token “try”, Identifier expected

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 65)
    }
    ^
    Syntax error on token “}”, delete this token

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 71)
    colors.put(“white”, color(40));
    ^^^^^
    The method color(int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 104)
    files.selectInput(“Bitte Produktbild waehlen!”, “fileSelected”);
    ^^^^^
    SelectLibrary cannot be resolved to a type

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 112)
    PImage selectedImage = loadImage(selection.getAbsolutePath());
    ^^^^^^^^^
    The method loadImage(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 156)
    float pictureHeight = height/8;
    ^^^^^^
    height cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 177)
    AKFilmMemberNames = sort(AKFilmMemberNames);
    ^^^^
    The method sort(String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 188)
    for (int i = 0; i<loadAKFilmMembers().size(); i++ )if (mouseAndPositionWereInside(width/8.2f, i*height/10, width, (i + 1)*height/10, “CORNERS”)) {
    ^^^^^
    width cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 238)
    openKeyboard();
    ^^^^^^^^^^^^
    The method openKeyboard() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 244)
    openKeyboard();
    ^^^^^^^^^^^^
    The method openKeyboard() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 251)
    closeKeyboard();
    ^^^^^^^^^^^^^
    The method closeKeyboard() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 260)
    if (keyCode == 67 && text.length()>0) {
    ^^^^^^^
    keyCode cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 347)
    today.date = day() + “.” + month() + “.” + year();
    ^^^
    The method day() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 373)
    noStroke();
    ^^^^^^^^
    The method noStroke() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 391)
    noStroke();
    ^^^^^^^^
    The method noStroke() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 409)
    if (mouseAndPositionWereInside(width/8.2f, 0, width, height/1.28f, “CORNERS”)) {
    ^^^^^
    width cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 446)
    println(products.get(checkWhichImageIsClicked() - 1).inStorage - getProductSelectedNumber(checkWhichImageIsClicked() - 1));
    ^^^^^^^
    The method println(int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 490)
    images.put(“shoppingVenture”, loadImage(“einkaufswagen” + colorMode + “.png”));
    ^^^^^^^^^
    The method loadImage(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 522)
    float rightBorder = width/80 + 2*width/7 + width/7.48f;
    ^^^^^
    width cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 545)
    if (!hasPermission(“android.permission.READ_EXTERNAL_STORAGE”)) {
    ^^^^^^^^^^^^^
    The method hasPermission(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 578)
    PImage image = loadImage(dataPath);
    ^^^^^^^^^
    The method loadImage(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 591)
    Product recent = new Product(oldProducts.size(), price, loadImage(imageLocation), name, imageLocation, 0);
    ^^^^^^^^^
    The method loadImage(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 601)
    saveStrings(“products.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 605)
    String [] data = loadStrings(“products.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 617)
    return(Math.round( myFloat * pow(10, n)) / pow(10, n));
    ^^^
    The method pow(int, int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 621)
    String[]splitted = split(input, ‘.’);
    ^^^^^
    The method split(String, char) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 632)
    String [] list = split(text, ‘.’);
    ^^^^^
    The method split(String, char) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 639)
    if (key == ‘0’ || key == ‘1’ || key == ‘2’ || key == ‘3’ || key == ‘4’ || key == ‘4’ || key == ‘5’ || key == ‘6’ || key == ‘7’ || key == ‘8’ || key == ‘9’)return true;
    ^^^
    key cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 644)
    if ( key == ‘q’ || key == ‘w’ || key == ‘e’ || key == ‘r’ || key == ‘t’ || key == ‘z’ || key == ‘u’ || key == ‘i’ || key == ‘o’ || key == ‘p’ ||
    ^^^
    key cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 663)
    String [] list = split(text, ‘.’);
    ^^^^^
    The method split(String, char) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 683)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 712)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 740)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 770)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 794)
    return PApplet.parseInt(dist(specialpmouseX, specialpmouseY, mouseX, mouseY));
    ^^^^^^
    mouseX cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 920)
    saveStrings(valueName + “.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 924)
    String data[] = loadStrings(valueName + “.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 930)
    saveStrings(dataName + “.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 934)
    return loadStrings(valueName + “.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 940)
    saveStrings(valueName + “.csv”, array);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 944)
    String data[] = loadStrings(valueName + “.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 953)
    saveStrings(filename + “.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 968)
    scroll = loadStrings(scrollField + “.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 996)
    saveStrings(scrollField + “.csv”, scroll);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1000)
    String scroll[] = loadStrings(scrollField + “.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1012)
    saveStrings(“AKFilmMembers.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1023)
    saveStrings(“AKFilmMembers.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1033)
    saveStrings(“AKFilmMembers.csv”, data);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1037)
    String [] data = loadStrings(“AKFilmMembers.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1056)
    saveStrings(“auswahl.csv”, selectionStringNeu);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1061)
    saveStrings(“auswahl.csv”, selection);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1065)
    String [] selectionString = loadStrings(“auswahl.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1092)
    String [] time = loadStrings(“startTime.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1100)
    saveStrings(“startTime.csv”, startTime);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1104)
    String [] time = loadStrings(“startTime.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1125)
    universalSave(“timerTime”, millis() + “”);
    ^^^^^^
    The method millis() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1130)
    int passedTime = millis() - startTime;
    ^^^^^^
    The method millis() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1152)
    saveStrings(“actualEvening.csv”, eveningData);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1183)
    String eveningData[] = loadStrings(“actualEvening.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1225)
    saveStrings(i + “storageBefore.csv”, storageBefore);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1247)
    String [] allEvenings = loadStrings(“evenings.csv”);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1317)
    saveStrings("/storage/emulated/0/AKFilm/" + today.date + “.txt”, lines);
    ^^^^^^^^^^^
    The method saveStrings(String, String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1323)
    String []lines = loadStrings(name);
    ^^^^^^^^^^^
    The method loadStrings(String) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1411)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1421)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1435)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1450)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1483)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1519)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1530)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1548)
    rectMode(CORNER);
    ^^^^^^
    CORNER cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1583)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1608)
    imageMode(CORNER);
    ^^^^^^
    CORNER cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1616)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1639)
    fill(colors.get(“white”), 200);
    ^^^^
    The method fill(Integer, int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1673)
    fill(colors.get(“white”), 200);
    ^^^^
    The method fill(Integer, int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1699)
    fill(colors.get(“white”), 200);
    ^^^^
    The method fill(Integer, int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1739)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1761)
    fill(colors.get(“white”), 200);
    ^^^^
    The method fill(Integer, int) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1803)
    drawTransition(width/80 + 2*width/7 + width/7.85f, height/1.28f + 1, 100, height - height/1.28f - 1, 50, 6, “right”);
    ^^^^^
    width cannot be resolved

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1833)
    noStroke();
    ^^^^^^^^
    The method noStroke() is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1865)
    fill(colors.get(“white”));
    ^^^^
    The method fill(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1897)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1909)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1920)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1931)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1942)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1951)
    textFont(arial);
    ^^^^^^^^
    The method textFont(PFont) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1959)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 1996)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2062)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2089)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2115)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2144)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2178)
    background(colors.get(“white”));
    ^^^^^^^^^^
    The method background(Integer) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2321)
    SelectLibrary files = new SelectLibrary(this);
    ^^^^^^^^^^^^^
    SelectLibrary cannot be resolved to a type

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 2321)
    SelectLibrary files = new SelectLibrary(this);
    ^^^^^^^^^^^^^
    SelectLibrary cannot be resolved to a type

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 3967)
    PApplet.main(concat(appletArgs, passedArgs));
    ^^^^^^
    The method concat(String[], String[]) is undefined for the type AKFilmMember

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/try.java (at line 3972)
    }
    ^
    Syntax error, insert “}” to complete ClassBody


  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/MainActivity.java (at line 23)
    sketch = new try();
    ^^^
    Syntax error on token “try”, invalid ClassType

101 problems (101 errors)
Compiling with ECJ failed

Could there be a problem with the transfer? I just made a zip out of my processing folder on windows, send it to my phone via mail and then opened the main .pde file from the processing folder in my downloads folder. How do you that? Or do you write your code on your phone?

On windows or apde?

Another thing. Does it happen in the emulator? Maybe you could change that one.

I type directly on my tablet but also copy files made on PC to my tablet as well without problems. I have files with more than 3000 lines of code.

Unzip all pde’s (tabs) in one sketch folder. Be sure that all tabs are there. Othetwise it will give errors. The tab order will change when you copy from another location. So if you have combined global variables be sure that they are in the first tab

It works on windows. The errors above occur when trying to compile from the APDE app. I used the new “preview” function, but when I change my selection to “app” I get the same errors. My code is about three or four thousand lines of code, too.

I unzipped the complete folder with all tabs and also my data folder with icons and so on. All global variables are in one tab. Is the name of the sketch folder or anything else important?

I don’t use PC so I don’t know if android imports automatically but with apde you have to import third party libs firstly in the settings.
Also I see that almost all errors are because metods of the AKFilmMember class can’t be accessed.
You said earlier that you fixed these. How did you fix the access to the class?

I now solved most of the problems by renaming the sketch so the name of the sketch folder is the name of the main tab. All errors I get now are because of switch() and the library (fixable):

Why can’t I switch a String? Works fine on Procesing for Android on Windows.

Initializing build sequence…
Deleted old build folder
No library found for select.files
Injected log broadcaster
Detected architecture arm64-v8a

Packaging resources with AAPT…
Compiling with ECJ…

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 9)
    import select.files.*;
    ^^^^^^
    The import select cannot be resolved
all errors
  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 104)
    files.selectInput(“Bitte Produktbild waehlen!”, “fileSelected”);
    ^^^^^
    SelectLibrary cannot be resolved to a type

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 189)
    switch(mode) {
    ^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 441)
    ArrayList selection = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 441)
    ArrayList selection = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 459)
    ArrayList selectionStringList = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 459)
    ArrayList selectionStringList = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 461)
    ArrayList selection = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 461)
    ArrayList selection = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 683)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 712)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 740)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 770)
    switch(rectMode) {
    ^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 970)
    switch(scrollField) {
    ^^^^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1016)
    ArrayList AKFilmMembers = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<Liftron_V2.AKFilmMember>

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1016)
    ArrayList AKFilmMembers = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1070)
    ArrayList empty = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1070)
    ArrayList empty = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1114)
    public ArrayList readImages(int numberOfPictures) {
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1115)
    ArrayList images = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1115)
    ArrayList images = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1248)
    ArrayList evening = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<Liftron_V2.Evening>

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1248)
    ArrayList evening = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1836)
    switch(direction) {
    ^^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 1962)
    switch(mode) {
    ^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2004)
    switch(mode) {
    ^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2268)
    ArrayList storageBefore = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2268)
    ArrayList storageBefore = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2269)
    ArrayList storageAfter = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2269)
    ArrayList storageAfter = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2270)
    ArrayList storageDifference = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2270)
    ArrayList storageDifference = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2306)
    ArrayList products = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<Liftron_V2.Product>

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2306)
    ArrayList products = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2307)
    ArrayList evenings = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<Liftron_V2.Evening>

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2307)
    ArrayList evenings = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2308)
    ArrayList imagesList = new ArrayList();
    ^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2308)
    ArrayList imagesList = new ArrayList();
    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList should be parameterized

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2321)
    SelectLibrary files = new SelectLibrary(this);
    ^^^^^^^^^^^^^
    SelectLibrary cannot be resolved to a type

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2321)
    SelectLibrary files = new SelectLibrary(this);
    ^^^^^^^^^^^^^
    SelectLibrary cannot be resolved to a type

  1. WARNING in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2377)
    imagesList = readImages(products.size());
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 2624)
    switch(eveningRunning) {
    ^^^^^^^^^^^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

  1. ERROR in /data/user/0/com.calsignlabs.apde/app_build/src/com/geniuseful/liftron/Liftron_V2.java (at line 3852)
    switch(type) {
    ^^^^
    Cannot switch on a value of type String. Only convertible int values or enum constants are permitted

43 problems (15 errors, 28 warnings)
Compiling with ECJ failed

Do I have to replace all switch(String)?

Could be worth it. I think I’ll try later.

Please keep me informed about differences.
As for switch(); in the reference it says," Only primitive datatypes which can convert to an integer (byte, char, and int) may be used as the expression parameter.".
Did it work for a String on PC?
I also see that the library selectFile isn’t installed. I use this one.

I’ll reply as soon as I found something. I looked up switch() in the reference, too, and wondered why it worked, because it defenitely did work. I try to install the library and respond later.

Can I just run the sketch as “app” on APDE and get the .apk file? I would like to upload my application to the play store but never did that with APDE before.

Yes, but you have to use the same certificate to be able to publish it on the Google Play Store.
Edit: You can export it.

As macbrayne said you can export it as signed package. If you just want to try it on other devices you can use an app called "Apk Extractor wich can create an apk from app existent on your phone.

1 Like

But as one can read here switch expressions should work with strings.