あるクラスのメソッドから別のクラスのメソッドに文字列を渡そうとしましたが、できないようです。
私は次のようないくつかのことを試みてきました
String location = Latitude + "," + Longitude;
AccelOrientExample GPSstring = new AccelOrientExample();
GPSstring.onSensorChanged(location);
ここで、locationは、クラスAccelOrientExampleに渡したい文字列です。ここには、locationの引数を持つメソッドがあります。
助けてください、ありがとう
タイプAccelOrientExampleをインスタンス化できません。これは、新しい側にある最初のエラーです。また、SensorEventListenerタイプのonSensorChanged(SensorEvent)メソッドは、2行目の引数(String)には適用できません。
public void onSensorChanged(SensorEvent sensorEvent, String location)
AccelOrientExampleのメソッドですか