본문 바로가기

전체 글63

[Android] 이미지 뷰의 이미지를 다른 이미지 뷰로 가져오기 1234567ImageView iv = (ImageView) findViewById(R.id.iv);ImageView iv2 = (ImageView) view.findViewById(R.id.iv2);BitmapDrawable bitmapDrawable = (BitmapDrawable) iv.getDrawable();Bitmap bitmap = bitmapDrawable.getBitmap();iv2.setImageBitmap(bitmap); http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripterhttp://colorscripter.com/info#e" .. 2020. 3. 30.
[Android] 안드로이드 APK 분석 툴(디컴파일) jadx 과거 APK 디컴파일을 위해 무슨 과정을 많이 거쳤는데classes.dex 파일을 어떻게 jar로 변환하는지?폴더 구조는 보이지만 파일의 코드를 전혀 볼 수 없었는지?등의 문제를 거치다가 그 모든 과정을 깔끔하게 해결하는 방법을 찾았다.무료로 사용할 수 있으며 apk로 싸여진 java, xml 등 소스 코드를 볼 수 있게 해준다. 1. 사이트 접속 후 최신 버전 다운로드https://github.com/skylot/jadxskylot/jadxDex to Java decompiler. Contribute to skylot/jadx development by creating an account on GitHub.github.com 2. 링크 클릭시 3개의 파일 중 jre-windows.zip을 설치 3. 압.. 2020. 3. 25.
[Python] 윈도우에 파이썬 설치하기 1. 파이썬 공식 사이트에서 원하는 버전 다운로드 클릭https://www.python.org/downloads/Download PythonThe official home of the Python Programming Languagewww.python.org 2. 설치 파일 실행 후Add Python x.x to PATH 체크박스 클릭 3. 설치 완료 후 close 클릭[시작 -> 모든 프로그램 -> Python x.x] 에서 확인 가능하다. 2020. 3. 9.
[VB.net] 현재 폴더의 모든 파일 및 폴더 이름 불러오기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ListBox1.Items.Clear() Dim dir As New IO.DirectoryInfo(TextBox1.Text) Dim fname As IO.FileInfo Dim fname2 As IO.DirectoryInfo For Each fname In dir.GetFiles() ListBox1.Items.Add(fname) Next For Each fname2 In dir.GetDirectories() ListBox1.Items.Add(fna.. 2020. 3. 4.
[VB.net] html 소스 불러오기 컨트롤러 이름 텍스트 메모 TextBox TextBox1 Button Button1 Button1 Panel Panel1 AutoScroll 속성값 True Label Label1 Label1 Imports System.IO Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim winHttp As New WinHttp.WinHttpRequest Dim strUrl As String = TextBox1.Text winHttp.Open("GET", strUrl) winHttp.Send() Label1.Text = winHttp.ResponseText End Sub End Cl.. 2020. 2. 29.
[Android] 동적으로 레이아웃 추가하기 - HorizontalScrollView, Glide 평소처럼 ArrayList Adapter ListView 모양으로 구현하려다가 RecyclerView 라이브러리 사용을 피하고 싶어서 레이아웃을 추가하는 방식으로 가로 형태의 스크롤 뷰를 만들어봤습니다. 먼저, build.gradle (Module: app) 파일의 dependencies 블록 안에 glide 라이브러리 추가한 뒤 Sync now 클릭 // Glide 라이브러리 implementation 'com.github.bumptech.glide:glide:4.10.0' 1. MainActivity.java public class MainActivity extends AppCompatActivity { ArrayList arrayList; @Override protected void onCreate.. 2020. 2. 27.
온라인 IDE 모음 Code sandbox : https://codesandbox.io/CodeSandbox: Online IDE for Rapid Web DevelopmentCodeSandbox is an online code editor and prototyping tool that makes creating and sharing web apps fastercodesandbox.io 구름IDE : https://ide.goorm.io/구름IDE - 설치가 필요없는 통합개발환경 서비스구름IDE는 언제 어디서나 사용 가능한 클라우드 통합개발환경(Integrated Development Environment IDE)을 제공합니다. 웹브라우저만 있으면 코딩, 디버그, 컴파일, 배포 등 개발에 관련된 모든 작업을 클라우드에서 할.. 2020. 2. 25.
[VB.net] 리소스 이미지 저장 및 로드 Dim Path As String = "C:\TEST\" ' 리소스의 이미지를 Path 경로에 파일로 저장 My.Resources.test_image1.Save(Path & "test.jpg") ' 리소스의 이미지를 로드 PictureBox1.Image = My.Resources.test_image1 Dim Path As String = "C:\TEST\" ' 다른 형식의 파일 저장하기 Dim b1() As Byte = My.Resources.resource1 System.IO.File.WriteAllBytes(Path & "resource1", b1) 리소스에 있는 이미지를 원하는 경로에 저장 및 로드 2020. 2. 23.
[VB.net] 레지스트리 생성, 수정, 읽기 * 레지스트리란?윈도우 레지스트리(Windows Registry)는 마이크로소프트 윈도우 32/64비트 버전과 윈도우 모바일 운영 체제의 설정과 선택 항목을 담고 있는 데이터베이스로, 모든 하드웨어, 운영 체제 소프트웨어, 대부분의 비운영 체제 소프트웨어, 사용자 PC 선호도 등에 대한 정보와 설정이 들어 있다. 사용자가 제어판 설정, 파일 연결, 시스템 정책, 또는 설치된 소프트웨어를 변경하면, 이에 따른 변경 사항들이 레지스트리에 반영되어 저장된다.출처: https://ko.wikipedia.org/wiki/%EC%9C%88%EB%8F%84%EC%9A%B0_%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC Public Class Form1 Dim Path As Stri.. 2020. 2. 22.