[android-developers] Simple application to log into multiple accounts through http

2012-04-10 Thread Beginner
Hi I am starting to program android and want to make my first
application. I have tried a few tutorials and sample programs but
can't make a start.

I want to make a application that will log into a website username/
password then log out, turn on airplane mode on/off to get a fresh ip
then log in again for a second account.

The idea is to keep accounts active on a server that deletes them
after 7 days of inactivity.

If anybody can help me make a start it would be really appreciated!

-- 
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: Android encryption Google App Engine decryption

2011-01-18 Thread Beginner
Right. Thanks for rephrasing my question.

Which algorithm should I use that's common on both? An example - or
reference link - would be awesome.


Thanks

On Jan 18, 8:23 am, DanH danhi...@ieee.org wrote:
 Use an algorithm that's common to both.

 On Jan 18, 1:00 am, Beginner ayrton.merc...@gmail.com wrote:







  Hi,

  I'm trying to implement a fairly straight-forward protocol. Where
  Android clients would encrypt certain data before sending it over to
  mygoogleappengineserver. However, it seems like there's some
  significant differences - at least in the default capabilities. It
  seems I can only really use BouncyCastle on Android. And there's no
  way GAE supports that.

  So... how can I do this? How do I encrypt some data on Android clients
  with my private key, and decrypt it on GAE (again, using my private
  key)

  Thanks!
  Ayrton

-- 
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] Android encryption Google App Engine decryption

2011-01-17 Thread Beginner
Hi,

I'm trying to implement a fairly straight-forward protocol. Where
Android clients would encrypt certain data before sending it over to
my google app engine server. However, it seems like there's some
significant differences - at least in the default capabilities. It
seems I can only really use BouncyCastle on Android. And there's no
way GAE supports that.

So... how can I do this? How do I encrypt some data on Android clients
with my private key, and decrypt it on GAE (again, using my private
key)


Thanks!
Ayrton

-- 
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] REST JSON

2010-11-08 Thread Beginner
Hi,

I am new on this group. I hope i will get help from you guys. I would
like android to communicate with my PHP Server, I have no idea about
REST JSON. Do any one implemented it before.

Can you please recommend me some good resources. I want to build a
simple Registration/Login System which will be authenticate from
android device with PHP mySQL Database.

second i would like to insert/update and delete some record on server
side by from android device. Waiting for your response.

Thanks in advance.


-- 
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] Free MEM and SD CARD

2010-03-29 Thread Porting beginner
Hi,

I have Android (eclair)running on armv6 target platform.
I am trying to check how much memory is currently in used and how much left
( free ) ?

During boot I can observe that memory is going in in-active partition and at
the end  when
all processes ( zygote, system ) and apps up and running and reach to home
scree, free mem is just
2-5 MB.

During boot , I don't have sd card plug-in but after reaching to home
screen, plug-in sd card and run
/proc/meminfo or ddms to see free mem and I can see at least 10-12 MB as
free mem.

Is Android using SD CARD as swap partition for VM and free RAM which he used
earlier to create in-active partition ?


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Getting LinearLayout to wrap contents

2010-03-24 Thread Beginner
Hi,

I've got a horizontal LinearLayout that contains a variable number of
child LinearLayouts. Right now, the children will just run off the
screen if there are too many of them.

How would I make the parent layout wrap the children on multiple
lines? If this is not possible, should I be using a different layout
as the parent?

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Getting LinearLayout to wrap contents

2010-03-24 Thread Beginner
Bummer.

Thanks for the quick reply, though.

On Mar 24, 10:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 Beginner wrote:
  I've got a horizontal LinearLayout that contains a variable number of
  child LinearLayouts. Right now, the children will just run off the
  screen if there are too many of them.

  How would I make the parent layout wrap the children on multiple
  lines? If this is not possible, should I be using a different layout
  as the parent?

 There is no built-in layout that wraps child Views the way a TextView
 wraps text. Sorry!

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

 Android 2.x Programming Books:http://commonsware.com/books

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-kernel] Re: [android-developers] Android factory test mode

2010-03-23 Thread Porting beginner
On Mon, Mar 22, 2010 at 9:41 PM, Dianne Hackborn hack...@android.comwrote:

 On Mon, Mar 22, 2010 at 9:07 PM, Shuduo Sang sangshu...@gmail.com wrote:

 Is it also named fast boot mode?


 No that is unrelated.

 Thanks for more detail on factory mode.

fastboot is special mode of device for downloading images, fastboot is
protocol. right ?



 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 unsubscribe: 
 android-kernel+unsubscr...@googlegroups.comandroid-kernel%2bunsubscr...@googlegroups.com
 website: http://groups.google.com/group/android-kernel

 To unsubscribe from this group, send email to android-kernel+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.




-- 
Thanks
Rizavan

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] Re: Build with customized SDK

2010-03-23 Thread Porting beginner
On Tue, Mar 23, 2010 at 12:15 PM, Kumar Bibek coomar@gmail.com wrote:

 Yes you can do it, but there is no point if you are not making a new
 device/handset with the modified SDK.

  thanks for detail, can you specify  procedure for this ?

Thanks and Regards,
 Kumar Bibek

 On Mar 23, 11:23 pm, Porting beginner porting.begin...@gmail.com
 wrote:
  Hi,
 
  I want to use my own SDK ( Android SDK + few new app + modified apps )
 along
  with Eclipse on Windows / Linux machine.
  Am I able to do this ? can anyone share setup procedure for this ?
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.




-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] GIF file with bg white, lyrics black

2010-03-23 Thread Porting beginner
Hi,

We have one .gif file and try to see it from gallery, it looks fine but
couldn't see lyrics (fonts ), it has some problem.

This gif is kind of special,  tried it on PC with a viewer, the background
is white and the lyrics in problem are black.
Then  tried it on one of other phone ( available in market today,  not
Android phone ) , the background is black  and the lyrics in problem are
white.
So, it's ok that to have black background, but, somewhat we are not able to
see the white lyrics in this .gif.

Is this kind of .gif supported ? can we view it using gallery ?


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Android factory test mode

2010-03-22 Thread Porting beginner
Hi,

I have android running on arm11 based target platform with eclair release.
How to boot android in factory test mode ?  Where I can get more information
on this ?


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-kernel] Re: [android-developers] Android factory test mode

2010-03-22 Thread Porting beginner
On Mon, Mar 22, 2010 at 3:04 PM, Dianne Hackborn hack...@android.comwrote:

 It is controlled with this sytem property: ro.factorytest

 Possible values:

 public static final int FACTORY_TEST_OFF = 0;
 public static final int FACTORY_TEST_LOW_LEVEL = 1;
 public static final int FACTORY_TEST_HIGH_LEVEL = 2;

 You'll need to look in the code to SystemServer and elsewhere to see what
 all it does.

 Sorry but forget to post this question too.

Do I need to set mode for all app need in factory mode ?
Whats the diff when I boot android in normal vs factory mode from system and
app point of view ?




On Mon, Mar 22, 2010 at 2:02 PM, Porting beginner 
 porting.begin...@gmail.com wrote:

 Hi,

 I have android running on arm11 based target platform with eclair release.
 How to boot android in factory test mode ?  Where I can get more
 information on this ?


 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 unsubscribe: 
 android-kernel+unsubscr...@googlegroups.comandroid-kernel%2bunsubscr...@googlegroups.com
 website: http://groups.google.com/group/android-kernel

 To unsubscribe from this group, send email to android-kernel+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.




-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


Re: [android-developers] ADT Eclipse Plugin won't let me put in a Target

2010-03-18 Thread Porting beginner
On Thu, Mar 18, 2010 at 5:08 PM, Ray Tayek rta...@ca.rr.com wrote:

 At 06:23 PM 3/17/2010, you wrote:

 I've been trying to make a new Android project in Eclipse. But
 whenever I try to do so, it won't let me select a build target. Here's
 a screenshot: http://twitpic.com/198od6


 if you have not mad a target yet, you need to make one before you create a
 new android project.

 select  Android SDK and AVD Manager from the windows menu and click on
 virtual devices and make one.

 thanks

 You can select 'Manual' so it wouldn't look for virtual device but prompt
you to choose target later on
if you have any actual android device and adb is running and detected that
device.


 ---
 co-chair http://ocjug.org/


 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] How to search local banks..?

2010-03-16 Thread android beginner
Hello Every One ...
Any one  help me out regarding how can I retrieve near by banks to
the current location. I am using 1.6 SDK

Thanks in advance

-- 
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] android: memory for kernel and apps

2010-03-11 Thread Porting beginner
Hi,

I have android running on my target platform.
When its booting, as kernel boots , I see free memory around 53mb-55mb range
there till console.
( cat /proc/meminfo )


*Just after kernel boot...
*

MemTotal:  88792 kB
*MemFree:   53496 kB
*Buffers:   0 kB
*Cached:24028 kB*
.
.
.

But once android services/apps starts and reach to idle screen, most of
memory cached
*Once reach to Idle screen*

MemTotal:  88792 kB
*MemFree:   23228 kB ( keep changing in range of 23mb to 27 mb )*
*
*Buffers:  44 kB
*Cached:20700 kB ( keep changing 19mb-25mb )
*


After this, if there is memory request from app , it seems android manage to
get it from cached

As I start more and more apps, free mem decrease and cached mem increase but
after exit from app, mem still hold as cached
mem and not all mem return as free mem.

And  if there is request from kernel space ( from some driver module ,
kmalloc or kalloc ), it seems its not going through and request failing.


Any idea ? is that generic behavior of android ?

-- 
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] KEYCODE from Android phone

2010-02-19 Thread Porting beginner
Hi,

As I am struggling to know the KEYCODE for headset button press , I am
trying to check
any Android phone currently in market to get this KEYCODE.  is that possible
and helpful to do so ?


Please let me know if I am missing something here.

-- 
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

Re: [android-developers] Re: headset button

2010-02-19 Thread Porting beginner
On Sun, Feb 1, 2009 at 1:01 AM, Nick Pelly npe...@google.com wrote:

 For wired headsets, you can use Intent.ACTION_MEDIA_BUTTON as mentioned in
 the other thread. This is how the built in media app does pause/play on
 wired headset button presses, and where I recommend that you hook in.


 For Bluetooth headsets, they do not work like you think. There is no
 'button pressed event' sent by the headset. We don't know when the button is
 pressed. Instead the headset maps its buttons presses to commands depending
 on its state machine. We receive commands, not button presses from the
 headset.

 Nick

 Hi Nick,

My headset driver maps button press to KEYCODE_CALL.

I have resolved this issue with condition check in PhoneWindowsManager.c.
Now I can use my wired headset button to either receive or end incoming
call. is this proper way to fix this issue ?





 On Sat, Jan 31, 2009 at 2:07 AM, deepdr...@googlemail.com 
 deepdr...@googlemail.com wrote:


 you may want to look at


 http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8



 On Jan 30, 8:20 pm, Brodsky peter.brod...@gmail.com wrote:
  Hi!  Does anyone know how to tell when the headset button is being
  pressed?  I'd like to support the usb headsets and possibly bluetooth
  headsets.  My app is a media player and ideally, I could register it
  somewhere so that if no app that uses the headset button has focus it
  button press would act as a play/pause command in my app. If the phone
  is ringing or a call is in progress, I'd like to be sensitive to that
  and let the button do what it normally does: pickup and hang up
  calls.  we've been trying to chase the button down using this:
 
  IntentFilter headsetFilter = new IntentFilter
  (Intent.ACTION_HEADSET_PLUG);
  headsetFilter.addAction
  (android.intent.action.HEADSET_STATE_CHANGED);
  headsetFilter.addAction(android.bluetooth.intent.HEADSET_STATE);
  headsetFilter.addAction
  (android.bluetooth.intent.HEADSET_STATE_CHANGED);
  headsetFilter.addAction
  (android.bluetooth.intent.action.MODE_CHANGED);
  headsetFilter.addAction(android.intent.action.MODE_CHANGED);
 
  no luck as of yet.  Any help would be greatly appreciated!  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
 -~--~~~~--~~--~--~---




-- 
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

Re: [android-developers] Re: headset button

2010-02-18 Thread Porting beginner
On Sun, Feb 1, 2009 at 1:01 AM, Nick Pelly npe...@google.com wrote:

 For wired headsets, you can use Intent.ACTION_MEDIA_BUTTON as mentioned in
 the other thread. This is how the built in media app does pause/play on
 wired headset button presses, and where I recommend that you hook in.

 For Bluetooth headsets, they do not work like you think. There is no
 'button pressed event' sent by the headset. We don't know when the button is
 pressed. Instead the headset maps its buttons presses to commands depending
 on its state machine. We receive commands, not button presses from the
 headset.

 Nick

 Hi,
Can you please write in some more details relate to headset button mapping ?
I got stuck here, I don't know how to go ahead. I am trying to find out
where I should hook my headset button press event ?




 On Sat, Jan 31, 2009 at 2:07 AM, deepdr...@googlemail.com 
 deepdr...@googlemail.com wrote:


 you may want to look at


 http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8



 On Jan 30, 8:20 pm, Brodsky peter.brod...@gmail.com wrote:
  Hi!  Does anyone know how to tell when the headset button is being
  pressed?  I'd like to support the usb headsets and possibly bluetooth
  headsets.  My app is a media player and ideally, I could register it
  somewhere so that if no app that uses the headset button has focus it
  button press would act as a play/pause command in my app. If the phone
  is ringing or a call is in progress, I'd like to be sensitive to that
  and let the button do what it normally does: pickup and hang up
  calls.  we've been trying to chase the button down using this:
 
  IntentFilter headsetFilter = new IntentFilter
  (Intent.ACTION_HEADSET_PLUG);
  headsetFilter.addAction
  (android.intent.action.HEADSET_STATE_CHANGED);
  headsetFilter.addAction(android.bluetooth.intent.HEADSET_STATE);
  headsetFilter.addAction
  (android.bluetooth.intent.HEADSET_STATE_CHANGED);
  headsetFilter.addAction
  (android.bluetooth.intent.action.MODE_CHANGED);
  headsetFilter.addAction(android.intent.action.MODE_CHANGED);
 
  no luck as of yet.  Any help would be greatly appreciated!  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
 -~--~~~~--~~--~--~---




-- 
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] KEYCODE for headset button press

2010-02-18 Thread Porting beginner
Hi,

I am trying from few days but don't get any information related to issue as
below.

Which  KEYCODE to send to input dev ( /dev/input/event2 here ) on headset
button press event from my
headset driver so can answer / hang-up call ?

Please let me know if I am missing something here.

-- 
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] mail to group

2010-02-18 Thread Porting beginner
Hi,

I don't see my mails sent to these groups. is that any issue ?

-- 
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] CursorTreeAdapter!!!

2010-02-08 Thread beginner
Hello everyone!!!
I'm new android, i'm trying to do with CursorTreeAdapter but it doesnt
work. Please help!!!

Here is my code

import android.app.Activity;

import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorTreeAdapter;
import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;
import android.widget.TextView;


public class ExpandableList extends Activity {
private int mGroupIdColumnIndex;

private String mPhoneNumberProjection[] = new String[] {
People.Phones._ID, People.Phones.NUMBER
};


private ExpandableListAdapter mAdapter;
private LayoutInflater mInflater;
private LayoutInflater mInflater_group;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.expandable_list);
Cursor groupCursor = managedQuery(People.CONTENT_URI,
new String[] {People._ID, People.NAME},
null,null,null);
mGroupIdColumnIndex =
groupCursor.getColumnIndexOrThrow(People._ID);
ExpandableListView lv = (ExpandableListView)
this.findViewById(R.id.expandable_list);

MyExpandableListAdapter myAdapter = new
MyExpandableListAdapter(groupCursor,this);
lv.setAdapter(myAdapter);

}

