I have a code like this running on Android 2.3.3 (Nexus One)
for(i=0; i<1000; i++){
for(j=0;j<1000;j++){
do AND calculation
do XOR calculation
}
}
Is this too much calculation for android? I went through the debugger and the debugger lost its control after 3 iteration of the first for loop (3000 iteration total)
I am running this on a new thread like this and call this function on main ui thread..
public void startCalculation(ArrayList<data> featA, ArrayList<data> featB){
newThread= new Thread(new Runnable(){
public void run(){
theFunction();
}
});
newThread.start();
}
Thanks in advance...