Office Hours — Today, October 22

Thursday, October 18

Oct 22
7:20 PM
Mark M.
has entered the room
Mark M.
turned on guest access
7:30 PM
bsr
has entered the room
Mark M.
howdy bsr!
bsr
Hello Mark
Mark M.
how can I help you today?
bsr
I typed some qn, and let me begin :-)
I just got the membership today, and still going though the book. My application and experience is in web development, but need some data entered through a tablet. So, not worried a whole lot about backward compatibility, other services etc.
View paste
I may come across the answer for these qns later in the course, but some pointers may help.
1. Is there a concept of model, like in MVC architecture. So far, most of the reading was about UI related classes, and all involve Activity, Fragment etc.
Mark M.
there is nothing specific in Android related to models -- that's standard Java
bsr
ok, I was wondering whether I need to rewrite my code to make it modular, testable etc later
as I am still experimenting
7:35 PM
Mark M.
again, nothing specific for Android, really
bsr
ok, thanks
I am just beginning the Assets, Files chapter, not sure it address this qn.
2. How can I mock some data which receive from server in json format. Is 'assets' folder is the best place. Can I read directly from a folder or access through some android interface (like R)
Mark M.
um
well, you could use an asset, or a raw resource, or a file on external storage, or...
bsr
ok..
I will try.
I am designing a screen, which is similar to this blog post http://android-developers.blogspot.com.es/… (or API demo - 2 fragments in landscape, and 1 list navigate to the details in portrait.). Can I use any arbitaty layout for details page.
Mark M.
there's coverage of all that in the book
(regarding the assets, etc.)
bsr
ok, great..
Mark M.
yes, you can use anything you wish in the details fragment
bsr
ok..a related qn.
View paste
I am bit confused by what is static and dynamic fragment. I just saw ur answer here . http://stackoverflow.com/questions/10026253/fragmentactivity-vs-managing-fragment-using-fragmenttransaction
But, in the example, from api demo/ blog post, they define a static layout (with both fragment) in landscape mode, but still uses fragment transaction to add the details fragment. So, is it static or dynamic, ? :-)
7:40 PM
Mark M.
in their case, it is both
this is covered in the Fragments chapter
bsr
ok, thanks. I will go though the examples
Is there a similar example in the book, where it utilize a 2 pane layout but load the data from webservice (http)
Mark M.
there is an example of master-detail (2-pane) in the Large Screens chapter
there is an example of using a Web service in the Internet chapter
there is no example of the combination
bsr
thanks, I will go through it.
7:45 PM
bsr
one unrelated qn. The People application is pretty, as seen in the documentation. Is it open source?
I see it been used as example, and probably an idiomatic example
Mark M.
People?
do you mean Contacts?
bsr
Sorry, may be
Mark M.
Contacts is open source
bsr
is that Contact?
Mark M.
yes
bsr
:-) great.
I guess that all I have, hopefully I will cover more grounds by tomorrow.
Thank you so much for ur patience
and help
Mark M.
you are very welcome
bsr
Have a good evening, bye.
7:50 PM
bsr
has left the room
8:25 PM
Mark M.
turned off guest access

Thursday, October 18

 

Office Hours

People in this transcript

  • bsr
  • Mark Murphy