Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+28 votes
14.2k views
in Plugins by
edited by

Here's a potential XML-RPC server plugin for Q2A; right now it only has one available call, q2a.getQuestions, but by providing the right data, it so far allows voting, asking questions and posting answers and comments.

It's designed to work with my new Android App:

which seems to work with the plugin, so far.  The plugin is here:

https://github.com/NoahY/q2a-xml-rpc

and the app is here:

https://github.com/NoahY/q2android

but the source for the app depends on ActionBarSherlock and SlidingMenu:

http://actionbarsherlock.com/

https://github.com/jfeinstein10/SlidingMenu

so you can download a premade APK here if you like:

https://github.com/NoahY/q2android/raw/master/bin/Q2Android.apk

Let me know how it works.

UPDATE: 0.9.1 all functions fixed and working.

Q2A version: 1.6
by
Hi NoahY. Thanks for your app. I just managed to compile it and add MathJax support. I had to do some minor changes in the plugin also to make it work with version 1.7. Is there a way I can upload the updated plugin?

https://play.google.com/store/apps/details?id=org.qaoverflow.q2android
by
You can make a github repository for your updated app and then you can tell Gideon (creator of Q2A) to add this apps link addons page. To tell Gideon use feedback page.
After all of this create a new question to tell everyone about the new app and giving the link in that for both playstore and github.
by
okay. Thank you :)
by
Where to add website URL ????
i am new to android
i successfully imported in eclips
but where to change website URL of my own website

13 Answers

+4 votes
by
thanks, why u have put two Blocks in the screen ? right and left template? if there is only one page that will be appear better on all android fon size.

can u plz support RTL version.

thank u
by
the two panes only show on devices 800px wide or greater, so I think it should work on most devices.  Two panes makes navigation easier, and looks better in landscape.
by
I'm not sure about RTL - it's only supported in 4.1+; I can add the necessary tags, but I can't say whether it will look as it should.
by
RTL tags added in latest apk
by
Hi am using nexus 4 and it shows 2 panels for me on the phone. Which us not very usable as the details panel is just quarter if the screen width wise. Even in landscape mode I think dual panel looks a but awkward. I would like to see just one panel for the list of questions. Swipe right and see the navigation menu slide in from Left and click on any question to see the details panel sliding in from right to almost 95% of the screen. Swipe left and the question list reappears. That way it would look cool!
0 votes
by

Thanks for your excellent job,but it doesn't work on my website :http://www.kxlearn.com/postgraduate

It returns 405 error code all the time .

and here is a test account:

ID: test

PW:123456

appreciate for your help

by
maybe the QA user's level went wrong when it integrated with wordpress ?
by
when I comment the 798--801 lines in the file qa-xml-rpc-server.php,I can receive the content.However,all of the images in every questions and answers can't be displayed.I use Markdown editor
by
check your php error log... that's the easiest way to know what's wrong.
+1 vote
by
i cant use it on my website . it app just error404 or 405 . i use windows server
by
Please try the latest version; maybe it will work
by
Hi NoahY can you please tell me the reason of the problem
org.xmlrpc.android.XMLRPCException: HTTP-Client error: org.xmlpull.v1.XmlPullParseException: expected: START_TAG {null}methodResponse (position:START_TAG (empty) <br>@1:6 in java.io.InputStreamReader@407e808)  
Thanks in advance :-)
by
org.xmlrpc.android.xmlrpcexeption:http status code:404 was returned.not found
by
not sure... it works here using a linux server.
by
This is normally caused by the xml-rcp plugin not enabled under Admin > Plugins > ... xml-rcp check box and Save...
0 votes
by

Hi NoahY.

It's nice and useful , thanks

But , how ca i customize it for myself ?

I need to translate it and also set the Static website address.

And howo can i compile it on Eclipse ?

 

Regards

by
what's the problem using Eclipse?
by
I'm new to Android and have no experience.
Is it ready to open and compile with Eclipse?
by
I used Eclipse to build it, so it should work.
by
org.xmlrpc.android.XMLRPCException: HTTP-Client error: org.xmlpull.v1.XmlPullParseException: expected: START_TAG {null}methodResponse (position:START_TAG (empty) <br>@1:6 in java.io.InputStreamReader@407e808)  
I am Using Linux
by
Well, I'll start it :)
Thanks
+1 vote
by
edited by

Getting an error

org.xmlrpc.android.XMLRPCException: HTTP-Client error: org.xmlpull.v1.XmlPullParseException: expected: START_TAG {null}methodResponse (position:START_TAG (empty) <br>@1:6 in java.io.InputStreamReader@407e808)  
I am Using Linux server.

0 votes
by
Please help me how to setup.. I am a newbie.. How to make the APK and how to submit at play store. :/
by
Can you program in Java?
by
I have a little background and would be thankful if you would kindly confirm if the Q2AWebsite.java file is the only one to be modified to effect a hard code. Also, if replacing the tag 'null' with "http://www.site.com/" is all there is. Thanks.
+1 vote
by

I have the same problem like most others here. 

org.xmlrpc.android.xmlrpcexeption:http status code:404 was returned.not found

I have the xml-rpc plugin installed and activated.

by
Ok I got this solved. My site was at domain.com/qa/ and I was using domain.com as the address to connect.
+1 vote
by

Thank you for great script. By the way I have a problem. 

When I click http://www.lankawiki.net/xml-rpc it gives the ouput XML-RPC server accepts POST requests only. By when I try to access from app, it gives the error (see attached screenshot).

Please help - Thanks

 

by
Well i am having the similar problem, and this problem is caused by Godaddy for me , i was unable to find solution for that problem my site is http://answerpk.com
0 votes
by
i have a problem  . the apk  always say error 502, if i use worng password it is use , say pasport worng . but i use correct pasport it say error 502
0 votes
by
I cant use it on my website. It shows error 404 or 405. I am using windows server.
0 votes
by
How to make an .apk application to the user does not need to enter the site address in the application, but only the username and password?
by
You should post a question, not an answer :-)
However you should hardcode your website URL here :
https://github.com/NoahY/q2android/blob/master/src/org/noahy/q2android/interfaces/Q2AWebsite.java#L12
0 votes
by

To all those having issues with 404 make sure your URL is like this:

http://exampledotcomoripadderss.com/~subdomain/index.php/

This is because if you see `Q2ARequest.java` file in Android code, there is a line like following:

String uris = website+"xml-rpc";

 You need to have a full valid url with "/" at the end of it in order for the sample apps to work. Hope this helps someone.

by
Hey, Shobhit. I have been trying to hard code with Android Studio for the past two days with no success. Though I tried quite a number of modifications, this is essentially all I have do, sumarised:

// set this if you are hardcoding a website into your app
    public final static String CUSTOM_WEBSITE = "http://www.satechhelp.co.za/";

Please help as the above does not seem to make any difference  :( The app still requires that the site's URL be enterd manually.
...