I am trying to import EventBus.jar file from this link but when i am trying to create an instance of EventBus. it gives me error "EventBus cannot be resolved to a type "
here is my code for your consideration
 public class ChargingReceiver extends BroadcastReceiver{
 private EventBus bus = EventBus.getDefault(); 
@Override
public void onReceive(Context context, Intent intent) {
    // TODO Auto-generated method stub
     ChargingEvent event = null;
        // Get current time
        Time now = new Time();
        now.setToNow();     
        String timeOfEvent = now.format("%H:%M:%S");
        String eventData = "@" + timeOfEvent + " this device started ";
        if(intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)){
            event=new ChargingEvent(eventData+"charging.");
        } else if(intent.getAction().equals(Intent.ACTION_POWER_DISCONNECTED)){
            event=new ChargingEvent(eventData+"discharging.");
        }
        // Post the event
        bus.post(event);
}
