sorry for mistakes if i make some, i'm french, i'll do my best.
i'm actualy building an apk using ai2 for my son, he is 4 years old, and had a lot of larynx surgery,
after 2 years at hospital, he is now at home, but his trachea is closed, he has a tracheotomy to breathe,
and so, he can't speak at all.
so
i am making a app to click on pictures to make the android device talk,
in app, i can add pictures and words or sentenses to be spoken by the
device, 20 empty pictures slots per page, and the number of pages is
endless.i add pictures or photos with image picker, and a text field and
save it all with tinydb.
i am not a profesionnal at all, i know only bases, i'm not familiar with java so i' use app inventor.
i made a first apk with app inventor 1 last year,
i
have been able to run localy the ai server and so modify the
imagepicker.java file to remove the 10 pictures limit, it take me 3
weeks to manage to do it and understand how to use ant and to run
localy. but it was ok, i had remove the 10 pictures limitation.
the mit pushed out app inventor 2,
so
now i have rebuilt my apk on ai2, i can run it on local i change the
value from 10 to 9999, but i didn't manage to make it work...
i have dowloaded the mit source,
i
have modified the
"~\mit-cml-appinventor-sources-nls-593-g47174a7\mit-cml-appinventor-sources-47174a7\appinventor\components\src\com\google\appinventor\components\runtime\ImagePicker.java"
file,
// max number of files to save in image directory
private static int maxSavedFiles = 10;
to
// max number of files to save in image directory
private static int maxSavedFiles = 99999;
then i run ant to build server
i run the ai server
i run the build server
i then build the apk,
all seems to be ok,
but when i launch my apk on the device, i'm still limited to 10 pictures.
could you please help me ?
i found also a more easy way to run app inventor 2 localy with
ai2offline
at:
http://sourceforge.net/projects/ailivecomplete/files/?source=navbarthe file is : Ai2Offline_16Dec14
but the imagepicker is into a jar file and is not in java but in .class file,
i can open the androidruntime.jar even decompile it, and access to ImagePicker.class,
turn the .class into .java, but it's impossible to recompile it after with javac, i get 43 errors, just by changin 10 to 99999.
i'm trying to make it ork for 2 weeks.
please help me.
best regards.
aldric