Reputation: 10856
i am making google calendar application in android and i don't know how to use google Authorization service in our android application?
Upvotes: 2
Views: 1043
Reputation: 410
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("<URL HERE>");
try {
List<NameValuePair> parameters = new ArrayList<NameValuePair>(2);
parameters.add(<name_value_pair>);
parameters.add(<name_value_pair>);
httppost.setEntity(new UrlEncodedFormEntity(parameters));
HttpResponse response = httpclient.execute(httppost);
StatusLine returned_status = response.getStatusLine();
int status_code = returned_status.getStatusCode();
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}
Upvotes: 1
Reputation: 30855
check the OAuth concept in this you can implement by this OAuth.
check this post links
Android Google Calendar Authorization Problem
Synchronising Google Calendar to my application in Android
Google calendar: how to access it on android
http://code.google.com/p/google-api-java-client/wiki/Android
Upvotes: 1
Reputation: 24031
This project describes google auth and this tutorial for calendar.
Upvotes: 2