I\'m doing an application for Android and something I need is that it shows a list of all files and directories in the SD Card and it has to be able to move through the diff
my problem was this: I override getView in arrayAdapter. then when I inflated view, I forgot to set attach to root to false and that caused this exception.
this is how must be done:
convertView = LayoutInflater.from(getContext()).inflate(R.layout.market_search_product_view, parent,false);
after that problem solved!