Unit 11 / 11

End-to-End Project, Responsible Use of Artificial Intelligence and Roadmap in the Profession

Gains:

  • Ability to develop a mobile feature end-to-end and verifiable in design, code, AI integration, privacy, testing, debugging, performance and release steps
  • Ability to establish a framework for responsible and ethical use of artificial intelligence with the principles of transparency, verification-accountability and justice-non-maleficence.
  • Being able to create a sustainable professional practice by distinguishing the areas where artificial intelligence is strong and weak and keeping the final decision in the hands of humans.

Throughout this module, we used AI at every stage of mobile development: code generation, interface, on-device and cloud AI integration, testing, debugging, performance, privacy, and store delivery. In this final unit, we will combine all these pieces into a single end-to-end flow, clarify the framework for responsible and ethical use of AI, and talk about how to turn these skills into a sustainable professional practice. The core message hasn't changed, but it's now firmly established: AI is a force that multiplies a competent mobile developer; it is not a substitute. It is the person who is responsible for the quality, safety and promise of the product to the user.

An end-to-end feature: combining parts

Developing a real feature from start to finish with AI support combines every unit we have learned in a chain. Example: "add expense from receipt" feature. The flow works like this:

  1. Design (Unit 3). Draft the screen and four states (loading/empty/error/full) with AI, request accessibility from the beginning.
  2. Code (Unit 2). Generate camera, data model and ViewModel layer by layer with MVVM; verify each layer.
  3. On-device AI (Unit 4). Read amount/date from receipt with ML Kit text recognition; Consider preprocessing and confidence scoring.
  4. Confidentiality (Unit 9). Request camera permission with least privilege, write the rejection scenario, keep the data on the device.
  5. Testing (Unit 6). Generate unit tests of the extraction logic, UI testing of the display; Include border states.
  6. Debugging (Unit 7). Have AI analyze the crashes with context and solve the root cause.
  7. Performance (Unit 8). Measure the battery cost of camera processing and set it battery-friendly.
  8. Broadcasting (Unit 10). Report the use of AI transparently, fill out the privacy form truthfully, and conduct a self-test.

At each step, the AI ​​accelerates, the human verifies and decides. This loop is the core of the module.

Tip: Don't try to make the AI ​​do a complex feature with one giant request. Break it down into verifiable steps like above. Testing the output of each step and moving on to the next is both safer and ultimately faster; Because you catch a big mistake not at the end, but at the first step.

Responsible and ethical use of AI

Technical competence alone is not enough; a responsible framework completes it. Three principles:

Transparency. The user must know that he or she is interacting with the AI. A secret AI is a breach of trust. AI-generated content is tagged; AI advice is presented as “helpful advice” rather than “hard truth.”

Verification and accountability. AI output is a starting point, not a finished product. You are responsible for every line of code published, every AI response, every data transaction. "The AI ​​wrote it that way" is not a defense.

Justice and non-maleficence. AI models can carry biases from the data they are trained on. A facial recognition may work worse on some skin colors, a recommendation engine may exclude a group. It is your responsibility to test that your product works fairly across different user groups.

Attention: Any technique you learn in the field of IT and security is used only for authorized and constructive purposes. Using AI to create malware, crack someone else's application without permission, collect user data without consent, or produce misleading content is illegal and against the ethics of the profession. The measure of power is revealed where you do not use it.

Recognizing the limits of AI

A mature developer knows where AI shines and where it falls short.

AI is powerful

AI is weak

Mold code, boilerplate production

Product and architectural decisions

Testing and documentation draft

Understanding the business context and user

Crash log reading, error scanning

Definitive root cause diagnosis (verification required)

Learning, concept explanation

Current/unfabricated API information

Text, description, translation

Ethics, security and legal final decision

Internalizing this distinction is key to using AI effectively and avoiding its pitfalls.

three mini cases

Case 1 — End-to-end speed. One solo developer finished the "unplugged" feature in 4 days with the 8-step flow above; Without AI the estimate was 12 days. But because he verified every step, the publication was approved the first time. Speed ​​was real because discipline was real. Lesson: AI + verification is faster than AI - verification.

Case 2 — Bias caught. While testing an AI-based noun-gender prediction feature, a team noticed systematic errors in some Turkish nouns; the model was trained on mostly English data. The feature has been changed to asking the user instead of making the wrong assumption. Lesson: it's the developer's job to test the model's training bias.

Case 3 — The “AI said so” defense collapsed. A developer published an AI-generated payment code without verifying it; In one extreme case the code was doing double collections. Responsibility is not removed by saying "AI wrote it"; As the account holder, he was a developer. Lesson: responsibility cannot be delegated.

Weak prompt / Strong prompt

Weak prompt: "Write me a complete receipt scanning application."

Powerful prompt: "Help me develop the 'add expense from receipt' feature step by step. Let's proceed in order, when I verify and approve each step, move on to the next: 1) Screen + four states + accessibility2) MVVM layers (camera, model, ViewModel)3) Reading amount/date from receipt with ML Kit + trust score4) Camera permission (least privilege) + rejection flow5) Unit and UI tests Tell me the risks and points I need to verify at each step."

