|
POST
|
Current workflow with v10.1.1 is to create a compact cache or tile package (*.tpk) to view offline maps/data. You can also persist features as JSON for offline viewing. The next release will support the workflow you are describing whereby there will be a useable db cached to your device for offline maps/data/features etc.
... View more
05-30-2013
03:33 PM
|
0
|
0
|
423
|
|
POST
|
Can you share a screenshot of the project you are trying to convert before conversion and after so I can see what the tool did for you as well as the state of the project before you attempted to convert?
... View more
05-30-2013
03:24 PM
|
0
|
0
|
680
|
|
POST
|
The issue with the javadoc not working in Eclipse is a known issue that we have already fixed and will be included with the next release. To attach the javadoc to Android Studio you need to do the following: Open the Project Structure dialog and select Modules > Your Project Under Export select the ArcGIS_Android global library Click the Edit icon from the bottom tool icons Click the Plus button and select Attach Files or Directories... Browse to the Javadoc jar file and open it to reference and click OK. You should see the Javadoc listed under Javadocs in the Configure Global Library dialog as shown below: [ATTACH=CONFIG]24837[/ATTACH] Now when you are in the Java source editor place the cursor inside the class or method and select CTRL + Q on win & *nix. On Mac OS select CTRL + J. The output is below: [ATTACH=CONFIG]24838[/ATTACH] I will look to update the IntelliJ blog post for javadoc viewing in line with code.
... View more
05-30-2013
03:20 PM
|
0
|
1
|
1757
|
|
POST
|
Android Studio is based on IntelliJ IDEA IDE. You can add plugins to the IDE as you can with Eclipse. Although we do not provide an Android Studio specific plugin you can use the SDK/API by following the steps provided in this blog post. We are looking to provide improved workflows in our upcoming release to be used with the ever increasing number of supported Android development IDE's.
... View more
05-30-2013
09:27 AM
|
0
|
0
|
1757
|
|
POST
|
Thanks Jessica for detailing your workflow and use case. I can assure you that it is supported. I tried to reproduce your issue on a Galaxy Note II with the specs below, but the app worked as expected. Here is the code I used:
public boolean onOptionsItemSelected(MenuItem item) {
// handle item selection
switch (item.getItemId()) {
case R.id.World_Street_Map:
mMapView.removeAll();
mMapView.addLayer(basemapStreet);
return true;
case R.id.World_Topo:
mMapView.removeAll();
mMapView.addLayer(basemapTopo);
return true;
case R.id.NatGeo:
mMapView.removeAll();
mMapView.addLayer(basemapNatGeo);
return true;
case R.id.Ocean_Basemap:
mMapView.removeAll();
mMapView.addLayer(basemapOcean);
default:
return super.onOptionsItemSelected(item);
}
} Device specs that I tested on: Hardware: Verizon Samsung Galaxy Note II Model number: SCH-I605 Android version: 4.1.1 Build number: JRO03C.I605VRALL4 Kernel version: 3.0.31-414933 se.infra@SEP-79 #1 SMP PREEMPT Fri Dec 28 21:21:38 KST 2012 The Android version is different and I suspect the kernel version will be as well. The carrier is Verizon, what carrier are you using as there are some differences in carrier models. This may have something to do with the issue as the fix may be in the device. Is it possible for you to update to Android 4.1.2 and see if that resolves it? Concerning your workflow: Have you created the option to manually add layers to the map with a user input URL? That should work and I am interested in your experience. We have a similar workflow in our ArcGIS App whereby users can input a URL to make a GIS Connection. The ArcGIS App is wholly built with the SDK.
... View more
05-29-2013
01:27 PM
|
0
|
0
|
219
|
|
POST
|
I edited the Basemaps sample as you suggested in the post and cannot reproduce on a Galaxy Nexus or a Nexus 7 with Android 4.2.2 . I am looking to see if I can find the specific devices you are referencing. Concerning your question about adding/removing layers ... Adding all the layers and setting the visibility of the layer with Layer.setVisible() is the preferred approach as layers will be initialized once. That is the reason the Basemaps samples uses that pattern. However, if all of your layers share the same spatial reference you can instantiate the MapView with the Spatial Reference and Extent then add/remove any layers. Is there a reason you prefer to add/remove layers over setting the visibility?
... View more
05-28-2013
11:28 AM
|
0
|
0
|
1438
|
|
POST
|
You can use messages provided by an external device/file or populate your own message with the messageID and the name-value pairs required by the message processor symbol dictionary type. You can explicitly set the message properties with the Message.setProperty() method. By default the message spatial reference is expected to be the same a the message processor. If it is not then explicitly state the message's spatial reference using the message's _WKID value. Unique designation is a text modifier that adds a label to show data in the unique designation for the feature. A good introduction to text modifiers can be found here. You then process a message using MessageProcessor class.
... View more
05-22-2013
04:46 PM
|
0
|
0
|
534
|
|
POST
|
Can you share which sample you are having issues with and provide the logcat with the error.
... View more
04-30-2013
01:57 PM
|
0
|
0
|
680
|
|
POST
|
The limitations on adding graphics is related to the memory available on your device. Here is some code to find out how much memory your app is using.
double totalMemoryUsed = (Runtime.getRuntime().totalMemory() + android.os.Debug.getNativeHeapAllocatedSize());
int percentUsed = (int)(totalMemoryUsed / Runtime.getRuntime().maxMemory() * 100);
I suggest you check the value of percentUsed after you add each graphic. The percentage should be consistent when your app stops responding and that would be the limitation on your device.
... View more
04-26-2013
11:49 AM
|
0
|
3
|
1173
|
|
POST
|
You are correct, the last item references whether the LocationService is started where 1 = on and 0 = off. I have reproduced your issue and can confirm the return string from MapView.retainState() is not working as expected. The best workaround I have is the one you suggest whereby you programmatically change the last item in the string to the value you want. A basic example:
StringBuilder state = new StringBuilder(map.retainState());
if (!locationService.isStarted()){
state.deleteCharAt(state.length() - 1);
state.append(0);
}
String updateState = state.toString(); We have logged a bug against this issue and look to fix for the next release.
... View more
04-25-2013
02:24 PM
|
0
|
0
|
378
|
|
POST
|
ArcGISLocalTiledLayer class can take a path to your *.tpk file on disk. Look at the CreateLocalJsonFeatures sample for an example. In the sample you will see the resource in res/config.xml file and the Local Tile Layer added in LocalMapActivity class.
... View more
03-04-2013
01:20 PM
|
0
|
0
|
1086
|
|
POST
|
Our Android SDK does not provide support for custom HTTP headers, instead you should look into the Android API to solve this. You can try the Apache stack with AbstractHttpMessage or URLConnection. Let me know if you continue to have issues.
... View more
03-04-2013
08:49 AM
|
0
|
0
|
481
|
|
POST
|
Are you developing on Windows? You may not have the Google USB driver installed. Android Developer devices require the Google USB Driver instead of a OEM driver. Please reference the appropriate driver site for your device. Otherwise, You may not have the Android platform installed. Most samples are based on Android API v2.3.3. To add platforms and packages launch the SDK manager from within Eclipse by selecting Window > Android SDK Manager. The SDK Manager shows all the SDK packages available for you to add to your Android SDK. To support our base platform ensure that Android 2.3.3. (API 10) platform is installed. [ATTACH=CONFIG]21320[/ATTACH]
... View more
02-01-2013
06:14 AM
|
0
|
0
|
801
|
|
POST
|
New projects created with the ArcGIS New Project Wizard default to our minimum Android Build Target support level, which is currently SDK version 10 API level 2.3.3. Your reference to SDK version 8 implies you have an older version of the SDK installed. You can either add the platform to your Android SDK as described here. Or you can change the projects Android Build Target with these steps: 1. Right click the project and select Properties. 2. Choose Android from the tree on the left and select the appropriate Android Build Target on the right. If you upgrade to v10.1.1 you will need to use Target Name Android 2.3.3.
... View more
01-23-2013
04:13 PM
|
0
|
0
|
476
|
|
POST
|
Glad you got the sample working. Concerning updating v2.0 projects to v10.1.1. The issue seems to be related to our dropping support for Android SDK Version 8 API level 2.2. The support level is now a minimum of Android SDK level 10 API version 2.3.3. The following workflow on v2.0 projects will get the feature tool working again: 1. Right click v2.0 project and select 'Properties'. 2. Select Android from the list and choose the Android 2.3.3 Target Name. 3. Right click the v2.0 project and select 'ArcGIS Tools > Fix Project Properties'. It will no longer be grayed out. 4. Open the projects AndroidManifest.xml file 5. Change the min SDK version to 10, '<uses-sdk android:minSdkVersion="10" />'. Your project will be updated to work with v10.1.1.
... View more
01-23-2013
04:01 PM
|
0
|
0
|
1655
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2014 11:13 AM | |
| 1 | 04-29-2015 06:36 PM | |
| 1 | 09-15-2014 12:01 PM | |
| 1 | 06-02-2017 04:43 PM | |
| 1 | 01-21-2015 07:00 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|