Office Hours — Today, May 19

Tuesday, May 17

May 19
9:50 AM
Mark M.
has entered the room
Mark M.
turned on guest access
10:05 AM
fitz
has entered the room
Mark M.
howdy, fitz!
fitz
morning
Mark M.
how can I help you today?
fitz
have a question on ant - I assume what it does is create jars' at least that is what I see when i GET build successful. So then I can incorporate the JAR's into some java code - is this logic correct?
Mark M.
um, well, not really
fitz
I know ant does more than this but for now this is all I need I think
Mark M.
can Ant be used to create a JAR? yes
do I use Ant to create reusable JARs? yes
do most Android developers use Ant to create JARs? probably not
is creating JARs part of the normal Android/Ant build process? no
if you run ant clean install in a standard Android project, you get an APK in bin/ that is also installed on the device or emulator
10:10 AM
fitz
View paste
this is what google team says to do:  ant -f build-samples.xml 
ant -f build-samples.xml -Dsample.credentials.username=<username using free gmail account> -Dsample.credentials.password=<password>  sample.docs.run
Mark M.
you are assuming that this is anywhere near normal
fitz
this runs fine so I get BUILD SUCCESSFUL and I see JAR's
Mark M.
this is unique to that particular project
for questions about what those JARs contain and how to use them, you'd have to ask Google
fitz
yes it does that project - and in terminal I see very fast the build data - so what is missing for me is how do I see this data after the build
Went to ant site and got lost for a few days :)
Mark M.
I do not know what "the build data" is, but usually shell redirection works for command line stuff (e.g., this -is my -command > log.txt)
fitz
ya ok - still waiting on google response might take a year or so
Mark M.
10:15 AM
fitz
ok thanks - once I figure this part out then maybe I can get cranken.
thanks will read up on ot
it
garu
has entered the room
Mark M.
howdy, garu!
garu: how can I help you today?
garu
Hello mark.. its my first time here :)
10:20 AM
Mark M.
garu: do you have a question?
garu
Im planning on making a sound profile manager.. what part of android ahould i start reading? I plan to access the system volunes, ringer volumes, mesia volumes, etc.
Mark M.
I have no idea what a "sound profile manager" is
most audio-related classes are in android.media
AudioManager allows you to see and set volume levels
garu
Oh ok.. so i should start reading on audio manager
Mark M.
that would be where I would start
the audio level stuff is covered in _The Busy Coder's Guide to Advanced Android Development_
10:25 AM
fitz
Mark - so the files that ant built successfully are .class files - so still do the log.txt commands?
garu
Thanks!
Mark M.
fitz: you were the one who wanted "the build data"
again, I have no idea what you mean by "the build data"
my only guess is that you mean the console output of Ant
in which case, whether you redirect those results to a file for later review or not is up to you
fitz
in terminal when I did ant -f build-samples.xml etc. it ran for what ever time and at bottom said BUILD SUCCESSFUL which is the desired result - so now I have these .class files and stuck on what to do next - do I move then in eclipse and program java or do more ant commands - guess that is a google question right
Mark M.
the code you are compiling are API samples
10:30 AM
Mark M.
I am not clear why you are compiling them
I am even less clear why you are trying to directly use API sample code in your project
fitz
I am doing all ant commands in terminal access - should I use some other process
Mark M.
let's back up a few steps
why are you compiling the API samples?
fitz
Go here and look for title topic of: RUNNING SAMPLES
Mark M.
ah, *those* samples
fitz
they say to do this ant -f build-samples.xml sample.calendar.run
So I have done it
just want to see it work so I can understand it
10:35 AM
Mark M.
ant -f build-samples.xml sample.spreadsheet.guidemo.run
fitz
let me guess these samples are old and do not work ....
Mark M.
well, they have nothing to do with Android
fitz
so PC based samples right - and do not port to android?
Mark M.
the samples will either be dumping to the console (which Android doesn't have) or creating a Swing UI (which Android doesn't have)
or something along those lines
if you want a JAR of the actual library, that's not the samples project, but the other project
AFAICT
fitz
ok - so useless to me - ok so now there are no samples from google for lets say displaying a google calendar
Mark M.
I am not aware of a Google-supplied sample of an Android application retrieving Google Calendar data
did you watch that Google I|O presentation on this stuff? I haven't had a chance yet
10:40 AM
Mark M.
fitz
ya I have not seen it either - ok thanks for setting me straight :)
Mark M.
those are links to the new GData APIs with Android-specific material
fitz
thanks a ton - back to drawing board
Mark M.
garu: if you have other questions, feel free to chime in
fitz
so emulator will not connect into google real account - correct - so just do google android api stuff to real phone?
Mark M.
I'm a bit fuzzy on the emulator capabilities here
10:45 AM
fitz
is this link you sent just now NEW stuff or has it been around for a while?
10:45 AM
Mark M.
there was a version of the emulator that let you assign a Google account via the Accounts portion of the Settings app
I think it's relatively new, in that it's talking JSON and OAuth, which I think are new-ish to GData
again, I'm no GData expert
fitz
ok thanks for re-direction
need to jet have a great day
fitz
has left the room
10:55 AM
Mark M.
garu: any final questions?
11:00 AM
Mark M.
that's it for today's chat
have a nice day!
garu
has left the room
Mark M.
turned off guest access

Tuesday, May 17

 

Office Hours

People in this transcript

  • fitz
  • garu
  • Mark Murphy