Mada za sehemu hiiHandling user input and basic interactionsMada 4
Showing Feedback to Users
User feedback is a way for an app to communicate with the person using it. When a user performs an action — like submitting a form, tapping a button, or saving data — the app should tell the user what happened. Without feedback, users feel uncertain. They might wonder: "Did my message send? Did the app save my work?" Good feedback removes this confusion and makes the app feel reliable and easy to use.
Feedback is a core part of human-computer interaction. It follows the input-process-output cycle: the user gives input, the app processes it, and then the app provides feedback about the result. This loop helps users understand that their actions are working.
Mobile apps use three common types of feedback: toast messages, alert dialogs, and progress indicators. Each type suits a different situation.
Toast Messages
A toast is a short message that appears briefly on the screen and then disappears automatically. It is used for simple confirmations that do not require the user to take further action.
- Example uses: "Saved successfully", "Message sent", "Login successful"
- How it works: The toast pops up, stays on screen for 2–4 seconds, and then fades away
- Why it is useful: It does not interrupt the user; they can keep using the app while reading the message
Alert Dialogs
An alert is a popup window that stops the app until the user responds. It is used when the app needs the user's attention or a decision.
- Example uses: "Are you sure you want to delete this item?", "No internet connection", "Please fill all required fields"
- How it works: The alert displays a title, a message, and one or two buttons (like "OK" or "Cancel")
- Why it is useful: It ensures the user sees important information or confirms a critical action
Progress Indicators
A progress indicator shows the user that the app is working on a task that takes time. This prevents the user from thinking the app has frozen or stopped working.
- Example uses: Loading data, uploading a file, processing a payment
- How it works: A spinning circle or a progress bar appears while the task runs, then disappears when the task completes
- Why it is useful: It builds patience and trust — the user knows the app is doing work in the background
Consider a simple registration app where a user creates an account. The app should provide feedback at three points:
- When the user taps "Register" with empty fields — show an alert: "Please enter your name and phone number."
- While the app creates the account — show a progress indicator (spinning circle)
- When registration succeeds — show a toast: "Account created successfully!"
In code, this might look like this (pseudocode example):
function onRegisterButtonClicked() {
if (nameField.isEmpty() || phoneField.isEmpty()) {
showAlert("Missing Information", "Please enter your name and phone number.");
return;
}
showProgressIndicator("Creating account...");
// Simulate processing time
wait(2 seconds);
hideProgressIndicator();
showToast("Account created successfully!");
}
This pattern follows the three feedback types:
- The alert tells the user what went wrong before processing starts
- The progress indicator reassures the user during the wait
- The toast confirms success without stopping the user
When you add feedback features to your app, follow these steps:
- Identify every user action that changes data or takes time — each one needs feedback
- Choose the right type of feedback:
- Use toasts for quick confirmations
- Use alerts for errors or important warnings
- Use progress indicators for tasks that take more than one second
- Write clear, short messages — avoid technical jargon; use simple language the user understands
- Test with role-play — one student acts as the user while another watches to see if the feedback is clear
- Be immediate — show feedback right after the user acts, not later
- Be honest — if something fails, say so clearly; do not show "Success" when it failed
- Be brief — keep messages short; users scan, they do not read long text
- Match the tone — a friendly app uses friendly messages; a serious app uses clear, direct messages
In Tanzania, mobile money services like M-Pesa are widely used for sending and receiving money. When a user sends money through a mobile app, the app shows a progress indicator while processing the transaction, then displays a toast message confirming the transfer — for example, "Tsh 50,000 sent to 0755...". This feedback is essential because users need to know their money was sent successfully, and if something goes wrong, an alert warns them. Understanding how to implement such feedback is a skill you will use when building any real-world mobile app for business, farming, or personal use in Tanzania.
Jinsi utakavyotathminiwaTathmini ya mchakato · Tathmini ya matokeo · Tathmini ya maarifa
Tathmini ya mchakato
- Provide visual or textual feedback for user actions.
Tathmini ya matokeo
Mobile app that displays clear, appropriate, and timely feedback to users.
Tathmini ya maarifa
Detailed knowledge of:
Method used: The student should explain how to
- provide timely feedback in mobile app.
Principles: The student should explain the principles of:
- user satisfaction and app usability.
Theories: The student should explain:
- feedback types and best practices and the importance of feedback loops.
- human-computer interaction principles
Circumstantial knowledge:
Detailed knowledge about:
- Handling issues like delayed feedback or unclear messages leading to user confusion.
Swali
What is user feedback in a mobile app?
Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.
Ingia ili kufanya mazoeziMwalimu
Umekwama? Niulize chochote kuhusu mada hii.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado