[android-developers] relation between ViewRoot and View

2010-02-20 Thread sheng wang
Hi , Can any one give more information about ViewRoot and what's the relation between viewroot and view? I found a Viewroot create a surface at its' constructor, which I think is the real bitmap data goes to. So I guess every view has it own viewroot, every view has a surface for drawing and

Re: [android-developers] Re: Set style one by one in TextView

2010-02-20 Thread syuta
hi,Bob. thanks a lot! It seems to be able to do. i will try! 2010年2月20日2:44 Bob Kerns r...@acm.org: 中村さん、 TextView's setText method is declared to take a CharSequence, rather than simply a String. This (and many other places) do so, to allow you to use other types besides String.

[android-developers] TIPS FOR HEALTHY AND BEAUTY TIP

2010-02-20 Thread suu
HAI FRIEND... I SIGN UP UR ADD.. PLS SIGNUP AND REGISTER UR PROFILE... IF U REGISTER AND U GET RICH GIRLS AND BOYS www.easyinternetmoney.50webs.com www.softec35.blogspot.com http://123maza.com/50/amaze21

[android-developers] OnResume() of activity called when pressing the endcall key

2010-02-20 Thread techietone
hi all, I run the camera app , and press the endcall key button , then i press that button again . from the logs I can see OnResume() of camera app called when turning on the backlight. Because of this behaviour , first the camera preview activity is shown and then the LOCKSCREEN comes up. the

[android-developers] binding widgets with AppWidgetManager.bindAppWidgetId

2010-02-20 Thread Deren
I've successfully built a small sample app where the user can add a appwidget, using the AppWidgetPicker, using the action AppWidgetManager.ACTION_APPWIDGET_PICK. When I do this, the AppWidgetPicker takes care of binding my appwidget-id to a provider. However, now I'd like to load some widgets

Re: [android-developers] Re: Question on modifying application framework + importing to the Windows SDK

2010-02-20 Thread Mark Murphy
RCP2278 wrote: Hi, can anyone help me? Questions like yours are better for [android-porting], or possibly [android-framework]. This list is mostly for SDK-level development. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_

