TAILIEUCHUNG - Android SDK (phần 10)

Introducing SMS and MMS ❘ 417 Next 8 hours 0 5 15 30 60 120 480 4. Now create a new AutoResponder Activity, populating it with the layout you created in Step 1. package ; import import import import import import import import import import import import import import import import import ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; public class AutoResponder extends. | Introducing SMS and MMS 417 item Next 8 hours item string-array array name respondForValues item 0 item item 5 item item 15 item item 30 item item 60 item item 120 item item 480 item array resources 4. Now create a new AutoResponder Activity populating it with the layout you created in Step 1. package import import import import import import import import import import import import import import import import import public class AutoResponder extends Activity Override public void onCreate Bundle savedInstanceState savedlnstanceState setContentView 5. Update onCreate further to get references to each of the controls in the layout and wire up the Spinner using the arrays defined in Step 3. Create two new stub methods savePreferences and updateUIFromPreferences that will be updated to save the autoresponder settings to a named SharedPreference and apply the saved SharedPreferences to the current UI respectively. Spinner respondForSpinner CheckBox locationCheckbox EditText responseTextBox 418 CHAPTER 12 TELEPHONY AND SMS Override public void onCreate Bundle savedInstanceState savedInstanceState setContentView . Start by getting references to each View. respondForSpinner Spinner findViewById locationcheckbox CheckBox findViewById responseTextBox EditText findViewById . Populate the Spinner to let users select the auto-responder expiry time. ArrayAdapter .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.