Take the 2-minute tour ×

Does anyone know of a good tutorial for any of the above?

I need to send data to Drupal from and Android phone.

Data is stored in XML but can be converted to JSON easily.

Then it needs to be stored in a user's profile.


share|improve this question
add comment

2 Answers

I suggest you use the Drupal Views module to achieve this. It's a very powerful module which allows you to run complex queries on your database and produce output in virtually any format.

Here's some information about using Views and Views Datasource module to produce JSON data.

If Views Datasource isn't any use, then Views Bonus Pack module may be an alternative.

Hope that helps.

share|improve this answer
My understanding is that the OP wants to send data from Android phone to Drupal, while your suggestion is geared at the other direction. So while your suggestions might also benefit him, you could add a Link to the Services module for the reverse direction - drupal.org/project/services. –  Henrik Opel Sep 29 '10 at 5:59
The comment is correct. I need to send data from an Android phone to drupal. I have tried to read through the documentation of the services module and have even used both DrupalCloud and Android-XMLRPC as a base but i cannot get either to work. - Is there a working example of 'node.get' in Java? Just something simple so that i can figure out the parameters etc. thanks –  Matt Sep 29 '10 at 11:02
add comment

THe reason DrupalCloud wasn;t working was due to my version of PHP 5.2.14.

The solution was to put the key values in double quotes as that is what JSON is expecting

bnvp[0] = new BasicNameValuePair("nid", "4"); 
bnvp[0] = new BasicNameValuePair("nid", "\"4\""); 

mPairs.add(new BasicNameValuePair("method", "system.connect")); 
mPairs.add(new BasicNameValuePair("method", "\"system.connect\"")); 


Also, make sure all services modules are enable and the proper permissions are set.

share|improve this answer
Hey Matt, I am in the same boat and I am desperate for answers. It sounds like you figured out how to upload data from Android to Drupal. Would you please give me some detailed directions, pleassssse!? –  sisko Apr 22 '11 at 13:51
add comment

Your Answer


