[android-developers] Re: finishing subactivity after some perticular time

2009-05-28 Thread Ask
Hi Macro, You are right and I know this but this can be applicable only when you are invoking sub activity that u had created so that u can write ur logic in that. And My problem is, I am invoking the activity for the phone dialer application using startActivity so I dont have control on the

[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-28 Thread Android Users
You have to be careful with the context in which you are using an activity group. I encountered this problem when i was trying to show a dialog in an activity but with different context. So if you are using any context as parameter, just verify it.

[android-developers] Help with google uploader application

2009-05-28 Thread Sujay Krishna Suresh
Hi everyone, i'm trying to build an application that captures an image shares it... 'm calling the inbuilt camera application with the following code code Intent i = new Intent(android.media.action.IMAGE_CAPTURE); startActivityForResult(i, 0); /code N my on activity result is

[android-developers] Re: HorizontalScrollView reference text

2009-05-28 Thread AusR
Filed: #2781 On May 27, 3:16 pm, Romain Guy romain...@google.com wrote: Oops, it's a copy/paste. My bad :) Do you mind filing a bug at b.android.com? On Wed, May 27, 2009 at 7:08 AM, AusR austinjr...@gmail.com wrote: From the page:

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-05-28 Thread chen hence
i got the problem too. but i fixed by use the icon which can hlep you to create the Android XML file,which is is just left of the debug icion. 2009/5/27 Raphael r...@android.com On Mon, May 25, 2009 at 5:10 PM, androg roger.weinhei...@gmail.com wrote: I get this error with all three

[android-developers] Re: getLastKnownLocation() always returns null. What am I doing wrong?

2009-05-28 Thread chen hence
can you send me your full codes? im on a project on gps. Thanks for your help. Hence Chen 2009/5/22 pawpaw17 georgefraz...@yahoo.com I'm having no luck getting getLastKnownLocation to return a non-null value in the Android emulator running in Eclipse. The following call always returns null:

[android-developers] Re: Problem with MapActivity on the 1.5 release

2009-05-28 Thread sagar.indianic
write uses-library android:name=com.google.android.maps / as a child of appliaction tag in anroidmenifest.xml file. also write uses-permission android:name=android.permission.INTERNET/ uses-permission uses-permission

[android-developers] Re: getLastKnownLocation() always returns null. What am I doing wrong?

2009-05-28 Thread Saurav Mukherjee
as far as i know u cannot connect to gps usin the emulator... On Thu, May 28, 2009 at 12:39 PM, chen hence hencechen...@gmail.com wrote: can you send me your full codes? im on a project on gps. Thanks for your help. Hence Chen 2009/5/22 pawpaw17 georgefraz...@yahoo.com I'm having no

[android-developers] How to achieve android project's Internationalization

2009-05-28 Thread stonestrange
hi,guys. I want to make my android project Internationalization,but i don't know how to achieve it. I have searched on the internet,and just know i have to make values-xx file in \res.I want to know what should i do about the code. thank you. --~--~-~--~~~---~--~~

[android-developers] Canvas.drawPoint() is faster than Bitmap.setPixel()?

2009-05-28 Thread Keith Wiley
I am a little surprised that when drawing many individual pixels to a canvas, I get much faster performance from Canvas.drawPoint with a Paint object than I get with Bitmap.setPixel with a direct color. First, I would expect the Paint object to be more complicated than a numerical color. Second,

[android-developers] Application.onPause()? Is there a hook like this?

2009-05-28 Thread Matthias
Hi, I want to unregister my location listeners whenever the app is hidden by another application. I cannot use the onPause() hook in my main activity, because that hook will also be called when an activity of my app is hidden by another activity of my own app (in which case I do not want to

[android-developers] Re: Problem with Internet connection through emulator

2009-05-28 Thread Chronos
Thanks for the reply - if anyone has a simple setup for the local proxy, plz post it, since I am not likely to investigate this problem any further. On 25 Mai, 12:16, David Turner di...@android.com wrote: It's a known bug in the 1.5 emulator. It only happens under specific network conditions

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
Hm, so I just peeked at the source code of the Google Maps app on Android, because they seem to get it right: if you have GPS enabled, then it will stay on if the main Maps activity is hidden by another activity of the same app, e.g. the Maps history screen, but it will turn off when pausing the

[android-developers] configChanges and onConfigurationChanged()

2009-05-28 Thread Chronos
Hello there ;) I am still confused about configuration changes. I considered this a bug in earlier API versions and didn't care much about it. But since this behaviour is still the same in the 1.5 SDK, I wonder if I do not misunderstand something completely... :/ If I want to handle a change of

[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Gautam
I need to make sure, that onDestroy returns only after proper clean up by the background thread. Else (according to my understanding) OS may kill the process hosting the service before proper cleanup. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Problem with MapActivity on the 1.5 release

2009-05-28 Thread mobilekid
Thanks, but It's not that, I have all three declarations in my manifest. On May 28, 8:10 am, sagar.indianic sagar.india...@gmail.com wrote: write         uses-library android:name=com.google.android.maps / as a child of appliaction tag in anroidmenifest.xml file. also write        

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
okay, so sActivityReference is a java.lang.ref.WeakReference, so apparently this is related to something else (memory management stuff I guess?). Any other ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Extremely frustrating = TextView in ScrollView - Scroll to bottom?

2009-05-28 Thread skink
On 28 Maj, 01:28, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi guys, It appears that plenty of people have asked about this in newsgroups, but no solution offered. textView.setText(s); try: tv.setText(s); sv.post(new Runnable() { void run() { sv.scrollTo(0,

[android-developers] view Log on device

2009-05-28 Thread Sam
hi, I want to view the Log on device i.e the System.out.println(); I am able to view on DDMS but how to view on device screeen while running an apk file --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Problem with Internet connection through emulator

2009-05-28 Thread David Turner
If you're on Windows, I used to use FreeProxy succesfully a few years ago to deal with an anal-retentive corporate proxy. It has a rather nice GUI to setup everything. http://www.handcraftedsoftware.org/index.php?page=5 On Thu, May 28, 2009 at 9:44 AM, Chronos g358279012044...@gmail.com wrote:

[android-developers] installing android os

2009-05-28 Thread Saurav Mukherjee
has any1 tried inostallin the android on a pda? is it always from the source code, or is there any other way??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: The app got crashed on SDK 1.5 which is working fine on SDK 1.0

2009-05-28 Thread Guillaume Perrot
I have the same problem with tabactivity but it's quite random and rare. I'll try to simplify the layout... On 11 mai, 18:51, hina naz hinana...@gmail.com wrote: *How to earn money please visit my site * *http://latesttechnologyinfo.com/* --~--~-~--~~~---~--~~

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
I found a workaround, but it's a hack, so I'm still open for better ideas. I found this to do exactly what I need: in the main activity of my app: @Override protected void onPause() { super.onPause(); ActivityManager am = (ActivityManager) getSystemService

[android-developers] TextView Highlight/Select Issue

2009-05-28 Thread mscwd01
Hey, I have a ListView where each row is a layout inflated from an xml file. Within each layout I have a TextView which is defined by the following: TextView style=@style/MenuItem android:paddingLeft=10sp android:textColor=@drawable/menu_item / The style attribute sets the font size and style,

[android-developers] android test

2009-05-28 Thread danielececil...@gmail.com
Hi, I am writting unit tests on my Android project. I would like to test whether a specific dialog window appears when i click on a button. For example, I have : --Begin Code - public class MyDialog extends Dialog {

[android-developers] Re: WebView.addJavascriptInterface problems

2009-05-28 Thread blindfold
I can use the addJavascriptInterface() mechanism to pass strings and ints (as function return values) from Android to Javascript, but is it also possible to pass on an entire array (of ints) in one go, to next iterate over its elements in Javascript? So far that does not seem to work for me,

[android-developers] Custom dialog background

2009-05-28 Thread illyge
Hello! I want to create custom dialog. I want to use my png drawable as background for it. I would like the background to be expandable vertically and it would be good if it was of constant width. Another requirement is that the top part of the drawable must be background for the title and also

[android-developers] Re: Help with google uploader application

2009-05-28 Thread Sujay Krishna
i found my mistake i forgot to add the EXTRA_STREAM in the extras... now its workin fine... if anyone is need of such an app jus send me a request... On May 28, 11:35 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: Hi everyone,                i'm trying to build an application

[android-developers] How to share non-sqlite( shared Preference) data over Content Provider.

2009-05-28 Thread sukumar bhashyam
hi, I looked into some examples of sharing data to other apps using content Provider. All these examples talks about sharing sqlite dbs. I need to share data under shared Preferences of my app to other apps using content Provider. Can I use content Provider to do that ?. Please let me know some

[android-developers] Is there any chance that there will be ADP2?

2009-05-28 Thread szeldon
Hi, I've read: http://groups.google.com/group/android-developers/browse_thread/thread/ba29f880345c03aa http://www.google.com/support/forum/p/Android%20Market/thread?tid=55c6a8a72f53961fhl=en but both discussions seem a little outdated. At Google IO there were free HTC Magic phones (unlocked as

[android-developers] Re: Is there any chance that there will be ADP2?

2009-05-28 Thread mscwd01
http://code.google.com/android/adc/ On May 28, 12:47 pm, szeldon szeldon@gmail.com wrote: Hi, I've read:http://groups.google.com/group/android-developers/browse_thread/threa...http://www.google.com/support/forum/p/Android%20Market/thread?tid=55c... but both discussions seem a little

[android-developers] Re: Is there any chance that there will be ADP2?

2009-05-28 Thread mscwd01
^ In that link it mentions phones were given out to aid people for ADC 2 so I guess these would be configured as such. I guess it wont be long before they're updated. On May 28, 1:08 pm, mscwd01 mscw...@gmail.com wrote: http://code.google.com/android/adc/ On May 28, 12:47 pm, szeldon

[android-developers] Re: How to achieve android project's Internationalization

2009-05-28 Thread Mark Murphy
I want to make my android project Internationalization,but i don't know how to achieve it. I have searched on the internet,and just know i have to make values-xx file in \res.I want to know what should i do about the code. Close. You do not create values-xx files, you create values-xx

[android-developers] how to have icons in buttons?

2009-05-28 Thread Saurav Mukherjee
can anyone tell me how to have buttons in a 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@googlegroups.com To unsubscribe

[android-developers] Re: how to have icons in buttons?

2009-05-28 Thread Mark Murphy
can anyone tell me how to have buttons in a button? Option #1: Use ImageButton Option #2: Use Button and android:drawableTop (or related properties) to put an image above the normal text caption -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-developers] Find whether trackball events ended or not

2009-05-28 Thread iDeveloper
Hi I want to move an image around the screen according to the trackball movement. I am able to capture the movements using the onTrackballEvent method. But this is being called for very small float values (I believe for each rotation?) of the trackball. Now as X and Y positions of views

[android-developers] 1.5: Phone no longer stays awake when Stay Awake is enabled under Development settings

2009-05-28 Thread Rob Franz
Has anyone else noticed this? It's slightly annoying. I downloaded my version of 1.5 from https://android.clients.google.com/updates/partner/signed-kila-ota-148830.de6a94ca.zip Thanks Rob --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to share non-sqlite( shared Preference) data over Content Provider.

2009-05-28 Thread sukumar
hi, I looked into some examples of sharing data to other apps using content Provider. All these examples talks about sharing sqlite dbs. I need to share data under shared Preferences of my app to other apps using content Provider. Can I use content Provider to do that ?. Was there any other way

[android-developers] Re: How to share non-sqlite( shared Preference) data over Content Provider.

2009-05-28 Thread Mark Murphy
I looked into some examples of sharing data to other apps using content Provider. All these examples talks about sharing sqlite dbs. I need to share data under shared Preferences of my app to other apps using content Provider. Why? Other than the UI framework, shared preferences are

[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-28 Thread Taísa Cristina
When I need to show dialog windows I use my parent context. That was the only way I could show them with no BadTokenException. But when showing a search window I don't use any context as parameter. It seems that my embedded activity does not have the window token, but its parent. However a

[android-developers] Re: Instrumentation for Dialog's and alike

2009-05-28 Thread danielececil...@gmail.com
Hi, Do you solve your problem with the dialog window? I try to verify Dialog component too. But I do not find any help. Cecilia On Apr 30, 9:36 pm, Rick richardgc...@gmail.com wrote: I've seen a few posts with no answer. Consider this scenario: I use Android's InstrumentationTestCase to run

[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-28 Thread Taísa Cristina
I tried using setDescendantFocusability(FOCUS_AFTER_DESCENDANTS) on my ActivityGroup layout, and then I got a different error message: ERROR/AndroidRuntime(871): android.view.WindowManager$BadTokenException: Unable to add window -- token

[android-developers] Re: how to have icons in buttons?

2009-05-28 Thread Saurav Mukherjee
thanks dude... i used the 2nd option n it worked wonderfully... On Thu, May 28, 2009 at 5:50 PM, Mark Murphy mmur...@commonsware.comwrote: can anyone tell me how to have buttons in a button? Option #1: Use ImageButton Option #2: Use Button and android:drawableTop (or related properties)

[android-developers] Webview: CSS Gradients vs Background Images

2009-05-28 Thread Evan Ruff
Hey guys, I've got a general performance question. In my Webview app, I'm trying to display a div (statically-sized) that is 100px x 200px. The div has a linear gradient that goes the whole 200px. From a performance standpoint, do you believe that it would be fastest to use an optimized 1px

[android-developers] Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread twan
Goodmorning, A call to notifyDataSetChanged() on a ArrayAdapter causes all items in a listview to redraw. This is quite ineffecient. At swing you can control which items (or which range of items) redraw. Is this also possible with android? Kind regards, TWan

[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Streets Of Boston
Then you should call join() in onDestroy after calling myBackgroundThread.stopThread() causing onDestroy to wait until your background thread to end. Make sure that your background thread never blocks or takes too long to shut-down. If onDestroy is waiting too long, your user's ain't gonna be

[android-developers] Android default color madness, primary_text_light is color black?

2009-05-28 Thread twan
Good morning, I got a little textview defined in layout xml: === TextView android:id=@+id/tvCategory android:layout_width=wrap_content android:background=@android:color/background_light android:layout_height=wrap_content android:padding=2dp

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread Mike Hearn
There is an Application.onCreate() and an Application.onDestroy() you can use. These are not guaranteed to be called when your app isn't visible, in fact destroy isn't guaranteed to be called at all, but that's OK for your use case. Apparently, the way Maps is doing it is they set a weak ref in

[android-developers] Re: Android default color madness, primary_text_light is color black?

2009-05-28 Thread Mike Hearn
Confusing but probably deliberate, the most important color when thinking about text is of course the background color it will be displayed on top of On May 28, 4:04 pm, twan twa...@gmail.com wrote: Good morning, I got a little textview defined in layout xml: === TextView

[android-developers] Re: Android default color madness, primary_text_light is color black?

2009-05-28 Thread Marco Nelissen
I think 'light' refers to a theme in this case, and if you're using the light theme, you get a light background with dark text on it. On Thu, May 28, 2009 at 7:04 AM, twan twa...@gmail.com wrote: Good morning, I got a little textview defined in layout xml: === TextView

[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Mike Hearn
Your understanding is wrong - your service can be killed at any time without onDestroy being run. I'm not actually sure why onDestroy even exists in this case, I found it was much more common for the kernel to OOM kill my process than it was for the AM to nicely request my service to quit. Don't

[android-developers] Re: Problem with MapActivity on the 1.5 release

2009-05-28 Thread Mike Hearn
I doubt it'll help, but you probably should not put your application into a single package called main. The point of Java packages is to avoid conflicts when code is loaded together. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Android Icon Templates Pack doesn't download fully

2009-05-28 Thread Chander Pechetty
Has anyone download the template pack zip file from http://android-developers.blogspot.com/2009/05/android-icon-guidelines.html I get the following error as the download never goes through--- signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part

[android-developers] Re: Android Camera Garbage Collection.

2009-05-28 Thread Mike Hearn
If you want to distribute the app to existing Android phone owners, you're out of luck. You'll have to file a bug. How does the Camera app itself handle this situation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: What's the best way to handle an task w/progress dialog on orientation change?

2009-05-28 Thread Mike Hearn
You don't need a Service, that's way too complicated for what you need. Especially if you use the RPC stuff (optional but the docs don't tell you that!) If you create the progress dialog using the onCreateDialog() method then it'll be automatically reconstructed after an orientation change. To

[android-developers] Re: Android Icon Templates Pack doesn't download fully

2009-05-28 Thread Chander Pechetty
never mind. finally got it on the 5 attempt ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread Streets Of Boston
If it is just a refresh and not an entirely new list or additions/ removals of elements, use notifyDataSetInvalidated() instead. I think it's a bit more efficient. But, as far as i know, you can't specifiy a range of elements. But you can optimize it yourself. I do this at times using the

[android-developers] Simple Canvas Question

2009-05-28 Thread Gavin Aiken
Hi All, I want to fill a bitmap with a colour. I have the a,r,g b values. The techinique I'm using is; public Bitmap evaluate(Bitmap input) { Canvas c = new Canvas(input); c.drawARGB(a, r, g, b); return input; } But my changes are not apparent in the returned

[android-developers] Re: What's the best way to handle an task w/progress dialog on orientation change?

2009-05-28 Thread Streets Of Boston
Hi Mike, Is it safe to cache a Handler (in a static variable)? Some objects, such as Activities or Drawables, are not safe to cache statically and share amongst multiple activity-instances due to possible memory leaks (memory referencing to destroyed activities that doesn't get cleaned up in a

[android-developers] Re: Google Android Maps API

2009-05-28 Thread Lex
Finally! I must not have seen the woods for the trees. I guess I got pretty confused about to what extent the Maps are a part of Android. I assume we should treat it as an external add-on despite the fact it's from the same company. Thanks a lot, Mark! On May 26, 1:54 am, Mark Murphy

[android-developers] Re: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-05-28 Thread Katsiaryna
I have the same problem as you: after upgrading to 1.5 I can't create movie from the resources neither using Movie.decodeStream nor Resources.openMovie. Both functions return null. On May 27, 5:52 am, Freshman csato...@gmail.com wrote: com'on guys, Has anyone faced this issue with Android 1.5

[android-developers] Re: Why the Android docs are inconsistent?

2009-05-28 Thread Hamy
Agreed. Please file doc bugs for the benefit of is all. Hamy On May 27, 11:12 pm, Raphael r...@android.com wrote: Please file doc bugs athttp://b.android.com-- the API probably evolved before 1.0 without the javadoc being updated. R/ On Wed, May 27, 2009 at 6:51 PM, havexz

[android-developers] Re: Google Android Maps API

2009-05-28 Thread Mark Murphy
I guess I got pretty confused about to what extent the Maps are a part of Android. I think, internally, they had considered it a separate component from the outset. However, because it was bundled with the SDK so tightly, it was easy for us to think that it was going to be universally

[android-developers] Re: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-05-28 Thread Streets Of Boston
Judging from your resource name (gif_animation), it looks like you try to open an image (gif image) as a movie... If it's not a movie/video, i'm not entirely surprised that opening it as a movie fails. (an animated gif is not a movie) On May 22, 2:52 am, Freshman csato...@gmail.com wrote: I've

[android-developers] Re: Different UI behavoir between Activity and InputMethodService (test code and video provided)

2009-05-28 Thread www.rzr.online.fr
hi, If it matters I reported it to : http://code.google.com/p/android/issues/detail?id=2788 See you there --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Different UI behavoir between Activity and InputMethodService (test code and video provided)

2009-05-28 Thread Marco Nelissen
I suspect this is not a bug. Your button is probably not highlighting because it's not focused, because the text view that you're typing in to retains focus. On Thu, May 28, 2009 at 8:18 AM, www.rzr.online.fr www.rzr.online.fr@ gmail.com wrote: hi, If it matters I reported it to :

[android-developers] Re: styled text on button?

2009-05-28 Thread Edward Falk
IIRC, Button is a subclass of TextView, so whatever works with TextView should work with button. If you define the button text with resources, then the usual font, br /, and other tags should work just fine. Haven't tried it myself, though. --~--~-~--~~~---~--~~

[android-developers] Re: Android Camera Garbage Collection.

2009-05-28 Thread Robert Green
Have you guys tested it previewing to a surfaceview instead? I'm wondering if it doesn't behave differently there. On May 28, 12:25 am, karan parikh karan.n...@gmail.com wrote: Hey All,       @Robert: Yes. I am talking about the same function call. If you read the documentation for that, It

[android-developers] Re: Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 8:17 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Judging from your resource name (gif_animation), it looks like you try to open an image (gif image) as a movie... If it's not a movie/video, i'm not entirely surprised that opening it as a movie fails. (an

[android-developers] Re: Android Camera Garbage Collection.

2009-05-28 Thread Robert Green
Karan, Option 1 is no good - only stubs are in Android.jar for things like that. Most of that code is native. You'd need a custom build of Android. If it was just an issue of java, you could write your own code but since it's native, you're right, portability is the problem. Option 2 is no

[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 7:12 AM, Mike Hearn mh.in.engl...@gmail.com wrote: Your understanding is wrong - your service can be killed at any time without onDestroy being run. I'm not actually sure why onDestroy even exists in this case, I found it was much more common for the kernel to OOM

[android-developers] Re: Grayscaling

2009-05-28 Thread Gavin Aiken
Hi Marco, Would you mind giving a brief code snippet of how this might work? I've been trying to get a similar function to run faster but when I use the bitmap the values I thought were written by the canvas aren't there. Kind regards, Gav On Tue, Apr 21, 2009 at 12:21 AM, Marco Nelissen

[android-developers] Re: 1.5: Phone no longer stays awake when Stay Awake is enabled under Development settings

2009-05-28 Thread Keith Wiley
Yep. I have the same problem. I haven't officially reported it because I did a manual install from (presumably) the same file you are using instead of waiting for the official OTA. However, it seems highly unlikely that this problem will be fixed in the next week or so, so I'm sure all

[android-developers] how to have onItemClickListener for setListAdapter(new EfficientAdapter(this));?

2009-05-28 Thread zeeshan
Hi, i need image and text on list view and i am using list 14 example in API demo. i can have image and text in listview but wondering how to implement onItemClickListener for each position anybody help plz --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread Romain Guy
No, notifyDataSetInvalidated() causes the entire content of ListView to disappear. It's even more inefficient than notifyDataSetChanged(). If you want to refresh the content of a specific item, call invalidate() on its View. If you changed the content of the Adapter though, call

[android-developers] Re: Grayscaling

2009-05-28 Thread Streets Of Boston
- Create a mutable bitmap from immutable. But instead of a copy, just create an empty one with the same width and height as the original one. - Create a canvas from this mutable bitmap (new Canvas(mutable)); - Create a ColorFilter object. Set its saturation to 0 (this is one way of doing this).

[android-developers] Re: implementation of onDestroy for a service containing a worker or backround thread

2009-05-28 Thread Gautam
Thanks... The plan is to start the service once (startService()) and never call stopService. I want my service to be running always (will set service.forground() = true). When any activity wants to use the service it would get the service via bind and invoke methods on the service. Also, by

[android-developers] Re: few querieson OpenGL-ES on Android...

2009-05-28 Thread Nightwolf
I gues GLSurfaceView uses OpenGL ES and regular views don't. The first stop is API Demos from SDK. There are few examples under Graphics-OpenGLES. It's hard to tell for sure for the other, but you may want to check following games: 3D Cube Race Demo

[android-developers] video capture doesn't seem to work in 1.5

2009-05-28 Thread zeeshan
Hi dear, i am trying to capture video since a week but still no luck. can anybody help me to figure out what i am missing in the code below: final MediaRecorder recorder = new MediaRecorder(); ContentValues values = new ContentValues(3);

[android-developers] Re: Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread Streets Of Boston
Aha! I stand corrected. That is not what i understood from the API documentation... Romain, could you describe the exact differences (and usage example) of the two? Thanks! About calling 'invalidate()': Does calling invalidate() on a list-item's View cause the 'getView()' method of an Adpater

[android-developers] Re: video capture doesn't seem to work in 1.5

2009-05-28 Thread Marco Nelissen
What do you mean by no luck? Does something crash? Do you get an exception? Does it create the recording file? Is there any data in it? On Thu, May 28, 2009 at 9:25 AM, zeeshan genx...@gmail.com wrote: Hi dear, i am trying to capture video since a week but still no luck. can anybody help

[android-developers] Re: Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread Romain Guy
notifyDataSetInvalidated() is used when the adapter loses all of its content. It's there to tell ListView to stop using the adapter basically. This is usually invoked when you have a Cursor and you call close() on the Cursor. On Thu, May 28, 2009 at 9:27 AM, Streets Of Boston

[android-developers] Re: how to have onItemClickListener for setListAdapter(new EfficientAdapter(this));?

2009-05-28 Thread Marco Nelissen
You don't set a separate OnItemClickListener for each position, you set one for the entire list, and in your click listener you will be told which position was selected. On Thu, May 28, 2009 at 9:05 AM, zeeshan genx...@gmail.com wrote: Hi, i need image and text on list view and i am using

[android-developers] Re: Control which items to redraw? (notifyDataSetChanged with a range)

2009-05-28 Thread Streets Of Boston
Thanks! The fact that it's used to 'tell the list view to stop using the adapter' might actually explain an issue i have with a list of images i show in my own app. :) On May 28, 12:31 pm, Romain Guy romain...@google.com wrote: notifyDataSetInvalidated() is used when the adapter loses all of

[android-developers] remove button backgroundresource!?

2009-05-28 Thread guruk
Hi, i have a quit strange problem, I have a textview in the top and fill some buttons later with: mbs[i].setBackgroundColor(daybgcolor); all fine, but when I also add mbs[i].setBackgroundResource(R.drawable.chart); it kills the text in my textview?!? also when i even dont know what my

[android-developers] Re: UnknownHostException on 1.5 emulator

2009-05-28 Thread Peter Jeffe
OK, got it to reproduce when running with the -tcpdump flag. I've attached the resulting pcap file to the bug report (actually just the DNS records since the entire 15MB compressed file wouldn't upload). Here's an excerpt of the DNS traffic from where it turned bad (starting at 79853): 76915

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
Well, I need to disable the listeners when the app goes into the background, not only when it terminates. I also tested this use of WeakReference, simply to see how it behaves, and it didn't work for me at all. Regardless of whether the app was paused to display another application or to display

[android-developers] Re: ScrolllBar style

2009-05-28 Thread karthikr
Hi Guys, Can someone please help me with this regard? I need this functionality in my app.. Even setting the scroll bar image to a particular color on scrolling and changing it while idle will do.. Regards, R.Karthik --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to open wbxml stream ?

2009-05-28 Thread kaoul
up On 24 mai, 22:19, kaoul kaoul@gmail.com wrote: Hello, I would like to read and writewbxml. I found org.xmlpull.v1.XmlSerializer but it seems to help just for writing. Thank you for giving me some ideas. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Netbook with Android

2009-05-28 Thread cookdav
Bump! [What's up with this? Base question got posted back in April, and there's still no answer?] So, is there some BETTER forum for Android questions than this 'Google Group'? I have the same exact question: I read in all the press that Android is considered a 'mobile OS' that netbooks are

[android-developers] Re: Netbook with Android

2009-05-28 Thread Al Sutton
It's more a case of there is no good answer yet. Plans for Android on netbooks haven't been formally announced so if you really want one now you should look around for a group or groups who are porting it to netbooks to ask them, or you'll have to sit and wait until something is announced.

[android-developers] screenBrightness of 0.0 == ???

2009-05-28 Thread Brad Fullmer
In my app I want to completely dim the screen for a period of time and later restore the brightness. Dimming works fine: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 0.0f; getWindow().setAttributes(lp); But this seem to put the phone into an odd state

[android-developers] Drawing Masked Bitmaps

2009-05-28 Thread Salentinux
Hi all, I want make a Mask effect with 2 bitmaps. The first has to be masked by the second. What is the best way? I need it to redraw portions of the screen the are involved in animations. I have an object(bitmap) that moves on the screen and i need to redraw with a mask its last position with

[android-developers] Re: Netbook with Android

2009-05-28 Thread Marco Nelissen
On Thu, May 28, 2009 at 10:37 AM, cookdav david.hubert.c...@gmail.comwrote: Bump! [What's up with this? Base question got posted back in April, and there's still no answer?] This group is for asking question about development using the Android SDK. Asking which netbooks might run Android

[android-developers] Problem while streaming amr file

2009-05-28 Thread Zhubham
Hi, I am trying to stream a hinted AMR narrowband file through darwin streaming server. (i) This is not getting streamed at all. RTSP Describe is followed by Teardown. I use the api demo apk and c that it is failing @ prepare (). I am able to stream this file through QuickTime Pro. (ii)

[android-developers] Re: word wrap on button

2009-05-28 Thread Keith Wiley
I agree that this was frustrating in the past, but since installing 1.5 I see buttons wrapping text automatically now. I didn't even ask. :-) On May 27, 3:04 pm, jonathan topcod...@gmail.com wrote: the possible button width are fill_parent or wrap_content, is there a way to make it wrap

[android-developers] can not find a file in dynamically loaded jar

2009-05-28 Thread sherry
I'm trying to dynamically load a jar file, then load the classes inside the jar. The code is simple but I keep getting ClassNotFind exception. The class is in the jar. How can I figure out what is wrong? import java.net.URL; import java.io.IOException; import java.net.URLClassLoader; import

[android-developers] loading external data on local file in WebView

2009-05-28 Thread pius.lee
when I load external web page, image or javascript file from local webpage. I can't see external image and can't load javascript or webpage. but I can only see local image. why I can't load external javascript, webpage or image? here is the HTML source. (of course, I filled right [daum open API

[android-developers] can't loading external webpage or image, javascript in WebView

2009-05-28 Thread pius.lee
when I load external web page, image or javascript file from local webpage. I can't see external image and can't load javascript or webpage. but I can only see local image. why I can't load external javascript, webpage or image? here is the HTML source. (of course, I filled right [daum open API

[android-developers] loading external data on local file in WebView

2009-05-28 Thread pius.lee
when I load external web page, image or javascript file from local webpage. I can't see external image and can't load javascript or webpage. but I can only see local image. why I can't load external javascript, webpage or image? here is the HTML source. (of course, I filled right [daum open API

  1   2   3   >