Jump to content

Draft:Streeta

From Wikipedia, the free encyclopedia

Streeta

[edit]

How does the app work?

[edit]

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

ACCESS_FINE_LOCATION[1]: Allows the app to access precise location data using GPS.

SEND_SMS[2]: Enables the app to send SMS messages.



When you open the app for the first time, it asks you for the SEND_SMS[2] 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 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[3].

The Launcher Activity[4] is NumberActivity and when the UPDATE button is clicked, a SharedPreferences[5] 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 MainActivity is launched.

On the first start-up of the app, the MainActivity asks for the ACCESS_FINE_LOCATION[1] 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.

2253471/130

References

[edit]

https://github.com/realpega/Streeta

  1. ^ a b "Manifest.permission". Android Developers. Retrieved 2024-11-18.
  2. ^ a b "Manifest.permission". Android Developers. Retrieved 2024-11-18.
  3. ^ Summerson, Cameron (2018-06-11). "How to Clear an App's Data and Cache on Android to Solve Common Problems". How-To Geek. Retrieved 2024-11-19.
  4. ^ "LauncherActivity". Android Developers. Retrieved 2024-11-19.
  5. ^ "SharedPreferences". Android Developers. Retrieved 2024-11-19.