[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-08 Thread f_heft
I wonder how I could determine wether the phone I got was from ADC2 or
the market seeding, because Google writes nothing specific in the
cover letter.

On 8 Apr., 11:37, JDS jesper.d.svens...@gmail.com wrote:
 Can anybody here, from EU, confirm that they have received a Nexus One
 from this seeding program and not ADC since Google claim that many
 already have received their phone?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-15 Thread f_heft
I just received my Nexus One via FedEx - thank you, Google! :)

Btw: No special branding or anything on the phone itself , it's
exactly like the one you can buy :)
And I got mine from the Netherlands (I'm living in Germany) and it was
shipped on March 12th (for those of you who are still waiting).


On 3 Mrz., 00:53, Larry lar...@gmail.com wrote:
 Dear all,

 I just received an email about Device Seeding Program for Top Android
 Market Developers:

 Subject: Device Seeding Program for Top Android Market Developers
 From: android-market-seed...@google.com

 Due to your contribution to the success of Android Market, we would
 like to present you with a brand new Android device as part of our
 developer device seeding program. You are receiving this message
 because you're one of the top developers in Android Market with one or
 more of your applications having a 3.5 star or higher rating and more
 than 5,000 unique downloads.

 In order to receive this device, you must click through to this site,
 read the terms and conditions of the offer and fill out the
 registration form to give us your current mailing address so that we
 can ship your device.

 You will receive either a Verizon Droid by Motorola or a Nexus One.
 Developers with mailing addresses in the US will receive either a
 Droid or Nexus one, based on random distribution. Developers from
 Canada, EU, and the EEA states (Norway, Lichtenstein), Switzerland,
 Hong Kong, Taiwan, and Singapore will receive a Nexus One. Developers
 with mailing addresses in countries not listed above will not receive
 a phone since these phones are not certified to be used in other
 countries.

 We hope that you will enjoy your new device and continue to build more
 insanely popular apps for Android!

 The email is from Google but I am still doubting somehow. Is this a
 spam? Any other developers receive this emails before?

 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: Device Seeding Program for Top Android Market Developers

2010-03-15 Thread f_heft
Thanks, finally I can test my own apps on a new device :)

But I can't tell if this is the Nexus I got because of my app in the
market (I got a confirmation mail on March 6th) or because I was an
ADC2 finalist (never got a confirmation mail but they already got my
adress from ADC2 so I guess there won't be another mail).
It was shipped by Brightpoint Netherlands I think (I don't have the
package here right now).



On 15 Mrz., 16:59, Thomas Riley tomrile...@googlemail.com wrote:
 Awesome! Enjoy! Time to go make some cool Android 2.x apps my
 friend! ;)

 Out of interest, did you receive a shipping email? Or just the
 confirmation email from google?

 Also, any idea who it was shipped from? ie, Brightstar?

 On Mar 15, 2:19 pm, f_heft delphik...@gmail.com wrote:



  I just received my Nexus One via FedEx - thank you, Google! :)

  Btw: No special branding or anything on the phone itself , it's
  exactly like the one you can buy :)
  And I got mine from the Netherlands (I'm living in Germany) and it was
  shipped on March 12th (for those of you who are still waiting).

  On 3 Mrz., 00:53, Larry lar...@gmail.com wrote:

   Dear all,

   I just received an email about Device Seeding Program for Top Android
   Market Developers:

   Subject: Device Seeding Program for Top Android Market Developers
   From: android-market-seed...@google.com

   Due to your contribution to the success of Android Market, we would
   like to present you with a brand new Android device as part of our
   developer device seeding program. You are receiving this message
   because you're one of the top developers in Android Market with one or
   more of your applications having a 3.5 star or higher rating and more
   than 5,000 unique downloads.

   In order to receive this device, you must click through to this site,
   read the terms and conditions of the offer and fill out the
   registration form to give us your current mailing address so that we
   can ship your device.

   You will receive either a Verizon Droid by Motorola or a Nexus One.
   Developers with mailing addresses in the US will receive either a
   Droid or Nexus one, based on random distribution. Developers from
   Canada, EU, and the EEA states (Norway, Lichtenstein), Switzerland,
   Hong Kong, Taiwan, and Singapore will receive a Nexus One. Developers
   with mailing addresses in countries not listed above will not receive
   a phone since these phones are not certified to be used in other
   countries.

   We hope that you will enjoy your new device and continue to build more
   insanely popular apps for Android!

   The email is from Google but I am still doubting somehow. Is this a
   spam? Any other developers receive this emails before?

   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: Device Seeding Program for Top Android Market Developers

2010-03-11 Thread f_heft
I don't get it ... ?!

On 11 Mrz., 14:56, C.Versieux christophe.versi...@gmail.com wrote:
 Should I cry?

 Just have a look on what I get yesterday morning...

 So, no N1 for 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] Re: Device Seeding Program for Top Android Market Developers

2010-03-05 Thread f_heft
I now received a third mail from Google (besides the we will now ship
your device):
---
Congratulations! You are one of the top 200 developers in round 1 of
the
Android Developer Challenge 2. To celebrate your success and encourage
you
to create more awesome Android apps, we would like to present you with
a
brand new Android device as part of our developer device seeding
program.
[...]
---

I wonder if I'm getting two phones now ... I think, most of the people
with a winning ADC2 app will have them in the market and will meet the
requirements anyways?


On 3 Mrz., 00:53, Larry lar...@gmail.com wrote:
 Dear all,

 I just received an email about Device Seeding Program for Top Android
 Market Developers:

 Subject: Device Seeding Program for Top Android Market Developers
 From: android-market-seed...@google.com

 Due to your contribution to the success of Android Market, we would
 like to present you with a brand new Android device as part of our
 developer device seeding program. You are receiving this message
 because you're one of the top developers in Android Market with one or
 more of your applications having a 3.5 star or higher rating and more
 than 5,000 unique downloads.

 In order to receive this device, you must click through to this site,
 read the terms and conditions of the offer and fill out the
 registration form to give us your current mailing address so that we
 can ship your device.

 You will receive either a Verizon Droid by Motorola or a Nexus One.
 Developers with mailing addresses in the US will receive either a
 Droid or Nexus one, based on random distribution. Developers from
 Canada, EU, and the EEA states (Norway, Lichtenstein), Switzerland,
 Hong Kong, Taiwan, and Singapore will receive a Nexus One. Developers
 with mailing addresses in countries not listed above will not receive
 a phone since these phones are not certified to be used in other
 countries.

 We hope that you will enjoy your new device and continue to build more
 insanely popular apps for Android!

 The email is from Google but I am still doubting somehow. Is this a
 spam? Any other developers receive this emails before?

 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: ADC2 Results?

2009-12-02 Thread f_heft
I dont think it's fair to generally badmouth the judging process and
with this the winners, too.
Many of the winning apps are pretty well done , well polished or at
least with unique ideas. Thats much more than the average of all apps
in the market.
And even there might be cases where an app didn't win even though it
might be better than a winning app, you should not generalize this for
all the apps. This is not fair imo.

PS: This is not especially for you, Piotr, I just quoted the last msg.
On 1 Dez., 22:35, Piotr piotr.zag...@gmail.com wrote:
 Look at Market, on ADC2 app comments.

 If MOST of commenting users do not even knew WHERE the MENU button is
 (how to skip an app ? issue), then you already know, how highly
 proffesional the judgement process was.

 On 1 Gru, 16:17, Rmac ry...@me.com wrote:



  So ADC2 was more of a publicity effort than true determination of high
  quality apps.  The losers in the contest may have been winners given a
  different random group of judges, and the winners may have lost given
  a different judging process.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can I use android:onClick and run my app on 1.5?

2009-11-26 Thread f_heft
Hello,

just a short question for a better understanding: I'm developing an
app based on the Android 1.5 Framework (with compatibility down to
1.1). But now I read about the new way of implementing click-handlers
in Android 1.6 on the Android Developer Blog and I'd really like to
use that in my app because it makes developer's life so much easier :)

But can I use this (and the 1.6 Framework) without losing backward
compatibility to 1.5 and 1.1?


Best regards and sorry if this question is dumb [I just didn't find
anything via google],
F Heft

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADC2 Results Post

2009-11-05 Thread f_heft
I didn't get a mail so far ... :(
Are these mails beeing send over the next few hours or did I somehow
miss 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] Re: ADC2 Results Post

2009-11-05 Thread f_heft
Thanks Dan for this advice, I found it in my spam folder, too ...
didn't expect a mail from Google in the gMail spam folder.

Graviturn made it to the Top20 (Arcade Games) - awesome!! :)

http://graviturn.androidig.de

On 5 Nov., 23:50, Dan Sherman impact...@gmail.com wrote:
 Sorry for the double post, but our ADC2 email actually somehow arrived in
 our Spam folder (gmail), so try checking there if you haven't yet.

 - Dan



 On Thu, Nov 5, 2009 at 3:40 PM, Dan Sherman impact...@gmail.com wrote:
  We just got ours :)

  Congratulations! Your application 'ProjectINF ADC' was selected by Android
  users as one of the top 20 in the Arcade category! We're excited that you
  chose to participate in the ADC 2 and wish you luck in the final round as
  your application is evaluated by users and a panel of judges.

  We've got some screenshots over onhttp://www.chickenbrickstudios.com:)

  - Dan

  On Thu, Nov 5, 2009 at 5:21 PM, Maan Najjar maan.naj...@gmail.com wrote:

  I didn't get anything too ...

  On Thu, Nov 5, 2009 at 5:09 PM, f_heft delphik...@gmail.com wrote:

  I didn't get a mail so far ... :(
  Are these mails beeing send over the next few hours or did I somehow
  miss 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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

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


[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-07 Thread f_heft

Uloops looks great! When will it be available on the market?

This looks really professional and sounds so, too!

On 7 Sep., 20:53, Sebastián Marconi sebastianmarc...@gmail.com
wrote:
 Application: Uloops
 Category: Media
 Website:http://www.uloops.net
 Description: Music composition environment.
 Has three main instruments:
  * Polyphonic synthesizer: 7-octave sequencer, 10-synths with filters
 like Cutoff and Resonance. 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/409.mp3)
  * Drum machine: 17-components and 6-drumkits 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/437.mp3)
  * Modulator: Analog-like modular synthesizer 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/415.mp3)

 Then you mix them making loops, small music pieces of roughly 8
 seconds (e.ghttp://uloops.net/adc2/banks/4aa1b1096d8e1/412.mp3)
 After playing around, you can arrange them into songs 
 (e.g.http://uloops.net/adc2/banks/4aa1b1096d8e1/446.mp3)
 Once finished you can publish the song and its parts, so everybody can
 rate them and use in their own songs.

 ADC experience: Great! Juan Bordón did the server-side thing and I
 made the android stuff. We became almost workalcoholics :D

 Cheers
 Sebastián
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-05 Thread f_heft

I submitted Graviturn for category Games: Arcade/Action (
http://www.cyrket.com/package/com.fheft.graviturn ) .
It's a little game where you tilt your phone to roll balls around in
order to remove some but keep others (hard to explain). It's no big
deal but at least it's unique, i think.

I started developing in the first week of August (not knowing about
the ADC) and when I was finished and started public beta testing, I
read about the competition and decided to take part - just for the
fun.

It's my first playable game for Android but I hope people will like it
(the feedback on the market is quite positive and encouraging, like
4.3 stars), even though I don't expect any chances in the ADC.

Because I didn't focus on ADC, I've coded a lot since August 31 and
did huge improvements to the game, but that won't help me in the
competition of course...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to reference (icon) drawables delivered with Android in XML

2009-09-04 Thread f_heft

Hello,

I'm defining my options menu in an XML file and I want to add an icon
to the menu items.
Normally, this would be sth like
--
 (...)
  android:icon=@drawable/iconfile /
--

But I want to use the drawables that are already stored in the
android.jar (as listed here: 
http://www.screaming-penguin.com/info/android_drawables/android_drawables.html
).
As the website says, I can access them via
--
myMenuItem.setIcon(android.R.drawable.ic_menu_save);
--
But how can I do that in XML? I tried several things but none worked
for me...


Best regards,
F Heft
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADC 2 Submission Site -- Now live

2009-09-04 Thread f_heft

I'm waiting for this, too ... but I don't know if it's released yet or
not because I don't know what to search for in the market ...


On 1 Sep., 08:46, Fallen Leaf fallenleafga...@gmail.com wrote:
 Now that submission closes in just some minutes, anybody knows when
 the judge application will be in the market?

 On 1 sep, 08:35, Dan Sherman impact...@gmail.com wrote:



  Could always just use com.company.product.adc, or com.company.product2, or
  any number of small modifications on the product name...

  On Tue, Sep 1, 2009 at 2:23 AM, an0...@gmail.com wrote:
   That's what is recently annoying me, because I didn't know there is such a
   ridiculous restriction and submitted myADCapp with the official package
   name (com.company.product) of that app which is going to be published on
   Android Market soon.
   Now, I am totally screwed. Because an ideal package name should match the
   app name and represents the publisher, the only decent package name left 
   on
   top of my mind is com.product, but which is of course constrained by the
   chance that one can gain the domain product.com.

   Any better ideas?
   On Sep 1, 2009, at 2:10 PM, James Yum wrote:

   --001485f6ccf82a232f04727e008f
   Content-Type: text/plain; charset=ISO-8859-1
   Content-Transfer-Encoding: quoted-printable

   Hi,
   Unfortunately, you won't be able to recover that package name. That's the
   way it works on the regular Market as well.

   Cheers,
   James

   On Mon, Aug 31, 2009 at 9:45 PM, an0...@gmail.com wrote:

   But I want to use the package name that I've revoked fromADCbefore it i=

   s

   closed for submission  and open for judgement.

   On Sep 1, 2009, at 11:39 AM, Chi Kit Leung wrote:

   anyway,  I think ADC2 is closed.

   On Tue, Sep 1, 2009 at 1:04 PM, an0 an0...@gmail.com wrote:

   But I find it is unreasonable that I can not reuse the package name

   EVEN IF I've unsubmitted theADCapp EVEN beforeADCstarts to open to

   users. Since there is no one but me knows the ever ephemeral existence

   of such a package, what's the problem of revoking the first one and

   then using its name for another?

   On Aug 31, 6:04 am, Fallen Leaf fallenleafga...@gmail.com wrote:

   Change the package (i.e. add .adc). What you made doesn't work

   because there are people that have downloaded your app even if now

   it's not in the market so Google doesn't allow to publish several apps

   with the same package.

   On 30 ago, 18:06, Omer Saatcioglu osaatcio...@gmail.com wrote:

   Hello Android Team,

   I had uploaded my app Instant Lyrics after 1st August and it is now =

   in

   the market. That's why, when I try to upload my app toADC2 it says

   that You have another application on Android Market orADCwith the

   same package name (com.saatcioglu.android.instantlyrics). Go to tha=

   t

   other application, and click upgrade.

   I unpublished the app from Market but still I have the same error.

   What should I do?

   Thank you,

   Omer

   On Aug 27, 8:23 pm, Dan Morrill morri...@google.com wrote:

   We are not planning to extend the submission deadline.

   - Dan

   On Tue, Aug 25, 2009 at 2:22 PM, patrick android.com...@gmail.com=

   wrote:

   Hi,

   i'm asking wher can we ask google to extend the deadline?

   thks

   On 25 ao=FBt, 17:05, Dan Sherman impact...@gmail.com wrote:

   There's no reason that they would change the deadline.  The

   deadline has

   been set at the 31st since late May (as stated before).  With

   that

   deadline

   posted, your app should be ready to hit the submit button on t=

   he

   31st or

   sooner.  Nothing changed, they're giving you a full week to hi=

   t

   the

   Submit

   button.

   - Dan

   On Tue, Aug 25, 2009 at 12:06 PM, Maps.Huge.Infohttp://maps.h=

   uge.info/(Maps API Guru) 

   cor...@gmail.com wrote:

   I see no need to extend the deadline, it's been public since

   May 27th,

   if you're not ready by now, you'll probably never be ready.

   People

   have to learn that a deadline means something, extending it

   would only

   punish those who are ready and reward those who can't meet

   project

   goals on time.

   -John Coryat

   --

   Regards,

   Michael Leung

  http://www.itblogs.info

  http://www.michaelleung.info

   --

   A ghost writing code with soul @http://wangling.me/.

   --001485f6ccf82a232f04727e008f
   Content-Type: text/html; charset=ISO-8859-1
   Content-Transfer-Encoding: quoted-printable

   Hi,divbr/divdivUnfortunately, you won#39;t be able to recover
   that=
   package name. That#39;s the way it works on the quot;regular 
   Marketquot=
   ; as well./divdivbr/divdivCheers,/divdivJamesbrbrdiv
   cla=
   ss=3Dgmail_quote
   On Mon, Aug 31, 2009 at 9:45 PM,  span dir=3Dltrlt;a href=3D
   mailto:a= a=
   n0...@gmail.coman0...@gmail.com/agt;/span wrote:brblockquote
   clas=
   s=3Dgmail_quote style=3Dmargin:0 0 0 .8ex;border-left:1px #ccc
   solid;pad=
   ding-left:1ex;
   div 

[android-developers] Faster Canvas.drawLine() for rectangular lines?

2009-07-31 Thread f_heft

Hello,

I'm developing a SurfaceView based, vector-styled game, so I'm using
Canvas.drawLine(startX, startY, stopX, stopY, Paint) very often. All
those lines are rectangular (startX=stopX or startY=stopY).
The TraceViewer shows me, that more than 50% of time are used to draw
those lines (about 100 per frame).

I read that drawLine is pretty slow on Android but I didn't find any
suggestions for an alternative.
What could be a faster method for this special case? I wouldn't need
the Bresenham algorithm for example, which drawLine will use I guess.

Any suggestions?
(Besides 'use openGL', as it's too late for that)

Regards, F Heft

PS: If anyone's interested: The game still runs with a sufficient
frame rate, but I want to improve wherever I can :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Garbage Collector - best practice

2009-07-31 Thread f_heft

Thanks very much, this video is great!
Helped me a lot, now this isn't a problem anymore :)

On 30 Jul., 17:46, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote:
 I recommend seeing this lecture from GoogleIO on the same 
 subject:http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid...

 To your question, GC can pause real-time games, unfortunately. Two
 ways to minimize this are:
 1) reuse objects, rather than allocating new ones and letting GC take
 care of old ones
 2) don't use others' classes, like the Java container classes, for
 example, which can trigger GC

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Jul 29, 11:58 pm, f_heft delphik...@gmail.com wrote:



   float is a primitive type, not an object.  It sits in a register,
   not on the heap.

   Float is an object that can be used to box a float.  Hopefully
   you're not using Float for values used in calculations.

  I'm using float not Float.
  I'll try out the allocation tracker, 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: Garbage Collector - best practice

2009-07-30 Thread f_heft

 float is a primitive type, not an object.  It sits in a register,
 not on the heap.

 Float is an object that can be used to box a float.  Hopefully
 you're not using Float for values used in calculations.

I'm using float not Float.
I'll try out the allocation tracker, thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to use AsyncTask from a Thread?

2009-07-29 Thread f_heft

Hello,

I'm developing a game based on SurfaceView and a game thread for the
whole game thing (calculating/drawing/...).
Now I want to do some HTTP requests triggered on events inside the
thread. They should of course be asynchronous, so the game doesn't
stop.
I found AsyncTask to be a neat way to do this but I'm having trouble
implementing this at the moment. Maybe I misunderstood the concept of
AsyncTask , I don't know .. it just drives me nuts as I read docs and
blogs and still I don't get it. So sorry if that's a dumb question but
I'm mad of thinking about it.

-- What would be best practice to do asynchronous things out of a
thread?

Regards, F Heft
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Garbage Collector - best practice

2009-07-29 Thread f_heft

Hello,

I didn't use much Java before Android so my knowledge concerning the
gc is marginal.

Now I'm developing a highly physics-based game and therefore I need to
do many calculations each time step and many (25) timesteps per
second.
At the moment I'm almost only using local objects (float) in my
methods, so I guess they are allocated every time the method is called
(which might be, for example, 25*100 = 2500 times a second , for 100
objects with calculations on them).
This causes massive activity of the garbage collector .. like freeing
~1 objects every 1-2 seconds (taking ~200ms on a real device).

Now I really want to optimize that because even there's no noticable
delay due to the GC (and the framerate is constant), this seems just
not well.
But I read on many documentations concerning Java optimization, that
there is not much to optimize in modern versions of (desktop) Java,
because the GC is fast enough.
Does this apply to Android, too? Does the compiler optimize anything
like frequently, steady allocated objects (like floats)? What would be
best practice: keep all local objects and allocate and free them all
the time or use class-global objects, even if they are only used
inside one particular method (which is bad programming style but
conserves GC)?

Best regards,
F Heft
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 use adb tool on SAMSUNG GALAXY?

2009-07-28 Thread f_heft

Hello,

it seems like most of the users in the german android-hilfe.de board
got it running perfectly under nearly every windows operating system
(XP, Vista 32/64, Win7 32/64).
I thought I were the only one who has still problems. I tried it so
many times, uninstalled all old drivers, tried new ones etc., but I
ddms or 'adb devices' still doesn't list my galaxy (on Win 7 x64)



On 26 Jul., 23:55, Akex alexis.v...@gmail.com wrote:
 Hi,

 @Xavier : Seems the adb of r3 doesn't work perfectly for Samsung.
 Tried on Xp and seven 

 After tweaking the .inf file to install drivers for my Samsung i7500
 (otherwise Windows doesn't accept the drivers), I can't manage to make
 my phone visible under ddms (Under Windows XP). I have the last SDK on
 my computer off course (1.5 r3).

 Is anybody able to see his Samsung phone under ddms on XP ?

 My build : 76XXCSDCBALUM6375

 Thanks

 Akex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Dev Phone not available anymore

2009-07-26 Thread f_heft

Look here:
http://groups.google.com/group/android-developers/browse_thread/thread/6e30a9014329bb87

On 26 Jul., 09:34, arnouf arnaud.far...@gmail.com wrote:
 HI all,

 I would like to buy a dev phone, but on my Android Market publish
 page, when I click on buy dev phone, i come bac always on publish
 page, like the pagehttp://market.android.com/publish/buyDeveloperPhone
 didn't exist anymore.

 Do you have information about 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] Re: Strange bug found when subtracting a float from another float, or a double from another double

2009-07-20 Thread f_heft

The most important thing you should remember about float operations:
never '==' compare them.
---
if (floatNumber == 0) {}
---
will mostly fail because of the limited precision.

So you'd better do comparisons like that:
---
if (Math.abs(floatNumber)  0.001) {} // with a tolerance of your
choice
---


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



[android-developers] Re: SDK 1.5_r3 is available

2009-07-18 Thread f_heft

Okay, so now I installed the usb_driver from the SDK R3 (which worked
well after some messing around with Windows 7). But neither 'adb
devices' nor DDMS recognize the Galaxy. Did I miss sth?



On 18 Jul., 00:55, dan raaka danra...@gmail.com wrote:
 nothing magical .. added vendor ids ..
 // Samsung's USB Vendor ID
 #define VENDOR_ID_SAMSUNG       
 0x04e8http://android.git.kernel.org/?p=platform/system/core.git;a=blob_plai...
 can see a moto ID tooo :O that is good fodder for engadet folks :D

 -Dan



 On Fri, Jul 17, 2009 at 3:21 PM, f_heft delphik...@gmail.com wrote:

  After it seems like you figured it out: is there anything special to
  consider?
  I'm downloading it at the moment (thanks for your hint in the other
  thread) and will try it tomorrow ...

  On 17 Jul., 23:30, dan raaka danra...@gmail.com wrote:
   So what are the steps to use this SDK and adb into Samsung Galaxy

   -Dan

   On Fri, Jul 17, 2009 at 10:35 AM, Dan Morrill morri...@google.com
  wrote:
Hi, all!
I wanted to let you know that a new SDK has been released:  1.5_r3 is
  now
available.  This is a minor release, and includes a Japanese IME and
  fixes
for a few bugs, including a permissions issue.  You can read more about
  the
permissions issue here:
   http://www.ocert.org/advisories/ocert-2009-011.htmlYou can download
  the
SDK here:http://developer.android.com/sdk/1.5_r3/index.htmlandfind
  the
     release notes here:
   http://developer.android.com/sdk/RELEASENOTES.html#1.5_r3

Happy coding!

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



[android-developers] Re: SDK 1.5_r3 is available

2009-07-18 Thread f_heft

I think I installed the wrong driver .. the driver in the folder
usb_driver is only for two HTC devices and a general adb bridge. I
tried to install the adb bridge-driver für the galaxy, but that
didn't work.
I wonder how you installed the driver for the galaxy .. did you just
take the files out of the usb_driver folder?

adb is enabled on the galaxy ..

On 18 Jul., 20:45, dan raaka danra...@gmail.com wrote:
 in your device manager (I verified mine on win xp) do you see the device as
 'samsung adb interface device', and check if you have enabled adb on the
 device .. in settings-development
 -Dan



 On Sat, Jul 18, 2009 at 2:13 AM, f_heft delphik...@gmail.com wrote:

  Okay, so now I installed the usb_driver from the SDK R3 (which worked
  well after some messing around with Windows 7). But neither 'adb
  devices' nor DDMS recognize the Galaxy. Did I miss sth?

  On 18 Jul., 00:55, dan raaka danra...@gmail.com wrote:
   nothing magical .. added vendor ids ..
   // Samsung's USB Vendor ID
   #define VENDOR_ID_SAMSUNG       0x04e8
 http://android.git.kernel.org/?p=platform/system/core.git;a=blob_plai...
   can see a moto ID tooo :O that is good fodder for engadet folks :D

   -Dan

   On Fri, Jul 17, 2009 at 3:21 PM, f_heft delphik...@gmail.com wrote:

After it seems like you figured it out: is there anything special to
consider?
I'm downloading it at the moment (thanks for your hint in the other
thread) and will try it tomorrow ...

On 17 Jul., 23:30, dan raaka danra...@gmail.com wrote:
 So what are the steps to use this SDK and adb into Samsung Galaxy

 -Dan

 On Fri, Jul 17, 2009 at 10:35 AM, Dan Morrill morri...@google.com
wrote:
  Hi, all!
  I wanted to let you know that a new SDK has been released:  1.5_r3
  is
now
  available.  This is a minor release, and includes a Japanese IME
  and
fixes
  for a few bugs, including a permissions issue.  You can read more
  about
the
  permissions issue here:
 http://www.ocert.org/advisories/ocert-2009-011.htmlYoucan download
the
  SDK here:http://developer.android.com/sdk/1.5_r3/index.htmlandfind
the
   release notes here:
 http://developer.android.com/sdk/RELEASENOTES.html#1.5_r3

  Happy coding!

  - Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using orientation sensor to get 3 60° orientation?

2009-07-17 Thread f_heft

Hello,

I have a problem with working with the ORIENTATION values of the
SensorManager.
I would like to have some kind of 360°-value which directly shows me
if the phone is in normal portrait (0°), landscape, portrait turned
around (180°) or anything in between.
So I could have, for example, an arrow that points to the floor (like
gravity would do with a plummet) all the time, no matter how I tilt
(sidewards) the phone.
I thought this would be easy, but I'm pretty confused at the moment.

First of all, the X value of the orientation-array seems to
correspondent with how I turn the phone, BUT: if it's completely
uprightly standing, this value is about 60° ... why not 0° (or 90°,
180°, 270°), as I would expect?

Second: The value resets if I turn the phone and Android automatically
changes screen orientation. So both in Portrait and in Landscape mode
it will be sth. like 60° when the phone is in a 0° angel in real
world.
I set android:screenOrientation to landscape but this doesn't help
anything :/

I want the app NOT to change orientation when I turn the phone, but I
want it to get a continuous orientation value when I tilt the phone.

Any ideas how to achieve that?

To complicate matters further, I have a Samsung Galaxy, so at the
moment I'm unable to use the phone for debugging (no adb connection)
because Samsung hasn't made a driver yet -.-
So it's hard for me to try out things and I hope anyone has a really
helpful answer 


Best regards,
Florian

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