Whenever we build code from Android Studio the wifi and configuration on our control hub reset to the default, we have tried changing it before from the IP and in rev hardware, but whenever it receives code the wifi resets to default. This wasn’t a problem when we built from onbotjava. We would greatly appreciate help, especially since our competition is in a week. We have already contacted Rev and they didn’t help much. Thank You!
First things first, you cannot compare Android Studio and OnBot Java. Onbot Java only builds the code you write, but Android Studio builds and deploys an entirely new Robot Controller App with your code also included.
Different versions of Android Studio are also very very different in how they work. So we need to know first off which version of Android Studio you’re using, so maybe that will help us figure out what might be wrong. Regardless of the version of Android Studio, when you uninstall the Robot Controller App it removes the stored app configuration - an “upgrade” of the Robot Controller App does not. So if you install the default version of the Robot Controller App using the REV Hardware Client (which you should never do except in extreme situations) and then deploy with Android Studio (which builds and deploys an entirely new Robot Controller App) you’re often going to lose your settings. Different versions of Android Studio also have settings where you will clear your app settings on deploy, and those settings can be frustrating to find when someone (or something) accidentally enables them (or when different versions of Android Studio enable them by default).
One thing to check is whether or not “Always install with package manager” is somehow enabled in newer versions of Android Studio (in the Run/Debug configuration). That option will always clear app data between deployments. You DO NOT want it to be selected.
Another option is the “Clear app storage before deployment” setting, which will also clear your settings between deployments. You also DO NOT want it to be selected.
Finally, was it wise to change your build and software infrastructure a week from your competition?
We are using the Android Studio Ladybug. We switched infrastructure a few months ago, but have put off the problem for a while which I agree we should not have. I have already tried unchecking those two and seeing if anything changed, but nothing did. I’ll try again to see if I was missing some step.
It might also be helpful for us if you identify how you’re initially setting up your Robot Controller (give us the steps, one by one) and how you’re deploying (again, step by step, don’t skip anything). We might be able to help you identify what’s going wrong (that you might not realize you’re doing).