In this cocos2d-android game, if two sprites(ship and target) intersect ship should get disappeared, this is how i had given the code but could not remove the sprite after intersection, i searched through out google, but nothing helped me out, this is the code in cocos2d-iphone " [_targets removeObject:sprite];" but could not find anything similar for cocos2d-android, please if anybody know this help me.
if (CGRect.intersects(targetRect, shipRect))
{
System.out.println("ship deleted: " + ship);
this.removeChild(ship, true);
}