# Test for the presence of the ouya ODK

How would it be possible to test for the presence of the ODK at run time? Currently I took this approach:

private activityDelegate delegate;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Need to test for the presence of the ouya ODK here
{
}
}


But maybe there is a better way of doing this than in the main activity?

The standard way of doing this is to pick a class that you know should exist and then see whether it does:

try{
} catch (ClassNotFoundException e){
Log.e(TAG, "No ODK Found!");
}

• Great that did it! – Coyote Feb 3 '13 at 11:43