code for the intentmedia project java