I wanted to simply convert a bitmap from Android to a Mat object for OpenCV. This topic is often adressed on Stack Overflow. For example:
convert Mat to Bitmap Opencv fo
you should add OpenCV lib dependecy to your android prj config(properties->Android->Library ->add [opencv andrid prg])