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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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

  • 28-06-2014 4:36pm
    #1
    Registered Users, Registered Users 2 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