如何从我的Android应用程序获取崩溃数据(至少是堆栈跟踪)?至少在使用有线电视检索我自己的设备时,最好是从我在野外运行的应用程序的任何实例,以便我可以改进它并使其更加坚固.
我的proguard和Gson库有问题.我的代码是
AdServerResult result = (AdServerResult) new Gson().fromJson(json,
AdServerResult.class);
Run Code Online (Sandbox Code Playgroud)
(我AdServerResult使用Gson库创建一个新对象)
我的AdServerResult班级:
public class AdServerResult {
public ArrayList<AdServerObject> shorts ;
public ArrayList<AdServerObject> longs ;
public ArrayList<AdServerObject> getShorts() {
return shorts;
}
public void setShorts(ArrayList<AdServerObject> shorts) {
this.shorts = shorts;
}
public ArrayList<AdServerObject> getLongs() {
return longs;
}
public void setLongs(ArrayList<AdServerObject> longs) {
this.longs = longs;
}
//for debug
@Override
public String toString(){
StringBuilder sb = new StringBuilder() ;
if (shorts!=null && shorts.size()>0){
for (AdServerObject s: shorts){
sb.append("url: "+s.getPicture_url()); …Run Code Online (Sandbox Code Playgroud)