present simple git flow & android tips

Post on 30-Jul-2015

617 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Git Flow and Android Tips

Introducing Git Flow

Make it simple!

Evan

ArifA team

Angga

Master (branch)

Initial commit by evan

Master (branch)

[commit]Initial commit by evan

Develop (branch)

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

Master (branch)

[commit]Initial commit by evan

Develop (branch)

[commit] Login UI by arif

[commit]signup UI by angga

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

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

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

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

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

oAuth

Once Time Login

start

loginUser hasToken?

Save token

next process

finish

y

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){

}};

});

Android Service

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.

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

Push Notification Tech.

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.

GPS Location & direction

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.

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

Bluetooth Low EnergyIntroducing Ibeacon Technology

● 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?

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

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 omayib@gmail.com

top related