Wednesday, 4 January 2012

How to avoid ListView with Black blackground on mouse drag

to avoid ListView with Black blackground on mouse drag

use this in xml file android:cacheColorHint="#00000000"

Mohammad Abu Hmead

Monday, 19 December 2011

Why Android Layout file opened as XML?


When I'm trying to open Android Layout File(Double Click on it), it opened as XML file, so, why?

The reason is android SDK sometime make the developer crazy with some bugs like this" Opening layout file as XML and design instead of Graphical Layout"










 The solution is:
Right Click on the Layout file -> Open with -> Android Layout Editor















Mohammad Abu Hmead

Open android xml layout

When I'm trying to open Android Layout File(Double Click on it), it opened as XML file, so, why?
The reason is android SDK sometime make the developer crazy with some bugs like this" Opening layout file as XML and design instead of Graphical Layout"

The solution is:
Right Click on the Layout file -> Open with -> Android Layout Editor

Sunday, 18 December 2011

Error within Debug UI: java.lang.reflect.InvocationTargetException

I this is a popup dialog contains this error "Error within Debug UI:  java.lang.reflect.InvocationTargetException",
I googled it, but I didn't found the solution.



I tried to delete the Project from the Projects Work space, and I reimported it, it worked fine.
so, the easiest solution is
"Delete the Project from the work space, Reimport it again to the work space"
The result: it will work 100%

Mohammad Abu Hmead

Saturday, 22 October 2011

Create GlassFish Domain

How to add GlassFish server to Netbeans and create new domain?


Follow the following Figures



GlsssFish Version 

GlassFish Location



GlassFish Domain, the check box "use default Ports" checked unchecke it

To get the server port



You can call any servelt on this server via the server computer IP and GlassFish Server Port which is 28354
Ex: http://43.17.33.9:28354/ServletProject/ServletName

Best Wishes,

Mohammad Abu Hmead

Get or Change MS SQL server TCP/IP

How to get or change MS SQL TCP/IP?
  1. Open Sql Server Configuration Manager.
  2. Open SQL server network configuration.
  3. Press on Protocols for MSSQLSERVER.
  4. Right click on TCP/IP -> Enable. Look at the figures  bellow.


Double Click on TCP/IP will show the figure bellow 

Go to IP All Section and look at the TCP Port Field if is it empty write 1433 which is the default port for the SQL server.

Best Wishes, 

Mohammad Abu Hmead

Create MS SQL new Login

How to create new user on MS SQL?


  1. Open MS Sql Management Studio.
  2. Log in via Windows Authentication.
  3. Open Security Folder.
  4. Open Logins  Folder.
  5. Right Click -> New Login...
  6. Write the user name.
  7. Select the Sql Authentication 
  8. Type a password 
  9. Pick the DB which this user should manage.
Look @ the figure bellow 

      10. Press on User Mapping, Pick the DB which you want this user to manage and select the memberships     rules. look at the Figure bellow.



         11. The Status Tab should be as the following Figure.





    12. Press OK.
    13. Right click on Server name -> Properties 
    14. Press on Security tap and Pick SQL server and windows authentication mode under Server Authentication section. Look @ the figure bellow




Best Wishes,


Mohammad Abu Hmead.