Re-use already existing code on the android platform

by 3,14 » Wed, 25 Jun 2008 19:17:30 GMT


Sponsored Links
 I have some questions regarding re-using existing code on the android
platform.

1) Are there any way to re-use existing C/C++ code on android
platform?
2) Where I can find limitations to the java apps for android platform?
(available libs etc)

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



Re-use already existing code on the android platform

by Fr盲ntz Miccoli » Thu, 26 Jun 2008 08:27:05 GMT


 Maybe you should try google .... Have juste a little look on the android
website and you'll have all your answers.






-- 
Frntz Miccoli
06.70.92.76.16
[EMAIL PROTECTED]

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


Sponsored Links


Other Threads

1. Porting Web Browser on Android

Hi All,


 I am new to android. I want to port any open source web browser to
android. Is it possible to port firefox on android, and integrate
gecko rendering engine on to android. Can anyone please suggest me
which open source browser can I port. Please help me.


Thanks,
chitra

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

2. SMS inbox and Simple cursor adapter.

Hi to all,

Im trying to read the sms inbox with getContentResolver() , and the
create a list of all messages with SimpleCursorAdapter. I can read
fine all the fields with the cursor methods, but when I try create a
list of sms bodies with SimpleCursorAdapter, the list appears(with the
correct number of rows), but its void.

Any help would be apreciated.
Thanks in advance.



.java file:
------------------------------------------------------------------------
Public class smsInbox extends ListActivity {

        private ListAdapter mAdapter;

        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        String SORT_ORDER = "date DESC";
        String SMS_READ_COLUMN = "read";
        int count = 0;

        Cursor cursor = getContentResolver().query(Uri.parse
("content://sms/inbox"),
                        new String[] { "_id", "thread_id", "address", "person",
"date", "body" },
                null,null,SORT_ORDER);

        startManagingCursor(cursor);

        String[] columns = new String[]{"body"};
        int[] names = new int[] {R.id.row_entry};

        mAdapter = new SimpleCursorAdapter(this, R.layout.main,
cursor, columns, names);
        setListAdapter(mAdapter);

    }
 }
------------------------------------------------------


main.xml
-------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView id="@+id/row_entry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
-----------------------------------------------------------

Miguel.

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

3. Process Lifecycle

4. How to get widget object from appwidge

5. How to Drag-n-Drop an image from a source to target ImageButton object

6. Can my app prevent the phone from rebooting?

7. Hiding and showing titlebar at runtime?