What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 20:15:21
input edittext in android dialog
final View view = layoutInflater.inflate(R.layout.xml_file_created_above, null); AlertDialog alertDialog = new AlertDialog.Builder(ct).create(); alertDialog.setTitle("Your Title Here"); alertDialog.setIcon("Icon id here"); alertDialog.... Add solution -
C# 2022-02-19 13:25:03
xamarin native display alert android
TaskCompletionSource<bool> taskCompletionSource; taskCompletionSource = new TaskCompletionSource<bool>(); Android.App.AlertDialog.Builder dialog = new AlertDialog.Builder(MainActivity.Instance); AlertDialog alert = dialog.Create(); alert.SetT... Add solution -
Java 2022-02-19 05:40:02
alert dialoge disappears in android after next page call
public void OnClickNearMe(View view) { LocationManager locManager = (LocationManager) getSystemService(LOCATION_SERVICE); if (!locManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){ createGpsDisabledAlert(); } else { ... Add solution -
Java 2022-01-31 09:31:33
code to close dialog containg layout
AlertDialog.Builder builder = new AlertDialog.Builder(this); LayoutInflater inflater = getLayoutInflater(); View dialogView = inflater.inflate(R.layout.brush_opts_dialog,null); builder.setView(dialogView); closeBtn = (Button)dialog... Add solution -
Java 2021-10-29 00:02:08
show confirmation dialog java android
public void onDeleteClick(View v) { int i = Integer.parseInt((String)v.getTag()); AlertDialog.Builder alert = new AlertDialog.Builder(AddressListActivity.this); alert.setTitle("Delete"); alert.setMessage("Are you sure you w... Add solution -
Other 2021-10-27 01:03:11
get location permission forcefully
public static final int MY_PERMISSIONS_REQUEST_LOCATION = 99; public boolean checkLocationPermission() { if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTE... Add solution -
Java 2021-10-24 01:44:10
dialog with edittext android
AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this); alertDialog.setTitle("PASSWORD"); alertDialog.setMessage("Enter Password"); final EditText input = new EditText(MainActivity.this); LinearLayout.Layout... Add solution -
Other 2021-10-21 23:12:07
input dialoge validation in android
AlertDialog.Builder builder = new AlertDialog.Builder(YourActivity.this); builder.setCancelable(false) .setMessage("Please Enter data") .setView(edtLayout) //<-- layout containing EditText .setPositiveButton("Enter", new DialogInter... Add solution
Best helpers
Ranking is empty