[android-developers] Re: How to open or close the soft keyboard by code

2009-07-27 Thread Zsolt Váradi

On Mon, Jul 27, 2009 at 4:59 AM, Rainrainli1...@gmail.com wrote:

 Thanks Evan

 I'm sorry to forgot to say that may SDK is 0.9 Beta,so the inputmethod
 class is not inclued,besides that,i want to open or close the key
 board not using in an activity.Could you tell me some way else to
 solve my problem?
 Thanks for your response.

You have to update your SDK to 1.5. There was no soft keyboard before that :P

Zsolt

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

2009-07-27 Thread sagar

yes saurav, I mean parallelogram.

Nightwold has given the solution. let me try it..Will update here!!

On Jul 25, 11:49 pm, Nightwolf mikh...@gmail.com wrote:
 One solution is to create a path and add lines to it to form a
 rectangle you need. Another way is to rotate canvas itself.

 On Jul 25, 1:44 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com
 wrote:

  by a diagonal rectangle, do u mean a parallelogram?

  On Sat, Jul 25, 2009 at 12:40 PM, sagar.indianic
  sagar.india...@gmail.comwrote:

   Hi all,

   I have got a problem. How can i create the following rectangle by
   using Rect class??

         __
       __
     __
    __

   I mean Diagonal Rectangle. Is it possible through Rect class?? if not
   then any other way??
   plz help..its urgent!!


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

2009-07-27 Thread Sagar

Hi all,

I check rectangle intersection when an object intersects with that
rectangle. Now I create a parellelogram using Path class. How can I
check intersection now?? The problem right now is:

--
|  _|
|_  |
|  _|
|_  |
||
--

Here parellogram shows my image that will block object. While
rectangle works like container. But it should shrink itself to
accomodate image only, not the other area. I m not getting this..plz
help..

For vertical and horizontal blockers i have something like this

-
| _ |
| _ |
| _ |
-

So for those blockers, there is no problem.plz suggest a
solution..thanks  a lot!!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 specify setWallpaper() for landscape mode???

2009-07-27 Thread Sagar

Hi,

I just used setWallpaper() method. It is working. But when orientation
changes image gets cropped. So how can I provide landscape version of
the image?? Is there any way to provide landscape version of the
wallpaper??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dev Phone not available anymore

2009-07-27 Thread arnouf

Ok thanks for your answer.
Do you think that google provide new dev phone (HTC or others) soon?

Regards

On 26 juil, 21:35, Brian Conrad brianjto...@gmail.com wrote:
 I'm also wondering if they are going to make some of the newer phones
 available to developers instead?  The G2 (Magic) or even the Samsung.  
 I believe T-Mobile will have the G2 available to public on the 8th.



 f_heft wrote:
  Look here:
 http://groups.google.com/group/android-developers/browse_thread/threa...

  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] For google employees

2009-07-27 Thread arnouf

Hi,

The Google Dev Phone is out of stock and not available for a long
time.
Does google think to provide new Dev phone - official root phone - by
HTC, Samsung, Motorola or others soon?

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

2009-07-27 Thread peeyush varshney
Hi,
   I want to show set of images like Toast when i click on Button. it
should be like ..first Image then second n next and last and disappeared
.

-- 
Thank  Regards
Peeyush Varshney

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 open or close the soft keyboard by code

2009-07-27 Thread Rain

Thanks for your response.
I've tried to use the IInputMethod.showsoftinput/hidesoftinput in
Ubuntu for compiling,but it can't go through and feeds back that the
class IInputMethod can not be found. Else i search the class in
source code and find it.So could you tell me why?

On 7月27日, 下午2时07分, Zsolt Váradi karma...@gmail.com wrote:
 On Mon, Jul 27, 2009 at 4:59 AM, Rainrainli1...@gmail.com wrote:

  Thanks Evan

  I'm sorry to forgot to say that may SDK is 0.9 Beta,so the inputmethod
  class is not inclued,besides that,i want toopenorclosethe key
  board not using in an activity.Could you tell me some way else to
  solve my problem?
  Thanks for your response.

 You have to update your SDK to 1.5. There was nosoftkeyboardbefore that :P

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

2009-07-27 Thread Yusuf T. Mobile

Hi timf999, Android uses a different GUI library instead of Swing,
although there are some similarities. I recommend you go though some
tutorials, as well as look at the demo app that comes with the SDK
called ApiDemo.



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 25, 1:32 am, timf999 timf...@googlemail.com wrote:
 Hi, guys.

 I've been teaching myself Java over the last few weeks. I already know
 several OOP languages, so i was not too complicated. I have just
 learned some basic Swing and I now want to develop a simple app.

 How do I use Android-style Swing and custom graphics to do this?

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



[android-developers] Re: Multitouch support in Donut?

2009-07-27 Thread Al Sutton

http://bit.ly/DX8VP for further clarification.

Al.
--

* Written an Android App? - List it at http://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.


On Jul 26, 11:28 pm, Marco Nelissen marc...@android.com wrote:
 On Sun, Jul 26, 2009 at 8:49 AM, quillquill...@163.com wrote:

  Look at here:http://phandroid.com/2009/07/25/morning-donuts/

 http://groups.google.com/group/android-developers/msg/0f2c5cd313d9cd34
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: paid support

2009-07-27 Thread Yusuf T. Mobile

Google doesn't.



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 25, 4:27 am, Honest honestsucc...@gmail.com wrote:
 Hello,

 I would like to know that does google provides any paid support for
 android developer so that developer can progress fast and they have to
 do less searching.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Back navigation for database stored web pages

2009-07-27 Thread Aracos

Greetings all,

I have a problem with the Back navigation within my web-view.

Here is what I would like to have:
On the device there is a database containing some web-pages. The User
is able to search the content of the database and view the stored
pages. Those pages contain some links.
If the user clicks on one of those links the click is intercepted. If
the reference set within this link is also part of the database, the
stored content is displayed, otherwise a remote URL is loaded.

This works great so far, but the problem I have is, that when I want
to do a back navigation, always the address for my remote location is
displayed and the method for searching the local database is not
shown.

The data from my content provider is displayed with the method:

code
  public void showContent(ByteArrayOutputStream content, String title)
  {
if (activity!=null)
  activity.setTitle(URLDecoder.decode(title));
// loadData(content.toString(), MIME_TYPE, DEFAULT_ENCODING);
loadDataWithBaseURL(BASE_URL + title, content.toString(),
MIME_TYPE,
DEFAULT_ENCODING, REMOTE_URL + title);
  }
/code

  I implemented my own WebViewClient and overloaded the method '
 shouldOverrideUrlLoading' to intercepted the loading of the requested
URL.
There I parse the URL and – call 'showContent' of my WebView to
displayByteArrayOutputStream stored within my database, otherwise I
load the the URL directly by calling 'loadUrl' of the WebView.

On back navigation, the method shouldOverrideUrlLoading is not called
or the URL is formated differently so I could not read the correct
data from the database.

If needed, I can provide a test-application that shows what I mean,
but I hope this will suffice.

Thanks for your help beforehand,

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

2009-07-27 Thread Pieter

We are developing an application that uses a GLSurfaceView to display
3D objects. We regularly get the Application Not Responding dialog.
Inspection of the dumped threads reveals something that looks
suspiciously like a deadlock. I have added the three thread dumps
involved below.

The first thread is the main application event thread, and it is
waiting on a join with a GLThread.

The second thread is a brand new GLThread that is waiting for a
semaphore lock presumably so it knows it has exclusive access to the
graphics hardware.

The third thread is probably a previous GLThread (the one the main
thread is waiting for to finish), that is waiting to be notified. The
strange thing is that the main application thread has just done a
mDone=true; notify(); prior to calling wait(), so the third thread
should have been awaken?

- Has anyone else run into this issue?
- Does anyone know of a workaround?

Any help would be appreciated!

DALVIK THREADS:
main prio=5 tid=3 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x40018e70
  | sysTid=713 nice=0 sched=0/0 handle=-1093387108
  at java.lang.Object.wait(Native Method)
  - waiting on 0x2976e0 (a java.lang.VMThread)
  at java.lang.Thread.join(Thread.java:1020)
  at java.lang.Thread.join(Thread.java:974)
  at android.opengl.GLSurfaceView$GLThread.requestExitAndWait
(GLSurfaceView.java:1056)
  at android.opengl.GLSurfaceView.onDetachedFromWindow
(GLSurfaceView.java:447)
  at android.view.View.dispatchDetachedFromWindow(View.java:5230)

GLThread prio=5 tid=23 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x43516a80
  | sysTid=1188 nice=0 sched=0/0 handle=3235208
  at java.lang.Object.wait(Native Method)
  - waiting on 0x2976e0 (a java.lang.VMThread)
  at java.lang.Thread.parkFor(Thread.java:1497)
  at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
  at sun.misc.Unsafe.park(Unsafe.java:319)
  at java.util.concurrent.locks.LockSupport.park(LockSupport.java:117)
  at
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt
(AbstractQueuedSynchronizer.java:680)
  at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly
(AbstractQueuedSynchronizer.java:836)
  at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly
(AbstractQueuedSynchronizer.java:1143)
  at java.util.concurrent.Semaphore.acquire(Semaphore.java:267)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:883)

GLThread prio=5 tid=19 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x435e4098
  | sysTid=1184 nice=0 sched=0/0 handle=4061600
  at java.lang.Object.wait(Native Method)
  - waiting on 0x1c74b8 (a android.opengl.GLSurfaceView$GLThread)
  at java.lang.Object.wait(Object.java:288)
  at android.opengl.GLSurfaceView$GLThread.guardedRun
(GLSurfaceView.java:925)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:887)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] strings.xml, styled string with params issue

2009-07-27 Thread skink

hi,

all i want to do is to define string in strings.xml like this:

hello b%s/b

the problem is that i cannot simply get such SpannedString since if i
have any rich tag like b/b i have to use Resources.getText(id) and
if i have any params like %s i have to use Resources.getString(id,
Object...)

but if i have them both i would have to use Resources.getText(id,
Object...) but, well, there is no such method...

i worked-around this by creating SpannableStringBuilder ssb, and for
each % param i call ssb.replace(int, int, CharSequence)

do you know any better solution for this?

thanks
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: DD command

2009-07-27 Thread Francesco Pace
Thanks Roman, but I have to execute DD command with my java application, Can
I execute DD (with busybox) from java?

2009/7/27 Roman roman.baumgaert...@t-mobile.com


 You can find dd within the busybox tool kit for Android.

 http://benno.id.au/blog/2007/11/14/android-busybox

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·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 26, 6:18 am, Unrealshade sche...@googlemail.com wrote:
  nah, sorry, don't know anything about this topic... i just hope i find
  dd for android. if i do i will write here how i did it, of course.
  best luck to you! =)
 
  On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote:
 
   I don't know methods for implementing this schema. I also think that
 there
   are even ways to make a logical copy of the FS.
   You know if can I perform a CHMOD on directories with Android NDK?
 
   Thanks :)
 
   2009/7/25 Unrealshade sche...@googlemail.com
 
i'm interested in that, too!
 
On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote:
 Hi guys,
 it's possible execute DD command from my java application?
 I need to copy internal flash memory in a sdcard.
 Can anyone help me?
 
 PS.Sorry for my poor english.
 
 
 


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

2009-07-27 Thread javame_android

Hi,

We have a project based on 3D Streaming. We have our own 3D studio,
its plugin are available for 3d Max and Maya. After creating model in
3ds Max or Maya, we need to export it into .q3z file structure.

Now, this .q3z file is placed on the server and by calling it from
Android Player this player should be able to decode that file and
render it. The decoding part is over and now I am facing some problem
in rendering. This file is compressed form of .q30 and .q3A files
which has obejct and animations related data. The .q3z file also
contains bmp files related to textures.

Now I would like to directly read the vertices from .q3o and .q3A file
and then render it. The contents of .Q3A file are as under :-

HEADER

{

VERSION 2

FILETYPEANIM

FRAMERATE   30.00

STARTTIME   0.00

STOPTIME3.33

ONEMETER0.025400

NBOBJECTS   4

NBCAMERAS   2

NBLIGHTS1

NBTEXTURES  1

NBMATERIAL  2

NBSOUND 0

BACKCOLOR   0.788235 0.788235 0.788235

AMBLIGHTCOLOR   0.043140 0.043140 0.043140

Q3XFROMQEDSTUDIO

}

CAMERA

{

NAMECamera01

3DINFO

{

POSITION0.297109 5.398581 19.830904

SCALE   1.00 1.00 1.00

ROTATIONQUAT0.001994 -0.986546 0.163028 -0.012068

ROTATIONEULER   18.766783 -178.598328 0.00

TARGET  Camera01.Target

}

FOCAL   1.50

FOV 45.00

FRONTPLANE  0.025400

BACKPLANE   43180.00

ROLL0.00

CURRENT 0

}

