Posts

Showing posts from February, 2024

5. Call, Open Website, and Send SMS

AIM:  Develop an application that uses a menu with 3 options for dialing a number, opening a website and to send an SMS. On selecting an option, the appropriate action should be invoked using intents. PROGRAM: Set Activity Starter Behavioral Properties as below: Action      android.intent.action.SENDTO DataUri   smsto:9493570703 ExtraKey    sms_body ExtraValue      Hello, this is a test SMS!123

Exp:4 Navigating Screens

Image
AIM:  Develop an application that shows names as a list and on selecting a name it should show the details of the candidate on the next screen with a “Back” button. If the screen is rotated to landscape mode (width greater than height), then the screen should show list on left fragment and details on right fragment instead of second screen with back button. Use Fragment transactions and Rotation event listener Program: Develop an application that shows names as a list and on selecting a name it should show the details of the candidate on the next screen with a “Back” button. If the screen is rotated to landscape mode (width greater than height), then the screen should show list on left fragment and details on right fragment instead of second screen with back button. Use Fragment transactions and Rotation event listener