Skip to content

Instantly share code, notes, and snippets.

View seungwoonlee's full-sized avatar
🎯
Focusing

winCloud seungwoonlee

🎯
Focusing
View GitHub Profile
@seungwoonlee
seungwoonlee / MainActivity.java
Last active December 12, 2015 09:39
Android Gallery Image Selector
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType("image/*");
intent.setData(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 0);
@seungwoonlee
seungwoonlee / UserInputActivity.java
Created February 10, 2013 18:51
Android UserInput Logging
package com.example.userinput;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
public class UserInputActivity extends Activity {
@seungwoonlee
seungwoonlee / SimpleLockScreen.java
Last active October 16, 2021 03:08
Simple Android LockScreen
package com.example.lockscreen;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.Toast;
@seungwoonlee
seungwoonlee / HelloAndroidActivity.java
Last active December 12, 2015 09:09
Simple Android onClick()
public void onClick(View v) {
if (v.getId() == R.id.Button01) { // if you pressed the 'Button01'
finish(); // finish this Activity
}
}