Found 1966 Articles for Apps/Applications

How to detect iOS device UDID, Name, Version, Model by programmatically?

Nishtha Thakur
Updated on 30-Jul-2019 22:30:25

2K+ Views

Device UDID stands for Unique device identifier. Every iOS Device has UDID which is a sequence of 40 letters and numbers that is guaranteed to be specific to your device.Device name is generally a name which will find in the device Setting→ General→ About.iOS Version is the version on which your current iPhone runs, latest iOS version in 12.2iOS Model describes whether the iOS device which user is using is an iPhone/iPad.Now will see how to detect UDID, Name, Version and Model programatically.Open Xcode → New Project and add the below code in ViewController’s viewDidLoad method.override func viewDidLoad() {   ... Read More

How to get device make and model on iOS?

Smita Kapse
Updated on 30-Jul-2019 22:30:25

2K+ Views

When we talk about the device make, we refer to the Phone manufacturer (e.g. Apple, Samsung, Nokia and so on) and device model is generally the specific product such as iPhone, iPad/TAB etc.Any mobile devices will be categorized using make and model only.Now let’s understand how do I get device make and model in iOS?There are two ways to get make and model the first way is to directly open your iOS device, navigate to setting, tap on general and in the about section you can find the details of your iOS deviceThe second way is getting make and model ... Read More

Aligning two buttons vertically in iOS

Anvi Jain
Updated on 30-Jul-2019 22:30:25

615 Views

Auto Layout is one the most important element when it comes to designing an iOS Application. UI development has become a lot more versatile and easier using Auto Layout.For Aligning two buttons vertically we will be using Auto Layout.So let’s get started!Step 1: Open Xcode → New Projecr → Single View Application → Let’s name it “AlignButtons”Step 2: Open Main.storyboard and add two buttons, name them button 1 and button 2.Step 3: Select both the buttons and align them vertically using the Add New Alignment Constraint menu.Step 4: Select both the buttons tap on Add new constraints and set it ... Read More

How to align views at the bottom of the screen in iOS

Nishtha Thakur
Updated on 30-Jul-2019 22:30:25

1K+ Views

The recommended way and the modern way is to do using constraint. We will be using constraint to align the views at the bottom of the screen.Step 1: Open Xcode → New Projecr → Single View Application → Let’s name it “ViewAlignment”I’ll be using UIView, but you can use any UI component following the same steps.Step 2: Open Main.storyboard change the background color of ViewController (this we are doing for better understanding) and add UIView.Step 3: Add Constraints − Click on UIView → Add new constraints.While giving constraints we need to keep in mind 4 parameters, Xaxis, Yaxis, Height and ... Read More

While developing an iOS application you might have got a scenario where you require to send a text message and you would be baffling around with Why? How? And What?

Smita Kapse
Updated on 30-Jul-2019 22:30:25

71 Views

In this tutorial we will be focussing on how to send text message from your iOS application in Swift, where we will be sending a text message from your user’s phone number. While we cannot do this directly without the content of your user’s but we can display a precomposed message for the user to send which user can modify later if he wants to.So let’s get started, We will be using “MFMessageComposeViewController” class object to display the standard message composition interface inside your application.Before we present the composition interface, we will populate the fields with the basic initial message ... Read More

How to Use WiFi Direct on Android?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

1K+ Views

This example demonstrate about How to Use WiFi Direct on 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.     Step 3 − Add the following code to src/WifiDirectBroadcastReceiverpackage com.example.myapplication; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.p2p.WifiP2pManager; import android.widget.Toast; public class WifiDirectBroadcastReceiver extends BroadcastReceiver {    WifiP2pManager wifiP2pManager;    WifiP2pManager.Channel channel;    MainActivity activity;    public WifiDirectBroadcastReceiver(WifiP2pManager wifiP2pManager, WifiP2pManager.Channel channel, MainActivity activity) {       this.wifiP2pManager = wifiP2pManager;     ... Read More

Sending and Receiving Data with Sockets in android

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:25

18K+ Views

This example demonstrate about Sending and Receiving Data with Sockets in androidNeed Server and Client ProjectServerStep 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.server.myapplication.server; import android.annotation.SuppressLint; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetAddress; ... Read More

Client-Server Programming in Android

Nitya Raut
Updated on 30-Jul-2019 22:30:25

5K+ Views

This example demonstrate about Client-Server Programming in AndroidNeed Server and Client ProjectServerStep 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.server.myapplication.server; import android.annotation.SuppressLint; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; ... Read More

How to Transfer Files Using Wi-Fi Pair Connection in Android?

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:25

959 Views

This example demonstrate about How to Transfer Files Using Wi-Fi Pair Connection in AndroidNeed Server and Client ProjectServerStep 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.server.myapplication.server; import android.annotation.SuppressLint; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; ... Read More

How to send data through wifi in android programmatically?

Nitya Raut
Updated on 30-Jul-2019 22:30:25

4K+ Views

This example demonstrate about send data through wifi in android programmaticallyNeed Server and Client ProjectServerStep 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.server.myapplication.server; import android.annotation.SuppressLint; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetAddress; ... Read More

Advertisements