Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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

  • 28-06-2014 04:36PM
    #1
    Registered Users, Registered Users 2 Posts: 5,150 ✭✭✭


    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