1. Download our Official Android App: Forums for Android!

Apps (Eclipse) Import problems?

Discussion in 'Android Development' started by Lomo133, Aug 7, 2013.

  1. Lomo133

    Lomo133 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Aug 4, 2013

    Aug 4, 2013
    6
    0
    5
    Hey Fellow users on this forum.

    I think I met a problem on my activity, so this is how it looks

    @Override
    protected void onCreate(Bundle savedInstanceState, RelativeLayout Rel_main_game) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.game);

    Rel_main_game = (RelativeLayout) findViewById(R.id.main_game_rl);

    My activity looks okay but the problem is that Rel_main_game = (RelativeLayout), Rel_main_game is suppose to be blue coolored and working but it isn't for me. the main_game_rl is found and worked as it should but Rel_main_game = (RelativeLayout) should appear on my class but it's maybe something wrong with my import? Thanks

    / Lomo
     

    Advertisement

  2. out of ideas

    out of ideas Android Enthusiast
    Rank:
    None
    Points:
    93
    Posts:
    640
    Joined:
    May 19, 2012

    May 19, 2012
    640
    145
    93
    did you set it as a field before your oncreate?
     

Share This Page

Loading...