public class MyExpandableListAdapter extends CursorTreeAdapter {

public MyExpandableListAdapter(Cursor cursor, Context context)
{
super(cursor,context);
}

@Override
protected Cursor getChildrenCursor(Cursor groupCursor) {
Uri.Builder builder = People.CONTENT_URI.buildUpon();
ContentUris.appendId(builder,
groupCursor.getLong(mGroupIdColumnIndex));
 
builder.appendEncodedPath(People.Phones.CONTENT_DIRECTORY);
Uri phoneNumbersUri = builder.build();
return managedQuery(phoneNumbersUri,
mPhoneNumberProjection, null, null, null);
}

@Override
protected void bindChildView(View view, Context context, Cursor
cursor,
boolean isLastChild) {
TextView id = (TextView) view.findViewById(R.id.text1);
id.setText(People.NUMBER);

}

@Override
protected void bindGroupView(View view, Context context, Cursor
cursor,
boolean isExpanded) {
TextView id = (TextView) view.findViewById(R.id.text1);
id.setText(People.NAME);


}

@Override
protected View newChildView(Context context, Cursor cursor,
boolean isLastChild, ViewGroup parent) {
mInflater = LayoutInflater.from(context);
final View view =
mInflater.inflate(R.layout.expandable_list_item_with_image, parent,
false);
return view;
}

@Override
protected View newGroupView(Context context, Cursor cursor,
boolean isExpanded, ViewGroup parent) {
mInflater_group = LayoutInflater.from(context);
final View view =
mInflater_group.inflate(R.layout.expandable_list, parent, false);
return view;
}

}

}

Here is my expandable_list.xml file

?xml version=1.0 encoding=UTF-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 ExpandableListView
android:id=@+id/expandable_list
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1/
 TextView
android:id=@+id/text1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=right /

 /LinearLayout

Here is my expandable_list_item_with_image.xml
?xml version=1.0 encoding=utf-8?
RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent

LinearLayout

android:layout_width=fill_parent
android:layout_height=wrap_content


TextView
android:id=@+id/text1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=right /
ImageView
android:id=@+id/icon
android:layout_width=35px
android:paddingLeft=2px
android:paddingRight=10px
android:paddingTop=2px

[android-developers] Invoking Process from Application

2010-02-08 Thread android beginner
Hi,

We are migrating ncurses based application on our linux target platform into
Android based ones.

We have one application(parent) which runs ping process(child) and reads the
output (through Pipe) and displays on the screen.

I need to develop similar sort of application, but couldn't find Android
API's to invoke processes (/sbin/ping). Can anyone share their views to
accomplish this task?

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] Re: TextView - disable focus

2010-02-04 Thread android beginner
Hi,

Any Suggestions?

Thanks

On Sun, Jan 31, 2010 at 3:17 PM, android beginner 
android.beginne...@gmail.com wrote:

 Hi,

 I have a listview, and wanted to make some list items to be non-focusable.
 i.e On pressing the down-arrow key, some items in the middle of the list
 gets skipped.

 I tried the following method.
 1. created separate ArrayAdapter class.
 2. override getView method.
 3. In getView, I called setSelected(false) and also tried
 setFocusable(false) for some items, but its not working.

 Any suggestions?

 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

Re: [android-developers] Re: Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)

2010-02-03 Thread Porting beginner
On Thu, Apr 2, 2009 at 6:19 AM, Henning Schaefer henning.schae...@gmail.com
 wrote:


 Sure... you need to implement two classes. One, derived from
 BroadcastReceiver, which actually captures the broadcast. And, of
 course, the service that keeps the receiver alive all the time. The
 service is the easy part. You only need to override two methods:

 @Override
public void onCreate() {
/* register receiver */
apr = new APReceiver(); /* replace this by your receiver class
 */
IntentFilter inf = new IntentFilter();
inf.addAction(android.intent.action.HEADSET_PLUG);
registerReceiver(apr, inf);
}

 @Override
public void onDestroy() {
unregisterReceiver(apr);
}

 Of course, apr (type of your receiver class) must be a private field
 of your service class.

 Then, you derive your receiver class from BroadcastReceiver and fill
 in the onReceive method:

 public void onReceive(Context context, Intent intent) {
if (intent.getExtras().getInt(state) == 0) {
/* HEADSET IS OR HAS BEEN DISCONNECTED */
}else{
/* HEADSET IS OR HAS BEEN CONNECTED */
}
}

 However, you need to be aware that HEADSET_PLUG is a sticky event,
 every BroadcastReceiver subscribed to that event will receive it upon
 construction; I don't know if there is a possibility to determine if
 the event has captured at the exact time or been sticked for a
 while.


  Hi,

  Thanks for detail regarding HEADSET detection but before this what need to
do
  so detection come to MMI from driver ? is that required to post specific
event from driver
  once driver detect headset plug-in or plug-out ?

Can you please give more details on this  starting from driver , how to
enable headset detection in Android UI ? ( My headset driver is working and
can detect plug-in and plug-out ).




 I hope, this short excerpt helps ;)

 On 26 Mrz., 18:37, Gerby stephan.gerb...@googlemail.com wrote:
  hi henning
 
  do you have some example code for me, how to create a service to
  detect the headset, please?
 
  Cheers
 
  On 16 Feb., 17:21, zero zeroo...@googlemail.com wrote:
 
   on a side note, i recommend the logcat app for such momentshttp://
 code.google.com/p/android-random/
 
   On Feb 16, 5:04 pm, Henning Schaefer henning.schae...@gmail.com
   wrote:
 
OK, after digging into the android system code, I think I figured out
what's wrong here... the class HeadsetObserver from the base system
actually sends out this intent with its FLAG_RECEIVER_REGISTERED_ONLY
flag set... obviously, there's no way to receive this intent without
implementing a service.
 
On 15 Feb., 12:59, Henning Schaefer henning.schae...@gmail.com
wrote:
 
 Hi all,
 
 yesterday, I spent several hours trying to figure out how to
 capture
 the HEADSET_PLUG intent with a BroadcastReceiver. The manifest
 defines
 the receiver, with its intent-filter set to action
 android:name=android.intent.action.HEADSET_PLUG /.
 
 The receiver is working correctly (I verified that by changing the
 intent filter to capture things like SMS_RECEIVED including the
 proper
 permissions and the receiver fired as expected on receiving an
 SMS),
 but when listening for HEADSET_PLUG, it never fires. Debugging the
 whole thing is a bit complicated, as the emulator doesn't seem to
 support headsets and I have to disconnect my target device (a HTC
 Dream) from USB in order to attach a headset (so there's no logfile
 viewing). Are there any special permissions required for
 applications
 to capture the HEADSET_PLUG intent (and if so, which? I've tried
 several, to no avail)?
 
 Maybe the Dream doesn't fire such an intent at all (that'd be bad
 luck
 for me), but I guess that it must be an issue related to
 application
 permissions. The documentation says extremely little (well,
 actually:
 nothing) about the single permissions needed to perform all the
 actions described in the API docs, so this is absolutely something
 to
 be improved.
 
 What I want to do: Upon detecting a headset, I want to re-route the
 ringtones from the speakers to the headset, so as not to annoy
 people
 in my vicinity by a harsh ringing sound (I'm used to this behaviour
 from my old phone) - by default, the speaker just keeps on ringing,
 no
 matter whether a headset is attached or not. This part is already
 working, but now I need to know how to detect headset attachment/
 detachment events.
 
 Thanks in advance,
 
 Henning
 --~--~-~--~~~---~--~~
 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] HEADSET Detection

2010-02-03 Thread Porting beginner
Hi,

I am trying to detect headset in to Android UI.
My basic Linux headset driver is working fine and detect plug-in plug-out of
headset and print message on console.

Now whats the next step to get this detection to UI or to inform UI to show
headset plug-in plug-out in UI ?
is that required to post specific event from driver  once driver detect
headset plug-in or plug-out ?

Can you please give more details on this  starting from driver , how to
enable headset detection in Android UI ?

-- 
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

Re: [android-developers] Re: System Settings

2010-02-02 Thread android beginner
Thanks Bob.

