Thursday, January 31, 2019

How to check email Address Validation in Android on edit Text

Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to determine if running on a rooted device or not in Android?

In some cases, we should not allow application should run on rooted devices for payment gateways. This example demonstrates how to determine if running on a rooted device or not.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


How to get Custom circle button in android?

Step 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/actiivity_main.xml.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


What actually made Apple a trillion dollar company?

It’s been now 42 years when Steve Jobs, Steve Wozniak, and Ronald Wayne founded Apple Inc with a promise to keep revolutionizing lives and they have kept their promise too brilliantly until now. This is why they have done what other companies only wish to achieve. Congratulations Apple for setting another benchmark and bringing a significant change to the society through cutting-edge tech inventions.
However, it was never easy. Check out the story of infinite passion, nerve-wracking struggle, and the never yielding self-will.
  • Many people believe that Apple was founded only by Steve. Well, the reality is here. Apple was founded by three friends Steve Jobs, Steve Wozniak, and Ronald Wayne in April 1976 to develop and sell Wozniak’s Apple I, a personal computer. Interestingly, Apple was started on April fool’s day.
  • Before founding Apple, Steve jobs used to work for Atari.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


How to prevent going back to the previous activity in Android?

There are so many situations, where we should not call back action when user click on back button.
This example demonstrates how to integrate Android Login and register form.
Step 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/actvity_main.xml.

For more info go through our  :  https://www.tutorialspoint.com/index.htm  

Wednesday, January 30, 2019

How to reload activity in Android?

In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity in Android.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to remove onClickListener for a view in android?

In some situations, We should not allow onClickListener for a view. This example demonstrates how to remove onClickListener for a view in android.
Step 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/acitivity_main.xml.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to add shadow Effect for a Text in Android?

Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

Get Size of Java LinkedHashSet ?

First, set the LinkedHashSet and add elements:
LinkedHashSet<Integer> set = new LinkedHashSet<Integer>();
set.add(10);
set.add(20);
set.add(30);
set.add(40);
set.add(50);
set.add(60);
Display the size of the LinkedHashSet created above:
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to check email Address Validation in Android on edit Text

Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to determine if running on a rooted device or not in Android?

In some cases, we should not allow application should run on rooted devices for payment gateways. This example demonstrates how to determine if running on a rooted device or not.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

What actually made Apple a trillion dollar company?

It’s been now 42 years when Steve Jobs, Steve Wozniak, and Ronald Wayne founded Apple Inc with a promise to keep revolutionizing lives and they have kept their promise too brilliantly until now. This is why they have done what other companies only wish to achieve. Congratulations Apple for setting another benchmark and bringing a significant change to the society through cutting-edge tech inventions.
However, it was never easy. Check out the story of infinite passion, nerve-wracking struggle, and the never yielding self-will.
  • Many people believe that Apple was founded only by Steve. Well, the reality is here. Apple was founded by three friends Steve Jobs, Steve Wozniak, and Ronald Wayne in April 1976 to develop and sell Wozniak’s Apple I, a personal computer. Interestingly, Apple was started on April fool’s day.
  • Before founding Apple, Steve jobs used to work for Atari.
  • Steve Jobs and co-founder Steve Wozniak who share the same name “Steve” met when Jobs and Wozniak were 16 and 21 years old respectively.
  • Steve and Wozniak worked day and night to create their dream computer. This when they enjoyed a light moment after an exhausting day.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to prevent going back to the previous activity in Android?

There are so many situations, where we should not call back action when user click on back button.
This example demonstrates how to integrate Android Login and register form.
Step 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/actvity_main.xml.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to reload activity in Android?

In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity in Android.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to remove onClickListener for a view in android?

In some situations, We should not allow onClickListener for a view. This example demonstrates how to remove onClickListener for a view in android.
Step 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/acitivity_main.xml.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to set delay in android?

In some cases, after some time we need to update on UI to solve this problem, In this example demonstrate how to set a delay in android.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


How can I know when an EditText loses focus in Android?

Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to Dynamically Add Views into View in Android?

This example demonstrates How to Dynamically Add Views into View.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  



How to Rotate image in image view by an angle in Android?

