Answers for a lot of the SDK/Eclipse install and first app. questions

by Kevin » Mon, 03 Nov 2008 05:39:15 GMT


Sponsored Links
 I have seen a lot of questions on getting the SDK up and running.
While poking around the net for something else I came across these  
wonderful webcasts and thought I would share them. I have not tried  
the methods on the webcasts as they are for Windows. I am on a mac but  
I watched a couple and it looks to accomplish the same thing with a  
couple (very)slight deviations.
Heres the link:

 http://www.thescreencast.com/2007/12/how-to-google-android-in-eclipse.html 



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Unable to write text file to sdcard on physical G1 device

I need to write a fairly simple .csv file to the device's sdcard (so
it can then be emailed via Intent). The below code does not write the
file.

File file1 = new File(Environment.getExternalStorageDirectory(),
file_name);
FileOutputStream file_out = openFileOutput
(file_name,MODE_WORLD_READABLE);
BufferedOutputStream buf = new BufferedOutputStream(file_out);
OutputStreamWriter out_stream = new OutputStreamWriter(buf);

          // write fields in first row of spreadsheet then a new line
          for (int i = 0; i < FIELDS.length; i++)
          {
             if (i != FIELDS.length - 1)
                out_stream.write(FIELDS[i] + ",");
             else
                out_stream.write(FIELDS[i]);
          }

          out_stream.write("\n");

// more code here

I flush and close out_stream. I can even seem to be able to read from
the file on the device (printing above output, using fileinputstream,
to an edittext.

How can I get to this file on the sdcard?

Thanks!

double
--~--~---------~--~----~------------~-------~--~----~

2. Can an Android app access files on removable media (e.g. sdcard?)

>From what I've been able to find, Android apps are sandboxed, and can
only list, read, and write files within the application's data
directory (e.g. /data/data/<pkgname>).

...but, what about an application that allows users to view photos on
an SD card (or play music, etc)?  Surely this must be possible. Does
one have to write a Service Provider for this?

Thanks!

-Mr. INTJ
--~--~---------~--~----~------------~-------~--~----~

3. differential GPS in android

4. Android User Experience and UI refinements

5. myMap.setData(uri) - KML

6. Invalid fingerprint

7. Sucky error: java.lang.IllegalArgumentException: already added: Lnet/ponder2/Util;