Nov 5 |
9:55 AM |
Mark M. |
has entered the room |
Mark M. |
turned on guest access |
Nov 5 |
10:45 AM |
bsr |
has entered the room |
Mark M. |
howdy, bsr!
|
Mark M. |
how can I help you today?
|
Nov 5 |
10:50 AM |
bsr |
Good, How u doing Mark
|
Mark M. |
OK
|
Mark M. |
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
|
bsr |
|
bsr |
not much of response.
|
bsr |
I was originally using AsyncTask
|
Mark M. |
StackOverflow is not well suited for "what could be the best way" questions
|
bsr |
:-)
|
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
|
Mark M. |
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
|
bsr |
will go through, or any better example to suit my requirement
|
Nov 5 |
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 :-)
|
bsr |
Thanks Mark, I will study the examples and use the IntentService
|
bsr |
have a great day!
|
Mark M. |
you too!
|
bsr |
has left the room |
Nov 5 |
11:00 AM |
Peri H. |
has entered the room |
Mark M. |
howdy, Peri H!
|
Mark M. |
the chat is just about ending -- do you have a very quick question?
|
Peri H. |
Hi Mark,
|
Peri H. |
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?
|
Nov 5 |
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
|
Mark M. |
there is no way that the user will be wanting to enter data into 10,000 EditText widgets
|
Mark M. |
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
|
Mark M. |
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 |