BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Pulling device data from device to server (http://www.blackberryforums.com/showthread.php?t=262325)

sssharma 11-07-2012 12:37 AM

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 09: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-08-2012 12:08 AM

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 10: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 04:54 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.