2016년 2월 25일 목요일

[윈도우즈 권한설정] 이러한 특성을 변경하려면 관리자 권한이 있어야 합니다 라는 오류메세지

특정 폴더의 권한을 설정하려고 하는데

갑자기 이런 메세지가 나와서 

"이러한 특성을 변경하려면 관리자 권한이 있어야 합니다"

당황하셨어요? 고객님?

-------------------------------------

다음과 같이 설정하시고 

재부팅하신다음 폴더에 해당권한을 설정하시면 됩니다.





2016년 2월 21일 일요일

[안드로이드 개발] 일정시간 지난 다음 다른 Activity로 이동하기

Handler

일정시간 지난 다음 다른 Activity로 이동할 수 있도록 도와주는 Class입니다.

A Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue.
핸들러는 앱이 메세지를 프로세스에 보내거나 스레드의 메세지큐와 실행객체를 연결시킬 수 있습니다.
각 핸들러는 하나의 스레드와 그 스레드내의 메세지큐와 관련됩니다. 핸들러는 생셩후 스레드/스레드내 메세지큐와 연결되어야 합니다. ...........중략
There are two main uses for a Handler: (1) to schedule messages and runnables to be executed as some point in the future; and (2) to enqueue an action to be performed on a different thread than your own.
두 가지 사용법이 있습니다. (1) 메세지와 실행객체가 장래 특정시점에 실행되도록 예약하는 것과 (2) 다른 스레드에서 어떤 동작이 실행되도록 메세지큐에 더하는 방법이 있습니다.
Scheduling messages is accomplished with the post(Runnable), postAtTime(Runnable, long), postDelayed(Runnable, long), sendEmptyMessage(int), sendMessage(Message), sendMessageAtTime(Message, long), and sendMessageDelayed(Message, long) methods.
예약 메세지는 다음의 메소드들를 사용하여 완성하여야 합니다.
* 참조사이트: http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long)
여기서는 지연후 실행 postDelayed를 사용합니다.
public class StartActivity extends AppCompatActivity {

    @Override    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        setContentView(R.layout.activity_start);
        Handler mHandler = new Handler();        mHandler.postDelayed(new Runnable() {
            //Do Something            @Override            public void run() {
                // TODO Auto-generated method stub                Intent intent = new Intent(StartActivity.this, MainActivity.class);                startActivity(intent );
                finish();            }
        }, 2000); 
    }
}

2016년 2월 19일 금요일

[안드로이드 개발] 자신의 폰 번호 알아내기

1. manifest 파일에 권한 설정 설정
<uses-permission android:name="android.permission.READ_PHONE_STATE" />


2. 원하는 곳에 아래 소스 삽입
TelephonyManager telManager = (TelephonyManager)context.getSystemService(context.TELEPHONY_SERVICE);
String phoneNum = telManager.getLine1Number();

3. TelephonyManager 클래스에 대한 설명

Provides access to information about the telephony services on the device. Applications can use the methods in this class to determine telephony services and states, as well as to access some types of subscriber information. Applications can also register a listener to receive notification of telephony state changes.
안드로이드 기기들의 전화통신 서비스 정보에 대한 접근을 제공합니다. 앱에서 해당 클래스의 메소드를 사용하여 통신 서비스와 통신 상태, 통신 사용자 목록 등도 이용할 수 있습니다. 앱에서 통신상태의 변화가 있을 때 알림을 받기위한 리스너를 등록할 수도 있습니다.
You do not instantiate this class directly; instead, you retrieve a reference to an instance through Context.getSystemService(Context.TELEPHONY_SERVICE).
클래스를 정의하아 바로 사용할 수 없습니다. 대신에 Context.getSystemService(Context.TELEPHONY_SERVICE)를 사용하여 해당 객체의  참조를 얻어 사용할 수 있습니다.
Note that access to some telephony information is permission-protected. Your application cannot access the protected information unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the the methods through which you access the protected information.

<출처: http://developer.android.com/reference/android/telephony/TelephonyManager.html >

[월간 AJ TED 제 5호][안드로이드용 앱] 명도와 채도를 비교해볼 수 있는 재미있는 미술 놀이터 1탄

1. 제목: 미술놀이터 1 (명도와 채도)


아이들이 사진자료를 가지고

쉽게 명도와 채도를

비교해볼 수 있는 앱을 제작해보았습니다.

자신이 직접 촬영한 사진을 가지고

슬라이더 바를 이용하여

명도와 채도를 비교해볼 수 있습니다.









2016년 2월 2일 화요일

[월간 AJ TED 제 4호][안드로이드용 앱] 아이들의 상점 벌점을 관리해주는 키즈 피드백 업데이트

1. 앱 제목: 키즈 피드백 2


아이들의 상점 벌점을 아주 쉽게

관리할 수 있는 키즈 피드백입니다.

버전 1에 점수별 아이템을 생성 기능을

더했습니다.


재미있는 아이별로 동물 캐릭터를

선택하여 이름과 함께 사용자 등록을 할 수 있습니다.





언제든지 사용자 수정이 가능합니다.


아이들의 점수별 획득할 아이템을 설정할 수 있습니다.



버튼 클릭으로 상점과 벌점을 줄 수 있습니다.


자신의 점수에서

사용가능한 아이템 목록을

보여줍니다.

클릭하여 사용하면 됩니다.