[android-developers] Re: KLM file that works in DDMS?

2009-10-18 Thread XC He
Hi Mark, You can try this kml file. The name field is encoded with big5, you can ignore it. 2009/10/19 Mark Murphy > > Could anyone upload a small example file that will work? Every file > I've tried fails. Is this function completely broken? All attempts > result in no points being listed. No e

[android-developers] Starting Service at the time application starting automatically

2009-10-18 Thread pink 444
Hai, I have an application ,in which i have to start a service ( in same process) automatically means without user intervention and that service should run till it is stopped. How can i implement service so that i t can be started automatically? Any help would be ap

[android-developers] Re: KSoap - How to pass a dataset to a dotNet webservice?

2009-10-18 Thread gjs
Hi, I'd think your asking in the wrong forum, a (microsoft proprietary) Dataset object is usually associated with .net development. Where would your microsoft Dataset object be coming from for you to send it from an android device to a dotnet webservice ? Suggest you try more googling eg - htt

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Gil
Any more left? I wanna have one . Thanks... On Oct 16, 11:41 am, Kenneth Adam Miller wrote: > Who wants to be in Google wave? > I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] KLM file that works in DDMS?

2009-10-18 Thread Mark Murphy
Could anyone upload a small example file that will work? Every file I've tried fails. Is this function completely broken? All attempts result in no points being listed. No errors reported. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Re: Logging in Android

2009-10-18 Thread jotobjects
That thread was about various ad hoc ways that developers are cooking up to strip logging and that if you do it wrong you will still be evaluating the logging statements even if they are not output (i.e., common sense Java). Apparently developers are working around the fact that there is no log

[android-developers] How to use and create a ColorStateList object???

2009-10-18 Thread Mikael Bertlin
Hi, I'm trying to set a get a ColorStateList object from a xml file and setting it to a TextView textColor but I can't get it to work. Code: ColorStateList csl = null; XmlResourceParser xpp=Resources.getSystem().getXml (R.color.selector_txt);

[android-developers] Re: How to start a service without using any activity??

2009-10-18 Thread pink 444
I am starting my service in an Activity with StartService() method.But i don't know how to start service from application.Thus whenever my activity is destroyed and rebuilt new service is created. How can i create/start my service from other than Activity? On Oct 18, 5:43 am, Farproc

[android-developers] Re: Application Manager & Force Close

2009-10-18 Thread elgoog
I also met the same issue. I have an UI app with a service running at background. When the app is forced stop, the service could not be restarted to correct state without appropriate cleanup before stopping. I understand that Android forced stop should have power to kill my app and service direct

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Dianne Hackborn
Yeah, I don't know about GC optimizations, but background threads now get placed in a scheduling class that together can't use more than 5-10% of the CPU; this helps a lot in keeping the foreground responsive. On Sun, Oct 18, 2009 at 4:06 PM, CraigsRace wrote: > > My games run smoother too. 1.6

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Azuroth
Can I get one please? Thanks. On Oct 18, 4:37 am, AuthorityAction wrote: > If there are any left, I would like one too! Thanks. > > On Oct 15, 10:41 pm, Kenneth Adam Miller > wrote: > > > > > Who wants to be in Googlewave? > > I have 16 invitations --~--~-~--~~~---~

[android-developers] Default application source code

2009-10-18 Thread MyDroid Er
Is there any repositry for the default apps source code like Contacts,Launcher,etc.I do know about the android source.com. But i dont have a Linux or Mac box.Hence is there a place where i can download the default apps. --~--~-~--~~~---~--~~ You received this messag

[android-developers] Re: Test for Android SDK version? Switch code for 1.5 cupcake or 1.6 donut

2009-10-18 Thread Brady
Hi A. Elk, there are some bugs in Donut that I'm trying to work around. http://code.google.com/p/android/issues/detail?id=4255 http://code.google.com/p/android/issues/detail?id=4266 Cheers, Brady On Oct 16, 10:49 am, "A. Elk" wrote: > Curiosity: what variation? is it related to hardware, or to

