Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!npeer.as286.net!npeer-ng0.as286.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.mobile.android Subject: Re: how to get view to alertdialog? Date: Thu, 27 Jun 2024 16:21:58 +0200 Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net U6k3++WUgaeY3yqAxFs7mwPC/H22BfZseI8RstFFHW712QX+oG Cancel-Lock: sha1:b1Vym1SmB3ggyLRArjlhL2LhGKo= sha256:q4PYNv/KhJz12akrSiUEWPRqP2lTy2aw0BA054taMWc= Content-Language: de-DE In-Reply-To: Bytes: 1649 Jakub, 2024-06-27 12:58: > I have this for sho alert Dialog > > val adBuilder = AlertDialog.Builder(view.context) > > > val alertDialog = adBuilder.setCancelable(false) > .setView(R.layout.addnewwpos) > .setNegativeButton("CANCEL") { > dialogInterface, _ -> dialogInterface.cancel() > ZUtils.hideKeyBoard(view, inputMethodManager) > MainActivity.showDialogAddPositionOpen = false > } > .setPositiveButton("OK", null) > .create() > > alertDialog.show() > > alertDialog.window?.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) > > how to get view to alertdialog? There is no view. Dialogs are based on fragments. What is the goal you want to achieve here? -- Arno Welzel https://arnowelzel.de