This file contains hidden or 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
| # Copyright: Benjamin Weiss (keyboardsurfer) https://github.com/keyboardsurfer | |
| # Under CC-BY-SA V3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode) | |
| # built application files | |
| *.apk | |
| *.ap_ | |
| *.jar | |
| !gradle/wrapper/gradle-wrapper.jar | |
| # lint folder |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| maven { | |
| url 'https://oss.sonatype.org/content/repositories/snapshots/' | |
| } | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.9.+' | |
| classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT' |
This file contains hidden or 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 UtilConnectionDialogValid utilConnectionValid; | |
| public void main(){ | |
| this.utilConnectionValid= new UtilConnectionDialogValid(this, ConstServices.BASE_URL,R.string.connection_no_server,R.string.connection_no_found); | |
| } | |
| public void daoMethod() | |
| { | |
| if(!this.utilConnectionValid.isConnected()) | |
| { |
This file contains hidden or 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
| /** | |
| * Get a diff between two dates | |
| * @param date1 the oldest date | |
| * @param date2 the newest date | |
| * @param timeUnit the unit in which you want the diff, TimeUnit is java.util.concurrent.TimeUnit, a standard Java enum going from nanos to days. | |
| * @return the diff value, in the provided unit | |
| */ | |
| public static long getDateDiff(Date date1, Date date2, TimeUnit timeUnit) { | |
| long diffInMillies = date2.getTime() - date1.getTime(); | |
| return timeUnit.convert(diffInMillies,TimeUnit.MILLISECONDS); |
This file contains hidden or 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
| khjkhjkkjh |
NewerOlder