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
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
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
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:
>
>
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
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
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
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
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
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
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:
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
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
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
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?
>
>
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?
>
16 matches
Mail list logo