Ade Rifaldi
Mobile Developer @ Radya Labs
Android Kejar Facilitator (Intermediate)
Android For Beginner
absensi
https://goo.gl/RbCynO
download or clone
https://goo.gl/0dmmHp
Android Studio 2.1
Gradle 2.1.0
Instant Run
Emulator More Fast
Autocomplete "@mipmap" in xml editor
Add Library Dependency (F4 on app)
"drawable" | "mipmap"
Let’s Code!!! – Part 1
• Create Project
• Setup Project : add library dependency, setup package, add BaseApi
Class.
• Set ImageView Source From Assets (res).
• Set TextView Value From Variable & Assets (res).
• Set OnClick in XML & Java.
• Intent to Other Activity.
• Intent to Open Browser.
Library Dependency
Setup Package
Base API Class
Parsing JSON Response to Model Class
1. Identify latest objects.
2. Start from JSONObject
or JSONArray.
3. Name of variable must
be same with field
name in JSON Response.
4. Don’t forget to
implements Serializable.
5. Set array if array and
object if object.
•Set ImageView Source From Assets (res).
•Set TextView Value From Variable & Assets (res).
•Set OnClick in XML & Java.
•Intent to Other Activity.
•Intent to Open Browser.
MVC
Let’s Code!!! – Part 2
• Setup Model.
• Setup View : add RecyclerView in Activity XML, add adapter view
(item view).
• Setup Controller : add API Class, add adapter class.
• Call API Class in Activity.
• Add data to adapter.
RecyclerView
• Layout Manager (LinearLayoutManager and GridLayoutManager)
• ViewHolder
API Class : ApiGetJSONData
Add Data to Adapter
Hatur Nuhun
ade.rifaldi@gmail.com
085719004268

Android Training For Beginner @DILO Bandung