This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alorma.changetheworld.bbdd; | |
import android.provider.BaseColumns; | |
/** | |
* Created by Bernat on 11/02/14. | |
*/ | |
public interface Contract extends BaseColumns{ | |
String create(); | |
String alter(int oldVersion, int newVersion); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alorma.changetheworld.bbdd; | |
import android.content.ContentValues; | |
import android.database.Cursor; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:enterFadeDuration="@android:integer/config_shortAnimTime" android:exitFadeDuration="@android:integer/config_shortAnimTime"> | |
<item android:drawable="@drawable/card_rounded_bg_selected" android:state_selected="true" /> | |
<item android:drawable="@drawable/card_rounded_bg_selected" android:state_pressed="true" /> | |
<item android:drawable="@drawable/card_rounded_bg_normal" /> | |
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alorma.universidad; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends Activity implements VersionChecker.VersionCheckerListener { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package app.picaboo.android.security; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.preference.PreferenceManager; | |
import java.util.UUID; | |
/** | |
* Created by Bernat on 07/06/2014. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package app.picaboo.android.security; | |
import android.accounts.Account; | |
import android.accounts.AccountManager; | |
import android.content.Context; | |
import java.util.UUID; | |
import app.picaboo.android.BuildConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean checkMinVersion(String currentVersion) { | |
int[] currentVersionInts = convertToIntArray(currentVersion); | |
int[] minVersionInts = convertToIntArray(minimunVersion); | |
if ((currentVersionInts != null && currentVersionInts.length == 3) && | |
(minVersionInts != null && minVersionInts.length == 3)) { | |
int majorC = currentVersionInts[0]; | |
int minorC = currentVersionInts[1]; | |
int patchC = currentVersionInts[2]; | |
int majorM = minVersionInts[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package android.widget; | |
import android.os.CountDownTimer; | |
import android.view.View; | |
/** | |
* Created by a557114 on 20/06/2014. | |
*/ | |
public class DirectionalScrollListener implements AbsListView.OnScrollListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package android.widget; | |
import android.content.Context; | |
import android.content.res.ColorStateList; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.text.Html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected int roundUp(int n) { | |
return (n + 4) / 5 * 5; | |
} |
OlderNewer