Re: [android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread Mark Murphy
Achanta wrote: But since I started trying to log everything to see the activity life cycle, what I observed is that onStop method is not actually being called when I click on home button. :: blink, blink :: Its being called as soon as i open my app again, which is not how I wanted it to

[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of bringing down the prices of costly items through volume shopping. Go shopping with http://www.shoppingreps.com?SourceId=1244 You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING FEES!

[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of bringing down the prices of costly items through volume shopping. Go shopping with http://www.shoppingreps.com?SourceId=1243 You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING FEES!

[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of bringing down the prices of costly items through volume shopping. Go shopping with http://www.shoppingreps.com?SourceId=1243 You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING FEES!

[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of bringing down the prices of costly items through volume shopping. Go shopping with http://www.shoppingreps.com?SourceId=1243 You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING FEES!

[android-developers] $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread Greg Donald
Why do I incur a $3.00 Marketplace chargeback when someone else steals a credit card and buys my app? I'm not the one who stole the credit card, WTF? That's insane. I just lost $6.00 on two bogus sales. That's a really significant when I'm only selling apps at $0.99/app. Broken Marketplace

Re: [android-developers] Re: Disable RadioGroup ?

2010-02-20 Thread Atif Gulzar
Thanks, Yes I can treat individual buttons. But just wondering why I can't operate on RadioGroup. Is it some bug or I am missing something. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Fri, Feb 19, 2010 at 11:42 PM, DonFrench dcfre...@gmail.com wrote: Or you could make them

[android-developers] GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread yidongsoft
My code to obtain GPS coordinate works perfect in HTC cells. But I find it doesn't work in Moto Droid. I debug it and find eveything seems fine. But the coordinate never obtained. Please read my code first: /// defining listener LocationListener locationListener = new

Re: [android-developers] GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread Mark Murphy
yidongsoft wrote: My code to obtain GPS coordinate works perfect in HTC cells. But I find it doesn't work in Moto Droid. I debug it and find eveything seems fine. But the coordinate never obtained. snip No error message, No fatal return. Every things invoked well, but onLocationChanged()

[android-developers] Re: HttpPost works with Wifi, not with Mobile...

2010-02-20 Thread p1erstef
Hi Kumar, I still got the problem mentioned above... I don't see how I could check the response status line: httpclient.execute(httppost) throws an IOException, so it doesn't return any response... Here are some logcat (between the start of HttpPost till the exception is raised): 02-20

[android-developers] Re: Android Market Changed ranking

2010-02-20 Thread polyclefsoftware
There was definitely a change in the ranking algorithm. Two of my apps had been stable at their respective positions for ~2 weeks and switched positions, along with most other apps in my category, some time in the past couple of days. If I had to guess, it looks like the new ranking algorithm

Re: [android-developers] HttpPost works with Wifi, not with Mobile...

2010-02-20 Thread Michael Rueger
On 1/3/2010 6:52 PM, p1erstef wrote: Any idea of where the problem could come from? are you using https? http://groups.google.com/group/android-developers/browse_thread/thread/da53e83f48ff7778?hl=en http://groups.google.com/group/android-developers/msg/7a6752d0e77334c9?hl=en Michael --

[android-developers] Re: HttpPost works with Wifi, not with Mobile...

2010-02-20 Thread p1erstef
No, I'm not using https, I'm using http. On 20 fév, 18:07, Michael Rueger mike.rue...@gmail.com wrote: On 1/3/2010 6:52 PM, p1erstef wrote: Any idea of where the problem could come from? are you using https? http://groups.google.com/group/android-developers/browse_thread/threa...

[android-developers] How can I configure list view so that it can put focus to a focusable item within a list item

2010-02-20 Thread n179911
Hi, Can you please tell me how can I configure list view so that it can put focus to a focusable item within a list item? Android by default puts focus on the whole list item. Can I change it so that it can put focus to a focusable item within that item (e.g. a button)? Thank you. -- You

Re: [android-developers] Re: Android Market Changed ranking

2010-02-20 Thread Joshua Frank
I hope that they are not using user retention rates. That wouldn't be fair for every one who updated in mid December and lost all of their active user stats. One of my apps is still down 35%. On Sat, Feb 20, 2010 at 11:04 AM, polyclefsoftware dja...@gmail.com wrote: There was definitely a change

[android-developers] Re: Landscape orientation of Intent

2010-02-20 Thread Tatyana Ulyanova
Hello, Lipinski! I'm very glad that my advise helps you :) As for your question about Menu orientation: actually Menu construction doesn't provide orientation, so I think it would use orientation of activity that it belongs to. It's my opinion on this question. But I didn't dig it this

[android-developers] Re: Landscape orientation of Intent

2010-02-20 Thread Tatyana Ulyanova
Hello, Lipinski! I'm very glad that my advise helps you :) As for your question about Menu orientation: actually Menu construction doesn't provide orientation, so I think it would use orientation of activity that it belongs to. It's my opinion on this question. But I didn't dig it this

[android-developers] Re: Intent action for network events in android sdk

2010-02-20 Thread jotobjects
Thanks for that information. These are the actions documented with that behavior - ACTION_BATTERY_CHANGED ACTION_CONFIGURATION_CHANGED ACTION_TIME_TICK On Feb 19, 11:00 am, Mark Murphy mmur...@commonsware.com wrote: jotobjects wrote: On Feb 19, 4:38 am, Mark Murphy mmur...@commonsware.com

[android-developers] Re: https connection problem

2010-02-20 Thread jotobjects
What actual change did you make to the server? The link you provided is for MSIE client connections so it is not clear what change you made for Android client connections. Also have you created an Android bug with this information? Your case should be reproducible if you provide details about

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread intbt
it may be as simple as adding android:clearTaskOnLaunch=true in your Manifest under the main activity tag to re-initialize after returning to Home screen. intbt On Feb 20, 4:54 am, Mark Murphy mmur...@commonsware.com wrote: Achanta wrote: But since I started trying to log everything to

Re: [android-developers] Re: https connection problem

2010-02-20 Thread Michael Rueger
On 2/20/2010 6:53 PM, jotobjects wrote: What actual change did you make to the server? The link you provided is for MSIE client connections so it is not clear what change you made for Android client connections. Oh, right, I actually meant to post that using ssl-unclean-shutdown is enough to

[android-developers] Playing a music (mp3) file over the web using an intent

2010-02-20 Thread Jason
Hi, I'm trying to make it so that the default music player application on the cell phone will launch and play an mp3 at a web address. If I do this: Intent intent = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(http://www.chillinglizard.com/

[android-developers] Advice on Swipe Direction and Velocity

2010-02-20 Thread joshbeck
Hello all, I'm looking for a starting point on this: Here's a good example: -When you create a 'ListView', as the user swipes up or down the list scrolls in accordance with how fast the user swiped. Give it a fast swipe, and the list scrolls farther, faster. Same thing is true within the web

[android-developers] Re: singleTask + activity stack not preserved?

2010-02-20 Thread jotobjects
On Feb 19, 2:11 pm, jotobjects jotobje...@gmail.com wrote: // 2-This does not work - exception is can't find Activity to handle Intent Intent intent = new Intent(Intent.ACTION_VIEW); intent.addCategory(foo.singletask.intent.category.FOO); Fixed that problem - if a category is listed in the

[android-developers] Re: Advice on Swipe Direction and Velocity

2010-02-20 Thread skink
On Feb 20, 7:52 pm, joshbeck josh.beck2...@gmail.com wrote: Hello all, I'm looking for a starting point on this: Here's a good example:    -When you create a 'ListView', as the user swipes up or down the list scrolls in accordance with how fast the user swiped. Give it a fast swipe, and

[android-developers] Re: Advice on Swipe Direction and Velocity

2010-02-20 Thread joshbeck
Ok, I've done some reading and I have a working theory: It's done using something this: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_DPAD_DOWN: (increment static value X by Y );

[android-developers] Re: $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread Streets Of Boston
Relax!!! It happened to me too a few times. It sucks, but this is just the cost of doing business. And it's in the Android Market agreement that you accepted. If you were to handle the credit-card transations yourself, you would be complaining much louder. Just do a google search for

[android-developers] Re: Advice on Swipe Direction and Velocity

2010-02-20 Thread joshbeck
Actually, I'm working with openGL. So, it looks like I'm supposed to set up a GestureListener and override onFling to increment Y or X. Then use Y and X from there to rotate my object and slow it down and stop it using a math function. On Feb 20, 1:28 pm, joshbeck josh.beck2...@gmail.com wrote:

[android-developers] Re: Advice on Swipe Direction and Velocity

2010-02-20 Thread skink
On Feb 20, 8:28 pm, joshbeck josh.beck2...@gmail.com wrote: Ok, I've done some reading and I have a working theory: It's done using something this:   @Override         public boolean onKeyDown(int keyCode, KeyEvent event) {                 switch (keyCode) {         case

[android-developers] Re: Advice on Swipe Direction and Velocity

2010-02-20 Thread skink
On Feb 20, 8:56 pm, joshbeck josh.beck2...@gmail.com wrote: Actually, I'm working with openGL. So, it looks like I'm supposed to set up a GestureListener and override onFling to increment Y or X. yes, this is the easiest way Then use Y and X from there to rotate my object and slow it

[android-developers] Re: $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread snctln
On Feb 20, 1:56 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Relax!!! It happened to me too a few times. It sucks, but this is just the cost of doing business. And it's in the Android Market agreement that you accepted. Exactly my thoughts. It sucks, i get one about once a month,

Re: [android-developers] Re: $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread Angel Cruz
Is this still true if payments are made with PayPal? I am new to this field, and so forgive me if the question is naive. Even though this is a nuisance as some of you responded, this is still unacceptable (theft is theft). On Sat, Feb 20, 2010 at 12:29 PM, snctln catlin.s...@gmail.com wrote:

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread Achanta
I just tried it on an app I'm working on (Android 2.1), and onStop() was called at the point I pressed the HOME button. I am using Android 1.6 as I need to support all the phones which are working on that version also. And in this version or atleast for my situation its not working so. Are

[android-developers] Re: How to close an activity when the user clicks on home button

2010-02-20 Thread Achanta
Thankyou, I needed finishTaskonLaunch as that is more suitable than clearTaskOnLaunch for my case as I need to close the activity itself which I am opening in a separate task. On Feb 20, 10:56 am, intbt in...@tacberry.com wrote: it may be as simple as adding android:clearTaskOnLaunch=true

[android-developers] .classroot file missing

2010-02-20 Thread Ilan
I'm trying to build and debug with eclipse but the .classroot file is missing from the build. The development/ide/eclipse is folder is empty. Any help will be appreciated. Cheers, Ilan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] MapView, can't focus, unfocus, refocus an overlayitem

2010-02-20 Thread Fabian Sturm
Hi, I already posted that I have trouble unfocusing and refocusing an overlayitem in a mapview. I now have added a bug report with a complete example showing the problem. Maybe someone can spot the problem in the code or in the mapview? http://code.google.com/p/android/issues/detail?id=6752

Re: [android-developers] Re: Intent action for network events in android sdk

2010-02-20 Thread Dianne Hackborn
On Fri, Feb 19, 2010 at 10:58 AM, jotobjects jotobje...@gmail.com wrote: What is the reason that a BroadcastReceiver would function differently depending on registration in Manifest vs. registerReceiver() ? For broadcasts that are generated often and fairly continually, we don't want to end

[android-developers] Layout resource: FWVGA vs. WVGA

2010-02-20 Thread freezy
Hello there, This seems like a simple problem to me, but I can't figure it out. I have a fullscreen layout that displays differently if the screen is taller (854 instead of 800 pixels). I've tried putting the xml into layout-notlong-hdpiand layout-long-dpi respectively, but both my WVGA and FWVGA

Re: [android-developers] Layout resource: FWVGA vs. WVGA

2010-02-20 Thread Dianne Hackborn
No, there deliberately isn't. At that level, you really shouldn't be creating distinct layouts -- I'd strongly encourage you to design a layout that can resize appropriately to adjust for the screen. (long is to distinguish between HVGA and large screens like WVGA/FWVGA). Larger picture, you

Re: [android-developers] Re: Question on modifying application framework + importing to the Windows SDK

2010-02-20 Thread Dianne Hackborn
On Fri, Feb 19, 2010 at 5:31 PM, RCP2278 rcp2...@gmail.com wrote: According to the devguide, there is an activity method onCreateThumbnail() which gets called just before that activity is about to suspend (or call just before onPause()). However, for some reason, the onCreateThumbnail() is

Re: [android-developers] Layout resource: FWVGA vs. WVGA

2010-02-20 Thread freezy
Thanks for the fast reply Dianne. I think I understood the whole density/size vs pixels approach, but this is an issue about aspect ratios. Android already *has* that distinction with the long/notlong qualifier, just that the WVGA/FWVGA distinction is not made. My layout is maybe a special case.

[android-developers] Re: GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread Bob Kerns
I think his use of the main Looper is OK -- though not something I would endorse, in part, because: I think the problem is in the lifetime of his handlers. Yidongsoft: Normally, you allocate the Handler in your main thread -- and then HANG ONTO THEM, generally in an instance field of your

Re: [android-developers] Re: GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread Mark Murphy
Bob Kerns wrote: * Create your Handler in the context of whatever you want to associate with handling it. For example, if you're updating a view in an activity, create it in the onCreate() method for the view. * Save your handler in an instance variable in that context. In other words, the

[android-developers] Re: $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread Bob Kerns
Google Marketplace only accepts Google Checkout, so if you're selling through Google Marketplace, you can't use PayPal either directly or indirectly (it's in your agreement). If you're selling from your website, or from one of the other Android stores, you'll have to deal with PayPal's own set of

[android-developers] email multi attachments

2010-02-20 Thread sleith
Hi, is it possible to send email with multi attachments? Because what i see is only Intent.EXTRA_STREAM to attach the file, and it's only one file. Thanks for the help :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Layout resource: FWVGA vs. WVGA

2010-02-20 Thread Dianne Hackborn
The long qualifier is for something significantly longer than the original standard HVGA screen, nothing more than that. Absolutely positively do not use the old raw screen size qualifiers; this simply do no work, and you can pretty much assume that you will not get what you want in some specific

[android-developers] Re: AudioTrack lag

2010-02-20 Thread Bob Kerns
Well, I say again that blocking/non-blocking really has nothing to do with how quickly you can respond. When you queue data up to be played, whether via a blocking call, or a non-blocking call, at some point, you no longer have the ability to abort. The distance in the pipeline between that

[android-developers] Re: GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread Bob Kerns
Gack. I see I said that. Thanks for correcting it. I think what was going through my mind was that the handler purpose would likely be updating the activity's view, and that idea got short- circuited between forebrain and fingers. Thanks for the catch. On Feb 20, 6:27 pm, Mark Murphy

[android-developers] Re: user agent of the device ..

2010-02-20 Thread Bob Kerns
If you're using a WebView, the answer is yes. WebView webview = ...; WebSettings settings = webview.getSettings(); String uastring = settings.getUserAgentString(); I don't know of a way to ask the Browser application itself -- but if you're doing this level of stuff, you may be wanting more