Checking Names from Database
===

It's me again, David. I'm just wondering if my code is in correction. I'm trying to figure out if the database (**Database_Handler.java**) can check on an *EditText* named **label_input**. If it's existed already on the database, the registration is canceled. but, my problem is that, even if have no bugs, the condition ignores and automatically jumps to the *else* statement. hope you can help me out and thanks in advance.

Here's my code (Don't mind the comment lines.):

    //Database Handler from Class (Database_Handler.java)
					Database_Handler db = new Database_Handler(getApplicationContext());
					
					//Inserting new label into the database.
					
					
					if(db.getAllLabels().toArray().toString().equals(label))
					{
						Toast.makeText(getApplicationContext(), "Name existed.", Toast.LENGTH_SHORT).show();
					}
					else
					{
						Toast.makeText(getApplicationContext(), "Name available!", Toast.LENGTH_SHORT).show();
						db.insertLabel(label);
					}
					
					//Message Confirmation
					//Toast.makeText(getApplicationContext(), "Player name " + label + " have been confirmed!", Toast.LENGTH_SHORT).show();
					
					//After typing, the text field is set to blank.
					//label_input.setText("");
					
					//Normally, most smartphones and tablets only have a virtual keyboard.
					InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
					imm.hideSoftInputFromWindow(label_input.getWindowToken(), 0);
					
					//loadSpinnerData();