Android :: Using Desire To Test Applications In Eclipse (Ubuntu 10.4)
Jun 15, 2010
If I try to use my HTC Desire to test Apps I'm developing with Eclipse, then in the screen where I can choose the emulators and connected devices, it is only listed as unknown and a few question marks. I read that on Windows you need HTC Sync respectively the drivers in this program, but how can I solve this problem on Ubuntu?
View 1 Replies
Oct 13, 2010
After upgrading Ubuntu to 10.10, my android projects in Eclipse stop working.
Lots of people seem to have this problem: http://forum.xda-developers.com/showthread.php?p=8591101
please, has anyone got a solution?
View 2 Replies
View Related
May 2, 2009
I am running Ubuntu Linux (Jaunty) JDK 6.0 and am getting a strange error for my first app. i created the project and set the SDK home. And also the JAVA_HOME is set. But I can't run the app.
Your Project Contains error(s) please fix them before running your application.
The only thing I see on the console logs are the following:
CODE:.................
--------------
When I click Run as Android Application, I get the following error.
View 3 Replies
View Related
Feb 15, 2010
I got a huge problem with the Android Development Tools ADT running in Eclipse Galileo (3.5.1) on Ubuntu 9.10, 64bit.On this platform, I do not manage to see any property edit dialogs for layout properties. E.g. the one where you can select a string resource ID for text fields, or a drawable ID for image fields or backgrounds.Whenever I click on the button next to the property value - nothing happens, except this button disappears.Properties with a list of possible values, e.g. "wrap_content" or "fill_parent" are displayed in a dropdown box directly in the properties field.On a different system I work in a Windows environment with Eclipse 3.4 and the same ADT: no problems whatsoever, everything works fine, the dialogs come perfectly.Does anyone know what to do here? Where's the problem? Why does Eclipse not tell me that something goes wrong?
View 4 Replies
View Related
Sep 22, 2009
I just switched from Ubuntu 8.10 to Ubuntu 9.04 and noticed that Eclipse Content Assist isn't working anymore. I tried the following variations on Ubuntu 9.04: Eclipse 3.4.2 or 3.5 (cleaned / reinstalled) with ADT 0.93 and Android SDK 1.5r3 Using Sun Java 1.6. No combination works. I've reinstalled everything a bunch of times. I have another machine with Ubuntu 8.10 and Eclipse 3.4.2 with ADT 0.91 or 0.93 and Code Assist works for all those. I just refuse to develop without code-assist and I know lot of people would agree with me on that.
View 2 Replies
View Related
Jan 2, 2012
so, i started developing an android app a few weeks ago. my very first one, and the first java code i've written since college (about 8 years or so). it's progressing rather nicely, actually...except that yesterday when i sat down to work, eclipse no longer is stopping at my breakpoints. i've tried everything i could find online...project -> clean, using a different version of the JVM...i haven't been able to get debugging to work.
obviously this is killing my development right now as i have no way to sort out a force close i've encountered.. i'm ready to smash my monitor..even more so because it worked just fine up until yesterday and i didn't change a thing on the development PC.
View 1 Replies
View Related
Nov 24, 2010
I can't get adb to recognising my HTC Desire on my new upgrade of Ubuntu 10.10 Maverick Meerkat.adb devices shows List of devices attached no permissions Now, there are plenty of tutorials for changing rule files under /etc/udev/rules.d/.However, I cannot find one specific for 10.10.Can anyone tell me whether the rule file name and content is the same as described at link text, or are we looking at some new settings for this new release?
View 2 Replies
View Related
Jul 19, 2010
Is there a way to run unit tests for Android from Eclipse in a way that will instrument the code and measure test code coverage?
I'm looking for a simple way to find out which parts of my application aren't tested yet, fix the test cases and see if that helped.
View 1 Replies
View Related
Nov 18, 2010
Can an android project in Eclipse be configured so that the built-in builders read from an alternative source directory? ie. "test/src" instead of "src"? and possibly even "test/res" instead of "res"? (It appears that setting dirs in the property files will only affect ant and not the built-in builders)
View 1 Replies
View Related
Oct 2, 2010
I want to be able to have two projects, one that contains production code and one that contains test code. This shouldn't necessarily be an Android-specific question, but I'm want to write some unit tests for some non-platform-specific Android code on the host PC.
I created a new Java project so I can run the unit tests on the PC and only include the non-platform-specific classes from the Android project. Both projects are opened in the same Eclipse workspace. I assume I need to somehow include these Android-project sources explicitly in the new project where I'll run the Junit tests, but I can't figure out how to do this.
View 3 Replies
View Related
Sep 15, 2010
I have an Android Eclipse project and an associated Android Test Eclipse project checked into a subversion repository. Given a checked out working copy, how do I bring the Android Test project into an Eclipse workspace? It's easy to add the Android project to the workspace (just File->New Project->Android Project->From Existing Source and point it at the directory in the svn working copy). But, the 'New Android Test Project' does not have an option to create from existing source.
View 1 Replies
View Related
Jan 28, 2009
I am trying to run Junit test case for the android APIDemo project under eclipse. I create an eclipse project from the APIDemo source, it compiles fine and then I did: 1. Debug->Run as Junit tests
But I get this error: 'Lanuching AllTests' has encountered a problem. Cannot connect to VM...................
View 9 Replies
View Related
Jul 2, 2010
How can I install an Eclipse Android project onto deviceanywhere to test on different devices?
View 1 Replies
View Related
Jun 5, 2010
Do we need to launch the virtual device from eclipse every time we want to test our code? If yes, then is there any other method to make it a bit faster?
View 4 Replies
View Related
Dec 26, 2009
Just started developing apps and am having a small problem. I can test the apps on the emulator but I cannot test them on my physical android device. When I am asked to select a running device I get a device listed as: Serial Number/name:? AVD name: N/A Target: unknown etc,
It seems that my device is being picked up but not able to be used. When I try to run the app I get an "Must set android.target.avd" error.
Is there something I am missing?
I am using netbeans 6.7.1 on Ubuntu 9.10, everything up to date. I have a G2-Touch from T-mobile, if someone tells me where to find it, I will post any other needed information.
View 2 Replies
View Related
Sep 17, 2010
I want to how to develop and test apps for the Galaxy tab. I mean like the Android simulator, can we test the tab apps on a simulator? Is there a way to download simulator for the tab or should we tweak the existing simulator?
View 4 Replies
View Related
Feb 2, 2009
I can run the unit test cases either by :
1. command line ' adb shell am instrument -w com.example.android.apis.tests/android.test.InstrumentationTestRunner'
2. Go to 'Dev' and clicks 'Instrumentation' and click 'Test API Demo'.But my questions now is, how can I debug my unit test cases? I try 'Debug' my APIDemoTest eclipse project and then do #2 above, it did not break at any of my breakpoints I setup.
View 3 Replies
View Related
Mar 24, 2010
An Android Java project placed in a git repository and built in an Android tree in /packages/apps needs to have the project files located at the root of the git repository.This is problematic for creating a complementary Test project, which should ideally be included in the same git repository so commits are atomic for both code and tests. Eclipse gets very unhappy if you include the Test project as a subdirectory.Is there an appropriate approach for dealing with this other than creating a second repository?
View 2 Replies
View Related
Jun 17, 2009
I'm getting this error when trying to run unit tests from Eclipse with an Android Project. The list of Instrumentation Test Runners is empty in the Android preferences.
code:...........
Google-fu failing me.
I tried to run a unit test once, that's what I always want to do...
View 8 Replies
View Related
Aug 5, 2012
how to develop Android applications using Eclipse, following a tutorial I found online. I have a problem. There is an error in AndroidManifest.xml and I haven't even touched this file yet.
"The markup in the document following the root element must be well-formed."
Code:
</manifest><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tutorial.towerofhanoi"
android:versionCode="1"
android:versionName="1.0" >
View 1 Replies
View Related
Aug 26, 2010
I have ten, possibly more, apps I'm developing that all share logic. 50-75% of the logic is the same - perfect for some time of library or code sharing. However, after reading the posts here and trying to share code in Eclipse, I'm not sure that's going to work. I tried going to project -> properties -> build path -> link source and adding the src and gen folders of the project with the shared code and then importing the classes I need. That seems to work in the IDE, but gives an error during runtime: class not found. This seems to be a common error for people attempting this.
I am slowly deciding that shared code is not the best approach in this scenario. Android doesn't seem to work well with this type of code sharing. For one thing resources are not packed in libraries, but references (R.whatever) must exist so as not to create errors. This can be designed around, but the effort and headache is probably worse than simply creating multiple copies. My experience seems typical, based on what I've read. Is it? Have you experienced success or failure with sharing code and/or custom libraries? Am I off-base in thinking that multiple code copies will be smoother sailing than fighting the shared code approach?
View 5 Replies
View Related
Nov 20, 2010
Can I test Android smartphones applications on Samsung Galaxy Tab? Let's say I want to develop Android applications for HTC,and I only have Galaxy. Can I simulate smaller resolutions on Galaxy to see how it would work on HTC?
View 2 Replies
View Related
Sep 27, 2010
I have an application I am writing for Android that basically does a screen scrape of a large table on the web and presents it in a nicer way on the handset. Its 500k of html and takes about 20 seconds or so normally.
When I have my phone hooked up to the computer, I used to be able to just click on "Run" and my code would execute similiarly speedy, as opposed to Debug where it would take 10 minutes to complete.
Now, however, clicking "run" behaves just like debug mode.... I don't want this overhead, how do I get eclipse to stop sending my app to the debugger already? I have searched online and found a couple people with the same issue, but simply rebooting my phone doesn't fix it, and there have been no other solutions posted that I have found.
View 1 Replies
View Related
Jul 10, 2010
SD Card mounting via a front USB port stopped me typing under Ubuntu Lucid!
Plugging in via the front usb's stopped me typing!
Also other weird behaviour.
I was actually plugging the mouse in via PS2 to stop the issues I was having.
Ubuntu 10.04 Lucid 64bit, HTC Desire.
View 6 Replies
View Related
Sep 24, 2010
I'm writing an Android JUnit test and want to copy/reset a test fixture file (it's an SQLite database file.) If I were within the main application, I know I could just place the file in the assets directory and use getResources().getAssets().open(sourceFile).However, this API appears to be unavailable from the ActivityInstrumentationTestCase2 class.Is there an easy way to copy a file over from the testing PC, or should I just keep a fresh copy of a test fixture on the device and copy it over a temporary file?
View 2 Replies
View Related
Aug 23, 2009
I am using ActivityInstrumentationTestCase2 to do some test for an activity. I get a button in the setUp() method like this: protected void setUp() throws Exception {super.setUp(); act = getActivity(); btn = Button)act.find ViewById ( R.id.bike_button ); // this button has been defined in layout} Then I use this button to perform a click in a test method like this: public void testBikeButton(){ //click the bike button btn.performClick();}
View 7 Replies
View Related
Aug 11, 2010
I have never used JUnit before, and now I'm trying to set it up on an Android project.My project under test is fairly complex, including some JNI, but my test project, at the moment, is completely trivial. I have found many examples (that look totally different) online of how to make a test project, but it seems that no matter which one I follow, I get the same results.Here's my JUnit project code:package com.mycompany.myproject.test;
import android.test.AndroidTestCase;public class SimpleTestCaseExample extends Android TestCase {public void test_testOne() {fail("Just Always Fail");When I run, I see the following in Logcat:
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=test_testOne
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 1
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=.
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_RESULT: stream=
stdout Test results for InstrumentationTestRunner=..
stdout Time: 0.07
stdout OK (2 tests)
stdout INSTRUMENTATION_CODE: -1
But, I get the following in the Console:Launching instrumentation android.test. Instrumentation TestRunner on device emulator-5554 Collecting test information Test run failed: No test results I have tried a variety of different things, messing with the basic TestCase class, or the TestSuite class, or a variety of other options. I tried to just go for the most trivial example because I'm really still trying to learn how this works.Whatever I try, I see this error.
View 1 Replies
View Related
Nov 9, 2010
I'm working on a school project and I'm researching testing possibilities for Android applications. On this page: http: // developer . android . com/ resources / tutorials /testing /hello android. Google writes about a unit test. Is this really a unit test? A Unit test will not integrate all classes and will not test in his context. So my opinion is it is not a Unit Test but an Integration Test.
View 7 Replies
View Related
Jul 13, 2010
I have created a Goldcard using the tool on this Forum. It appears okay when I check the loaded files on the card. When I try and run Test RUU it fails to update my ROM from 1.15.110.11. (T-Mobile UK). I thought HTC Sync might be the problem as I had been using disk drive to connect my phone, so I reinstalled it. HTC Sync causes my Windows Explorer to crash but I managed a workaround and tried running Test RUU again. Once again the update failed. On my phone screen I get the message CID incorrect Update fail which sounds like a Goldcard problem.
View 4 Replies
View Related
Nov 30, 2009
I want to build two Android apps from the same code base. The difference between the apps is very small - app name, one or two resource files, and whether to show ads or not (basically, a free and a paid version of the same app).
This is pretty simple to do in XCode for an iPhone app, but I'm not sure how to approach it in Eclipse. Is there a clean way to do it, or should I forget about Eclipse completely and dive into the Ant scripts?
View 2 Replies
View Related