Learning JAVA

by JonnySnip3r » Thu, 12 Mar 2009 10:18:44 GMT


Sponsored Links
 Hey guys was wondering if you could help me, im new to the JAVA
programming language just started in fact i have installed the
following...

android-sdk-windows-1.1_r1
apache-ant-1.7.1-bin
droiddraw-r1b11
jdk-6u12-windows-i586-p
Eclipse Ganymede (latest)

i have installed all the android updates for eclipse but every time i
start a new android project to learn i keep getting a red cross at the
side of the package telling me there is an error :|

im a n00b and i have no idea hope someone can help me  i want to start
ASAP here is where the error is...

Code:
package com.android.hello.android.hello;

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

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

--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by Kather Jailani » Thu, 12 Mar 2009 10:23:01 GMT


 HI,

Please try Europa. I had some compilation issues with Ganymede. Same code
compiles and works in Europa. (I might have done something wrong with
settings in Ganymede)




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Learning JAVA

by Tommaso » Thu, 12 Mar 2009 16:36:42 GMT


 Hi,

I have Ganymede and it works just fine.
Make sure java is correctly installed, there are a lot of tutorials
around.
Install the Eclipse Plugins for Android. How to do that is described
on
 http://developer.android.com/sdk/1.1_r1/installing.html under 
"Installing the ADT Plugin for Eclipse".

The red cross at the package means, if the red cross does not appear
in a deeper level of the package, that there is something wrong with
the preferences.
You can right click on the project and select "Properties", just at
the bottom.
You should check the settings for "Android" and Java.
My guess is that you didn't select an Android SDK.

Do you really mean package, or "Project"? Does the symbol appear at a
package icon or next to the project icon, which is an open folder in
yellow/blue?

Good luck,
  Tommaso



--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by Mark Smith » Thu, 12 Mar 2009 16:43:50 GMT


 Hi Jonny,

I'm using Ganymede for Android development with no problems, so I
wouldn't try any other versions of Eclipse - it's probably your setup
that's wrong.

If you bring up the 'Problems' view, it should give you an indication
of what's actually wrong with your project. 'Window -> Show View ->
Problems'. Now click on the package icon that has the error - a
message should appear in the Problems window explaining what's wrong.

--Mark



--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by wj chen » Fri, 13 Mar 2009 01:42:41 GMT


 Hi:

You might want to check if the ADT plug-in for Eclipse is in place.

Please refer to the installation guide for more detail:
 http://developer.android.com/sdk/1.1_r1/installing.html 


Thanks,
wjcs





--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by Oliver Dunkl » Fri, 13 Mar 2009 01:42:46 GMT


 * JonnySnip3r wrote on 11 Mar 2009:

                                        ^^^^^^^
Is the name of the class exactly the same name of the file? Because the
name of the file has to be exactly the same as the class.

        odi

-- 
The question of whether computers can think is just like the question
of whether submarines can swim. -- Edsger W. Dijkstra
~
:wq

--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by mark . kahrl » Fri, 13 Mar 2009 06:12:53 GMT


 It might be easier of you don't know Java to start by learning Java
and writing some usual desktop applications in awt/Swing. Look at  the
materials for the Java programmer certification to get a good overview
of Java. Once you've got a handle on Java  then try writing and
Android app. Just my 2 cents.



--~--~---------~--~----~------------~-------~--~----~



Learning JAVA

by RedMac G » Sat, 14 Mar 2009 02:09:53 GMT


 Me also uses Eclipse v3.4.1
Do not get step the version of yours back. It'll only confuse you without
solving any problem.

cheers.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Security unlock swipe effect

Hi,
I'm looking to mimic the swipe effect like the one used for unlocking
an android phone in security settings. I have a grid of objects and I
would like the straight bar to appear as I touch/move across the
screen. Anyone know ho to accomplish this?

Thanks

-- 

2. How to speed up the Android emulator.

Hello,

I have just started with development and would like to ask if
Android's QEMU emulator uses any type of hardware acceleration.

I made a simple Android program that extends the WebView activity and
loads a webpage at start. That's all it does.

It takes 35 seconds to cold start the emulator and acitivity from the
Eclipse IDE.
It takes 12 seconds to reload the acitivity when emulator is already
up & running.

Do you think these numbers are normal?
Is there any possibility to speed up the emulation speed of QEMU?
---
I can try to answer to this question myself.
In the past, I used QEMU with KQEMU kernel module that remarkably
boosted the emulation speed on X86 hardware. But Android runs on ARM
CPU (not Intel or AMD CPU), so KQEMU module cannot be used here.
----

My PC is Intel Core 2 Duo E6850 3.00GHz.
4GB RAM.
Running Eclipse IDE 3.5 (Galileo) on 64 bit Ubuntu Linux 9.04.
A starter guide: 
http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html

Kindly
 Osmo Antero (Moma) Maatta.

--~--~---------~--~----~------------~-------~--~----~

3. EditText

4. TranslateAnimation doesn't animate straight (X-only) but also in Y-direction (diagonal)

5. Android devices supporting OpenGL ES 2.0 (at least through NDK) as of September 2010

6. reading contacts...

7. Resize the application for the soft-keyboard