Pre JB you can run any function by using reflection, as is demonstrated in the example.
anyjavaobject.getClass().forName("android.telephony.SmsManager").. etc.