Open GoogleCodeExporter opened 9 years ago
Hi,
Is there any way to make it work for api 8. I am new to android apps.
Please let me know.
thanks,
Original comment by akhil.pa...@gmail.com
on 25 Apr 2012 at 4:55
@akhil.pandya
It won't work with API 8 if you use this codes without provider editing.
<android.provider.VoicemailContract> is included from API 14 which is required
to use /data/data/com.android.providers.contacts/databases/contact2.db.
However, if you edit provider codes not to use contacts2.db and use your own
db, it will possibly work within API 8 (I guess)
Original comment by ws.ben....@gmail.com
on 25 Apr 2012 at 11:40
FYI.
To test VVM client without support of operators, you can use Gmail account for
IMAP operations.
And if you have mobile network that you can install Now SMS, you can also test
STATUS and SYNC SMS.
Original comment by ws.ben....@gmail.com
on 26 Apr 2012 at 12:08
[deleted comment]
So i understand we can not use it on API8, needs API14 at least. But what do i
modify to make it work on API8? please explain in detail.
Original comment by akhil.pa...@gmail.com
on 26 Apr 2012 at 7:57
First of all, my answer is not 100 percent sure, because I didn't make this
project from the scratch.
Anyway, as it is explained on following link which is from Android site, VVM
(visual voicemail) feature have been supported just from Android 4.0 (API 14).
http://developer.android.com/sdk/android-4.0-highlights.html
To support 3rd party VVM related application, Android 4.0 platform only
provides VoicemailContract class from their framework. This support from the
platform makes that Call Log application can show voicemail messages from 3rd
party applications.
And Android Froyo (API 8) does not include VoicemailContract class in its
framework, so you would not possible to build a package from
<http://code.google.com/p/voicemail-example-for-android>.
However, there are two options to make the build possible on Android Froyo.
One is copying two class files to your Eclipse project, and it will be built
APK without problem. Needed classes are
<android.provider.VoicemailContract.java> and
<android.annotation.SdkConstant.java> from Android 4.0 platform codes. But I am
not sure that this would run normally on the devices, because there could be
some permission or security issues or other run-time dependency issues from the
Froyo devices.
The another way is to make your own Provider, and not to use database file on
Android Contacts Provider.
If you have tried to build the <voicemail-example-for-android> code with Froyo
in Eclipse, you will easily see the point of errors.
The build errors are all related with Database Provider, and so if you
implement your voicemail application to manage its own database provider then I
suppose it will work.
Hope this could help you to find the way.
Original comment by ws.ben....@gmail.com
on 27 Apr 2012 at 2:12
Original issue reported on code.google.com by
ws.ben....@gmail.com
on 4 Apr 2012 at 2:05