Office Hours — Yesterday, September 16

Tuesday, September 14 | Today, September 17

Sep 16
7:50 PM
Mark M.
has entered the room
7:55 PM
Mark M.
turned on guest access
8:00 PM
JR C.
has entered the room
Mark M.
howdy, JR!
JR C.
hello
Want to say, thanks for the books! They are a huge help
8:05 PM
Mark M.
you're very welcome!
JR C.
a quick question
Mark M.
fire away!
JR C.
copied some of the source code into a project of I am working on. I created 2 new xml files in the layout folder to match the ones required by the code
the R.java file did not update with the new values in the XML files
any idea why or how to fix?
Mark M.
Project > Clean from Eclipse's main menu, or ant clean from the command line
JR C.
ok. I am using Eclipse
that deleted my R.java file.
Mark M.
should be recreated automatically if you have Build Automatically checked; otherwise, it'll build on your next Run
JR C.
testing
Mark M.
though I'm a bit fuzzy on the latter, since I'm not an Eclipse user
most of my students using Eclipse leave Build Automatically checked
JR C.
I do keep Build Automatically checked
working on it
Mark M.
if R.java is not rebuilding, check your errors, warnings, and console, as there is probably a problem preventing aapt from doing its work
8:10 PM
JR C.
found it. The PNG files were not recognized. fixing it. thank you
I had been having difficulty with a portion of my program for almost 4 days now
I'm hoping to fix it with your tutorials
8:15 PM
Mark M.
I have the image of you beating your computer with a copy of my tutorials... :-)
JR C.
I've been near that stage. haha
I am working on a listview that is pulled from a preloaded database
The view structure that Android uses is less than ideal
Mark M.
meaning?
JR C.
I guess I am not used to programming an interface that is a hierarchy of views.
I am a senior in college, so not a ton of experience, I guess.
Mark M.
if you're coming at this from a Web background, it's definitely different
many traditional GUI toolkits take this approach, though
JR C.
Yes, most of my experience is asp.net
And finding a competent book that wasn't based on android 1.1 was difficult
Found yours yesterday and stayed up until 2am this morning reading.
Mark M.
Usually my books are a *cure* for insomnia
8:20 PM
Mark M.
:-)
JR C.
People think I am crazy, but I actually am really excited by Android
Its the first project that I want to do for me, instead of being forced by a college professor.
Mark M.
it's a fun area to be in
those darn professors
JR C.
indeed. I work at our school as desktop and network support. I see both sides of the coin.
ok, got the list view example working. Now to modify it to work with my DatabaseHelper class
You will be seeing plenty of myself and probably a couple of my friends over the next year
Mark M.
that's what the chats are for!
JR C.
We are building a massive Android application as a senior project at school
Mark M.
hmmm..."massive" and "smartphone" usually are two great tastes that don't taste great together
what are you considering "massive"?
JR C.
too true. But that is the challenge of the project
It is an "interactive encyclopedia" for new students at our college
Mark M.
that could be massive, depending on the size of the college
8:25 PM
Mark M.
sounds like a nice place to use WebView
JR C.
Medium sized state college. University of North Florida
We had considered webview, but it is going to be much more than just information
GPS to help students find buildings and locations
Mark M.
you don't have to use WebView exclusively, but it makes it relatively easy to author the pure-information content
JR C.
I see. Good information to have. Especially since I have the permissions to create content on the school's website
Mark M.
I tend to look towards long-term maintainability, which may not be a criterion for your project, depending on what it's for beyond your project.
wow, that last sentence was lousy
let's try that again
I tend to look towards long-term maintainability, which may not be a criterion for your project -- if it's just purely a senior project, what happens after spring is irrelevant
OTOH, if this is something the school will maintain going forward, the closer you can adhere to standards and conventions, the easier that maintenance is likely to be
JR C.
That's something we have considered. We have wondered, if it takes off at our school, how can we make it easy to move to other colleges?
8:30 PM
JR C.
We are hoping to develop with that in mind
Mark M.
nice plan
hope it works out for you!
JR C.
out of curiosity, do you have any applications in the market place?
Mark M.
hehehe
none under my name
I contributed to a couple on a contract basis
JR C.
I have already been approached for the same thing
An Iphone developer asked if I was interested in profit share or contract work to port his apps to Android
Mark M.
fair number of Android jobs out there for those with demonstrated ability
plus freelance stuff like your iPhone->Android port
in fact, the two contract apps I did were iPhone->Android ports
JR C.
That's why I want to learn this stuff now. I like it, its fun, and companies will soon be looking to hire people who know the layout
Mark M.
yup
JR C.
ok, I won't keep you busy talking. Going to work on this some to see if I can get it. How much longer are you here?
Mark M.
chat room is open until 9pm Eastern
I try to run two of these a week
JR C.
Roger. Thank you for the help.
Mark M.
though that depends on my travel schedule
8:35 PM
JR C.
I already added the dates and times to my phone so I wouldn't forget.
8:50 PM
JR C.
Best way to save small images to database?
as a blob or reference to a drawables?
Mark M.
haven't tried the blob approach
my gut instinct would be to store it as a file and put the filename in the database
how small and how many images?
JR C.
70-100?
mostly a couple KB each
Mark M.
there's a chance the database approach will be more efficient, given filesystem block sizes
and, you have the advantage of keeping everything in one spot
8:55 PM
JR C.
That was my thought
Mark M.
not sure how annoying it is to get a Bitmap out of a database blob, but it's probably not too bad
JR C.
I saw a reference to it somewhere
bitmapfactory.decodeResource();
Mark M.
no,that's for resources
JR C.
ah, you're right
Mark M.
you'd be using decodeByteArray()
JR C.
Looking at that now
I am afraid of the performance hit. Those pictures are going in a listview
As the user scrolled through, the decoding has to happen on the fly
Mark M.
probably not much worse than loading them from files, though
the decodes should be pretty quick
JR C.
I will try both approaches to see which works best on my Droid
Mark M.
the question is how much more time a query to get the blob is over loading from a file
OK, any last questions?
JR C.
nope, I have more than enough to keep me busy
Thank you for your time
Mark M.
OK
9:00 PM
Mark M.
I'll be posting the transcript on cw-android tomorrow morning, when I can get WiFi at the hotel again
have a pleasant evening!
JR C.
Thanks. you too
JR C.
has left the room
Mark M.
turned off guest access
9:10 PM
Mark M.
has left the room
Sep 17
6:50 AM

Tuesday, September 14 | Today, September 17

 

Office Hours

People in this transcript

  • JR Chambers
  • Mark Murphy