[android-developers] Re: Android Emulator internet connectivity Problem

2011-10-25 Thread Andriod Beginer

Hello manish

Just Remove your DNS Server IP  from LAN Settings.

Internet works Automatically on your Emulator


On Oct 21, 11:01 am, manish sandhan sandhan.man...@gmail.com wrote:
 I m new in android...
 I m not able to connect my android emulator to internet neither from my app
 nor from the android browser.
 I have tried adding  uses-permission
 android:name=android.permission.INTERNET / in xml..but still in did not
 help..
 I have added hardware like GPS and Modem from the android sdk manager...
 Still it did not work pls help...

 pls help...
 --

 Thanks  Regards
 Manish Sandhan
 Cell 
 No.--+91-9421572024begin_of_the_skype_highlighting+91-9421572024  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem with Linkify.addLinks(

2011-05-16 Thread beginer
Hello

I put

String la_dire = http://www.donostiakultura.com;;
 Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(la_dire));
 startActivity(*Intent.createChooser(browserIntent, Browse
with...)*);


And it dosen´t go, if I dont put de url in the String la_dire , I
put directly the url:

 Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(http://www.donostiakultura.com;));
 startActivity(*Intent.createChooser(browserIntent, Browse
with...)*);

the emuletor goes good and the url open when I click in the item.

But I need to define the url in the variable, because alwais is
diferent and I get it.

What is wrong?

Thanks

On May 5, 11:40 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Weird.

 I wonder if there is some unprintable character somewhere, or perhaps a
 national (accented character) somewhere in your URL.

 Change the Intent construction like this:

 Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(la_dire));

 And double check the URL to make sure it doesn't have any strange
 characters.

 You're also supposed to create a chooser, in case the user has multiple
 web browsers installed:

      String la_dire = http://www.donostiakultura.com;;
      Intent browserIntent = new Intent(Intent.ACTION_VIEW,
 Uri.parse(la_dire));
      startActivity(*Intent.createChooser(browserIntent, Browse with...)*);

 -- Kostya

 05.05.2011 12:47, beginer О©╫О©╫О©╫О©╫О©╫:









  Yes

  On May 5, 10:35 am, Kostya Vasilyevkmans...@gmail.com  wrote:
  Can you access the site with the  emulator's web browser?

  05.05.2011 12:17, beginer О©╫О©╫О©╫О©╫О©╫:

  sorry but I don't understand what you said
  On May 5, 9:52 am, Kostya Vasilyevkmans...@gmail.com    wrote:
    Copying back to the list.
    This looks like an emulator issue. Can you access the site with the
    emulator's web browser? I would guess not.
    And looking at the last line in the log:
    Address family not supported by protocol
    I would guess that it's IPv6 related.
    PS - Don't use hardcoded strings for intent actions, there are 
  constants
    like Intent.ACTION_VIEW.
    -- Kostya
    05.05.2011 10:37, beginer О©╫О©╫О©╫О©╫О©╫:
  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread beginer
sorry but I don't understand what you said

