cookie stuff, android adapter code