[android-developers] Re: nested testcase

2009-06-27 Thread dev
thanks for the respose ;) On Jun 20, 8:35 am, Brett Chabot brettcha...@android.com wrote: My guess is its not possible to do this. An InstrTestNested instance can only exist inside an instance of InstrTestCase, thus pretty sure the InstrumentationTestRunner cannot instantiate the nested

[android-developers] gp_initSearch problem

2009-06-27 Thread Joe Petruchi
Hi All While using browser recently in my phone I found the following error gp_initSearch not found !!! Can any body help me by telling why this happens ? Please help !!! Regards Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Instrumentaion - running multiple istrumentation simultaneously

2009-06-27 Thread dev
Hello All, This is what I have,say: TestCases : TestCase 1 to TestCase10 , all have several test methods in it (all extends base class InstrumentationTestCase) TestSuite: TestSuite 1 - Adds 'TestCase 1 to TestCase10' in its suite All of the above is in single APK.

[android-developers] Rotating image using setImageMatrix()

2009-06-27 Thread sagar.indianic
Hi all, I rotate image using setImageMatrix() function. I first use getImageMatrix() function to get matrix then i use matrix.postRotate (90). Rotation works fine. But it rotates around top/left corner of image. i want to change that pivot point to center of the image. how can I do that

[android-developers] Re: Instrumentaion - running multiple istrumentation simultaneously

2009-06-27 Thread dev
More to add on the same: I tried 2 different apk's with test suites I want to run. i.e. apk1 has testsuite1 and apk2 has testsuite2 tried running them in two terminals simultaneously. What I saw was, though I did not get any crash, they don't run simultaneously. Execution was one followed by

[android-developers] Re: concurrency of AsyncTasks

2009-06-27 Thread joshv
Interesting issue. I can see the need to make this configurable though. In some cases it would be nice to make sure that these background tasks do not run concurrently as concurrency issues can result. For example, I might have a URL fetch tied to a user interface button. When the URL

[android-developers] LiveFolder

2009-06-27 Thread glory
Hi all, Is there is any way we can customerize the list show in the Live Folder. Regards, Glory --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Intent.ACTION_SEND and Email

2009-06-27 Thread Nmix
That's great. Thanks. Unfortunately this tells me I have to live with what I have since it's beyond my control. I don't mind if other email clients (gmail or whatever) pick up the intent - it's the user's choice - I'd just rather not pick up apps that are not especially suited to my purpose. So

[android-developers] How to draw tracks on gmaps in apps

2009-06-27 Thread Delta Foxtrot
I've been struggling to efficently draw tracks over the top of maps embedded in my app. I've been redrawing the track with the ondraw method however as the number of points the app and eventually the phone crawls to a halt and I get a bunch of force close/wait messages as a result. I've been

[android-developers] How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread 楊健
Hey everybody ! How can i save a Bitmap instance to a *.bmp file?Anyone knows? Is it strange that we can only save a bitmap instance to a png or jpg file? Best regards! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Rotating image using setImageMatrix()

2009-06-27 Thread deepdr...@googlemail.com
you should be able to do that with something like matrix.preTranslate(-centerX, -centerY); matrix.postTranslate(centerX, centerY); -- http://www.deepdroid.com On Jun 27, 10:32 am, sagar.indianic sagar.india...@gmail.com wrote: Hi all, I rotate image using setImageMatrix()

[android-developers] Re: Instrumentaion - running multiple istrumentation simultaneously

2009-06-27 Thread Dianne Hackborn
Sorry you can only run one instrumentation at a time. On Sat, Jun 27, 2009 at 2:26 AM, dev krt@gmail.com wrote: More to add on the same: I tried 2 different apk's with test suites I want to run. i.e. apk1 has testsuite1 and apk2 has testsuite2 tried running them in two terminals

[android-developers] Re: concurrency of AsyncTasks

2009-06-27 Thread Streets Of Boston
As long as you have the default pool-size set to 1, there should be no issues what-so-ever. On Jun 27, 8:00 am, joshv jvanderb...@gmail.com wrote: Interesting issue.  I can see the need to make this configurable though.  In some cases it would be nice to make sure that these background tasks

