so im making this cordova / phonegap application. I found out that The default Phonegap (Cordova) Camera Plugin calls the native camera and this makes Android Garbage Collector to kill background applications.
so I found a plugin that fixes this :
https://code.google.com/p/foreground-camera-plugin/
now I followed the steps as these guys told. and I'm having the following problems that I cant resolve and need help on.
- There was a problem with the cameraActivity.java it did not recognize thegenerated file R.java
then I used an import statement to make it have access to this file import statement : import java.android.R;
after this eclipse doesnt recognize the foregroundcameraplugin.xml.
besides this my my styles.xml files in values-v11 and values-v14 directories are giving an error
"Error retrieving parent for item; no reources found that match the given name @android: Theme.Holo.Light.DarkActionBar "
this is how my forground camera plugin looks like :
If anyone knows how too fix this please let me know
thank you