Office Hours — Today, March 4

Tuesday, March 2

Mar 4
9:50 AM
Mark M.
has entered the room
9:55 AM
Mark M.
turned on guest access
10:00 AM
NetApex
has entered the room
NetApex
Good morning
Mark M.
howdy
NetApex
I've been playing around with the info you showed me last time. It's making me redo most of what I had already done to make it "smarter" and better coded. I feel so professional now lol.
Mark M.
:-)
10:05 AM
Mark M.
anything I can help you with today?
NetApex
Not this very second. Still trying to work out some of the bugs I have left over
10:10 AM
NetApex
Okay here is one... getIntent().getStringExtra(whatever); brings up the String like I wanted.. but apparently switch() likes integers
Mark M.
yes
10:15 AM
NetApex
is there some type of string to int command or something?
Mark M.
let's back up a step: what are you really trying to do?
NetApex
I am trying to pass the clicked cd cover to the java that plays/displays the music from that cd
10:20 AM
Mark M.
ok
NetApex
so when it gets the cd I can say, display this this and this, and que up this
Mark M.
Step #1: create an class that represents a CD
Step #2: create a HashMap<String,CD>
Step #3: use the string extra as the key to the HashMap
instead of a switch(), you now call a method on CD that displays stuff and queues stuff
NetApex
Ok, now will I need to create a class for each CD, or just one that receives the info from the HashMap
Mark M.
one class for *all* CDs, ideally
10:25 AM
Mark M.
different instances per CD
NetApex
ok cool
Markus G.
has entered the room
10:30 AM
Mark M.
howdy, Markus
Markus G.
hello mark
this chat is for android programming questions right?
Mark M.
yes
fire away~
er, away!
Markus G.
I like to show a video in a dialog
1) It works, it plays, but:
problem numero 1 is that the video is dark, maybe because of the dialog transparent...
Mark M.
you may be better served making a dialog-themed activity
Markus G.
problem nr2 is, that I get an exception when I close the dialog...
10:35 AM
Markus G.
what do you mean with "dialog-themed activity" ?
Mark M.
android:theme="Theme.Dialog" in your manifest
Markus G.
and instead of showing the dialog, I open the activity?
Mark M.
yes
more control over things like backgrounds that way
Markus G.
sounds good, I will try this ;-)
and closing this "activtiy-dialog" just with .finish() ?
Mark M.
yes
Markus G.
ok, I will try, nice greetings from vienna, and have a nice day!
10:40 AM
Mark M.
you too!
Markus G.
has left the room
10:45 AM
NetApex
of course I will need to read up on the whole dialog-themed activities thing later and see if I can make something of interest from that too
Mark M.
not covered in the books yet
NetApex
Ahh, then I wont even waste my time. Your books make things so much easier to understand
10:50 AM
NetApex
I am going to take off for now. Hopefully I will have more questions for you next time.
Mark M.
ok, see ya!
NetApex
Going to be working on pulling information from websites if possible
NetApex
has left the room
10:55 AM
Mark M.
turned off guest access

Tuesday, March 2

 

Office Hours

People in this transcript

  • Mark Murphy
  • Markus Gassenbauer
  • NetApex