[android-developers] Re: How to make a View "touchable" visually?

2009-10-18 Thread Farproc
any idea? On 10月18日, 下午11时45分, Farproc wrote: > Thank you very much! > Background works fine!!! But I want the text color of a View inverted > (white->black, etc) when pressed/focused. > I think there is a handy way to do so, but what is it ... > > On 10月15日, 下午6时23分, RS wrote: > > > > > You'll

[android-developers] Re: Marketplace urls

2009-10-18 Thread Farproc
market://search/?q=pname:FULL_QUALIFIED_PACKAGE_NAME for example: market://search/?q=pname:com.farproc.wifi.analyzer On 10月19日, 上午7时40分, siliconeagle wrote: > Hi, > > Sorry for the rather obvious post(to some) > > I've been searching round for 3 hours for how to make a marketplace > url to point

[android-developers] Cannot process file I/O in InstrumentationTest?

2009-10-18 Thread yukinoba
to dear all Android developers, Is the file I/O operations during InstrumentationTest not really written back (aka. committed) to the device storage? Recently I was working on the InstrumentationTest to verify my own applications, however it always shows no data in the local preference and databa

[android-developers] Re: Keyboard, detect ALT Locked

2009-10-18 Thread Dianne Hackborn
The concept of the alt lock state only exists inside of the text object, as it deals with editing being done on it. On Sun, Oct 18, 2009 at 6:57 AM, iron wrote: > > Any ideas? > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions t

[android-developers] Android Logging

2009-10-18 Thread AndroidKing
What is the best approach to catch unexpected exceptions and log them I have used the Debug.startMethodTracing() method to create trace files but the problem is if the application errors out, the Debug.stopMethodTracing() never gets called so the trace information is lost.. if there another way

[android-developers] Re: Changed file permissions in Donut 1.6 stops TRIAL software

2009-10-18 Thread Dianne Hackborn
Yes, that changed because we absolutely do not want applications doing just this kind of thing -- throwing junk in places the user can't get rid of. :/ On Sat, Oct 17, 2009 at 7:00 AM, Rams wrote: > > My trial software used to limit use to 100 uses. The number of times > the user had used it was

[android-developers] Re: Putting a Webview in a Tab Content

2009-10-18 Thread stanlick
You are the man! On Oct 18, 7:08 pm, Mark Murphy wrote: > stanlick wrote: > > Maybe I spoke too soon!  This code fits nicely in the tab content > > >            browser=new WebView(this); > >            setContentView(browser); > >            browser.loadUrl("http://commonsware.com";); > > > How

[android-developers] Re: Marketplace urls

2009-10-18 Thread Mark Murphy
siliconeagle wrote: > Hi, > > Sorry for the rather obvious post(to some) > > I've been searching round for 3 hours for how to make a marketplace > url to point to my app and i cant find it !! > > my app is mypod > > Can anyone point to a link on how the make a link i can use to tell > people w

[android-developers] Re: Putting a Webview in a Tab Content

2009-10-18 Thread Mark Murphy
stanlick wrote: > Maybe I spoke too soon! This code fits nicely in the tab content > > browser=new WebView(this); > setContentView(browser); > browser.loadUrl("http://commonsware.com";); > > However, most of the url's I am using take over the entire scr

[android-developers] Re: Putting a Webview in a Tab Content

2009-10-18 Thread stanlick
Maybe I spoke too soon! This code fits nicely in the tab content browser=new WebView(this); setContentView(browser); browser.loadUrl("http://commonsware.com";); However, most of the url's I am using take over the entire screen! What is deal? On

[android-developers] Marketplace urls

2009-10-18 Thread siliconeagle
Hi, Sorry for the rather obvious post(to some) I've been searching round for 3 hours for how to make a marketplace url to point to my app and i cant find it !! my app is mypod Can anyone point to a link on how the make a link i can use to tell people where to download my appp? regards, rob

[android-developers] Re: Putting a Webview in a Tab Content

