[android-developers] Re: Adb remount fails on Android 1.5

2009-05-14 Thread KG

I have figured out a way to do this...

First run adb root this will give you root access to G1's file
system, then you can execute commands like adb push, adb pull etc

--kartic

On May 13, 9:41 pm, Kartic karti...@gmail.com wrote:
 Hi All,

 I have upgraded my phone's images to Android 1.5 images 
 (fromhttp://www.htc.com/www/support/android/adp.html)
 Now when I try commands like adb remount, chmod, adb push etc I get
 Operation not permitted and Permission denied errors

 I was able to give this command when I had 1.0 images flashed on my
 phone.

 Has something related to permissions changed with Android 1.5?

 Regards,Kartic
--~--~-~--~~~---~--~~
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: Another AbsoluteLayout deprecation question

2009-05-14 Thread Mark Murphy

 I believe I have politely and thoroughly stated my question.  Anyone
 have an answer?

Everybody, even to an extent the core Android team folk on this list, is
contributing answers on a volunteer basis. Lots of questions get asked
here that do not get answered, for any number of reasons.

Also, bear in mind that you sent your question less than 24 hours ago. Not
everybody monitors this list continuously. If you need answers in that
short of a timeframe, hire a consultant.

I have watched your thread since its inception. I did not reply at first,
because you seemed set on having a core Android team member answer, and I
am not such a person. However, since your focus now seems to be on getting
some sort of answer from anyone, here's my take on it:

  I have seen a number of threads discussing the deprecation
 ofAbsoluteLayout.  I'm a little fearful of reading third-party blogs
  that suggest solutions to the deprecation because in some discussion
  threads the Google employees have explicitly said the blogs contain
  misunderstandings or inaccuracies.

According to Ms. Hackborn's most recent(?) post on the topic, while
AbsoluteLayout is deprecated, it is not going away. Strategically, I
suppose that means no new code should be built that relies upon
AbsoluteLayout, but there is no need for a massive rush to the exits to
abandon AbsoluteLayout for existing code.

Personally, if I were in your shoes, I would aim to eliminate my
dependency on AbsoluteLayout in the next few months. Note that eliminate
the dependency on AbsoluteLayout could be simply a mental bookmark that,
should AbsoluteLayout ever be truly removed from the platform, that you
will be willing and able to maintain AbsoluteLayout yourself, based on the
last implementation found in the Android open source project.

But, again, Ms. Hackborn has indicated AbsoluteLayout is not going away,
and so you may elect to not worry about this issue in the near term.

  So, I need to know how to implement my app's behavior
 withoutAbsoluteLayout.  I would greatly appreciate any input people
 might
  have, especially the real pros, the Android dev team who, by
  deprecatingAbsoluteLayout, must have a clear picture in their heads
  of how to reorganize code to be up-to-date to achieve the same
  functionality.  Romain Guy, Diane Hackborn, I'm looking your
  direction.  :-)

I believe both of them, in related threads, indicated that the solution is
to create your own layout manager, rather than use AbsoluteLayout or
RelativeLayout or any of the other built-in ones.

Unfortunately, I am unaware of any tutorials on exactly how to do this.
You can probably examine the source of some of the existing layout
managers to see how they do what they do.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_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: Another AbsoluteLayout deprecation question

2009-05-14 Thread Romain Guy

Again, AbsoluteLayout was deprecated to encourage developers to use
real layout managers. AbsoluteLayout just won't work with other
screen resolutions and densities. Like Dianne said, it won't go away
but we want you guys to think very hard before using it. It is (most
of the time) bad practice and will only come back to haunt you in the
future.

On Wed, May 13, 2009 at 11:00 PM, Mark Murphy mmur...@commonsware.com wrote:

 I believe I have politely and thoroughly stated my question.  Anyone
 have an answer?

 Everybody, even to an extent the core Android team folk on this list, is
 contributing answers on a volunteer basis. Lots of questions get asked
 here that do not get answered, for any number of reasons.

 Also, bear in mind that you sent your question less than 24 hours ago. Not
 everybody monitors this list continuously. If you need answers in that
 short of a timeframe, hire a consultant.

 I have watched your thread since its inception. I did not reply at first,
 because you seemed set on having a core Android team member answer, and I
 am not such a person. However, since your focus now seems to be on getting
 some sort of answer from anyone, here's my take on it:

  I have seen a number of threads discussing the deprecation
 ofAbsoluteLayout.  I'm a little fearful of reading third-party blogs
  that suggest solutions to the deprecation because in some discussion
  threads the Google employees have explicitly said the blogs contain
  misunderstandings or inaccuracies.

 According to Ms. Hackborn's most recent(?) post on the topic, while
 AbsoluteLayout is deprecated, it is not going away. Strategically, I
 suppose that means no new code should be built that relies upon
 AbsoluteLayout, but there is no need for a massive rush to the exits to
 abandon AbsoluteLayout for existing code.

 Personally, if I were in your shoes, I would aim to eliminate my
 dependency on AbsoluteLayout in the next few months. Note that eliminate
 the dependency on AbsoluteLayout could be simply a mental bookmark that,
 should AbsoluteLayout ever be truly removed from the platform, that you
 will be willing and able to maintain AbsoluteLayout yourself, based on the
 last implementation found in the Android open source project.

 But, again, Ms. Hackborn has indicated AbsoluteLayout is not going away,
 and so you may elect to not worry about this issue in the near term.

  So, I need to know how to implement my app's behavior
 withoutAbsoluteLayout.  I would greatly appreciate any input people
 might
  have, especially the real pros, the Android dev team who, by
  deprecatingAbsoluteLayout, must have a clear picture in their heads
  of how to reorganize code to be up-to-date to achieve the same
  functionality.  Romain Guy, Diane Hackborn, I'm looking your
  direction.  :-)

 I believe both of them, in related threads, indicated that the solution is
 to create your own layout manager, rather than use AbsoluteLayout or
 RelativeLayout or any of the other built-in ones.

 Unfortunately, I am unaware of any tutorials on exactly how to do this.
 You can probably examine the source of some of the existing layout
 managers to see how they do what they do.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!



 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: 1.5 api change - broken scrollbar resources

2009-05-14 Thread Romain Guy

The system scrollbar does not have a track anymore. Your code should
simply account for that possibility. The framework code does attempt
to load a scrollbar track but does not crash if no resource is
present.

On Wed, May 13, 2009 at 10:36 PM, Peter Carpenter
peter.carpen...@skytechnologies.com wrote:


 Hi all,

 I've just been attempting to upgrade my application to support 1.5 and
 discovered that I can no longer retrieve a resource for my scrollbar
 background.

 My app requires me to draw a scrollbar that I can use to control a
 custom component.

 Currently I was using the following code (which Jeff was kind enough to
 point me in the right direction of):

 TypedValue val = new TypedValue();
 if (context.getTheme().resolveAttribute(
       android.R.attr.scrollbarThumbVertical, val, true))
 {
    scrollThumb = getResources().getDrawable(val.resourceId);
 }
 if (context.getTheme().resolveAttribute(
       android.R.attr.scrollbarTrackVertical, val, true))
 {
    scrollTrack = getResources().getDrawable(val.resourceId);
 }

 However the 2nd getDrawable causes a ResourceNotFound exception so it
 appears the scrollbarTrackVertical has been removed??

 Does anyone know of any other ways to get the system scrollbar
 drawables? (or a system scrollbar by itself?)

 Regards,

 Peter.

 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: DexClassLoader caould not invoke method from another application properly

2009-05-14 Thread Ask

Hi Dianne,

Thanks a lot for your suggestion. Problem has been solved as I had
passed the Context of the application as an argument of invoked method
display().

Regards,

Asif

On May 14, 10:22 am, Dianne Hackborn hack...@android.com wrote:
 You seem to be passing in a bad ContextWrapper that somehow has a null base
 pointer:

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...

   85     public Toast(Context context) {

   86         mContext = context;

   87         mTN = new TN(context);

   88         mY = context.getResources().getDimensionPixelSize(

   89                 com.android.internal.R.dimen.toast_y_offset);

   90     }

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...

   76     @Override

   77     public Resources getResources()

   78     {

   79         return mBase.getResources();

   80     }





 On Wed, May 13, 2009 at 9:34 PM, Ask asifk1...@gmail.com wrote:

  Fadden,

    It throws these exceptions only when  I tried to create any UI
  component like Toast message or invoking phone dialer inents etc.  It
  executes nicely when I just tried to print a log message or created
  MediaPlayer and playing a song    .

   So my conclusion is that It throws NullPointerException only when
  invoked code has a UI component.

   Note: same thing I had tried using the normal desktop java
  application using swing and excuted nicely with UI component also. So
  Is this a bug in android or some other way to do it.

  Thanks,

  Asif

  On May 14, 3:28 am, fadden fad...@android.com wrote:
   On May 13, 8:05 am, Asif k asifk1...@gmail.com wrote:

   I had used DexClassLoader to execute the code of other application
dynamically. I am calling method display() of another application from
my application. The display() method will just show the Toast pop up.
   [...]
05-13 20:10:22.336: WARN/System.err(773): Caused by:
java.lang.NullPointerException
05-13 20:10:22.466: WARN/System.err(773):     at
android.content.ContextWrapper.getResources(ContextWrapper.java:79)
05-13 20:10:22.466: WARN/System.err(773):     at
android.widget.Toast.init(Toast.java:88)
05-13 20:10:22.477: WARN/System.err(773):     at
android.widget.Toast.makeText(Toast.java:230)
05-13 20:10:22.485: WARN/System.err(773):     ... 25 more

Please Help. Am I missing something??

   Looks like it was doing something and then hit a null pointer
   exception?

 --
 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.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: dynamically setting drawSelectorOnTop

2009-05-14 Thread Romain Guy

Oops my bad, you were talking about *Spinner*. Spinner does NOT
support android:drawSelectorOnTop, so there's no equivalent Java API.
Setting this attribute in XML has absolutely no effect (in particular
because a Spinner does not have a selector.)

On Wed, May 13, 2009 at 7:59 PM, damnesia r.spencer.wh...@gmail.com wrote:

 Yeah, I saw it in the documentation online but when I do
 spinner.setDrawSelectorOnTop(true); I get The method
 setDrawSelectorOnTop(boolean) is undefined for the type Spinner.

 I am using Android android-sdk-linux_x86-1.1_r1. Do I need to upgrade?

 Thank you for your time.


 On May 13, 2:59 pm, Romain Guy romain...@google.com wrote:
 It's in the documentation :) Hint, look for setDrawSelectorOnTop(boolean).

 On Wed, May 13, 2009 at 2:53 PM, damnesia r.spencer.wh...@gmail.com wrote:

  Is it possible to dynamically set the drawSelectorOnTop attribute on a
  Spinner instead of having to do it in the layout XML?

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: 1.5 api change - broken scrollbar resources

2009-05-14 Thread Peter Carpenter

Hi Romain,

That makes complete sense.  Will make appropriate changes.

Cheers,

Peter.

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy
Sent: Thursday, 14 May 2009 4:07 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: 1.5 api change - broken scrollbar resources


The system scrollbar does not have a track anymore. Your code should
simply account for that possibility. The framework code does attempt
to load a scrollbar track but does not crash if no resource is
present.

On Wed, May 13, 2009 at 10:36 PM, Peter Carpenter
peter.carpen...@skytechnologies.com wrote:


 Hi all,

 I've just been attempting to upgrade my application to support 1.5 and
 discovered that I can no longer retrieve a resource for my scrollbar
 background.

 My app requires me to draw a scrollbar that I can use to control a
 custom component.

 Currently I was using the following code (which Jeff was kind enough to
 point me in the right direction of):

 TypedValue val = new TypedValue();
 if (context.getTheme().resolveAttribute(
       android.R.attr.scrollbarThumbVertical, val, true))
 {
    scrollThumb = getResources().getDrawable(val.resourceId);
 }
 if (context.getTheme().resolveAttribute(
       android.R.attr.scrollbarTrackVertical, val, true))
 {
    scrollTrack = getResources().getDrawable(val.resourceId);
 }

 However the 2nd getDrawable causes a ResourceNotFound exception so it
 appears the scrollbarTrackVertical has been removed??

 Does anyone know of any other ways to get the system scrollbar
 drawables? (or a system scrollbar by itself?)

 Regards,

 Peter.

 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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




--~--~-~--~~~---~--~~
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] Options for synchroinizing data between Android and backend database

2009-05-14 Thread Lonifasiko

Hi all,

Wanted to develop a mobile application for Android devices that stores
data locally and synchonizes (bidirectionally) local data with a
database server every 'N' minutes. That is, instead of building a web
application accesible from Android's browser that forces me to be
always connected, I wanted to try the approach of sometimes
connected scenario.

I was thinking in using MySQL as server backend, but new to Android
and don't know which are the options to communicate and synchronize
data between mobile devices and servers. Is there any Android library
that makes this always hellish synchronization work easier?

What about Google Gears?

Thanks very much in advance.

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



[android-developers] UI problem

2009-05-14 Thread Sukitha Udugamasooriya

Hi geniuses,

I have few buttons on the content. When I click on one button,

1-- I want to change the text of the button.
2-- Then I want to change the content view.

this is my method which executes with the onClick event.

private void markUser(int index) {

btnArray[index].setText(mark);
btnArray[index].setClickable(false);

showGameOverMenu(); // calls the setContentView();
}

Here the problem is the text change of the button is not visible.

How can I make it visible??? I'm not thorough with how the UI thread
works in android

Thanks in advance

Sukitha
(wannaB android master ;))
--~--~-~--~~~---~--~~
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: Another AbsoluteLayout deprecation question

2009-05-14 Thread Keith Wiley

Right, and unlike some of the other posters who seemed to have a
slight more agitated tone, I really tried to emphasize that I want to
get on board with respect to this particular issue.  I'm not
complaining about AbsoluteLayout's deprecation at all, I just want to
write my code correctly, and if AbsoluteLayout is not the recommended
way to place one view at an arbitrary location on top of another view,
I was just wondering what *is* the recommended way.  I was getting
confused because some places said FrameLayout and RelativeLayout were
the solution, but other places were very clear that they weren't the
best solution.  I had also seen the suggestions of rolling a layout
manager on my own...I was just...a little unsteady about that.

I'll look into making my own layout manager.  Please consider how
confusing this is for those of us not already in the know.  For
example, I would assume this consists of writing my own layout class,
something akin to AbsoluteLayout or LinearLayout, etc.  The funny
thing, which I find very confusing, is that none of those are actually
subclasses of Layout!  They subclass ViewGroup, while Layout is some
other class which doesn't seem to have any direct connection to the
existing Layouts.  Thus my impending confusion.

I'll do some research on layout managers on my own first, the pointer
in that direction was sufficient, thank you...I'm just asking that you
please realize the apparent discrepancy in terminology which I find
confusing.

Cheers!

On May 13, 11:05 pm, Romain Guy romain...@google.com wrote:
 Again, AbsoluteLayout was deprecated to encourage developers to use
 real layout managers. AbsoluteLayout just won't work with other
 screen resolutions and densities. Like Dianne said, it won't go away
 but we want you guys to think very hard before using it. It is (most
 of the time) bad practice and will only come back to haunt you in the
 future.



 On Wed, May 13, 2009 at 11:00 PM, Mark Murphy mmur...@commonsware.com wrote:

  I believe I have politely and thoroughly stated my question.  Anyone
  have an answer?

  Everybody, even to an extent the core Android team folk on this list, is
  contributing answers on a volunteer basis. Lots of questions get asked
  here that do not get answered, for any number of reasons.

  Also, bear in mind that you sent your question less than 24 hours ago. Not
  everybody monitors this list continuously. If you need answers in that
  short of a timeframe, hire a consultant.

  I have watched your thread since its inception. I did not reply at first,
  because you seemed set on having a core Android team member answer, and I
  am not such a person. However, since your focus now seems to be on getting
  some sort of answer from anyone, here's my take on it:

   I have seen a number of threads discussing the deprecation
  ofAbsoluteLayout.  I'm a little fearful of reading third-party blogs
   that suggest solutions to the deprecation because in some discussion
   threads the Google employees have explicitly said the blogs contain
   misunderstandings or inaccuracies.

  According to Ms. Hackborn's most recent(?) post on the topic, while
  AbsoluteLayout is deprecated, it is not going away. Strategically, I
  suppose that means no new code should be built that relies upon
  AbsoluteLayout, but there is no need for a massive rush to the exits to
  abandon AbsoluteLayout for existing code.

  Personally, if I were in your shoes, I would aim to eliminate my
  dependency on AbsoluteLayout in the next few months. Note that eliminate
  the dependency on AbsoluteLayout could be simply a mental bookmark that,
  should AbsoluteLayout ever be truly removed from the platform, that you
  will be willing and able to maintain AbsoluteLayout yourself, based on the
  last implementation found in the Android open source project.

  But, again, Ms. Hackborn has indicated AbsoluteLayout is not going away,
  and so you may elect to not worry about this issue in the near term.

   So, I need to know how to implement my app's behavior
  withoutAbsoluteLayout.  I would greatly appreciate any input people
  might
   have, especially the real pros, the Android dev team who, by
   deprecatingAbsoluteLayout, must have a clear picture in their heads
   of how to reorganize code to be up-to-date to achieve the same
   functionality.  Romain Guy, Diane Hackborn, I'm looking your
   direction.  :-)

  I believe both of them, in related threads, indicated that the solution is
  to create your own layout manager, rather than use AbsoluteLayout or
  RelativeLayout or any of the other built-in ones.

  Unfortunately, I am unaware of any tutorials on exactly how to do this.
  You can probably examine the source of some of the existing layout
  managers to see how they do what they do.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

 --
 Romain Guy
 Android framework engineer
 

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-05-14 Thread Mariano Kamp
What's your app?

On Wed, May 13, 2009 at 6:53 PM, Sundog sunns...@gmail.com wrote:



  I think you can make the situation a lot better for yourself by 
  accepting that people generally suck.

 Sadly, yeah.

 Any moment now there will be an everything-should-be-free freak here
 saying that you should write code for the sake of your art, not for
 any expectation of monetary gain. Somehow we seem to be crawling with
 these types, and guess what? They're getting the crappy free software
 they deserve.

 I don't have this problem, thankfully. I have comments and ratings to
 die for and no troll problems at all. I attribut this almost entirely
 to the fact the my sales are well over 90% to women. So maybe that's
 your answer, lol.
 


--~--~-~--~~~---~--~~
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-Calendar, How to get first day of week?

2009-05-14 Thread daehoon

Hi, all
There is a string, it's value is 5-14-2009.
we know 14 is Wed,  so 12 is Monday. This week is begin by 12(Mon.).
How to get first day of week, when we know one of the date in the
week?

--~--~-~--~~~---~--~~
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: Polite discussion of lite/trial vs pro distribution

2009-05-14 Thread Mariano Kamp
There are lots of free loaders who don't want to pay for anything. And
there are lots of people with lots of free time creating free apps, thus
reinforcing the mentality of the free loaders.
Well, and it didn't help that Google screwed up with the release of paid
apps.
As you remember developers are not on equal footing. Paid apps were
available in mid of Q1, but only for developers from the US and UK. A major
screwup. If there is one thing we learned from Apple's Appstore then it's
this: The winner (of a category) takes it all.

So what should you have done as a developer from another country? I wanted
to release a paid version, but I couldn't. At the same time my competitors
released full versions of their apps. I tried to use Ads as a way to limit
my free, but fully functional version, but that only gave me bad reviews, no
money (of course, I knew that) and in the end I scraped even that. After
Google continued to disappoint me with their special communication style and
no end was in sight I gave up. There isn't that much functionality left that
I could implement to justify a paid version.
And now my app is free (as in beer) and will be the only significant app I
wrote for the Android platform. I invested 500 hours and I am not gonna do
that again for free. I can't do that to my girl friend and paying job
again.

Having said that. Since yesterday, some more countries were allowed to
promote the failure that is called Google Checkout. So at some point in
time, developers of new apps will be on equal footing.
And burned developers like me, will not pollute the Android Market anymore
with free apps that should have cost money.

So these are just growing problems and will go away soon. I think this is
part of the whole growing up thing, for Google and their Android Market, but
also for developers.
And maybe, in an ideal world, users will learn to appreciate paying for
polished, non-trivial software (like they do on the Mac platform), but I am
not holding my breath.

On the downside, I think, that Android is already established as a platform
for free loaders. Let's see how Palm handles this.

On Thu, Mar 19, 2009 at 7:21 PM, Mattaku Betsujin 
mattaku.betsu...@gmail.com wrote:

 I think you can make the situation a lot better for yourself by 
 accepting that people generally suck.

 There are lots of free loaders who don't want to pay for anything. And
 there are lots of people with lots of free time creating free apps, thus
 reinforcing the mentality of the free loaders.

 I think the people who complain about your paid app are a minority, albeit
 a loud one. So just ignore them and life goes on. Also, most paid apps on
 Android market are harnessed equally by the free loaders, so you're not the
 only one.

 If their comments on the market really bother you, then just get 3 G1
 accounts, and you can make sure that you always have 3 five-star comments on
 the first page :-)



 On Thu, Mar 19, 2009 at 9:28 AM, Al Sutton a...@funkyandroid.com wrote:


 My solution would be to leave the old version on the market, then, under
 a new name, have the lite and pro versions.

 Put in the 325 char description that the old app is not supported and
 people may want to look at the new app name.

 Al.

 Keith Wiley wrote:
  First I will explain my situation.  Then, I would greatly appreciate
  constructive dialog on how other developers feel similar situations
  should be managed.
 
  I wrote a simple app in November.  I offered it for free on the Market
  for two reasons.  One, Google hadn't implemented paid apps yet, so I
  had no choice.  Two, by my own admission, v1.0 was too simple too
  garner payment.
 
  However, in the app's documentation, I requested donations toward
  future development.  Out of thousands of installs, I received nothing.
 
  This week I finished a considerably fancier version of the program.
  Given hundreds of hours of unpaid development, I decided to charge a
  few bucks for the new version.  I split the app into lite and pro
  versions.  The lite version has all the new fancy features enabled but
  is limited in how large a document can be created (spread sheet, I
  limited the number of rows/cols, admittedly unlimited in the earlier
  version).  The pro version went to Market as a new app, the lite
  version on top of the old app to retain the long feedback history.
 
  Since the Market provides no way to downgrade, I put the old unlimited
  version on my website and put directions in the new lite version in
  multiple places explaining how to revert to the old version.  Thus,
  any user dissatisfied with the rol/col limit could restore the EXACT
  functionality they had before upgrading to the lite version.
 
  Incidentally, the 325 character blurb allotted on the Market was
  insufficient to list the new features and the lite version's
  limitation and the caveat that the lite version could be reverted
  through my website.  I simply could not communicate these facts to
  users to 

[android-developers] [set permission method] except for setting in the AndroidManifest.xml, where I can do?

2009-05-14 Thread Morris

Hi All:

Now I want to launch wifi and I implement this function in the
phonewindow.java . Due to the phonewindow.java is not a App,  it
belongs to framework level. So I couldn't find AndroidManifest.xml
file to set wifi permission.

Whether does anybody know except for AndroidManifest.xml could set
permission, where it can set permission?

Thanks a lot.

Sincerely,
Morris
--~--~-~--~~~---~--~~
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] Maps with custom tiles

2009-05-14 Thread khose

Hi!

I've been searching hardly the past two days, looking for a way to
implement a map view with custom map tiles. I mean; i have to use maps
tiles different than the ones provided by Google Maps.

Someone said here that there is a way, but he didn't tell the way to
do that. I know that you can do that with Google Maps API for Web, but
i've studied Android's API and i can't find a method to load your map
tiles.

I would appreciate any help and/or example to do this. I'm really
stucked and the client need this feature in the application.

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] Re: Android-Calendar, How to get first day of week?

2009-05-14 Thread Jeff Sharkey

You're probably looking for something like Time.weekDay, which you can
get at through Time.setToNow():

http://d.android.com/reference/android/text/format/Time.html#weekDay

From that weekDay, you can also get a localized string through
DateUtils.getDayOfWeekString().  Here's a quick example where I used
it to generate the correct string (Mon, Wed, etc.) based on a
given UTC time:

http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/DetailsActivity.java#181

j

On Thu, May 14, 2009 at 12:01 AM, daehoon jeondaeh...@gmail.com wrote:

 Hi, all
 There is a string, it's value is 5-14-2009.
 we know 14 is Wed,  so 12 is Monday. This week is begin by 12(Mon.).
 How to get first day of week, when we know one of the date in the
 week?

 




-- 
Jeff Sharkey
jshar...@google.com

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



[android-developers] Re: Force close msg for few seconds when application starts, why?

2009-05-14 Thread dillirao malipeddi
Please go through API demos

In that progress bar examples are give and really help full

Thank you

On Wed, May 13, 2009 at 12:20 PM, sheik sheik...@gmail.com wrote:


 Thanks...the above refrence and sample code really helped in
 understanding threads and UI in android...

 Now i am looking for progress bar examples whr i can add it and make
 it enable wen i am sending data to the internet..

 Kindly suggest on it...


 regards,
 sheik

 On May 11, 5:19 pm, dillirao malipeddi dillir...@arijasoft.com
 wrote:
  bellow code will connect to the url specified in the
   start_Download_Content(  url to connect);
 
  and prints the response. may be this will help you
 
  and also set timeout as 10 sec
 
  import java.io.File;
  import java.io.FileOutputStream;
  import java.io.IOException;
 
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.ResponseHandler;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.BasicResponseHandler;
  import org.apache.http.impl.client.DefaultHttpClient;
  import org.apache.http.params.BasicHttpParams;
  import org.apache.http.params.HttpConnectionParams;
  import org.apache.http.params.HttpParams;
 
  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;
 
  public class download extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  startDownload();
  }
  /*
  static final String talam_vedike_chotu = 
 http://www.arijasoft.com/customer_demos/Arija_Android_Dev/sdk/aor/cho...
  ?;
  String okato_argument = testnuller;
  String rendo_argument = null;
  String aakari_padasmooham = talam_vedike_chotu + mana_thalam= +
  okato_argument + vadi_thalam= + rendo_argument ;
  String sodhana_falitham = new String();
  */
  private void startDownload()
  {
  // TODO Auto-generated method stub
   Runnable downloader = new Runnable()
   {
  @Override
  public void run()
  {
  // TODO Auto-generated method stub
   start_Download_Content(http://your
  connection);
   }
   };
   new Thread(downloader).start();
   }
 
  public String start_Download_Content(String url_Pls)//throws Exception
  {
 
   int TIMEOUT_MILLISEC = 1; //=10sec
   HttpParams my_httpParams = new BasicHttpParams();;
   HttpConnectionParams.setConnectionTimeout(my_httpParams,
  TIMEOUT_MILLISEC);  //set connection time out
  HttpConnectionParams.setSoTimeout(my_httpParams,
 TIMEOUT_MILLISEC);
   // set socket time out
  HttpClient httpclient = new DefaultHttpClient(my_httpParams);
  //get
  http client with given params
  String responseBody = null;
 
 try
 {
 
  HttpGet httpget = new HttpGet(url_Pls);
 
  Log.i(PLS CONTENT GET,executing request  + httpget.getURI());
 
  // Create a response handler
  ResponseHandlerString responseHandler = new
  BasicResponseHandler();
 
  responseBody = httpclient.execute(httpget, responseHandler);
  }
 catch(Exception e)
 {
 Log.i(Exception,Http Connection+e.toString());
 }
 
  String _Content = responseBody;
 
  Log.i(,-START---);
  Log.i(Response,+_Content);
  Log.i(,---END-);
 
 return pls_Content;
 
  }
   }
 
 
 
  On Mon, May 11, 2009 at 5:23 PM, sheik sheik...@gmail.com wrote:
 
   Hi..
i am facing similar problem..as i am using network connection in the
   main threadcan u fwd any code regarding creating thread inorder to
   send the request...and thus avoiding force close error...
 
   kindly help in this regard..
 
   thanking you..in advance..
 
   regards,
   Sheik;
 
   On Mar 13, 4:40 pm, dillirao malipeddi dillir...@arijasoft.com
   wrote:
don't do any complex operations like network connection.. etc on main
   thread
for those operations use separate thread
 
if any time taken operations on main thread will cause fource close
exception
 
try to keep main thread as simple as possible..
 
On Fri, Mar 13, 2009 at 5:05 PM, zeeshan genx...@gmail.com wrote:
 
 Hi Android Experts,
 
 i am having a force close Dialogue msg for few seconds when i run
 my
 application.
 can anyone tell me why is that and how can i resolve it.
 do i need to use thread to start my main activity?
 
 any solution?
 
--
Dilli Rao. M
 
  --
  Dilli Rao. M
 



-- 
Dilli Rao. M

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

[android-developers] Re: ListView filtering with soft keyboard

2009-05-14 Thread Strickidinho

Is there a way to test this behavior in the simulator? I tryed, but
nothing happened when I long pressed the menu key.

And I want to implement it in a way that no hard keyboard is needed.
Is there a way to do this?

On 13 Mai, 17:28, Romain Guy romain...@google.com wrote:
 Long press the menu key. This works only on devices with no hard keyboards.

 On Wed, May 13, 2009 at 6:26 AM, Strickidinho stsandr...@googlemail.com 
 wrote:

  Hello,

  how can I use the newsoftkeyboardto filter aListView?

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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: Menu on the center of the screen if style inherit from Theme.Dialog

2009-05-14 Thread Adrien Guichard

2009/5/14 andreas andreas.str...@googlemail.com

 I have the same problem - any solution?

 Greetings,
 Andreas

AFAIK, no. The same problem occurs with Android Cupcake too. I reply
to Android developper ML, because there is no better way to display my
app, I would be happy to know how to solve this.


The problem was (Would like to open a bug report but do not know how
to do it...):

if my custom Activity style inherite from android:style/Theme.Dialog:
       style name=MyTransparent parent=android:style/Theme.Dialog
       /style

The menu associated with my activity pop up on the center of the screen.

Is this the expected behaviour ?
Is there any workaround ?


Thanks for your support,
Adrien

--~--~-~--~~~---~--~~
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: [set permission method] except for setting in the AndroidManifest.xml, where I can do?

2009-05-14 Thread Dianne Hackborn
Hi, discussion about working on the platform should be in android-porting.
(And you can't do this, because PhoneWindow is part of the client-side
frameworks, so runs in every application process.)

On Thu, May 14, 2009 at 12:34 AM, Morris morrischen.c...@gmail.com wrote:


 Hi All:

 Now I want to launch wifi and I implement this function in the
 phonewindow.java . Due to the phonewindow.java is not a App,  it
 belongs to framework level. So I couldn't find AndroidManifest.xml
 file to set wifi permission.

 Whether does anybody know except for AndroidManifest.xml could set
 permission, where it can set permission?

 Thanks a lot.

 Sincerely,
 Morris
 



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

--~--~-~--~~~---~--~~
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 set two or more List in one layout?

2009-05-14 Thread daehoon

hi all,,
I want to set some lists in one layout,
but I found it's only recognize the first ListView .
anyone help??
--~--~-~--~~~---~--~~
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: [set permission method] except for setting in the AndroidManifest.xml, where I can do?

2009-05-14 Thread Morris

Hi Diannel:

Thanks a lot.

Sorry I post in the error place.
Could you help me to clarify where I should post about whether there
is another method of setting permission?
Because my focus is not to port wifi, it's for setting permission
method.

Thank you very much

Morris

On 5月14日, 下午4時50分, Dianne Hackborn hack...@android.com wrote:
 Hi, discussion about working on the platform should be in android-porting.
 (And you can't do this, because PhoneWindow is part of the client-side
 frameworks, so runs in every application process.)



 On Thu, May 14, 2009 at 12:34 AM, Morris morrischen.c...@gmail.com wrote:

  Hi All:

  Now I want to launch wifi and I implement this function in the
  phonewindow.java . Due to the phonewindow.java is not a App,  it
  belongs to framework level. So I couldn't find AndroidManifest.xml
  file to set wifi permission.

  Whether does anybody know except for AndroidManifest.xml could set
  permission, where it can set permission?

  Thanks a lot.

  Sincerely,
  Morris

 --
 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.
--~--~-~--~~~---~--~~
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: UI problem

2009-05-14 Thread Sukitha Udugamasooriya

Yeahh.. I found out..

runOnUiThread() is the solution

Thread t = new Thread() {
public void run() {
f.runOnUiThread(new Runnable() {
@Override
public void run() {
holdGame(3000);

setContentView(R.layout.game_end_menu);
initGameOver();
}
});
}
};
t.start();
--~--~-~--~~~---~--~~
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: How read /data directory ?

2009-05-14 Thread Francesco Pace
Dianne, one question.
It's possibile execute DD command from application (Terminal emulator) for
copying all internal memory on sdcard?

2009/5/13 Francesco Pace paxa...@gmail.com

 Ok, thanks for all Dianne, now I try with another way to implement my
 application.


 2009/5/12 Dianne Hackborn hack...@android.com

 You can't.


 On Mon, May 11, 2009 at 11:18 PM, Francesco Pace paxa...@gmail.comwrote:

 Thanks Dianne.
 But, in my java application, I have to copy total internal memory on my
 sdcard, how I do it?
 Precisely, I want read my contact data, my sms data and my calendar data
 (events) and copy all on sdcard.
 Can you help me?

 2009/5/11 Dianne Hackborn hack...@android.com

  Correct, applications can't read that directory.  They can only read
 their own sub-directiry,


 On Mon, May 11, 2009 at 8:10 AM, Cecco paxa...@gmail.com wrote:


 Hi,
 sorry for my english, I'am an italian student.
 I need help. I have to open, from my application, /data directory, but
 using the ls -l command in adb shell, I read following lines :

 drwxrwx--x System System  2009-05-08   11:28 data

 and when I launch this code :

 File data = new File(/data);
 if(data.isDirectory()){
   Log.v(TAG, directory);
 }
 String []child = data.list();
 Log.v(TAG, String.valueOf(child.length));

 I have this output :

 directory
  0
 

 So my application is not able to read files located into this
 directory.
 Somebody can help me?





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









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


 



--~--~-~--~~~---~--~~
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: Cannot Retrieve Latitude and Longitude without Internet Connection

2009-05-14 Thread Eddy Leo

Thanks for the reply..

Now I am clear. thanks

On May 13, 11:40 am, ellipsoidmob...@googlemail.com
ellipsoidmob...@googlemail.com wrote:
 I believe the NETWORK_PROVIDER does require Internet access, because
 it sends details about cell towers (and possibly wifi hotspots) within
 range to a server and gets an approximate lat/long in return. In other
 words, Android does not contain internally a complete database of the
 locations of all of the cell towers in the world.

 I think it should work with any Internet connection - e.g. 3G or GPRS
 should work as well as WiFi
--~--~-~--~~~---~--~~
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: Polite discussion of lite/trial vs pro distribution

2009-05-14 Thread mirko

Hi Mariano,

yes, I know what you mean. I was in the same position and wanted to
start before my 'competitors', so I decided to start very early with a
free 'beta'. I think this was the right direction because it still the
only application for this porpose. I will keep a limited version in
the future and will start the next weeks with a 'Pro license' that
will switch off some limitations in the free version. Now we can offer
paid apps from Germany. We will see, which negative comments I will
get for this... If you are interested in a pro license you can have a
look at

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

Mirko

P.S. Great little app your NewsRob, I loaded it 2 months ago ;-)

On 14 Mai, 09:18, Mariano Kamp mariano.k...@gmail.com wrote:
 There are lots of free loaders who don't want to pay for anything. And

 there are lots of people with lots of free time creating free apps, thus
 reinforcing the mentality of the free loaders.
 Well, and it didn't help that Google screwed up with the release of paid
 apps.
 As you remember developers are not on equal footing. Paid apps were
 available in mid of Q1, but only for developers from the US and UK. A major
 screwup. If there is one thing we learned from Apple's Appstore then it's
 this: The winner (of a category) takes it all.

 So what should you have done as a developer from another country? I wanted
 to release a paid version, but I couldn't. At the same time my competitors
 released full versions of their apps. I tried to use Ads as a way to limit
 my free, but fully functional version, but that only gave me bad reviews, no
 money (of course, I knew that) and in the end I scraped even that. After
 Google continued to disappoint me with their special communication style and
 no end was in sight I gave up. There isn't that much functionality left that
 I could implement to justify a paid version.
 And now my app is free (as in beer) and will be the only significant app I
 wrote for the Android platform. I invested 500 hours and I am not gonna do
 that again for free. I can't do that to my girl friend and paying job
 again.

 Having said that. Since yesterday, some more countries were allowed to
 promote the failure that is called Google Checkout. So at some point in
 time, developers of new apps will be on equal footing.
 And burned developers like me, will not pollute the Android Market anymore
 with free apps that should have cost money.

 So these are just growing problems and will go away soon. I think this is
 part of the whole growing up thing, for Google and their Android Market, but
 also for developers.
 And maybe, in an ideal world, users will learn to appreciate paying for
 polished, non-trivial software (like they do on the Mac platform), but I am
 not holding my breath.

 On the downside, I think, that Android is already established as a platform
 for free loaders. Let's see how Palm handles this.

 On Thu, Mar 19, 2009 at 7:21 PM, Mattaku Betsujin 

 mattaku.betsu...@gmail.com wrote:
  I think you can make the situation a lot better for yourself by 
  accepting that people generally suck.

  There are lots of free loaders who don't want to pay for anything. And
  there are lots of people with lots of free time creating free apps, thus
  reinforcing the mentality of the free loaders.

  I think the people who complain about your paid app are a minority, albeit
  a loud one. So just ignore them and life goes on. Also, most paid apps on
  Android market are harnessed equally by the free loaders, so you're not the
  only one.

  If their comments on the market really bother you, then just get 3 G1
  accounts, and you can make sure that you always have 3 five-star comments on
  the first page :-)

  On Thu, Mar 19, 2009 at 9:28 AM, Al Sutton a...@funkyandroid.com wrote:

  My solution would be to leave the old version on the market, then, under
  a new name, have the lite and pro versions.

  Put in the 325 char description that the old app is not supported and
  people may want to look at the new app name.

  Al.

  Keith Wiley wrote:
   First I will explain my situation.  Then, I would greatly appreciate
   constructive dialog on how other developers feel similar situations
   should be managed.

   I wrote a simple app in November.  I offered it for free on the Market
   for two reasons.  One, Google hadn't implemented paid apps yet, so I
   had no choice.  Two, by my own admission, v1.0 was too simple too
   garner payment.

   However, in the app's documentation, I requested donations toward
   future development.  Out of thousands of installs, I received nothing.

   This week I finished a considerably fancier version of the program.
   Given hundreds of hours of unpaid development, I decided to charge a
   few bucks for the new version.  I split the app into lite and pro
   versions.  The lite version has all the new fancy features enabled but
   is limited in how large a document can be 

[android-developers] View object clonning

2009-05-14 Thread Raja Nagendra Kumar

Hi,

Is it possible to clone a view. If no, how to support clone of a view
in custom views. If yes.. which api should we use. clone method seems
to be protected for view.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com


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



[android-developers] Re: Interrupt testing

2009-05-14 Thread Raja Nagendra Kumar

Any inputs pl.. looking to kill all the application specific
background activities and see if my application is behaving propertly.


--~--~-~--~~~---~--~~
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 would ScrollView not scroll completely?

2009-05-14 Thread Teo

If i try to scroll everything down completely, through code, it always
stops short of the task, something like a few pixels, why would that
be?

I've tried scrollBy, scrollTo, and also fullScroll
(ScrollView.FOCUS_DOWN).

Thanks,
Teo

P.S. Manually i can scroll completely.
--~--~-~--~~~---~--~~
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] gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Matthias

Hi,

I think I've lost enough hair over this, so now I'll ask. What is the
difference between those attributes? According to the documentation of
R.attr, there isn't any difference (doc text is exactly the same, see
http://developer.android.com/reference/android/R.attr.html), but
apparently, that's simply not true. For example, the gravity attribute
can be used on EditText to set the text alignment (e.g. left, center,
right).

I often found that neither of them work to align a view at all. For
example, I need to float two text views in a relative layout, one
going to the left below a title bar, the other going to the right
below the title bar. So what I did was this:

RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent

!-- the title bar --
ImageView ...
/ImageView

TextView android:id=@+id/left_text
android:layout_below=@id/title_bar
android:layout_gravity=left
...
/

TextView android:id=@+id/right_text
android:layout_below=@id/title_bar
android:layout_gravity=right
...
/

/RelativeLayout

That doesn't work, however. The left text is indeed aligned to the
left inside its parent (the relative layout), but the right text is
not aligned to the right; instead, it's placed directly to the right
of the left text.

Why's that?

Thanks,
Matthias

--~--~-~--~~~---~--~~
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: Polite discussion of lite/trial vs pro distribution

2009-05-14 Thread Mariano Kamp
On Thu, May 14, 2009 at 1:33 PM, mirko mirkocze...@googlemail.com wrote:

 If you are interested in a pro license you can have a
 look at


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

Thanks for the link.


 P.S. Great little app your NewsRob, I loaded it 2 months ago ;-)

Thanks.

Besides the monetary benefits or the lack thereof I learned a lot during the
development. I also now have an app that does exactly what I think a Google
Reader client should do - and what I've never found on any other platform.
No matter how cool Palm's pre or the iPhone 3.0/4G will be, I am staying
with Android as a user, until somebody brings out a better app for this
purpose on another platform.

So even though my comments from above (about the Android Market and its
rollout) may sound like I am bitter, I am not.

--~--~-~--~~~---~--~~
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] Many Lists in one Layout ?

2009-05-14 Thread daehoon

hi all,,
I want to set some lists in one layout,
but I found it's only recognize the first ListView .
how to write xml file ?
anyone help?
--~--~-~--~~~---~--~~
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] Is it faster to draw directly on a portrait or a landscape layout?

2009-05-14 Thread admin.androidsl...@googlemail.com

Presumably one layout or other must be native to the O/S and the other
layout needs an expensive internal rotation + transformation in order
to display in correct position.
--~--~-~--~~~---~--~~
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] SurfaceView very flickery on scrolling images

2009-05-14 Thread admin.androidsl...@googlemail.com

I know we are advised to use SurfaceView to maximise performance etc.
but I still get very flickery results on scrolling images. It is
particularly noticeable on the edges of the images and I predict my
users will complain about this if I release!

I have checked memory allocation and there is no gc being performed,
just the regular surface view code taken from the Lunar Lander
example.

I get much better performance using a regular View but there I have
the issue that it doesn't feel double-buffered and I see the image
being built up of all its elements and this is only helped marginally
if I try to record first to a Picture object either.

Any advice on how to achieve smooth scrolling?
--~--~-~--~~~---~--~~
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: Start a program in background

2009-05-14 Thread jhonny

So, if you discover teach me and if I discover I explain...
OK?

On 13 maio, 15:12, Mark Murphy mmur...@commonsware.com wrote:
  I'm trying to do a program...and I wanna know how do I put the program
  in background!!

 Look at services.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _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: Start a program in background

2009-05-14 Thread jhonny

hahahah sory I didn't understandI'll lock in services
thanks

On 13 maio, 15:12, Mark Murphy mmur...@commonsware.com wrote:
  I'm trying to do a program...and I wanna know how do I put the program
  in background!!

 Look at services.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _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: Video with MediaRecorder

2009-05-14 Thread zeeshan

i am getting  ERROR/MediaRecorder(1003): setVideoSource called in an
invalid state(4)

at this line
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);

can you please help me to figure out what is the problem.
i am using the same code Anders wrote above

On May 7, 11:50 pm, Jason Proctor ja...@particularplace.com wrote:
 btw, since streaming movies via HTTP requires the moov atom to be
 ahead of the mdat atom in the file, it would therefore be handy if
 MediaRecorder wrote the file like that :-)

 will this be fixed do you think? wondering whether i should just
 write that piece of code anyway.

 --
 jason.software.particle
--~--~-~--~~~---~--~~
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: Many Lists in one Layout ?

2009-05-14 Thread UBZack

I'm guessing that all of your layouts except one are ending up with a
zero width, or zero length.  In any case, the simplest way I can think
of to put multiple lists in the same layout is to use LinearLayout,
and set a pixel height to each list:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:background=#
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView android:id=@+id/text_view
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello/

ListView android:id=@+id/list_1
android:layout_width=fill_parent
android:layout_height=100px
android:layout_below=@id/text_view/

ListView android:id=@+id/list_2
android:layout_width=fill_parent
android:layout_height=100px
android:layout_below=@id/list_2/

ListView android:id=@+id/list_3
android:layout_width=fill_parent
android:layout_height=100px
android:layout_below=@id/list_3/

/LinearLayout

You can set the pixel height in either the xml or in the code by
calling ListView.setMinimumHeight, which is best called in either your
onCreate or onStart override methods of your activity.

Here's some source code:
http://www.bungeebot.net/AndMultiList.zip

On May 14, 8:34 am, daehoon jeondaeh...@gmail.com wrote:
 hi all,,
 I want to set some lists in one layout,
 but I found it's only recognize the first ListView .
 how to write xml file ?
 anyone help?
--~--~-~--~~~---~--~~
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] Internet on OMAP ZOOM

2009-05-14 Thread swapnil

Hi all,

Can any one tell me that any special procedure we have to follow to
use Internet  google maps on OMAP ZOOM board.

I am working behind Proxy server.


Thank you all in advance.


Regards;

Swapnil Dalal.
--~--~-~--~~~---~--~~
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: Is it faster to draw directly on a portrait or a landscape layout?

2009-05-14 Thread a druid

The faster orientation will depend on your device.
phone A can have native landscape, while phone B can have native
portrait.

for a given device you should probably look at the display driver to
find out
which orientation is 'native'.


On May 14, 3:29 pm, admin.androidsl...@googlemail.com
admin.androidsl...@googlemail.com wrote:
 Presumably one layout or other must be native to the O/S and the other
 layout needs an expensive internal rotation + transformation in order
 to display in correct position.
--~--~-~--~~~---~--~~
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: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-14 Thread Andrew Shomette

Are you still having this problem?  Do you get SDK ping errors?

If this is the problem, Google engineers have released a new version
of their ADT plugin.  Install that one.

If it is something else, let me know. I can do my best to help you.
You might have to go into the options and direct it to the location of
the android-sdk-location\tools location manually if you didn't put
it in the standerd directory (which on Vista I cannot remember for the
life of me what it is).

Andrew

On May 13, 11:35 pm, chrispix chris...@gmail.com wrote:
 Not sure what is going on. Running Windows Vista x64.
 Not had really any problems with eclipse. I had to upgrade to 1.5 and
 when I did that I got all kinds of install errors. So I said 'f-it'. I
 decided to start over and downloaded the 1.5SDK, downloaded the
 Eclipse for Java, Not Eclipse classic (someone said that was an
 issue). So now I have Eclipse for Java (or something to that name).
 Each time I try to compile it says 'Unknown Error: SDK is not loaded
 yet'

 Can someone assist me please? 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] understanding the permission-group tag

2009-05-14 Thread Lutz Schönemann

Hi,

I need some help to understand the use of permission-group tag in  
AndroidManifest files. Is there any need of using permission-group and  
what benefit offers this grouping? Is there a plus security using it?  
Does anyone know an example when to use it?

Thanks for help
Lutz

--~--~-~--~~~---~--~~
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-Calendar, How to get first day of week?

2009-05-14 Thread mirko

I think, the class GregorianCalendar provides all information you are
looking for (getFirstDayOfWeek). This class will take care of your
locale, because the first day of the week is not the same all over the
world.

I also use SimpleDateFormat very often to make conversions between
String and Date.

Mirko

On 14 Mai, 10:01, Jeff Sharkey jshar...@android.com wrote:
 You're probably looking for something like Time.weekDay, which you can
 get at through Time.setToNow():

 http://d.android.com/reference/android/text/format/Time.html#weekDay

 From that weekDay, you can also get a localized string through
 DateUtils.getDayOfWeekString().  Here's a quick example where I used
 it to generate the correct string (Mon, Wed, etc.) based on a
 given UTC time:

 http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/...

 j

 On Thu, May 14, 2009 at 12:01 AM, daehoon jeondaeh...@gmail.com wrote:

  Hi, all
  There is a string, it's value is 5-14-2009.
  we know 14 is Wed,  so 12 is Monday. This week is begin by 12(Mon.).
  How to get first day of week, when we know one of the date in the
  week?

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



[android-developers] Re: Is it faster to draw directly on a portrait or a landscape layout?

2009-05-14 Thread Romain Guy

It doesn't really matter, especially on a G1. The screen orientation
is handled at the low level by SurfaceFlinger so the orientation
doesn't impact the actual Skia (SGL) drawing commands. The rotation
itself is handled by a special hardware chip on G1.

On Thu, May 14, 2009 at 6:29 AM, admin.androidsl...@googlemail.com
admin.androidsl...@googlemail.com wrote:

 Presumably one layout or other must be native to the O/S and the other
 layout needs an expensive internal rotation + transformation in order
 to display in correct position.
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-14 Thread Streets Of Boston

I had similar issues.

I have no idea exactly how i fixed it. At some point i noticed i
forgot to set the target for each project i have (target is 1.1 or
1.5) and after setting this, and after re-starting Eclipse, refreshing
and rebuilding, the issue was resolved. I don't know if this was *the*
fix, but at least part of it :-)


On May 13, 11:35 pm, chrispix chris...@gmail.com wrote:
 Not sure what is going on. Running Windows Vista x64.
 Not had really any problems with eclipse. I had to upgrade to 1.5 and
 when I did that I got all kinds of install errors. So I said 'f-it'. I
 decided to start over and downloaded the 1.5SDK, downloaded the
 Eclipse for Java, Not Eclipse classic (someone said that was an
 issue). So now I have Eclipse for Java (or something to that name).
 Each time I try to compile it says 'Unknown Error: SDK is not loaded
 yet'

 Can someone assist me please? 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: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Romain Guy

Hi,

Well, first of all RelativeLayout ignores layout_gravity. Then you
need to know that gravity means apply gravity to the content of this
view whereas layout_gravity means apply gravity to this view within
its parent. So on a TextView, gravity will align the text within the
bounds of the TextView whereas layout_gravity will align the TextView
within the bounds of its parent.

On Thu, May 14, 2009 at 5:31 AM, Matthias m.kaepp...@googlemail.com wrote:

 Hi,

 I think I've lost enough hair over this, so now I'll ask. What is the
 difference between those attributes? According to the documentation of
 R.attr, there isn't any difference (doc text is exactly the same, see
 http://developer.android.com/reference/android/R.attr.html), but
 apparently, that's simply not true. For example, the gravity attribute
 can be used on EditText to set the text alignment (e.g. left, center,
 right).

 I often found that neither of them work to align a view at all. For
 example, I need to float two text views in a relative layout, one
 going to the left below a title bar, the other going to the right
 below the title bar. So what I did was this:

 RelativeLayout
    xmlns:android=http://schemas.android.com/apk/res/android;
    android:layout_width=fill_parent
    android:layout_height=fill_parent

    !-- the title bar --
    ImageView ...
    /ImageView

    TextView android:id=@+id/left_text
        android:layout_below=@id/title_bar
        android:layout_gravity=left
        ...
        /

    TextView android:id=@+id/right_text
        android:layout_below=@id/title_bar
        android:layout_gravity=right
        ...
        /

 /RelativeLayout

 That doesn't work, however. The left text is indeed aligned to the
 left inside its parent (the relative layout), but the right text is
 not aligned to the right; instead, it's placed directly to the right
 of the left text.

 Why's that?

 Thanks,
 Matthias

 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: UI problem

2009-05-14 Thread Romain Guy

This code is just wrong: you are starting a new thread just to run
code back on the UI thread. All your code amounts to doing nothing but
run the content of the run() method. Even worse, if holdGame(3000)
triggers a thread sleep, you are blocking the UI thread.

On Thu, May 14, 2009 at 2:59 AM, Sukitha Udugamasooriya
suk...@gmail.com wrote:

 Yeahh.. I found out..

 runOnUiThread() is the solution

                Thread t = new Thread() {
                        public void run() {
                                f.runOnUiThread(new Runnable() {
                                       �...@override
                                        public void run() {
                                                holdGame(3000);
                                                
 setContentView(R.layout.game_end_menu);
                                                initGameOver();
                                        }
                                });
                        }
                };
                t.start();
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: View object clonning

2009-05-14 Thread Romain Guy

Hi,

It is not possible. You could do it manually by simply copying your
custom attributes and initializing the base class in the exact same
way.

On Thu, May 14, 2009 at 4:55 AM, Raja Nagendra Kumar
nagendra.r...@tejasoft.com wrote:

 Hi,

 Is it possible to clone a view. If no, how to support clone of a view
 in custom views. If yes.. which api should we use. clone method seems
 to be protected for view.

 Regards,
 Raja Nagendra Kumar,
 C.T.O
 www.tejasoft.com


 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Streets Of Boston

As a side-note: I think the TextView's (and EditText) 'gravity' should
have been called 'alignment'. It's called that way in most UI's.  :=)


On May 14, 10:54 am, Romain Guy romain...@google.com wrote:
 Hi,

 Well, first of all RelativeLayout ignores layout_gravity. Then you
 need to know that gravity means apply gravity to the content of this
 view whereas layout_gravity means apply gravity to this view within
 its parent. So on a TextView, gravity will align the text within the
 bounds of the TextView whereas layout_gravity will align the TextView
 within the bounds of its parent.





 On Thu, May 14, 2009 at 5:31 AM, Matthias m.kaepp...@googlemail.com wrote:

  Hi,

  I think I've lost enough hair over this, so now I'll ask. What is the
  difference between those attributes? According to the documentation of
  R.attr, there isn't any difference (doc text is exactly the same, see
 http://developer.android.com/reference/android/R.attr.html), but
  apparently, that's simply not true. For example, the gravity attribute
  can be used on EditText to set the text alignment (e.g. left, center,
  right).

  I often found that neither of them work to align a view at all. For
  example, I need to float two text views in a relative layout, one
  going to the left below a title bar, the other going to the right
  below the title bar. So what I did was this:

  RelativeLayout
     xmlns:android=http://schemas.android.com/apk/res/android;
     android:layout_width=fill_parent
     android:layout_height=fill_parent

     !-- the title bar --
     ImageView ...
     /ImageView

     TextView android:id=@+id/left_text
         android:layout_below=@id/title_bar
         android:layout_gravity=left
         ...
         /

     TextView android:id=@+id/right_text
         android:layout_below=@id/title_bar
         android:layout_gravity=right
         ...
         /

  /RelativeLayout

  That doesn't work, however. The left text is indeed aligned to the
  left inside its parent (the relative layout), but the right text is
  not aligned to the right; instead, it's placed directly to the right
  of the left text.

  Why's that?

  Thanks,
  Matthias

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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

 - Show quoted text -
--~--~-~--~~~---~--~~
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: ListView filtering with soft keyboard

2009-05-14 Thread Romain Guy

The emulator (the simulator is something else) has a hard keyboard, so
no you cannot test it.

 And I want to implement it in a way that no hard keyboard is needed.
 Is there a way to do this?

You could probably do something by forcing the soft keyboard to show
up but it would most likely interfere with was ListView is trying to
do. And even worse, your app would behave differently from other apps
and it would just confuse the users. Stick to the standard behaviors.

-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: Another AbsoluteLayout deprecation question

2009-05-14 Thread Romain Guy

 if AbsoluteLayout is not the recommended
 way to place one view at an arbitrary location on top of another view,
 I was just wondering what *is* the recommended way.

Custom layout or FrameLayout.

 I was getting
 confused because some places said FrameLayout and RelativeLayout were
 the solution, but other places were very clear that they weren't the
 best solution.

FrameLayout is just fine, I don't understand why other developers
claim it is not. You can specify the margins of the widgets, which is
basically like giving them absolute coordinates. Note that I strongly
advise against doing so.

 I had also seen the suggestions of rolling a layout
 manager on my own...I was just...a little unsteady about that.

Don't be. It's easy and usually you can achieve much more control over
your layout as well as much better performance. You can look at the
source code of Home (in the SDK's samples) or Launcher (in the
platform's source code) to see two examples of custom layouts. I
myself write custom layouts in my apps because I can make them do
exactly what I want.

 I'll look into making my own layout manager.  Please consider how
 confusing this is for those of us not already in the know.  For
 example, I would assume this consists of writing my own layout class,
 something akin to AbsoluteLayout or LinearLayout, etc.  The funny
 thing, which I find very confusing, is that none of those are actually
 subclasses of Layout!

Because there's no Layout class. Well, there is one but it belongs to
the *text* package. Just ignore it.

-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Romain Guy

It used to be called something like that but we decided to unify the
names across all widgets.

On Thu, May 14, 2009 at 7:58 AM, Streets Of Boston
flyingdutc...@gmail.com wrote:

 As a side-note: I think the TextView's (and EditText) 'gravity' should
 have been called 'alignment'. It's called that way in most UI's.  :=)


 On May 14, 10:54 am, Romain Guy romain...@google.com wrote:
 Hi,

 Well, first of all RelativeLayout ignores layout_gravity. Then you
 need to know that gravity means apply gravity to the content of this
 view whereas layout_gravity means apply gravity to this view within
 its parent. So on a TextView, gravity will align the text within the
 bounds of the TextView whereas layout_gravity will align the TextView
 within the bounds of its parent.





 On Thu, May 14, 2009 at 5:31 AM, Matthias m.kaepp...@googlemail.com wrote:

  Hi,

  I think I've lost enough hair over this, so now I'll ask. What is the
  difference between those attributes? According to the documentation of
  R.attr, there isn't any difference (doc text is exactly the same, see
 http://developer.android.com/reference/android/R.attr.html), but
  apparently, that's simply not true. For example, the gravity attribute
  can be used on EditText to set the text alignment (e.g. left, center,
  right).

  I often found that neither of them work to align a view at all. For
  example, I need to float two text views in a relative layout, one
  going to the left below a title bar, the other going to the right
  below the title bar. So what I did was this:

  RelativeLayout
     xmlns:android=http://schemas.android.com/apk/res/android;
     android:layout_width=fill_parent
     android:layout_height=fill_parent

     !-- the title bar --
     ImageView ...
     /ImageView

     TextView android:id=@+id/left_text
         android:layout_below=@id/title_bar
         android:layout_gravity=left
         ...
         /

     TextView android:id=@+id/right_text
         android:layout_below=@id/title_bar
         android:layout_gravity=right
         ...
         /

  /RelativeLayout

  That doesn't work, however. The left text is indeed aligned to the
  left inside its parent (the relative layout), but the right text is
  not aligned to the right; instead, it's placed directly to the right
  of the left text.

  Why's that?

  Thanks,
  Matthias

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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

 - Show quoted text -
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
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 can i parse epub file

2009-05-14 Thread zeeshan

Hi,

i am wondering if there is any way to parse and display epub file in
android?
--~--~-~--~~~---~--~~
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: Question: How to guestimate the available bitmap memory on a device

2009-05-14 Thread Streets Of Boston

That's what i do right now. My app does its best to have as much
memory as possible before starting to open a big image for editing (i
have written a notification-system that caches and other classes can
register with. They'll then get notified when bitmap memory is
necessary, asking them to free as much 'bitmap memory' as possible
(and other memory if necessary)).

But if an OOM error still happens, i catch it, clearing even more
memory and putting up a Toast to warn the user something has gone
wrong and that he/she may try again.

This scheme works quite well, but my app would like to know if it
could open a full-sized image in 32-bit color or a if it should
present the user with the option to select full-size image with 16bit
color or a half-sized image in 32bit color. For now, i'm using this
hard-coded 6MByte as a limit for maximum image size.


On May 14, 12:00 am, Dianne Hackborn hack...@android.com wrote:
 You can always catch the exception.

 On Wed, May 13, 2009 at 4:59 PM, Todd tdonahue...@gmail.com wrote:

  So, how does one programatically determine the amount of heap space
  free including space used by bitmap memory? Is there such a way? I
  would prefer to inform my users that there isn't enough memory to load
  their image rather than getting an OOM and have the app exit.

 --
 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.
--~--~-~--~~~---~--~~
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 SDK Content Loader gets stuck....

2009-05-14 Thread Raphael

On Fri, May 8, 2009 at 11:11 PM, az9...@gmail.com az9...@gmail.com wrote:

 After I switched to SDK 1.5,  the Android SDK Content Loader is stuck
 when Eclipse starts.
 In my case, it is always stuck at 60%.


Interesting. Can you help me debug this? I'd like to understand where
it gets stuck.

If you're on Linux, start Eclipse from the command-line. IIRC when it
gets stuck press Control-C and it will dump a stack trace of all the
threads.

In case the Control-C trick doesn't work, e.g. if you're on Windows, I
successfully used the StackTrace tool from
http://www.adaptj.com/main/download in the past, it's a web start for
Linux, MacOS and Windows : point it to the Eclipse JVM and it will
create a stack trace of the running threads.

Please do that if you can and email me the stack trace privately (it's
quite long).

Thanks in advance
R/

--~--~-~--~~~---~--~~
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: Installing the USB driver for HTC Magic on Vista

2009-05-14 Thread Raphael

On Sat, May 9, 2009 at 9:21 AM, notthegingeron...@googlemail.com
notthegingeron...@googlemail.com wrote:

 Hi Guys,

 Does anyone know how to install the usb driver for the HTC magic?
 Whenever I plug in the phone and select to mount is as a mass storage
 device, it gets mounted, but no New Hardware wizzard appears.  I've
 enabled USB debugging in the settings, please help :)

There are actually two protocols going over the usb cable: the file
transfer (mounting the sdcard) and the ADB debugging protocol. They
are totally different things.

- If you want to transfer files from the sdcard, you do not need an USB driver.

- If you want to debug with adb, ant or Eclipse, you need to use the
USB driver that comes with your SDK. You need to enable debugging on
the device first in the settings. See
http://d.android.com/guide/developing/device.html#setting-up

R/

--~--~-~--~~~---~--~~
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: How to debug android source code using eclipse?

2009-05-14 Thread Nio

Thanks Keith,but the link can't be open. Could you tell me the steps
to getting up?

On 5月14日, 上午3时32分, Keith Wiley kbwi...@gmail.com wrote:
 Both on the emulator and by USB to a physical device.  Yes.  I can't
 remember which documents in the dev guide got me up and running.  Try
 this one:

 http://developer.android.com/guide/developing/eclipse-adt.html

 On May 13, 7:33 am, Nio luodali...@gmail.com wrote:



  Hi ,
  Is there a way to debug Android source code with eclipse?
--~--~-~--~~~---~--~~
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: EMMA Code coverage and JUnit

2009-05-14 Thread Felipe Ramos

Hi everyone

I discovered a way of getting the android code instrumented, using the
full source from google.

On the project Android.mk I added the line EMMA_INSTRUMENT:=true and
voilá, it instrumented the code. Now I'm facing problems to run the
instrumented code. Although emma.jar is inside the image and installed
correctly during emulator startup, I keep getting errors that indicate
that Android is not being able to find the classes provided by emma. I
tried to force the usage of emma library by adding on the test
manifest  uses-library android:name=emma / but if I do that, it
does not allow me to install the test application because Android
thinks that emma library is missing.

Does anyone have any ideas that I could try to fix this problem. I
really think I'm near of solving this puzzle, but I could not find the
last part yet.

On May 11, 9:00 pm, Richard Cook richardgc...@gmail.com wrote:
 I as well am looking to understand how  o build an emma instrumented test.
 I am unable to find any information on EMMA through SDK or through the web.

 Maybe the three of us can pool our resources and keep this thread alive to
 a.) get noticed, b.) get some code coverage.

 For those catching on:http://emma.sourceforge.net/intro.htmlis the place to 
 download EMMA (I
 assume). It may also be included in the SDK, I haven't verified this. It may
 need to be modified to run with Android?

 The command lines above work for me, but no files are generated. I have
 added EMMA to the build path.

 Has anyone had any luck yet? I've also considered Clover as an alternative
 to generating reports, but I have no progress there either.

 2009/5/10 天山雪 xuey.b...@gmail.com



  1. did you download and set classpath for emma.jar?
  2. after that, you could get coverage.ec file.
  But it's not right file for coverage report in my test. Perhaps other
  things need to be done.
  currently I don't know how to get an emma instrumented build, which is
  needed for coverage test.

  On 5月8日, 下午7时19分, Deeps l.prade...@gmail.com wrote:
   I had been surfing for the past one month on this Code coverage. But
   its disappointing that there is no clear documentation on using EMMA
   code coverage for Android.

   case 1: I am trying to execute from Command prompt.
   I have sucessfully implemented instrumentation class for my
   application. I would like to go for code coverage. I executed the
   following command in the cmd line:

   adb shell am instrument -w -e coverage true com.android.app/
   android.test.InstrumentationTestRunner

   adb shell am instrument -w -e coverageFile /sdcard/codefile.ec
   com.android.app/android.test.InstrumentationTestRunner

   Also i have configured to run with sdcard.. I could see that all my
   test cases are executed but no coverage file is generated at '/
   sdcard'.

   case 2: I am trying to execute from eclipse.
   When i did all coverage configuration settings and try to run the
   application, it pops up a message saying,
No coverage data file has been written during this coverage session.
   Please make sure that your application does NOT include EMMA run time
   libraries or EMMA configurations.Do not terminate java process
   manually from Eclipse

   Please do clarify my error.

   Is there a right solution to get the code coverage for Android
   applications...?

   Pradeepa

--~--~-~--~~~---~--~~
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: EMMA Code coverage and JUnit

2009-05-14 Thread Felipe Ramos

Hi guys,

I don't know if this thread is still active, but I spent some hours
trying to make the EMMA instrumented code generation works.

I actually came pretty close of getting it, I think. You can use the
EMMA_INSTRUMENT:=true on the project Android.mk file to turn on the
EMMA instrumentation for that project. Everything seems to work, but
at the end I get a bizarre error on Calendar Tests:


target Java: Calendar (out/target/common/obj/APPS/
Calendar_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
EMMA: processing instrumentation path ...
EMMA: instrumentation path processed in 703 ms
EMMA: [119 class(es) instrumented, 11 resource(s) copied]
EMMA: metadata merged into [/work/android3/out/target/common/obj/APPS/
Calendar_intermediates/coverage.em] {in 51 ms}
Copying: out/target/common/obj/APPS/Calendar_intermediates/classes.jar
target Dex: Calendar

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.code.SimException: local variable type mismatch:
attempt to set or access a value of type java.lang.String[] using a
local variable of type java.lang.String. This is symptomatic of .class
transformation tools that ignore local variable information.
at com.android.dx.cf.code.BaseMachine.throwLocalMismatch
(BaseMachine.java:537)
at com.android.dx.cf.code.BaseMachine.getLocalTarget(BaseMachine.java:
392)
at com.android.dx.cf.code.BaseMachine.storeResults(BaseMachine.java:
519)
at com.android.dx.cf.code.ValueAwareMachine.run
(ValueAwareMachine.java:196)
at com.android.dx.cf.code.RopperMachine.run(RopperMachine.java:290)
at com.android.dx.cf.code.Simulator$SimVisitor.visitLocal
(Simulator.java:542)
at com.android.dx.cf.code.BytecodeArray.parseInstruction
(BytecodeArray.java:472)
at com.android.dx.cf.code.Simulator.simulate(Simulator.java:96)
at com.android.dx.cf.code.Ropper.processBlock(Ropper.java:681)
at com.android.dx.cf.code.Ropper.doit(Ropper.java:636)
at com.android.dx.cf.code.Ropper.convert(Ropper.java:253)
at com.android.dx.dex.cf.CfTranslator.processMethods
(CfTranslator.java:252)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:
131)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
at com.android.dx.command.dexer.Main.processClass(Main.java:297)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
at com.android.dx.command.dexer.Main.access$100(Main.java:56)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:
228)
at com.android.dx.cf.direct.ClassPathOpener.processArchive
(ClassPathOpener.java:245)
at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:130)
at com.android.dx.cf.direct.ClassPathOpener.process
(ClassPathOpener.java:108)
at com.android.dx.command.dexer.Main.processOne(Main.java:245)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
at com.android.dx.command.dexer.Main.run(Main.java:139)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:87)
...at bytecode offset 00b7
locals[]: Lcom/google/android/googleapps/IGoogleLoginService$Stub;
locals[0001]: I
locals[0002]: Landroid/os/Parcel;
locals[0003]: Landroid/os/Parcel;
locals[0004]: I
locals[0005]: invalid
locals[0006]: invalid
locals[0007]: invalid
locals[0008]: invalid
locals[0009]: [Z
...while working on block 00b7
...while working on method onTransact:(ILandroid/os/Parcel;Landroid/os/
Parcel;I)Z
...while processing onTransact (ILandroid/os/Parcel;Landroid/os/
Parcel;I)Z
...while processing com/google/android/googleapps/IGoogleLoginService
$Stub.class

1 error; aborting


Really strange error. I'll keep trying to find out how to fix this.

Thanks

Felipe


On May 11, 9:00 pm, Richard Cook richardgc...@gmail.com wrote:
 I as well am looking to understand how  o build an emma instrumented test.
 I am unable to find any information on EMMA through SDK or through the web.

 Maybe the three of us can pool our resources and keep this thread alive to
 a.) get noticed, b.) get some code coverage.

 For those catching on:http://emma.sourceforge.net/intro.htmlis the place to 
 download EMMA (I
 assume). It may also be included in the SDK, I haven't verified this. It may
 need to be modified to run with Android?

 The command lines above work for me, but no files are generated. I have
 added EMMA to the build path.

 Has anyone had any luck yet? I've also considered Clover as an alternative
 to generating reports, but I have no progress there either.

 2009/5/10 天山雪 xuey.b...@gmail.com



  1. did you download and set classpath for emma.jar?
  2. after that, you could get coverage.ec file.
  But it's not right file for coverage report in my test. Perhaps other
  things need to be done.
  

[android-developers] Android Power Management

2009-05-14 Thread Prashant Bhujang
Dear All,

Android has provided Power management framework for saving batterlife. But this 
is limited to screen/key lights. I am exploring ways to enhance this scheme for 
other use cases like camera, media playback by changing CPU frequency. I would 
like to know what support is available for this from Android kernel.


Regards


Prashant Bhujang

Engineering Project Manager
A R I C E N T
Tel: +91 80 41069000
Direct: +91 80 41069572
Mobile   +91 9845231775



DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus.

--~--~-~--~~~---~--~~
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 power-on process

2009-05-14 Thread Tim Bird

On Tue, May 12, 2009 at 11:22 PM, HelloWorld xiaolong_...@yahoo.com.cn wrote:

 Dear all,
I am studying Android power-on routine (including how many
 processes are launched in system init stage and the launch sequence of
 them )these days. Would you please point me if there is any document
 regarding this topic available? Thank you in advance.

You should turn on bootchart, which is supported in /init.
Documentation on this is available in system/core/init/README.BOOTCHART

There's a page describing how use bootchart with Android, at:
http://elinux.org/Using_Bootchart_on_Android

On that elinux page, there's a sample bootchart of cupcake in an emulator
(on a rather slow desktop system).

If other people have sample bootchart images, maybe they can upload
them to the wiki page?

 -- Tim

--~--~-~--~~~---~--~~
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] Prevent clearing Canvas in onDraw() ?

2009-05-14 Thread twan

Good Morning,

I'm trying to paint on a Canvas by overriding the onDraw method.
That works without problems.
But everytime the onDraw method is called for example by calling
invalidate() the entire canvas is cleared.
If i for example draw a circle when onDraw is called first, this
circle is gone when onDraw is called the next time.

How can i make sure the circle drawn in a previous onDraw call stays
in place?

I rather not draw them all everytime, cause i'm actually not drawing
circles but bitmaps.

Thanks,
Twan

--~--~-~--~~~---~--~~
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: automatic location finder

2009-05-14 Thread Georgy

Hello Zhubham,

did you find a solution to your question? I have the same issue.

thanks

On Apr 18, 6:12 am, Zhubham sahilz...@gmail.com wrote:
 Hi Experts,

 I want to integrate an additional automaticlocationfinder
 functionality in android already existingmapapplication. The idea is
 to retrieve the currentlocationfromGPSand automatically focus
 first to your city and then the area. BUT, how do i retrievelocation
 fromGPS(this would be the same as it comes on top right corner of
 every mobile phone).

 Please help me with this.

 Thanks in advance.

 Best Regards,
 Zhubham.

--~--~-~--~~~---~--~~
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] ListView: Get the Highlighted Item

2009-05-14 Thread Vinicius Santos
Dear all, I'm having trouble to get the index of the active highlighted Item
on a List View.

Please, help me to get the index of the highlighted item

public class HelloForm extends Activity {


  ListView lv; // my listview

 /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.main);

lv = (ListView)findViewById(R.id.myListView);

ArrayAdapterString aa = new
ArrayAdapterString(getApplicationContext(),
android.R.layout.simple_list_item_1,
COUNTRIES);
lv.setAdapter(aa);

final ImageButton button = (ImageButton)
findViewById(R.id.android_button);
button.setOnClickListener(new ImageButton.OnClickListener() {
public void onClick(View v) {


int position = /* /HERE IS THE PROBLEM, HOW CAN I GET THE
HIGHLIGHTED POSITION*

String country = (String)lv.getItemAtPosition(position);

DBInterface db = new DBInterface(lv.getContext());
db.open();
long id_Text;
id_Text = db.insertTitle(country);
db.close();
if(id_Text == -1 )
Toast.makeText(HelloForm.this, Error writing DB,
Toast.LENGTH_SHORT).show();
// Perform action on clicks
   // Toast.makeText(HelloForm.this, Beep Bop,
Toast.LENGTH_SHORT).show();
}
});

final ImageButton button_red = (ImageButton)
findViewById(R.id.android_button_red);
button_red.setOnClickListener(new ImageButton.OnClickListener() {

public void onClick(View v) {

DBInterface db = new DBInterface(v.getContext());
//---get all titles---
db.open();
Cursor c = db.getAllCountries();
if (c.moveToFirst())
{
do {
DisplayTitle(c);
} while (c.moveToNext());
}
db.close();
// Perform action on clicks
   // Toast.makeText(HelloForm.this, Beep Bop,
Toast.LENGTH_SHORT).show();
}
});
}

--~--~-~--~~~---~--~~
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: User input in an AppWidget?

2009-05-14 Thread pMay

How did they code the Google Search Widget?
Is that a hack?

On Apr 16, 7:47 am, Jeff Sharkey jshar...@android.com wrote:
 Jon, you're right, there isn't a direct way of including an EditText
 into a widget.

 The major reason for this is we don't have a good way of identifying
 how that text should be sent back across a PendingIntent.  To solve
 this from the framework side, one approach would to add the text to
 the extras bundle with the R.id of the EditText as the key, and using
 Intent.fillIn() when sending the PendingIntent.  But then we run into
 issues when there is a button that should also trigger an action: do
 we bundle any+all EditText values with that intent as well?

 Instead of solving this problem with the hack described above, we're
 holding off until we come up with a better solution.

 A workaround in the meantime might be to have the PendingIntent launch
 an activity with Theme.Dialog or Theme.Panel that contains an
 EditText.

 j



 On Wed, Apr 15, 2009 at 8:00 PM, Jon Colverson jjc1...@gmail.com wrote:

  Hello.

  I've been looking at the new 1.5_pre SDK today, and the new AppWidget
  API in particular. I was hoping to write a widget for posting to
  Twitter as part of my nanoTweeter app. The interface I had in mind
  would look very similar to the Google Search widget, with an EditText
  and a submit Button, but as far as I can see there's no way to get at
  user input in a RemoteViews. Is that right, or am I overlooking
  something?

  Thanks.

  --
  Jon

 --
 Jeff Sharkey
 jshar...@android.com

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



[android-developers] How can I get the logging ID gmail

2009-05-14 Thread uooyou

Every G1 user would bind a gmail. I think this gmail can identify a G1
user. But how can I get the gmail ID? 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] How do I add a EditText Field to an AppWidget (RemoteViews)

2009-05-14 Thread pMay

Hello,

I am trying to add a EditText Field to an AppWidget.
I took the AppWidget example from here:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/andr
oid/apis/appwidget/index.html
and modified it by replacing the TextView with a EditText.
It doesnt work...
Compiles and runs but the Widget sais Problem loading Widget when it
shows up.

Can somone please give me a hint? Maybe an example?
Is the default Google Search Widget open source?
Can someone give ma a link to the source?

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: apk manual install problem Failure [-12]

2009-05-14 Thread sujoydas1...@gmail.com

Hi All,

I have downloaded a video player app act 1 from the net and tried to
install it on emulator and I got the dreaded Failure [-12] message.
Now, I don't have any way to ask the developer to get a new build for
me. Any idea what can be done regarding this issue?

BR,

Sujoy

On May 12, 11:32 pm, Sukitha Udugamasooriya suk...@gmail.com wrote:
 Thank you Android Users  Mark. It works now.
 Changed build target to Android 1.5 and Min SDK version to 1. I was
 using SDK 1.5 r1 and my friend was using SDK 1.0 r2.
 best Regards

 Sukitha...

--~--~-~--~~~---~--~~
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] Sending Email using android app

2009-05-14 Thread Salman Wahid

Hi

I am trying to send email using the andriod application
I have tried the following code. The problem i am facing is that the
email intent is opened
but the send to address, subject and body i snot copied to the email
intent.
and can any one tell what if  i want to sent a pic as an
attachement.

regards
Salman

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra
(Intent.EXTRA_EMAIL,salmanwa...@gmail.com);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, Test Mail);
sendIntent.putExtra(Intent.EXTRA_TEXT,This is a Test 
mail);
sendIntent.setType(*/*);
startActivity(sendIntent);

--~--~-~--~~~---~--~~
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] Location.convert possible bug

2009-05-14 Thread Andrew O.

I'm getting an illegal argument exception when trying to convert a
coordinate in degrees:minutes:seconds.decimal format with the minute
value is 59 and the seconds is greater than 0.  I think the function
compares seconds and they must be less than 59, where they should be
less than 60.

Here is the error with the coordinate:

05-13 22:27:57.071: ERROR/AndroidRuntime(3924): Caused by:
java.lang.IllegalArgumentException: coordinate=30:26:59.5644
05-13 22:27:57.071: ERROR/AndroidRuntime(3924): at
android.location.Location.convert(Location.java:249)

Please let me know if this is a bug or a feature :-)

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] Unable to open files

2009-05-14 Thread SlumberMachine

No matter what I do I am unable to open a file, either in my app's
data directory or on the sdcard and also in a folder on the sdcard.
To test I placed a test.txt file in all three directories. Here is the
code I've tried:

String fname = text.txt;
File rFile = new 
File(/sdcard/mytestfolder/ + fname);

I also have tried this:

file://+Environment.getExternalStorageDirectory()+/test.txt

along with all sorts of other ways of writing it.

When I do listfiles, I get the correct list of files set in an array.
I've even tried getting the list and filtering out a specific file and
try opening it that way and just trying the first item in the array.

Is there some security that may be set that is making it so I cant
open files? This is not the emulator, it is on a device.

--~--~-~--~~~---~--~~
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: problems with my htc magic

2009-05-14 Thread allian...@groupmedianet.com

yes

I have tried all of that, and no success



On May 14, 3:47 am, Johnny johnnylee...@gmail.com wrote:
 Have you tried 
 this:http://developer.android.com/guide/developing/device.html#setting-up?

 On May 14, 7:25 am, petunio juanjosegilmen...@hotmail.com wrote:

  Hi everybody

  I am trying to install apk's in my new htc magic

  I had before a G1 and I didn't found any problem, just doing adb
  install myapp.apk and that's it

  now, when I do the same with my htc, it says error: device not found
  Also, I noticed that if I type adb devices, I dont get any device
  shown...

  I have also done the following settings in the mobile, with no luck:

  settings-applications-unknown sources (checked)
  settings-applications-development-usb debugging (checked)
  settings-applications-development-allow mock locations (checked)

  I know that is not a problem with the usb cable, as I have tried a few
  of them, including the one that was working with the G1...
  It could be a problem with the usb drivers, but everything seems fine
  in my device manager...

  has anybody come across this problem?

  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: SDK 1.5: unable to send SMS to another emulator

2009-05-14 Thread Laurie


Same for me. With the 1.5 SDK toolkit, I cannot send or receive SMS/
Calls using TWO EMULATOR INSTANCES on the same development machine.
**Simulating incoming calls and SMS messages using the emulator
console via telnet works fine. Using DDMS in Eclipse works fine.

I am using Windows Vista, using distinct AVDs, both the Dialer/
Messaging applications and port numbers (eg. 5554 and 5556).

I have tried both launching both emulator instances through Eclipse,
as well as one with Eclipse and one from the command line. Neither
method works.

These features worked fine in Android 1.1.

I hope we get an answer to this query soon.

-LED

--~--~-~--~~~---~--~~
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: what is tag/branch for SK 1.5_r1

2009-05-14 Thread e21u...@gmail.com

i started issue about it
http://code.google.com/p/android/issues/detail?id=2631

it seems nobody knows the answer to seemingly simple question

who is biuilding official SDK? how to find that person(s) and/or
documentation how they do it? what is truck factor for it?! hopefully
not 1 ... http://www.agileadvice.com/archives/2005/05/truck_factor.html
or Android is in trouble :(

Alex

On May 11, 10:40 am, e21u...@gmail.com e21u...@gmail.com wrote:
 hi,

 i would like to check out from git the source codde that is equivalen
 to android.jar for 1.5 (sdk\platforms\android-1.5\android.jar) - i
 want to have it so i can get source code for exactly the SDK version
 otherwise i get all those problems of slight incompatibilities (most
 scary are in View API that added protected field - for details 
 seehttp://groups.google.com/group/android-framework/browse_thread/thread...)

 Anybody succeded doing it?

--~--~-~--~~~---~--~~
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] adb install failure with return code -12

2009-05-14 Thread HUANG Quan

hi guys,
I just installed android sdk1.5 on a ubuntu 8.04 machine. The IDE
is eclipse3.4 with ADT.
I created a HelloAndroid project with only the automatically
generated code. It compiled successfully and worked on the emulator.
But when I tried to install the apk to my G1. It failed with only
return code [-12].
I tried anroid 1.1 and android 1.5. The results are the same. But
my G1 works fine when the sdk is 1.1.
Any idea?

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: getting location name from lat, lon

2009-05-14 Thread nishi1607

Hello jj,
Is your problem solved?
I found that there are apis in android.location to get all.
Geocoder class is basically used to give the location based on
lat ,long nad viceversa.
I am writing a code to get the latitude,longi and then location based
on that lat and long.
It is wrong somewhere.But you can just see Geocoder 's getFromLocation
(), to get the location from lat long.
I am also struggling to do the same.If urs is working ,do rep...


public void onLocationChanged(Location location) {
Double lat =location.getLatitude();
Double longitude =location.getLongitude();

Geocoder ge=new Geocoder( ctx.getApplicationContext());
try {
ListAddress address=ge.getFromLocation(lat, 
longitude, 3);
for(int i=0;i=address.size();i++){


ad=new Address(Locale.ENGLISH);
ad=address.get(i);
 String city=ad.getSubAdminArea();
 TextView tv=new TextView(this);
 tv.append(city);
 setContentView(tv);


}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}//new ArrayListAddress();


}

Regards,
Nish


On May 5, 12:35 pm, mf-team emmeffet...@gmail.com wrote:
 Hi jj,

 GeoLocation API is currently available as part of Google Gears but, as
 far as i know, still not included in the Android platform. The only
 solution is to call an external service in order to get the
 information you need. In my opinion an external web service call will
 also be the solution taken by the Android platform in the case this
 functionality will be bundled in one of the future releases. The
 amount of data needed is too big for such a small device.
 Regards,
         MF

 On May 5, 7:51 am, jj jagtap...@gmail.com wrote:



  hello everybody

  Is there any API method{[android.location  pack ] to get location
  name?
  did not find related method to to retrieve location name for given
  GeoPoint(lat,lon);

  I wanted to keep list of location names for particular GeoPoints
  (lat,Lon)
  in journey.

  can this be achievable in Android to calculate the name of location
  from lat , lon. please guide for soluation.

  thank you- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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 can I use IM app in 1.5

2009-05-14 Thread AufWiderzhen

Hi,

IM app doesn't appeared in cupcake 1.5

I changed the make file, So IM.apk installed.

Buf it doean't appeared yet.

I think there isn't plugin information about server connection.

If I use MSN, how can I set the plugin information.

thank you

--~--~-~--~~~---~--~~
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 get OpenGLContext class in Android 1.5 SDK

2009-05-14 Thread Himu

How to get OpenGLContext class in Android 1.5 SDK?

Is it atall possible.

Is there any e-book/open-book for android SDK ?

Thanks
Himadri Sekhar
APT / Kolkata

--~--~-~--~~~---~--~~
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 for App.Widget

2009-05-14 Thread pMay

It doesnt work with 1.5?

On May 6, 10:32 am, Mr.No f.hi...@arcor.de wrote:
 Hello,
 in which Android-SDK version their will be a EditText for the
 App.Widget?

--~--~-~--~~~---~--~~
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 power-on process

2009-05-14 Thread Tim Bird

On Tue, May 12, 2009 at 11:29 PM, Mark Murphy mmur...@commonsware.com wrote:
 Questions regarding the Android firmware are best asked on a list
 pertaining to the Android firmware:

 http://source.android.com/discuss

It's not obvious to me which list that would be.  The only two that I see
that might be firmware-related are the kernel list and the developer list
(this one).  Is there one I'm missing?
 -- Tim

--~--~-~--~~~---~--~~
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] Question on performance of layout inflater

2009-05-14 Thread Guru
I have question on what is the best approch to take.I have a header view in
all my screens of the app.

So is it best to have the setContent of the header view and then adding the
views by inflating them in the sub-class activity as below

Base extends Activity{

private Linearlayout mHeader;
   public void onCreate(Bundle b){
   setContentView(R.layout.header);

 mHeader = (LinearLayout)findViewById(R.id.myheader);
 }

}

MyView extends Base{
 public void onCreate(Bundle b){
m_Inflater = LayoutInflater.from(this);
ViewGroup layout = (ViewGroup)
m_Inflater.inflate(R.layout.actual_layout,
mHeader );
}

}

Or is it ideal to have the include tag in the xmls and setContentView at
once.
-- 
Thanks and Regards
Gurudutt P.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
-~--~~~~--~~--~--~---



[android-developers] how can the contact be writen to SIM card?

2009-05-14 Thread 蓝思中
Hi guys, I am trying to store a contact in the SIM card, but I found nothing
for it in the G1 phone. Then, I assumed that it may be because G1's
application doesn't use the API for that storage, so I tried the following
code,

   ContentValues values = new ContentValues();

values.put( name,  );

values.put( number, 10086 );

getContentResolver().insert( Uri.parse(content://sim/adn), values
 );


it just failed, doing nothing. What is wrong? how can I make it to SIM card?
Thank you.

--~--~-~--~~~---~--~~
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: Enabling LOGD messages in Webkit

2009-05-14 Thread Carol

I want to know how to enable log messages in native webkit C++ code
too.

I tried the steps posted by Anonymous in this discussion (using
logcat on my G1 device).  I'm able to get logs for some of the webkit
files (e.g. webcore\dom\Node.cpp), but unable to get logs for some
other files (e.g. webcore\bindings\js\GCController.cpp).  Anyone know
why?

--~--~-~--~~~---~--~~
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] calendar bu g?

2009-05-14 Thread andylau

I am sorry。maybe this bug is found already。

when we long press the none-current month day,
then the popup is displayed。 we select the “New event” item to create
a new event, then we will find
that the time is current month day。

--~--~-~--~~~---~--~~
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: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread matthias

Guys,

thanks for clearing up! I'll file a bug against the documentation
then, because there it says:

public static final int  gravity

Specifies how to place an object, both its x and y axis, within a
larger containing object.

Which is true for layout_gravity, but not gravity. Apart from that, I
solved my problem by wrapping the two TextViewS in a horizontal
LinearLayout and setting the left text to have a larger weight than
the right text, so that it pushes the right text to the edge of the
container (which is a good solution for me, because the left text has
dynamic length, while the right one is fixed). I suspected this would
work, but I first refused to try it, because somewhere in the docs or
on Romain's blog it was mentioned that using LinearLayoutS and weights
would be more expensive than using e.g. a RelativeLayout, because of
additional layout measurement cycles.

It would be great though if things like these (i.e. that
RelativeLayout ignores layout_gravity) would appear somewhere in the
documentation. It's not immediately apparent to people why for some
layouts the gravity is simply ignored, and for others it's not.

Anyway, thanks!

On May 14, 5:02 pm, Romain Guy romain...@google.com wrote:
 It used to be called something like that but we decided to unify the
 names across all widgets.

 On Thu, May 14, 2009 at 7:58 AM, Streets Of Boston



 flyingdutc...@gmail.com wrote:

  As a side-note: I think the TextView's (and EditText) 'gravity' should
  have been called 'alignment'. It's called that way in most UI's.  :=)

  On May 14, 10:54 am, Romain Guy romain...@google.com wrote:
  Hi,

  Well, first of all RelativeLayout ignores layout_gravity. Then you
  need to know that gravity means apply gravity to the content of this
  view whereas layout_gravity means apply gravity to this view within
  its parent. So on a TextView, gravity will align the text within the
  bounds of the TextView whereas layout_gravity will align the TextView
  within the bounds of its parent.

  On Thu, May 14, 2009 at 5:31 AM, Matthias m.kaepp...@googlemail.com 
  wrote:

   Hi,

   I think I've lost enough hair over this, so now I'll ask. What is the
   difference between those attributes? According to the documentation of
   R.attr, there isn't any difference (doc text is exactly the same, see
  http://developer.android.com/reference/android/R.attr.html), but
   apparently, that's simply not true. For example, the gravity attribute
   can be used on EditText to set the text alignment (e.g. left, center,
   right).

   I often found that neither of them work to align a view at all. For
   example, I need to float two text views in a relative layout, one
   going to the left below a title bar, the other going to the right
   below the title bar. So what I did was this:

   RelativeLayout
      xmlns:android=http://schemas.android.com/apk/res/android;
      android:layout_width=fill_parent
      android:layout_height=fill_parent

      !-- the title bar --
      ImageView ...
      /ImageView

      TextView android:id=@+id/left_text
          android:layout_below=@id/title_bar
          android:layout_gravity=left
          ...
          /

      TextView android:id=@+id/right_text
          android:layout_below=@id/title_bar
          android:layout_gravity=right
          ...
          /

   /RelativeLayout

   That doesn't work, however. The left text is indeed aligned to the
   left inside its parent (the relative layout), but the right text is
   not aligned to the right; instead, it's placed directly to the right
   of the left text.

   Why's that?

   Thanks,
   Matthias

  --
  Romain Guy
  Android framework engineer
  romain...@android.com

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

  - Show quoted text -

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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] Created APNs don't show up in APN list (fw 1.5)

2009-05-14 Thread jappit

Hi,

