On Fri, Jul 16, 2010 at 5:32 PM, Ethan <[email protected]> wrote:

> I am new to Android and Java (though have plenty of Javascript experience).
> I am learning the language, the OS, and the programming environment all at
> once, so I know I am missing simple stuff here.
>

#1 - Stop right there. Back up. Do yourself a favor and take this all one
step at a time. Trying to do too much at once is going to make you trip and
fall all over the place as many many little things that you should learn
over time hold you back if you try to tackle it all at once. Learn Java on
it's own first, then start your Android project when you have a good grip on
the language.


> I used Droid Draw to create an extremely simple interface.
>

#2 - That tool, AFAIK, is horribly out of date. Do yourself a favor and stop
using it.


> Here is my source:
>

#3 - For future reference, posting a massive blob of code with no context
makes people's eye glaze over and pass your post by. Only post code when
it's relevant to your problem and it helps the situation.

#4 - The ludicrous amount of hard-coded if-checks offends me =P

Here's my error log:
>
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.Borg.energy/com.Borg.energy.energize}:
> android.content.res.Resources$NotFoundException: String resource ID
> #0x10
>

<snip>


>
>
07-16 22:31:24.482: ERROR/AndroidRuntime(433): Caused by:
> android.content.res.Resources$NotFoundException: String resource ID
> #0x10
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     at
> android.content.res.Resources.getText(Resources.java:200)
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     at
> android.widget.TextView.setText(TextView.java:2813)
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     at
> com.Borg.energy.energize.onCreate(energize.java:47)
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2459)
> 07-16 22:31:24.482: ERROR/AndroidRuntime(433):     ... 11 more
>

#5 - That right there is all you need to know. You're trying to use a
resource that does not exist. Use the stack trace to determine where you're
doing this and stop it.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to