View gist:5cf047f04da4b1e68d0f
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
{ | |
"address":{ | |
"id":1, | |
"city":{ | |
"id":14, | |
"name":"Апостолове" | |
}, | |
"flat":"123", | |
"house":{ | |
"id":4951, |
View gist:a09858bee6b8afdd1e8a
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
{ | |
"status":0, | |
"result":{ | |
"user":{ | |
"hasDevice":true, | |
"energyUploads":[ | |
0, | |
0.1, | |
0.2, | |
0.2, |
View gist:2ea8c476dd5cbdf2dfd1
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
/* | |
* This is the source code of Telegram for Android v. 1.3.2. | |
* It is licensed under GNU GPL v. 2 or later. | |
* You should have received a copy of the license in this archive (see LICENSE). | |
* | |
* Copyright Nikolai Kudashov, 2013. | |
*/ | |
package org.telegram.ui; |
View gist:08664ee583110752a8b6
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.blacksquared.changers.api.task.statistic; | |
import com.blacksquared.changers.App; | |
import com.blacksquared.changers.Constants; | |
import com.blacksquared.changers.api.ApiSettings; | |
import com.blacksquared.changers.api.request.StatisticsApi; | |
import com.blacksquared.changers.api.task.ApiTask; | |
import com.blacksquared.changers.event.rank.RankCityEvent; | |
import com.blacksquared.changers.model.dto.statistic.StatisticRankCitiesDTO; |
View gist:bb017cfff0a18a158111
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
apply plugin: 'com.android.application' | |
apply from: '../gradle.properties' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion '21.1.1' | |
defaultConfig { | |
applicationId "com.blacksquared.changers" | |
minSdkVersion 15 | |
targetSdkVersion 21 |
View gist:f1f586d2ac7354714c90
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
apply plugin: 'com.android.application' | |
apply plugin: 'crashlytics' | |
android { | |
compileSdkVersion rootProject.ext.compileSdkVersion | |
buildToolsVersion rootProject.ext.buildToolsVersion | |
defaultConfig { | |
minSdkVersion rootProject.ext.minSdkVersion | |
targetSdkVersion rootProject.ext.targetSdkVersion |
View gist:d4e1e2a6b914426bc789
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.blacksquared.changers.fragment.auth; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.MenuItem; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.EditText; | |
import android.widget.LinearLayout; |
View gist:97beb3b4b5b0381e76a9
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.blacksquared.changers.manager; | |
import java.lang.reflect.Type; | |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.List; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; |
View gist:caf5f522b27d42150d6e
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.blacksquared.changers.activity; | |
import java.util.Locale; | |
import android.annotation.TargetApi; | |
import android.app.ActionBar; | |
import android.app.Activity; | |
import android.app.Dialog; | |
import android.app.ProgressDialog; | |
import android.content.Intent; |
View gist:4f71f9b615f8ea49b083
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
private boolean checkPassword() { | |
boolean isResult = true; | |
if (mFirstName.getText().toString().isEmpty() || mFirstName.getText().toString().length() < 2) { | |
isResult = false; | |
mFirstName | |
.setBackgroundResource(R.drawable.rededittext_edit_text_holo_light); | |
} else { | |
mFirstName | |
.setBackgroundResource(R.drawable.greenedittext_edit_text_holo_light); |
NewerOlder