You have to use your activity context and use that context for create new activity.
Make one constructor for initialize context.
public AdapterCustom(Context context) {
this.context = context;
}
More Related Contents:
- how can i send the string value into the intent.putextra? [duplicate]
- Nothing is populated from ArrayList to ListView
- Android pass Fragment parameter instead of List into ListView [closed]
- ListView Item clicked Count (Android Java)
- android pass ArrayList to activity
- Why my program crash when i press back Button
- Sending Email in Android using JavaMail API without using the default/built-in app
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- Firebase Android ListView not being displayed
- Showing Firebase data in ListView
- How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
- ListView is blank while using getFilter function
- What is sharedUserId in Android, and how is it used?
- Duplicated entries in ListView
- How to select and crop an image in android?
- Change ListView background – strange behaviour
- Dynamic ListView in Android app
- Android: How to disable list items on list creation
- How to resume Android Activity programmatically from background
- Android – How to create clickable listview?
- How to create Button Dynamically in android?
- Android Studio mailto Intent doesn’t show subject and mail body
- Trivial: Get confirmation of email sent in android
- Intent.putExtras size limit?
- Android “single top” launch mode and onNewIntent method
- How to set layout dynamically in android
- Values of counter changes after scrolling ExpendableListView
- Can Activity.getIntent() ever return null?
- Android – Access file from assets \ PDF display
- Passing ArrayList of string arrays from one activity to another in android