Mark M. | has entered the room |
Mark M. | turned on guest access |
Suzanne A. | has entered the room |
Mark M. |
howdy, Suzanne!
|
Suzanne A. |
howdy, Mark!
|
Suzanne A. |
have you used honeycomb much yet?
|
Mark M. |
i gots me a XOOM right here, yo
|
Mark M. |
:-)
|
Feb 24 | 4:00 PM |
Suzanne A. |
all right! :-)
|
Mark M. |
if you mean from a development standpoint, some
|
Suzanne A. |
I want to create a dialog box that opens from an action bar item
|
Suzanne A. |
where the dialog is a 2x4 grid of 8 small icons
|
Suzanne A. |
do I use a custom dialog?
|
Suzanne A. | |
Mark M. |
well, you have three major choices
|
Mark M. |
1. truly create a custom Dialog (i.e., subclass of Dialog)
|
Mark M. |
2. use AlertDialog.Builder and supply the View to go in the "guts" of the dialog
|
scottt | has entered the room |
Julius | has entered the room |
Mark M. |
3. go the DialogFragment route, if this is fully Honeycomb'd (or you have early access to Ms. Hackborn's compatibility library)
|
fitz | has entered the room |
Mark M. |
I haven't played with DialogFragment yet
|
Suzanne A. |
ok. but can I create a custom dialog using xml, as in the linked doc above?
|
Mark M. |
(btw, howdy scottt, Julius, and fitz!)
|
fitz |
just observing Mark
|
Julius |
(howdy)
|
scottt |
hello everyone. just lurking again
|
Mark M. |
Suzanne: oh, yeah, I forgot about that
|
Mark M. |
I keep thinking you have to subclass Dialog
|
Mark M. |
AFAIK, that should work fine
|
Suzanne A. |
really? you mean, it would work?
|
fitz |
you talking/conferences at all in San Fran area this coming year?
|
Suzanne A. |
cool !!
|
Mark M. |
the action bar won't affect the dialog any
|
Suzanne A. |
ok
|
Mark M. |
no different than an options menu item
|
Suzanne A. |
got it
|
Mark M. |
fitz: I'm yammering at AnDevCon in two weeks (as is Suzanne)
|
Mark M. |
well, OK, *I'm* yammering
|
Mark M. |
Suzanne is probably speaking much more coherently than that
|
Suzanne A. |
thanks, mark :-)
|
Feb 24 | 4:05 PM |
Mark M. |
I should be attending I|O, but that's pretty much exclusively Googler-led content
|
Mark M. |
otherwise, right now, I have nothing scheduled for the Bay Area
|
Mark M. |
scottt: you still lurking, or do you have a question?
|
Mark M. |
Julius: do you have a question?
|
Julius |
Yes
|
Julius |
If I have a listview and there are rows each with
an imageview say and each has a tag - if two of those imageViews has the
same tage
|
Matt R. | has entered the room |
Julius |
what if I try to fetch the view by tag?
|
Mark M. |
you get one at random, most likely
|
Julius |
I would like to update both at the same time
|
Julius |
do you have any ideas of the best way to do this?
|
Julius |
or have you seen something good that works?
|
Mark M. |
either don't look them up by tag, or scope the lookup-by-tag to do so on a per-row basis, so you can only get one
|
Mark M. |
(btw, howdy, Matt!)
|
Feb 24 | 4:10 PM |
Mark M. |
most likely, it'd be the latter
|
Julius |
ok thank you for the ideas
|
Mark M. |
no different than finding them by ID
|
Matt R. |
Thanks...just here to lurk for now...working my way through your books. Like the style.
|
Mark M. |
Matt: thanks!
|
Mark M. |
fitz: do you have a question?
|
Julius |
(can't wait for some material on 3.0 - I'm being asked to make 3.0 versions and I don't have a device yet)
|
fitz |
ya but we only have 1 hr :) - not right now just lurking waiting on someone that is late for a meeting
|
Mark M. |
Honeycomb-flavored updates to the books will be rolling out frequently between now and end of March
|
Mark M. |
first update may be as soon as tomorrow
|
scottt |
(still lurking, no questions today)
|
scott k. | has entered the room |
Mark M. |
howdy, scott k!
|
scott k. |
hi all
|
Mark M. |
scott k: everyone else has had a turn -- do you have a question?
|
scott k. |
yes, but it may not be your department
|
scott k. |
i published my "talking quotes" app
|
scott k. |
when i log in the developers site it says "This .apk requests 1 features that will be used for Android Market Filtering"
|
scott k. |
android.hardware.touchscreen
|
scott k. |
i don't know how i am requesting this feature
|
scott k. |
my manifest specifies:
|
scott k. |
android:configChanges="keyboardHidden|orientation"
|
Feb 24 | 4:15 PM |
scott k. |
which i lifted from your book
|
scott k. |
my app doesn't require touchscreen that i know of
|
Mark M. |
what is your minSdkVersion?
|
scott k. |
4
|
Mark M. |
my guess is that it is there for backwards-compatibility reasons
|
Mark M. |
but, that's just a guess
|
scott k. |
it runs in the emulator, and shows up when i search, so maybe its not a problem
|
Mark M. |
you could try <uses-feature android:name"android.hardware.touchscreen" android:required="false" />
|
scott k. |
thanks, i will try that
|
Mark M. |
OK, back to Suzanne: do you have a question?
|
Suzanne A. |
yes, but I think I just found an example. what's the best way to update a progress dialog from a background thread?
|
Suzanne A. |
also here - http://developer.android.com/guide/topics/…
|
Julius | has left the room |
Mark M. |
I don't think a ProgressDialog necessary dictates the options
|
Mark M. |
so, AsyncTask's onPublishProgress would be my default
|
Suzanne A. |
okay, thanks
|
Mark M. |
if you're not using AsyncTask, then post() on a View, or runOnUiThread()
|
Julius | has entered the room |
Mark M. |
welcome back, Julius!
|
Suzanne A. |
will do it
|
Julius |
(hi left too soon)
|
Feb 24 | 4:20 PM |
Mark M. |
scottt, fitz, Matt: if you come up with a question, let me know
|
Feb 24 | 4:20 PM |
Julius | has left the room |
Suzanne A. |
gotta run, but thanks mark, and see you soon
|
Mark M. |
see ya!
|
Suzanne A. | has left the room |
Mark M. |
scott k: do you have another question?
|
scott k. |
i'm leaving to watch the Discovery space launch as i'm in Cocoa, Fl
|
Mark M. |
cool!
|
scott k. |
thanks for your help - talk to you next time
|
Mark M. |
see ya
|
scott k. | has left the room |
Mark M. |
OK, if any of you come up with a question, chime in
|
Matt R. |
I'm coming from a Python background; not much
java. Any good resources to get me up to speed with the bits of Java
most commonly used on Android?
|
Mark M. | |
Matt R. |
Nice! Thanks.
|
scottt |
(it's nice weather to watch a launch ~ just under 80 and not very humid here in florida)
|
Feb 24 | 4:25 PM |
Matt R. |
Thanks for the link. I'm sure I'll stop by again for a later office hour session with questions.
|
scottt |
i found the Osborne scjp study guides (Sierra/Bates) to be pretty good for learning java
|
Matt R. |
Thanks. I'll look those up.
|
Matt R. | has left the room |
Mark M. |
BTW, if either of you have any XOOM questions, I am XOOM'd, so fire away
|
Feb 24 | 4:30 PM |
scottt |
cool. i was wondering what you were using for 3.0 dev
|
Mark M. |
well.......I........had........been........using........the........emulator........
|
scottt |
lol
|
Mark M. |
they *so* gotta get an x86 emulator going
|
scottt |
why?
|
Mark M. |
to help fix the emulator speed issue
|
Mark M. |
I mean, a VirtualBox of an x86 Android would be cool, but VirtualBox is an Oracle property, so I doubt they'll go that route
|
Mark M. |
I suspect they'll stick with qemu
|
scottt |
speaking on speed issues, is it just me or is the 2.3 emu much slower than the older ones?
|
Mark M. |
each release gets a bit slower for the same screen size
|
Mark M. |
3.0 is dramatically worse, mostly due to screen size, AFAICT
|
scottt |
are there any setting tweaks that one can make to make it any better?
|
Mark M. |
not that I am aware of
|
Mark M. |
well, restate that
|
Feb 24 | 4:35 PM |
Mark M. |
"Device ram size" in the SDK and AVD Manager definitely has an impact
|
Mark M. |
particularly on larger screen sizes
|
Mark M. |
I couldn't even get 3.0 to boot on 512MB -- had to goose it to 1GB
|
Mark M. |
I haven't tried that on a 2.3 WVGA to see if that would help any
|
Mark M. |
there are lots of qemu switches, but I'm not sure if any will help w/o breaking
|
scottt |
ok, back to "x86 emulator"... i'm not sure what u mean. are u using an x86 in an android device?
|
Mark M. |
Most Android devices run ARM processors
|
Mark M. |
the Android emulator emulates an ARM processor
|
Mark M. |
so, the emulator is loading ARM instructions and converting them to x86 instructions to run on your PC/Mac
|
Mark M. |
this is not especially speedy
|
Mark M. |
Android clearly can run on x86 -- Google TV boxes are based on Intel Atom
|
Mark M. |
a version of the Android emulator that used x86 instructions natively would skip the ARM->x86 conversion
|
Mark M. |
and speed things up a fair bit
|
Mark M. |
there are signs that this is in the works in the Googleplex
|
Feb 24 | 4:40 PM |
scottt |
oh, i got it now. i was just being dense. too many all-nighters :-)
|
Julius | has entered the room |
Julius |
(hi again)
|
Mark M. |
welcome back!
|
scottt |
add in the jvm and you end up with essentially a vm within a vm
|
Mark M. |
scottt: yes
|
Mark M. |
Julius: do you have another question? (quick! before you vanish again!)
|
Mark M. |
:-)
|
Julius |
(heh)
|
Julius |
yes
|
Julius |
I have a project where I have a few reuasble layouts
|
Julius |
however, I'd like to have reusable Java code too
|
scottt |
throw in running your os with a vm and perhaps running a scripted language and you get 4 levels. yuck!
|
Julius |
I'm having trouble figuring out how to create
reusable Java in cases where views in activities are accessed - perhaps I
need to subclass my activities. Anyhow - question is do you have any
documentation in your ooks on this?
|
Feb 24 | 4:45 PM |
Julius |
ooks => books
|
Julius |
(err not a well asked question :))
|
Mark M. |
there is the Reusable Components chapter in the Advanced Android book
|
Julius |
ah
|
Mark M. |
you probably want Android library projects, which are covered in there
|
Julius |
sounds great thank you
|
scottt |
is the xoom really $800?
|
fitz |
mark you developing on a windows 64bit box or 32 bit - does one work faster/better for android dev?
|
Mark M. |
neither
|
Mark M. |
Linux 64-bit
|
Julius |
:>
|
Mark M. |
I'm not sure the 32-bit vs. 64-bit will make much difference, other than in available RAM
|
fitz |
ok thanks
|
Feb 24 | 4:50 PM |
fitz |
what version of Linux you running
|
Mark M. |
Ubuntu 10.10
|
fitz |
cool thanks
|
Julius |
bfn - thanks for your pointers
|
Mark M. |
you're very welcome
|
Julius | has left the room |
Mark M. |
any other questions?
|
Feb 24 | 4:55 PM |
fitz |
thanks for today see ya next time
|
fitz | has left the room |
scottt |
none from me
|
Feb 24 | 5:00 PM |
scottt |
thanks, and have a great evening
|
Mark M. |
you too!
|
scottt | has left the room |
Mark M. | turned off guest access |