i searched how to use resources under the directory “assets”, then i find a snippet:
AssetManager assets = getAssets();
((TextView)findViewById(R.id.txAssets)).setText(**readStream**(assets.open("data.txt")));
i just cannot find what’s the readStream method, it is not in the google apis
i tried to download the newest Java api document, but still can not find it, anybody knows that?
As @Felix said it is a user-defined method. On the page you linked, they defined readStream like this: