MetalMichael / MobileTimetable

Mobile Application Development Coursework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MobileTimetable

Mobile Application Development Coursework

APIClass Example implementation

Note: method and action are required key-value pairs in the request HashMap.

class Callback implements OnTaskCompleted{
    @Override
    public void onTaskCompleted(JSONObject result) {
        Log.d("Resulting Request",result.toString());
    }
}
HashMap<String,String> request = new HashMap<String, String>();
request.put("method","module");
request.put("action","getall");
request.put("auth","debug");
new APIClass(getActivity(), new Callback()).execute(request);

About

Mobile Application Development Coursework


Languages

Language:Java 100.0%