Oct 22 | 7:20 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Oct 22 | 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 :-)
|
bsr |
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.
|
bsr |
View paste
|
bsr |
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
|
bsr |
as I am still experimenting
|
Oct 22 | 7:35 PM |
Mark M. |
again, nothing specific for Android, really
|
bsr |
ok, thanks
|
bsr |
I am just beginning the Assets, Files chapter, not sure it address this qn.
|
bsr |
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
|
Mark M. |
well, you could use an asset, or a raw resource, or a file on external storage, or...
|
bsr |
ok..
|
bsr |
I will try.
|
bsr |
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
|
Mark M. |
(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.
|
bsr |
View paste
|
bsr |
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, ? :-)
|
Oct 22 | 7:40 PM |
Mark M. |
in their case, it is both
|
Mark M. |
this is covered in the Fragments chapter
|
bsr |
ok, thanks. I will go though the examples
|
bsr |
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
|
Mark M. |
there is an example of using a Web service in the Internet chapter
|
Mark M. |
there is no example of the combination
|
bsr |
thanks, I will go through it.
|
Oct 22 | 7:45 PM |
bsr |
one unrelated qn. The People application is pretty, as seen in the documentation. Is it open source?
|
bsr |
I see it been used as example, and probably an idiomatic example
|
Mark M. |
People?
|
Mark M. |
do you mean Contacts?
|
bsr |
Sorry, may be
|
Mark M. |
Contacts is open source
|
bsr |
the screen they show in http://developer.android.com/design/patter…
|
bsr |
is that Contact?
|
Mark M. |
yes
|
bsr |
:-) great.
|
bsr |
I guess that all I have, hopefully I will cover more grounds by tomorrow.
|
bsr |
Thank you so much for ur patience
|
bsr |
and help
|
Mark M. |
you are very welcome
|
bsr |
Have a good evening, bye.
|
Oct 22 | 7:50 PM |
bsr | has left the room |
Oct 22 | 8:25 PM |
Mark M. | turned off guest access |