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

2009-05-14 Thread a druid

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

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


On May 14, 3:29 pm, admin.androidsl...@googlemail.com
admin.androidsl...@googlemail.com wrote:
 Presumably one layout or other must be native to the O/S and the other
 layout needs an expensive internal rotation + transformation in order
 to display in correct position.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-05-14 Thread a druid

I don't know the actual G1 hardware.

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

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

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

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

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

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

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

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

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

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



[android-developers] Re: how to speciyfy multiple dns servers for emulator

2009-05-13 Thread a druid

Thanks a lot.
I overlooked the -help-option switch.
This definitely clarifies.


On May 12, 4:11 pm, David Turner di...@android.com wrote:
 comma separated. Try -help-dns-server for more details

 On Tue, May 12, 2009 at 11:43 AM, a druid klausf...@gmail.com wrote:

  Hi,

  I found following documentation with 'emulator -help'

  -dns-server servers          use this DNS server(s) in the emulated
  system

  so how do I specify multiple servers?

  Comma separated, blank separated, colon separated,  repeating the
  switch multiple times?

  thanks in advance

  P.S. What's the most efficient way
  - to submit documentation 'bugs'
  - to submit suggestions for documentation improvement?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 speciyfy multiple dns servers for emulator

2009-05-12 Thread a druid

Hi,


I found following documentation with 'emulator -help'

-dns-server servers  use this DNS server(s) in the emulated
system


so how do I specify multiple servers?

Comma separated, blank separated, colon separated,  repeating the
switch multiple times?

thanks in advance


P.S. What's the most efficient way
- to submit documentation 'bugs'
- to submit suggestions for documentation improvement?




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: DTD file for syntax checking of layouts / manifest files

2009-05-07 Thread a druid

Thanks for your answer.

Is this the same for the Manifest file ?



On May 6, 5:39 pm, Romain Guy romain...@google.com wrote:
 There is no DTD for the layout files because they use dynamic tag
 names. A DTD cannot be written.



 On Wed, May 6, 2009 at 6:53 AM, a druid klausf...@gmail.com wrote:

  Hi,

  Some XML tools request DTD files in order to allow syntax checking.

  Is there any place for official Android DTD files for the Manifest /
  for the layout XML files?

  If yes, Where could I find them?

  If no: Wyy does Google / Android not provide them?

  Thanks in advance for any answer clarification.

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

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



[android-developers] Re: How to Disable Onscreen Keyboard

2009-05-07 Thread a druid

Go to
settings - Locale  text
and uncheck Android keyboard

On May 6, 4:22 am, MikaSue mika...@mikasuedesigns.com wrote:
 I have downloaded SDK 1.5 and now when I enter a edittext field, this
 annoying onscreen keyboard pops up.  Is there a way to disable it in
 the emulator?  It's very annoying and slows my development down.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] DTD file for syntax checking of layouts / manifest files

2009-05-06 Thread a druid

Hi,


Some XML tools request DTD files in order to allow syntax checking.

Is there any place for official Android DTD files for the Manifest /
for the layout XML files?

If yes, Where could I find them?

If no: Wyy does Google / Android not provide them?

Thanks in advance for any answer clarification.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Documentation does not specify when an API was added

2009-05-02 Thread a druid

WOuld be a good feature.
I'm missing it.


On May 1, 11:45 pm, Jon Colverson jjc1...@gmail.com wrote:
 On May 1, 9:27 pm, Mike Hearn mh.in.engl...@gmail.com wrote:

  I noticed WebView seemed to have some new methods I didn't remember
  from before. Unfortunately I can't tell exactly which ones are new,
  without actually trying them and waiting for the SDK to catch the
  mistake.

  Could the docs please state in which API release a method, class,
  interface, enum etc was added? This is pretty fundamental to know when
  trying to figure out how to implement something.

 I agree that it would be very nice to have this in the docs, but in
 the meantime there are always the API Differences 
 reports:http://developer.android.com/sdk/api_diff/3/changes.html

 I filed an issue about the 
 Javadocs:http://code.google.com/p/android/issues/detail?id=2557

 --
 Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 1.5 SDK now available

2009-05-01 Thread a druid

Hi havexz.

I backup your proposal. Knowing when a feature has been introduced is
very useful.
I suggested something similiar some days ago (if I didn't forget to
send it)


On Apr 27, 11:41 pm, havexz bali.param...@gmail.com wrote:
 Thanks Xav for the update.

 I have a suggestion regarding the online 1.5 sdk documentation. Is it
 possible to add the the sdk version (version with which the API is
 introduced) with the APIs in the reference section.

 Example (just a fake example):

 onLayout(boolean changed, int l, int t, int r, int b)
 sdk_v1.0

 onMeasure(int widthMeasureSpec, int heightMeasureSpec)
 sdk_v1.5

 This will help developers to know which apis are new and which ones
 are old and help them cofigure there releases (using minSdkVersion)
 easily and efficiently.

 This kind of notation is also used in Windows Mobile SDK.

 Havexz

 On Apr 27, 1:12 pm, Xavier Ducrohet x...@android.com wrote:

  Hello developers,

  The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for 
  download.

  More information 
  athttp://android-developers.blogspot.com/2009/04/android-15-is-here.html

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



[android-developers] Re: where can i get the source code of the command monkey?

2009-04-21 Thread a druid

Hi Dianne,

Just for fun I wanted to write a Service, which can display
the current activityManager,
the current Window Manager
and the current Service Manager,

in Monkey.java this is done by Monkey.getSystemInterfaces()
with
mAm = ActivityManagerNative.getDefault();

How can I get the same functionality for an Android application?

and of course, how can I compile it.

Thanks in advance

On Apr 16, 10:33 am, Dianne Hackborn hack...@android.com wrote:
 You need to build it with the platform build system.  This is not intended
 to be used outside of that.



 On Thu, Apr 16, 2009 at 12:46 AM, adrian linca30...@gmail.com wrote:

  Hello group,
  I download the source code from [platform/development.git]/cmds/
  monkey/ and want to build in eclipse.
  But I don't have some non-public classes.
  like:
  import android.app.ActivityManagerNative;
  import android.app.IActivityManager;
  import android.app.IActivityWatcher;

  where can I get the non-public classes?

  Thanks and best regards,
  Adrian

  On Apr 16, 2:54 am, swarup me.s...@gmail.com wrote:
   git source path :

   [platform/development.git]/cmds/monkey/...

   On Apr 15, 10:57 am, adrian linca30...@gmail.com wrote:

Hello group,
I don't have a option -f in my commandmonkey(/system/bin/monkey).
example: adb shellmonkey-f script_file_name.
But the command unknown option -f.
So I want to get  the source code of the commandmonkey, then open
this option and rebuild it.

Regards,
Adrian

 --
 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: where can i get the source code of the command monkey?

2009-04-21 Thread a druid

Hi Dianne,

In fact my goal is to write my own Monkey-service(initial version only
for key presses).
What I need is a much more controlled randomness of key presses and
key timings.

I can create and start a service.

I can create a key event:
KeyEvent = kevent = new KeyEvent
(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_A);

But I don't know how my Monkeyservice can send it to the current
activity.


How can I compile such service?


On Apr 16, 10:33 am, Dianne Hackborn hack...@android.com wrote:
 You need to build it with the platform build system.  This is not intended
 to be used outside of that.



 On Thu, Apr 16, 2009 at 12:46 AM, adrian linca30...@gmail.com wrote:

  Hello group,
  I download the source code from [platform/development.git]/cmds/
  monkey/ and want to build in eclipse.
  But I don't have some non-public classes.
  like:
  import android.app.ActivityManagerNative;
  import android.app.IActivityManager;
  import android.app.IActivityWatcher;

  where can I get the non-public classes?

  Thanks and best regards,
  Adrian

  On Apr 16, 2:54 am, swarup me.s...@gmail.com wrote:
   git source path :

   [platform/development.git]/cmds/monkey/...

   On Apr 15, 10:57 am, adrian linca30...@gmail.com wrote:

