18
संपत्ति से फाइल पढ़ें
public class Utils { public static List<Message> getMessages() { //File file = new File("file:///android_asset/helloworld.txt"); AssetManager assetManager = getAssets(); InputStream ims = assetManager.open("helloworld.txt"); } } मैं इस कोड का उपयोग संपत्ति से एक फ़ाइल को पढ़ने की कोशिश कर रहा हूं। मैंने ऐसा करने के दो तरीके आजमाए। सबसे पहले, जब …
178
android