Office Hours — Today, November 22

Yesterday, November 21

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!
how can I help you today?
Raza R.
hello sir
m new in Android devlopment, right now i know basics
my query is that i want to build app from which i can display nearby Shopping malls based on my current location
Could you please give me brief idea about that?
Mark M.
um, you need to be MUCH more specific in your questions
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
Simply app which display nearby Shopping Malls in a listview.
For e.g User open the app, app first track user location and based on that location the app will display the list of shopping malls very near to them
Mark M.
that too is not a question about Android application development
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
?
Mark M.
if by "ICS like tab", you mean tabs in the action bar, there is nothing native in Android 2.3 for that
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
third-party action bar libraries, like ActionBarSherlock, offer that feature
Raza R.
got it
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
you fetch it from wherever you store it
you are welcome to store data in XML files, or JSON files, or databases, or other file formats
databases have the advantage of being transactional, and so they are a bit more reliable in the case of odd stuff happening
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)
a SQLite database gets more complicated if you are getting information from the Internet
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_
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?
4:30 PM
Mark M.
Fragments are for helping you build one application that can support phones and tablets, from a single code base
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
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
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.
Mark M.
um, that's an app
what is the error?
Raza R.
yes
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
to debug an Android app, log your exception to LogCat
you can then view that in Eclipse in the LogCat view, or via adb logcat from the command line
it should show your stack trace towards the end
Raza R.
okz, next time i'll be ready with all logcats error
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
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
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
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 :)
when you're planning to release new update on books covering ICS
?
Mark M.
shortly after I get my hands on a Galaxy Nexus
I never publish books based purely on what I see in the emulator
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
hopefully in 2-3 weeks
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
thanks for talking :)
Mark M.
you are very welcome
Raza R.
has left the room
5:00 PM
Mark M.
turned off guest access

Yesterday, November 21

 

Office Hours

People in this transcript

  • Mark Murphy
  • Raza Rahil Hussain