CAMERA

{

NAMECamera02

3DINFO

{

POSITION-5.703463 0.831104 -13.482747

SCALE   1.00 1.00 1.00

ROTATIONQUAT-0.008670 0.193409 0.001709 -0.981078

ROTATIONEULER   -1.012647 22.304474 0.00

TARGET  Camera02.Target

}

FOCAL   1.50

FOV 45.00

FRONTPLANE  0.025400

BACKPLANE   25.40

ROLL0.00

CURRENT 1

}

LIGHT

{

NAMEFDirect01

3DINFO

{

POSITION-3.209669 0.419913 -6.902487

SCALE   1.00 1.00 1.00

ROTATIONQUAT-0.694115 0.134922 0.134922 -0.694115

ROTATIONEULER   -90.00 22.02 0.00

}

TYPE2

COLOR   1.00 1.00 1.00 1.00

ENABLE  1

INTENSITY   0.80

UMBRA   91.00

PENUMBRA94.00

}

MATERIAL

{

NAMEMaterial #2

}

MATERIAL

{

NAMEMaterial chapeau

}

TEXTURE

{

NAMEMap #16

TYPE1

FILEmaps\redpoints.jpg

FORMAT  jpg

TILING  1.00 1.00 0.00

CLAMPING0.00 0.00 0.00

TSCALE  1.00 1.00 1.00

OFFSET  0.00 0.00 0.00

}

OBJECT

{

NAMEpied

3DINFO

{

POSITION-0.586434 -0.288189 -0.568229

SCALE   1.00 1.00 1.00

ROTATIONQUAT0.00 0.00 0.00 -1.00

ROTATIONEULER   0.00 0.00 0.00

NBCHILDREN  1

CHILDNAME   chapeau

NBVISUALS   1

VISUAL

{

NAMESubObj_pied_Material #2

}

}

}

OBJECT

{

NAMEchapeau

3DINFO

{

POSITION-0.100495 1.803027 -0.170842

SCALE   1.00 1.00 1.00

ROTATIONQUAT-0.472335 0.513736 0.507426 -0.505463

ROTATIONEULER   59.396091 87.078392 147.135559

NBVISUALS   1

VISUAL

{

NAMESubObj_chapeau_Material chapeau

}

}

}

OBJECT

{

NAMECamera01.Target

3DINFO

{

POSITION-0.149103 -0.799516 1.594912

SCALE   1.00 1.00 1.00

ROTATIONQUAT0.00 0.00 0.00 -1.00

ROTATIONEULER   0.00 0.00 0.00

}

}

OBJECT

{

NAMECamera02.Target

3DINFO

{

POSITION-1.694220 1.017828 -3.709377

SCALE   1.00 1.00 1.00

ROTATIONQUAT0.50 -0.50 -0.50 0.50

ROTATIONEULER   -90.00 90.00 0.00

}

}


And the contents of .Q3O file are as under :-

HEADER

{

VERSION 2

FILETYPEDATA

ONEMETER

[android-developers] External payments

2009-07-27 Thread Giulio

Hi,
does any of you know if it is possibile to
1) Deploy an application for free
2) Collect donations or payments for additional services outside the
Market (e.g. Paypal or Operator billing)?

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

2009-07-27 Thread Sydney

Toast.LENGTH_LONG and Toast.LENGTH_SHORT are not numbers of
milliseconds. If you print out the values you get:

Toast.LENGTH_LONG = 1
Toast.LENGTH_SHORT = 0

If you give a value other than 1 or 0, it seems to default to
LENGTH_SHORT.

Toast.LENGTH_LONG is ~4 seconds
Toast.LENGTH_SHORT  is ~2.5 seconds

Based on using a stopwatch and watching the emulator running on my
laptop.

On Jul 24, 3:13 pm, Scott scott.mikoly...@gmail.com wrote:
 Toast.LENGTH_LONG is only a constant number of milliseconds.  You can
 use any number of milliseconds if you like but there might be a
 maximum.

 Example:
 t.setDuration();

 Scott

 On Jul 23, 10:31 pm, Mohamed Amir mohamed.a...@gmail.com wrote:

  Thank you for all those who replied.

  But Toast is the only UI component I could find that appears over the
  incoming call dialog.  I need to show some information when an
  incoming call arrives.  This is why I am using the Toast.

  On Jul 24, 1:34 am, Dianne Hackborn hack...@android.com wrote:

   It sounds like you are abusing toasts.  How about just showing your own
   dialog that is set up to not get focus or be touchable?  You can use this
   background to make it look like a toast:

  http://developer.android.com/reference/android/R.drawable.html#toast_...

   And this animation style for the same fade effect:

  http://developer.android.com/reference/android/R.style.html#Animation...

   On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir 
   mohamed.a...@gmail.comwrote:

Is there a way to make the Toast last for longer time?

I have tried this code

                       Toast t = new Toast(this);
                       View v = View.inflate(this, R.toast_layout, 
null);
                       t.setView(v);
                       t.setDuration(Toast.LENGTH_LONG);
                       t.show();
                       t.show();
                       t.show();

By calling show() method more than once, I hoped this would give a
similar effect to lasting for longer time with some flickering, but I
didn't see any difference.
Is there some limit to the number of times that show() method can be
called on the same Toast? e.g. just once per toast instance and
further calling has no effect?

Any ideas to increase that duration?

Thank you.

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

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



[android-developers] Re: Android Toast Duration

2009-07-27 Thread Urs Grob

actually its 3.5 seconds and 2 seconds:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/NotificationManagerService.java#l74

-- Urs

On Mon, Jul 27, 2009 at 11:02 AM, Sydneysydney.p...@gmail.com wrote:

 Toast.LENGTH_LONG and Toast.LENGTH_SHORT are not numbers of
 milliseconds. If you print out the values you get:

 Toast.LENGTH_LONG = 1
 Toast.LENGTH_SHORT = 0

 If you give a value other than 1 or 0, it seems to default to
 LENGTH_SHORT.

 Toast.LENGTH_LONG is ~4 seconds
 Toast.LENGTH_SHORT  is ~2.5 seconds

 Based on using a stopwatch and watching the emulator running on my
 laptop.

 On Jul 24, 3:13 pm, Scott scott.mikoly...@gmail.com wrote:
 Toast.LENGTH_LONG is only a constant number of milliseconds.  You can
 use any number of milliseconds if you like but there might be a
 maximum.

 Example:
 t.setDuration();

 Scott

 On Jul 23, 10:31 pm, Mohamed Amir mohamed.a...@gmail.com wrote:

  Thank you for all those who replied.

  But Toast is the only UI component I could find that appears over the
  incoming call dialog.  I need to show some information when an
  incoming call arrives.  This is why I am using the Toast.

  On Jul 24, 1:34 am, Dianne Hackborn hack...@android.com wrote:

   It sounds like you are abusing toasts.  How about just showing your own
   dialog that is set up to not get focus or be touchable?  You can use this
   background to make it look like a toast:

  http://developer.android.com/reference/android/R.drawable.html#toast_...

   And this animation style for the same fade effect:

  http://developer.android.com/reference/android/R.style.html#Animation...

   On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir 
   mohamed.a...@gmail.comwrote:

Is there a way to make the Toast last for longer time?

I have tried this code

   Toast t = new Toast(this);
   View v = View.inflate(this, R.toast_layout, 
null);
   t.setView(v);
   t.setDuration(Toast.LENGTH_LONG);
   t.show();
   t.show();
   t.show();

By calling show() method more than once, I hoped this would give a
similar effect to lasting for longer time with some flickering, but I
didn't see any difference.
Is there some limit to the number of times that show() method can be
called on the same Toast? e.g. just once per toast instance and
further calling has no effect?

Any ideas to increase that duration?

Thank you.

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

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


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



[android-developers] Re: Android Toast Duration

2009-07-27 Thread skink

 Any ideas to increase that duration?

as Dianne said, use Dialog for that but if you really, really, really
want Toast for that there is a dirty, tricky workaround (hack) of
showing the same Toast in say two seconds after the first time Toast
was shown.

something like this:

postDelayed(showToastAgainRunnable, 2000)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 add the animated GIF file as an UI element to android application?

2009-07-27 Thread Desu Vinod Kumar
http://www.anddev.org/how_to_play_gif_file_in_android-t3492.html
go through these u can get some information..


On Wed, May 20, 2009 at 6:09 AM, mathiastck mathias...@gmail.com wrote:


 APIDemos has an example of such.  You can google this list for more
 info.

 On May 19, 5:51 am, elgoog cm1...@gmail.com wrote:
  Hi All,
 
 I want to add an animated GIF file as an UI element to the android
  UI application.  Note that the GIF should be shown as animation but
  not static image in the UI.
 
 Do you know how to do that?
 
 Thanks a lot!
 
  Mingsky
 



-- 
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09176147148

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK .

2009-07-27 Thread Arvish

Hello Guys,


I cannot  play any Giff in 1.5 SDK .  If somebody have any idea how to
do this, let me know.


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

2009-07-27 Thread Desu Vinod Kumar
http://www.anddev.org/how_to_play_gif_file_in_android-t3492.html

go through this.

On Fri, Apr 24, 2009 at 1:16 PM, nasam p.nami...@gmail.com wrote:


 please help me to resolve this error

 



-- 
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09176147148

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

2009-07-27 Thread Jeff Sharkey

Are you defining res/xml/searchable.xml, and then referencing it in
your manifest through a meta-data tag?  Here's a working example in
the Music app:

http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=res/xml/searchable.xml;hb=cupcake
http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=AndroidManifest.xml;hb=cupcake#l121

j


On Tue, Jul 21, 2009 at 1:47 AM,
guishenl...@gmail.comguishenl...@gmail.com wrote:

 Hi all,
    I want to add the search function in my application just as the
 example given in ApiDemos. But I can't find out how the example add
 the search bar in the top of the view. Could anyone tell me how to add
 a search bar to my application by some code?
    Thank you in advance!

 reference code
 SearchInvoke.java:
 /*
  * Copyright (C) 2008 The Android Open Source Project
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */

 package com.example.android.apis.app;

 import com.example.android.apis.R;

 import android.app.Activity;
 import android.app.AlertDialog;
 import android.app.SearchManager;
 import android.os.Bundle;
 import android.view.Menu;
 import android.view.MenuItem;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.Spinner;
 import android.widget.AdapterView.OnItemSelectedListener;

 public class SearchInvoke extends Activity
 {
        // UI elements
    Button mStartSearch;
    Spinner mMenuMode;
    EditText mQueryPrefill;
    EditText mQueryAppData;

        // Menu mode spinner choices
        // This list must match the list found in samples/ApiDemos/res/
 values/arrays.xml
    final static int MENUMODE_SEARCH_KEY = 0;
    final static int MENUMODE_MENU_ITEM = 1;
    final static int MENUMODE_TYPE_TO_SEARCH = 2;
    final static int MENUMODE_DISABLED = 3;

    /**
     * Called with the activity is first created.
     *
     *  We aren't doing anything special in this implementation, other
 than
     *  the usual activity setup code.
     */
   �...@override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Inflate our UI from its XML layout description.
        setContentView(R.layout.search_invoke);

        // Get display items for later interaction
        mStartSearch = (Button) findViewById(R.id.btn_start_search);
        mMenuMode = (Spinner) findViewById(R.id.spinner_menu_mode);
        mQueryPrefill = (EditText) findViewById
 (R.id.txt_query_prefill);
        mQueryAppData = (EditText) findViewById
 (R.id.txt_query_appdata);

        // Populate items
        ArrayAdapterCharSequence adapter =
 ArrayAdapter.createFromResource(
                            this, R.array.search_menuModes,
 android.R.layout.simple_spinner_item);
        adapter.setDropDownViewResource
 (android.R.layout.simple_spinner_dropdown_item);
        mMenuMode.setAdapter(adapter);

        // Create listener for the menu mode dropdown.  We use this to
 demonstrate control
        // of the default keys handler in every Activity.  More
 typically, you will simply set
        // the default key mode in your activity's onCreate() handler.
        mMenuMode.setOnItemSelectedListener(
            new OnItemSelectedListener() {
                public void onItemSelected(
                        AdapterView? parent, View view, int
 position, long id) {
                    if (position == MENUMODE_TYPE_TO_SEARCH) {
                        setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
                    } else {
                        setDefaultKeyMode(DEFAULT_KEYS_DISABLE);
                    }
                }

                public void onNothingSelected(AdapterView? parent) {
                    setDefaultKeyMode(DEFAULT_KEYS_DISABLE);
                }
            });

        // Attach actions to buttons
        mStartSearch.setOnClickListener(
            new OnClickListener() {
                public void onClick(View v) {
                    onSearchRequested();
                }
            });
    }

    /**
     * Called when your activity's options menu needs to be updated.
     */
   �...@override
    public boolean onPrepareOptionsMenu(Menu menu) {
        super.onPrepareOptionsMenu(menu);
        MenuItem item;

            // first, get rid of our menus (if any)
        

[android-developers] Re: How can i show email notification?

2009-07-27 Thread android.vinny

HI
Thanks for response .
from where can i get that new mail is getting not notifivation how to
show ,.how can i notify that new mail .


On Jul 24, 10:47 pm, Yusuf T. Mobile yusuf.s...@t-mobile.com
wrote:
 The Android SDK has a feature for 
 notification:http://developer.android.com/reference/android/app/Notification.html

 That would not only make your job easier, but would make the
 notification consistent with the standard Android UI.

 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.

 P.S.: I'm happy to assist you with notification, but you're going to
 have to do your own punctuation.

 On Jul 23, 10:26 pm, android.vinny vinny.s...@gmail.com wrote:

  Hi

  How can i show the email notification when a ne w mail i get to my
  mail i wan tot show the image when a new main arrived to my inbox.
  ]
  can any body give me suggestion regarding 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] referencing projects in eclipse

