Sep 6 | 3:55 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Sep 6 | 4:25 PM |
scottt | has entered the room |
scottt |
hello mark!
|
Mark M. |
howdy, scottt!
|
scottt |
i don't have any questions. i just popped in since i finally got a chance
|
Mark M. |
OK
|
Mark M. |
as you can see, it's a wee bit quiet today
|
scottt |
the tampa bay android developers group is doing well: 65 members at the moment
|
Mark M. |
that's pretty good
|
Mark M. |
my folks spend the winter months in appropriately-named Winter Haven
|
Mark M. |
if I get down there sometime during a non-holiday,
I'll let you know, in case there's anything I can do for your group
while I'm in the area
|
scottt |
i remember you mentioning that. my folks used to live near there
|
scottt |
that would be very cool
|
scottt |
we recently started a group app. but its starting out a bit slow with everyone doing the new school-year thing
|
Sep 6 | 4:30 PM |
Mark M. |
yeah, understood
|
Mark M. |
BTW, is this your group: http://www.meetup.com/Tampa-Bay-Android-Deβ¦
|
Mark M. |
since a Scott T is in charge, I'm guessing that's yours :-)
|
scottt |
its tuff not to just do the design and the coding myself, but i'm hoping to identify future partners for commercial projects
|
scottt |
yeah, that would be me
|
scottt |
i've been distracted doing on-site contract work,
but i reacently worked it out to cut back my hours. my goal is to do a
serious retool and get my android dev creds so that i can do that
professionally
|
Mark M. |
sounds like a plan
|
Mark M. |
I don't keep in tune with the contract markets, but I get the sense that Android is doing fairly well in terms of opportunities
|
scottt |
bonus is that there's a lot of remote work avail. which is what i find the best.
|
Mark M. |
yes, it's great to be able to take on jobs beyond the immediate vicinity
|
scottt |
if the number of craigslist and dice posting is any indication, then yeah its a good market right now
|
scottt |
(but i don't know for sure. it could be that a lot
of the cl ones are of the non-serious "we'll pay up to $200 for an app
that does the following 50 things")
|
Sep 6 | 4:35 PM |
Mark M. |
DICE never really suffered from that, back when I used them
|
scottt |
i like the remote stuff cuz i'm most creative late at night
|
Mark M. |
ah, OK
|
Mark M. |
I'm most sleepy late at night
|
scottt |
i also found i like working for smaller places. not too much into the mega-corp dilbert thing anymore
|
Mark M. |
aw, c'mon -- with remote work, you won't even know if your boss' hair is pointy
|
scottt |
true. but the mega-corps don't seem to tolerate remote work
|
Mark M. |
well, that's all in the packaging
|
Mark M. |
"remote work", no
|
Mark M. |
"hiring a consulting firm", yes
|
Julius | has entered the room |
scottt |
ok. if you put it that way...
|
Mark M. |
howdy, Julius!
|
Julius |
hi everybody
|
scottt |
hello julius
|
Mark M. |
Julius: do you have a question?
|
Julius |
oh yes
|
Mark M. |
fire away!
|
Sep 6 | 4:40 PM |
Julius |
I have a gridview which has some images (in the
context of Honeycomb+) and I am wanting persistent highlight when these
are selected.
|
Mark M. |
there's only two people, so it's open season at the moment
|
Julius |
I'm following your book which is working
|
Julius |
however I'd like the highlight to show over the top of the view rather than underneath
|
Julius |
(heh)
|
Julius |
I was wondering if you'd come cross that problem
|
Mark M. |
um
|
Julius |
it's a bit specific...
|
Julius |
:)
|
Mark M. |
the "activated" construct is a background
|
Mark M. |
so, you wouldn't be able to use that
|
Julius |
heh background over the top probably doens't make sense
|
Mark M. |
your best bet, off the cuff, would be to construct your grid cells with this in mind
|
Julius |
right
|
Mark M. |
e.g., put an ImageView over top of your other contents via a FrameLayout
|
Mark M. |
then affect a change to the ImageView for the cell(s) you want "activated"
|
Julius |
I was thinking about holding the state in the item in the adapter
|
Mark M. |
you'll need to hold it somewhere
|
Mark M. |
assuming that this isn't part of the data model, then the adapter is probably an OK spot
|
Julius |
cool
|
Julius |
I have another question if scottt doesn't have one
|
Sep 6 | 4:45 PM |
Mark M. |
scottt: did a question come to mind?
|
scottt |
nope, go ahead Julius
|
Julius |
cool
|
Julius |
I'm having some trouble with onActivityResult being "hit" in a Fragment
|
Julius |
what I wanted to know is:
|
Julius |
if I call startActivityForResult(... from a Fragment, is it any different from calling it from an Activity?
|
Julius |
ie. will onActivityResult be called in both cases?
|
Julius |
the docs suggest that calling startActivityForResult in a Fragment just uses the Activity to start the Activity
|
Mark M. |
haven't tried it
|
Mark M. |
yes
|
Julius |
so I figure it doesn't make a difference either way.
|
Mark M. |
one imagines that there's a bit of code in there that routes the result to the fragment
|
Mark M. |
this is where the Android Compatibility Library comes in handy
|
Mark M. |
while we don't have Honeycomb source, we do have ACL source, in the SDK
|
Julius |
yeah appartently if you don't call super in the Activity's onActicityResult, onActivity Result in the Fragment won't get called
|
Julius |
ah O see
|
Julius |
I
|
Julius |
yeah I should check that out
|
Julius |
been using that for tabs and fragment stuff
|
Julius |
er ActionBar stuff
|
Mark M. |
taking a peek at the source now, hold on
|
Sep 6 | 4:50 PM |
Mark M. |
interesting
|
Mark M. |
they merge in the fragment ID into the requestCode
|
Mark M. |
you can only use the lower 16 bits for the requestCode
|
Julius |
oh so it might make a difference afterall
|
Mark M. |
then, onActivityResult() of the Activity will pull
the fragment ID out of the requestCode and call onActivityResult() of
the Fragment
|
Mark M. |
so, if a Fragment calls startActivityForResult(),
the result *can* make it back to it, if the activity chains to the
superclass as you indicated
|
Julius |
right so calling myActivity.startActivityForResult is different from myFragment.startActivityForResult
|
Mark M. |
subtly, yes
|
Julius |
(bugger...)
|
Mark M. |
?
|
Mark M. |
I would have thought this would be a good thing
|
Julius |
oh well...
|
Julius |
yeah I guess
|
Julius |
I have a few things I need to change :)
|
Mark M. |
you can always call getActivity().startActivityForResult() if you want the activity-only behavior
|
Julius |
yes it is granular which is good - you're right
|
Julius |
just - you know I'm migrating an application from Activities to FragmentActivities and Fragments
|
Mark M. |
hopefully with few profanities
|
Julius |
which means some of my AsyncTasks which sometimes use myActivity.startA... will need to change
|
Julius |
:)
|
Julius |
oh yeah sorry bout that
|
Mark M. |
huh? just a joke
|
Julius |
it's colloquially (if that's a word) not really that bad :)
|
Mark M. |
why would an AsyncTask call startActivityForResult()?
|
Julius |
oh good
|
Julius |
say I have an AsynTask that goes to check the
status of something then in onPostExecute it makes the decision to start
an activity
|
Mark M. |
that seems like an odd flow
|
Sep 6 | 4:55 PM |
Julius |
go on :) always looking for improvements
|
Mark M. |
what sort of work is being done in doInBackground()?
|
Julius |
going to a server online to check whether there is a credit card
|
Mark M. |
hmmmm...
|
Mark M. |
I guess that makes sense
|
Julius |
if there is make a purchase perhaps or show a creditcard addition screen
|
Mark M. |
right
|
Mark M. |
yeah, OK, I probably overreacted
|
Julius |
oh no please I'm all for anyone giving me better ways of doing things
|
Julius |
thank you for looking that source up
|
Julius |
I'm a bit slow at reading that stuff
|
Julius |
I'll get there, but you know... :)
|
Mark M. |
yeah, the Android code is sometimes tough to follow
|
Mark M. |
Ms. Hackborn's stuff tends to be a bit easier for me to follow, and I think she wrote the ACL
|
Julius |
well it seems like it's really well written which for me makes it hard to follow :p
|
Julius |
the commenting seems pretty good
|
Julius |
well it's just about that time. Thank you again for your help! Stilll looking out for that beer fund
|
Mark M. |
since I'm not a beer drinker, you'll be waiting a while for that
|
scottt |
have a great day!
|
Julius |
yes beer is more a variable :)
|
Mark M. |
you too!
|
Sep 6 | 5:00 PM |
Julius |
thanks, you too bfn!
|
scottt | has left the room |
Mark M. |
mmmmmmmmmmmmm.... $BEER!
|
Julius |
hahahah
|
Julius | has left the room |
Mark M. | turned off guest access |