[android-developers] Re: Events on GLSurfaceView

2010-01-16 Thread Philip
Not sure why this would happen but if you want to take a look at the
cocos2d for Android code I released last night, there are a few
examples on how it works. You will also notice the 20ms wait delay I
added there to avoid being flooded with motion events (pressure
sensivity changes are sent even if your finger doesn't move at 36fps
max.) Take a look at the project by downloading the code and let me
know if you can figure it out. I'd like to point you to the part where
it didn't work for me until I did this: you need to register your view
to get focus for keys and for motion in the create section.

http://code.google.com/p/cocos2d-android/


Thanks,

Philip

On Jan 16, 11:50 am, Peter Eastman peter.east...@gmail.com wrote:
 I'm having trouble getting a GLSurfaceView to respond to key and touch
 events.  My entire UI consists of just the GLSurfaceView, which is set
 as the content view for the activity.  I then call setOnKeyListener()
 and setOnTouchListener() on it, but neither listener ever gets
 called.  I've tested both with the emulator using Android 2.0.1 and
 with a Nexus One using Android 2.1.  Same result on both.

 Any idea what I could be doing wrong?

 Thanks!

 Peter
-- 
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: Definition of SensorEvent rotation angles

2010-01-16 Thread Lance Nanek
Do you have a phone? Just log the values and look at them as you move
the phone. There are also several apps on the market that will show
you the raw sensor data.

On Jan 16, 3:16 pm, Peter Eastman peter.east...@gmail.com wrote:
 I'm trying to figure out exactly how to interpret the rotation angles
 produced by a SensorEvent for Sensor.TYPE_ORIENTATION.  Unfortunately,
 the documentation (http://developer.android.com/reference/android/
 hardware/SensorEvent.html#values) doesn't give a complete definition
 of it.  It defines what the axes are, but doesn't specify what order
 the three rotations are applied in, nor whether the later rotations
 are around transformed or untransformed axes.  Without knowing that,
 it's impossible to know what the actual rotation is that's being
 described.

 How can I find out what the event values actually mean?

 Peter
-- 
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 modify contact detail screen?

2010-01-16 Thread JimmyHoffa
Hi All,  Just like to share some thoughts and ask if anyone knows how
to modify the stock Contacts detail screen.

I'm not 100% convinced I will adopt this strategy yet but I need to
allow the user of my application to maintain contact information, with
extra fields specific to my app' so I figured my choices are either
to

A: create my own contacts database,
B: Create my own database that just contains extra fields with a link
id to a contact in the factory contacts system so they can use both
systems.
C: Solely utilise the default contact system but add extra fields to
an extra contacts table using the V2 API.

I thinking the best solution would be C,  as it's already a good
contact manager with plenty of features that I'd also need in my app
prewritten, call number, directions to address. As well as users dont
have to synch or re-enter contacts if they want to use their stock
contacts system

One thing of interest I've noticed is the FaceBook app that comes pre-
installed on the nexus one.  When I view a contacts details, there is
a Facebook section of information, so if possible, I could add my own
section for my app like the facebook app has done that could be a good
merge of systems.

However I've no idea how they do that and show the facebook panel..

Any thoughts on this greatly appreciated, love to hear how others have
faced similar dilemmas.
-- 
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] Configure app to work horizontal and vertical?

2010-01-16 Thread qmwestview
Hi,
Is it possible to configure all layouts of an Android app to support
BOTH landscape and portrait mode so that the app will work both when
phone is held vertically and horizontally. From my brief reading, it
seems not. Am I right?
-- 
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: Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Thanks for they reply Wayne,

Under an LLC there is a certain level of personal protection yes?
Even if there is only one person in the LLC?

Its my first time generating some revenue off coding (I'm still in
college) and I really would like some legal protection, even though my
apps shouldn't warrant that kind of protection.

-theSmith

On Jan 16, 1:12 pm, Wayne Wenthin wa...@fuligin.com wrote:
 LLC's are pretty cheap to form.   I have 1 LLC that I'm a partner in and 1
 sole proprietorship.   The software is not published under the LLC though.
 But if you are worried that your app may make people do something that you
 need legal protection from I would look into license agreements that you
 require them to acknowledge on install and you will probably need to pay an
 attorney to draft one that will be enforceable.



 On Sat, Jan 16, 2010 at 9:46 AM, theSmith chris.smith...@gmail.com wrote:
  Hey all,

  I was just wondering what your thoughts are on having some law
  enforcement on your side as well as legal protection.  As an
  independent developer its hard to afford legal nonsense like this.  In
  your experience has it been worth it to include legal agreements with
  your apps and do you have protection like a LLC to protect yourself
  from being sued into oblivion?

  Also what licenses are freely available  that might be of interest?

  -theSmith

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

 --
 Writing code is one of few things
 that teaches me I don't know everything.

 Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Configure app to work horizontal and vertical?

2010-01-16 Thread Matt Oakes
Nope, you can support both.

When you define your layout in the xml files it will allow it to be
displayed in both portrait and landscape. You can also define special
layouts for landscape if you like.

Take a good look at the notepad tutorial in the developer docs and you
can see how it changes to landscape in the emulator by pressing
ctrl+F11.

Have fun :)

On Sat, Jan 16, 2010 at 9:59 PM, qmwestview qmwestv...@googlemail.com wrote:
 Hi,
 Is it possible to configure all layouts of an Android app to support
 BOTH landscape and portrait mode so that the app will work both when
 phone is held vertically and horizontally. From my brief reading, it
 seems not. Am I right?

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

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

Re: [android-developers] Re: Thoughts on lawyers and self protection

2010-01-16 Thread Wayne Wenthin
Yes there is a moderate amount of protection with an LLC.   The key is
managing it correctly.  One of the biggest hurdles will probably be the need
to pay yearly fees to both the state and to the company that will receive
your documents.   I believe this is required in most states.   It costs me ~
150 a year to keep the LLC open.   Since my income on that LLC last year was
less than $200 it makes me question my decisions  But sooner or later
that company will do something I hope.

On Sat, Jan 16, 2010 at 2:09 PM, theSmith chris.smith...@gmail.com wrote:

 Thanks for they reply Wayne,

 Under an LLC there is a certain level of personal protection yes?
 Even if there is only one person in the LLC?

 Its my first time generating some revenue off coding (I'm still in
 college) and I really would like some legal protection, even though my
 apps shouldn't warrant that kind of protection.

 -theSmith

 On Jan 16, 1:12 pm, Wayne Wenthin wa...@fuligin.com wrote:
  LLC's are pretty cheap to form.   I have 1 LLC that I'm a partner in and
 1
  sole proprietorship.   The software is not published under the LLC
 though.
  But if you are worried that your app may make people do something that
 you
  need legal protection from I would look into license agreements that you
  require them to acknowledge on install and you will probably need to pay
 an
  attorney to draft one that will be enforceable.
 
 
 
  On Sat, Jan 16, 2010 at 9:46 AM, theSmith chris.smith...@gmail.com
 wrote:
   Hey all,
 
   I was just wondering what your thoughts are on having some law
   enforcement on your side as well as legal protection.  As an
   independent developer its hard to afford legal nonsense like this.  In
   your experience has it been worth it to include legal agreements with
   your apps and do you have protection like a LLC to protect yourself
   from being sued into oblivion?
 
   Also what licenses are freely available  that might be of interest?
 
   -theSmith
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Writing code is one of few things
  that teaches me I don't know everything.
 
  Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums

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




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums
-- 
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 Pirate Site

2010-01-16 Thread MakeMobile
On Jan 16, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote:
 MakeMobile wrote:
  I believe I've already answered the question of why Google would do
  something about this, but I'll say it again. Piracy damages the
  platform as a whole. Google cares about this kind of thing because it
  slows the progress of the platform as a whole.

 That is debatable. For every force (developers electing to abandon one
 platform with piracy for another platform with piracy) there can be a
 countervailing force (more consumer interest because of wider free app
 availability).

While I agree with your overall point that there are dualities to
perceived problems with something as complex as a platform or OS, I do
not agree with your idea that there would be more consumer interest
because of the increased availability of pirated apps. I hardly
believe that the majority of consumers consider the availability of
pirated apps among the important things to consider when looking to
migrate to a new device.


  But my
  specific inquiry is who can I talk to about this? who or where do I
  report this?

 If you have an app on the Android Market, and you are using their copy
 protection, and you find your app is pirated, complain to the Android
 Market (via their support forums) that their copy protection did not
 help you. I suspect you'll find a few posts to that effect out there
 already, though I haven't looked.

I'll certainly do that, but I was wondering if there is a more formal
system for reporting such abuses.


  On another note, I think the common attitude of apathy surrounding
  this issue is shocking.

 I think an attitude of not *worrying* much about this issue is decidedly
 healthy.

