International Journal of Managment, IT and Engineering
  • Year: 2013
  • Volume: 3
  • Issue: 5

A research papers for copying larger database file in Android application

  • Author:
  • Sneha PravinChandra Mandavi
  • Total Page Count: 10
  • Page Number: 48 to 57

Online published on 24 October, 2013.

Abstract

This paper on Android deals with copy larger data base from assets/raw folder to Android application.

We can copy a database file or any other file from assets/raw folder to our android application by reading byte from file and writing byte to the application, it will work if our database size in assets/raw folder is less than 1MB.

But if database file more than 1Mb in size then you will certainly get the following error when you are trying to copy the database. D/asset (909): Data exceeds UNCOMPRESS_DATA_MAX (1424000 vs 1048576)

For that we have to split binary database file into a maximum of 1048576 bytes that is Mb and then we have to read those chunks one by one.

So by this way we can get final full size database in our application. This solution is very fast and work perfectly.