Skip to content

Instantly share code, notes, and snippets.

View bkhezry's full-sized avatar
🏠
Working from home

Behrouz Khezry bkhezry

🏠
Working from home
View GitHub Profile
@bkhezry
bkhezry / BaseSliderView.java
Created January 13, 2015 12:59
AndroidImageSlider Replace Picasso with Universal Image Loader
package com.daimajia.slider.library.SliderTypes;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.daimajia.slider.library.R;
import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator;
@bkhezry
bkhezry / activity_main.xml
Last active August 5, 2016 13:47
declare activity layout in MaterialDrawer library.
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"

Keybase proof

I hereby claim:

  • I am bkhezry on github.
  • I am bkhezry (https://keybase.io/bkhezry) on keybase.
  • I have a public key whose fingerprint is 4B45 63C2 F921 7374 B057 F7A8 DDD2 E1B0 FFAA FC95

To claim this, I am signing this object:

@bkhezry
bkhezry / proguard-rules.pro
Last active September 2, 2020 15:50
Proguard rules for popular libraries.
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\bkhezry\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
@bkhezry
bkhezry / README.md
Created October 2, 2016 21:42
upload image and additional parameter in android with Fast Android Networking Library to Web Service (asmx)
-----------------------------------com.example.Example.java-----------------------------------
package com.example;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Example {
@SerializedName("user")
/**
* Persian Calendar see: http://code.google.com/p/persian-calendar/
Copyright (C) 2012 [email protected]
PersianCalendar.java
Persian Calendar 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.
@bkhezry
bkhezry / styles.xml
Created June 26, 2018 10:55
change NumberPicker theme
<resources>
<style name="NumberPickerStyle" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:textColorPrimary">#000000</item>
</style>
</resources>
<title>Shuffle</title>
<meta name="description" content="Shuffle is the easiest way to listen to the Persian music you love. Totally free.">
<script>!function(e,t,a,n,g){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],r=t.createElement(a);r.async=!0,r.src="https://www.googletagmanager.com/gtm.js?id=GTM-NM4T2VK",m.parentNode.insertBefore(r,m)}(window,document,"script","dataLayer")</script><link href="/opensearch.xml" rel="search" title="shuffle" type="application/opensearchdescription+xml"><meta name="google" content="notranslate"><link href="/static/css/main.b9b045b9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NM4T2VK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.21011b5d.js"></script></body><script async src=
1-28 13:02:11.695 4664-5179/? E/ImageLoader: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x67d71af8: Failure in SSL library, usually a protocol error
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x5dc84d5c:0x00000000)
javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x67d71af8: Failure in SSL library, usually a protocol error
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x5dc84d5c:0x00000000)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:448)
at com.android.okhttp.Connection.upgradeToTls(Connection.java:146)
at com.android.okhttp.Connection.connect(Connection.java:107)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(