Mark M. | has entered the room |
Mark M. | turned on guest access |
Nov 22 | 4:15 PM |
Raza R. | has entered the room |
Mark M. |
howdy, Raza!
|
Mark M. |
how can I help you today?
|
Raza R. |
hello sir
|
Raza R. |
m new in Android devlopment, right now i know basics
|
Raza R. |
my query is that i want to build app from which i can display nearby Shopping malls based on my current location
|
Raza R. |
Could you please give me brief idea about that?
|
Mark M. |
um, you need to be MUCH more specific in your questions
|
Mark M. |
the office hours are for questions about Android development, and telling you how to find a mall is not Android development
|
Raza R. |
View paste
|
Mark M. |
that too is not a question about Android application development
|
Nov 22 | 4:20 PM |
Mark M. |
I understand what it is you are trying to write
|
Raza R. |
does it possible to build ICS like tab in Android gingerbread 2.3.3
|
Raza R. |
?
|
Mark M. |
if by "ICS like tab", you mean tabs in the action bar, there is nothing native in Android 2.3 for that
|
Mark M. |
however, third-party action bar libraries, like ActionBarSherlock, offer that feature
|
Raza R. |
but i can see that Google Music implement similar tab in Gingerbread version
|
Mark M. |
which they wrote themselves
|
Raza R. |
and Android Market too
|
Mark M. |
which they wrote themselves
|
Raza R. |
so its not possible for us?
|
Mark M. |
just because Google writes some code does not mean that it is part of the operating system
|
Mark M. |
third-party action bar libraries, like ActionBarSherlock, offer that feature
|
Raza R. |
got it
|
Raza R. |
which is best way to fetch list of students? XML parsing or fetch from SQLite
|
Mark M. |
that would depend on where a list of students is stored
|
Mark M. |
you fetch it from wherever you store it
|
Mark M. |
you are welcome to store data in XML files, or JSON files, or databases, or other file formats
|
Mark M. |
databases have the advantage of being transactional, and so they are a bit more reliable in the case of odd stuff happening
|
Nov 22 | 4:25 PM |
Raza R. |
list is dynamic, if i store in database than i have to push new update for new list
|
Mark M. |
you need to decide where your data will be stored: locally, on the Internet, or both (local cache, updated from Internet)
|
Mark M. |
a SQLite database gets more complicated if you are getting information from the Internet
|
Mark M. |
it gets *much* more complicated if the user can also edit the data on the device
|
Raza R. |
can i update my SQLite database from Internet without loosing my current data?
|
Mark M. |
with sufficient programming, sure
|
Raza R. |
please tell me short info on Content provider
|
Mark M. |
there are chapters on ContentProvider in _The Busy Coder's Guide to Android Development_
|
Mark M. |
if you have more specific questions than that regarding ContentProviders, one of these chats is a fine place to ask
|
Raza R. |
fragments are good idea to implement in gingerbread? like fragments are built for tablet right?
|
Nov 22 | 4:30 PM |
Mark M. |
Fragments are for helping you build one application that can support phones and tablets, from a single code base
|
Mark M. |
if you are building such an app, and you want to
support Android 1.6 or 2.x devices, you can use the Android Support
package (also known as the Android Compatibility Library), to give you a
version of fragments you can use for those older devices
|
Raza R. |
i suggest you to release a separate book or separate chapters on UI designer best practice
|
Raza R. |
much helpful
|
Mark M. |
that is not my area of expertise, sorry
|
Raza R. |
ok
|
Mark M. |
I will have more material on creating richer user
interfaces in 2012 and beyond, but "best practices" is not something
that I can really claim to cover
|
Raza R. |
that will be better for us
|
Nov 22 | 4:35 PM |
Raza R. |
m getting error in one of the app based on SQLite? can you rectify the error in office hours??
|
Mark M. |
possibly
|
Raza R. |
or should i post on StackOverflow?
|
Mark M. |
what is the error?
|
Raza R. |
my file link http://dl.dropbox.com/u/16910648/User.zip
|
Mark M. |
um, that's an app
|
Mark M. |
what is the error?
|
Raza R. |
yes
|
Raza R. |
don't about the error, but when i click register button it will show some random error in toast notification
|
Mark M. |
then I cannot help you
|
Mark M. |
to debug an Android app, log your exception to LogCat
|
Mark M. |
you can then view that in Eclipse in the LogCat view, or via adb logcat from the command line
|
Mark M. |
it should show your stack trace towards the end
|
Raza R. |
okz, next time i'll be ready with all logcats error
|
Nov 22 | 4:40 PM |
Raza R. |
Thanks for the help
|
Mark M. |
if you cannot dechiper what the stack trace means,
posting the stack trace and the relevant portion of code (in
particular, noting which line in the code is where the exception came
from), is what we'd need
|
Mark M. |
that degree of information is what is needed either here or in StackOverflow
|
Raza R. |
right now i'm not on developers pcs that's why can't tell you now
|
Raza R. |
you office time has complicated for me as its midnight but i enjoy
|
Mark M. |
I rotate through three different times of the day, to try to cover much of the planet
|
Mark M. |
perhaps the 10:00 US Eastern Time slots will be better for you -- six hours earlier than the one you are on now
|
Raza R. |
yes much better
|
Mark M. |
but, there is no question that my times are
targeted at US residents, in large part because I am here, and I need my
sleep... :-)
|
Raza R. |
i missed many office hours before, but this time i caught you. thanks to google calendar :)
|
Raza R. |
when you're planning to release new update on books covering ICS
|
Raza R. |
?
|
Mark M. |
shortly after I get my hands on a Galaxy Nexus
|
Mark M. |
I never publish books based purely on what I see in the emulator
|
Mark M. |
right now, I do not know when I will get a Galaxy Nexus, so I do not know exactly when the next book updates will be out
|
Mark M. |
hopefully in 2-3 weeks
|
Nov 22 | 4:45 PM |
Raza R. |
ok thanks, Are you G+?
|
Mark M. |
no, I am not on G+
|
Raza R. |
okz, Good night from here
|
Mark M. |
see you later!
|
Raza R. |
hope you'll get Galaxy nexus soon
|
Raza R. |
thanks for talking :)
|
Mark M. |
you are very welcome
|
Raza R. | has left the room |
Nov 22 | 5:00 PM |
Mark M. | turned off guest access |