On Tue, Feb 2, 2010 at 5:31 PM, Bob Kerns r...@acm.org wrote:

 The ones you're not allowed to change are defined here:

 http://developer.android.com/intl/de/reference/android/provider/Settings.Secure.html

 The ones you ARE allowed to change (with
 android.permission.WRITE_SETTINGS permission) are defined here:

 http://developer.android.com/intl/de/reference/android/provider/Settings.System.html

 You use the static methods on those two classes, together with your
 applications ContentResolver, to access them:
 e.g.:
 return Settings.System.getInt(getContentResolver(),
 NOTIFICATIONS_USE_RING_VOLUME)

 Physically, these are stored in a database, but you shouldn't do it
 that way.

 On Feb 1, 9:52 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  How System Settings (eg, volume, brightness) stored in Android and where?
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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

Re: [android-developers] executing a shell script from Android application

2010-02-02 Thread android beginner
first thought that came to my mind is permission. ofcourse you can confirm
that with logcat.

On Tue, Feb 2, 2010 at 6:58 PM, Asif k asifk1...@gmail.com wrote:

 Hi all,

  I am configuring wifi on my android based board using shell script.
 Now I want to execute the same script from android application. For
 that, I had used following code, but it didn't give any success till
 now,

 I had executed same script from adb shell prompt and it works
 nicely.

 Process exeCommands = Runtime.getRuntime().exec(/data/busybox/
 board_script.sh);

 is there anything else required than this???

 Please help..
 Asif

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] Socket creation failure

2010-02-02 Thread android beginner
Hi,

I created a simple client socket from my Activity, but it fails. I am
running this activity in emulator and server runs on PC(its a different
application without Android stuff).

*clientSock = new Socket(127.0.0.1, 30001);*

logcat shows
java.net.SocketException: permission denied maybe missing INTERNET
permission

If I enable permission for my Activity(android.permission.INTERNET), my
Activity constructor itself not called and logcat shows following info.
Permission Denial: starting Intent  flg=0x1000
cmp=com.example.client/.MyClientActivity  from null
pid=-1, uid=-1 requires android.permission.INTERNET.

Any suggestion on how to resolve this issue?

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

Re: [android-developers] Socket creation failure

2010-02-02 Thread android beginner
Thanks

On Wed, Feb 3, 2010 at 4:10 PM, Mike Novak m...@androidnerds.org wrote:

 uses-permission android:name=android.permission.INTERNET /

 ^^ place the above line in your AndroidManifest.xml file.

 Mike

 On Feb 3, 2010, at 12:07 AM, android beginner wrote:

 Hi,

 I created a simple client socket from my Activity, but it fails. I am
 running this activity in emulator and server runs on PC(its a different
 application without Android stuff).

 *clientSock = new Socket(127.0.0.1, 30001);*

 logcat shows
 java.net.SocketException: permission denied maybe missing INTERNET
 permission

 If I enable permission for my Activity(android.permission.INTERNET), my
 Activity constructor itself not called and logcat shows following info.
 Permission Denial: starting Intent  flg=0x1000
 cmp=com.example.client/.MyClientActivity  from null
 pid=-1, uid=-1 requires android.permission.INTERNET.

 Any suggestion on how to resolve this issue?

 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


  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] Service - Need Info

2010-02-01 Thread android beginner
Hi,

I created remote service and wanted to get the data from MyActivity's
onCreate().

Below bindService returns true but ServiceConnection() is not called.
Hence testService remains null and I couldn't get the data I want from
onCreate.

Any Suggestion?

public class MyActivity extends Activity
{
private ITestInterface testService = null;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 bindService(new Intent(ITestInterface.class.getName()),
serConn, Context.BIND_AUTO_CREATE);
 }
 private ServiceConnection serConn = new ServiceConnection()
{
@Override
public void onServiceConnected(ComponentName name, IBinder service)
{
testService = ITestInterface.Stub.asInterface(service);
}

@Override
public void onServiceDisconnected(ComponentName name)
{
 }
};

}

-- 
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] Need Suggestion on running Service

2010-02-01 Thread android beginner
Hi,

Currently I am migrating our ncurses based application on Android powered
target hardware.

I need your expert advice on the feasibility of following scenario.

* In our existing application, we have a daemon process A which receives
query from UI process.
* Example, UI process sends message(implemented through local sockets) for
updating Brightness. Daemon Process A receives this message, and updates the
Brightness of the system.
* We are planning to implement UI in Android and wanted to communicate with
Deamon process A.

My Understanding is
* We can start Deamon process as Remote Service with aidl interface(from
init.rc). So that most of current code can be re-used, instead of developing
everything from scratch in java.
* From UI we can communicate with Daemon Process to update Brightness and
other settings for our application.
* I also believe it is in this way that wpa_supplicant is currently running
in Android.

Please correct me if I am wrong and need your expert advice in accomplishing
this task.

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

Re: [android-developers] Service - Need Info

2010-02-01 Thread android beginner
Hi Mark,

I observed that after calling bindService in onCreate we should not call the
interface methods as ServiceConnection() runs after onCreate(maybe
bindService puts serviceConnection in queue).

Hence after calling interface method inside onServiceConnected its working
fine.

Thanks



On Mon, Feb 1, 2010 at 10:14 PM, Mark Murphy mmur...@commonsware.comwrote:


  Hi,
 
  I created remote service and wanted to get the data from MyActivity's
  onCreate().
 
  Below bindService returns true but ServiceConnection() is not called.
  Hence testService remains null and I couldn't get the data I want from
  onCreate.
 
  Any Suggestion?

 Most likely, there is an Intent resolution problem. Look at LogCat at the
 warning level and see if you get any messages from Android saying that it
 could not resolve some Intent. You can also confirm that your service has
 an intent-filter with an action that is equivalent to
 ITestInterface.class.getName().

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 Android App Developer Books: http://commonsware.com/books.html


 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] System Settings

2010-02-01 Thread android beginner
Hi,

How System Settings (eg, volume, brightness) stored in Android and where?

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] Re: EditText - maximum width

2010-01-31 Thread android beginner
Hi,

Any suggestion?

Thanks


On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do
 not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I
 do not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en





 --
 Thanks  Regards
 Sasikumar.S


-- 
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

Re: [android-developers] custom adapter

2010-01-31 Thread android beginner
I believe in your custom ArrayAdapter, you would have override getView.

get the default text size, double the size and again set the text size.

Hope this helps.

On Mon, Feb 1, 2010 at 10:51 AM, Andrei gml...@gmail.com wrote:

 How do i set row height if text of some rows more than one line when
 writing
 custom ArrayAdapter?
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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

Re: [android-developers] Re: custom adapter

2010-01-31 Thread android beginner
This is just an example, which may not be applicable exactly in your case.

public View getView(int position, View convertView,
ViewGroup parent)
{

LayoutInflater inflater=context.getLayoutInflater();//initiliaze
context in ur constructor
View row=inflater.inflate(R.layout.row, null);
TextView label=(TextView)row.findViewById(R.id.label);
label.setText(item[position]);

   * float size = label.getTextSize();
label.setTextSize((float)((2)*size));*

return(row);
}

On Mon, Feb 1, 2010 at 11:14 AM, Andrei gml...@gmail.com wrote:

 true
 is there example?

 On Jan 31, 7:01 pm, android beginner android.beginne...@gmail.com
 wrote:
  I believe in your custom ArrayAdapter, you would have override getView.
 
  get the default text size, double the size and again set the text size.
 
  Hope this helps.
 
  On Mon, Feb 1, 2010 at 10:51 AM, Andrei gml...@gmail.com wrote:
   How do i set row height if text of some rows more than one line when
   writing
   custom ArrayAdapter?
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] TextView - disable focus

2010-01-30 Thread android beginner
Hi,

I have a listview, and wanted to make some list items to be non-focusable.
i.e On pressing the down-arrow key, some items in the middle of the list
gets skipped.

I tried the following method.
1. created separate ArrayAdapter class.
2. override getView method.
3. In getView, I called setSelected(false) and also tried
setFocusable(false) for some items, but its not working.

Any suggestions?

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] EditText - maximum width

2010-01-28 Thread android beginner
Hi,

I need to have an EditText with maximum width for 4 characters. I do not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.

Can anyone suggest me how to do this?

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

