I'm just wondering what are the ways to pass two or more double values from class A to ClassB
the moment I found the code that this method gives me:
double a, b; double a = 2.456; double b = 764.2353; Intent i = new Intent(); i.setClassName("com.b00348312.application","com.b00348312.application.ClassB"); double number = getIntent().getDoubleExtra("value1", a); double number = getIntent().getDoubleExtra("value2", b); startActivity(i);
It does not miss values and cannot find a way to get these values
Another question here suggested a method to create an instance of a class, but it seems that it could not pass the values correctly.
I am programming for Android, so I don’t know if the method will be different.
android double android-intent
Darren murtagh
source share