Okay, this may not be the most important question, but how exactly do
you run LunarLander?
I tried importing it into eclipse, using the android plugin, but it
seems the R Class is missing.
It's refrenced everywhere in LunarLander.java and LunarView.java, so
am I just stupid or is it indeed not where it supposed to be?
(btw, other samples, like Snake and NotePad do include R.java)
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.lunarlander;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int app_lunar_lander=0x7f020000;
public static final int earthrise=0x7f020001;
public static final int lander_crashed=0x7f020002;
public static final int lander_firing=0x7f020003;
public static final int lander_plain=0x7f020004;
}
public static final class id {
public static final int lunar=0x7f050000;
public static final int text=0x7f050001;
}
public static final class layout {
public static final int lunar_layout=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040000;
public static final int lunar_layout_text_text=0x7f040011;
public static final int menu_easy=0x7f040005;
public static final int menu_hard=0x7f040007;
public static final int menu_medium=0x7f040006;
public static final int menu_pause=0x7f040003;
public static final int menu_resume=0x7f040004;
public static final int menu_start=0x7f040001;
public static final int menu_stop=0x7f040002;
public static final int message_bad_angle=0x7f040010;
public static final int message_off_pad=0x7f04000e;
public static final int message_stopped=0x7f04000d;
public static final int message_too_fast=0x7f04000f;
public static final int mode_lose=0x7f04000a;
public static final int mode_pause=0x7f040009;
public static final int mode_ready=0x7f040008;
public static final int mode_win_prefix=0x7f04000b;
public static final int mode_win_suffix=0x7f04000c;
}
}
On Nov 15, 11:22 am, "jan.g" <fubi2...@gmail.com> wrote:
> Okay, this may not be the most important question, but how exactly do
> you run LunarLander?
> I tried importing it into eclipse, using the android plugin, but it
> seems the R Class is missing.
> It's refrenced everywhere in LunarLander.java and LunarView.java, so
> am I just stupid or is it indeed not where it supposed to be?
> (btw, other samples, like Snake and NotePad do include R.java)
how did you import LunarLander into Eclipse? Normally if you import a folder as an Android project[*] everything should be imported properly (i.e. Eclipse would know about the resources and the "R" stuff).
[*] New project -> Android Project -> Create project from existing source, here point "Location" to your Android dir/samples/LunarLander, then press "Finish".
Best regards, Istvan Szekeres
On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> How do you add the path folder of resources to a project in eclipse?
> thanks. > sunilforandroid
> On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote: > > add to the project (the path folder of resources. > > this will Automatically create the R.java.
> > On 15 nov, 13:23, "jan.g" <fubi2...@gmail.com> wrote:
I'm having exactly the same problem. I thought I was going nuts.
Istvan, of course it's obvious that "everything should be imported
properly", but that's not the case with LunarLander. As the original
poster states, the other projects work fine.
ivory, I'm afraid I don't follow you. You're saying that adding the
"folder of resources" this will somehow generate R.java? Fraid that
makes no sense to me. I find the "res" folder, but adding it (of
course) does nothing to help matters.
Anyone out there have a reasonable explanation? Thanks.
On Nov 20, 2:53 am, "Istvan Szekeres" <pist...@gmail.com> wrote:
> how did you import LunarLander into Eclipse? Normally if you import a
> folder as an Android project[*] everything should be imported properly
> (i.e. Eclipse would know about the resources and the "R" stuff).
> [*] New project -> Android Project -> Create project from existing
> source, here point "Location" to your Android dir/samples/LunarLander,
> then press "Finish".
> Best regards,
> Istvan Szekeres
> On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> > How do you add the path folder of resources to a project in eclipse?
> > thanks.
> > sunilforandroid
> > On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote:
> > > add to the project (the path folder of resources.
> > > this will Automatically create the R.java.
> > > On 15 nov, 13:23, "jan.g" <fubi2...@gmail.com> wrote:
The R.java gets built by aapt.exe, which is in the tools directory. Or
it should. And it isn't.
Theory: Android's sdk installer isn't smart enough to adjust for
installing it anywhere but the default directory. I also had trouble
with it not finding android.jar until I showed it where to look.
Any other theories? Any work arounds would be appreciated, as I really
don't want to deal with figuring out all the options required, and
editing the project's properties doesn't seem to give you a handle on
changing the directory that aapt.exe can be found.
Or maybe I'm just wrong. Help would be appreciated.
On Nov 20, 5:58 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> I'm having exactly the same problem. I thought I was going nuts.
> Istvan, of course it's obvious that "everything should be imported
> properly", but that's not the case with LunarLander. As the original
> poster states, the other projects work fine.
> ivory, I'm afraid I don't follow you. You're saying that adding the
> "folder of resources" this will somehow generate R.java? Fraid that
> makes no sense to me. I find the "res" folder, but adding it (of
> course) does nothing to help matters.
> Anyone out there have a reasonable explanation? Thanks.
> On Nov 20, 2:53 am, "Istvan Szekeres" <pist...@gmail.com> wrote:
> > Hi,
> > how did you import LunarLander into Eclipse? Normally if you import a
> > folder as an Android project[*] everything should be imported properly
> > (i.e. Eclipse would know about the resources and the "R" stuff).
> > [*] New project -> Android Project -> Create project from existing
> > source, here point "Location" to your Android dir/samples/LunarLander,
> > then press "Finish".
> > Best regards,
> > Istvan Szekeres
> > On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> > > How do you add the path folder of resources to a project in eclipse?
> > > thanks.
> > > sunilforandroid
> > > On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote:
> > > > add to the project (the path folder of resources.
> > > > this will Automatically create the R.java.
Creating a new file and copying the R.java supplied by x40 above does
no good, because it generates an error message. To paraphrase: "R.java
was changed manually, reverting to generated file". Which would be
fine accept that no file gets generated. A clean of the project
deletes the R.java file and nothing creates a new one.
Anyone know how to get aapt.exe to do its job????
Jarisha
On Nov 20, 6:18 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> The R.java gets built by aapt.exe, which is in the tools directory. Or
> it should. And it isn't.
> Theory: Android's sdk installer isn't smart enough to adjust for
> installing it anywhere but the default directory. I also had trouble
> with it not finding android.jar until I showed it where to look.
> Any other theories? Any work arounds would be appreciated, as I really
> don't want to deal with figuring out all the options required, and
> editing the project's properties doesn't seem to give you a handle on
> changing the directory that aapt.exe can be found.
> Or maybe I'm just wrong. Help would be appreciated.
> On Nov 20, 5:58 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> > I'm having exactly the same problem. I thought I was going nuts.
> > Istvan, of course it's obvious that "everything should be imported
> > properly", but that's not the case with LunarLander. As the original
> > poster states, the other projects work fine.
> > ivory, I'm afraid I don't follow you. You're saying that adding the
> > "folder of resources" this will somehow generate R.java? Fraid that
> > makes no sense to me. I find the "res" folder, but adding it (of
> > course) does nothing to help matters.
> > Anyone out there have a reasonable explanation? Thanks.
> > On Nov 20, 2:53 am, "Istvan Szekeres" <pist...@gmail.com> wrote:
> > > Hi,
> > > how did you import LunarLander into Eclipse? Normally if you import a
> > > folder as an Android project[*] everything should be imported properly
> > > (i.e. Eclipse would know about the resources and the "R" stuff).
> > > [*] New project -> Android Project -> Create project from existing
> > > source, here point "Location" to your Android dir/samples/LunarLander,
> > > then press "Finish".
> > > Best regards,
> > > Istvan Szekeres
> > > On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> > > > How do you add the path folder of resources to a project in eclipse?
> > > > thanks.
> > > > sunilforandroid
> > > > On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote:
> > > > > add to the project (the path folder of resources.
> > > > > this will Automatically create the R.java.
Select Window > Preferences... to open the Preferences panel. (Mac OS
X: Eclipse > Preferences)
Select Android from the left panel.
For the SDK Location in the main panel, press Browse... and
locate the SDK directory.
Press Apply, then OK.
On Nov 20, 6:18 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> The R.java gets built by aapt.exe, which is in the tools directory. Or
> it should. And it isn't.
> Theory: Android's sdk installer isn't smart enough to adjust for
> installing it anywhere but the default directory. I also had trouble
> with it not finding android.jar until I showed it where to look.
> Any other theories? Any work arounds would be appreciated, as I really
> don't want to deal with figuring out all the options required, and
> editing the project's properties doesn't seem to give you a handle on
> changing the directory that aapt.exe can be found.
> Or maybe I'm just wrong. Help would be appreciated.
> On Nov 20, 5:58 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> > I'm having exactly the same problem. I thought I was going nuts.
> > Istvan, of course it's obvious that "everything should be imported
> > properly", but that's not the case with LunarLander. As the original
> > poster states, the other projects work fine.
> > ivory, I'm afraid I don't follow you. You're saying that adding the
> > "folder of resources" this will somehow generate R.java? Fraid that
> > makes no sense to me. I find the "res" folder, but adding it (of
> > course) does nothing to help matters.
> > Anyone out there have a reasonable explanation? Thanks.
> > On Nov 20, 2:53 am, "Istvan Szekeres" <pist...@gmail.com> wrote:
> > > Hi,
> > > how did you import LunarLander into Eclipse? Normally if you import a
> > > folder as an Android project[*] everything should be imported properly
> > > (i.e. Eclipse would know about the resources and the "R" stuff).
> > > [*] New project -> Android Project -> Create project from existing
> > > source, here point "Location" to your Android dir/samples/LunarLander,
> > > then press "Finish".
> > > Best regards,
> > > Istvan Szekeres
> > > On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> > > > How do you add the path folder of resources to a project in eclipse?
> > > > thanks.
> > > > sunilforandroid
> > > > On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote:
> > > > > add to the project (the path folder of resources.
> > > > > this will Automatically create the R.java.
> Found this post on another topic, which fixed it:
> Select Window > Preferences... to open the Preferences panel. (Mac OS
> X: Eclipse > Preferences)
> Select Android from the left panel.
> For the SDK Location in the main panel, press Browse... and
> locate the SDK directory.
> Press Apply, then OK.
> On Nov 20, 6:18 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> > Ok, some more information and a theory.
> > The R.java gets built by aapt.exe, which is in the tools directory. Or
> > it should. And it isn't.
> > Theory: Android's sdk installer isn't smart enough to adjust for
> > installing it anywhere but the default directory. I also had trouble
> > with it not finding android.jar until I showed it where to look.
> > Any other theories? Any work arounds would be appreciated, as I really
> > don't want to deal with figuring out all the options required, and
> > editing the project's properties doesn't seem to give you a handle on
> > changing the directory that aapt.exe can be found.
> > Or maybe I'm just wrong. Help would be appreciated.
> > On Nov 20, 5:58 pm, Jarisha <Jerry.A.S...@gmail.com> wrote:
> > > I'm having exactly the same problem. I thought I was going nuts.
> > > Istvan, of course it's obvious that "everything should be imported
> > > properly", but that's not the case with LunarLander. As the original
> > > poster states, the other projects work fine.
> > > ivory, I'm afraid I don't follow you. You're saying that adding the
> > > "folder of resources" this will somehow generate R.java? Fraid that
> > > makes no sense to me. I find the "res" folder, but adding it (of
> > > course) does nothing to help matters.
> > > Anyone out there have a reasonable explanation? Thanks.
> > > On Nov 20, 2:53 am, "Istvan Szekeres" <pist...@gmail.com> wrote:
> > > > Hi,
> > > > how did you import LunarLander into Eclipse? Normally if you import a
> > > > folder as an Android project[*] everything should be imported properly
> > > > (i.e. Eclipse would know about the resources and the "R" stuff).
> > > > [*] New project -> Android Project -> Create project from existing
> > > > source, here point "Location" to your Android dir/samples/LunarLander,
> > > > then press "Finish".
> > > > Best regards,
> > > > Istvan Szekeres
> > > > On Nov 20, 2007 11:38 AM, sunilforandr...@gmail.com
> > > > > How do you add the path folder of resources to a project in eclipse?
> > > > > thanks.
> > > > > sunilforandroid
> > > > > On Nov 15, 4:38 am, ivory <legolasbl...@gmail.com> wrote:
> > > > > > add to the project (the path folder of resources.
> > > > > > this will Automatically create the R.java.