Re: [android-developers] Re: EditText - maximum width

2010-01-28 Thread android beginner
Hi,

I made the EditText to accept only 4 characters, but my question was
different. sorry for not being clear.

When the EditText comes up, by default its very small(equavalent to one
character length) and on entering characters it re-sizes itself. I do not
want it to resize, but fixed size of 4 characters.

Thanks

On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 It helps reading the documentation, but here's your answer:

addFilter(view, new InputFilter.LengthFilter(maxLength));


 On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  I need to have an EditText with maximum width for 4 characters. I do not
  want set maximum width in pixels as I have my target with couple of
  different screen resolutions.
 
  Can anyone suggest me how to do this?
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: EditText - maximum width

2010-01-28 Thread android beginner
Hi Sasikumar,

Thanks for your email. But as mentioned in my first email, I do not want to
set it with pixel size as I have couple of screen with different resolution.

Thanks

On Fri, Jan 29, 2010 at 2:47 PM, Sasikumar S sasikumar.it1...@gmail.comwrote:

 Hi android beginner,

 you can set your edittext box width as 65PX. So that it will looks
 like four character supporting box.
 After you are entering text also it won't decrease or increase.

 On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I do
 not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


-- 
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

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Hi,
The basic list that I want to view is working.

In my first list activity(ListDemoActivity), I choosed some element, which
triggers another list A activity. If I go back (on pressing BACK key), the
state of ListDemoActivity screen is preserved. Now If I select the same
element again, I expect the state of A activity to be preserved aswell, but
its not happening.

Below is the code snippet, Can you please suggest me what I need to do?

public class ListDemoActivity extends ListActivity {
String[] firstPage = {a, b, c, d, e};
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

setListAdapter(new ArrayAdapterString(this,
android.R.layout.simple_list_item_1,
firstPage));

}

public void onListItemClick(ListView parent, View v,
int position, long id)
{
String txt = firstPage[position];
if ((txt == a) ||
(txt == b))
{
Intent startActivity = new Intent(this, Activity_A.class);
startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(startActivity);
}
else
{
Intent startActivity = new Intent(this, Activity_B.class);
startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(startActivity);
}

}
}

On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com wrote:


 On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
 wrote:
  so, each sub-lists should be created as list activity. On selecting any
  item, should call that particular list activity. Is my understanding
  correct?

 Yes

  Also, how to store parent list in the stack? so that on pressing escape
  key, I can navigate backwards.

 Android does this automatically, and I assume you mean the 'back'
 key.  Each new activity is launched ontop of the older ones allowing
 you to navigate backwards down the stack.

 -theSmith



  Thanks
 
  On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.com
 wrote:
 
   your item must be a listactivity , when you add it to your parent
   list , the UI is adapted automaticly .
 
   On 25 jan, 06:24, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
My Activity has list of items and on clicking any item, new window
 with
different set of list has to appear and this can continue upto 4 or 5
   level
depths. I need your expert advice on how to achieve this.
 
Can I have each sub-list to be of separate activity? If there are any
   online
examples matching this requirement, please let me know.
 
Thank
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Yea, went through the document and got good understanding of activities 
tasks.

I observed one issue though (Not sure if its an issue, maybe I need to call
some other functions).

In my first list A, I selected one item using Keys. This leads to create
another list Activity B. I just browsed the list using Key, so that one
element will be highlighted (focussed). These activities are created with
Launch mode singleTop
Then I went to the Home Screen. Now on selecting my Activity Icon again, I
got the list Activity B screen but its not highlighted. Using onPause, I got
the position and in onResume I called setSelection(position). But still
that element in the list is not highlighted

Any Suggestions?

Thanks

On Thu, Jan 28, 2010 at 11:52 AM, theSmith chris.smith...@gmail.com wrote:



 On Jan 27, 7:03 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
  The basic list that I want to view is working.
 
  In my first list activity(ListDemoActivity), I choosed some element,
 which
  triggers another list A activity. If I go back (on pressing BACK key),
 the
  state of ListDemoActivity screen is preserved. Now If I select the same
  element again, I expect the state of A activity to be preserved aswell,
 but
  its not happening.

 You're assuming things that are not true.  Its an activity stack, so
 once you pop it off (hit the back key) that state is lost, and you
 will be creating a new activity when launching that activity A again.

 I'd recommend learning a little bit about the nature of android before
 getting too deep into developing code.
 The Androidology videos will get you started and the Google I/O videos
 are some of my favorites for getting into Android as a pro.
 http://developer.android.com/intl/de/videos/index.html#v=opZ69P-0Jbc


  Below is the code snippet, Can you please suggest me what I need to do?
 
  public class ListDemoActivity extends ListActivity {
  String[] firstPage = {a, b, c, d, e};
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1,
  firstPage));
 
  }
 
  public void onListItemClick(ListView parent, View v,
  int position, long id)
  {
  String txt = firstPage[position];
  if ((txt == a) ||
  (txt == b))
  {
  Intent startActivity = new Intent(this, Activity_A.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
  else
  {
  Intent startActivity = new Intent(this, Activity_B.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
 
  }
 
  }
  On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com
 wrote:
 
   On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
   wrote:
so, each sub-lists should be created as list activity. On selecting
 any
item, should call that particular list activity. Is my understanding
correct?
 
   Yes
 
Also, how to store parent list in the stack? so that on pressing
 escape
key, I can navigate backwards.
 
   Android does this automatically, and I assume you mean the 'back'
   key.  Each new activity is launched ontop of the older ones allowing
   you to navigate backwards down the stack.
 
   -theSmith
 
Thanks
 
On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun 
 bsaad1...@gmail.com
   wrote:
 
 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .
 
 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new
 window
   with
  different set of list has to appear and this can continue upto 4
 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there are
 any
 online
  examples matching this requirement, please let me know.
 
  Thank
 
 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 android-developers%252bunsubscr

Re: [android-developers] Re: list - need suggestion

2010-01-27 Thread android beginner
Yes. Because of touch mode, I didn't get the focus. Since my hardware doesnt
have the the touch screen, it should not be an issue :)

On Thu, Jan 28, 2010 at 3:23 PM, android beginner 
android.beginne...@gmail.com wrote:

 Yea, went through the document and got good understanding of activities 
 tasks.

 I observed one issue though (Not sure if its an issue, maybe I need to call
 some other functions).

 In my first list A, I selected one item using Keys. This leads to create
 another list Activity B. I just browsed the list using Key, so that one
 element will be highlighted (focussed). These activities are created with
 Launch mode singleTop
 Then I went to the Home Screen. Now on selecting my Activity Icon again, I
 got the list Activity B screen but its not highlighted. Using onPause, I got
 the position and in onResume I called setSelection(position). But still
 that element in the list is not highlighted

 Any Suggestions?

 Thanks


 On Thu, Jan 28, 2010 at 11:52 AM, theSmith chris.smith...@gmail.comwrote:



 On Jan 27, 7:03 pm, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
  The basic list that I want to view is working.
 
  In my first list activity(ListDemoActivity), I choosed some element,
 which
  triggers another list A activity. If I go back (on pressing BACK key),
 the
  state of ListDemoActivity screen is preserved. Now If I select the same
  element again, I expect the state of A activity to be preserved aswell,
 but
  its not happening.

 You're assuming things that are not true.  Its an activity stack, so
 once you pop it off (hit the back key) that state is lost, and you
 will be creating a new activity when launching that activity A again.

 I'd recommend learning a little bit about the nature of android before
 getting too deep into developing code.
 The Androidology videos will get you started and the Google I/O videos
 are some of my favorites for getting into Android as a pro.
 http://developer.android.com/intl/de/videos/index.html#v=opZ69P-0Jbc


  Below is the code snippet, Can you please suggest me what I need to do?
 
  public class ListDemoActivity extends ListActivity {
  String[] firstPage = {a, b, c, d, e};
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1,
  firstPage));
 
  }
 
  public void onListItemClick(ListView parent, View v,
  int position, long id)
  {
  String txt = firstPage[position];
  if ((txt == a) ||
  (txt == b))
  {
  Intent startActivity = new Intent(this, Activity_A.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
  else
  {
  Intent startActivity = new Intent(this, Activity_B.class);
  startActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
  startActivity(startActivity);
  }
 
  }
 
  }
  On Tue, Jan 26, 2010 at 5:28 PM, theSmith chris.smith...@gmail.com
 wrote:
 
   On Jan 25, 11:48 pm, android beginner android.beginne...@gmail.com
   wrote:
so, each sub-lists should be created as list activity. On selecting
 any
item, should call that particular list activity. Is my understanding
correct?
 
   Yes
 
Also, how to store parent list in the stack? so that on pressing
 escape
key, I can navigate backwards.
 
   Android does this automatically, and I assume you mean the 'back'
   key.  Each new activity is launched ontop of the older ones allowing
   you to navigate backwards down the stack.
 
   -theSmith
 
Thanks
 
On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun 
 bsaad1...@gmail.com
   wrote:
 
 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .
 
 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new
 window
   with
  different set of list has to appear and this can continue upto 4
 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there
 are any
 online
  examples matching this requirement, please let me know.
 
  Thank
 
 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers

[android-developers] string to uppercase not working

2010-01-27 Thread android beginner
Hi,

The following is the code snippet. It is observed that after calling the
toUpperCase routine, 'f' is not converted to F. Can anyone let me know why
this behaviour??

String str = f;

str.toUpperCase(Locale.*ENGLISH*);

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

Re: [android-developers] Re: list - need suggestion

2010-01-25 Thread android beginner
so, each sub-lists should be created as list activity. On selecting any
item, should call that particular list activity. Is my understanding
correct?

Also, how to store parent list in the stack? so that on pressing escape
key, I can navigate backwards.

Thanks

On Tue, Jan 26, 2010 at 9:11 AM, saad bouchehboun bsaad1...@gmail.comwrote:

 your item must be a listactivity , when you add it to your parent
 list , the UI is adapted automaticly .

 On 25 jan, 06:24, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  My Activity has list of items and on clicking any item, new window with
  different set of list has to appear and this can continue upto 4 or 5
 level
  depths. I need your expert advice on how to achieve this.
 
  Can I have each sub-list to be of separate activity? If there are any
 online
  examples matching this requirement, please let me know.
 
  Thank

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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

Re: [android-developers] Log messages no longer appear in LogCat

2009-11-16 Thread android beginner
s i experience the same.did u get any answer

-- 
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] Instrumentation Tests with Toasts

2009-06-23 Thread Beginner

Hello,

I'm trying to verify error messages that are presented inside Toasts,
using instrumentation tests. Is there a way I can wait for a view to
appear on screen with a timeout?

So I basically want to wait X seconds and see if the Toast appears
during that time.

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] Help! market uploading problem!!

2009-04-27 Thread ASDK BEGINNER

I completed my apk, and about to publish my apk up to the market.
when I load my apk, this stuff just pops up :
 Market requires the
minSdkVersion to be set in AndroidManifest.xml.
  The server could not process
your apk. Try again.

I have no idea,what is it talking about. I'm pretty sure I did set
minSDKversion 2
right now I'm stuck... could some one please tell me what I should
do???

--~--~-~--~~~---~--~~
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] Asset Image in WebView

2009-03-29 Thread Beginner

Hi,

I'm trying to load an image (tried both gif and png) from my assets
directory, into a webview.

In my assets folder, I have an image called myImage.gif

Here's my code:

 WebView data = (WebView) findViewById(R.id.data)
 data.loadData(IMG HEIGHT=\42px\ WIDTH=\42px\ SRC=\file:///
android_assets/myImage.gif\ /, text/html,  UTF-8);


All that happens when I try it, is that I get a blank screen with a
empty 42px/42px box.

In logcat, I see the message:

03-30 00:21:14.398: DEBUG/WebCore(214): Console: Not allowed to load
local resource: file:///android_assets/myImage.gif line: 0 source:


What am I doing wrong?


--~--~-~--~~~---~--~~
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: Asset Image in WebView

2009-03-29 Thread Beginner

Wow. That worked. Thanks a bunch.

Is there a bug already opened for this? Or...

On Mar 29, 8:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 Beginner wrote:
  Hi,

  I'm trying to load an image (tried both gif and png) from my assets
  directory, into a webview.

  In my assets folder, I have an image called myImage.gif

  Here's my code:

   WebView data = (WebView) findViewById(R.id.data)
   data.loadData(IMG HEIGHT=\42px\ WIDTH=\42px\ SRC=\file:///
  android_assets/myImage.gif\ /, text/html,  UTF-8);

  All that happens when I try it, is that I get a blank screen with a
  empty 42px/42px box.

  In logcat, I see the message:

  03-30 00:21:14.398: DEBUG/WebCore(214): Console: Not allowed to load
  local resource: file:///android_assets/myImage.gif line: 0 source:

  What am I doing wrong?

 Try loadDataWithBaseUrl() instead of loadData(), supplying some bogus
 value for the base URL (e.g.,
 fake://dagnabbit/would/somebody/explain/the/need/for/this).

 See:

 http://groups.google.com/group/android-beginners/browse_thread/thread...

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

 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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: Asset Image in WebView

2009-03-29 Thread Beginner

I thought this might have fixed my problem, but not quite. Since the
apk is readonly, it seems I can't put any files in the assets
directory at runtime. So I can't grab an image, put it in there, and
then have the webview load it.

Is it possible to load an image from the files directory?

Something like
 data.loadData(IMG SRC=\file:///data/data/myApp/files/myImage.gif
\ /, text/html,  UTF-8);

Thanks again.

On Mar 29, 9:29 pm, Mark Murphy mmur...@commonsware.com wrote:
 Beginner wrote:
  Wow. That worked. Thanks a bunch.

  Is there a bug already opened for this? Or...

 There was a bug already opened. And closed. Without what I would
 consider an adequate explanation.

 It's one of my pet peeves, which is why I come up with slightly
 different fake URLs to try to get answers by poking fun at the problem.

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

 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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: Asset Image in WebView

2009-03-29 Thread Beginner

That would work, if I was getting the entire data from one source. As
it stands, I'm getting part of the data (text) from one URL and
another part (image) from a different URL.

So I get both pieces of data then I have to combine them in a webview.

On Mar 29, 11:02 pm, Ralf ralfo...@gmail.com wrote:
 In this case simply use a data URI when creating the loadData string.
 See 4. Examples at  http://www.ietf.org/rfc/rfc2397.txt

 R/

 On Sun, Mar 29, 2009 at 6:44 PM, Beginner ayrton.merc...@gmail.com wrote:

  I thought this might have fixed my problem, but not quite. Since the
  apk is readonly, it seems I can't put any files in the assets
  directory at runtime. So I can't grab an image, put it in there, and
  then have the webview load it.

  Is it possible to load an image from the files directory?

  Something like
   data.loadData(IMG SRC=\file:///data/data/myApp/files/myImage.gif
  \ /, text/html,  UTF-8);

  Thanks again.

  On Mar 29, 9:29 pm, Mark Murphy mmur...@commonsware.com wrote:
  Beginner wrote:
   Wow. That worked. Thanks a bunch.

   Is there a bug already opened for this? Or...

  There was a bug already opened. And closed. Without what I would
  consider an adequate explanation.

  It's one of my pet peeves, which is why I come up with slightly
  different fake URLs to try to get answers by poking fun at the problem.

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

  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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] Wrap Text around ImageView

2008-11-05 Thread Beginner

Hi,

I asked this in the begginer's group, without much success. So I'm
going to try it here as well...


