Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team BMSIT MCA #9

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
commit.txt
NetworkStrengthChecker/*
15 changes: 15 additions & 0 deletions Bmsit-Mca/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions Bmsit-Mca/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Bmsit-Mca/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Bmsit-Mca/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Bmsit-Mca/.idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Bmsit-Mca/.idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Bmsit-Mca/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Bmsit-Mca/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Bmsit-Mca/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions Bmsit-Mca/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# National-Agrifunds-Hackathon


#### Team Name - BMSIT MCA
#### Problem Statement - Financial Inclusion in Remote Areas: Digital Financial Services for Unconnected Regions
#### Team Leader Email - [email protected]

## A Brief of the Prototype:

Our prototype is an Android app which would be deployed on kiosk designed to provide seamless financial services to individuals in areas with limited internet connectivity. By combining user-friendly design with robust technology, our app ensures easy access to banking services,govt services,pension services for aged individuals even for those with minimal digital literacy. Here's a brief overview of the prototype's key features:

1. User-Friendly Interface:Our app boasts a simple and intuitive user interface, carefully designed to cater to users with minimal learning curve and almost no technical knowledge.

2. Connectivity Adaptibility: One of the standout features of our prototype is its adaptability to different connectivity scenarios.

3. Internet Connectivity: In the presence of an internet connection, our app establishes a connection with the bank or any other servers and facilitates seamless transactions.

4. SMS Connectivity: In the absence of an internet connection, our app automatically switches to SMS mode, allowing users to perform transactions through SMS. Any transaction done through interface of the kisok will be converted to SMS and sent to the server where the transaction will be processed and the response will be sent back to the kiosk through SMS.

5. Regular Backups: Our app regularly backs up all transactions to ensure that data can be recovered in case of any errors or system failures with minimal Recovery Point Objective(RPO) & Recovery Time Objective(RTO), That ensures minimal data loss and quick recovery of the functionality, respectively.

Uml class diagram, Flowcharts, Screenshots, etc. can be used to explain the prototype.

1. Class Diagram

![Class Diagram](images/class_diagram.jpg)

2. Flowchart

![Flowchart](images/flowchart_readme.jpg)

3. Use case


![Use case](images/use_case.jpg)

4. Screenshots

![Main Page](images/1.jpeg)
![Banking Page](images/2.jpeg)
![Government Schemes Page](images/3.jpeg)
![Pension Page](images/4.jpeg)


## Tech Stack:
The protoype is built using the following tech stack:
1. Java
2. Layouts and user interface
3. Intents and navigation
4. SQLiteDatabase
5. Android Studio

## Step-by-Step Code Execution Instructions:
1. Clone the repository

```git clone https://github.com/anirudhp06/National-Agrifunds-Hackathon.git```


2. Make sure you are on the `mobile` branch

```git checkout mobile```


3. Open the project in Android Studio
4. Run the project on an emulator or a physical device

## What I Learned:
Participating in a hackathon as a team of four, we embarked on a journey to design and implement an Android app that would revolutionize financial services for individuals with limited internet connectivity. Our solution aimed to provide seamless access to bank services, ensuring that even those with limited digital literacy could navigate the app effortlessly.
Our app was designed to establish a connection with bank servers through the internet, with a seamless fallback to SMS services in the absence of an internet connection. Additionally, we incorporated regular backups to safeguard transactions and facilitate recovery in case of any errors. Through this experience, we not only developed technical skills but also gained insights into teamwork, empathy-driven design, and the importance of innovation in addressing real-world challenges.


## Skills Acquired:
1. Android Development
2. Java
3. Kotlin
4. SQLite Database
5. Android Studio
6. Git and Github
7. Teamwork

## Team Members:
1. [Anirudh Parvatikar](https://github.com/anirudhp06)
2. [Varshini J M](https://github.com/varu2001)
3. [Abdul Mukeeth](https://github.com/abdulmukeeth)
4. [Rakshit M](https://github.com/rakshithm63)
1 change: 1 addition & 0 deletions Bmsit-Mca/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
39 changes: 39 additions & 0 deletions Bmsit-Mca/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
plugins {
id("com.android.application")
}

android {
namespace = "com.example.bankanywhere"
compileSdk = 33

defaultConfig {
applicationId = "com.example.bankanywhere"
minSdk = 24
targetSdk = 33
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

dependencies {

implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
21 changes: 21 additions & 0 deletions Bmsit-Mca/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.example.bankanywhere;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.bankanywhere", appContext.getPackageName());
}
}
30 changes: 30 additions & 0 deletions Bmsit-Mca/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.BankAnywhere"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".BankingActivity"/>
<activity android:name=".GovtActivity"/>
<activity android:name=".PensionActivity"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package com.example.bankanywhere;

import android.app.AlertDialog.Builder;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

import androidx.appcompat.app.AppCompatActivity;
public class BankingActivity extends AppCompatActivity {
EditText sender,receiver,sender_ifsc,receiver_ifsc,sender_amt;
Button send;
TextView info;
SQLiteDatabase db;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.banking_activity);
sender=(EditText) findViewById(R.id.senderAccountNumberEditText);
receiver=(EditText) findViewById(R.id.receiverAccountNumberEditText);
sender_ifsc=(EditText) findViewById(R.id.senderIFSCCodeEditText);
receiver_ifsc=(EditText) findViewById(R.id.receiverIFSCCodeEditText);
sender_amt=(EditText) findViewById(R.id.amountEditText);
info=(TextView) findViewById(R.id.information);

send=(Button) findViewById(R.id.sendMoneyButton);

db=openOrCreateDatabase("BankDB", Context.MODE_PRIVATE,null);
db.execSQL("CREATE TABLE IF NOT EXISTS BANK(name VARCHAR,accno VARCHAR,ifsc VARCHAR,amt int);");
db.execSQL("INSERT INTO BANK VALUES('Anirudh','1234567890','SBIN1234567','10000');");
db.execSQL("INSERT INTO BANK VALUES('Vineeth','3216549870','SBIN1234567','50000')");
showMessage("Database","Inserted Anirudh into DB,Please check now");
send.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String client=sender.getText().toString();
String client_ifsc=sender_ifsc.getText().toString();
String rv=receiver.getText().toString();
String rv_ifsc=receiver_ifsc.getText().toString();
if(client.length()<10||client_ifsc.length()<11){
showMessage("Error","Enter sender fields correctly");
return;
}
else if(rv.length()<10||rv_ifsc.length()<11){
showMessage("Error","Enter Receiver fields correctly");
return;}
// Cursor c=db.rawQuery("Select * from bank where name='Anirudh';",null);
// if(c.moveToFirst()){
// showMessage("Success",c.getString(1));
// }
String query="update bank set amt=amt+"+Integer.parseInt(sender_amt.getText().toString())+" where accno='"+rv+"';";
String callBack="select * from bank where accno="+Long.parseLong(rv)+";";

db.execSQL(query);
Cursor c=db.rawQuery(callBack,null);
if(c.moveToFirst()){
info.setText("Updated Balance of "+rv+":"+c.getLong(3));
//db.execSQL("delete from bank;");
}
}
});
}

public void showMessage(String title,String message){
Builder build=new Builder(this);
build.setCancelable(true);
build.setTitle(title);
build.setMessage(message);
build.show();
}
}
Loading