Copiable templates

End-to-end planning template: "I will develop the following feature: [feature]. Break it down into verifiable steps: design, code, AI integration, privacy/permission, testing, performance, release. Write the output, risk, and verification criteria for each step. Don't make a single giant production."

Ethics/bias audit template: "Audit the following AI feature for fairness and bias: [feature]. What user groups might it perform poorly? How does training data impact bias? How do I test it, how do I make it more inclusive?"

Accountability check template: "List the accountability questions I should ask before releasing this AI-generated code/feature: did I understand it, have I tested it, is it safe, is it transparent to the user, is it legal/ethical?"

Continuous learning template: "Propose a 4-week practical plan to improve my AI skill in mobile developer: one topic each week (code, integration, testing, release), with the goal of a small project and verification habit."

Common mistakes

  • Producing complex feature with one giant request. Cannot be verified; break it down into steps.
  • Avoiding responsibility by saying "AI wrote so". You are responsible for the published code.
  • Not testing for AI bias. The model may work poorly in some groups; Test justice.
  • Hiding AI interaction from the user. Transparency is the foundation of trust.
  • Forgetting the limitations of AI. People have the final say on architecture, ethics and current API.
  • To stop learning. Tools and shop rules change quickly; Stay constantly updated.

In summary

An end-to-end feature combines all parts of the module in a chain: design, code, AI integration, privacy, testing, debugging, performance and release. At each step, AI accelerates, human verifies and decides; Complex work is broken down into small verifiable steps. Responsible use is based on three principles: transparency, verification-accountability and fairness-do no harm. AI is a powerful multiplier, but humans have the final say on architecture, ethics, security and current knowledge. “The AI ​​did it that way” is not a defense; You are responsible for your product and the promise you make to your user. With this discipline, AI makes you faster, more comprehensive and stronger throughout your career.

Application task

Break down a mobile feature of your choice (e.g. "summarizing by taking voice notes" or "product recognition from photo") into verifiable steps with an "End-to-end planning template". Actually develop and validate at least one step with AI. Then, analyze which user groups the feature may cause problems with the "Ethics/bias control template" and answer the questions you need to ask before release with the "Liability control template".

checklist

  • [ ] I broke the feature into verifiable small steps, not a single giant production
  • [ ] I verified the AI output at every step and made the decision
  • [ ] I presented the AI interaction transparently to the user
  • [ ] I evaluated whether the feature works fairly/biased across different groups
  • [ ] I answered pre-release responsibility questions (understood/testing/safe/ethical)
  • [ ] I have used AI only for competent and constructive purposes and plan to continue learning

Module Exam

1. Which of the following is the most accurate positioning for artificial intelligence in mobile development?

  • A) AI replaces the developer; can be published directly without reading the code it generates
  • B) Artificial intelligence only works in writing text, it has nothing to do with code generation
  • C) Artificial intelligence is an assistant and accelerator; Responsibility for architectural, security and broadcast decisions rests with humans ✔
  • D) Since artificial intelligence always produces correct code, additional testing and verification are unnecessary

Description: Artificial intelligence is an assistant and accelerator that generates code, blueprints and solutions. Responsibility and final approval of decisions such as architecture, permitting, security and publication rest with the competent developer; Humans are responsible for every line published.

2. When requesting mobile code from artificial intelligence, what increases the architectural quality of the code produced the most?

  • A) Keep the prompt as short as possible and say 'write me an app'
  • B) First, impose an architecture like MVVM and request the code in small pieces, layer by layer ✔
  • C) Producing the entire feature as a single giant file in a single prompt
  • D) Do not specify the architecture at all and leave the best decision to artificial intelligence

Explanation: Imposing an architecture like MVVM and requiring layer by layer before writing code directly to the AI produces a testable and maintainable structure that separates the logic from the screen. The request without architecture returns code that crams everything onto the screen.

3. What is most frequently overlooked when creating an interface with artificial intelligence and what is most critical in real use?

  • A) Designing loading, empty and error states, not just the full screen ✔
  • B) Producing only the best looking full screen, skipping other cases
  • C) Adding as many colors and animations as possible to each screen
  • D) Leaving accessibility tags last and only dealing with appearance

Explanation: Developers often only consider the 'full' state; whereas in reality the user mostly encounters loading, empty and error states. Generating all four states (loading/empty/error/full) is the secret of a robust interface.

4. Why is on-device AI often the default choice for a feature that processes sensitive personal data (e.g. health measurement)?

  • A) On-device models are always more accurate than cloud
  • B) On-device processing never incurs battery or processor costs
  • C) On-device processing is unlimited in terms of model size
  • D) Since the data does not leave the phone, it provides a strong advantage in terms of privacy and user trust ✔

Explanation: On-device processing does not remove data from the phone; This is a strong advantage in terms of privacy compliance and user trust, plus it works offline and instantaneously. Its limit is the device power and model size.

