Jul 18 | 9:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Jul 18 | 10:00 AM |
Invisible | has entered the room |
Invisible |
Hello Mark...
|
Mark M. |
hello, Invisible
|
Mark M. |
how can I help you today
|
Mark M. |
?
|
Jul 18 | 10:05 AM |
Invisible |
Do you know what an * means in many Android's source xml files... Like:
|
Invisible |
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... :-)
|
Mark M. |
OK
|
Mark M. |
Arif: do you have a question?
|
Arif S. |
I have a project that needs data transmission between devices through Internet
|
Arif S. |
and those data will be use to chart graph
|
Arif S. |
and additionally, these data will be updated once, daily
|
Arif S. |
however I'm not used with database usage nor data transmission
|
Jul 18 | 10:10 AM |
Arif S. |
so what's your suggestion to tackle those problems?
|
Mark M. |
um
|
Mark M. |
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
|
Mark M. |
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)
|
Mark M. |
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
|
Mark M. |
and I have no idea how you would even start trying to do that well
|
Jul 18 | 10:15 AM |
Arif S. |
what I am trying to do is generally like this
|
Arif S. |
one user enter data into his device to plot the graph
|
Arif S. |
and then these data can be pushed into the cloud/database/etc
|
Arif S. |
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
|
Mark M. |
first, you need to create your "cloud/database/etc"
|
Mark M. |
that does not directly have anything to do with Android
|
Mark M. |
particularly if you want to also support other platforms
|
Mark M. |
your choice of "cloud/database/etc" implementation
will determine how best to do the communications from the device to the
"cloud/databae/etc"
|
Mark M. |
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
|
Mark M. | |
Jul 18 | 10:20 AM |
Mark M. |
your cloud can send messages to relevant devices, alerting them of data changes
|
Mark M. |
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
|
Mark M. |
GCM is a messaging service
|
Mark M. |
your Web service that has a database can also use GCM to push data back down to devices
|
Mark M. |
but GCM is not your Web service, and it is not a database
|
Mark M. |
(BTW, Invisible, if you come up with another question, let me know)
|
Invisible |
No, I have an answer though...
|
Invisible |
It seems @*android: is a way to access private androids values...
|
Invisible |
I use:
|
Invisible |
android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side"
|
Invisible |
but without the @* it halts parsing of XML with:
|
Invisible |
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
|
Jul 18 | 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...
|
Invisible |
bye...
|
Mark M. |
you are very welcome -- bye!
|
Jul 18 | 10:40 AM |
Invisible | has left the room |
Jul 18 | 11:00 AM |
Mark M. |
OK, that is a wrap for today's chat
|
Mark M. |
the next one is Tuesday at 7:30pm Eastern time
|
Mark M. |
this chat's transcript will appear at http://commonsware.com/office-hours/ shortly
|
Mark M. |
have a pleasant day!
|
Arif S. | has left the room |
Mark M. | turned off guest access |