Back at coding after a bit of a hiatus, I’d gotten a little burnt out, plus our university reduced its hours a whole lot because of coronavirus so I wasnt able to get online as much.
I have been trying to produce apps for android with consistency with processing, and have plagued by annoying bugs. I say annoying because there are solutions to them, but they are poorly documented and a google search yields little results.
I shall continue updating this list in the hopes that anyone with android related problems can hopefully find a method to load their code onto their device.
First things first, instructions on how to get things started.
Please note this is for a fresh install.
Location of important folders are as follows
C:\Users\user\.android
C:\Users\user\AppData\Local\Android
If these two locations exist delete them before attempting these instructions as these are the instructions for fresh installs.
Please note the ‘user’ will be you default user profile on windows. Therefore likely wont be called ‘user’.
Requirements Processing. This is based on Processing latest build 3.5.4, not currently attempted processing 4 beta.
_Download Android Studio
_ Load android studio. It should prompt you to download an android sdk. If at this stage you are not prompted then simply click configure at the start splash screen
if you are not presented with the following screen
------------add alternative here----------------
once this is complete go back to the sdk manager and download android 10 sdk 29 using android studio.
You should accept any thing which android studio asks, as this will be the sdk signature request, as this is required by processing.
Following this you should set up dev mode on your android device. To do this go to settings and scroll to about phone. Tap build number 7 times. You should now have unlocked developer mode on your device.
Go back to the main settings page and search dev. Developer options is found in under system and updates.
Here scroll down and set usb debugging. Hopefully your screen should look similar to this.
from here you should be able to simply load up a sketch and build to your phone using processing.
Please note all builds create an app on your device.
This is used by processing in the future and for some reason
deleting the app after a build on your phone may cause the
future builds of that sketch to fail with no error. Processing will report
a successful build and yet the app will be missing from the device.
-------------- solution to follow---------------
The fault above can only be solved by clearing the build location on the phone.
If any one knows where this is located please let me know, or message below, as I could not locate it and had to resort to a hard reset on my phone to remove the files