This example demonstrates how to Rotate image in image view by an angle.
Step 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
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


How to prevent raw rice from being destroyed by termites?

Cereals like wheat, rice often get infected by pests like termites and other insects. It is thus significant to know the various ways and manners in which we can avoid this issue. This is how you can save your cereals:
1. Natural Ingredients: Use cloves, cardamom and cinnamon sticks in the jar of rice you have for storage. But do not add a few of these in kilos of rice. 12-15 pieces of these in 1 kg of rice should be a safe ratio.
2. Chemical Compound Addition: The other popular method is the use of boric acid. Boric acid is available in the form of powder or even tablets nowadays. Add it to the raw rice and thoroughly wash it before use.
3. Termites Saving Tablets: 'Paarad ki goli' is a traditional tablet available at pharmacist stores which are used to avoid the raw rice being spoilt by pests. Wash the rice properly, before use in this case too.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to wash a teddy bear at home?

Teddy bears are soft toys that must be handled with care. If one wishes to wash them at home, first of all, it has to be done gently using a mild liquid wash.

Steps To Wash Teddy Bear at Home

  1. Fill half a bucket of running tap water.2. Add 1 cup of mild liquid detergent like Safewash, Ezee in the bucket and give it a gentle swirling motion with your hand.
  2. Soak the dirty teddy bear for about 30 minutes.
  3. After 30 minutes, remove the teddy from water and soak in another bucket of clean running water.
  4. Repeat the dipping of a teddy bear in another batch of clean water.
  5. Dry it under a shade and never hang it with a plastic clip. Rather place it on a tablecloth on the floor.
  6. Keep changing its side from front to back so that it gets evenly dried up.
  7. Use a hair comb to arrange its fur.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

Why Dante is considered a great poet?

Dante was truly a great poet. A person of grim melancholy, bitter nature and great solace, he was the one who has given us the marvellous work of his- Divine Comedy. He died at the age of fifty-six and was buried in the city of Ravenna, but his writings make him immortal in our eyes.
Dante's poems were not merely poetic pieces, but they had the harmony of a melodious song. There was rhythm in his poems just like harmony in a song.

Great Works

All the information about him is available either through Divine Comedy or through the portrait of his. His unfathomable song, which is his poem himself, is a masterpiece and no one else could have written it with such magnanimous pictures of Hell, Heaven, and Purgatory. When one is reading about Hell, one feels horrified, while one feels blissful when one reads about Heaven. Thus, Dante has not only presented the Good looking things with clarity but also presented the evil looking things with the same lucidity.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


What made Shakespeare the greatest of all writers?

William Shakespeare was truly the greatest of all writers. Probably competing Shakespeare’s talent would be Milton and Dante, but no one else. He is not only a poet who is remembered for his life and works, but he is the one who is remembered for only the magnanimity and grandeur of his works.

This Is What Makes Him the Greatest of All

Versatility

He not only wrote tragedy but also a comedy with equal brilliance. Love stories like Romeo Juliet have given him yet another supremacy too. The King Lear’s plight, the loveliness of Cordelia, the loyalty of Kent, the evil nature of Goneril and Regan, the suspicion and the revenge of Othello, the innocence of Desdemona and what not! He was not only a writer but a portrait painter.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

In what ways are women breaking stereotypes?

Women of the contemporary times are not like the ones who used to be confined to the four walls of the house. They are rather breaking stereotypes and carving a niche for themselves. Not only the family which they belong to but they are making the whole country proud of them.

Stepping Out

Earlier women used to be strictly at home. No going out alone except something very urgent takes place. But now, women are moving ahead of men in career and what not!

Taking their Own Decisions

Age is no bar for a woman who wishes to do something. I have read an interview of a woman who married at the age of 54 because her husband died 2 years ago due to cancer and she could not take care of her health after that alone. Another woman teaches ballad dance to a group of 30 girls daily with all her poise at the age of 85 years.

New Professions

Earlier women used to engage themselves in art and craft, tailoring and weaving. But now women are even employed as cab drivers, bartenders police officers etc.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


As an HR of a company, what kind of attitude should I carry at work?

