I can\'t get the total amount of data used by an Android Application (or package), because the official API support has been deleted:
http://groups.google.com/group/
You can use this raw query as well, on sqlite 3.16.0+:
SELECT page_count * page_size as size FROM pragma_page_count(), pragma_page_size();
It returns the "size" column with the single row.