5. What is the most common 'silent' error that causes meaningless results and does not produce an error message in an on-device model integration?

  • A) Wrong spelling of the file name of the model
  • B) Low resolution of the application icon
  • C) Incorrect input preprocessing (size/normalization) ✔
  • D) Dark screen theme

Explanation: Doing input preprocessing incorrectly will produce completely wrong results without throwing errors. Preprocessing values ​​should be verified from the model's documentation.

6. What is the most security-critical rule when integrating cloud LLM into a mobile application?

  • A) The API key should only be kept in the backend, not on the client; requests must go through proxy ✔
  • B) API key should be embedded directly into application code for convenience
  • C) API key should be shared in the application description
  • D) The API key should be kept in the client and hidden only by changing the name.

Disclosure: The API key is never embedded in the mobile application code; because the application can be reverse engineered and the key extracted. The correct architecture is to keep the key only in the backend and pass requests through your own proxy server.

7. What most increases user-perceived speed and feature completion rate in long LLM answers?

  • A) Waiting until the entire answer is produced and showing it at once
  • B) Showing the answer word by word, as it is produced, with streaming ✔
  • C) Sending the entire chat history to the model with every request
  • D) Enlarge the model instruction to extend the response as much as possible

Description: Streaming dramatically increases perceived speed and fluency by displaying the response as it is produced word by word. Instead of waiting on a blank screen, the user watches the text form; This significantly reduces the abandonment rate.

8. What is the most common problem in tests produced by artificial intelligence that makes the test worthless?

  • A) Tests cover too many limit states
  • B) Tests use mock objects, not real services
  • C) Tests run very fast
  • D) Scope bloat by empty/useless tests that don't actually validate a behavior ✔

Explanation: Artificial intelligence sometimes produces tests that do not actually verify any output (e.g. just call the function and write an empty assertion). These inflate the coverage number but do not provide real protection; Each test must be checked to verify meaningful behavior.

9. Why is it not a sufficient solution to silence a crash by putting it in a try-catch with an artificial intelligence suggestion?

  • A) try-catch cannot be used at all in mobile applications
  • B) The crash stops, but since the root cause is not resolved, the problem returns in a different form ✔
  • C) Using try-catch slows down the application, so it is prohibited
  • D) Silenced error is automatically rejected by the store

Explanation: Silencing the symptom does not solve the root cause; The crash stops, but the original problem (e.g. broken data connection) returns in another form (e.g. data loss). The goal in professional debugging is to solve the root cause, not the symptom.

10. What is the basic golden rule to follow in performance optimization?

  • A) First take a profile and measure the real bottleneck, then optimize ✔
  • B) Guessing where is slow and concentrating there
  • C) Chasing small gains in every function
  • D) Measuring performance on the emulator and never trying the real device

Description: Measure first, optimize later. The real bottleneck is almost always in a different location than predicted; Optimization without profiling is a blind guess and is often a waste of effort.

11. What is the most important engineering concern for a constantly running AI feature (e.g. live camera translation)?

  • A) The feature requests as many permissions as possible
  • B) Managing battery and processor cost of continuous processing with sampling frequency and batch processing ✔
  • C) Only run the feature on the most expensive phones
  • D) Continuously rendering the camera at the highest possible frame rate

Description: Constantly working model, camera and network; It can quickly consume the battery, heat up the device, and be restricted by the system. Reducing sampling frequency, batching, and running only when needed are ways to manage battery cost.

12. What does the principle of 'least privilege' in permission management mean in mobile development?

  • A) Requesting all possible permissions at startup, just in case.
  • B) Making the app inoperable if permission is denied
  • C) Asking for the broadest permission and planning to narrow it down later.
  • D) Requesting only the permission that is actually required, when necessary and within the narrowest scope, with a rejection scenario ✔

Explanation: Least privilege is asking for only the permission that is actually needed, when it is needed, and to the narrowest extent possible. Too many permissions undermines user trust, leads to store rejection, and increases the risk of data leakage.

13. What specific requirements must be met when presenting an application with artificial intelligence to the store?

  • A) Content transparency, content control and disclosure of the data going to artificial intelligence in the form of confidentiality ✔
  • B) Hiding the use of artificial intelligence from the user
  • C) Marking data that is not actually collected in the privacy form
  • D) Promising features that do not exist in the description

Disclosure: Stores expect content transparency (statement that it produces AI), content moderation (filtering of harmful output and user notification), and disclosure of data usage from applications containing artificial intelligence; Accuracy warning required in sensitive area. Applications that omit these will be rejected.

14. Why is the 'AI wrote it that way' defense invalid when an edge case error occurs in published AI-generated code?

  • A) Because artificial intelligence always produces error-free code, the error comes from the user
  • B) Because stores automatically correct AI-generated code
  • C) Because responsibility cannot be transferred to artificial intelligence; Developer is responsible for published code and data ✔
  • D) Because artificial intelligence-generated code is never put live

Description: The AI output is a starting point, not a finished product. It is the developer who is responsible for every line published, every data processed, and every promise made; responsibility cannot be delegated to AI, so the output must be understood and tested before publication.