Android Open Source - VisEQ My Application






From Project

Back to project page VisEQ.

License

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.

Java Source Code

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();
  }
  
  

}




Java Source Code List

com.lsu.vizeq.AboutActivity.java
com.lsu.vizeq.Artist.java
com.lsu.vizeq.BackableActivity.java
com.lsu.vizeq.HostActivity.java
com.lsu.vizeq.HostMenuActivity.java
com.lsu.vizeq.HostProfileActivity.java
com.lsu.vizeq.HostSoundVisualizationActivity.java
com.lsu.vizeq.Installation.java
com.lsu.vizeq.LibSpotifyWrapper.java
com.lsu.vizeq.LoginActivity.java
com.lsu.vizeq.MyApplication.java
com.lsu.vizeq.MyCanvas.java
com.lsu.vizeq.PVCircle.java
com.lsu.vizeq.PacketParser.java
com.lsu.vizeq.PlayerActivity.java
com.lsu.vizeq.PreferenceCircle.java
com.lsu.vizeq.PreferenceVisualizationActivity.java
com.lsu.vizeq.PreferenceVisualizer.java
com.lsu.vizeq.ProfileActivity.java
com.lsu.vizeq.RemoteControlReceiver.java
com.lsu.vizeq.RequestDetailsActivity.java
com.lsu.vizeq.RoleActivity.java
com.lsu.vizeq.SearchActivity.java
com.lsu.vizeq.SearchPartyActivity.java
com.lsu.vizeq.ServiceBinder.java
com.lsu.vizeq.SettingsActivity.java
com.lsu.vizeq.SoundVisualizationActivity.java
com.lsu.vizeq.SpotifyService.java
com.lsu.vizeq.TrackRow.java
com.lsu.vizeq.Track.java
com.lsu.vizeq.VisualizerView.java
com.lsu.vizeq.VizEQ.java
com.lsu.vizeq.WebService.java
com.lsu.vizeq.util.SystemPropertiesProxy.java
com.lsu.vizeq.util.SystemUiHiderBase.java
com.lsu.vizeq.util.SystemUiHiderHoneycomb.java
com.lsu.vizeq.util.SystemUiHider.java
com.lsu.vizeq.util.TunnelPlayerWorkaround.java