Presentation is loading. Please wait.

Presentation is loading. Please wait.

CA16R405 - Mobile Application Development (Theory)

Similar presentations


Presentation on theme: "CA16R405 - Mobile Application Development (Theory)"— Presentation transcript:

1 CA16R405 - Mobile Application Development (Theory)
Adarsh Patel Technical Team Lead, Arth Technology, Vadodara

2 CA16R405 - Mobile Application Development (TH)
Unit 1: Introduction to Android Mobile Applications, Comparison of various Mobile Application Programming Languages, Basics of Android, Features of Android, Benefits of Android, Using Eclipse, Running and debugging Applications, Configuring Android Development Environment Unit 2: Android Development Tools Android Documentations, Debugging Applications with DDMS, Emulator, Using other Android Tools. Unit 3: Android Application Development Building an Android Application, Introduction to Application Context, Using Application Context, working with Activities, working with Intents, Working with Dialogs, Logging Application Information.

3 CA16R405 - Mobile Application Development (TH)
Unit 4: Managing Application Resources Using Application and System Resources, working with simple Resource Values, working with Drawable Resources, working with Layouts, Working with Files, working with other types of Resources available in Android. Unit 5: Configuration with Manifest Configuring the Android Manifest File, Configuring basic Applications settings, Defining Activities, Managing Application Permissions, Managing other Application settings. Unit 6: The Application Framework Designing an Application Framework, Designing an Android Trivia, Prototype, Implementing an Application Prototype, Running the Prototype Unit 7: Developing GUI Splash Screen Layout, Implementing animated Splash Screen, working with Animation, Designing Main Menu Screen, Implementing Main Menu Screen Layout, working with ListView Control, working with other Menu types, Designing the Help Screen, working with Files, Designing the Screen with Tabs

4 CA16R405 - Mobile Application Development (TH)
Unit 8: Collecting User Inputs Using Forms to collect User Inputs, Designing the setting screen, using common Form Controls, saving Form data with Shared Preferences, Using Dialogs to collect User Inputs, Activity Dialogs, DatePicker Dialogs, Custom Dialogs Unit 9: Testing and Publishing the Application Best Practices for Testing, Maximizing Test Coverage, Understanding Release Process, preparing Release Candidate Build, Testing Application Release Candidate, Packaging an Application, Testing the Signed Application Package Unit 10: Using Eclipse IDE Creating Classes and Methods, Organizing imports, Documenting Code, Using Auto complete, Formatting Code, Refactoring, Resolving Build Errors, Creating Custom Log filters, Integrating Source Control

5 What have you learned so far
Adarsh Patel

6 What have you learned so far
Display inputted text in a TextView after clicking a button. Android Program to Calculate Sum of two numbers how do I get a button to open another activity in android studio

7 Today’s Learning How to open a dialer with a phone number. (Permission not required) How to make a phone call in Android. (Permission Required.) How can I open a URL in Android's web browser from my application? Start an Activity with a parameter Start service in Android

8 1. How to open a dialer with a phone number. (Permission not required).
((Button) findViewById(R.id.dialbutton1)).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel: ")); startActivity(intent); } });

9 2. How to make a phone call in Android. (Permission Required.)
((Button) findViewById(R.id.dialbutton1)).setOnClickListener(new View.OnClickListener() public void onClick(View view) { if(isPermissionGranted()){ call_action(); } } }); <uses-permission android:name="android.permission.CALL_PHONE"/>

10 2. How to make a phone call in Android. (Permission Required.)
public void call_action(){ try { String phnum = "123456"; Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:" + phnum)); startActivity(callIntent); } catch (SecurityException e) { Toast.makeText(this, "Permission Denied", Toast.LENGTH_SHORT).show(); } }

11 2. How to make a phone call in Android. (Permission Required.)
public boolean isPermissionGranted() { if (Build.VERSION.SDK_INT >= 23) { if (checkSelfPermission(android.Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) { Log.v("TAG","Permission is granted"); return true; } else { Log.v("TAG","Permission is revoked"); ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CALL_PHONE}, 1); return false; } } else { //permission is automatically granted on sdk<23 upon installation Log.v("TAG","Permission is granted"); return true; } }

12 2. How to make a phone call in Android. (Permission Required.)
@Override public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { switch (requestCode) { case 1: { if (grantResults.length > && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Toast.makeText(getApplicationContext(), "Permission granted", Toast.LENGTH_SHORT).show(); call_action(); } else { Toast.makeText(getApplicationContext(), "Permission denied", Toast.LENGTH_SHORT).show(); } return; } // other 'case' lines to check for other // permissions this app might request } }

13 3. How can I open a URL in Android's web browser from my application?
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(" startActivity(browserIntent);

14 Types of Intent Implicit Explicit

15 4. Start an Activity with a parameter
Intent i = new Intent(this, TheNextActivity.class); i.putExtra(“parameter1", value1); startActivity(i); String value1 = extras.getStringExtra(“parameter1”);

16 5. Start service in Android
startService(new Intent(this, UpdaterServiceManager.class)); Intent i = new Intent(this, Service1.class); startService(i);

17 Logging Application Information
V: Verbose (lowest priority) D: Debug I: Info W: Warning E: Error A: Assert Log.e(“tag1",“message1"); To check this message goto Logcat (Alt + 6)

18 Android Tutorial & Sample Codes & Presentations can be found @ http://adarshspatel.in


Download ppt "CA16R405 - Mobile Application Development (Theory)"

Similar presentations


Ads by Google