Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1cb5f7a
Create README.md
aarushichopkar May 15, 2022
bc065b8
Add files via upload
aarushichopkar May 15, 2022
58f9d2d
Dead Souls - Cummins Navigator
aarushichopkar May 15, 2022
07b4408
Dead Souls - Cummins Navigator
aarushichopkar May 15, 2022
501fe8b
Rename settings.gradle to Team/settings.gradle
aarushichopkar May 15, 2022
4fae426
Rename gradlew.bat to Team/gradlew.bat
aarushichopkar May 15, 2022
7f31c07
Rename gradlew to Team/gradlew
aarushichopkar May 15, 2022
58748d3
Rename gradle.properties to Team/gradle.properties
aarushichopkar May 15, 2022
bc4cf9b
Rename build.gradle to Team/build.gradle
aarushichopkar May 15, 2022
ca38bd9
Rename .gitignore to Team/.gitignore
aarushichopkar May 15, 2022
42597c3
Create trail
aarushichopkar May 15, 2022
7730be7
Rename app/.gitignore to Team/app/.gitignore
aarushichopkar May 15, 2022
e56f6a2
Rename app/build.gradle to Team/app/build.gradle
aarushichopkar May 15, 2022
16aba32
Rename app/proguard-rules.pro to Team/app/proguard-rules.pro
aarushichopkar May 15, 2022
1feb3ed
Create Team Dead Souls
aarushichopkar May 15, 2022
af37e6f
Delete Team Dead Souls
aarushichopkar May 15, 2022
9d92b56
Create trail
aarushichopkar May 15, 2022
28eba41
Delete app/src directory
aarushichopkar May 15, 2022
192429b
Delete .idea directory
aarushichopkar May 15, 2022
496d1c8
Delete gradle/wrapper directory
aarushichopkar May 15, 2022
119a134
Delete Team directory
aarushichopkar May 15, 2022
4600795
'project'
aarushichopkar May 15, 2022
259c96c
Delete Team 48 - Dead Souls - Cummins Navigator directory
aarushichopkar May 15, 2022
9a94e69
'added'
aarushichopkar May 15, 2022
353ed6d
Delete Team 48 - Dead Souls - Cummins Navigator directory
aarushichopkar May 15, 2022
f767785
'new'
aarushichopkar May 15, 2022
5648950
Delete Team 48 - Dead Souls - Cummins Navigator directory
aarushichopkar May 15, 2022
5094905
'add'
aarushichopkar May 15, 2022
fe7a344
Create README.md
aarushichopkar May 15, 2022
ce21042
Update README.md
aarushichopkar May 15, 2022
6fe9ebd
Update README.md
aarushichopkar May 15, 2022
ceb9222
Update README.md
aarushichopkar May 15, 2022
e403d7c
Update README.md
aarushichopkar May 15, 2022
03abe9a
Update README.md
aarushichopkar May 15, 2022
02dc910
Update README.md
aarushichopkar May 15, 2022
20568d9
Update README.md
aarushichopkar May 15, 2022
2fd69d8
Update README.md
aarushichopkar May 15, 2022
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
15 changes: 15 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/.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 Team 48 - Dead Souls - CumminsNavigator/.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 Team 48 - Dead Souls - CumminsNavigator/.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 Team 48 - Dead Souls - CumminsNavigator/.idea/compiler.xml

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

19 changes: 19 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/.idea/gradle.xml

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

17 changes: 17 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/.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 Team 48 - Dead Souls - CumminsNavigator/.idea/vcs.xml

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

Binary file not shown.
44 changes: 44 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Cummins Navigator - Dead Souls

**Pitch Video -**
https://drive.google.com/file/d/1fmMCCzIdJuc-SUyzhpi_hwAUeh1BdirK/view?usp=drivesdk

**Introduction: -**

Hello, we’re Team Dead Souls. This is a project to help navigate through our college and find the shortest routes between two places.
This is what our interface looks like: -

**Front page: -**

