Need assistant

66 views
Skip to first unread message

Adi Candra

unread,
Mar 15, 2015, 8:04:07 AM3/15/15
to improvemyc...@googlegroups.com
Hello all,
I have a problem with IMC Mobile. I am testing it in android version 2.3.4. I have installed IMC component in joomla 2.5.8.
I can do login and register via mobile app. But I can not add issue, because the categories that I have added in jomla doesn't show up.
I also try to add issue from web, it works fine. but the Imc mobile can not display it. It always display empty issue.
If any one of you have face this problem and you know how to figure it out, please help. thnak you

Dimitrios Ververidis

unread,
Mar 16, 2015, 4:29:57 AM3/16/15
to improvemyc...@googlegroups.com
Hallo Adi,

- have you set png images for all the categories ?
- which is your url ? I suspect that something goes wrong with the paths of the images of the categories.
- which paths/parameters have you set in the Constants_API.java in your android code ?

BR,
Dimitrios

Adi Candra

unread,
Mar 16, 2015, 8:18:43 AM3/16/15
to improvemyc...@googlegroups.com
1.I only have 3 categories, and each categories has png icon. My server : "192.168.0.1/test" (192.168.0.1 is server ip where IMC web installed).
2.I have put the same api key in android and in web application.
3.The image server is "/"
Ps. The png icon is displayed in frontend map.so I think there should be no problem with the categories images.

Dimitrios Ververidis

unread,
Mar 17, 2015, 3:35:16 AM3/17/15
to improvemyc...@googlegroups.com
Hi Adi,

I suspect that your server is not visible in the internet. 
192.168.0.1 is your localhost address.

BR,
Dimitrios

Adi Candra

unread,
Mar 17, 2015, 7:02:15 AM3/17/15
to improvemyc...@googlegroups.com
Yes, Sir. it is at localhost. I connect it to android app via wifi.
Do you mean that I should move the IMC web to a hosting so those two app can communicate?. So what I should do to testing it in localhost server.

Regards,

Dimitrios Ververidis

unread,
Mar 17, 2015, 7:32:27 AM3/17/15
to improvemyc...@googlegroups.com
Normally it works, 
but I can not see it from my browser to say what is going wrong.
I can not guess either.

You do not have to move IMC to another machine. Just give your external ip address, not the the internal one. 

D.

Adi Candra

unread,
Mar 19, 2015, 9:20:33 AM3/19/15
to improvemyc...@googlegroups.com
Hello all

Today I tried to change the server path. I use " smartcitydemos.urenio.org" instead of my localhost server. I can view categories, issues, etc.
So my conclusion "there is nothing wrong with the mobile app". It is my server problem or maybe my joomla .
I am using joomla 2.5.28, xampp 5.5.19 .
World, what version of joomla and server you are using ?


Dimitrios Ververidis

unread,
Mar 19, 2015, 9:29:47 AM3/19/15
to improvemyc...@googlegroups.com
Hi, 

Your joomla is ok

Did you enable json controller in IMC back-end

see 

If you haven't then imc does not export anything to mobile devices.

Dimitrios

Adi Candra

unread,
Mar 19, 2015, 2:08:57 PM3/19/15
to improvemyc...@googlegroups.com
Hello Dimitrios,
JSON is enabled. I can do login and register. If JSON is not enabled then I couldn't do those two tasks, am I correct?
Today I will move the IMC scripts to a hosting. I will let you know the result.

Best Regards,
Adi Candra

Adi Candra

unread,
Mar 26, 2015, 5:45:01 PM3/26/15
to improvemyc...@googlegroups.com
Today I installed IMC at http://kesbangpol-sbs.com and still I am faced to the same problem. The issues and categories are not displayed at IMC Mobile.
Please help

Dimitrios Ververidis

unread,
Mar 27, 2015, 4:12:01 AM3/27/15
to improvemyc...@googlegroups.com
Your joomla seems fine.
Send me the Constants.java or Constants_API.java from your android code.

D.

Adi Candra

unread,
Mar 27, 2015, 7:47:45 AM3/27/15
to improvemyc...@googlegroups.com
here is the code


Constants_API.java

Dimitrios Ververidis

unread,
Mar 27, 2015, 8:12:00 AM3/27/15
to improvemyc...@googlegroups.com
I do not see any problem in constants.

I found that there are no categories in the front-end. Did you enable them ?



On Friday, March 27, 2015 at 1:47:45 PM UTC+2, Adi Candra wrote:
here is the code


Adi Candra

unread,
Mar 28, 2015, 5:53:21 AM3/28/15
to improvemyc...@googlegroups.com
Hello Dimitriois,
Yes, I have enabled it.
Can I ask you to test your code, change the server to my web. I think this is the only way to trace the problem,

Thanks in advance


Adi Candra

unread,
Mar 31, 2015, 8:38:00 AM3/31/15
to improvemyc...@googlegroups.com
Hello all,
I hope someone here can give a clue of what's maybe wrong in my joomla web or maybe the wrong configuration in IMC mobile

Adi Candra

unread,
Mar 31, 2015, 8:45:09 AM3/31/15
to improvemyc...@googlegroups.com

Adi Candra

unread,
Apr 3, 2015, 9:28:47 AM4/3/15
to improvemyc...@googlegroups.com
Dear All,
Today I try to change the target server to " improve-my-city.com/demo" and the result is nothing .No  Categories and issues displayed.
The only server that works is "smartcitydemos.urenio.org". those two websites is runnig on joomla, but I don't know why the results is differents. I hope the admin of this forum can give answer for the problems. Thank you

Dimitrios Ververidis

unread,
Apr 3, 2015, 10:21:28 AM4/3/15
to improvemyc...@googlegroups.com
Probably it is the API version
Try changing in IMC_Services/DatabaseHandler.java

String Username       = jArrIssues.getJSONArray(i).getString(23);

into 

String Username       = jArrIssues.getJSONArray(i).getString(24);

Dimitrios

Adi Candra

unread,
Apr 3, 2015, 11:24:44 AM4/3/15
to improvemyc...@googlegroups.com
I've changed it as you suggested. But it makes no different.

Adi Candra

unread,
Apr 4, 2015, 3:32:23 AM4/4/15
to improvemyc...@googlegroups.com
I am really sure that its not mobile-app problem. Its all about server (including joomla). I've explained the details in several posts.

Adi Candra

unread,
Apr 5, 2015, 7:06:01 AM4/5/15
to improvemyc...@googlegroups.com

Hello Dimitriois,
Here I send you the log. I hope it can explain of whats going on.
best regards

Adi

Adi Candra

unread,
Apr 5, 2015, 7:09:17 AM4/5/15
to improvemyc...@googlegroups.com
I am sorry, the log was blank. here is
log1.txt

Dimitrios Ververidis

unread,
Apr 20, 2015, 9:37:02 AM4/20/15
to improvemyc...@googlegroups.com
Hi Adi,

I am currently review IMC Open source for Android in order to make it compatible with Android Studio.
I think I found the bug. It seems that the old api had categories images into a json object whereas the new one has only a string.


Try replacing the DatabaseHandler.java with the attached file and it will solve the issue.


BR,
Dimitrios
DatabaseHandler.java
Reply all
Reply to author
Forward
0 new messages