
Camera
Snippet options
Download: Download snippet as camera.java.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!
ComentarioLibre.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { AlertDialog.Builder builder = new AlertDialog.Builder(AnomaliasActivity.this); LayoutInflater inflater = getLayoutInflater(); View layout = inflater.inflate(R.layout.comentario_libre, null); builder.setView(layout); builder.setTitle("Comentario Libre"); builder.setMessage("Aqui su comentario..."); builder.setPositiveButton("Guardar", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { //Insertamos Comentario Libre en lecturas Toast.makeText(AnomaliasActivity.this, "El Comentario: "+ComLibLay.getText().toString(), Toast.LENGTH_LONG).show(); } }); builder.setNegativeButton("Cancelar", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); AlertDialog dialogo = builder.create(); dialogo.show(); } });
Create a free my code stock.com account now.
my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!
Find out more and register nowYou can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.