![]() Nam lacinia pulvinar tortorsectetur adipiscisectetur adisectetur adisectetur adipiscing elit.In your Github fork, you need to keep your master branch clean, by clean I mean without any changes, like that you can create at any time a branch from your master. Nam lacinia pulvinar tortor nec facilisis. Nam lacinia pulvsectetur adipiscing elit. Nam lacinia pulvinarsectetur adipiscsectetur adipiscingsectetur adisectetur adisectetur adipiscing elit. Pellentesectetur adipiscsectetursectetur adipiscing elit. Pellentesque dapsectetur adipiscing elit. Nam risus ante, dapibus a molestie consequat, ultr sectetur adipiscing elit. Pellentesque dapibu sectetur adipiscing elit. Pellentesque dapibus efficitur laore sectetur adipiscing elit. Nam lacinia pul sectetur adipiscing elit. Nasectetur asectetur adsectetur adipiscing elit. Nam lacinia pulvinar tortsectetursectetur adipiscisectetur adipiscing elit. Nam lacinia pulvinar tsectetur adipiscing elit. Nam lacinia pulvinar tortor necsectetur adipiscing elit. Nam lacinia pulvinar tortosectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisissectetur adipiscing elit. Nam lacinia pulvinar tortsectetur adipiscing elit. Nam lacinia pulvinsectetur adipiscing elit. Nam lac sectetur adipiscing esectetur adipiscing elit. Then navigate to "/data/data/package-name/shared_prefs", and display the shared preferences using "more filename.xml" From the command line, type "run-as package-name". Use the Android Studio terminal window to log into the phone using "adb shell". Finally, include a screenshot with your Brightspace submission demonstrating to your facilitator how to access the SharedPreferences file on your emulator via ADB.Use Google Translate to get the French translations of your English buttons if needed. Ensure that all the labels and buttons in your app use the strings.xml files and are localized properly in both English and French.If the result code is 1, the user is happy, so we can use "finish" to close the app.If the result code is 0, the user wants to change their name.Back in MainActivity implement the handling of the result code from the NameActivity.If the user presses "Thank you", set the result to 1 and return to the previous activity.If the user presses "Don't call me that", set the result to 0 and return to the previous activity.For example, if the user entered the name "Jason" in the EditText in MainActivity and pressed "Next", the NameActivity should show "Welcome Jason!". ![]() In "onCreate()", get the user's name passed from the previous activity and update the TextView to welcome the user.Implement the NameActivity next, it should do the following:.If the user's name isn't yet saved in the SharedPreferences, do not put anything in the EditText. Inside the "onCreate()", load the user's name from the SharedPreferences and put it in the EditText.Save the value current value inside the EditText to the SharedPreferences so it can be loaded next time the user opens the app. Click on the MainActivity class name, press Control + O and select "onPause()" from the list to add an override.We will be passing data back so use "startActivityForResult", not "startActivity"! When the "Next" button is clicked, get the current value of the EditText, put it into an Intent and launch the NameActivity.Next, we'll finish implementing the MainActivity.This also has three elements, a TextView that simply says "Welcome!", and two buttons on the next row that say, "Thank You" and "Don't call me that".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |