This is an Android application that allows users to send OTP (One-Time Password) messages using Twilio API. Users can enter contact information, generate OTP, and send it via SMS. The app also stores the sent OTP messages in a local Room database for later retrieval.
- Enter contact information (first name, last name, and mobile number).
- Generate OTP (random 6-digit number) for each contact.
- Send OTP via SMS using Twilio API.
- Store sent OTP messages in a local Room database.
- Retrieve and display the list of sent OTP messages.
- Clone the repository to your local machine.
- Open the project in Android Studio.
- Build and run the app on an emulator or a physical device.
- Launch the app on your Android device.
- Enter the contact information (first name, last name, and mobile number).
- Tap the "Generate OTP" button to generate a random 6-digit OTP.
- The generated OTP will be displayed in the message input field.
- Tap the "Send" button to send the OTP via SMS using Twilio API.
- If the OTP is sent successfully, it will be saved in the local database.
- The list of sent OTP messages can be accessed by navigating to the "History" section.
- In the "History" section, all the sent OTP messages will be displayed in a RecyclerView.
- Tap on a message to view detailed information.
- Use the tabs at the top to switch between different sections of the app.
- Kotlin - Programming language used for app development.
- Android Architecture Components - LiveData, ViewModel, and Room for data management.
- Retrofit - HTTP client for making API requests to Twilio.
- Twilio API - Used for sending SMS messages.
- ViewPager2 - Used for implementing swipeable fragments with a ViewPagerAdapter.
- RecyclerView - Used for displaying the list of sent OTP messages.
- JSON - Used to store contact information as a JSON file.
- androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0
- androidx.lifecycle:lifecycle-runtime-ktx:2.4.0
- androidx.room:room-ktx:2.5.1
- androidx.recyclerview:recyclerview:1.2.1
- com.squareup.retrofit2:retrofit:2.9.0
- com.squareup.retrofit2:converter-gson:2.9.0
- com.twilio:twilio-java-sdk:8.20.0
This project is licensed under the MIT License.
For any inquiries or collaboration opportunities, please feel free to reach out to me on