starting with

by Jags » Wed, 22 Jul 2009 01:22:40 GMT


Sponsored Links
 A few days back i joined 2 of the forums, but i was unable to send new
posts to the forums, and then i un subscribed. I dont know why.


Anyway, I am using a mac. around 1 month back I downloaded and built
the source code of full android as described in their sites and was
able to run emulator.

Now, I think i am not ready to work on the source code, but i want to
configure my eclipse for androidapplication developemnt. I dont want
to download pre built sdk from site and configure it. I want to use
this code base. So, where is the sdk in the code base ?

secondly, how to do an update and run build, as the code base
changes ?

regards
Jagat

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



starting with

by Roman » Wed, 22 Jul 2009 05:27:49 GMT


 Hi Jagat,

When you send a post for the first time to an Android group then it
takes a while till your post is visible. All the following posts
should be visible right away.






[Roman] Of course within this month there might be a lot of new fixes.
If you have the chance I would download again a new version of the
Android source. If you now want to use your own sdk based on your
Android source, do a make sdk.
This should build your sdk which is similar to the pre-build sdk.




[Roman] When you have your Android source on your local folder you
always can do a "git pull". Of course be careful that you are not
overwriting your own changes.


Here is a link which gives you an idea how to develop on the Android
source specifically if you work on kernel changes.

 http://android.v-dh.nl/?m=Docs& ;id=3

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




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


Sponsored Links


Other Threads

1. RT with android???

I'm  in a project which involves a real-time control of some
processes. At this time we have been proving the alarms included in
the Android but, at least with the emulator, it doesn't behave with
stricted time slots when the alarm is configured below tens of
milisecond. Second at all, the methods included with the Android give
the time control with a resolution of miliseconds, but we need to
control the processes with at least a resolution of microseconds.
Does anyone have any idea about how to improve this situation?
Thanks a lot
--~--~---------~--~----~------------~-------~--~----~

2. onCreate Bundle always null

Can someone show a noob why my Bundle is always null?  The source of
my activity class is below, and I consistently get the following
debugging output:

DEBUG/Compass(18473): onCreate. bundle=null
DEBUG/Compass(18473): onResume
DEBUG/Compass(18473):   onSaveInstanceState, save bearing -1.0
DEBUG/Compass(18473): onResume
DEBUG/Compass(18473):   onSaveInstanceState, save bearing 191.37694
DEBUG/Compass(18473): onStop
DEBUG/Compass(18520): onCreate. bundle=null
DEBUG/Compass(18520): onResume
DEBUG/Compass(18520):   onSaveInstanceState, save bearing -1.0

This is AFTER leaving the app, doing lots of activity to make sure it
gets cleared from the stack, and returning.  Once I see that "save
bearing" line with something > -1, I expect to see a bundle in the
next onCreate.

Am I doing something goofy in my onSaveInstanceState?

Thanks for any help!

source:
============>

public class SimpleCompass extends Activity {

    private static final String TAG = "Compass";

    private DirectionNotifier directionNotifier;
    private SensorManager sensorManager;
    private CompassViewGroup viewGroup;

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);

        // TODO: WHY is bundle always null!?
        if (Config.LOGD) Log.d(TAG, "onCreate. bundle=" + bundle );

        // if( bundle != null && Config.LOGD ) { Log.d(TAG, "
containsKey=" + bundle.containsKey( BearingData.BEARING_KEY ) ); }
        if( bundle != null && bundle.containsKey
( BearingData.BEARING_KEY ) ){
                if (Config.LOGD) Log.d(TAG, "  bundle != null, bearing=" +
bundle.getFloat("bearing") );
                BearingData.setBearing( bundle.getFloat
( BearingData.BEARING_KEY ));
        }

        viewGroup = new CompassViewGroup(this);
        setContentView(viewGroup);
        directionNotifier = new DirectionNotifier( this );
        sensorManager = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);
        directionNotifier.setViewGroup(viewGroup);
    }


    @Override
    protected void onResume()
    {
        if (Config.LOGD) Log.d(TAG, "onResume");
        super.onResume();
        sensorManager.registerListener(directionNotifier,
                        SensorManager.SENSOR_ORIENTATION,
                        SensorManager.SENSOR_DELAY_GAME);
    }

    @Override
    protected void onSaveInstanceState( Bundle bundle ){
        if (Config.LOGD) Log.d(TAG, "  onSaveInstanceState, save bearing
" + BearingData.getBearing() );
        if( bundle != null ){
                bundle.putFloat( BearingData.BEARING_KEY, BearingData.getBearing
() );
        } else {
                if (Config.LOGD) Log.d(TAG, "  onSaveInstanceState, bundle is
null!" );
        }
        super.onSaveInstanceState( bundle );
    }

    @Override
    protected void onStop()
    {
        if (Config.LOGD) Log.d(TAG, "onStop");
        sensorManager.unregisterListener(directionNotifier);

        directionNotifier = null;
        viewGroup = null;

        super.onStop();
        // finish();
    }

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

3. working WebView example?

4. How to use a standard JVM .jar ?

5. Listener problems...please HELP!

6. Phoload app store launches free Android software downloads

7. Not able to reach link https://dl-ssl.google.com/android/eclipse/