I have a piece of code that creates some APNs with this call:
--
getContentResolver().insert(Uri.parse(content://telephony/carriers),
apnData);
--
The APNs are correctly created both on fw 1.1 and 1.5 (a query
correctly returns them) but on fw 1.5 they don't show up in the device
APN settings screen.

Has anyone any hints on the reasons of this behavior?

Thanks,
Pit
--~--~-~--~~~---~--~~
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: Prevent clearing Canvas in onDraw() ?

2009-05-14 Thread ellipsoidmob...@googlemail.com

By overriding onDraw you're taking responsibility for drawing the
whole view, so you have to draw everything everytime

I don't know the layout of your UI, but possibly you can use a view
layout with view subclasses such as ImageView - these will then take
care of their own drawing evenrs.
--~--~-~--~~~---~--~~
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: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-14 Thread Raphael

Please check:
1- that you put the SDK path in windows  preferences  android
   = Note that this pref dialog should list the 3 sdk targets
available in 1.5_r1.

2- that you selected the SDK target (1.1 or 1.5) in the properties of
your project.

R/

On Wed, May 13, 2009 at 8:35 PM, chrispix chris...@gmail.com wrote:

 Not sure what is going on. Running Windows Vista x64.
 Not had really any problems with eclipse. I had to upgrade to 1.5 and
 when I did that I got all kinds of install errors. So I said 'f-it'. I
 decided to start over and downloaded the 1.5SDK, downloaded the
 Eclipse for Java, Not Eclipse classic (someone said that was an
 issue). So now I have Eclipse for Java (or something to that name).
 Each time I try to compile it says 'Unknown Error: SDK is not loaded
 yet'

 Can someone assist me please? 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: ListView filtering with soft keyboard

2009-05-14 Thread Strickidinho

Thanks for the reply.

I'll not implement a filte feature on my list. I've found out that
there is a bug (Issue 2078) with listview and checkbox items. And
until this is fixed the whole thing makes no sense. I hope this bug
will be fixed soon.

On 14 Mai, 16:58, Romain Guy romain...@google.com wrote:
 The emulator (the simulator is something else) has a hard keyboard, so
 no you cannot test it.

  And I want to implement it in a way that no hard keyboard is needed.
  Is there a way to do this?

 You could probably do something by forcing the soft keyboard to show
 up but it would most likely interfere with was ListView is trying to
 do. And even worse, your app would behave differently from other apps
 and it would just confuse the users. Stick to the standard behaviors.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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: How to debug android source code using eclipse?

2009-05-14 Thread Raphael

2009/5/14 Nio luodali...@gmail.com:

 Thanks Keith,but the link can't be open. Could you tell me the steps
 to getting up?

Try this one:

http://developer.android.com/guide/developing/device.html

R/

--~--~-~--~~~---~--~~
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: adb install failure with return code -12

2009-05-14 Thread Raphael

On Wed, May 13, 2009 at 7:55 PM, HUANG Quan huang...@gmail.com wrote:

 hi guys,
    I just installed android sdk1.5 on a ubuntu 8.04 machine. The IDE
 is eclipse3.4 with ADT.
    I created a HelloAndroid project with only the automatically
 generated code. It compiled successfully and worked on the emulator.
 But when I tried to install the apk to my G1. It failed with only
 return code [-12].
    I tried anroid 1.1 and android 1.5. The results are the same. But
 my G1 works fine when the sdk is 1.1.

Your G1 runs the Android 1.1 version so you must create projects that
target the SDK 1.1 (e.g. minSdkVersion must be 2 in the
AndroidManifest.xml).

R/

--~--~-~--~~~---~--~~
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: dynamically setting drawSelectorOnTop

2009-05-14 Thread damnesia

ok. it turns out that the real problem was TableRow.LayoutParams(2,
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT). i changed it to
TableRow.LayoutParams(2) and it works as expected.

thanks again.

On May 13, 11:10 pm, Romain Guy romain...@google.com wrote:
 Oops my bad, you were talking about *Spinner*. Spinner does NOT
 support android:drawSelectorOnTop, so there's no equivalent Java API.
 Setting this attribute in XML has absolutely no effect (in particular
 because a Spinner does not have a selector.)



 On Wed, May 13, 2009 at 7:59 PM, damnesia r.spencer.wh...@gmail.com wrote:

  Yeah, I saw it in the documentation online but when I do
  spinner.setDrawSelectorOnTop(true); I get The method
  setDrawSelectorOnTop(boolean) is undefined for the type Spinner.

  I am using Android android-sdk-linux_x86-1.1_r1. Do I need to upgrade?

  Thank you for your time.

  On May 13, 2:59 pm, Romain Guy romain...@google.com wrote:
  It's in the documentation :) Hint, look for setDrawSelectorOnTop(boolean).

  On Wed, May 13, 2009 at 2:53 PM, damnesia r.spencer.wh...@gmail.com 
  wrote:

   Is it possible to dynamically set the drawSelectorOnTop attribute on a
   Spinner instead of having to do it in the layout XML?

  --
  Romain Guy
  Android framework engineer
  romain...@android.com

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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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: Change custom title view of window at run time

2009-05-14 Thread idev

This is what the whole thing looks like. The first time I set title,
it works fine (in onCreate). The next time I set it, it works fine (in
searchHandler). The third time when I do it (in reloadHandler), the
click listeners are not registered and the text in the text view does
not change.

I had initially put the code outside handlers in the click listeners.
But that didn;t work either. Also tried calling invalidate() on the
buttons and textview. But that didn't help either.

Thanks.


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);

getWindow().setFeatureInt
(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title);

TextView databar = (TextView) findViewById(R.id.search_title_text);
databar.setText(My Text);

// Watch for button clicks.
Button applyButton = (Button) findViewById(R.id.srch_left_btn);
applyButton.setOnClickListener(mOtherButtonListener);
applyButton.setText(Some Text);

Button searchBtn = (Button) findViewById(R.id.srch_right_btn);
searchBtn.setOnClickListener(searchListener);

}

OnClickListener mOtherButtonListener = new OnClickListener() {
public void onClick(View v) {
finish();
}
};

OnClickListener searchListener = new Button.OnClickListener() {
public void onClick(View v) {
searchHandler.sendEmptyMessage(1);
}
};

Handler searchHandler = new Handler() {

@Override
public void handleMessage(Message message) {
MyClass.this.getWindow().setFeatureInt
(Window.FEATURE_CUSTOM_TITLE,R.layout.search_title);

final EditText fullSearchField = (EditText) findViewById
(R.id.title_full_search);

fullSearchField.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent 
event) {
if ((event.getAction() == KeyEvent.ACTION_DOWN)
 (keyCode == 
KeyEvent.KEYCODE_ENTER)) {

String searchTxt = 
fullSearchField.getText().toString();
getSearchResults(searchTxt);
return true;
}
return false;
}
});

Button cancelBtn = (Button) MyClass.this.findViewById
(R.id.title_cancel_btn);
cancelBtn.setOnClickListener(cancelSearchListener);
}
};

OnClickListener cancelSearchListener = new OnClickListener() {
public void onClick(View v) {
reloadHandler.sendEmptyMessage(1);
}
};

Handler reloadHandler = new Handler() {

@Override
public void handleMessage(Message message) {
MyClass.this.getWindow().setFeatureInt
(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title);

TextView databar = (TextView) MyClass.this.findViewById
(R.id.search_title_text);
databar.setText(My Text);

Button applyButton = (Button) MyClass.this.findViewById
(R.id.srch_left_btn);
applyButton.setText(Some Text);
applyButton.setOnClickListener(mOtherButtonListener);

Button searchBtn = (Button) MyClass.this.findViewById
(R.id.srch_right_btn);
searchBtn.setOnClickListener(searchListener);

MyClass.this.reloadOldData();
}
};
--~--~-~--~~~---~--~~
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: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Dianne Hackborn
On Thu, May 14, 2009 at 9:15 AM, matthias m.kaepp...@googlemail.com wrote:

 It would be great though if things like these (i.e. that
 RelativeLayout ignores layout_gravity) would appear somewhere in the
 documentation. It's not immediately apparent to people why for some
 layouts the gravity is simply ignored, and for others it's not.


The documentation could certainly be improved a lot, but at this point at
least every view class provides a complete list of the attributes it takes.
(And by implication, if you don't see it in the doc, it doesn't handle it.)

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

--~--~-~--~~~---~--~~
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: User input in an AppWidget?

2009-05-14 Thread Dianne Hackborn
It is still built in to home, like it was in previous versions.  (And it
does far more than an EditText -- it has a auto complete text view, which is
customized for special behavior there.)

On Thu, May 14, 2009 at 5:37 AM, pMay eniak.i...@googlemail.com wrote:


 How did they code the Google Search Widget?
 Is that a hack?

 On Apr 16, 7:47 am, Jeff Sharkey jshar...@android.com wrote:
  Jon, you're right, there isn't a direct way of including an EditText
  into a widget.
 
  The major reason for this is we don't have a good way of identifying
  how that text should be sent back across a PendingIntent.  To solve
  this from the framework side, one approach would to add the text to
  the extras bundle with the R.id of the EditText as the key, and using
  Intent.fillIn() when sending the PendingIntent.  But then we run into
  issues when there is a button that should also trigger an action: do
  we bundle any+all EditText values with that intent as well?
 
  Instead of solving this problem with the hack described above, we're
  holding off until we come up with a better solution.
 
  A workaround in the meantime might be to have the PendingIntent launch
  an activity with Theme.Dialog or Theme.Panel that contains an
  EditText.
 
  j
 
 
 
  On Wed, Apr 15, 2009 at 8:00 PM, Jon Colverson jjc1...@gmail.com
 wrote:
 
   Hello.
 
   I've been looking at the new 1.5_pre SDK today, and the new AppWidget
   API in particular. I was hoping to write a widget for posting to
   Twitter as part of my nanoTweeter app. The interface I had in mind
   would look very similar to the Google Search widget, with an EditText
   and a submit Button, but as far as I can see there's no way to get at
   user input in a RemoteViews. Is that right, or am I overlooking
   something?
 
   Thanks.
 
   --
   Jon
 
  --
  Jeff Sharkey
  jshar...@android.com

 



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

--~--~-~--~~~---~--~~
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 Power Management

2009-05-14 Thread Dianne Hackborn
Please ask these questions on android-platform.  Also the Android kernel
is Linux, so you want to look in to what that does (plus the few specific
drivers Android uses with it).

On Wed, May 13, 2009 at 10:23 PM, Prashant Bhujang 
prashant.bhuj...@aricent.com wrote:

  Dear All,



 Android has provided Power management framework for saving batterlife. But
 this is limited to screen/key lights. I am exploring ways to enhance this
 scheme for other use cases like camera, media playback by changing CPU
 frequency. I would like to know what support is available for this from
 Android kernel.





 Regards

 * *



 *Prashant Bhujang*



 Engineering Project Manager

 *A R I C E N T*

 Tel: +91 80 41069000

 Direct: +91 80 41069572
 Mobile   +91 9845231775



 --
 DISCLAIMER: This message is proprietary to Aricent and is intended solely
 for the use of the individual to whom it is addressed. It may contain
 privileged or confidential information and should not be circulated or used
 for any purpose other than for what it is intended. If you have received
 this message in error,please notify the originator immediately. If you are
 not the intended recipient, you are notified that you are strictly
 prohibited from using, copying, altering, or disclosing the contents of this
 message. Aricent accepts no responsibility for loss or damage arising from
 the use of the information transmitted by this email including damage from
 virus.

 



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

--~--~-~--~~~---~--~~
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: Unable to open files

2009-05-14 Thread Marco Nelissen

How are you actually trying to open the files, and what is the
error/exception you're getting?


On Wed, May 13, 2009 at 12:00 PM, SlumberMachine sost...@gmail.com wrote:

 No matter what I do I am unable to open a file, either in my app's
 data directory or on the sdcard and also in a folder on the sdcard.
 To test I placed a test.txt file in all three directories. Here is the
 code I've tried:

                                        String fname = text.txt;
                                        File rFile = new 
 File(/sdcard/mytestfolder/ + fname);

 I also have tried this:

 file://+Environment.getExternalStorageDirectory()+/test.txt

 along with all sorts of other ways of writing it.

 When I do listfiles, I get the correct list of files set in an array.
 I've even tried getting the list and filtering out a specific file and
 try opening it that way and just trying the first item in the array.

 Is there some security that may be set that is making it so I cant
 open files? This is not the emulator, it is on a device.

 


--~--~-~--~~~---~--~~
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 select open GL objects from motion event?

2009-05-14 Thread Gerald

Hi,
I need to use GLSurfaceView to render some objects, and move or select
the objects by finger touch.
By overriding the onTouchEvent, I can receive incomming motion events.
The motion event contains x and y position in the view, but can't map
to open GL 3D world.
Is there any way to know which object should be selected from received
motion event?
Thank you

Gerald
--~--~-~--~~~---~--~~
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: Is it faster to draw directly on a portrait or a landscape layout?

2009-05-14 Thread a druid

I don't know the actual G1 hardware.

On some HW devices however even hardware rotation has its price like
- power consumption
- memory bandwidth issues

If the architecture has shared memory between application processor
and display controller, then even HW rotation might have one read and
write the entire framebuffer in order to perform the rotation. Or if
one wants to avoid the read and write of the frame buffer one had to
perform scattered RAM accesses accross multiple RAM banks.
Both can increase the memory bandwidth consumption and  might thus
stall the main processor more often.

In order to test this you had to try running an application which
modifies the screen rather frequently and which tries to perform some
memory intensive (out of cache) native operations.

If one case is slower, then you know, which rotation is 'native' or,
that the hardware is built such, that there is no performance hit.
Without knowing the HW in detail difficult to say.

On May 14, 4:52 pm, Romain Guy romain...@google.com wrote:
 It doesn't really matter, especially on a G1. The screen orientation
 is handled at the low level by SurfaceFlinger so the orientation
 doesn't impact the actual Skia (SGL) drawing commands. The rotation
 itself is handled by a special hardware chip on G1.

 On Thu, May 14, 2009 at 6:29 AM, admin.androidsl...@googlemail.com

 admin.androidsl...@googlemail.com wrote:

  Presumably one layout or other must be native to the O/S and the other
  layout needs an expensive internal rotation + transformation in order
  to display in correct position.

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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: How do I add a EditText Field to an AppWidget (RemoteViews)

2009-05-14 Thread Jeff Sharkey

Here's a previous discussion that should answer your question:

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

j

On Thu, May 14, 2009 at 5:09 AM, pMay eniak.i...@googlemail.com wrote:

 Hello,

 I am trying to add a EditText Field to an AppWidget.
 I took the AppWidget example from here:
 http://developer.android.com/guide/samples/ApiDemos/src/com/example/andr
 oid/apis/appwidget/index.html
 and modified it by replacing the TextView with a EditText.
 It doesnt work...
 Compiles and runs but the Widget sais Problem loading Widget when it
 shows up.

 Can somone please give me a hint? Maybe an example?
 Is the default Google Search Widget open source?
 Can someone give ma a link to the source?

 Thanks!

 




-- 
Jeff Sharkey
jshar...@android.com

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



  1   2   >