I connect Acer iconia a500 with ddms

by Chi Kit Leung » Fri, 20 May 2011 15:57:25 GMT


Sponsored Links
 Hi all,
I bought Acer. Iconia A500 last week.  I cannot get it work with dens. Do I
need to get a driver ?

-- 



Re: I connect Acer iconia a500 with ddms

by Zsolt Vasvari » Fri, 20 May 2011 16:28:34 GMT


 I am sure.  Even the Xoom is not suported by the Google USB driver as
I've learned today.




-- 


Sponsored Links


Other Threads

1. AlertDialog Landscape fullscreen problem

I think I've found a small bug, probably related to the WindowManager
and possibly introduced in doughnut.

It happens when displaying an alertDialog, with a certain type and
amount of text in it, and then switching to landscape mode, when in
full screen. It's actually so specific, I doubt many people will
encounter it, but it just so happens that I did and it took a while to
figure out, so here's how to reproduce it:

If I start in landscape mode with my AlertDialog, everything works
fine. It's only when I change to landscape mode at run time from
portrait mode while my AlertDialog is displayed do I see the bug: once
in landscape, the status bar appears briefly, then dissapears leaving
the AlertDialog slightly mispositioned (sometimes the status bar never
goes away). The WindowManager also moans in the logs: "Layout repeat
aborted after too many iterations" a few times.

The text that is in the AlertDialog matters, I've distilled it as much
as I can:
#1 - there needs to be at least one line of text that is long enough
to wrap when in protrait mode AND
#2 - there need to be enough lines of text to fill up the vertical
space available in the default AlertDialog when displayed in portrait
mode so that the internal scroll thing is triggered

I'm using a G1 (1.6) and unfortunately I haven't been able to test in
my 1.5 emulator as it refuses to go into landscape.

This code reproduces the error:

For the activity Class:

public class LandscapeTest extends Activity implements
DialogInterface.OnClickListener {

        private AlertDialog.Builder alertBuilder = null;
        private AlertDialog alertDialog = null;

        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                                        
WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.main);



        alertBuilder = new AlertDialog.Builder(this);
        alertBuilder = alertBuilder.setTitle("About");
        alertBuilder = alertBuilder.setMessage("To reproduce error:
text needs to both be long enough to wrap at least once (like this
line),\n" +
                        "AND consist of\n" +
                        "enough lines\n" +
                        "to fill up\n" +
                        "the vertical space\n" +
                        "of the alert dialog\n" +
                        "when in portrait mode.\n" +
                        "It also helps if it's Monday\n" +
                        "(not really)");
        alertBuilder = alertBuilder.setNeutralButton("OK", this);
        alertDialog = alertBuilder.create();
        alertDialog.show();

        }

        public void onStop(){
           super.onStop();

           if(alertDialog!=null){
                   alertDialog.dismiss();
                   alertDialog = null;
           }
           if(alertBuilder!=null){
                   alertBuilder = null;
           }

        }

        public void onClick(DialogInterface dialog, int which) {
        }

}


main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
</LinearLayout>

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

2. const string optimization

Does Android optimize same const strings?
If I have 2 "foo" strings in java file will it create one or two
instances in class file, dex file?
In my experiment it does not
--~--~---------~--~----~------------~-------~--~----~

3. Error: run repo init has error.

4. Market Download Stats

5. modifying init.rc file

6. auto add contacts.