I have a number of fairly simple questions. I thought it more simple to
batch them up than ask each one separately...

(a) Does Android have any asynchronous I/O support? In particular, I'm
trying to download a file via HTTP, and am currently having to use a
helper thread to do all the work. This being Java, this then leads to
manic thread hell, especially when I have to cancel a download currently
in operation. I'd love to be able to do this from my main UI thread.

(b) How can I determine the amount of free disk space on a particular path?

(c) How do I find the path of the SD card (and, indeed, whether the SD
card is mounted at all)? For that matter, are there any rules as to how
an application should use SD card space?

(d) How do I launch the web browser on a particular page? The obvious
thing (create an intent, setData("http://...";), startActivity) does
indeed start the web browser --- but at the Google home page, not my
specified URL. Also, it asks me whether I want to start it with the
browser or the browser first, which is very odd.

(e) Is there a style guide I can look at so I can figure out how to
design things like options dialogues?

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to