Whenever I tried to work latest xamarin with production android map product, samples are not working.
I did not sign samples and used debug mode to deploy target device.
I updated your dll with installed product dlls.
For example, this output is related to LabelingStyle demo project.
I activated trial eveluation on system.
What is problem on this test procedure?
Regards,
Omer
Java.Lang.RuntimeException: Unable to start activity ComponentInfo{LabelStyle.LabelStyle/md5b1743edfec61a0c887a5882ac36c5f27.MainActivity}: java.lang.ClassNotFoundException: md5533ebf521830b7f8d4df1fae0f67abfc.MapView
at — End of managed exception stack trace —
at java.lang.RuntimeException: Unable to start activity ComponentInfo{LabelStyle.LabelStyle/md5b1743edfec61a0c887a5882ac36c5f27.MainActivity}: java.lang.ClassNotFoundException: md5533ebf521830b7f8d4df1fae0f67abfc.MapView
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2114)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
at at android.app.ActivityThread.access$700(ActivityThread.java:143)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
at at android.os.Handler.dispatchMessage(Handler.java:99)
at at android.os.Looper.loop(Looper.java:137)
at at android.app.ActivityThread.main(ActivityThread.java:4960)
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:511)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at at dalvik.system.NativeStart.main(Native Method)
at Caused by: java.lang.ClassNotFoundException: md5533ebf521830b7f8d4df1fae0f67abfc.MapView
at at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at at md5b1743edfec61a0c887a5882ac36c5f27.MainActivity.n_onCreate(Native Method)
at at md5b1743edfec61a0c887a5882ac36c5f27.MainActivity.onCreate(MainActivity.java:28)
at at android.app.Activity.performCreate(Activity.java:5203)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
at … 11 more
Samples are not working
Whenever I debugged, on BaseSample.cs
public View GetSampleView()
{
…
mapView = new MapView(Application.Context);
command line produces error.
Regards,
Omer
Hi Omer,
I talked with our developer, they cannot give some advice only from currently information.
They want to get a complete executable sample which contains your dlls and necessary data, and we want to know more detail environment information, for example, your android version, your simulator version etc.
Regards,
Don
Hi,
My test phone is Samsung GT 18262 Android 4.1.2, I am using Xamarin Studio 5.9 Build 431 latest version and libraries for testing,
I created project on Xamarin Studio and I added necessary files from your library either latest development or production library.
Firstly let us test dynamic addition, later my suggested embedded map resource layout and finaly let us test your recomended layout. First says no class,second and third says layout xml inflate error no class
Link is
dropbox.com/s/j2iaxntowr3fx6o/test.zip?dl=0
Regards,
Omer
Hi Omer,
Thanks for your information, but it looks we cannot visit the dropbox and download your zip file.
If it’s not so big please upload that here or you can set email to forumsupport@thinkgeo.com attached that. If that’s a big file, please contact your sales and you can get an account of our FTP and please upload it there.
Regards,
Don
Hi Omer,
Thanks for your information. I have read the output information you pasted. I think it should be an old issue which we have fixed.
Are you using the latest version of AndroidEdition(8.0.336.0)? We have tested the LabelingStyle sample with our latest AndroidEdition, and it works well. Could you please get the latest version to have a try?
There are two problems in your attached sample:
1. We need to set MapUnit before MapView display.
2. We need to set CurrentExtent before MapView display.
Please see my codes below:
protected override void OnCreate (Bundle bundle)
{
. . .
mapView = new MapView (this.ApplicationContext);
/* We need to set MapUnit and CurrentExtent properties before MapView display. */
mapView.MapUnit = GeographyUnit.DecimalDegree;
mapView.CurrentExtent = new RectangleShape(-180, 90, 180, -90);
layout.AddView (mapView);
. . .
}
There is a link for our quick start guide, you can refer to:
wiki.thinkgeo.com/wiki/Map_Suite_Android_Edition_Quick_Start_Guide
Regards,
Don
Can you upload a confirmed project zip file to test my environment:
I added your suggestions to my project.
I can’t pass
mapView = new MapView (this.ApplicationContext);
Error is same class not found
Please, let us use xamarin studio to create project and test on xamarin studio environment.
if your project works, send me your project copy.
Regards,
Omer
Hi Omer,
Please refer the attachment package, this sample is working
fine on real devices and simulators.
The dependencies folder contains the Android Evaluation Edition (8.0.336.0)
libraries, you also can get that from product center.
If you still meet the issue on your side:
1.
Please confirm your Android Edition version first, if it is not
8.0.336.0, please upgrade the latest version from product center.
2.
If the version is correct, please send your sample projects to us, and contains your dependence libraries.
Thanks,
12630.zip (1.69 MB)
Hi,
Projects are working fine now.
My steps for Xamarin Studio are
1. I updated Xamarin
2. I cleared Dependency folder on project
3. I added your dll files from
C:\Program Files (x86)\ThinkGeo\Map Suite 8.0\Map Suite Android\Daily Eval Development 8.0.336.0\Managed Assemblies
4. I cleared all Xamarin files and previous test projects from Android device
5. I updated debug mode to release mode on project.
6. I cleaned project
7. I deployed project to Android device under release mode.
I recommend not to use local copy for additional assemblies. Files keep on local project under dependicies folder.
Regards,
Omer
Hi Omer,
Thanks for your share and suggestion.
Any question please let us know.
Regards,
Don