I also want to access a variable recevieBuffer or a method receivedData(). However they are in another class within the same .java file and the same project. I have a the following classes:
public class Simulation extends UiApplication
which is the class that I want to use the variable in
class SPPScreen extends MainScreen implements BluetoothSerialPortListener
which is the class that contains the variable.
How could I access the variable or the method from the Simulation class?