Android :: Attempt To Debug Project Consistently Hangs At "Running Tests"

Sep 24, 2010

I have an Android project that I have been working on and debugging just fine for several months, but for some reason it is now consistently hanging at the "Runnning tests..." step. I have experienced intermittent hangs from the beginning, but a simple retry and/or restart of Eclipse or the emulator usually resolves it. But now I am just dead in the water.I can run my tests fine, and I can debug my actual program, but I can't debug my tests.I have tried creating a new emulator and that doesn't fix it. I also cleared all my breakpoints and that had no effect.As far as what has changed lately, the primary thing is that I upgraded to rev 7 of the SDK tools. Also, I recently did some debugging (of the program not the tests) on an actual device (not the emulator). Can't see how that would impact it but I thought I would mention it.Actually I had to set Debuggable to "true" in the app manifest to get device debugging to work. Although I have never had that set in my test project, I set it, and that also had no effect on the issue.I'm running out of ideas, and I would greatly appreciate some pointers.

Android :: Attempt to debug project consistently hangs at "Running tests"


Android :: Hangs On Launching Unit Tests

Oct 3, 2009

I got a problem launching unit tests. I did: * new android project in eclipse, new android test project in eclipse * added one test case, added one test suite * run as-> android junit test hangs on "Launching instrumentation android.test.InstrumentationTestRunner on device emulator-5556".I got eclipse galileo, newest ADT and android 1.6 sdk

View 5 Replies View Related

Android :: How To Debug An Application That Hangs After Awhile

Oct 22, 2010

I've built my first Android application and it works pretty well, except that it hangs/freezes up when it's left running for several hours.

It doesn't always do this - it's inconsistent.

This is an awful question to ask, it's so broad, but how should I go about troubleshooting this problem?

My guess is that I'm not managing my exceptions well and something's happening that I'm not dealing with effectively.

Is there a good resource of information on testing and debugging Android/Java applications like a Web site or a book?

I'm just looking for someone to shove me in the right direction.

View 4 Replies View Related

Android :: Running Tests In Main Thread?

Feb 19, 2010

Can someone advise the am command (for adb shell) to run junit tests in the main thread please? The following shows onStart etc running in the test runner thread. am instrument -w -e class co.uk.telesense. tests.MyTest co.uk.telesense.tests/android.test.InstrumentationTestRunner Ewan Benfield ttp://www.telesense.co .uk tel: 0845 643 5691 (+44 845 643 5691) mob: +44 (0) 77859 26477

View 2 Replies View Related

Android :: Running Unit Tests From Command Line?

Jul 21, 2010

I'm trying to run unit tests on the android platform in accordance with tutorial. Say, for example, I want to run tests for Email application. I open /apps/Email/tests/AndroidManifest.xml file, look for the <manifest> element, and look at the package attribute, which is com.android.email.tests, and in the <instrumentation> element I look at the android:name attribute, which is android.test.InstrumentationTestRunner.

View 3 Replies View Related

Android :: Getting Illegal Access Error When Running Droid Tests / Why Is So?

Mar 12, 2010

I get the following stack trace when running my Android tests on the Emulator code...

I run my tests from an extra project. And it seems there are some problems with loading the classes from the other project. I have run the tests before but now they are failing. The project under tests runs without problems.

Line 14 of the Helper Class is:

this.httpHelper = new HttpHelper(userProfile);

I start a HttpHelper class that is responsible for executing httpqueries. I think somehow this helper class is not available anymore, but I have no clue why.

View 1 Replies View Related

Android : Compile / Running Tests By Pointing A Standard JUnit?

Aug 18, 2010

It appears that Android supports JUnit 3 out of the box.&#65533;However, I have some pre-existing JUnit 4 unit tests that I'd like to try on Android. I've tried adding the JUnit 4 jar to eclipse and compiling/ running the tests by pointing a standard JUnit run against them, but nothing seems to happen.&#65533;There's no evidence in the eclipse console or the Android emulator that any tests have been run.

