Stepping thru android base code

by pro » Thu, 10 Sep 2009 02:35:37 GMT


Sponsored Links
 Hi All,

I've the 1.5 sdk pkg, as well as I've the android src ( including the
kernel). I can build the android src, but I'm trying to step thru some
of the internal code ( i.e android.os.*   or some such ). Under
eclipse debugger, it says code not found, and sometime asking for
giving path to source ...

I know that the eclipse is working with android1.5 so it is trying to
look at the sdk location, and that does not seem to have all the
android framework related code!!!.

Question is if I give the path to the android src ( that I've and
bult), would the debugger pick it from there, if so then is there a
root folder I can point to and the debugger would recursively search
and bring the code for stepping thru. Or do I need to build a package
and then point to that package when I build the app...

thanks
-pro
--~--~---------~--~----~------------~-------~--~----~



Stepping thru android base code

by pro » Thu, 10 Sep 2009 06:44:44 GMT


 Actually there are nice documents/discussion on the web about how to
get the sources from the android src, and packaged it to sdk folder
for reference ...

problem solved :)

-pro



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


Sponsored Links


Other Threads

1. onClick in ListView erratic ?

I've got an ArrayAdaptor to add onClick listeners to items.

The logging in here says it adds them to every item.
Some items that I press seem OK, with others the click is not logged,
and the click goes through to the list (I can see the highlight, but
it doesn't register my button presses).

Any idea what I'm going wrong ?


Heres how I setup my listeners (for buttons with id thumb, play, save
and delete):

        public View getView(int position, View  convertView, ViewGroup
parent) {
                int[] buttons = new int[] { R.id.thumb, R.id.play, R.id.save,
R.id.delete};
                if (convertView != null) for(int buttonId: buttons) {
                        View button = convertView.findViewById(buttonId);
                        if (button != null) {
                                button.setClickable(true);
                                button.setFocusable(true);
                                button.setOnClickListener(this);


                                Log.i("Add Listener", "" + (Video) 
getItem(position));
                                button.setTag(getItem(position)); // Add Video 
as tag
                        }
                }
                return super.getView(position, convertView, parent);
        }

        @Override
        public boolean  areAllItemsEnabled() {
            return true;
        }

        @Override
        public boolean isEnabled(int position) {
                return true;
        }

-- 

2. Creating Multiple User Preference

Hi,

Not sure if i phrase it the correct way. What I meant is, eg. For a
game application, user able to save multiple game files, or create
multiple 'user account'. So at the start of the application, user can
choose which account/saved file to load. Cause right now, I'm just
able to save a single preference to the phone using the
SharedPreferences class.

Thanks.

-- 

3. Android Development Tools - Support for Additional JDKs

4. Creating sample sound playing app

5. Emulator capabilities

6. Error Building Android NDK sample "bitmap-plasma"

7. ChangeMDN and MSID