Apps/Applications Articles

Page 115 of 148

Client-Server Programming in Android

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 7K+ 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

Sending and Receiving Data with Sockets in android

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 22K+ 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

How to Use WiFi Direct on Android?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 2K+ 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

What are some hidden features of Google Drive?

Anuradha Nanda
Anuradha Nanda
Updated on 30-Jul-2019 285 Views

To enjoy the facilities of Google Drive all you need is to have an email account with Google or have a Gmail account. Google Drive can also be accessed online through your Google account or simply set up a new account by using the Create Account link on the sign-in page. Given below are the best features offered by Google Drive that are too hard to miss.These are as followsBackup anything: The cloud storage service lets you store all your irreplaceable photos, files, and documents. In fact attachments from Gmail can be directly saved to the drive. One can backup up ...

Read More

Why is a smartphone called smart?

Anuradha Nanda
Anuradha Nanda
Updated on 30-Jul-2019 923 Views

Why is a smartphone called smart? A very common question strikes our head every now and then when we hear- Smartphone? Well, why not? From internet browsing to road navigations and doing every possible thing online, it has really made our life easier. I don’t think the present smart phone addicted mankind can survive even a single day without its smartphones.What A Smartphone Can DoThese phones are no different than a mini computer. Very much similar to computers, these smartphones also runs on operating systems as well as there are different applications for performing specific tasks in it. Each app is ...

Read More

Is Flutter a stable platform to develop cross platform application?

Sashi K
Sashi K
Updated on 30-Jul-2019 262 Views

Flutter is an open source mobile app development kit from Google. It works with the existing code and is an excellent SDK (Software Development Kit) to develop iOS and Android programs. It is cost effective and eases the complexity of developing iOS and Android apps. It is primarily used for creating an application in Google Fuchsia.The main advantage of Flutter is that a lot of code can be shared between platforms. Without writing platform-specific code, the developers can use it to develop applications for Android and iOS alike. Being an Open source SDK, it makes every application look like a ...

Read More

Difference between Parcelable and Serializable in android

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 4K+ Views

This example demonstrates about Difference between Parcel able and Serializable in androidSerializableSerializable is a markable interface or we can call as an empty interface. It doesn’t have any pre-implemented methods. Serializable is going to convert an object to byte stream. So the user can pass the data between one activity to another activity. The main advantage of serializable is the creation and passing data is very easy but it is a slow process compare to parcelable.A simple example of serializable as shown below –import java.io.Serializable; class serializableObject implements Serializable {    String name;    public serializableObject(String name) {     ...

Read More

How to create our own Listener interface in android?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 1K+ Views

This example demonstrate about How to create our own Listener interface 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.     In the above code, we have taken text view to show listener data.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.View; import android.widget.TextView; public class MainActivity extends FragmentActivity implements sampleInterFace {    sampleInterFace interFace;    TextView textView;    @Override    public void onCreate(Bundle savedInstanceState) ...

Read More

How to dynamically update a ListView on Android

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 526 Views

This example demonstrates How to dynamically update a ListView 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.     In the above code, we have taken listview.Step 3 − Add the following code to src/MainActivity.javaHow to dynamically update a ListView on AndroidLet's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from android studio, open one of your project's ...

Read More

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

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 2K+ 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
Showing 1141–1150 of 1,475 articles
« Prev 1 113 114 115 116 117 148 Next »
Advertisements