What am i doing wrong in this SlidingDrawer android Java SE coding?
-
Ok, so im sort of a beginner when it comes to this. I bought a book, Android Apps for Absolute Beginners by Wallace Jackson, and have been learning about how to code Android apps. I am using Eclipse IDE. I'm stuck on the SlidingDrawer part of a chapter. heres my appilcation code: package my.fitness.app; import android.app.Activity; import android.os.Bundle; public class myfitnessappActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } heres my strings.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, myfitnessappActivity!</string> <string name="app_name">myfitnessapp</string> </resources> heres my main.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.co... android:layout_width="fill_parent" android:layout_height="fill_parent"> <SlidingDrawer xmlns:android="http://schemas.android.co... android:id="@+id/drawer" android:layout_width="320dip" android:layout_height="440dip" android:orientation="vertical" android:handle="@+id/handle" android:content="@+id/content"> <ImageView android:id="@+id/handle" android:layout_width="48dip" android:layout_height="30dip" android:src="/res/photos/falcon_1920_120... <AnalogClock android:id="@+id/content" android:background="#FFFFFF" android:layout_width="fill_parent" android:layout_height="fill_parent"/> </SlidingDrawer> </RelativeLayout> I've had the most trouble from adding a photo to this code. I've tried the whole "@photos/falcon_1920_1200-1680x1050"/> thing but it doesnt seem to work. Everytime I try to run this in my android emulator, it says there are errors and i must fix them before running the application. what am i doing wrong? thanks in advance!!! :)
-
Answer:
shiroi oni at Yahoo! Answers Visit the source
Other answers
JuJu
Related Q & A:
- How can I pause and restart animations in Android?Best solution by Stack Overflow
- I need help with writing up the Java Code.Best solution by Yahoo! Answers
- What do I need to convert my 2004 Nissan Altima into an SE-R model?? ONLY EXTERIOR WISE?Best solution by Yahoo! Answers
- The address on my temporary driver's permit is wrong. What should I do?Best solution by answers.yahoo.com
- What am i doing wrong cod question?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.