It's not a matter of worrying too much, but a matter of keeping it in
check. I think there are ways to improve what we have. Certainly
Market could do a better job.


 For those who have been living under a rock for the past two decades,
 digital goods get pirated, plain and simple...

 IMHO, developers for all platforms can take three possible approaches to
 piracy:

 1. Embrace piracy, by coming up with business strategies that do not
 require payment for individual copies of apps.

 2. Ignore piracy, treating it as a manageable loss (akin to breakage
 in a retail store), and focusing on serving those customers that do pay.

 3. Have their blood pressure climb to unsafe levels.

Again, I think ignoring such problems is not a feasible approach. When
we sit up and take notice, it leads to discussion, and then
implementation of better solutions. To be clear, I expect piracy to
exist. In fact, I think any developer who has not considered piracy as
they build out their product is just not being realistic. However,
burying your head in the sand does not make a problem go away.

 If you are truly serious about app development, get truly serious about
 choosing a business model you'll be happy with. With luck, you'll settle
 on one for which piracy is not an issue.
Agreed. But some of us do not have the option to implement a business
model less susceptible to piracy. Some applications are just not
conducive to the models which do well to avoid piracy.

There are strategies which a developer can employ to make piracy more
difficult. The most common of which might be some form of call home
functionality. But this wont work for my application (and many
others). Asking for internet access on a stand-alone app would be
silly. I believe it would provide an additional barrier to acceptance
that I am not willing to construct. Mr Benjamin made a good post on
this point, so I wont bother repeating it.

As the platform moves forward, this will become a much lager and more
serious issue. If we want to continue to attract great developers who
make great apps -- and the platform to continue to be competitive --
we must think proactively about such problems.
-- 
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 Pirate Site

2010-01-16 Thread Mark Wyszomierski
For what it's worth, the piracy issue was a real eye-opener for me
when I released my first iPhone app. The app included a web service
which simply logged an anonymous user ID on my site so I could
distinguish between users. The ratio of paying to pirated users was
staggering. After awhile I also adopted the approach Mark Murphy
stated a few posts above. Don't worry about the piracy too much, they
probably wouldn't have paid for your app anyway. Try to find a
different model which doesn't depend on the up-front sale of the app
to support yourself.

That being said, I agree that some pressure should be kept on sites
distributing pirated copies so it doesn't get completely out of
control.

Good luck all.

On Jan 16, 2:58 pm, MakeMobile makemobileinnovati...@gmail.com
wrote:
 On Jan 16, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote:

  MakeMobile wrote:
   I believe I've already answered the question of why Google would do
   something about this, but I'll say it again. Piracy damages the
   platform as a whole. Google cares about this kind of thing because it
   slows the progress of the platform as a whole.

  That is debatable. For every force (developers electing to abandon one
  platform with piracy for another platform with piracy) there can be a
  countervailing force (more consumer interest because of wider free app
  availability).

 While I agree with your overall point that there are dualities to
 perceived problems with something as complex as a platform or OS, I do
 not agree with your idea that there would be more consumer interest
 because of the increased availability of pirated apps. I hardly
 believe that the majority of consumers consider the availability of
 pirated apps among the important things to consider when looking to
 migrate to a new device.



   But my
   specific inquiry is who can I talk to about this? who or where do I
   report this?

  If you have an app on the Android Market, and you are using their copy
  protection, and you find your app is pirated, complain to the Android
  Market (via their support forums) that their copy protection did not
  help you. I suspect you'll find a few posts to that effect out there
  already, though I haven't looked.

 I'll certainly do that, but I was wondering if there is a more formal
 system for reporting such abuses.

   On another note, I think the common attitude of apathy surrounding
   this issue is shocking.

  I think an attitude of not *worrying* much about this issue is decidedly
  healthy.

 It's not a matter of worrying too much, but a matter of keeping it in
 check. I think there are ways to improve what we have. Certainly
 Market could do a better job.

  For those who have been living under a rock for the past two decades,
  digital goods get pirated, plain and simple...
  IMHO, developers for all platforms can take three possible approaches to
  piracy:

  1. Embrace piracy, by coming up with business strategies that do not
  require payment for individual copies of apps.

  2. Ignore piracy, treating it as a manageable loss (akin to breakage
  in a retail store), and focusing on serving those customers that do pay.

  3. Have their blood pressure climb to unsafe levels.

 Again, I think ignoring such problems is not a feasible approach. When
 we sit up and take notice, it leads to discussion, and then
 implementation of better solutions. To be clear, I expect piracy to
 exist. In fact, I think any developer who has not considered piracy as
 they build out their product is just not being realistic. However,
 burying your head in the sand does not make a problem go away.

  If you are truly serious about app development, get truly serious about
  choosing a business model you'll be happy with. With luck, you'll settle
  on one for which piracy is not an issue.

 Agreed. But some of us do not have the option to implement a business
 model less susceptible to piracy. Some applications are just not
 conducive to the models which do well to avoid piracy.

 There are strategies which a developer can employ to make piracy more
 difficult. The most common of which might be some form of call home
 functionality. But this wont work for my application (and many
 others). Asking for internet access on a stand-alone app would be
 silly. I believe it would provide an additional barrier to acceptance
 that I am not willing to construct. Mr Benjamin made a good post on
 this point, so I wont bother repeating it.

 As the platform moves forward, this will become a much lager and more
 serious issue. If we want to continue to attract great developers who
 make great apps -- and the platform to continue to be competitive --
 we must think proactively about such problems.
-- 
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] Re: RadialGradient question

2010-01-16 Thread schwiz
I have to bump this I have tried every number combination there is and
it doesn't matter what I do the shader looks exactly the same as if
the positions array was set to null.  Can anyone at all get the shader
to look any different in there own projects in the past?  Does it not
work with just 2 colors?  what is going on here, can anyone help
please?

On Jan 15, 12:08 pm, schwiz sch...@gmail.com wrote:
 I appreciate the reply, however I don't think I understand, I have 2
 colors I set the positions to  {.75f,.99f}  but it looks exactly the
 same as if I just leave it as null.  I have tried experimenting with
 some other values too but it always looks the same to me.
 Here is a code snippet

                 positions = new float[2];
                 positions[1] = .75f;
                 positions[0] = .99f;
                 grad = new RadialGradient(circleX, circleY, circleR, colors,
 positions, TileMode.CLAMP);
                 if(values[2] = 
 values[0]/2)Pallet.getInstance().white.setShader
 (grad);
                 canvas.drawCircle(circleX, circleY, circleR - 3, 
 Pallet.getInstance
 ().white);

 On Jan 15, 10:56 am, Romain Guy romain...@android.com wrote:



  It does matter, the positions are numbers between 0 and 1 indicating
  where each color stop should be in the gradient (0 == center, 1 ==
  outside.)

  On Fri, Jan 15, 2010 at 1:33 AM, schwiz sch...@gmail.com wrote:
   Ok I was making a stupid mistake and not calling new before I set the
   floats in the array, so my forceclose is fixed, however it doesn't
   matter what numbers I put the in the array the gradient always looks
   the same.  How can I give the inner color more weight?
   Thanks!
   Nathan

   On Jan 15, 3:25 am, schwiz sch...@gmail.com wrote:
   I am having problems with the constructor RadialGradient (float x,
   float y, float radius, int[] colors, float[] positions,
   Shader.TileMode tile) If I don't pass null into positions I get a
   force close the logcat spits out a bunch of stuff about frame layout.
   So my question is what exactly do they mean when they say positions is
   the relative of each color in the array.  The end result I want is for
   the inner color to have more weight than the outer color.
   Thanks for your time!
   Nathan

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

  --
  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: Events on GLSurfaceView

2010-01-16 Thread Robert Green
Remember to call setFocusableInTouchMode(true); in the view if you
want to receive focus and key/touch events.

On Jan 16, 3:19 pm, Philip philip.dese...@gmail.com wrote:
 Not sure why this would happen but if you want to take a look at the
 cocos2d for Android code I released last night, there are a few
 examples on how it works. You will also notice the 20ms wait delay I
 added there to avoid being flooded with motion events (pressure
 sensivity changes are sent even if your finger doesn't move at 36fps
 max.) Take a look at the project by downloading the code and let me
 know if you can figure it out. I'd like to point you to the part where
 it didn't work for me until I did this: you need to register your view
 to get focus for keys and for motion in the create section.

 http://code.google.com/p/cocos2d-android/

 Thanks,

 Philip

 On Jan 16, 11:50 am, Peter Eastman peter.east...@gmail.com wrote:



  I'm having trouble getting a GLSurfaceView to respond to key and touch
  events.  My entire UI consists of just the GLSurfaceView, which is set
  as the content view for the activity.  I then call setOnKeyListener()
  and setOnTouchListener() on it, but neither listener ever gets
  called.  I've tested both with the emulator using Android 2.0.1 and
  with a Nexus One using Android 2.1.  Same result on both.

  Any idea what I could be doing wrong?

  Thanks!

  Peter
-- 
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: RadialGradient question

2010-01-16 Thread schwiz
ok I think it is that it doesn't work with 2 colors, it seems the
positions variable doesn't effect the inner most color.  Is this by
design, a bug, or am I doing it wrong?

On Jan 16, 5:24 pm, schwiz sch...@gmail.com wrote:
 I have to bump this I have tried every number combination there is and
 it doesn't matter what I do the shader looks exactly the same as if
 the positions array was set to null.  Can anyone at all get the shader
 to look any different in there own projects in the past?  Does it not
 work with just 2 colors?  what is going on here, can anyone help
 please?

 On Jan 15, 12:08 pm, schwiz sch...@gmail.com wrote:



  I appreciate the reply, however I don't think I understand, I have 2
  colors I set the positions to  {.75f,.99f}  but it looks exactly the
  same as if I just leave it as null.  I have tried experimenting with
  some other values too but it always looks the same to me.
  Here is a code snippet

                  positions = new float[2];
                  positions[1] = .75f;
                  positions[0] = .99f;
                  grad = new RadialGradient(circleX, circleY, circleR, colors,
  positions, TileMode.CLAMP);
                  if(values[2] = 
  values[0]/2)Pallet.getInstance().white.setShader
  (grad);
                  canvas.drawCircle(circleX, circleY, circleR - 3, 
  Pallet.getInstance
  ().white);

  On Jan 15, 10:56 am, Romain Guy romain...@android.com wrote:

   It does matter, the positions are numbers between 0 and 1 indicating
   where each color stop should be in the gradient (0 == center, 1 ==
   outside.)

   On Fri, Jan 15, 2010 at 1:33 AM, schwiz sch...@gmail.com wrote:
Ok I was making a stupid mistake and not calling new before I set the
floats in the array, so my forceclose is fixed, however it doesn't
matter what numbers I put the in the array the gradient always looks
the same.  How can I give the inner color more weight?
Thanks!
Nathan

On Jan 15, 3:25 am, schwiz sch...@gmail.com wrote:
I am having problems with the constructor RadialGradient (float x,
float y, float radius, int[] colors, float[] positions,
Shader.TileMode tile) If I don't pass null into positions I get a
force close the logcat spits out a bunch of stuff about frame layout.
So my question is what exactly do they mean when they say positions is
the relative of each color in the array.  The end result I want is for
the inner color to have more weight than the outer color.
Thanks for your time!
Nathan

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

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

2010-01-16 Thread feda al-shahwan
I would like to subscribe

-- 
Eng. Feda AlShahwan
College of Technology Studies
Puplic Authority for Applied Education  Training
-- 
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: Events on GLSurfaceView

2010-01-16 Thread Peter Eastman
On Jan 16, 3:27 pm, Robert Green rbgrn@gmail.com wrote:
 Remember to call setFocusableInTouchMode(true); in the view if you
 want to receive focus and key/touch events.

I wasn't doing that.  I just tried it though, and it didn't fix the
problem.  Instead, it disabled the Back and Menu keys...

Peter
-- 
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: Definition of SensorEvent rotation angles

2010-01-16 Thread Peter Eastman
On Jan 16, 1:40 pm, Lance Nanek lna...@gmail.com wrote:
 Do you have a phone? Just log the values and look at them as you move
 the phone.

Yes I've done that, but it's not obvious from that which of the 24
possible rotation sequences it's using (six possible axis orders, and
the second and third rotations can each be around either a transformed
or untransformed axis).  If you're able to tell just by looking at
numbers as you tilt the phone around, your intuition for composite
rotations is far better than mine!

Peter
-- 
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] Best way to reload overlay on map

2010-01-16 Thread Blocks

I have a tabactivity with a mapview inside it

TabSpec tabSpec2 = mTabHost.newTabSpec(map_tab);
tabSpec2.setIndicator(Map);
Intent i = new Intent(ctx, LocationMapView.class);
tabSpec2.setContent (i);
mTabHost.addTab(tabSpec2);

This starts up the mapview and loads all the locations from a database
and puts markers on the map.

How do I tell it to reload the markers from the database when the
database locations have changed/inserted/deleted? I have a populate()
method that does this onCreate when mapview is first loaded.
-- 
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] Gallery View with Text: Styling

2010-01-16 Thread SurtaX
I currently have a Gallery Widget very similar to Gallery2.java in the
API examples. It is a gallery widget populated by a simple adaptor of
text.

What I am trying to do is make the selected (the item at the center of
the gallery widget) text and background a certain color and the other
visible items a different color. It should be a simple task, but I am
unable to find a tutorial or the place in which to insert these
options.

Code which will modify the existing Gallery2.java to display the
center item as Red for example whereas the other items remain the gray
color would be very helpful.

Many 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] CropToPadding

2010-01-16 Thread Ray Benjamin
In the ImageView class, there is an XML attribute, cropToPadding, that 
can be set up if you are creating the interface using XML, but there 
doesn't seem to be a corresponding method that can be used to set that 
attribute if you are doing things programatically. Is this a bug? Is 
there some other method that allows this?


Thanks,
 Ray
-- 
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: Events on GLSurfaceView

2010-01-16 Thread Peter Eastman
On Jan 16, 1:19 pm, Philip philip.dese...@gmail.com wrote:
 Not sure why this would happen but if you want to take a look at the
 cocos2d for Android code I released last night, there are a few
 examples on how it works.

Thanks, that was really helpful.  After looking through your code for
a while and comparing it to mine, I spotted a mistake I was making.
Having fixed that, I'm now receiving touch events.  Yay!

I'm still not getting any KeyEvents.  I should mention that my phone
doesn't have a physical keyboard, so I've been using the on-screen
keyboard.  I assumed that would generate KeyEvents, but maybe that was
a bad assumption?  On the other hand, it doesn't work with the
emulator either.  Also, the first time I hit a key, the following
message appears in the log:

01-16 16:50:16.547: WARN/KeyCharacterMap(2440): No keyboard for id
65540
01-16 16:50:16.547: WARN/KeyCharacterMap(2440): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin

That's for the phone.  For the emulator, the message is identical
except the first line says id 0 instead of id 65540.  Could this be
related to the problem?

Peter
-- 
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: Events on GLSurfaceView

2010-01-16 Thread Robert Green
That makes me think that you are now getting key events but aren't
handling them properly.  If you always return true, the system will
not handle those keys anymore.  I'm just shooting in the dark,
though.  Is there any way you could post some code for me to see?  I'm
pretty sure you need to declare the view as focusable to get those
events because without focus, a view won't receive events.

I actually don't handle events in my GLSurfaceViews anymore.  I do it
in the activity and queue the events so that the UI thread returns
immediately.

On Jan 16, 5:56 pm, Peter Eastman peter.east...@gmail.com wrote:
 On Jan 16, 3:27 pm, Robert Green rbgrn@gmail.com wrote:

  Remember to call setFocusableInTouchMode(true); in the view if you
  want to receive focus and key/touch events.

 I wasn't doing that.  I just tried it though, and it didn't fix the
 problem.  Instead, it disabled the Back and Menu keys...

 Peter
-- 
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: Events on GLSurfaceView

2010-01-16 Thread Eyal99
I went to http://code.google.com/p/cocos2d-android/ but I don't see
where to download the code. Where is it?

On Jan 17, 8:26 am, Robert Green rbgrn@gmail.com wrote:
 That makes me think that you are now getting key events but aren't
 handling them properly.  If you always return true, the system will
 not handle those keys anymore.  I'm just shooting in the dark,
 though.  Is there any way you could post some code for me to see?  I'm
 pretty sure you need to declare the view as focusable to get those
 events because without focus, a view won't receive events.

 I actually don't handle events in my GLSurfaceViews anymore.  I do it
 in the activity and queue the events so that the UI thread returns
 immediately.

 On Jan 16, 5:56 pm, Peter Eastman peter.east...@gmail.com wrote:

  On Jan 16, 3:27 pm, Robert Green rbgrn@gmail.com wrote:

   Remember to call setFocusableInTouchMode(true); in the view if you
   want to receive focus and key/touch events.

  I wasn't doing that.  I just tried it though, and it didn't fix the
  problem.  Instead, it disabled the Back and Menu keys...

  Peter
-- 
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: unsubscribe

2010-01-16 Thread Trevor Johns
Done. For future reference, most mailing lists (including this one)
include directions for unsubscribing yourself at the bottom of the
message. Following those directions is a lot more reliable and less
time consuming than asking a moderator to do it for you.

--
Trevor Johns

On Jan 16, 3:52 pm, feda al-shahwan fa.alshah...@gmail.com wrote:
 I would like to subscribe

 --
 Eng. Feda AlShahwan
 College of Technology Studies
 Puplic Authority for Applied Education  Training
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Displaying multiple locations on a mapview

2010-01-16 Thread Rogério de Souza Moraes
Hi,

you can take examples of code from here:

http://examples.oreilly.com/9780596521509/

The MJAndroid is a good example of code to show what you want. It read a
data file and show jobs near you.

