마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

Action.newAction 의 newAction 이 해석할수없다고 나옵니다

0 추천

 

import android.support.v4.app.NotificationCompat.Action;
import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.common.api.GoogleApiClient;

 

Action viewAction = Action.newAction(
        Action.TYPE_VIEW, // TODO: choose an action type.
        "Main Page", // TODO: Define a title for the content shown.
        // TODO: If you have web page content that matches this app activity's content,
        // make sure this auto-generated web page URL is correct.
        // Otherwise, set the URL to null.
        Uri.parse("http://host/path"),
        // TODO: Make sure this auto-generated app URL is correct.
        Uri.parse("android-app://wri.modu.da.modumusic/http/host/path")
);

위코드에서

Action.newAction

의 newAction 이 can not resolve 라고 나옵니다

Action.TYPE_VIEW

의 TPE_VIEW 도 마찬가지로 나오는데

어떤이유인가요?

구름처럼달처럼 (5,830 포인트) 님이 2016년 7월 28일 질문

1개의 답변

0 추천
Action 클래스에는 newAction이나 TYPE_VIEW 등이 없습니다.

https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.html
익명사용자 님이 2016년 7월 28일 답변
...