cymera API
Use our API whenever you need to use Cymera to take and edit photos fast and easy Now you can connect and use Cymera's features from external apps on each OS.
Use the Intents and Intent Filters included on Android to call out Cymera and use its shooting function on external apps.
You can select either Cymera custom type or Broadcast type to proceed
<Action>
com.cyworld.camera.action.IMAGE_EDIT
<Input Parameters>
Parameter name | Type | Mandatory | Description | Example |
picture_path | String | X | File path of the image | /mnt/sdcard/Cymera/CYMERA_20130423_094359.jpg |
<Output Parameters>
Parameter name | Type | Description |
picture_path | String | File path of the image |
<Sample Code>
(1) Creating intent |
Intent intent = new Intent(); intent.addFlags( Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ); ComponentName compName = new ComponentName( "com.cyworld.camera", "com.cyworld.cymera.CameraMain" ); intent.setComponent(compName); intent.setAction( "com.cyworld.camera.action.IMAGE_EDIT" ); intent.putExtra( "picture_path" , "/mnt/sdcard/DCIM/2013-01-17.jpg" ); startActivityForResult(intent, REQ_CODE); |
(2) Getting result of creating intent |
//Activity's onActivityResult() method protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { switch (requestCode) { case REQ_CODE: if (data != null) { String edited_path = data.getStringExtra( “picture_path” ); } break; } } } |
Questions about the API? : help@cymera.com