← Tuesday, September 14 | Today, September 17 →
Sep 16 | 7:50 PM |
Mark M. | has entered the room |
Sep 16 | 7:55 PM |
Mark M. | turned on guest access |
Sep 16 | 8:00 PM |
JR C. | has entered the room |
Mark M. |
howdy, JR!
|
JR C. |
hello
|
JR C. |
Want to say, thanks for the books! They are a huge help
|
Sep 16 | 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
|
JR C. |
the R.java file did not update with the new values in the XML files
|
JR C. |
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
|
JR C. |
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
|
Mark M. |
most of my students using Eclipse leave Build Automatically checked
|
JR C. |
I do keep Build Automatically checked
|
JR C. |
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
|
Sep 16 | 8:10 PM |
JR C. |
found it. The PNG files were not recognized. fixing it. thank you
|
JR C. |
I had been having difficulty with a portion of my program for almost 4 days now
|
JR C. |
I'm hoping to fix it with your tutorials
|
Sep 16 | 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
|
JR C. |
I am working on a listview that is pulled from a preloaded database
|
JR C. |
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.
|
JR C. |
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
|
Mark M. |
many traditional GUI toolkits take this approach, though
|
JR C. |
Yes, most of my experience is asp.net
|
JR C. |
And finding a competent book that wasn't based on android 1.1 was difficult
|
JR C. |
Found yours yesterday and stayed up until 2am this morning reading.
|
Mark M. |
Usually my books are a *cure* for insomnia
|
Sep 16 | 8:20 PM |
Mark M. |
:-)
|
JR C. |
People think I am crazy, but I actually am really excited by Android
|
JR C. |
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
|
Mark M. |
those darn professors
|
JR C. |
indeed. I work at our school as desktop and network support. I see both sides of the coin.
|
JR C. |
ok, got the list view example working. Now to modify it to work with my DatabaseHelper class
|
JR C. |
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
|
Mark M. |
what are you considering "massive"?
|
JR C. |
too true. But that is the challenge of the project
|
JR C. |
It is an "interactive encyclopedia" for new students at our college
|
Mark M. |
that could be massive, depending on the size of the college
|
Sep 16 | 8:25 PM |
Mark M. |
sounds like a nice place to use WebView
|
JR C. |
Medium sized state college. University of North Florida
|
JR C. |
We had considered webview, but it is going to be much more than just information
|
JR C. |
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.
|
Mark M. |
wow, that last sentence was lousy
|
Mark M. |
let's try that again
|
Mark M. |
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
|
Mark M. |
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?
|
Sep 16 | 8:30 PM |
JR C. |
We are hoping to develop with that in mind
|
Mark M. |
nice plan
|
Mark M. |
hope it works out for you!
|
JR C. |
out of curiosity, do you have any applications in the market place?
|
Mark M. |
hehehe
|
Mark M. |
none under my name
|
Mark M. |
I contributed to a couple on a contract basis
|
JR C. |
I have already been approached for the same thing
|
JR C. |
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
|
Mark M. |
plus freelance stuff like your iPhone->Android port
|
Mark M. |
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
|
Mark M. |
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
|
Sep 16 | 8:35 PM |
JR C. |
I already added the dates and times to my phone so I wouldn't forget.
|
Sep 16 | 8:50 PM |
JR C. |
Best way to save small images to database?
|
JR C. |
as a blob or reference to a drawables?
|
Mark M. |
haven't tried the blob approach
|
Mark M. |
my gut instinct would be to store it as a file and put the filename in the database
|
Mark M. |
how small and how many images?
|
JR C. |
70-100?
|
JR C. |
mostly a couple KB each
|
Mark M. |
there's a chance the database approach will be more efficient, given filesystem block sizes
|
Mark M. |
and, you have the advantage of keeping everything in one spot
|
Sep 16 | 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
|
JR C. |
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
|
JR C. |
I am afraid of the performance hit. Those pictures are going in a listview
|
JR C. |
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
|
Mark M. |
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
|
Mark M. |
OK, any last questions?
|
JR C. |
nope, I have more than enough to keep me busy
|
JR C. |
Thank you for your time
|
Mark M. |
OK
|
Sep 16 | 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
|
Mark M. |
have a pleasant evening!
|
JR C. |
Thanks. you too
|
JR C. | has left the room |
Mark M. | turned off guest access |
Sep 16 | 9:10 PM |
Mark M. | has left the room |
Sep 17 | 6:50 AM |