cyclic "android.process.acore" failure (1.0r2 and 1.1r1)

by sreten » Fri, 06 Mar 2009 05:19:39 GMT


Sponsored Links
 Hi,

I hope this is the correct area. I have been using the SDK for a while
now. For some reason
only projects I create cause the home screen to go into cyclic lockup
as the force close on
android.process.acore just shortly launches another one that fails.

I can delete userdata-qemu.img to get a running emulator back. I've
tried updating / replacing
everything. I can write a very simple project and that is fine. Copy
that and update it with say
more resource files and it then causes the above problem for no
apparent reaason.

It is hard to believe an appplication can inadvertantly cause such a
major problem. I'm a bit
like a headless chicken, I do not know where to start looking for the
cause in my code.


There is a repeated Android runtime error,
Uncaught handler  : thread application loader exiting due to uncaught
exception
java.lang.ClassCast Exception: android .text.Spanned string
           more AndroidRuntime errors
final one at java.lang.Thread.run(Thread.java:935)

/Sreten.





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



Other Threads

1. send String to pc using wifi

Hello guys!
I'am looking for a method to send data like string to my PC using the
Wifi on my G1...
I've made a Socket with the data but what should I do to send it to th
pc??
thx

-- 

2. onDraw() being called multiple unintended times

Here is a short program where my intent is to scale up or down the
size of a circle when the zoom controls are used. In addition to my
intended behavior, I am getting two "extra" (unintended) calls to the
onDraw() function in response to my zoomControl onClick callback.  (I
have used DDMS to log my debug statements.)

Can anyone explain the source of the onDraw() calls besides the
zoomControl onClick() method?

---------------------------------------------------------------------------------------
package com.example.simpledraw;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Path.Direction;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.ZoomControls;

public class SimpleDraw extends Activity {

        private static final String TAG = "SimpleDrawActivity";
        public static double scale;

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

        scale = 2.0;
        RelativeLayout relativeLayout = new RelativeLayout
(this);
        setContentView(relativeLayout);
        final MyView myView = new MyView(this);
        RelativeLayout.LayoutParams myViewLayoutParams =
                new RelativeLayout.LayoutParams
(RelativeLayout.LayoutParams.FILL_PARENT,RelativeLayout.LayoutParams.FILL_PARENT
 );
        relativeLayout.addView(myView, myViewLayoutParams);
        RelativeLayout.LayoutParams zoomControlsLayoutParams =
                new RelativeLayout.LayoutParams
(RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT
 );
        zoomControlsLayoutParams.addRule
(RelativeLayout.ALIGN_PARENT_BOTTOM);
        zoomControlsLayoutParams.addRule
(RelativeLayout.CENTER_HORIZONTAL);
        ZoomControls zoomControls = new ZoomControls(this);

        relativeLayout.addView
(zoomControls,zoomControlsLayoutParams);
        myView.setEnabled(true);
        zoomControls.setIsZoomInEnabled(true);
        zoomControls.setIsZoomOutEnabled(true);
        zoomControls.setOnZoomInClickListener(new OnClickListener()
{
            public void onClick(View v) {
                myView.invalidate();
                scale *= 1.25;
                Log.v(TAG, "The scale is  " + scale);
            }
        });
        zoomControls.setOnZoomOutClickListener(new OnClickListener()
{
            public void onClick(View v) {
                myView.invalidate();
                scale *= 0.8;
                Log.v(TAG, "The scale is  " + scale);
            }
        });
    }

    static public class MyView extends View {

        Integer number = 0;

        public MyView(Context context) {
                super(context);
        }
        @Override
        protected void onDraw(Canvas canvas){
                //super.onDraw(canvas);
                Log.w(TAG, "The onDraw() method is called for the " + number + "
time.");
                //Log.w(TAG, "The view calling OnDraw is " + this.getId() );
                canvas.drawColor(0);
                Path circle = new Path();
                circle.addCircle(150, 150, (int)(scale*10.), Direction.CW);
                Paint cPaint = new Paint();
                cPaint.setColor(Color.LTGRAY);
                canvas.drawPath(circle, cPaint);
                Paint textPaint = new Paint();
                textPaint.setColor(Color.GREEN);
                canvas.drawText(number.toString(), 150, 250, textPaint);
                number++;

        }
    }


}

--

3. Rejoining Contact failing

4. access voice dialer through my bluetooth

5. USB connection question

6. Why Android Sucks

7. MIP Client on Android