2009-07-27 Thread Bart van Wissen

I'm working on two projects. One is essentially a library, and the
other is an application using that library.
Now from the application project, I want to use the library's classes,
so I added that project to the required projects under java build
path.
It seems to compile fine, but at runtime, I get this error:

07-27 11:26:57.037: ERROR/dalvikvm(741): Could not find class
'interdroid.contextframework.ContextManager', referenced from method
com.bartvanwissen.contextframeworktest.MainActivity.onCreate

Apparently, the library project's classes are not added to the apk
file. How can I make sure they are included? Is this at all possible?

Since I'm working on both projects at the same time, I would like to
prevent having to create a jar file every time I want to test
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] video screen disappeared after launch new task

2009-07-27 Thread sleith

hi,
i tried to play video using media player, and it run ok like at the
example at api demos.
but the problem is, when i trigger something that launch a new task
(for example click button that will dial number) and then back to it's
task, the video screen is gone, only sounds is playing.
i noticed that the OnSurfaceChange is called, is this the problem? how
to solve it?
thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] About SurfaceView

2009-07-27 Thread Bishesh Manandhar
1)Which is better for developing a game --a)Using XML layouts
b)Using Custom
layouts with Surface view

2) while making a custom view using Surface view... do we need to have a
secondary thread to implement the surfaceholder.callback()..

my code below does not  show the activity in grey background as i have
coded... do i need to use the unlockcanvas and all ,,but i havent used the
secondary thread

setContentView(new PlayPanel(this));

class PlayPanel extends SurfaceView implements SurfaceHolder.Callback
{

SurfaceHolder   mHolder;
private booleanmHasSurface;
public PlayPanel(Context context)
{
super(context);

  mHolder = getHolder();
mHolder.addCallback(this);
mHasSurface = false;
}
@Override
public void onDraw(Canvas canvas)
{
canvas.drawColor(Color.LTGRAY);  // *GREYY BACKGROUND*
drawHeader(canvas);
}

@Override
public void surfaceCreated(SurfaceHolder holder) {
// TODO Auto-generated method stub
mHasSurface = true;
//return true;
}
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
// TODO Auto-generated method stub
mHasSurface = false;
}

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

2009-07-27 Thread David Turner
It's hard to know without more details about what operations your threads
are doing, and in what order.

On Mon, Jul 27, 2009 at 10:10 AM, Pieter s...@gamesquare.nl wrote:


 We are developing an application that uses a GLSurfaceView to display
 3D objects. We regularly get the Application Not Responding dialog.
 Inspection of the dumped threads reveals something that looks
 suspiciously like a deadlock. I have added the three thread dumps
 involved below.

 The first thread is the main application event thread, and it is
 waiting on a join with a GLThread.

 The second thread is a brand new GLThread that is waiting for a
 semaphore lock presumably so it knows it has exclusive access to the
 graphics hardware.

 The third thread is probably a previous GLThread (the one the main
 thread is waiting for to finish), that is waiting to be notified. The
 strange thing is that the main application thread has just done a
 mDone=true; notify(); prior to calling wait(), so the third thread
 should have been awaken?

 - Has anyone else run into this issue?
 - Does anyone know of a workaround?

 Any help would be appreciated!

 DALVIK THREADS:
 main prio=5 tid=3 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x40018e70
  | sysTid=713 nice=0 sched=0/0 handle=-1093387108
  at java.lang.Object.wait(Native Method)
  - waiting on 0x2976e0 (a java.lang.VMThread)
  at java.lang.Thread.join(Thread.java:1020)
  at java.lang.Thread.join(Thread.java:974)
  at android.opengl.GLSurfaceView$GLThread.requestExitAndWait
 (GLSurfaceView.java:1056)
  at android.opengl.GLSurfaceView.onDetachedFromWindow
 (GLSurfaceView.java:447)
  at android.view.View.dispatchDetachedFromWindow(View.java:5230)

 GLThread prio=5 tid=23 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x43516a80
  | sysTid=1188 nice=0 sched=0/0 handle=3235208
  at java.lang.Object.wait(Native Method)
  - waiting on 0x2976e0 (a java.lang.VMThread)
  at java.lang.Thread.parkFor(Thread.java:1497)
  at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
  at sun.misc.Unsafe.park(Unsafe.java:319)
  at java.util.concurrent.locks.LockSupport.park(LockSupport.java:117)
  at
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt
 (AbstractQueuedSynchronizer.java:680)
  at

 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly
 (AbstractQueuedSynchronizer.java:836)
  at

 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly
 (AbstractQueuedSynchronizer.java:1143)
  at java.util.concurrent.Semaphore.acquire(Semaphore.java:267)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:883)

 GLThread prio=5 tid=19 WAIT
  | group=main sCount=1 dsCount=0 s=0 obj=0x435e4098
  | sysTid=1184 nice=0 sched=0/0 handle=4061600
  at java.lang.Object.wait(Native Method)
  - waiting on 0x1c74b8 (a android.opengl.GLSurfaceView$GLThread)
  at java.lang.Object.wait(Object.java:288)
  at android.opengl.GLSurfaceView$GLThread.guardedRun
 (GLSurfaceView.java:925)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:887)

 


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

2009-07-27 Thread Jeff Sharkey

It's actually really easy, and you don't need to use animations.  I
did something like this recently by using a wrapper layout that
adjusts the Canvas and any MotionEvents.  (You could also use this
approach rotate the entire layout to any arbitrary angle.)

I think romainguy told me to use Canvas.concat(mForward) instead of
setMatrix(), but I haven't updated the code in awhile.



private static class FlipLayout extends FrameLayout {
private Matrix mForward = new Matrix();
private Matrix mReverse = new Matrix();
private float[] mTemp = new float[2];

public FlipLayout(Context context) {
super(context);

mForward.postRotate(180);
mForward.invert(mReverse);
}

@Override
protected void dispatchDraw(Canvas canvas) {
canvas.setMatrix(mForward);
super.dispatchDraw(canvas);
}

@Override
public boolean dispatchTouchEvent(MotionEvent event) {
final float[] temp = mTemp;
temp[0] = event.getX();
temp[1] = event.getY();

mReverse.mapPoints(temp);

event.setLocation(temp[0], temp[1]);
return super.dispatchTouchEvent(event);
}
}




On Fri, Jul 24, 2009 at 10:53 PM, Josh Hoffmankeshis...@gmail.com wrote:

 I posted earlier today on this topic, but I'm re-posting as I haven't
 been able to locate my post via search. I apologize if this is indeed
 a double-post, but it seems something went wrong with the original.

 I've been trying to find a means of rotating a view such that it is
 flipped upside-down and stays that way. I found the Rotation Animation
 method, but I have been unable to find a means of keeping the view
 rotated. Repeating the animation doesn't suit my purposes, and in fact
 I don't want an animation at all if possible. What I would like is
 something akin to a transformation, except to be used on a TextView or
 a LinearLayout.

 I have considering overriding methods to accomplish this task by
 slightly modifying the animation code, but I'm not sure how extensive
 the work for this would be. Additionally, I'm not sure where to find
 the source for those methods.

 If anyone could recommend a means of accomplishing this task, whether
 it be by an override or perhaps something simple that I am missing, I
 would appreciate it very much. Thanks!

 




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

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



[android-developers] Re: Flipping / Rotating TextView (or layout) upside-down

2009-07-27 Thread Jeff Sharkey

Ugh double-post.  I just responded in the other thread with an
alternative approach that doesn't require animations.

j

On Sun, Jul 26, 2009 at 3:51 PM, Romain Guyromain...@google.com wrote:

 All you have to do is set the fillAfter property of the animation to true.

 On Fri, Jul 24, 2009 at 11:27 AM, Josh Hoffmankeshis...@gmail.com wrote:

 Hello, I'm trying to find a way to rotate a View, or (more
 conveniently) an entire layout, upside down and have it stay that way.
 I found the rotation and animation classes in the SDK, and these come
 close to what I want, but at the end of the animation I want my Layout
 to stay rotated; repeating the animation or just flipping back right-
 side-up doesn't help me with my app unfortunately.

 The only thing I can think of so far would be to find the source code
 for the rotate class, and override it such that the ...and then flip
 it back around to be right-side-up code never happens. I'm not sure
 exactly where I'd find the original rotate code for reference if I
 were to do something that extensive however.

 I've found references online to the full android source - is that
 basically what I'd be looking at downloading to be able to attempt
 something like this? Am I missing a simple option on the rotation that
 would let it just stay put after I rotate it? Any help would be very
 much appreciated! Thank you!

 




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

 




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

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



[android-developers] Re: External payments

2009-07-27 Thread Mark Murphy

Giulio wrote:
 Hi,
 does any of you know if it is possibile to
 1) Deploy an application for free
 2) Collect donations or payments for additional services outside the
 Market (e.g. Paypal or Operator billing)?

So long as you do not distribute the application through the Android
Market, that should be just fine.

If, on the other hand, Deploy an application assumed distribution
through the Android Market, what you describe would seem to be in
violation of the Android Market Terms and Conditions...but you should
seek the advice of qualified legal counsel on that point.

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

_Android Programming Tutorials_ Version 1.0 Available!

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



[android-developers] regarding notify playing sound animation

2009-07-27 Thread android.vinny

Hi

I need to notify when the new email get to the inbox how can i get the
notification fromt he inbuilt email client without writing the email
client prog.
i need to show the animation on the scree not in the layout it
should shouls the animation on main screen or an screen  what we
opened presently..
can any body guide me regarding this..

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



[android-developers] how do detect HSPA network ?

2009-07-27 Thread Tushar

Hi,
My application needs to detect network connection type.  When I run my
application of  developer device with 1.1  , it  is able to detect
network as UMTS .  But on  in HTC Magic, it's not able to detect UMTS
network.  On main screen it shows network as H which I guess means
HSPA.
As I understand HSPA is something called as 3.5 G.

I'm using TelephonyManager.NETWORK_TYPE_UMTS  constant for comparing
network.

Any hints ?


Regards,

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

2009-07-27 Thread Chih-Wei

Recently the build system will check if java version is 1.5, and stop
if the version mismatch. I'm unhappy with such unnecessary checking.

My system is Fedora 11, I can use its default java compiler, openjdk
1.6, to compile Android without problem. In fact I just removed the
unnecessary checking, and it compiled fine. I can run the emulator
well. I didn't notice any abnormality yet.

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

2009-07-27 Thread Giulio

I was referring to applications deployed within the market, and you
are right it is probably borderline, my understanding of the TC is
that
1) You cannot ask for money for the application itself
2) You can ask for money for other applications which you can sell
through your application

But could we ask for donations?

I knew of an iPhone application, iMafia, which sold other applications
with Paypal within the application itself... and it would seem strange
to me that Google is more restrictive than Apple!

Apart from legal restrictions, does anyone know if its possible to
implement external payments through operators billing?

Bye,
G.

On Jul 27, 11:36 am, Mark Murphy mmur...@commonsware.com wrote:
 Giulio wrote:
  Hi,
  does any of you know if it is possibile to
  1) Deploy an application for free
  2) Collect donations or payments for additional services outside the
  Market (e.g. Paypal or Operator billing)?

 So long as you do not distribute the application through the Android
 Market, that should be just fine.

 If, on the other hand, Deploy an application assumed distribution
 through the Android Market, what you describe would seem to be in
 violation of the Android Market Terms and Conditions...but you should
 seek the advice of qualified legal counsel on that point.

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

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



[android-developers] Re: Why force java 1.5?

2009-07-27 Thread Mark Murphy

Chih-Wei wrote:
 Recently the build system will check if java version is 1.5, and stop
 if the version mismatch.

No, it doesn't.

It probably checks for the Sun compiler, since the system requirements
say that is required:

http://developer.android.com/sdk/1.5_r3/requirements.html

