Skip to content

Instantly share code, notes, and snippets.

View acappelli's full-sized avatar

Andrea Cappelli acappelli

  • Kontalk DevTeam
View GitHub Profile
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)
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)
}
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
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'>";
}
@acappelli
acappelli / html
Last active August 29, 2015 14:15
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Live</title>
<script type="text/javascript" src="./js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="./js/jquery.mobile-1.3.2.js"></script>
<TextView
android:id="@+id/company_next_visit"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_marginLeft="1dp"
android:layout_height="wrap_content"
android:inputType="datetime"
style="@style/EditTextcompany_report"
android:imeOptions="actionDone"
android:focusableInTouchMode="false"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_background">
<include layout="@layout/loader" />
<ScrollView
android:layout_width="match_parent"
/**
* @author Andrea Cappelli
*/
public class GooglePlusUtilsConnection implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
private GoogleApiClient mGoogleApiClient;
public boolean mIntentInProgress;
public boolean mSignInClicked;
/*
* Kontalk Android client
* Copyright (C) 2015 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,
/**
* @author Andrea Cappelli
*/
public class CustomTextView extends TextView {
private static final String TAG = CustomTextView.class.getName();
public CustomTextView(Context context) {
super(context);
}