I want to build a data sync feature in my app. For that I will have to access the data. One option is to copy the entire data into the data directory on installation or during the first data update. But this will increase the size of my application. So, is there any way that i can install my app in the data directory itself to avoid unnecessary copying of data ?
Every android app has different options to store data as defined here Storage Options | Android Developers
You can decide to install your app to internal or external storage (such as SD Card) as defined here App Install Location | Android Developers
/data directory or Internal Storage is provided to every app as a storage option for any type of files that your app might need but is not (and can't be) the install location of your app. Your app, once installed, is immutable.
I hope this helps!