Learning A New Language
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.
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
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