[android-developers] onSignalStrengthChanged and battery life?

2010-01-18 Thread moneytoo
I have a service that runs all the time (opened connection to a BT
device). I would like to add listener for signal strength but I'm
worrying about the battery life. Listening for battery life events
seems fine to but I'm not sure about the signal changes. From
experience with other platforms I guess it could be called several
times a minute.
Since I don't have official 2.1 I don't want to perform any real test
yet. Any suggestions? Could this drain the battery or is it just me?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Webview shouldOverrideUrlLoading not called for https

2010-01-18 Thread sleith
Hi,
i've found out that when loadURL() for https site, the
shouldOverrideUrlLoading() is not called. i've tried loading http and
it works.
Anyone knows what to do to make it works?
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: Best Server for Android MultiPlayer Games?

2010-01-18 Thread gjs
Hi,

Have a look at Google App Engine, it has java (& eclipse) support,
scales well and is free to start with.

http://code.google.com/appengine/

Amazon EC2 might also be suitable http://aws.amazon.com/ec2/

Regards

On Jan 19, 5:48 pm, Atif Gulzar  wrote:
> thanks Robert,
>
> But I am not an expert of server things, that is why I am looking for some
> already built server.
>
> --
> Best Regards,
> Atif Gulzar
>
> I  Unicode, ɹɐzlnƃ ɟıʇɐ
>
>
>
> On Tue, Jan 19, 2010 at 11:37 AM, Robert Green  wrote:
> > I used Ruby on Rails with JSON as the high-level protocol for Wixel
> > and it worked very well.  I just wrote a gateway service and used AIDL
> > to define the interfaces.  Took me about a month to do from start to
> > finish.
>
> > On Jan 18, 11:52 pm, Atif Gulzar  wrote:
> > > Hi All,
>
> > > I am developing a multiplayer card game. And currently looking for best
> > > server. I have R&D on three servers RED5, SmartFox and Elctro Server.
>
> > > RED5 is open source but you have to right midle tier for android to
> > > communicate with server.
> > > SmartFox has inherent Android support.
>
> > > Would you please share your expert thoughts or point me some other
> > servers.
> > > Thanks
>
> > > --
> > > Best Regards,
> > > Atif Gulzar
>
> > > I  Unicode, ɹɐzlnƃ ɟıʇɐ
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-01-18 Thread String
+1

This doesn't affect me personally, but IMHO when a platform bug breaks
whole classes of active apps, it really needs to have some priority.

String

On Jan 19, 1:06 am, Artem Petakov  wrote:
> Ping. Someone please reply with the status of this issue so that we can
> figure out how to work around it, or when it might be fixed. I am sorry, it
> is a huge issue for us, and I have not been able to get any additional
> information.
>
> Thank you,
> Artem
>
>
>
> On Thu, Jan 14, 2010 at 10:36 AM, BGA  wrote:
> > So I went ahead and did some further testing using a Motorola
> > Milestone and here are my results:
>
> > 1 - My workaround, as mentioned by Artem, works with it. In other
> > words, re-registering the sendor listening in stand by mode makes the
> > sensor works again.
> > 2 - Acquiring the dim lock after the screen goes off (also as
> > described by Artem) does not work with it. On the plus side, the
> > screen does not turn on when you acquire it. ;)
> > 3 - The HTC Tattoo screen turning on when acquiring the dim lock seems
> > to be a bug on it. The documentation clearly states that the screen
> > will not turn on when you do that unless you explicitly ask for it by
> > also using the ACQUIRE_CAUSES_WAKEUP flag.
> > 4 - All HTC phones (except for the G1) seem to shut down the
> > orientation sensor (at least) completely when entering standby mode.
>
> > As a bonus, I also noticed the following:
>
> > 1 - On the Motorola Milestone, there is no need to hold a CPU lock in
> > the service. Somehow it works without that (and it does not drain the
> > battery it seems).
> > 2 - The G1 does not shut down the orientation sensor as, as long as
> > you hold a CPU lock, you still get orientation changes when in
> > standby.
>
> > To me it looks like phone manufacturers are doing whatever they want
> > concerning this subject. This is either because what is supposed to be
> > done is not specified or because they are simply not following the
> > specs. This ends up becoming a nightmare for developers and, for
> > obvious reasons, this is not a good thing.
>
> > I am not sure what can be done to sort this up but it seems that, at
> > the very least, a way to say "I want to use this sensor even in
> > standby mode" would solve most of the problems (as long as device
> > manufacturers would abide to this).
>
> > -Bruno
>
> > On Jan 14, 12:42 pm, Artem - WorkSmart Labs  wrote:
> > > Hi Dianne and other Android Team Members,
>
> > > Please provide some kind of comment on this long-standing and serious
> > > bug:
>
> > >http://code.google.com/p/android/issues/detail?id=3708(oneof top
> > > bugs right now)
> > > "OnSensorChanged() is no longer called in standby mode since last
> > > Firmware upgrade"
>
> > > A lot of serious developers have looked at this, and we can't seem to
> > > find a good solution that works for example on the HTC Hero. The best
> > > work on this done by Bruno unfortunately still does not work for many
> > > handsets. I have looked into this carefully, but the issue seems very
> > > hard to track down. I can repro this on the HTC Tattoo as well. The
> > > only work-around seems to be to intercept the ACTION_SCREEN_ON event,
> > > and then to again re-grab the DIM_SCREEN lock, which causes the screen
> > > to turn on again. This unfortunately drains the battery like mad.
>
> > > The latest comment on this (from Dianne) said we have to hold a
> > > partial wake lock, however we are all already doing this and this does
> > > not help.
>
> > > This breaks all pedometer and similar applications right now, and our
> > > users are really sad.
>
> > > Please please help, or at least comment on the status.
>
> > > Artem
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Mobile App Socialization - We Need an API

2010-01-18 Thread dadical
You've got one of the use cases down: me telling my users about new
features.  But keep in mind, if I send them a compelling tweet about a
new feature, then THEY are likely to REtweet, and the viral fun
begins.  Lots more people hear about my app.

The other use case was me letting them tweet easily (using their
twitter or FB account) from within my app.  Imagine me offering them
an option that says:  "Hey if you like this feature, how about
tweeting it to your friends?  Y/N"If lots of people click yes,
then a pre-canned tweet goes out to their subscribed followers.  Now
I've got 5000 people tweeting about my app to all of the users that
follow THEM.  Some of this we can already do using the SHARE intent
that comes with Android, but as I point out in the blog posting,  I
think we need more than just that...

It will be an interesting balance to strike to make this not annoying
to my users, but the potential power is huge for app promotion in my
mind.



On Jan 18, 11:35 pm, Kevin Duffey  wrote:
> Ok..read your blog. I personally still don't get the craze over twitter. I
> enjoy blogging.. when I have something to share..but as I have nobody that
> reads my blog, I don't really blog any more. I can't stand trying to type on
> my phone device. The virtual keyboard on the Moto Droid is pretty good..but
> I still mis-type all the time, and the pull out keyboard is worse for my big
> hands/fingers. The idea of writing a short message about me eating at a
> McDonalds, or that I just saw a car crash, or where I am driving by, etc.. I
> don't know. It doesn't click with me. About the only thing that does seem to
> make sense with twitter for me is posting links to say, good blogs or
> technology/info stuff to share with followers. Now that twitter posts
> directly to your FB account and many others, I suppose that's one way of
> sharing a random link that you think others would enjoy, quickly.
>
> I do however like the idea you are proposing.. tweeting about an update and
> anyone that uses your app getting that tweet is handy. But doesn't the
> update mechanism of droid already do this? I get status updates all that
> time for apps to update. I don't know that a tweet would do anything
> more/better than what I get now. About the only reason I could see it being
> better is if info about whats in the new update were provided with the
> tweet. Many updates, when you go to the market, dont say anything at all, so
> you're not sure why you're updating. The other issue is, how do you get
> people to follow your app tweets..especially given that droid already gives
> status updates for app updates?
>
> I do agree tho.. the market is VERY hard to find apps with. I don't know why
> so many people say the iPhone app store is better. I don't think either one
> are adapted to finding apps very easily. I can tell you, after talking to at
> least 2 dozen people with iphone and droids... you know how they find apps?
> They look at either the top 10 or so apps, usually under the free tab, or
> they search for a specific title. Most people will miss tons of potentially
> good apps that are further down in the list. I think what market needs is a
> much better "drill down" feature. Have paid, free, top picks, and a "drill
> down" so you can narrow down apps by multiple categories. iPhone could
> benefit from the same feature.
>
> On Mon, Jan 18, 2010 at 11:15 AM, dadical  wrote:
> > I've been thinking a lot lately about how to gain visibility for
> > mobile apps.  It's getting more and more difficult as an independent
> > developer to get your application noticed among the piles of crap that
> > are stacking up in the market.  I think that we need some way to
> > socialize our applications and capitalize on the momentum that we do
> > happen to build from things like reviews, forum postings, etc.
>
> > I've blogged about my ideas on how to make this happen here:
>
> >http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-an...
>
> > Thoughts?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: question on reading from socket in android ...

2010-01-18 Thread Antonio Si
Hi Marc,

Thanks for your prompt response. Here is the code that I have:

  InetAddress addr = InetAddress.getByAddress(hostIp);
  socket = new Socket(addr, portNumber);
  socket.setKeepAlive(true);

  DataInputStream dis = new DataInputStream(new BufferedInputStream
(socket.getInputStream()));
  DataOutputStream dos = new DataOutputStream(new
BufferedOutputStream(socket.getOutputStream()));

  byte[] intBytes = convertToBytes(data.length);
  byte[] strMsgLengthBytes = convertToBytes(strMsgSize);
  dos.write(intBytes, 0, intBytes.length);
  dos.write(strMsgLengthBytes, 0, strMsgLengthBytes.length);
  dos.write(data, 0, data.length);
  dos.flush();

  ObjectInputStream ois = new ObjectInputStream(dis); // Here is
the place where an EOFException is being thrown
  List> returnObject =
(List>) ois.readObject();

In the above code, the line "ois = new ObjectInputStream(dis);" is the
place where an EOFException is being thrown.
In my server, I have checked that it has received the data
successfully. By the time the server tries to write to the
socket, the server is getting the following exception when it tries to
get an OutputStream from the socket:

java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:814)

I would appreciate any advice.

Regards,

Antonio.


On Jan 18, 3:15 am, Marc Reichelt  wrote:
> Hi Antonio,
>
> it would be much easier if you would provide a small piece of example
> code. Otherwise we can only guess what your problem is.
>
> Regards
>
> Marc Reichelt   ||  http://www.marcreichelt.de/
>
> On 18 Jan., 09:16, Antonio Si  wrote:> Hi,
>
> > I have a background thread in my android client which sends a request
> > to a server using a
> > socket and then tries to read the data back from the socket.
>
> > The data sending part works fine, but when I try to read from the
> > inputStream of the socket,
> > I am getting a EOFException.
>
> > Any suggestions or advice would be highly appreciated.
>
> > Thanks very much.
>
> > Antonio.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread And-Rider
D..oh! I am really not sure about this but sending a asynchronous call
has certain advantages than synch calls since if the first call gets
blocked due to certain reasons the response that you get for the next
few calls will also be delayed.

I feel that asynchronous(calls that do not block) are always better
than blocking calls since each call will be independent of the
other...

On Jan 19, 10:10 am, JP  wrote:
> Think about it for a moment - you've got only one pipe, and over the
> air that's not really all that fast. I doubt you win anything by
> trying to squeeze images through simultaneously.
>
> On Jan 18, 8:53 pm, And-Rider  wrote:
>
> > yes if i send my calls i a sequential manner it should not be an
> > issue. But in certain cases asynchronous calls do help us to speed up
> > the performance a lot
>
> > For example if i have a listview and in each row if i have an image to
> > download then asynchronous calls would be much faster. In this case
> > unfortunately time out happens in a synchronous manner. So if i send
> > five calls the in a asynchronous manner those calls are not timing out
> > in an asynchronous manner. I think this should probably be a bug...
>
> > On Jan 18, 11:44 pm, JP  wrote:
>
> > > On Jan 18, 7:28 am, And-Rider  wrote:
>
> > > > In that case the network connectivity check would fail. It will show
> > > > as if we have an network connection but we actually don't have an
> > > > internet connection.
>
> > > This can be the case at any point, regardless of data link. Still,
> > > checking for network connectivity is helpful - I use it to display
> > > message to the user.
>
> > > > Another case that we might face is that if a user is traveling in an
> > > > area where the network connectivity is fluctuating.
>
> > > Exactly, see above.
>
> > > > In this cases is it not necessary for us to set a proper timeout..?.
> > > > And if the timeout happens in a synchronous manner then it might take
> > > > a long time for the last call to time out.
>
> > > I use a sequential model to work off the various calls to the server
> > > side over time. This means I didn't have to deal with the problem
> > > you've found and cannot offer a direct answer. There certainly is the
> > > possibility that the first connection blocks the following on the SDK/
> > > Android level, for whatever reason. Some code diving would be in order
> > > to get to the bottom of this. The question could be raised if that's
> > > an effective use of your time, it wouldn't get you anywhere solving
> > > the problem...
> > > From what I can say, I'd recommend to switch to a sequential, managed
> > > model with an adequately low connect and read TO. Android (the mobile
> > > environment in general) isn't like the fixed side where you might have
> > > the latitude to whip up a bunch of threads to work off various tasks
> > > in parallel. The constraints of the environment just don't allow
> > > nearly as much play.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Best Server for Android MultiPlayer Games?

2010-01-18 Thread Atif Gulzar
thanks Robert,

But I am not an expert of server things, that is why I am looking for some
already built server.


