present simple git flow & android tips

36
Git Flow and Android Tips

Upload: arif-huda

Post on 30-Jul-2015

616 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Present Simple Git Flow & Android Tips

Git Flow and Android Tips

Page 2: Present Simple Git Flow & Android Tips

Introducing Git Flow

Page 3: Present Simple Git Flow & Android Tips
Page 4: Present Simple Git Flow & Android Tips

Make it simple!

Evan

ArifA team

Angga

Page 5: Present Simple Git Flow & Android Tips

Master (branch)

Initial commit by evan

Page 6: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

Page 7: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

Page 8: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

Page 9: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

[merge][commit]auth feature has done

Page 10: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

[merge][commit]auth feature has done[commit]

Detect locationUsing GPS by angga

Page 11: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

[merge][commit]auth feature has done[commit]

Detect locationUsing GPS by angga

[commit]Load all seller data

By evan

Page 12: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

[merge][commit]auth feature has done[commit]

Detect locationUsing GPS by angga

[commit]Load all seller data

By evan

[commit]Create function

For buy an item by arif

Page 13: Present Simple Git Flow & Android Tips

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

[merge][commit]auth feature has done[commit]

Detect locationUsing GPS by angga

[commit]Load all seller data

By evan

[commit]Create function

For buy an item by arif [merge][commit]apps ready for buy item

Page 14: Present Simple Git Flow & Android Tips

oAuth

Page 15: Present Simple Git Flow & Android Tips
Page 16: Present Simple Git Flow & Android Tips
Page 17: Present Simple Git Flow & Android Tips

Once Time Login

Page 18: Present Simple Git Flow & Android Tips
Page 19: Present Simple Git Flow & Android Tips

start

loginUser hasToken?

Save token

next process

finish

y

Page 20: Present Simple Git Flow & Android Tips

public void onCreate(){setContentView(R.layout.activity_main)If(!user.hasToken()){

// go to login activity}

}

btnLogin.setOnClickListener(new OnClickListener{//…login(“email”,”password”).process(){

protected void onSucceeded(String token){//save token to shared preference

}protected void onFailure(Exception e){

}};

});

Page 21: Present Simple Git Flow & Android Tips

Android Service

Page 22: Present Simple Git Flow & Android Tips

Problem : each apps has own life time. Android wil “kill” the apps which run on background and no longer used. How to handle a task which take long time running like upload or download?Solution :A Service is an application component that can perform long-running operations in the background and does not provide a user interface.

Page 23: Present Simple Git Flow & Android Tips

● Download/upload with long time progress● Playing music on background● An application with long time running

Page 24: Present Simple Git Flow & Android Tips

Push Notification Tech.

Page 25: Present Simple Git Flow & Android Tips

Push, or server push, describes a style of Internet-based communication where the request for a given transaction is

initiated by the publisher or central server.

Page 26: Present Simple Git Flow & Android Tips
Page 27: Present Simple Git Flow & Android Tips

GPS Location & direction

Page 28: Present Simple Git Flow & Android Tips

Here's the typical flow of procedures for obtaining the user location:1)Start application.2)Sometime later, start listening for updates from desired location providers.3)Maintain a "current best estimate" of location by filtering out new, but less

accurate fixes.4)Stop listening for location updates.5)Take advantage of the last best location estimate.

Page 29: Present Simple Git Flow & Android Tips

A direction consist from a set collection of location data (latitude,longitude).

(lat1,lng1), → start point(lat2,lng2),(lat3,lng3),(lat4,lng4),(lat5,lng5),(lat6,lng6),(lat7,lng7),(lat8,lng8),(lat9,lng9),(lat10,lng10),(lat11,lng11)→ end point

Page 30: Present Simple Git Flow & Android Tips

Bluetooth Low EnergyIntroducing Ibeacon Technology

Page 31: Present Simple Git Flow & Android Tips

● A protocol standarized by apple● Bluetooth v 4.0 transmitter● Used to mark a place or thing● Typical range from 25m to 40m

What is I beacon?

Page 32: Present Simple Git Flow & Android Tips
Page 33: Present Simple Git Flow & Android Tips

I beacon broadcast a data :

04 3E 2A 02 01 00 01 FC ED 16 D4 EE D6 1E 02 01 06 1A FF 4C 00 02 15 B9 40 7F 30 F5 F8 46 6E AF F9 25 55 6B 57 FE 6D ED FC D4 16 B6 B4

Page 34: Present Simple Git Flow & Android Tips
Page 35: Present Simple Git Flow & Android Tips
Page 36: Present Simple Git Flow & Android Tips

Final assignment

Buatlah sebuah aplikasi dengan menggunakan teknologi client server (BEBAS). Misalnya :

● Aplikasi toko online● Digital Food Menu on Restaurant● Delivery Service application

Rule :● Gunakan akun Github untuk distribusi code● Masing2 anggota kelompok wajib memberi kontribusi

dengan cara melakukan commit● Kirim url project github ke [email protected]