Category images (map pointers)

30 views
Skip to first unread message

Giuseppe Palmas

unread,
May 17, 2015, 2:38:38 AM5/17/15
to improvemyc...@googlegroups.com
Hi.
I'm trying to develope the app using the new version, with Android Studio.
Everything seems to work ok but the app do not show the map pointers images. You can see the issue in attached screenshots.
Instead, using the old code (the latest version running on Eclipse) I can view the pointers correctly.
Have you any idea?

Thenk you!

Screenshot_2015-05-17-08-19-39[1].png
Screenshot_2015-05-17-08-33-58[1].png
Screenshot_2015-05-17-08-34-11[1].png

Dimitrios Ververidis

unread,
May 18, 2015, 3:38:05 AM5/18/15
to improvemyc...@googlegroups.com, giusepp...@gmail.com
Hi,

you have two options:
1) Put png images to the categories in the IMC web back-end to be used as markers for each category
or
2) change the "map_categ_default_icon.png" in the IMC android code in drawables but you will have a single icon for all categories

The recommended option is the first one.

BR,
Dimitrios

Giuseppe Palmas

unread,
May 19, 2015, 3:11:22 AM5/19/15
to improvemyc...@googlegroups.com, giusepp...@gmail.com
I think that I already have the configuration described by you in the point 1.

- In my actual backend I have already set the icons for each category, as you can see in the attached file named "Category_1.png".
- Now, if I make the mobile app v.2.77 with Eclipse and set it in order to ponit to that backend, I get the result that you can see in attached file named "App_2.77.png" (it's my actual production running environment).
- If I make the mobile app v.2.8.3 with Android Studio and set it in order to point to the same backend, I get the result that you can see in the attached file named "App_2.8.3.png" (with the same values in the "Constants_API.java" file also).

It's a very strange issue, I think! The backend is the same (with the category icons already set), the constants are the same... and the app works only in 2.77 version! :-(
Category_1.png
App_2.77.png
App_2.8.3.png

Dimitrios Ververidis

unread,
May 19, 2015, 3:18:57 AM5/19/15
to improvemyc...@googlegroups.com, giusepp...@gmail.com
Hi, 

Which version of IMC web do you have ? Is it the last one 2.6.0 ?
If not go to Android  find java file DatabaseHandler.java
and replace at L:538

//JSONObject cpOb = new JSONObject(CategParams);
String CategIconPath = CategParams; // cpOb.getString("image");

to

JSONObject cpOb = new JSONObject(CategParams);
String CategIconPath = cpOb.getString("image");


the old IMC web had the filename of the category image within a JSON object whereas the new one does not.

BR,
Dimitrios 

Giuseppe Palmas

unread,
May 20, 2015, 10:56:21 AM5/20/15
to improvemyc...@googlegroups.com, giusepp...@gmail.com
Ok! The problem was the IMC web version. I solved following your suggestion.
Thank you!!!
Reply all
Reply to author
Forward
0 new messages