Cannot boot my ADP1 - IllegalArgumentException

by Naganuma » Tue, 06 Jan 2009 01:27:04 GMT


Sponsored Links
 Hello.

My ADP1 (Android Dev Phone 1) cannot boot up.
The screen is blank, with any operation.

I had connected ADP1 to my PC by USB, and had performed 'adb logcat'
command.
That contained a following exception.

E/AndroidRuntime(   55): java.lang.IllegalArgumentException: Layout:
-10 < 0
E/AndroidRuntime(   55):        at android.text.Layout.<init>(Layout.java:
85)
E/AndroidRuntime(   55):        at android.text.StaticLayout.<init>
(StaticLayout.java:63)
E/AndroidRuntime(   55):        at android.text.StaticLayout.<init>
(StaticLayout.java:53)
E/AndroidRuntime(   55):        at android.text.StaticLayout.<init>
(StaticLayout.java:44)
E/AndroidRuntime(   55):        at com.android.server.status.Ticker
$Segment.getLayout(Ticker.java:37)
E/AndroidRuntime(   55):        at com.android.server.status.Ticker
$Segment.getText(Ticker.java:56)
E/AndroidRuntime(   55):        at com.android.server.status.Ticker.addEntry
(Ticker.java:174)
E/AndroidRuntime(   55):        at
com.android.server.status.StatusBarService.performAddUpdateIcon
(StatusBarService.java:673)
E/AndroidRuntime(   55):        at com.android.server.status.StatusBarService
$H.handleMessage(StatusBarService.java:605)
E/AndroidRuntime(   55):        at android.os.Handler.dispatchMessage
(Handler.java:88)
E/AndroidRuntime(   55):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(   55):        at com.android.server.ServerThread.run
(SystemServer.java:313)

I tried to hard-reset my ADP1, but the situation did not change.
(Home+Power -> alt+w)

I found a source code which causes the exception.
But the reason is unknown.

 http://www.google.com/codesearch/p #uX1GffpyOZk/core/java/android/text/Layout.java&l=85

Please help me.
Thank you.
--
Naganuma Tatsumi

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



Other Threads

1. Reading sensor values directly at regular intervals rather than using onSensorChanged(SensorEvent evt)

Gentlemen,

Up until now I have been using SensorEventListener.onSensorChanged
(SensorEvent evt) to obtain data values from the on board sensors (G1)
whenever a sensor event occurs (snippet below). However, what I really
want to be able to do is read the values of the sensors at a regular
intervals, at say a frequency of 0.1s rather than reacting to the
triggered event (for DSP purposes). Is there a way of reading the
sensor values directly without having to use/wait for onSensorChanged
() ?

Many thanks in advance.


----------

Snippet - currently using onSensorChanged(SensorEvent evt):

SensorManager sman = (SensorManager) getSystemService
(Context.SENSOR_SERVICE);
                List<Sensor> accelerometer = sman.getSensorList
(Sensor.TYPE_ACCELEROMETER);
                Sensor myAccelerometer = accelelerometer.get(0);

                sman.registerListener(new SensorEventListener() {

                        public void onAccuracyChanged(Sensor arg0, int arg1) {

                        }

                        public void onSensorChanged(SensorEvent evt) {

                                // read new sensor values
                                accelTextView.setText("X-accel: " + 
evt.values[0] + "\n" + "Y-
accel: "
                                                + evt.values[1] + "\n" + 
"Z-accel: " + evt.values[2]);
                                accelTextView.invalidate();


                                // sleep for a bit
                               try {
                                        Thread.sleep(10);
                                } catch (Exception ex) {
                                        accelTextView.setText("Erk!");
                                }
                        }

                }, myAccelerometer, SensorManager.SENSOR_DELAY_UI);

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

2. Selling license for free apps

Hi Guys,

Like many other developers here, I can't sell applications from my country
and seeking a way for monetization of my app.

I was thinking to release my app as free ads-supported version, and to sell
license from my website for those who want to remove the ads completely.
Actually users will apply on my website, pay a fee and I will send a
license.

But then I came across the following url saying that "collecting payments
through your application is not allowed under the Android Market Developer
Distribution Agreement":
http://market.android.com/support/bin/answer.py?hl=en&answer=140504

Is this to prohibit me from doing what I explained above?

Thank you,
Armond


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

3. How to build EditText view like that in Android Market where "X" button appears for clearing text?

4. Widgets and custom components?

5. Prevent radio button from being checked when being clicked

6. WebView onLoadComplete()?

7. Last modification time for each contact record in People table