pesky problems with AVD at wits end what the hell am I doing wrong?

by YoYo » Tue, 22 Jun 2010 04:34:50 GMT


Sponsored Links
 I get this error every time I click create AVD
[2010-06-17 13:28:16 - SDK Manager] Failed to create the SD card.

I also have another problem. When I try to open my simple hello world
app in the emulator I get a bus error. Example:

* I launch the emulator from an avd with no sd card size settings.

* then I install .apk file to the emulator. When I do I get a bus
error.

I think this is because I cannot create an emulator with a proper SD
card setting. Am I right? Or is this another issue I need to deal
with? Of course, any assistance is much appreciated.

--



Other Threads

1. HorizontalScrollView in TableLayout cell does nothing

Hello,

I have this problem where a scrollable layout (one that resides within
a HorizontalScrollView) is scrollable if I put it in a LinearLayout,
but NOT scrollable if I put it in a TableLayout. I'll demonstrate with
code.

In the code below (all code resides within the onCreate method of my
activity), I create a LinearLayout containing two buttons. Due to the
buttons size, the layout is too wide, and doesn't fit on screen.
Therefore, I wrap it in a HorizontalScrollView.

/*
-------------------------------------------------------------------------------------------------
*/

LinearLayout ll = new LinearLayout(this);
ll.setLayoutParams(new LinearLayout.LayoutParams(
    LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

ll.setOrientation(LinearLayout.HORIZONTAL);

for(int j = 0; j < 2; j++) {
    Button button = new Button(this);
    button.setText("text");
    button.setWidth(200);
    ll.addView(button);
}

ll.setBackgroundResource(R.drawable.border);

HorizontalScrollView hsv = new HorizontalScrollView(this);
hsv.setFillViewport(true);
hsv.addView(ll);

/*
-------------------------------------------------------------------------------------------------
*/

Now, In the code below, I put my scrollable layout into another
LinearLayout (I want to add other, non-scrollable Views later). This
does what I want it to: the first layout is too wide, and is therefore
scrollable.

/*
-------------------------------------------------------------------------------------------------
*/

LinearLayout panel = new LinearLayout(this);
panel.setLayoutParams(new LinearLayout.LayoutParams(
    LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

panel.setOrientation(LinearLayout.VERTICAL);

panel.addView(view);

setContentView(panel);

/*
-------------------------------------------------------------------------------------------------
*/

However, if I instead of the code above use the code below, it doesn't
work. In the code below I put my scrollable layout into a TableLayout.
I expect the same result as above since the first layout is still to
wide for the screen, but I get no scrollbar when using TableLayout.

/*
-------------------------------------------------------------------------------------------------
*/

TableLayout tl = new TableLayout(this);
tl.setStretchAllColumns(true);
tl.setLayoutParams(new TableLayout.LayoutParams(
    LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

TableRow tr = new TableRow(this);
tr.addView(view);
tl.addView(tr);

setContentView(panel);

/*
-------------------------------------------------------------------------------------------------
*/

What am I doing wrong? In my application I MUST use TableLayout, and
the cell content MUST be scrollable.

-- 

2. Running/Start time of android application/process?

I'm new to android,  my requirement is to display active process
running with process start time.
I'm able to get the list of running process name/ID's with the below
code, but couldn't able to find how long process is running.

Here is my code sample.


                List l = activityManager.getRunningAppProcesses();
                        Iterator i = l.iterator();
                PackageManager pm = this.getPackageManager();

while(i.hasNext()) {
                  ActivityManager.RunningAppProcessInfo info =
(ActivityManager.RunningAppProcessInfo)(i.next());
                  try {
                    CharSequence c =
pm.getApplicationLabel(pm.getApplicationInfo(info.processName,
PackageManager.GET_META_DATA));
                    Log.w("LABEL :::", c.toString());

                  }catch(Exception e) {
                    //Name Not FOund Exception
                  }


Can you suggest me is there any class I need to look into it?  It
would be great help if some one can help me with sample code. Thanks
in Advance.

Thanks & Regards
Vishnu.K

-- 

3. [Format Corrected] New Samsung Captivate Security Hole Found

4. Basic problem debugging first app?

5. Playing an audio file during a call

6. New Security Hole in the Samsung Captivate

7. Eror