Skip to content
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
67 changes: 67 additions & 0 deletions 166.DeltaDebuggers/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.simplewomensafetyapp"
tools:overrideLibrary="com.google.firebase.auth">

<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />

<application
android:allowBackup="true"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.DayNight">
<uses-library android:name="org.apache.http.legacy" android:required="false" />


<activity android:name=".MainActivity"
android:exported="true"
android:label="Home">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".MapsActivity" android:label="Maps" />
<activity android:name=".HelpCenterDetailActivity" android:label="Help Center Details" />
<activity android:name=".LoginActivity" />
<activity android:name=".RegistrationStepOneActivity" />
<activity android:name=".RegistrationStepTwoActivity" />
<activity android:name=".RegistrationTermsActivity" />
<activity android:name=".DashboardActivity" />
<activity android:name=".BulkMessageActivity" />
<activity android:name=".FakeCallActivity" />
<activity android:name=".Sign" />
<activity android:name=".AddContactActivity" />
<activity android:name=".ContactModel" />
<activity android:name=".DatabaseHelper" />






<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyBxH6J8IOtzHFVgpSrx4NHVdgjoEDWo2CU"/>




</application>

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />




</manifest>
3 changes: 3 additions & 0 deletions 166.DeltaDebuggers/Video(demo)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

Drive Link For Video of our Project :-
https://drive.google.com/drive/folders/1Ksug6VmV5tU-EhavmSb_dG0_9vdKZK7w?usp=sharing
26 changes: 26 additions & 0 deletions 166.DeltaDebuggers/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.9.1'
classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.gms:google-services:4.3.15'

}
}

plugins {
id 'com.android.application' version '8.9.1' apply false
// Add the dependency for the Google services Gradle plugin
id 'com.google.gms.google-services' version '4.4.2' apply false

}

allprojects {
repositories {
google()
mavenCentral()
}
}
32 changes: 32 additions & 0 deletions 166.DeltaDebuggers/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[versions]
agp = "8.9.1"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
appcompat = "1.7.0"
material = "1.12.0"
playServicesLocation = "21.3.0"
playServicesLocationVersion = "21.0.1"
googleAndroidLibrariesMapsplatformSecretsGradlePlugin = "2.0.1"
playServicesMaps = "19.1.0"
constraintlayout = "2.2.1"
activity = "1.10.1"
firebaseDatabase = "21.0.0"

