Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

No 'fragment_main.xml' file, no App running!

Options
  • 28-06-2014 5:36pm
    #1
    Registered Users Posts: 5,146 ✭✭✭


    So after a fair few years of not using Java & MySQL and programming in general I said I'd give Java Android App a whirl.
    My starting point is here: developer.android.com/training

    All was going well, I downloaded the latest Eclipse, I got the various downloads via SDK Manager, I connected my device, it found it, I hit RUN and it installed to the device, but............nothing's happening !

    At the next step : Building a Simple User Interface, it asks to edit 'fragment_main.xml' but when I go into the 'res\layout' folder, there nothing there, nada. There's also nothing in the 'src' directory.

    What am I doing wrong ??
    /driving me nuts!


Comments

  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    Honestly, while probably heresy, I would recommend avoiding the use of fragments when starting. My experience with them is that earlier approaches are simpler and work on all devices (with fragments you have to include support for earlier API versions), the support libraries are flaky and the less said about PreferenceActivity the better.

    This tutorial is a pretty comprehensive one on starting with Android that uses the pre-fragment approach to layouts.


Advertisement