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

Apps debugging in eclipse and CONFIRM keyword???

Discussion in 'Android Development' started by jesb, Jun 19, 2011.

  1. jesb

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

    Jun 1, 2011
    5
    0
    5
    Hello group,
    I'm a beginner in developing in android. I'm used to using visual
    studio for my IDE.

    here is a problem i'm having. When i launched an app in AVD, it keeps
    on forcing me to close. i tried to debug it using the debug feature in
    eclipse.

    i don't know if it's just me because i still know very little, or
    what. so far, I find the debugging feature in eclipse when debugging
    android app......... well, very useless.

    this is an example:
    i have a button, and i'm trying to create a listener for the button.

    i name the button id "confirm" (Id@+id/confirm)

    i spent hours trying to debug my code, with no useful info from logcat
    or the debugger itself. maybe there is a feature in this book i'm
    using that i haven't gotten to yet.

    after 2 hours, i find out that if i change the button id to something
    else like "confirm1" (Id@+id/confirm1), everything works perfectly!!!
    if i change the id back to "confirm", it forces close again when i run
    the app. I can only assume that confirm is somehow a reserved word,
    and the debugger didn't tell me that.

    is confirm really a RESERVED word??????

    another thing that annoy me A LOT is the "Properties" tab. When i'm
    building a layout, there is no way i'm going to remember all the XML
    attributes for every form widgets. therefore, i rely a lot on the GUI
    and the Properties tab to set the value of my widgets(i.e setting the
    text value of my button, color of my background, etc).

    i could never get this to work. say that i have 4 buttons on a layout.
    and i need to see the properties of button 4. logically, this is what
    you would do:
    click on the properties tab, and click on button 4.

    this does NOT work. I have to do the following:
    - click properties tab
    - click button 4 (properties display doesn't change)
    - i need to click on some other tab, like console, or log cat
    - click on properties tab again
    - click on button 4 again. still the properties is not updating.
    - click on different tab again
    - click on properties again
    - click on button 4 again, and the view magically switch to some other
    tab(unpredictable which tab it will land on)
    - click on properties again
    - click on button 4 again.......... BINGO. Now i can see the
    properties.

    AM I CRAZY or JUST DUMB????

    can a more seasoned android developer tell me more about the problems
    i describe above?

    I would really appreciate any input.
     

    Advertisement

  2. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    I've personally never heard the confirm thing before, but you might want to get comfortable editing the XML by hand a bit and not rely on the GUI they made for eclipse, thought it has gotten much better from what I understand.

    Anyways, welcome to AF!
     

Share This Page

Loading...