GK: How to generate "android.jar" using open source platform.

by NoraBora » Wed, 02 Dec 2009 10:04:28 GMT


Sponsored Links
 After you build the whole source,
you can find mydroid/out/target/common/obj/JAVA_LIBRARIES/
android_stubs_current_intermediates/javalib.jar
it is same as android.jar. just rename and use it.

or just 'make sdk'.




--



Other Threads

1. Mapview with tabview, I dont understand why it wont work.

Hiya,

 Ive been trying to get mapview to work within tabview, it displays
the default map in its tab but zooming in doesnt work. Ive enabled the
zoom controls, all they do is zoom in on the first map image that
appears and this becomes pixelated and useless. I obviously want it to
update the map image with the more detailed map images but it wont.
The map code looks like this:

public class mapTab extends MapActivity {

        MapView mapView;
    MapController mc;
    GeoPoint p;
    Drawable drawable;


 @Override
 protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.maptab);
    mapView = (MapView) findViewById(R.id.mapView);
    mapView.setBuiltInZoomControls(true);
    mc = mapView.getController();
    String coordinates[] = {"52.440058", "-9.115623"};
    double lat = Double.parseDouble(coordinates[0]);
    double lng = Double.parseDouble(coordinates[1]);

    p = new GeoPoint((int) (lat * 1E6),(int) (lng * 1E6));

    mc.animateTo(p);
  //  mc.setZoom(17);
    mapView.invalidate();

 }


 @Override
 protected boolean isRouteDisplayed() {
   return false;
 }
}

It should work fine right?

--

2. How to rotate a bitmap?

I have a clock in the center of an 800x480 bitmap, and I have a 60x140
clock hand/dial needle with center of rot at 30,110 in the bitmap. To
place the center of rotation in the center of the bitmap, do I plave
the needle bitmap using the top left coord offset 30,100 from the
center, which is 240,400? Thanks so far. Im stumped.

--

3. setting up dev environment on Macintosh

4. OpenGL ES 2.0 support on Android emulator

5. Hard-coded IP address?

6. filter a listview with an arrayadapter not of String type

7. notepadv3 crashes on Motorola Droid