Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6223647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:31:35+00:00 2026-05-24T08:31:35+00:00

I’m new to Android app programming and started to read a book, but it

  • 0

I’m new to Android app programming and started to read a book, but it just said write this to do this.

1) I want to know what each line of code actually means and does… So could someone explain the most common bits of code, what they do for someone completely new to Android (and programming in general) programming.

2) Could you also explain what each line of the following starter code means and where I edit?

    package com.Vibris;

import android.app.Activity;
import android.os.Bundle;

public class VibrisActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

3) I know it’s a stupid question but the book confused me so much… Could someone explain what activities are and what they do and how they act? How do activities make up the app? Do you have to start with a particular activity?

4) What is the BEST way to start with Android development… Because (for me) a book really isn’t the way to go!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:31:36+00:00Added an answer on May 24, 2026 at 8:31 am

    1) No can do. There is no such thing as ‘common code’. Figure out what you want to do, and then figure out how to.

    2) It is just a normal Java class. The class extends Activity, to show the user some stuff. The super.onCreate(..) should always be called. The setContentView grabs an xml file and inflates it so there is actually something to see on the screen. The editing then happens below the setContentView, and ofcourse normal Java functions can be added.

    3) An Activity is the basic building block in Android. If you only need one screen, you’ll only need one Activity. In a phone app there could be an activity for dialing, one for showing contacts, etc.

    4) Just try something! The best way to learn is “How can I do x”, and then figure out how to. There is plenty of documentation and there are many examples that can help you out. Start with small steps. (Like, “How can I show the menu?” or “How can I make a button do something?”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I want to construct a data frame in an Rcpp function, but when I
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.