File file = new File(General.getPath());
if(!file.exists())
{
file.createNewFile();
}
System.out.println("path del file: " +
file.toString());
if(file.exists() && file.canWrite())
{
System.out.println("beginning list");
Toast.makeText(getApplicationContext(),
"Buon utilizzo!",
Toast.LENGTH_LONG).show();
//riempimento del listview delle
sezioni giĆ create
ListView lista = (ListView)
findViewById(R.id.listView1);
ArrayList<String> listaSezioni = new
ArrayList<String>();
listaSezioni.clear();
System.out.println("qui");
BufferedReader streami = new
BufferedReader(new
FileReader(General.getPath()));
String riga = null;
can enyone say me why my snippet locks on File.createNewFile();
(although that file has been already creating in the previous instance
of the app)???
General.getPath(); is a static method that returns
"listaBigliettini.txt".
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en