Skip to content

Instantly share code, notes, and snippets.

@heriniaina
heriniaina / RVG Player 2 (iframe)
Last active August 29, 2015 14:16
RVG Player 2 (Iframe)
<iframe src="http://radiovazogasy.com/player/"
framespacing="0"
style="border: none; width: 100%"
id="rvgPlayer"
scrolling="no"
width="300"
height="30"
frameborder="no"></iframe>
body {
background-color: yellow; /* when edited */
}
@heriniaina
heriniaina / gist:07dc9f9b76b6ea2e5f73
Created December 21, 2014 07:06
Android Action send
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, a_title + ": " + a_text + " \n" + a_link);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));
@heriniaina
heriniaina / gist:9b752e163b125a1a1953
Last active August 29, 2015 14:11
Context menu with object
@Override
protected void onCreate(Bundle savedInstanceState) {
(...)
lv = (ListView) findViewById(R.id.lstResult);
registerForContextMenu(lv);
(...)
}
@Override
.img-intro-left {
border: 1px solid #aaa;
box-shadow: 10 10 10 #000;
float: left;
margin-right: 10px;
padding: 5px;
}