Why does Android Eclipse constantly refresh external folders and take forver?

Just my a new Android phone and I've been tinkering with some basic apps. It's been driving my crazy that the Android plugin for Eclipse refreshes externals folders whenever I save ANYTHING. Normally I wouldn't mind but when it takes 10s to refresh I start to notice.

I already searched and other people have this problem, but there are no solutions.

If it matters, Eclipse 3.5 running on a 64bit jvm on Ubuntu 9.10


Asked by: Edward408 | Posted: 25-01-2022






Answer 1

If you have references to external sources put them in a zip file:

YourProject->rightClick->Properties->Java Build Path->libraries->..., and then most notably android.jar, but other libs can be the culprit too. Expand it and and select Source attachment, and then (if it doesn't say 'None') press the 'Edit...'-button. If that points to a directory waht you should do is compress that source-directory into a zip file and make the source attachment point to that file.

Apparently eclipse/adt feels the need to refresh sources on the file-system. When they're in a zip-file it seems confident that they have not changed....

Answered by: Robert435 | Posted: 26-02-2022



Answer 2

You could try disabling "Build automatically" from the Project menu.

Answered by: Vivian303 | Posted: 26-02-2022



Answer 3

First of all Eclipse has a cool feature called a Preferences menu which is located under the window menu located at the top of the screen. Inside there are all sorts settings for pretty much anything you could want to adjust, including the option to turn off Native file system hooks and polling (under General -> Workspace). This is the actual solution to your problem as disabling build automatically doesn't solve the external folders issue, as soon as you build your project it starts right back up with refreshing them. Just keep in mind that if you update your Android SDK at all you will probably need to right click on the root directory of your project and hit refresh after the update finishes.

Secondly, as far as Netbeans is concerned there are at least a half a dozen pages worth of forums posts and various methods for using the Android SDK with it that are also available through Google, I'd give it a look.

Answered by: Connie192 | Posted: 26-02-2022



Answer 4

I generally do the above step of turning off Automatic build and also try to have not more then 1 open project in my project list.

I myself am fed up of Eclipse from this. Importing a big android project 'ALWAYS' hangs my eclipse and i have to force close it and restart it.

P.S. I really wish google would create an Android plugin for Netbeans =(

Answered by: Robert684 | Posted: 26-02-2022



Similar questions

android - How can I read constantly updated value from external database with room?

I use room with Live Data to access external database. The value stored in external database is updated by another application every 5 seconds. It seems that I can't constantly receive the updated value from room. Should I rebuild database to get updated value every 5 seconds? Here are some reference code: @Dao public interface GasDynamicDao { @Query("Select * from gas_dyamic") LiveData<List<...


draw is being constantly called in my android map overlay

I'm trying to draw a route onto my MapView. I've extended Overlay and implemented the draw() method. The route is displayed properly, although while debugging, I added a breakpoint on draw(), and noticed it is being called constantly. I only want it to be re-drawn if someone moves the map or zooms (the draw take into account these changes when drawing the route) What can cause this ?


p2p - Fastest way to constantly send and receive data between 2 Android phones

What is the fastest way to constantly send and receive data between 2 Android phones? e.g. long, lat, IM or just some number. not for an always-on connection or push services. The app is running on foreground and waiting for data on both sides.


android - "Eclipse" trouble message error appear constantly

I get this message all the time on my error log: Could not create the view: Could not initialize class com.ibm.icu.impl.JavaTimeZone. This situation its bad: each time when I try to open a class I get this message. What should I do to solve this problem?


android - Best way to constantly monitor location

I want to monitor a user's location on a regular basis, like Google Latitude does. Something that would wake the phone up every X minutes, even if the app is currently not running, get the location, and send it to a server. This is something that the user will have to opt into. Using LocationManager alone does not seem to be the way to go. I guess this is sort of a follow up question to this one:


android - Should I open() and close() my SQL database constantly or leave it open?

I am creating an app that uses an SQL database for storing data. The way the app is designed it will be updated every 3 minutes or so with new data depending on user actions while the app is running. In the tutorials I have seen, they recommend that you close the database after changing it (it is an "expensive" in terms of resources). Is it better to leave it open for the duration of my App since it is b...


android - How to leave TTS constantly running in background?

I build a fun little TTS/STT app to entertain my self a while back. I worked well, but had one crucial flaw: when I would want to actually use the STT engine, a dialog would pop up telling it when to stop recording. For my next project, this is out of the question. Aside from completely stopping to user from bwing able to advance in my app, it's down right ugly. I need the app to constantly listen for words and not stop th...


How to send GPS data from android to server constantly until app close

I want to allow my app to send GPS data to server constantly in background after log in until app close.. I use locationManager to send GPS data.... I start to think about manual thread, AsynTask, to handle it.... Question: locationManager.requestLocationUpdates(provider, 60, 5, this); it will update automatically after 60 ms??? Are there any good strategy to get G...


java - Android App Data - Constantly Writing data to in a readable format

I'm making an app which constantly receives Heart Rate from a bluetooth device in a serial (Byte) format. I want to be constantly saving this data on to a file on the droid. Whats the best way? The data should not be overwritten, rather added to the end of file. Kind of like notepad applications. I have seen a few options like database or file stream. I have no experience with database. And with fil...


android: onDraw is called constantly

I have a problem with a custom button. onDraw() gets called again and again, and I can't figure out why. public class CircleButton extends Button { static final int StateDefault = 0; static final int StateFocused = 1; static final int StatePressed = 2; @Override protected void onDraw(Canvas canvas) { Log.v("Button","onDraw()"); switch (mState) { case StateDefaul...


android - Custom View onDraw is constantly called

I have a custom view which I override the onDraw method to draw bitmaps using the canvas. I can't really post any code because its quite long and complicated. I put a log in the onDraw method, and I see that it never stopped being called. My question is, what can trigger the onDraw method except calling invalidate on the view or its ancestors?






Still can't find your answer? Check out these communities...



Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android



top