I was also getting WProgram.h not found error but then I found this edit which resolved that error :
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
I had to edit the AndroidAccessory.h
I was also getting WProgram.h not found error but then I found this edit which resolved that error :
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
I had to edit the AndroidAccessory.h