Can anyone with knowledge about this subject comment?&#65533;Is it even possible to run JUnit 4 tests under Android, and if so, is there a step-by-step explanation as to how to achieve this (preferably under Jetbrains IDEA IDE, and/or Eclipse).

View 11 Replies View Related

Android :: How Do I Run Unit Tests / Functional Tests?

Aug 6, 2010

"Hello, World" and "Hello, Testing" tutorials I created an android application created with Eclipse, along with a corresponding Android Test Project.The tests run fine once. After that, in order for me to run the tests again, I have to close the emulator.If I don't close the emulator, the Eclipse console get stuck on "Installing instrumentation android.test.InstrumentationTestRunner on device emulator-5554"... Nothing happens after that.I've been told to exit out of the application under test in the emulator in order to run the test again. Unfortunately the emulator doesn't have the app pulled up (it's in the normal "locked" position and when unlocked brings up the home screen) and even if I do pull it up then exit, it doesn't seem to let me run my tests again.All the example videos and tutorials all stop at the first run of a test. I have yet to see anyone anywhere run a test a second time!

View 1 Replies View Related

Android :: Running Android JUnit Tests With Multiple Included Auxiliary Projects

Nov 18, 2009

I cannot run android junit tests for classes sitting in main android project that implement interfaces that reside in other included projects. Depending on SDK version I get different errors: from "Test run failed:" on 1.5 and 1.6 and spurious process death to a more polite "NoClassDefFoundError" on SDK 2.0. This happens only on instantiation of classes that reside in the Android project and implement interfaces residing outside that android project. There is no problem instantiating classes that do not fall into this category (i.e. android only or library only classes).

Android project by itself works fine with these classes - it is just the test set-up doesn't and project inclusion/classpath seems to be ok. Test project includes all projects that main project includes. NoClassDefFoundError makes little sense here given that the classloader can see and instantiate classes sitting right next to the ones that do not work. Did anyone else run into this or found a way to set-up android based tests in a multi-project set-up? Below is more detailed set-up and test explanation: 1) Library project: FooLib public interface IFoo { ... }

View 4 Replies View Related

Android :: Application Running In Debug Mode Only?

Nov 15, 2010

my android application runs in debug mode only even if i click the run button of the eclipse or run it by touching on its icon on the device. what will be reason for this?? anybody has any idea about it?

View 1 Replies View Related

Android :: Send Debug Commands To App Running In Emulator

Nov 19, 2010

To make development easier, I want to be able to send textual commands to my android app(especially prior to having prior the UI completely fleshed out).Presumably in the emulator, but it would be great if it also worked on a device connected via USB.Of course, I could add an editText control to my app and type the commands in there, but would prefer not have deal with debug things cluttering up the UI and all the complications of that.I also would like to be able to paste text from computer clipboard, which sorta rules out EditText controls.Is there any way to do this, say via any of the android-sdk/tools/ stuff? I would implement the command processor java class/method, but need some way to be able to actually feed it a string. I suppose I could do something that talks to the emulator via the file system or something, but would prefer not have to spend a lot of time doing this if there is something already available.

View 2 Replies View Related

Android :: Debug Not Stopping At Break Points When Running Droid App On Eclipse / Why Is So?

Nov 24, 2009

Why should the debugger don't make breakpoints stop when running an android app on Eclipse ?

View 4 Replies View Related

Android :: Debug Live Running Apps To See What Processes Are Taking Alot Of Cpu Time?

Jan 30, 2009

is there any way to debug live running apps to see what processes are taking alot of cpu time? I see the options in DDMS but they are not really live. I would just like to see what processes took alot of time so I can dig into the code to optimize it

View 2 Replies View Related

Project Error While Running App?

Jul 1, 2010

I am doing a sample project it was running fine till few hours back but now when i run it it won't run just says "your project contains errors. please fix them before running your application". I can't figure what from where the error is generated. where the error is coming.

I am using Eclipse.

I have attached the code.

View 9 Replies View Related

Android :: Android - Debug Slow Running Code

Jul 9, 2010

