On Sun, Aug 1, 2010 at 7:51 PM, { Devdroid } <webnet.andr...@gmail.com> wrote:
>> Your application may break on some devices that have replaced the Calendar.
>
> No it won't. It just won't launch Calendar which is not a big deal and
> far from "breaking"
> as we do not rely on calendar at all.

There are certainly scenarios in which starting an undocumented
activity from an undocumented Intent will cause crashes. For example,
the activity may be expecting Intent extras that you fail to supply,
because their version of the activity assumes that third-party
developers are playing by the rules and they simply didn't bother to
test the scenario where somebody opens their version of the activity
without those extras.

Hence, just because you're using PackageManager or something to detect
what's there is no guarantee that you can safely start such
activities.

Remember: if it's not in the SDK, the OEMs have broad latitude to change it.

>> Your application may break in future versions of Android.
>
> No it won't. It just won't launch Calendar untill we release the
> update to address that.
> No big deal again :)

See above.

>> Hence, my "hint" is: don't integrate with the calendar application,
>> until such point in time as they provide documented, supported, stable
>> Intents for doing so.
>
> Sorry, but it's quite pointless advice. It's just one intent, not deep
> dirty hack.

What you're doing is no different than calling an undocumented
function on an undocumented .so/DLL/.NET assembly. Yes, it
demonstrates your mad hax0r sk1llz. It is not a recipe for a reliable
app, to the detriment of some of your users and to Android as a whole.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to