i have a big library on my game. its word library. there is no need of it to be on ram.any moment some part of it can be searched so there is no need to make a list or dictionary for it. is there any type of file data that can be added to apk file?
I'm not sure how your library is organised, but it seems it's just a data library with some interface to access such data.
You can have a separate file with all the data you need (the words) which can be in any format you like (a raw text file, or a json file etc), then you'll need one script file, to access that data and load/unload the file at will. The script file can be structured to call first
LoadFile() and then
FindWord(String word) followed by
UnloadFile(), to make sure the data are not in ram when not needed. This assumes you will need to find plenty words in a short period of time (like a bunch of words for every stage of a game?).
I assume your current library is already in Java, so it would be fairly easy to change it to fit the above description. There are also plenty json parsers for android online which you may be able to use, so you don't have to bother on parsing the file yourself.