2009-10-18 Thread stanlick
Thank you Mark. This has tamed my WebView tab! I had my own layout for the "tab" activity and I guess it was defeating the "content in tab" that I was hoping for. Although... I have a specific layout for each of the other tab activities and they do not take over all the screen real estate. Is

[android-developers] How can I android 2.0 source code

2009-10-18 Thread hap 497
Hi, In this article, it talks about android 2.0, http://gizmodo.com/5383485/android-20-first-look-fresh-face-sick-speed Is it possible to get the android 2.0 source? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread CraigsRace
My games run smoother too. 1.6 is a great improvement! I seem to remember talk of background processes getting a lower priority in 1.6, which might also be helping. On Oct 19, 7:33 am, Nikolay Ananiev wrote: > My game's animations are way more smoother in Android 1.6. Google did a > great job

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Jason Van Anden
Cool ... in this particular case I am glad its not me ... otherwise I might not touch any of the code again! Jason On Sun, Oct 18, 2009 at 4:33 PM, Nikolay Ananiev wrote: > My game's animations are way more smoother in Android 1.6. Google did a > great job optimizing 1.6 > > > > On Sun, Oct 18,

[android-developers] Re: Porting Android

2009-10-18 Thread Dan Sherman
Might be better served on the android-porting mailing list :) On Sat, Oct 17, 2009 at 1:50 AM, VY wrote: > Hi: > > Are there resources/documents showing how to port the Android platform onto > other hardware platforms? > > Any tips/pointers much appreciated. > > --Vincent > > > > > --~--~--

[android-developers] Re: onTrackballEvent hogging CPU time.

2009-10-18 Thread James Yum
Hi, This may be related to your problem: http://groups.google.com/group/android-developers/browse_thread/thread/39eea4d7f6e6dfca/00371f9810204221 Cheers, James On Sat, Oct 17, 2009 at 12:35

[android-developers] Re: Why do screenshot utilities require rooting?

2009-10-18 Thread Diego Torres Milano
Because /dev/graphics/fb0 is only readable by root and graphics group for security reasons, you may read other apps screens otherwise. On Oct 18, 12:01 pm, Paolo Amoroso wrote: > Why do Android screenshot utilities only work on rooted devices? Linux > distributions and desktop environments provi

[android-developers] Re: Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Nikolay Ananiev
My game's animations are way more smoother in Android 1.6. Google did a great job optimizing 1.6 On Sun, Oct 18, 2009 at 7:32 PM, Jason Van Anden wrote: > I am unsure if this is something I am noticing because my app is released > or not, but it seems to me that 1.6 GC's smaller amounts a lot mo

[android-developers] KSoap - How to pass a dataset to a dotNet webservice?

2009-10-18 Thread Dave
Folks I know there are quite a few examples of accessing dotnet webservices that return a dataset. I cannot find any examples there the webservice method requires a dataset as a parameter. i.e. dotNet webservice: _ Public Function TestWS(ByVal ds As DataSet) As String Return ds.Tables.Count

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Gil
Could you share me an invitation? Thanks very much. On Oct 17, 4:32 am, renjun wang wrote: > On Thu, 2009-10-15 at 22:41 -0500, Kenneth Adam Miller wrote: > > Who wants to be in Google wave? > > I have 16 invitations > > does it have linux version? --~--~-~--~~~---~-

[android-developers] Bug in setPhotoData / android contacts provider?

2009-10-18 Thread ducktayp
I'm writing an application that exports and imports contacts, including contact photos. To import contact photos, I use the Contacts.People.setPhotoData method. Importing a new contact with a photo works perfectly. However, the following sequence of actions causes a problem: 1. Import a new conta

[android-developers] onTrackballEvent hogging CPU time.

2009-10-18 Thread TonyDoc
Hi, First post here, so excuse my French. I'm writing a little game which has an activity thread, a gui/ surfaceview/handler thread and a 3rd logic thread (emulating a cpu core). I am finding that when I move the trackball, the logic thread slows down dramatically until I stop moving the trackbal

[android-developers] Why do screenshot utilities require rooting?