On May 5, 9:52 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Copying back to the list.

 This looks like an emulator issue. Can you access the site with the
 emulator's web browser? I would guess not.

 And looking at the last line in the log:

 Address family not supported by protocol

 I would guess that it's IPv6 related.

 PS - Don't use hardcoded strings for intent actions, there are constants
 like Intent.ACTION_VIEW.

 -- Kostya

 05.05.2011 10:37, beginer пишет:









  thanks Kostya

  I put

                     lblTitulo.setOnClickListener(new OnClickListener() {

                             public void onClick(View v) {
                                     // TODO Auto-generated method stub
                                //TextView tv = (TextView)findViewById( 
  R.id.link2_view );

                                Intent browserIntent = new 
  Intent(android.intent.action.VIEW,
  Uri.parse(http://www.google.es;));
                                startActivity(browserIntent);

                            //tv.setText(la_dire);
                           // Linkify.addLinks( tv, Linkify.WEB_URLS );

                             }
                     });

  and it go good

  BUt when I put my url, dosen't work, the code is this:

  final String la_dire = miLista.get(position).getLink();
                     //System.out.println(la_dire);

                     lblTitulo.setOnClickListener(new OnClickListener() {

                             public void onClick(View v) {
                                     // TODO Auto-generated method stub
                                //TextView tv = (TextView)findViewById( 
  R.id.link2_view );

                                Intent browserIntent = new 
  Intent(android.intent.action.VIEW,
  Uri.parse(la_dire));
                                startActivity(browserIntent);

                            //tv.setText(la_dire);
                           // Linkify.addLinks( tv, Linkify.WEB_URLS );

                             }
                     });

  The emulator said this:

  05-05 06:27:10.256: INFO/System.out(391):
  [net.sgoliver.Evento@44ef34c8, net.sgoliver.Evento@44ef42e8,
  net.sgoliver.Evento@44ef45f8, net.sgoliver.Evento@44ef48c0,
  net.sgoliver.Evento@44ef5560, net.sgoliver.Evento@44ef65f8,
  net.sgoliver.Evento@44ef6848, net.sgoliver.Evento@44ef6cb0,
  net.sgoliver.Evento@44ef7010, net.sgoliver.Evento@44ef7428]
  05-05 06:27:10.465: INFO/System.out(391):            
  http://www.donostiakultura.com
  05-05 06:27:10.545: INFO/System.out(391):            http://www.google.es
  05-05 06:27:10.577: INFO/System.out(391):            http://www.adimedia.net
  05-05 06:27:10.817: INFO/ActivityManager(59): Displayed activity
  net.sgoliver/.AndroidXml: 2073 ms (total 2073 ms)
  05-05 06:27:16.046: DEBUG/dalvikvm(119): GC_EXPLICIT freed 658
  objects / 36880 bytes in 129ms
  05-05 06:27:21.136: DEBUG/dalvikvm(214): GC_EXPLICIT freed 156
  objects / 11168 bytes in 165ms
  05-05 06:27:26.156: DEBUG/dalvikvm(261): GC_EXPLICIT freed 250
  objects / 11856 bytes in 138ms
  05-05 06:27:26.440: DEBUG/SntpClient(59): request time failed:
  java.net.SocketException: Address family not supported by protocol
  05-05 06:32:02.775: INFO/ActivityManager(59): Starting activity:
  Intent { act=android.intent.action.VIEW dat=
  05-05 06:32:02.775: INFO/ActivityManager(59):
 http://www.donostiakultura.com}
  05-05 06:32:02.775: DEBUG/AndroidRuntime(391): Shutting down VM
  05-05 06:32:02.786: WARN/dalvikvm(391): threadid=1: thread exiting
  with uncaught exception (group=0x4001d800)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391): FATAL EXCEPTION: main
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):
  android.content.ActivityNotFoundException: No Activity found to handle
  Intent { act=android.intent.action.VIEW dat=
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):
 http://www.donostiakultura.com}
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
  1408)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.app.Instrumentation.execStartActivity(Instrumentation.java:
  1378)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.app.Activity.startActivityForResult(Activity.java:2817)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.app.Activity.startActivity(Activity.java:2923)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  net.sgoliver.AndroidXml$EventoAdapter$1.onClick(AndroidXml.java:162)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.view.View.performClick(View.java:2408)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at android.view.View
  $PerformClick.run(View.java:8816)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391):     at
  android.os.Handler.handleCallback(Handler.java:587)
  05-05 06:32:02.796: ERROR/AndroidRuntime(391

[android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread beginer
Yes

On May 5, 10:35 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Can you access the site with the  emulator's web browser?

 05.05.2011 12:17, beginer пишет:









  sorry but I don't understand what you said

  On May 5, 9:52 am, Kostya Vasilyevkmans...@gmail.com  wrote:
    Copying back to the list.

    This looks like an emulator issue. Can you access the site with the
    emulator's web browser? I would guess not.

    And looking at the last line in the log:

    Address family not supported by protocol

    I would guess that it's IPv6 related.

    PS - Don't use hardcoded strings for intent actions, there are constants
    like Intent.ACTION_VIEW.

    -- Kostya

    05.05.2011 10:37, beginer пишет:

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem with Linkify.addLinks(

2011-05-04 Thread beginer
The code that I am using is this:

In the method getView of the ArrayAdapter class, when you click in the
title of one of the items, I do this:


 class EventoAdapter extends ArrayAdapter {
Activity context;
EventoAdapter(Activity context) {
super(context, R.layout.listitem_titular, miLista);
this.context = context;
}
 public View getView(int position, View convertView,
ViewGroup parent) {
  

   lblTitle.setOnClickListener(new
OnClickListener() {

public void onClick(View v) {
// TODO Auto-generated method stub
   TextView tv = (TextView)findViewById( 
R.id.link2_view );
   tv.setText(la_dire);
   Linkify.addLinks( tv, Linkify.WEB_URLS );


}
  });
  }
.
}


When I click labelTitle, the link appeared, and you can click there
and open the url . BUt What I want isn´t this, I want when I click in
the labelTitle to open the url directly, I don´t want to have to click
in the url.

How can I do this?

thank you very much, excuse my english.

On May 3, 12:04 pm, beginer j.ur...@gmail.com wrote:
 I resolved the problem, but known the link only appear sometimes. I
 have a List View, and the both elements have a link, but in some
 element appear the link and in others not.
 Wht is the problem?
 thaks very much

 On May 3, 10:42 am, Kostya Vasilyev kmans...@gmail.com wrote:







  Something is null at line 147 in your AndroidXml.java.

  -- Kostya

  03.05.2011 12:11, beginer ?:

   05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
   05-03 08:05:16.051: ERROR/AndroidRuntime(339):
   java.lang.NullPointerException
   05-03 08:05:16.051: ERROR/AndroidRuntime(339):     at
   net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*)

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem with Linkify.addLinks(

2011-05-03 Thread beginer
Thanks Mark
I seee in the LogCat and it said:

05-03 08:05:15.895: DEBUG/AndroidRuntime(339): Shutting down VM
05-03 08:05:15.895: WARN/dalvikvm(339): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
05-03 08:05:16.051: ERROR/AndroidRuntime(339):
java.lang.NullPointerException
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
net.sgoliver.AndroidXml$EventoAdapter.getView(AndroidXml.java:147)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.AbsListView.obtainView(AbsListView.java:1315)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.makeAndAddView(ListView.java:1727)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.fillDown(ListView.java:652)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.fillFromTop(ListView.java:709)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.layoutChildren(ListView.java:1580)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.AbsListView.onLayout(AbsListView.java:1147)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.os.Looper.loop(Looper.java:123)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
java.lang.reflect.Method.invokeNative(Native Method)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
java.lang.reflect.Method.invoke(Method.java:521)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
dalvik.system.NativeStart.main(Native Method)


Do you known what happend?

Thanks

On Apr 29, 9:43 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Apr 28, 2011 at 8:03 AM, beginer j.ur...@gmail.com wrote:
  I want to add a link in my ListView,
  I am using this code:

   TextView tv = (TextView)findViewById( R.id.link2_view );
   tv.setText(www.google.es);
   Linkify.addLinks( tv,Linkify.WEB_URLS );

  but don't work

 HTTP URLs have an http:// in front of them.

  The Android emulator said: The application has stopped
  unexpectecly .please try again.

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem with Linkify.addLinks(

2011-05-03 Thread beginer
I resolved the problem, but known the link only appear sometimes. I
have a List View, and the both elements have a link, but in some
element appear the link and in others not.
Wht is the problem?
thaks very much

On May 3, 10:42 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Something is null at line 147 in your AndroidXml.java.

 -- Kostya

 03.05.2011 12:11, beginer ?:

  05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
  05-03 08:05:16.051: ERROR/AndroidRuntime(339):
  java.lang.NullPointerException
  05-03 08:05:16.051: ERROR/AndroidRuntime(339):     at
  net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*)

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] problem with Linkify.addLinks(

2011-04-29 Thread beginer
I want to add a link in my ListView,
I am using this code:

 TextView tv = (TextView)findViewById( R.id.link2_view );
 tv.setText(www.google.es);
 Linkify.addLinks( tv, Linkify.WEB_URLS );

but don't work


The Android emulator said: The application has stopped
unexpectecly .please try again.

I'm using, android 2.2 in eclipse with windows xp

thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Camera preview from API demos looks weird in HTC Hero

2010-01-10 Thread a beginer
I am trying to run the camera preview example from the API demos on my
HTC Hero (Sprint). However, the preview looks grainy and unclear. Are
there any device specific settings that I need to be aware of?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en