This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
/* | |
* NumericPreference.java | |
* | |
*Copyright © Ropardo™ 2013. | |
*/ | |
package ro.ropardo.imobiledistribution.utils; | |
import android.content.Context; | |
import android.preference.EditTextPreference; | |
import android.util.AttributeSet; |
-injars bin/classes | |
-injars libs | |
-outjars bin/classes-processed.jar | |
-libraryjars C:\android-sdk\platforms\android-17\android.jar | |
-libraryjars C:\android-sdk\add-ons\addon-google_apis-google-17\libs\maps.jar | |
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontpreverify |
final Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); | |
final Intent cancelIntent = new Intent(this, MHRCancelNotificationsActivity.class); | |
cancelIntent.putExtra(MyHeartRateKeys.CANCEL_NOTIFICATION, true); | |
cancelIntent.putExtra(MyHeartRateKeys.USER_ID, mUserId); | |
cancelIntent.putExtra(MyHeartRateKeys.NOTIFICATION_ID, ALERT_NOTIFICATION_ID); | |
cancelIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | |
PendingIntent pendingCancel = PendingIntent.getActivity(this, 0, cancelIntent, PendingIntent.FLAG_UPDATE_CURRENT); | |
final Intent sessionActivityIntent = new Intent(this, MHRSessionActivity.class); |
package ro.stemo.android.clockwidget.preferences; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.preference.Preference; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewParent; |
private Drawable getGrayScaleDrawable() { | |
int id = getAreaCharacterId(); | |
Bitmap bmp = BitmapFactory.decodeResource(getResources(),id); | |
int width = bmp.getWidth(); | |
int height = bmp.getHeight(); | |
Bitmap grayScale = Bitmap.createBitmap(width,height, Bitmap.Config.ARGB_8888); | |
Canvas c = new Canvas(grayScale); | |
Paint paint = new Paint(); | |
ColorMatrix cm = new ColorMatrix(); |
#pragma strict | |
var minSwipeDistY : float; | |
var minSwipeDistX : float; | |
var Swipe: GUIText; | |
private var startPos :Vector2; |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; | |
/** | |
* | |
*/ | |
public final class StackBlur { | |
private static final int PARALLEL_THRESHOLD = 2048 * 2048; |
package com.owncloud.android.ui.activity; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.preference.Preference; |