View audio_detector.sh
#!/bin/bash
SWITCH_ON_CMD="echo 'on 0' > /tmp/cec.fifo"
CHANGE_HDMI="echo 'as' > /tmp/cec.fifo"
if [ -e "/tmp/cec.fifo" ]; then
echo proceeding: file exists
else
echo You need to start the server.
exit
fi
View Adapters.java
/*
* We want to auth our user on an application.
* We have two way to auth our user.
* We can either authenticate the user using his mail and password via Google, thanks to the Google SDK
* Or we can use the Facebook SDK to auth our user.
*/
public GoogleAuthenticator() {
public String authenticateViaGoogle(String mail, String password) {
//Android code
View BundleTestActivity.java
package com.magicmicky.loosecoopling;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
View InflationPerformanceTestActivity.java
package com.magicmicky.testperfviews;
import android.app.Activity;
import android.graphics.LinearGradient;
import android.os.Debug;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;