Keystore Lost in Android

/

Today we discuss above android Keystore or JKS (Java KeyStore)file. This is a general question, Every  Android Developer should know about. What is a Keystore file, and what is it used for?Use the Android Keystore provider to let an individual app store its own credentials that only the app itself can access. This provides a way for …

Custom Time Picker in Android

/

  MainActivity.Java package com.abhay.myapplication; import android.app.Dialog; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.NumberPicker; import java.util.Calendar; public class MainActivity extends AppCompatActivity {          Button b;     static Dialog d ;     final Calendar c = Calendar.getInstance();     final int hour = c.get(Calendar.HOUR_OF_DAY);     final …

Custom Year Picker in Android

/

  MainActivity.java import java.util.Calendar; import android.app.Activity; import android.app.Dialog; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.NumberPicker; public class MainActivity extends Activity { Button b; static Dialog d ; int year = Calendar.getInstance().get(Calendar.YEAR); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); b = (Button) findViewById(R.id.year); b.setText(“”+year); b.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) …