How to check if application is still running on Android?

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

Was this solution helpful to you?

Just Added Q & A:

Find solution

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.