Human Resource manager or HR of a company holds quite a significant role in the overall functionality of the proceedings carried out in an organization. However, an HR sometimes may appear quite different in the other employees' depiction. So, why does it happen? Plainly because the responsibilities the HR person has to carry. But can it be done without being characterized? Here's the answer:

Attitude You Must Carry

  • Not To Be Too Close to Anyone In the Office: Human Resource Manager should be someone who alienates himself/herself in the office. This is because, HR is involved in dealing with leave applications, appraisal letters of various employees. The information of which should not be disclosed knowingly or unknowingly to anyone.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

Is it true that opportunity knocks only once?

It is a common saying that,” Opportunity seldom knocks twice.” But, it is a saying which I believe is subject to analysis on one’s own.

Opportunity Was for Once Only

Consider the scenario wherein a girl who wants to pursue her dreams of becoming an IAS Officer. Her parents want her to be settled in her life, but at the same time, they wish her to be married at the right age, as they say in India depending upon the religion she belongs to.
Upon much persuasion by her parents, the girl pleads with her parents to give her one single chance in order to live up to her dream of becoming an IAS officer. She gives her best shot, but to her dismay, she does not qualify the Interview of the process and she gets married as per her parent’s wishes.
In this case, the opportunity did not knock twice and she spent years thinking what would her life be had she qualified the examination in the second attempt, but life did not grant her the second attempt.

Opportunity Knocked Another Time

Consider the previous scenario with a bit of alteration, if the girl who got married, was blessed with a supportive husband who supported her in fulfilling her dreams by letting her study post marriage to become an IAS officer. In this case, in her second attempt, she qualified the examination- all stages and became an IAS officer.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  


Does over thinking cause depression?

While over thinking is a major cause of depression, it is also an after – effect. Imagine what would happen if you shut yourself in a room for days together, and just think about yourself; about your future; about your well being; about your state of mind in future and so on. What would happen then? Will you be able to go to a party or go for a movie? Probably No. In fact, you will feel listless and uninterested in anything.

Is Over Thinking the Only Cause of Depression?

While overthinking is one of the causes of depression, it is not the only cause of mood disorder. There may be other causes like hereditary factors, lack of pleasant company and so on. Is everyone who thinks a lot gets into the trap of depression?
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to Show and hide a View with a slide up/down animation in android?

This example demonstrate about how to Show and hide a View with a slide up/down animation in android.
Step 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.
For more info go through our  :  https://www.tutorialspoint.com/index.htm  

How to wash winter clothes at home dry rather than get them cleaned from the market?

Although, you can easily wash winter clothes at home if you know the right method because if handled by an amateur, things may go wrong and you end up damaging your favorite woolens.

What to Buy?

Nowadays, I see a number of mild liquid detergents Ezee, Safewash, etc. placed on the shelves of a super market close to my house. A few drops of such liquids are enough to get the job done.

Steps To Follow

  • Fill a half bucket with fresh running water. Do not fill it with warm water as it may lead to loosening of the fabric threads and even fading of the cloth's color.
  • Add Ezee or Safe wash or Genteel according to the number of clothes you are putting in. For half a bucket water, one lid of the bottle should be enough.
  • Soak the dirty winter clothes in that detergent mixture for 30 minutes.
For more info go through our  :  https://www.tutorialspoint.com/index.htm

Why is cow milk preferred over Buffalo milk by most fitness freaks?

Our grandmothers have been giving us various ‘Dadiji Ke Nuskhe’ since ages, most of which stick to the benefits of cow milk over buffalo milk and cow ghee over buffalo ghee.

Benefits of Cow Milk Over Buffalo Milk

  • Less Fattening: Cow milk tends to have a higher water content as compared to buffalo milk. This is because about 87 percent of cow milk is water. Due to this, it tends to be less fattening and also it induces less sleep than buffalo milk does. It is also proven to reduce obesity in children because it is low in cholesterol and calories. Statistics say that 100ml of cow’s milk contains 70Kcals whereas 100ml of buffalo’s milk contains 100Kacls.
  • Nutritious: Cow's milk is rich in a wide variety of minerals like Calcium, Vitamin D and Proteins. It is beneficial for healthy bones and teeth. Cow's milk also ensures protection from thyroid diseases and cardiovascular health.
  • For more info go through our  :  https://www.tutorialspoint.com/index.htm

