I'm trying to use a method from another class inside my Control method for camera of smarteyeglass and I'm getting an error. It's telling me that Method in class can not be applied to smarteyeglass.extension.Samplecamera.SamplecameraControl. This is my definition for method which I am trying to use in camera control method.
public DatabaseHelper(Context context) {
super(context, DB_NAME, null, 10);
this.myContext = context;
this.DB_PATH = "/data/data/" + context.getPackageName() + "/" + "databases/";
Log.e("Path 1", DB_PATH);
}
This is where i use the method in camera control class.
case SmartEyeglassControl.Intents.CAMERA_MODE_JPG_STREAM_HIGH_RATE:
if (cameraStarted) {
DatabaseHelper myDbHelper = new DatabaseHelper(SampleCameraControl.this);
try {
myDbHelper.createDataBase();
} catch (IOException ioe) {
throw new Error("Unable to create database");
}
try {
myDbHelper.openDataBase();
} catch (SQLException sqle) {
throw sqle;
}
d = myDbHelper.query("Rota", null, null, null, null, null, null);
if (d.moveToFirst()) {
do {
canvas.drawText("Alınacak Parça " + d.getString(0) + " " + "Raf Adresi:" + d.getString(1), pointBaseX, pointY, paint);
} while (d.moveToNext());
} else {
canvas.drawText("Başlamak için dokun ", pointBaseX, pointY, paint);
}
break;
canvas.drawText("wrong recording type.", pointBaseX, pointY, paint);
}
default:
utils.showBitmap(displayBitmap);