[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread -DC-
he same PC) with older SDKs. I use Eclipse SDK > > 3.6.0, build id I20100608-0911. Perhaps Java SDK 1.6.0_21 is "too new" > > but I did no further testing. It is indeed very annoying and I have to > > be continuously prepared for Eclipse locking up. > > > Regar

[android-beginners] Re: Eclipse lockups and crashes

2010-08-03 Thread -DC-
he same PC) with older SDKs. I use Eclipse SDK > > 3.6.0, build id I20100608-0911. Perhaps Java SDK 1.6.0_21 is "too new" > > but I did no further testing. It is indeed very annoying and I have to > > be continuously prepared for Eclipse locking up. > > > Regar

[android-beginners] Eclipse lockups and crashes

2010-08-02 Thread -DC-
I'm using Eclipse (eclipse-java-galileo-SR2-win32) with ADT rev 6 and have Java SDK 1.6.0_21 installed on my system. Eclipse locks up and/or crashes on me regularly while coding. I've lost unsaved code and even my Eclipse preferences before. It's maddening! Does anyone know what might be causing th

[android-beginners] Re: Unable to ping host from app but can otherwise

2010-07-08 Thread -DC-
Apparently isReachable doesn't work reliably on Android (needs root?) I ended up using the method described here: http://stackoverflow.com/questions/2935325/android-debugging-inetaddress-isreachable/2935468#2935468 On Jul 4, 10:13 am, -DC- wrote: > Here's my code: > >    

[android-beginners] Unable to ping host from app but can otherwise

2010-07-04 Thread -DC-
Here's my code: InetAddress address = InetAddress.getByName("www.whyoceans.com"); if (!address.isReachable(3000)) { Toast.makeText(this, "Unable to ping host", Toast.LENGTH_SHORT).show(); } The isR

[android-beginners] Saving contents of a Spinner with onSaveInstanceState

2010-06-19 Thread -DC-
I've got an app that uses a Spinner tied to an Adapter. I want to be able to save its contents when onSaveInstanceState is called, but am not sure which put method of the Bundle class I can use to do this? protected void onSaveInstanceState(Bundle outState) { //TODO: Figure out how to

[android-beginners] MediaPlayer and HTTP authentication?

2010-03-12 Thread -DC-
Does anyone know if there's a way to tell MediaPlayer to authenticate with an HTTP source (login/pass)? Setting an Authenticator in the code doesn't seem to do it. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging

[android-beginners] Spinner not displaying the selectedItem

2010-03-10 Thread -DC-
I'm using a Spinner view to display a list of items (file names) and frequently refreshing it with new data. I've ran into a situation where the item being displayed in the view is not the item actually selected. This happens after programatically calling setSelection(). I started wondering if mayb

[android-beginners] Re: Detecting spinner selections

2010-03-05 Thread -DC-
On Mar 4, 8:18 pm, TreKing wrote: > > Whoops. I meant setOnItemSelectedListener(), that's the link in my original > post and that's the anonymous class I posted in the example. Sorry for the > confusion. Cool, this appears to be working. Thanks a bunch! mDirectories.setOnItemSelectedList

[android-beginners] Re: Detecting spinner selections

2010-03-04 Thread -DC-
guide/topics/ui/binding.html On Mar 4, 3:56 pm, TreKing wrote: > On Thu, Mar 4, 2010 at 5:44 PM, -DC- wrote: > > Great, but I'm not sure how I use it. Can you provide some sample code > > based on what I've currently got (below)? > > The link I gave you is for settin

[android-beginners] Re: Detecting spinner selections

2010-03-04 Thread -DC-
this, android.R.layout.simple_spinner_item, (String[]) result1.toArray(new String[result1.size()])); adapter.setDropDownViewResource(android.R.layout.simple_spinner_item); mDirectories.setAdapter(adapter); On Mar 4, 7:16 am, TreKing wrote: > On Wed, Mar 3, 2010 at 10:07 PM, -DC- wrote:

[android-beginners] Detecting spinner selections

2010-03-03 Thread -DC-
I've been struggling with this issue for days now. I've got a spinner control set up to display items. It works but I need a way to know when a selection has been made in the control. It doesn't appear that I can set an OnItemClickListener. The SDK says: "setOnItemClickListener(AdapterView.OnItemC

[android-beginners] Re: illegal characer in URI ?

2010-02-15 Thread -DC-
blic HttpGet () > Since: API Level 1 > > public HttpGet (URIuri) > Since: API Level 1 > > public HttpGet (Stringuri) > Since: API Level 1 > > Throws > IllegalArgumentException        if theuriis invalid. > > Regards, > Ivan > On 2月15日, 上午6時48分, -DC- wrote: &g

[android-beginners] Re: illegal characer in URI ?

2010-02-14 Thread -DC-
How are you creating the URL? Try one of these methods: path = URLEncoder.encode("finance.yahoo.com/q/hp?s=^DJI", "UTF-8"); uri = new URI("http://"; + path); ...or... uri = new URI("http", "finance.yahoo.com", "/q/hp?s=^DJI", ""); On Feb 13, 11:55 pm, ivanchan wrote: > Hi all, > > I am trying

[android-beginners] Re: How to play sound file...

2010-02-09 Thread -DC-
You can try the AudioTrack class. On Jan 22, 5:35 am, Viral Brahmbhatt wrote: > Hello, > > Is there a way to paly sound file without using media player object? > > Is it compulsory to play the sound from activity class? what if i want to > play it from a class which is not extending activity? > >

[android-beginners] Re: Wifi --> 3G when the phone goes into stand-by mode

2008-12-23 Thread dc . disconnect
It happens regardless of ac status. I seem to recall a setting that prevents lock/blank on ac, that is your best bet. On 12/23/08, Sander wrote: > > Ah, thank you for your clarification. It's not even possible to > disable this kind of behaviour when the phone is connected to a power > source? >