- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 1966 Articles for Apps/Applications
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
314 Views
This example demonstrates how to create Android Hello World App.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. Step 3 − Add the following code to src/MainActivity.javapackage com.example.sample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }Step 4 − Add the following code to Manifests/AndroidManifest.xml ... Read More
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
6K+ Views
This example demonstrates how to Justify Text in TextView on 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. Step 3 − Add the following code to src/MainActivity.javapackage com.example.sample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }Step 3 − Add the following code to Manifests/AndroidManifest.xml ... Read More
![Sadiqaadil](https://www.tutorialspoint.com/articles/images/user_icon.png)
217 Views
In this post we will learn how to open website in iOS browser.We will open Facebook in iOS browser.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “OpenBrowser”Step 2 − Open Main.storyboard and add a button as shown below. I have given the button title as “Open Facebook”Step 3 − Attach one @IBAction function in ViewController, name it openBrowserStep 4 − In openBrowserFunction write the code to open URL like shown below@IBAction func openBrowsere(_ sender: Any) { let url = URL(string: "https://www.facebook.com")! if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], ... Read More
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
2K+ Views
This example demonstrates how to change action bar size 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/values/styles.xml @color/colorAccent @color/colorPrimary @color/colorAccent 36dip Step 3 − Add the following code to res/layout/activity_main.xml. Step 4 − Add the following code to src/MainActivity.javapackage com.example.sample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends ... Read More
![Sadiqaadil](https://www.tutorialspoint.com/articles/images/user_icon.png)
947 Views
In this post we will learn how to open app store from iOS application.In this example we will open app store and show Facebook app on store. You can open your app if you want just by changing the ID to your app id.Lets do it.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “OpenAppStore”Step 2 − Open Main.storyboard and add a button as shown below.Step 3 − Attach one @IBAction for the button for click event. Name the function as openAppstoreClicked.Step 4 − In openAppstoreClicked we will write the code to open ... Read More
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
1K+ Views
This example demonstrates how to read value from string.xml 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/values/strings.xml Sample Test string Step 3 − Add the following code to res/layout/activity_main.xml Step 4 − Add the following code to src/MainActivity.javapackage com.example.sample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } }Step ... Read More
![Sadiqaadil](https://www.tutorialspoint.com/articles/images/user_icon.png)
2K+ Views
In this post we will be seeing how to make phone in iOS programmatically.So let’s get started.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “MakeCall”Step 2 − Open Main.storyboard and add one text field and one button as shown belowStep 3 − Create @IBOutlet for the text field, name it phoneNumberTextfield.Step 4 − Create @IBAction method callButtonClicked for call buttonStep 5 − To make a call we can use iOS openURL. In callButtonClicked add following linesif let url = URL(string: "tel://\(phoneNumberTextfield.text!)"), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], completionHandler: nil)Step 6 − Run the ... Read More
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
1K+ Views
This example demonstrates how to declare global variables 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. Step 3 − Add the following code to src/MainActivity.javapackage com.example.sample; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { TextView tvEvent; @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ... Read More
![Sadiqaadil](https://www.tutorialspoint.com/articles/images/user_icon.png)
2K+ Views
In this post we will learn how to fetch and show the iOS build and version numberStep 1 − Open Xcode → New Project → Single View Application → Let’s name it “ShowBuildAndVersion”Step 2 − Open Main.storyboard and add two labels as shown below.Step 3 − Attach @IBOutLets for the two labels@IBOutlet weak var buildLabel: UILabel! @IBOutlet weak var versionLabel: UILabel!Step 4 − Change the build and version from project settings.Step 5 − In viewDidLoad of ViewController get the build and version number for infoDictionary of main bundle. Show it on the corresponding labels.override func viewDidLoad() { super.viewDidLoad() ... Read More
![Azhar](https://www.tutorialspoint.com/assets/profiles/124637/profile/60_166181-1565938637.jpg)
2K+ Views
This example demonstrates how to create a transparent 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/values/styles.xml. #33000000 true @android:color/transparent @null true @android:style/Animation Step 3 − Add the following code to res/layout/activity_main.xml. Step 4 − Add the following code to src/MainActivity.javapackage com.example.transparentactivity; import android.support.v7.app.AppCompatActivity; ... Read More