import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.LoaderCallbackInterface;
-public class MainActivity extends AppCompatActivity
+public class MainActivity extends AppCompatActivity implements IApplicationControl
{
/////// OpenCV /////// : license https://opencv.org/license/
static
// Create the adapter that will return a fragment for each of the three
// primary sections of the activity.
- mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(), testTarget);
+ mSectionsPagerAdapter = new SectionsPagerAdapter(this, getSupportFragmentManager(), testTarget, this);
// Set up the ViewPager with the sections adapter.
mViewPager = findViewById(R.id.container);
testTarget.disconnect();
return (true);
}
+/*
if (id == R.id.action_settings)
{
testTarget.settings();
return (true);
}
-
-/*
if (id == R.id.action_reset)
{
testTarget.resetConnection();
/**
*
*/
- private void exitApplication()
+ @Override
+ public void exitApplication()
{
try
{