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.


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

Results 1 to 2 of 2

Thread: android programming

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Thanked 0 Times in 0 Posts

    Default android programming

    i've got to create an app in android... the app should contain a menu displaying camera and musicplayer..when clicking on any of these options the corresponding item selected should launch..i have been able to implement the camera in the main activity..but i have created a new class to implement the music player..now i've got to combine the music player class in my main activity..anyone knows how i can do that?
    Last edited by moemoe; June 8th, 2014 at 15:07.

  2. #2
    Member Abhilash's Avatar
    Join Date
    Jun 2014
    My Mood
    Thanked 10 Times in 10 Posts

    Default Re: android programming

    I think you should create functions instead of classes, inside the class main activity where you should call the function camera if camera is clicked, music player if music player is clicked.