Replace this,
String value = getIntent().getExtras().getString("bucketno");
with
int value = getIntent().getExtras().getInt("bucketno");
You are trying to pass int value but retrieving String Data. That’s why you are getting the nullpointerException.
More Related Contents:
- Using LocalBroadcastManager to communicate from Fragment to Activity
- Android add placeholder text to EditText
- “To Do” list before publishing Android app to market [closed]
- Difference between Android Instrumentation test and Unit test in Android Studio?
- How accurate is Android GPS? [closed]
- How to distinguish between orientation change and leaving application android
- How to share text to WhatsApp from my app?
- Cross compiling static C hello world for Android using arm-linux-gnueabi-gcc
- How to use notifyDataSetChanged() in thread
- How to change the star images of the RatingBar?
- Menu like SKOUT and Sliding from One View to Another by touch in Android
- How to find the UUID of serial port Bluetooth device?
- Android Emulator: This app won’t run without Google Play services
- Copy text from TextView on Android
- Change Navigation View Item Color Dynamically Android
- How to correctly set MediaPlayer audio stream type
- Android: Set Edit text or text view id Programmatically
- Threading textures load process for android opengl game
- Android – change device system locale programmatically
- Android: Creating shaped button
- ANDROID_HOME is not set and “android” command not in your PATH Phonegap
- Java.lang.ClassNotFoundException after Android studio update
- APKLIB does not get installed in Maven Repo
- Android:How to upload .mp3 file to http server?
- Android EditText listener for cursor position change
- How do you get/set media volume (not ringtone volume) in Android?
- Is there a way to get current process name in Android
- How can I switch between two fragments, without recreating the fragments each time?
- How to use the LIMIT argument in an SQLite Query with Android
- How to detect if android app is force stopped or uninstalled? [closed]