2009-10-18 Thread Paolo Amoroso
Why do Android screenshot utilities only work on rooted devices? Linux distributions and desktop environments provide user-space screen capture tools. Why can't Android? I wonder what are the technical issues, if any, that prevent this. The only user-space procedure I am aware of, i.e. installing

[android-developers] Re: Android on HTC Tattoo and FM receiver

2009-10-18 Thread tmyymmt
Hi, I'm looking for the API for FM radio too. Did you find it ? # The FM radio of 'HTC tattoo' is closed API of HTC like JNI ? Thanks. On 9月30日, 午前4:13, JMichel wrote: > I was looking at the specs of the new Android phone from HTC, the > Tattoo, and it seems it will feature anFMradioreceiver.

[android-developers] RNDIS USB driver for Android on Zoom

2009-10-18 Thread arikh
Hello, I have an application in which I need to connect a Zoom device running Android to a PC. The zoom should connect as an RNDIS network device. I am looking for a suitable Android USB driver. Thanks, Arik Halperin --~--~-~--~~~---~--~~ You received this messa

[android-developers] Trouble re-running an app in emulator

2009-10-18 Thread Mark Murphy
I run my app once in emulator, make a change and try to run again without restarting the emulator (and waiting several minutes). I get this: ERROR: the user data image is used by another emulator. aborting My run configuration specifies automatic target selection. My one avd is selected. I've tr

[android-developers] phone calls others

2009-10-18 Thread nativerocker
Anyone ever hear of...Com.android.server.vpn:remote? its a program that runs on my phone in conjunction with another...Pico TTS? my calls have all been re-routed and net cast to where and to whom I do not know. but i cant un-install them? I use task killer and upon highlighting it and asking for d

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread CodeMonkey
I'll take one as well if you still have any left. Thanks in advance, On Oct 15, 11:41 pm, Kenneth Adam Miller wrote: > Who wants to be in Google wave? > I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread pureroot
Pls. Me too ++ On Oct 16, 10:41 am, Kenneth Adam Miller wrote: > Who wants to be in Google wave? > I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] So.... Any news since 2008?

2009-10-18 Thread Kpyto
Hey! Now is 2009 year :) So - is it possible to run Android OS on iPhone? --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Bob
could you please send me one (yuan@gmail.com) invitation if still available? Thanks! :) On Oct 16, 11:41 am, Kenneth Adam Miller wrote: > Who wants to be in Google wave? > I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are s

[android-developers] Re: Image transparency

2009-10-18 Thread TonyDoc
I suppose an png with transparacy is out of the question? On Oct 17, 2:21 pm, Neilz wrote: > Anyone know if you can make part (i.e. a section which you could > measure in pixels) of an image transparent? What graphics features > would I need to look at? --~--~-~--~~~

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread chrix
I love to have one too... thanks On Oct 16, 5:41 am, Kenneth Adam Miller wrote: > Who wants to be in Google wave? > I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: Implementing 'push technology' into Android apps

2009-10-18 Thread Rafael Sanches
hi, This is not push, but if you want "real time" you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection regards rafael On Oct 16, 7:43 am, rubeN_vl wrote: > Hi, > > What

[android-developers] Porting Android

2009-10-18 Thread VY
Hi: Are there resources/documents showing how to port the Android platform onto other hardware platforms? Any tips/pointers much appreciated. --Vincent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Chuck Wagner
I'd love 1 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 e

[android-developers] Re: Activity managed indeterminate ProgressDialog problem

2009-10-18 Thread hkbarton
I got the same problem. On 1.6 emulator, when i dismiss a indeterminate progress dialog and show this dialog again,the animation is frozen. But on my 1.5 device, it's OK. This bug seems only occur on 1.6. related page: http://code.google.com/p/android/issues/detail?id=4266 On 10月15日, 上午10时46分, s

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread vass one
Any chance I could have one too please. Sign up etc... but I've heard nothing back.. 2009/10/18 null > I want a one too.Thank you if you give me one > > > 在2009-10-18,"XingChao Wang" 写道: > > Hi, > > It would be very appreciate if you could send me one. > Then we could work together. > > Mail: w

