Android :: Stop Eclipse From Trying To Run XML Files?
Jan 31, 2010
I'm mostly using Eclipse for Android development these days, and have developed good muscle memory for Ctrl-F11 to run my app. Problem is, if I happen to be editing an XML file (like manifest or layout) when I hit that key combination, Eclipse does something that I find inscrutable... It attempts to "run" my XML file, creating an erroneous output file (called something like layout.out.xml) that I then have to delete, adding a useless XML launch configuration to my history, and generally being a pain in my butt.
It's no big deal, but it is an ongoing annoyance. Does anyone know how to disable "run" for XML in Eclipse? I've tried to find a config item for it, but Eclipse's options are such a rabbit hole that I haven't had any luck there myself.
View 1 Replies
Jul 18, 2009
I'm storing my Android project in a Subversion repository. After recently shuffling a bunch of stuff around I started getting tons of errors like: syntax error entries/project_name/src/.svnline 1Android AIDL Problem syntax error don't know what to do with "" entries/project_name/src/.svnline 28Android AIDL Problem etc.
It seems as if Eclipse is trying to build the files in the .svn directories now. This setup used to work fine.
View 7 Replies
View Related
Jul 29, 2009
To android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.
View 2 Replies
View Related
Jan 26, 2010
I am not sure what's happening but whenever I try to run the project, I get the following in the console:
[2010-01-26 22:13:37 - TestProject1.0]
[2010-01-26 22:13:37 - TestProject1.0] Android Launch!
[2010-01-26 22:13:37 - TestProject1.0] adb is running normally.
[2010-01-26 22:13:37 - TestProject1.0] Performing com.testproject. Home activity launch
[2010-01-26 22:13:39 - TestProject1.0] Application already deployed. No need to reinstall.
[2010-01-26 22:13:39 - TestProject1.0] Starting activity com.greekrow. Home on device
[2010-01-26 22:13:40 - TestProject1.0] ActivityManager: Starting:
Intent { cmp=com.testproject/.Home }
[2010-01-26 22:13:40 - TestProject1.0] ActivityManager: Warning: Activity not started, its current task has been brought to the front.
View 3 Replies
View Related
Oct 2, 2009
I'm working on a 1.5 Android application. Developing in Eclipse 3.4.2 on Windows XP. I have a MapView, have requested updates, etc.
The problem is that after the first manually injected GPS coordinate, the app stops recognizing that a GPS coord has been sent.
CODE:..........
Then MyLocationListener simply changes the value in a TextView to match the new GPS coordinate.
CODE:..........
I added some logging in the onLocationChanged method and it only ever sees a Location the first time that I attempt to send an update. All subsequent ones don't fire the onLocationChanged method.
Additional info:
The logcat output is as follows:
10-02 17:22:34.423: INFO/gps(6671): Provider gps is has status changed to 1. Extras: Bundle[mParcelledData.dataSize=52]
First GPS update is faked:
CODE:............
According to http://developer.android.com/reference/android/location/LocationProvider.html#AVAILABLE , that 2 maps to "Available".
As soon as that "Available" gets set, no other locations get passed through. Seems a bit counterintuitive.
View 1 Replies
View Related
Feb 19, 2009
I've noticed that then I use "clean" from Eclipse project menu on my project I receive following error
[2009-02-19 09:55:02 - MyListView] no classfiles specified [2009-02-19 09:55:02 - MyListView] Conversion to Dalvik format failed with error 1
Project doesn't use any external jars and rather simple. If I uncheck build automatically and build it - it builds and runs just fine. I'm on MacOSX 10.5.6 and JDK 1.6.0_07. And latest android SDK ( android-sdk-mac_x86-1.1_r1.zip 79046151 bytes becf0f1763d61eedce15d2a903d6c1dd )
View 2 Replies
View Related
Jul 8, 2009
I am developing android program under eplicse environment. I use svn to store all my files. But it seems that svn files cause some problem.
I got some errors like this:
CODE:........
It seems android system wallk all directories under src, and try to parse files under .svn folder. Is that bug?
View 5 Replies
View Related
Aug 12, 2010
I've recently upgraded the Android SDK to the latest version, and I'm trying to re-build the ApiDemos project. I've imported it properly.
The problem is
1. the .aidl files aren't being processed at all by Eclipse during the pre-processing stage.
2. R.java isn't re-generated at all by eclipse
Using Eclipse, Helios release.
View 7 Replies
View Related
Dec 8, 2012
how to create an android app (eclipse) that opens for viewing a couple of PDFs files that are already embedded in the app.
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
Jul 9, 2010
i have a severe problem with eclipse, where i need to compile a somewhat larger class. by "larger" i mean, the class has about 5000 lines of code... problem is that on saving this project, eclipse takes several seconds (30-40) to "build the workspace". to be exact, it says "50%" and keeps saying that for 30-40 seconds. then, it breaks with the following error:
[console]:
[2010-07-09 15:28:39 - Dex Loader] Unable to execute dex: null
[2010-07-09 15:28:39 - myProject] Conversion to Dalvik format failed: Unable to execute dex: null
[problems window]:
Conversion to Dalvik format failed: Unable to execute dex: null this error is reproducible and keeps popping up until i comment out several thousands LOC, so that the file still has this 5k LOC, but ~2000 of them are comments. THEN it works...
i know that 5000 LOC are no really good programming style, but i need to do it this way for now ... (i have to write this much records to a sqlite database and since sqlite doesnt feature multiple sql-queries in one rawQuery-command i have to execute a single rawQuery() for each and every data record i need to push into the db.... - until i write a file reader to read this data from a file (that needs verification etc)), i'm stuck with this solution...)
View 1 Replies
View Related
Sep 21, 2010
I have an interesting problem. I pull down an android project from cvs, which works fine. Once Eclipse builds the project, my .java files are removed. XML files, pngs, everything else is fine. I seem to be left with just the package tree, but no source files. Any thoughts?
View 1 Replies
View Related
Feb 6, 2010
Is there a way to stop apps from scanning the phone for files every time one is opened from within the app?
I'm using PDF Viewer and every time I want to open a PDF file, it spends a while scanning the phone for PDFs - time-consuming when I have a collection of several hundred on it.
View 1 Replies
View Related
Aug 20, 2010
When trying to start up my Android AVD emulator, I get the following error message in eclipse code...
Any ideas why I may be getting this error? I was able to run my AVD yesterday, the only thing I have done since then is to restart the box (VirtualBox)
View 1 Replies
View Related
Sep 16, 2010
I have no idea, which files should be versioned for a new android project created in eclipse. Could anyone tell me, what I should add?
View 1 Replies
View Related
Oct 11, 2010
I developed my first (small) Andoid application using Eclipse and are now ready to transfer it to my Galaxy S mobile device (develping for Android 2.1)
Following another thread in SE, I changed the run mode in Eclipse to manual in the hope that I would be able to chose my phone and/or AVD every time I run the program.
The popup list howerver only show the AVD, my phone is not present in the list.
So obviously, my Samsung Galaxy S device is not recognized. Howerver, I can transfer to and from the device using a drive letter, so the USB connection is working properly.
Anyone any idea what I am missing here ? I'm not sure if it is an Eclipse problem , or a driver or ....
View 1 Replies
View Related
Aug 28, 2010
I'm making a game, but the game lags a bit every time onCellLocationChanged or updateNetworkNameExtension shows up in my Log file. What is making these two run? Is there a way to make them not run?
View 3 Replies
View Related
Sep 3, 2010
I am running a Droid Incredible (froyo). On my SD card, I notice HUNDREDS of files named ristretto_######tmp. I erase them, and in no time they are back. Anyone know what these files are for and how to stop getting them?
View 4 Replies
View Related
May 6, 2010
I'm just starting with Android and everything seems to be working fine, but when I try to look at any XML file in eclipse, I get the following error. The only way I can see them is by "Opening With" -> TextFile.
View 1 Replies
View Related
Sep 3, 2009
I am using eclipse 3.5 with the ADT plugin.when I view layout xml files, i get two tabs in the view the source code view and a graphical view.the graphical view almost never works for any of my layouts.it usually shows "NullPointerException: null" at the top and nothing else. when it does work, it often does not match what i get in the simulator or device.it seems like this thing simply is not ready for prime time; although the idea is very cool.has anyone else had much success with it?
View 5 Replies
View Related
Jan 5, 2010
In my application i have several activities and i want to start background music whenever my *Application* is launched and stop music whenever *Application* is paused or stopped.
View 4 Replies
View Related
Jun 22, 2010
I want to get started with an Android application but can't download the plug-in.
Anyone know where else I can get this?
View 3 Replies
View Related
Jan 30, 2009
I can't seem to get anything back from https://dl-ssl.google.com/android/eclipse/ - even accessing from a browser just gives a 404.
View 6 Replies
View Related
Aug 2, 2012
Okay when user presses log out button what's supposed to happen is:
Code:
stopService(myIntent);
unbindService(mConnection);
mIsBound = false;
I need to shut down the service on background.Except the service restarts itself over and over again! Even if I kill the program from task manager the service restarts itself. Other programs aren't using the service. when I uninstalled the program the foreground program information popped up indicating it was STILL there(albeit this I solved by rebooting phone).
When user says he's finished with the program 'least he can expect is for the program to stay down rather than keep eating battery by acquiring GPS signal and sending them to server. The program is not intended to be "once you log in you need to Uninstall me and reboot phone to get rid of me!" type of program!
View 6 Replies
View Related
Apr 24, 2009
Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
View 2 Replies
View Related
Mar 19, 2009
I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card.
Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal of the files by hand and then go from there. But that already failed.
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/W
Last login: Wed Mar 18 19:41:49 on ttys005 localhost:~ mkamp$ adb -d shell rm /sdcard/newsrob/a* [.. minutes of silent deletes ..] rm failed for /sdcard/newsrob/a2aade03616c28b30_113.png, Read-only file system localhost:~ mkamp$
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/O now
The log contained nothing but the usual gc output and random WiFi status changed mumbo jumbo.
Anybody else seeing this behavior?
There were 6.500 files in that directory. Might that be the problem? I don't access the files with queries, I always have the exact name.
View 5 Replies
View Related
Nov 4, 2010
I am working on an android app. Where i need to parse some plist files from assets folder. I do understand how to use assets in android but now problem is that file sizes are more than 1MB and so android gives error Data Exceeds UNCOMPRESS_DATA_MAX (2183588 vs 1048576). how to access such larger files from assets? Also I cant reduce a file into small buffers because i am just sending it to "DocumentBuilder.parse(in)" as a whole so can not use buffer. The error is on line: Document doc = db.parse(in).
View 1 Replies
View Related
Jun 11, 2010
I am trying to overlay route data in KML files on a MapView.
The following code works great:
CODE:................
The only problem I have with this is that I don't need to re download these KML files every time. I have about 10-15 KML files that will rarely change. Also since it has to connect, download, and parse these each time there is a delay in opening the maps.
It would make a lot more since for me to save these as a local resource and have the URI reference it there. Is there a way to construct a URI using the geo: scheme and have it point towards a local resource?
It looks like file:///sdcard support was included in 2.1. The only reference I could find to it was at the end of this bug report thread. I am currently at work and don't have time to play with this yet but I would like to figure it out later. I feel like there are a lot of people on stackoverflow and elsewhere who would really appreciate a reasonable way to do this.
View 1 Replies
View Related
May 11, 2010
I want to know how to get the ringtone,audio files in the device and I want set them as alarm. I am working in the code to set the alarm and I want to know how to retreive audio or ringtones from the device.
View 1 Replies
View Related
Nov 17, 2010
I have a very simple app. I have simplified for sake of discussion, but I think this is a good representation.
My issue is that when I exit the app, the GPS continues receive updates. As far as I can tell the app never stops running, it just no longer displays the map activity.
I have to be missing something important.
CODE:..............
View 2 Replies
View Related