안녕하세요.
GCM관련해서 http://developer.android.com/google/gcm/gs.html 링크를 보고 작업을 진행하고 있는데요.
클라이언트에서 GCM을 사용하기 위해서 Project ID를 Registration하는 부분이 있는데..
관련 링크에서는
new AsyncTask() {
@Override
protected String doInBackground(Void... params) { }
}.execute(null ,null, null);
이런 형태로 사용하고 있는데요. 위와 같이 하니깐
Multiple markers at this line
- AsyncTask is a raw type. References to generic type AsyncTask<Params,Progress,Result> should be arameterized
- The type new AsyncTask(){} must implement the inherited abstract method AsyncTask.doInBackground(Object...)
- Type safety: The method execute(Object...) belongs to the raw type AsyncTask. References to generic type AsyncTask<Params,Progress,Result> should be parameterized
이런 경고와 에러를 보내는데.. 어떻게 해야 하는 지를 잘 모르겠습니다.
대개는
AsyncTask mTask = new AsyncTask<Params, Void, Result> {
};
mTask.execute();
이렇게 썼었는데 어떻게 바꿔줘야 되는지 도움 좀 부탁드립니다.