[android-developers] Changed file permissions in Donut 1.6 stops TRIAL software

2009-10-18 Thread Rams
My trial software used to limit use to 100 uses. The number of times the user had used it was stored in "/data/anr" This worked great because this directory is not browseable, but it is writeable by applications. You could only read/write/delete the file if you knew the exact name of the file eg

[android-developers] Create Connection failed msg like the browser app

2009-10-18 Thread Lars Carlsson
Hi How do i create a message box that says Connection failed "this application requires network access to work" and in the message box you click Settings or canceled. The same message box you get when you try to use the browser with no Internet connection. I have looked in the Browser code but co

[android-developers] Re: Debug.startMethodTracing() - can't dump file

2009-10-18 Thread bwilliam...@gmail.com
Sorry, thought I had searched enough; immediately after posting I found my answer: http://groups.google.com/group/android-developers/browse_thread/thread/207fee67cfe8fde0/6dc073718f57fcf2?lnk=gst&q=Debug.startMethodTracing%28%29#6dc073718f57fcf2 On Oct 18, 3:32 pm, "bwilliam...@gmail.com" wrote

[android-developers] Re: how to pass complex objects between activities

2009-10-18 Thread RichardC
All of what you suggest is possible. What I was trying to emphasise is that as Android can kill any process that is not the active task, any static variables (state information) will be destroyed and need to be re-created when the new process is started. One could for instance save the static in

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

2009-10-18 Thread claudiotainen
I've found this app to convert .kml files into suitable ones. http://ge2adt.appspot.com/ Hope it helps, cheers On 18 Ott, 20:46, android wrote: > I do read the posts and put into a listview kml can you help me? > > On Sep 27, 11:27 pm, tarek attia wrote: > > > Thn you,,really very t

[android-developers] Re: Debug.startMethodTracing() - can't dump file

2009-10-18 Thread Mark Murphy
bwilliam...@gmail.com wrote: > I'm running into a terrible, terrible problem - an activity that uses > a surfaceview takes somewhere between 3 and 75 seconds before the > surfaceCreated method is called. > > I'd like to use Traceview to figure out what's taking so long, but I > get an exception w

[android-developers] Re: Putting a Webview in a Tab Content

2009-10-18 Thread Mark Murphy
stanlick wrote: > When I place a Webview control in the content of a Tab, it is taking > over the entire display! I have jacked around with the layout but I > can't figure out how to "fit" the control on the tab. Is it possible > to do this? I have an example of WebViews in a TabHost in my firs

[android-developers] Debug.startMethodTracing() - can't dump file

2009-10-18 Thread bwilliam...@gmail.com
I'm running into a terrible, terrible problem - an activity that uses a surfaceview takes somewhere between 3 and 75 seconds before the surfaceCreated method is called. I'd like to use Traceview to figure out what's taking so long, but I get an exception when Debug.startMethodTracing() is called:

[android-developers] Re: how to make user-contorl??

2009-10-18 Thread Paul Turchenko
1. Check API Demos. They have custom controls implemented. 2. There's no color picker dialog. On Oct 15, 10:17 am, DHSoft wrote: > i have two questions. > > first. >   i wanna know how to make user-control >   and how to use it(in XML code). > > second. >  i want to find color picker dialog, but

[android-developers] Re: AppWidget layout in different homescreen applications

2009-10-18 Thread WonkoTheSane
> In fairness, if ahome doesn't support the published appwidget > standard, that's not exactly your fault. I agree. I wouldn't have noticed it if it wasn't my default home screen at the moment. > > Does ahome publish any info regarding how to program widgets for their > homescreen? > I'll lo

[android-developers] Re: how to pass complex objects between activities

2009-10-18 Thread Dan Sherman
I'm not aware of any such feature, but is it possible to force android to disregard the stack, and open Activity A regardless? (could solve the problem, especially if B depends strongly on A). Could also probably check for a null variable and send an intent back to A anyway :) - Dan On Sun, Oct

[android-developers] Re: how to pass complex objects between activities

