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.wta.videodemo; | |
/* | |
* Copyright (C) 2012 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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 com.wta.videodemo; | |
import android.app.Activity; | |
import android.content.pm.ActivityInfo; | |
import android.hardware.Camera; | |
import android.media.CamcorderProfile; | |
import android.media.MediaRecorder; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.util.Log; |
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.example.android.api; | |
import com.android.volley.*; | |
import com.android.volley.toolbox.StringRequest; | |
import com.google.gson.Gson; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Map; | |
/** |
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
b.setOnTouchListener(new View.OnTouchListener() { | |
@Override | |
public boolean onTouch(View view, MotionEvent motionEvent) { | |
float touchPositionX = motionEvent.getX(); | |
float touchPositionY = motionEvent.getY(); | |
float touchNormalX = touchPositionX / b.getWidth()-.5f; | |
float touchNormalY = touchPositionY / b.getHeight()-.5f; | |
touchNormalX = Math.max(Math.min(touchNormalX, .5f), -.5f); | |
touchNormalY = Math.max(Math.min(touchNormalY, .5f), -.5f); | |
switch(motionEvent.getAction()) { |
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.lol.android.activity; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.ScrollView; | |
import android.widget.Toast; | |
import com.lol.android.R; |
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.blah.lol.swipetodismiss; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.VelocityTracker; | |
import android.view.View; | |
import android.widget.FrameLayout; | |
import com.blah.lol.R; |
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.lacronicus.supernova; | |
import android.animation.ValueAnimator; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff; | |
import android.graphics.PorterDuffXfermode; |
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.example.retrofitdemo3; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.TextView; | |
import android.widget.Toast; | |
import com.example.retrofitdemo3.api.NobelApi; | |
import com.example.retrofitdemo3.api.NobelService; |
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 crub.the.flub | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.ListView; | |
/** | |
* Created by fdoyle on 3/19/14. |
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
#!/bin/bash | |
VIDEO_LENGTH="10" | |
VIDEO_NAME="gifme.mp4" | |
GIF_NAME="gifme.gif" | |
GIF_OPTIMIZED_NAME="gifme-optimized.gif" | |
VIDEO_PATH="/sdcard/"$VIDEO_NAME | |
LOCAL_VIDEO_PATH="./"$VIDEO_NAME |
OlderNewer