How can I get a 2d sprite to move to a position clicked on the screen, without bumping into other objects? I'm programming in java using the android API library
I have created a surface view and loaded my sprites as a bitmap object.
It depends on your game. If you have a dense environment with restricted moving paths (eg. something like a maze), then you should look into path-finding. If you have only few and spaced obstacles which may even be moving, then look into steering-behaviors, especially obstacle-avoidance.
Update: While path-finding usually works with a starting location and a target-location (eg. your sprites current position and the position you clicked), this might not be so obvious with steering-behaviors. In the case of steering-behaviors, you can use a combination of behaviors. Eg. start with a behavior like "Arrival" where the target is where you last clicked. During this behavior, check for obstacles in the way and switch to the obstacle-avoidance behavior if you detect an obstacle in your path. As soon as the way is clear, re-apply the arrival behavior. Alternatively you could also implement your own behavior that takes everything into account.