Hello group,
I don't have a option -f in my commandmonkey(/system/bin/monkey).
example: adb shellmonkey-f script_file_name.
But the command unknown option -f.
So I want to get  the source code of the commandmonkey, then open
this option and rebuild it.

Regards,
Adrian

 --
 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: inject long home key press

2009-04-17 Thread a druid

Hi Dianna,


Thanks for your reply.

In fact my problems are in fact even more basic.

The command 'sendevent'
requires following parameters
device
type
code
value

How do I have to specify all these parameters.

Let's take for example the emulator and let's assume I'd like to press
the 'down' key

My questions are:
device: is this the device string, that I can find with cat /proc/bus/
input/devices
type: what is this?
code: what is this?
value: I assume this is what I could find in the *.kl files, that you
mentioed.

In order to bother you and the forums less with this kind of questions
I would be glad to be pointed to the adequate documentation explaining
how sendevent is working and what
the parameters of sendevent mean.



thanks in advance


K

On Apr 16, 6:34 pm, Dianne Hackborn hack...@android.com wrote:
 The codes you send through the driver are the raw events, before they have
 been translated to Android key codes, so it depends on your hardware.
 You'll want to look at the source code of whatever build you are using --
 there will be a *.kl file somewhere mapping from the driver codes to android
 codes.



 On Thu, Apr 16, 2009 at 8:54 AM, a druid klausf...@gmail.com wrote:

  Hi searup.

  I have one more question.
  As a newbie I have still the basic problem of locating the document
  ation, that I need for some tasks.

  Which document(s) / url list(s) the possible devices / types / key-
  codes key-values ?

  thanks a lot in advance.

  On Apr 16, 2:46 pm, swarup me.s...@gmail.com wrote:
   try

   $ adb shell sendevent device type key-code value-press ; adb
   shell sleep 1           #seconds; adb shell sendevent device type
   key-code value-release

   above is for 1 second long press

   On Apr 14, 11:46 pm, Dan Raaka danra...@gmail.com wrote:

I am using this a work-around for the non-working home key in the 1.0
or 1.1 emulator.
If there is fix for it. That would work for me as well.

On Apr 14, 11:23 am, Dan Raaka danra...@gmail.com wrote:

 Is there a keycode to inject long home key press into a device via
  adb
 like below ?

 $ adb shell input keyevent 7    # for key '0'

 -Dan

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

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



[android-developers] How to send SMS between two emulators (SDK 1.5 or older)

2009-04-17 Thread a druid

Hi,


with the SDK 1.5 it is possible to instantiate two emulators with two
different devices.
Could I assign a phone number to each device, such, that I could send
SMS messages forth and back?

thanks and bye



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



[android-developers] why is the sdk 1.5 prerelease releaed with obsolete documentation?

2009-04-16 Thread a druid

Hi,

Well I know, that this is just a pre-release bla . bla . bla,
but still this doesn't justify everything.

Wouldn't it be nice to have the documentation at least halfways
accurate?
Or if it's not accurate to add at some kind of 'obsolete' marker to
certain chapters.
This can be done very quickly and helps users.

The very first thing I looked up was docs/guide/developing/other-
ide.html

Creating an Android project still talks about activityCreator ,
which doesn't exist any more.

