Q1. What should you use to access resources included in your Android project? Q2. Find two problems that prevent the following code from starting another Activity (ShowDetails) and passing the content of an edit text to it. public void startNewActivity(View view) {      Intent i = new Intent(this, ShowDetails.class);      EditText msg= findViewById(R.id.msg_id);      i.putExtra("KEY", msg);     }

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 18RA
icon
Related questions
Question

Q1.

What should you use to access resources included in your Android project?

Q2.

Find two problems that prevent the following code from starting another Activity (ShowDetails) and passing the content of an edit text to it.

public void startNewActivity(View view) {

     Intent i = new Intent(this, ShowDetails.class);

     EditText msg= findViewById(R.id.msg_id);

     i.putExtra("KEY", msg);

    }

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
MacOS
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage