Samual Sam has Published 2310 Articles

How to send an attachment in email using Swift?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 05:44:32

623 Views

To send an email from our iPhone device using our application we need to import the MessageUI framework of iOS SDK. After importing the framework in your application, drag and drop a button on the view controller. Add empty action for that button.Now add the following code in your view ... Read More

Capture picture from iOS camera using Swift

Samual Sam

Samual Sam

Updated on 30-Jun-2020 05:35:25

3K+ Views

To capture pictures from a camera in swift we can use AVFoundation which is a framework in iOS SDK, but we should try to avoid using it until we need a lot of custom features in our camera application. In this example, we’ll only capture a picture from the camera ... Read More

How to remove duplications from arraylist using linked hashset for listview in Android?

Samual Sam

Samual Sam

Updated on 29-Jun-2020 15:55:58

152 Views

This example demonstrate about How to remove duplications from arraylist using linked hashset for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to insert element to linked list for listview in Android?

Samual Sam

Samual Sam

Updated on 29-Jun-2020 15:54:26

362 Views

This example demonstrate about How to insert element to linked list for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

How to delete element from linked list for listview in Android?

Samual Sam

Samual Sam

Updated on 29-Jun-2020 15:52:32

482 Views

This example demonstrate about How to delete element from linked list for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.       ... Read More

How to delete all elements from linked list for listview in Android?

Samual Sam

Samual Sam

Updated on 29-Jun-2020 15:50:38

143 Views

This example demonstrate about How to delete all elements from linked list for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

Get the intersection of two sets in Java

Samual Sam

Samual Sam

Updated on 29-Jun-2020 08:07:56

15K+ Views

To get the intersection of two sets, use the retainAll() method. Here are out two set −First set −HashSet set1 = new HashSet (); set1.add("Mat"); set1.add("Sat"); set1.add("Cat");Second set −HashSet set2 = new HashSet (); set2.add("Mat"); set2.add("Cat"); set2.add("Fat"); set2.add("Hat");Get the intersection −set1.retainAll(set2);The following is an example to get the ... Read More

Swing Animation Effect with CSS

Samual Sam

Samual Sam

Updated on 29-Jun-2020 08:00:14

723 Views

The swing animation effect move or cause to move back and forth or from side to side while suspended or on an axis to an element.ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);       ... Read More

Flatten the color depth with CSS

Samual Sam

Samual Sam

Updated on 29-Jun-2020 07:15:42

295 Views

To flatten the color depth, you need to create an X-Ray.The following parameter is used in this filter −S.NoParameter & Description1XrayGrayscales and flattens the color depth.ExampleYou can try to run the following code to create an X-Ray effect −Live Demo                   CSS Tutorials    

Format Month in MM format in Java

Samual Sam

Samual Sam

Updated on 29-Jun-2020 05:50:56

1K+ Views

The MM format is for months in two-digits 01, 02, 03, 04, etc. Here, we will use the following.SimpleDateFormat("MM");Let us see an example −// displaying month in MM format SimpleDateFormat simpleformat = new SimpleDateFormat("MM"); String strMonth = simpleformat.format(new Date()); System.out.println("Month in MM format = "+strMonth)Above, we have used the SimpleDateFormat ... Read More

Advertisements