Android Studio.
Android freeware and JAVA source code



Android Studio

Android Studio - free Java source code
    Some Android programs require text data files. For example, foreign words to learn. Such a file can be placed on a Micro SD card or in the phone's memory. If the file must be installed on the smartphone with the program, it must be placed in the phone's memory.
    // Reads the file. The file name is in the XML file strings in words in the directory / res / raw /
    public void getNewsFeed() {
        // At the same time, added View to import and android: id = "@ + id / myText" in main.xml
        TextView myTextView = findViewById(;
        try {
        Resources res = getResources();
        @SuppressLint("ResourceType") InputStream in_s = res.openRawResource(R.raw.words);
        byte[] b = new byte[in_s.available()];;
        // Without recoding the read text ( Without "//")
        //myTextView.setText(new String(b));
        // With the recoding of the text read from the file - Cyrillic text source "cp1251"
        myTextView.setText(new String(b, Charset.forName("cp1251")));
        } catch (Exception e) {
        // e.printStackTrace();
        myTextView.setText("Error: can't show help.");
    Source code >>
    Keywords: - java, source, code, android, studio, freeware
    Java source codes for Android Studio and Android smartphones freeware. Android's custom programs

     Free Android Studio examples.
Android Studio ebook. Android freeware
Free Android Studio Java source code and examples. Free Java guide. Android freeware.
Android Studio





Free ebook