But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have
for some months now, on Ubuntu. It is definitely not limiting you to
Java 1.5.

It may be limiting you from using non-standard JDKs -- I would guess
that is a matter of reducing testing and support costs. So long as you
(and perhaps other like-minded folk) are willing to take on the burden
of testing and support for OpenJDK, there is nothing really stopping you
from trying to use it.

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.0 Available!

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



[android-developers] Re: How do i run the emulator?

2009-07-27 Thread Fred Grott(shareme)

Info is here:

http://developer.android.com/guide/developing/tools/emulator.html

Fred Grott
http://mobilebytes.wordpress.com

On Jul 24, 6:03 pm, popetorak popeto...@gmail.com wrote:
 How do i run the emulator?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 force java 1.5?

2009-07-27 Thread Fred Grott(shareme)

Given the use of Harmony java classes it may be  that harmony targeted
their stuff for sun java 1.5 compliance..but that is just a guess



On Jul 27, 6:59 am, Mark Murphy mmur...@commonsware.com wrote:
 Chih-Wei wrote:
  Recently the build system will check if java version is 1.5, and stop
  if the version mismatch.

 No, it doesn't.

 It probably checks for the Sun compiler, since the system requirements
 say that is required:

 http://developer.android.com/sdk/1.5_r3/requirements.html

 But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have
 for some months now, on Ubuntu. It is definitely not limiting you to
 Java 1.5.

 It may be limiting you from using non-standard JDKs -- I would guess
 that is a matter of reducing testing and support costs. So long as you
 (and perhaps other like-minded folk) are willing to take on the burden
 of testing and support for OpenJDK, there is nothing really stopping you
 from trying to use it.

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

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How can i catch the notification from in built mail in mobile?

2009-07-27 Thread android.vinny

Hi

i need to cacth the the in built mail in mobile when a new mail
arrived to our mobile i need to show some message how can i cacth the
notification
 please help me regarding 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: Why force java 1.5?

2009-07-27 Thread Fred Grott(shareme)

I seem to made a good Guess..Apache Harmony targets sun java 5
compliance..

Fred Grott
http://mobilebytes.wordpress.com



On Jul 27, 6:59 am, Mark Murphy mmur...@commonsware.com wrote:
 Chih-Wei wrote:
  Recently the build system will check if java version is 1.5, and stop
  if the version mismatch.

 No, it doesn't.

 It probably checks for the Sun compiler, since the system requirements
 say that is required:

 http://developer.android.com/sdk/1.5_r3/requirements.html

 But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have
 for some months now, on Ubuntu. It is definitely not limiting you to
 Java 1.5.

 It may be limiting you from using non-standard JDKs -- I would guess
 that is a matter of reducing testing and support costs. So long as you
 (and perhaps other like-minded folk) are willing to take on the burden
 of testing and support for OpenJDK, there is nothing really stopping you
 from trying to use it.

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

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] About Android Email architecture ??

2009-07-27 Thread Chris

Can anyone suggest any link or any other help, regarding the android
email architecture.
Any sort of help will be most welcome.

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

2009-07-27 Thread Fred Grott(shareme)

I am not sure if there is an easy solution

You would have to modify the build script that Android SDK uses
through Eclipse ADt to comle your library proejct first for input into
yoru main project's compile task..

path to build script ADt plugin uses:

sdk-install/platforms/android-1.5/templates/andorid_rules.xml  is the
hideen targets that you want ot modify

and main build script that you see upon project create is:

sdk-install/tools/lib/build.template
change tag
setup/

to import='false and than inport the andorid_rules.xml stuff into
your main build script copying from the build.tempalte aove than you
are redy to modify the compile target to compile the other lib project
first than yoru project using the lib  project as an input..

Fred Grott
http://mobilebytes.wordpress.com

On Jul 27, 4:38 am, Bart van Wissen bartvanwis...@gmail.com wrote:
 I'm working on two projects. One is essentially a library, and the
 other is an application using that library.
 Now from the application project, I want to use the library's classes,
 so I added that project to the required projects under java build
 path.
 It seems to compile fine, but at runtime, I get this error:

 07-27 11:26:57.037: ERROR/dalvikvm(741): Could not find class
 'interdroid.contextframework.ContextManager', referenced from method
 com.bartvanwissen.contextframeworktest.MainActivity.onCreate

 Apparently, the library project's classes are not added to the apk
 file. How can I make sure they are included? Is this at all possible?

 Since I'm working on both projects at the same time, I would like to
 prevent having to create a jar file every time I want to test
 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] Debugging a service

2009-07-27 Thread Ne0

Hi,

I have written activity that starts a service that can be accessed
remotely (similar to the Remote service API sample), it compiles and
appears to run fine. The service has a LoctaionManager and a
TelephonyManager that detect GSM and GPS location changes and should
send a string back to any process that is bound to it.

I am having trouble getting the service to output debug info using
Log.d(TAG, OUTPUT) so i can debug some issue's i'm having. Can anyone
tell me how i should go about getting a service to output some text to
the logcat file? or any other pointers on debugging it?

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

2009-07-27 Thread Fred Grott(shareme)

whoops, last step..

once you modify everything..in Eclipse IDE  change your java builder
to point to that modified build script to use as your java builder..

On Jul 27, 4:38 am, Bart van Wissen bartvanwis...@gmail.com wrote:
 I'm working on two projects. One is essentially a library, and the
 other is an application using that library.
 Now from the application project, I want to use the library's classes,
 so I added that project to the required projects under java build
 path.
 It seems to compile fine, but at runtime, I get this error:

 07-27 11:26:57.037: ERROR/dalvikvm(741): Could not find class
 'interdroid.contextframework.ContextManager', referenced from method
 com.bartvanwissen.contextframeworktest.MainActivity.onCreate

 Apparently, the library project's classes are not added to the apk
 file. How can I make sure they are included? Is this at all possible?

 Since I'm working on both projects at the same time, I would like to
 prevent having to create a jar file every time I want to test
 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: Debugging a service

2009-07-27 Thread Mark Murphy

Ne0 wrote:
 I am having trouble getting the service to output debug info using
 Log.d(TAG, OUTPUT) so i can debug some issue's i'm having. Can anyone
 tell me how i should go about getting a service to output some text to
 the logcat file? or any other pointers on debugging it?

Services can log just fine, last I checked.

However, debug-level logging might not be enabled by default. Check out
the documentation for the isLoggable() method in Log:

http://developer.android.com/reference/android/util/Log.html

For temporary what's going on in my service logging, I tend to use
Log.w() just to avoid such problems. I am sure this runs counter to
convention, but since I don't leave these log statements in the code
very long (and not in anything checked into a repository), I'm happy.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-07-27 Thread Fred Grott(shareme)

You should see my posts about Customizing the SDK as I cover that
subject :)

In fact maybe it should be covered somewhere ..would make nice ebook
chapter on android programming

Fred Grott
http://mobielbytes.wordpress.com

On Jul 26, 5:04 am, skink psk...@gmail.com wrote:
 On Jul 26, 12:50 am, Mark Murphy mmur...@commonsware.com wrote:



  I did once, but it was my own dumb fault. I got tripped up in Java
  generics, and was redefining String to be the symbolic name of a generic
  type, so all my references to what should have been java.lang.String
  were failing if I didn't fully qualify them. Fixing the generics cleared
  up the issue.

  Overall, I've had annoyances with the Ant scripts starting with 1.5,
  where I have to nuke the gen/ and bin/ directories from time to time,
  mostly when I add new resources. You might try that and see if it helps.

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

  Need help for your Android OSS project?http://wiki.andmob.org/hado

 thanks Mark for your reply

 in my case the problem is not related to generics

 i tried to simplify my Foo class by removing step by step stuff in it
 and it turned out that i had inner class inside Foo that coused
 problems. after putting that inner class outside everything works ok

 and yes ant support in android is quite far from perfect

 thanks
 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: HTC Hero has multi-touch. SDK support?

2009-07-27 Thread CraigsRace

Thanks Romain.  Sad news, but at least it is news.  Apologies for
spreading an incorrect rumour.

Please keep us posted on any multi-touch developments.

Cheers.

On Jul 26, 9:26 am, Romain Guy romain...@google.com wrote:
 Donut is NOT Android 2.0 and there's no multi-touch support in Donut.

 On Sat, Jul 25, 2009 at 3:55 PM, CraigsRacecraig...@gmail.com wrote:

  FYI:  The next SDK release (2.0 Donut) is rumoured to include multi-
  touch support.  Woohoo!  http://phandroid.com/2009/07/25/morning-donuts/

 --
 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: mysterious ant build error

2009-07-27 Thread Mark Murphy

Fred Grott(shareme) wrote:
 You should see my posts about Customizing the SDK as I cover that
 subject :)
 
 In fact maybe it should be covered somewhere ..would make nice ebook
 chapter on android programming

Yeah, if there were only somebody out there who was publishing ebooks on
Android development...that'd be sweet...

;-)

I have this sort of stuff on my roster of chapters to add to the
Advanced Android book. However, there are 16 other chapters ahead of it
in my priority queue. There will be at least one major Android release
before I get through of all of those, and that will have new features
(one hopes), so figure there's perhaps 20+ chapters before I turn my
attention to Ant and AndCooper and EMMA and Checkstyle and all the
topics you've been posting (and related areas).

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

Android App Developer Training: http://commonsware.com/training.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] Starting service in separate thread

2009-07-27 Thread Lutz Schönemann

Hi,

i have a little frontend showing a list of items that it will retrieve  
from a service. I want that service to be started in a separate thread  
so the UI is still responding to user interaction while waiting for  
that service to call a callback method.

What is the best way to start the service in a detached thread? My  
current solution is:

new Thread() {
@Override
public void run() {
// start Service
Intent intent = new Intent(MyServiceAction);
try {
startService(intent);
}
catch(Exception e) {
Log.e(TAG, Unable to start Service:  + 
e.getMessage());
}
}
}.start();

It seems that the service is still in the same thread as my UI. The  
debugger doesn't show an additional thread. What am I doing wrong?

Thanks for help
Lutz

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



[android-developers] A problem for arm-eabi-gdb to load sharedlibrary

2009-07-27 Thread Jill Zhou

Dear all,

It seems that Android prebuilt arm-eabi-gdb will have problem to load
some shared library. arm-eabi-gdb will load the shared library to
wrong address, such as 0xfff?. Then we can't set  trace the
breakpoints of these libraries.

We got the warning message like these:
.dynamic section for libhardware.so is not at the expected address
difference appears to be caused by prelink, adjusting expectations

After review the code of android toolchain, I remove some code in
android-toolchain-20081019/gdb-6.6/gdb/solib-svr4.c

  /* If the changes match the alignment requirements, we
 assume we're using a core file that was generated by the
 same binary, just prelinked with a different base offset.
 If it doesn't match, we may have a different binary, the
 same binary with the dynamic table loaded at an unrelated
 location, or anything, really.  To avoid regressions,
 don't adjust the base offset in the latter case, although
 odds are that, if things really changed, debugging won't
 quite work.  */
#if 0
if ((l_addr  align) == 0  ((dynaddr - l_dynaddr)  align) == 0)
{
l_addr = l_dynaddr - dynaddr;
warning (_(.dynamic section for \%s\ 
is not at the expected address), so-so_name);
warning (_(difference appears to be caused by prelink, 
adjusting expectations));
}
else
#endif
 warning (_(.dynamic section for \%s\ 
 is not at the expected address 
 (wrong library or version mismatch?)), so-so_name);

Then it can load sharedlibrary normally. But I'm not sure if it's
right solution to resolve this issue. So post these message. Anyone
can help?

Regards,
Jill
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] userdata-qemu.img Help

2009-07-27 Thread ashkash

Is it possible to extract the files and data out of userdata-qemu.img
from the emulator? I have tried it with the unyaffs tool, but it does
not seem to work. 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: Starting service in separate thread

2009-07-27 Thread Mark Murphy

Lutz Schönemann wrote:
 Hi,
 
 i have a little frontend showing a list of items that it will retrieve  
 from a service. I want that service to be started in a separate thread  
 so the UI is still responding to user interaction while waiting for  
 that service to call a callback method.
 
 What is the best way to start the service in a detached thread? My  
 current solution is:
 
 new Thread() {
   @Override
   public void run() {
   // start Service
   Intent intent = new Intent(MyServiceAction);
   try {
   startService(intent);
   }
   catch(Exception e) {
   Log.e(TAG, Unable to start Service:  + 
 e.getMessage());
   }
   }
 }.start();
 
 It seems that the service is still in the same thread as my UI. The  
 debugger doesn't show an additional thread. What am I doing wrong?

You don't want the service to be started in a background thread, because
there is no such concept. All Android components share a common primary
(UI) thread.

Instead, have the service start its own background thread and do its
work there.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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

2009-07-27 Thread Fred Grott(shareme)

