[android-developers] Development Platform Compatibility
Hi, I am getting a new OS, which OS is Android SDK/IDE development environment compatible with XP64, Vista64 or Windows7? Or Do I need to keep a XP32 partition around? --~--~-~--~~~---~--~~ 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: GridView ImageView and performance
Hi Gesh, Thanks for the response. I'll certainly give the bitmap factory a go. I'm currently using the ImageAdapter from the Hello GridView sample. But loading the images from the web rather than using resources. The problem is immediate, in that the performance doesn't degrade after re- visits to the activity, but is instead directly proportional to the number of images I'm displaying. As well as trying the bitmap factory can I ask what you think is the best way to encourage garbage collection? Will nulling my objects be a big help. Once I have it optimized I'm going to release it for free... I think there's a big hole in androids picasa support. Ian On Mar 14, 11:38 pm, Gesh geo...@neofonie.de wrote: hi, I have written 2 connected apps with some image content pulled from the web and must say if you handle your resources right it shouldn't be a problem at all. Do you use your own Adapter for theGridViewor do you use some of the already available ones in the SDK? If you use your own you should keep in mind that when you deal with AdapterViews in general they keep references to Views you create in your adapter and recycle them, so try to reuse the convertView reference you get in the Adapter.getView (int position, View convertView, ViewGroup parent) method. And although memory leaks are difficult to achieve in what sounds like a single activity app the other thing that comes to mind is that you might have memory leaks due to the way you use Drawables. Try using Bitmaps from the BitmapFactory.decodeStream(InputStream) method and maybe read this blog for more info why Drawables could cause memory leaks -http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks. cheers, gesh. On Mar 14, 12:47 pm, ifuller1 ifuller1mob...@gmail.com wrote: I've managed to successfully connect to the picasa web services using JSON and download a list of thumbnails from my picasa album. The thumbnails are all very small but I'm getting pretty terrible performance (especially when compared to the native picture viewer). As my main goal was getting the application working their is obviously lots of optimisation work I can do but I just wanted to know where the most likely cause of poor performance is coming from. Is it the memory usage (so I should try cleaning up existing objects) or is it display performance (can't cope with 30 thumbnails at once)? Example thumbnail imagehttp://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AEk/VeBxiukdKzU... being loaded via Drawable.createFromStream Thanks in advanced. Ian --~--~-~--~~~---~--~~ 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: GridView ImageView and performance
p.s. when running the debugger I don't appear to be using anything like 16mb of the allowed heap space... wonder if it's something else - if I don't have any luck I'll post my (likely very poor) code up here. Thanks again. On Mar 14, 11:38 pm, Gesh geo...@neofonie.de wrote: hi, I have written 2 connected apps with some image content pulled from the web and must say if you handle your resources right it shouldn't be a problem at all. Do you use your own Adapter for theGridViewor do you use some of the already available ones in the SDK? If you use your own you should keep in mind that when you deal with AdapterViews in general they keep references to Views you create in your adapter and recycle them, so try to reuse the convertView reference you get in the Adapter.getView (int position, View convertView, ViewGroup parent) method. And although memory leaks are difficult to achieve in what sounds like a single activity app the other thing that comes to mind is that you might have memory leaks due to the way you use Drawables. Try using Bitmaps from the BitmapFactory.decodeStream(InputStream) method and maybe read this blog for more info why Drawables could cause memory leaks -http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks. cheers, gesh. On Mar 14, 12:47 pm, ifuller1 ifuller1mob...@gmail.com wrote: I've managed to successfully connect to the picasa web services using JSON and download a list of thumbnails from my picasa album. The thumbnails are all very small but I'm getting pretty terrible performance (especially when compared to the native picture viewer). As my main goal was getting the application working their is obviously lots of optimisation work I can do but I just wanted to know where the most likely cause of poor performance is coming from. Is it the memory usage (so I should try cleaning up existing objects) or is it display performance (can't cope with 30 thumbnails at once)? Example thumbnail imagehttp://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AEk/VeBxiukdKzU... being loaded via Drawable.createFromStream Thanks in advanced. Ian --~--~-~--~~~---~--~~ 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: GridView ImageView and performance
Like it's been mentioned previously, make sure you are recycling the convertView passed to the getView() method. Also make sure that you are not drawing images that are scaled at drawing time. On Sat, Mar 14, 2009 at 11:22 PM, ifuller1 ifuller1mob...@gmail.com wrote: Hi Gesh, Thanks for the response. I'll certainly give the bitmap factory a go. I'm currently using the ImageAdapter from the Hello GridView sample. But loading the images from the web rather than using resources. The problem is immediate, in that the performance doesn't degrade after re- visits to the activity, but is instead directly proportional to the number of images I'm displaying. As well as trying the bitmap factory can I ask what you think is the best way to encourage garbage collection? Will nulling my objects be a big help. Once I have it optimized I'm going to release it for free... I think there's a big hole in androids picasa support. Ian On Mar 14, 11:38 pm, Gesh geo...@neofonie.de wrote: hi, I have written 2 connected apps with some image content pulled from the web and must say if you handle your resources right it shouldn't be a problem at all. Do you use your own Adapter for theGridViewor do you use some of the already available ones in the SDK? If you use your own you should keep in mind that when you deal with AdapterViews in general they keep references to Views you create in your adapter and recycle them, so try to reuse the convertView reference you get in the Adapter.getView (int position, View convertView, ViewGroup parent) method. And although memory leaks are difficult to achieve in what sounds like a single activity app the other thing that comes to mind is that you might have memory leaks due to the way you use Drawables. Try using Bitmaps from the BitmapFactory.decodeStream(InputStream) method and maybe read this blog for more info why Drawables could cause memory leaks -http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks. cheers, gesh. On Mar 14, 12:47 pm, ifuller1 ifuller1mob...@gmail.com wrote: I've managed to successfully connect to the picasa web services using JSON and download a list of thumbnails from my picasa album. The thumbnails are all very small but I'm getting pretty terrible performance (especially when compared to the native picture viewer). As my main goal was getting the application working their is obviously lots of optimisation work I can do but I just wanted to know where the most likely cause of poor performance is coming from. Is it the memory usage (so I should try cleaning up existing objects) or is it display performance (can't cope with 30 thumbnails at once)? Example thumbnail imagehttp://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AEk/VeBxiukdKzU... being loaded via Drawable.createFromStream Thanks in advanced. Ian -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Re: XML parsing
The java-app. that I´m trying to port is not only parsing xml, it´s building up graphics from the xml (the xml is quite similar to xaml) and it uses the DOM to do that. I guess I should have written that in my first message. So I do have to work with the horrible old DOM :) Any suggestions? /Nowb --~--~-~--~~~---~--~~ 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: Support from Developers
I'm afraid I think you're wrong. The reason for this is that last week I listed an application on Market and it's been received pretty well (Mostly 4 or 5 stars, average at the moment is 4 after 29 ratings), but, the first one star rating came less than 4 hours after publishing the app from a developer of a competing product whose comments was [insert product name] is easier and open source. So I think you're overestimating the honesty and professionalism of some developers. There are two other 1 star ratings from people who had force close messages, which I see as a completely valid reason for giving a 1* (even though I can't for the life of me reproduce them and the app has several hundred users now who seem happy with the app, and no, it has never used copy protection). I try to follow the folowing rules when rating an app; 1* - Fundamental problem (i.e. crashes or needs permissions it shouldn't such as internet access for a non-net aware app). 2* - Works but very limited (i.e. missing fundamental feature such as date tracking on an accounting program) 3* - Works but is hard to use and/or missing some features I'd like to see (i.e. Has a complex UI ). 4* - Works but I find minor things I'd like to see in the first few minutes of use (e.g. touch screen keypad for a pin entry screen or minor UI pecularities). 5* - Works and it takes me a while to think of anything that I'd want to see for the first few minutes. Al. P.S. Yes, I also listed it on AndAppStore (of course), and if you want to see the Market comments they're at http://www.cyrket.com/package/com.funkyandroid.banking.android.expenses.demo (tip of the hat to saurik). Alexander wrote: I have been in discussion with a few devs not quite content with the ratings/feedback system currently in place on the Android Market, and had the following idea: If there was a Developer Only Market, things would be _much_ more civil, professional, and productive for all involved. Particularly because we could all relate to each other with empathy, and there would be less anonymity, especially if it required registration. There would be a less people to present to, but the quality of user helpfulness would be more concentrated. It could serve as a place to test release apps before jumping into the swarm that is the current Market, or a place to seek genuinely constructive feedback. Anyone have any thoughts on this? -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: Can Dev Phone bought in US be used in India?
Hi, Which service provider are you using ? and how did you activate it ? Does anyone have an unlimited data plan currently? Thanks On Feb 18, 10:48 am, dillirao malipeddi dillir...@arijasoft.com wrote: Sure you can use the Dev phone 1 (Google) in india Currently i am using Dev phone1 in INDIA -- It works fine On Wed, Feb 18, 2009 at 1:04 AM, swamytk karuppusw...@gmail.com wrote: I am resident of India. But right now i am in US. I am planning to buy a Google Dev Phone 1. I will be using it in India once i am back to India after 2 months. If I buy it in US, can I use it in India? My suspect is on 3G band currently used in India (BSNL/MTNL) or soon to be used (by airtel / vodaphone). This is Android's spec # 3G WCDMA (1700/2100 MHz) # Quad-band GSM (850/900/1800/1900 MHz) I am not sure about the upcoming 3G bands in India. Can any one clarify this? -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~-~--~~~---~--~~ 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] I must pay 25$ to distribute a FREEWARE on Android Market
It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. --~--~-~--~~~---~--~~ 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: I must pay 25$ to distribute a FREEWARE on Android Market
You make it available for download from your website and use alternative distribution channels such as AndAppStore. More information on the MIME type you need to use is at; http://andappstore.com/AndroidPhoneApplications/publishing.jsp Al. http://andappstore.com/ Chaton wrote: It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: XML parsing
JSON handling is excellent on Android - is there a possiblity you could translate the xml at source to another format? On Mar 15, 5:59 pm, nowb ola.br...@gmail.com wrote: The java-app. that I´m trying to port is not only parsing xml, it´s building up graphics from the xml (the xml is quite similar to xaml) and it uses the DOM to do that. I guess I should have written that in my first message. So I do have to work with the horrible old DOM :) Any suggestions? /Nowb --~--~-~--~~~---~--~~ 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: How to scroll Gallery Widget manually
Read the documentation more carefully. Gallery extends several other classes that offer exactly the functionality you are looking for. On Mar 13, 5:24 pm, alex alex.l...@googlemail.com wrote: Hi, I'm working on a little Player with Playlist and use the Gallery Widget to visualise the Playlist. I tried to scroll the Gallery Widget manual to an active item, but the Widget don't support any functions to do this. There are several methods in the Gallery.java class movePrevious() moveNext() scrollToChild( int pos ) but the visibility of this methods is default or private. So i can't override this functions, if I Inherit from Gallery class. can any one please help for a solution to scroll the Gallery manual ??? Thanks, Alex --~--~-~--~~~---~--~~ 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: What kind of device should Linux udev set up for G1 linked via USB
Thanks for all the tips guys... I used the following on Ubuntu 8.10 and got it working. SUBSYSTEM==usb, ATTR{idVendor}==0bb4, SYMLINK+=android_adb, MODE=0666 But I couldn't get the udevcontrol command to work as suggested on the link above. well, just used the oldest trick in the book - REBOOT and it worked. --~--~-~--~~~---~--~~ 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] Matching SDK version to code? NPE Bug in WebView?
Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace: java.lang.NullPointerException at android.webkit.CacheManager$1.run(CacheManager.java:391) at java.lang.Thread.run(Thread.java:935) I've got another report with the same content, but a different incremental version of the sdk (126986). Probably one from the US and one from the UK. So now I would love to know why the code blows up and if there is anything I can do about it. And with the source files and line numbers I felt in good shape to so. If only I could match them to the public code repositories ;-( Finding the file was easy: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD But then history returns the following: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=history;f=core/java/android/webkit/CacheManager.java;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD -- 2008-12-18 The Android Open... Code drop from //branches/ cupcake/@124589 2008-10-21 The Android Open... Initial Contribution android-1.0 None of these seem to simply match the version information returned by Build.VERSION. Furthermore none of these seem to match the line no from the stracktrace. It says method run in CacheManager.java:391. In both versions line 391 is not in a run method ;-( So, how to match stacktraces to code? Cheers, Mariano --~--~-~--~~~---~--~~ 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: GridView ImageView and performance
I'm currently using the ImageAdapter from the Hello GridView sample. But loading the images from the web rather than using resources. I think you need a better understanding of how adapters work to solve your problem. The getView() method of your Adapter is inkoved every time an image in your grid becomes visible (yes, including when you scroll back and forth to previously visible images). So if you have just replaced that one line image.setImageResource(int) with image.setImageDrawable(Drawable.createFromStream()) it means you are re-downloading images every time they get scrolled into view. So you need to cache those downloaded images and while you are at it make sure you cache scaled thumbnail of the image, just as big as you need them to avoid the possible problem Romain suggested. Use Bitmap.createScaledBitmap() - it's worked great for me. Also be aware that the emulator is running on your PC using that same network speed. If you want to test for real network problems you might get on a real device try starting the emulator with limited network (or on your G1 disable wireless and 3G). I alwasy run my emulator with network speed and latency set to EDGE, or for some debugging purposes even GPRS or GSM. hope that helps you, gesh. On Mar 15, 7:22 am, ifuller1 ifuller1mob...@gmail.com wrote: Hi Gesh, Thanks for the response. I'll certainly give the bitmap factory a go. I'm currently using the ImageAdapter from the Hello GridView sample. But loading the images from the web rather than using resources. The problem is immediate, in that the performance doesn't degrade after re- visits to the activity, but is instead directly proportional to the number of images I'm displaying. As well as trying the bitmap factory can I ask what you think is the best way to encourage garbage collection? Will nulling my objects be a big help. Once I have it optimized I'm going to release it for free... I think there's a big hole in androids picasa support. Ian On Mar 14, 11:38 pm, Gesh geo...@neofonie.de wrote: hi, I have written 2 connected apps with some image content pulled from the web and must say if you handle your resources right it shouldn't be a problem at all. Do you use your own Adapter for theGridViewor do you use some of the already available ones in the SDK? If you use your own you should keep in mind that when you deal with AdapterViews in general they keep references to Views you create in your adapter and recycle them, so try to reuse the convertView reference you get in the Adapter.getView (int position, View convertView, ViewGroup parent) method. And although memory leaks are difficult to achieve in what sounds like a single activity app the other thing that comes to mind is that you might have memory leaks due to the way you use Drawables. Try using Bitmaps from the BitmapFactory.decodeStream(InputStream) method and maybe read this blog for more info why Drawables could cause memory leaks -http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks. cheers, gesh. On Mar 14, 12:47 pm, ifuller1 ifuller1mob...@gmail.com wrote: I've managed to successfully connect to the picasa web services using JSON and download a list of thumbnails from my picasa album. The thumbnails are all very small but I'm getting pretty terrible performance (especially when compared to the native picture viewer). As my main goal was getting the application working their is obviously lots of optimisation work I can do but I just wanted to know where the most likely cause of poor performance is coming from. Is it the memory usage (so I should try cleaning up existing objects) or is it display performance (can't cope with 30 thumbnails at once)? Example thumbnail imagehttp://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AEk/VeBxiukdKzU... being loaded via Drawable.createFromStream Thanks in advanced. Ian --~--~-~--~~~---~--~~ 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: I must pay 25$ to distribute a FREEWARE on Android Market
You do realize that if you had developed this game for the iPhone you would have payed $99 to register and that there is no other mainstream way to get your app on the iPhone (as opposed to Android, which allows you to install apk's from websites). So at a point you are correct: paying for free apps seems weird, but Market is a shop and when you develop something in real life (an automatic axe or something :) ) then you also can't just distribute it too 1000 stores. On 15 mrt, 10:10, Chaton contactez.arn...@gmail.com wrote: It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. --~--~-~--~~~---~--~~ 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: XML parsing
I do realize that the heading for this thread is kind of misguiding, it's not actually the xml parsing that is the problem, it's building up the DOM after the parsing (sorry for that). So translating the xml to another format wont help. So to narrow down the problem... I need to know if there is a way to reach the org.apache.harmony.xml.dom package. Or if there are some substitute for ElementImpl that I can use. /Nowb --~--~-~--~~~---~--~~ 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: Support from Developers
People should only be allowed to vote on an app, if they have used the app for a sufficient amount of time. Consumers tend to be people who want everything to work exactly as the whish it would. Though their reasoning is solid, it just doesn't work that way, even with cars, the car doesn't work as you would like it would, but it works the way you have learned it works. So when a person has used an app for 5 minutes and thinks it's limited, he posts a 1 star rating. This might be a correct rating, but using an app for 5 minutes does NOT give you a good idea of what the app is about and how it works. Now if that same user used it for an hour and still thinks it's not that good, well, then the 1star rating IS valid. Maybe market should prevent comments and ratings from consumers who only have had the application for less then an (or a couple of) hour (s). On 15 mrt, 08:42, Al Sutton a...@funkyandroid.com wrote: I'm afraid I think you're wrong. The reason for this is that last week I listed an application on Market and it's been received pretty well (Mostly 4 or 5 stars, average at the moment is 4 after 29 ratings), but, the first one star rating came less than 4 hours after publishing the app from a developer of a competing product whose comments was [insert product name] is easier and open source. So I think you're overestimating the honesty and professionalism of some developers. There are two other 1 star ratings from people who had force close messages, which I see as a completely valid reason for giving a 1* (even though I can't for the life of me reproduce them and the app has several hundred users now who seem happy with the app, and no, it has never used copy protection). I try to follow the folowing rules when rating an app; 1* - Fundamental problem (i.e. crashes or needs permissions it shouldn't such as internet access for a non-net aware app). 2* - Works but very limited (i.e. missing fundamental feature such as date tracking on an accounting program) 3* - Works but is hard to use and/or missing some features I'd like to see (i.e. Has a complex UI ). 4* - Works but I find minor things I'd like to see in the first few minutes of use (e.g. touch screen keypad for a pin entry screen or minor UI pecularities). 5* - Works and it takes me a while to think of anything that I'd want to see for the first few minutes. Al. P.S. Yes, I also listed it on AndAppStore (of course), and if you want to see the Market comments they're athttp://www.cyrket.com/package/com.funkyandroid.banking.android.expens... (tip of the hat to saurik). Alexander wrote: I have been in discussion with a few devs not quite content with the ratings/feedback system currently in place on the Android Market, and had the following idea: If there was a Developer Only Market, things would be _much_ more civil, professional, and productive for all involved. Particularly because we could all relate to each other with empathy, and there would be less anonymity, especially if it required registration. There would be a less people to present to, but the quality of user helpfulness would be more concentrated. It could serve as a place to test release apps before jumping into the swarm that is the current Market, or a place to seek genuinely constructive feedback. Anyone have any thoughts on this? -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: Internet Permission crashes my app
Have you registered the permission at the correct spot in the manifest? On 14 mrt, 09:38, The Savage Killer thesavage.kil...@gmail.com wrote: When i add internet permissions to my manifest file my application refuses to even start and i get this in my console: [2009-03-13 20:06:17 - Funny RSS] ActivityManager: Starting: Intent { comp={dev.funnyrss/dev.funnyrss.FRSS} } [2009-03-13 20:06:17 - Funny RSS] ActivityManager: [1] Killed am start -D -n d... Can someone please help me fix this? heres my logcat, thanks. 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): AndroidRuntime START 03-13 18:05:59.262: DEBUG/AndroidRuntime(662): CheckJNI is ON 03-13 18:05:59.493: DEBUG/AndroidRuntime(662): --- registering native functions --- 03-13 18:05:59.503: INFO/jdwp(662): received file descriptor 19 from ADB 03-13 18:06:00.712: DEBUG/PackageParser(52): Scanning package: /data/ app/vmdl24071.tmp 03-13 18:06:00.862: WARN/PackageManager(52): Attempt to re-install dev.funnyrss without first uninstalling. 03-13 18:06:00.862: INFO/installd(27): unlink /data/dalvik-cache/ d...@a...@vmdl24071@classes.dex 03-13 18:06:00.902: DEBUG/AndroidRuntime(662): Shutting down VM 03-13 18:06:00.902: DEBUG/dalvikvm(662): DestroyJavaVM waiting for non- daemon threads to exit 03-13 18:06:00.913: INFO/dalvikvm(662): DestroyJavaVM shutting VM down 03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread shutting down 03-13 18:06:00.922: DEBUG/dalvikvm(662): HeapWorker thread has shut down 03-13 18:06:00.922: DEBUG/jdwp(662): JDWP shutting down net... 03-13 18:06:00.932: DEBUG/jdwp(662): +++ peer disconnected 03-13 18:06:00.932: INFO/dalvikvm(662): Debugger has detached; object registry had 1 entries 03-13 18:06:00.952: DEBUG/dalvikvm(662): VM cleaning up 03-13 18:06:00.972: DEBUG/dalvikvm(662): LinearAlloc 0x0 used 529708 of 4194304 (12%) 03-13 18:06:01.252: DEBUG/dalvikvm(52): GC freed 5687 objects / 344760 bytes in 363ms 03-13 18:06:01.423: DEBUG/AndroidRuntime(670): AndroidRuntime START 03-13 18:06:01.423: DEBUG/AndroidRuntime(670): CheckJNI is ON 03-13 18:06:01.653: DEBUG/AndroidRuntime(670): --- registering native functions --- 03-13 18:06:01.672: INFO/jdwp(670): received file descriptor 19 from ADB 03-13 18:06:02.842: DEBUG/PackageParser(52): Scanning package: /data/ app/vmdl24072.tmp 03-13 18:06:02.992: DEBUG/PackageManager(52): Removing package dev.funnyrss 03-13 18:06:02.992: DEBUG/PackageManager(52): Activities: dev.funnyrss.FRSS dev.funnyrss.FRSS2 03-13 18:06:03.002: DEBUG/PackageManager(52): Scanning package dev.funnyrss 03-13 18:06:03.012: INFO/PackageManager(52): /data/app/vmdl24072.tmp changed; unpacking 03-13 18:06:03.022: DEBUG/installd(27): DexInv: --- BEGIN '/data/app/ vmdl24072.tmp' --- 03-13 18:06:03.252: DEBUG/dalvikvm(676): DexOpt: load 41ms, verify 39ms, opt 1ms 03-13 18:06:03.262: DEBUG/installd(27): DexInv: --- END '/data/app/ vmdl24072.tmp' (success) --- 03-13 18:06:03.272: DEBUG/PackageManager(52): Activities: dev.funnyrss.FRSS dev.funnyrss.FRSS2 03-13 18:06:03.442: INFO/installd(27): move /data/dalvik-cache/ d...@a...@vmdl24072@classes.dex - /data/dalvik-cache/ d...@a...@dev.funnyrss@classes.dex 03-13 18:06:03.453: DEBUG/PackageManager(52): New package installed in /data/app/dev.funnyrss.apk 03-13 18:06:03.672: DEBUG/AndroidRuntime(670): Shutting down VM 03-13 18:06:03.672: DEBUG/dalvikvm(670): DestroyJavaVM waiting for non- daemon threads to exit 03-13 18:06:03.683: DEBUG/ActivityManager(52): Uninstalling process dev.funnyrss 03-13 18:06:03.692: INFO/dalvikvm(670): DestroyJavaVM shutting VM down 03-13 18:06:03.692: DEBUG/dalvikvm(670): HeapWorker thread shutting down 03-13 18:06:03.692: DEBUG/dalvikvm(670): HeapWorker thread has shut down 03-13 18:06:03.692: DEBUG/jdwp(670): JDWP shutting down net... 03-13 18:06:03.692: DEBUG/jdwp(670): +++ peer disconnected 03-13 18:06:03.692: INFO/dalvikvm(670): Debugger has detached; object registry had 1 entries 03-13 18:06:03.712: DEBUG/dalvikvm(670): VM cleaning up 03-13 18:06:03.762: DEBUG/dalvikvm(670): LinearAlloc 0x0 used 529708 of 4194304 (12%) 03-13 18:06:04.062: DEBUG/dalvikvm(92): GC freed 1173 objects / 60968 bytes in 351ms 03-13 18:06:04.363: DEBUG/dalvikvm(52): GC freed 4225 objects / 220864 bytes in 353ms 03-13 18:06:04.483: DEBUG/AndroidRuntime(681): AndroidRuntime START 03-13 18:06:04.503: DEBUG/AndroidRuntime(681): CheckJNI is ON 03-13 18:06:04.872: DEBUG/AndroidRuntime(681): --- registering native functions --- 03-13 18:06:04.892: INFO/jdwp(681): received file descriptor 19 from ADB 03-13 18:06:06.132: DEBUG/ActivityManager(52): Uninstalling process dev.funnyrss 03-13 18:06:06.132: INFO/ActivityManager(52): Starting activity: Intent { flags=0x1000 comp={dev.funnyrss/dev.funnyrss.FRSS} } 03-13 18:06:06.132: WARN/ActivityManager(52): Permission Denial: starting Intent { flags=0x1000 comp={dev.funnyrss/
[android-developers] Some questions about modding stuff in the source code
Hi all, I am not sure if this goes into the 'platform' or 'developers' forum, so I am posting in both. Forgive me for this, please... I am about to take on a project requiring adding some stuff into the OS itself (adding support for additional hardware features on a new Android based device). I need to add/change some stuff in the OS installed: 1. Adding pages to the SYSTEM preferences - to allow users to change configuration of the hardware I am adding. 2. Adding packages of software and libraries to the OS code - to add the modules needed to handle the additional hardware. 3. Changing some of the built-in modules/packages to allow the device to recognize and use the hardware I am adding. My questions - can all the 3 be done ? What do I need ? Do I need special certification ? Do I need specific tools ? Is there any documentation/samples to how I do this ? I am really excited about this project - it will certainly add a significant device to the Android arena. 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 -~--~~~~--~~--~--~---
[android-developers] Re: MapView Zoomer behavior, how?
Tim Bray wrote: Appearing on any map interaction. OK... use the mapView's onTap to make an Overlay visible. Fading in. OK, simple alpha animation. Fading out upon no user action. OK... set an alarm and so on. I can do all these things, I was just hoping to avoid writing a couple hundred lines of code if someone already had. -T Ah. Sorry, I don't have anything just like that handy. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.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: Some questions about modding stuff in the source code
TAKEphONE wrote: I am about to take on a project requiring adding some stuff into the OS itself (adding support for additional hardware features on a new Android based device). I need to add/change some stuff in the OS installed: 1. Adding pages to the SYSTEM preferences - to allow users to change configuration of the hardware I am adding. 2. Adding packages of software and libraries to the OS code - to add the modules needed to handle the additional hardware. 3. Changing some of the built-in modules/packages to allow the device to recognize and use the hardware I am adding. My questions - can all the 3 be done ? As far as I know, yes. However, [android-porting] or [android-platform] are probably better Google Groups to use for these questions. What do I need ? http://source.android.com Instructions there will give you the tools to download and build the source code, which is your starting point. From there, ask concrete specific questions on [android-porting] or [android-platform]. Do I need special certification ? Not generally. Do I need specific tools ? See http://source.android.com Is there any documentation/samples to how I do this ? See http://source.android.com -- you might also check out XDA Developers or other sites that have spent time getting Android to run on non-standard hardware. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.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] How to dismiss the AlertDialog without buttons after clicking on any item in the Alert Dialog
Hi, All: from the reference of SDK, AlertDialog information as below. I want to create a dialog but i don't want to have any buttons in the dialog, then i hope to dismiss the dialog after i click any item in the dialog, how should i dismiss the dialog ? When the user click the back button, it will dismiss the dialog. so i need to send the key message in hard code ? is there any other way?? Really appreciate your help !! Vincent -- public AlertDialog.Builderhttp://developer.android.com/reference/android/app/AlertDialog.Builder.html setSingleChoiceItems (CharSequence[]http://developer.android.com/reference/java/lang/CharSequence.htmlitems, int checkedItem, DialogInterface.OnClickListenerhttp://developer.android.com/reference/android/content/DialogInterface.OnClickListener.htmllistener) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog. Parametersitems the items to be displayed. checkedItem specifies which item is checked. If -1 no items are checked. listener notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, *if no buttons are supplied it's up to the user to dismiss * --~--~-~--~~~---~--~~ 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: Some questions about modding stuff in the source code
Mark's answers are correct. A bit of extra precision: -use the android-platform group if you want to contribute your changes back to the main Android source for inclusion in future official releases. Use android-porting if you are working in a copy of the Android source and don't intend to contribute your changes back. -the majority of the new Android code (i.e. code that was written specifically for Android as opposed to being re-used from other open-source projects) is licensed under the Apache License, Version 2.0, which contains some language about copyright, patents and trademarks. The exact license for each module is clearly mentioned in the source code. Be mindful of this: http://www.android.com/branding.html JBQ On Sun, Mar 15, 2009 at 5:07 AM, Mark Murphy mmur...@commonsware.com wrote: TAKEphONE wrote: I am about to take on a project requiring adding some stuff into the OS itself (adding support for additional hardware features on a new Android based device). I need to add/change some stuff in the OS installed: 1. Adding pages to the SYSTEM preferences - to allow users to change configuration of the hardware I am adding. 2. Adding packages of software and libraries to the OS code - to add the modules needed to handle the additional hardware. 3. Changing some of the built-in modules/packages to allow the device to recognize and use the hardware I am adding. My questions - can all the 3 be done ? As far as I know, yes. However, [android-porting] or [android-platform] are probably better Google Groups to use for these questions. What do I need ? http://source.android.com Instructions there will give you the tools to download and build the source code, which is your starting point. From there, ask concrete specific questions on [android-porting] or [android-platform]. Do I need special certification ? Not generally. Do I need specific tools ? See http://source.android.com Is there any documentation/samples to how I do this ? See http://source.android.com -- you might also check out XDA Developers or other sites that have spent time getting Android to run on non-standard hardware. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Matching SDK version to code? NPE Bug in WebView?
Unfortunately neither the exact code for the 1.0 SDK nor for 1.1 (especially for 1.1) are available. Versions 126986 and 128600 respectively match PLAT-RC33 (current version for the T-Mobile G1 in the US) and TMI-RC9 (the European equivalent). Here's the relevant code in 1.1, which matches the following code in 1.0: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/CacheManager.java;h=f5a09b83b724a86a825e3328542a178388b71ae5;hb=release-1.0#l367 I'm not familiar with that specific code, though. 378: /** 379: * remove all cache files 380: * 381: * @return true if it succeeds 382: */ 383: // only called from WebCore thread 384: static boolean removeAllCacheFiles() { 385: // delete cache in a separate thread to not block UI. 386: final Runnable clearCache = new Runnable() { 387: public void run() { 388: // delete all cache files 389: try { 390: String[] files = mBaseDir.list(); 391: for (int i = 0; i files.length; i++) { 392: new File(mBaseDir, files[i]).delete(); 393: } 394: } catch (SecurityException e) { 395: // Ignore SecurityExceptions. 396: } 397: // delete database 398: mDataBase.clearCache(); 399: } 400: }; 401: new Thread(clearCache).start(); 402: return true; 403: } JBQ On Sun, Mar 15, 2009 at 3:49 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace: java.lang.NullPointerException at android.webkit.CacheManager$1.run(CacheManager.java:391) at java.lang.Thread.run(Thread.java:935) I've got another report with the same content, but a different incremental version of the sdk (126986). Probably one from the US and one from the UK. So now I would love to know why the code blows up and if there is anything I can do about it. And with the source files and line numbers I felt in good shape to so. If only I could match them to the public code repositories ;-( Finding the file was easy: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD But then history returns the following: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=history;f=core/java/android/webkit/CacheManager.java;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD -- 2008-12-18 The Android Open... Code drop from //branches/ cupcake/@124589 2008-10-21 The Android Open... Initial Contribution android-1.0 None of these seem to simply match the version information returned by Build.VERSION. Furthermore none of these seem to match the line no from the stracktrace. It says method run in CacheManager.java:391. In both versions line 391 is not in a run method ;-( So, how to match stacktraces to code? Cheers, Mariano -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Accelerometer power tied to display backlight power
My fault for not explaining myself better. I want to still be able to collect accelerometer data while the display is off. I'm well aware of the fact that I can keep the display on, but if I want to, for instance, create a pedometer application that counts footsteps while in the user's pocket, then the last thing I want is to keep the display to be on the whole time. Cheers, Jordan On Mar 14, 3:20 pm, Stoyan Damov stoyan.da...@gmail.com wrote: http://developer.android.com/reference/android/os/PowerManager.WakeLo... On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank jordan.w.fr...@gmail.com wrote: Hi, Although I haven't received confirmation from anyone at Google, I can confidently state that when the power to the display goes off, one can no longer obtain data from the accelerometers. I can easily think of a number of examples of where one would like to continue collecting accelerometer data even when the display is of. Supposing that I wanted to fix this, can anyone suggest where should I start looking? Would this be in the SDK, the kernel, or in some proprietary firmware that I can't touch? Thanks, Jordan Frank --~--~-~--~~~---~--~~ 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: Support from Developers
Al Sutton wrote: I'm afraid I think you're wrong. The reason for this is that last week I listed an application on Market and it's been received pretty well (Mostly 4 or 5 stars, average at the moment is 4 after 29 ratings), but, the first one star rating came less than 4 hours after publishing the app from a developer of a competing product whose comments was [insert product name] is easier and open source. So I think you're overestimating the honesty and professionalism of some developers. Granted. Perhaps I was being somewhat idealistic. Maybe the accountability would require a listing of apps each dev is involved with? Or just not permitting the mention of any other competing apps by name - to prevent promotion, and encourage constructive feedback. Ideas on other ways to prevent this scenario from happening? --~--~-~--~~~---~--~~ 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: Support from Developers
There are already ways to release apps without releasing them to the Market, if they aren't ready for the market. You can just put them up on a website, for example. Alexander wrote: I have been in discussion with a few devs not quite content with the ratings/feedback system currently in place on the Android Market, and had the following idea: If there was a Developer Only Market, things would be _much_ more civil, professional, and productive for all involved. Particularly because we could all relate to each other with empathy, and there would be less anonymity, especially if it required registration. There would be a less people to present to, but the quality of user helpfulness would be more concentrated. It could serve as a place to test release apps before jumping into the swarm that is the current Market, or a place to seek genuinely constructive feedback. Anyone have any thoughts on this? --~--~-~--~~~---~--~~ 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] The specified child already has a parent. You must call removeView() on the child's parent first.
This is the IllegalStateException thrown from onCreate() that brings the main activity of my app down upon restart (e.g. launch app - hit back - launch again - got it). Could someone elaborate on what does this exception mean? --~--~-~--~~~---~--~~ 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: Support from Developers
True, this was just a suggestion to get more productive and constructive feedback on the apps that developers release to the Market. On Mar 15, 9:07 am, Michael MacDonald googlec...@antlersoft.com wrote: There are already ways to release apps without releasing them to the Market, if they aren't ready for the market. You can just put them up on a website, for example. Alexander wrote: I have been in discussion with a few devs not quite content with the ratings/feedback system currently in place on the Android Market, and had the following idea: If there was a Developer Only Market, things would be _much_ more civil, professional, and productive for all involved. Particularly because we could all relate to each other with empathy, and there would be less anonymity, especially if it required registration. There would be a less people to present to, but the quality of user helpfulness would be more concentrated. It could serve as a place to test release apps before jumping into the swarm that is the current Market, or a place to seek genuinely constructive feedback. Anyone have any thoughts on this? --~--~-~--~~~---~--~~ 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] class com.android.camera.UploadService does not exist?
Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans --~--~-~--~~~---~--~~ 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: class com.android.camera.UploadService does not exist?
I haven't looked in detail, but this looks like yet another case of a platform application that uses private platform APIs and therefore can't be built against the SDK. JBQ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: class com.android.camera.UploadService does not exist?
Much appreciated Jean-Baptiste. Would the source for this actually be available to a phone OEM or ISP (I'm not sure what term to use for a branded network provider) such as T-Mobile. If so, I have contacts there who could do the build for me; or, would this only be something in-house at Google? I'm just looking for what my requirements would be in order to build the Camera application if truly necessary. Thanks, Hans Appreciated - Hans On Mar 15, 10:58 am, Jean-Baptiste Queru j...@android.com wrote: I haven't looked in detail, but this looks like yet another case of a platform application that uses private platform APIs and therefore can't be built against the SDK. JBQ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Testing Android Game on real device: please help
Ok both your email adresses are noted... but the game still needs some work, so if i think it can be tested youll get an .apk in your inbox! :-) Btw: how do you subscribe to a thread in order to get automatic emails here at google-groups? I can only subscribe by easing search-words.. or by getting an email once a day ... I only want to subscribe to this thread... how do i do that? On 13 mrt, 15:53, Andrea Fanfani a.fanf...@dynamicfun.com wrote: On Fri, Mar 13, 2009 at 06:40:52AM -0700,TjerkWwrote: Hello all, I am making an android game, but i do not have the money to buy a developer phone. The game is not finished but i should it is testable.. and if i dont test it know i may have a big problem later... it is playable though. Is there somebody who has a real device and wants to test the game for me, just starting it up and playing it a little bit is good enough. It's a 2d airplane shoot gane, much like the old raptor game. If someone is interested please reply, i will sent you the (singed) APK and with some things i want to test (using both the buttons as well as touch screen for gameplay). Could anybody help me out? hi, send me at andrea.fanfani(at)gmail.com I will try to take a look at the application. a.f. --~--~-~--~~~---~--~~ 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: class com.android.camera.UploadService does not exist?
Oh, I see. The real problem is that the class in question was deleted a long time ago, but the manifest still lists it by mistake. The manifest should be updated. For your own purposes you can just remove the line in question in the manifest. JBQ On Sun, Mar 15, 2009 at 8:03 AM, Hans hkess...@gmail.com wrote: Much appreciated Jean-Baptiste. Would the source for this actually be available to a phone OEM or ISP (I'm not sure what term to use for a branded network provider) such as T-Mobile. If so, I have contacts there who could do the build for me; or, would this only be something in-house at Google? I'm just looking for what my requirements would be in order to build the Camera application if truly necessary. Thanks, Hans Appreciated - Hans On Mar 15, 10:58 am, Jean-Baptiste Queru j...@android.com wrote: I haven't looked in detail, but this looks like yet another case of a platform application that uses private platform APIs and therefore can't be built against the SDK. JBQ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Matching SDK version to code? NPE Bug in WebView?
JBQ, thanks for the quick reply. So in line 391 it looks like the NPE is a result of mBaseDir.list() in 390 returning null. But how can I know what happened around this code snippet without having that code? Is this missing correlation a growing pain or will it be the same with the next release? I don't really know how to find a solution/workaround for the NPE with this information. And somewhere you found the code from below. Are there any plans to publish this codebase as a reference point? Cheers, Mariano On Sun, Mar 15, 2009 at 2:42 PM, Jean-Baptiste Queru j...@android.comwrote: Unfortunately neither the exact code for the 1.0 SDK nor for 1.1 (especially for 1.1) are available. Versions 126986 and 128600 respectively match PLAT-RC33 (current version for the T-Mobile G1 in the US) and TMI-RC9 (the European equivalent). Here's the relevant code in 1.1, which matches the following code in 1.0: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/CacheManager.java;h=f5a09b83b724a86a825e3328542a178388b71ae5;hb=release-1.0#l367 I'm not familiar with that specific code, though. 378: /** 379: * remove all cache files 380: * 381: * @return true if it succeeds 382: */ 383: // only called from WebCore thread 384: static boolean removeAllCacheFiles() { 385: // delete cache in a separate thread to not block UI. 386: final Runnable clearCache = new Runnable() { 387: public void run() { 388: // delete all cache files 389: try { 390: String[] files = mBaseDir.list(); 391: for (int i = 0; i files.length; i++) { 392: new File(mBaseDir, files[i]).delete(); 393: } 394: } catch (SecurityException e) { 395: // Ignore SecurityExceptions. 396: } 397: // delete database 398: mDataBase.clearCache(); 399: } 400: }; 401: new Thread(clearCache).start(); 402: return true; 403: } JBQ On Sun, Mar 15, 2009 at 3:49 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace: java.lang.NullPointerException at android.webkit.CacheManager$1.run(CacheManager.java:391) at java.lang.Thread.run(Thread.java:935) I've got another report with the same content, but a different incremental version of the sdk (126986). Probably one from the US and one from the UK. So now I would love to know why the code blows up and if there is anything I can do about it. And with the source files and line numbers I felt in good shape to so. If only I could match them to the public code repositories ;-( Finding the file was easy: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD But then history returns the following: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=history;f=core/java/android/webkit/CacheManager.java;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD -- 2008-12-18 The Android Open... Code drop from //branches/ cupcake/@124589 2008-10-21 The Android Open... Initial Contribution android-1.0 None of these seem to simply match the version information returned by Build.VERSION. Furthermore none of these seem to match the line no from the stracktrace. It says method run in CacheManager.java:391. In both versions line 391 is not in a run method ;-( So, how to match stacktraces to code? Cheers, Mariano -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Matching SDK version to code? NPE Bug in WebView?
Both the lack of correlation between the released binaries and the released source code and the lack of source code for 1.1 are artifacts of the release process that was used for 1.0 and 1.1. Lessons were learned and issues were fixed, and I expect that the situation for the next release will be better than it was for 1.0 and 1.1. I found the source code in question in Google's internal code repository, since I have access to the source code that was used to build the versions of Android 1.1 with which you are having problems, but unfortunately that source code cannot be published. If there's any way that you can reproduce the issue with a small piece of code, that would help us diagnose the issue and (if it turns out to be an issue in Android itself) would allow us to test it against the current source code as well. JBQ On Sun, Mar 15, 2009 at 8:42 AM, Mariano Kamp mariano.k...@gmail.com wrote: JBQ, thanks for the quick reply. So in line 391 it looks like the NPE is a result of mBaseDir.list() in 390 returning null. But how can I know what happened around this code snippet without having that code? Is this missing correlation a growing pain or will it be the same with the next release? I don't really know how to find a solution/workaround for the NPE with this information. And somewhere you found the code from below. Are there any plans to publish this codebase as a reference point? Cheers, Mariano On Sun, Mar 15, 2009 at 2:42 PM, Jean-Baptiste Queru j...@android.com wrote: Unfortunately neither the exact code for the 1.0 SDK nor for 1.1 (especially for 1.1) are available. Versions 126986 and 128600 respectively match PLAT-RC33 (current version for the T-Mobile G1 in the US) and TMI-RC9 (the European equivalent). Here's the relevant code in 1.1, which matches the following code in 1.0: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/CacheManager.java;h=f5a09b83b724a86a825e3328542a178388b71ae5;hb=release-1.0#l367 I'm not familiar with that specific code, though. 378: /** 379: * remove all cache files 380: * 381: * @return true if it succeeds 382: */ 383: // only called from WebCore thread 384: static boolean removeAllCacheFiles() { 385: // delete cache in a separate thread to not block UI. 386: final Runnable clearCache = new Runnable() { 387: public void run() { 388: // delete all cache files 389: try { 390: String[] files = mBaseDir.list(); 391: for (int i = 0; i files.length; i++) { 392: new File(mBaseDir, files[i]).delete(); 393: } 394: } catch (SecurityException e) { 395: // Ignore SecurityExceptions. 396: } 397: // delete database 398: mDataBase.clearCache(); 399: } 400: }; 401: new Thread(clearCache).start(); 402: return true; 403: } JBQ On Sun, Mar 15, 2009 at 3:49 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace: java.lang.NullPointerException at android.webkit.CacheManager$1.run(CacheManager.java:391) at java.lang.Thread.run(Thread.java:935) I've got another report with the same content, but a different incremental version of the sdk (126986). Probably one from the US and one from the UK. So now I would love to know why the code blows up and if there is anything I can do about it. And with the source files and line numbers I felt in good shape to so. If only I could match them to the public code repositories ;-( Finding the file was easy: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD But then history returns the following: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=history;f=core/java/android/webkit/CacheManager.java;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD -- 2008-12-18 The Android Open... Code drop from //branches/ cupcake/@124589 2008-10-21 The Android Open... Initial Contribution android-1.0 None of these seem to simply match the version information returned by Build.VERSION. Furthermore none of these seem to match the line no from the stracktrace. It says method run in CacheManager.java:391. In both versions line 391 is not in a run method ;-( So, how to match stacktraces to code? Cheers, Mariano -- Jean-Baptiste M.
[android-developers] Re: XML parsing
On Sun, Mar 15, 2009 at 4:09 AM, nowb ola.br...@gmail.com wrote: I need to know if there is a way to reach the org.apache.harmony.xml.dom package. Or if there are some substitute for ElementImpl that I can use. This works for me: import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.xml.sax.InputSource; ... public void fromStream(InputSource input) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); try { DocumentBuilder parser = factory.newDocumentBuilder(); xml = parser.parse(input); } catch (Exception e) { notXML(); } Element root = xml.getDocumentElement(); if (root == null) notXML(); String local = root.getLocalName(); ... etc --~--~-~--~~~---~--~~ 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: class com.android.camera.UploadService does not exist?
Much appreciated. I'd like to ask you one more question if I could JBQ. I have built all kinds of things with Android now, from simple activities, to OpenGL applications, to out of process servers running in services with inter-process communication and callbacks, et cetera. All of this is great in Android and relatively simple in comparison to doing it in other platforms; however, just trying to build Camera.apk is proving problematic in that I'm probably just taking the wrong approach. Do you have any suggestions (which I'll not hold you to) for building Camera.apk because I, of course, end up needing to reference classes outside of both the SDK and the Camera.git source base (such as com.android.text.format.DateFormat which I found in the base.git repositiory) and not being an expert Eclipse/Java person I simply tried linking in the base framework source folders. That, of course, doesn't work. All of the base code references a different set of resources. Should I be building the base code as its own project, and linking that project to my Camera project's build path? Sorry if this is too far beneath your purview, but I'm struggling to do something I had hoped would be simple - just build Camera.apk without any changes... I've googled on this a bunch but found nothing but vagaries that make it sound like no ones actually doing this right now. Thanks, Hans On Mar 15, 11:40 am, Jean-Baptiste Queru j...@android.com wrote: Oh, I see. The real problem is that the class in question was deleted a long time ago, but the manifest still lists it by mistake. The manifest should be updated. For your own purposes you can just remove the line in question in the manifest. JBQ On Sun, Mar 15, 2009 at 8:03 AM, Hans hkess...@gmail.com wrote: Much appreciated Jean-Baptiste. Would the source for this actually be available to a phone OEM or ISP (I'm not sure what term to use for a branded network provider) such as T-Mobile. If so, I have contacts there who could do the build for me; or, would this only be something in-house at Google? I'm just looking for what my requirements would be in order to build the Camera application if truly necessary. Thanks, Hans Appreciated - Hans On Mar 15, 10:58 am, Jean-Baptiste Queru j...@android.com wrote: I haven't looked in detail, but this looks like yet another case of a platform application that uses private platform APIs and therefore can't be built against the SDK. JBQ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: The specified child already has a parent. You must call removeView() on the child's parent first.
It would help if you posted the stack trace for the exception, and the code that triggers it. On Sun, Mar 15, 2009 at 7:18 AM, gsmd gsm...@gmail.com wrote: This is the IllegalStateException thrown from onCreate() that brings the main activity of my app down upon restart (e.g. launch app - hit back - launch again - got it). Could someone elaborate on what does this exception mean? --~--~-~--~~~---~--~~ 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: Testing Android Game on real device: please help
Go to http://groups.google.com/group/android-developers/subscribe?hl=en and edit your membership On Sun, Mar 15, 2009 at 5:13 PM, TjerkW tje...@gmail.com wrote: Ok both your email adresses are noted... but the game still needs some work, so if i think it can be tested youll get an .apk in your inbox! :-) Btw: how do you subscribe to a thread in order to get automatic emails here at google-groups? I can only subscribe by easing search-words.. or by getting an email once a day ... I only want to subscribe to this thread... how do i do that? On 13 mrt, 15:53, Andrea Fanfani a.fanf...@dynamicfun.com wrote: On Fri, Mar 13, 2009 at 06:40:52AM -0700,TjerkWwrote: Hello all, I am making an android game, but i do not have the money to buy a developer phone. The game is not finished but i should it is testable.. and if i dont test it know i may have a big problem later... it is playable though. Is there somebody who has a real device and wants to test the game for me, just starting it up and playing it a little bit is good enough. It's a 2d airplane shoot gane, much like the old raptor game. If someone is interested please reply, i will sent you the (singed) APK and with some things i want to test (using both the buttons as well as touch screen for gameplay). Could anybody help me out? hi, send me at andrea.fanfani(at)gmail.com I will try to take a look at the application. a.f. --~--~-~--~~~---~--~~ 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: I must pay 25$ to distribute a FREEWARE on Android Market
Also remember that it's a *one time* fee only. On Sun, Mar 15, 2009 at 4:06 AM, MrSnowflake mrsnowfl...@gmail.com wrote: You do realize that if you had developed this game for the iPhone you would have payed $99 to register and that there is no other mainstream way to get your app on the iPhone (as opposed to Android, which allows you to install apk's from websites). So at a point you are correct: paying for free apps seems weird, but Market is a shop and when you develop something in real life (an automatic axe or something :) ) then you also can't just distribute it too 1000 stores. On 15 mrt, 10:10, Chaton contactez.arn...@gmail.com wrote: It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Scheduling a repeating task and being notified
Hi! I'm trying to find the correct way to do the following: . I have an activity with a button that starts a repeating task in the background. That is, if the user goes away from my activity, I want my task to still be scheduled and executed every x minutes. . I want a status TextView to be displayed on the activity, and if the task happens to start executing while my activity is showing, the TextView should be updated so the user can be aware of what's going on. So basically, is there a way to start a scheduled background repeating task and be notified when it is executed? From what I saw in the sample applications, I understand I'm supposed to use AlarmManager and a Service but I'm not sure about the notification part. Thanks a lot for your help. BoD --~--~-~--~~~---~--~~ 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: I must pay 25$ to distribute a FREEWARE on Android Market
Yeah, and not a $99 per app fee (*cough*Microsoft rip off store*cough*) On 15 mrt, 19:03, Romain Guy romain...@google.com wrote: Also remember that it's a *one time* fee only. On Sun, Mar 15, 2009 at 4:06 AM, MrSnowflake mrsnowfl...@gmail.com wrote: You do realize that if you had developed this game for the iPhone you would have payed $99 to register and that there is no other mainstream way to get your app on the iPhone (as opposed to Android, which allows you to install apk's from websites). So at a point you are correct: paying for free apps seems weird, but Market is a shop and when you develop something in real life (an automatic axe or something :) ) then you also can't just distribute it too 1000 stores. On 15 mrt, 10:10, Chaton contactez.arn...@gmail.com wrote: It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Re: class com.android.camera.UploadService does not exist?
I'm not familiar at all with the camera code and the dependencies that you might find, so I can't give you any advice here, sorry. JBQ On Sun, Mar 15, 2009 at 9:31 AM, Hans hkess...@gmail.com wrote: Much appreciated. I'd like to ask you one more question if I could JBQ. I have built all kinds of things with Android now, from simple activities, to OpenGL applications, to out of process servers running in services with inter-process communication and callbacks, et cetera. All of this is great in Android and relatively simple in comparison to doing it in other platforms; however, just trying to build Camera.apk is proving problematic in that I'm probably just taking the wrong approach. Do you have any suggestions (which I'll not hold you to) for building Camera.apk because I, of course, end up needing to reference classes outside of both the SDK and the Camera.git source base (such as com.android.text.format.DateFormat which I found in the base.git repositiory) and not being an expert Eclipse/Java person I simply tried linking in the base framework source folders. That, of course, doesn't work. All of the base code references a different set of resources. Should I be building the base code as its own project, and linking that project to my Camera project's build path? Sorry if this is too far beneath your purview, but I'm struggling to do something I had hoped would be simple - just build Camera.apk without any changes... I've googled on this a bunch but found nothing but vagaries that make it sound like no ones actually doing this right now. Thanks, Hans On Mar 15, 11:40 am, Jean-Baptiste Queru j...@android.com wrote: Oh, I see. The real problem is that the class in question was deleted a long time ago, but the manifest still lists it by mistake. The manifest should be updated. For your own purposes you can just remove the line in question in the manifest. JBQ On Sun, Mar 15, 2009 at 8:03 AM, Hans hkess...@gmail.com wrote: Much appreciated Jean-Baptiste. Would the source for this actually be available to a phone OEM or ISP (I'm not sure what term to use for a branded network provider) such as T-Mobile. If so, I have contacts there who could do the build for me; or, would this only be something in-house at Google? I'm just looking for what my requirements would be in order to build the Camera application if truly necessary. Thanks, Hans Appreciated - Hans On Mar 15, 10:58 am, Jean-Baptiste Queru j...@android.com wrote: I haven't looked in detail, but this looks like yet another case of a platform application that uses private platform APIs and therefore can't be built against the SDK. JBQ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.- Hide quoted text - - Show quoted text - -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: upload failure on reset phone; Failure [INSTALL_FAILED_ALREADY_EXISTS]
Hi, I've the same problem but when I'm trying to install in the device. How can I force to upgrade the application instead remove it? The main problem is I can't to remove the application cause I don't want to lose the application data. Thanks in advance On 4 mar, 22:39, Mike Collins mike.d.coll...@gmail.com wrote: You either have to uninstall the app adb uninstall or install over with adb install -r See the adb help for details. On Mar 3, 9:04 am, Jeff jlb...@gmail.com wrote: I and my customer have had the same problem uploading new versions of my App. tried and failed: Load from website load from USB using adb install reset G1 to factory setting After reset of phone the error message for ADB is Failure [INSTALL_FAILED_ALREADY_EXISTS] Any thoughts? thanks, Jeff --~--~-~--~~~---~--~~ 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: I must pay 25$ to distribute a FREEWARE on Android Market
I think it's a good policy. This has the side effect (intended or not) of providing a useful 'gate' to prevent thousands of crap/spam apps from being uploaded. Having people register and making them pay a trivial fee (I would content $25 is trivial) is a nice way to keep it to people who really have a legitimate app to upload vs. everyone uploading their first Hello World app because it's cool. Bob Rose AndroidSavvy.com On Mar 15, 12:26 pm, MrSnowflake mrsnowfl...@gmail.com wrote: Yeah, and not a $99 per app fee (*cough*Microsoft rip off store*cough*) On 15 mrt, 19:03, Romain Guy romain...@google.com wrote: Also remember that it's a *one time* fee only. On Sun, Mar 15, 2009 at 4:06 AM, MrSnowflake mrsnowfl...@gmail.com wrote: You do realize that if you had developed this game for the iPhone you would have payed $99 to register and that there is no other mainstream way to get your app on the iPhone (as opposed to Android, which allows you to install apk's from websites). So at a point you are correct: paying for free apps seems weird, but Market is a shop and when you develop something in real life (an automatic axe or something :) ) then you also can't just distribute it too 1000 stores. On 15 mrt, 10:10, Chaton contactez.arn...@gmail.com wrote: It's a joke ! I Developped a freeware game for Android and at the moment to distribute it, I noticed that I must pay 25$. It's incredible. First, I spend time to develop a freeware software for android, and secondly, I must pay. It's not logic. Is a way to distribute freeware without paying ? Else, my freeware will go the the trash. No good. Chaton. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] How to create a Custom Clickable Area Non-Standard Square ?
Hi, I'm currently trying to create a custom clickable button... The shapes of the buttons are not your standard type. They are circle and a rotated rectagle button How do I go about this? is there a simple way? also how could I rotate a button? Thanks, Moto! --~--~-~--~~~---~--~~ 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: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?
On Mar 11, 3:31 pm, William william.caine...@gmail.com wrote: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL. I am drawing using Canvas.drawBitmap and running slowing FPS, would openGL speed that up a lot you think? In short, yes. I was initially trying to use Canvas for my game, but the performance on the G1 wasn't good enough because Canvas is not currently hardware accelerated. Switching to OpenGL provided a significant boost (I'm sorry I don't have specific benchmark numbers). Interestingly, the emulator is slower than the G1 when using OpenGL because the emulator uses a (emulated) software OpenGL implementation. -- Jon --~--~-~--~~~---~--~~ 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: Using the word Android in a market developer name
On Mar 12, 12:50 am, Hayden hayden.stew...@gmail.com wrote: Is it against Google's rules to use the word Android in a developer name? I'm leaning towards no. While it is the name of the OS, Google didn't invent the word. It is a registered trademark though. We're allowed to use it under the brand guidelines that are here: http://www.android.com/branding.html For example, could I make my developer name bobTheAndroid? Nope (see section 4 of the guidelines). (I'm asking before I make my developer account so I don't somehow lose my $25) You can change the name on the account whenever you like, so you should be okay. -- Jon --~--~-~--~~~---~--~~ 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: png + opengl
On Mar 14, 2:10 pm, borghild.hedda borghild.he...@gmail.com wrote: Is it possible to draw a png image and then to run opengl operations on it with android? What do you mean by run opengl operations on it? You can certainly use a PNG bitmap as a background and then do 3D stuff on top of it. -- Jon --~--~-~--~~~---~--~~ 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: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?
On Sun, Mar 15, 2009 at 1:30 PM, Jon Colverson jjc1...@gmail.com wrote: Interestingly, the emulator is slower than the G1 when using OpenGL because the emulator uses a (emulated) software OpenGL implementation. Interestingly, on my app (decorating a map with geotagged points, recording and playing back sound, launching web browser) the G1 is not significantly slower than the emulator, so I just don't use the emulator any more. Got a surprise the other day when I was doing some debugging, had the phone in my hand, and it went off because somebody was calling me... -Tim --~--~-~--~~~---~--~~ 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: Regarding LBS - MASF client
Hi, Kumar. See: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=location/java/com/android/internal/location/LocationMasfClient.java The comment there says: Service to communicate to the Google Location Server (GLS) via MASF server and according to a quick web search, MASF stands for Mobile Application Sensing Framework. On Mar 12, 10:43 pm, Kumar androidq.ku...@gmail.com wrote: Hi , I tried searching on net but could not find any information on MASF client orLocationMasfclient.java, Network Location provider makes use of Masf service in networkLocationProvider.java, Would Some one who had worked on networklocationprovider.java know about Masf client? and what is its role in Android platform ?, and i am also wondering what would MASF actually mean. There is no documention available in android website nor in the code. Regards Sunil. --~--~-~--~~~---~--~~ 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: Matching SDK version to code? NPE Bug in WebView?
JBQ, good to hear that regarding the correlation there is hope for the future. Regarding a reproducible test case: I tried to reproduce it by hand and can do that. It seems to happen when the phone memory is low (in my test 2.8MB) and the cache is cleared by calling webView.clearCache(true);. I could try to write an isolated test case for that, but this test case will not automatically run as the environment needs to be right, i.e. a low memory scenario needs to be created. Also I am pressed for time at the moment. If you believe that this bug will get attention soon and be fixed as a result of me creating a reproducible test case, I will do that for the sake of the greater good. But if this will just be stored in a bug report and put onto the huge pile, I would rather start working on the workaround I need. Ok with you? Thanks again, for being helpful, on a Sunday. Cheers, Mariano On Sun, Mar 15, 2009 at 4:58 PM, Jean-Baptiste Queru j...@android.comwrote: Both the lack of correlation between the released binaries and the released source code and the lack of source code for 1.1 are artifacts of the release process that was used for 1.0 and 1.1. Lessons were learned and issues were fixed, and I expect that the situation for the next release will be better than it was for 1.0 and 1.1. I found the source code in question in Google's internal code repository, since I have access to the source code that was used to build the versions of Android 1.1 with which you are having problems, but unfortunately that source code cannot be published. If there's any way that you can reproduce the issue with a small piece of code, that would help us diagnose the issue and (if it turns out to be an issue in Android itself) would allow us to test it against the current source code as well. JBQ On Sun, Mar 15, 2009 at 8:42 AM, Mariano Kamp mariano.k...@gmail.com wrote: JBQ, thanks for the quick reply. So in line 391 it looks like the NPE is a result of mBaseDir.list() in 390 returning null. But how can I know what happened around this code snippet without having that code? Is this missing correlation a growing pain or will it be the same with the next release? I don't really know how to find a solution/workaround for the NPE with this information. And somewhere you found the code from below. Are there any plans to publish this codebase as a reference point? Cheers, Mariano On Sun, Mar 15, 2009 at 2:42 PM, Jean-Baptiste Queru j...@android.com wrote: Unfortunately neither the exact code for the 1.0 SDK nor for 1.1 (especially for 1.1) are available. Versions 126986 and 128600 respectively match PLAT-RC33 (current version for the T-Mobile G1 in the US) and TMI-RC9 (the European equivalent). Here's the relevant code in 1.1, which matches the following code in 1.0: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/CacheManager.java;h=f5a09b83b724a86a825e3328542a178388b71ae5;hb=release-1.0#l367 I'm not familiar with that specific code, though. 378: /** 379: * remove all cache files 380: * 381: * @return true if it succeeds 382: */ 383: // only called from WebCore thread 384: static boolean removeAllCacheFiles() { 385: // delete cache in a separate thread to not block UI. 386: final Runnable clearCache = new Runnable() { 387: public void run() { 388: // delete all cache files 389: try { 390: String[] files = mBaseDir.list(); 391: for (int i = 0; i files.length; i++) { 392: new File(mBaseDir, files[i]).delete(); 393: } 394: } catch (SecurityException e) { 395: // Ignore SecurityExceptions. 396: } 397: // delete database 398: mDataBase.clearCache(); 399: } 400: }; 401: new Thread(clearCache).start(); 402: return true; 403: } JBQ On Sun, Mar 15, 2009 at 3:49 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace: java.lang.NullPointerException at android.webkit.CacheManager$1.run(CacheManager.java:391) at java.lang.Thread.run(Thread.java:935) I've got another report with the same content, but a different incremental version of the sdk (126986). Probably one from the US and one from the UK. So now I would love to know why the code blows up and if there is anything I can do about it.
[android-developers] A way to search 2 applications in market?
I know I can search one application from Android market by viewing the following URL: market://search?q=pname:package I actually have a few application published, but want to limit my query to return 2 applications. How do I do that? Wah --~--~-~--~~~---~--~~ 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: MapView Zoomer behavior, how?
Hey Tim, just a quicky regarding the fading out: An alarm seems a bit heavy handed. You can use http://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable,%20long)to post a Runnable that does the fading out for you. I found that idea in the Camera application's image view, where you can also see how they deal with zoom controls, unfortunately in a complicated fashion: http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/ViewImage.java;h=4b9eb58da8df25553c026bb12e0c5e38ebb37720;hb=release-1.0 Cheers, Mariano Fading out upon no user action. OK... set an alarm and so on. --~--~-~--~~~---~--~~ 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: Contact change broadcast
No idea how to solve those two problems? On 11 mar., 17:18, LambergaR martin.s...@gmail.com wrote: Hello all! Is there a broadcast message dispached when a contact is changed or added in Android's native contact book? If not, what would be the most efficient way to check for changes? Secend of all, what would be the most efficient method for sending a file (image) using HTTP POST request? Thanks in advance, Martin --~--~-~--~~~---~--~~ 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] Can not start app from Market but works fine from Launcher: com.android.vending crashing
Hi! I've just released an application, Base Toucher Lite. I tested it and it worked fine. As a last check after release I installed it from the Market and tried to start it. The whole Market app crashed! I tried to start the app from the Launcher and that works fine. Has anyone had this problem? This is the exception I'm getting: Title: Sorry! Message: The application Market (process com.android.vending) has stopped unexpectedly. Please try again. Now I'm getting all the bad rating because people think my app isn't working, but I am not convinced it's a problem with my app. If someone could try and install Base Toucher Lite and tell me if they have the same issue, that would be mighty helpful. Regards, Gustav --~--~-~--~~~---~--~~ 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: Can not start app from Market but works fine from Launcher: com.android.vending crashing
Hi Stoyan, and thanks for helping me out! I went back and double checked that I have really had the READ_CONTACTS permission, and it was there. Twice. Once as 'uses' and once as 'requires'! It worked fine to start from the Launcher for some reason, but not from the Market. There we go. Stoyan, you are a life saver. Thank you. Gustav On Mar 15, 11:00 pm, Stoyan Damov stoyan.da...@gmail.com wrote: I just installed it and the bug is really in YOUR code -- the crash in Market app is another story - someone from the Android engineers should figure out why Market crashes when it can't launch an activity lacking permissions. 03-16 00:58:01.960: WARN/ActivityManager(51): Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:01.970: DEBUG/AndroidRuntime(6206): Shutting down VM 03-16 00:58:01.970: WARN/dalvikvm(6206): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 03-16 00:58:01.980: ERROR/AndroidRuntime(6206): Uncaught handler: thread main exiting due to uncaught exception 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): java.lang.SecurityException: Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1066) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1054) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:998) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1436) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivityForResult(Activity.java:2528) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivity(Activity.java:2572) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleLaunch(AssetInfoActivityController.java:510) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleRequest(AssetInfoActivityController.java:136) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.AssetInfoActivity.onClick(AssetInfoActivity.java:284) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.performClick(View.java:2110) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.onTouchEvent(View.java:3524) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.widget.TextView.onTouchEvent(TextView.java:4659) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.dispatchTouchEvent(View.java:3179) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1089) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Handler.dispatchMessage(Handler.java:88) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Looper.loop(Looper.java:123) 03-16
[android-developers] Re: Can not start app from Market but works fine from Launcher: com.android.vending crashing
PS. I have released v.1.0.2 which contains the bug fix. On Mar 15, 11:00 pm, Stoyan Damov stoyan.da...@gmail.com wrote: I just installed it and the bug is really in YOUR code -- the crash in Market app is another story - someone from the Android engineers should figure out why Market crashes when it can't launch an activity lacking permissions. 03-16 00:58:01.960: WARN/ActivityManager(51): Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:01.970: DEBUG/AndroidRuntime(6206): Shutting down VM 03-16 00:58:01.970: WARN/dalvikvm(6206): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 03-16 00:58:01.980: ERROR/AndroidRuntime(6206): Uncaught handler: thread main exiting due to uncaught exception 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): java.lang.SecurityException: Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1066) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1054) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:998) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1436) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivityForResult(Activity.java:2528) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivity(Activity.java:2572) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleLaunch(AssetInfoActivityController.java:510) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleRequest(AssetInfoActivityController.java:136) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.AssetInfoActivity.onClick(AssetInfoActivity.java:284) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.performClick(View.java:2110) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.onTouchEvent(View.java:3524) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.widget.TextView.onTouchEvent(TextView.java:4659) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.dispatchTouchEvent(View.java:3179) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1089) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Handler.dispatchMessage(Handler.java:88) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Looper.loop(Looper.java:123) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.ActivityThread.main(ActivityThread.java:3739) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at java.lang.reflect.Method.invokeNative(Native Method) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at
[android-developers] Re: Can not start app from Market but works fine from Launcher: com.android.vending crashing
np, 1 advice though - when showing dialogs, put 2 extra end-of-line chars (\n), otherwise the last line gets clipped on the device (don't know whether it happens on the emulator) This *is* surely a bug w/ the AlertDialog. On Mon, Mar 16, 2009 at 1:49 AM, Parakoos parak...@gmail.com wrote: PS. I have released v.1.0.2 which contains the bug fix. On Mar 15, 11:00 pm, Stoyan Damov stoyan.da...@gmail.com wrote: I just installed it and the bug is really in YOUR code -- the crash in Market app is another story - someone from the Android engineers should figure out why Market crashes when it can't launch an activity lacking permissions. 03-16 00:58:01.960: WARN/ActivityManager(51): Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:01.970: DEBUG/AndroidRuntime(6206): Shutting down VM 03-16 00:58:01.970: WARN/dalvikvm(6206): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 03-16 00:58:01.980: ERROR/AndroidRuntime(6206): Uncaught handler: thread main exiting due to uncaught exception 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): java.lang.SecurityException: Permission Denial: starting Intent { action=android.intent.action.MAIN flags=0x1000 comp={com.parakoos.basetoucherlite/com.parakoos.basetoucherlite.ViewFriends}} from ProcessRecord{42fd97b8 6206:com.android.vending/1} (pid=6206, uid=1) requires android.permission.READ_CONTACTS 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1066) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Parcel.readException(Parcel.java:1054) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:998) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1436) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivityForResult(Activity.java:2528) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.startActivity(Activity.java:2572) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleLaunch(AssetInfoActivityController.java:510) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.controller.AssetInfoActivityController.handleRequest(AssetInfoActivityController.java:136) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.vending.AssetInfoActivity.onClick(AssetInfoActivity.java:284) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.performClick(View.java:2110) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.onTouchEvent(View.java:3524) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.widget.TextView.onTouchEvent(TextView.java:4659) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.View.dispatchTouchEvent(View.java:3179) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1089) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at android.os.Handler.dispatchMessage(Handler.java:88) 03-16 00:58:02.000: ERROR/AndroidRuntime(6206): at
[android-developers] Network activity for each Process (based on PID)
Hi All I intend to log TCP activity of a given process. When I cd to the proc/[PID]/net folder, and check the content of the files there. They are not process specific they all have the same content. e.g a Process with PID=xxx and a process with PID=yyy their snmp or tcp or etc. are all the same. Do you know any way to go around this ? Is this a bug or something that current Linux Kernel of Android doesn't support yet ? 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] How to inflate an xml file with ids from other apk?
Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do? --~--~-~--~~~---~--~~ 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: How to inflate an xml file with ids from other apk?
Did you define the string id hello in the strings.xml file? You may need define it in the 'other apk' 's strings.xml file, you can try. On Mar 16, 9:25 am, quill quill...@163.com wrote: Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do? --~--~-~--~~~---~--~~ 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: How to inflate an xml file with ids from other apk?
Hi quill There are some questions for you maybe can help you solve this problem first, from your question, Did you setup the akp into android emulator? if yes, please reboot it, and try it again. last time, we also had those problem when we setup new akp. at the beginning, we also could get some sources such as some wave files at raw, we reboot the emulator the program can get them.. so my suggest is you can try it first...and check it...if u debug or run under the emulator I hope that can give you some helps...good luck and best regards! Mercury On 3月16日, 上午9时25分, quill quill...@163.com wrote: Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do? --~--~-~--~~~---~--~~ 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: How to dismiss the AlertDialog without buttons after clicking on any item in the Alert Dialog
If you don't want buttons then you probably don't want to use AlertDialog because an AlertDialog has to have at least one button. Instead, use the Dialog class that AlertDialog extends. A Dialog can display any view hierarchy you want. You can then attach listeners to one or more views in your hierarchy that will cancel the dialog. Here is a really simple example: // assuming the dialog is constructed within your activity final Dialog d = new Dialog(this); d.setTitle(My Dialog); TextView t = new TextView(this); t.setText(Click me to dismiss the dialog); t.setClickable(true); t.setOnClickListener(new OnClickListener() { public void onClick(View v) { d.dismiss(); } }); d.setContentView(t); d.show(); Of course, you would want to define your view hierarchy in XML and use setContentView(int) instead. Take a look at the documentation for the Dialog class to see what methods are available. In particular there is a method setCanceledOnTouchOutside() which I guess is the opposite of what you want, but is interesting nonetheless. Hope this helps, Greg On Mar 15, 5:21 am, vincent Kor kor.vinc...@gmail.com wrote: Hi, All: from the reference of SDK, AlertDialog information as below. I want to create a dialog but i don't want to have any buttons in the dialog, then i hope to dismiss the dialog after i click any item in the dialog, how should i dismiss the dialog ? When the user click the back button, it will dismiss the dialog. so i need to send the key message in hard code ? is there any other way?? Really appreciate your help !! Vincent -- public AlertDialog.Builderhttp://developer.android.com/reference/android/app/AlertDialog.Builde... setSingleChoiceItems (CharSequence[]http://developer.android.com/reference/java/lang/CharSequence.htmlitems, int checkedItem, DialogInterface.OnClickListenerhttp://developer.android.com/reference/android/content/DialogInterfac...listener) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog. Parameters items the items to be displayed. checkedItem specifies which item is checked. If -1 no items are checked. listener notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, *if no buttons are supplied it's up to the user to dismiss * --~--~-~--~~~---~--~~ 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: How to force MediaStore to rescan the SD card
I'm writing a Video Player and is supposed to cowork with Youtube Downloader, which does not imeplemet MediaScanner when downloading a file. Is the only way for me is to scan whole SD card and update all found files? On 2月18日, 下午12時05分, Dave Sparks davidspa...@android.com wrote: I'm not sure about the process of removing a file from the database. I suggest looking at the Music Player source - it has an option to delete files from the SD card. Under what circumstances would files be deleted without mounting and re-mounting the SD card? That sounds like a poorly behaved app. On Feb 17, 6:03 pm, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: Thanks, this solves my first problem. Now what ifmediafiles are deleted? What if I do not know which ones have been deleted? Is there a way to have it rescan the entire SD card in the way it must do if the card has been removed and reinserted? On Feb 14, 2:01 pm, Dave Sparks davidspa...@android.com wrote: You want something like this in your activity: import android.media.MediaScannerConnection; import android.media.MediaScannerConnection.MediaScannerConnectionClient; private static class MediaScannerNotifier implements MediaScannerConnectionClient { private Context mContext; private MediaScannerConnection mConnection; private String mPath; private String mMimeType; public MediaScannerNotifier(Context context, String path, String mimeType) { mContext = context; mPath = path; mMimeType = mimeType; mConnection = new MediaScannerConnection(context, this); mConnection.connect(); } public void onMediaScannerConnected() { mConnection.scanFile(mPath, mMimeType); } public void onScanCompleted(String path, Uri uri) { // OPTIONAL:scanis complete, this will cause the viewer to render it try { if (uri != null) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(uri); mContext.startActivity(intent); } } finally { mConnection.disconnect(); mContext = null; } } } Toscana file, you just create a new MediaScannerNotifier: new MediaScannerNotifier(path, mimeType); On Feb 14, 9:45 am, kolby kolbys...@gmail.com wrote: You can make an android.media.MediaScannerConnection, connect to it, and provide a client toscana directory. Michael On Feb 14, 7:05 am, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: If I progammatically store newmediafiles on the SD card, the MediaStore does not know about them until I remove and reinsert the SD card. Is there a way to tell the MediaStore to rescan the SD card without first unmounting the SD card?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: How to inflate an xml file with ids from other apk?
Hi, David, yes, I have defined the string id hello in the strings.xml(in other apk), its id is 0x7f04 in R.java. And in my application, there is also a string's id defined as 0x7f04, when the my application runs, it shows the string define in my strings.xml, not in the other apk. On Mar 16, 9:36 am, David Yue a52...@motorola.com wrote: Did you define the string id hello in the strings.xml file? You may need define it in the 'other apk' 's strings.xml file, you can try. On Mar 16, 9:25 am, quill quill...@163.com wrote: Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Image Manipulation - getPixel on a PNG resource error - bug?
Hi all! I am trying to perform a transformation on an image, specifically a PNG although any lossless format supported by Android would suit me, when running my test suite I keep getting errors that the new pixel values I'm creating are slightly wrong. To narrow the problem I ran my tests with a single pixel PNG image and got some bizarre results. I started by opening the file with gimp and using the pippet to grab the argb value (Not very scientific I know) the pixel has the following properties; Red: 250 Green: 114 Blue:142 Hex: 0xFA728E Binary: 0b1010 01110010 10001110 To me this suggests the file is stored in 32 bit depth and not the RGB_565 later reported, do images in res/raw get reduced to 16 bit when packaged with an application? In my test case I check that the values agree in the preconditions @SmallTest public void testPreconditions() { super.testPreconditions(); assertEquals(String.format(Get Pixel doesn't map to test data %n%s%n%s%n,MiffedTest.getBitPattern(b.getPixel(0,0)), MiffedTest.getBitPattern(*0xfffa728e*)),b.getPixel(0,0), 0xfffa728e); } I eventually get the following report; Failure in testPreconditions: junit.framework.AssertionFailedError: Get Pixel doesn't map to test data 0111 01110001 10001100 1010 01110010 10001110 expected:-560756 but was:-363890 I decode the single pixel PNG using the following command; b = BitmapFactory.decodeResource(getContext().getResources(),R.raw.test); The config for b is RGB_565 , this worries me, I was using the format in the hope that it was lossless but 16 bit colour is not a great sign, I feel like the crux of this issue lies in the conversion from RGB_565 - ARGB_ which much take place in the getPixel method. Does anyone know why these values are out? They're such minor amounts but the issues grow the more work I do to an image. How is the conversion from the RGB_565 format to the 32 bit integer returned by getPixel done? Some low end bits seem to be set so it's not the method I'm used to. Is there any other way to get at the raw pixel data if the methods are inaccurate? Is there any way for me to store or convert a PNG in ARGB_ on the platform? I just need to be able to get the exact 32 bit value of any pixel from the image. Any information would be greatly appreciated. Kind regards, Gav --~--~-~--~~~---~--~~ 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: How to inflate an xml file with ids from other apk?
Hi Mercury, yes, I setup the apk in the emulator. And I try to reboot the emulator the problem still exist. It seems the 'resourcemanager' treats the string ids as locals On Mar 16, 9:42 am, Mercury xumerc...@gmail.com wrote: Hi quill There are some questions for you maybe can help you solve this problem first, from your question, Did you setup the akp into android emulator? if yes, please reboot it, and try it again. last time, we also had those problem when we setup new akp. at the beginning, we also could get some sources such as some wave files at raw, we reboot the emulator the program can get them.. so my suggest is you can try it first...and check it...if u debug or run under the emulator I hope that can give you some helps...good luck and best regards! Mercury On 3月16日, 上午9时25分, quill quill...@163.com wrote: Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=hello---note this / /LinearLayout It works correctly, the text hello will be show on the screen. But when I defined the xml file like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hellonote this / /LinearLayout you know, the text was difined by string ids, so when my application load this, it can't find the string id. How can I do?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Image Manipulation - getPixel on a PNG resource error - bug?
Going from 565 to ARGB is not what you want. Whenever an image with no alpha channel is decoded, Android (currently) converts it to 565 because this is how it will be rendered on screen. Doing the conversion at drawing time would be a waste of CPU. What you need is to decode the image directly in ARGB . When you call one of the BitmapFactory.decode*() methods, you can specify a set of BitmapFactory.Options. Simply pass a set of options in which inDither == false. This will tell BitmapFactory to not attempt to dither the original 24 bits image to 16 bits. On Sun, Mar 15, 2009 at 7:26 PM, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Hi all! I am trying to perform a transformation on an image, specifically a PNG although any lossless format supported by Android would suit me, when running my test suite I keep getting errors that the new pixel values I'm creating are slightly wrong. To narrow the problem I ran my tests with a single pixel PNG image and got some bizarre results. I started by opening the file with gimp and using the pippet to grab the argb value (Not very scientific I know) the pixel has the following properties; Red: 250 Green: 114 Blue: 142 Hex: 0xFA728E Binary: 0b1010 01110010 10001110 To me this suggests the file is stored in 32 bit depth and not the RGB_565 later reported, do images in res/raw get reduced to 16 bit when packaged with an application? In my test case I check that the values agree in the preconditions �...@smalltest public void testPreconditions() { super.testPreconditions(); assertEquals(String.format(Get Pixel doesn't map to test data %n%s%n%s%n,MiffedTest.getBitPattern(b.getPixel(0,0)), MiffedTest.getBitPattern(0xfffa728e)),b.getPixel(0,0), 0xfffa728e); } I eventually get the following report; Failure in testPreconditions: junit.framework.AssertionFailedError: Get Pixel doesn't map to test data 0111 01110001 10001100 1010 01110010 10001110 expected:-560756 but was:-363890 I decode the single pixel PNG using the following command; b = BitmapFactory.decodeResource(getContext().getResources(),R.raw.test); The config for b is RGB_565 , this worries me, I was using the format in the hope that it was lossless but 16 bit colour is not a great sign, I feel like the crux of this issue lies in the conversion from RGB_565 - ARGB_ which much take place in the getPixel method. Does anyone know why these values are out? They're such minor amounts but the issues grow the more work I do to an image. How is the conversion from the RGB_565 format to the 32 bit integer returned by getPixel done? Some low end bits seem to be set so it's not the method I'm used to. Is there any other way to get at the raw pixel data if the methods are inaccurate? Is there any way for me to store or convert a PNG in ARGB_ on the platform? I just need to be able to get the exact 32 bit value of any pixel from the image. Any information would be greatly appreciated. Kind regards, Gav -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Can you requery a Cursor after the database object that created it is closed?
From my own quick tests, this seems to be the case. I just wanted to confirm. 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: ArcMovement on a BitMap - composite Animations
Hi Romain, Now i am trying with AnimationSet, but still i cant move further, the code i am trying is, private void createAnim(Canvas canvas) { AnimationSet set = new AnimationSet(true); set.setInterpolator(new AccelerateDecelerateInterpolator()); anim = new RotateAnimation(0, 360, canvas.getWidth() / 2, canvas .getHeight() / 2); anim.setDuration(5000); set.addAnimation(anim); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f); anim2.setDuration(5000); set.addAnimation(anim2); set.setRepeatMode(AnimationSet.REVERSE); set.setRepeatCount(AnimationSet.INFINITE); startAnimation(anim); // startAnimation(anim2); } If there is any method like startAnimation(AnimationSet), then it will be easy... please guide me... Thanks Nithin On Mar 13, 8:40 pm, Romain Guy romain...@google.com wrote: Hi, Use an AnimationSet :) On Fri, Mar 13, 2009 at 12:33 AM, Nithin nithin.war...@gmail.com wrote: Hi, I am trying to create a arc movement(means both RotateAnimation and TranslateAnimation required) for a bitmap. I can do either rotate or translate movement, but i cant integrate both. the code which i am trying for this is, private void createAnim(Canvas canvas) { anim = new RotateAnimation(0, 180, canvas.getWidth() / 2, canvas .getHeight() / 2); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f ); anim.setRepeatMode(Animation.REVERSE); anim.setRepeatCount(Animation.INFINITE); anim.setDuration(2500); anim.setInterpolator(new AccelerateDecelerateInterpolator()); startAnimation(anim); // startAnimation(anim2); } Please guide me in this.. Thanks Nithin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Re: ArcMovement on a BitMap - composite Animations
AnimationSet is an Animation, just call startAnimation(set)... On Sun, Mar 15, 2009 at 9:02 PM, Nithin nithin.war...@gmail.com wrote: Hi Romain, Now i am trying with AnimationSet, but still i cant move further, the code i am trying is, private void createAnim(Canvas canvas) { AnimationSet set = new AnimationSet(true); set.setInterpolator(new AccelerateDecelerateInterpolator()); anim = new RotateAnimation(0, 360, canvas.getWidth() / 2, canvas .getHeight() / 2); anim.setDuration(5000); set.addAnimation(anim); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f); anim2.setDuration(5000); set.addAnimation(anim2); set.setRepeatMode(AnimationSet.REVERSE); set.setRepeatCount(AnimationSet.INFINITE); startAnimation(anim); // startAnimation(anim2); } If there is any method like startAnimation(AnimationSet), then it will be easy... please guide me... Thanks Nithin On Mar 13, 8:40 pm, Romain Guy romain...@google.com wrote: Hi, Use an AnimationSet :) On Fri, Mar 13, 2009 at 12:33 AM, Nithin nithin.war...@gmail.com wrote: Hi, I am trying to create a arc movement(means both RotateAnimation and TranslateAnimation required) for a bitmap. I can do either rotate or translate movement, but i cant integrate both. the code which i am trying for this is, private void createAnim(Canvas canvas) { anim = new RotateAnimation(0, 180, canvas.getWidth() / 2, canvas .getHeight() / 2); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f ); anim.setRepeatMode(Animation.REVERSE); anim.setRepeatCount(Animation.INFINITE); anim.setDuration(2500); anim.setInterpolator(new AccelerateDecelerateInterpolator()); startAnimation(anim); // startAnimation(anim2); } Please guide me in this.. Thanks Nithin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] How do I save the image from the Camera application, called using the Intent?
I've been trying to save image from the camera by calling the android.media.action.IMAGE_CAPTURE intent. and save using com.android.providers.MediaStore.Images.Media.EXTERNAL_CONTENT_URI. I've been successful in getting the small picture by calling the camera intent and getting the result data. I know it is going to be fixed in the cupcake release (I'm currently using 1.1_rc1.. latest stable according to the site). However, from what I saw in the Camera application's source code, passing output in Extras with uri should save my file to the disk and return RESULT_OK. I'm still getting the data back as inline-data however. Is there a way to make the Camera application save the image file to the disk using a given URI and later use that elsewhere? Since I am indeed sending a saveUri to the Camera class, what's going wrong. And yes, the MediaStore.EXTRA_OUTPUT=output and it is public but is flagged by Eclipse. I checked the source codes for all and googled. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button cameraButton = (Button) findViewById (R.id.cameraButton); cameraButton.setOnClickListener( new OnClickListener(){ public void onClick(View v ){ ContentValues values = new ContentValues(); values.put(Images.Media.TITLE, title); values.put(Images.Media.BUCKET_ID, test); values.put(Images.Media.DESCRIPTION, test Image taken); values.put(Images.Media.MIME_TYPE, image/jpeg); Uri imageUri = getContentResolver().insert (Media.EXTERNAL_CONTENT_URI, values); Intent intent = new Intent (android.media.action.IMAGE_CAPTURE); intent.putExtra(output,imageUri)); startActivity(intent); } }); } I --~--~-~--~~~---~--~~ 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] read cookie value which is set by website
Hi, In my app i want to use the cookie value which is set when user open my website in android phone browser. Is it possible to read value of cookie which is set by browser of my android phone?? --~--~-~--~~~---~--~~ 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: Development Platform Compatibility
I think the SDK and the Eclipse tools will work reasonably well with an XP or Vista 64 bit now. The latest SDK has the USB driver in 64 bit. However at that point Vista 7 is totally unsupported (i.e. not tested at all) and I would not recommend it. R/ On Sat, Mar 14, 2009 at 11:05 PM, javame.developer erica.ram...@gmail.com wrote: Hi, I am getting a new OS, which OS is Android SDK/IDE development environment compatible with XP64, Vista64 or Windows7? Or Do I need to keep a XP32 partition around? --~--~-~--~~~---~--~~ 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] read cookie value which is set by website
Hi, In my app i want to use the cookie value which is set when user open my website in android phone browser. Is it possible to read value of cookie which is set by browser of my android phone?? Thnx --~--~-~--~~~---~--~~ 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: GregorianCalendar.getOffset() returning 0
Ok, I identified the problem. It was a silly one. The time was being fetched from network instead of local OS. I could change the time in Date and Time settings. To my surprise, there is no option to get the time from local OS. However, I am more surprised not to receive a single reply of this post telling the simple solution! On Mar 10, 12:43 pm, Farhan russ...@gmail.com wrote: On Mar 10, 12:12 am, Farhan russ...@gmail.com wrote: Hello, My timezone is C.S.T. in U.S., so it has a raw offset of -6 from GMT and as of today it should be -5 as DST has started. But both the getRawOffset() and getOffset() methods are returning 0. Can anyone tell me why this is happening and how it can be corrected? Thanks. I am using android-sdk-windows-1.1_r1. I am also facing another problemGregorianCalendarclass. When I do a newGregorianCalendar(), it returns me HOUR_OF_DAY 5 plus the actual hour. If anyone could help me to resolve these issues it would be great for me. 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 -~--~~~~--~~--~--~---
[android-developers] Re: hi
k... But if have array of thumbnils... How can reduce the size of all thumbnils before displaying in Image button? Thanks in advance Nithin --~--~-~--~~~---~--~~ 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: Intercepting outgoing sms
ok i have written an app for sending the sms over the web but how do i insert the sms sent over the web into the list of sms sent from the phone? On Mar 6, 1:25 am, Avraham Serour tovm...@gmail.com wrote: not sure if you can do that, if not you could do the opposite, make the user send sms using you app, so if the number match your criteria you use your gateway, if not send it using the phone regular sms service On Thu, Mar 5, 2009 at 5:04 AM, Seer gilligan.ch...@gmail.com wrote: Hi, What i want to do is intercept outgoing sms. The reason been that i want to redirect some sms over a web based sms sending service and others to go over the normal mobile network. I would really like to do this as an invisible background process that does not need modifications to any of the existing apps people use to send sms. Is this possible or will i have to write my own app to send sms and let that app decide how to send the sms? with so many sms apps out there i really did not want to add another to the mix and to instead work on a lower level. thanks Chris --~--~-~--~~~---~--~~ 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: Development Platform Compatibility
I think the SDK and the Eclipse tools will work reasonably well with an XP or Vista 64 bit now. The latest SDK has the USB driver in 64 bit. However at that point Vista 7 is totally unsupported (i.e. not tested at all) and I would not recommend it. R/ On Sat, Mar 14, 2009 at 11:05 PM, javame.developer erica.ram...@gmail.com wrote: Hi, I am getting a new OS, which OS is Android SDK/IDE development environment compatible with XP64, Vista64 or Windows7? Or Do I need to keep a XP32 partition around? --~--~-~--~~~---~--~~ 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] set application as default
Hi all , I am developing a shoutcast(streaming) player, it works fine.. I want to launch my player automatically if user clicks any shoutcast link's in the browser. How can i set my player activity as default player if user clicks on streaming audio(.pls/m3u) links in the browser --~--~-~--~~~---~--~~ 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: ArcMovement on a BitMap - composite Animations
Thanks Romain, i didnt try in that way... Thanks Nithin On Mar 16, 9:18 am, Romain Guy romain...@google.com wrote: AnimationSet is an Animation, just call startAnimation(set)... On Sun, Mar 15, 2009 at 9:02 PM, Nithin nithin.war...@gmail.com wrote: Hi Romain, Now i am trying with AnimationSet, but still i cant move further, the code i am trying is, private void createAnim(Canvas canvas) { AnimationSet set = new AnimationSet(true); set.setInterpolator(new AccelerateDecelerateInterpolator()); anim = new RotateAnimation(0, 360, canvas.getWidth() / 2, canvas .getHeight() / 2); anim.setDuration(5000); set.addAnimation(anim); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f); anim2.setDuration(5000); set.addAnimation(anim2); set.setRepeatMode(AnimationSet.REVERSE); set.setRepeatCount(AnimationSet.INFINITE); startAnimation(anim); // startAnimation(anim2); } If there is any method like startAnimation(AnimationSet), then it will be easy... please guide me... Thanks Nithin On Mar 13, 8:40 pm, Romain Guy romain...@google.com wrote: Hi, Use an AnimationSet :) On Fri, Mar 13, 2009 at 12:33 AM, Nithin nithin.war...@gmail.com wrote: Hi, I am trying to create a arc movement(means both RotateAnimation and TranslateAnimation required) for a bitmap. I can do either rotate or translate movement, but i cant integrate both. the code which i am trying for this is, private void createAnim(Canvas canvas) { anim = new RotateAnimation(0, 180, canvas.getWidth() / 2, canvas .getHeight() / 2); anim2 = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f ); anim.setRepeatMode(Animation.REVERSE); anim.setRepeatCount(Animation.INFINITE); anim.setDuration(2500); anim.setInterpolator(new AccelerateDecelerateInterpolator()); startAnimation(anim); // startAnimation(anim2); } Please guide me in this.. Thanks Nithin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Re: The specified child already has a parent. You must call removeView() on the child's parent first.
Random guess: you tried to add a child view in a ListView statically in your layout XML file? You can't. ListView childs must be added programmatically. And yes it would help if you told us a bit about what is your layout or what you are trying to achieve. R/ On Sun, Mar 15, 2009 at 7:18 AM, gsmd gsm...@gmail.com wrote: This is the IllegalStateException thrown from onCreate() that brings the main activity of my app down upon restart (e.g. launch app - hit back - launch again - got it). Could someone elaborate on what does this exception mean? --~--~-~--~~~---~--~~ 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: class com.android.camera.UploadService does not exist?
Just to clarify: - is this Camera the one in the git android repository? - are you trying to build from the android repository using make or from the SDK? - what is your platform? (i.e. not windows) R/ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git application lists this service. I am trying to simply build the Camera application and am unable to do so. There have been several small issues (such as a resource file having values not compatible with the latest SDK), but this one seems a bit more of a problem ;)... Anyone successfully built the full (not commented out here and there) Camera application? Tips appreciated. Thanks :) Hans --~--~-~--~~~---~--~~ 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: Out of memory exception on setting wallpaper
Hi , Thanks for the help . The problem is resolved . I had used a ContentResolver for listening to contacts updated and dint unregister them in the onDestroy() method . Now have included the code changes and it seems to work fine . Im still in a doubt if this was the real problem for the out of memory exception. Any comments are welcome . Thanks and Regards, Navin On Mar 12, 9:26 pm, Romain Guy romain...@google.com wrote: getWallpaper() is not leaking. The default Home app is using it and does not experience out of memory errors because of that. I am more than willing to fix any existing memory leak in the framework (and I did several times) or in the default apps (and I did several times) but developers should really stop assuming that out of memory errors are always caused by the framework. It is *very* easy for an application to leak or simply to use too much memory. On Thu, Mar 12, 2009 at 7:24 AM, JP joachim.pfeif...@gmail.com wrote: Sounds like the Drawable remains attached to a View between rotations. See blog post: http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks On Mar 12, 3:29 am, ursnavin ursna...@gmail.com wrote: Hi , Im trying to develop a home application . Whenever there is a shift between landscape and potrait mode , im setting thewallpaperonCreate () function using the below code . getWindow().setBackgroundDrawable(getwallpaper()); The code seems to work fine for first few shifts , but after that I run into an out of memory exception . Is this the correct approach or am i missing some thing here . Below is the exception that i get . 03-12 15:08:55.118: ERROR/AndroidRuntime(739): java.lang.OutOfMemoryError: bitmap size exceeds VM budget Thanks Navin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -~--~~~~--~~--~--~---
[android-developers] Capture / Trap for ActivityNotFoundException
I am playing with android.speech.action.RECOGNIZE_SPEECH and in the source it says to trap for ActivityNotFoundException. However, I am not sure how I can do this, the activity class doesn't support this event. I found it as part of android.content, but am not sure how to implement it. Multiple inheritance? --~--~-~--~~~---~--~~ 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 to enable Network Location provider.
Hi, Alex Thanks for your reply to my earlier mail, I am unable to get the location updates when i use Network location provider. From the older posts i understood that to use NW location provider we need to do the following. for GPS provider lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1l, 1f, TestGPS.this); for N/W location provider lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1l, 1f, TestGPS.this); And in my Android manifest file i have included the permissions ACCESS_COARSE_LOCATION( for N/W) and ACCESS_FINE_LOCATION (for GPS). But still the location is not updated. Regards Kumar. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---