Skip to content

Instantly share code, notes, and snippets.

View tediscript's full-sized avatar
🎯
Focusing

Alfredo Pareto tediscript

🎯
Focusing
View GitHub Profile
Bitmap mBitmap = BitmapFactory.decodeResource(getResources(), R.id.full_image_view);
WallpaperManager myWallpaperManager = WallpaperManager
.getInstance(getApplicationContext());
try {
myWallpaperManager.setBitmap(mBitmap);
Toast.makeText(SetWallPaper.this, "Wallpaper set",
Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(SetWallPaper.this,
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:117/255.0f green:4/255.0f blue:32/255.0f alpha:1];
INSERT IGNORE
INTO table_1
SELECT *
FROM table_2
$ tail -f /var/log/dmesg
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
- (void)viewDidLoad
{
[super viewDidLoad];
[self.inputTextOutlet becomeFirstResponder];
}