--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Tue, Jan 19, 2010 at 11:37 AM, Robert Green  wrote:

> I used Ruby on Rails with JSON as the high-level protocol for Wixel
> and it worked very well.  I just wrote a gateway service and used AIDL
> to define the interfaces.  Took me about a month to do from start to
> finish.
>
> On Jan 18, 11:52 pm, Atif Gulzar  wrote:
> > Hi All,
> >
> > I am developing a multiplayer card game. And currently looking for best
> > server. I have R&D on three servers RED5, SmartFox and Elctro Server.
> >
> > RED5 is open source but you have to right midle tier for android to
> > communicate with server.
> > SmartFox has inherent Android support.
> >
> > Would you please share your expert thoughts or point me some other
> servers.
> > Thanks
> >
> > --
> > Best Regards,
> > Atif Gulzar
> >
> > I  Unicode, ɹɐzlnƃ ɟıʇɐ
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Best Server for Android MultiPlayer Games?

2010-01-18 Thread Robert Green
I used Ruby on Rails with JSON as the high-level protocol for Wixel
and it worked very well.  I just wrote a gateway service and used AIDL
to define the interfaces.  Took me about a month to do from start to
finish.

On Jan 18, 11:52 pm, Atif Gulzar  wrote:
> Hi All,
>
> I am developing a multiplayer card game. And currently looking for best
> server. I have R&D on three servers RED5, SmartFox and Elctro Server.
>
> RED5 is open source but you have to right midle tier for android to
> communicate with server.
> SmartFox has inherent Android support.
>
> Would you please share your expert thoughts or point me some other servers.
> Thanks
>
> --
> Best Regards,
> Atif Gulzar
>
> I  Unicode, ɹɐzlnƃ ɟıʇɐ
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Scaling icons on MapActivity with zoom

2010-01-18 Thread Kevin Duffey
Good point Frank.  Do you know by chance if the draw() method is called
several times per second like in desktop/windowing/games? I am guessing it's
not as there is no notion of a windowing setup where each window has to
repaint itself as windows above it might move around (user dragging window),
etc. Again I've not delved into a lot of this yet, so not entirely sure on
the details of the various view draw() calls and how often they are
performed.


On Mon, Jan 18, 2010 at 9:55 PM, Frank Weiss  wrote:

> Sounds good. I would start by overriding this method in your subclass of
> Overlay:
>
>  public void *draw*(android.graphics.Canvas canvas,
>  
> MapView
>  mapView,
>  boolean shadow)
>
> and then figure out the correct scale for your icons from the MapView
> object. Whether this ultimately solves your problem is hard to say, but it's
> probably better to just start coding instead of over-analyzing the problem.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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: Scaling icons on MapActivity with zoom

2010-01-18 Thread Frank Weiss
Sounds good. I would start by overriding this method in your subclass of
Overlay:

 public void *draw*(android.graphics.Canvas canvas,

MapView
 mapView,
 boolean shadow)

and then figure out the correct scale for your icons from the MapView
object. Whether this ultimately solves your problem is hard to say, but it's
probably better to just start coding instead of over-analyzing the problem.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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 Server for Android MultiPlayer Games?

2010-01-18 Thread Atif Gulzar
Hi All,

I am developing a multiplayer card game. And currently looking for best
server. I have R&D on three servers RED5, SmartFox and Elctro Server.

RED5 is open source but you have to right midle tier for android to
communicate with server.
SmartFox has inherent Android support.

Would you please share your expert thoughts or point me some other servers.
Thanks



--
Best Regards,
Atif Gulzar

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

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread JP

Think about it for a moment - you've got only one pipe, and over the
air that's not really all that fast. I doubt you win anything by
trying to squeeze images through simultaneously.



On Jan 18, 8:53 pm, And-Rider  wrote:
> yes if i send my calls i a sequential manner it should not be an
> issue. But in certain cases asynchronous calls do help us to speed up
> the performance a lot
>
> For example if i have a listview and in each row if i have an image to
> download then asynchronous calls would be much faster. In this case
> unfortunately time out happens in a synchronous manner. So if i send
> five calls the in a asynchronous manner those calls are not timing out
> in an asynchronous manner. I think this should probably be a bug...
>
> On Jan 18, 11:44 pm, JP  wrote:
>
> > On Jan 18, 7:28 am, And-Rider  wrote:
>
> > > In that case the network connectivity check would fail. It will show
> > > as if we have an network connection but we actually don't have an
> > > internet connection.
>
> > This can be the case at any point, regardless of data link. Still,
> > checking for network connectivity is helpful - I use it to display
> > message to the user.
>
> > > Another case that we might face is that if a user is traveling in an
> > > area where the network connectivity is fluctuating.
>
> > Exactly, see above.
>
> > > In this cases is it not necessary for us to set a proper timeout..?.
> > > And if the timeout happens in a synchronous manner then it might take
> > > a long time for the last call to time out.
>
> > I use a sequential model to work off the various calls to the server
> > side over time. This means I didn't have to deal with the problem
> > you've found and cannot offer a direct answer. There certainly is the
> > possibility that the first connection blocks the following on the SDK/
> > Android level, for whatever reason. Some code diving would be in order
> > to get to the bottom of this. The question could be raised if that's
> > an effective use of your time, it wouldn't get you anywhere solving
> > the problem...
> > From what I can say, I'd recommend to switch to a sequential, managed
> > model with an adequately low connect and read TO. Android (the mobile
> > environment in general) isn't like the fixed side where you might have
> > the latitude to whip up a bunch of threads to work off various tasks
> > in parallel. The constraints of the environment just don't allow
> > nearly as much play.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] AdWhirl - any experience with it?

2010-01-18 Thread Kevin Duffey
I am curious.. how do you work in ad support into an app? This is one of the
business models discussed in other threads, and it seems like providing a
lite version with ads, and a pay version is one way to go. Or, just do a
full version with ads in it all the time. I would love to know how to get
started on adding "ad" support. How do you set up the ability to get paid
from the ad providers? How/when do you display ads, and where do you get the
ads from? How many ads must display to earn $1. Etc. I'd love to know more
about how all this works and how much you make or how you figure out how
much you can potentially make this way.



On Mon, Jan 18, 2010 at 1:53 PM, Greg Donald  wrote:

> On Mon, Jan 18, 2010 at 2:20 PM, westmeadboy 
> wrote:
> > I would love the Android SDK to include some kind of generic Ad View
> > where you could control things like the ad provider from an remote
> > server.
>
> Greystripe has isAdReady() so you can check to see if you should show
> an ad from an alternate or not.  I've suggested this functionality be
> added to both Admob and Mobclix, but I haven't heard either of them
> say they will implement it yet.
>
> I agree, some sort of standardization would be good to have.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.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
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread And-Rider
yes if i send my calls i a sequential manner it should not be an
issue. But in certain cases asynchronous calls do help us to speed up
the performance a lot

For example if i have a listview and in each row if i have an image to
download then asynchronous calls would be much faster. In this case
unfortunately time out happens in a synchronous manner. So if i send
five calls the in a asynchronous manner those calls are not timing out
in an asynchronous manner. I think this should probably be a bug...

On Jan 18, 11:44 pm, JP  wrote:
> On Jan 18, 7:28 am, And-Rider  wrote:
>
> > In that case the network connectivity check would fail. It will show
> > as if we have an network connection but we actually don't have an
> > internet connection.
>
> This can be the case at any point, regardless of data link. Still,
> checking for network connectivity is helpful - I use it to display
> message to the user.
>
>
>
> > Another case that we might face is that if a user is traveling in an
> > area where the network connectivity is fluctuating.
>
> Exactly, see above.
>
> > In this cases is it not necessary for us to set a proper timeout..?.
> > And if the timeout happens in a synchronous manner then it might take
> > a long time for the last call to time out.
>
> I use a sequential model to work off the various calls to the server
> side over time. This means I didn't have to deal with the problem
> you've found and cannot offer a direct answer. There certainly is the
> possibility that the first connection blocks the following on the SDK/
> Android level, for whatever reason. Some code diving would be in order
> to get to the bottom of this. The question could be raised if that's
> an effective use of your time, it wouldn't get you anywhere solving
> the problem...
> From what I can say, I'd recommend to switch to a sequential, managed
> model with an adequately low connect and read TO. Android (the mobile
> environment in general) isn't like the fixed side where you might have
> the latitude to whip up a bunch of threads to work off various tasks
> in parallel. The constraints of the environment just don't allow
> nearly as much play.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Working in Windows 2000

2010-01-18 Thread Kevin Duffey
Yah.. if you have 3GB of ram, give VirtualBox a try with 1GB ram for the
guest Ubuntu. It's a little sluggish to work in..but it does work quite
well.

On Mon, Jan 18, 2010 at 2:19 PM, guiha...@gmail.com wrote:

> Thanks for all suggestions. I'll try to run linux, either in a
> partition or in virtualbox.
>
> cheers
>
>guich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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: Scaling icons on MapActivity with zoom

2010-01-18 Thread Kevin Duffey
Exactly Frank. I'd first like to avoid loading different image sizes for
each zoom level for each item I want to place on the map. Here's the thing..
in my app, it shows state parks. If you're zoomed out far enough, you're not
going to see any parks. Right now tho, as you zoom out, all my icons stay
the same size and get closer together the further out you go, until, as you
said, they are crowding each other.. overlapping. You can still click on
them..but it's pointless because you're probably clicking on several at once
when you've zoomed out to see the full US. I want the icons to show up when
the user is zoomed in at a certain level.. and get smaller as they zoom out
for a couple zooms, then disappear completely.

The question is.. I add the item overlays to the MapActivity.. er.. don't
have my code up right now, but the map controller or something like that.
Each item has an icon associated with it. I then add them to the list and
they just show up magically as part of that API. I am not entirely sure how
to "replace" icons with different sized images as the user zooms out. I did
figure out how to add the listener for zoom.. the true/false parameter let's
me know if they zoomed in or out, and I can control it to some extent, as
well as find the current zoom level. I am just not entirely sure how I
replace the icon that I set when I added the overlay item to the list. I
haven't messed with it yet, but it wasn't immediately obvious to me how to
do this without removing items from the list, adding new items with new
icons to the list, and drawing. That is my first guess.. but it seems there
would be a better way to do this.

On Mon, Jan 18, 2010 at 8:37 PM, Frank Weiss  wrote:

> I'm assuming you mean the overlay markers.
>
> I'll agree with TreKing. Scaling map icons with the scale of the map (the
> icon remain the same size relative to the size of a city, map feature, etc.)
> is not such a great idea. I wouldn't have done it if I'd designed google
> maps. Indeed I just tried the Maps application on the Droid and the marker
> icon (and text) for a POI remain the same pixel size from one zoom extreme
> to another.
>
> That said, if you do want to scale the overlay markers, I'd suggest using
> only three or four sizes. Decide which range of zoom levels each one is for.
> Upon zoom notification, change the drawable for the overlay as needed.
> There's another issue of marker crowding as you zoom out. I don't know if
> you need to address that in your map application as well.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to display XML

2010-01-18 Thread prachi
Hii i think it can be done.

We can use the function loadUrl and give the url of the xml to be
displayed.
Or we can store the xml to be displayed in the string variable and
display it using the method loadData giving mimetype as text/html.

On Jan 16, 4:43 am, Temitope Akinwande  wrote:
> Hi all,
>
> Is it possible to display an xml file with all the tags in Webview or the
> Browser without first parsing the xml file?
> For example, is it possible to display the following
>   
>     Danny
>     Jane
>     Hello
>     How are you doing?
>   
>
> without it being parsed to display
>
> Danny Jane Hello How are you doing?
>
> Any help will be 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

Re: [android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread Frank Weiss
I'm assuming you mean the overlay markers.

I'll agree with TreKing. Scaling map icons with the scale of the map (the
icon remain the same size relative to the size of a city, map feature, etc.)
is not such a great idea. I wouldn't have done it if I'd designed google
maps. Indeed I just tried the Maps application on the Droid and the marker
icon (and text) for a POI remain the same pixel size from one zoom extreme
to another.

That said, if you do want to scale the overlay markers, I'd suggest using
only three or four sizes. Decide which range of zoom levels each one is for.
Upon zoom notification, change the drawable for the overlay as needed.
There's another issue of marker crowding as you zoom out. I don't know if
you need to address that in your map application as well.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] setting wma as alarm ringtone?

2010-01-18 Thread Kevin Duffey
I use RingDroid.. I think it supports wma, not sure now. I use mp3 tho with
it no problem, and it's a free app.

On Mon, Jan 18, 2010 at 4:55 PM, sansu  wrote:

> Hi,
>
> Can we set a wma song as alarm ringtone?
> I set a wma as alarm ringtone but it is playing the different one but
> it is working fine with mp3.
>
> 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
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Mobile App Socialization - We Need an API

2010-01-18 Thread Kevin Duffey
Ok..read your blog. I personally still don't get the craze over twitter. I
enjoy blogging.. when I have something to share..but as I have nobody that
reads my blog, I don't really blog any more. I can't stand trying to type on
my phone device. The virtual keyboard on the Moto Droid is pretty good..but
I still mis-type all the time, and the pull out keyboard is worse for my big
hands/fingers. The idea of writing a short message about me eating at a
McDonalds, or that I just saw a car crash, or where I am driving by, etc.. I
don't know. It doesn't click with me. About the only thing that does seem to
make sense with twitter for me is posting links to say, good blogs or
technology/info stuff to share with followers. Now that twitter posts
directly to your FB account and many others, I suppose that's one way of
sharing a random link that you think others would enjoy, quickly.