Regards,

Rogerio

2010/1/15 Blocks blocks...@yahoo.com

 Ok, time to ask, I've searched, tried things suggested, and have spent
 a day on this to no avail. Any suggestions gratefully received. I am
 using the mapview tutorial as a base and I can only get ONE marker/
 location to show up - the one in Mexico, another off of Cape Cod, but
 not both!  (I checked the data on the locationlist array and it is
 there with different lat/lons as ints)




 public class LocationMapView extends MapActivity
 // implements LocationListener
 {
ListOverlaymapOverlays;
Drawable drawable;
MapView  mapView;
PointLocation [] locationlist ;
GeoPoint point;
OverlayItem  overlayitem ;
LocationItemizedOverlay itemizedOverlay ;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.maplayout);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
mapView.setStreetView(true);

LocationDb mLocationDb = new LocationDb();
mLocationDb.open();
locationlist =  mLocationDb.fetchLocations() ;

mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable
 (R.drawable.androidmarker);

point = new GeoPoint(locationlist[0].geolat, locationlist
 [0].geolon) ;
overlayitem = new OverlayItem(point, , );
itemizedOverlay = new LocationItemizedOverlay(drawable);
itemizedOverlay.addOverlay(overlayitem);

point = new GeoPoint(locationlist[1].geolat, locationlist
 [1].geolon) ;
overlayitem = new OverlayItem(point, , );
itemizedOverlay = new LocationItemizedOverlay(drawable);
itemizedOverlay.addOverlay(overlayitem);

mapOverlays.add(itemizedOverlay);




 and  ItemizedOverlay.java is-


 import android.graphics.drawable.Drawable;
 import com.google.android.maps.ItemizedOverlay;
 import com.google.android.maps.OverlayItem;
 import java.util.ArrayList;

 public class LocationItemizedOverlay extends ItemizedOverlay
 {

private ArrayListOverlayItem mOverlays = new
 ArrayListOverlayItem
 ();

public LocationItemizedOverlay(Drawable defaultMarker)
{
super(boundCenterBottom(defaultMarker));
// TODO Auto-generated constructor stub
}

@Override
public int size() {
// TODO Auto-generated method stub
return mOverlays.size();
}
public void addOverlay(OverlayItem overlay) {
mOverlays.add(overlay);
populate();
}

@Override
protected OverlayItem createItem(int i)
  {
  return mOverlays.get(i);
  }










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

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

[android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Martin
No, I don't mean the comments I wrote for my program. I mean the
comments of other users who rated my application. I just can see the
german comments and every time I want to see other comments, I have to
clear the Market-cache and change the locale on my phone. Is there a
faster way to see comments from other countries?

Greetings, Martin

On 12 Jan., 07:48, grace grace.a...@wipro.com wrote:
 can be more elobarate on ur question pls..

 is it like the msgs ur displaying in ur programme are displayed in
 german..
 if it is so,then u shud go for localisation of strings i guess

 On Jan 8, 8:47 pm, Martin google-gro...@digle.de wrote:



  Hi!

  I am a german market developer. How can I see the english comments to
  my program? I just see the german ones.

  Greetings, Martin
-- 
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: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
It's accurate enough to steer a toy car on display by tilting
device, but I would not use this sensor to deliver  nuclear warhead
( there definitely better ones )

Of course you can write some filter, but it would be tricky because:
  - your sample times  are not guaranted to be equal (android is not a
realtime environment)
  - you get no more than about 100 samples per seconds
  - you get only 8 bit resolution over 16G
-- 
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 differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Martin
Hi!

I want to reduce the file size of my application in the market.
The strange thing is that my application LeonardFrog.apk just uses
4mb but the Google-Market shows me that it uses 8mb. You can search
for it (Leonard Frog Beta) in the market. How can this be???

In my application, there are many images and long sounds.
My folder res just uses 3,7mb and there is nothing else in my game
beside the quellcode.
So WHY is the size of my game in the market 8mb?

Greetings, Martin
-- 
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: Problem about adding app widget into my application(custom home screen)

2010-01-16 Thread Leo
Maybe I didn't descripte my qustion clearly. I just want to add an app
widget into
my custom home screen, and then I try this in my activity

mAppWidgetManager = AppWidgetManager.getInstance(this);
AppWidgetProviderInfo widgetProviderInfo = null;
AppWidgetHost AH = new AppWidgetHost(this,1024);

widgetProviderInfo = mAppWidgetManager.getInstalledProviders().get
(0); // get one of app widget information

AppWidgetHostView hostView = AH.createView(this, AH.allocateAppWidgetId
(), widgetProviderInfo);

rl1.addView(hostView); // add view in one of my layout

but...I can only get the widget's backgroud...it can't be updated
itself.why???

On 1月16日, 下午2時36分, Nemat nemate...@gmail.com wrote:
 No,
 Actually it needs user choice.I mean it depends on user which Screen
 he wants to use as HomeScreen.
 Even I was looking at the way I can add my Activity as Home Screen.But
 it always asks the user to choose one from default and third party
 Screen.
 I couldnt find any solution.I dont think there is some way to do this.

 Hope it helps
 :-)

 Regards
 Nemat

 On Jan 16, 8:51 am, Leo skydr...@seed.net.tw wrote:

  ok, this is a difficult question.

  On 1月13日, 上午11時07分, Leo skydr...@seed.net.tw wrote:

   any body?

   On 1月8日, 上午12時23分, Leo skydr...@seed.net.tw wrote:

Hi, I would like to add app widgets in my own custom home screen, but
there are some problems about it.

Since I have 
readhttps://groups.google.com/group/android-developers/browse_thread/thre...

   http://www.mail-archive.com/android-developers@googlegroups.com/msg50...

they said that activity should need to launch the PICK intent for user
choosing app widget, but I don't want to
choose widget from a list, instead of this, I want to insert a
specifically widtget.
I think there is a clock widget on the original android home screen,
so there still another way to add widget app into home screen that
doesn't need user choosing app widget, right?- 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: mkdir

2010-01-16 Thread Business Talk
Thanks Philip, you are right, It should'v been mkdirs. But even so it
still returns false.

My example was a little confusing as to the directory names; all of
them are directories;

File directory = _Context.getFileStreamPath();
File subdirectory = new File(directory, subdir1/subdir2/subdir3);
boolean result = subdirectory.mkdirs();


the above code follows an example in the following posting;

http://groups.google.com/group/android-developers/browse_thread/thread/64fb55b5bd03a2cd/064b1fe40b3c25ce?lnk=gstq=mkdirs#064b1fe40b3c25ce



On Jan 16, 1:19 am, Philip philip.dese...@gmail.com wrote:
 if dir and mk don't exist, I believe that you need to use mkdirs
 instead :

 mkdirs()
 Creates the directory named by the trailing filename of this file,
 including the complete directory path required to create this
 directory.

 On Jan 15, 9:43 pm, Business Talk roman.businesst...@gmail.com
 wrote:



  I am trying to create a directory hierarchy byt the mkdir returns
  false. What am I missing here?

  File directory = _Context.getFileStreamPath();

  File subdirectory = new File(directory, dir/mk/foo);

  boolean result = subdirectory.mkdir();- 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] Varying screen resolutions

2010-01-16 Thread Neilz
Hi all. So, I've been building an app which I test on my Hero, with a
screen size of 480 x 320. The app is dependent upon Bitmap images,
placing them at specific screen positions (i.e. Canvas.drawBitmap
(bitmap, x, y, null) etc.).

Now of course I face the problem of how this app will be compatible
with new devices such as the Droid (854 x 480) and Nexus (480 x 800).
Testing on the emulator seems to show that there will be a large part
of the screen unused.

What are the options here? Is there some way that the final Canvas
output can be translated to fit a different screen size? Do I have to
resize my bitmaps depending on the screen size, and translate the x, y
positions accordingly?

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

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Philip, it did work after all. thanks.

On Jan 16, 8:38 am, Business Talk roman.businesst...@gmail.com
wrote:
 Thanks Philip, you are right, It should'v been mkdirs. But even so it
 still returns false.

 My example was a little confusing as to the directory names; all of
 them are directories;

 File directory = _Context.getFileStreamPath();
 File subdirectory = new File(directory, subdir1/subdir2/subdir3);
 boolean result = subdirectory.mkdirs();

 the above code follows an example in the following posting;

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

 On Jan 16, 1:19 am, Philip philip.dese...@gmail.com wrote:



  if dir and mk don't exist, I believe that you need to use mkdirs
  instead :

  mkdirs()
  Creates the directory named by the trailing filename of this file,
  including the complete directory path required to create this
  directory.

  On Jan 15, 9:43 pm, Business Talk roman.businesst...@gmail.com
  wrote:

   I am trying to create a directory hierarchy byt the mkdir returns
   false. What am I missing here?

   File directory = _Context.getFileStreamPath();

   File subdirectory = new File(directory, dir/mk/foo);

   boolean result = subdirectory.mkdir();- Hide quoted text -

  - Show quoted text -- 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: Varying screen resolutions

