Select to view content in your preferred language

Adding SignInExtension in Mobile Project Center 10.2

2321
1
12-15-2013 06:14 AM
TomLewis
Occasional Contributor
My forehead is hurting from beating my head on the keyboard over this one. Back in 10.0 days, I simply added the ProjectExtension for the SignIn to the .amp file. 10.2 seems to have changed the format of this file and it's not apparent how to edit the amp file any more.

Does anybody know how to get the SignIn project extension added to a project that is destined for Windows Mobile 6?

Thanks in advance!
0 Kudos
1 Reply
JohnFannon
Frequent Contributor
The amp file is a JSON file at v10.1 and 10.2. The official way to do extensions now requires you to create an MPC assembly and then add your custom task etc to the project through MPC - documented here.

However, you can still add the extension or task to the amp file directly with the correct JSON. Example below:

 
         "tasks": [{
  "assemblyQualifiedName": "ESRI.ArcGIS.Mobile.Client.Tasks.ViewMap.ViewMapTask, ESRI.ArcGIS.Mobile.Client",
  "name": "View Map",
  "description": "Browse the map display"
 }]


 "extensions": [{
  "assemblyQualifiedName": "STW.Mobile.Tasks.CustomSearch.SearchTask, SearchTask",
  "name": "Search Tool",
  "description": "Search Tool."
 }]


Note that the amp file is not formatted neatly like this, so you will probably need Notepad++ (this has a plugin for JSON formatting) or something similar in order to make reading the amp file easier.

Hope that helps.

John
0 Kudos