Check the OnlineOffline editing sample in the samples.
It show how to use an offline basemap, and an offline feature layer.
That may be what you are looking for.
I've taken that approach, and managed to get 90% of my app offline. Queries and Tasks still need access to the server.