How to configure android emulator disk space?

by chunkai.hw...@gmail.com » Tue, 09 Dec 2008 00:34:19 GMT


Sponsored Links
 Hi,

I want to compile a native c++ program with gnueabi-g++ running on
android emplator,
but it was failed to copy the runtime c++ library to android emulator
due to not enough disk space of emulator.How to set the emulator disk
space,or I have to compile a android image with the source?
Thanks for any help.

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



How to configure android emulator disk space?

by David Turner » Tue, 09 Dec 2008 01:47:48 GMT


 disk space is not configurable at the moment. the partition sizes reflect
the ones on the G1.
we may add a feature to allow arbitrary partition sizes in the future, but
for now, you will have
to hack the emulator sources to do that (search for 0x4200000 in
android_main.c).

as for anything built with gnueabi, chances are that it will not work at
all,
*unless* you build a totally static executable (i.e. one that doesn't even
link dynamically
to the Android C library), given that it is not compatible with the Android
ABI.

On Mon, Dec 8, 2008 at 7:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]




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


Sponsored Links


Other Threads

1. Simple Maps app crashes...

I'm just starting to play around with Android, and I'm stumped when
working with Google Maps.

The error I'm getting is this: "The application MapsTest (process
maps.google.maps.test) has stopped unexpectedly.  Please try again."

So far, my application is pretty bare-bones, which makes me think that
I'm missing something small, which I really need to resolve before
continuing.

Thanks for any suggestions.  Code listed below.

MapsTest.java:

import android.os.Bundle;
import android.widget.Button;

import com.google.android.maps.MapActivity;

public class MapsTest extends MapActivity
{
        Button refresh;
        @Override
        public void onCreate(Bundle savedInstanceState)
        {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
        }
        @Override
        protected boolean isRouteDisplayed() {
                // TODO Auto-generated method stub
                return false;
        }
}

main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android" style="@style/body">
        <Button android:id="@+id/refresh" style="@style/refresh" />
        <com.google.android.maps.MapView style="@style/maps"
android:apiKey="bogus" />
</LinearLayout>

style.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
        <style name="body">
                <item name="android:orientation">vertical</item>
                <item name="android:layout_width">fill_parent</item>
                <item name="android:layout_height">fill_parent</item>
        </style>
        <style name="maps">
                <item name="android:layout_width">fill_parent</item>
                <item name="android:layout_height">fill_parent</item>
                <item name="android:enabled">true</item>
                <item name="android:clickable">true</item>
        </style>
        <style name="refresh">
                <item name="android:layout_width">fill_parent</item>
                <item name="android:layout_height">wrap_content</item>
                <item name="android:text">@string/refresh</item>
        </style>
</resources>

AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="maps.google.maps.test"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".MapsTest"
                  android:label="@string/app_name">
                  <uses-library
android:name="com.google.android.maps" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-permission xmlns:android="http://schemas.android.com/apk/res/
android" android:name="android.permission.INTERNET"></uses-permission>
    <uses-permission xmlns:android="http://schemas.android.com/apk/res/
android" android:name="android.permission.ACCESS_COARSE_LOCATION"></
uses-permission>
</manifest>

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

2. write a sample app to stream music

Hi,
I want to develop a sample app to preview some music,mp3
files,ringtones etc.
How can i stream those in android phone?

Thanks,
Anirudh

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

3. Master degree work

4. grid instead of mapview on emulator

5. Can anyone tell me if the Android platform supports Ifrared port ?

6. I need to develop a calendar application using Android.

7. Testers Needed - Community App Store