Skip to content

Instantly share code, notes, and snippets.

View acappelli's full-sized avatar

Andrea Cappelli acappelli

  • Kontalk DevTeam
View GitHub Profile
if(bean !== undefined && bean.length > 0) {
var s = "";
for (var i = 0; i < bean.length; i++) {
s += "<br>" + bean[i].nome + "<br>";
if(bean[i].gol_fatto > 0) {
s += bean[i].gol_fatto + "<img src='../assets/images/ic_event_goal' height='51' width='51'>";
}
if(bean[i].gol_subito > 0){
s += bean[i].gol_subito + "<img src='../assets/images/ic_event_lost_goal' height='51' width='51'>";
}
api/v1/formazioni/103374/11/939290
No search results.
URL params Headers (5)
form-data x-www-form-urlencoded raw binary JSON (application/json)
1
Send Save Preview Pre-request script Tests Add to collection Reset
BodyCookiesHeaders (8)Tests
STATUS 200 OK
TIME 74 ms
for (var i = 0; i < jsonResult["content"].count; i++) {
var location:CLLocationCoordinate2D = CLLocationCoordinate2DMake(jsonResult["content"][i]["lat"].double!, jsonResult["content"][i]["lng"].double!);
var annotation = MKPointAnnotation()
annotation.setCoordinate(location)
annotation.title = jsonResult["content"][i]["indirizzo1"].string
mapView.addAnnotation(annotation)
}
01-11 15:57:05.504 26789-26789/org.kontalk E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: org.kontalk, PID: 26789
java.lang.ExceptionInInitializerError
at org.kontalk.ui.ComposeMessageFragment.<init>(ComposeMessageFragment.java:216)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1572)
at android.support.v4.app.Fragment.instantiate(Fragment.java:404)
at android.support.v4.app.Fragment.instantiate(Fragment.java:379)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:284)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
/*
* Kontalk Android client
* Copyright (C) 2014 Kontalk Devteam <devteam@kontalk.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.andrea.myapplication"
minSdkVersion 12
targetSdkVersion 21
/*
* Copyright 2014 Soichiro Kashima
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright 2014 Soichiro Kashima
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<!--
Copyright 2014 Soichiro Kashima
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
/*
* Copyright 2014 Soichiro Kashima
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software