Eclipse slow when compiling resources

by Zsolt Vasvari » Thu, 22 Jul 2010 08:24:23 GMT


Sponsored Links
 The last couple of weeks, my app is very slow compiling changes when
the resources are modified in the project.  Doesn't matter if it's
strings or layout.  Sometimes it takes as long as 30 seconds for the
changes to apply.  Compiling just the .java files are as fast as
ever.

I used to have slowdowns after I having Eclipse open for the whole
day, but restarting Eclipse always fixed that.  Not this time.

All my Eclipse and Android software is up-to-date.  Has anyone
experience this or have any suggestion as to what could be causing
this and a fix?  It's really cutting into my productivity.

--



Eclipse slow when compiling resources

by Xavier Ducrohet » Thu, 22 Jul 2010 09:46:53 GMT


 You could try to enable verbose build output (in the preferences under
Android >Build), to see if it seem to choke on a particular file.

Xav



>


Sponsored Links


Other Threads

1. addProximityAlert() doesn't fire intent

Hi,

I am new to Android development and I am trying to write an App that
uses the addProximityAlert() method. I know my intent / intent-filters
work (as I can manually fire the intent) however I cannot seem to get
addProximityAlert to fire an intent.  I've searched on various forums
and read the API docs numerous times however have not been able to
determine what is wrong with my code.  Any ideas?

package com.example.gpsprox;


import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.Button;
import android.widget.Toast;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class GpsProx extends Activity implements OnClickListener {

            private LocationManager lm;
           private Proximity prox;
            String phoneNo;
            String message;
            double latitude;
            double longitude;
            float radius;

            private static final String PROXIMITY_ALERT =
"com.example.gpsprox.PROXIMITY_ALERT";





            /** Called when the activity is first created. */
            @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);



                //---use the LocationManager class to obtain GPS locations---
                lm = (LocationManager)
                    getSystemService(Context.LOCATION_SERVICE);





              // Use addProximityAlert public method of locationmanager

                // Test Latitude / Longitude is at corner of Bute Gardens and
the broadway.

                latitude = 51.4935684;
                longitude = -0.2223873;
                radius = 0;
             //   Context context;

                Intent intent = new Intent(PROXIMITY_ALERT);

           PendingIntent pi = PendingIntent.getBroadcast(getApplicationContext
(), 0, intent, 0);



                  //      sendBroadcast(intent);


                lm.addProximityAlert(latitude, longitude, radius, -1, pi);

                IntentFilter filter = new IntentFilter(PROXIMITY_ALERT);
                registerReceiver(new Proximity(), filter);

                Button button = (Button)findViewById(R.id.Button);
                button.setOnClickListener(this);

                Toast.makeText(getBaseContext(),
                    "Got here!",
                    Toast.LENGTH_SHORT).show();


            }

         // Implement the OnClickListener callback
            public void onClick(View v) {

                // lm.removeProximityAlert(GpsProx.pi);


            finish();

            }

            public class Proximity extends BroadcastReceiver
            {






                                @Override
                                public void onReceive(Context context, Intent 
intent) {
                                        // TODO Auto-generated method stub


                                        Toast.makeText(getBaseContext(),
                                    "Got here too!",
                                    Toast.LENGTH_SHORT).show();

                         String key = LocationManager.KEY_PROXIMITY_ENTERING;
                                    boolean entering = 
intent.getBooleanExtra(key, false);


                                //      Bundle extras = intent.getExtras();

                    if(entering) {

                // we know that the device is entering the location.
                // display a message and send a text message.

                                Toast.makeText(getBaseContext(),
                                            "Entered the zone!",
                                            Toast.LENGTH_SHORT).show();



                                        }

                                }



            }


        }

Thanks,

Chris

--~--~---------~--~----~------------~-------~--~----~

2. Using standard gallery

Am I able to use the standard gallery for development? I meen the
gallery with the folder selection and when you select a folder a
thumbnail grid will be displayed for photo selection.

Thanks in advance

--~--~---------~--~----~------------~-------~--~----~

3. Running voice recognition at the background

4. Problem with Toast

5. getting color array of image

6. how to get bitmap X or Y

7. Htc Touch Dual