Hi,
Greeting for the day!!!
I am developing apllication using ArcGIS Runtime for JAVA on linux(RHEL 6.5 64 bit)
I have created a mpk file from a gdb file from Arc map. I am able to show these data on map. I have to add some feature in that gdb/MPK from my application.
Hi Pavan,
You can extract package to extract the containing database. Add required features to it, and create a new map package.
Thanks Jayanta,
Can it possible from Runtime Application because I can not use ArcMap for extract package or create new package. I have to do all the packaging task from my application.
See Create an offline map—ArcGIS Runtime SDK for Java | ArcGIS for Developers..
As you read this topic, you'll see that the recommended way of preparing your data for edits on the device is by using the services pattern, or the pre-planned pattern.
Having said that, you can create an ArcGISFeatureLayer from a feature layer in your map package and apply edits that way. Read about this workflow here: ArcGIS Runtime SDK 10.1.1 for Java . Again, keep in mind, this is an old pattern and not the recommended way to add features to your data, since 10.2.3.
Thanks Eric,
I am not able to create sync enable service for creating .geodatabase from service. Is there any help document for creating sync enable feature service?
This topic has a section called "Enable the sync capability":
Enable offline mapping—Portal for ArcGIS (10.3 and 10.3.1) | ArcGIS for Server
Here's another good topic,
Prepare data for offline use—Documentation (10.3 and 10.3.1) | ArcGIS for Server
As a side note, you may want to take some time to watch this 1-hour discussion online. Its a little dated but the workflows for making your data available for offline use are still valid.
Esri Training | Develop Offline Apps Using the ArcGIS Runtime SDKs
I hope these resources are helpful. It's quite easy, actually!