I developed a gwt application and I used Hibernate as database and it works very well.
Now when I put the application on my phone (format .apk) and I change ip address of my database (mysql) in hibernate file configuration, it gives me an error (ALERT Error).
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://192.168.1.218/MyProject_hibernate</property>
<property name="hibernate.connection.username">ns</property>
<property name="hibernate.connection.password">ns</property>
I don't know if this approach is logical or not know (to change only the IP address), if you have any idea please share it with us.
Thank you in advance