Driver development in Android

by sudheerg » Tue, 08 Sep 2009 15:58:12 GMT


Sponsored Links
 Hi All,

I am newbie to android developement.
I previously worked on Wince driver development.

I want to start driver development for Android.

I have installed ubuntu, and got the git repository of Android, as per
the instructions given at the site  http://source.android.com/download ,
I am able to launch the emulator and also installed Eclipse.

However the notes published there indicate application development.
It will be easy for me to start, if someone can give some pointers to
start with the driver development for Android.


Thanks,
Sudheer

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

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



Driver development in Android

by sudhi » Thu, 17 Sep 2009 15:08:13 GMT


 Hi Sudheer,

You can download the goldfish (this is the emulator version) kernel
from the following link (click the snapshot tab to get the kernel
source into your desired path)
 http://android.git.kernel.org/?p=kernel/common.git ;a=tree;h=65bd5239eb2dba3024e5c3fd136a832b544c4783;hb=132305ed227e69bd7498c8a30d40a338a23a4afe

Make sure  to build the goldfish kernel separately.

Regards,

Sudhi




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

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


Sponsored Links


Other Threads

1. audio streaming from https site

Hi all
        i am developing multimedia player in android which will play
songs using live audio streaming from different sites. but i am unable
to stream songs which are on HTTPS site.
i am solving this issue from 3 days. i could not find any solution's
on net. has anyone some idea to solve this issue.  please help


thanks in advance i will be very grateful to him

-- 

2. android

Hi all,

I'm running 0.9 in Eclipse 3.3/ADT.
I have a very stripped down one-class app (converted from m5) which
ought to be
presenting a map (that works ok) and then drawing an overlay (it
doesn't).
In onCreate(), a simple overlay (TOverlay) is created and added to
_mapView.getOverlays().
Lastly, mapUpdateHandler.sendEmptyMessage() is called, which should
invalidate the mapView,
and hence cause the overlay to be drawn.


I've copied the code below, and then copied the manifest.
The code has a few System.out.println's to determine flow of control.
All these appear in the LogCat output except the one in the overlay:
"TOverlay.draw".
At the very end I've copied the LogCat output.  One can see the
printlns:


09-09 15:18:06.332: INFO/System.out(695): o2:1
09-09 15:18:06.352: INFO/System.out(695): mUH:msg=101
09-09 15:18:06.352: INFO/System.out(695): mUH:101
09-09 15:18:06.352: INFO/System.out(695): o3: 1


But not the desired "TOverlay.draw"


Any suggestions will be greatly appreciated.
Thanks in advance,
Ken


-------------- Java ----------
package com.herenow.android.quester;


import java.util.List;


public class Quester extends MapActivity
{
        private static final double INIT_CENTER_LAT = 42.3908245;
        private static final double INIT_CENTER_LONG = -71.130993;
        private MapView _mapView;


    @Override
    public void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        _mapView = new MapView(this, "dummyapikey");
        GeoPoint p = new GeoPoint((int) (INIT_CENTER_LAT * 1000000),
(int) (INIT_CENTER_LONG * 1000000));
        MapController mc = _mapView.getController();


        TOverlay tOver = new TOverlay(_mapView);
        List<Overlay> overlays = _mapView.getOverlays();
        overlays.add(tOver);


        mc.animateTo(p);
        mc.setZoom(15);
        setContentView(_mapView);


        mapUpdateHandler.sendEmptyMessage(101);
List<Overlay> o2 = _mapView.getOverlays();
System.out.println("o2:"+o2.size());
    }
    private Handler mapUpdateHandler
        = new Handler(){
                @Override
                public void handleMessage(Message msg) {
                        System.out.println("mUH:msg="+msg.what);
                    switch (msg.what) {
                          case 101:
                   //         _mapView.invalidate();
                            _mapView.postInvalidate();
                            System.out.println("mUH:101");
                                       break;
                             }
List <Overlay> o3 = _mapView.getOverlays();
System.out.println("o3: "+o3.size());
                     super.handleMessage(msg);
                }
            };


    public class TOverlay extends Overlay
    {
        private Paint plotPaint = new Paint();
        private MapView mapView;


        public TOverlay(MapView mapView){
                this.mapView = mapView;
                plotPaint.setColor(Color.BLUE);
        }


        public synchronized void draw(Canvas canvas, boolean b)
        {
            super.draw(canvas, mapView, b);
System.out.println("TOverlay.draw");


            int lat = (int)(INIT_CENTER_LAT*1E6);
                int lng = (int)(INIT_CENTER_LONG*1E6);
            GeoPoint geopoint = new GeoPoint(lat, lng);


            Point screenCoords = new Point();
            mapView.getProjection().toPixels(geopoint, screenCoords);
            canvas.drawCircle(screenCoords.x, screenCoords.y, 12,
plotPaint);
        }
    }


    public boolean isRouteDisplayed(){
        return false;
    }


}


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

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

3. Add Chrome-lite plugin.

4. How to receive gps enabled/disabled?

5. Immediate need for SQL Server Developer @GA

6. Create a SIP application

7. How to create array object of SharedPreference to store various data