POST
|
Does it really work for you? Because I've tried to get the credentials just like your code and got the same error.
... View more
04-12-2017
09:57 AM
|
0
|
1
|
482
|
POST
|
Hi, I've tried deploy an android application that was built using API 100.0, but on my Zenfone 2 it always crashes. I got it to work on a Pixel and Moto G4 (I believe that both have ARM architeture). Here my whole code: XML <android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="br.com.inflor.myapplication.MainActivity">
<com.esri.arcgisruntime.mapping.view.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</com.esri.arcgisruntime.mapping.view.MapView>
</android.support.constraint.ConstraintLayout> Controller import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.esri.arcgisruntime.mapping.ArcGISMap;
import com.esri.arcgisruntime.mapping.Basemap;
import com.esri.arcgisruntime.mapping.view.MapView;
public class MainActivity extends AppCompatActivity {
private MapView mMapView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mMapView = (MapView) findViewById(R.id.mapView);
ArcGISMap map = new ArcGISMap(Basemap.Type.TOPOGRAPHIC, 34.056295, -117.195800, 16);
mMapView.setMap(map);
}
@Override
protected void onPause(){
mMapView.pause();
super.onPause();
}
@Override
protected void onResume(){
super.onResume();
mMapView.resume();
}
}
... View more
04-12-2017
09:46 AM
|
0
|
4
|
797
|
POST
|
Hello, When I try to create a GeodatabaseSyncTask with credentials it Always returns 401 unauthorized, even when the credentials are right. Here is the code that I'm using right now: System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential(userName, passWord, domain);
var credential = new ArcGISNetworkCredential
{
Credentials = networkCredential,
ServiceUri = featureURI
};
GeodatabaseSyncTask gdbTask = await GeodatabaseSyncTask.CreateAsync(featureURI, credential); I don't know if my code is wrong, but I've tried it on iOS (API100.0) and old .NET api and it worked fine!
... View more
04-06-2017
06:47 AM
|
0
|
3
|
1355
|
POST
|
Hi melinda, I mean the columns in a table. Maybe I'm doing it wrong. I Just need the Max Speed of segment to print it on screen.
... View more
04-04-2017
02:34 PM
|
0
|
1
|
319
|
POST
|
Hi, I need to know how do i get max speed information for a single segment. I have this information in my Feature Class and created a descriptor attribute in Network Dataset Properties. And i need to know how do I get the META-DATA like Cost and Restriction Attributes. PS: I'm using 10.2.8-1 API, but I need to know how it works on 100.0 API as well
... View more
03-27-2017
10:21 AM
|
0
|
3
|
798
|
POST
|
I have the same question and I can't find "setTravelMode" in RouteParameters on 10.2.8-1 API. And these links are broken: RouteParameters| arcgis-android and RouteTaskInfo| arcgis-android What do I have to do to set Travel Mode?
... View more
03-23-2017
10:53 AM
|
0
|
3
|
665
|
POST
|
Hi, I'm trying to register my application to remove the whatermark on the map. But I still can't find the AGSRuntimeEnvironment.setClientID(clientID, error: &error) in new API 100.0. I saw it AGSArcGISRuntimeEnvironment.setLicenseKey("runtimelite,1000,rud#########,day-month-year,####################")in guide, but it dosen't work for me and the whatermark's still there. Here's my code: do {
let result = try AGSArcGISRuntimeEnvironment.setLicenseKey(ClientID)
print("License Result : \(result.licenseStatus)")
}
catch let error as NSError {
print("error: \(error)")
} My ClientID is 16 characters only, and I didn't undertand anything about the information discribed in a String showed in the guide: (" runtimelite,1000,rud#########,day-month-year,#################### ").
... View more
03-10-2017
06:48 AM
|
0
|
1
|
1127
|
POST
|
Hi, Sometimes when i add a AGSFeaturelayer to my AGSMap, the application crashes. But the weird thing is it not occurs always, only sometimes. Below my code: let geodatabase = AGSGeodatabase(fileURL: geodatabaseURL!)
geodatabase.load(completion: {(error:Error?) in
if error == nil {
let reversedFeaturetables = geodatabase.geodatabaseFeatureTables.reversed()
for featureTable in reversedFeaturetables {
self.mapView.map?.operationalLayers.add(AGSFeatureLayer(featureTable: featureTable))
}
} else {
print(error!)
}
})
... View more
03-06-2017
07:54 AM
|
0
|
2
|
1175
|
POST
|
Hi, I have an application that downloads a zip file that contains the network files, and save it in Documents application folder. The problem is that some networks don't have the _ND_historical_traffic inside .tn folder. When this happens and i try to get the default params, i get the issue bellow: Error Domain=com.esri.arcgis.runtime.error Code=3072 "The transportation network data files could not be opened, and may be missing." UserInfo={ Additional Message=Network_index::open_file_sections_, NSLocalizedFailureReason=Network_index::open_file_sections_, NSLocalizedDescription=The transportation network data files could not be opened, and may be missing. } Here my code: let folderPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
let gdbPath = folderPath.appending("/network/data.geodatabase")
self.routeTask = AGSRouteTask(fileURLToDatabase: URL(string:gdbPath)!, networkName: "network_ND")
self.getDefaultParameters()
func getDefaultParameters() {
self.routeTask.defaultRouteParameters(completion: {(params: AGSRouteParameters?, error: Error?) -> Void in
if let error = error {
print(error)
}
else {
self.params = params
}
})
}
... View more
12-29-2016
09:26 AM
|
0
|
1
|
315
|
POST
|
Here: Create Replica from FeatureService with Basic authentication on Windows Phone, Return error 404 That's the issue. I thought that 100.0 API was going to solve it. But it doesn't
... View more
12-13-2016
02:56 AM
|
0
|
1
|
261
|
POST
|
Hi, I'd like to know if we're goint to have API 100.0 for UWP 8.1 platform or if Esri is going to correct the bugs found in version 10.2.7.
... View more
12-12-2016
10:47 AM
|
0
|
3
|
366
|
POST
|
How do i make AGSGDBSyncTask.generateGeodatabaseWithParameters synchronous?
... View more
10-13-2016
02:41 PM
|
0
|
1
|
504
|
POST
|
I've found why it awalys returns 'false'. I do not set GenerateGeodatanaseParameters.setReturnAttachments() to true. When I change it to true, it works fine. Thanks!!
... View more
09-29-2016
04:56 AM
|
0
|
0
|
427
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|