|
POST
|
Better yet, could you share your TPK with me and I can test with my sample and see if I reproduce the same issue that you are experiencing?
... View more
10-27-2016
09:55 AM
|
0
|
1
|
4127
|
|
POST
|
Any offline datasets should be available. TPK's, offline features, etc... If you follow the sample from above, are you able to see your TPK loaded? Are you getting any errors when loading your TPK? At this point, I would like to know how testing outside of the mapViews statusChanges listener worked for you.
... View more
10-27-2016
09:08 AM
|
1
|
0
|
4127
|
|
POST
|
Hello Jason Christian Those utility methods you are looking for exist in the GeometryEngine GeometryEngine | ArcGIS Android 10.2.8 API Additionally, I would believe that reaching out to your local esri distributor and inquiring for an enhancement request to add this functionality the SDK would be worth while.
... View more
10-27-2016
06:16 AM
|
0
|
0
|
2116
|
|
POST
|
package com.arcgis.androidsupportcases.offlinestarter;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Environment;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.esri.android.map.MapView;
import com.esri.android.map.ags.ArcGISLocalTiledLayer;
public class MainActivity extends AppCompatActivity implements ActivityCompat.OnRequestPermissionsResultCallback {
MapView mMapView;
final static int EXTERNAL_STORAGE_PERMISSION_CODE = 3774;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mMapView = (MapView) findViewById(R.id.map);
int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (permissionCheck == PackageManager.PERMISSION_GRANTED) {
loadLayer();
} else {
requestStorage();
}
}
private void requestStorage() {
if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
//TODO: Explanation if wanted.
} else {
ActivityCompat.requestPermissions(this,
new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE},
EXTERNAL_STORAGE_PERMISSION_CODE);
}
}
/**
* Callback for the result from requesting permissions. This method
* is invoked for every call on {@link #requestPermissions(String[], int)}.
* <p>
* <strong>Note:</strong> It is possible that the permissions request interaction
* with the user is interrupted. In this case you will receive empty permissions
* and results arrays which should be treated as a cancellation.
* </p>
*
* @param requestCode The request code passed in {@link #requestPermissions(String[], int)}.
* @param permissions The requested permissions. Never null.
* @param grantResults The grant results for the corresponding permissions
* which is either {@link PackageManager#PERMISSION_GRANTED}
* or {@link PackageManager#PERMISSION_DENIED}. Never null.
* @see #requestPermissions(String[], int)
*/
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == EXTERNAL_STORAGE_PERMISSION_CODE) {
if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
loadLayer();
} else {
Log.e("ESS", "Permission Denied");
}
}
}
private void loadLayer() {
mMapView.addLayer(new ArcGISLocalTiledLayer(Environment.getExternalStorageDirectory().getPath() + "/ArcGIS/" + "custom.tpk"));
}
}
I was able to write a really quick sample to test this out. I ignored the check to the initialization and was able to load my TPK without issue. I am seeing the same behavior that you explained when doing the initialization check. The grids seem to only appear when a dataset is loaded. Are you loading any datasets when you see the black map? (I have only tested with a TPK thus far)
... View more
10-27-2016
06:11 AM
|
0
|
4
|
4127
|
|
POST
|
Jason Christian I do not see any methods currently listed in the API nor do I see any methods for this listed in the beta API. This might make a good enhancement request and I would encourage you to either join the early adopter community by visiting this link ArcGIS Runtime SDK for Android | ArcGIS for Developers and clicking join beta and then leaving feedback or by contacting your local esri distributor office and creating a case with support. Additionally, it may be possible to display the points still with a custom utility class written to iterate over the data within the text file. Do you have a small sample of the text file that you could upload so we could see if we might be able to write a utility class as a community? This may be something that we could post in our developer-support github page.
... View more
10-24-2016
05:42 AM
|
0
|
0
|
2116
|
|
POST
|
You may be using a feature service rather than a tiled layer and this may be where you are running into issues. What is the URL of the dotted layer? Additionally, you may be adding the layer as index 0 which is where the basemap usually sits, it is also possible that you are adding the layer underneath the basemap. What is the code you are using to add the layer to the map?
... View more
10-24-2016
05:33 AM
|
0
|
0
|
673
|
|
POST
|
ihazbackup Are you inflating the MapView from XML or are you creating the MapView dynamically? If you are inflating from XML can you not include the basemap URL in the XML? Does this help?
... View more
10-24-2016
05:31 AM
|
0
|
6
|
4127
|
|
POST
|
Are you looking to add HERE Map as the basemap in an ArcGIS SDK or are you looking to use the HERE SDK?
... View more
10-17-2016
05:28 AM
|
0
|
0
|
707
|
|
POST
|
I moved this from the Android location to the Java location as Swing is a Java technology.
... View more
10-17-2016
05:24 AM
|
0
|
0
|
3253
|
|
POST
|
This would really depend on the locator and network dataset you use. If you wanted to route from the first floor to the fifth floor, you would need to build your polyline dataset with z values so the users would know that they would need to walk up an elevator or stairs. The display should have no affect on the routing logic.
... View more
10-10-2016
05:24 AM
|
1
|
0
|
1016
|
|
POST
|
ibespalov - To test whether this issue is with the relationship class itself or with the Android API, would you open the feature service in ArcMap or ArcGIS Online and try performing the delete there to see if it is successful?
... View more
10-07-2016
05:08 AM
|
0
|
1
|
2286
|
|
POST
|
Is this from a relationship class that you made in ArcMap?
... View more
10-06-2016
06:08 AM
|
1
|
3
|
2286
|
|
POST
|
thomassldn If that resolved your issue would you go ahead and mark that answer as correct? Thank you!
... View more
10-06-2016
04:45 AM
|
0
|
3
|
2729
|
|
POST
|
I am not entirely sure if that will resolve the issue but I imagine that the stops are not being located and not being added to the "stops" object.
... View more
10-05-2016
01:09 PM
|
1
|
5
|
2729
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-15-2014 03:16 PM | |
| 1 | 01-06-2015 03:33 PM | |
| 1 | 12-02-2014 10:47 AM | |
| 1 | 07-15-2014 03:31 PM | |
| 1 | 09-23-2014 03:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|