Dean_Grobler 48 Posting Whiz in Training

If anyone is working on a machine without internet connection and is looking into downloading platforms for their Android SDK, your search is over...


The magic URL is - http://dl-ssl.google.com/android/repository/repository.xml
That is the XML file from which the URL for downloading the SDK packages are obtained.

For e.g. if you want to download Linux version of Android SDK for version 2.0, you could look up that XML file. You will find a block under tag SDK 2.0 like this

<sdk:archive arch="any" os="linux">
    <sdk:size>74956356</sdk:size>
    <sdk:checksum type="sha1">2a866d0870dbba18e0503cd41e5fae988a21b314</sdk:checksum>
    <sdk:url>android-2.0_r01-linux.zip</sdk:url>
</sdk:archive>

So the URL will be http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

After you downloaded the zip, simply go to <yourAndroidSdk>/Platforms and unzip the downloaded file in there. And that's it, next time you start up your IDE the platform will be listed.

Source: Quakeboyz Dev Arena

Dean_Grobler 48 Posting Whiz in Training

Thanks agian, the SDK I downloaded didn't have the basic platforms like 1.0 etc on. On the Android site they mention that you have to download atleast one platform.. Anyways, after lots of "googling" i found this, which basically lets you download the platforms in zip folders.

Pretty damn handy...

peter_budo commented: Nice find +16
Dean_Grobler 48 Posting Whiz in Training

Mine would have to be Jedi Jesus.

susheelsundar commented: Lord Jesus Rocks :) +0
jingda commented: Nice, but i thought the cross should be the other way round. Like a sword +0
Dean_Grobler 48 Posting Whiz in Training

I doubt you are going to finish your course if this is your attitude towards your studies, and the way you approach your home work...

jwenting commented: well said +16
Dean_Grobler 48 Posting Whiz in Training

But of course you need to have set those values in the request. Otherwise they will be null.

Correct yes.. Otherwise thank you so much! I can see some light at the end of the tunnel in this damned project again.

peter_budo commented: Good luck with your project +16
Dean_Grobler 48 Posting Whiz in Training

No problem man :-)

Dean_Grobler 48 Posting Whiz in Training

Oh okay perfect,

BufferedWriter out;
String yourString = output;
out = new BufferedWriter(new FileWriter("yourFileName.txt",true));
out.write(yourString);
out.newLine();
out.close();

You might have to tweak some of this code, but otherwise put this in your method body and I'm sure you'd be able to make this work..

Dean_Grobler 48 Posting Whiz in Training

Whow, your question is either very vague/messed-up or I'm going mad..

Let me just make sure what you mean here, you want this method, to Create a file with the name of the String that has been passed as the arguments for the method?
OR
Do you want to just write the String to a file?

Dean_Grobler 48 Posting Whiz in Training

Noways can you speak a little Afrikaans? I didn't think any foreigners and speak it. Although I know so many people immigrated from here to Australia so I won't be surprised that you maybe picked up something here and there :-)

Dean_Grobler 48 Posting Whiz in Training

Hello,

The name pretty much implies what it is, getter methods get variables, and setter methods set variables.

Say for instance you a have a class called Contact, the "getName()" method in the Contact class would return the Name variable.

Like so:

public class Contact
{
	String firstName,

	public Contact(String firstName)
	{
		this.firstName = firstName;
	}
	
	public String getfirstName()
	{
		return firstName;
	}
}

Setter methods then would set the Name variable, so you would invoke the "setName()" method of the Contact class like e.g Contact.setName("Xufyan"); And then the Name variable in the Contact class will be set to "Xufyan"..

So then this would be the code in your Contact class for the setter method:

public void setfirstName(String firstName)
	{
		this.firstName = firstName;
	}

Hope this helped!

Xufyan commented: nice +0
Dean_Grobler 48 Posting Whiz in Training

Hi there!

Okay so the difference between Swing and an Applet..

Applets are little programs imbedded in websites/HTML pages.
Applets also are more commonly used for small single tasks in
webpages.

Swing programs however, would probably be the better choice
in your situation. Swing acctualy refers to a class in the
java language that defines/handles GUI(Graphical user interface)
components like(like buttons, labels, textfields etc).

So just depends what program you want. Do you want a standalone java
program (swing) or do you want a java program imbedded in a website(applet).

Hope this helps!