[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
play-services-location = { group = "com.google.android.gms", name = "play-services-location", version.ref = "playServicesLocation" }
play-services-location-v2101 = { module = "com.google.android.gms:play-services-location", version.ref = "playServicesLocationVersion" }
play-services-maps = { group = "com.google.android.gms", name = "play-services-maps", version.ref = "playServicesMaps" }
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
firebase-database = { group = "com.google.firebase", name = "firebase-database", version.ref = "firebaseDatabase" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
google-android-libraries-mapsplatform-secrets-gradle-plugin = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "googleAndroidLibrariesMapsplatformSecretsGradlePlugin" }

67 changes: 67 additions & 0 deletions 166.DeltaDebuggers/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.simplewomensafetyapp"
tools:overrideLibrary="com.google.firebase.auth">

<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />

<application
android:allowBackup="true"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.DayNight">
<uses-library android:name="org.apache.http.legacy" android:required="false" />


<activity android:name=".MainActivity"
android:exported="true"
android:label="Home">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".MapsActivity" android:label="Maps" />
<activity android:name=".HelpCenterDetailActivity" android:label="Help Center Details" />
<activity android:name=".LoginActivity" />
<activity android:name=".RegistrationStepOneActivity" />
<activity android:name=".RegistrationStepTwoActivity" />
<activity android:name=".RegistrationTermsActivity" />
<activity android:name=".DashboardActivity" />
<activity android:name=".BulkMessageActivity" />
<activity android:name=".FakeCallActivity" />
<activity android:name=".Sign" />
<activity android:name=".AddContactActivity" />
<activity android:name=".ContactModel" />
<activity android:name=".DatabaseHelper" />






<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyBxH6J8IOtzHFVgpSrx4NHVdgjoEDWo2CU"/>




</application>

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />




</manifest>
115 changes: 115 additions & 0 deletions 166.DeltaDebuggers/main/assets/help_center.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"help_centers": [
{
"name": "Help Center 1",
"address": "Address 1",
"phone": "1234567890",
"latitude": 19.0760,
"longitude": 72.8777
},
{
"name": "Help Center 2",
"address": "Address 2",
"phone": "0987654321",
"latitude": 19.2870,
"longitude": 73.8777
},
{
"name": "Local Women's Support Center",
"address": "Shivaji Nagar, Pune",
"phone": "+911234567890",
"latitude": 18.5308,
"longitude": 73.8473
}, {
"name": "Safe Haven Support Center",
"address": "456 Park Lane, Thane",
"phone": "+911987654321",
"latitude": 19.2183,
"longitude": 72.9781
},
{
"name": "Mira Bhayandar Help Center",
"address": "789 Relief Avenue, Mira Road",
"phone": "+911122334455",
"latitude": 19.2952,
"longitude": 72.8543
},
{
"name": "Borivali Emergency Center",
"address": "Borivali West, Mumbai",
"phone": "+911112223333",
"latitude": 19.2290,
"longitude": 72.8567
},
{
"name": "Vashi Women's Shelter",
"address": "Sector 17, Vashi, Navi Mumbai",
"phone": "+911998877665",
"latitude": 19.0771,
"longitude": 72.9987
},
{
"name": "Dombivli Emergency Point",
"address": "Kalyan Shil Road, Dombivli East",
"phone": "+911912345678",
"latitude": 19.2183,
"longitude": 73.0940
},
{
"name": "Kandivali Women’s Aid",
"address": "MG Road, Kandivali West",
"phone": "+911976543210",
"latitude": 19.2047,
"longitude": 72.8422
},{
"name": "Pune Police Women's Cell",
"address": "Commissioner Office, Shivajinagar, Pune",
"phone": "+912025571211",
"latitude": 18.5308,
"longitude": 73.8474
},
{
"name": "Seva Sadan Society – Women’s Welfare",
"address": "Laxmi Road, Pune",
"phone": "+912026178426",
"latitude": 18.5149,
"longitude": 73.8560
},
{
"name": "Karve Nagar Women Support Center",
"address": "Karve Nagar, Pune",
"phone": "+912024217777",
"latitude": 18.4886,
"longitude": 73.8076
},
{
"name": "Swadhar IDWC Women’s Help",
"address": "Navi Peth, Pune",
"phone": "+912024544539",
"latitude": 18.5135,
"longitude": 73.8491
},
{
"name": "Center for Women Justice - Aastha",
"address": "Kothrud, Pune",
"phone": "+912025423535",
"latitude": 18.5097,
"longitude": 73.8278
},
{
"name": "Women’s Rescue Foundation",
"address": "Warje, Pune",
"phone": "+912024297660",
"latitude": 18.4901,
"longitude": 73.8005
},
{
"name": "Bharosa Cell – Pune Police",
"address": "Erandwane, Pune",
"phone": "+912025400000",
"latitude": 18.5050,
"longitude": 73.8295
}

]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package com.example.simplewomensafetyapp;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;

public class AddContactActivity extends AppCompatActivity {

private EditText edtName, edtRelation, edtPhone;
private Button btnSave;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_contact);

// Bind views
edtName = findViewById(R.id.edtName);
edtRelation = findViewById(R.id.edtRelation);
edtPhone = findViewById(R.id.edtPhone);
btnSave = findViewById(R.id.btnSave);

// Save button click listener
btnSave.setOnClickListener(view -> {
String name = edtName.getText().toString().trim();
String relation = edtRelation.getText().toString().trim();
String phone = edtPhone.getText().toString().trim();

// Validation
if (TextUtils.isEmpty(name) || TextUtils.isEmpty(relation) || TextUtils.isEmpty(phone)) {
Toast.makeText(this, "Please fill all fields", Toast.LENGTH_SHORT).show();
return;
}

// Phone number validation (optional, adjust as needed)
if (!phone.matches("[0-9]{10}")) {
Toast.makeText(this, "Please enter a valid phone number", Toast.LENGTH_SHORT).show();
return;
}

// Save to database
DatabaseHelper db = new DatabaseHelper(this);
db.addContact(name, relation, phone);
Toast.makeText(this, "Contact saved successfully!", Toast.LENGTH_SHORT).show();

finish(); // Close activity
});
}
}
Loading