Some questions about modding stuff in the source code

by TAKEphONE » Sun, 15 Mar 2009 19:25:14 GMT

Sponsored Links
 Hi all,

I am not sure if this goes into the 'platform' or 'developers' forum,
so I am posting in both.
Forgive me for this, please...

I am about to take on a project requiring adding some stuff into the
OS itself (adding support for additional hardware features on a new
Android based device). I need to add/change some stuff in the OS

1. Adding pages to the SYSTEM preferences - to allow users to change
configuration of the hardware I am adding.

2. Adding packages of software and libraries to the OS code - to add
the modules needed to handle the additional hardware.

3. Changing some of the built-in modules/packages to allow the device
to recognize and use the hardware I am adding.

My questions - can all the 3 be done ?
What do I need ?
Do I need special certification ?
Do I need specific tools ?
Is there any documentation/samples to how I do this ?

I am really excited about this project - it will certainly add a
significant device to the Android arena.

Thanks in advance.

Some questions about modding stuff in the source code

by Mark Murphy » Sun, 15 Mar 2009 20:07:33 GMT


As far as I know, yes. However, [android-porting] or [android-platform] 
are probably better Google Groups to use for these questions. 

Instructions there will give you the tools to download and build the 
source code, which is your starting point. From there, ask concrete 
specific questions on [android-porting] or [android-platform].

Not generally.


See  -- you might also check out XDA Developers 
or other sites that have spent time getting Android to run on 
non-standard hardware.

Mark Murphy (a Commons Guy) 

Android App Developer Training: 


Sponsored Links

Other Threads

1. How to share datas between tabs in a TabActivity


I created a TabActivity with contains 3 tabs. Each tab's content sets
different Intents. All these Intents extended ListActivity.

Is it possible to retrieve informations from these three activities in
the main TabActivity?

Here are some of my codes :

public class Temp extends TabActivity{

            protected void onCreate(Bundle savedInstanceState) {
                final TabHost tabHost =  getTabHost();

                // First tab
                TabHost.TabSpec userTab = tabHost.newTabSpec();
                secTab.setContent(new Intent(this,Activity2.class));

                // Second tab
                TabHost.TabSpec secTab = tabHost.newTabSpec();
                secTab.setContent(new Intent(this,Activity2.class));

                // Third tab
                TabHost.TabSpec thirdTab = tabHost.newTabSpec();
                thirdTab.setContent(new Intent(this,Activity3.class));


Precisely, I would like to get datas from "Activity1", "Activity2" and

Best regards


2. Where do we have to close the DB in a ContentProvider?

Maybe it an easy question, but Ie tried to understand why all the
content providers seem not to close the DB that they use. In the
NotePadProvider example (in other providers is similar), it used a
Helper to manage the DB (that extends of SQLiteOpenHelper). This
helper has a method to close the DB (
but in all the providers that I have seen (even in the example), this
method is never used.

For example, in the query method of the NotPadProvider we use the
helper to open a DB

// Get the database and run the query         SQLiteDatabase db =
mOpenHelper.getReadableDatabase();         Cursor c = qb.query(db,
projection, selection, selectionArgs, null, null,
orderBy);          // Tell the cursor what uri to watch, so it knows
when its source data changes         c.setNotificationUri(getContext
().getContentResolver(), uri);         return c;

the mOpenHelper is create in the nCreate()method, but there is no
reference to a mOpenHelper.close() in all the provider (maybe because
there is no lose()method in ContentProvider).

Do we need to close the SQLiteOpenHelper object? When we use it inside
a ContentProvider, where is the right place to close it?

Thanks in advance.


3. How to get JUnitReports via android.test.InstrumentationTestRunner

4. if current android supports 3GPP Rel-8 SMS extended character table?

5. Can i use RotateAnimation to make a Drawable rotate?

6. unable to add a new layout.xml

7. circular zoom in magic