Office Hours — Today, July 18

Tuesday, July 16

Jul 18
9:55 AM
Mark M.
has entered the room
Mark M.
turned on guest access
10:00 AM
Invisible
has entered the room
Invisible
Hello Mark...
Mark M.
hello, Invisible
how can I help you today
?
10:05 AM
Invisible
Do you know what an * means in many Android's source xml files... Like:
android:theme="@*android:style/Theme.Holo.Dialog.Alert"
Mark M.
no, I don't
Invisible
I know of @+id notation, but what is @*android: notation?
Arif S.
has entered the room
Mark M.
in fact, I don't remember ever seeing that * notation
Invisible
when I use them they work with or without * char...
Arif S.
Hello Mark
Mark M.
(BTW, hello, Arif -- I will be with you shortly!)
Invisible
Oh, ok then...
Mark M.
Invisible: sorry, but I have no clue
Invisible
That was the only thing I wanted... You may answer Arif's questions...
Mark M.
and, unfortunately, it's one of those things that might be hard to research, given that it is punctuation... :-)
OK
Arif: do you have a question?
Arif S.
I have a project that needs data transmission between devices through Internet
and those data will be use to chart graph
and additionally, these data will be updated once, daily
however I'm not used with database usage nor data transmission
10:10 AM
Arif S.
so what's your suggestion to tackle those problems?
Mark M.
um
if you are going to have a central database, then most of your work involves creating a Web service to which the devices can send data
the only Android parts would then be communicating with that Web service, and the details for how best to do that would depend almost entirely upon what sort of protocol the Web service supports (e.g., REST with JSON)
if, on the other hand, you are trying to say that you want devices to be communicating directly with each other, and somehow maintaining a database synchronized between all of them, that's a massive challenge
and I have no idea how you would even start trying to do that well
10:15 AM
Arif S.
what I am trying to do is generally like this
one user enter data into his device to plot the graph
and then these data can be pushed into the cloud/database/etc
and the other user would be able to know when there is a new data available and download them to view to the graph on his own device
Mark M.
OK
first, you need to create your "cloud/database/etc"
that does not directly have anything to do with Android
particularly if you want to also support other platforms
your choice of "cloud/database/etc" implementation will determine how best to do the communications from the device to the "cloud/databae/etc"
in terms of "the other user would be able to know when there is a new data available", Google Cloud Messaging (GCM) is a likely solution
10:20 AM
Mark M.
your cloud can send messages to relevant devices, alerting them of data changes
or, the device can simply poll periodically for changes
Arif S.
so will GCM be able to act as database as well?
Mark M.
no
GCM is a messaging service
your Web service that has a database can also use GCM to push data back down to devices
but GCM is not your Web service, and it is not a database
(BTW, Invisible, if you come up with another question, let me know)
Invisible
No, I have an answer though...
It seems @*android: is a way to access private androids values...
I use:
android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side"
but without the @* it halts parsing of XML with:
layout_file.xml:6: error: Error: Resource is not public. (at 'layout_marginLeft' with value '@android:dimen/preference_fragment_padding_side').
Mark M.
OK
Arif S.
Thanks Mark
10:25 AM
Arif S.
as for now you've gave me a valuable insight on this stuff
Mark M.
if either of you have another question, go right ahead
Invisible
I don't... Thank you for your service...
bye...
Mark M.
you are very welcome -- bye!
10:40 AM
Invisible
has left the room
11:00 AM
Mark M.
OK, that is a wrap for today's chat
the next one is Tuesday at 7:30pm Eastern time
this chat's transcript will appear at http://commonsware.com/office-hours/ shortly
have a pleasant day!
Arif S.
has left the room
Mark M.
turned off guest access

Tuesday, July 16

 

Office Hours

People in this transcript

  • Arif Samin
  • Invisible
  • Mark Murphy