Watershed segmentation Visual Studio C++ to Java Android Studio

how? sorry but it’s my first time using opencv and doing anything like that, and I have problems programming that