Home Page Icon
Home Page
Table of Contents for
Index
Close
Index
by Murat Aydin
Android 4: New features for Application Development
Android 4: New features for Application Development
Table of Contents
Android 4: New features for Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Action Bar for All
Action bar
Adding an action bar
Adding an ActionProvider
Adding submenus to the ActionProvider
ShareActionProvider
Adding an action view
Using the action bar for navigation
Summary
2. A New Layout – GridLayout
GridLayout
Why to use GridLayout
Adding a GridLayout
Configuring GridLayout
A new view – Space
Summary
3. Social APIs
Basics of contacts in Android
Using Social API
Device user profile
Summary
4. Calendar APIs
Using Calendar APIs
Creating an event
Using Intents for creating events
Adding an attendee
Adding a reminder
Summary
5. Fragments
Fragment basics
Fragment lifecycle
Creating and managing fragments
Programmatically adding a fragment
Event sharing with activity
Using multiple fragments in an activity
Types of fragments
ListFragment
DialogFragment
PreferenceFragment
WebViewFragment
Summary
6. Supporting Different Screen Sizes
Android 4.0 supports different screen sizes
Using match_parent and wrap_content
Using dip instead of px
Omit using AbsoluteLayout
Providing different bitmap drawables for different screen densities
Providing different layouts for different screen sizes
Nine-patch
Summary
7. Android Compatibility Package
What is Android Compability Package
How to use the Android Compatibility Package
Summary
8. New Connectivity APIs – Android Beam and Wi-Fi Direct
Android Beam
Beaming NdefMessages
Wi-Fi Direct
Sample Wi-Fi Direct application
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Summary
Index
A
AAR /
Beaming NdefMessages
AbsoluteLayout /
Omit using AbsoluteLayout
Action Bar
about /
Action bar
adding /
Adding an action bar
using, for navigation /
Using the action bar for navigation
ActionBar.TabListener class /
Using the action bar for navigation
actionLayout property /
Adding an action view
ActionProvider
adding /
Adding an ActionProvider
submenus, adding /
Adding submenus to the ActionProvider
ActionProvider class /
Adding an ActionProvider
action view
about /
Adding an action view
Activity class /
Adding an action view
,
Using Social API
,
Creating an event
,
How to use the Android Compatibility Package
addContact() method /
Using Social API
addContactStreamItem() method /
Using Social API
addEmail() method /
Using Social API
addEvent() method /
Creating an event
,
Using Intents for creating events
addFragment() /
Programmatically adding a fragment
addName() method /
Using Social API
addPhoneNumber() method /
Using Social API
addPreferencesFromResource method /
PreferenceFragment
addRawContact() method /
Using Social API
Add Support Library menu option /
How to use the Android Compatibility Package
Android
contacts /
Basics of contacts in Android
device user profile /
Device user profile
Android Compatibility Package /
What is Android Compability Package
Android 3.2
screen size qualifiers /
Providing different layouts for different screen sizes
sw<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
w<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
h<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
Android applications
user interface, designing consideraations /
Android 4.0 supports different screen sizes
Android Beam
about /
Android Beam
NdefMessages, beaming /
Beaming NdefMessages
Activity class, implementing /
Beaming NdefMessages
createMimeRecord() method /
Beaming NdefMessages
onResume() method /
Beaming NdefMessages
Android Compatibility Package
about /
What is Android Compability Package
classes /
What is Android Compability Package
using /
How to use the Android Compatibility Package
Android SDK Manager button /
How to use the Android Compatibility Package
Install button /
How to use the Android Compatibility Package
Add Support Library menu option /
How to use the Android Compatibility Package
Fragment class /
How to use the Android Compatibility Package
Activity class /
How to use the Android Compatibility Package
getSupportFragmentManager() method /
How to use the Android Compatibility Package
FragmentActivity class /
How to use the Android Compatibility Package
AndroidManifest.xml file /
How to use the Android Compatibility Package
Android Ice Cream Sandwich
space /
A new view – Space
Android Beam /
Android Beam
Wi-Fi Direct /
Wi-Fi Direct
AndroidManifest.xml file /
Adding an ActionProvider
,
How to use the Android Compatibility Package
,
Sample Wi-Fi Direct application
Android SDK Manager button /
How to use the Android Compatibility Package
attendee
adding /
Adding an attendee
B
beginTransaction() method /
Programmatically adding a fragment
bitmap drawables
for different densities /
Providing different bitmap drawables for different screen densities
borders_bottom_right background /
Adding a GridLayout
Button component /
Adding a reminder
C
Calendar APIs
about /
Using Calendar APIs
CalendarContract.Calendar table /
Using Calendar APIs
CalendarContract.Event table /
Using Calendar APIs
CalendarContract.Attendee table /
Using Calendar APIs
CalendarContract.Reminder table /
Using Calendar APIs
event, creating /
Creating an event
events creating, intents used /
Using Intents for creating events
attendee, adding /
Adding an attendee
reminder, adding /
Adding a reminder
CalendarContract.Attendee table /
Using Calendar APIs
CalendarContract.Calendar table /
Using Calendar APIs
CalendarContract.Event table /
Using Calendar APIs
CalendarContract.Reminder table /
Using Calendar APIs
Chapter1ActionViewActivity method /
Adding an action view
Chapter1TabListener class /
Using the action bar for navigation
collapseActionView() method /
Adding an action view
collapseActionView property /
Adding an action view
columnCount properties /
GridLayout
columnCount property /
Adding a GridLayout
commit() method /
Programmatically adding a fragment
connect() method /
Sample Wi-Fi Direct application
contacts
about /
Basics of contacts in Android
RawContact /
Basics of contacts in Android
StreamItems /
Basics of contacts in Android
StreamItemPhotos /
Basics of contacts in Android
ContentResolver class /
Creating an event
ContentValues instance /
Creating an event
createMimeRecord() method /
Beaming NdefMessages
createNdefMessage()method /
Beaming NdefMessages
D
device
screen sizes /
Android 4.0 supports different screen sizes
resolution /
Android 4.0 supports different screen sizes
screen density /
Android 4.0 supports different screen sizes
screen orientation /
Android 4.0 supports different screen sizes
device user profile
about /
Device user profile
DialogFragment /
DialogFragment
dip
using, instead of px value /
Using dip instead of px
discoverPeers() method /
Sample Wi-Fi Direct application
dismiss() method /
DialogFragment
Draw 9-patch tool /
Nine-patch
E
emulator properties
small screen properties /
Using match_parent and wrap_content
normal screen properties /
Using match_parent and wrap_content
large screen properties /
Using match_parent and wrap_content
events
creating /
Creating an event
creating, intents used /
Using Intents for creating events
expandActionView() method /
Adding an action view
F
find() method /
Sample Wi-Fi Direct application
FragmentActivity class /
How to use the Android Compatibility Package
Fragment class /
How to use the Android Compatibility Package
FragmentManager /
Programmatically adding a fragment
fragments
about /
Fragment basics
lifecycle /
Fragment lifecycle
onAttach() method /
Fragment lifecycle
onCreate() method /
Fragment lifecycle
onCreateView() method /
Fragment lifecycle
onActivityCreated() method /
Fragment lifecycle
onStart() method /
Fragment lifecycle
onResume() method /
Fragment lifecycle
lifecycle, flow /
Fragment lifecycle
onPause() method /
Fragment lifecycle
onStop() method /
Fragment lifecycle
onDestroyView() method /
Fragment lifecycle
onDestroy() method /
Fragment lifecycle
onDetach() method /
Fragment lifecycle
creating /
Creating and managing fragments
managing /
Creating and managing fragments
Fragment B layout /
Creating and managing fragments
LinearLayout layout /
Creating and managing fragments
TextView component /
Creating and managing fragments
ListView component /
Creating and managing fragments
onActivityCreated method /
Creating and managing fragments
getActivity() method /
Creating and managing fragments
OnActivityCreated method /
Creating and managing fragments
OnCreateView method /
Creating and managing fragments
Activity class /
Creating and managing fragments
id property /
Creating and managing fragments
tag property /
Creating and managing fragments
adding, programmatically /
Programmatically adding a fragment
addFragment() /
Programmatically adding a fragment
beginTransaction() method /
Programmatically adding a fragment
commit() method /
Programmatically adding a fragment
FragmentManager /
Programmatically adding a fragment
getFragmentManager() method /
Programmatically adding a fragment
popBackStack() method /
Programmatically adding a fragment
onItemClick method /
Event sharing with activity
onBookSelectedListener interface /
Event sharing with activity
onBookSelected method /
Event sharing with activity
multiple fragments, using in activity /
Using multiple fragments in an activity
layout_weight property /
Using multiple fragments in an activity
onBookSelected property /
Using multiple fragments in an activity
types /
Types of fragments
ListFragment /
ListFragment
DialogFragment /
DialogFragment
PreferenceFragment /
PreferenceFragment
WebViewFragment /
WebViewFragment
G
getActivity() method /
Creating and managing fragments
getCalendarID() method /
Creating an event
getContactId() method /
Using Social API
getFragmentManager() method /
Programmatically adding a fragment
getStream() method /
Using Social API
getSupportFragmentManager() method /
How to use the Android Compatibility Package
GridLayout
about /
GridLayout
uses /
Why to use GridLayout
adding /
Adding a GridLayout
configuring /
Configuring GridLayout
GridLayout layout /
GridLayout
H
h<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
hasSubMenu() method /
Adding submenus to the ActionProvider
I
id property /
Creating and managing fragments
ImageButton component /
Adding an ActionProvider
ImageView component /
Beaming NdefMessages
initialize() method /
Sample Wi-Fi Direct application
intents
using, to create events /
Using Intents for creating events
L
layout_columnSpan property /
Adding a GridLayout
layout_gravity property /
GridLayout
layout_height properties /
GridLayout
,
Using match_parent and wrap_content
layout_weight property /
Using multiple fragments in an activity
layout_width properties /
GridLayout
,
Using match_parent and wrap_content
LinearLayout layout /
Adding an action bar
,
Creating and managing fragments
ListFragment /
ListFragment
ListView component /
Creating and managing fragments
M
match_parent /
Using match_parent and wrap_content
N
navigation
action bar, using /
Using the action bar for navigation
NdefMessages
beaming /
Beaming NdefMessages
NdefMessages, beaming
setNdefPushMessage() method /
Beaming NdefMessages
setNdefPushMessageCallback() method /
Beaming NdefMessages
setOnNdefPushCompleteCallback() method /
Beaming NdefMessages
NFC Tag /
Beaming NdefMessages
nine-patch
about /
Nine-patch
Draw 9-patch tool /
Nine-patch
O
OnActionExpandListener class /
Adding an action view
onActivityCreated() method /
Fragment lifecycle
onActivityCreated method /
Creating and managing fragments
OnActivityCreated method /
Creating and managing fragments
onAttach() method /
Fragment lifecycle
onBookSelectedListener interface /
Event sharing with activity
onBookSelected method /
Event sharing with activity
onBookSelected property /
Using multiple fragments in an activity
onChannelDisconnected() method /
Sample Wi-Fi Direct application
onClick() method /
Sample Wi-Fi Direct application
onClick(View v) method /
Using Social API
onClickListener() event /
Adding an ActionProvider
onClick method /
DialogFragment
onCreate() method /
Using Social API
,
Fragment lifecycle
,
Beaming NdefMessages
onCreate(Bundle savedInstanceState) method /
Using Social API
onCreateActionView() method /
Adding an ActionProvider
onCreateOptionsMenu(Menu menu) method /
ShareActionProvider
,
Adding an action view
onCreateOptionsMenu method /
Adding an action bar
onCreateView() method /
Fragment lifecycle
OnCreateView method /
Creating and managing fragments
onDestroy() method /
Fragment lifecycle
onDestroyView() method /
Fragment lifecycle
onDetach() method /
Fragment lifecycle
onItemClick method /
Event sharing with activity
onMenuItemClickListener events /
Adding submenus to the ActionProvider
onOptionsItemSelected method /
Adding an action bar
onPause() method /
Fragment lifecycle
onPeersAvailable() method /
Sample Wi-Fi Direct application
onPerformDefaultAction() method /
Adding an ActionProvider
onPrepareSubMenu(SubMenu subMenu) method /
Adding submenus to the ActionProvider
onReceive() method /
Sample Wi-Fi Direct application
onResume() method /
Fragment lifecycle
,
Beaming NdefMessages
onStart() method /
Fragment lifecycle
onStop() method /
Fragment lifecycle
P
PeerListListener /
Sample Wi-Fi Direct application
popBackStack() method /
Programmatically adding a fragment
PreferenceFragment /
PreferenceFragment
processIntent() method /
Beaming NdefMessages
R
RawContact
about /
Basics of contacts in Android
READ_CALENDAR permission /
Creating an event
reminder
adding /
Adding a reminder
requestConnectionInfo() method /
Sample Wi-Fi Direct application
requestPeers() method /
Sample Wi-Fi Direct application
rowCount properties /
GridLayout
S
screen sizes
different screen sizes, supporting /
Android 4.0 supports different screen sizes
about /
Android 4.0 supports different screen sizes
device, resolution /
Android 4.0 supports different screen sizes
device, screen density /
Android 4.0 supports different screen sizes
device, screen orientation /
Android 4.0 supports different screen sizes
qualifiers, for Android 2.3 /
Providing different layouts for different screen sizes
setNdefPushMessage() method /
Beaming NdefMessages
setNdefPushMessageCallback() method /
Beaming NdefMessages
setOnActionExpandListener() method /
Adding an action view
setOnNdefPushCompleteCallback() method /
Beaming NdefMessages
setShareHistoryFileName method /
ShareActionProvider
ShareActionProvider
about /
ShareActionProvider
ShareActionProvider. getShareIntent() method /
ShareActionProvider
ShareActionProvider attribute /
ShareActionProvider
show() method /
DialogFragment
showAsAction property /
Adding an action view
Social API
about /
Using Social API
space
about /
A new view – Space
StreamItemPhotos
about /
Basics of contacts in Android
StreamItems
about /
Basics of contacts in Android
submenus
ActionProvider, adding /
Adding submenus to the ActionProvider
sw<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
T
tag property /
Creating and managing fragments
TextView component /
GridLayout
,
Configuring GridLayout
,
Using match_parent and wrap_content
,
Using dip instead of px
,
Beaming NdefMessages
U
user interface
designing considerations, for Android applications /
Android 4.0 supports different screen sizes
user interface, designing
to support screen sizes /
Android 4.0 supports different screen sizes
wrap_content used /
Using match_parent and wrap_content
small screen, properties /
Using match_parent and wrap_content
normal screen, properties /
Using match_parent and wrap_content
large screen, properties /
Using match_parent and wrap_content
dip using, instead of pix /
Using dip instead of px
AbsoluteLayout, use omitting /
Omit using AbsoluteLayout
bitmaps, for screen densities /
Providing different bitmap drawables for different screen densities
layout, for screen sizes /
Providing different layouts for different screen sizes
nine-patch feature /
Nine-patch
W
w<N>dp, screen size qualifiers /
Providing different layouts for different screen sizes
WebViewFragment /
WebViewFragment
Wi-Fi Direct
about /
Wi-Fi Direct
sample application /
Sample Wi-Fi Direct application
onConnectionInfoAvailable() method, implementing /
Sample Wi-Fi Direct application
onClick() method, implementing /
Sample Wi-Fi Direct application
Wi-Fi Direct connection /
Wi-Fi Direct
WifiP2pManager class /
Wi-Fi Direct
,
Sample Wi-Fi Direct application
WIFI_P2P_PEERS_CHANGED_ACTION /
Sample Wi-Fi Direct application
WIFI_P2P_THIS_DEVICE_CHANGED_ACTION /
Sample Wi-Fi Direct application
wrap_content /
Using match_parent and wrap_content
WRITE_CALENDAR permission /
Creating an event
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset