I have an app in the market (SIM Locked Notifier) that relies on a broadcast receiver that reacts upon receiving a broadcast intent for *android.intent.action.SIM_STATE_CHANGED*.. I developed the app for the latest version, 4.0.3 (i.e. SDK level 15) and now I'd like to extend its compatibility to lower levels (providing runtime checks for unavailable things, like action bar or preference fragments)... The problem is that I'd like to understand if the *SIM_STATE_CHANGED* event is generated also on older platforms.. This intent is undocumented, it is not even found within the *platforms/android-15/data/broadcast_actions.txt* within the SDK.. Should I dig into the sources to understand where it is implemented and down to which SDK level? Is this a vendor-specific event? I have an HTC One X on which it works.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I am not sure about your first question.But i can help you out in answering Second question.
Reflection will help you out in this case. Using reflection you can query class for available methods,constructors etc.
Suppose you want to use PopupMenu in your application.And it may be the case that you application still want to run on pre 4.0 devices.So use reflection
Following code snippet and bit of Google search will help you out.