Office Hours — Today, May 4

Thursday, April 28

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!
how can I help you today?
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
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
whether the app is running is up to the user and the OS
whether GPS is enabled is up to the user
whether an enabled GPS is on is up to you
David
OK
I run GeoWebOne demo. It seems not running all the time.
Mark M.
correct
did you read the source code to the GeoWebOne demo?
David
Yes.
Mark M.
and where is it requesting location updates?
2:35 PM
David
Do you mean my location? USA
Mark M.
no, I meant in the code
if you read the code to GeoWebOne, you will see that requestLocationUpdates() is called in onResume()
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
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
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.
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
Should I send an Intent to Activity_A? or sendMessage?
Mark M.
neither
have Activity_A refresh its data from the Application in onResume()
David
OK
It seems I have re-draw ListView with new data read from Application.
Mark M.
possibly
Your ListView is being populated by an Adapter
David
Thank you. I have no more questions.
Mark M.
OK
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!
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 :)
I have been playing with the ActionBar and I have found that if I have no TitleBar it doesn't show
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
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
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
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
right
Mark M.
I think it's a window feature, IIRC
Julius
maybe I can ask somone at IO next week
right
ok thanks for the lead
Mark M.
no problem
Julius
(still hoping to catch you next week)
you know - just to put a face to the name and all :)
Mark M.
I'll be in semi-incognito mode
Julius
oh
oh right
Mark M.
look for the guy wearing the EFF or GNU black ballcaps
Julius
electronic freedom f?
er f free
Mark M.
yes
Julius
I better check out the logo :)
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
but I don't have time :)
ah ok
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
most presentations will be HC-agnostic
Reto's tablet UIs one probably assumes minimal HC experience
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
yes, office hours are rather handy
Julius
oh right the terminator guy
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
and I haven't really learnt it yet
heheh oh yeah
I meant the book not the muscle man
no disrespect to anyone
ok I better have breakfast thanks for the top - I may be wearing a bright green jersey
I better find out what the weather wil be like
Mark M.
rugby?
Julius
it's cold ehre
here
heh (good memory) no
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
so a light jersey at each end of the day I guess
supposed ot be similar climateto here
Mark M.
but, since my F->C conversion is shaky, you better double-check
:-)
Julius
:)
it's easy :) 0 is freezing 100 is boiling - F I'm not too sure :)
must go
catch you later - thanks again.
Mark M.
have a nice day!
Julius
has left the room
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
out of curiosity, when you sign in mid-chat like this, do you get the transcript of the previous portion of the hour?
or does it just start for you at your sign-in point?
fitz
no transcript only when you email
Mark M.
that stinks
I hoped that you'd be able to scroll backwards at least a bit
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
sorry about yesterday
I'm in Oslo
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
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
3:10 PM
fitz
wow and San Fran next week - nice
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
3:25 PM
Mark M.
turned off guest access

Thursday, April 28

 

Office Hours

People in this transcript

  • David
  • fitz
  • Julius
  • Mark Murphy