If I could find some recent Andorid Dev contracts I could probably put
out a rough draft as a Knol article since my developing AndCooper
Build tool has sharpened by ANT/Android Sdk knowledge..

For example, if you develop the ANt build scripts one way you can have
the script be flexible enough to support stand by build of a non apk
Android library or can have it compile as an input for another Android
Project as a two step incremental compile for those who develop the
lib at he saem tiem the first project using it..

Dev branch of AndCooper still not on GoogleCode hosting yet..polishing
up today to get it there..But, with the full re-write I did about a
week ago I am finding every user case that I see on the dev lists
passes even the tough ones such as a main project and lib project as
one incremental build





On Jul 27, 8:30 am, Mark Murphy mmur...@commonsware.com wrote:
 Fred Grott(shareme) wrote:
  You should see my posts about Customizing the SDK as I cover that
  subject :)

  In fact maybe it should be covered somewhere ..would make nice ebook
  chapter on android programming

 Yeah, if there were only somebody out there who was publishing ebooks on
 Android development...that'd be sweet...

 ;-)

 I have this sort of stuff on my roster of chapters to add to the
 Advanced Android book. However, there are 16 other chapters ahead of it
 in my priority queue. There will be at least one major Android release
 before I get through of all of those, and that will have new features
 (one hopes), so figure there's perhaps 20+ chapters before I turn my
 attention to Ant and AndCooper and EMMA and Checkstyle and all the
 topics you've been posting (and related areas).

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

 Android App Developer Training:http://commonsware.com/training.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: File Browser Integration

2009-07-27 Thread johnny

Thank you very much!!

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

2009-07-27 Thread Chris

Hi,

I have two SurfaceViews in one FrameLayout. So they are stacked upon
another. What I want to achieve is to use the lower SurfaceView as
kind of background that is changing heavily, and the upper SurfaceView
as annotation overlay. So the upper SurfaceView has a (small) number
of quickly changing elements that I will draw.

Somehow, I can always only see one of the SurfaceViews, depending on
which one is top. I thought that SurfaceViews are always transparent,
but it seems I am missing something here.

Any thoughts on why I can't overlay two SurfaceViews?

Thanks,
Chris

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

2009-07-27 Thread Flavio Montenegro Filho


I'm sorry, but I did not understand the link. Have some topic
especially within the link?
Thank you and I'm waiting for a answer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Starting service in separate thread

2009-07-27 Thread Lutz Schönemann

How should I design a method that needs a few seconds to return a  
result? Even if I put the call to that method inside a separate thread  
it will not return faster.

Am 27.07.2009 um 16:07 schrieb Mark Murphy:


 Lutz Schönemann wrote:
 Hi,

 i have a little frontend showing a list of items that it will  
 retrieve
 from a service. I want that service to be started in a separate  
 thread
 so the UI is still responding to user interaction while waiting for
 that service to call a callback method.

 What is the best way to start the service in a detached thread? My
 current solution is:

 new Thread() {
  @Override
  public void run() {
  // start Service
  Intent intent = new Intent(MyServiceAction);
  try {
  startService(intent);
  }
  catch(Exception e) {
  Log.e(TAG, Unable to start Service:  + 
 e.getMessage());
  }
  }
 }.start();

 It seems that the service is still in the same thread as my UI. The
 debugger doesn't show an additional thread. What am I doing wrong?

 You don't want the service to be started in a background thread,  
 because
 there is no such concept. All Android components share a common  
 primary
 (UI) thread.

 Instead, have the service start its own background thread and do its
 work there.

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

 Need help for your Android OSS project? http://wiki.andmob.org/hado

 



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

2009-07-27 Thread Mark Murphy

Lutz Schönemann wrote:
 How should I design a method that needs a few seconds to return a  
 result? Even if I put the call to that method inside a separate thread  
 it will not return faster.

That is difficult for me to answer in the abstract.

The goal behind the separate thread is so you can release the UI thread
back to Android, so it can render your GUI and such. It may not take any
less time, but time on background threads is more flexible than time on
the UI thread.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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

2009-07-27 Thread Mathieu Plourde

Hello devs,

I'm using Intrumentation to invoke keystrokes and mouse events, but I
have a problem when trying to do so on the virtual keyboard. If the
virtual keyboard pops up and I want to send a mouse event to click on
a character of the keyboard, I get that error/warning in the console:

W/WindowManager(  586): Permission denied: injecting pointer event
from pid 1580 uid 10020 to window Window{437522d0 InputMethod
paused=false} owned by uid 10003

Is there a way to make it work? I know I can't do instrumentation on
native activites, does the native keyboard acts like a native
activity?

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] Is there a way to start updating all apps in a row ?

2009-07-27 Thread e-satis

For now, updating Android apps is a pain : you must go to the android
market my download section (and not in the Manage Application
system setting section, which is very counter intuitive), then scroll
to each app needing an update, clic on it, run the update, and go
back, then clic on the next one...

I know that installing an app requires permissions, you can't do it
programmatically without asking the user the permission. But is there
a way to make a batch processing, like asking for the credentials
once, and use it to update all the apps in a row.

It would be pretty awesome to be able to code an Update manager,
running in backgroup and notifying the user for updates so he can keep
up regularly and quickly.

Maybe it's in plan for Donut ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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't find file with OpenFile

2009-07-27 Thread Lorenz

Hi,
I've a problem with method openFileOutput(), I can't find the file or
the directory where the file is stored..the code is:
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import java.io.*;
import java.net.*;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class C extends Activity {
/** Called when the activity is first created. */
private PrintWriter savedpoint;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try{

savedpoint = new PrintWriter(openFileOutput
(Data.dat,MODE_APPEND));


for(int i=0;i20;i++)
{
savedpoint.println(-78.443221+i+ +120.344423+i);

}

}catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}

and the manifest is:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=prova.client
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.C
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest

Any idea?where can I find the directory where is stored the file?
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: Starting service in separate thread

2009-07-27 Thread Lutz Schönemann

So, do you think that it is a good idea to design the UI that it  
wait's for callbacks from the service?

Am 27.07.2009 um 16:44 schrieb Mark Murphy:


 Lutz Schönemann wrote:
 How should I design a method that needs a few seconds to return a
 result? Even if I put the call to that method inside a separate  
 thread
 it will not return faster.

 That is difficult for me to answer in the abstract.

 The goal behind the separate thread is so you can release the UI  
 thread
 back to Android, so it can render your GUI and such. It may not take  
 any
 less time, but time on background threads is more flexible than time  
 on
 the UI thread.

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

 Need help for your Android OSS project? http://wiki.andmob.org/hado

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Support for German / Polish Characters

2009-07-27 Thread Nick

I have an RSS Reader widget and I cannot seem to figure out how to set
the encoding of the RemoteViews text view to unicode so that it can
support German / Pol Characters pulled from the web. How should I
implement 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] multiple selections in a gridview

2009-07-27 Thread michael m

I'm trying to use the GridView class to select multiple images from a
list.  I've tried a number of things but haven't been able to get any
results yet.  I'd be much appreciated if anyone who knows how to do
this could give me a couple of hints.  Or let me know if it can't be
done with the GridView class and I have to roll my own.

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

2009-07-27 Thread Mark Murphy

Lutz Schönemann wrote:
 So, do you think that it is a good idea to design the UI that it  
 wait's for callbacks from the service?

I would use the expression responds to callbacks, not waits for
callbacks, as waits for implies blocking the UI thread.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-07-27 Thread Charlie Collins

Files created with Context.openFileOutput are in the context they
were created in. 99% of the time you don't really care what that
physical location is, you just retrieve the same file using the name
with Context.openFileInput.

If memory serves the actual physical location is /data/data/
package_name/, or somewhere nearby. You can use the ADB or the Eclipse
plugin file browser to browse around and find the exact location. The
reason this is usually irrelevant though, is the permissions will only
be set for the application that stored it, you can't access it from
other apps anyway (not if created with openFileOutput).


On Jul 27, 10:51 am, Lorenz lorenzoteod...@gmail.com wrote:
 Hi,
 I've a problem with method openFileOutput(), I can't find the file or
 the directory where the file is stored..the code is:
 import java.io.BufferedWriter;
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.OutputStreamWriter;
 import java.io.PrintWriter;

 import android.app.Activity;
 import android.app.AlertDialog;
 import android.content.Context;
 import android.os.Bundle;
 import java.io.*;
 import java.net.*;
 import java.util.NoSuchElementException;
 import java.util.Scanner;

 public class C extends Activity {
     /** Called when the activity is first created. */
         private PrintWriter savedpoint;

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         try{

         savedpoint = new PrintWriter(openFileOutput
 (Data.dat,MODE_APPEND));

         for(int i=0;i20;i++)
         {
                 savedpoint.println(-78.443221+i+ +120.344423+i);

         }

         }catch (FileNotFoundException e) {
                         e.printStackTrace();
                 }
     }

 }

 and the manifest is:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=prova.client
       android:versionCode=1
       android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
 app_name
         activity android:name=.C
                   android:label=@string/app_name
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity
     /application
     uses-sdk android:minSdkVersion=3 /
 /manifest

 Any idea?where can I find the directory where is stored the file?
 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: video screen disappeared after launch new task

2009-07-27 Thread sleith

any idea?

On Jul 27, 4:42 pm, sleith raysle...@gmail.com wrote:
 hi,
 i tried to play video using media player, and it run ok like at the
 example at api demos.
 but the problem is, when i trigger something that launch a new task
 (for example click button that will dial number) and then back to it's
 task, the video screen is gone, only sounds is playing.
 i noticed that the OnSurfaceChange is called, is this the problem? how
 to solve it?
 thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't find file with OpenFile

2009-07-27 Thread Charlie Collins

I didn't see Mark's reply before I posted mine, sorry.  As always,
Mark is on top of this group ;).

On Jul 27, 11:16 am, Charlie Collins charlie.coll...@gmail.com
wrote:
 Files created with Context.openFileOutput are in the context they
 were created in. 99% of the time you don't really care what that
 physical location is, you just retrieve the same file using the name
 with Context.openFileInput.

 If memory serves the actual physical location is /data/data/
 package_name/, or somewhere nearby. You can use the ADB or the Eclipse
 plugin file browser to browse around and find the exact location. The
 reason this is usually irrelevant though, is the permissions will only
 be set for the application that stored it, you can't access it from
 other apps anyway (not if created with openFileOutput).

 On Jul 27, 10:51 am, Lorenz lorenzoteod...@gmail.com wrote:

  Hi,
  I've a problem with method openFileOutput(), I can't find the file or
  the directory where the file is stored..the code is:
  import java.io.BufferedWriter;
  import java.io.FileNotFoundException;
  import java.io.FileOutputStream;
  import java.io.IOException;
  import java.io.OutputStreamWriter;
  import java.io.PrintWriter;

  import android.app.Activity;
  import android.app.AlertDialog;
  import android.content.Context;
  import android.os.Bundle;
  import java.io.*;
  import java.net.*;
  import java.util.NoSuchElementException;
  import java.util.Scanner;

  public class C extends Activity {
      /** Called when the activity is first created. */
          private PrintWriter savedpoint;

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          try{

          savedpoint = new PrintWriter(openFileOutput
  (Data.dat,MODE_APPEND));

          for(int i=0;i20;i++)
          {
                  savedpoint.println(-78.443221+i+ +120.344423+i);

          }

          }catch (FileNotFoundException e) {
                          e.printStackTrace();
                  }
      }

  }

  and the manifest is:

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
        package=prova.client
        android:versionCode=1
        android:versionName=1.0
      application android:icon=@drawable/icon android:label=@string/
  app_name
          activity android:name=.C
                    android:label=@string/app_name
              intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter
          /activity
      /application
      uses-sdk android:minSdkVersion=3 /
  /manifest

  Any idea?where can I find the directory where is stored the file?
  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: DD command

2009-07-27 Thread Roman

Francesco,

You could first make sure to install dd on your system and then you
always can execute command line tools

Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(busybox put in what you want to do);

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 27, 1:29 am, Francesco Pace paxa...@gmail.com wrote:
 Thanks Roman, but I have to execute DD command with my java application, Can
 I execute DD (with busybox) from java?

 2009/7/27 Roman roman.baumgaert...@t-mobile.com



  You can find dd within the busybox tool kit for Android.

 http://benno.id.au/blog/2007/11/14/android-busybox

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·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 26, 6:18 am, Unrealshade sche...@googlemail.com wrote:
   nah, sorry, don't know anything about this topic... i just hope i find
   dd for android. if i do i will write here how i did it, of course.
   best luck to you! =)

   On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote:

I don't know methods for implementing this schema. I also think that
  there
are even ways to make a logical copy of the FS.
You know if can I perform a CHMOD on directories with Android NDK?

Thanks :)

