Language Translator
Language Translator
ON
BLOCKCHAIN ADVANCE WEB DEVELOPMENT ANDROID
CYBER CRIME AND INTELLECTUAL PROPERTY RIGHTS
IN THE PROGRAMME
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)
SUBMITTED BY
DARSHAN PARMAR
B.SC. (IT)
SEMESTER VI
UNDER THE GUIDANCE OF
DR. VISHESH SHRIVASTAVA MR. MANISH KUMAR SINGH
MR. PRASHANT CHAUBEY DR. JANHAVI RAUT
ACADEMIC YEAR
2024 – 2025
DECLARATION
DARSHAN PARMAR
JOURNAL
ON
BLOCKCHAIN
IN THE PROGRAMME
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)
SUBMITTED BY
DARSHAN PARMAR
B.SC. (IT)
SEMESTER VI
UNDER THE GUIDANCE OF
MR. MANISH KUMAR SINGH
ACADEMIC YEAR
2024 – 2025
CERTIFICATE
4 Implementation of RSA.
Step 2: Create password in which you can enter the new password and confirm password and
then click on create a new wallet.
Step 3: Next select the secure wallet and watch the video tomlearn about your secret recovery
phrase and how to keep your wallet safe.
Step 7: 12-words secret recovery phrase matches and then Successful wallet creation is display.
Step 8: Successfully Install the Metamask and click on the Next and then Done.
Step 11: Click on the Settings and then Click on the Ethereum Mainnet.
Step 12: Click on the Show test network and then Add a custom network.
Network Name: Localhost 8545
Chain ID: 1337
Currency Symbol: ETH
Step 13: Click on the Default RPC URL and Add RPC URL.
Step 14: Enter the RPC URL take it from the Ganache and enter into it and click on the Add
URL.
RPC URL: HTTP://127.0.0.1:7545
Step 17: Click on the Add account or hardware wallet and click on add a new Ethereum account.
Step 18: Give the account name and click on Add Account.
Step 19: Finally your account is created.
Step 20: Import the account to get the balance and transfer between one account to another.
Step 21: Copy the private key from the Ganache and paste into it and click on the import.
Click on account →Add account or hardware wallet →Import account
After Importing the balance is shown 100 ETH.
Transfer the 50 ETH from Account 2 to Account 1
CODE:
import hashlib
def hashGenrator(data):
result=hashlib.sha256(data.encode())
return result.hexdigest()
class Block:
def _init_(self, data, hash, prev_hash):
self.data=data
self.hash=hash
self.prev_hash=prev_hash
class Blockchain():
def _init_(self):
hash_start=hashGenrator("abc_start")
hash_last=hashGenrator("abc_last")
def validateChain(self):
for i in range(1, len(self.chain)):
current_block = self.chain[i]
prev_block = self.chain[i - 1]
if current_block.prev_hash != prev_block.hash:
return False
return True
bc=Blockchain()
bc.addBlock('B1')
bc.addBlock('B2')
bc.addBlock('B3')
Output:
Output:
PRACTICAL 5:
AIM: Solidity Program Addition of Two Numbers.
// SPDX-License-Identifier: GPL-3.0
contract Test {
SEMESTER VI
UNDER THE GUIDANCE OF
MR. PRASHANT CHAUBEY
ACADEMIC YEAR
2024 – 2025
CERTIFICATE
CODE:
http.createServer(function(request, response){
response.write("<h1> HELLO TYBSCIT </h1>");
response.end();
}).listen(8090, function(){
console.log('Server running at http://127.0.0.1:8090/');
});
OUTPUT:
PRACTICAL 2:
AIM: Create a simple RESTful API with Express.js.
CODE:
const express= require('express');
const mysql= require('mysql');
const bodyparser = require('body-parser');
app=express();
db = mysql.createConnection({
host :'localhost',
user : 'root',
password :'student',
database :'students'
});
app.use(bodyparser.json());
db.connect(function(err){
if (err){
console.error(err);
return ;
}
console.log('Connection Established');
});
db.query('update student set name = ?, city = ?, addr = ? , pin = ? where student_id = ?',
[sname, scity, saddr, spin,sid] ,function(err, result){
if(err){
res.status(500).json({error: err.message});
return;
}
if(result.affectedRows === 0){
res.status(404).json({messsage: 'Table Data not updated'});
return;
}
res.status(200).json(result);
});
});
OUTPUT:
Inserting the data in table student.
Fetching all the data from the table.
CODE:
app.component.ts:
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
//imports: [RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent {
title = 'EventHandler';
msg=' ';
onC(){
this.msg="JAI SHREE RAM";
}
onH(){
this.msg="Har Har MAhadev";
}
}
app.component.html:
app.routes.ts:
import { Routes } from '@angular/router';
OUTPUT:
When we will click on the button then: When we hover the mouse then:
PRACTICAL 4:
AIM: Performing CRUD operations with Mongo DB.
CODE:
[
OUTPUT:
JOURNAL
ON
ANDROID
IN THE PROGRAMME
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)
SUBMITTED BY
DARSHAN PARMAR
B.SC. (IT)
SEMESTER VI
UNDER THE GUIDANCE OF
DR. JANHAVI RAUT
ACADEMIC YEAR
2024 – 2025
CERTIFICATE
3. Working with Views and View Groups. (3 layout, FYIT, SYIT and
TYIT. Use Color.xml, String.xml)
import android:layout_height="wrap_content"
androidx.appcompat.app.AppCompatActivity; android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="par
public class MainActivity extends ent"
AppCompatActivity {
app:layout_constraintEnd_toEndOf="parent"
@Override
app:layout_constraintStart_toStartOf="parent"
protected void onCreate(Bundle
savedInstanceState) { app:layout_constraintTop_toTopOf="parent" />
super.onCreate(savedInstanceState); </androidx.constraintlayout.widget.ConstraintL
ayout>
EdgeToEdge.enable(this);
setContentView(R.layout.activity_main);
OUTPUT:
}
}
activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLa
yout
xmlns:android="http://schemas.android.com/ap
k/res/android"
xmlns:app="http://schemas.android.com/apk/res
-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
PRACTICAL 2:
AIM: Creating Android App to implement basic activity and design layout using
xml. (3 buttons Send, Receive, Delete & Toast a message when click on button).
MainActivity.java: Toast.makeText(MainActivity.this,
"Sending Data",
package com.example.toastapplication; Toast.LENGTH_SHORT).show();
import android.os.Bundle; }
<androidx.constraintlayout.widget.ConstraintLa android:id="@+id/btndelete"
yout android:layout_width="103dp"
xmlns:android="http://schemas.android.com/ap
k/res/android" android:layout_height="67dp"
xmlns:app="http://schemas.android.com/apk/res android:layout_marginStart="28dp"
-auto"
android:layout_marginTop="200dp"
xmlns:tools="http://schemas.android.com/tools"
android:text="Delete"
android:id="@+id/main"
app:layout_constraintStart_toEndOf="@+id/btn
android:layout_width="match_parent" receive"
tools:context=".MainActivity"> </androidx.constraintlayout.widget.ConstraintL
ayout>
<Button
android:id="@+id/btnsend" strings.xml:
android:layout_width="105dp" <resources>
android:layout_height="67dp" <string
android:layout_marginStart="16dp" name="app_name">ToastApplication</string>
import android:id="@+id/linearLayout"
androidx.appcompat.app.AppCompatActivity; android:layout_width="408dp"
android:id="@+id/main" android:id="@+id/linearLayout2"
android:layout_width="match_parent" android:layout_width="406dp"
android:layout_height="248dp"
android:background="#CDDC39" android:text="TYIT"
android:orientation="vertical" android:textAlignment="center"
app:layout_constraintEnd_toEndOf="parent" android:textSize="60sp" />
app:layout_constraintStart_toStartOf="parent"
</LinearLayout>
app:layout_constraintTop_toBottomOf="@+id/l
</androidx.constraintlayout.widget.ConstraintL
inearLayout">
ayout>
<TextView
android:id="@+id/tv_2" OUTPUT:
android:layout_width="match_parent"
android:layout_height="158dp"
android:background="#00000000"
android:text="SYIT"
android:textAlignment="center"
android:textSize="60sp" />
</LinearLayout>
<LinearLayout
android:layout_width="409dp"
android:layout_height="242dp"
android:background="#00BCD4"
android:orientation="vertical"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/l
inearLayout2">
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="150dp"
PRACTICAL 4:
AIM: Introduction to Fragments: Implement fragments within activities to create
Dynamic UI.
MainActivity.java:
.replace(R.id.fragmentContainerView,
package com.example.fragmentapp; NewsFragment.class,null)
import android.os.Bundle; .setReorderingAllowed(true)
import android.view.View; .addToBackStack("name").commit();
import android.widget.Button; }
import androidx.activity.EdgeToEdge; });
import Button btnSports =findViewById(R.id.btn_2);
androidx.appcompat.app.AppCompatActivity;
btnSports.setOnClickListener(new
import View.OnClickListener(){
androidx.fragment.app.FragmentManager;
public void onClick(View v)
public class MainActivity extends {
AppCompatActivity {
FragmentManager fragmentManager
@Override =getSupportFragmentManager();
protected void onCreate(Bundle fragmentManager.beginTransaction()
savedInstanceState) {
.replace(R.id.fragmentContainerView,
super.onCreate(savedInstanceState); ScienceFragment.class,null).setReorderingAllo
EdgeToEdge.enable(this); wed(true).addToBackStack("name").commit();
setContentView(R.layout.activity_main); }
<androidx.constraintlayout.widget.ConstraintLa android:id="@+id/btn_3"
yout xmlns:android android:layout_width="95dp"
="http://schemas.android.com/apk/res/android"
android:layout_height="49dp"
xmlns:app="http://schemas.android.com/apk/res
-auto" android:layout_marginTop="76dp"
xmlns:tools="http://schemas.android.com/tools" android:layout_marginEnd="28dp"
android:id="@+id/main" android:text="Sport"
android:layout_width="match_parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_height="match_parent" app:layout_constraintTop_toTopOf="parent" />
tools:context=".MainActivity"> <androidx.fragment.app.FragmentContainerVie
<Button w
android:id="@+id/fragmentContainerView"
android:id="@+id/btn_1" android:name="com.example.fragmentapp.New
android:layout_width="98dp" sFragment"
android:layout_height="45dp" android:layout_width="405dp"
android:layout_marginStart="40dp" android:layout_height="510dp"
app:layout_constraintBottom_toBottomOf="par
android:layout_marginTop="76dp" ent"
android:text="News" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> />
</androidx.constraintlayout.widget.ConstraintL android:layout_height="match_parent"
ayout>
tools:context=".SportFragment">
xmlns:tools="http://schemas.android.com/tools" android:background="#E2BDBD"
OUTPUT:
PRACTICAL 5:
AIM: Implement Implicit and Explicit intents.
MainActivity.java: Intent intent=new
Intent(MainActivity.this, MainActivity2.class);
package com.example.intentexample;
intent.putExtra("data", name);
import android.content.Intent;
startActivity(intent);
import android.os.Bundle;
}
import android.view.View;
});
import android.widget.Button;
}
import android.widget.EditText;
}
import androidx.activity.EdgeToEdge;
MainActivity2.java:
import
androidx.appcompat.app.AppCompatActivity; package com.example.intentexample;
import android.annotation.SuppressLint;
public class MainActivity extends
AppCompatActivity { import android.content.Intent;
super.onCreate(savedInstanceState);
public class MainActivity2 extends
EdgeToEdge.enable(this); AppCompatActivity {
setContentView(R.layout.activity_main); TextView txt2;
btn=findViewById(R.id.btn); @SuppressLint("SetTextI18n")
txt=findViewById(R.id.txt); @Override
btn.setOnClickListener(new protected void onCreate(Bundle
View.OnClickListener() { savedInstanceState) {
@Override super.onCreate(savedInstanceState);
public void onClick(View v) { EdgeToEdge.enable(this);
String name=txt.getText().toString(); setContentView(R.layout.activity_main2);
txt2=findViewById(R.id.txt2);
app:layout_constraintBottom_toBottomOf="par
Intent intent=getIntent();
ent"
String receive=
app:layout_constraintEnd_toEndOf="parent"
intent.getStringExtra("data");
app:layout_constraintStart_toStartOf="parent"
txt2.setText("Hello"+receive);
app:layout_constraintTop_toTopOf="parent"
}
app:layout_constraintVertical_bias="0.075" />
}
<Button
activity_main.xml: android:id="@+id/btn"
<?xml version="1.0" encoding="utf-8"?> android:layout_width="178dp"
<androidx.constraintlayout.widget.ConstraintLa android:layout_height="110dp"
yout
xmlns:android="http://schemas.android.com/ap android:text="Send"
k/res/android"
android:textSize="48sp"
xmlns:app="http://schemas.android.com/apk/res app:layout_constraintBottom_toBottomOf="par
-auto" ent"
app:layout_constraintEnd_toEndOf="parent"
xmlns:tools="http://schemas.android.com/tools" app:layout_constraintHorizontal_bias="0.429"
android:id="@+id/main" app:layout_constraintStart_toStartOf="parent"
android:layout_width="match_parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.371" />
android:layout_height="match_parent"
</androidx.constraintlayout.widget.ConstraintL
tools:context=".MainActivity"> ayout>
<EditText
activity_main2.xml:
android:id="@+id/txt"
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="293dp"
<androidx.constraintlayout.widget.ConstraintLa
android:layout_height="106dp" yout
android:ems="10" xmlns:android="http://schemas.android.com/ap
k/res/android"
android:inputType="text" xmlns:app="http://schemas.android.com/apk/res
android:text="Name" -auto"
android:textSize="34sp" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent" OUTPUT:
tools:context=".MainActivity2">
<TextView
android:id="@+id/txt2"
android:layout_width="330dp"
android:layout_height="132dp"
android:background="#FFEA00"
android:text="TextView"
android:textSize="48sp"
app:layout_constraintBottom_toBottomOf="par
ent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.417"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.21" />
</androidx.constraintlayout.widget.ConstraintL
ayout>
PRACTICAL 6:
AIM: Implement Media player app in android app. (3 buttons, Play Pause stop).
MainAcitivity.java: MediaPlayer mp=new MediaPlayer();
stop=findViewById(R.id.stop); @Override
public void onClick(View v) { android:layout_width="wrap_content"
mp.pause(); android:layout_height="wrap_content"
mp.seekTo(0); android:layout_marginTop="328dp"
} android:layout_marginEnd="32dp"
}); android:text="Pause"
} app:layout_constraintEnd_toStartOf="@+id/stop"
} app:layout_constraintTop_toTopOf="parent" />
<Button
activity_main.xml: android:id="@+id/stop"
<?xml version="1.0" encoding="utf-8"?> android:layout_width="wrap_content"
<androidx.constraintlayout.widget.ConstraintLayout android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/
android" android:layout_marginTop="328dp"
xmlns:app="http://schemas.android.com/apk/res- android:layout_marginEnd="24dp"
auto"
android:text="Stop"
xmlns:tools="http://schemas.android.com/tools"
app:layout_constraintEnd_toEndOf="parent"
android:id="@+id/main"
app:layout_constraintTop_toTopOf="parent" />
android:layout_width="match_parent"
</androidx.constraintlayout.widget.ConstraintLayou
android:layout_height="match_parent" t>
tools:context=".MainActivity"> OUTPUT:
<Button
android:id="@+id/play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="328dp"
android:text="Play"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/pause"
PRACTICAL 7:
AIM: Implement video playback using Video View.
MainActivity.java: MediaController mediaController=new
MediaController(this);
package com.example.videoplayer;
videoView.setMediaController(mediaController
import android.annotation.SuppressLint;
);
import android.net.Uri;
mediaController.setAnchorView(videoView);
import android.os.Bundle;
}
import android.widget.MediaController;
}
import android.widget.VideoView;
activity_main.xml:
import androidx.activity.EdgeToEdge;
<?xml version="1.0" encoding="utf-8"?>
import <androidx.constraintlayout.widget.ConstraintLayout
androidx.appcompat.app.AppCompatActivity; xmlns:android="http://schemas.android.com/apk/res/
android"
public class MainActivity extends
xmlns:app="http://schemas.android.com/apk/res-
AppCompatActivity { auto"
@SuppressLint("MissingInflatedId") xmlns:tools="http://schemas.android.com/tools"
@Override android:id="@+id/main"
protected void onCreate(Bundle android:layout_width="match_parent"
savedInstanceState) {
android:layout_height="match_parent"
super.onCreate(savedInstanceState);
tools:context=".MainActivity">
EdgeToEdge.enable(this); <VideoView
setContentView(R.layout.activity_main); android:id="@+id/videoView"
VideoView videoView; android:layout_width="393dp"
videoView=findViewById(R.id.videoView); android:layout_height="645dp"
String path="android.resource://" android:layout_marginStart="16dp"
+getPackageName()+ "/raw/demo";
android:layout_marginTop="16dp"
Uri videoURI= Uri.parse(path);
app:layout_constraintStart_toStartOf="parent"
videoView.setVideoURI(videoURI); app:layout_constraintTop_toTopOf="parent" />
videoView.start(); </androidx.constraintlayout.widget.ConstraintLayou
t>
OUTPUT:
PRACTICAL 8:
AIM: Implementation of Data Persistence using shared preference.
MainActivity.java: import
androidx.appcompat.app.AppCompatActivity;
package com.example.sharedpref;
public class MainActivity extends
import android.annotation.SuppressLint;
AppCompatActivity {
import android.content.Intent;
EditText editText_1,editText_2;
import android.content.SharedPreferences;
Button btn_save;
import android.os.Bundle;
SharedPreferences sharedPreferences;
import android.view.View;
private static final String
import android.widget.Button; SHARED_PREF_NAME="mypref";
editor.apply(); android:ems="10"
android:layout_marginBottom="216dp" import
androidx.appcompat.app.AppCompatActivity;
android:text="SAVE"
app:layout_constraintBottom_toBottomOf="par public class HomeActivity extends
ent" AppCompatActivity {
import androidx.activity.EdgeToEdge; }
import });
androidx.appcompat.app.AppCompatActivity;
btnRotate.setOnClickListener(new
View.OnClickListener() {
public class MainActivity extends
AppCompatActivity { @Override
Button Animation
btnTranslate,btnRotate,btnScale,btnAlpha; rotate=AnimationUtils.loadAnimation(getAppli
cationContext(),R.anim.rotate);
@SuppressLint("MissingInflatedId")
txtAnim.startAnimation(rotate);
@Override
}
protected void onCreate(Bundle
savedInstanceState) { });
super.onCreate(savedInstanceState); btnScale.setOnClickListener(new
View.OnClickListener() {
EdgeToEdge.enable(this);
@Override
setContentView(R.layout.activity_main);
public void onClick(View v) {
txtAnim=findViewById(R.id.txtAnim);
Animation scale=
btnTranslate=findViewById(R.id.btnTranslate); AnimationUtils.loadAnimation(getApplicationC
btnRotate=findViewById(R.id.btnRotate); ontext(),R.anim.scale);
txtAnim.startAnimation(scale); android:layout_width="393dp"
} android:layout_height="247dp"
}); android:layout_marginStart="8dp"
btnAlpha.setOnClickListener(new android:layout_marginTop="16dp"
View.OnClickListener() {
android:background="#FFEA00"
@Override
android:text="HELLO TYBSCIT"
public void onClick(View v) {
android:textAlignment="center"
Animation
android:textColor="#F50057"
alpha=AnimationUtils.loadAnimation(getApplic
ationContext(),R.anim.alpha); android:textSize="60sp"
txtAnim.startAnimation(alpha);
app:layout_constraintStart_toStartOf="parent"
}
app:layout_constraintTop_toTopOf="parent" />
});
<Button
}
android:id="@+id/btnTranslate"
}
android:layout_width="137dp"
activity_main.xml:
android:layout_height="70dp"
<?xml version="1.0" encoding="utf-8"?>
android:layout_marginStart="36dp"
<androidx.constraintlayout.widget.ConstraintLa
android:layout_marginTop="372dp"
yout
xmlns:android="http://schemas.android.com/ap android:text="Translate"
k/res/android"
xmlns:app="http://schemas.android.com/apk/res app:layout_constraintEnd_toStartOf="@+id/btn
-auto" Rotate"
xmlns:tools="http://schemas.android.com/tools" app:layout_constraintHorizontal_bias="0.0"
android:id="@+id/main" app:layout_constraintStart_toStartOf="parent"
android:layout_width="match_parent" app:layout_constraintTop_toTopOf="parent" />
android:layout_height="match_parent" <Button
tools:context=".MainActivity"> android:id="@+id/btnRotate"
<TextView android:layout_width="150dp"
android:id="@+id/txtAnim" android:layout_height="69dp"
android:layout_marginTop="372dp" app:layout_constraintStart_toStartOf="parent"
/>
android:text="Rotate"
</androidx.constraintlayout.widget.ConstraintL
app:layout_constraintEnd_toEndOf="parent"
ayout>
app:layout_constraintHorizontal_bias="0.869"
app:layout_constraintStart_toStartOf="parent" translate.xml:
app:layout_constraintTop_toTopOf="parent" /> <?xml version="1.0" encoding="utf-8"?>
<Button <set xmlns:android=
android:id="@+id/btnScale" "http://schemas.android.com/apk/res/android"
android:layout_width="140dp" android:interpolator="@android:anim/bounce_i
nterpolator" >
android:layout_height="65dp"
<translate android:fromXDelta="0dp"
android:layout_marginStart="40dp"
android:toXDelta="400dp"
android:layout_marginBottom="108dp"
android:duration="4000"
android:text="Scale"
android:repeatMode="reverse"/>
app:layout_constraintBottom_toBottomOf="par </set>
ent" rotate.xml:
app:layout_constraintEnd_toStartOf="@+id/btn <?xml version="1.0" encoding="utf-8"?>
Alpha"
app:layout_constraintHorizontal_bias="0.234" <set
xmlns:android="http://schemas.android.com/ap
app:layout_constraintStart_toStartOf="parent" k/res/android">
/>
<rotate android:fromDegrees="0"
<Button
android:toDegrees="3600"
android:id="@+id/btnAlpha"
android:duration="12000"
android:layout_width="136dp"
android:pivotX="0.9"
android:layout_height="55dp"
android:pivotY="0.5" />
android:layout_marginBottom="116dp"
</set>
android:text="Alpha"
scale.xml:
OUTPUT:
PRACTICAL 10:
\\
} e.printStackTrace();
tv.append("\nUnable to get address"); }
} }
} AndroidManifest.xml:
@Override <?xml version="1.0" encoding="utf-8"?>
public void onRequestPermissionsResult(int <manifest
requestCode, @NonNull String[] permissions, xmlns:android="http://schemas.android.com/ap
@NonNull int[] grantResults) { k/res/android"
super.onRequestPermissionsResult(requestCode xmlns:tools="http://schemas.android.com/tools"
, permissions, grantResults); >
if (requestCode == 100) { <uses-permission
android:name="android.permission.INTERNET
if (grantResults.length > 0 &&
"/>
grantResults[0] ==
PackageManager.PERMISSION_GRANTED) { <uses-permission
android:name="android.permission.ACCESS_F
getLocation();
INE_LOCATION"/>
} else {
<uses-permission
Toast.makeText(this, "Permission android:name="android.permission.ACCESS_C
Denied", Toast.LENGTH_SHORT).show(); OARSE_LOCATION"/>
} <application
} android:allowBackup="true"
android:dataExtractionRules="@xml/data_extra
} ction_rules"
@Override android:fullBackupContent="@xml/backup_rul
es"
public void onProviderDisabled(@NonNull
String provider) { android:icon="@mipmap/ic_launcher"
} android:supportsRtl="true"
android:theme="@style/Theme.LocationApplic
@Override ation"
public void onProviderEnabled(@NonNull tools:targetApi="31">
String provider) {
<activity
Toast.makeText(this, "GPS Enabled",
Toast.LENGTH_SHORT).show(); android:name=".MainActivity"
android:exported="true">
app:layout_constraintEnd_toEndOf="parent"
<intent-filter>
app:layout_constraintTop_toTopOf="parent" />
<action
android:name="android.intent.action.MAIN" /> <TextView
<category android:id="@+id/tv"
android:name="android.intent.category.LAUNC
android:layout_width="350dp"
HER" />
android:layout_height="138dp"
</intent-filter>
android:layout_marginStart="40dp"
</activity>
android:layout_marginTop="92dp"
</application>
android:text="Current Location"
</manifest>
android:textSize="24sp"
activity_main.xml:
app:layout_constraintStart_toStartOf="parent"
<?xml version="1.0" encoding="utf-8"?> app:layout_constraintTop_toBottomOf="@+id/i
v" />
<androidx.constraintlayout.widget.ConstraintLa
yout <Button
xmlns:android="http://schemas.android.com/ap
android:id="@+id/btn"
k/res/android"
android:layout_width="175dp"
xmlns:app="http://schemas.android.com/apk/res
-auto" android:layout_height="68dp"
xmlns:tools="http://schemas.android.com/tools" android:layout_marginStart="112dp"
android:id="@+id/main" android:layout_marginTop="120dp"
android:layout_width="match_parent" android:text="Get Location"
android:layout_height="match_parent" android:textSize="20sp"
tools:context=".MainActivity">
app:layout_constraintStart_toStartOf="parent"
<ImageView
android:id="@+id/iv"
app:layout_constraintTop_toBottomOf="@+id/t
android:layout_width="215dp" v" />
android:layout_height="153dp" </androidx.constraintlayout.widget.ConstraintL
ayout>
android:layout_marginTop="132dp"
android:layout_marginEnd="104dp"
android:src="@drawable/gps"
OUTPUT:
[
JOURNAL
ON
CYBER CRIME AND INTELLECTUAL PROPERTY RIGHTS
IN THE PROGRAMME
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)
SUBMITTED BY
DARSHAN PARMAR
B.SC. (IT)
SEMESTER VI
UNDER THE GUIDANCE OF
DR. VISHESH SHRIVASTAVA
ACADEMIC YEAR
2024 – 2025
CERTIFICATE
Title: Data breach incident and legal consequences for a social media platform.
1. Introduction [
1. Introduction
1.1. Overview of the Case Study
This case study examines the patent infringement litigation between Apple Inc. and Samsung Electronics
Co., two global leaders in the technology industry. The legal battle, initiated in 2011, centered around
allegations that Samsung's smartphones and tablets infringed upon Apple's design and utility patents. The
dispute spanned multiple countries and resulted in significant financial penalties and injunctions.
[1]. "Apple Inc. v. Samsung Electronics Co. – Case Summary" – Harvard Law Review.
[2]. "Patent Wars in the Tech Industry" – Journal of Intellectual Property Law.
[3]. "Impact of Apple v. Samsung on Future Patent Litigation" – Stanford Technology Law Review.
[4]. "Patent Law and Innovation: Lessons from Apple-Samsung Dispute" – European Commission Report.
CASE STUDY 3:
Intellectual property theft case involving a software development company.
Title: Intellectual property theft case involving a software development company.
1. Introduction
1.1. Overview of the Case Study
This case study examines the intellectual property (IP) theft lawsuit filed by Media Rights Technologies,
Inc. (MRT) against Microsoft Corporation. MRT, a California-based software development company
specializing in digital rights management and secure content delivery solutions, alleged that Microsoft
infringed upon its copyrighted technologies.
1.2. Relevance to IPR and Cyber Law
The case underscores the complexities of enforcing intellectual property rights (IPR) in the software
industry, highlighting challenges related to copyright infringement, protection of proprietary technologies,
and the legal frameworks governing such disputes.
1.3. Objectives of the Study
1. To analyze the legal arguments presented by both MRT and Microsoft concerning the alleged IP
theft.
2. To understand the implications of the case on software development companies and their IP
protection strategies.
3. To explore the ethical considerations surrounding corporate competition and innovation.
4. To examine the impact of the case on future legal decisions related to IPR and cyber law.
2. Case Study Description
2.1. Background Information
Media Rights Technologies, Inc. (MRT) is a software development company specializing in digital rights
management (DRM) and secure content delivery solutions. In January 2025, MRT and its founder, Hank
Risan, filed a lawsuit against Microsoft Corporation, alleging that Microsoft had infringed upon MRT's
copyrighted technologies.
2.2. Key Facts of the Case
Allegations: MRT accused Microsoft of unauthorized use of its DRM technologies in Microsoft's
software products.
Claims: The lawsuit asserted that Microsoft's actions constituted copyright infringement and
misappropriation of proprietary technologies.
Defendant's Position: Microsoft denied the allegations, asserting that its technologies were developed
independently without infringing upon MRT's intellectual property.
2.3. Legal Issues Identified
Copyright Infringement: Determining whether Microsoft's software unlawfully incorporated MRT's
copyrighted technologies.
Trade Secret Misappropriation: Assessing if Microsoft's actions involved the unauthorized use of
MRT's proprietary information.
Damages Assessment: Evaluating the extent of harm suffered by MRT due to the alleged infringement.
Teradata v. SAP: Teradata accused SAP of entering a joint venture to access its intellectual property and
create a competing database product, leading to allegations of trade secret theft and antitrust violations.
1. Introduction
1.1. Overview of the Case Study
In 2011, Apple Inc. initiated a series of legal actions against Samsung Electronics Co., alleging
infringement of multiple patents, trademarks, and trade dress related to Apple's iPhone and iPad designs.
This high-profile legal battle spanned several years and jurisdictions, highlighting critical issues in
intellectual property rights within the technology sector.
Samsung: Contended that the patents in question were invalid, denied infringement, and argued that
damages should be limited to the specific components that infringed, not the entire product.