2010-01-16 Thread String
Step 1: RT[F]M ;^) 
http://developer.android.com/guide/practices/screens_support.html

Additionally, there was a LOT of discussion of this when multi-
resolution support came out in 1.6; some searching of this group
should turn up good information too. The summary is that you can
either leave android:anyDensity=false in your manifest to let the
platform scale your bitmaps, or you can include bitmaps of different
sizes for different screen densities.

String

On Jan 16, 1:40 pm, Neilz neilhorn...@googlemail.com wrote:
 Hi all. So, I've been building an app which I test on my Hero, with a
 screen size of 480 x 320. The app is dependent upon Bitmap images,
 placing them at specific screen positions (i.e. Canvas.drawBitmap
 (bitmap, x, y, null) etc.).

 Now of course I face the problem of how this app will be compatible
 with new devices such as the Droid (854 x 480) and Nexus (480 x 800).
 Testing on the emulator seems to show that there will be a large part
 of the screen unused.

 What are the options here? Is there some way that the final Canvas
 output can be translated to fit a different screen size? Do I have to
 resize my bitmaps depending on the screen size, and translate the x, y
 positions accordingly?

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

[android-developers] Re: Why differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Al
Do you have copy protection enabled? This increases the space required
on a device.

Martin wrote:
 Hi!

 I want to reduce the file size of my application in the market.
 The strange thing is that my application LeonardFrog.apk just uses
 4mb but the Google-Market shows me that it uses 8mb. You can search
 for it (Leonard Frog Beta) in the market. How can this be???

 In my application, there are many images and long sounds.
 My folder res just uses 3,7mb and there is nothing else in my game
 beside the quellcode.
 So WHY is the size of my game in the market 8mb?

 Greetings, Martin
-- 
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: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Al
Androlib.com allows you to use this if you link an app to your account
on their site. They keep a cache of comments and update it on a
regular basis so the comments you see are not always the most recent
ones, but it's the best alternative at this time.

Martin wrote:
 No, I don't mean the comments I wrote for my program. I mean the
 comments of other users who rated my application. I just can see the
 german comments and every time I want to see other comments, I have to
 clear the Market-cache and change the locale on my phone. Is there a
 faster way to see comments from other countries?

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

Re: [android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Adrian Vintu
I use http://www.androidzoom.com They update comments more often.

BR,
Adrian Vintu

On 1/16/10, Al alcapw...@googlemail.com wrote:
 Androlib.com allows you to use this if you link an app to your account
 on their site. They keep a cache of comments and update it on a
 regular basis so the comments you see are not always the most recent
 ones, but it's the best alternative at this time.

 Martin wrote:
 No, I don't mean the comments I wrote for my program. I mean the
 comments of other users who rated my application. I just can see the
 german comments and every time I want to see other comments, I have to
 clear the Market-cache and change the locale on my phone. Is there a
 faster way to see comments from other countries?

 Greetings, Martin

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

Re: [android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-16 Thread Adrian Vintu
androlib and androidzoom both do a cache of the Android Market. Aaik
you do not need to create any new accounts on these 2 sites.

BR,
Adrian Vintu

On 1/16/10, Adrian Vintu adrianvi...@gmail.com wrote:
 I use http://www.androidzoom.com They update comments more often.

 BR,
 Adrian Vintu

 On 1/16/10, Al alcapw...@googlemail.com wrote:
 Androlib.com allows you to use this if you link an app to your account
 on their site. They keep a cache of comments and update it on a
 regular basis so the comments you see are not always the most recent
 ones, but it's the best alternative at this time.

 Martin wrote:
 No, I don't mean the comments I wrote for my program. I mean the
 comments of other users who rated my application. I just can see the
 german comments and every time I want to see other comments, I have to
 clear the Market-cache and change the locale on my phone. Is there a
 faster way to see comments from other countries?

 Greetings, Martin


-- 
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 save the scroll position of a WebView?

2010-01-16 Thread Elizabeth
Hello,

I wonder how I can save the scroll position in a WebView in
SharedPreferences for example. I wonder how I can save the scroll
position in a WebView in SharedPreferences for example (but not if it
is more appropriate in the Bundle) and then restore when the Activity
is reapear.


Bye!
-- 
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 Pirate Site

2010-01-16 Thread MakeMobile
I stumbled upon this site offering 1000's of Android apps for free
(including mine!).

http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_listing_of_android_applications/
http://www.mediafire.com/redditapps

How do I report this to Google? How do we shut them down?
-- 
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 Pirate Site

2010-01-16 Thread schwiz
shut one down 3 more pop up, its an unavoidable part of software
development.

On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
wrote:
 I stumbled upon this site offering 1000's of Android apps for free
 (including mine!).

 http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...http://www.mediafire.com/redditapps

 How do I report this to Google? How do we shut them down?
-- 
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 2d graphics help

2010-01-16 Thread schwiz
an Activity is the same as your midlet, you will make a View and
override onDraw instead of paint, and you call invalidate on the view
instead of repaint.  There are a few different ways to draw images
from pngs depending on what you want to do.  Look into the imageview
class or make your own view and draw your own bitmap.

On Jan 14, 8:06 pm, Mazi maz4...@comcast.net wrote:
 Hi,
 i created a 2d game in java that runs as an applet, and i am now
 trying to translate this over to the android. As the android doesnt
 used paint() methods, i am thinking that i will have to import images
 of the game instead of drawing it, but i cannot find out how to do
 this. Anybody know how to add images to the folder and call them in
 the app? Also, how can i call a screen repaint() in the android?
 Thanks,
 A fairly new Developer
-- 
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: Where to get a Samsung Moment for development

2010-01-16 Thread Don
Hi Dan,
I'm actually based in the UK!
But Cheers anyway!
Don

On Jan 8, 8:47 am, dan raaka danra...@gmail.com wrote:
 if you are local to mountain view let me know. I can help

 -Dan

 On Thu, Jan 7, 2010 at 4:53 AM, Don donal.morris...@gmail.com wrote:
  Hello,
  I'm now having the exact same problem, a customer is reporting an
  issue with my application on their Samsung Moment, but I can't debug
  the issue as I don't have the device!
  I've tried the test services perfectomobile  deviceanywhere, but
  neither has a Samsung Moment!

  I can see this fragmentation becoming one of the major issues for
  Android development.

  Don

  On Dec 3 2009, 5:28 am, SoftwareForMe.com sa...@softwareforme.com
  wrote:
    Hi,

   We have a G1, MyTouch, Hero and Droid. However, we've been getting odd
   reports from our Moment customers, and it's time we get one.

   Anybody know where to do this, and whether there are any issues getting
  the
   thing acitvated without a phone plan to go with it?

   SoftwareForMe.com
   Makers of PhoneMyPC
Imagine Multi-touch

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

[android-developers] Re: Android Pirate Site

2010-01-16 Thread MakeMobile
I've been in the business for quite some time, and I know that
drill. But I do not accept your reply as a useful response to this
problem. This problem is damaging to the entire development community
as a whole as well as the forward progress of the platform. Few
developers will be interested in building on a platform which has a
reputation for easy piracy. Their development efforts will be focused
on other platforms, and Android will suffer from less innovation and
fewer useful apps.

I've also found piracy on other sites, including droidfanz.com, and
this forum:
http://www.ipmart-forum.com/archive/index.php/t-337082.html

I'd like to know what Google is doing about this, and who to forward
abuse complaints to.

On Jan 16, 11:33 am, schwiz sch...@gmail.com wrote:
 shut one down 3 more pop up, its an unavoidable part of software
 development.

 On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
 wrote:

  I stumbled upon this site offering 1000's of Android apps for free
  (including mine!).

 http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...

  How do I report this to Google? How do we shut them down?
-- 
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: Why differs the size of my app in the market to the real size of my app on my computer? How can I make the market-version smaller?

2010-01-16 Thread Martin
Thank you, Al!!!
You solved the problem :-)
Now my game is 4mb :-)

Greetings! Martin

On 16 Jan., 15:28, Al alcapw...@googlemail.com wrote:
 Do you have copy protection enabled? This increases the space required
 on a device.



 Martin wrote:
  Hi!

  I want to reduce the file size of my application in the market.
  The strange thing is that my application LeonardFrog.apk just uses
  4mb but the Google-Market shows me that it uses 8mb. You can search
  for it (Leonard Frog Beta) in the market. How can this be???

  In my application, there are many images and long sounds.
  My folder res just uses 3,7mb and there is nothing else in my game
  beside the quellcode.
  So WHY is the size of my game in the market 8mb?

  Greetings, Martin
-- 
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] controling the user language

2010-01-16 Thread gilmad
hi,
I have a multi language app.
I want to give the user the ability to control which language to use.
that mean that even if he has the English Locale he could use a
different language if he wants.
How can I change the Locale language? (per app)
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: Android Pirate Site

2010-01-16 Thread theSmith
I too would like to know if Google in particular is doing anything to
help us developers out.  As apps grow in popularity the more they are
pirated and the harder to get them all taken down.  Ideally there
would be a spot for developers to submit pages that are hosting our
apps illegally and Google would take care of the DMCA stuff.  (Or just
provide us with copy protection that works...)

For those interested here is another site I found yesterday,
http://www.mediafire.com/thakidtok
http://twitter.com/thakidtook uses twitter to distribute them too.

This is really a pain in the ass.  Does apple have piracy issues like
this on the iPhone?

-theSmith

On Jan 16, 12:09 pm, MakeMobile makemobileinnovati...@gmail.com
wrote:
 I've been in the business for quite some time, and I know that
 drill. But I do not accept your reply as a useful response to this
 problem. This problem is damaging to the entire development community
 as a whole as well as the forward progress of the platform. Few
 developers will be interested in building on a platform which has a
 reputation for easy piracy. Their development efforts will be focused
 on other platforms, and Android will suffer from less innovation and
 fewer useful apps.

 I've also found piracy on other sites, including droidfanz.com, and
 this forum:http://www.ipmart-forum.com/archive/index.php/t-337082.html

 I'd like to know what Google is doing about this, and who to forward
 abuse complaints to.

 On Jan 16, 11:33 am, schwiz sch...@gmail.com wrote:

  shut one down 3 more pop up, its an unavoidable part of software
  development.

  On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
  wrote:

   I stumbled upon this site offering 1000's of Android apps for free
   (including mine!).

  http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...

   How do I report this to Google? How do we shut them down?
-- 
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] Thoughts on lawyers and self protection

2010-01-16 Thread theSmith
Hey all,

I was just wondering what your thoughts are on having some law
enforcement on your side as well as legal protection.  As an
independent developer its hard to afford legal nonsense like this.  In
your experience has it been worth it to include legal agreements with
your apps and do you have protection like a LLC to protect yourself
from being sued into oblivion?

Also what licenses are freely available  that might be of interest?

-theSmith
-- 
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's best way to resume activity and play audio file after spawned thread completes download?

2010-01-16 Thread rastyrori
Thanks very much. Yes, the user is waiting with a progress bar and the
media player begins playing upon completion. I'll look into
AsyncTask.

Thanks again,

Rusty

On Jan 14, 3:45 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
 what's going on while the mp3 is being downloaded? is the user
 waiting for it, with a progress bar? is the user to be presented with
 the media player when the download completes, regardless of what else
 they might be doing?

 as always i would recommend AsyncTask for doing this stuff, it has
 nice hooks for doing things in the appropriate threads at the
 appropriate time.

 hth



 Why don't you simply use thread join wait and notify? Curious...

 On Jan 13, 8:21 pm,rastyrorirastyr...@gmail.com wrote:
   I've got an activity that calls a helper class called DownloadManager.
   DownloadManager spawns a thread that downloads a mp3 to the sdcard.
   I'm having some trouble finding the best design for resuming the
   initial activity and starting the MediaPlayer. Does it make the most
   sense to use a BroadcastReceiver that receives a message that download
   is complete, then start a new Intent of my activity? Think I saw
   something that I can't use an Intent to start an Activity from
   BroadcastReceiver because it is a background process. Any ideas how to
   solve this would be very much appreciated.

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

 --
 jason.vp.engineering.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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Wayne Wenthin
My question is why would google do anything.  These are your apps.  You hold
copyright not google.  You have to do something.  Unless you are finding
Market or Maps on these sites google could care less and rightly so.

Now with that out of the way you can contact the owner of the site and ask
them to remove your app.   If they don't comply you probably will need to
lawyer up to get any satisfaction and in the end you will probably not be
able to collect.   All you get is a lawyer bill.

The second course of action is to point out to the hosting company that they
are pirating software.   Having worked for a fairly large ISP as the
Engineering Manager in the past I can say that we took these sites down when
there was reasonable proof of piracy.Of course they just move to the
next place.



On Sat, Jan 16, 2010 at 9:32 AM, theSmith chris.smith...@gmail.com wrote:

 I too would like to know if Google in particular is doing anything to
 help us developers out.  As apps grow in popularity the more they are
 pirated and the harder to get them all taken down.  Ideally there
 would be a spot for developers to submit pages that are hosting our
 apps illegally and Google would take care of the DMCA stuff.  (Or just
 provide us with copy protection that works...)

 For those interested here is another site I found yesterday,
 http://www.mediafire.com/thakidtok
 http://twitter.com/thakidtook uses twitter to distribute them too.

 This is really a pain in the ass.  Does apple have piracy issues like
 this on the iPhone?

 -theSmith

 On Jan 16, 12:09 pm, MakeMobile makemobileinnovati...@gmail.com
 wrote:
  I've been in the business for quite some time, and I know that
  drill. But I do not accept your reply as a useful response to this
  problem. This problem is damaging to the entire development community
  as a whole as well as the forward progress of the platform. Few
  developers will be interested in building on a platform which has a
  reputation for easy piracy. Their development efforts will be focused
  on other platforms, and Android will suffer from less innovation and
  fewer useful apps.
 
  I've also found piracy on other sites, including droidfanz.com, and
  this forum:http://www.ipmart-forum.com/archive/index.php/t-337082.html
 
  I'd like to know what Google is doing about this, and who to forward
  abuse complaints to.
 
  On Jan 16, 11:33 am, schwiz sch...@gmail.com wrote:
 
   shut one down 3 more pop up, its an unavoidable part of software
   development.
 
   On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
   wrote:
 
I stumbled upon this site offering 1000's of Android apps for free
(including mine!).
 
   
 http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...
 
How do I report this to Google? How do we shut them down?

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




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Thoughts on lawyers and self protection

2010-01-16 Thread Wayne Wenthin
LLC's are pretty cheap to form.   I have 1 LLC that I'm a partner in and 1
sole proprietorship.   The software is not published under the LLC though.
But if you are worried that your app may make people do something that you
need legal protection from I would look into license agreements that you
require them to acknowledge on install and you will probably need to pay an
attorney to draft one that will be enforceable.

On Sat, Jan 16, 2010 at 9:46 AM, theSmith chris.smith...@gmail.com wrote:

 Hey all,

 I was just wondering what your thoughts are on having some law
 enforcement on your side as well as legal protection.  As an
 independent developer its hard to afford legal nonsense like this.  In
 your experience has it been worth it to include legal agreements with
 your apps and do you have protection like a LLC to protect yourself
 from being sued into oblivion?

 Also what licenses are freely available  that might be of interest?

 -theSmith

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




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Greg Donald
On Sat, Jan 16, 2010 at 11:09 AM, MakeMobile
makemobileinnovati...@gmail.com wrote:
 I'd like to know what Google is doing about this, and who to forward
 abuse complaints to.

You must be new around here.  Google doesn't do support.

But good luck all the same.


-- 
Greg Donald
http://destiney.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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Tommy Hartz
I would suggest contacting the company and informing them of
their infringement of your software. If they refuse to remove it you have
the right to get a lawyer. Check out this site
http://www.justice.gov/criminal/cybercrime/ and on the right check out How
to report intellectual property crime. The more people you can get in on
this with you is also better. Especially if your app is normally a paid app.
I hope that link helps you out.

On Sat, Jan 16, 2010 at 1:18 PM, Greg Donald gdon...@gmail.com wrote:

 On Sat, Jan 16, 2010 at 11:09 AM, MakeMobile
 makemobileinnovati...@gmail.com wrote:
  I'd like to know what Google is doing about this, and who to forward
  abuse complaints to.

 You must be new around here.  Google doesn't do support.

 But good luck all the same.


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

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

[android-developers] Saving a file from within a Live Wallpaper

2010-01-16 Thread GT
Hey all, I currently have a live wallpaper that is animated and works.
However, I am trying to update the code and add in some lines which
will save a file from a webpage and then read it. After reading it,
the wallpaper would change its behavior. Anyways, I am having problems
just saving the actual file, I know the code works because I have used
the same code in previous applications. Are you just not able to write
to the sdcard in a live wallpaper?
-- 
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] Unescape XML

2010-01-16 Thread ls02
Is there any method or utility for unescaping XML string?
-- 
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 Pirate Site

2010-01-16 Thread Sekhar
Yeah, I believe iPhone has the advantage here since it won't even
allow you to install apps from outside app store. That has its own
negatives, but it at least protects the developers (and the consumers,
actually).

Until something like that happens, I'd try the traditional desktop
software tricks, e.g. an unlock code for each purchase. I'm exploring
the options for an upcoming app myself, will post back my findings.
Meanwhile, if you come up/find something, please do post.

