Professional Documents
Culture Documents
APPLICATION
CONTENTS
SL.NO PARTICULARS PAGE.NO
1 Abstract 2
2 Introduction 3
3 Types of Mobile Apps 4
4 The Development Process 5
5 Requirement Specifications 6
6 Technology used 7
7 The App – Clips Holder 9
8 Source Code 11
9 Project Screenshot 15
10 Conclusion 18
11 References 19
1. ABSTRACT
The given mini project explores about the core basics of mobile application development
with a successful demonstration of clipboard activity application incorporating copy text and
paste text functionalities.Every day the new devices are incoming to the market with
innovative options because of the growing technology. The evolution of mobile application
development technology with new devices made our lives much easier. In the smartphone
world, simply having a running web site is not enough. Regarding a recent study, it has
shown that about 45% and more of Google search happens using smartphones. The
smartphone is set to become ever more central in the everyday life of the consumer. Mobile
commerce is growing quickly, taking a significant share of overall retail sales and we will
soon see mobile overtake the laptop as the preferred device for browsing and shopping
online. The smartphone is set to become ever more central in the everyday life of the
consumer. Thus, there is the huge demand of mobile programmers and professional in future.
2. INTRODUCTION
Mobile Programming is the process of making software for smartphones and digital
assistants, most commonly for Android and iOS. The software can be preinstalled on the
device, downloaded from a mobile app store or accessed through a mobile web browser. The
programming and markup languages used for this kind of software development include Java,
Kotlin, Swift, C# and HTML5, CSS and JavaScript etc.
By the end of 2023, perception of smartphones among adults in developed countries will
surpass 90 per cent according to survey Smartphone sales will reach 1.85 billion per year in
2023, a 19 per cent increase over 2018 and equivalent to over five million units sold per day.
In the next five years we will see more innovative technology being built into our
smartphones such as facial recognition, artificial intelligence and enhanced connectivity,
software and memory. In the next ten years, we will see a growing industry around end-to-
end services that consolidate and manage different, but connected elements of a consumer
experience.
Before developing an app, you need to determine which type you'll be creating. Here's a
breakdown of several types of mobile app development technologies with information about
each.
Based on purpose and its use mobile apps can be divided into many types such as:
1. Mobile gaming applications
2. Educational mobile applications.
3. Business or productivity applications
4. M-commerce applications
5. Lifestyle applications
6. Entertainment applications
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
K.C.T COLLEGE OF ENGINEERING KALABURAGI
CLIP’S HOLDER MOBILE 5
APPLICATION
7. Travel applications
8. Utility applications
The above figure shows about the different stages in the mobile application development
process
1. Strategy building
2. Planning
3. Design
4. App development
5. Testing
6. Deployment
5. REQUIREMENT SPECIFICATIONS
SOFTWARE REQUIREMENTS:
Android Studio.
OPERATING SYSTEM:
PLATFORM REQUIREMENTS:
Java JDK..
Java Components.
HARDWARE REQUIREMENTS:
6. TECHNOLOGY USED
JAVA
SQLite Database
Android Studio
Android provides the library of ClipboardManager and ClipData and ClipData.item to use the
copying and pasting framework.In order to use clipboard framework, data needs to be put
into clip object, and then put that object into system wide clipboard. The clip object can take
one of three forms:
1. Text
A text strings. You put the string directly into the clip object, which you then put onto the
clipboard. To paste the string, you get the clip object from the clipboard and copy the
string to into your application's storage.
2. URI
A Uri object representing any form of URI. This is primarily for copying complex data
from a content provider. To copy data, you put a Uri object into a clip object and put
the clip object onto the clipboard. To paste the data, you get the clip object, get
the Uri object, resolve it to a data source such as a content provider, and copy the data
from the source into your application's storage.
3. Intent
An Intent. This supports copying application shortcuts. To copy data, you create an
Intent, put it into a clip object, and put the clip object onto the clipboard. To paste the
data, you get the clip object and then copy the Intent object into your application's
memory area.
Copying data
The next thing to be done is to instantiate the ClipData object by calling the respective type
of data method of the ClipData class. In case of text data , the newPlainText method will be
called. After that you have to set that data as the clip of the Clipboard Manager object.
Pasting Data
In order to paste the data, we will first get the clip by calling the getPrimaryClip() method.
And from that click we will get the item in ClipData.Item object. And from the object we will
get the data.
The clipboard holds only one clip object at a time. When an application puts a clip
object on the clipboard, the previous clip object disappears.
If You want to allow paste data in your app, then you don’t need to handle all types of
data. You can example the clipboard data, before giving an option to app users.
Clip object also contains Metadata, which has what MIME type or types are available.
This Metadata helps you handle data.
If you have an application that primarily handles text, you may want to ignore clip
objects that contain a URI or Intent.
8. SOURCE CODE:
XML FILE:
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="104dp"
android:layout_marginTop="52dp"
android:text="ClipBoard Activity"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/TxtCopy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="40dp"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
<EditText
android:id="@+id/TxtPaste"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="28dp"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/TxtCopy" />
<Button
android:id="@+id/BtnCopy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="60dp"
android:text="Copy"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/TxtPaste" />
<Button
android:id="@+id/BtnPaste"
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
K.C.T COLLEGE OF ENGINEERING KALABURAGI
CLIP’S HOLDER MOBILE 14
APPLICATION
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="76dp"
android:layout_marginTop="64dp"
android:text="Paste"
app:layout_constraintStart_toEndOf="@+id/BtnCopy"
app:layout_constraintTop_toBottomOf="@+id/TxtPaste" />
</androidx.constraintlayout.widget.ConstraintLayout>
JAVA CODE:
package com.example.program7b;
import androidx.appcompat.app.AppCompatActivity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
t2=findViewById(R.id.TxtPaste);
b1=findViewById(R.id.BtnCopy);
b1.setOnClickListener(this);
b2=findViewById(R.id.BtnPaste);
b2.setOnClickListener(this);
myClipboard= (ClipboardManager)getSystemService(CLIPBOARD_SERVICE);
}
public void onClick(View v)
{
if(v.equals(b1))
{
ClipDatamyClip;
String data = t1.getText().toString();
myClip = ClipData.newPlainText("text", data);
myClipboard.setPrimaryClip(myClip);
Toast.makeText(getBaseContext(),"Copied..",Toast.LENGTH_LONG).show();
}
else if(v.equals(b2))
{
ClipDataabc = myClipboard.getPrimaryClip();
ClipData.Item item = abc.getItemAt(0);
t2.setText(item.getText().toString());
}
}
}
9. PROJECT SCREENSHOT
10. CONCLUSION
The clips holder holds its information until you cut or copy something else or log out of the
computer. For example, a user may copy information from a word processor and paste it into
an e-mail message. If the user pastes from the clips holder multiple times, the same
information is pasted repeatedly.
11. REFERENCES
Reference Books: