cancel
Showing results for 
Search instead for 
Did you mean: 

Android Native Offline OData

Former Member
0 Kudos

Hi,

I am a new developer, I have some question about offline OData, last time i develop offline Odata in iOS native application, i can store service Doc and Metadata, in offline mode i can sending data when internet connected automatic and can store data into LocalEntry automatic, But , in android applcaition

in do seem a concept but i cannot store data into LocalEntry and can not send data from LocalEntry when internet connected, Is it not automatic to store data into Localentry when offline mode and sending data when online mode ? give me some source code when send request and store data when offline mode

Thank you !!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

With the latest release of SAP Mobile SDK 3.0 SP05, it is possible to work with offline. This blog will guide you how to store data locally and do the requests being in offline mode.

jangold
Explorer
0 Kudos

Hi,

take a look on SAP SDK documentation: http://help.sap.com/saphelp_smp304sdk/helpdata/en/7c/0aa6e0700610149866c739b68312cd/content.htm

Basicly:

  1. if want to read, insert, update or delete data from/to server, you have to send right request
  2. if you want to save data from server/request for offline propose, you can use server cache:
    1. to save data take a look on "Merging Data to a Cache"
    2. to read data "Reading Entries from the Cache"

          http://help.sap.com/saphelp_smp304sdk/helpdata/en/7c/0b0f9070061014a7b1c78f0f331130/content.htm

  1. if you want to create/modify data without in offline you should use local cache, where you can add, update or delete entry and it only up to you, when you will send this changes to server


Regards,

Jan