Posts

Showing posts from 2020

speen get data

public void user_spin() { progressDialog.show(); progressDialog.setCancelable( true ); progressDialog.setCanceledOnTouchOutside( false ); ApiInterface apiService = ApiClient.getApiService(); call_user_spin = apiService.user_spin( "Bearer " + loginPreferences.getToken(), user_deviceid, loginPreferences.getId(), loginPreferences.getUserAppId()); call_user_spin.enqueue( new Callback<UserSpinResponceModel>() { @Override public void onResponse(Call<UserSpinResponceModel> call, Response<UserSpinResponceModel> response) { progressDialog.dismiss(); if (response.isSuccessful()) { Log.i(TAG, "user_start called for userSpinResponceModel : " + new Gson().toJson(response.body())); UserSpinResponceModel userSpinResponceModel = response.body(); if (userSpinResponceModel.getSuccess() == 1 ) { final int min = 4 ; ...

retrofil gjstatus lanuage

  implementation 'com.squareup.retrofit2:retrofit:2.5.0'     implementation 'com.squareup.retrofit2:converter-gson:2.5.0'     implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1' public class ApiClient {     public static String BASE_URL = "https://sktechnocastt.000webhostapp.com/";     private static Retrofit retrofit = null;     public static Retrofit getClient(Context context) {         if (retrofit == null) {             HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();             interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);             OkHttpClient httpClient = new OkHttpClient.Builder()                     .connectTimeout(30, TimeUnit.SECONDS)                   ...

retrofit2 parth

implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.5.0' implementation 'com.google.code.gson:gson:2.8.5' import android.content.Context; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.util.concurrent.TimeUnit; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class ApiClient { public static String BASE_URL = "https://sktechnocastt.000webhostapp.com/mobilecash/" ; // public static String BASE_URL = "http://192.168.43.198/mobilecash/"; private static Retrofit retrofit = null ; public static OkHttpClient client = new OkHttpClient.Builder() .cache( null ) .connectTimeout( 30 , TimeUnit.SECONDS) .writeTimeout( 30 , TimeUnit.SECONDS) .readTimeout( 30 , TimeUnit.SECONDS) ...

login sun

package com.sunil.hp.gjstatus.login_registration; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.net.ConnectivityManager; import android.net.Uri; import android.os.Build; import android.provider.MediaStore; import android.support.v4.content.res.ResourcesCompat; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.percent.PercentLayoutHelper; import android.support.percent.PercentRelativeLayout; import android.text.TextUtils; import android.util.Base64; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; i...