Open Source App

 Open Source Java Code

Write data to file oflameron.txt

    //==========================================================
    // WRITE data to the oflameron.txt file
    //==========================================================
    @RequiresApi(api = Build.VERSION_CODES.R)
    public void Save(View view) {
        EditText EText = findViewById(R.id.editText1);//Let's find EditText
        str = EText.getText().toString(); //Read into str data to encode from EText

        Code();//Here we encode the text that we wrote into the variable str
        //Log.d(LOG_TAG, "== == View encoded text == ==" + str);

        try {
            // The data is encoded. We tear off the stream for writing data to the file oflameron.txt
            BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
                    openFileOutput(FILENAME, MODE_PRIVATE)));
            // We write data to the file oflameron.txt in the isolated memory area of this application
            // A file on a smartphone in the Device File Explorer folder /data/data/com.example.cryptonote/files/oflameron.txt
            Content = str; //Text to write to the oflameron.txt file from a variable str from EText
            bw.write(Content);
            // Closing the stream
            bw.close();
            //Log.d(LOG_TAG, getStorageDirectory().toString());  //Write the name of the current foldergetStorageDirectory()

        } catch (FileNotFoundException e) {
            Log.d(LOG_TAG, "== == Err NO WRITE File == ==");
            e.printStackTrace();
        } catch (IOException e) {
            Log.d(LOG_TAG, "== == Err NO WRITE File == ==");
            e.printStackTrace();
        }
    }


CryptoNote_password_OK.ZIP на GOOGLE DRIVE https://drive.google.com/file/d/1EAzXZZgx3iMZ8JkV0QJlcOBALTQEvoSa/view?usp=sharing

 Open Source Java Code

Comments

Popular posts from this blog

Android Photo Registrar OFLAMERON

Android Java Open Source

Czech Entropy