[android-developers] Re: Force Portrait Screen

2009-08-14 Thread String
Is there any way to accomplish this for a single activity, rather than the whole app? The default orientation switch is fine for most of my app, but for one activity, it makes a lot more sense to handle it internally. String On Aug 7, 2:54 pm, Mark Murphy mmur...@commonsware.com wrote: condor

[android-developers] Help in using shape drawable as my background xml

2009-08-14 Thread n179911
I really appreciate if someone can help me with using how to use shape drawable as my background xml for my view. This is what I tried: But I never get the color. Android always gives me black text on white background, regardless what color attribute I put. ?xml version=1.0 encoding=utf-8?

[android-developers] how to add location listener to list view ??

2009-08-14 Thread SLY
How does one add a location listener to items in a list view ? Or sensor listener for that matter ? What I am stuck with is how to add gps/location listener so that I can update the values in the list based on the location information gathered from the device ? I need to update the distance from

[android-developers] Automated Call answer

2009-08-14 Thread swapnil
Hi all, Can we accept call through the code after specific time of ringing is over? If yes then how should I do it? Thnaking you in advance. Regards; Swapnil Dalal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Simply touching screen reduces fps

2009-08-14 Thread Jiri
Could someone please post a snippet on how to do this? Jiri Dianne Hackborn wrote: And the solution is NOT to increase your thread priority so you can better fight with the system. You will get better results by putting in the sleep so you aren't fighting. On Thu, Aug 13, 2009 at 3:32

[android-developers] How to use other app to 'view' the media in Gallery

2009-08-14 Thread Anthony Xu
Hi All, Thanks for read my issue. The Android's own app Gallery is very cool, now I have a requirement to add an external app to view the media, let me describe it detail, the following is the steps: 1. Run android's Gallery, in the first page, Gallery list all directorys which include media

[android-developers] Re: Reading Calendar?

2009-08-14 Thread Kaj Bjurman
Ok. Thanks. Do you know roughly when it will be available? In 2.0 or later? On 14 Aug, 00:36, Justin (Google Employee) j...@google.com wrote: The calendar data provider is not currently exposed. Your best, albeit not simple, bet is to use the Google Calendar web API to access the user's

[android-developers] About the mixture of 2D and 3D drawing

2009-08-14 Thread Zhiguo Ge
I am curious whether 2D skia and 3D OpenGL can render to the same surface (implies the same buffer). eglWaitGL and eglWaitNative methods exists in Android, but I am not sure whether Android enables these two functions that provide a synchronization mechanism of 2D and 3D drawing. Or if a surface

[android-developers] Re: Force Portrait Screen

2009-08-14 Thread Nivek
The Developer Guide list this parameter in the Activity element of the manifest. So you should be able to set this for each activity of your app. http://developer.android.com/intl/fr/guide/topics/manifest/activity-element.html Nivek On 14 août, 08:58, String sterling.ud...@googlemail.com wrote:

[android-developers] Arbitrary shape ImageView

2009-08-14 Thread Long
Hi guys, I need some arbitrary shape imageView that can respond events. How can I do that? Thanks. Cheers. Long --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Force Portrait Screen

2009-08-14 Thread String
On Aug 14, 9:54 am, Nivek kevin.gau...@gmail.com wrote: The Developer Guide list this parameter in the Activity element of the manifest. So you should be able to set this for each activity of your app.http://developer.android.com/intl/fr/guide/topics/manifest/activity-e... You're absolutely

[android-developers] Classcast exception with Listview

2009-08-14 Thread Shalin
Hello, I am trying create listview as under for dropdown for autocompletetextview. but I am getting classcast view for that. Anyone can tell me why is it? What could be possible solution?? public static class ContactListAdapter extends CursorAdapter implements Filterable { public

[android-developers] Application Review

2009-08-14 Thread Khurram Samad
Hi We are developing a Role Playing Fantacy game for Google Android Challenge. Though we haven't heard on ADC 2 submission and announcements, we wish to invite beta-users for our application : initial beta users would get free access to the application. Please feel free to contact

[android-developers] Identifying handsets

2009-08-14 Thread Carl Whalley
Is there a call I can make to return HTC G1 etc? How about one for the carrier, T-Mobile? Thanks -- Android Academy http://www.androidacademy.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] [android-developers]Too many audioflinger blocked warn,please help.

2009-08-14 Thread frog
Hi all. I have a problem with the pcm data play.when I use the AudioTrack.write to play a the pcm data buffer,I get the below warn messages.It's keep printing when the play is going,and the audio outputed is with some noise.Maybe that's the warn why the noise are there.Anyone solved this problem

[android-developers] Re: Application Review

2009-08-14 Thread Khurram Samad
You can use the following email address androd(at)geniteam(dot)com On Aug 14, 2:37 pm, Khurram Samad khurram.sa...@gmail.com wrote: Hi We are developing a Role Playing Fantacy game for Google Android Challenge. Though we haven't heard on ADC 2 submission and announcements, we wish to invite

[android-developers] Re: How to use other app to 'view' the media in Gallery

2009-08-14 Thread Nivek
Hi, Your intent filter should look like this : intent-filter android:icon=@drawable/icon android:label=@string/ intent_open_image action android:name=android.intent.action.VIEW/action category android:name=android.intent.category.DEFAULT/ category data

[android-developers] ListView if I don't wan use xml, but programatic... how??

2009-08-14 Thread Wesley Sagittarius
hi all, can any one show me a simple example how can I create ListView using code, not xml... and add item into list and remove item in the list anyway I wan??? wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: ListView if I don't wan use xml, but programatic... how??

2009-08-14 Thread Jiri
Maybe this pdf will provide some insights. http://commonsware.com/Android/excerpt.pdf Jiri Wesley Sagittarius wrote: hi all, can any one show me a simple example how can I create ListView using code, not xml... and add item into list and remove item in the list anyway I wan???

[android-developers] Re: Does cupcake support Webview with Gears ?

2009-08-14 Thread Samuel Michelot
On 13 août, 18:08, String sterling.ud...@googlemail.com wrote: Have you looked at PhoneGap?http://phonegap.com I'm not certain about the maturity of their Android support, but I know there's at least a foundation, and would give you a real head start on this. Yes, I know phonegap, but it

[android-developers] Re: Identifying handsets

2009-08-14 Thread Mark Murphy
Carl Whalley wrote: Is there a call I can make to return HTC G1 etc? public static String gimmeMyString() { return(HTC G1); } ;-) More seriously, what you are looking for is the android.os.Build class, particularly static values like MODEL. How about one for the carrier, T-Mobile?

[android-developers] Re: Getting Friends list from Facebook

2009-08-14 Thread Y2U
Thanx alot Yusuf... On Aug 13, 11:31 am, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: Facebook uses a REST API. So your app would use REST get the info thusly:http://wiki.developers.facebook.com/index.php/Friends.get Yusuf Saib Android ·T· · ·Mobile· stick together The

[android-developers] Connect Device to PC through USB

2009-08-14 Thread Zeeshan Khan
Hi, Is it possible to connect to PC through USB from android application. Or is it possible by any other way. I want to connect to it to transfer data(video) Regards, Zeeshan --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Reliable Http Request needed

2009-08-14 Thread jgostylo
For my purposes it looks like changing servers helped out as well as increasing my timeouts to 25 seconds. My game allows for that kind of latency. On Aug 5, 7:47 am, jgostylo jgost...@gmail.com wrote: I guess as a follow up I would like to say that what is thrown seems to always be a

[android-developers] Re: Have ListView and other widgets scroll as a whole

2009-08-14 Thread MarcoAndroid
Hey Wouter, It did not work 100% for me, my inputboxes loose focus when the virtual keyboard pops up. See my question + answer here: http://groups.google.com/group/android-developers/browse_thread/thread/4883b7021b1a7724 For you it definitely could work, you have a different setup. It's quite

[android-developers] New Android App

2009-08-14 Thread johnjj
Hi there, yesterday I finished my new Android App and I want you to take a look at it and tell me what you think about it. http://www.kwaisun.org/~johannes/drink-schedule http://www.youtube.com/watch?v=nTG-D-0LMFQ Thanks in advance, Johannes

[android-developers] Displaying virtual keyboard

2009-08-14 Thread loctarar
Hello! I need help with showing the integrated virtual keyboard on-screen. I extended a View class and I implemented these two methods (most of it is just stub code; for now I only want to display the keyboard): @Override public InputConnection onCreateInputConnection (EditorInfo

[android-developers] Decode base64 wav

2009-08-14 Thread Dany BREARD
Hi everybody I want to decode a wav string base 64 encoded to a file or other to listen after with a anrdoid media player. Firstly I going to make file decoded but andoid don't allow me that. byte[] decoded = Base64.decode( Base64String ); File oText = new File(File); FileOutputStream

[android-developers] large database file

2009-08-14 Thread Andrei
Is it a problem that i put 17 Mb database to /data/data or should i put it to /sdcard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: About the mixture of 2D and 3D drawing

2009-08-14 Thread Streets Of Boston
I have not tried to put 2D elements (Views) onto a opengl surface. However, what does work is to add more than one view to your activity (setContentView addContentView). Specify your opengl-view to setContentView and specify your regular view(group) to the addcontentview and make sure that that

[android-developers] Re: Simply touching screen reduces fps

2009-08-14 Thread Streets Of Boston
E.g. when you handle the ACTION_MOVE in your touch-handler, just do a Thread.sleep(20) before your method returns. If you don't have a touch-handler in your app, just register one and only do the Thread.sleep(20) when handling the ACTION_MOVE. On Aug 14, 3:32 am, Jiri

[android-developers] SDK 1.5 r3 - API Demo broken?

2009-08-14 Thread Carl Whalley
App | Preferences | 1. Preferences from XML Parent toggle correctly toggles its child. Do the same with 5. Preferences from code and it has no effect on the child. Would you believe thats exactly what I need too ;-) Any fix please? -- Android Academy http://www.androidacademy.com

[android-developers] Re: Good practise

2009-08-14 Thread Jiri
Thnx Kaj, well it is not really an app. I am exploring Android and Java, coming from an AS3 backgound. I havent even begun to look inot threads. But to answer your question. The app is just drawing dots to the canvas and one button is moving them all x+=1. I wanted to find out how to deal

[android-developers] Re: canvas.save() / restore() , what is this?

2009-08-14 Thread Jiri
Thanks Jeff, not sure if i understand it correctly. I come from an AS3 background and tf matrixes i understand. So if i would scale the canvas via a matrix and then draw stuff on it, this stuff is then scaled when drawn. if i then after the scaling do a restore() all is 100% scaled again?

[android-developers] Re: Simply touching screen reduces fps

2009-08-14 Thread Jiri
I see, thanks a lot. Jiri Streets Of Boston wrote: E.g. when you handle the ACTION_MOVE in your touch-handler, just do a Thread.sleep(20) before your method returns. If you don't have a touch-handler in your app, just register one and only do the Thread.sleep(20) when handling the

[android-developers] Re: Crashes with no usefull stacktrace

2009-08-14 Thread moazzamk
You can try capsulating your code in try and catch. And, use log cat to get the errrors. For more info, go here: http://moazzam-khan.com/blog/?p=41 - Moazzam On Aug 13, 10:34 pm, Jeff Sharkey jshar...@android.com wrote: Sadly, it looks like the best short-term answer would be to roll your

[android-developers] How to add the character '' intto the String/Stringtag?

2009-08-14 Thread tomispig
How to add the character '' intto the String/Stringtag? --~--~-~--~~~---~--~~ 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] Re: How to Add menu of my app to gallery and other applications

2009-08-14 Thread moazzamk
I've been trying to do this too but to no avail. Please post the solution here if you find out. - Moazzam http://moazzam-khan.com/ On Aug 14, 12:20 am, Naveen naveen...@gmail.com wrote: Hi! My application is working on images. I want to a add my menu in Gallery application and other image

[android-developers] SlidingDrawer widget hidden by GLSurfaceView while sliding

2009-08-14 Thread Geefer
Hi, I'm having a problem using the SlidingDrawer widget along with a GLSurfaceView as the View that is 'underneath' the drawer (ie. when the drawer opens it should cover the GLSurfaceView in the same way the main applications drawer on the home screen covers the home screen). What happens is

[android-developers] Turn on light of trackball on HTC magic

2009-08-14 Thread Anton Pirker
Hey list! I have a HTC Magic and just love the glowing trackball if you have missed a call. So i wanted to use the trackball light in my own android apps, but i can not find anything on how to make it glow. Does anyone know how to turn the light of the trackball on and of? Thanks in advance,

[android-developers] Re: Sharing data between activities

