(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
private void buildImeCompletions() { | |
final int limit_result=20; | |
//change the limit_result value | |
final ListAdapter adapter = mAdapter; | |
if (adapter != null) { | |
InputMethodManager imm = InputMethodManager.peekInstance(); | |
if (imm != null) { | |
final int count = Math.min(adapter.getCount(), limit_result); | |
CompletionInfo[] completions = new CompletionInfo[count]; |
int day = datePicker.getDayOfMonth(); | |
int month = datePicker.getMonth() + 1; //plus 1 for making correct format | |
int year = datePicker.getYear(); | |
long unixtime; | |
String date = ""+day+month+year; //making String for SimpleDateFormat | |
DateFormat dfm = new SimpleDateFormat("ddMMyyyy"); // instantiate SimpleDateFormat | |
try{ |
//internal storage | |
StatFs statFs = new StatFs(Environment.getRootDirectory().getAbsolutePath()); | |
long blockSize = statFs.getBlockSize(); | |
long totalSize = statFs.getBlockCount()*blockSize; | |
long availableSize = statFs.getAvailableBlocks()*blockSize; | |
long freeSize = statFs.getFreeBlocks()*blockSize; | |
//esternal storage | |
StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath()); | |
long blockSize = statFs.getBlockSize(); |
Dim http | |
Set http = CreateObject("MSXML2.ServerXmlHttp") | |
http.open "GET", "http://ifconfig.me/ip", False | |
http.send | |
Dim ipText | |
ipText = http.responseText | |
Set http = Nothing | |
Set objMail = CreateObject("CDO.Message") | |
Set objConf = CreateObject("CDO.Configuration") |
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 4.4.2 (https://www.mediafire.com/?qbbt4lhyu9q10ix) | |
Google Apps for Android 4.3 (http://goo.im/gapps/gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (http://goo.im/gapps/gapps-jb-20130812-signed.zip) | |
Google Apps for Android 4.1 (http://goo.im/gapps/gapps-jb-20121011-signed.zip) | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2014 | |
Copyright (C) 2014 Addy Osmani @addyosmani | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Stack; | |
import android.os.FileObserver; | |
public class TusharFileObserver extends FileObserver { | |
public static int CHANGES_ONLY = CLOSE_WRITE | MOVE_SELF | MOVED_FROM; |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.cards.notification"> | |
<uses-sdk | |
android:minSdkVersion="17" | |
android:targetSdkVersion="17" /> | |
<application | |
android:allowBackup="true" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
package net.appersian.android.wod.common; | |
import java.security.SecureRandom; | |
import javax.crypto.Cipher; | |
import javax.crypto.KeyGenerator; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.SecretKeySpec; | |
public class Encryptor { |