I am new to android dev/testing .I am trying to test an android app.I just have the apk for the app.This app uses a service.When I try to run a simple instrumentationtestcase to launch the main activity of this app,the service associated with this app stops.When I check log cat,I see that the Activitymanager is "Force stopping the package com.example.androidapp"(this is the package under test) which in turn stops the service.Can some one tell me what I can do to avoid this "stop"?I dont want the service associated with this application to stop.Is there something that i need to add to the manifest of the test project in order to avoid this?Here is my manifest for the test project :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.androidapp.test" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <instrumentation android:name="android.test.InstrumentationTestRunner" android:label="androidAutomation" android:targetPackage="com.example.androidapp"/> <uses-permission android:name="android.permission.SET_DEBUG_APP"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.GET_TASKS"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name"> <uses-library android:name="android.test.runner" /> </application> </manifest> Greatly appreciate your inputs! -- 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

