if (Build.VERSION.SDK_INT=Build.VERSION_CODES.JELLYBEAN) {
// use bindAppWidgetIdIfAllowed()
}
else {
// use bindAppWidgetId()
}
On Sat, Feb 9, 2013 at 6:37 AM, Saqlain Abbas saqlain.abba...@gmail.com wrote:
Hi,
I got an Android application which was using bindAppWidgetId it has been
working but on jellybean the same source code does not compile as the API is
not available and i get error The method bindAppWidgetId(int,
ComponentName) is undefined for the type AppWidgetManager, i need a
solution which is backword compatible i.e. work with jellybean and earlier
version of Android, i don't want to go for reflection is there any other way
to achieve this?
--
Kind Regards,
Saqlain Abbas.
--
--
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
---
You received this message because you are subscribed to the Google Groups
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to Android Development_ Version 4.5 Available!
--
--
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
---
You received this message because you are subscribed to the Google Groups
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.