Additionally the example still talks about activityCreator.py (which
didn't even exist in the previous release under linux)

My suggestion to the Google team would be to at least mark all
chapters as obsolete, which might have to be rewritten.
If the document changes are already known, the obsolete marler could
already point to some kind of release notes file with the anticipated
changes.

In my example this could have been a reference to 
http://developer.android.com/sdk/preview/
Where is activitycreator

I think this suggestion might help to get rid of quite some un
necessary support questions.

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



[android-developers] Re: why is the sdk 1.5 prerelease releaed with obsolete documentation?

2009-04-16 Thread a druid

Hi David,

I do not talk about the documentation on the web.

The documentation packaged with the 1.5. release is wrong as well.
If the doc is wrong in any case it might be better to provide a
doc.html,
which states.

 This is a pre-release.
 Don't expect to find any useful documentation here.
 If you're relally interested in the documentation of the
 previous release, then click 'here'


I still think this would be better than providing bad documentation
without any comments.


On Apr 16, 4:43 pm, David Turner di...@android.com wrote:
 The documentation on the official web site is still for 1.1
 As as been announced, we will update the site when we release the final 1.5
 SDK

 It's a preview for a reason :-)

 On Thu, Apr 16, 2009 at 4:24 PM, a druid klausf...@gmail.com wrote:

  Hi,

  Well I know, that this is just a pre-release bla . bla . bla,
  but still this doesn't justify everything.

  Wouldn't it be nice to have the documentation at least halfways
  accurate?
  Or if it's not accurate to add at some kind of 'obsolete' marker to
  certain chapters.
  This can be done very quickly and helps users.

  The very first thing I looked up was docs/guide/developing/other-
  ide.html

  Creating an Android project still talks about activityCreator ,
  which doesn't exist any more.

  Additionally the example still talks about activityCreator.py (which
  didn't even exist in the previous release under linux)

  My suggestion to the Google team would be to at least mark all
  chapters as obsolete, which might have to be rewritten.
  If the document changes are already known, the obsolete marler could
  already point to some kind of release notes file with the anticipated
  changes.

  In my example this could have been a reference to
 http://developer.android.com/sdk/preview/
  Where is activitycreator

  I think this suggestion might help to get rid of quite some un
  necessary support questions.


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

2009-04-14 Thread a druid

Hi,

Just a small newbie question:

I understand, that the Android emulator is by definition and scope
slower than an I-phone simulator.

However:
There are apps, which have to run on an emulator in order to emulate
hte entire HW.
However for a lot of algorithmic / GUI stuff a simulator would be more
than enough.


Is there any alternative to the emulator, which could be used for
verifying the GUI /
algorithmic part or the part, which just interacts with API's, that
exist also on a
PC?


Basically is there something like a dalvik viewer for linux / windows
?


thannks ina dvance for any pointers.
This might help to accelerate development.

On Apr 14, 10:59 am, walterc weih...@gmail.com wrote:
 we use emulator in android sdk which emulates the entire hardware
 stack, down to cpu instructions.  iphone sdk uses simulator which does
 nothing of the sort.

 On Apr 14, 4:33 pm, admin.androidsl...@googlemail.com

 admin.androidsl...@googlemail.com wrote:
  PC is fairly up-to-date spec - AMD Athlon X2 2 GHz, 2 GB's of RAM.

  Mac I don't have (yet), but I have been trolling on iPhone forums and
  have heard that iPhone emulator is unrealistically fast.

  On Apr 14, 9:04 am, Al Sutton a...@funkyandroid.com wrote:

   What are the specs of the PC and Mac you're trying it on?

   Al.

   ---

   * Written an Android App? - List it athttp://andappstore.com/*

   ==
   Funky Android Limited is registered in England  Wales with the
   company number  6741909. The registered head office is Kemp House,
   152-160 City Road, London,  EC1V 2NX, UK.

   The views expressed in this email are those of the author and not
   necessarily those of Funky Android Limited, it's associates, or it's
   subsidiaries.

   -Original Message-
   From: android-developers@googlegroups.com

   [mailto:android-develop...@googlegroups.com] On Behalf Of
   admin.androidsl...@googlemail.com
   Sent: 14 April 2009 09:04
   To: Android Developers
   Subject: [android-developers] emulator speed

   Why is pc android emulator slower than real device but mac iphone emulator
   faster than real device?

   I can understand the latter but not the former!



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

2009-04-14 Thread a druid



On Apr 9, 10:21 am, kimura...@gmail.com kimura...@gmail.com wrote:
 How can i building my application alone, generate the apk file??

 My source path look like this:
   /packages/inputmethod/pinyinIME/src/***.java
   /packages/inputmethod/pinyinIME/res/
   /packages/inputmethod/pinyinIME/lib/
   /packages/inputmethod/pinyinIME/jni/


Anything wrong with following?

cd /packages/inputmethod/pinyinIME/ ; ant



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