Is there a good way (proper way, or effective way) to debug slow running code? I have a thread which runs multiple loops and then recurses and my code is running very slow. Is there a good way to debug different loops or sections of code to find out which is running slowest?

View 2 Replies View Related

Android :: App Crash On Phone Consistently But Not On Emulator

Aug 31, 2010

I have an app that uses quite a few graphics in it. When I open and close my app repeatedly on my emulator (1.5 - 2.2) it runs fine and by checking the heap I can see everything is being cleaned and gc'd properly. However, when I run my app on an HTC Aria phone (2.1) the app crashes every time I try to re-open it. When I look at the heap I can see that objects are NOT being cleaned up like they are in the emulator. Does anyone know why this behavior could be happening? I did try it on another HTC Aria (a friends) and it crashed the same way as on my phone so I think it's not just isolated to my particular phone. Any thoughts or ideas would be really appreciated on why things are cleaning up properly on the emulator, but not on my phone. One thing to note, is that I DID have it working and gc'ing fine on my phone a few days ago and I didn't change much and now it's not working on my phone so it's a bit of a mystery to me.

View 1 Replies View Related

HTC EVO 4G :: Android System Consistently 85 - 90 Percent Of Usage

Jul 6, 2010

My Son and I both have EVOs - his battery drains about twice as fast as mine. His application list is here: Kevdog83's Apps on the PC36100 When he checks "Battery Use", Android System is consistently 85-90% of usage, while Cell Standby and Phone Idle are typically the two biggest items for my usage. What runs under the umbrella of "Android System" that may be killing his battery?

View 6 Replies View Related

Android :: Sound Consistently Looped While Button Is Pressed And Stopped On Release?

Aug 26, 2010

My question is a very simple one I'm sure. It's just I'm not quite sure how to effectively describe what I'm trying to achieve.

Anyway to the point, I have a simple button, I know how to "link" a raw sound file to hand make it play. BUT what i want to do is maybe link a 3 second sound to the button and just have it loop while the user holds the button, and then stops playing when the button is let go. Anyone have any example links they could share that would be great!

View 1 Replies View Related

HTC Hero :: Get GPS Working Consistently After Flashing Villain?

Apr 28, 2010

Has anybody managed to get GPS working consistently after flashing Villain? I managed to get a fix on my location once and that's it. I have updated to the latest radio, and I have been trying it outside.

View 14 Replies View Related

HTC Incredible :: WiFi Does Not Stay Consistently Connected / Way To Fix?

Sep 16, 2010

Since the update my WiFi will not stay consistently connected to my home network. Sometimes I have to go in and force it to connect. I have deleted my connection and created a new one. Any one else having this problem?

View 2 Replies View Related

Motorola Droid :: Internet Browser Closes Consistently / Way To Fix?

Jul 26, 2010

I've had an issue w/ my Internet browser closing on me for quite a while. It just closes down to where ever I was before the Internet was launched, w/o a "force close" message box. This has happened across many diff ROMs, many diff browsers, and many diff kernels. Hell, it's been happening since at least 2.1 and perhaps 2.0.1. I've tried clearing caches, wifi, lowering the kernel MHz, yet the issues still persist. Sometimes it happens instantaneously upon opening, sometimes it waits till I'm enjoying surfing away from my pc.

View 5 Replies View Related

Android :: Project Contains Errors - Eclipse Won't Compile Project

Mar 21, 2010

Somethings I'll have an? .xml file selected when I compile a project, only to have a? .out.xml generated. Deleting the file doesn't clear the error, and Eclipse won't compile the project. It just reports that your project contains errors. The solution is to go to Project/Clean. This will clear the error in the project and allow it to compile.

View 6 Replies View Related

Android :: Get Project And Std Java Project To Play Nice?

Aug 11, 2010

I can now get our Android project to talk to our non-Android project. But there's still an issue: I are trying to have an Android class call a non Android Hello World class. I tried compiling our non-Android Hello World class in a separate Eclipse workspace. I then packaged it into a jar. I imported that jar into our Android Hello World class.

I then called one of the methods in the non-Android Hello World class. When I ran the Android Hello World class as an Android application, the following runtime error occurred. Here are the Android debug logs:

