Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View iftekhar-ahmed's full-sized avatar

Iftekhar Ahmed iftekhar-ahmed

  • Bonn, Germany
View GitHub Profile
@iftekhar-ahmed
iftekhar-ahmed / ControllableAppBarLayout.java
Last active August 17, 2020 17:27 — forked from marcelpinto/ControllableAppBarLayout.java
A modified version of ControllableAppBarLayout that allows to add/remove multiple listeners for layout state change (collapsed, expanded or idle). The original ControllableAppBarLayout is here https://gist.github.com/blipinsk/3f8fb37209de6d3eea99
/**
* Copyright 2015 Bartosz Lipinski
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
@iftekhar-ahmed
iftekhar-ahmed / gist:dc9c9c50e8101f679920
Created February 19, 2015 18:56
Fix UTF-8 header issue with json response
public class SyncService extends Service {
private DbManager dbManager;
@Override
public IBinder onBind(Intent intent) {
throw new UnsupportedOperationException("Not yet implemented");
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
HttpHelper httpHelper = HttpHelper.getInstance(this);
DbManager.init(this);