To get a file in the Android file system into memory is really easy. Example: import android.os.Environment; import java.io.File; File theFirstOne = Environment.getExternalStorageDirectory().listFiles()[0]; if(theFirstOne.isDirectory()) { //this is a directory } else { //this is a file }
Problem When trying to bind a view to a simple adapter the following error is thrown: “java.lang.IllegalStateException: android.widget.LinearLayout is not a view that can be bounds by this SimpleAdapter” Cause The LinearLayout layout.xml has an invalid attribute which is not compatible with the simple adapter e.g. an id attribute Solution Remove the invalid attribute from [...]
I have created a Random Bible Verse application for Android devices. I will eventually release it to a wider audience by uploading it to the Android Play Store as a free application. But, I will only do this once it is stable and improved. This is a work in progress so please download the application [...]