Programming(18)
-
[JAVA] Foreground Service, send Intent object and thread
*Foreground Service를 동작하면서 Thread를 돌리고 Foregroudn Service를 동작할때 Intent에 Intent Object를 전달하는 방법 *MainActivity Intent getIntent = getIntent(); testSerializable testSerializable = (com.example.myapplication.testSerializable) getIntent.getSerializableExtra("userIntent"); if(testSerializable != null){ Log.d(TAG, "NUM : " + testSerializable.getNum()); }else{ Log.d(TAG,"userObject Null"); } 1. getInten..
2021.02.20 -
[JAVA] Add Button in Notification
Notification에 Button을 Add 하는 방법 1. Notifcation을 눌렀을때 일반적으로 반응할 Intent 선언 2. Notification에서 Button을 눌렀을떄 사용할 Intent를 선언 3. Notification에서 addAction을 추가 (Notifcation EXIT 기능 Action) createNotificationChannel(); Intent notificationIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); //end option Intent notificationca..
2021.02.20 -
Android Studio Setting
Android Studio Setting * android-studio-ide-201.7042882-windows *
2021.02.20 -
[JAVA] Foreground Service & SMS Broadcast Example
*Foreground Service Example https://androidwave.com/foreground-service-android-example/ Foreground Service Android Example - AndroidWave In this Post, I'll explain about foreground service android, How does work? What are the advantages and implementation? At last, I will prepare a foreground service sample app. androidwave.com 해당 예제를 베이스삼아 Foreground Service가 도는 상태에서 SMS Broadcast 를 받는 예제를 만들어보..
2021.02.19 -
[C#] CAD Fillet 기능 구현 예시 [도형의 모서리를 둥글게 하는 작업]
사용한 Visual Studio 환경 더보기 Visual Studio Community 2019 vs_community__468244237.1605342870 CAD의 Fillet 기능 : 도형의 꼭지점을 반지름만큼 둥글게 하는 작업 C#으로 구현하기 C# Code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1 { public..
2021.01.18 -
[C#] 마우스를 올려놨을 때 이미지를 미리 볼 수 있는 기능 예시 [Tooltip/Image]
사용한 Visual Studio 환경 더보기 Visual Studio Community 2019 vs_community__468244237.1605342870 Label에 마우스를 올려놓으면, 예시 이미지가 뜨는 기능 이미지는 귀여운 죠르디 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class..
2021.01.18