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: Structure of Android Development

  1. #1
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Structure of Android Development

    Hello,

    Let me introduce myself a little bit since this is my first time posting on this site. I have just begun learning Android development with Android Studio. I have about 1 (maybe 2?) years of Java experience under my belt, and I took a class at my high school. Before that, I used Python exclusively for many years.

    I have an idea of a simple program just to start learning the workings of Android Studio. I have a splash screen and a game activity, that's about it. The screen flashes green, then yellow, then red for a random amount of time (within a range that gets quicker and quicker progressively). The user can tap while it is green to earn 1 point and when it is yellow to earn 2 points, but if they tap on a red screen ... game over.

    I could code this program successfully in BlueJ (what I use for Java - eclipse doesn't like my PC), but "converting" it to Android Studio has become a struggle. Once I have the main game activity (after the splash screen), would I put the code for the game all into the onCreate() method or do I create a separate run() method. If I were to create a run() method, from where would I call it? I have read all of the guides and introductions, beginning and advanced, within the first few pages of Google, but this seems to be the one tiny prerequisite for everything else (most of which I understand).

    It would be helpful if someone could give me guidance on my issue, and maybe post the source of a sample program they have created so that I can see the structure.

    Thanks,
    Nate Olson

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,009
    Thanks
    52
    Thanked 2,365 Times in 2,319 Posts

    Default Re: Structure of Android Development

    There are lots of sample programs on line to look at for ideas. Look at the StackOverflow site for heaps of posted questions and answers about Android programming.
    https://stackoverflow.com/questions/tagged/android

    Also bookmark this: http://developer.android.com/reference/packages.html
    I use it all the time.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Structure of Android Development

    Quote Originally Posted by Norm View Post
    There are lots of sample programs on line to look at for ideas. Look at the StackOverflow site for heaps of posted questions and answers about Android programming.
    https://stackoverflow.com/questions/tagged/android

    Also bookmark this: http://developer.android.com/reference/packages.html
    I use it all the time.
    Thank you, that's pretty helpful, but most of them are much more complex than just a "hello world" type of thing. I'm really just looking in particular for what I should do for the equivalent of the main method in BlueJ (like whether to use run() or where to call it from). Thank you though, that's an incredibly helpful resource, and I'd like to search through it when I have a little more time on my hands.

    Thanks!

Similar Threads

  1. Qusetion in android development
    By Dragon3002 in forum Android Development
    Replies: 0
    Last Post: April 3rd, 2014, 02:35 PM
  2. guideline do android development
    By aba muhammad in forum Android Development
    Replies: 2
    Last Post: November 6th, 2013, 06:37 AM
  3. Java Enterprise Development(J2EE) or Java Android Development?
    By gokhan47 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 1st, 2013, 08:27 PM
  4. Android Development
    By bgroenks96 in forum Java ME (Mobile Edition)
    Replies: 3
    Last Post: August 30th, 2013, 10:03 PM
  5. Android Development Career!!
    By diyaots in forum Android Development
    Replies: 4
    Last Post: July 1st, 2013, 06:54 AM