Is there a plan for Google to support reboot function in Emulator kernel

by lianwei » Mon, 13 Apr 2009 15:17:38 GMT


Sponsored Links
 Hi Google developers,

Currently, Android Emulator kernel does not support the reboot
function, so if you run the reboot command, the kernel will run into a
endless loop. I want to know if there is a plan for Google to support
such function?

-Lianwei
--~--~---------~--~----~------------~-------~--~----~

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



Other Threads

1. updating listview items

Hi all,
In the application im working on now i came up with the following
problem. I have list view which is displaying items with images in
most cases it will be different image for different items ( thumbnails
about 60x60 pixels ). So the problem is how can i handle image
processing for the view. For know i have the following variants:
1. I can cache all bitmaps and when i try to display view i get bitmap
from cache synchronously and display it. The problem is that
60x60=3600x4=14kb per bitmap which is waste of resources.
2. When i need to display view i can register event to some thread to
decode the associated bitmap which will decode it in background and
than to update gui. This sounds good for me the scrolling is still
smooth because all image processing is done in background. Updating
list view is bit jerky for now i am doing it view notifyDataSetChanged
which is updating all visible views although i can update thumbnail
for a single item.
So question one is is there better way the update single listview
element than calling notifyDataSetChanged.
Can you think of some better strategies for solving this problem.
Thanks

-- 

2. Extend a button and implement Parcelable

Hi,

I've got a problem with a parcelable ArrayList.
I made a custom Button called MyButton and the ArrayList is a generic
one. So it only takes MyButton objects.
Passing the list from on Activity to another is not the problem. In
the receiving Activity the Log says, it has some elements, but if i
read specific values (like height and text of the button), it always
says null or 0.



public class MyButton extends Button implements Parcelable{

    private HashMap<String, String> map;
    public static Context context;

    public MyButton(Context context){
        super(context);
        this.context = context;
        map = new HashMap<String, String>();
    }

    public MyButton(Context context, AttributeSet attrs){
        super(context, attrs);
    }


    public MyButton(Parcel in){
        super(context);
        map = new HashMap<String, String>();
        readFromParcel(in);
    }

     public static final Parcelable.Creator<MyButton> CREATOR = new
Parcelable.Creator<MyButton>() {
            public MyButton createFromParcel(Parcel in) {
                return new MyButton(in);
            }

            public MyButton[] newArray(int size) {
                return new MyButton[size];
            }
        };

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(map.size());
            for (String s: map.keySet()) {
                dest.writeString(s);
                dest.writeString(map.get(s));
            }

        }

        public void readFromParcel(Parcel in) {
            int count = in.readInt();
            for (int i = 0; i < count; i++) {
                map.put(in.readString(), in.readString());
            }

        }

        public String get(String key) {
            return map.get(key);
        }

        public void put(String key, String value) {
            map.put(key, value);
        }


    }


If you could have a look at my code and tell me what i made wrong, I
would be very glad.

-- 

3. fragmentation

4. left scrollbar

5. Playing a audio stream not working using MediaPlayer

6. Changing the style attribute of a button according to its state

7. android 1.5: How do we use the AudioTrack class?