paulocn / timetrackinutils

Simple Android application to register time on CI&T timetracking webapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timetrackinutils

Simple Android application to register time on CI&T timetracking webapp

Dowload APK

####Making an appointment:

    //Example
    public void actionApontar(View view) {

        TTAsyncRequest req = new TTAsyncRequest(mActivity);
        req.execute("USERNAME",
                    "PASSWORD");

    }

And register the callback:

    @Override
    public void requestFinished(JSONObject responseJSON) {

        if (responseJSON != null) {
            //this gets the message from the JSON
            String str = TTRequester.parseMessageFromTTJSON(responseJSON);
            //DO ACTION
    
        }else{
            //Something bad happened with the request, do something
        }

    }

####Adding a new fragment: Add a new fragment on the layout and make sure its called here (the last two are currently placeholders):

MainActivity.java

public void onNavigationDrawerItemSelected(int position)

And add as an option on:

public void onSectionAttached(int number)

About

Simple Android application to register time on CI&T timetracking webapp


Languages

Language:Java 100.0%