2014-12-05 5 views
-1

다음은 프로그램 코드입니다. 도와주세요.Object 유형에 대해 onStart (Context, int) 메서드가 정의되지 않았습니다.

public void onStart(Context paramIntent, int paramInt) 
     { 
     //super.onStart(paramIntent,paramInt);//ERROR IN THIS LINE 
     this.dbhelper = new DBHelper(getApplicationContext()); 
     this.db = this.dbhelper.getReadableDatabase(); 
     this.c = this.dbhelper.getPlaces(this.db); 
     this.locManager = ((LocationManager)getSystemService("location")); 
     this.db.close(); 
     this.am = ((AudioManager)getSystemService("audio")); 
     if (this.locManager != null) 
     { 
      if (!this.locManager.isProviderEnabled("gps")) 
      { 
      startActivity(new Intent("android.settings.LOCATION_SOURCE_SETTINGS")); 
      Toast.makeText(paramIntent, "Enable Gps!", 1).show(); 
      } 
      this.locManager.requestLocationUpdates("gps", 300000L, 10.0F, this); 
     } 
     } 
+0

그것은해야한다'공공 무효 ONSTART (의도 의도 INT paramInt)'not'public void onStart (Context paramIntent, i) Nt 매개 변수) ' – Piyush

답변

-1

@Piyush 굽타는 썼다 :

그것은해야한다 :

public void onStart(Intent intent, int paramInt) 

하지

public void onStart(Context paramIntent, int paramInt) 
+0

([답변으로 댓글을 달고 커뮤니티 위키로 변환되었습니다.] (http://meta.stackoverflow.com/questions/251597/question-with-no-answers-butissues-solved-in- the-comments)) –

관련 문제