I'm trying to get a pretty standard effect. An image (in an ImageView)
on the the top-left corner of the screen, with text (in a TextView)
that wraps around it. (So part of it is on the right of the image, and
the rest is on the bottom.

Could someone tell me how to achieve this? Is there a wrapper View I
could use?

Thanks,
-A
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: i try to catch an exeption in a thread but although it does throws the exeption the catch i planted did not cought it, why is that?

2008-04-24 Thread Beginner

Hi. I have basically the exact same problem.

My app attempts to connect to a server using the method
talkToServer, in class MyClass. The code that connects to the
server is wrapped by a try/catch block. An IOException gets thrown but
isn't caught.

For sanity's sake, after catching the IOException, I also added catch
statements for RuntimeException and Exception. No luck. I'm pasting
the full stack trace here. I'd appreciate quick feedback if possible.

INFO/ActivityManager(513): Process: com.myapp
INFO/ActivityManager(513): CPU usage:
INFO/ActivityManager(513): Load: 1.53 / 0.44 / 0.15
INFO/ActivityManager(513): CPU usage from 2899ms to 873ms ago:
INFO/ActivityManager(513):   com.myapp: 7% = 6% user + 0% kernel
INFO/ActivityManager(513):   system_server: 3% = 2% user + 1% kernel
INFO/ActivityManager(513):   com.google.android.phone: 0% = 0% user +
0% kernel
INFO/ActivityManager(513): TOTAL: 15% = 12% user + 2% kernel
INFO/ActivityManager(513): /proc/meminfo:
INFO/ActivityManager(513): MemTotal:94672 kB
INFO/ActivityManager(513): MemFree: 30580 kB
INFO/ActivityManager(513): Buffers: 0 kB
INFO/ActivityManager(513): Cached:  36576 kB
INFO/ActivityManager(513): SwapCached:  0 kB
INFO/ActivityManager(513): Active:  39164 kB
INFO/ActivityManager(513): Inactive:18936 kB
INFO/ActivityManager(513): SwapTotal:   0 kB
INFO/ActivityManager(513): SwapFree:0 kB
INFO/ActivityManager(513): Dirty:   0 kB
INFO/ActivityManager(513): Writeback:   0 kB
INFO/ActivityManager(513): AnonPages:   21544 kB
INFO/ActivityManager(513): Mapped:  19116 kB
INFO/ActivityManager(513): Slab: 2412 kB
INFO/ActivityManager(513): SReclaimable:  564 kB
INFO/ActivityManager(513): SUnreclaim:   1848 kB
INFO/ActivityManager(513): PageTables:   1752 kB
INFO/ActivityManager(513): NFS_Unstable:0 kB
INFO/ActivityManager(513): Bounce:  0 kB
INFO/ActivityManager(513): CommitLimit: 47336 kB
INFO/ActivityManager(513): Committed_AS:   295964 kB
INFO/ActivityManager(513): VmallocTotal:   876544 kB
INFO/ActivityManager(513): VmallocUsed: 28724 kB
INFO/ActivityManager(513): VmallocChunk:   815100 kB
INFO/ActivityManager(513): /proc/zoneinfo:
INFO/ActivityManager(513): Node 0, zone  DMA
INFO/ActivityManager(513):   pages free 7645
INFO/ActivityManager(513): min  312
INFO/ActivityManager(513): low  390
INFO/ActivityManager(513): high 468
INFO/ActivityManager(513): scanned  0 (a: 0 i: 0)
INFO/ActivityManager(513): spanned  24576
INFO/ActivityManager(513): present  24384
INFO/ActivityManager(513): nr_free_pages 7645
INFO/ActivityManager(513): nr_inactive  4734
INFO/ActivityManager(513): nr_active9791
INFO/ActivityManager(513): nr_anon_pages 5388
INFO/ActivityManager(513): nr_mapped4779
INFO/ActivityManager(513): nr_file_pages 9144
INFO/ActivityManager(513): nr_dirty 0
INFO/ActivityManager(513): nr_writeback 0
INFO/ActivityManager(513): nr_slab_reclaimable 141
INFO/ActivityManager(513): nr_slab_unreclaimable 462
INFO/ActivityManager(513): nr_page_table_pages 438
INFO/ActivityManager(513): nr_unstable  0
INFO/ActivityManager(513): nr_bounce0
INFO/ActivityManager(513): nr_vmscan_write 0
INFO/ActivityManager(513): protection: (0, 0, 0)
INFO/ActivityManager(513):   pagesets
INFO/ActivityManager(513): cpu: 0 pcp: 0
INFO/ActivityManager(513):   count: 0
INFO/ActivityManager(513):   high:  18
INFO/ActivityManager(513):   batch: 3
INFO/ActivityManager(513): cpu: 0 pcp: 1
INFO/ActivityManager(513):   count: 0
INFO/ActivityManager(513):   high:  6
INFO/ActivityManager(513):   batch: 1
INFO/ActivityManager(513):   all_unreclaimable: 0
INFO/ActivityManager(513):   prev_priority: 12
INFO/ActivityManager(513):   start_pfn: 0
INFO/ActivityManager(513): /proc/interrupts:
INFO/ActivityManager(513):CPU0
INFO/ActivityManager(513):   1:  1goldfish
goldfish_pdev_bus
INFO/ActivityManager(513):   3:   5185goldfish  Goldfish Timer
Tick
INFO/ActivityManager(513):   4: 73goldfish  goldfish_tty
INFO/ActivityManager(513):  10:  0goldfish  goldfish_rtc
INFO/ActivityManager(513):  11:   2011goldfish  eth0
INFO/ActivityManager(513):  12:   1679goldfish  goldfish_fb
INFO/ActivityManager(513):  13:131goldfish  goldfish_audio
INFO/ActivityManager(513):  14:  1goldfish  goldfish-
events-keypad
INFO/ActivityManager(513):  15:  1goldfish
goldfish_switch
INFO/ActivityManager(513):  16:  0goldfish
goldfish_switch
INFO/ActivityManager(513): Err:  0
INFO/ActivityManager(513): /proc/slabinfo:
INFO/ActivityManager(513): slabinfo - version: 2.1
INFO/ActivityManager(513): # name   

[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-04-20 Thread Beginner

In my email above, I posted the server trace collected though the
procedure you described:

[This is the entire trace from the console]

failed to read packet from transport socket on fd 103
failed to read packet from transport socket on fd 108

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.




On Apr 20, 1:21 am, Digit [EMAIL PROTECTED] wrote:
 please provide us with ADB server traces (collected through the procedure I
 described a few posts ago in this thread). without this, there is little we
 can do

 On Sat, Apr 19, 2008 at 8:05 PM, Beginner [EMAIL PROTECTED] wrote:

  - Installed SP1
  - uninstalled both sdk and the plugin

  No difference.

  On Apr 18, 6:08 pm, Michael R. Novak [EMAIL PROTECTED]
  wrote:
   I would try reinstalling the sdk and if needed the eclipse plugin.

   I have noticed issues with the emulator on both Windows and Linux.

   If you have a mac, the emulator is certainly the best on the mac.

   -Mike

   - Original Message -
   From: Beginner [EMAIL PROTECTED]
   To: Android Developers android-developers@googlegroups.com
   Sent: Friday, April 18, 2008 3:23:06 PM GMT -05:00 US/Canada Eastern
   Subject: [android-developers] Re: Emulator crashing constantly on Windows
  Vista

   I'm not sure if this is of any more help, but here we go

   [Trace from console]

   failed to read packet from transport socket on fd 103
   failed to read packet from transport socket on fd 108

   This application has requested the Runtime to terminate it in an
   unusual way.
   Please contact the application's support team for more information.

   The failed to read packet lines appear when I close the emulator

   [What I did]
   Here are the steps I took to get the problem... I'm not sure if they
   tell you anything or if they're useless. But I will include them just
   in case.

   - Delete old userdata img file
   - Run (not debug) emulator from eclipse

   - ./adb shell
   - cd data/misc/location
   - mkdir MY_MOCK_PROVIDER
   - exit

   - From eclipse File Explorer view
   - push properties file to MY_MOCK_PROVIDER
   - push kml file to MY_MOCK_PROVIDER
   - close emulator
   - start emulator again
   - run for 5 minutes (everything works fine)
   - close emulator

   - wait a few minutes
   - see error

   I hope this helps, but I'm sure the above gives you no useful info. So
   if you want me to try something specific, let me know.

   On Apr 18, 2:23 pm, burevestnikov [EMAIL PROTECTED] wrote:
Just confirming that I am also seeing this.

On Apr 18, 9:42 am, Beginner [EMAIL PROTECTED] wrote:

 I'm seeing the same problem. The Windows message is:

 adb.exe has stopped working

 A problem caused the program to stop working correctly.
 Windows will close the program and notify you if a solution is
 available

 There is no Details button or anything of the sort. Only a Close
 Program button.

 Eclipse has the following message in the Console:

 [2008-04-18 04:41:28 - adb] This application has requested the
  Runtime
 to terminate it in an unusual way.
 [2008-04-18 04:41:28 - adb] Please contact the application's support
 team for more information.
 [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An
  existing
 connection was forcibly closed by the remote host

 Any ideas what could be causing this?

 On Mar 30, 12:28 pm, Digit [EMAIL PROTECTED] wrote: but
  there must be a button like Details... that should give you more
  information about the crash. if you could paste this information
  here, that
  would be useful to understand what's happening...

  On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] 
  [EMAIL PROTECTED]
  wrote:

   The error message is that Emulator has stopped working.

   nitin
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-04-20 Thread Beginner

Okay, so it looks like the crashes stop once I turn off User Account
Control.

On Apr 20, 1:36 pm, Beginner [EMAIL PROTECTED] wrote:
 In my email above, I posted the server trace collected though the
 procedure you described:

 [This is the entire trace from the console]

 failed to read packet from transport socket on fd 103
 failed to read packet from transport socket on fd 108

 This application has requested the Runtime to terminate it in an
 unusual way.
 Please contact the application's support team for more information.

 On Apr 20, 1:21 am, Digit [EMAIL PROTECTED] wrote:

  please provide us with ADB server traces (collected through the procedure I
  described a few posts ago in this thread). without this, there is little we
  can do

  On Sat, Apr 19, 2008 at 8:05 PM, Beginner [EMAIL PROTECTED] wrote:

   - Installed SP1
   - uninstalled both sdk and the plugin

   No difference.

   On Apr 18, 6:08 pm, Michael R. Novak [EMAIL PROTECTED]
   wrote:
I would try reinstalling the sdk and if needed the eclipse plugin.

I have noticed issues with the emulator on both Windows and Linux.

If you have a mac, the emulator is certainly the best on the mac.

-Mike

- Original Message -
From: Beginner [EMAIL PROTECTED]
To: Android Developers android-developers@googlegroups.com
Sent: Friday, April 18, 2008 3:23:06 PM GMT -05:00 US/Canada Eastern
Subject: [android-developers] Re: Emulator crashing constantly on 
Windows
   Vista

I'm not sure if this is of any more help, but here we go

[Trace from console]

failed to read packet from transport socket on fd 103
failed to read packet from transport socket on fd 108

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.

The failed to read packet lines appear when I close the emulator

[What I did]
Here are the steps I took to get the problem... I'm not sure if they
tell you anything or if they're useless. But I will include them just
in case.

- Delete old userdata img file
- Run (not debug) emulator from eclipse

- ./adb shell
- cd data/misc/location
- mkdir MY_MOCK_PROVIDER
- exit

- From eclipse File Explorer view
- push properties file to MY_MOCK_PROVIDER
- push kml file to MY_MOCK_PROVIDER
- close emulator
- start emulator again
- run for 5 minutes (everything works fine)
- close emulator

- wait a few minutes
- see error

I hope this helps, but I'm sure the above gives you no useful info. So
if you want me to try something specific, let me know.

On Apr 18, 2:23 pm, burevestnikov [EMAIL PROTECTED] wrote:
 Just confirming that I am also seeing this.

 On Apr 18, 9:42 am, Beginner [EMAIL PROTECTED] wrote:

  I'm seeing the same problem. The Windows message is:

  adb.exe has stopped working

  A problem caused the program to stop working correctly.
  Windows will close the program and notify you if a solution is
  available

  There is no Details button or anything of the sort. Only a Close
  Program button.

  Eclipse has the following message in the Console:

  [2008-04-18 04:41:28 - adb] This application has requested the
   Runtime
  to terminate it in an unusual way.
  [2008-04-18 04:41:28 - adb] Please contact the application's support
  team for more information.
  [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An
   existing
  connection was forcibly closed by the remote host

  Any ideas what could be causing this?

  On Mar 30, 12:28 pm, Digit [EMAIL PROTECTED] wrote: but
   there must be a button like Details... that should give you more
   information about the crash. if you could paste this information
   here, that
   would be useful to understand what's happening...

   On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] 
   [EMAIL PROTECTED]
   wrote:

The error message is that Emulator has stopped working.

nitin
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-04-19 Thread Beginner

- Installed SP1
- uninstalled both sdk and the plugin

No difference.

On Apr 18, 6:08 pm, Michael R. Novak [EMAIL PROTECTED]
wrote:
 I would try reinstalling the sdk and if needed the eclipse plugin.

 I have noticed issues with the emulator on both Windows and Linux.

 If you have a mac, the emulator is certainly the best on the mac.

 -Mike

 - Original Message -
 From: Beginner [EMAIL PROTECTED]
 To: Android Developers android-developers@googlegroups.com
 Sent: Friday, April 18, 2008 3:23:06 PM GMT -05:00 US/Canada Eastern
 Subject: [android-developers] Re: Emulator crashing constantly on Windows 
 Vista

 I'm not sure if this is of any more help, but here we go

 [Trace from console]

 failed to read packet from transport socket on fd 103
 failed to read packet from transport socket on fd 108

 This application has requested the Runtime to terminate it in an
 unusual way.
 Please contact the application's support team for more information.

 The failed to read packet lines appear when I close the emulator

 [What I did]
 Here are the steps I took to get the problem... I'm not sure if they
 tell you anything or if they're useless. But I will include them just
 in case.

 - Delete old userdata img file
 - Run (not debug) emulator from eclipse

 - ./adb shell
 - cd data/misc/location
 - mkdir MY_MOCK_PROVIDER
 - exit

 - From eclipse File Explorer view
 - push properties file to MY_MOCK_PROVIDER
 - push kml file to MY_MOCK_PROVIDER
 - close emulator
 - start emulator again
 - run for 5 minutes (everything works fine)
 - close emulator

 - wait a few minutes
 - see error

 I hope this helps, but I'm sure the above gives you no useful info. So
 if you want me to try something specific, let me know.

 On Apr 18, 2:23 pm, burevestnikov [EMAIL PROTECTED] wrote:
  Just confirming that I am also seeing this.

  On Apr 18, 9:42 am, Beginner [EMAIL PROTECTED] wrote:

   I'm seeing the same problem. The Windows message is:

   adb.exe has stopped working

   A problem caused the program to stop working correctly.
   Windows will close the program and notify you if a solution is
   available

   There is no Details button or anything of the sort. Only a Close
   Program button.

   Eclipse has the following message in the Console:

   [2008-04-18 04:41:28 - adb] This application has requested the Runtime
   to terminate it in an unusual way.
   [2008-04-18 04:41:28 - adb] Please contact the application's support
   team for more information.
   [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing
   connection was forcibly closed by the remote host

   Any ideas what could be causing this?

   On Mar 30, 12:28 pm, Digit [EMAIL PROTECTED] wrote: but there must be 
   a button like Details... that should give you more
information about the crash. if you could paste this information here, 
that
would be useful to understand what's happening...

On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 The error message is that Emulator has stopped working.

 nitin
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-04-18 Thread Beginner

I'm seeing the same problem. The Windows message is:

adb.exe has stopped working

A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is
available

There is no Details button or anything of the sort. Only a Close
Program button.



Eclipse has the following message in the Console:

[2008-04-18 04:41:28 - adb] This application has requested the Runtime
to terminate it in an unusual way.
[2008-04-18 04:41:28 - adb] Please contact the application's support
team for more information.
[2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing
connection was forcibly closed by the remote host


Any ideas what could be causing this?


On Mar 30, 12:28 pm, Digit [EMAIL PROTECTED] wrote:
 but there must be a button like Details... that should give you more
 information about the crash. if you could paste this information here, that
 would be useful to understand what's happening...

 On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:



  The error message is that Emulator has stopped working.

  nitin
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---