Re: [android-developers] The way to get coordinate of any element on activity

2011-08-26 Thread Vicky Wang
What tool can help to get coordinate of element?

Thank you a lot.

On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang kewy...@gmail.com wrote:

 Hi ,all
 What way to get coordinate of any element on activity? Thank you for your
 help.


 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] The way to get coordinate of any element on activity

2011-08-26 Thread Vicky Wang
Thanks a lot for your response.
I also have another question, sorry for that.
No idea to get the view instance on activity, because the view on activity
is not in my application, it is on another activity.
How can I get the view?
Thanks again.


On Fri, Aug 26, 2011 at 4:55 PM, Yahor Paulavets ypaulav...@agilefusion.com
 wrote:

 Tool: hierarchy viewer at 'tool' dir in sdk.

 Best regards,
 Yahor


 On Fri, Aug 26, 2011 at 11:54 AM, Yahor Paulavets 
 ypaulav...@agilefusion.com wrote:

 Hello,

 int[] xy = new int[2];
 anyView.getLocationOnScreen(xy);
 // enjoy

 Best regards,
 Yahor


 On Fri, Aug 26, 2011 at 11:30 AM, Vicky Wang kewy...@gmail.com wrote:

 What tool can help to get coordinate of element?

 Thank you a lot.


 On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang kewy...@gmail.com wrote:

 Hi ,all
 What way to get coordinate of any element on activity? Thank you for
 your help.


 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.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] The way to get coordinate of any element on activity

2011-08-25 Thread Vicky Wang
Hi ,all
What way to get coordinate of any element on activity? Thank you for your
help.


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] [android-developer] Why system is full after flash

2011-06-21 Thread Vicky Wang
HI, guys
After I use image file to flash phone (Nexus one), and then check partition
by command df, the system is full. Free space is 0.
What is the reason? Thanks for your help.


wq

-- 
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]Why insert row into table return null?

2011-06-02 Thread Vicky Wang
Hi, all
When i want to insert one row into the table of database, i
use getContentResolver().insert(uri, contentvalues). But the return is null.
why? What error happed?
Thanks for your help.

Vicky

-- 
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: How to unmount SD card with java code on android?

2011-05-25 Thread Vicky Wang
Thanks a lot for your reply, Frank.
As your suggestion, I have code app based on Android source and have a try
to run it on my test phone.

On Tue, May 24, 2011 at 2:59 PM, FrankG frankgru...@googlemail.com wrote:

 Hi Vicky,

 The i.e. teh Settings App uses an AIDL Interface ( IMountService )
 to mount/unmount the sdcard finally via vold.

 But I think only as part of the system build and signed with the
 platform
 key your are able to use it. But you can check this for your own.

 Good luck ! Frank



 On 23 Mai, 07:57, Vicky Wang kewy...@gmail.com wrote:
  Hi, guys
  There is a question about how to unmount SD card with java code on
 android.
  Right now, i found if want to unmount SD card with java, it need super
  permission. But i don't know the details how to do it.
  Who can help me ? Thanks a lot.

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

[android-developers] Why does not the mothed onChange() of contentobserver work when the database changed

2011-05-25 Thread Vicky Wang
Hi, guys
I use onChange() to listen the database change. And now this method is
called when the database changed finished. why? Is onChange() not called if
the database change not the change is finished?
Please help me. Thanks a lot.

-- 
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] How to unmount sd card in shell command

2011-05-23 Thread Vicky Wang
Hello, everyone
How to unmount sd card in shell command?

-- 
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] How to unmount SD card with java code on android?

2011-05-23 Thread Vicky Wang
Hi, guys
There is a question about how to unmount SD card with java code on android.
Right now, i found if want to unmount SD card with java, it need super
permission. But i don't know the details how to do it.
Who can help me ? Thanks a lot.

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