[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread Romain Guy
BMP is not supported on Android. And why is it strange? PNG and JPG are widely used formats across platforms. On Sat, Jun 27, 2009 at 7:32 AM, 楊健y...@cycomtech.co.jp wrote: Hey everybody ! How can i save a Bitmap instance to a *.bmp file?Anyone knows? Is it strange that we can only save a

[android-developers] Re: LiveFolder

2009-06-27 Thread Mark Murphy
glory wrote: Is there is any way we can customerize the list show in the Live Folder. For a live folder for your own content provider, yes, IIRC. For a live folder for somebody else's content provider, no, IIRC. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread Mark Murphy
楊健 wrote: How can i save a Bitmap instance to a *.bmp file?Anyone knows? Option #1: Don't do it. So, for example, if this is a question of uploading data to some server, let the server do the conversion from PNG. Option #2: See if there is a way, through the implementation of Bitmap in the

[android-developers] Re: Delete assets at runtime

2009-06-27 Thread nEx.Software
Alternatively, you could download the file at first run, do whatever it is that you need to do with it then delete it. On Jun 25, 5:44 am, nuno nba...@gmail.com wrote: Thanks Mark, I though that was the answer. I'll have to live with the file. Cheers, Nuno On Jun 25, 1:39 pm, Mark Murphy

[android-developers] Re: Default number of Views constructed for a BaseAdapter?

2009-06-27 Thread Doug
Have you tried *not* caching the component views in your ViewHolder object - instead looking them up whenever you get a redraw request? You may find that the list is re-using objects, and your image issue is simply an artifact of that. Doug On Jun 26, 10:56 pm, Peter pkana...@gmail.com wrote:

[android-developers] Re: Any Insight on this crash?

2009-06-27 Thread MrChaz
What are you doing in your onCreate and onResume methods? If you're getting a crash on start up like that I'd wager that you're doing something that take a long time and so times out. On Jun 27, 12:13 am, Carl Minden carlmin...@gmail.com wrote: I am getting a crash intermittently when my

[android-developers] Re: Keeping an application running in the background

2009-06-27 Thread MrChaz
Just to add a note, Services are stopped when the phone goes to sleep e.g. the screen goes off. You can prevent this via WakeLock's but they impact battery life so be careful On Jun 27, 4:55 am, Delta Foxtrot deltafoxtrot...@gmail.com wrote: 2009/6/27 Dennis dmun...@gmail.com Yet another

[android-developers] DDMS won't load (or doesn't parse?) KML file

2009-06-27 Thread nderraugh
I can't get DDMS to load any KML files. I have a KML file for example with the following in it: ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; Placemark nameSimple placemark/name descriptionAttached to the ground. Intelligently places itself at the

[android-developers] Camera in portrait mode

2009-06-27 Thread indra
Hi guys at android, Can you plase fix http://code.google.com/p/android/issues/detail?id=1193 When do you expect it to get fixed? I am a developer working on http://layar.eu and I had to go through lot of trouble to get the app working in portrait mode with camera preview, using a LOT of

[android-developers] Re: How can I pass a file created in my activity to another activity

2009-06-27 Thread silverburgh
On Fri, Jun 26, 2009 at 5:29 PM, Mark Murphymmur...@commonsware.com wrote: silverburgh wrote: I create a local file in my activity like this: File f = getFileStreamPath(mypicture); How can I pass the URI of this file to another Activity? If the other activity is one in your application,

[android-developers] Re: IMAGE_CAPTURE Intent never returns to onActivityResult(int, int, Intent);

2009-06-27 Thread hanged_man
are you sure you have overriden onActivityResult method correctly ? something like this: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) Also, is the Image Capture intent working for you ? it's not exactly working for me, i keep getting a

[android-developers] calling setBackgroundColor in getView of custom ArrayAdapter causes orange background of listitem to disappear

2009-06-27 Thread pawpaw17
Hi, I have a listview with a custom ArrayAdapter. I've implemented getView so I can do different things in different list items based on the contents. For example I call setBackgroundColor based on the contents of the list. Problem now is that when the listItem is selected, it doesn't get the