2009/7/25 Unrealshade sche...@googlemail.com

 i'm interested in that, too!

 On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote:
  Hi guys,
  it's possible execute DD command from my java application?
  I need to copy internal flash memory in a sdcard.
  Can anyone help me?

  PS.Sorry for my poor english.


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

2009-07-27 Thread Romain Guy

We recently changed our build system to force you to use javac 1.5.
While you can build the system with javac 1.6 (and you can certainly
build apps with 1.6), many members of the Android team still need to
use javac 1.5 for various reasons (mostly because Mac OS X.) If
someone uses javac 1.6, we are at risk of checking in code that does
not compile on javac 1.5 (use of @Override on interface methods.) This
has been the cause of broken builds several times in the past. While
we could simply use -target 1.5 -source 1.5 with javac 1.6, we decided
to not take risk and make sure everyone uses a similar compiler. Thus
the enforcement of javac 1.5.

On Mon, Jul 27, 2009 at 5:39 AM, Fred
Grott(shareme)fred.gr...@gmail.com wrote:

 I seem to made a good Guess..Apache Harmony targets sun java 5
 compliance..

 Fred Grott
 http://mobilebytes.wordpress.com



 On Jul 27, 6:59 am, Mark Murphy mmur...@commonsware.com wrote:
 Chih-Wei wrote:
  Recently the build system will check if java version is 1.5, and stop
  if the version mismatch.

 No, it doesn't.

 It probably checks for the Sun compiler, since the system requirements
 say that is required:

 http://developer.android.com/sdk/1.5_r3/requirements.html

 But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have
 for some months now, on Ubuntu. It is definitely not limiting you to
 Java 1.5.

 It may be limiting you from using non-standard JDKs -- I would guess
 that is a matter of reducing testing and support costs. So long as you
 (and perhaps other like-minded folk) are willing to take on the burden
 of testing and support for OpenJDK, there is nothing really stopping you
 from trying to use it.

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

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.0 Available!
 




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

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

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



[android-developers] Re: Rotate A View Permanently

2009-07-27 Thread Romain Guy

Your solution might not always work because you do not save/restore
the Canvas in dispatchDraw().

On Mon, Jul 27, 2009 at 2:46 AM, Jeff Sharkeyjshar...@android.com wrote:

 It's actually really easy, and you don't need to use animations.  I
 did something like this recently by using a wrapper layout that
 adjusts the Canvas and any MotionEvents.  (You could also use this
 approach rotate the entire layout to any arbitrary angle.)

 I think romainguy told me to use Canvas.concat(mForward) instead of
 setMatrix(), but I haven't updated the code in awhile.



 private static class FlipLayout extends FrameLayout {
    private Matrix mForward = new Matrix();
    private Matrix mReverse = new Matrix();
    private float[] mTemp = new float[2];

    public FlipLayout(Context context) {
        super(context);

        mForward.postRotate(180);
        mForward.invert(mReverse);
    }

   �...@override
    protected void dispatchDraw(Canvas canvas) {
        canvas.setMatrix(mForward);
        super.dispatchDraw(canvas);
    }

   �...@override
    public boolean dispatchTouchEvent(MotionEvent event) {
        final float[] temp = mTemp;
        temp[0] = event.getX();
        temp[1] = event.getY();

        mReverse.mapPoints(temp);

        event.setLocation(temp[0], temp[1]);
        return super.dispatchTouchEvent(event);
    }
 }




 On Fri, Jul 24, 2009 at 10:53 PM, Josh Hoffmankeshis...@gmail.com wrote:

 I posted earlier today on this topic, but I'm re-posting as I haven't
 been able to locate my post via search. I apologize if this is indeed
 a double-post, but it seems something went wrong with the original.

 I've been trying to find a means of rotating a view such that it is
 flipped upside-down and stays that way. I found the Rotation Animation
 method, but I have been unable to find a means of keeping the view
 rotated. Repeating the animation doesn't suit my purposes, and in fact
 I don't want an animation at all if possible. What I would like is
 something akin to a transformation, except to be used on a TextView or
 a LinearLayout.

 I have considering overriding methods to accomplish this task by
 slightly modifying the animation code, but I'm not sure how extensive
 the work for this would be. Additionally, I'm not sure where to find
 the source for those methods.

 If anyone could recommend a means of accomplishing this task, whether
 it be by an override or perhaps something simple that I am missing, I
 would appreciate it very much. Thanks!

 




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

 




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

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

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



[android-developers] Re: Why force java 1.5?

2009-07-27 Thread Mark Murphy

Romain Guy wrote:
 We recently changed our build system to force you to use javac 1.5.

Which build system? SDK apps, or Android OSP?

I seem to be able to build SDK apps with Java 1.6 without complaint on
1.5r3.

I may have misinterpreted the OP -- I assumed he was talking about the
SDK, since this is an SDK list...

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

2009-07-27 Thread Lorenz

Sorry guys,
but I can't find the folder /data..I use Eclipse and type: file-
openFile but i'm unable to find /data/data/myfile..
How can I do in eclipse to find it?

On 27 Lug, 17:19, Charlie Collins charlie.coll...@gmail.com wrote:
 I didn't see Mark's reply before I posted mine, sorry.  As always,
 Mark is on top of this group ;).

 On Jul 27, 11:16 am, Charlie Collins charlie.coll...@gmail.com
 wrote:



  Files created with Context.openFileOutput are in the context they
  were created in. 99% of the time you don't really care what that
  physical location is, you just retrieve the same file using the name
  with Context.openFileInput.

  If memory serves the actual physical location is /data/data/
  package_name/, or somewhere nearby. You can use the ADB or the Eclipse
  plugin file browser to browse around andfindthe exact location. The
  reason this is usually irrelevant though, is the permissions will only
  be set for the application that stored it, youcan'taccess it from
  other apps anyway (not if created with openFileOutput).

  On Jul 27, 10:51 am, Lorenz lorenzoteod...@gmail.com wrote:

   Hi,
   I've a problem with method openFileOutput(), Ican'tfindthe file or
   the directory where the file is stored..the code is:
   import java.io.BufferedWriter;
   import java.io.FileNotFoundException;
   import java.io.FileOutputStream;
   import java.io.IOException;
   import java.io.OutputStreamWriter;
   import java.io.PrintWriter;

   import android.app.Activity;
   import android.app.AlertDialog;
   import android.content.Context;
   import android.os.Bundle;
   import java.io.*;
   import java.net.*;
   import java.util.NoSuchElementException;
   import java.util.Scanner;

   public class C extends Activity {
       /** Called when the activity is first created. */
           private PrintWriter savedpoint;

       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
           try{

           savedpoint = new PrintWriter(openFileOutput
   (Data.dat,MODE_APPEND));

           for(int i=0;i20;i++)
           {
                   savedpoint.println(-78.443221+i+ +120.344423+i);

           }

           }catch (FileNotFoundException e) {
                           e.printStackTrace();
                   }
       }

   }

   and the manifest is:

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
         package=prova.client
         android:versionCode=1
         android:versionName=1.0
       application android:icon=@drawable/icon android:label=@string/
   app_name
           activity android:name=.C
                     android:label=@string/app_name
               intent-filter
                   action android:name=android.intent.action.MAIN /
                   category
   android:name=android.intent.category.LAUNCHER /
               /intent-filter
           /activity
       /application
       uses-sdk android:minSdkVersion=3 /
   /manifest

   Any idea?where can Ifindthe directory where is stored the file?
   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: Buying a anroid Dev in Canada?

2009-07-27 Thread Tom Opgenorth

Yup - it is a crazy fee, depending on the exchange rate it's about
half the cost of the phone.  When I got my ADP1 I had it shipped to my
in-laws in the U.S.  I brought it home with me on a visit.  If you're
gone from Canada more than a week you get a $750.00 duty free
allowance so you're okay there.

But it's probably a moot point right now as it seems that the ADP1 is
out of stock.

On Fri, Jul 24, 2009 at 19:41, Tahnoktah...@gmail.com wrote:

 Hello

 I have been looking into purchasing a dev phone and I saw some posts
 here about a ridiculous shipping fee to Canada. Is that still the
 case? I'm hesitant to get a subscription to the marketplace just to
 see the price.

 




-- 
http://www.opgenorth.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 possible mapview and list exist in same activity

2009-07-27 Thread HeHe

beside the suggestion from Cao Minh, you could also do some try-n-
error experiment on your layout xml file of the map activity. i have a
gut feeling that HorizontalScrollView may fit more of your purpose
because . i don't know, though.

On Jul 26, 10:18 am, tstanly tsai.sta...@gmail.com wrote:
 thank you for your reply,

 so I want to ask the next question,
 that's how to put list with themapview??

 I just think it must extends ListActivity,
 is there another methods?

 thanks so much!!

 On Jul 26, 3:02 am, HeHe cnm...@gmail.com wrote:



  afail, you could combine amapviewand listview (or any other sort of
  views) in a map activity.

  as for how-to, you should do some experiment.

  On Jul 23, 10:34 pm,tstanlytsai.sta...@gmail.com wrote:

   hi all,

   for now i have a list,
   using extends listactivity,
   and now i want to addmapviewon the same activity using framelayout
   probably,

   but if i want to use themapview, the activity must extends
   mapactivity,

   one must extends mapactivity,the other must extends list activity,

   if it possible to do that???

   thanks!!!- 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: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK .

2009-07-27 Thread niko001

Hi Arvish,

This issue has been documented before (although I don't know if it's
officially listed as a bug yet), I haven't found a way around this
yes, either (apart from splitting the gif into several pngs,, i.e. one
png per frame).

Best regards,
Niko



On 27 Jul., 11:28, Arvish arvish.ramkees...@gmail.com wrote:
 Hello Guys,

 I cannot  play any Giff in 1.5 SDK .  If somebody have any idea how to
 do this, let me know.

 Thanks in advance,
 Arvish
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there a way to control the Android phone or do a automated test using a remote PC?

2009-07-27 Thread chicochen

Thanks for your feedback, so how can we comunicate with the APP UI
like automated testing tool - qtp does
If it is the way, maybe I will try  to write such a useful tool.

On 7月27日, 上午8时59分, James 030440...@163.com wrote:
 For a emulator,you can telnet localhost 5554 to send instructions.As
 to a real device,I'm afraid you cann't do it this way;
 Probably you'd have to run an agent written by yourself to acchive
 this goal;Hope this helps!
 BTW,I'm also working on android software testing.

 On Jul 26, 11:25 am,chicochenchic...@gmail.com wrote:



  I am a tester, is there a way to control the Android phone or do the
  automated testing using a remote PC?

  Or how can I dev such a automted tools, Use which technology?  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: Can't find file with OpenFile

2009-07-27 Thread Lorenz

Any idea?

On 27 Lug, 17:31, Lorenz lorenzoteod...@gmail.com wrote:
 Sorry guys,
 but Ican'tfindthe folder /data..I use Eclipse and type: file-openFile but 
 i'm unable tofind/data/data/myfile..

 How can I do in eclipse tofindit?

 On 27 Lug, 17:19, Charlie Collins charlie.coll...@gmail.com wrote:



  I didn't see Mark's reply before I posted mine, sorry.  As always,
  Mark is on top of this group ;).

  On Jul 27, 11:16 am, Charlie Collins charlie.coll...@gmail.com
  wrote:

   Files created with Context.openFileOutput are in the context they
   were created in. 99% of the time you don't really care what that
   physical location is, you just retrieve the same file using the name
   with Context.openFileInput.

   If memory serves the actual physical location is /data/data/
   package_name/, or somewhere nearby. You can use the ADB or the Eclipse
   plugin file browser to browse around andfindthe exact location. The
   reason this is usually irrelevant though, is the permissions will only
   be set for the application that stored it, youcan'taccess it from
   other apps anyway (not if created with openFileOutput).

   On Jul 27, 10:51 am, Lorenz lorenzoteod...@gmail.com wrote:

Hi,
I've a problem with method openFileOutput(), Ican'tfindthe file or
the directory where the file is stored..the code is:
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import java.io.*;
import java.net.*;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class C extends Activity {
    /** Called when the activity is first created. */
        private PrintWriter savedpoint;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try{

        savedpoint = new PrintWriter(openFileOutput
(Data.dat,MODE_APPEND));

        for(int i=0;i20;i++)
        {
                savedpoint.println(-78.443221+i+ +120.344423+i);

        }

        }catch (FileNotFoundException e) {
                        e.printStackTrace();
                }
    }

}

and the manifest is:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=prova.client
      android:versionCode=1
      android:versionName=1.0
    application android:icon=@drawable/icon android:label=@string/
app_name
        activity android:name=.C
                  android:label=@string/app_name
            intent-filter
                action android:name=android.intent.action.MAIN /
                category
android:name=android.intent.category.LAUNCHER /
            /intent-filter
        /activity
    /application
    uses-sdk android:minSdkVersion=3 /
/manifest

