Android - sending data from acra to a php script

守給你的承諾、 提交于 2019-12-08 06:31:55

问题


I've been using acra in some of my apps and sending the data to Google Docs spread sheets, but I would like to switch to sending data to a mysql setup I have running on a server where I feel the data would be more secure. I can see how to send the data using the post method but I can't tell the naming conventions of the data so I can catch them with a php script.

Does anybody know what the variable names are or where I can look at them so I know what to look for in my php?


回答1:


If the acra app is using POST methods, use PHP's $_POST predefined variable and var_dump to read the parameters passed in the post.

Another useful is $_GET... just in case

EDIT: Upon further inspection, acra source suggests that the ReportField.java enum values are converted to strings via a Map and used with POST params. I suggest investigating those fields as well.



来源:https://stackoverflow.com/questions/9424346/android-sending-data-from-acra-to-a-php-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!