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

Apps .java source file

Discussion in 'Android Development' started by Beginnerr, Jun 17, 2011.

  1. Beginnerr

    Beginnerr Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 17, 2011

    Jun 17, 2011
    1
    0
    5
    Hello,
    I'm a beginner in using android eclipse. I have to write a code in eclipse, which will do the following: a main interface with two tabs, and when the first tab is clicked it will give the user an option to write the side of a rectangle and a click button to calculate its surface. The second tab will do the same thing for a circle
    My question, is that , should I create seperate .java source files for the tabs,or the whole code is written in one .java file ( at eclipse)
     

    Advertisement

  2. JiMMaR

    JiMMaR Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    363
    Joined:
    Jun 12, 2010

    Jun 12, 2010
    363
    57
    53
    you can write the whole code in one .java file AND one xml file
     
  3. cr5315

    cr5315 Android Enthusiast
    Rank:
    None
    Points:
    68
    Posts:
    434
    Joined:
    Jul 23, 2010

    Jul 23, 2010
    434
    158
    68
    Narnia

Share This Page

Loading...