Office Hours — Today, November 5

Tuesday, October 23

Nov 5
9:55 AM
Mark M.
has entered the room
Mark M.
turned on guest access
10:45 AM
bsr
has entered the room
Mark M.
howdy, bsr!
how can I help you today?
10:50 AM
bsr
Good, How u doing Mark
Mark M.
OK
how can I help you today?
bsr
I have a question about what is the best way to do HTTP requests to my REST server
I have a SO qn for a week now http://stackoverflow.com/questions/1310822…
not much of response.
I was originally using AsyncTask
Mark M.
StackOverflow is not well suited for "what could be the best way" questions
bsr
:-)
but not sure about what is the best way considering orientation/config change
Mark M.
AsyncTask can work fine with configuration changes
bsr
particularly, appraoch 3 and 4
Mark M.
so long as you have it managed by a retained fragment, or otherwise get the task from the old to the new activity
services, particularly an IntentService, are good for cases when you want the operation to happen regardless of what happens in the UI layer (e.g., user presses BACK)
bsr
ok, I see a music player example in the book
will go through, or any better example to suit my requirement
10:55 AM
Mark M.
you have not stated a requirement, beyond that you want to do HTTP operations in the background
bsr
ya, that is it :-)
Thanks Mark, I will study the examples and use the IntentService
have a great day!
Mark M.
you too!
bsr
has left the room
11:00 AM
Peri H.
has entered the room
Mark M.
howdy, Peri H!
the chat is just about ending -- do you have a very quick question?
Peri H.
Hi Mark,
Do you have time for a ListView question?
Mark M.
if it is quick
Peri H.
Let's try. Otherwise maybe we can continue tomorrow. I have a ListView with a layout that contains an EditText field. If I use a TextView instead of the EditText, clicking in the field produces an onItemClick. Doesn't with the EditText. I've searched the forums and tried chaning lots of settings with no avail. Any ideas?
11:05 AM
Mark M.
we would have to take this up tomorrow, with the caveat that I really really really really really really really dislike EditText-in-a-ListView-row as UI approach
there is no way that the user will be wanting to enter data into 10,000 EditText widgets
which means you do not need a ListView
Peri H.
Well, the other approach is to make the TextView look like an EditText. I've tried that but end up changing too many things and the onItemClick stops working.
Mark M.
but rather a ScrollView wrapping some other sort of container, like a vertical LinearLayout
anyway, again, we will need to take that up tomorrow
Peri H.
Ok. You're on at 10am, right
Mark M.
yes, the chat is tomorrow, 10am Eastern (~23 hours from now)
Peri H.
Thanks.
Mark M.
have a pleasant day!
Peri H.
has left the room
Mark M.
turned off guest access

Tuesday, October 23

 

Office Hours

People in this transcript

  • bsr
  • Mark Murphy
  • Peri Hartman