I do however like the idea you are proposing.. tweeting about an update and
anyone that uses your app getting that tweet is handy. But doesn't the
update mechanism of droid already do this? I get status updates all that
time for apps to update. I don't know that a tweet would do anything
more/better than what I get now. About the only reason I could see it being
better is if info about whats in the new update were provided with the
tweet. Many updates, when you go to the market, dont say anything at all, so
you're not sure why you're updating. The other issue is, how do you get
people to follow your app tweets..especially given that droid already gives
status updates for app updates?

I do agree tho.. the market is VERY hard to find apps with. I don't know why
so many people say the iPhone app store is better. I don't think either one
are adapted to finding apps very easily. I can tell you, after talking to at
least 2 dozen people with iphone and droids... you know how they find apps?
They look at either the top 10 or so apps, usually under the free tab, or
they search for a specific title. Most people will miss tons of potentially
good apps that are further down in the list. I think what market needs is a
much better "drill down" feature. Have paid, free, top picks, and a "drill
down" so you can narrow down apps by multiple categories. iPhone could
benefit from the same feature.


On Mon, Jan 18, 2010 at 11:15 AM, dadical  wrote:

> I've been thinking a lot lately about how to gain visibility for
> mobile apps.  It's getting more and more difficult as an independent
> developer to get your application noticed among the piles of crap that
> are stacking up in the market.  I think that we need some way to
> socialize our applications and capitalize on the momentum that we do
> happen to build from things like reviews, forum postings, etc.
>
> I've blogged about my ideas on how to make this happen here:
>
> http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/96-im-all-a-twitter
>
> Thoughts?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: controling the user language

2010-01-18 Thread prachi
Hi
Your application can support multiple languge.

The only thing you need to do is specify strings of that language in
strings.xml and use those string's names where ever required in your
application.

Eg:-R.string.hello-->where hello is the string name having value
in some other language.

On Jan 16, 10:31 pm, gilmad  wrote:
> 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

Re: [android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread Kevin Duffey
Thanks for the reply. The main reason to scale is that there isn't any way
that I can find that says at what zoom level the icon should be at its
default size. So if I start the map off at zoom level 10, and the user
scrolls around, the size of the icon is about the size of several cities.
That's way too big. If they zoom in a few notches, the image fits better.
The thing is.. as they zoom out so they can scroll around the state faster,
the icons should get smaller, but they dont. With them being so big, they
take up larger and larger pieces of the map as the user zooms out. It looks
really bad. I don't see any of the icons/images that google provides do
that..they all scale with zoom. Same as street names, etc. So it would be
nice if I can control the scale of the images some how depending on the zoom
level.

On Mon, Jan 18, 2010 at 11:40 AM, TreKing  wrote:

> I haven't tried this at all, but I don't think this is part of the maps API
> and is probably that way on purpose.
>
> Given the size of the screens you'll be running on and the level of zoom
> you can achieve with the maps, if you scale your images proportionately so
> they appear the same size relative to your map, your images will be either
> too small to be noticeable when zooming out or so huge they take up the
> entire screen when you zoom in. This is probably why this isn't built into
> the API and I have to assume this is not the ideal functionality for
> whatever you're doing either.
>
> So why do you want to scale images on the map anyway?
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
>
> On Mon, Jan 18, 2010 at 1:05 PM, Kevin Duffey  wrote:
>
>> So it looks like I may have to manually (programatically) listen for zoom
>> events and scale the images myself... or has anyone been able to get their
>> overlay icons to scale in size with zoom?
>>
>>
>> On Tue, Jan 12, 2010 at 1:00 AM, Kevin Duffey wrote:
>>
>>> Hey all,
>>>
>>> I been messing around with the MapActivity stuff. Pretty nice how easy it
>>> is to add clickable icons/images to the map and make them mean something.
>>> That said I notice that as you zoom in and out, they don't scale
>>> automatically. Is there a way to achieve this as part of the SDK? I've not
>>> found any way to enable this yet. Or do I need to listen for zoom events and
>>> somehow resize my icons.
>>>
>>> Thanks.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: instances of MediaPlayer

2010-01-18 Thread Breezy
Not sure, but release and recreate my instances.

I just created 2 instances of mediaplayer, but they wouldn't play
simultaneously, they played consecutively.

On Jan 18, 8:34 pm, rukiman  wrote:
> Is it possible to have two instances of MediaPlayer to play sounds/
> video?
> How many instances are actually allowed? I can see from the Javadocs
> that there is a limited amount of instances of MediaPlayer allowed.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Problem using the AudioRecord API

2010-01-18 Thread frantz lohier
Hi All,

I'm writing an Activity that attempts to use the AudioRecord API. When I
invoke the setNotificationMarkerPosition, my activity crashes with the
following error message:

*java.lang.IllegalStateException: Unable to retrieve AudioRecord pointer for
setPositionUpdatePeriod()*

E/AndroidRuntime( 4543):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
E/AndroidRuntime( 4543):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime( 4543):at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime( 4543):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 4543):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4543):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 4543):at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 4543):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4543):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 4543):at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 4543):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 4543):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 4543): *Caused by: java.lang.IllegalStateException: Unable
to retrieve AudioRecord pointer for setPositionUpdatePeriod()*
E/AndroidRuntime( 4543):at
android.media.AudioRecord.native_set_pos_update_period(Native Method)
E/AndroidRuntime( 4543):at
android.media.AudioRecord.setPositionNotificationPeriod(AudioRecord.java:650)
E/AndroidRuntime( 4543):at
com.intentionis.ambulabilis.android.ambu.full.AmBuMain.onStart(AmBuMain.java:2069)
E/AndroidRuntime( 4543):at
android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1205)
E/AndroidRuntime( 4543):at
android.app.Activity.performStart(Activity.java:3519)
E/AndroidRuntime( 4543):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2373)


The code snippet that triggers this bug is as follows:

AudioRecord audiorec = new AudioRecord(
MediaRecorder.AudioSource.MIC,
11025,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
11025*20);

//No exception is thrown and
audiorec seems to be valid


//THIS CALL CAUSES THE CRASH (THIS HAPPENS EVEN WHEN I PLACE THE LINE BELOW
THE NEXT SENTENCE

 audiorec.setPositionNotificationPeriod(4000);
 audiorec.setRecordPositionUpdateListener(new
AudioRecord.OnRecordPositionUpdateListener()
{
public void onMarkerReached(AudioRecord rec) {
 ;
}

public void onPeriodicNotification(AudioRecord rec) {
 ;
}
});


Thanks for anyone's help (my thirst for noetic stimulation has some limits
and I am giving up :) ).

PS: the above code also fails when I try different sampling rate, channel
configuration.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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 is MediaPlayer playing before TextView setText takes effect?

2010-01-18 Thread Breezy
When a button is clicked the text of a textview changes and a sound is
played, but the sound is played first then the text changes.  I would
like it to happen simultaneously if not then the text to take effect
first.  Here's my code...



public void playSound(int playingFile)
{
MediaPlayer mp = MediaPlayer.create(getBaseContext(), 
playingFile);
mp.start();
while(mp.isPlaying())
{
//i put this in so the mp isn't released in 
middle of the
sound
}
mp.release();
}

public void onClick(View v)
{
if(v==button1)
{

maintext.setText("2");
maintext.setTextColor(Color.RED);
playSound(R.raw.s2);
}
 }


Can anyone see the problem?  It works, just not as I hoped.  Is there
any way this could be more efficient as well?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] instances of MediaPlayer

2010-01-18 Thread rukiman
Is it possible to have two instances of MediaPlayer to play sounds/
video?
How many instances are actually allowed? I can see from the Javadocs
that there is a limited amount of instances of MediaPlayer allowed.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Why is the onCreate called twice When is device booting??

2010-01-18 Thread Dianne Hackborn
Either is normal.  If there is a configuration change (such as not getting
the MCC/MNC until after your activity starts) then your activity will be
re-created.

On Mon, Jan 18, 2010 at 5:00 PM, Ryu  wrote:

> Hi, everybody~
>
>
> i make 'hello world' app :-) and wrote a Log code in onCreate.
>
> and then give "android.intent.category.DEFAULT" and
> "android.intent.category.HOME"
>
> this situation appears emulator(1.5, 2.0, 2.1).
>
> but HTC hero(1.5, original htc rom) didn't !!! it just call one time!!
>
>
> Which is normal?
>
>
> and If calling twice is normal, why are they call twice???
>
> plz tell me & help me~
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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
>



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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: I can launch any app, but problems with "contacts" and "phone"

2010-01-18 Thread Brion Emde
Are you declaring your intention to do things with Contacts and Phone
via Permissions in AndroidManifest.xml?

See: http://developer.android.com/guide/topics/security/security.html

And look in the Sample Applications in the ListView examples.

On Jan 17, 2:13 pm, "C.Versieux" 
wrote:
> Hi.
>
> I recently made a software that can launch any application that is
> open. It works really fine, except for 2 applications, and i really
> don't understand why.
>
> Here is what i do:
>
> 1) I make a list of all running apps:
>
> Code:
> activityManager = (ActivityManager)this.getSystemService
> (ACTIVITY_SERVICE);
> List allTasks =
> activityManager.getRunningTasks(30);
>
> 2) I get all the Intents to lauch apps:
>
> Code:
> for (ActivityManager.RunningTaskInfo aTask : allTasks) {
> (...)
> PackageManager monPackageManager =getPackageManager();
> myIntent= myPackageManager.getLaunchIntentForPackage
> (aTask.baseActivity.getPackageName()));
>
> 3) I launch my apps:
>
> Code:
> this.startActivity(myIntent);
>
> This code work for all applications and it's nice. Therefore, i get
> problems with:
>
> com.android.contacts
> com.android.phone -> myIntent is null!!!
>
> I really don't understand what happen with these 2 android
> applications!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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 Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-01-18 Thread Artem Petakov
Ping. Someone please reply with the status of this issue so that we can
figure out how to work around it, or when it might be fixed. I am sorry, it
is a huge issue for us, and I have not been able to get any additional
information.

Thank you,
Artem

On Thu, Jan 14, 2010 at 10:36 AM, BGA  wrote:

> So I went ahead and did some further testing using a Motorola
> Milestone and here are my results:
>
> 1 - My workaround, as mentioned by Artem, works with it. In other
> words, re-registering the sendor listening in stand by mode makes the
> sensor works again.
> 2 - Acquiring the dim lock after the screen goes off (also as
> described by Artem) does not work with it. On the plus side, the
> screen does not turn on when you acquire it. ;)
> 3 - The HTC Tattoo screen turning on when acquiring the dim lock seems
> to be a bug on it. The documentation clearly states that the screen
> will not turn on when you do that unless you explicitly ask for it by
> also using the ACQUIRE_CAUSES_WAKEUP flag.
> 4 - All HTC phones (except for the G1) seem to shut down the
> orientation sensor (at least) completely when entering standby mode.
>
> As a bonus, I also noticed the following:
>
> 1 - On the Motorola Milestone, there is no need to hold a CPU lock in
> the service. Somehow it works without that (and it does not drain the
> battery it seems).
> 2 - The G1 does not shut down the orientation sensor as, as long as
> you hold a CPU lock, you still get orientation changes when in
> standby.
>
> To me it looks like phone manufacturers are doing whatever they want
> concerning this subject. This is either because what is supposed to be
> done is not specified or because they are simply not following the
> specs. This ends up becoming a nightmare for developers and, for
> obvious reasons, this is not a good thing.
>
> I am not sure what can be done to sort this up but it seems that, at
> the very least, a way to say "I want to use this sensor even in
> standby mode" would solve most of the problems (as long as device
> manufacturers would abide to this).
>
> -Bruno
>
>
> On Jan 14, 12:42 pm, Artem - WorkSmart Labs  wrote:
> > Hi Dianne and other Android Team Members,
> >
> > Please provide some kind of comment on this long-standing and serious
> > bug:
> >
> > http://code.google.com/p/android/issues/detail?id=3708(one of top
> > bugs right now)
> > "OnSensorChanged() is no longer called in standby mode since last
> > Firmware upgrade"
> >
> > A lot of serious developers have looked at this, and we can't seem to
> > find a good solution that works for example on the HTC Hero. The best
> > work on this done by Bruno unfortunately still does not work for many
> > handsets. I have looked into this carefully, but the issue seems very
> > hard to track down. I can repro this on the HTC Tattoo as well. The
> > only work-around seems to be to intercept the ACTION_SCREEN_ON event,
> > and then to again re-grab the DIM_SCREEN lock, which causes the screen
> > to turn on again. This unfortunately drains the battery like mad.
> >
> > The latest comment on this (from Dianne) said we have to hold a
> > partial wake lock, however we are all already doing this and this does
> > not help.
> >
> > This breaks all pedometer and similar applications right now, and our
> > users are really sad.
> >
> > Please please help, or at least comment on the status.
> >
> > Artem
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Why is the onCreate called twice When is device booting??

2010-01-18 Thread Ryu
Hi, everybody~


i make 'hello world' app :-) and wrote a Log code in onCreate.

and then give "android.intent.category.DEFAULT" and
"android.intent.category.HOME"

this situation appears emulator(1.5, 2.0, 2.1).

but HTC hero(1.5, original htc rom) didn't !!! it just call one time!!


Which is normal?


and If calling twice is normal, why are they call twice???

plz tell me & help me~


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] setting wma as alarm ringtone?

2010-01-18 Thread sansu
Hi,

Can we set a wma song as alarm ringtone?
I set a wma as alarm ringtone but it is playing the different one but
it is working fine with mp3.

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

Re: [android-developers] Debugging system processes in Eclipse

2010-01-18 Thread Dianne Hackborn
Hi, these kinds of questions should be on android-porting.  If you look
through there I am pretty sure there have been previous discussions about
doing this.