Any idea?where can Ifindthe directory where is stored the file?
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: will donut be available for the mytouch 3g, or just the g1?

2009-07-27 Thread niko001

Donut is not a specific version, just a code branch, but it features
should be implemented by all carriers and it should be available for
all Android devices, but implementation times will likely vary (i.e.
when you will actually get an update-notification).

On 26 Jul., 17:24, azn bl1tzkr13g johnkaz...@gmail.com wrote:
 will donut be available for the mytouch 3g or just the g1?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 force java 1.5?

2009-07-27 Thread Dianne Hackborn
The original poster was talking about the platform build system, so sent
this to the wrong place and caused some confusion.

Chih-Wei, for future reference, questions related to the platform (as
opposed to the SDK) should be posted to android-porting.

On Mon, Jul 27, 2009 at 8:25 AM, Mark Murphy mmur...@commonsware.comwrote:


 Romain Guy wrote:
  We recently changed our build system to force you to use javac 1.5.

 Which build system? SDK apps, or Android OSP?

 I seem to be able to build SDK apps with Java 1.6 without complaint on
 1.5r3.

 I may have misinterpreted the OP -- I assumed he was talking about the
 SDK, since this is an SDK list...

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

 _Android Programming Tutorials_ Version 1.0 In Print!

 



-- 
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: invoking the dialer multiple time

2009-07-27 Thread flohier

Quick additional question regarding the problem I'm facing:

Is it possible to kill the process running the dialer and restart it ?

Thanks,





On Jul 26, 6:45 am, flohier floh...@gmail.com wrote:
 Dear All,

 I wrote an app that places an outgoing call via the ACTION_CALL
 intent.

 After the call is placed, the dialer enters the call log window and at
 that point, my application cannot re-submit an outgoing call without
 having the user exit the call log activity.

 From the kernel source, InCallScreen.java shows implements the
 delayedCleanupAfterDisconnect() method where one can read:

        .

                 // If this is a call that was initiated by the user,
 and
                 // we're *not* in emergency mode, finish the call by
                 // taking the user to the Call Log.
                 // Otherwise we simply call finish(), which will take
 us
                 // back to wherever we came from.
                 if (mShowCallLogAfterDisconnect  !
 isPhoneStateRestricted()) {
                     if (VDBG) log(- Show Call Log after
 disconnect...);
                     final Intent intent = PhoneApp.createCallLogIntent
 ();
                     startActivity(intent);
                     // Even in this case we still call finish()
 (below),
                     // to make sure we don't stay in the activity
 history.
                 }

                 finish();

 The mShowCallLogAfterDisconnect is a boolean also in InCallScreen.java
 that reads:

     // Flag indicating whether or not we should bring up the Call Log
 when
     // exiting the in-call UI due to the Phone becoming idle.  (This
 is
     // true if the most recently disconnected Call was initiated by
 the
     // user, or false if it was an incoming call.)
     // This flag is used by delayedCleanupAfterDisconnect(), and is
 set by
     // onDisconnect() (which is the only place that either posts a
     // DELAYED_CLEANUP_AFTER_DISCONNECT event *or* calls
     // delayedCleanupAfterDisconnect() directly.)
     private boolean mShowCallLogAfterDisconnect;

 If I trust the comment properly, the dialer will enter the call log
 activity unless we had an incoming call triggering InCallScreen. I
 presume that by call was initiaited by the user also means other
 activity invoking ACTION_CALL.

 So my question is: does anyone know how I could programmatically exit
 the call log activity as ways to be able to submit another ACTION_CALL
 intent ?

 Thanks for any pointers or suggestions here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] the mediaplayer with mediacontroller issue

2009-07-27 Thread tstanly

hi all,


this question I have post for twice,
but nobody answer,


Is someone success use mediaplayer with mediacontroller??

or is there have a alternative tools or methods to play music,
and have the mediacontroller workly?


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: Rotate A View Permanently

2009-07-27 Thread Jeff Sharkey

Ah yes, that's what I was missing.  :)

j

On Mon, Jul 27, 2009 at 8:22 AM, Romain Guyromain...@google.com wrote:

 Your solution might not always work because you do not save/restore
 the Canvas in dispatchDraw().

 On Mon, Jul 27, 2009 at 2:46 AM, Jeff Sharkeyjshar...@android.com wrote:

 It's actually really easy, and you don't need to use animations.  I
 did something like this recently by using a wrapper layout that
 adjusts the Canvas and any MotionEvents.  (You could also use this
 approach rotate the entire layout to any arbitrary angle.)

 I think romainguy told me to use Canvas.concat(mForward) instead of
 setMatrix(), but I haven't updated the code in awhile.



 private static class FlipLayout extends FrameLayout {
    private Matrix mForward = new Matrix();
    private Matrix mReverse = new Matrix();
    private float[] mTemp = new float[2];

    public FlipLayout(Context context) {
        super(context);

        mForward.postRotate(180);
        mForward.invert(mReverse);
    }

   �...@override
    protected void dispatchDraw(Canvas canvas) {
        canvas.setMatrix(mForward);
        super.dispatchDraw(canvas);
    }

   �...@override
    public boolean dispatchTouchEvent(MotionEvent event) {
        final float[] temp = mTemp;
        temp[0] = event.getX();
        temp[1] = event.getY();

        mReverse.mapPoints(temp);

        event.setLocation(temp[0], temp[1]);
        return super.dispatchTouchEvent(event);
    }
 }




 On Fri, Jul 24, 2009 at 10:53 PM, Josh Hoffmankeshis...@gmail.com wrote:

 I posted earlier today on this topic, but I'm re-posting as I haven't
 been able to locate my post via search. I apologize if this is indeed
 a double-post, but it seems something went wrong with the original.

 I've been trying to find a means of rotating a view such that it is
 flipped upside-down and stays that way. I found the Rotation Animation
 method, but I have been unable to find a means of keeping the view
 rotated. Repeating the animation doesn't suit my purposes, and in fact
 I don't want an animation at all if possible. What I would like is
 something akin to a transformation, except to be used on a TextView or
 a LinearLayout.

 I have considering overriding methods to accomplish this task by
 slightly modifying the animation code, but I'm not sure how extensive
 the work for this would be. Additionally, I'm not sure where to find
 the source for those methods.

 If anyone could recommend a means of accomplishing this task, whether
 it be by an override or perhaps something simple that I am missing, I
 would appreciate it very much. Thanks!

 




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

 




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

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

 




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

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



[android-developers] Unicode characters via resource element

2009-07-27 Thread Jason Van Anden
I posted this in beginner to no avail.  Perhaps this is one for developers
...

I want to use unicode characters in a toast.  I can do this via code.

I am not having any luck associating this as a resource element.

Is this impossible or am I using the wrong syntax?

This is what I have tried to no avail:

string name=title_no_titleNo Title \u2639/string

If you know the answer - pls correct!

Thank You,
Jason Van Anden

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Flipping / Rotating TextView (or layout) upside-down

2009-07-27 Thread jhoffman

Yeah  my apologies on the double-post... I wasn't aware of the
moderation on new posters when I tried to post. I thought maybe the
internet ate my first post. Really sorry to double post, but thank you
both very much for your help, I'll try those approaches now!

On Jul 27, 2:49 am, Jeff Sharkey jshar...@android.com wrote:
 Ugh double-post.  I just responded in the other thread with an
 alternative approach that doesn't require animations.

 j



 On Sun, Jul 26, 2009 at 3:51 PM, Romain Guyromain...@google.com wrote:

  All you have to do is set the fillAfter property of the animation to true.

  On Fri, Jul 24, 2009 at 11:27 AM, Josh Hoffmankeshis...@gmail.com wrote:

  Hello, I'm trying to find a way to rotate a View, or (more
  conveniently) an entire layout,upside downand have it stay that way.
  I found the rotation and animation classes in the SDK, and these come
  close to what I want, but at the end of the animation I want my Layout
  to stay rotated; repeating the animation or just flipping back right-
  side-up doesn't help me with my app unfortunately.

  The only thing I can think of so far would be to find the source code
  for the rotate class, and override it such that the ...and then flip
  it back around to be right-side-up code never happens. I'm not sure
  exactly where I'd find the original rotate code for reference if I
  were to do something that extensive however.

  I've found references online to the full android source - is that
  basically what I'd be looking at downloading to be able to attempt
  something like this? Am I missing a simple option on the rotation that
  would let it just stay put after I rotate it? Any help would be very
  much appreciated! Thank you!

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

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



[android-developers] Problem :can't read a file, can't comunicate with a server

2009-07-27 Thread Lorenz

Hi guys, I've some problems:

1)first I'm not able to read  a file:(
2)second seems that my code that have to simulate a Client can't
connect to my server.
maybe I'm wrong something, Ip address(I think it is right)? I have set
the virtual device on port 5554 (the default)..I need to redirect the
host port?
this is my code:


;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import java.io.*;
import java.net.*;
import java.util.NoSuchElementException;
import java.util.Scanner;



public class C extends Activity {
/** Called when the activity is first created. */
private PrintWriter savedpoint;
private Context context = this;


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try{

savedpoint = new PrintWriter(openFileOutput
(Data.dat,MODE_APPEND));


for(int i=0;i20;i++)//scrive coordinate
{
savedpoint.println(-78.443221+i+ +120.344423+i);

}

F thread=new F(getFilesDir(),this);
thread.start();

}catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}

//thread that have to acess to the server
class F extends Thread{
File directory;
Context context;

private final static String host = 10.0.2.2;
private final static int port = 2120;


F(File directory,Context context)
{this.directory=directory;this.context=context;}
public void run()
{

try{

Socket socket = null;
PrintWriter out = null;
InetAddress ip = InetAddress.getByName(host);
socket = new Socket(ip,port);   -SEEMS THERE IS NO
CONNECTIONS, BECAUSE THE SERVER DOESN'T SIGN ANYTHING
out = new PrintWriter( new BufferedWriter( new 
OutputStreamWriter
(socket.getOutputStream())),true);
Scanner s=new Scanner(directory+Data.dat); --- The right 
way?

try {
while (true) {

String l = s.nextLine();ERROR
out.println(l);
}
} catch (NoSuchElementException e) {s.close();
out.println(*);
}//catch(FileNotFoundException e){}
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();}
}
}

the manifest:
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=prova.client
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.C
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest


thanks in advance for any help..

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



[android-developers] QVGA screen resolution applications

2009-07-27 Thread skink

hi,

i have general question about Cupcake (or any other later relase): do
you, when writing apps, consider running them on qvga device?

although Dianne wrote here 
http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e
that qvga is not supported i still see in Cupcake sdk qvga skins...

so my question is: should i really forget about qvga or not?

thanks
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: Instrumentation on the virtual keyboard.

2009-07-27 Thread Dianne Hackborn
Sorry, no you can't do this.  The soft keyboard is owned by another
application and one application can't inject events into another.

On Mon, Jul 27, 2009 at 7:48 AM, Mathieu Plourde mat.plou...@gmail.comwrote:


 Hello devs,

 I'm using Intrumentation to invoke keystrokes and mouse events, but I
 have a problem when trying to do so on the virtual keyboard. If the
 virtual keyboard pops up and I want to send a mouse event to click on
 a character of the keyboard, I get that error/warning in the console:

 W/WindowManager(  586): Permission denied: injecting pointer event
 from pid 1580 uid 10020 to window Window{437522d0 InputMethod
 paused=false} owned by uid 10003

 Is there a way to make it work? I know I can't do instrumentation on
 native activites, does the native keyboard acts like a native
 activity?

 Thanks.
 



-- 
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: Two SurfaceViews in a FrameLayout

2009-07-27 Thread Dianne Hackborn
Sorry, you can't do this -- because surface views are very special and not
really views (the surface is a separate window Z-ordered with your own),
their Z-ordering does not match your views.  A surface view is a big, heavy
object; you are not intended to treat SurfaceView like a regular view in
this way.

As far as transparency, the surface is transparent if you make its pixel
format transparent.  It's your surface, you can do with it what you want.
The default is to be the same pixel format as the screen, since that is the
most efficient and it is very rare for someone to want a transparent surface
view.

The way you really are intended to do this is to own the surface, and draw
all your compositing in there.  So you would just have one surface view that
you are updating in the places where either the background or overlay is
changing.  To be honest, I think you are going to get better performance if
you do it this way anyway, especially if you use OpenGL.

For simple overlays, one thing that is reasonable to do is to stick the
SurfaceView in a frame layout, Z-ordering it below other -regular- views
that contain the overlay.  There is an example in ApiDemos of this.

