2015-01-13 7 views
0

나는 Flurry Analytics를 공식 문서와 함께 사용하려고 노력해 왔지만 그것을 얻지는 못하고 있습니다. 여기에 질문에 대답으로 : How to use flurry in an application? 내가Android에서 Flurry Analytics를 새로 추가하는 방법은 무엇입니까?

import com.flurry.android.FlurryAgent; 
@Override 
protected void onStart() 
{ 
super.onStart(); 
    FlurryAgent.onStartSession(this, "YOUR_API_KEY"); 
} 
@Override 
protected void onStop() 
{ 
super.onStop(); 
FlurryAgent.onEndSession(this); 
    } 

을 사용하지만 위의 코드가되지 않는 것 같다, 공식 문서는 응용 프로그램을 출시하여

//If you are shipping an app, extend the Application class if you are not already doing so: 

public class MyApplication extends Application { 
@Override 
public void onCreate() { 
super.onCreate(); 
// configure Flurry 
FlurryAgent.setLogEnabled(false); 

// init Flurry 
FlurryAgent.init(this, MY_FLURRY_APIKEY); 
} 
} 

은 무엇을 의미 사용할 말한다? 새로운 Flurry 분석을 통합하는 방법은 무엇입니까? 도와주세요. 이 @Override public void onStart() { super.onStart(); // Start Flurry FlurryAgent.onStartSession(this,); } @Override public void onStop() { // stop Flurry FlurryAgent.onEndSession(this); super.onStop(); } 질풍의 최신 버전이 단순화 단일를 추가함으로써 다음 ONSTART()와 중지시에() 메소드 - 질풍 분석의

답변

0

이전 버전 앱의 각 활동에 코드 줄을 추가해야 응용 프로그램 클래스가없는 경우 응용 프로그램 클래스가없는 경우 (대부분의 응용 프로그램에서는 필요하지 않음) 다음 코드를 작성해야합니다. public class CKApplication extends Application {

@Override 
public void onCreate() { 
    super.onCreate(); 
    // configure flurry... 

    // init Flurry 
    FlurryAgent.init(this, MY_FLURRY_APIKEY); 
} 
</code> 

"배송"및 앱은 제출하는 것을 의미합니다. Google Play 스토어 또는 다른 앱 스토어에 전송하는 것입니다. 즉 앱을 대중에게 공개하는 것을 '앱 선적'이라고합니다.