File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010#include " ofLog.h"
1111#include < jni.h>
1212
13- using namespace std ;
1413
1514ofxAndroidVibrator::ofxAndroidVibrator () {
1615 // TODO Auto-generated constructor stub
@@ -25,7 +24,7 @@ jobject ofxAndroidVibrator::getVibratorService(){
2524 jobject activity = ofGetOFActivityObject ();
2625 jclass contextClass = ofGetJNIEnv ()->FindClass (" android/content/Context" );
2726 if (!contextClass){
28- ofLogError ( " ofxAndroidVibrator " ) << " getVibratorService(): couldn't get Context class" ;
27+ ofLog (OF_LOG_ERROR ) << " getVibratorService(): couldn't get Context class" ;
2928 return 0 ;
3029 }
3130 jmethodID method = ofGetJNIEnv ()->GetMethodID (contextClass," getSystemService" ," (Ljava/lang/String;)Ljava/lang/Object;" );
@@ -52,7 +51,7 @@ jobject ofxAndroidVibrator::getVibratorService(){
5251 return vibratorService;
5352}
5453
55- jmethodID ofxAndroidVibrator::getVibratorMethodID (string name, string signature){
54+ jmethodID ofxAndroidVibrator::getVibratorMethodID (std:: string name, std:: string signature){
5655 jclass vibratorClass = ofGetJNIEnv ()->FindClass (" android/os/Vibrator" );
5756 if (!vibratorClass){
5857 ofLogError (" ofxAndroidVibrator" ) << " getVibratorMethodID(): couldn't get Vibrator class" ;
You can’t perform that action at this time.
0 commit comments