[android-developers] Re: Preventing WakeLock Under-Locked exception

2010-02-05 Thread Chander Pechetty
release your lock in onPause and not in onDestroy as the activity won't be destroyed. On Feb 4, 10:42 pm, lipinski stevelipin...@gmail.com wrote: Thanks, but my intent is to prevent the system from dimming/locking the screen for a configurable amount of time - since there will likely be no

[android-developers] Gps sorting question

2010-02-05 Thread Jiri
How does one calculate the sorting of gps data in an order of close - far. So when I have a list of geopoints, and I know my own location, how do I sort that data based on the closest by points. Can I consider each geo point data as x and y positions and then do some trigonometry on the points

[android-developers] Layout Highlight

2010-02-05 Thread Sasikumar.S
Hi, Can any one know how to highlight when we touch the layout? In my program i'm adding adding a textview to Linear Layout. When user touchs the Linear Layout it should perform some action. Its all working. But when user touches the screen. Its not highlighting. So it is not looking good..

[android-developers] Custom AlertDialog

2010-02-05 Thread Sasikumar.S
Hi, How to create a custom dialog box in android? Any example program?.. -- Thanks Regards Sasikumar.S -- 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

[android-developers] Finding Layout in Activity

2010-02-05 Thread Sasikumar.S
Hi, In a single activity I'm showing more than one layout using setContentView(); How to get the current Viewing Layout?... -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Layout Highlight

2010-02-05 Thread haric zhu
HI Sasikumar.S, you can set a xml file as it's background like ListView default action add this -- android:background=@android:drawable/list_selector_background to your layout file 2010/2/5 Sasikumar.S sasikumar.it1...@gmail.com Hi, Can any one know how to highlight when we touch the

Re: [android-developers] Finding Layout in Activity

2010-02-05 Thread haric zhu
Yes, you should try this LayoutInflater _inflater = LayoutInflater.from(context); to relect the layout file into your code Like: View view= _inflater .inflate(R.layout.tool_bar_ menu_item, parent, false); this view object is just you want. 2010/2/5 Sasikumar.S

Re: [android-developers] Layout Highlight

2010-02-05 Thread Sasikumar.S
Thank U Haric. I got it. But one more thing is, I need to set a image to that Layout background. Then how can i set these background too...? Pls ?.. On Fri, Feb 5, 2010 at 4:58 PM, haric zhu haric@gmail.com wrote: HI Sasikumar.S, you can set a xml file as it's background like ListView

Re: [android-developers] Finding Layout in Activity

2010-02-05 Thread Sasikumar.S
Thank U haric. I will try this and then i will inform you. On Fri, Feb 5, 2010 at 5:01 PM, haric zhu haric@gmail.com wrote: Yes, you should try this LayoutInflater _inflater = LayoutInflater.from(context); to relect the layout file into your code Like: View view= _inflater

[android-developers] Activity seems to get attached to Dialer context?

2010-02-05 Thread draf...@gmail.com
Hi all, I currently have an application that listens out for the out going call broadcast, when I recieve the broadcast I pop up an activity on the screen with some user information. The user can then press end to remove this screen. It all works fine however I have a problem when I hold down

[android-developers] DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Emre A. Yavuz
Hi, We need to convert XML messages to a stream or string which can then be sent via sockets. However, Android does not support the standard javax classes that are used to convert a DOM XML object to a stream. Besides, as far as I know, DOM parser reads all of the XML document into the

Re: [android-developers] DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Mark Murphy
I was wondering whether anybody, who has experience using the XmlPullParser class or others on the Android platform, has anything to say about its efficiency, well-known problems if any, suggestions for a better alternative, links for sample code etc. I saw one study (sorry, don't have the

Re: [android-developers] Android drivers removed from mainstream kernel

2010-02-05 Thread Greg Donald
On Thu, Feb 4, 2010 at 7:41 PM, Dianne Hackborn hack...@android.com wrote: Nope, it's more important for you to get on a soapbox. If that's what it takes to get our Marketplace stats fixed.. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are

Re: [android-developers] Custom AlertDialog

2010-02-05 Thread TreKing
On Fri, Feb 5, 2010 at 5:01 AM, Sasikumar.S sasikumar.it1...@gmail.comwrote: How to create a custom dialog box in android? Create your custom layout, inflate it, and set it as the view for the dialog in question.

[android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Robert Green
I've used all 3. Which one to use depends a lot on what you need to do. SAX is def quick but doesn't necessarily have the easiest interface to use. I use it and it's not that hard but I've found that for really simple parsing, PullParser is a little bit more straight- forward. With either of

Re: [android-developers] Gps sorting question

2010-02-05 Thread Frank Weiss
It's that simple unless you want to account for latitude compression or obstacles. Latitude compression is usually negligible if the latitude bounds are small (0.2 degrees), otherwise use great circle computation, which involves more calculation. Most nearness calculations are done as the bird

Re: [android-developers] Custom AlertDialog

2010-02-05 Thread Christoph Renner
Hi Sasikumar You can create an instance of the class Dialog or if its more complex create a new class which extends Dialog. On that instance call setContentView() Here is a simple example: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog You can find more examples using

Re: [android-developers] Android drivers removed from mainstream kernel

2010-02-05 Thread Jebediah Huang
On Fri, Feb 5, 2010 at 7:31 AM, David Turner di...@android.com wrote: I think you may only be hearing one side of a pretty complex story. I want to hear your story also. Where to read this? -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Android drivers removed from mainstream kernel

2010-02-05 Thread Greg Donald
On Thu, Feb 4, 2010 at 6:38 PM, Jebediah Huang jebediah.hu...@gmail.com wrote: On Fri, Feb 5, 2010 at 7:31 AM, David Turner di...@android.com wrote: I think you may only be hearing one side of a pretty complex story. I want to hear your story also. Where to read this? Indeed. I'm a long time

Re: [android-developers] Bug? Invalidate causing unnecessary redraws.

2010-02-05 Thread Romain Guy
We've identified and fixed the bug. On Tue, Feb 2, 2010 at 12:47 PM, Keean Schupke keean.schu...@googlemail.com wrote: When I have two views directly next to each other in a layout, invalidating one causes _both_ to redraw. If I separate them with a one pixel margin (or a View used as a one

Re: [android-developers] Re: Preventing WakeLock Under-Locked exception

2010-02-05 Thread Dianne Hackborn
setKeepScreenOn() does prevent it from locking; it is just another way of setting the window flag to keep the screen on. PLEASE use these APIs instead of wake locks if keeping the screen on is associated with an activity or window. There are so many advantages: no need to get an additional

[android-developers] Trusting SSL certificates

2010-02-05 Thread Bob Lee
I couldn't find any good docs on trusting self-signed certs, so I wrote some up: http://crazybob.org/2010/02/android-trusting-ssl-certificates.html Hope this is useful, Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: Re: [android-developers] sreadahead.c application is not compiling with android bionic library

2010-02-05 Thread Dianne Hackborn
Also this really does not belong on android-developers. Please move further discussion to android-porting; thanks! On Thu, Feb 4, 2010 at 8:26 PM, David Turner di...@android.com wrote: As said On Thu, Feb 4, 2010 at 7:11 PM, md.zafar.z...@gmail.com wrote: Hello David all, Thank you for

[android-developers] Corrupted Database (SQLiteDatabaseCorruptException: database disk image is malformed)

2010-02-05 Thread Yuvi
Hi developers!! Today I started an application I've written as usual, andfor some unknown reasons it decided to force close. I started it again and I found that all the stored settings were lost. By looking at the Logcat log I found the following error: I/ActivityManager( 62): Starting

[android-developers] Android 2.0.1 / SDK Level 6 or 7 or what?

2010-02-05 Thread Mariano Kamp
I see changed behavior in WebView on 2.0.1 devices, so I just read up (however little there was - very quick read) on WebSettings.getDefaultZoom(). It says Level 7. I checked the 2.0.1 SDK and it returns Level 6. However when checking for the method getDefaultZoom() with reflection, yay, it is

Re: [android-developers] Re: btsocket connected but read zero bytes

2010-02-05 Thread Sean Liao
how come I cannot see the method: Method m = btdev.getClass().getMethod(createRfcommSocket, new Class[] { int.class }); Anything wrong with my dev/sdk env? or is it a hidden API? On Thu, Feb 4, 2010 at 2:33 AM, Bwd scnsoft@gmail.com wrote: Good day. I was able to create a stable

RE: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Emre A. Yavuz
Thanks to you both ... Cheers, Emre Date: Fri, 5 Feb 2010 09:23:54 -0800 Subject: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ? From: rbgrn@gmail.com To: android-developers@googlegroups.com I've used all 3. Which one to use depends a lot on what you

Re: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Carmen Delessio
This article does the comparison for performance. (Perhaps the link Mark was referring to) http://www.developer.com/xml/article.php/10929_3824221_2/Android-XML-Parser-Performance.htm *Conclusion:* *When Parsing on the Handset is Required: Stick with SAX* *When parsing of XML on the Android

[android-developers] scrollview dropshadow attributes available?

2010-02-05 Thread Jason Proctor
can i affect the look of the dropshadow that the scroll view shows when there's more available via scrolling? i'm not seeing anything in the scrollview docs. thanks much -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android

[android-developers] How to pause my media

2010-02-05 Thread Rohit
Hi I have an application that plays music. I want the application to get notified when the user plays a YouTube video so that I can pause the music in my own app. Is there a listener I can setup or a Broadcast receiver that I can setup to get notified of when the video is played Thanks Rohit

[android-developers] Re: 'SimpleCursorAdapter' symbol not found and related errors in notepad sample application.

2010-02-05 Thread NoraBora
Remove the first line. import com.tutorials.R; or in Eclipse Ctrl+Shift+o, which is a short-cut for auto-import. On Feb 4, 10:23 am, Swiftguy vikram@gmail.com wrote: Hello All, Im new to Android. Trying to run the 'notepad' application on my local system (building using ANT) Getting

[android-developers] Re: Using StaticLayout with a canvas to draw text.

2010-02-05 Thread NoraBora
Maybe you can try canvas.translate() before draw. On Feb 4, 2:05 pm, julz jmuens...@gmail.com wrote: Hi, I have figured out the static layout this far, but I have no idea how to make it display my text anywhere else but in the top left corner. StaticLayout layout = new StaticLayout(text,

Re: [android-developers] scrollview dropshadow attributes available?

2010-02-05 Thread Romain Guy
It's called the fading edge or the fade Look in the View class. On Fri, Feb 5, 2010 at 3:09 PM, Jason Proctor jason.android.li...@gmail.com wrote: can i affect the look of the dropshadow that the scroll view shows when there's more available via scrolling? i'm not seeing anything in the

[android-developers] Re: Draw clock like minute hand

2010-02-05 Thread NoraBora
There is a AnalogClock widget. you can find the source useful. On Feb 5, 12:37 am, Sonic nitroussi...@googlemail.com wrote: Hi all. Just a quick question, how would i go about implementing a clock like hand that rotates around a centre point to different positions depending on a value.

[android-developers] How to prevent Android emulator using custom mouse cursor?

2010-02-05 Thread I.E.
Hello, Is there a way to prevent the Android emulator using the custom mouse cursor (black with white outline), and instead use the normal system cursor? This is the cursor that's shown when your mouse enters the emulator window. -- You received this message because you are subscribed to the

Re: [android-developers] Re: Preventing WakeLock Under-Locked exception

2010-02-05 Thread Robert Lau
On Feb 5, 2010 12:21 AM, Chander Pechetty cspeche...@gmail.com wrote: release your lock in onPause and not in onDestroy as the activity won't be destroyed. On Feb 4, 10:42 pm, lipinski stevelipin...@gmail.com wrote: Thanks, but my intent is to prevent... -- You received this message because

[android-developers] Re: Immediately destroy activities

2010-02-05 Thread Sergii Biloshytskyi
resolved -- 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,

[android-developers] Re: Layout Highlight

2010-02-05 Thread NoraBora
In 'list_selector_background' you can set your default background image with no state and set highlight image with state_pressed or state_focused. http://developer.android.com/reference/android/widget/ImageButton.html On Feb 5, 8:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank U

[android-developers] gluUnProject again - opengl bug?

2010-02-05 Thread Tim Newsham
Hi, I'm having problems with gluUnProject. I saw other discussions on this message base regarding this function and they did not solve my problem. When I use GLU.gluUnProject I get values that are close, but not quite right. I'm manually keeping track of my model matrix and I replicate the

[android-developers] Web Inspector

2010-02-05 Thread SM
Can you enable Web Inspector APIs on android? I do not see the WebCore/ inspector classes ported to android. -- 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

[android-developers] android 3DOF controller - call for developers

2010-02-05 Thread Jubei
Just wanted to let the community know that Ive released the source code and I'd be more than happy to accept code contribution to the project (even if the source isn't very readable). http://code.google.com/p/androidcontroller/ If anybody is interested in helping out drop me a line. -- You

[android-developers] Signing in to Google for Google Document access

2010-02-05 Thread Jonathan Nalewajek
I am working on an app where the user inputs some numbers, my app performs a few relevant calculations, and displays the result. However, I would like it if the user could somehow save this value to a Google Spreadsheet. My problem is, I have no idea how to authenticate with Google. I have been

[android-developers] Re: gluUnProject again - opengl bug?

2010-02-05 Thread Streets Of Boston
I found issues with the gluUnProject as well. I wrote a new one for my own app (The Gube) and it works very well. I use gluUnproject for tracking 2D finger-touches and flings into the 3D model-view/space. You can do a gluUnproject search on this forum and you will find this:

[android-developers] image in fadingedge

2010-02-05 Thread Jorgesys
Hi how could i set an image (left and right position) instead of fadingedge in a Scrollview??? -- 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

[android-developers] Re: gluUnProject again - opengl bug?

2010-02-05 Thread Tim Newsham
Could you explain how your version might differ from the original version? The version in the standard library: computes M = (Projection x Model)^-1 puts world into a homogenous vector V, with x/y coordinates mapped from screen coords to -1.0 to 1.0 and z coordinate mapped from

Re: [android-developers] Re: Layout Highlight

2010-02-05 Thread haric zhu
Have you got my layout file, and if you have any other problem about this issue, please email me:) 2010/2/6 NoraBora noranb...@gmail.com In 'list_selector_background' you can set your default background image with no state and set highlight image with state_pressed or state_focused.

[android-developers] Decreased download rates or Console update problem?

2010-02-05 Thread Armond Avanes
Hi Guys, Has anyone noticed significant download slowdown for his application? Is it just a developer console update problem or something else is going on behind the scene? Thank you, Armond -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Problem in playing video

2010-02-05 Thread Manoj
Hi please help me ... I am getting the following error when i try to play video in the videoview. 02-06 12:50:28.611: WARN/MediaPlayer(512): info/warning (1, 44) 02-06 12:50:28.841: INFO/MediaPlayer(512): Info (1,44) 02-06 12:50:28.841: DEBUG/MediaPlayer(512): getMetadata 02-06 12:50:34.791:

[android-developers] Re: android 3DOF controller - call for developers

2010-02-05 Thread Bob Kerns
Just a thought -- why only 3 degrees of freedom? You've got these nice accelerometers...they can do more than sense a gravitational field... I've bookmarked it to have a look at your code. I'll keep you in mind if I have anything to contribute at some point. On Feb 5, 7:07 pm, Jubei