Setting contact custom ringtone, how?

I found out how it works. Below you can see the fixed code code: Uri contactData = ContactsContract.Contacts.CONTENT_URI; String contactId = contactData.getLastPathSegment(); Cursor localCursor = managedQuery(contactData, PROJECTION, null, null, null); localCursor.move(120/*CONTACT ID NUMBER*/); String str1 = localCursor.getString(localCursor.getColumnIndexOrThrow(“_id”)); String str2 = localCursor.getString(localCursor.getColumnIndexOrThrow(“display_name”)); Uri localUri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, str1); ContentValues localContentValues = new ContentValues(); localContentValues.put(ContactsContract.Data.RAW_CONTACT_ID, contactId); localContentValues.put(ContactsContract.Data.CUSTOM_RINGTONE, f.getAbsolutePath()+”/Adventure.ogg”); … Read more

Can FFmpeg be used as a library, instead of a standalone program?

You need libavcodec and libavformat. The FAQ tells you: 4.1 Are there examples illustrating how to use the FFmpeg libraries, particularly libavcodec and libavformat? Yes. Read the Developers Guide of the FFmpeg documentation. Alternatively, examine the source code for one of the many open source projects that already incorporate FFmpeg at (projects.html). The FFmpeg documentation … Read more