[android-developers] Re: How can I pass a file created in my activity to another activity

2009-06-27 Thread Mark Murphy
silverburgh wrote: On Fri, Jun 26, 2009 at 5:29 PM, Mark Murphymmur...@commonsware.com wrote: silverburgh wrote: I create a local file in my activity like this: File f = getFileStreamPath(mypicture); How can I pass the URI of this file to another Activity? If the other activity is one in

[android-developers] Spinner style?

2009-06-27 Thread Kent Loobey
Is there a way to set a Spinner's style so that each entry has the but no radio button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How can I pass a file created in my activity to another activity

2009-06-27 Thread silverburgh
On Sat, Jun 27, 2009 at 3:58 PM, Mark Murphymmur...@commonsware.com wrote: silverburgh wrote: On Fri, Jun 26, 2009 at 5:29 PM, Mark Murphymmur...@commonsware.com wrote: silverburgh wrote: I create a local file in my activity like this: File f = getFileStreamPath(mypicture); How can I

[android-developers] Re: Spinner style?

2009-06-27 Thread Kent Loobey
On Saturday 27 June 2009 16:38:20 Kent Loobey wrote: Is there a way to set a Spinner's style so that each entry has the but no radio button? Is there a way to set a Spinner's style so that each entry has text but no radio button? --~--~-~--~~~---~--~~ You

[android-developers] how to call intent_view

2009-06-27 Thread cindy
I want to call INTENT_VIEW to play a local video: private void doPlayCurrentVideo() { mCurrentVideoUri=Uri.parse(mCurrentVideoFilename); Intent intent = new Intent(Intent.ACTION_VIEW, mCurrentVideoUri); try { startActivity(intent); } catch

[android-developers] Re: how to call intent_view

2009-06-27 Thread Mark Murphy
cindy wrote: I want to call INTENT_VIEW to play a local video: private void doPlayCurrentVideo() { mCurrentVideoUri=Uri.parse(mCurrentVideoFilename); Intent intent = new Intent(Intent.ACTION_VIEW, mCurrentVideoUri); try { startActivity(intent);

[android-developers] Re: how to call intent_view

2009-06-27 Thread cindy
Thanks! I found there is no API to generate a image thumbnail for video. How the camcorder of G1 phonedo that ? Thanks! Cindy On Jun 27, 5:30 pm, Mark Murphy mmur...@commonsware.com wrote: cindy wrote: I want to call INTENT_VIEW to play a local video:  private void doPlayCurrentVideo() {

[android-developers] is the SaveRestoreState in ApiDemo bugged?

2009-06-27 Thread biAji
I can't understand what it want to do...Is it a bug? SaveRestoreState.java The file containing the source code shown below is located in the corresponding directory in sdk/platforms/android-version/ samples/... /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the

[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread 楊健
Thank you very much! I think i have to convert the file by myself! On 6月27日, 午後11:52, Mark Murphy mmur...@commonsware.com wrote: 楊健 wrote:  How can i save a Bitmap instance to a *.bmp file?Anyone knows? Option #1: Don't do it. So, for example, if this is a question of uploading data to

[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread 楊健
But the images we use in application are instances of Bitmap : ( On 6月28日, 午前2:43, Romain Guy romain...@google.com wrote: BMP is not supported on Android. And why is it strange? PNG and JPG are widely used formats across platforms. On Sat, Jun 27, 2009 at 7:32 AM, 楊健y...@cycomtech.co.jp

[android-developers] Re: How to save a Bitmap instance to a *.bmp file.

2009-06-27 Thread Romain Guy
JPG and PNG are also bitmaps. 2009/6/27 楊健 y...@cycomtech.co.jp: But the images we use in application are instances of Bitmap : ( On 6月28日, 午前2:43, Romain Guy romain...@google.com wrote: BMP is not supported on Android. And why is it strange? PNG and JPG are widely used formats across

[android-developers] mapview overlay with button like googlemap

2009-06-27 Thread chouman82
i am having a hard time figuring out how in the google map application, it is able to have buttons on the mapview. I am talking about the textbox and the two arrow buttons that show up after you do a search. The textbox and the two arrows also does not stay on screen when you pan the map.