This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET https://www.googleapis.com/plus/v1/people/{userId}/activities/public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.post-container { | |
overflow: auto; | |
border: thin solid #0F5B01; | |
margin: 0 20 20 0; | |
} | |
.post-content { | |
margin-bottom:20px; | |
} | |
.post-content-header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>EXAMPLE: Show g+ posts on my website</title> | |
</head> | |
<body> | |
<h1> MY G+ POSTS </h1> | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// erhalte view des widgets | |
RemoteViews views = new RemoteViews(context.getPackageName(), | |
R.layout.appwidget_layout); | |
Intent intentWidget = new Intent(context, getClass()); | |
// möchte man Inforamtionen mitschicken, | |
// so kann dies über ein Bundle geamcht werden | |
PendingIntent pendingIntentWidget = PendingIntent.getBroadcast(context, 0, | |
intentWidget, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// erhalte view des widgets | |
RemoteViews views = new RemoteViews(context.getPackageName(), | |
R.layout.appwidget_layout); | |
Intent intentActivity = new Intent(context, MainActivity.class); | |
// möchte man Informationen mitschicken, | |
// so kann dies über ein Bundle gemacht werden | |
PendingIntent pendingIntentActivity = PendingIntent.getActivity(context, 0, intentActivity, 0); | |
// mein Widget enthält ein button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quelle: http://stackoverflow.com/questions/13469907/textview-in-android-widget-doesnt-update/13470122#13470122 | |
Intent updateWidget = new Intent(context, ExampleWidgetProvider.class); | |
updateWidget.setAction("update_widget"); | |
PendingIntent pending = PendingIntent.getBroadCast(context, | |
0, | |
updateWidget, | |
PendingIntent.FLAG_CANCEL_CURRENT); | |
pending.send(); |
NewerOlder