Wednesday, January 30, 2019

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