![image](https://user-images.githubusercontent.com/101361502/168479399-1179f7ff-a1f7-4974-bfdb-57ebfc8f4f22.png)


**Next page: -**

![image](https://user-images.githubusercontent.com/101361502/168479408-9ba99f32-0cd8-4769-baa2-e6d31f8d5973.png)


**Why do we need a navigation system for Cummins?**

It’s difficult to find classrooms and labs when you first enter our campus as a student or a guest. We also realized that we normally use a longer route to reach some places where we could have used a shorter alternative if we had already known about its existence. This project helped us find some very interesting paths to take and now it’ll help you too.

**Instructions: -**

* Path for java code: Buffer_3.0/app/src/main/java/com/example/cumminsnavigator/
* The code is split into 3 java files. The ‘node’ file is used to store the buildings as vertices and creates a double dimensional arraylist of the rooms in that building, floor-wise.
* Class ‘map’ stores the main dijkstra’s algorithm to calculate the shortest distance and path.
* Class ‘MakeMap’ is used to create and store the graph.
* Frontend is created using Android Studio.
* Download the code as a zip file, extract the files, and you will be able to open it in your android studio software.
* You can see the working of our app on an emulator.
* Do not set the phone on dark mode.
* You can also install our app by downloading the CumminsNavigator.apk file.

**Collaborators: -**
Shreyal Geddam
Aarushi Chopkar
Silvi Parlani
Arya Darvekar
Alefiya Dawasaz


1 change: 1 addition & 0 deletions Team 48 - Dead Souls - CumminsNavigator/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
38 changes: 38 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id 'com.android.application'
}

android {
compileSdk 32

defaultConfig {
applicationId "com.example.cumminsnavigator"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled 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.4.1'
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
21 changes: 21 additions & 0 deletions Team 48 - Dead Souls - CumminsNavigator/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.cumminsnavigator;

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.cumminsnavigator", appContext.getPackageName());
}
}
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"
package="com.example.cumminsnavigator">

<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.CumminsNavigator"
tools:targetApi="31">
<activity
android:name=".MainActivity2"
android:exported="false" />
<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>
</application>

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

import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {

public static final String M1 = "com.example.DropDown.TRY";
public static final String M2 = "com.example.DropDown.TRY1";
String sourceValue, destValue, destRoomValue;

ArrayList<String> build = new ArrayList<>();

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

//Source Spinner
Spinner mySpinner1 = (Spinner) findViewById(R.id.spinner1);
ArrayAdapter<String> myAdapter1 = new ArrayAdapter<String>(MainActivity.this,
android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.BuildingList));
myAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mySpinner1.setAdapter(myAdapter1);

mySpinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
sourceValue = String.valueOf(parent.getItemAtPosition(position));
}
@Override
public void onNothingSelected(AdapterView<?> parent) {

}
});

//Destination Room Spinner
Spinner mySpinner3 = (Spinner) findViewById(R.id.spinnerRoom);
ArrayAdapter<String> myAdapter3 = new ArrayAdapter<String>(MainActivity.this,
android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.Roomlist));
myAdapter3.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mySpinner3.setAdapter(myAdapter3);

mySpinner3.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
destRoomValue = String.valueOf(parent.getItemAtPosition(position));
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
}

@RequiresApi(api = Build.VERSION_CODES.N)
public void onClick(View view){
Intent intent = new Intent(this, MainActivity2.class);

MakeMap ob1 = new MakeMap();
ob1.create();
ob1.addRooms();

int snum = ob1.getBuildingNum(sourceValue);
ArrayList d_dest = ob1.getBuilding(destRoomValue);
String printPath = ob1.dijkstra(snum,(int)d_dest.get(2));
String printFloor = "Room " + destRoomValue + " is in " + d_dest.get(0) + " Floor: " + d_dest.get(1);
intent.putExtra(M1,printFloor);
intent.putExtra(M2,printPath);
startActivity(intent);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.example.cumminsnavigator;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity2 extends AppCompatActivity {

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

Intent intent = getIntent();
String printFloor = intent.getStringExtra(MainActivity.M1);

TextView textGetFloor = findViewById(R.id.getFloor);
textGetFloor .setText(printFloor);

String printPath = intent.getStringExtra(MainActivity.M2);

TextView textGetPath = findViewById(R.id.getPath);
textGetPath.setText(printPath);
}
}
Loading