Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

html alert box android

 String message = "<p>Thank you for watching this video!</p>" +
                "<p><b>My Website</b> : <a href="https://codingwithsara.com">Tap Here</a></p>";

        AlertDialog alertDialog = new AlertDialog.Builder(this)
                .setTitle("Hello")
                .setMessage(Html.fromHtml(message))
                .setPositiveButton("OK", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        // Do something
                    }
                })
                .show();
Comment

PREVIOUS NEXT
Code Example
Java :: debug in java 
Java :: how to find sum of the digit of the numbers in java 
Java :: set matrix zeros 
Java :: convert class to java 
Java :: java not equal to 
Java :: Java Exception handling using Java throw 
Java :: Syntax of how to create ArrayList in Java 
Java :: java set 
Java :: java array erstellen 
Java :: junit check class type 
Java :: scala vs java 
Java :: how to draw a triangle in java 
Java :: simple for loop 
Java :: java how to know if there is something on arguments 
Java :: Java How to use Map? 
Java :: traversing treemap in java 
Java :: and roid shape setCornerRadii 
Java :: java treemap 
Java :: java for loop with index 
Java :: new thrad java 
Java :: Calendar ranges java 
Java :: infinite value total 
Java :: pdf intent does not have permission to launch 
Java :: Task :run FAILED Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException: 
Java :: declare id in java 
Java :: How to initialize a 3d array in Java? 
Java :: types of methods in java 
Java :: current port used by the Java application 
Java :: java basic program 
Java :: Java Creating ArrayBlockingQueue 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =