Re: [android-developers] Handlers and Timers never works for 24 hours task
I dont want to unsubscribe from you, that was wrong I clicked on the wrong link and I thought that would fix my facebook...sorry...but it keeps saying (null) thread cannot be recieved on everything facebook...thank you...but I need to know what to do?? OldJim junderw...@ipass.com wrote: Mark, Why should he not do that? Are you saying that the Android Delayed Message is not reliable? I would like to know where that limitation is documented. thanks, JIm On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory management issue - outOfMemory exception
A ScrollView can only contain ONE child view. So no, it's not possible with View based objects. You could implement some kind of caching , but when you go through all that trouble, you will realize that it's easier to just use a ListView. On Saturday, March 31, 2012 7:06:51 AM UTC+8, Farhan wrote: I know it can be achieved usiing listViews, but how do I reuse views in scrollView?? Is that possible at all? On Sat, Mar 31, 2012 at 3:35 AM, lbendlin l...@bendlin.us wrote: use a listview and re-use the rows. On Friday, March 30, 2012 5:06:50 PM UTC-4, Farhan wrote: Hello everyone, In my application, I have custom scrollView to which a lot of images get added. I get an outOfMemoryException exception. I know why I am getting it, but I cant think of how to fix it while using a scrollView, not a listView. Any suggesstions? Hope to get some help soon. Regards, Farhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Flash freedom
Sure. Flash is a document format, you are free to create you own lightweight flash player. On Saturday, March 31, 2012 2:23:11 AM UTC+8, bob wrote: Does anyone know of a reasonable way to play Flash files in an Android app that does not require the installation of the Adobe Flash Player plug-in? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus multitouch trouble
PR protip: ignoring people isn't the way to go. Just a little hey sorry about that, it will be fixed in the next Android update would have sufficed. Because of the way you handled it, developers wasted time trying to fix the problem themselves thinking it was their fault. On Wednesday, December 21, 2011 5:18:41 PM UTC+1, Jean-François Geyelin wrote: I don't have a galaxy nexus, but I am receiving some complaints from the users, and engadget reported the problem: http://www.engadget.com/2011/12/18/galaxy-nexus-users-reporting-touchscreen-trouble-lower-scores-i/ Do you have any idea what's causing this? Is it a problem in ICS, in the games, or with the Galaxy Nexus? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus multitouch trouble
The article says it's a software problem -- and it would appear so from the symptoms. Since the GNex just had Android 4.0.4 released 2 days ago, you may want to see if it's fixed. By the way, why are you posting this? It just sounds like a rant, to be honest. You have any particular SDK related questions/issues? On Saturday, March 31, 2012 4:38:36 PM UTC+8, Jean-François Geyelin wrote: PR protip: ignoring people isn't the way to go. Just a little hey sorry about that, it will be fixed in the next Android update would have sufficed. Because of the way you handled it, developers wasted time trying to fix the problem themselves thinking it was their fault. On Wednesday, December 21, 2011 5:18:41 PM UTC+1, Jean-François Geyelin wrote: I don't have a galaxy nexus, but I am receiving some complaints from the users, and engadget reported the problem: http://www.engadget.com/2011/12/18/galaxy-nexus-users-reporting-touchscreen-trouble-lower-scores-i/ Do you have any idea what's causing this? Is it a problem in ICS, in the games, or with the Galaxy Nexus? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: folder customize application or badge application ?
You want to create a Home Screen replacement app. Great, please get coding. On Saturday, March 31, 2012 3:50:27 PM UTC+8, Live Happy wrote: i want to create folder customize application or badge application i dont know what is the specific name of this view so maybe someone can help me to to know what is the name of this view appear in picture and how to crate it and thx on 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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus multitouch trouble
It's totally a rant, but a rant whose goal is to make Google better by realizing that leaving us (and the consumers) in the dark is not the best decision (lots of wasted time). And I am aware of the 4.0.4 update, I found out when doing my weekly research about the Galaxy Nexus multi touch situation. On Saturday, March 31, 2012 11:18:00 AM UTC+2, Zsolt Vasvari wrote: The article says it's a software problem -- and it would appear so from the symptoms. Since the GNex just had Android 4.0.4 released 2 days ago, you may want to see if it's fixed. By the way, why are you posting this? It just sounds like a rant, to be honest. You have any particular SDK related questions/issues? On Saturday, March 31, 2012 4:38:36 PM UTC+8, Jean-François Geyelin wrote: PR protip: ignoring people isn't the way to go. Just a little hey sorry about that, it will be fixed in the next Android update would have sufficed. Because of the way you handled it, developers wasted time trying to fix the problem themselves thinking it was their fault. On Wednesday, December 21, 2011 5:18:41 PM UTC+1, Jean-François Geyelin wrote: I don't have a galaxy nexus, but I am receiving some complaints from the users, and engadget reported the problem: http://www.engadget.com/2011/12/18/galaxy-nexus-users-reporting-touchscreen-trouble-lower-scores-i/ Do you have any idea what's causing this? Is it a problem in ICS, in the games, or with the Galaxy Nexus? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: folder customize application or badge application ?
There is QuickContactBadge widget. What you are looking at looks like cloned copy of that. On Saturday, March 31, 2012 3:50:27 PM UTC+8, Live Happy wrote: i want to create folder customize application or badge application i dont know what is the specific name of this view so maybe someone can help me to to know what is the name of this view appear in picture and how to crate it and thx on 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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus multitouch trouble
So does 4.0.4 fixes the issue? If yes, I think you cannot say that Google hadn't acted in a reasonable amount of time. I've had my Galaxy Nexus for a month or so, and you are the first time I've even heard of the issue, not alone experienced it. Then again, I don't really do heavy gaming on it. On Saturday, March 31, 2012 5:26:06 PM UTC+8, Jean-François Geyelin wrote: It's totally a rant, but a rant whose goal is to make Google better by realizing that leaving us (and the consumers) in the dark is not the best decision (lots of wasted time). And I am aware of the 4.0.4 update, I found out when doing my weekly research about the Galaxy Nexus multi touch situation. On Saturday, March 31, 2012 11:18:00 AM UTC+2, Zsolt Vasvari wrote: The article says it's a software problem -- and it would appear so from the symptoms. Since the GNex just had Android 4.0.4 released 2 days ago, you may want to see if it's fixed. By the way, why are you posting this? It just sounds like a rant, to be honest. You have any particular SDK related questions/issues? On Saturday, March 31, 2012 4:38:36 PM UTC+8, Jean-François Geyelin wrote: PR protip: ignoring people isn't the way to go. Just a little hey sorry about that, it will be fixed in the next Android update would have sufficed. Because of the way you handled it, developers wasted time trying to fix the problem themselves thinking it was their fault. On Wednesday, December 21, 2011 5:18:41 PM UTC+1, Jean-François Geyelin wrote: I don't have a galaxy nexus, but I am receiving some complaints from the users, and engadget reported the problem: http://www.engadget.com/2011/12/18/galaxy-nexus-users-reporting-touchscreen-trouble-lower-scores-i/ Do you have any idea what's causing this? Is it a problem in ICS, in the games, or with the Galaxy Nexus? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory management issue - outOfMemory exception
I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues. On Sat, Mar 31, 2012 at 12:12 PM, Zsolt Vasvari zvasv...@gmail.com wrote: A ScrollView can only contain ONE child view. So no, it's not possible with View based objects. You could implement some kind of caching , but when you go through all that trouble, you will realize that it's easier to just use a ListView. On Saturday, March 31, 2012 7:06:51 AM UTC+8, Farhan wrote: I know it can be achieved usiing listViews, but how do I reuse views in scrollView?? Is that possible at all? On Sat, Mar 31, 2012 at 3:35 AM, lbendlin l...@bendlin.us wrote: use a listview and re-use the rows. On Friday, March 30, 2012 5:06:50 PM UTC-4, Farhan wrote: Hello everyone, In my application, I have custom scrollView to which a lot of images get added. I get an outOfMemoryException exception. I know why I am getting it, but I cant think of how to fix it while using a scrollView, not a listView. Any suggesstions? Hope to get some help soon. Regards, Farhan -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory management issue - outOfMemory exception
On Sat, Mar 31, 2012 at 6:54 AM, Farhan Tariq farhan@gmail.com wrote: I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues. *Why* are you using a ScrollView instead of a ListView? A ListView with all disabled rows should be indistinguishable from a ScrollView to the user (off the top of my head), and it gives you the ability to recycle your views. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory management issue - outOfMemory exception
I have made a UI that has images with varying heights, but constant width, added to each inner linearLayout (having vertical orientation). This way, I am able to add images without spaces occuring due to different heights. Using a listView that has 3 images of different heights added horizontally in a row, I will get empty spaces in a row, and I want to avoid them. So listView would not serve the purpose. On Sat, Mar 31, 2012 at 4:00 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Mar 31, 2012 at 6:54 AM, Farhan Tariq farhan@gmail.com wrote: I have one LinearLayout as child of the scrollView, and that linearLayout has 3 linear layouts that I am adding images to. Now, I can't figure out how to handle memory issues. *Why* are you using a ScrollView instead of a ListView? A ListView with all disabled rows should be indistinguishable from a ScrollView to the user (off the top of my head), and it gives you the ability to recycle your views. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NoClassDefFoundError for gson after updating the ADT and SDK Tools
Just mark all your JARs and Eclipse User Libraries as exported in the Build Path / Order and Export configuration. It didn't work for me until I also put Android Dependencies before my libraries in the forementioned tab. Still don't know what the order is supposed to do. :D On Mar 22, 1:06 pm, Luca Morettoni l...@morettoni.net wrote: On Thu, Mar 22, 2012 at 12:03 PM, Mark Murphy mmur...@commonsware.com wrote: You can try: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-... thanks! -- Luca Morettoni luca(AT)morettoni.net |http://www.morettoni.net gtalk/msn: luca(AT)morettoni.net |http://twitter.com/morettoni Google+ profile:http://bit.ly/morettoni_plus Member of Python User Group Perugia:http://www.pypg.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 3D Charts
How to draw 3D interactive charts in android.Please suggest something on it. Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: It is possible to lock the screen orientation of the phone only when you want? (dinamically)
Maybe my blog on this subject might be useful for you. There is a section Locking the screen layout in it: http://android-screen-layout.blogspot.com - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory management issue - outOfMemory exception
On Sat, Mar 31, 2012 at 7:14 AM, Farhan Tariq farhan@gmail.com wrote: I have made a UI that has images with varying heights, but constant width, added to each inner linearLayout (having vertical orientation). This way, I am able to add images without spaces occuring due to different heights. Using a listView that has 3 images of different heights added horizontally in a row, I will get empty spaces in a row, and I want to avoid them. So listView would not serve the purpose. If you have three images of varying heights in a horizontal row, you will get empty spaces in a row, regardless of whether the row is in a ListView or a ScrollView or anything else. You appear to be comparing apples (three images in a vertical LinearLayout) with oranges (three images in a horizontal LinearLayout in a ListView row). Regardless, ScrollView does not offer much that will help you in the way of trying to hack in a recycling model. Whether you use an existing AdapterView (e.g., ListView) or roll your own, I suspect that is your clearest path to a solution. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!
:):) --Soyer. On Mar 28, 9:55 pm, Kostya Vasilyev kmans...@gmail.com wrote: I second that motion. Taking Vicodin Ex with a glass of red wine after my own deviated septum surgery some twenty years ago was great :) -- K On 03/28/2012 09:36 PM, Mark Phillips wrote: Penalty for wrong answer: you have to share your pain meds ;) Mark On Mar 24, 2012 6:45 PM, Justin Anderson magouyaw...@gmail.com mailto:magouyaw...@gmail.com wrote: Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hello Everyone, i have a small Question.about Text_to_Speech activity.
Hello everyone, I am using a Text_To_Speech in my application, which is detecting bluetooth signal and give it as a vocal feedback, the application is perfectly working, is just the given list of devices are given in brackets hence the text_to_speech is saying: Left Bracket,..., Right bracket. I wonder if there is a way to remove the brackets ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hello Everyone, i have a small Question.about Text_to_Speech activity.
Use If else.. !! When there is braces it shouldnt speak out ! On Sat, Mar 31, 2012 at 5:23 PM, Soyer mblack...@gmail.com wrote: Hello everyone, I am using a Text_To_Speech in my application, which is detecting bluetooth signal and give it as a vocal feedback, the application is perfectly working, is just the given list of devices are given in brackets hence the text_to_speech is saying: Left Bracket,..., Right bracket. I wonder if there is a way to remove the brackets ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adb shell from app
We need to execute some adb shell command from our app. Can someone help me to do it? Giuseppe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adb shell from app
What are those commands?usual copy move or something else? ..pain is temporary.quitting lasts forever.. On Sat, Mar 31, 2012 at 6:39 PM, Giuseppe porcelli.giuse...@gmail.comwrote: We need to execute some adb shell command from our app. Can someone help me to do it? Giuseppe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adb shell from app
Hi Softy, I need to change the stock audio.primary.exynos4.so from /system/lib/hw folder with a modified version, obviously on rooted device and after the user authorize it. I don't know really how to get the root permission and proceed with the copy (probably using adb shell). Thank you in advance, Il giorno sabato 31 marzo 2012 15:39:16 UTC+2, softy ha scritto: What are those commands?usual copy move or something else? ..pain is temporary.quitting lasts forever.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Sleep mode
On some devices, like the Sony Erricson Experia, if I long press the power button, I get a UI menu, with a sleep mode option. What would be the difference between that sleep mode and the screen-off sleep mode? On screen-off, i.e. when it hits the sleep mode, are the wifi radios and CPU disabled/switched-off? On Saturday, March 31, 2012 7:36:06 AM UTC+5:30, Dianne Hackborn wrote: On Android sleep mode is the screen being off. What do you mean by sleep mode? On Thu, Mar 29, 2012 at 10:50 PM, Put_tiMe putt...@gmail.com wrote: How can I goto sleep mode on a device? Is it only via the UI interface by long pressing the Screen On button? Or does it reach automatically goto sleep mode after X minutes after the screen has been switched off? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Sleep mode
On Sat, Mar 31, 2012 at 10:18 AM, Put_tiMe putt...@gmail.com wrote: On some devices, like the Sony Erricson Experia, if I long press the power button, I get a UI menu, with a sleep mode option. What would be the difference between that sleep mode and the screen-off sleep mode? Nothing. That option is in the menu in case you accidentally long-pressed the power button instead just pressing it. On screen-off, i.e. when it hits the sleep mode, are the wifi radios and CPU disabled/switched-off? The CPU stops running. WiFi behavior will vary by device and user preference. This was discussed recently: http://groups.google.com/group/android-developers/browse_thread/thread/4eee51105e3bfce3/ce6c261d6e67c07e -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adb shell from app
Ciao Giuseppe, I recently found this library with various root utilities: http://code.google.com/p/roottools/ I've never tried it but it looks promising. In their wiki you can find examples on how to run shell commands ( http://code.google.com/p/roottools/wiki/Usage#Running_root_commands). Hope it helps! Cheers, Yuvi DroidAhead http://www.droidahead.com On Sat, Mar 31, 2012 at 3:45 PM, Giuseppe porcelli.giuse...@gmail.comwrote: Hi Softy, I need to change the stock audio.primary.exynos4.so from /system/lib/hw folder with a modified version, obviously on rooted device and after the user authorize it. I don't know really how to get the root permission and proceed with the copy (probably using adb shell). Thank you in advance, Il giorno sabato 31 marzo 2012 15:39:16 UTC+2, softy ha scritto: What are those commands?usual copy move or something else? ..pain is temporary.quitting lasts forever.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app sales dropped dramatically in the past few days
Same On Thursday, March 29, 2012 3:40:45 AM UTC-5, Mat Jones wrote: Has anyone seen a fallen in their app sales through on app billing in the past few days? The past two days in app billing sales are down 90% We have around 800 New users a day and the same amount viewing the extra features page, so don't understand the issue Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how can i find that my client is disconnected from Network???
Hi, My app is consist of client, server application, Please tell me when i m sending data from the client to server and the network or server stop unexpectedly, so how can i find my network is disconnected and how can i show message to client. Thanks and Regards, Sahil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adb shell from app
Hi Yuvi, thank you very much for your help. Thank's to your suggestion I solved my problem. Giuseppe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hello Everyone, i have a small Question.about Text_to_Speech activity.
Hello Anirudh, the thing is that i am using two activities, so the string is getting dispatched from the first activity...the string is an array list but since for some reason, the list is not getting carried to the second activity and used in the TTS method i converted the array list to a string by using the method tostring(). so basically my problem would be solved if i know why the array list has to be converted to a string before getting dispatched... the part of my code which dispatch the string form the first activity to the second is : if (BluetoothDevice.ACTION_FOUND.equals(action)) { // Get the BluetoothDevice object from the Intent BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); // If it's already paired, skip it, because it's been listed already if (device.getBondState() != BluetoothDevice.BOND_BONDED) { mNewDevicesArrayAdapter.add(device.getName()); x=device.getName(); fromLat.add(x); } // When discovery is finished, change the Activity title } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) { setProgressBarIndeterminateVisibility(false); setTitle(R.string.Scanning_is_Over); Bundle bundle = new Bundle(1); String b=fromLat.toString(); bundle.putString(fromLat,b); Intent intent1=new Intent(AllthepiecesActivity.this,ttsActivity.class); intent1.putExtras(bundle); startActivity(intent1); startActivityForResult(intent1, 2); and the TTS code is: Bundle extras = this.getIntent().getExtras(); final String fLat=extras.getString(fromLat); inputText.setText(fLat); and if (text!=null text.length()0) { Toast.makeText(ttsActivity.this, Saying: + text, Toast.LENGTH_LONG).show(); tts.speak(text, TextToSpeech.QUEUE_ADD, null); } //to go to the first activity. Intent i=new Intent(ttsActivity.this,AllthepiecesActivity.class); startActivity(i); On Mar 31, 4:32 pm, Anirudh Loya loya.anir...@gmail.com wrote: Use If else.. !! When there is braces it shouldnt speak out ! On Sat, Mar 31, 2012 at 5:23 PM, Soyer mblack...@gmail.com wrote: Hello everyone, I am using a Text_To_Speech in my application, which is detecting bluetooth signal and give it as a vocal feedback, the application is perfectly working, is just the given list of devices are given in brackets hence the text_to_speech is saying: Left Bracket,..., Right bracket. I wonder if there is a way to remove the brackets ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: strange blue boxes with ? instead of images in my Android app...
Not sure how to fix though - the images are there, and it runs fine on some devices, any ideas please? On Saturday, 31 March 2012 03:13:11 UTC+1, lbendlin wrote: You are using a web view and the img tags are broken. On Thursday, March 29, 2012 4:21:10 AM UTC-4, Stuart B wrote: https://lh5.googleusercontent.com/-B1sU3tiWMZg/T3QbVMPcn3I/AN0/V2_45P9uxKg/s1600/Screenshot_2012-03-27-18-16-30.png Can you help? I have an app that runs great on iPhone/Pad, but on a few Android devices the images show up as question marks in a blue box. Anyone know why? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] open application through hold-pressing home key will unregister the user then again register the user
If you click on home button from your application your in the activity which is in foreground onStop() method is called. When from long press on home button or recent button you go back to the activity onRestart() and then onStart() is called. If you close the app (using the back button) and start the app from the long press on the home button or recent button it will go to onCreate(). If you want to avoid registering and unregistering the user when the user clicks on the home button from activity you should place the code for registering in OnCreate and unregistering in onDestroy. I hope that it helped Sent from my iPad On 28 Mar 2012, at 11:20, jugni jugni1sm...@gmail.com wrote: hello all, I press the home key for move the application to run in background and when i want to open that application then i pressing home key long time it will display all running activity.and i click on my application so i need it will open at last state where it is run in background but it will execute some code of application which will register the user in main activity.can we said that it is run from oncreate() or on what state?.or how can we perevent this code will not execute when the application come from background to front.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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unbranded Android tablet
Can someone recommend for me an unbranded Android tablet for Android dev? I want something that doesn't say Vizio, Samsung, or Coby on it. Essentially, I want a black box with nothing written on it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Textview gravity resets
On Sat, Mar 31, 2012 at 4:24 AM, adev enric...@gmail.com wrote: How can I avoid this in xml Why don't you try to do this in your activity/java file (dynamically)? I think that will solve your problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unbranded Android tablet
There are plenty - have you tried googling about irobot tablet, UBI Slate .They are coming with no brands on them, except some tiny sticker which you can remove at ease anytime.But only problem is that they don't support the usual way of debugging.You can adb them but via wireless not with the USB cable. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Sat, Mar 31, 2012 at 11:26 PM, bob b...@coolfone.comze.com wrote: Can someone recommend for me an unbranded Android tablet for Android dev? I want something that doesn't say Vizio, Samsung, or Coby on it. Essentially, I want a black box with nothing written on it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Your Most Common Errors
Hi all, I'm working on compiling a list of the commonly faced Android errors, and how to solve them. I sincerely doubt I've encountered all of them personally, hence this post. Which are the errors that you have faced most commonly, and how did you solve them? Please reply to this thread, it'll only take a few minutes. Hopefully, in the future people can refer here for solutions of some of the errors at least. Errors related to Eclipse problem are also welcome. This is not for an assignment or something like that. Android isn't even remotely part of my school syllabus. Thanks -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Your Most Common Errors
On Sat, Mar 31, 2012 at 3:09 PM, Raghav Sood raghavs...@androidactivist.org wrote: Which are the errors that you have faced most commonly, and how did you solve them? I would bet that the #1 most common problem is my R is screwed up. Symptoms include findViewById() returning something unexpected (e.g., a LinearLayout where you expected a Button). Solution is to clean the project (Project Clean from Eclipse or ant clean from the command line). Another historically common one -- though I haven't seen it pop up in a while -- is when I scroll, my list rows have random data in them. This is usually caused by a flawed implementation of getView() on an ArrayAdapter, such as calling findViewById() on the Activity, not the to-be-customized row, and therefore getting the wrong widget. Solution is to debug getView(). You might consider poking through StackOverflow, where we have 162,493 questions cataloged with the android tag, most with answers. You can find those that have the most up-votes (meaning people thought they were good questions and should roughly correlate with problems people encounter a lot) and see which seem to fit your desired structure. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Your Most Common Errors
Thanks for the reply Mark. And I am combing through StackOverflow as well. Just checking both sources to make sure I don't miss any out. Thanks On Sun, Apr 1, 2012 at 12:50 AM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Mar 31, 2012 at 3:09 PM, Raghav Sood raghavs...@androidactivist.org wrote: Which are the errors that you have faced most commonly, and how did you solve them? I would bet that the #1 most common problem is my R is screwed up. Symptoms include findViewById() returning something unexpected (e.g., a LinearLayout where you expected a Button). Solution is to clean the project (Project Clean from Eclipse or ant clean from the command line). Another historically common one -- though I haven't seen it pop up in a while -- is when I scroll, my list rows have random data in them. This is usually caused by a flawed implementation of getView() on an ArrayAdapter, such as calling findViewById() on the Activity, not the to-be-customized row, and therefore getting the wrong widget. Solution is to debug getView(). You might consider poking through StackOverflow, where we have 162,493 questions cataloged with the android tag, most with answers. You can find those that have the most up-votes (meaning people thought they were good questions and should roughly correlate with problems people encounter a lot) and see which seem to fit your desired structure. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Prevent a click from being consumed, to pass to containers onTouchEvent
I've got a container that allows 2-d scrolling, fling, pinch etc. This has several layers within it - a viewgroup for image tiles, another for path drawing, another for markers, etc. This all works fine. However, in one particular implementation I have several invisible buttons to indicate hotspots (which are basically ImageViews with transparent backgrounds). When tapped, an action occurs. The problem is that with these hotspots (which cover a good deal of the entire area), the touch event is consumed and not passed to the container's TouchEvent, so the container does not scroll. My first attempt was to create a custom view for the hotspots, and override onTouchEvent, returning false on ACTION_DOWN and true on ACTION_UP (so the event fires when the finger goes up, which is fine). However, it seems that when returning false on ACTION_DOWN prevents ACTION_UP from ever firing. I also tried overriding onInterceptTouchEvent on the scrolling container, and stealing the ACTION_DOWN event from child views - this had the same result. How can I continue to drag the container (whether or not the down event happened on a hotspot/child view), and react on ACTION_UP when a hotspot is clicked? TYIA. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Prevent a click from being consumed, to pass to containers onTouchEvent
Take a look at ScrollView or AbsListView: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ScrollView.java#L438 The basic idea is to override onInterceptTouchEvent, consume the initial ACTION_DOWN and then figure out if the user is trying to scroll/fling/zoom or not. In the latter case, onInterceptTouchEvent should eventually (for some subsequent event) return false, thus enabling the user to interact with child views. -- K On 04/01/2012 01:04 AM, momo wrote: I've got a container that allows 2-d scrolling, fling, pinch etc. This has several layers within it - a viewgroup for image tiles, another for path drawing, another for markers, etc. This all works fine. However, in one particular implementation I have several invisible buttons to indicate hotspots (which are basically ImageViews with transparent backgrounds). When tapped, an action occurs. The problem is that with these hotspots (which cover a good deal of the entire area), the touch event is consumed and not passed to the container's TouchEvent, so the container does not scroll. My first attempt was to create a custom view for the hotspots, and override onTouchEvent, returning false on ACTION_DOWN and true on ACTION_UP (so the event fires when the finger goes up, which is fine). However, it seems that when returning false on ACTION_DOWN prevents ACTION_UP from ever firing. I also tried overriding onInterceptTouchEvent on the scrolling container, and stealing the ACTION_DOWN event from child views - this had the same result. How can I continue to drag the container (whether or not the down event happened on a hotspot/child view), and react on ACTION_UP when a hotspot is clicked? TYIA. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Prevent a click from being consumed, to pass to containers onTouchEvent
Thanks for the reply. Imagine that over 75% of the scrollable area was covered by these hotspots - I need the ACTION_DOWN to return true so that the click event does fire when the finger goes up (on that same child view), but *also* pass the event to the scrolling container's onTouchEvent - so it's not really a question of either/or, but rather do both. The catch-22 here seems to be that if I return true, the event is consumed, and therefore not passed to the container. If I return false, the event is not consumed, so the container does scroll, but when the finger goes up no event fires. In looking at the source you linked, it looks like they're intercepting ACTION_DOWN only if it's currently flinging, so I'm not sure how they get it to work... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Will we ever be allowed to make custom widget pickers?
...or at least have something slightly nicer than the simple list in gingerbread. Currently there is no way to avoid using the built in widget selection UI (the list of widgets you get in gingerbread when you add a widget). This kind of sucks because it means you can't have anything like the ICS launcher's widget page. Are there any plans to ever fix this? I'd bet on no since it isn't a problem for Google (since their launcher is included with the system and can do what it likes). Here are some ways you could fix this without compromising security: 1. Add an optional Are you sure you wish to add widgetname? activity, so you can at least have a custom-picker-with-confirmation. 2. Have something like flashblock, so you have to click the widgets before they are shown. (I don't know if there is a way to send synthetic clicks though?) 3. Just allow the damn permission and call it Access any of your data from any of your apps. or something scary sounding. After all, isn't the point of the permission system that you *can* do dangerous things? The original justification for denying custom widget pickers is: Widgets can expose a lot of private data of all types, so it is not safe to allow an application to arbitrarily bind to them without the user implicitly approving Well in that case, why are apps allowed the read SD card permission? That can expose a lot of private data of all types... Sorry for the slightly-ranting-ness. I'm just annoyed that this makes it impossible for my to have the stock ICS launcher on ICS. Mostly I'm annoyed at Samsung. They suck. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] retrieving dialogue box value
On Thu, Mar 29, 2012 at 6:51 AM, shihab shiha shihabkp.andr...@gmail.comwrote: I want to pass the edittext value in a dialogue box to listview when i click the save button of the dialogue box. Alright, thanks for letting us know. Good luck. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] layout height relative to screen height
On Mon, Mar 26, 2012 at 9:18 PM, adev enric...@gmail.com wrote: I would like to set the height of my layout items based on the height of the screen to allow it to scale to screens of different resolution and in landscape. http://developer.android.com/guide/practices/screens_support.html my current layout structure uses a relativelayout with linearlayout childeren. one of the linear layouts consists of a table layout which I would like to always take approx 50% of the screen. Is there a simple way to do this? Use the Weight property of LinearLayouts. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app sales dropped dramatically in the past few days
I know I had a couple of people e-mail me that they are getting a 403 error when trying to purchase. Eventually it works. But I bet a lot of people just simply give up trying and abandon the purchase. On Saturday, March 31, 2012 11:46:11 PM UTC+8, gc wrote: Same On Thursday, March 29, 2012 3:40:45 AM UTC-5, Mat Jones wrote: Has anyone seen a fallen in their app sales through on app billing in the past few days? The past two days in app billing sales are down 90% We have around 800 New users a day and the same amount viewing the extra features page, so don't understand the issue Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: strange blue boxes with ? instead of images in my Android app...
have a look at the HTML produced by your app. Most likely it's making an assumption about the path of the external storage rather than using the proper API. On Saturday, March 31, 2012 1:17:26 PM UTC-4, Stuart B wrote: Not sure how to fix though - the images are there, and it runs fine on some devices, any ideas please? On Saturday, 31 March 2012 03:13:11 UTC+1, lbendlin wrote: You are using a web view and the img tags are broken. On Thursday, March 29, 2012 4:21:10 AM UTC-4, Stuart B wrote: https://lh5.googleusercontent.com/-B1sU3tiWMZg/T3QbVMPcn3I/AN0/V2_45P9uxKg/s1600/Screenshot_2012-03-27-18-16-30.png Can you help? I have an app that runs great on iPhone/Pad, but on a few Android devices the images show up as question marks in a blue box. Anyone know why? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Media player no video
Does your app have internet permissions to do streaming (required in ICS)? Is the video codec supported by your device? Doug On Tuesday, March 27, 2012 6:25:56 AM UTC-7, aglasofmilk wrote: Hi! I have a problem with playing videos through mediaplayer. I have a sound but no video. I was searching a lot of thread but can't find solve for my problem. Is is something wrong with the code? Or is it something else. Here's the code: public class TestStream1 extends Activity implements Callback{ MediaPlayer mMediaPlayer; String SrcPath = rtsp://184.72.239.149/vod/ mp4:BigBuckBunny_175k.movhttp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov; private SurfaceView mPreview; private SurfaceHolder holder; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mPreview = (SurfaceView) findViewById(R.id.myvideoview); holder = mPreview.getHolder(); holder.addCallback(TestStream1.this); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); holder.setFixedSize(400,300); mMediaPlayer = new MediaPlayer(); try{ mMediaPlayer.setDataSource(SrcPath); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mMediaPlayer.start(); }catch(Exception e){ Toast .makeText( TestStream1.this, Fail, Toast.LENGTH_LONG).show(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: use of audio streams
You can use STREAM_MUSIC and also request audio focus to try to gain priority. Doug On Tuesday, March 27, 2012 8:09:26 AM UTC-7, RedBullet wrote: I am building an app that will do TTS to read turn by turn directions for navigation. When I am using a bluetooth headset I turn on SCO and use the STREAM_VOICE_CALLhttp://developer.android.com/reference/android/media/AudioManager.html#STREAM_VOICE_CALL stream. My question is, when I am NOT using bluetooth and just want to use the phone (optionally speaker) which stream do I use? STREAM_MUSIChttp://developer.android.com/reference/android/media/AudioManager.html#STREAM_MUSIC or something else? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Remove '@override' annotion
After sdk updatting I got more no of errors. that Remove '@override' annotion -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView and Database
Hello everyone! I have in my application, I hace a list view that needs to be populated with data from a database, I have tested my database and my app is handling the data correctly, but I cant populate the list view, I have read about the SimpleCursorAdapter but I cant understand how to use the class, specially the from and to fields, does anyone know how to use it? My class is not extending ListActivity, my list view is inside a dialog. Ricardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] 3D Charts
This is a fairly broad area, it would be helpful if you could narrow it down. Basically, you need to connect to a server to get the data, or get it from sensors. Then, use OpenGL to draw the graph. On 31 Mar 2012, at 07:29, sourabh sahu wrote: How to draw 3D interactive charts in android.Please suggest something on it. Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Has ListView been modified in the latest SDK?
I'm looking at two of my apps, both with a ListView, and for both, the ListView is defined/described (whatever you want to call it) the same in both XML and in Java (variable names and resource IDs excepted, of course). Here's the catch: in the first, and older app, touching anywhere on the bar for an item in the Listview would select that item. In the newer app, with the current SDK, *ONLY* touching the area enclosing the text will select that item. Both use the same Adapter settings, a similar setOnItemClick method (nothing that sets anything in/for the ListView), and neither has any special options set. Just the defaults. Does anyone know if the SDK includes changes in ListViews that might account for this? (I didn't spot anything in the dev guide, but I could easily have missed it.) I really don't like this new behavior, whatever is causing it Thanks, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Textview gravity resets
Sure I can reset the gravity on all of them in code, but that defeats the purpose of using the XML. I'd like to know the cause of the issue I'm seeing now and solve it. On Mar 31, 2:17 pm, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Sat, Mar 31, 2012 at 4:24 AM, adev enric...@gmail.com wrote: How can I avoid this in xml Why don't you try to do this in your activity/java file (dynamically)? I think that will solve your problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView and Database
Hi Ricardo, First, I'm sure others will chime in if this is bad advice, but my understanding is that it is better to use the compatibility package and cursor loaders and a load manager. See http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html and the base CursorAdapter. That said, from is simply a list of columns in the PROJECTION exposed by the cursor that are of interest to the ListView ids in the to array. This is in order of the two arrays such that the data from from[x] is passed to the view with the id in to[x]. Given the list view row definition: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=34dp android:gravity=bottom android:orientation=horizontal TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/foo android:layout_width=100dp android:layout_height=30dp android:textSize=16dp android:gravity=center_vertical android:paddingLeft=5dip android:singleLine=true / TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/bar android:layout_width=50dp android:layout_height=30dp android:textSize=20dp android:gravity=right|center_vertical android:paddingLeft=5dip android:singleLine=true / /LinearLayout And assuming that you have column1 and column2 in your cursor's projection, and want to map the contents of column1 to the textview foo and column2 to textview bar, from and to would be defined something like: String[] from = new String[] { column1 , coulmn2}; int[] to = new int[] { R.id.foo , R.id.bar }; Clear as mud? -Ted On 3/31/2012 9:36 PM, Ricardo Santos wrote: Hello everyone! I have in my application, I hace a list view that needs to be populated with data from a database, I have tested my database and my app is handling the data correctly, but I cant populate the list view, I have read about the SimpleCursorAdapter but I cant understand how to use the class, specially the from and to fields, does anyone know how to use it? My class is not extending ListActivity, my list view is inside a dialog. Ricardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Textview gravity resets
On Sun, Apr 1, 2012 at 8:01 AM, adev enric...@gmail.com wrote: Sure I can reset the gravity on all of them in code, but that defeats the purpose of using the XML. No, not at all. Just reset the gravity of only the TextView in code. You need not to reset the gravity of all of them, as you are facing the problem only because of TextView's gravity. I'd like to know the cause of the issue I'm seeing now and solve it. The cause of issue might be that, your adview is being loaded dynamically, hence you have to resolve the matter dynamically through code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en