Draft:Streeta

{{AfC submission|t||ts=20241118171035|u=Realpega|ns=118|demo=}}

Streeta

= How does the app work? =

Streeta requires just 2 basic permissions to work full-fledgedly!

ACCESS_FINE_LOCATION{{Cite web |title=Manifest.permission |url=https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION |access-date=2024-11-18 |website=Android Developers |language=en}}: Allows the app to access precise location data using GPS.

SEND_SMS{{Cite web |title=Manifest.permission |url=https://developer.android.com/reference/android/Manifest.permission#SEND_SMS |access-date=2024-11-18 |website=Android Developers |language=en}}: Enables the app to send SMS messages.

When you open the app for the first time, it asks you for the SEND_SMS permission, which is required to send the Emergency Location Data to your preferred number. Then it asks you to enter a number to which the Emergency SMS with the location data is sent.

Once you add a number, it's saved locally forever and the SMS will be sent automatically at the time of Emergency.

From the very next time you open the app, it directly opens in the [https://github.com/realpega/Streeta/blob/main/app/src/main/java/com/streeta/MainActivity.java MainActivity].

In case you've entered an Incorrect Number, simply clear the App Data by holding down Streeta's App Launcher, going to App info, and then tapping on Clear Data{{Cite web |last=Summerson |first=Cameron |date=2018-06-11 |title=How to Clear an App's Data and Cache on Android to Solve Common Problems |url=https://www.howtogeek.com/355154/how-to-clear-app-data-and-cache-on-android-to-solve-common-problems/ |access-date=2024-11-19 |website=How-To Geek |language=en}}.

The Launcher Activity{{Cite web |title=LauncherActivity |url=https://developer.android.com/reference/android/app/LauncherActivity |access-date=2024-11-19 |website=Android Developers |language=en}} is [https://github.com/realpega/Streeta/blob/main/app/src/main/java/com/streeta/NumberActivity.java NumberActivity] and when the UPDATE button is clicked, a SharedPreferences{{Cite web |title=SharedPreferences |url=https://developer.android.com/reference/android/content/SharedPreferences |access-date=2024-11-19 |website=Android Developers |language=en}} component is used to save the entered Phone Number to the app's internal memory. This is saved locally and CANNOT be transmitted to others even if you share the APK file to another device. The UPDATE button then checks if the entered number is not empty or less than 10 digits. On passing these conditions, the [https://github.com/realpega/Streeta/blob/main/app/src/main/java/com/streeta/MainActivity.java MainActivity] is launched.

On the first start-up of the app, the [https://github.com/realpega/Streeta/blob/main/app/src/main/java/com/streeta/MainActivity.java MainActivity] asks for the ACCESS_FINE_LOCATION permission. For Android 11 (Red Velvet Cake) & above, there are two different permission choices based on precision: Precise & Approximate. As to get the Exact Location during Emergency, granting the Precise permission is preferred.

[https://quiz.everestwebdeals.co/?form=85fa6f0ee09fe6c0e76fefc9de19e8d4 2253471/130]

References

https://github.com/realpega/Streeta

{{reflist}}