Really n00bish question...
So I figure this has to be possible but I don't know how to do it.
If it makes any difference, I'm coding Java for Android.
First post here so go easy :)
==
I was assigned to write a program to solve a real world problem in one of my classes. It's due next Monday (one week). The only hangup I have left to solve is possibly the easiest.
I have one package, com.xxx.android.yyy, and in that package I have private class 1. In that private class, I have a public void, and in that there are a few "if" statements:
Code:
public void onLocationChanged(Location location) {
if(location!=null){
if(location.hasSpeed()){
mySpeed = location.getSpeed();
if(mySpeed>maxSpeed)
maxSpeed = mySpeed;
tv.setText("\nCurrent speed: " + mySpeed*2.2369 + " mph, Max speed: " + maxSpeed*2.2369 + " mph");
if(mySpeed>=limitSpeed){
//***Need to call public class from pkg com.xxx.android.zzz***
}
Within that if statement [if(mySpeed>=limitSpeed)], I need to call a public class from package com.xxx.android.zzz
How do I do that?
EDIT: I think this might be in the wrong forum. I'm sorry if it is. In the event that I'm right, feel free to move it to the appropriate place :)