BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Pulling device data from device to server (http://www.blackberryforums.com/developer-forum/262325-pulling-device-data-device-server.html)

sssharma 11-06-2012 11:37 PM

Pulling device data from device to server
 
Hi

I am new to blackberry development. I have searched forum and docs but could not figure out the solution so I am posting this.
My requirement is to pull device data from device to server. Using DeviceInfo API I am able to display data on device UI but I am not able to push it back to server.

Explored push notification as well but it'll just return the status not any other detail.

Can any one help me with the flow, or point me to tutorial on how to achieve it.

Thanks in advance
Saurabh

Dougsg38p 11-07-2012 08:31 AM

Re: Pulling device data from device to server
 
The big question is: what application is on the server to catch the data, and what is it expecting?

sssharma 11-07-2012 11:08 PM

Re: Pulling device data from device to server
 
Servlet is what which will try to catch the data from device. Application is expecting model, battery level , OS details, if wifi is set or not etc from device.

Dougsg38p 11-08-2012 09:45 AM

Re: Pulling device data from device to server
 
OK, so what is the question? Seems pretty straight forward. What is the servlet expecting in terms of format? Are you using some type of web service wrapper?

The model, OS level, etc are typically stored in the HTTP User-Agent (normal practice - you'll see this data if you hit your URL from the BB Browser).

If it were me, I'd have a simple XML document that contains the data. This document would be the payload for an HTTP POST request to the servlet. The servlet would crack the XML and extract the data.


All times are GMT -5. The time now is 01:35 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.