2009-10-18 Thread RichardC
Which will work but is kind of fragile. End-user starts a new Task with first Activity A. The end-user then clicks a button on Activity A's layout causing the parameters to be pass to be stored in the static object and Activity A now calls (via intent) Activity B. Activity B accesses the static(

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

2009-10-18 Thread android
I do read the posts and put into a listview kml can you help me? On Sep 27, 11:27 pm, tarek attia wrote: > Thn you,,really very thanks to you :)),, > Ultimately  It worked fine > > On Sun, Sep 27, 2009 at 10:52 PM, ZA_Alligator > wrote: > > > > > I found this solution on StackOverf

[android-developers] Re: ADC2 First Round Complete?

2009-10-18 Thread Mobidev
> Um... still no news eh.  How many of you want to bet that the > finalists are already contacted and we are in the "Summer of Slience" > equivalence of ADC1? Everyone will be informed through the blog post. There may not be a need to inform the selected entries in advance before Round 2. If at al

[android-developers] Re: ARCHOS 5 Android tablet and ANDROID_ID

2009-10-18 Thread Wayne Wenthin
ugh! I rely on it to be a 16 byte hex like it is supposed to be. Oh well I guess the Archos won't be playing my game too bad because its really good. LOL On Sat, Oct 17, 2009 at 1:10 PM, Mark Murphy wrote: > > Somebody on this list asked a bit ago about whether the ARCHOS 5 Android > I

[android-developers] Re: DB Cursor not working

2009-10-18 Thread Marco Nelissen
On Sun, Oct 18, 2009 at 7:50 AM, Yayo wrote: > > Hi all, > > I've got this piece of code where I count words in a dictionary and > then I try to query them: > >                String params[] = { Integer.toString(minlength), >                                Integer.toString(maxlength) }; >      

[android-developers] Putting a Webview in a Tab Content

2009-10-18 Thread stanlick
When I place a Webview control in the content of a Tab, it is taking over the entire display! I have jacked around with the layout but I can't figure out how to "fit" the control on the tab. Is it possible to do this? --~--~-~--~~~---~--~~ You received this messag

[android-developers] Re: AppWidget layout in different homescreen applications

2009-10-18 Thread String
In fairness, if ahome doesn't support the published appwidget standard, that's not exactly your fault. Does ahome publish any info regarding how to program widgets for their homescreen? String On Oct 18, 11:36 am, WonkoTheSane wrote: > Hi everyone, > > I'm struggeling to get my AppWidget layou

[android-developers] .tar.gz help...

2009-10-18 Thread Kenneth Adam Miller
I found some useful books I would like to read but they are in a tar.gz file. each chapter is in a folder in this tar.gz and in each one of those there is a bunch of html there are instructions in a makefile, but I just want to have the book in a html form or a pdf. how can I get this done? --~--

[android-developers] Re: Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-18 Thread Marco Nelissen
I think you'd have to at least also take your location in to account. On Mon, Oct 12, 2009 at 2:25 AM, DD wrote: > > Hi, is it possible to calculate yaw,pitch,roll solely from x,y,z > magnetic field values obtained from the magnetometer, for example, > according to physics? How? Thanks a lot!

[android-developers] Re: how to pass complex objects between activities

2009-10-18 Thread niko20
Hi, You don't need to pass it using intents, just use a static class with static public variables, and you can make one of those variables a type of the object you are trying to pass. Then just assign that variable to your instance. Now any activity can get to it by using the global accessor (so

[android-developers] Anyone else notice more frequent GC in 1.6?

2009-10-18 Thread Jason Van Anden
I am unsure if this is something I am noticing because my app is released or not, but it seems to me that 1.6 GC's smaller amounts a lot more frequently. It seems to make for a lot less stuttering when graphics are drawn. (Then again, maybe I changed something in my code). Curious ... anyone el

[android-developers] Re: Disable context menu not working ... bug?

2009-10-18 Thread Jason Van Anden
Wasn't sure if it when this occurred - just noticed it yesterday when I was doing something else. It seems to me that it should not allow a click - matching the behavior of the main menu. From a user's perspective, they may think they clicked on something that should do something ... so it may c