On Jan 16, 9:09 am, MakeMobile makemobileinnovati...@gmail.com
wrote:
 I've been in the business for quite some time, and I know that
 drill. But I do not accept your reply as a useful response to this
 problem. This problem is damaging to the entire development community
 as a whole as well as the forward progress of the platform. Few
 developers will be interested in building on a platform which has a
 reputation for easy piracy. Their development efforts will be focused
 on other platforms, and Android will suffer from less innovation and
 fewer useful apps.

 I've also found piracy on other sites, including droidfanz.com, and
 this forum:http://www.ipmart-forum.com/archive/index.php/t-337082.html

 I'd like to know what Google is doing about this, and who to forward
 abuse complaints to.

 On Jan 16, 11:33 am, schwiz sch...@gmail.com wrote:



  shut one down 3 more pop up, its an unavoidable part of software
  development.

  On Jan 16, 10:13 am, MakeMobile makemobileinnovati...@gmail.com
  wrote:

   I stumbled upon this site offering 1000's of Android apps for free
   (including mine!).

  http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...

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

Re: [android-developers] Saving a file from within a Live Wallpaper

2010-01-16 Thread Mark Murphy
GT wrote:
 Hey all, I currently have a live wallpaper that is animated and works.
 However, I am trying to update the code and add in some lines which
 will save a file from a webpage and then read it. After reading it,
 the wallpaper would change its behavior. Anyways, I am having problems
 just saving the actual file, I know the code works because I have used
 the same code in previous applications. Are you just not able to write
 to the sdcard in a live wallpaper?

Are you sure you have the WRITE_EXTERNAL_STORAGE permission?

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

_The Busy Coder's Guide to Android Development_ Version 2.9
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: Saving a file from within a Live Wallpaper

2010-01-16 Thread GT
I really am a fool, I decided to see if I did and of course I
didn't... and then I come back to post, and you beat me to it. I do
appreciate your response though.

On Jan 16, 11:30 am, Mark Murphy mmur...@commonsware.com wrote:
 GT wrote:
  Hey all, I currently have a live wallpaper that is animated and works.
  However, I am trying to update the code and add in some lines which
  will save a file from a webpage and then read it. After reading it,
  the wallpaper would change its behavior. Anyways, I am having problems
  just saving the actual file, I know the code works because I have used
  the same code in previous applications. Are you just not able to write
  to the sdcard in a live wallpaper?

 Are you sure you have the WRITE_EXTERNAL_STORAGE permission?

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

 _The Busy Coder's Guide to Android Development_ Version 2.9
 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: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
I looked at my favorite seller of electronic stuff - while BMA1502
sells for 1.50  from 100+,
there are chips for about $120 apiece ( with much better resolution
and answer times) - guess which
ones will be built into your $300 smartphone ;)
-- 
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 Pirate Site

2010-01-16 Thread MakeMobile
On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote:
 My question is why would google do anything.  These are your apps.  You hold
 copyright not google.  You have to do something.  Unless you are finding
 Market or Maps on these sites google could care less and rightly so.

I believe I've already answered the question of why Google would do
something about this, but I'll say it again. Piracy damages the
platform as a whole. Google cares about this kind of thing because it
slows the progress of the platform as a whole. That's why they
released the Nexus One --  to advance the platform by gaining new
developers and users.

I'd be surprised if Google did not have people working on this. But my
specific inquiry is who can I talk to about this? who or where do I
report this? And if it does not yet exist, Google should definitely
set up a system for reporting these abuses.

On another note, I think the common attitude of apathy surrounding
this issue is shocking. I am fully aware that it's not possible within
reason to completely eliminate this problem -- and I do not expect
that. However that does not mean we should ignore the issue on the
premise that its too difficult a problem to deal with.

This is especially problematic for small time developers who don't
have the resources (time or financial) to do much about this. I
believe it's these small time developers who provide the most value to
the platform -- there are far more small time developers than large
organizations, and I believe they provide the bulk of the innovation.
So lack of a robust support system for these developers is a big
problem.

I'd like to steer the discussion in a more positive direction. So lets
go guys -- resources, information, options...
-- 
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 Pirate Site

2010-01-16 Thread theSmith
Would it be feasible to authicate the app with a google checkout
number like copilot does?

On Jan 16, 1:55 pm, MakeMobile makemobileinnovati...@gmail.com
wrote:
 On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote:

  My question is why would google do anything.  These are your apps.  You hold
  copyright not google.  You have to do something.  Unless you are finding
  Market or Maps on these sites google could care less and rightly so.

 I believe I've already answered the question of why Google would do
 something about this, but I'll say it again. Piracy damages the
 platform as a whole. Google cares about this kind of thing because it
 slows the progress of the platform as a whole. That's why they
 released the Nexus One --  to advance the platform by gaining new
 developers and users.

 I'd be surprised if Google did not have people working on this. But my
 specific inquiry is who can I talk to about this? who or where do I
 report this? And if it does not yet exist, Google should definitely
 set up a system for reporting these abuses.

 On another note, I think the common attitude of apathy surrounding
 this issue is shocking. I am fully aware that it's not possible within
 reason to completely eliminate this problem -- and I do not expect
 that. However that does not mean we should ignore the issue on the
 premise that its too difficult a problem to deal with.

 This is especially problematic for small time developers who don't
 have the resources (time or financial) to do much about this. I
 believe it's these small time developers who provide the most value to
 the platform -- there are far more small time developers than large
 organizations, and I believe they provide the bulk of the innovation.
 So lack of a robust support system for these developers is a big
 problem.

 I'd like to steer the discussion in a more positive direction. So lets
 go guys -- resources, information, options...
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
Sekhar wrote:
 Yeah, I believe iPhone has the advantage here since it won't even
 allow you to install apps from outside app store. That has its own
 negatives, but it at least protects the developers (and the consumers,
 actually).

You would appear to be mistaken:

http://www.pinchmedia.com/blog/piracy-in-the-app-store-from-360idev/
http://www.gamasutra.com/view/feature/4194/iphone_piracy_the_inside_story.php
http://www.tuaw.com/2009/10/28/iphone-app-claims-95-piracy-rate/
http://blog.costan.us/2009/04/iphone-piracy-hard-numbers-for-soft.html

Now, the $450 million figure that 24/7 Wall Street touted this past week
is a crock, IMHO, but even a locked-down platform like iPhone has
piracy, and a non-trivial amount of it.

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

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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Kevin Duffey
I got a question for you guys. Assuming you know how and have the means to
set up a server.. why can't you have your app send a code or something to
this server.. to verify its a valid copy. If the copy that is out on those
hosting sites has the same code.. you can at least have your app hit the
server and if the code provided is ALREADY registered.. send back a nope..
you are not allowed code. Have your app indicate this message to the user,
and the user can contact you if need be, but explain that someone else
already registered with this code so you're code is invalid indicating a
pirated version. Is this not allowed? I mean, if you specify internet
permissions, you are basically getting the OK from the user to use the
internet. It would hamper your app to require internet at least the first
time it's run tho.

Is there any help from google in the way of being able to figure out whose
purchased your app off the market? I mean, if you get 500 sells on the
market, but have 7000 hits to your server.. there is something wrong.

What about knowing if your app was installed from the market, or from the SD
card? Any chance of knowing that? Is there any steps during installation we
developers can take to figure out if it was installed from market or not?
That may help us ensure that our app is only functional if installed from
the market. I imagine that that pirated sites may have people who
reverse-engineer the app and defeat this.. but not sure they go to that
extent.. yet.


On Sat, Jan 16, 2010 at 10:55 AM, MakeMobile 
makemobileinnovati...@gmail.com wrote:

 On Jan 16, 1:08 pm, Wayne Wenthin wa...@fuligin.com wrote:
  My question is why would google do anything.  These are your apps.  You
 hold
  copyright not google.  You have to do something.  Unless you are finding
  Market or Maps on these sites google could care less and rightly so.

 I believe I've already answered the question of why Google would do
 something about this, but I'll say it again. Piracy damages the
 platform as a whole. Google cares about this kind of thing because it
 slows the progress of the platform as a whole. That's why they
 released the Nexus One --  to advance the platform by gaining new
 developers and users.

 I'd be surprised if Google did not have people working on this. But my
 specific inquiry is who can I talk to about this? who or where do I
 report this? And if it does not yet exist, Google should definitely
 set up a system for reporting these abuses.

 On another note, I think the common attitude of apathy surrounding
 this issue is shocking. I am fully aware that it's not possible within
 reason to completely eliminate this problem -- and I do not expect
 that. However that does not mean we should ignore the issue on the
 premise that its too difficult a problem to deal with.

 This is especially problematic for small time developers who don't
 have the resources (time or financial) to do much about this. I
 believe it's these small time developers who provide the most value to
 the platform -- there are far more small time developers than large
 organizations, and I believe they provide the bulk of the innovation.
 So lack of a robust support system for these developers is a big
 problem.

 I'd like to steer the discussion in a more positive direction. So lets
 go guys -- resources, information, options...

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

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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread David Sauter
More importantly - do Android devices have unique hardware identifiers
like the iPhone's UUID?

David Sauter
-- 
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] Invoking the default Alarm clock app as ways for Apps to receive a intent at scheduled time

2010-01-16 Thread frantz lohier
Dear All,

Is there a way for an App to invoke the default Alarm Clock application and
receive a intent at a given time for specific functions to be activated.

I understand the the AlarmManager can be used for this sort of purpose but
I'm trying to leverage the complete alarmclock GUI framework that allows
users to set the time of an alarm, activate/deactivate them, etc  (as
implemented in the default alarmclock application package and the
setalarm.java file for example).

Any body know if this is possible ?

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] Continous Audio recording in memory

2010-01-16 Thread frantz lohier
Dear All, I'm writing an App that needs to continuously record audio in
memory and email the last 30 seconds of audio when required. Much of the
mediarecorder API is designed to store linear audio in files. Could anybody
point me towards a way to continously record audio in memory, using a
circular buffer using the SDK ? Thanks,
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Continous Audio recording in memory

2010-01-16 Thread Mark Murphy
frantz lohier wrote:
 
 Dear All, I'm writing an App that needs to continuously record audio in
 memory and email the last 30 seconds of audio when required. Much of the
 mediarecorder API is designed to store linear audio in files. Could
 anybody point me towards a way to continously record audio in memory,
 using a circular buffer using the SDK ? Thanks,
 

Look at AudioRecord.

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

Android Training in US: 8-12 February 2010: http://bignerdranch.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: Android Pirate Site

2010-01-16 Thread theSmith
@david I believe there must be, I know flurry assigns an unique id to
each user, so I'm guessing its using a hardware identifier, I'm going
to look through the docs now

On Jan 16, 2:19 pm, David Sauter del...@gmail.com wrote:
 More importantly - do Android devices have unique hardware identifiers
 like the iPhone's UUID?

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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
David Sauter wrote:
 More importantly - do Android devices have unique hardware identifiers
 like the iPhone's UUID?

android.provider.Settings.System, ANDROID_ID, is a unique ID per device.
Note, though, that this is not stored in ROM, and so rooted devices can
hack their ANDROID_ID. Also, ANDROID_ID is null on the emulator, and not
all device manufacturers follow the rules (e.g., docs say it's a hex
string, ARCHOS 5 Android tablet it's a more general alphanumeric string).

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

Android Training in US: 8-12 February 2010: http://bignerdranch.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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Mark Murphy
MakeMobile wrote:
 I believe I've already answered the question of why Google would do
 something about this, but I'll say it again. Piracy damages the
 platform as a whole. Google cares about this kind of thing because it
 slows the progress of the platform as a whole.

That is debatable. For every force (developers electing to abandon one
platform with piracy for another platform with piracy) there can be a
countervailing force (more consumer interest because of wider free app
availability).

 But my
 specific inquiry is who can I talk to about this? who or where do I
 report this?

If you have an app on the Android Market, and you are using their copy
protection, and you find your app is pirated, complain to the Android
Market (via their support forums) that their copy protection did not
help you. I suspect you'll find a few posts to that effect out there
already, though I haven't looked.

 On another note, I think the common attitude of apathy surrounding
 this issue is shocking.

I think an attitude of not *worrying* much about this issue is decidedly
healthy.

For those who have been living under a rock for the past two decades,
digital goods get pirated, plain and simple. I distinctly remember the
precursor to warez operating off of BBSes for the Apple II in the late
1980's. And, in the present day, we have torrents full of music, movies,
apps, and (if the reports are true) Android application development books.

IMHO, developers for all platforms can take three possible approaches to
piracy:

1. Embrace piracy, by coming up with business strategies that do not
require payment for individual copies of apps.

2. Ignore piracy, treating it as a manageable loss (akin to breakage
in a retail store), and focusing on serving those customers that do pay.

3. Have their blood pressure climb to unsafe levels.

Personally, I'm a fan of #1 where possible and #2 where not.

Here's my take on piracy specifically:

http://www.androidguys.com/2009/12/22/rethinking-android-app-piracy/

In there, you will also find links to two of my five blog posts on
Android business models, few of which require payments from individuals
for software.

Now, when the opportunity presents itself and it's not much effort, feel
free to smack down a pirate. I do that from time to time myself.

If you are truly serious about app development, get truly serious about
choosing a business model you'll be happy with. With luck, you'll settle
on one for which piracy is not an issue.

BTW, in addition to _Approaching Infinity_ that I mention in the
above-linked blog post, another interesting read is _The Pirate's
Dilemma_, which looks at the history of piracy over the last
half-century or so:

http://thepiratesdilemma.com

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

Android Training in US: 22-26 February 2010: http://onlc.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

Re: [android-developers] Invoking the default Alarm clock app as ways for Apps to receive a intent at scheduled time

2010-01-16 Thread Mark Murphy
frantz lohier wrote:
 Is there a way for an App to invoke the default Alarm Clock application
 and receive a intent at a given time for specific functions to be activated.

I do not believe so.

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

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

Re: [android-developers] Re: Android Pirate Site

2010-01-16 Thread Ray Benjamin


While there are thousands of things you can do to make it more difficult 
for someone to pirate your application, they all come at the cost of 
making it that much more difficult for your user to purchase your 
application and/or make your application more fragile. Many anti-piracy 
methods keep users from making legitimate backups of software, which 
might be alright if the user can download a replacement copy for free, 
but too often that's seen as a way to make another fast buck.


I believe that user education is an important, low cost, and least 
painful way to attack this problem. There will always be pirates, 
because the only way to prevent piracy is to lock the phone down so 
tight that no one can install or remove applications at all. What might 
reduce piracy is if there is a concerted effort to educate users about 
who they are hurting when they steal applications written by small 
developers. They need to learn that we're not all fortune 500 companies 
and that when they steal from us, they take food off our table. Even if 
it's a dollar app, it's still theft and still hurts us.
Worst of all, they are driving the most innovative developers out of 
business. If there is enough piracy, it can bring down the whole 
platform, and they'll find no one developing for their android phones at 
all.


If all they want are applications developed by huge corporations that 
can't be bothered to listen to suggestions or fix bugs, piracy is 
certainly the way to go. Eventually they'll have no choice but to buy 
locked down phones offered to them in package deals with half the 
hardware features turned off.


All that said, this isn't much different than what we faced with 
personal computers a few decades ago. I suspect some kind of balance 
will evolve in time. Phones are going to eventually take over most of 
our personal computing tasks, relegating desktops and laptops to 
accessory status for many people. It's always fun to live in interesting 
times.


Ray

David Sauter wrote:

More importantly - do Android devices have unique hardware identifiers
like the iPhone's UUID?

David Sauter
  


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

2010-01-16 Thread Sekhar
 You would appear to be mistaken:

 http://www.pinchmedia.com/blog/piracy-in-the-app-store-from-360idev/http://www.gamasutra.com/view/feature/4194/iphone_piracy_the_inside_s...http://www.tuaw.com/2009/10/28/iphone-app-claims-95-piracy-rate/http://blog.costan.us/2009/04/iphone-piracy-hard-numbers-for-soft.html

Hey, don't make a straw man out of this. The point is that iPhone
protection is better, not that it's perfect - like locking your front
door is better than leaving it open.

MakeMobile, I wouldn't fret about the apathy/naysayers, it's pretty
typical. Better find a solution and take the lead. I'm totally with
you.

My app hosts the logic on the sever (GAE), so I'm planning to use a
key to unlock the app (like the regular desktop license key) by
checking with the server. Seems straightforward, but need to check it
out.
-- 
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] Definition of SensorEvent rotation angles

2010-01-16 Thread Peter Eastman
I'm trying to figure out exactly how to interpret the rotation angles
produced by a SensorEvent for Sensor.TYPE_ORIENTATION.  Unfortunately,
the documentation (http://developer.android.com/reference/android/
hardware/SensorEvent.html#values) doesn't give a complete definition
of it.  It defines what the axes are, but doesn't specify what order
the three rotations are applied in, nor whether the later rotations
are around transformed or untransformed axes.  Without knowing that,
it's impossible to know what the actual rotation is that's being
described.

How can I find out what the event values actually mean?

Peter
-- 
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: Accelerometer Reading ranges

2010-01-16 Thread MPower123
I was inclined to thinking most of the android phones would come with
relatively the same accelormeter chip.
From what i've read the blackberries and iphone either have a better
chip or better logic has been used to smooth out the signal.

I guess for the most accurate reading I would need to set it to the 2G
mode, for a game i doubt someone will need to really whip the phone
around at 8Gs.

I just hope theres an API call to set the resolution to 2g or 4g mode.


On Jan 16, 1:52 pm, ko5tik kpriblo...@yahoo.com wrote:
 I looked at my favorite seller of electronic stuff - while BMA1502
 sells for 1.50  from 100+,
 there are chips for about $120 apiece ( with much better resolution
 and answer times) - guess which
 ones will be built into your $300 smartphone ;)
-- 
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