Hi Magnus.... this thread is a continuation of the discussion you initiated in
Hopefully someone might have a suggestion that will work. Others might want to refer to that previous discussion and some of the ideas in it.
App Inventor 2 'solutions' cannot be ported to Android Studio other than completely reproducing the logic in Android Studio. If the coding can be done in Android Studio, perhaps you should also ask in an Android Studio forum and start coding your robo cam app using the libraries that might be available in AS? LegoEV3 and Android Studio sources and Using a video camera to stream