Unable to open persistent property directory

by Androidphan » Fri, 06 Mar 2009 09:53:48 GMT


Sponsored Links
 Android is working now. I'm starting without the ramdisk. With kernel
argument init=/init and changed init.rc so it doesn't mount the rootfs
again. Then when having a blank screen I added the argument vga=788
and then it booted. :)
--~--~---------~--~----~------------~-------~--~----~

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



Other Threads

1. startService an unusual way results in a a NullPointerException

Hi everyone!

I am trying to start a service an unusual way. The reason for this is
to keep at least some parts of the program platform independent. The
startService() function is called from the Service class itself and
there
I get a NullPointerException.

I made a small example to show the problem (see below). Any ideas?
Thanks!


/* HelloAndroid.java */
package com.example.helloandroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

package com.example.helloandroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class HelloAndroid extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // start buttons
        findViewById(R.id.start).setOnClickListener(new
OnClickListener() {
            public void onClick(View v) {
                startService(new
Intent("com.example.helloandroid.UnusualService"));
            }
        });
        // stop buttons
        findViewById(R.id.stop).setOnClickListener(new
OnClickListener() {
            public void onClick(View v) {
                stopService(new
Intent("com.example.helloandroid.UnusualService"));
            }
        });
        // unusual start
        findViewById(R.id.unusual).setOnClickListener(new
OnClickListener() {
            public void onClick(View v) {
                UnusualService myService = new UnusualService();
                myService.startService();
            }
        });
    }
}

/* UnusualService */
package com.example.helloandroid;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class UnusualService extends Service {
        @Override
        public IBinder onBind(Intent intent) {
                return null;    // TODO make something
        }

        public void startService() {
                // the folowing line will throw the exception
                startService(new 
Intent("com.example.helloandroid.UnusualService"));
        }

        public void stopService() {
                stopSelf();
        }
}

-- 

2. Select behavior of a TextView

I have a TextView which is inside a LinearLayout which is in the child
position of an ExpandableListView. Without assigning a color state
selector to the text view, the following behavior is observed:

Text unselected - text paints as white
Text selected - text paints as black

If I add a color state selector with a call to
text.setTextColor(R.color.textcolorstatelist) then the following
behavior is observed:

Text unselected - text paints as black
Text selected - text paints as black

I tried two versions of textcolorstatelist.xml and both produced the
results above:

Version 1)

<selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_selected="true" android:color="#FFFFFFFF"/>
    <item android:state_selected="false" android:color="#FFFFFFFF"/>
    <item android:color="#FFFFFFFF"/>
</selector>

Version 2)

<selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_selected="true" android:color="#00FFFFFF"/>
    <item android:state_selected="false" android:color="#00FFFFFF"/>
    <item android:color="#00FFFFFF"/>
</selector>

Is it possible that the color state list needs to be applied to the
whole LinearLayout rather than just the TextView?


-- 

3. can't get module

4. Button organisation

5. error: 'dynamic_cast' not permitted with -fno-rtti

6. all processes/services in init.rc exiting . Android does not start

7. PendingIntent.Cancel - FCs in 1.6, fine in 2.1??