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
"Question2Answer Merge" from the Readme.rst in https://github.com/NoahY/q2a-xml-rpc ... should be another one :)
by
Heh.  Thanks.  Fixed now.
by
In admin>plugins: Disabling of XML-RPC server does not work. Checkmark always set to "Enable XML-RPC server".
by
Tried it on Samsung Galaxy S3. Interface needs improvement. See screenshots: http://tinypic.com/r/j786zo/5 and http://tinypic.com/r/33eojyx/5 or is it because of my custom css of the main theme?
by
Thanks, I've fixed the admin issue, should work in 0.3.1.  Try downloading the apk again, I've updated the UI; it's not easy getting it to work on different sized devices :)
by
hi noahY, i tried to build the app, but failed. i tried to recompile android app myself. but i failed. the problems are in org.noahy.q2android each file,AuthenticatorActivity.java in org.noahy.q2andandroid.authentication,Q2ARequest.java Q2astrings.java streamListAdapter.java.

almost all of the error is th R. reports "R cannot be resolved to a variable",

AuthenticatorActivity.java import error "import org.noahy.q2android.R;" it reports "The import org.noahy.q2android.R cannot be resolved"
what should i do ?
by
the problem will probably be those errors that are not related to R... they cause it not to build, thus R isn't created, something like that.
by
thanks. i got it works now. doese the client support upload image ? and in preference setup page, one option leave blank use plain text ,that editor type. what is the other option we can set ?
by
the editor types are the ones in the q2a database: html, markdown, etc.
by
thank you very much
by
i can't found ios source code,can you tell me.thanks
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



my site takamul.cn
by
Is there a document that shows you how to write the commands for the webservice?
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.
...