Jump to content
  • entries
    138
  • comments
    292
  • views
    28,165

Learning A New Language


Ravrahn

389 views

Not just any old language, no. A computer language. Java. I'm learning Java so that I can make apps for Android, because it looks like fun. Also, apparently if you get more than 5000 downloads on an app Google sends you a Nexus One, which would save me money. :P

 

Hello World worked, and it was slightly more complex than in QuickBasic, which I can also write.

Hello World in QuickBasic:

PRINT "Hello World!"

 

Hello World in Android/Java:

package com.example.helloandroid;

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

public class HelloAndroid extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello Android, I\'m a string resource!</string>
    <string name="app_name">Hello, Yay Android</string>
</resources>

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="@string/hello"/>

(Yeah, it's 3 files)

 

So, QuickBasic is probably the easier language. Java isn't exactly hard, though, and once I start understanding everything, it's probably going to be a lot easier. I'm not sure what kind of app to make, but hey, I'm sure I'll find a demand to meet. And even if I don't, there's around 100000 apps I could port from the iPhone :P

 

Also keen to learn Latin and Esperanto, because those look useful fun interesting.

 

And I'm pretty much set on the Milestone as the phone I want. It's just so cool-looking! Also, useful, what with all it's awesome specs.

 

Rav

1 Comment


Recommended Comments

Java/Android is easy. I'm not good at the advanced stuff but it's an easy language to get your head around.

 

I still haven't learnt Latin or Esperanto, though.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...