[Solved] How to read txt file, and use the double values in it?
You can try that code import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class MainActivity extends AppCompatActivity { AudioAnalyzer aa = new AudioAnalyzer(); TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = (TextView) findViewById(R.id.textView); } public void analyzer (View view) throws FileNotFoundException{ try { double[] input = … Read more