Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Java Android Front End help!

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    1
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Java Android Front End help!

    github.com/spark/android-app

    so here is an open sourced app, i'm trying to tinker with it and i want to create a button on the fragment_tinker.xml file, and i think that layout is used on the java file : TinkerFragment.java

    Question is, how can i create the button in fragment_tinker.xml file that when i click the button, i will go to that custom activity that i made myself,

    PS. I tried using Intent it = new Intent(TinkerFragment.this, nameOfTheClassIWantToGoTo.class)

    but to no avail


    help would be greatly appreciated.

    Thanks Java Community!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Java Android Front End help!

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

  3. #3
    Forum VIP
    Join Date
    Jun 2011
    Posts
    317
    My Mood
    Bored
    Thanks
    47
    Thanked 89 Times in 74 Posts
    Blog Entries
    4

    Default Re: Java Android Front End help!

    Quote Originally Posted by jsalonga View Post
    PS. I tried using Intent it = new Intent(TinkerFragment.this, nameOfTheClassIWantToGoTo.class)
    Creating the intent isn't enough. You need to start it.

    startActivity(intent);

    See Building your first app -> Starting another activity for more details.
    Computers are fascinating machines, but they're mostly a reflection of the people using them.
    -- Jeff Atwood

  4. The Following User Says Thank You to ChristopherLowe For This Useful Post:

    jsalonga (August 23rd, 2014)

Similar Threads

  1. Front End For Air Traffic Control Simulation
    By Toddorov9 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 1st, 2014, 10:44 AM
  2. Replies: 0
    Last Post: July 22nd, 2013, 05:14 PM
  3. Trying to create a GUI front end for a TELNET application
    By arkroan in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 7th, 2013, 06:43 PM
  4. comparison of data from front-end jsp page to database values
    By yashwanthguru in forum JDBC & Databases
    Replies: 0
    Last Post: March 1st, 2013, 12:37 PM
  5. alert box in front end to display errors in backend
    By nischalinn in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: July 24th, 2012, 11:16 PM

Tags for this Thread