2009-08-14 Thread Elias
I have tried to share betweeb two simple activities: On parent activity, I'll start ImageCapture Activity: Intent cameraIntent = new Intent(); cameraIntent.setClass(this, ImageCapture.class); cameraIntent.putExtra(cameraData, null);

[android-developers] Android : How to do prioterization of data flow through one network interface over others

2009-08-14 Thread debashis
Hi, I am using Cupcake version of Android. In my system I have two network interfaces to send the data traffic - one network Interface on radio path and second network interface on Wifi path. Both the interfaces are up simultaneously. So 'ifconfig' command in Linux shell (when connect the

[android-developers] The way to change phone # recognition in Browser

2009-08-14 Thread Zeros
Hello... I'm using GTC G2 and Samsung Galaxy for testing and want to change phone # recognition in Browser. As you know, touch the phone # in browser then android recognize phone # and move to Dialer. But specific phone # works well, others NO. ie) 870 990 8886 - O 031-8871-3731 - X 323

[android-developers] Does Android support detecting right/left click on the mouse

2009-08-14 Thread Nguyen Dinh Minh
Hi guys, I want to write an Android application using a mouse (like the way that Windows detects the actions of clicking on a right button and a left button of the mouse). However, I cannot find any library of Android OS detecting these actions. Please tell me whether I can do it with the

[android-developers] AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Photics
I made an app called Guild Wars: Conquest. I was very careful about the rules and regulations about AdSense and Android. I released my app and I started making a lot of money. My web traffic went way up, like 218,000+ visits in one month. When it was time to get paid, AdSense shut down my

[android-developers] Custom view asking login details

2009-08-14 Thread Mahantesh
Hi, i m new to android. I am trying to create custom component. developer wil use this component just like any other component like textview or editText in his layout.xml file. I want this component to be created and rendered by java file only. No layout xml is used. i am not sure whether to

[android-developers] Overlaying text on a bitmap

2009-08-14 Thread aniket
Hi, I'd like to know if there is a way to get bitmaps corresponding to a glyph of a font. I have a bitmap and was looking for an API that would let me overlay some text on top of it and give me the output bitmap. I could not find any such API so was thinking of doing a custom implementation.

[android-developers] Mobile IP support in Android

2009-08-14 Thread debashis
Hi, Does Mobile IP is in Android roadmap for Donut or any other future release? Regards, debashis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: which is a true Android phone?

2009-08-14 Thread Anton Pirker
Hi! You can buy one of these: HTC G1 the first one, with keyboard, quite old but good enough to test your apps. you can update the android version to the newest one HTC Magic http://www.htc.com/de/product/magic/overview.html successor of G1, only on-screen keyboard. i have that one and i am

[android-developers] Set bearing in MapView (rotate MapView)

2009-08-14 Thread Anton Pirker
Hello List! I am trying to implement a map that rotates with the bearing i get from the built in compass of the htc magic. I have searched the web but found no good solution. Some are outdated (ex override onDraw() in MapView) or just not working for me (because the zoom controls or marker are

[android-developers] How can I know the calling time of an active call?

2009-08-14 Thread Prem
Hi all, I am trying to develop an automated test application which can initiate a voice call and terminate the same on a user-defined time. I would need to know the current call's time details so that I can end the call after the time mentioned by the user. It would have been quite simple

[android-developers] Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread debashis
Hi, In my Android dev phone I have a requirement to implement - On power up Radio interface (GSM in my case) is up and any data traffic (e.g. ping, http, etc) goes through radio interface. When I turned on Wifi I need to shift all data traffic (except voice/voip) into WiFi channel. Does

[android-developers] any development book for new guy?

2009-08-14 Thread Barry Wei
could anyone send me some e-book about develop android application? thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Context menu creation

2009-08-14 Thread moazzamk
What do you have in openMenu()? - Moazzam http://moazzam-khan.com On Aug 14, 12:47 am, Nasam forum.nami...@gmail.com wrote: I have created a LinearLayout wich has webview as its child.  But when i long click on this webView I am not able to see any contextmenu. I have enable contextmenu for

[android-developers] Re: Is it possible to connect to a local dev server using Phone connected to debugger?

2009-08-14 Thread Roman ( T-Mobile USA)
Yep, you do. Also if you are connected via USB to your PC, the USB interface does not show up at a ethernet interface. Of course you might be able to tweak the platform code to use the USB interface as an ethernet interface. Find some information about USB networking at

[android-developers] Re: How to use other app to 'view' the media in Gallery

2009-08-14 Thread Anthony Xu
Thanks for your reply, Nivek. What you said is right, after doing some tests, just show my experiences as below: 1. activity android:name=.MyActivity android:label=@string/ app_name android:multiprocess=true android:excludeFromRecents=true intent-filter

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Disconnect
Um... history and basic research says No. Adsense has a habit of dropping users rather than paying them, and the appeals process is a joke. Also, off-topic -- try #android-discuss or (better) an adsense support forum... On Fri, Aug 14, 2009 at 8:00 AM, Photics m...@photics.com wrote: I made

[android-developers] Re: Does Android support detecting right/left click on the mouse

2009-08-14 Thread Mark Murphy
Nguyen Dinh Minh wrote: Hi guys, I want to write an Android application using a mouse (like the way that Windows detects the actions of clicking on a right button and a left button of the mouse). However, I cannot find any library of Android OS detecting these actions. Please tell me

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Streets Of Boston
I don't know... only Google knows.. What (little) did google tell you about the reasons for shutting down your account? Google must have felt that you abused/games the AdSense system, rightly or wrongly.. Either way, I can imagine that this all does not make you happy. On Aug 14, 8:00 am,

[android-developers] Re: GPRS attach and detach/Wifi connection

2009-08-14 Thread Roman ( T-Mobile USA)
I am assuming that your device detaches from the network. When you are attached the following is possible - the network is capable of tracking the MS (via subsequent location updates) - network is aware of the services and networks that the user may have access to. Location updates are

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Streets Of Boston
Mark Murhpy's (regular here on these forums) e-books are highly regarded: http://commonsware.com/mmurphy.html http://commonsware.com/books.html On Aug 14, 2:42 am, Barry Wei barrywei.uyg...@gmail.com wrote: could anyone send me some e-book about develop android application? thanks a lot.

[android-developers] Re: How to add the character '' intto the String/Stringtag?

2009-08-14 Thread Streets Of Boston
Use amp; On Aug 14, 7:49 am, tomispig tomis...@gmail.com wrote: How to add the character  '' intto the String/Stringtag? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Romain Guy
@Mike: I have forwarded your email to some people to see if we can help you. However you should really contact the AdSense support teams, not the Android team. @Disconnect: Please do not use anecdotal evidence as a generalized truth. On Fri, Aug 14, 2009 at 8:22 AM,

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
Hello! AbsListView implements onCreateInputConnection using an EditText, subclass of TextView :). My question is how should a custom View implement those methods so one can display the virtual keyboard. Andrei. On Fri, Aug 14, 2009 at 6:23 PM, greg sep...@eduneer.com wrote: I put the following

[android-developers] Re: how to get notified(or Listen) for the changes in SD card

2009-08-14 Thread Mingli Wang
try FileObserver, it may help u --~--~-~--~~~---~--~~ 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

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Roman ( T-Mobile USA)
http://www.amazon.com/Android-Programming-Books/lm/R3IDV45VDVAY3M One beginner book is sufficient, because most of the books are covering the same topics over and over -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: canvas.save() / restore() , what is this?

2009-08-14 Thread Streets Of Boston
Before you call save() on the canvas, your canvas is in a certain state (clip region/transformation matrix/etc). Then you call save() and all this info is saved away somewhere. Then other code (e.g. paints of child-views) can modify this canvas anyway they like. Then when control is returned

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-14 Thread niko20
Well actually the other thing too is my program is designed so that if it loses focus (OnPause), it stops the audio creation thread. So even though it's priority is set high, it only runs the high thread while the program is in the foreground, so it shouldn't be too detrimental to the entire

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Mark Murphy
Streets Of Boston wrote: Mark Murhpy's (regular here on these forums) e-books are highly regarded: http://commonsware.com/mmurphy.html http://commonsware.com/books.html Thanks! More generally, watch for books that are being kept up to date for new Android releases. Mine are continuously

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Casper Bang
I second the recommendation for Mark Murphy's books. I wish I had known about these before investing in other ones. Small mini-review to explain why on my blog: http://coffeecokeandcode.blogspot.com/2009/08/android-books-review.html /Casper On 14 Aug., 08:42, Barry Wei barrywei.uyg...@gmail.com

[android-developers] Re: Overlaying text on a bitmap

2009-08-14 Thread Jack Ha
Code snippet for drawing text on a bitmap: Canvas mCanvas = new Canvas(mBitmap); mCanvas.drawText(...); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity,

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Romain Guy
Casper, It's my humble opinion that all the above books favors XML layout a bit too much, as it makes examples harder to read/type - and lets face it, it's limited how complex a layout will be on such a small screen anyway. They do and rightly so. We already told you why. The XML layouts are

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Disconnect
http://adsenseaccountdisabled.org/ might help too. (And Romain, there are tons of examples out there of legitimate sites that get banned without any specified reason, automated appeal rejections, and lack of payment. Frequently the first month they hit a single-month payment.

[android-developers] Re: any development book for new guy?

2009-08-14 Thread Casper Bang
Whoa, please don't put words in my mouth. I know you've answered my question regarding the subject since. It doesn't really have much to do with the book review but I will go ahead and update my entry anyway. Peace. :) /Casper --~--~-~--~~~---~--~~ You received

[android-developers] Re: canvas.save() / restore() , what is this?

2009-08-14 Thread Jiri
Ok, i see I think coming from flash I think to much in timelines and frames. In Java there is offcourse no such thing, so i understand ( i think ) why one needs to sometimes revert back to previous canvas state. Thnx for clearing that up. Jiri Streets Of Boston wrote: Before you call

[android-developers] StateListDrawable issue

2009-08-14 Thread skink
hi, say i have white-only-with-alpha NinePatchDrawable and depending on state i'd like to colorify it and finally to setBackgroundDrawable for some Views. i thought i could use StateListDrawable: sld = new StateListDrawable() // repeat this for every color/state drawable =

[android-developers] Re: Scope issue - newby question

2009-08-14 Thread Jiri
you are right. Cheers! Jiri Mark Murphy wrote: Jiri wrote: I think it is a scoping issue, but I cant seem to find how to solve it. I would appreciate some help. public class SliderTest extends Activity { private HorizontalSlider slider; public TextView pView;

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread greg
I haven't tried switching data connections but I plan to and I took note that data connection handoff issues are discussed in the 'Coding for Life ... Battery Life' video (starting around the 17 minute mark) at http://www.youtube.com/watch?v=OUemfrKe65c I hope that helps. - Greg On Aug 14,

[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link

2009-08-14 Thread Roman ( T-Mobile USA)
This is not yet supported. You would need to change the platform code to support this correctly. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Forgive me if I am missing the obvious here but is there an easy way to get the coorect azimuth/roll/pitch values when the phone is oriented to the horizontal position? When you hold a device certically, the compass and roll/pitch values are correct but if you hold the phobe horizontally the

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Photics
Hello Romain, Your response is encouraging. I'm working on a new app and I'm trying to fight the discouraging feeling. Android is lots of fun to work with, but I'm still annoyed at how the AdSense issue was handled. Would I get burned again by Google if I continued work on Android? Seeing the

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Dianne Hackborn
Do the same thing TextView does. On Fri, Aug 14, 2009 at 8:33 AM, Andrei Bucur andrei.bu...@gmail.comwrote: Hello! AbsListView implements onCreateInputConnection using an EditText, subclass of TextView :). My question is how should a custom View implement those methods so one can display the

[android-developers] Re: Does Android support detecting right/left click on the mouse

2009-08-14 Thread Dianne Hackborn
The Android platform currently doesn't support mouse input at all. Some people may have hacked it to allow for mouse input, but this is very much not supported because none of the UI has actually been designed to work well with a mouse. On Fri, Aug 14, 2009 at 2:38 AM, Nguyen Dinh Minh

[android-developers] Re: AdSense Android - A Disappointed Developer's Rant

2009-08-14 Thread Mark Murphy
Photics wrote: To keep things more on-topic, here's what I would try differently if I was to use AdSense in my app again. Make sure that the Adsense spiders can grab your content. I was using htaccess to block all but android/ iphone traffic. I wanted a more safe and secure playground for my

[android-developers] Re: MediaPlayer and memory buffers.

2009-08-14 Thread phil
it would be cool if AudioTrack could do this, but it looks like that only accepts PCM. :( On Aug 13, 9:41 pm, phil phil.pellouch...@gmail.com wrote: I have looked at the documentation for MediaPlayer and it doesn't seem to do what I need.  I need to be able to feed a personalized stream to

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-14 Thread Dianne Hackborn
Being in the foreground doesn't mean you have exclusive access to the device -- it still needs to be able to respond to incoming calls, etc. There is nothing intrinsically wrong with an application working at audio priority for doing audio work... there is something extremely wrong with it

[android-developers] Re: Turn on light of trackball on HTC magic

2009-08-14 Thread Dianne Hackborn
There is no direct API, the light is controlled indirectly by posting a notification that requests the lights flash. On Fri, Aug 14, 2009 at 3:43 AM, Anton Pirker an...@ignaz.at wrote: Hey list! I have a HTC Magic and just love the glowing trackball if you have missed a call. So i wanted

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread greg
I haven't yet experimented with the GPS accuracy on Android devices, but I plan to. How did you measure your 30-100 meter accuracy? Did the accuracy improve as you stayed at the same location in the open field? - Greg On Aug 14, 10:10 am, YoFrankie braun.marku...@googlemail.com wrote: with

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread YoFrankie
The Location class has a getAccuracy() method and displaying the gps coordinates on google maps shows that 30m accuracy often really means that you are 30 away of the point you really stood at. Accuracy doesn't improve, even when not moving. --~--~-~--~~~---~--~~

[android-developers] Re: Automated Call answer

2009-08-14 Thread Balwinder Kaur (T-Mobile USA)
You can listen to the event of an incoming Call by using the PhoneStateListener onCallStateChanged, but I don't believe it is possible to intercept an Incoming Call (Outgoing call is a different matter). For what it is worth, there is an old but interesting read on the topic

[android-developers] ListActivity vs Activity what are the advantages?

2009-08-14 Thread Moto
Hi, I was reading on ListActivity and Activity and wanted to know which is better? I only need to display one listview. Would I see great improvements? Does ListActivity handle screen rotation better or it's the same? Thanks! Moto! --~--~-~--~~~---~--~~ You

[android-developers] Re: Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Sorry about that poorly spelt question - I was in a hurry earlier. ;) Basically is there a way to tell the sensors what orientation your activity is in, so if the phone is held horizontally the compass works correctly? On Aug 14, 5:51 pm, mscwd01 mscw...@gmail.com wrote: Forgive me if I am

[android-developers] 2 weeks left and still no submission site available

2009-08-14 Thread flohier
There's roughly 2 weeks left and still no update on the ADC site to allow application submission. When can we expect an update ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Listing Console does not update applicaitons statistics

2009-08-14 Thread Warren
I have been watching my Developer Console also. They seem to update a couple times a day. So if yours hasn't updated in a couple days something might be wrong. Or there might just be fluctuations in the number of applications to process vs the computer power available to process them. On Aug

[android-developers] Re: which is a true Android phone?

2009-08-14 Thread jhoffman
The G1s, as far as I know, got an Over-The-Air upgrade to v1.5 when it came out. The only thing that the older hardware precludes you from is testing your app on the newer hardware. The SDK is the same (unless somebody simply did not update their Android version on the phone). On Aug 14, 2:23 

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
Thanks! You have a gift to wake me up from stupidity :). I actually implemented everything correctly, except that I've made the uber obvious mistake to call the IM in the onCreate() function of the activity. I guess I should have used at least onWindowFocusChanged(). Sorry for wasting your time.

[android-developers] AndroidAPI App

2009-08-14 Thread Andrei
I wrote my first Hello World App for Android: AndroidAPI It should be useful for Android developers Actually it provides full Android Java API on your Android phone and does not require connection Search for AndroidAPI in Market --~--~-~--~~~---~--~~ You

[android-developers] How to redraw only a part of my custom View

2009-08-14 Thread fhucho
I have a custom view, that overrides the onDraw() method. For better performance I want to redraw only a small part of Canvas in onDraw(), how can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: how to improve gps accuracy

2009-08-14 Thread greg
Typically, there is some variant of long term averaging involved when measuring the accuracy of a GPS receiver. I wouldn't trust a map or a getAccuracy() method (at least without knowing the details of what it is measuring). - Greg On Aug 14, 1:20 pm, YoFrankie braun.marku...@googlemail.com

[android-developers] Re: Regarding the Java Version

2009-08-14 Thread Anand
Hi All, I also faced the same issue, however below command worked for me. My box is Ubuntu 8.04. $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev $ sudo update-java-alternatives -s

  1   2   >