POST
|
When I try to get the extent of the map in onPause method with the code below, try {
Envelope extentEnvelope = new Envelope();
Polygon extent = mapView.getExtent();
extent.queryEnvelope(extentEnvelope);
} catch (Exception exception) {
Log.e(logtag + ":saveMapExtent", "Map extent could not be saved!", exception);
} I get IllegalArgumentException at the line: Polygon extent = mapView.getExtent(); Here is the stack trace: 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): java.lang.IllegalArgumentException 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.esri.core.geometry.v.a(Unknown Source) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.esri.core.geometry.MultiPath.startPath(Unknown Source) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.esri.android.map.MapSurface.h(Unknown Source) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.esri.android.map.MapView.getExtent(Unknown Source) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.anelarge.todes.view.page.map.MapPage.saveMapExtent(MapPage.java:145) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.anelarge.todes.view.page.map.MapPage.onPause(MapPage.java:157) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.Activity.performPause(Activity.java:3877) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1191) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1686) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2836) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.ActivityThread.access$1600(ActivityThread.java:117) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.os.Handler.dispatchMessage(Handler.java:99) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.os.Looper.loop(Looper.java:130) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at android.app.ActivityThread.main(ActivityThread.java:3691) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at java.lang.reflect.Method.invokeNative(Native Method) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at java.lang.reflect.Method.invoke(Method.java:507) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665) 07-30 09:53:53.310: E/MapPage:saveMapExtent(5920): at dalvik.system.NativeStart.main(Native Method) I could not find a reason.
... View more
07-29-2012
11:04 PM
|
0
|
1
|
957
|
POST
|
I keep getting error with the explanation: "call to OpenGL ES API with no current context (logged once per thread)". What could be the reason? By the way, I'm running the application on a real device, not on an emulator.
... View more
07-24-2012
12:18 AM
|
0
|
3
|
973
|
POST
|
@agup i dont have another onpanlistener enabled. After setting onpanlistener to null, the result of mapView.getOnPanListener() == null is true. However, the map still can be panned.
... View more
06-25-2012
10:42 PM
|
0
|
0
|
646
|
POST
|
You can disable the OnPanListener event by implementing: MapView.setOnPanListener(null); Does not work for me.
... View more
06-25-2012
03:19 AM
|
0
|
0
|
646
|
POST
|
Since there is no detailed explanation in the documentation of the SDK or somewhere else, I've decided to look at the AdvancedSymbologySample. Guess what? It does not work, it throws a NullPointerException. Anybody knows how to solve the issue? Sorry, I think the answer is here: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Advanced_Symbology_Draw_and_Update_Symbol/011900000035000000/
... View more
05-16-2012
03:23 AM
|
0
|
0
|
348
|
POST
|
Since there is no detailed explanation in the documentation of the SDK or somewhere else, I've decided to look at the AdvancedSymbologySample. Guess what? It does not work, it throws a NullPointerException. Anybody knows how to solve the issue?
... View more
05-16-2012
03:18 AM
|
0
|
1
|
810
|
POST
|
I added a graphic layer on mapView, then removed it from the mapView but i keep a reference to that GraphicLayer. When I want to add it back, the following exception is thrown. E/GLMapCore(5827): GraphicBuffer::deleteSequence ERROR, Seq Num = 0 is out of range. I could not understand the problem.
... View more
05-03-2012
06:42 AM
|
0
|
0
|
682
|
POST
|
I think its a bug related to Eclipse (by the way I am using version 3.7.2). Eclipse moves the required libraries into Persisted container. This causes the problem and when you close the project and open it again, the problem is becomes temporarily solved.
... View more
04-10-2012
11:23 PM
|
0
|
0
|
941
|
POST
|
Try to go to project properties - java build path - libraries, Remove arcgis libraries, Press button "add library" and chose "arcgis for android library container". I said "I followed the instructions in 'Upgrade ArcGIS Projects to SDK 1.1'". Since I cannot fix the problem, I created a new ArcGIS project, it worked but after a while ( i think, when I restarted Eclipse), it started to gave the same exception.
... View more
04-10-2012
10:49 PM
|
0
|
0
|
941
|
POST
|
I followed the instructions in "Upgrade ArcGIS Projects to SDK 1.1". When I run my project I get the following runtime exceptions. Whatever I did, I could not fix the problem. java.lang.RuntimeException: Unable to start activity ComponentInfo{xx.xx.xx/xx.xx.xx.pages.MapPage}: android.view.InflateException: Binary XML file line #6: Error inflating class com.esri.android.map.MapView android.view.InflateException: Binary XML file line #6: Error inflating class com.esri.android.map.MapView Caused by: java.lang.ClassNotFoundException: com.esri.android.map.MapView in loader dalvik.system.PathClassLoader[/data/app/xx.xx.xxx.apk]
... View more
04-10-2012
12:54 AM
|
0
|
13
|
3128
|
POST
|
the answer is in the post with the title "Couldn't load GLMapCore: findLibrary returned null". Sorry, I cannot find how to delete my post.
... View more
02-02-2012
06:17 AM
|
0
|
0
|
137
|
POST
|
I ran into a similar problem while refactoring my app that was based on the beta api. The fix for me was to open a sample ArcGIS app (in Eclipse, File > New > Other > ArcGIS for Android > ArcGIS Samples for Android) and copy the lib folder to my project. Sorry for not being more specific, I don't have my development machine in front of me at the moment. Hope this helps! I had the same problem, too but didn't have to copy the libraries by hand. If you are developing in Eclipse right click on the Project and then AtcGIS Tools -> Convert to ArcGIS Android Porject. This automatically copies the required libraries. ArcGIS_Android.jar jackson-core-lgpl-1.6.3.jar jackson-mapper-lgpl-1.6.3 and armeabi / libGLMapCore.so armeabi-v7a / libGLMapCore.so
... View more
02-02-2012
06:12 AM
|
0
|
0
|
890
|
POST
|
I get the following error: 01-07 04:01:58.773: E/AndroidRuntime(2715): java.lang.RuntimeException: Unable to start activity ComponentInfo{x.x.x/x.x.x.view.page.MapPage}: android.view.InflateException: Binary XML file line #5: Error inflating class com.esri.android.map.MapView What could be the reason?
... View more
02-02-2012
05:12 AM
|
0
|
1
|
713
|
POST
|
Lets say I want to add a graphic on a graphics layer on the map. I do this by the code below
GraphicsLayer gl = new GraphicsLayer();
Geometry geometry = new Point(xPoint, yPoint);
Graphic graphic = new Graphic(geometry, new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.CIRCLE));
gl.addGraphic(graphic);
I have to give a symbol(for defining how to render the graphic) as an attribute to the graphic constructor. So, why is there a setRenderer function for graphics layer?
... View more
02-01-2012
10:32 PM
|
0
|
0
|
1240
|
POST
|
I did what I want to by using Polyline.
Polyline poly = new Polyline();
poly.startPath(startPoint);
poly.lineTo(endPoint);
allyGraphicsLayer.addGraphic(new Graphic(poly, new SimpleLineSymbol(Color.BLUE, 5)));
Still i wonder what did I do wrong in the code in the previous post.
... View more
01-19-2012
06:15 AM
|
0
|
0
|
414
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|