Fixed pendulum activity and main layout. Works in my eclipse now