[android-developers] Re: Launching share option in menu

2009-10-18 Thread Hermes Pique
According to... http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/MenuHelper.java Gallery does not use setDataAndType, and Facebook and Twitdroid seem to respond fine to it. Can it be something related to how the Uri is constructed of file permis

[android-developers] Re: How does Gallery's "Send" Intent Work?

2009-10-18 Thread Hermes Pique
According to http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/MenuHelper.java: 579 Intent intent = new Intent(); 580 intent.setAction(Intent.ACTION_SEND); 581 String mimeType = image.getMimeType(

[android-developers] Re: how to create our own BorderLayout

2009-10-18 Thread Raja Nagendra Kumar
Hi, As murali said, we are looking to develop a new layout which is straight and looks less complex than the indirect (equivalent xml) provided at http://www.anddev.org/viewtopic.php?p=5087. The one provided makes things very complex specially when the entire ui needs more than one boarder layout

[android-developers] Re: How to make a View "touchable" visually?

2009-10-18 Thread Farproc
Thank you very much! Background works fine!!! But I want the text color of a View inverted (white->black, etc) when pressed/focused. I think there is a handy way to do so, but what is it ... On 10月15日, 下午6时23分, RS wrote: > You'll have to provide background as a multi state drawable xml like > re

[android-developers] MapView handling KeyEvent.KEYCODE_DPAD_CENTER

2009-10-18 Thread claudiotainen
Hi, I have a CustMapView class which extends MapView and have added some custom overlays to it (derived from Overlay). I'm handling KEYCODE_DPAD_CENTER events so that if the marker of one Overlay is in the center of the map a menu is displayed; now, I'd like the event to be re-dispatched to my Cus

[android-developers] Re: How to animate a drawable inside an App Widget?

2009-10-18 Thread westmeadboy
That's perfect (not the joke, but the ProgressBar ;) ). As luck would have it, it fits perfectly over my round icon - so thanks! BTW, when developing on Vista, plastering over the screen is often the more sane option. On Oct 18, 10:48 pm, Mark Murphy wrote: > westmeadboy wrote: > > However, I

[android-developers] Re: ADC2 First Round Complete?

2009-10-18 Thread Kenny
Um... still no news eh. How many of you want to bet that the finalists are already contacted and we are in the "Summer of Slience" equivalence of ADC1? On Oct 7, 12:13 pm, Lance Nanek wrote: > I recall an email sent during the first challenge where winners of the > first round were being given

[android-developers] corporate e-mail does not support EXTRA_SUBJECT

2009-10-18 Thread sdphil
I am trying to write an e-mail application that will pre-fill in some text and then pop up the mail application. Everything is working great if I use my yahoo mail account, however, if I pick (via the chooser) my corporate e-mail account, it does not fill in the subject line. Is this a known iss

[android-developers] DB Cursor not working

2009-10-18 Thread Yayo
Hi all, I've got this piece of code where I count words in a dictionary and then I try to query them: String params[] = { Integer.toString(minlength), Integer.toString(maxlength) }; SQLiteStatement statement = database

[android-developers] Re: How to animate a drawable inside an App Widget?

2009-10-18 Thread Mark Murphy
westmeadboy wrote: > However, I do think many widgets would benefit from the > functionality of showing some simple animation while some kind of > action (like a user-triggered synchronization) takes place. App widgets can have ProgressBar widgets. Put in a small indeterminate (i.e., round) progr

[android-developers] Re: How to animate a drawable inside an App Widget?

2009-10-18 Thread westmeadboy
OK, thanks Mark - I didn't think about the IPC call thing. I understand that supporting animations might end up with loads of widgets singing and dancing all over the home screen screaming for attention. However, I do think many widgets would benefit from the functionality of showing some simple

[android-developers] Re: confused about service

2009-10-18 Thread Mark Murphy
Jiri wrote: > If i have a service tag in my manifest, does that mean that the service > class gets instantiated Not automatically, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~--

[android-developers] Re: Custom View - obtain android:layout_width value

2009-10-18 Thread Mark Murphy
fhucho wrote: > I did it this way: > String widthString = attrs.getAttributeValue("http:// > schemas.android.com/apk/res/android", "layout_width"); > // now widthString can ba for example "150px", I need to convert it to > int > int s = Integer.parseInt(widthString.substring(0, 3)); I will reiter

[android-developers] confused about service

2009-10-18 Thread Jiri
If i have a service tag in my manifest, does that mean that the service class gets instantiated, and if so do I then still need to send an intent from an activity to have it started? Jiri --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Custom View - obtain android:layout_width value

2009-10-18 Thread fhucho
I did it this way: String widthString = attrs.getAttributeValue("http:// schemas.android.com/apk/res/android", "layout_width"); // now widthString can ba for example "150px", I need to convert it to int int s = Integer.parseInt(widthString.substring(0, 3)); On Oct 18, 2:30 pm, Mark Murphy wrote

[android-developers] Re: How to animate a drawable inside an App Widget?

2009-10-18 Thread Mark Murphy
westmeadboy wrote: > I'm sure there must be a workaround. For example, having a drawable > for each of the rotated positions and setting each drawable in turn > (with some fixed time gap) on the same ImageView... That would be very battery intensive. Bear in mind that the home screen runs in a se

[android-developers] Re: How to animate a drawable inside an App Widget?

2009-10-18 Thread westmeadboy
I'm sure there must be a workaround. For example, having a drawable for each of the rotated positions and setting each drawable in turn (with some fixed time gap) on the same ImageView... I haven't tried this though... On Oct 18, 8:04 pm, WonkoTheSane wrote: > As far as I now, this is not possi

[android-developers] Re: Keyboard, detect ALT Locked

2009-10-18 Thread iron
Any ideas? --~--~-~--~~~---~--~~ 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-dev

[android-developers] how to pass complex objects between activities

2009-10-18 Thread loril...@gmail.com
I am trying to pass a user defined object to another activity Bundle bundle = new Bundle(); bund.putSerializable("myData", myData); intent.putExtra("bundle", bundle); where myData class implements Serializable interface. I am getting following error: java.lang.RuntimeException: Parcelable enco

[android-developers] Re: orientation changes for layouts

2009-10-18 Thread Spektor Yaron
Thanks for the reply,sorry for the delayed response that will only work if i want to create a view. but what if the view is the same and i want to attached a dynamically created object from the layout, for example a new keyboard inside a view. you switch the keyboard using the new layout but th

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Eden
me me me me 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 andro

[android-developers] Re: Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-18 Thread DD
Thanks R.S. I think you are talking about the special case. But for the time being, I feel this doesn't need to be considered that much. so may I know exactly the physics formulas (or other methods) that can be used to calculate yaw,pitch and roll solely based on the data given by the magnetomete

[android-developers] Re: Custom View - obtain android:layout_width value

2009-10-18 Thread Mark Murphy
fhucho wrote: > I have a custom View, it is created from xml - how can I obtain the > android:layout:width value in the constructor View(Context x, > AttributeSet a) ? To get at a custom attribute, you would use code like this: TypedArray a=ctxt.obtainStyledAttributes(attrs,

[android-developers] Re: Google wave invitations...?

2009-10-18 Thread null
I want a one too.Thank you if you give me one 在2009-10-18,"XingChao Wang" 写道: Hi, It would be very appreciate if you could send me one. Then we could work together. Mail: wxc...@gmail.com thanks --wang xingchao 2009/10/16 Kenneth Adam Miller Who wants to be in Google wave? I have 16 invit

[android-developers] Re: using microphone in speech recognition

2009-10-18 Thread srihari m
BTW..i have included the permission for RECORD_AUDIO On Sun, Oct 18, 2009 at 5:40 PM, srihari m wrote: > hi all, > im developing a simple voice recognition software in android..i was using > sdk 1.5 and it didnt have any activity for handling speech recognition..so i > downloaded an image from h

  1   2   >