[android-beginners] Re: Checking to See if I directory is there and if not creating one?

2010-08-02 Thread infero
try this: private File getFile( String folder, String filename ) { // make sure the directory exists on the sd card File appRoot = new File( Environment.getExternalStorageDirectory(), your path ); File fileRoot = new File( appRoot, folder ); if(

[android-beginners] getting length of an EditText while entering text

2009-09-29 Thread infero
I'd like to display the length of the entered text for a EditText while the user is typing, so he/she can see when the maximum characters are reached - or the other way round how many chars are left (link for an SMS). I see that the TextView has a protected method onTextChanged, but how can I

[android-beginners] Re: getting length of an EditText while entering text

2009-09-29 Thread infero
One way would be to subclass the EditText class...  You would then have access to onTextChanged and could do whatever you want with it. Thanks Justin, That sounds like a big overhead :-( for something quite simple. I hope there is somehow a simpler way available... Regards infero

[android-beginners] Re: Hello World Emulator Issue

2009-09-14 Thread infero
Hi Christian, I had the same problem. I searched every menu item to see if I had to show/enable another window or what ever. I finaly found out that my mobile phone was connected through the USB cable and the application ran there - instead of in the emulator HTH