I have developed a syncadapter
class as specified on the developer site.
I am frequently sending data to the server using onPerformSync()
every 1 hour. The problem I am facing is I am not able to use getResources().getString(R.string.domain_name)
or getResources().getInteger(R.integer.port)
to access my resources from inside onPerformSync()
.
I wanted to know if there is a way to access these resources available in the /res
folder.