On Mon, Jan 18, 2010 at 3:51 PM, Matan  wrote:

> Hi,
>
> How can I debug some system process (...acore), for example, the
> status bar, in Eclipse ?
> I couldn't find any help online yet. I'm able to debug a normal
> application, but not system threads (windowManagerSevice etc...).
>
> Also, when I open the Android source in Eclipse using the official
> instructions, I get build errors, is it OK ? (already executed "make"
> successfully)
>
> Thanks a lot,
> Matan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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
>



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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread Dianne Hackborn
As of 2.0 I believe there is an additional attribute on uses-library that
lets you specify that it is optional.

On Mon, Jan 18, 2010 at 3:14 PM, MarcoAndroid  wrote:

> Ok thanks.
>
> It would be great to be able to still provide the app to everybody
> (both Google Market & outside), but just no maps functionality enabled
> if Maps can't be found/isn't available.
>
> Can't I do this as a workaround to make my app handle that case too?
>
> 1- remove the uses-library tag from the manifest (thus everybody can
> install it)
> 2- try to load for example the MapView class via reflection or a
> wrapper as mentioned here
> http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html
> 3- if not there, don't show maps functionality. If there, assume it's
> available.
>
> BTW, is the loading of libs specified via uses-library different from
> the "regular" class/lib loading?
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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
>



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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 3:29 PM, Piotr  wrote:

> I tried to fix some problems with my app on new devices. But you can't
> bugfix, without real device, when your app works on all emu possible
> SDK's without problems.
>

Specifically which problems are you having?

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 3:17 PM, Alberto  wrote:

> Dianne so the Nexus One gets the updates directly from Google after
> HTC builds it? Or is there a special partnership between them that
> allows Google to update it without HTC? Oh I see it now, the store is
> very important.
>

Please don't read too much into what I said -- all I was replying to was the
question about the carrier preventing an available update from going to a
device.  With devices sold through the store, the relationship is with the
seller so the carrier shouldn't be involved at all in updates.

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Gridview loads in reverse on onConfigurationChanged

2010-01-18 Thread Streets Of Boston
Hi Roman,

It does happen. :-)

I can reproduce it almost every time like this:
- Just create an activity with a Grid View with quite a few images (or
grid-items) and attach a grid-layout-animator to the grid-view.
Configure the grid-view-animator in such a way that you see how the
grid-view-items are laid-out. E.g. columns first, rows later.
- Create an (empty) sub-activity that can be launched from the one
having the grid-view.


- Start your grid-view's activiy in portrait orientation.
- Start your sub-activity.
- Rotate your phone into landscape orientation.
- Press back to finish the sub-activity.
  The grid-view's activity is shown again and...

... 9 out of 10 times, i see the grid-view being built up in reverse
mode (i'm running on 2.1, Nexus One).

In my app, the 'getView()' method does not rely on the order in which
the 'getView()' is called at all.

On Jan 18, 2:15 am, Romain Guy  wrote:
> I have never noticed such an issue. The only way I can think of that
> would cause this to happen would be if your adapter relies on the
> order of the getView() calls. Note there is absolutely no guarantee
> about the order in which getView() will be called (the position
> argument will not necessarily be sequential, incrementing or
> decrementing.)
>
>
>
>
>
> On Sun, Jan 17, 2010 at 8:57 PM, Mike M  wrote:
> > Streets of Boston,
>
> > Thanks for the reply.  I do have an animation on my GridView, but I
> > took it off and still notice the problem.
>
> > Any ideas?
>
> > Thanks
>
> > On Jan 17, 1:23 pm, Streets Of Boston  wrote:
> >> I've seen this too in my app.
>
> >> If you add a layout-animation, that animates the grid-view children
> >> (i.e. the grid-items), you can clearly see this reverse order.
>
> >> On Jan 17, 4:03 am, Mike M  wrote:
>
> >> > Hey everyone,
>
> >> > I have a gridview of images that I load from the internet.  When the
> >> > phone rotates (or some other config change), onConfigurationChanged()
> >> > is called.  When that happens, the items in the gridview are reversed
> >> > (meaning, the 1st image is the last; they are in reverse order).
>
> >> > Does anyone know why this is or how to change it?   I'm hoping someone
> >> > has run into this before...
>
> >> > Sorry if I don't share any code.  I don't think It'd help; it's more
> >> > of a conceptual question.
>
> >> > Thanks,
>
> >> > Mike
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > 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- 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: Android Coverflow widget

2010-01-18 Thread Nerdrow
I did a similar POC overriding the getChildStaticTransformation()
method of the Gallery.  Like Taf's widget, you need to provide a
standard adapter and should probably pre-create the mirror images (if
you need them).  The below runs pretty smooth on a G1 & Droid, feel
free to use and improve :)

package com.nnm.sexyui.widget;

import android.content.Context;
import android.graphics.Camera;
import android.graphics.Color;
import android.graphics.Matrix;
import android.util.AttributeSet;
//import android.util.Log;
import android.view.View;
import android.view.animation.Transformation;
import android.widget.Gallery;



/**
 *
 */
public class Gallery3D extends Gallery {

//private static final String TAG = "Gallery3D";

private static final int DEFAULT_FADING_EDGE_LENGTH = 90;
private static final Camera mCamera = new Camera();

private float[] mOffsetRotateCache, mOffsetScaleCache;
private float   mMaxUnselectedRotateAngle = 45.0f,
mMaxSelectedScale = 1.0f, 
mMinUnselectedScale = 0.85f;

private int mStageOffsetMin = 0, mStageOffsetMax = 0;
private int mItemWidth = 280;



/**
 CONSTRUCTORS
**/

/**
 * Create a new Gallery3D instance.
 * @param context
 */
public Gallery3D(Context context) {
this(context, null);
}
/**
 * Create a new Gallery3D instance.
 * @param context
 * @param attrs
 */
public Gallery3D(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
/**
 * Create a new Gallery3D instance.
 * @param context
 * @param attrs
 * @param defStyle
 */
public Gallery3D(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);

setClipChildren(false);
setClipToPadding(false);
setDrawingCacheBackgroundColor(Color.BLACK);
setHorizontalFadingEdgeEnabled(true);
setFadingEdgeLength(DEFAULT_FADING_EDGE_LENGTH);
setStaticTransformationsEnabled(true);
}



/**
 GETTERS/SETTERS
**/

/**
 * The width of gallery items (must be uniform)
 * @param width
 */
public final void setItemWidth(int width) {
mItemWidth = width;
buildOffsetCache();
}
/**
 * The amount that non-focused items will be rotated.
 * @param rotate Valid rotation value between 0.0f and 90.0f.
 */
public final void setUnselectedRotate(float rotate) {
mMaxUnselectedRotateAngle = rotate;
buildOffsetCache();
}
/**
 * The amount that non-selected items will be scaled.
 * @param scale Scale value, may be greater than 1.0f.
 */
public final void setUnselectedScale(float scale) {
mMinUnselectedScale = scale;
buildOffsetCache();
}
/**
 * Optional, over-scale the selected item (ie, 1.1f)
 * @param scale
 */
public final void setSelectedScale(float scale) {
mMaxSelectedScale = scale;
buildOffsetCache();
}



/**
 PRIVATE METHODS
**/

/**
 * Pre-calculate the range rotation angles and scaling factors
 * for the non-static horizontal range of the Gallery.
 */
private final void buildOffsetCache() {
final int galleryWidth = getWidth();
if(galleryWidth<1 || mItemWidth<1) return;

final float unRotate = mMaxUnselectedRotateAngle,
unScale = mMinUnselectedScale,
maxScale = mMaxSelectedScale,
unScaleRange = 
(mMaxSelectedScale-mMinUnselectedScale);

final float centerline = galleryWidth/2;
final float itemHalfWidth = mItemWidth/2;

final int rangeMin = mStageOffsetMin = (int)(centerline-
itemHalfWidth);
final int rangeMax = mStageOffsetMax = (int)(centerline
+itemHalfWidth);

mOffsetRotateCache = new float[galleryWidth];
mOffsetScaleCache = new float[galleryWidth];

// child is to the left of the centerline, so translating only
for(int i=0;i0)?
(maxScale-(rangePct*unScaleRange)):
(maxScale+(rangePct*unScaleRange));
}

// child is to the right of the range, so translating only
for(int i=rangeMax;i
 * Override this if your v

[android-developers] Debugging system processes in Eclipse

2010-01-18 Thread Matan
Hi,

How can I debug some system process (...acore), for example, the
status bar, in Eclipse ?
I couldn't find any help online yet. I'm able to debug a normal
application, but not system threads (windowManagerSevice etc...).

Also, when I open the Android source in Eclipse using the official
instructions, I get build errors, is it OK ? (already executed "make"
successfully)

Thanks a lot,
Matan
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Text To Speech Android 1.6 with minsdk 3

2010-01-18 Thread Hayden
Eric,

Thanks for the response!  Sorry for my delay as well, it's been a busy
holiday.

I'm not exactly sure what I did, but I got it working on 1.5 devices.
Thanks for writing your initial message and code, it's much
appreciated!

Hayden


On Dec 30 2009, 8:54 am, Eric Carman  wrote:
> Hello Hayden,
>
> I'm not sure why you are getting this error. It looks like the method
> checkavailable can't be found. Strange. Also hard to say without
> seeing the code.
>
> One thing to check: Make sure the block
>
>         static {
>                 try {
>                         WrapTTS.checkAvailable();
>                         mTTSClassAvailable = true;
>                 } catch (Throwable t) {
>                         mTTSClassAvailable = false;
>                 }
>         }
>
> isn't part of any method in your main unit. It is called outside of
> any constructor or any other method.
>
> Also, sorry for the delay in responding. Apparently I don't have my
> profile set up to email me when I get a response to a posting.
>
> Best Regards,
> Eric
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Generating Entropy (Kernel level)

2010-01-18 Thread Rich
I'm gonna bump this because it didn't display properly before - why
does that happen with this group sometimes?

R

On Jan 12, 5:06 pm, Rich  wrote:
> Hello!
>
> I've developed an application which requires quite a lot ofentropy
> from the kernel. what devices feed toentropyin the kernel? What is
> the best way to generate moreentropy? Can I turn on the accelormeters
> to generate moreentropy? What if I listen to touch-screen events?
>
> Thanks for your time!
> Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Piotr
You are f** right. And I'm just ungry.

Android is going stright forward J2ME way - milions of devices,
thousands profiles, screen sizes, controls, etc..

I think, the biggest Java/Android advantage - one code for all devices
is slowly vanishing.

I tried to fix some problems with my app on new devices. But you can't
bugfix, without real device, when your app works on all emu possible
SDK's without problems.

I'm tired of that shit.


So, small developers like me, that do not own thousand devices to
test, are wasting more and more our time for testing, tuning, special
custom design, bugfixing for new devices each day.

The problem is growing and I'm sure, that future testing costs will be
BIG.

I'm jumping out of that train to nowhere..


On 17 Sty, 05:06, Alberto  wrote:
> UPDATE: At first this was going to be just a call to fix the updating
> process, but I've realized is not just the updates Google needs to
> take control of.
>
> Now is the time to address the fragmentation issue that's starting to
> plague the platform, before there are hundred of handsets and the
> whole thing spins out of control. I believe we've seen enough evidence
> that the updating process through the carriers doesn't work, many
> phones are left behind and the whole thing is a mess, today we're
> already talking about the next update (2.5 Froyo?) while there are
> phones out there stuck on 1.5, the fragmentation is only going to get
> worse as we move on.
>
> Imagine when 3.0 gets here, and we have hundreds of handsets with 1.5,
> 1.6, 2.1, 2.5, 2.7, 3.0 some with Sense UI, MotoBLUR, etc. It's going
> to be hell for developers and even more confusing for consumers,
> driving everybody away from the platform. You guys need to take
> control of this at least for the Google Experience phones. I'm not
> sure if Google updating the handsets directly would bring legal issues
> with the carriers/manufacturers, if it would, please enlighten me.
>
> So how do we fix this? I'm pretty sure you guys have already thought
> about this and I wouldn't be surprised if a solution was coming soon,
> since it''s such an obvious problem. However, here's my two cents, the
> solution is very simple, a desktop application for syncing/updating/
> media playback/android market/amazon mp3, lets call it Android HQ or
> Android Home for the sake of argument.
>
> The updates would be available to consumers as soon as they're
> released, instead of months, years, or never depending on carriers.
> This way most users would've the latest version as well as the
> developers would have the latest SDK, developers would be able to take
> advantage of the new APIs each updates bring and innovate faster,
> instead of spending time supporting older versions.
>
> Android HQ would also address the next two biggest problems with the
> platform, they're: media ecosystem and media syncing/backing. Also,
> the Android Market badly needs a desktop client.
>
> The fragmentation issue is the biggest obstacle the platform is facing
> today and it will most likely decide its success, I've sensed a couple
> of times that Google stance on these issues is to let manufactures/
> carriers make the decisions on a phone to phone basis (multi-touch
> anyone?) but that won't work, it'll eventually slow the momentum we
> have now and kill the platform (WinMo?) Google needs to have a more
> hands-on approach to Android if it wants it succeed.
>
> Anyway, the guys/gals in the Android Team want the platform to succeed
> as much as me, I'm sure they've given this a lot of thought, and a
> solution is probably on the works.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Alberto
Dianne so the Nexus One gets the updates directly from Google after
HTC builds it? Or is there a special partnership between them that
allows Google to update it without HTC? Oh I see it now, the store is
very important.

That's kind of the solution to my problem, if the store becomes
successful enough that most people buy their Android phones directly
from Google, then, most phones would always have the latest version
since Google updates them, it's brilliant. Of course, now there's only
one phone on one carrier, but I could see this working when there are
a handful of phones on all carriers. However, not everybody can/wants
to shell out 200 bucks for a high-end smartphone, I wonder if we'll
see a low-end (0<50$ with contract) smartphone sold through the store,
that'd be something.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread MarcoAndroid
Ok thanks.

It would be great to be able to still provide the app to everybody
(both Google Market & outside), but just no maps functionality enabled
if Maps can't be found/isn't available.

Can't I do this as a workaround to make my app handle that case too?

1- remove the uses-library tag from the manifest (thus everybody can
install it)
2- try to load for example the MapView class via reflection or a
wrapper as mentioned here 
http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html
3- if not there, don't show maps functionality. If there, assume it's
available.

BTW, is the loading of libs specified via uses-library different from
the "regular" class/lib loading?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP


On Jan 18, 2:29 pm, Greg Donald  wrote:
> On Mon, Jan 18, 2010 at 4:18 PM, JP  wrote:
> > At least as far as the argument of screen sizes is concerned -
> > personally I don't count that as an argument in support of
> > fragmentation or anything. At least in that regard someone had the
> > foresight to anticipate this coming the emulator offered multiple
> > screen sizes all the way back at the start, so everyone could/should
> > have been prepared for this.
>
> You design a game for 480x320 and so then what do you do for 854x480?
> It looks hideous having the extra space there.  Some apps you can
> think of something to do with the extra space, but some you can't.  On
> the ones I can't I end up centering things both ways and leave the
> extra space sitting there.

Of course easier said than done, but an element of scaling needs to be
in place. Hard to do really well, while devices smaller than 480x320,
like the Tattoo, just wouldn't make the cut.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
Here are the results:

$ addr2line -f -e libskia.so
0x4a6c4
_ZN8SkBitmapaSERKS_
??:0
0x4a788
_ZN8SkBitmapC1ERKS_
??:0
0x6856c
_ZN8SkDeviceC1ERK8SkBitmap
??:0
0x63cec
_ZN8SkCanvas15setBitmapDeviceERK8SkBitmap
??:0

Seems to be related to bitmap...

good luck

guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 4:18 PM, JP  wrote:
> At least as far as the argument of screen sizes is concerned -
> personally I don't count that as an argument in support of
> fragmentation or anything. At least in that regard someone had the
> foresight to anticipate this coming the emulator offered multiple
> screen sizes all the way back at the start, so everyone could/should
> have been prepared for this.

You design a game for 480x320 and so then what do you do for 854x480?
It looks hideous having the extra space there.  Some apps you can
think of something to do with the extra space, but some you can't.  On
the ones I can't I end up centering things both ways and leave the
extra space sitting there.

The reverse scenario also exists, you build a game for 854x480 and
then what do you do to support the less wide screens?  Smush things
down, spend a lot of time make alternate graphics, what?

It's a mess.


-- 
Greg Donald
destiney.com | gregdonald.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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 3:54 PM, Dianne Hackborn  wrote:
> There is absolutely no need for you to turn that into a matrix and test
> every combination.  Do you work on 480x854 screens?  Great, you have that
> covered regardless of the platform.

But not hardware, different phones behave differently sometimes, even
with the same resolution.

> (1) Platform versions: 1.5, 1.6, 2.x (pretty soon just 2.1; 2.0 and 2.0.1
> are on the way out).

Low as they are, my stats show 2.0 and 2.0.1 are ramping up, not down.

> Most important are the lowest and highest versions to
> be supported; intermediate ones can be given a cursory sanity check.

Cursory sanity checks still require firing up yet another emulator.
This takes more than two minutes even on a smoking fast i7 machine
like mine.

> So you should be able to fairly easily get away with testing: 1.5 HVGA, 2.1
> HVGA, 2.1 480x854, and add 1.6 QVGA if you want to support small screens.
>  Spot check other variations as desired (and knowing what your app does that
> it might get into trouble with).

Even when giving it just some half-hearted effort like you suggest,
that's still a minimum of 3-4 emulators.  That's still a ton of
testing time, especially for a non-trivial app with lots of different
execution paths.


-- 
Greg Donald
destiney.com | gregdonald.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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Romain Guy
And we've warned developers many times to use the dip unit, to not
hard code coordinates, etc.

On Mon, Jan 18, 2010 at 2:18 PM, JP  wrote:
>
>
> On Jan 18, 1:41 pm, Greg Donald  wrote:
>
>> Screen Resolutions:
>>
>> 320x480 - 45.85%
>> 480x854 - 31.74%
>> 480x320 - 16.69%
>> 854x480 - 3.73%
>> 480x800 - 1.15%
>> 800x480 - 0.24%
>>
>> Four or five SDK versions multiplied by three or four screen
>> resolutions makes testing an infinitely long task.  I'm not sure how
>> anyone could look at the current SDK version + screen resolutions
>> permutation and say it's not fragmented.
>
>
> At least as far as the argument of screen sizes is concerned -
> personally I don't count that as an argument in support of
> fragmentation or anything. At least in that regard someone had the
> foresight to anticipate this coming the emulator offered multiple
> screen sizes all the way back at the start, so everyone could/should
> have been prepared for this.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> 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: Working in Windows 2000

2010-01-18 Thread guiha...@gmail.com
Thanks for all suggestions. I'll try to run linux, either in a
partition or in virtualbox.

cheers

guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP


On Jan 18, 1:41 pm, Greg Donald  wrote:

> Screen Resolutions:
>
> 320x480 - 45.85%        
> 480x854 - 31.74%
> 480x320 - 16.69%
> 854x480 - 3.73%
> 480x800 - 1.15%
> 800x480 - 0.24%
>
> Four or five SDK versions multiplied by three or four screen
> resolutions makes testing an infinitely long task.  I'm not sure how
> anyone could look at the current SDK version + screen resolutions
> permutation and say it's not fragmented.  


At least as far as the argument of screen sizes is concerned -
personally I don't count that as an argument in support of
fragmentation or anything. At least in that regard someone had the
foresight to anticipate this coming the emulator offered multiple
screen sizes all the way back at the start, so everyone could/should
have been prepared for this.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP


On Jan 18, 12:45 pm, Dianne Hackborn  wrote:
> On Mon, Jan 18, 2010 at 11:58 AM, JP  wrote:
> > >http://android-developers.blogspot.com/2009/04/backward-compatibility...
> > This means having to cut off users on older Android releases, no?
>
> Um.  No?  The entire article is about how to use newer APIs while remaining
> compatible with older platforms.  Am I missing something?
>
> > Kevin illustrates the problem nicely.
>
> What is that exactly?  I see him talking about incompatible manufacturer
> customizations and how fixing those are the responsibility of the
> manufacturer (true), about newer platform versions being compatible with
> older ones and maintaining support for older ones not being a big deal, and
> concern about minSdkVersion not filtering app from older platforms which
> should definitely not be true.
>

Perhaps I misread Kevin. Let me paddle back up a few posts.
As apps and the underlying platform evolve, third party devs can end
up painted in the corner, leaving only bad choices. Mostly it ends up
locking users on Android 1.x out of new features, possibly leaving
them completely behind, if these new features require changes that a
dev is not able/willing to carry through back to 1.x.
If carriers/manufacturers OTOH stepped up to maintain Android and pull
their customers up through different versions, we would indeed be able
to keep most every user on board. I feel we need this focus over a
reasonable time span, at least for the duration of the contract period
(two years typically). Here we are and some customers feel like
they've been obsoleted six months into a two year contract... And that
just one of these nagging issues that just don't get tackled. Of
course one couldn't point at a single reason why things seem kindof
gloomy, because it's a death-by-a-thousand cuts situation. The N1
release... Going by the complaints, effective support seems
unavailable, especially with the problem the device has. Or pulling
the Market out of the hat - with its wide range of long standing
issues. The upgrade last year was a step in the right direction, but
so much more remains to be done. The list goes on and on and it just
seems Google has no traction to get stuff done, for reasons unknown
and/or unpublished.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 1:32 PM, MarcoAndroid  wrote:

> So what happens if a user with a device of a vendor to which the lib
> hasn't been supplied to, wants to install an app which has the uses-
> library in the manifest?
> Does this user not see the app in any store? Or can the user download,
> but what happens then when a MapView is created/used (since the
> extension is not there)?
>

They will not see it at all in Market.  If they try to install outside of
Market, the install will fail with an error about a missing library.

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
There is absolutely no need for you to turn that into a matrix and test
every combination.  Do you work on 480x854 screens?  Great, you have that
covered regardless of the platform.  And if you support 480x854, you must
have already tested 854x480, since any device can be switched between
landscape and portrait.

And in fact listing the different screen resolutions like that also makes
things a lot more complicated than needed.

If you want to work on the bulk of current devices, here is what you want to
test:

(1) Platform versions: 1.5, 1.6, 2.x (pretty soon just 2.1; 2.0 and 2.0.1
are on the way out).  Most important are the lowest and highest versions to
be supported; intermediate ones can be given a cursory sanity check.
(2) Screen densities: test on a medium (HVGA) and high (WVGA) density to
make sure you are handling them correctly.  Throw in QVGA if you want to
support small screen / low density devices.
(3) Screen sizes: make sure your app works on the smallest and larger screen
sizes you want to support.  For example if you want to cover all current
devices, 240x320 low density and 480x854 high density will cover it.

So you should be able to fairly easily get away with testing: 1.5 HVGA, 2.1
HVGA, 2.1 480x854, and add 1.6 QVGA if you want to support small screens.
 Spot check other variations as desired (and knowing what your app does that
it might get into trouble with).

On Mon, Jan 18, 2010 at 1:41 PM, Greg Donald  wrote:

> On Mon, Jan 18, 2010 at 3:10 PM, Christine 
> wrote:
> > It's good to see Google staff take this issue seriously :-)
>
> Yeah, right.
>
> > I'll repeat my personal opinion that fragmentation will not be so much
> > of an issue, unless you desperately need 2.x features in your app, in
> > which case you'll have to accept a <1% market share of your app.
>
> My Google Analytics says:
>
> SDK Versions:
>
> 1.6 - 36.97%
> 2.0.1 - 35.53%
> 1.5 - 26.02%
> 2.1 - 1.20%
> 2.0 - 0.28%
>
> Screen Resolutions:
>
> 320x480 - 45.85%
> 480x854 - 31.74%
> 480x320 - 16.69%
> 854x480 - 3.73%
> 480x800 - 1.15%
> 800x480 - 0.24%
>
> Four or five SDK versions multiplied by three or four screen
> resolutions makes testing an infinitely long task.  I'm not sure how
> anyone could look at the current SDK version + screen resolutions
> permutation and say it's not fragmented.  And that's not even counting
> different phone hardware I don't have in hand to test on when a user
> complains.
>
> Supporting Android is a nightmare right this minute, and it will only
> get worse from here.  The only option I have as an independent
> developer is to go with the biggest numbers and hope the minorities
> don't kill my app off with Marketplace comments I can't respond to.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.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
>



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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] AdWhirl - any experience with it?

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 2:20 PM, westmeadboy  wrote:
> I would love the Android SDK to include some kind of generic Ad View
> where you could control things like the ad provider from an remote
> server.

Greystripe has isAdReady() so you can check to see if you should show
an ad from an alternate or not.  I've suggested this functionality be
added to both Admob and Mobclix, but I haven't heard either of them
say they will implement it yet.

I agree, some sort of standardization would be good to have.


-- 
Greg Donald
destiney.com | gregdonald.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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 3:10 PM, Christine  wrote:
> It's good to see Google staff take this issue seriously :-)

Yeah, right.

> I'll repeat my personal opinion that fragmentation will not be so much
> of an issue, unless you desperately need 2.x features in your app, in
> which case you'll have to accept a <1% market share of your app.

My Google Analytics says:

SDK Versions:

1.6 - 36.97%
2.0.1 - 35.53%
1.5 - 26.02%
2.1 - 1.20%
2.0 - 0.28%

Screen Resolutions:

320x480 - 45.85%
480x854 - 31.74%
480x320 - 16.69%
854x480 - 3.73%
480x800 - 1.15%
800x480 - 0.24%

Four or five SDK versions multiplied by three or four screen
resolutions makes testing an infinitely long task.  I'm not sure how
anyone could look at the current SDK version + screen resolutions
permutation and say it's not fragmented.  And that's not even counting
different phone hardware I don't have in hand to test on when a user
complains.

Supporting Android is a nightmare right this minute, and it will only
get worse from here.  The only option I have as an independent
developer is to go with the biggest numbers and hope the minorities
don't kill my app off with Marketplace comments I can't respond to.


-- 
Greg Donald
destiney.com | gregdonald.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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 1:04 PM, Alberto  wrote:

> Dianne: I understand the issue with manufacturers and drivers, but
> even if manufacturers have to prepare the updates for each handsets,
> wouldn't be possible for Google to distribute those updates through
> their own channels instead of going the carriers' way, for example,
> correct me if I'm wrong in any of this:
>

If a manufacturer has a working, tested, stable update for their phone, then
Google would provide little no additional help here by "distributing" the
update.


> 1. Google releases the source code
> 2. Manufacturers customizes it for their handsets (drivers, etc)
> 3. They send it back to Google
> 4. Google updates most Android phones through their own channel at the
> same time, very quickly most phones are running the latest version
>

This just isn't going to happen.  Have you seen the number of devices that
are being announced?  It is simply not scalable to have Google or anyone
sitting in the middle of this trying to manage updates created by
manufacturers for various devices, for all the involved manufacturers.

And this just doesn't help.  The main issue is manufacturers creating and
testing new builds for their phones.  Distribution is relatively trivial
next to that.


> With all that said, even if there's nothing Google can do about the
> updates, a companion desktop application for Android would help keep
> the platform together, kind of like the lowest common denominator that
> every "Google Experience" phone can plug into.
>

I think we are really much more interested in over-the-air updates than
tying all of this through a desktop channel.  That is really a much better
way to deliver updates: for a particular device, you have a much higher
percentage of users applying the updates.  (Unless you force them to
regularly interact with a desktop application that takes care of the
updates, but that seems very undesirable to me.  Not that better desktop
support wouldn't be good for some things like media, but it shouldn't be
anything you need.)

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread MarcoAndroid
Ok thanks you both for clarifying!

But, one question remains a bit unanswered to me, esp. after reading
this part of Dianne's answer: "a separate extension library that
Google supplies to vendors who want to include it".

So what happens if a user with a device of a vendor to which the lib
hasn't been supplied to, wants to install an app which has the uses-
library in the manifest?
Does this user not see the app in any store? Or can the user download,
but what happens then when a MapView is created/used (since the
extension is not there)?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
It's good to see Google staff take this issue seriously :-)

I'll repeat my personal opinion that fragmentation will not be so much
of an issue, unless you desperately need 2.x features in your app, in
which case you'll have to accept a <1% market share of your app.

On Jan 18, 9:45 pm, Dianne Hackborn  wrote:
> On Mon, Jan 18, 2010 at 11:58 AM, JP  wrote:
> > >http://android-developers.blogspot.com/2009/04/backward-compatibility...
> > This means having to cut off users on older Android releases, no?
>
> Um.  No?  The entire article is about how to use newer APIs while remaining
> compatible with older platforms.  Am I missing something?
>
> > Kevin illustrates the problem nicely.
>
> What is that exactly?  I see him talking about incompatible manufacturer
> customizations and how fixing those are the responsibility of the
> manufacturer (true), about newer platform versions being compatible with
> older ones and maintaining support for older ones not being a big deal, and
> concern about minSdkVersion not filtering app from older platforms which
> should definitely not be true.
>
> I'd just like to understand what the specific concern is.
>
> > It is different in that XP through Windows 7 have been released over
> > the course of, what, eight years now?
>
> True, we have gone through a number of releases in the last year.  Of course
> windows has also gone through lots of service packs etc.  But regardless, in
> both cases basically one release builds on another, so you are looking at
> targeting release X through Y and whatever number of intermediate steps
> there are between is not that much of an issue (though you will certainly
> want to be testing against intermediate release to verify there are no
> surprises).
>
> > Users are much more educated and
> > experienced in what to expect. At work, I, like many users
> > (hopefully), "just" pick up the phone or send an email, and the
> > problem will be taken care of.
> > On a mobile device however... it just kindof ought to work, which
> > isn't an unreasonable expectation. Being facetious with the backwards
> > logic, the level of support that Google set aside to support the
> > release of the N1 seems to confirm that idea.
>
> Sorry I am really not following this part. :}  Yes, you should be able to
> just pick up a phone and use it, and for the most part that is the case (as
> long as developers properly mark their minSdkVersion to not be visible on
> older platforms, and the occasional manufacturer-specific bug here and
> there).  I don't know how much support you think Google set aside for the N1
> (was it large or small?  support for what?) so I am pretty lost there.
>
> > As far as OS X goes, during a couple of years of transition, Apple
> > supported "fat" binaries just like they did when they switched
> > OpenSTEP from Motorola to Intel a decade earlier. There's experience
> > with that, and in the mobile environment, this is all new stuff and
> > needs to be managed accordingly, IMHO.
>
> Sure and when 1.6 came out to introduce new screen support, it also included
> a lot of compatibility design and code to ensure that existing applications
> would work on the new screens.  (Or when not possible, such as QVGA screens,
> require that applications be explicitly updated and marked as compatible
> with them before allowing them to be available to users of those devices).
>
> What's different here?
>
> > I want to add, no question of course, it would be unjust to criticize
> > anybody that an expectation wasn't set that Android would be subjected
> > to a degree of fragmentation when Android was first released
> > "wayback". Yet, here we are, and it would be disappointing to see the
> > issue glossed over.
>
> I'm not sure how things are being glossed over...?
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 2:32 PM, Dianne Hackborn  wrote:
> Actually I am seeing a lot of positive change in this regard -- most of the
> major manufacturers (HTC, Motorola) seem to have publicly stated that they
> will be delivering a significant update to their current devices.

Public statements don't mean much to me personally.

A Google employee named "Dontae" publicly stated my Marketplace stats
would be fixed soon for example:

http://www.google.com/support/forum/p/Android+Market/thread?tid=4c5752ca3e5af4ff&hl=en#all

"Our team has implemented a fix that will return all impacted
developers' Active User numbers to normal."

Four weeks and 3 days later, nothing.

And after the hell me and a colleague went through proving to HTC they
had the icon crash bug some months back, please forgive me if I don't
believe an update is coming until I see it first hand.


-- 
Greg Donald
destiney.com | gregdonald.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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Alberto
Exactly, some carriers won't go through the trouble of doing OTA
updates, your Android experience would vary depending on what carrier
you're. Also when I talk about fragmentation, I'm not just talking
about apps compatibility, but also the user experience is very
different from 1.6 to 2.1, some people might hate or love Android
depending on what version they're using.

Dianne: I understand the issue with manufacturers and drivers, but
even if manufacturers have to prepare the updates for each handsets,
wouldn't be possible for Google to distribute those updates through
their own channels instead of going the carriers' way, for example,
correct me if I'm wrong in any of this:

1. Google releases the source code
2. Manufacturers customizes it for their handsets (drivers, etc)
3. They send it back to Google
4. Google updates most Android phones through their own channel at the
same time, very quickly most phones are running the latest version

I know this is oversimplifying it a lot, and in the real world it
doesn't work like this, but I think I'm onto something, if the updates
are left to the carriers some phones will get the updates and others
won't, maybe that's something you guys can live with.

With all that said, even if there's nothing Google can do about the
updates, a companion desktop application for Android would help keep
the platform together, kind of like the lowest common denominator that
every "Google Experience" phone can plug into.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 11:58 AM, JP  wrote:

> > http://android-developers.blogspot.com/2009/04/backward-compatibility...
> This means having to cut off users on older Android releases, no?
>

Um.  No?  The entire article is about how to use newer APIs while remaining
compatible with older platforms.  Am I missing something?


> Kevin illustrates the problem nicely.
>

What is that exactly?  I see him talking about incompatible manufacturer
customizations and how fixing those are the responsibility of the
manufacturer (true), about newer platform versions being compatible with
older ones and maintaining support for older ones not being a big deal, and
concern about minSdkVersion not filtering app from older platforms which
should definitely not be true.

I'd just like to understand what the specific concern is.


> It is different in that XP through Windows 7 have been released over
> the course of, what, eight years now?


True, we have gone through a number of releases in the last year.  Of course
windows has also gone through lots of service packs etc.  But regardless, in
both cases basically one release builds on another, so you are looking at
targeting release X through Y and whatever number of intermediate steps
there are between is not that much of an issue (though you will certainly
want to be testing against intermediate release to verify there are no
surprises).


> Users are much more educated and
> experienced in what to expect. At work, I, like many users
> (hopefully), "just" pick up the phone or send an email, and the
> problem will be taken care of.
> On a mobile device however... it just kindof ought to work, which
> isn't an unreasonable expectation. Being facetious with the backwards
> logic, the level of support that Google set aside to support the
> release of the N1 seems to confirm that idea.
>

Sorry I am really not following this part. :}  Yes, you should be able to
just pick up a phone and use it, and for the most part that is the case (as
long as developers properly mark their minSdkVersion to not be visible on
older platforms, and the occasional manufacturer-specific bug here and
there).  I don't know how much support you think Google set aside for the N1
(was it large or small?  support for what?) so I am pretty lost there.


> As far as OS X goes, during a couple of years of transition, Apple
> supported "fat" binaries just like they did when they switched
> OpenSTEP from Motorola to Intel a decade earlier. There's experience
> with that, and in the mobile environment, this is all new stuff and
> needs to be managed accordingly, IMHO.
>

Sure and when 1.6 came out to introduce new screen support, it also included
a lot of compatibility design and code to ensure that existing applications
would work on the new screens.  (Or when not possible, such as QVGA screens,
require that applications be explicitly updated and marked as compatible
with them before allowing them to be available to users of those devices).

What's different here?


> I want to add, no question of course, it would be unjust to criticize
> anybody that an expectation wasn't set that Android would be subjected
> to a degree of fragmentation when Android was first released
> "wayback". Yet, here we are, and it would be disappointing to see the
> issue glossed over.
>

I'm not sure how things are being glossed over...?

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 12:14 PM, JP  wrote:

> Exactly. That's how they operate. Kindof enticing when you're a dev.
> Crank it out, push it to the consumer, hope it runs and if there's
> nothing major (like Rogers' 911 issue), leave the code behind and move
> on to the next thing.
>

Actually I am seeing a lot of positive change in this regard -- most of the
major manufacturers (HTC, Motorola) seem to have publicly stated that they
will be delivering a significant update to their current devices.

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 10:57 AM, Kevin Duffey  wrote:

> Good reply Dianne. I get pissed when I read blogs about how fragmented
> Android is as well. I don't get how it's fragmented. The only fragmentation
> that seems slightly just is the issue where individual phone vendors are
> providing their own special UI and extra features. I think the biggest issue
> that we may face is if our app doesn't work on those devices due to them
> rebuilding android for their device that may affect our apps running on them
> as they should. I personally don't know if this is happening. So far most
> posts I've seen indicate the issue of phones that are 1.5 to 2.1 with 1.5
> apps not working on 2.0 or vice versa.


Yeah manufacturer customization is definitely the kind of fragmentation that
is more unusual to Android, and something we care a lot about.  There have
certainly been some issues there, but I think a lot of this is just everyone
learning how to do things (manufacturers, developers, and the platform) to
avoid the problems.  Certainly, it is not yet anywhere near like what MIDP
got like, which is the scary monster that people are conjuring up (whether
they realize it or not) when they say "fragmentation."


> Dianne, can you clarify the issue of updates... if I have a 1.5 app and
> update my app, changing the minsdk to 2.1, will a user on a 1.5 phone be
> able to update to the 2.1 version? One post here indicated that once a user
> has installed the app, which was fine for the 1.5 app on a 1.5 phone... that
> they can then get the updates even if the minsdk of the updated app is
> higher than the phone it's to be run on? That doesn't make any sense that if
> it's not installed, it wont even show up (which is good), but if you
> installed it then update it to work on newer versions, that the older api
> phones can still update to it, most likely causing it to not work any more.
> It seems to me we're forced to build a new app for the later api IF it might
> not work on the older api devices due to some api calls, such as the
> contacts api.
>

I don't work on the Market team, so I'm  not sure of the current situation,
but if you say minSdkVerion=5 then your app should never be delivered to a
device running something < 5.  If there are cases when it can be, then that
needs to be fixed.

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Working in Windows 2000

2010-01-18 Thread Justin Giles
On Mon, Jan 18, 2010 at 2:06 PM, guiha...@gmail.com wrote:

> It has a SLC 16GB SSD, a 2.6 GHz
> Pentium 4M and a 1600x1200 uxga 15" screen. I really don't need
> another computer.
>


Sounds like it is a fast enough machine to be able to load a virtual Linux
machine on it.  Get VirtualBox and a copy of Ubuntu and do your development
inside the virtual machine.  Not as clean as a single OS solution, but if
you are that tied to Windows 2K, it might be a good solution.

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

Re: [android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Kevin Duffey
Another thought.. you have the asteroid[i] array.. and then you do the if
(asterod.isAlive()) method. First.. eliminate the method call as you've been
told.

But for this particular example.. why are you keeping an array of objects
that may not be displayed? By this I mean.. if you have 30 asteroids, and
eventually 25 will be gone.. you're looping 30 times, 25 of which are checks
for objects no longer being drawn. How about some way to avoid checking for
those objects no longer needing to be drawn? The check alone will speed you
up just a tiny bit more... on a bigger game with more objects.. this could
add a slight improvement. Not sure it's going to help that much, but just a
thought I had when I was looking at the code.


On Mon, Jan 18, 2010 at 12:15 PM, skink  wrote:

>
>
> On Jan 18, 7:19 pm, Robert Green  wrote:
> > The little stuff definitely adds up and helps but when talking about
> > such a small number of objects, I don't think it will double his FPS
> > to fix.
> >
>
>
> agreed. i haven't noticed that number of objects is that small...
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Phone calls recording on 2.0

2010-01-18 Thread Jonathan
I can confirm that it does NOT work for Nexus One.

On Jan 18, 1:16 pm, "appforce.org"  wrote:
> Any updates after release of Nexus One? It's unavailable in my
> country, and I will appreciate a lot any first-hand information about
> voice recording from someone lucky to have it.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] AdWhirl - any experience with it?

2010-01-18 Thread westmeadboy
I've been using AdMob for a while and am getting rather demoralized
with the low fill rate of late. So, I've been looking for
alternatives.

I stumbled across AdWhirl (http://www.adwhirl.com) which just so
happens to have released an alpha version of its Android SDK:

http://groups.google.com/group/adwhirl-users/browse_thread/thread/ea3dfa2e6200823a

It allows you to switch between multiple ad providers without having
to rebuild the app.

Anyone got any experience using AdWhirl?

I would love the Android SDK to include some kind of generic Ad View
where you could control things like the ad provider from an remote
server.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Modal dialog

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 10:47 AM, guiha...@gmail.com wrote:

> IMHO, i think that Google should have provided a way to let we make
> them process the events.


This is very deliberately not supported because of the problems is causes:

http://groups.google.com/group/android-developers/browse_thread/thread/f8f1ac25831adcf5/979fc2e81a51bc1a?hl=en&q=#979fc2e81a51bc1a

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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Working in Windows 2000

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 2:06 PM, guiha...@gmail.com  wrote:
> Anyway, i'm a Java developer since 1998 (and a C developer since 1984)
> and my win2k notebook really rocks. I love it and i won't like to get
> rid of it just because of Android.

It's ok to own more than one computer, really.

> It has a SLC 16GB SSD, a 2.6 GHz
> Pentium 4M and a 1600x1200 uxga 15" screen. I really don't need
> another computer.

Sounds like you're all set.  I have a Linux server that's way less
than the specs you listed and it runs everything Android just fine.
Put Ubuntu or Fedora on there and go.

> Some time ago i saw someone in the internet saying that the Android
> SDK would work in win2k without problems. Can someone confirm that the
> earlier Google SDK (version 1.0 maybe) could run on win2k?

If they said it's winxp and up then I doubt you'll ever get win2k support.


-- 
Greg Donald
destiney.com | gregdonald.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: Click on Notification does not work as expected... (see screencast!):(

2010-01-18 Thread reyden
I've had a similar issue with one of my activities that was supposed
to be launched via notifications. After some digging I've solved it by
declaring "singleTop" launch mode for the activity in manifest and by
using FLAG_ACTIVITY_CLEAR_TOP flag on the pending intent for
notification manager...
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread skink


On Jan 18, 7:19 pm, Robert Green  wrote:
> The little stuff definitely adds up and helps but when talking about
> such a small number of objects, I don't think it will double his FPS
> to fix.
>


agreed. i haven't noticed that number of objects is that small...

pskink
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP

Exactly. That's how they operate. Kindof enticing when you're a dev.
Crank it out, push it to the consumer, hope it runs and if there's
nothing major (like Rogers' 911 issue), leave the code behind and move
on to the next thing.

On Jan 18, 12:03 pm, Greg Donald  wrote:
> On Mon, Jan 18, 2010 at 1:58 PM, JP  wrote:
> > It's unfortunate that some of the carriers and manufacturers haven't
> > caught on to the idea of bringing their products along for the ride,
>
> There's no incentive.  The (phone) sale has already been made, why on
> earth would they then want to also support it?
>
> --
> Greg Donald
> destiney.com | gregdonald.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: Working in Windows 2000

2010-01-18 Thread Kevin Duffey
Actually..that's a decent laptop. Why don't you run Windows 7 on it? I am
running Windows 7 Ultimate on lesser hardware and it works great. If the
upgrade is not an option I can understand. but I have a 1.6Ghz pentium cpu
with 768MB ram and it runs solid. I can't run 10 things at once.. but I am
sure I can load the latest JDK and Eclipse, and run the emulator on it.

That said... you might consider that win2K was a long time ago and perhaps
to join the android development it's worth the upgrade to something more
recent. If you wanted to do iPhone development you'd be stuck having to buy
an apple computer for example.

I do appreciate your situation tho, just saying that perhaps for some things
it's worth the price of admission so you can work with android. Still, I
think the hardware you have will work fine. Just put Win7 on it.


On Mon, Jan 18, 2010 at 12:08 PM, guiha...@gmail.com wrote:

> Hi Kevin,
>
> I have a G2. Can ubuntu debug on it? Maybe it will be the solution
>
> thanks
>
>   guich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Working in Windows 2000

2010-01-18 Thread guiha...@gmail.com
Hi Kevin,

I have a G2. Can ubuntu debug on it? Maybe it will be the solution

thanks

   guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Working in Windows 2000

2010-01-18 Thread guiha...@gmail.com
Hi Greg,

That's not exactly the kind of answer i wanted... i live in Brazil and
here the good computers are more pricey than in USA (although my
notebook is from usa).

Anyway, i'm a Java developer since 1998 (and a C developer since 1984)
and my win2k notebook really rocks. I love it and i won't like to get
rid of it just because of Android. It has a SLC 16GB SSD, a 2.6 GHz
Pentium 4M and a 1600x1200 uxga 15" screen. I really don't need
another computer.

Some time ago i saw someone in the internet saying that the Android
SDK would work in win2k without problems. Can someone confirm that the
earlier Google SDK (version 1.0 maybe) could run on win2k?

thanks

   guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Working in Windows 2000

2010-01-18 Thread Kevin Duffey
I take it you don't have an Android phone.. if you do, you may want to
develop on that instead... it's more than likely more powerful than your
win2K box. :D

I got my wife a netbook for $200 that runs windows 7... 250GB hd, 1GB ram,
etc. I don't recommend that tho. For about $300 or so you can get a
dual-core system, or you can buy a motherboard, quad-core cpu and 2GB ram
for about $400 and replace it in your current box.. keep your hard drive,
cd-rom... may have to get a $40 video card tho.

I agree with the above tho.. you're best bet is to put Ubuntu 9.04 (9.10 has
issus), on that old machine and you'll be up to date and able to actually do
some work. 1GB RAM should be good enough to get you going with Ubuntu.

On Mon, Jan 18, 2010 at 11:55 AM, Greg Donald  wrote:

> On Mon, Jan 18, 2010 at 1:30 PM, guiha...@gmail.com 
> wrote:
> > I really would not like to have to buy a new computer just because of
> > android... since i already work with many other platforms without
> > problems.
>
> But this is Java, it requires more horsepower than "other platforms".
>
> > thanks for any tips on this side.
>
> You can get a new computer for less than $500 nowadays.  Compared to
> the time you will spend waiting for Eclipse to startup, and then more
> time waiting for your emulator to start up, it'd be a good investment
> in my opinion.  You _will_ have to restart things on occasion, Eclipse
> and ddms and the emulator all get out of sync with each other
> sometimes.
>
> The way it works at my house is when the system becomes too old to run
> windoze, I install Linux on it to squeeze another couple of years out
> of it.  You might try that since Android development is no more
> painful on Linux than anything else.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.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
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 1:58 PM, JP  wrote:
> It's unfortunate that some of the carriers and manufacturers haven't
> caught on to the idea of bringing their products along for the ride,

There's no incentive.  The (phone) sale has already been made, why on
earth would they then want to also support it?


-- 
Greg Donald
destiney.com | gregdonald.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] AudioRecord on Samsung Moment

2010-01-18 Thread Rico
When switching between the emulator (which supports 8KHz) and a real
phone like the G1 (which supports 16KHz), I used the following code to
set up a valid AudioRecord object:

AudioRecord ar;

// Try to construct at 16KHz
ar = new AudioRecord(
  MediaRecorder.AudioSource.MIC,
  16000,
  AudioFormat.CHANNEL_CONFIGURATION_MONO,
  AudioFormat.ENCODING_PCM_16BIT,
  AUDIO_BUFFER_SIZE);

if (ar.getState() != AudioRecord.STATE_INITIALIZED) {
  // Unable to set up at 16KHz, try at 8KHz
  ar = new AudioRecord(
MediaRecorder.AudioSource.MIC,
8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
AUDIO_BUFFER_SIZE);
}

This seems to work just fine, and a 16KHz AudioRecord object is
instantiated on the G1, and a 8KHz object is instantiated on the
emulator.

However, on the Samsung Moment, which only supports 8KHz,
AudioRecord.getState() returns STATE_INITIALIZED when trying to
construct with 16KHz.  This ends up causing recording to fail since
it's trying to record at 16KHz, even though the phone doesn't support
it.  Also, I don't see any exceptions thrown when I try to wrap the
construction in a try-catch.

Does anyone know of a better way to detect 16KHz vs. 8KHz capabilities
on the device?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] java.util.TimerTask on android

2010-01-18 Thread Mark Murphy
> [hopefully this won't get posted twice.  i tried posting it 3 days ago
> but have yet to see it on the group, so trying again...]
>
> Can I rely on Timer and TimerTask to work properly on Android?

That depends on how you use it. Your scenario and TimerTask are not
compatible.

> I have a background Service with a single Timer, and I schedule
> (possibly multiple) TimerTask's via Timer.schedule()
>
> At the beginning of each implemented TimerTask.run() method, I check
> the TimerTask.scheduledExecutionTime() and compare it with the current
> time.  Sometimes things are fine, and the difference is a small number
> of ms.  But sometimes things are nowhere near fine, and the invocation
> of my TimerTask is *way* late -- like multiple hours late.

The device probably went to sleep.

> Can an Android phone go into some deep sleep mode when it doesn't
> think anything is going on that would cause a TimerTask to be so
> late?

Absolutely.

> Can I not reliably use TimerTask for scheduling events, and
> should I be using some Android-specific means (e.g. the AlarmManager,
> or a Handler) instead?

I would limit TimerTask to activities and short durations. For services,
use AlarmManager.

As a side benefit, your users will be much happier, because you can get
your service out of memory, rather than keeping it around to use a
TimerTask:

http://www.androidguys.com/2009/12/07/code-pollution-boot-time-services/

> I've searched around a bit, and while I can find numerous posts
> suggesting Android-specific timing mechanisms, I have not found
> anything that says that java.util.TimerTask shouldn't be sufficient,
> the Android docs include no kinds of qualifiers, and this post (from
> Mark Murphy, who's written several
> good Android books) specifically mentions it as being available:
>
> http://groups.google.com/group/android-developers/browse_thread/thread/42effa0b2deb1b49/74c79d801be765ad?lnk=gst&q=TimerTask#

It is available. It just does not prevent the device from going to sleep
and does not wake the device back up. Hence, for some scenarios, TimerTask
works just fine. For other scenarios, it doesn't.

You'll find the AlarmManager technique covered in _The Busy Coder's Guide
to Advanced Android Development_, and demonstrated again in _Android
Programming Tutorials_. You'll find a WakefulIntentService, designed to
help simplify the pattern, here:

http://github.com/commonsguy/cwac-wakeful

(BTW, I'm glad you like the books!)

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


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

[android-developers] Re: Any way to go from an itermId to position in a ListView/Adapter

2010-01-18 Thread Ambarish Malpani
Isn't this a problem for other users?

Ambarish

On Jan 7, 3:29 pm, Ambarish  Malpani  wrote:
> Hi,
>      In a ListView/CursorAdapter, it is easy to go from a position to
> an itemId
>
> ((CursorAdapter)(listView.getAdapter()).getItemId(position);
>
> Is there any way to do the reverse mapping? From an itemId, get its
> position in the list?
>
> Thanks,Ambarish
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Timezone changed intent action received too many times

2010-01-18 Thread ralf
One of my apps, Timeriffic, has a broadcast receiver on
android.intent.action.TIMEZONE_CHANGED to recompute its alarms when
the timezone changes. That works fine.

The issue is that on some devices, the app receives just too many
times this intent. I have logs of multiple users showing the receiver
being triggered by the event once 2 days in a row, or others a couple
times in a row or twice a day and these are not travelling so why
would the timezone change? There's no visible pattern as far as I can
see.

I'll add a check to verify that the time-zone extra is the same as the
last recorded, but it's a bit odd that the timezone event would be
triggered out of the blue for no apparent reason.

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

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP


On Jan 18, 10:35 am, Dianne Hackborn  wrote:
> On Mon, Jan 18, 2010 at 7:22 AM, JP  wrote:
> > Hmm, I've toyed with that a while back, and as far as I remember, the
> > app won't even launch, and crash with a class-not-found exception
> > (makes somewhat sense).
>
>
> http://android-developers.blogspot.com/2009/04/backward-compatibility...
>
This means having to cut off users on older Android releases, no?
Kevin illustrates the problem nicely.
It's unfortunate that some of the carriers and manufacturers haven't
caught on to the idea of bringing their products along for the ride,
at least not yet, which I believe is one core issue of the barrage of
complaints.


> Finally, as far as dealing with multiple versions of the platform -- how
> different is this, really, than Windows and MacOS where there are three or
> more different major versions of those platforms in active use?  (And on
> MacOS, for quite a while now different CPU architectures!)  You just do on
> Android exactly the same thing you do on those platforms: look at the
> distribution of versions to decide the minimum one you want to target, and
> do the appropriate thing for using newer APIs when you want to do that.
>
It is different in that XP through Windows 7 have been released over
the course of, what, eight years now? Users are much more educated and
experienced in what to expect. At work, I, like many users
(hopefully), "just" pick up the phone or send an email, and the
problem will be taken care of.
On a mobile device however... it just kindof ought to work, which
isn't an unreasonable expectation. Being facetious with the backwards
logic, the level of support that Google set aside to support the
release of the N1 seems to confirm that idea.
As far as OS X goes, during a couple of years of transition, Apple
supported "fat" binaries just like they did when they switched
OpenSTEP from Motorola to Intel a decade earlier. There's experience
with that, and in the mobile environment, this is all new stuff and
needs to be managed accordingly, IMHO.
I want to add, no question of course, it would be unjust to criticize
anybody that an expectation wasn't set that Android would be subjected
to a degree of fragmentation when Android was first released
"wayback". Yet, here we are, and it would be disappointing to see the
issue glossed over.

>
> But let's look at the current situation: the oldest version of the platform
> that developers need to worry about is 1.5, which was finished less than a
> year ago.  It appears to me that most of the manufacturers that have such
> devices on the market have pledged to update them to 2.x.  If things proceed
> how it sounds, I think the bulk of the devices will be running a platform
> version released in the last year.  So that gives you an upper bound of
> maybe 4 platform versions to support.  (And keep in mind -- doing 4
> significant platform releases in a year is pretty extreme, and maybe not
> something that will continue.  If you think it is hard on you, imagine the
> poor platform developers. :p)
Let's hope for the best then.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Anybody knows what the error: Error parsing keycodes w means?

2010-01-18 Thread Ambarish Malpani

I am created my own class from DialerKeyListener (which limits the
number of digits entered).

Whenever the dialer keyboard comes up, I get this error:
Error parsing keycodes w

App works fine, but why is this error showing up in my logs? Am I
doing something wrong?

My inheritor looks like this:

public class LimitLengthDigitsKeyListener extends DialerKeyListener {

int mMaxLen;
LimitLengthDigitsKeyListener(int maxLength) {
mMaxLen = maxLength;
}

@Override
public CharSequence filter(CharSequence source, int start, int 
end,
Spanned dest, int dstart, int dend) {
int newLen = dest.length() + (end - start) - (dend - 
dstart);
if(newLen > mMaxLen)
return(dest.subSequence(dstart, dend));
return(super.filter(source, start, end, dest, dstart, 
dend));
}
//  @Override
//  protected char[] getAcceptedChars() {
//return NUMBERCHARS;
//  }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] Working in Windows 2000

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 1:30 PM, guiha...@gmail.com  wrote:
> I really would not like to have to buy a new computer just because of
> android... since i already work with many other platforms without
> problems.

But this is Java, it requires more horsepower than "other platforms".

> thanks for any tips on this side.

You can get a new computer for less than $500 nowadays.  Compared to
the time you will spend waiting for Eclipse to startup, and then more
time waiting for your emulator to start up, it'd be a good investment
in my opinion.  You _will_ have to restart things on occasion, Eclipse
and ddms and the emulator all get out of sync with each other
sometimes.

The way it works at my house is when the system becomes too old to run
windoze, I install Linux on it to squeeze another couple of years out
of it.  You might try that since Android development is no more
painful on Linux than anything else.


-- 
Greg Donald
destiney.com | gregdonald.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: java.util.TimerTask on android

2010-01-18 Thread richf
Egad, how come my post wasn't visible to me until immediately after I
reposted?  Sorry about that...

Anyway, regarding the reply, I realize that the process and service
can be killed and restarted.  However, I am nearly certain that this
is *not* what is happening in this case.

Furthermore, having run a few more tests, it appears that this does
*not* happen when the phone is charging (either via a real AC charger,
or being plugged into a USB cable), only when the phone is not plugged
in at all, leading me to again guess that this has to do with the
phone going into some deep sleep mode.

- Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] java.util.TimerTask on android

2010-01-18 Thread richf
[hopefully this won't get posted twice.  i tried posting it 3 days ago
but have yet to see it on the group, so trying again...]

Can I rely on Timer and TimerTask to work properly on Android?

I have a background Service with a single Timer, and I schedule
(possibly multiple) TimerTask's via Timer.schedule()

At the beginning of each implemented TimerTask.run() method, I check
the TimerTask.scheduledExecutionTime() and compare it with the current
time.  Sometimes things are fine, and the difference is a small number
of ms.  But sometimes things are nowhere near fine, and the invocation
of my TimerTask is *way* late -- like multiple hours late.

Can an Android phone go into some deep sleep mode when it doesn't
think anything is going on that would cause a TimerTask to be so
late?  Can I not reliably use TimerTask for scheduling events, and
should I be using some Android-specific means (e.g. the AlarmManager,
or a Handler) instead?

I've searched around a bit, and while I can find numerous posts
suggesting Android-specific timing mechanisms, I have not found
anything that says that java.util.TimerTask shouldn't be sufficient,
the Android docs include no kinds of qualifiers, and this post (from
Mark Murphy, who's written several
good Android books) specifically mentions it as being available:

http://groups.google.com/group/android-developers/browse_thread/thread/42effa0b2deb1b49/74c79d801be765ad?lnk=gst&q=TimerTask#

Thanks for any help anyone may be able to provide.

- Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
Yes, you can send me it privately the file.

How will you fetch the libskia from Droid?

regards

guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: To the moderators: why are my messages being deleted?

2010-01-18 Thread guiha...@gmail.com
Hi,

I remember that i saw the messages when i posted at home, then when i
got at office, i didn't found the messages. I searched for "guich" (my
nickname) and i didn't find the message anymore.

best regards

   guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Scaling icons on MapActivity with zoom

2010-01-18 Thread TreKing
I haven't tried this at all, but I don't think this is part of the maps API
and is probably that way on purpose.

Given the size of the screens you'll be running on and the level of zoom you
can achieve with the maps, if you scale your images proportionately so they
appear the same size relative to your map, your images will be either too
small to be noticeable when zooming out or so huge they take up the entire
screen when you zoom in. This is probably why this isn't built into the API
and I have to assume this is not the ideal functionality for whatever you're
doing either.

So why do you want to scale images on the map anyway?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Mon, Jan 18, 2010 at 1:05 PM, Kevin Duffey  wrote:

> So it looks like I may have to manually (programatically) listen for zoom
> events and scale the images myself... or has anyone been able to get their
> overlay icons to scale in size with zoom?
>
>
> On Tue, Jan 12, 2010 at 1:00 AM, Kevin Duffey  wrote:
>
>> Hey all,
>>
>> I been messing around with the MapActivity stuff. Pretty nice how easy it
>> is to add clickable icons/images to the map and make them mean something.
>> That said I notice that as you zoom in and out, they don't scale
>> automatically. Is there a way to achieve this as part of the SDK? I've not
>> found any way to enable this yet. Or do I need to listen for zoom events and
>> somehow resize my icons.
>>
>> Thanks.
>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] To the moderators: why are my messages being deleted?

2010-01-18 Thread Urs Grob
Hi guich

Are you sure that they got deleted? For example one discussion about
accessing folders outside of the application folder was renamed. Maybe
to give a better understanding what the discussion is about.

> Hi,
>
> I know that we can safely write to /data/data/app_package... however, can the 
> application also create folders and maybe access other folders as well, such 
> as system?
> I could easily create an application to test that, but what i really want to 
> know if the official Android approach to this issue. I don't want to assume 
> something that will be changed in the future.
>
> thanks for your help
>
> guich

You could check your google groups profile and check if they were
really deleted or not. (or search for the discussions on the google
groups search page)

-- Urs



On Mon, Jan 18, 2010 at 7:58 PM, guiha...@gmail.com  wrote:
> Hi,
>
> I already had about 4 messages deleted from this forum. :-(
>
> They were serious questions that i had and some moderator is simply
> deleting them. Now i'm unable to get help to my issues. I have an
> important project that must be delivered in Feb 1st and this attitude
> of the moderators is delaying the project. :-(
>
> thanks
>
>   guich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Working in Windows 2000

2010-01-18 Thread guiha...@gmail.com
Hi,

I know that Google elected Windows XP (eXtra Problems) to be the
minimum operating system, but was anyone here able to run it on win2k?

Being able to run the emulator OR install the native driver (to debug
in the device) would be enough.

I really would not like to have to buy a new computer just because of
android... since i already work with many other platforms without
problems.

thanks for any tips on this side.

guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: App Died Signal 11

2010-01-18 Thread Iroid
Okay Great,
I can fetch the libskia from Droid and share with you. would it work?

Thanks alot for your help.

On Jan 18, 2:24 pm, "guiha...@gmail.com"  wrote:
> Ah... indeed. now i understand the problem. You're a Java developer...
>
> I think that someone could tell us how to get access to the
> libskia.so? If they can tell, i can get you the line numbers. Although
> i'm not confident that this will help.
>
> regards
>
>    guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
Ah... indeed. now i understand the problem. You're a Java developer...

I think that someone could tell us how to get access to the
libskia.so? If they can tell, i can get you the line numbers. Although
i'm not confident that this will help.

regards

   guich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Phone calls recording on 2.0

2010-01-18 Thread appforce.org
Any updates after release of Nexus One? It's unavailable in my
country, and I will appreciate a lot any first-hand information about
voice recording from someone lucky to have it.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Mobile App Socialization - We Need an API

2010-01-18 Thread dadical
I've been thinking a lot lately about how to gain visibility for
mobile apps.  It's getting more and more difficult as an independent
developer to get your application noticed among the piles of crap that
are stacking up in the market.  I think that we need some way to
socialize our applications and capitalize on the momentum that we do
happen to build from things like reviews, forum postings, etc.

I've blogged about my ideas on how to make this happen here:
http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/96-im-all-a-twitter

Thoughts?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread JP
You're reading way more into these posts than there is to it. Maps has
gone through some changes just like the rest of the platform, so
questions migrating from version to version have been posted and
answered. By and large, the API itself and therefore the code to use
it hasn't changed much. Some stuff has been removed prior to Android
1.0, the requirement to use a registered key has been introduced, the
API split out. This is all mostly packaging that did not affect
application code in a substantial way. You can go out and develop
against the most current API level, and it'll run against 1.5 images
on the devices (you can safely ignore anything prior as Android has
been released to the general public on the G1's only, which since have
been OTA updated by the carrier). Use current documentation, use the
emulator or a device to test, and you really should be good to go.



On Jan 18, 9:31 am, MarcoAndroid  wrote:
> Hello,
>
> Can anybody clarify what is and isn't supported in which version of
> the SDK regarding the Google API add-on regarding Maps?
>
> When I look 
> herehttp://code.google.com/intl/nl-NL/android/add-ons/google-apis/referen...
> Maps is only available since level 4 (1.6).
>
> But in the hello MapView it says it's available for 1.5 and 
> higher:http://dev.android.com/guide/tutorials/views/hello-mapview.html
>
> Herehttp://groups.google.com/group/android-developers/browse_thread/threa...
> people have been trying it on 1.5. Did they fail because it's just not
> possible on 1.5?
> And from reading 
> thishttp://groups.google.com/group/android-developers/browse_thread/threa...
> it *seems* it might be possible, though there is a bug/issue with a
> certain use case.
> And looking herehttp://www.anddev.org/viewtopic.php?p=24902
> it seems to be there in 1.5. But what are the differences then? Was it
> included in pre 1.5 SDK, after that not anymore and only part of the
> device if available?
>
> And, what exactly happens re: an app that uses Maps (thus has  library android:name="com.google.android.maps" /> in the Manifest)?
> Will the app install but the Maps won't work (probably some exception
> will occur when trying to use a MapView)?
> Or will the app not be installable for any devices with SDK < 1.6
> (assuming 1.6 is the minimal level)?
> Herehttp://code.google.com/intl/nl-NL/android/add-ons/google-apis/maps-ov...
> it says "It also ensures that the Android system will not install your
> application on a device unless the required library is available".
> So I can't check in the code whether the class(es) can be loaded to
> see if it's available?
>
> If 1.5 and >= 1.6 have *different* Maps implementations, how would you
> build an app supporting that?
>
> I also understood that you're not allowed to include maps.jar with
> your app right?
>
> Tip1: if you don't need to integrate maps in your app: I guess via an
> Intent you can of course start Google Maps as an external app
> Tip2: or tryhttp://code.google.com/p/osmdroid/I haven't tried it
> (yet, depending on the answers here :).
>
> Regards,
> Marco
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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: Scaling icons on MapActivity with zoom

2010-01-18 Thread Kevin Duffey
So it looks like I may have to manually (programatically) listen for zoom
events and scale the images myself... or has anyone been able to get their
overlay icons to scale in size with zoom?

On Tue, Jan 12, 2010 at 1:00 AM, Kevin Duffey  wrote:

> Hey all,
>
> I been messing around with the MapActivity stuff. Pretty nice how easy it
> is to add clickable icons/images to the map and make them mean something.
> That said I notice that as you zoom in and out, they don't scale
> automatically. Is there a way to achieve this as part of the SDK? I've not
> found any way to enable this yet. Or do I need to listen for zoom events and
> somehow resize my icons.
>
> Thanks.
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Some application / market questions

2010-01-18 Thread Kevin Duffey
So can you download a "pack" to the SD card from a server.. and your app can
then look on the SD card for packs and load them up dynamically? Your app
would provide an interface, the packs would implement it, you could
dynamically instantiate them like plugins, based on that interface
implementation? Is that not possible?


On Fri, Jan 15, 2010 at 10:45 AM, Nathan  wrote:

> I've wondered about this because of a variation on number 1. An
> application, App1, can become quite different application based on
> whether it has Content Bundle A,B,C even though the code, at least
> most of it, is the same.
>
> Would the Market allow either:
> 1. Application add-ons, that install into an existing applications
> data directory.  Ie South Pacific Reptile addon pack for Base
> Application. (not actual names, but you get the idea).
> 2. Bundles of the same application with different content ie Base
> Application with South Pacific Reptile Content bundle.
>
> So far, I think the answer to number 1 is no.
> I also think the answer to number 2 is no based on the fact that an
> application is tied to a package name, so different applications
> require different code and would not differ by content.
>
> It is possible to do this within the application by using a backend
> server and configuring the application upon first time use.
>
> It really comes down to marketing. "Base Application" may not have the
> same marketing appeal as "Base Application with South Pacific Reptile
> Content Bundle". A Once they installed the application, it would be
> easier to educate them, but they may not try it in the first place if
> they don't know if their content is available.
>
> So far, though, I think neither 1 nor 2 will work, so I'll have to
> think of this differently.
>
> 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
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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] To the moderators: why are my messages being deleted?

2010-01-18 Thread guiha...@gmail.com
Hi,

I already had about 4 messages deleted from this forum. :-(

They were serious questions that i had and some moderator is simply
deleting them. Now i'm unable to get help to my issues. I have an
important project that must be delivered in Feb 1st and this attitude
of the moderators is delaying the project. :-(

thanks

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

  1   2   >