Back to project page VisEQ.
The source code is released under:
Copyright (c) 2012, Spotify AB All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:...
If you think the Android project VisEQ listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lsu.vizeq; /* w w w .j a v a2 s . co m*/ import java.net.InetAddress; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.media.AudioManager; import android.os.Build; import android.util.Log; public class MyApplication extends Application { public Map<InetAddress, String> connectedUsers = new HashMap<InetAddress, String>(); public ArrayList<Track> queue = new ArrayList<Track>(); public ArrayList<Track> requests = new ArrayList<Track>(); public InetAddress hostAddress; public String myName = ""; public String zipcode = null; public String myIp; public boolean joined = false; public boolean hosting = false; public JedisPool jedisPool = new JedisPool(new JedisPoolConfig(), Redis.host, Redis.port); String brand = Build.BRAND; // for getting BrandName String model = Build.MODEL; // for getting Model of the device public static boolean doFlash; public static boolean doBackground; public static boolean tapToFlash = false; @Override public void onCreate() { SharedPreferences memory = getSharedPreferences("VizEQ",MODE_PRIVATE); doFlash = memory.getBoolean("cameraFlash", true); doBackground = memory.getBoolean("backgroundFlash", true); //super.onCreate(); /* * Workaround attempt for Nexus 7. See what the brand and model strings actually are in debug mode and adjust accordingly. * Then, it would solo that stream for the whole application, but I think our sound driver probably won't push the music out through there. * Give it a try though. */ } @Override public void onTerminate() { // Log.d("Jedis", "Disconnecting Jedis"); jedisPool.destroy(); super.onTerminate(); } }