SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Android - Going through tutorials and hung up on a debugging issue - looking for help

    I had recently bought a video tutorial of an android programming and am going through it using Eclipse. However, I am having some issues with the debugging and was wondering if anyone could help out.

    It seems that I am getting some problems with the line "String taskName = taskNameEditText.getText().toString();" under AddTasksActivity.java but could not pinpoint the problem.

    As you know a total beginner and any help would be appreciated.
    Attached Files Attached Files

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    What is the error you are getting? Make sure the control is been set correctly. With the findViewById() method in the on create method. Or this would fail. I will check your attached code later when I have a chance

  3. #3
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks NightStalker, I debugged the problem. Instead of putting the android:id for the add_task.xml to indicate something being entered, I put android:layout and was therefore causing the problem. Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •