|
POST
|
I think that error has something to do with emulator not working right. One possibility is to verify that your android:minSdkVersion is set correctly in the AndroidManifest.xml file, as compared to the Android OS version you are using: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html. Also, make sure to "clean" your project. And, here's a good blog post for using ArcGIS Runtime SDK for Android v1.1.x with an emulator: http://blogs.esri.com/esri/arcgis/2012/05/02/arcgis-runtime-sdk-for-android-v1-1-supports-android-emulator/ In regards to connecting your phone to your development machine, yes, that's typically the best way to get started. You will most likely need to install device drivers for your phone: http://developer.android.com/sdk/win-usb.html -Andy
... View more
06-04-2012
07:11 AM
|
0
|
0
|
841
|
|
POST
|
Aleksi, Did you see any errors in logcat right after you did a double tap? I believe the following code snippet will prevent double tap from propagating: map.setOnTouchListener(new MapOnTouchListener(getApplicationContext(), map){
@Override
public boolean onDoubleTap(MotionEvent point) {
Log.d("Test","onDoubleTap do nothing");
return false;
}
});
-Andy
... View more
05-31-2012
10:21 AM
|
0
|
0
|
602
|
|
POST
|
For reference: this problem has been logged under NIM081315. -Andy
... View more
05-31-2012
09:13 AM
|
0
|
0
|
1708
|
|
POST
|
For those who this bug applies to it has been logged under NIM081315. -Andy
... View more
05-31-2012
09:12 AM
|
0
|
0
|
1905
|
|
POST
|
Shafri, do you have Logcat installed? It will show any errors thrown by the emulator (or phone). Since the title bar of the app didn't even load I would expect some sort of an error to show up in Logcat. Also make sure you have v1.1.1 of our SDK. -Andy
... View more
05-29-2012
07:00 AM
|
0
|
0
|
841
|
|
POST
|
Another thought is that your drawing cache may be defaulting to a width/height of 0,0. According to the Android docs you may be missing a call to createBitmap(). And, that method calls for a width, height and Bitmap.Config. Here's a code snippet that will hopefully re-point you down the right track: View map = findViewById(R.id.map);
bitmap = Bitmap.createBitmap(map.getWidth(), map.getHeight(), Bitmap.Config.RGB_565); If you already tried this, can you list out what patterns you've tried? -Andy
... View more
05-25-2012
07:41 AM
|
0
|
0
|
1905
|
|
POST
|
Jeff, here's Douglas Crockford's comment on why he removed comments from JSON: https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr -Andy
... View more
05-24-2012
03:12 PM
|
0
|
0
|
5170
|
|
POST
|
How about the following: Scenario 1 - callout always visible: Callout is visible. [set Esri zoom listener to null -- e.g. map.setOnZoomListener(null);] Click Zoom Out on zoomcontrol Call should stay visible Scenario 2 - callout always closed: Callout is visible. [user closes callout] [re-initialize a new Esri zoom listener] Click Zoom Out on zoomcontrol the callout disappears. I haven't tried this but it sounds like it would work. What do you think? -Andy
... View more
05-24-2012
01:37 PM
|
0
|
0
|
1255
|
|
POST
|
Luke, a few questions related to the GetBufferLock error: 1) Have you verified with the Eclipse debugger that your app crashes as soon as you "step into" zoomToResolution()? 2) And, that happens 100% of the time? 3) Can you copy the entire crash sequence from Logcat and either paste or attach it? 4) What's the make/model of the device? 5) Android OS version? 6) ArcGIS SDK version? 7) Code snippet of the method where the error is happening? Thanks, -Andy
... View more
05-24-2012
12:09 PM
|
0
|
0
|
1680
|
|
POST
|
I'm just guessing that this has do with MapView when you serialize/deserialize it as a bitmap at the bytecode level. Did you try any patterns similar to this link: http://www.brighthub.com/mobile/google-android/articles/30676.aspx? -Andy
... View more
05-24-2012
12:01 PM
|
0
|
0
|
1905
|
|
POST
|
And, here's a code snippet showing the basic pattern: map.setOnSingleTapListener(new OnSingleTapListener() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void onSingleTap(float x, float y) {
double _x = x;
double _y = y;
double scale = 500000;
Point pt = new Point(_x,_y);
map.centerAt(pt,true);
map.setScale(scale);
}
}); -Andy
... View more
05-24-2012
11:09 AM
|
0
|
0
|
1680
|
|
POST
|
Andrew, sorry I can't help with that. Serializing screen captures on any client is tricky because issues related to Class reflection. The usual best practice is to create a URL to an external web map. -Andy
... View more
05-24-2012
09:47 AM
|
0
|
0
|
1905
|
|
POST
|
You could do a two step process: 1) centerAt() 2) setScale() -Andy
... View more
05-24-2012
09:41 AM
|
0
|
0
|
1680
|
|
POST
|
Andrew, do you mean is there a way to control the default callout using my proposed workaround? I'm not sure what your workflow is, however here's some additional psuedo-code you can try out, and look at bolting some of it into the workaround if it meets your needs. In my app using a pattern like this, I was able to temporarily disable the default callout, and then it would come back the next time a user clicked on a graphic. Another option would be to create your own custom callout. That would be the best practice, but it would involve more coding. callout = map.getCallout();
callout.setStyle(R.xml.calloutstyle);
testButton = (ImageButton)findViewById(R.id.testbutton);
testButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if(callout != null){
callout.hide();
callout = null; //callout gets re-created when user clicks on Graphic
}
}
}); -Andy
... View more
05-24-2012
09:32 AM
|
0
|
0
|
1255
|
|
POST
|
Do you have any messages in the ArcGIS Server log? Here is a similar post with information that might help: http://forums.arcgis.com/threads/27763-Problem-with-Geoprocessing-Service -Andy
... View more
05-22-2012
11:47 AM
|
0
|
0
|
1279
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM | |
| 1 | 04-23-2025 06:56 AM | |
| 1 | 04-23-2025 07:09 AM | |
| 1 | 04-08-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-05-2025
07:24 AM
|