Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store values in rwconfig.xml as their correct types #28

Open
13rac1 opened this issue Jan 24, 2015 · 0 comments
Open

Store values in rwconfig.xml as their correct types #28

13rac1 opened this issue Jan 24, 2015 · 0 comments

Comments

@13rac1
Copy link
Member

13rac1 commented Jan 24, 2015

Everything is stored as a string in rwconfig. Only strings should be strings. Ints should be ints, etc.

<string name="rw_spec_server_url">http://example.com/roundware/</string>
<string name="rw_spec_project_id">1</string>
<string name="rw_spec_heartbeat_interval_in_sec">30</string>

rwconfig.xml:

<string name="rw_spec_heartbeat_interval_in_sec">30</string>

val = context.getString(R.string.rw_spec_heartbeat_interval_in_sec);
mHeartbeatTimerSec = Integer.valueOf(val);

RWConfiguration.java:

Here is the list of other valid data types: https://developer.android.com/guide/topics/resources/more-resources.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant