Migrating Android Native OData Applications
Migrate your Android OData application from version 2.3 SP04 to SAP Mobile Platform version 3.0.x.
Overview
- Registration
- Request-Response (data fetch)
- Parsing
Registration
For registration, there are no code changes, and no refactoring is required to migrate an application from 2.3 SP04 to 3.x. Only a rebuild is necessary for 2.3 SP04 applications to continue working with the SAP Mobile Platform 3.0 OData SDK. New applications are required to use the new APIs. You must also use the new classes to OData offline and to implement other features such as batch processing.
Request-Response
Version 3.0 (New) | Version 2.3.x (Deprecated) |
---|---|
RequestManager | SDMRequestManager |
ConnectivityParameters | SDMConnectivityParameters |
Preferences | SDMPreferences |
Logger | SDMLogger |
BaseRequest | SDMBaseRequest |
BundleRequest | SDMBundleRequest |
ResponseImpl | SDMResponseImpl |
HttpChannelListeners | SDMHttpChannelListeners |
ConnectivityException | SDMConnectivityException |
RequestStateElement | SDMRequestStateElement |
PreferencesException | SDMPreferencesException |
INetListener | ISDMNetListener |
Parser
In this table, "SDM*" has been removed from all classes and methods names.
Version 3.0 | Version 2.3.x |
---|---|
buildODataEntryRequestBody | buildSDMODataEntryXML |
parseODataServiceDocument | parseSDMODataServiceDocumentXML |
parseODataSchema | parseSDMODataSchemaXML |
parseODataEntries | parseSDMODataEntriesXML |
parseODataOpenSearchDescription | parseSDMODataOpenSearchDescriptionXML |
parseODataError | parseSDMODataErrorXML |
parseFunctionImportResult | parseFunctionImportResultXML |