jxpx91 / mixare

Automatically exported from code.google.com/p/mixare
0 stars 0 forks source link

Return the id of the selected object to the calling application instead of showing a website #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When mixare is started with startActivityForResult it should return the id
of the selected object.
Then it is up to the application developer how the selection should be
handled. 
It would provide more freedom for the application developers.

For example:

context.startActivityForResult(intent, 42);

public void onActivityResult(int requestCode, int resultCode, Intent intent) {
    if (requestCode == 42) {
        if (resultCode == RESULT_OK) {
            String id = intent.getStringExtra("SELECTED_OBJECT_ID");
            // Do something with selected object
        } 
    }
}

Original issue reported on code.google.com by thoughtc...@googlemail.com on 10 Apr 2010 at 8:10