Professional Documents
Culture Documents
Android Development Short-Notes
Android Development Short-Notes
Android Development Short-Notes
Android
Development
Short-Notes
Copyrighted By @Curious_Coder
Copyrighted by @Curious_Coder
CHAPTER 1
VERSIONS OF ANDROID :
1. donut
2. eclair
3. froyo
4. gingerbread
5. honeycomb
6. icecreamsandwich
7. jelly beans
8. kitkat
9. lolipop
10. marshmellow
11. nought
12. oreo
13. pie
14. os10
Copyrighted by @Curious_Coder
ANDROID ARCHITECTURE :
CHAPTER 2
(.java file - java complier(javac) - .class file - dex comploer (dx) -.dex file -
packaging adpt- .apk file)
The AVD Manager is an interface you can launch from Android Studio
that helps you create and manage AVDs
CHAPTER 3
1. ACTIVITY LAUNCHED
-------------------------
Copyrighted by @Curious_Coder
TYPES OF SERVICES :
SERVICES STATES :
//onUnbind : The system calls this method when all clients have
disconnected from a particular interface published by the service.
Intent(getBaseContext(),
MyService.class)); }
2) stopService(neW
Intent(getBaseContext(),
MyService.class));
@Override
BRODCAST RECIVERS :
CONTENT PROVIDER :
• A content provider can use different ways to store its data and the
data can be stored in files, in a database or even over a network.
METHODS :
query() : A method that accepts arguments and fetches the data from
the desired table. Data is retired as a cursor object.
Copyrighted by @Curious_Coder
delete() This method is used to delete the existing rows.\ It returns the
number of rows deleted.
--------------------------------------------------------------------------------
Fragments:
• A fragment has its own layout and its own behavior with its own
lifecycle callbacks.
Copyrighted by @Curious_Coder
LIFE CYCLE :
----------------------------------------------------------------------------
INTENT :
• The intents can communicate messages among any of the three core
components of an application - activities, services, and broadcast
receivers.
2. Launch an activity
5. Broadcast a message
• INTENT OBJECT :
2. Data : The URI of the data to be acted on and the MIME type of that
data.
TYPES ON INTENT :
startActivity(i);
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse("www.google.com"));
startActivity(i);
Copyrighted by @Curious_Coder
INTENT FILTERS
<intent-filter> tag.
EX)
<intent-filter>
<action
android:name="com.learncomputer.Module2.SHOW_CURRENT" />
/>
</intent-filter>
ANDROID LAYOUT :
• All elements in the layout are built with the help of Views and
ViewGroups.
3. Table Layout : TableLayout is a view that groups views into rows and
columns.
LAYOUT ATTRIBUTE
CHAPTER 4
android.widget.AutoCompleteTextView;
android.widget.Button;
CheckBox :An on/off switch that can be toggled by the user. You should
use checkboxes when presenting users with a group of selectable
options that are not mutually exclusive.
android.widget.CheckBox;
android.widget.ToggleButton;
android.widget.RadioButton;
Copyrighted by @Curious_Coder
android.widget.RadioGroup;
TYPES :
progress.setMessage("Downloading
Music");
progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
2) incrementProgressBy(int diff)
3) setMax(int max)
4) setProgress(int value)
Spinner: A drop-down list that allows users to select one value from a
set.
android.widget.Spinner;
2. setCurrentMinute(Integer currentMinute)/
setMinute(Integer minute):
3. getCurrentHour() / getHour():
5. setIs24HourView(Boolean is24HourView):
DatePicker : The DatePicker view enable users to select a date of the day.
android.widget.DatePicker
2. getDayOfMonth():
3. getMonth():
4. getYear():
5. getFirstDayOfWeek():
ListView : android.widget.TextView;
GridView : android.widget.GridView;
Sending Email - In android, we can easily send an email from our android
application using existing email clients such as GMAIL, Outlook, etc.
Sending Sms - we can send SMS from our android application in two
ways either by using SMSManager API or Intents based on our
requirements.
Copyrighted by @Curious_Coder
<uses-permission
android:name="android.permission.SEND_SMS" />
Bluetooth - <uses-permission
android:name="android.permission.BLUETOOTH ~
BLUETOOTH_ADMIN"/>
Constatnts - ACTION_REQUEST_ENABLE,
ACTION_REQUEST_DISCOVERABLE, ACTION_STATE_CHANGED,
ACTION_FOUND
android.media.MediaPlayer; import
android.media.MediaRecorder;
CHAPTER 5
--------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
Chapter 6
DEPLOYING APP :
1. Register for Google Play : for frist time publishing app you have to
register there is $25 charge for regristration
2. Are you going to Sell your App? : we can also add our apps in app
purchase.
Understand your players - Player Analytics will help you understand how
players are progressing, spending in your game
Grow your audience - how users find your app, run experiments on your
store listing, compare performance to apps in the same category, and
launch ad campaigns.
Earn more revenue - Tweak your pricing for individual markets, manage
your in-app products and your subscription business, run promotions.