POST
|
I would like to leverage components of the AppFramework while my app is backgrounded on the device. Is the AppFramework (or other Qt lbraries such as QtPositioning) available to the javascript file that provides the background functions to the WorkerScript element in the UI thread? Our own doc says, "On mobile devices where you have limited resources and variable network speed it is advisable to perform long running tasks on a background thread." (Performance considerations—ArcGIS Runtime SDK for Qt | ArcGIS for Developers ) so it would seem this is possible, but how is this accomplished? The same import statements used in the qml file don't work in the js file. Any help is appreciated and actual examples will be warmly welcomed. Thanks.
... View more
03-29-2016
06:45 AM
|
0
|
3
|
2368
|
POST
|
AltShiftR or Tools>External>AppStudio>Run I was wondering if it also uses Player when running that way. I would be happy to do a screen share and show you what I did just to make I am explaining myself correctly.
... View more
03-25-2016
12:10 PM
|
0
|
2
|
781
|
POST
|
Something additional: In the interest of thoroughness I modified the sample "Local geodatabase editing" to allow adding features instead of only editing existing ones. Then I tested it on Windows, iOS and Android with the same results: I could add features on the desktop but not when the app was deployed on an iPhone or an Android phone. A difference is that when running on iOS and Android it was running within Player. So I installed Player for windows on my development machine and when I ran the apps, I got the same result as on iOS and Android - no feature added to the offline geodatabase.So it would seem there is something about Player that is getting in the way. Not sure what to do next, but thought I'd add this to the conversation.
... View more
03-25-2016
11:40 AM
|
0
|
0
|
781
|
POST
|
So I tried that but there's still something I'm doing wrong. My app implements a local geodatabase with a single FeatureTable. I enabled a function where if the user taps the screen, it will add a point to the GeodatabaseFeatureTable in the offline geodatabase. When I run this app directly from Qt Creator on my development machine I can successfully add a point which later gets syncronized and appears in my hosted feature service. Then I upload the app to my AGOL account, download it to my iPhone and run it in Player. I attempt to perform the same action of adding a point by tapping the screen but it won't add the new feature to the offline table. This is the code: if (local.featureTableStatus === Enums.FeatureTableStatusInitialized) { var newFeature = local.createNewFeature(); var newPoint = ArcGISRuntime.createObject("Point",{x:pointX,y:pointY,spatialReference:{wkid:102100}}) newFeature.geometry = newPoint newFeature.setAttributeValue("ID","pointID") newFeature.setAttributeValue("Name","manual point") var ms = new Date().getTime(); newFeature.setAttributeValue("Time",ms) newFeature.setAttributeValue("Longitude",pointX) newFeature.setAttributeValue("Latitude",pointY) var newFeatId = local.addFeature(newFeature) gpsDetails.text += "Manually added:\n" + JSON.stringify(newFeature.json) + "\n\n"; statusText.text = "Offline. Point added to offline geodatabase: " + newFeatId; syncButton.enabled = true; } local is a GeodatabaseFeatureTable in the offline geodatabase. pointX and pointY are the mouse.mapX and mouse.mapY of the screen tap event. The result of local.addFeature(newFeature) in the iOS deployment is always -1 (no feature was added) Any other suggestions are very welcome. Thanks, Ken
... View more
03-25-2016
07:36 AM
|
0
|
1
|
781
|
POST
|
Thanks for the suggestion. I’ll give that a try and if I still have trouble I am happy to share my code if you’re inclined to have a look at it. Thanks.
... View more
03-23-2016
11:22 AM
|
0
|
2
|
781
|
POST
|
In my app I have enabled adding features to a hosted feature service by following the examples of the sample apps "Add and edit features" and "Local geodatabase editing". Based on the example of "Add and edit features" if I edit the service directly using GeodatabaseFeatureServiceTable::addFeature passing in the feature JSON I create for the feature to be added, it works. The result is the OBJECTID of the new feature. However, if I create an offline geodatabase of the same feature service as in "Local geodatabase editing" and add a feature to it using GeodatabaseFeatureTable::addFeature passing in the same feature JSON, it fails. The result is always -1. What am I doing wrong? Thanks.
... View more
03-23-2016
09:07 AM
|
0
|
9
|
3685
|
POST
|
I have a point hosted feature service which is Z-enabled. In my app if I capture a GPS point and add it as a new feature to the service, it only works if I create feature JSON geometry with x & y. If I add the z component to the geometry it fails. Is this a bug or am I doing something incorrectly? Thanks.
... View more
03-23-2016
08:52 AM
|
0
|
1
|
1655
|
POST
|
Is there a way to obtain a unique ID for the device to add to the attributes of a data point? At first I thought AppFramework.device would provide this, but it is not constant from one app execution to the next.
... View more
03-23-2016
08:41 AM
|
0
|
3
|
4873
|
POST
|
Is there a method or query when generating an offline geodatabase from a hosted feature service that generates only the schema of the feature service without replicating any data? This is for an app whose sole purpose is to collect and send data.
... View more
03-23-2016
08:38 AM
|
0
|
1
|
1665
|
POST
|
I am writing a mobile app in Qt Creator and I want to enable and disable certain behaviors depending on whether the device is 1) disconnected 2) connected via cellular or 3) connected via wifi. I see AppFramework.network has several properties that seem to be in the ballpark. Specifically AppFramework.network.BearerWLAN looks like it might indicate the network is wifi and all the other Bearer~ properties (other than BearerEthernet) suggest cellular connections. Is this correct? If so, how do I leverage this property which is numeric to compare it to my boolean property that indicates if the user has chosen to only use wifi connections? It doesn't appear I can verify it like this: if (AppFramework.network.isOnline && ( (wifiOnly.checked && AppFramework.network.BearerWLAN) || (wifiCell.checked) )) wifiOnly.checked and wifiCell.checked are user-configured settings in the app for the permitted connectivity. Thanks, Ken
... View more
03-18-2016
12:38 PM
|
0
|
2
|
1872
|
POST
|
Can anyone offer a suggestion as to how to resolve the following? While writing an adapter over the past several days, just today I started getting an error while deploying the jar. The adapter no longer shows up in the list of adapters in GEP Manager. If I bounce the GEP service, once it is restarted I cannot launch Manager (says "No service was found") unless I first delete my jar from the deploy folder and restart the GEP service. If I debug while deploying the jar, the first lines in the console are these: ERROR: Bundle com.esri.ges.registry.internal-adapter-registry [269] EventDispatcher: Error during dispatch. (java.lang.RuntimeException: java.lang.RuntimeException: java.io.EOFException: No content to map to Object due to end of input) java.lang.RuntimeException: java.lang.RuntimeException: java.io.EOFException: No content to map to Object due to end of input. The exception apparently gets thrown after the XmlAdapterDefinition gets created in the AdapterService constructor but before the createAdapter() method gets called. Anyone have an idea about this? Thanks
... View more
09-13-2013
11:17 AM
|
0
|
1
|
3007
|
POST
|
Is there a way to use text values from an event's attributes to look up placenames and append geometry to the event? Example could be a Tweet that has no location coords but where the sender mentioned a placename in the text of the tweet or set a user location. Could you use those values to guess the location by using a gazetteer or similar lookup?
... View more
09-11-2013
08:58 AM
|
0
|
1
|
580
|
POST
|
Is there a way to keep track of the count of events? For example you might fire an alert when the count of events meeting certain criteria passes a certain threshold, or when then events per unit time rate drops below or exceeds a certain value. Has anyone written a processor to do this?
... View more
09-11-2013
08:45 AM
|
0
|
1
|
461
|
POST
|
Is it possible to use non-Latin characters in text filters and input parameters? A client asked specifically if the they could enter Arabic script in the Track parameter of the Twitter adapter.
... View more
09-11-2013
08:35 AM
|
0
|
0
|
615
|