How to make Android character by character display text animation?

This example demonstrate about How to make Android character by character display text animation.
Step 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 src/MainActivity.java
For more info go through our  :  https://www.tutorialspoint.com/index.htm


How do bats use sound to locate their prey?

Bats are mammals which use sound ways to locate their prey. They do so by a scientific technique called 'Echolocation'. This is because they are nocturnal mammals that have weak eyesight. They use their ears more than any other mammal.

Echolocation

  • It is defined as the use of sound waves and echoes to determine the location of objects in space. Bats use this mechanism for finding their food. Just as SONAR (Sound Navigation and Ranging) is used in case of big ships, and tanks, similarly, the emission of sound waves helps bat catch its prey.
  • Bats use ultrasonic waves (above 2000 hertz frequency) to catch their prey.
  • Most bats produce a complicated sequence of calls, combining Constant Frequencies and Modulating frequency components. Their sounds are reflected in the environment, hitting various objects and returning to the bat as echoes.
  • The echo signals enable the bat to judge the whereabouts of the surroundings and form some sort of mental image of it. Now, in order to reach its prey (about which a mental image has already been formed), bats continuously hurl and glide in curved flight trajectories, using large movements to propel themselves.
  • Not only a vague judgment exists, but Bats have some navigational ability to measure how fast the flight angle is changing as they approach their targeted prey also.
  • For more info go through our  :  https://www.tutorialspoint.com/index.htm


Who were the major rulers of Gupta Dynasty?

The Golden Age or The most flourishing age, Gupta Dynasty witnessed some of the greatest rulers in 320-550 CE.
  • Initiator: The Gupta Dynasty was started by Sri Gupta who ruled in c. late 3rd century (probably from 240-280 CE).
  • Ghatotkash: Srigupta’s son was Ghatotkash who does not have any major achievements to his name.
  • Chandragupta I: Ghatotkash was followed by Chandragupta I(320- 335 CE), who was the first sovereign ruler of this empire. He married Licchhavi Princess Kumaradevi, in order to expand his empire through whatever regions he received in the dowry. At the end of his reign, the boundary of the Gupta Empire had extended to Allahabad.
  • Samudragupta: Samudra Gupta was the successor of Chandragupta I. He was not his eldest son but by far the most competent amongst them all by proving himself to be a military genius, a great conqueror and a most successful commander. He remained undefeated throughout his life, so Dr. V.A. Smith has called him ‘Indian Napolean’. He conquered the territories of the rulers of the Ganges-Yamuna-Doab, but not by obtaining in dowry as his father, but by winning in battle through his physical strength and the strength of his military empire.
  • Chandragupta II: Samudragupta’s successor Chandragupta II (380 – 414 CE) was a benevolent king, able leader, and skilled administrator. The proof of his benevolence is that many charitable institutions, orphanages, rest houses, and hospitals were opened during his reign. Administrative setup also got some change as the large kingdom of his was divided into smaller provinces and heads were appointed to take care of them. He extended the limits of his empire by marriage alliance and conquests( following the footsteps of his earlier predecessors-Samudragupta and Chandragupta I).
  • Kumaragupta I (412-454 A.D.) He did not achieve any military success, and Hunas attacked in his reign.
  • For more info go through our  :  https://www.tutorialspoint.com/index.htm


What is more important in today's world qualification or soft skills?

There is no denying in the fact that both qualification and soft skills are essential to move forward in our journey of life nowadays. Nobody can admit that only one out of these is sufficient and if someone, by chance feels so, he or she is mistaken.

Importance of Qualification

  • Our qualification plays a major role in case there is a job that requires candidates with M.B.A. or B.Tech. Now, how can someone, who does not have these degrees get a job there? A good qualification improves our chances of secure and settled life in the future.
  • A good qualification is a must nowadays. Qualification or Hard skills can be easily learned from the classroom, books, or training materials. It can easily be developed from a higher level of IQ.
For more info go through our  :  https://www.tutorialspoint.com/index.htm