Localhost for Android Emulator??

2014-04-19 Thread Minjin19
Hello everyone, 

i need really help with one problem. Im developing an application with 
Android with the help of mgwt, gwt-phonegap, phonegap and GWT of course. 
Now i already have GWT Web application running. 

Now i already developed everything with mgwt and i can see my login page on 
the emulator. What i cant do and is making me crazy is going through the 
Login and i dont know why. 

I already followed the steps posted from this blog 
http://blog.daniel-kurka.de/2012/04/gwt-rpc-with-phonegap-revisited.html

Here is my code: 

private void checkLogin(String userName, String password)
{
if (userName.equals("") || password.equals(""))
{
return; 
}
Log.info("Login in with User " + userField.getText());
//Log.debug("Password: \'" + passField.getText()+ "\'");
LoginServiceAsync loginservice = (LoginServiceAsync) GWT.create(
LoginService.class);
PhonegapUtil.prepareService((ServiceDefTarget) loginservice, 
"http://10.0.2.2:/projectname/";, "Login");

XXAsyncCallback callback = new XXAsyncCallback()
{

public void onSuccess(User result)
{
handleUser(result);
}

};
Log.debug("Send Logindata to Server");
loginservice.checkLogin(userName, password, callback);

}



Im just deploying this in localhost. Connection to the database is on an 
external server but i have a network connection which i can establish to 
connect to the database. Anyway.i cant seem to open a database 
connection within the Android emulator. 

I have been searching the internet for a solution but i didnt find 
anything. What am i doing wrong? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Compiling problem with GWT Compiler

2014-04-10 Thread Minjin19
Hi everyone, 

Im having big issues with the compilation of my project, there is already a 
GWT Web application running.  
As a side-project I now want to make a mobile application of my already 
existing GWT Web application. 
I already changed some widgets from GWT to mgwt and the project runs 
without a problem. The only thing I cannot do is compiling my project. 
Errors that I get when trying to compile with the GWT Compiler: 

Java heap space and Unable to read from byte cache. 

I already increased the size of the arguments and I also deleted all files 
from the folder unitcache. 

I also tried to compile my project without mgwt and it compiles without a 
problem. So it must be something wrong with mgwt or the way I implemented 
it. But I donĀ“t think so, since I followed the Tutorials. 

What could be the problem? Can somebody please help me? 

Im using: 

GWT 2.5.1 
JRE7 32 Bit 
Windows XP on a Laptop
mgwt 1.2.1

Thanks in advance. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.