Ketai library modification
              in 
             Library and Tool Development 
              •  
              2 years ago    
            
 
           
             Hi,
            
            
I'm trying to re-built the ketai library under linux, because I have meet some problem with my spica phone for accessing to the camera.
So i've modified the KetaiCamera class, and now I just want to re-build another jar file.
I do that with eclipse.
All looks OK except than there is an error in 3 java files in the ketai lib (Ketai.java, KetaiLocationManager.java and KetaiSensorManager.java).
            
KetaiLocationManager.java :
            
            
            
This 3 java files are using the getApplicationContext() but it doesn't exist for the PApplet class...
What is the trick ??
            
Thanks
            
 
           
 
            
           I'm trying to re-built the ketai library under linux, because I have meet some problem with my spica phone for accessing to the camera.
So i've modified the KetaiCamera class, and now I just want to re-build another jar file.
I do that with eclipse.
All looks OK except than there is an error in 3 java files in the ketai lib (Ketai.java, KetaiLocationManager.java and KetaiSensorManager.java).
KetaiLocationManager.java :
- locationManager = (LocationManager) parent.getApplicationContext()
 
- datamanager = new DataManager(parent.getApplicationContext());
 
- sensorManager = (SensorManager)parent.getApplicationContext()
 
This 3 java files are using the getApplicationContext() but it doesn't exist for the PApplet class...
What is the trick ??
Thanks
 
              
              1  
            
 
            