You said you get this at compile time? Have you tryed useing eclipse
or netbeans to do. Your development? Either of those programs will
show you exactly where compile-time errors are occuring.


On Jan 30, 6:44 pm, manuel angel  loureiro <[email protected]>
wrote:
> Hello:
>
> I am a beginner in android application development. I am trying to do
> a simple application to enter in a web page with user and 'assword.
> But when compiling i get this error ( reached end of file
> unexpected)...
>
> Can somebody help me???
>
> Thanks in advance:
>          M.Loureiro
>
> I attach the piece of code:
>
> public class Access_w_user_passw extends Activity {
> WebView webview;
> @Override
>
> public void onCreate(Bundle savedInstanceState) {
>
>     WebView webkit = (WebView) findViewById(R.id.web_view);
>     webkit.setHttpAuthUsernamePassword(page.getHost(), realm,username,
> password);
>     webkit.setWebViewClient( new WebViewClient() {
>       �...@override
>         public void onReceivedHttpAuthRequest  (WebView
> view,HttpAuthHandler handler, String host,String realm){
>             String[] up = view.getHttpAuthUsernamePassword(host,
> realm);
>             if( up != null && up.length == 2 ) {
>                 handler.proceed(up[0], up[1]);
>             }
>             else{
>                 Log.d("WebAuth","Could not find user/pass for
> domain :"+host+" with realm = "+realm);
>            }
>         }
>     });
>
>
>
> }

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to