Syntax error on token “furkan”, Identifier expected after this token hatası

fukuli053

Hectopat
Katılım
20 Haziran 2013
Mesajlar
262
Makaleler
1
Çözümler
1
Yer
İstanbul/Kartal
Daha fazla  
Cinsiyet
Erkek
Meslek
Öğrenci
Merhabalar. Eclipse üzerinden Android uygulaması geliştirirken şöyle bir hata ile karşılaştım:
Syntax error on token “furkan”, Identifier expected after this token

Ne yapmam gerekir ? Kaynak kodları:
Kod:
package com.furkan

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MerhabaDunyaActivity extends Activity

{
   
    private LinearLayout temelContainer;
    private LinearLayout adContainer;
    private LinearLayout soyadContainer;
    private Button kaydetButton;
    private TextView adTextView;
    private TextView soyadTextView;
    private EditText adEditText;
    private EditText soyadEditText;
   
    private void initTemelContainer()
    {
        temelContainer = new LinearLayout (this) ;
        temelContainer.setOrientation(LinearLayout.VERTICAL);
        LayoutParams params = new LayoutParams (LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
        temelContainer.setLayoutParams(params);
    }
   
    private void initAdContainer()
    {
        adContainer = new LinearLayout(this);
        adContainer.setOrientation(LinearLayout.HORIZONTAL);
        LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT);
        adContainer.setLayoutParams(params);
    }
   
    private void initAdTextView()
    {
        adTextView = new TextView(this);
        LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
        adTextView.setLayoutParams(params);
        CharSequence ad = getResources().getText(R.string.titleAd);
        adTextView.setText(ad);
    }
   
    private void initAdEditText()
    {
        adEditText = new EditText(this);
        LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT);
        adEditText.setLayoutParams(params);
        adEditText.setBackgroundResource(android.R.drawable.edit_text);
    }

    private void initKaydetButton()
    {
        kaydetButton = new Button(this);
        LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT);
        kaydetButton.setLayoutParams(params);
        CharSequence kaydet = getResources().getText(R.string.buttonKaydet);
        kaydetButton.setText(kaydet);
        temelContainer.addView(adContainer);
        adContainer.addView(adTextView);
        adContainer.addView(adEditText);
        temelContainer.addView(kaydetButton);
        }
   
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        initLayoutItems();
        setContentView(temelContainer);
       
    }

    private void initLayoutItems() {

       
    }

}
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…