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.vasanth.restapiapplication.httprestapi; | |
import java.util.Map; | |
/** | |
* Http Client Api. | |
* <p> | |
* 1. Responsibility. | |
* 1.a. Interface defines Common HTTP Methods. | |
* 1.b. Hence we need to implement this interface using some HTTP client (like Volley, Retrofit etc) and |
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.vasanth.restapiapplication.httprestapi.volley; | |
import android.content.Context; | |
import com.android.volley.Request; | |
import com.vasanth.restapiapplication.httprestapi.HttpClientApi; | |
import java.util.Map; | |
/** |
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.vasanth.restapiapplication.httprestapi.volley; | |
import android.content.Context; | |
import com.android.volley.Request; | |
import com.android.volley.RequestQueue; | |
import com.android.volley.toolbox.Volley; | |
/** | |
* Volley Singleton. |
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.vasanth.restapiapplication.httprestapi.volley; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.DefaultRetryPolicy; | |
import com.android.volley.NetworkError; | |
import com.android.volley.Response; | |
import com.android.volley.TimeoutError; | |
import com.android.volley.VolleyError; | |
import com.android.volley.toolbox.StringRequest; | |
import com.vasanth.restapiapplication.httprestapi.HttpClientApi; |
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.vasanth.restapiapplication; | |
import android.app.Application; | |
import com.vasanth.restapiapplication.httprestapi.HttpClientApi; | |
import com.vasanth.restapiapplication.httprestapi.volley.VolleyHttpRestApiImpl; | |
/** | |
* Rest Api Application. | |
* <p> |
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.vasanth.restapiapplication; | |
import android.app.ProgressDialog; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.Toast; | |
import com.vasanth.restapiapplication.httprestapi.HttpClientApi; |
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.vm.trinity.common.ui; | |
import android.annotation.TargetApi; | |
import android.graphics.Canvas; | |
import android.graphics.pdf.PdfDocument; | |
import android.os.AsyncTask; | |
import android.os.Build; | |
import android.util.Log; | |
import android.view.View; |