Passing Integer Between Activities and Intents in Android Is Always Resulting in Zero / Null
- 阅读更多 关于 Passing Integer Between Activities and Intents in Android Is Always Resulting in Zero / Null
问题 I'm attempting to pass two integers from my Main Page activity (a latitude and longitude) to a second activity that contains an instance of Google Maps that will place a marker at the lat and long provided. My conundrum is that when I retrieve the bundle in the Map_Page activity the integers I passed are always 0, which is the default when they are Null. Does anyone see anything glaringly wrong? I have the following stored in a button click OnClick method. Bundle dataBundle = new Bundle();