0% found this document useful (0 votes)
15 views3 pages

EV Charging Points App MVP Guide

The document outlines a one-day hackathon plan to create a functional MVP for an EV Charging Points Android app. Key goals include displaying the user's location, Google Maps, and nearby EV charging points with navigation functionality. It provides step-by-step instructions for setting up the Android project, Google Maps, location permissions, layout, and core functionality in Java.

Uploaded by

sayyedmisba023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

EV Charging Points App MVP Guide

The document outlines a one-day hackathon plan to create a functional MVP for an EV Charging Points Android app. Key goals include displaying the user's location, Google Maps, and nearby EV charging points with navigation functionality. It provides step-by-step instructions for setting up the Android project, Google Maps, location permissions, layout, and core functionality in Java.

Uploaded by

sayyedmisba023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Bilkul samajh raha hoon 👍

1 din ka hackathon = sirf WORKING DEMO pe focus


Login / signup / polish baad mein — abhi functional MVP 💯

Chalo seedha ACTION MODE mein jaate hain 🔥


Main aapko step-by-step exact kaam bata raha hoon, jo kal tak complete ho jaayega.

⚡ DAY-1 MVP PLAN


EV Charging Points Android App (Google Services)
🎯 GOAL (Judges ke saamne kya chale):

 App open ho
 User ki current location mile
 Google Map dikhe
 Nearby EV charging points markers ke saath dikhein
 Marker click → details
 “Navigate” button → Google Maps open

Bas. Ye chal gaya = app pass ✅

🧱 STEP 1: Android Project Create Karo (10 min)


 Android Studio → New Project
 Template: Empty Activity
 Name: EVChargeFinder
 Language: Java (agar Kotlin chahiye to bata dena)
 Min SDK: 21

STEP 2: Google Maps Setup (MOST IMPORTANT)


2.1 Google Cloud Console

1. [Link]
2. New Project create
3. Enable:
o Maps SDK for Android
o Places API
4. API Key generate karo
2.2 API Key Android mein add karo
[Link]

<meta-data
android:name="[Link].API_KEY"
android:value="YOUR_API_KEY_HERE"/>

📍 STEP 3: Location Permission (5 min)


[Link]

<uses-permission android:name="[Link].ACCESS_FINE_LOCATION"/>

🧩 STEP 4: Layout (Map Screen Only)


activity_main.xml

<fragment
android:id="@+id/map"
android:name="[Link]"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

🧠 STEP 5: Main Logic (CORE FUNCTIONALITY)


[Link]

public class MainActivity extends FragmentActivity implements


OnMapReadyCallback {

private GoogleMap mMap;


FusedLocationProviderClient fusedLocationClient;

@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
setContentView([Link].activity_main);

fusedLocationClient =
[Link](this);

SupportMapFragment mapFragment =
(SupportMapFragment)
getSupportFragmentManager().findFragmentById([Link]);
[Link](this);
}
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;

if ([Link](this,
[Link].ACCESS_FINE_LOCATION) !=
PackageManager.PERMISSION_GRANTED) {
[Link](this,
new String[]{[Link].ACCESS_FINE_LOCATION},
1);
return;
}

[Link](true);

[Link]().addOnSuccessListener(location
-> {
if (location != null) {
LatLng userLoc = new LatLng([Link](),
[Link]());
[Link]([Link](userLoc,
14));

// Demo EV charging points


addChargingPoint(18.5204, 73.8567, "EV Station A");
addChargingPoint(18.5314, 73.8446, "Fast Charger B");
}
});
}

private void addChargingPoint(double lat, double lng, String name) {


LatLng point = new LatLng(lat, lng);
[Link](new MarkerOptions()
.position(point)
.title(name)
.icon([Link](BitmapDescripto
rFactory.HUE_GREEN)));
}
}

You might also like