08-11 09:07:56.764: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
08-11 09:07:56.764: ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at com.hello2.hello2.onCreate(hello2.java:27)
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047).....................

View 1 Replies View Related

Android :: Reference Project Library From Another Project

Jun 6, 2010

I have 2 android projects out of which I modified one to work as a library. I want the main project to refer to this library to perform few functions. While this scenario works just as expected, I want to introduce one more functionality. I want to link this library project with another just a java project which has code common to both Android and Blackberry applications. This second part however doesn't seem to work and throws "The application <appname> (<package name>) has stopped unexpectedly. Please try again" with a ForceClose button. I would greatly appreciate if someone can give a brief information on how to make this work.

View 2 Replies View Related

Android : How To Add Project Reference To Droid Project?

Jan 25, 2010

I am a C# developer and getting started with Android. I am attempting to duplicate a couple applications I already have in VS. The project is made of 2 executables and 1 common assembly. The 2 executables contain the application specific logic while the common contains centralized forms and logic (such as login form). I am using Eclipse. So how can I accomplish this layout?

View 1 Replies View Related

Android :: R.java File From Android Library Project Not Importing Into Application Project

Aug 8, 2010

I followed the instructions here on how to create an Android library project, and use it in an Android application:

http://developer.android.com/guide/developing/eclipse-adt.html

But it is not working. I can see the library project is added to my application but I cannot reference anything in it because it won't build. The R.java file from the lib is NOT being added to my application project, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file.

I don't know if this has anything to do with it, but in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. My library package has a a few styleable attributes defined for a custom view I made, all of which are being complained about in this console message. The library builds just fine, and I don't get those messages in the console until I hook the library to my application, so I don't know what's up with this.

View 1 Replies View Related

Games :: Game Remake (First Android Platform Attempt)

Oct 22, 2008

I'm in "progress" of making my first game on the Android platform. Since I'm out of ideas it'll be a remake of the classic C64 game "Deflektor". This is what I've got so far. Now, what I really lack is the ability to debug the app from withing the IDE (IntelliJ).

View 11 Replies View Related

Android :: Null Pointer On An Attempt To Call A Button

Nov 21, 2010

I have a null pointer on a button that I need to take me to a new layout when pushed. I have the code set as:

((Button) findViewById(R.id.analyzee)).setOnClickListener(btnClick); inside a method that uses conditional statements. It is a basic face detect app. If faces are not found, I do this:

if (facesFound < 1) {
mFlipper.setDisplayedChild(2);
mTheMessage = (TextView) findViewById(R.id.falsemessage);
mThePicture = (ImageView) findViewById(R.id.false_view);
mTheMessage.setText(R.string.noFaceOne);
mThePicture.setImageBitmap(bitmap565);
return;

if faces are found, I draw a box on the face, and do this: Code...

So, my issue lies in this: In one of my layouts in the flipper, the button that rests on the layout will need to give the user the option to snap a new picture if there are no faces found. The other layout will need the button (upon click) to have the faces cropped and the results to be sent to another layout.

The issue I am facing is where the code: ((Button) findViewById(R.id.crop_face)).setOnClickListener(btnClick);

needs to be placed in order for the program to release the button has been clicked, it calls the case in my switch statement, and runs the crop face_method.

I try putting it in the if statement where I set the image View and text View, but I get a null pointer on that line I am declaring my button on.

The buttons I have on my main menu work fine, as they are in my onCreate method, but I don't know where to play this button command, and also where I need to place my reopen Camera command.

View 1 Replies View Related

Android :: Add Library Project To Project?

Sep 15, 2010

When I right click the project in the eclipse, select "Properties". In the property page, select Android. According to the document, you can add the library project through that page. But my problem is that, there is no library information on the page. It only lists "project build target"

View 2 Replies View Related

Android :: Use Library Project In Other Project

Jul 19, 2010

I have created a library project. When I use the library project in other project, it compiles. How ever, when I run the application, it always get the error "The application has stopped unexpectly.".

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved