This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adding ssl socket factory to okhttp builder with trusted cert | |
* | |
* @param builder OkHttpClient.Builder | |
*/ | |
private void configureTrustingCertificates(OkHttpClient.Builder builder) { | |
TrustManager[] trustManagers; | |
TLSSocketFactory sslSocketFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Successeful list response | |
{ | |
"limit": 20, | |
"offset": 0, | |
"total": 40, | |
"result": [ | |
{ | |
"id": 37, | |
"name": "Test" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08-02 21:55:54.141 21110-21110/com.foxrey.transporter W/System.err: android.os.NetworkOnMainThreadException | |
08-02 21:55:54.143 21110-21110/com.foxrey.transporter W/System.err: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273) | |
08-02 21:55:54.143 21110-21110/com.foxrey.transporter W/System.err: at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:249) | |
08-02 21:55:54.143 21110-21110/com.foxrey.transporter W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:549) | |
08-02 21:55:54.143 21110-21110/com.foxrey.transporter W/System.err: at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481) | |
08-02 21:55:54.147 21110-21110/com.foxrey.transporter W/System.err: at java.net.PlainSocketImpl.-wrap0(PlainSocketImpl.java) | |
08-02 21:55:54.147 21110-21110/com.foxrey.transporter W/System.err: at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237) | |
08-02 21:55:54.147 21110-21110/com.foxrey.transporter W/System.err: at okio.Okio$2.read(Oki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Penzykov Kyrylo (06.05.2016). | |
*/ | |
public class GoogleApiHelper implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener{ | |
private GoogleApiClient mGoogleApiClient; | |
private Context mContext; | |
public GoogleApiHelper(Context context) { | |
mContext = context; | |
buildGoogleApiClient(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yalantis.foxrey.transporter.util; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import com.google.android.gms.auth.api.Auth; | |
import com.google.android.gms.auth.api.signin.GoogleSignInOptions; | |
import com.google.android.gms.common.ConnectionResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04-04 18:46:09.352 3895-3895/com.autoportal.india V/Jeapie: Jeapie successfully initialized! | |
04-04 18:46:09.366 3895-3895/com.autoportal.india V/Jeapie: Events saving | |
04-04 18:46:09.620 3895-3895/com.autoportal.india V/Jeapie: token | |
04-04 18:46:09.620 3895-3895/com.autoportal.india V/Jeapie: Jeapie registration event | |
04-04 18:46:09.633 3895-3895/com.autoportal.india V/Jeapie: Events clearing | |
04-04 18:46:09.634 3895-3895/com.autoportal.india V/Jeapie: RESULT: [{"time":1459784769,"type":"subscribe","device_id":"0461bbd56e8c2dfc79c0f3e7d3a12582"}] | |
04-04 18:46:09.702 3895-4000/com.autoportal.india V/Jeapie: Message start sending to the server: {"time":1459784769,"tz":7200,"token":"APA91bFGktI2-d7_msUrlYopGw5zfxUInlSxP87MuGiR741oVPHcVNxW7ypcoutNABzcKPasB89YzxTvQDZzDXF_K1MrSvwqJ2WXqNRpTY2Jdz7bEVRQ_6uiyUf9xWd-xg0Nj383DfA_","os_v":"6.0.1","os":3,"screen_w":1080,"lib_v":"2.1.0","app_build":2016040418,"app_version":"2016040418","country":"ua","device_id":"0461bbd56e8c2dfc79c0f3e7d3a12582","screen_h":1794,"lang":"ru","m |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
at lsdka.n.flush(RealBufferedSink.java:221) | |
at com.lsdka.lsdka.lsdka.lsdkb.m$b.a(Spdy3.java:339) | |
at com.lsdka.lsdka.lsdka.lsdkb.n.a(SpdyConnection.java:283) | |
at com.lsdka.lsdka.lsdka.lsdkb.n.a(SpdyConnection.java:259) | |
at com.lsdka.lsdka.lsdka.lsdka.r.a(SpdyTransport.java:98) | |
at com.lsdka.lsdka.lsdka.lsdka.g$a.a(HttpEngine.java:920) | |
at com.lsdka.lsdka.lsdka.lsdka.g.l(HttpEngine.java:790) | |
at com.lsdka.lsdka.e.a(Call.java:274) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handle M permission | |
* @param permission - permission name | |
* @param requestCode - permission's request code to handle in onRequestPermissionsResult | |
*/ | |
protected void handlePermissions(String permission, final int requestCode) { | |
int statePermissionCheck = ContextCompat.checkSelfPermission(this, permission); | |
if (PackageManager.PERMISSION_GRANTED == statePermissionCheck) { | |
onPermissionGranted(permission); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* PanoramaGL library | |
* Version 0.2 beta | |
* Copyright (c) 2010 Javier Baez <javbaezga@gmail.com> | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.autoportal.adapter; | |
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.text.TextUtils; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ImageView; | |
import android.widget.TextView; |