May 4 | 2:25 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
David | has entered the room |
David |
Hi Mark
|
Mark M. |
howdy, David!
|
Mark M. |
how can I help you today?
|
May 4 | 2:30 PM |
David |
Is it possible to make GPS background app?
|
Mark M. |
if you mean "is it possible for a service to receive location updates from GPS", then yes
|
Mark M. |
otherwise, I do not know what "make GPS background app" means
|
David |
I noticed that when a GPS app is inactive, it stops.
|
Mark M. |
what is "inactive"? what is "stops"? What is "it"?
|
David |
I want the GPS app running all the time after the GPS starts.
|
Mark M. |
OK
|
Mark M. |
whether the app is running is up to the user and the OS
|
Mark M. |
whether GPS is enabled is up to the user
|
Mark M. |
whether an enabled GPS is on is up to you
|
David |
OK
|
David |
I run GeoWebOne demo. It seems not running all the time.
|
Mark M. |
correct
|
Mark M. |
did you read the source code to the GeoWebOne demo?
|
David |
Yes.
|
Mark M. |
and where is it requesting location updates?
|
May 4 | 2:35 PM |
David |
Do you mean my location? USA
|
Mark M. |
no, I meant in the code
|
Mark M. |
if you read the code to GeoWebOne, you will see that requestLocationUpdates() is called in onResume()
|
Mark M. |
and removeUpdates() is called in onPause()
|
David |
I see.
|
Mark M. |
the vast majority of GPS applications should
behave this way, so that they do not drain the user's battery when they
are not on-screen
|
Mark M. |
users have been extremely vocal in their dislike of apps that keep the GPS radio on when it is not delivering value
|
David |
I see.
|
Mark M. |
if, however, you feel that you can convince them
of the value, there is nothing stopping you from keeping GPS on as long
as your code is running
|
David |
OK
|
David |
I have another question.
|
Mark M. |
go ahead
|
David |
Activity_A has a ListView and imageView. When an ImageView is clicked, it starts Activity_B.
|
May 4 | 2:40 PM |
David |
User enters data to Activity_B. How can I send
data to Activity_A and update the ListView? I am using Application for
global data.
|
Mark M. |
have Activity_A refresh its data from the Application in onResume(), I presume
|
David |
Yes
|
David |
Should I send an Intent to Activity_A? or sendMessage?
|
Mark M. |
neither
|
Mark M. |
have Activity_A refresh its data from the Application in onResume()
|
David |
OK
|
David |
It seems I have re-draw ListView with new data read from Application.
|
Mark M. |
possibly
|
Mark M. |
Your ListView is being populated by an Adapter
|
David |
Thank you. I have no more questions.
|
Mark M. |
OK
|
May 4 | 2:45 PM |
David |
You have been great help. Thank you.
|
Mark M. |
you're welcome!
|
David | has left the room |
David | has entered the room |
Julius | has entered the room |
David |
I am using TableLayout, but it has scrollViews.
|
Mark M. |
howdy Julius!
|
Julius |
Hello
|
Mark M. |
and, re-howdy, David!
|
May 4 | 2:50 PM |
David |
I want the last TextView to stay on the bottom on the App. How can I do that?
|
Mark M. |
put it outside the TableLayout/ScrollView, using
either LinearLayout or RelativeLayout to anchor it to the bottom of the
screen (e.g., android:layout_alignParentBottom="true" with a full-screen
RelativeLayout)
|
David |
OK
|
Mark M. |
Julius: do you have a question?
|
Julius |
hi yes :)
|
Julius |
I have been playing with the ActionBar and I have found that if I have no TitleBar it doesn't show
|
Julius |
however for a phone version of an app I don't want the titlebar
|
Mark M. |
yes, the action bar is the title bar
|
Julius |
if I take the no title bar style out of the
manifest, the title bar shows temporarily before being removed in my
onCreate in an Activity
|
Mark M. |
that's not surprising
|
Julius |
:)
|
David | has left the room |
Mark M. |
unfortunately, I don't think you have a choice
|
Julius |
right
|
Mark M. |
you could try using a custom view for the title bar on pre-HC
|
Mark M. |
I haven't played with that
|
Julius |
(that's a shame it looks a bit... well not great with it showing and then going in the phone
|
Julius |
ohh
|
Mark M. |
you might be able to use a zero-pixel-high layout or something
|
Julius |
how does that work?
|
Mark M. |
off the top of my head, I forget
|
May 4 | 2:55 PM |
Julius |
I mean how do I get access to the title bar as a View?
|
Mark M. |
like I said, I haven't used it
|
Julius |
oh
|
Julius |
right
|
Mark M. |
I think it's a window feature, IIRC
|
Julius |
maybe I can ask somone at IO next week
|
Julius |
right
|
Julius |
ok thanks for the lead
|
Mark M. |
no problem
|
Julius |
(still hoping to catch you next week)
|
Julius |
you know - just to put a face to the name and all :)
|
Mark M. |
I'll be in semi-incognito mode
|
Julius |
oh
|
Julius |
oh right
|
Mark M. |
look for the guy wearing the EFF or GNU black ballcaps
|
Julius |
electronic freedom f?
|
Julius |
er f free
|
Mark M. |
yes
|
Julius |
I better check out the logo :)
|
Julius |
I'll be wearing jeans so I'll be easy to spot :)
|
Mark M. |
it's just the letters EFF in white on a black ballcap
|
Julius |
sweet
|
Mark M. |
modeled after the FBI ballcaps you see on all those imported US TV shows
|
Julius |
I was thinking about getting a shirt made that said I <heart> AsynTask
|
Mark M. |
ditto the GNU ballcap, though they went with yellow letters
|
Julius |
AsyncTask
|
Julius |
but I don't have time :)
|
Julius |
ah ok
|
Julius |
I'm looking forward to it, but am a bit underprepared
|
Mark M. |
underprepared?
|
Julius |
I was hoping to have mucked around with HoneyComb some more
|
Mark M. |
looking at the agenda, I doubt that'll be a huge issue
|
Mark M. |
most presentations will be HC-agnostic
|
Mark M. |
Reto's tablet UIs one probably assumes minimal HC experience
|
May 4 | 3:00 PM |
Julius |
I'd like to do some playing with Fragments before I get there so I can ask some questions
|
Mark M. |
ah, I see
|
Mark M. |
yes, office hours are rather handy
|
Julius |
oh right the terminator guy
|
Julius |
oh - not of you!
|
Mark M. |
no, no, he's the former California governor
|
Julius |
I'm getting pressure to migrate stuff to HC
|
Mark M. |
oh, no, wait, you meant his book cover
|
Julius |
yeah
|
Julius |
and I haven't really learnt it yet
|
Julius |
heheh oh yeah
|
Julius |
I meant the book not the muscle man
|
Julius |
no disrespect to anyone
|
Julius |
ok I better have breakfast thanks for the top - I may be wearing a bright green jersey
|
Julius |
I better find out what the weather wil be like
|
Mark M. |
rugby?
|
Julius |
it's cold ehre
|
Julius |
here
|
Julius |
heh (good memory) no
|
Julius |
I thought about the ol' silver fern option
|
Mark M. |
highs close to 20C, looks like
|
Julius |
but I figure I'll just come across even more small town than I am :)
|
Mark M. |
maybe more 18-19C
|
Julius |
hmmm sounds nice
|
Julius |
so a light jersey at each end of the day I guess
|
Julius |
supposed ot be similar climateto here
|
Mark M. |
but, since my F->C conversion is shaky, you better double-check
|
Mark M. |
:-)
|
Julius |
:)
|
Julius |
it's easy :) 0 is freezing 100 is boiling - F I'm not too sure :)
|
Julius |
must go
|
Julius |
catch you later - thanks again.
|
Mark M. |
have a nice day!
|
Julius | has left the room |
May 4 | 3:05 PM |
fitz | has entered the room |
Mark M. |
howdy, fitz!
|
fitz |
what the heck - where is everyone - vacation day?
|
Mark M. |
two have come and gone
|
Mark M. |
out of curiosity, when you sign in mid-chat like this, do you get the transcript of the previous portion of the hour?
|
Mark M. |
or does it just start for you at your sign-in point?
|
fitz |
no transcript only when you email
|
Mark M. |
that stinks
|
Mark M. |
I hoped that you'd be able to scroll backwards at least a bit
|
Mark M. |
anyway, David and Julius were each in here for a bit
|
fitz |
ok cool - so you moved this time to today - your still on for tomorrow as well?
|
Mark M. |
yes
|
Mark M. |
sorry about yesterday
|
Mark M. |
I'm in Oslo
|
Mark M. |
discovering the joys of being near the Arctic Circle
|
fitz |
I am still not getting to see how to run gdata stuff so working on that for now
|
Mark M. |
was so short on sleep that I didn't trust myself in front a chat windwo
|
Mark M. |
er, window
|
fitz |
and a B*(&^ of an array problem
|
Mark M. |
BTW, there's a Google I|O segment on using GData in Android
|
May 4 | 3:10 PM |
fitz |
wow and San Fran next week - nice
|
fitz |
ya did not get into I|O
|
Mark M. |
unfortunately, the GData session isn't being streamed live
|
fitz |
lets hope they live broadcast it
|
Mark M. |
last couple of years, it's taken them a few weeks to get the sessions up on YouTube
|
fitz |
oh drag
|
Mark M. |
lots of Android ones are, but not that one
|
fitz |
well should be fun - enjoy it - I might take off and pop in tomorrow
|
Mark M. |
ok
|
fitz |
cya
|
fitz | has left the room |
May 4 | 3:25 PM |
Mark M. | turned off guest access |