POST
|
Thank you getting back to me. We are drawing dots using a graphics overlay. The dots are augmented reality in a drone real-time video feed. We hoped to move beyond simple dots by mimicking how the features are drawn in the ESRI maps (Our AR app allows users to create, edit, and sync their geodatabases). If the ESRI apk does doesn't provide a way to mimic their feature graphics, at a minimum we wanted to draw point features distinctly if ESRI would have drawn them distinctly. For example, if features with attribute "condition" that has the domain of {new, good, average, bad} is drawn four different ways according to those values we at least wanted to draw it four different ways.
... View more
11-10-2020
08:53 AM
|
0
|
1
|
618
|
POST
|
I would like to find access through the Android SDK to the logic that determines how symbols are drawn. I imagine this would take the form of a Map<Object, Symbol> and the related Field. I know the symbol can be a function of multiple fields so it may be more complex.
... View more
11-10-2020
07:07 AM
|
0
|
3
|
638
|
POST
|
Part of my application involves searching a portal for a list of portals items. I would like to list only the webmaps that include a Geodatabase that isSyncEnabled(). The most direct way to do this would be with the PortalQueryParameters. Limiting the query to just webmaps is straight forward using the constructor that takes a vector of PortalItem.Type as the first parameter. Is there a way to use the searchQuerry string to limit it to just webmaps that include a sync enabled geodatabase? Or just to those that support offline use? If PortalQueryParamters doesn't work, is there a way to check the PortalItems? I know that I can find out if they support offline use: OfflineMapTask(PortalItem).getOfflineMapCapabilitiesAsync() ---> getLayerCapabilities() --> isSupportsOffline(). That helps, but offline use doesn't necessarily mean they support sync. The isSyncEnabled() method appears in two places in the documentation: Geodatabase::isSyncEnabled(), and ArcGISFeatureServiceInfo::isSyncEnabled(). It appears (from the single documented constructor) that a geodatabse can only be constructed from a local file after downloading the geodatabase (impractical). And ArcGISFeatureServiceInfo has no documented constructors, appears nowhere in the documentation except its own page, and is a final class that extends Object. So, from what I can tell, developers have no access to it. Am I missing something here?
... View more
08-17-2020
04:39 AM
|
0
|
1
|
481
|
POST
|
I think I have this figured out: The redirect_uri must be set, on the authorization tab of new application in developers.arcgis.com. I found the clue that proved the key on how this done here ( https://developers.arcgis.com/labs/android/access-services-with-oauth-2/) "Use this redirect URL when creating the OAuthConfiguration and the intent filter scheme when Android returns control back to your app after OAuth 2.0 login. If you change this value, you must change it in all three places. If you already have an app defined, you can use that client ID instead of creating a new one." (you have to click the circle-i to open this) On developers.argis.com, in the Authetican tab of you application, add the redirect uri "<app_name>://auth" In the strings.xml create <string name="oauth_client_id"><Copied client ID></string> <string name="oauth_redirect_host">auth</string> <string name="oauth_redirect_uri">APP_NAME</string> In the java code:OAuthConfiguration oAuthConfiguration = new OAuthConfiguration(portalURL, getString(R.string.oauth_client_id), getString(R.string.oauth_redirect_uri) + "://" + getString(R.string.oauth_redirect_host)); In the manifest.xml: <!-- You must declare this activity, an intent receiver, to display the OAuth login --> <activity android:name="com.esri.arcgisruntime.security.DefaultOAuthIntentReceiver" android:launchMode="singleTask"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="@string/oauth_redirect_host" android:scheme=APP_NAME /> <!-- CHANGE APP NAME HERE!!!! --> </intent-filter> </activity> This discussion was also helpful ( https://community.esri.com/thread/215715-how-can-i-use-app-authentication)
... View more
05-26-2020
09:40 AM
|
0
|
0
|
1235
|
POST
|
I am struggling with OAuth in Android SDK. I have created a new application, RobinAR, on ArcGIS for Developers . That provided the Client ID needed for the OAuthConfiguration. I didn't know what to do for the Redirect URL, so I followed the hint and made it, myapp://RobinAR.
Perhaps that should be RobinAR://<Something>?
... View more
05-26-2020
05:45 AM
|
0
|
1
|
1326
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|