You probably initialized the adapter with a plain Java array (e.g., String[]
). Try using something that implements the java.util.List
interface (e.g., ArrayList<String>
).
More Related Contents:
- Android How to adjust layout in Full Screen Mode when softkeyboard is visible
- How to dynamically update a ListView on Android [closed]
- Handling click events on a drawable within an EditText
- ListView with clickable/editable widget
- Pop up window over Android native incoming call screen like true caller Android app
- Android emulator: could not get wglGetExtensionsStringARB error
- EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event
- Android ADB device offline, can’t issue commands
- Android Custom Shape Button
- Heterogeneous GridLayout
- Custom Fonts in Android
- ADT requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found
- Multiple Instances Of Widget Only Updating Last widget
- How to make an Android SlidingDrawer slide out from the left?
- How to show one layout on top of the other programmatically in my case?
- Incorrect Coordinates From getLocationOnScreen/getLocationInWindow
- How to save the image to SD card on button Click android [closed]
- Android – Making Sliding Drawer to slide from Left-to-Right
- Launching activity from widget
- How do I pause Flash content in an Android WebView when my activity isn’t visible?
- How to stop scrolling in a Gallery Widget?
- Dynamically creating Buttons and setting onClickListener
- How can I make my layout scroll both horizontally and vertically?
- SchemaFactory doesn’t support W3C XML Schema in platform level 8?
- How to add views dynamically to a RelativeLayout already declared in the xml layout?
- Change word color in resource string
- Creating an android smart app banner
- Placing ViewPager as a row in ListView
- Android SDK tools revision 12 has problem with Proguard => error conversion to Dalvik format failed with error 1 [duplicate]
- Android WebView Scrollable