On Mon, Jul 27, 2009 at 7:34 AM, Chris chrismc...@hotmail.com wrote:


 Hi,

 I have two SurfaceViews in one FrameLayout. So they are stacked upon
 another. What I want to achieve is to use the lower SurfaceView as
 kind of background that is changing heavily, and the upper SurfaceView
 as annotation overlay. So the upper SurfaceView has a (small) number
 of quickly changing elements that I will draw.

 Somehow, I can always only see one of the SurfaceViews, depending on
 which one is top. I thought that SurfaceViews are always transparent,
 but it seems I am missing something here.

 Any thoughts on why I can't overlay two SurfaceViews?

 Thanks,
 Chris

 



-- 
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: About Android Email architecture ??

2009-07-27 Thread Dianne Hackborn
Um.  There is an app, and it does e-mail.  Oh and there is also another app
from Google, that does gmail.

Sorry at the platform level there isn't much more architecture than that. :}

On Mon, Jul 27, 2009 at 5:39 AM, Chris narendrasingh.bi...@gmail.comwrote:


 Can anyone suggest any link or any other help, regarding the android
 email architecture.
 Any sort of help will be most welcome.

 Thanks a lot
 



-- 
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: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-07-27 Thread Dianne Hackborn
You create an .apk with an Instrumentation class (implementation deriving
from that, with an instrumentation declaration for it on the manifest),
and use adb shell am instrument to run it.

I think there are some examples of doing this around, but don't know them
off-hand.

On Mon, Jul 27, 2009 at 8:51 AM, chicochen chic...@gmail.com wrote:


 Thanks for your feedback, so how can we comunicate with the APP UI
 like automated testing tool - qtp does
 If it is the way, maybe I will try  to write such a useful tool.

 On 7月27日, 上午8时59分, James 030440...@163.com wrote:
  For a emulator,you can telnet localhost 5554 to send instructions.As
  to a real device,I'm afraid you cann't do it this way;
  Probably you'd have to run an agent written by yourself to acchive
  this goal;Hope this helps!
  BTW,I'm also working on android software testing.
 
  On Jul 26, 11:25 am,chicochenchic...@gmail.com wrote:
 
 
 
   I am a tester, is there a way to control the Android phone or do the
   automated testing using a remote PC?
 
   Or how can I dev such a automted tools, Use which technology?  thanks.-
 隐藏被引用文字 -
 
  - 显示引用的文字 -
 



-- 
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: DD command

2009-07-27 Thread Francesco Pace
Thanks Roman,
but, when I install busybox, Can I execute DD command?
Example :

Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(busybox dd if=. of=.);

With busybox, Can I execute dd command athought I don't have Root
permissions?


2009/7/27 Roman roman.baumgaert...@t-mobile.com


 Francesco,

 You could first make sure to install dd on your system and then you
 always can execute command line tools

 Runtime rt = Runtime.getRuntime();
 Process pr = rt.exec(busybox put in what you want to do);

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·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 27, 1:29 am, Francesco Pace paxa...@gmail.com wrote:
  Thanks Roman, but I have to execute DD command with my java application,
 Can
  I execute DD (with busybox) from java?
 
  2009/7/27 Roman roman.baumgaert...@t-mobile.com
 
 
 
   You can find dd within the busybox tool kit for Android.
 
  http://benno.id.au/blog/2007/11/14/android-busybox
 
   --
   Roman Baumgaertner
   Sr. SW Engineer-OSDC
   ·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 26, 6:18 am, Unrealshade sche...@googlemail.com wrote:
nah, sorry, don't know anything about this topic... i just hope i
 find
dd for android. if i do i will write here how i did it, of course.
best luck to you! =)
 
On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote:
 
 I don't know methods for implementing this schema. I also think
 that
   there
 are even ways to make a logical copy of the FS.
 You know if can I perform a CHMOD on directories with Android NDK?
 
 Thanks :)
 
 2009/7/25 Unrealshade sche...@googlemail.com
 
  i'm interested in that, too!
 
  On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote:
   Hi guys,
   it's possible execute DD command from my java application?
   I need to copy internal flash memory in a sdcard.
   Can anyone help me?
 
   PS.Sorry for my poor english.
 
 
 


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

2009-07-27 Thread Cibele

One person from my work found this answer and I think it should be
public.
To be able to use my application that sends files to other Social
Networks I just need to register my intent application using the
following intent-filter on Manifest.xml

  ...
  intent-filter
action android:name=android.intent.action.SEND /
category android:name=android.intent.category.DEFAULT /
data android:mimeType=image/* /
  /intent-filter
  ...

Installing this application, any other app that calls
Intent intent = new Intent(Intent.ACTION_SEND);
startActivity(Intent.createChooser(intent , Send options));
and have an image as attachment will be able to choose my app.


On 24 jul, 16:45, Cibele cibel...@gmail.com wrote:
 I´d like to know if any 3rd part app can be added to the menu that is
 called on

 Intent intent = new Intent(Intent.ACTION_SEND);
 startActivity(Intent.createChooser(intent , Send options));

 For example an application that shares toFlickror Facebook.

 or if this is something that should be added in the operational system
 source code.
 On android 1.5 the Picasa was added the list that on previous versions
 only contained E-mail and Messaging.

 My question is how to make this available so that any developer can
 use this to make applications that share pictures, etc.

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

2009-07-27 Thread hap 497
On Sat, Jul 25, 2009 at 2:49 AM, lucky4me bakhtiyo...@gmail.com wrote:


 See Controlling the Emulator

 http://developer.android.com/guide/developing/tools/emulator.html#controlling

 Toggle trackball mode - F6, then you can use mouse as trackball


Thank you. But how can I tell if the track ball event is moving left or
moving right?


I tried called event.getEdgeFlags() in the motion event, it always return
0.

Thank you for any tip.






 On Jul 25, 11:45 am, hap 497 hap...@gmail.com wrote:
  i don't understand the answer. How can I do that on the emulator
 manually?
  E.g. I have implemented dispatchTrackBallEvent() of my View. What can i
 do
  to in to emulator so that function get called during debugging?
 
  On Fri, Jul 24, 2009 at 4:09 PM, Fred Grott(shareme)
  fred.gr...@gmail.comwrote:
 
 
 
   Mock testing see apiDemos for details..all the cool kids are doing it
 
   Fred Grott
  http://mobilebytes.wordpress.com
 
   On Jul 24, 1:48 pm, hap 497 hap...@gmail.com wrote:
Hi,
Can you please tell me how can I simulate a TrackBall Event in
 emulator?
I just the left/right black button in the middle of the emulator, but
 i
   set
break point in dispatchKeyEvent() and dispatchTrackBallEvent() of the
View.java.
But only dispatchKeyEvent() breakpoint get activated.  I want to see
'dispatchTrackBallEvent' get breaks.
 
Can you please tell me how to simulate a TrackBall Event?
 
Thank you.
 
 
 


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



[android-developers] Re: QVGA screen resolution applications

2009-07-27 Thread Dianne Hackborn
QVGA is not supported in 1.5, so I wouldn't take any experience you have
running the emulator like that to be a strong evidence of things working how
they would on an actual QVGA device that might appear some time in the
future running something later than 1.5.

So you could maybe use it to see if your layouts are behaving reasonably for
different screens, but even for that I would lean towards using an HVGA
density screen that is slightly shorter (like QVGA is slightly shorter than
HVGA) than actually running in QVGA which throws density scaling into the
mix.

On Mon, Jul 27, 2009 at 11:00 AM, skink psk...@gmail.com wrote:


 hi,

 i have general question about Cupcake (or any other later relase): do
 you, when writing apps, consider running them on qvga device?

 although Dianne wrote here
 http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e
 that qvga is not supported i still see in Cupcake sdk qvga skins...

 so my question is: should i really forget about qvga or not?

 thanks
 pskink
 



-- 
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: [URGENT]Drag Screen like Android Home Screen

2009-07-27 Thread Dan Bornstein

On Sun, Jul 26, 2009 at 5:49 AM, Flavio Montenegro Filho
filhovi...@gmail.com wrote:
 [URGENT]Drag Screen like Android Home Screen

Just as an etiquette note, putting a screaming URGENT in your
subject line is off-putting and probably as likely to get the opposite
effect than the one you intend. Please remember that most of the other
21,000 members of the group have different priorities than you.

Cheers,

-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: DD command

2009-07-27 Thread Lexi Kern
Yeah if you need root permissions is an interesting question. But if you
don't have root permmissions you can't copy things to sd-card, right? So
where do you copy the file(s) then? By usb-connection or wireless?


On Mon, Jul 27, 2009 at 8:27 PM, Francesco Pace paxa...@gmail.com wrote:

 Thanks Roman,
 but, when I install busybox, Can I execute DD command?
 Example :

 Runtime rt = Runtime.getRuntime();
 Process pr = rt.exec(busybox dd if=. of=.);

 With busybox, Can I execute dd command athought I don't have Root
 permissions?


 2009/7/27 Roman roman.baumgaert...@t-mobile.com


 Francesco,

 You could first make sure to install dd on your system and then you
 always can execute command line tools

 Runtime rt = Runtime.getRuntime();
 Process pr = rt.exec(busybox put in what you want to do);

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·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 27, 1:29 am, Francesco Pace paxa...@gmail.com wrote:
  Thanks Roman, but I have to execute DD command with my java application,
 Can
  I execute DD (with busybox) from java?
 
  2009/7/27 Roman roman.baumgaert...@t-mobile.com
 
 
 
   You can find dd within the busybox tool kit for Android.
 
  http://benno.id.au/blog/2007/11/14/android-busybox
 
   --
   Roman Baumgaertner
   Sr. SW Engineer-OSDC
   ·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 26, 6:18 am, Unrealshade sche...@googlemail.com wrote:
nah, sorry, don't know anything about this topic... i just hope i
 find
dd for android. if i do i will write here how i did it, of course.
best luck to you! =)
 
On Jul 26, 12:04 pm, Francesco Pace paxa...@gmail.com wrote:
 
 I don't know methods for implementing this schema. I also think
 that
   there
 are even ways to make a logical copy of the FS.
 You know if can I perform a CHMOD on directories with Android NDK?
 
 Thanks :)
 
 2009/7/25 Unrealshade sche...@googlemail.com
 
  i'm interested in that, too!
 
  On Jul 25, 2:06 pm, Francesco Pace paxa...@gmail.com wrote:
   Hi guys,
   it's possible execute DD command from my java application?
   I need to copy internal flash memory in a sdcard.
   Can anyone help me?
 
   PS.Sorry for my poor english.
 
 



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 jdb? Deferring breakpoint ... It will be set after the class is loaded.

2009-07-27 Thread James

I prefer to not use Eclipse, but I do like its ability to set
breakpoints, query values, and step through programs. I believe that
this is possible using a combination of ddms and jdb, but I have not
been able to set a breakpoint.

Here's what I do:

1. I start the emulator:
   emulator -avd my.avd 

2. I install my app:
   adb -e install -r bin/HelloWorldActivity-debug.apk

3. In the emulator, I go to Dev Tools/Development Settings and set
Wait for Debugger. I choose the app in that must wait.

4. I start up ddms:
ddms 

5. I start the app on the emulator. It obediently says it's waiting
for the debugger to attach.

6. ddms shows the app with port 8700 active.  So I start up jdb using
port 8700.

7. The app immediately starts before I can set any breakpoints. Eg. if
I try to set a breakpoint in the main Activity, jdb says:

Deferring breakpoint HelloWorldActivity.java:285.
It will be set after the class is loaded.

I've tried putting my breakpoint commands in .jdbrc, but those are too
late there too; I get the same message.

I suspect that Eclipse must use the same set of tools, but in the
right sequence, so it must be possible. But what is that right
sequence?

Thanks !

Jim

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

2009-07-27 Thread skink



On Jul 27, 9:13 pm, Dianne Hackborn hack...@android.com wrote:
 QVGA is not supported in 1.5, so I wouldn't take any experience you have
 running the emulator like that to be a strong evidence of things working how
 they would on an actual QVGA device that might appear some time in the
 future running something later than 1.5.

 So you could maybe use it to see if your layouts are behaving reasonably for
 different screens, but even for that I would lean towards using an HVGA
 density screen that is slightly shorter (like QVGA is slightly shorter than
 HVGA) than actually running in QVGA which throws density scaling into the
 mix.





 On Mon, Jul 27, 2009 at 11:00 AM, skink psk...@gmail.com wrote:

  hi,

  i have general question about Cupcake (or any other later relase): do
  you, when writing apps, consider running them on qvga device?

  although Dianne wrote here
 http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e
  that qvga is not supported i still see in Cupcake sdk qvga skins...

  so my question is: should i really forget about qvga or not?

  thanks
  pskink

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


thank you Dianne for explanation.

the problem with qvga is that (as you said)  it is normally smaller
than hvga and for majority of apps they have to treat qvga differently
(eg dialer, calculator)

if the number of devices with qvga dpy would be for example 0.1% of
all android devices then my question is reasonable - does it pay off
to make app for non existing case?

as far i see there was only one device - kogan - with qvga - and it
was delayed mainly because of that small display

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



  1   2   >