[android-developers] Looking for an example of using state with a custom control
I am writing a custom widget and would like to use setState and the like to handle the focus and pressed states. Is there any sample code explaining how to do 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] Re: Request to device test the Android Application
Hi Niti, Have you already send me the copy? On 3月13日, 下午10时05分, nitichandra ingle nitichan...@gmail.com wrote: We have already done that part by using a KML file but before launching we need a final testing on the device. Any volunteer from US? who can do the testing as the device is ready just review it and we can launch it Thanks Regards, Niti MoFirst Solutions Pvt. Ltd. Email: [2]nitichan...@mofirst.com Tel: +91-22-28474446 [3]www.mofirst.com On Thu, Feb 26, 2009 at 6:18 AM, mscwd01 mscw...@gmail.com wrote: You can test GPS with the emulator, just send it a set of coordinates or use a KML file iirc. On Feb 25, 5:24 pm, Sena Gbeckor-Kove s...@imkon.com wrote: No Problem Good luck also S On 25 Feb 2009, at 17:19, nitichandra ingle wrote: that will b fine thanks for offering ur help though Kove, hope u resolve ur bug problem soon and yes Andrea i shall contact u personally on ur mail will let u know wat exactly you should be telling us Thanks guys. On Wed, Feb 25, 2009 at 9:40 PM, Sena Gbeckor-Kove s...@imkon.com wrote: I'm retracting my previous offer as you have somebody already and I'm sure lots of people will also offer. I have spotted a bug in one of my products and must deal with it. Sorry S On 25 Feb 2009, at 17:08, Andrea Fanfani wrote: On Wed, Feb 25, 2009 at 09:35:09PM +0530, nitichandra ingle wrote: Hi, We have been developing mobile applications for various mobile platforms and have recently started Android development. We are facing a small problem and looking for a volunteer who can just device test the application for us. Hi, put your application where i can download with G1 and i will try some test (if you need) cheers a.f. We have developed an application named Search Dine which is a restaurant search application for Android. You can see the application [1] http://www.youtube.com/watch?v=a9b-i9qWuCg Unfortunately, we were not able to device test the application. We are planning to upgrade the current application with some new features, some of them based on GPS, which are not possible to test on the emulators. These features are to enhance the user experience and increase the ease of searching the restaurants of their choice in their locality. It would be really great if anybody can volunteer for the device testing of the application, before we upload an upgrade on Android Market. This will help us develop a better application for the users, and at the same time we will have your valuable feedback on the applications. Thanks Regards, Nitichandra Ingle MoFirst Solutions Pvt. Ltd. Email: [2]nitichan...@mofirst.com Tel: +91-22-28474446 [3]www.mofirst.com References Visible links 1.http://www.youtube.com/watch?v=a9b-i9qWuCg 2. mailto:nitichan...@mofirst.com 3.http://www.mofirst.com/ -- Andrea Fanfani - a.fanfani [at] dynamicfun.com Via Cardinal Massaia 83 - 10147 Torino - Italy Tel. +39 011 23 03 642 - Fax +39 011 23 09 413 --~--~-~--~~~---~--~~ 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 capture some/all of the log file from an application?
Awesome Carter. Thanks for sharing. On Sat, Mar 14, 2009 at 5:26 AM, Carter ccjerni...@gmail.com wrote: You must request the android.permission.READ_LOGS in your Android Manifest. Then you can run the logcat from the command line on the phone, and just get a dump of the output. I recommend filtering the output for both AndroidRuntime with the error level only (to gather exceptions that crashed your app) as well as all messages from your app's log tag. See below: Process mLogcatProc = null; BufferedReader reader = null; try { mLogcatProc = Runtime.getRuntime().exec(new String[] {logcat, -d, AndroidRuntime:E [Your Log Tag Here]:V *:S }); // $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ reader = new BufferedReader(new InputStreamReader (mLogcatProc.getInputStream())); String line; final StringBuilder log = new StringBuilder(); String separator = System.getProperty(line.separator); //$NON- NLS-1$ while ((line = reader.readLine()) != null) { log.append(line); log.append(separator); } // do whatever you want with the log. I'd recommend using Intents to create an email } catch (IOException e) { ... } finally { if (reader != null) try { reader.close(); } catch (IOException e) { ... } } On Mar 13, 2:48 pm, Mike Collins mike.d.coll...@gmail.com wrote: I know how to use adb's logcat to capture the log information. I know how to use logcat inside an adb shell to display the log information. Is it possible to do this from my application on the phone? I'm trying to get a bit more context than just the call stack captured when/if my app crashes. tia, mike --~--~-~--~~~---~--~~ 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] Thumbnails
I will like some clarifications around thumbnails: 1. Whose responsibility is it to generate thumbnails - the android OS or the application developer? 2. If it is that of android OS - Can you please explain when the thumbnail generation happens and whether it is possible to have images on my SD card that don't have thumbnails generated for them. 3. It seems there are thumbnails of two kinds - micro and mini - most probably this distinction is based on the size of the thumbnail. Which one of these is generated? Are both always generated? 4. I am using a gallery to display all thumbnails. managedQuery( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, null, null, null, null); Will I end up showing duplicates? - As of now I find this doesn't result in duplicates appearing in my Gallery. --~--~-~--~~~---~--~~ 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] GridView ImageView and performance
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 image http://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AEk/VeBxiukdKzU/s72/IMG_1759.jpg 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] launch application
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 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: hi
This code .. http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob_plain;f=src/com/android/launcher/Utilities.java;hb=HEAD should help .. look for createBitmapThumbnail -Dan On Mar 12, 10:44 pm, Nithin nithi...@gmail.com wrote: HI... I want to resize the image dynamically before i set the background of the Image button... If there is any method .? 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: How to dismiss the single select dialog in AlertDialog
Thanks for your reminding me of that. JBQ. 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?? Thanks a lot for 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. 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 the dialog. * ** --~--~-~--~~~---~--~~ 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 single select dialog in AlertDialog
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?? Thanks a lot for 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 the dialog. * ** - --~--~-~--~~~---~--~~ 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: Request to device test the Android Application
Hey, I have sent you a copy please check ur inbox, you can reply me back on my company id---nitichan...@mofirst.com Thanks Regards, Niti MoFirst Solutions Pvt. Ltd. Email: [2]nitichan...@mofirst.com Tel: +91-22-28474446 [3]www.mofirst.com On Sat, Mar 14, 2009 at 1:50 PM, Nio luodali...@gmail.com wrote: Hi Niti, Have you already send me the copy? On 3月13日, 下午10时05分, nitichandra ingle nitichan...@gmail.com wrote: We have already done that part by using a KML file but before launching we need a final testing on the device. Any volunteer from US? who can do the testing as the device is ready just review it and we can launch it Thanks Regards, Niti MoFirst Solutions Pvt. Ltd. Email: [2]nitichan...@mofirst.com Tel: +91-22-28474446 [3]www.mofirst.com On Thu, Feb 26, 2009 at 6:18 AM, mscwd01 mscw...@gmail.com wrote: You can test GPS with the emulator, just send it a set of coordinates or use a KML file iirc. On Feb 25, 5:24 pm, Sena Gbeckor-Kove s...@imkon.com wrote: No Problem Good luck also S On 25 Feb 2009, at 17:19, nitichandra ingle wrote: that will b fine thanks for offering ur help though Kove, hope u resolve ur bug problem soon and yes Andrea i shall contact u personally on ur mail will let u know wat exactly you should be telling us Thanks guys. On Wed, Feb 25, 2009 at 9:40 PM, Sena Gbeckor-Kove s...@imkon.com wrote: I'm retracting my previous offer as you have somebody already and I'm sure lots of people will also offer. I have spotted a bug in one of my products and must deal with it. Sorry S On 25 Feb 2009, at 17:08, Andrea Fanfani wrote: On Wed, Feb 25, 2009 at 09:35:09PM +0530, nitichandra ingle wrote: Hi, We have been developing mobile applications for various mobile platforms and have recently started Android development. We are facing a small problem and looking for a volunteer who can just device test the application for us. Hi, put your application where i can download with G1 and i will try some test (if you need) cheers a.f. We have developed an application named Search Dine which is a restaurant search application for Android. You can see the application [1] http://www.youtube.com/watch?v=a9b-i9qWuCg Unfortunately, we were not able to device test the application. We are planning to upgrade the current application with some new features, some of them based on GPS, which are not possible to test on the emulators. These features are to enhance the user experience and increase the ease of searching the restaurants of their choice in their locality. It would be really great if anybody can volunteer for the device testing of the application, before we upload an upgrade on Android Market. This will help us develop a better application for the users, and at the same time we will have your valuable feedback on the applications. Thanks Regards, Nitichandra Ingle MoFirst Solutions Pvt. Ltd. Email: [2]nitichan...@mofirst.com Tel: +91-22-28474446 [3]www.mofirst.com References Visible links 1.http://www.youtube.com/watch?v=a9b-i9qWuCg 2. mailto:nitichan...@mofirst.com 3.http://www.mofirst.com/ -- Andrea Fanfani - a.fanfani [at] dynamicfun.com Via Cardinal Massaia 83 - 10147 Torino - Italy Tel. +39 011 23 03 642 - Fax +39 011 23 09 413 --~--~-~--~~~---~--~~ 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] Accelerometer power tied to display backlight power
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] Accessing CallLog beyond Activity
Hi! I want to get informed in a service about outgoing calls! As far as i have seen its only possible with the CallLog. I found an example like this: Cursor c = getContentResolver().query( android.provider.CallLog.Calls.CONTENT_URI, null, null, null, android.provider.CallLog.Calls.DATE + DESC); startManagingCursor(c); The problem is, that i cannot invoke getContentResolver because the class i want to use doesn´t provide it. I found out that you need a class that excents Activity to use this construct. Is it also possible in another way? 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: Accelerometer power tied to display backlight power
http://developer.android.com/reference/android/os/PowerManager.WakeLock.html 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: Current Percentage of Refunds on Android Market?
For what is worth I am seeing about 40% cancellation. About 75% of those cancellations are within 2 mins of the authorization so I assume those are mainly download issues. On Mar 13, 6:45 pm, Jon Colverson jjc1...@gmail.com wrote: On Feb 23, 2:13 am, Jon Colverson jjc1...@gmail.com wrote: On Feb 23, 1:04 am, Shane Isbell shane.isb...@gmail.com wrote: What kind of current percentage of refunds are developers typically seeing on the market? More than a 5%? For my $0.99 game (which does not have a free demo version available yet), the current refund rate for orders that are passed the refund deadline (so they have either been charged or refunded) is 43%. Obviously there have been major reliability problems with the Market this weekend and many of those people may have requested a refund because their download failed, so it's too early to draw any conclusions. I just wanted to update this thread in case someone reads this old message in the archives and is scared away from the platform by the 43% figure. In the last week my return rate has been around 11%. I have added a demo version now, so presumably that accounts for some of the difference. -- 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: Question on listing an app in Featured Apps list at Android Market?
This seems to be entirely at the discretion of the folks at Android Market. My experience is that they requested info from us (at their initiative) when they decided they *may* feature one of our apps. They do not promise. The reason given for the selection was the app's high ranking within its category. In other words, if your app achieves some level of user acceptance, they may contact you. There may very well be other avenues to get your app featured, but if these exist I am unaware of them. On Mar 13, 4:01 am, Victa victor...@gmail.com wrote: Dear fellow Android developers, My company has an app that we are very confident to make it one of the most useful Android apps, and I would really like to know how to make it to the Featured app list at Android Market. Does anyone have such experiences or knowledge, regarding the process or requirement to make it to the Featured App list? Any information would be greatly appreciated! Best, Victa --~--~-~--~~~---~--~~ 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 can I source-level debugging in unit test caes in android under eclipse with ADT?
Hi Ying, Did you ever work out how to debug using adb shell am instrument? I can't work out what the flag to allow this is. Kind regards, Gav On Mon, Feb 2, 2009 at 8:09 PM, ying lcs ying...@gmail.com wrote: By following this: http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html I can run the unit test cases either by : 1. command line ' adb shell am instrument -w com.example.android.apis.tests/android.test.InstrumentationTestRunner' 2. Go to 'Dev' and clicks 'Instrumentation' and click 'Test API Demo' But my questions now is, how can I debug my unit test cases? I try 'Debug' my APIDemoTest eclipse project and then do #2 above, it did not break at any of my breakpoints I setup. Thank you for any pointers --~--~-~--~~~---~--~~ 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 can I source-level debugging in unit test caes in android under eclipse with ADT?
http://developer.android.com/reference/android/test/InstrumentationTestRunner.html * To debug your tests, set a break point in your code and pass: -e debug true in addition to the other arguments. * Knew i'd read it somewhere! Gav On Sat, Mar 14, 2009 at 8:53 PM, Gavin Aiken gavin.ai...@imperial.ac.ukwrote: Hi Ying, Did you ever work out how to debug using adb shell am instrument? I can't work out what the flag to allow this is. Kind regards, Gav On Mon, Feb 2, 2009 at 8:09 PM, ying lcs ying...@gmail.com wrote: By following this: http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html I can run the unit test cases either by : 1. command line ' adb shell am instrument -w com.example.android.apis.tests/android.test.InstrumentationTestRunner' 2. Go to 'Dev' and clicks 'Instrumentation' and click 'Test API Demo' But my questions now is, how can I debug my unit test cases? I try 'Debug' my APIDemoTest eclipse project and then do #2 above, it did not break at any of my breakpoints I setup. Thank you for any pointers --~--~-~--~~~---~--~~ 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: change rild privilege
Hi Srinivas: Did you get further with this issue? I am also seeing the same behavior. It seems like commenting out switchuser() is the hack that works for now. But as far as I know, rild is not to be touched by ril implementations, so there must be some cleaner way of fixing this. Thanks Ajith On Mar 8, 11:12 pm, srinivas nivasn...@gmail.com wrote: Hi, id did change these options, the code in rild.c under hardware/ril/ rild/ has a fucntion switchuser(). The code in thie switches the uid of RILD to radio, but if i un comment this, ril is not working, its not even getting initialized. Thanks Srinivas On Mar 6, 5:55 pm, Mads Kristiansen mads.kristian...@nullwire.com wrote: Looking at init.rc: service ril-daemon /system/bin/rild socket rild stream 660 root radio socket rild-debug stream 660 radio system user root group radio cache inet misc So it seems to be running as root, but it seems to be possible to change it, so I'd just try it. / Mads On Fri, Mar 6, 2009 at 12:53 PM, srinivas nivasn...@gmail.com wrote: Hi, In android, Does RILD run with root privileges? If so, can we change its privileges? Please let me know how and where we can change these privileges. Any pointers will be very helpful. Thanks Srinivas- 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] MapView Zoomer behavior, how?
I'd like to implement something on a MapView that acts much like Zoomer - slides in whenever you touch the map, then fades after a bit of inactivity. MapView is closed-source, sigh... I'm sure I can figure it out, but if anyone else already has, I'd love to have some code to look at. -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: MapView Zoomer behavior, how?
Tim Bray wrote: I'd like to implement something on a MapView that acts much like Zoomer - slides in whenever you touch the map, then fades after a bit of inactivity. What are the specific feature(s) you are seeking code for? -- sliding? -- fading? -- touching? -- something else? -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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] BroadcastReceiver to log PhoneState during of my activity
Hi. I'd like to log some telephonyManager and phoneState events as onCellLocationChanged and onCallStateChanged.. during my activity. Cause i need this for more than one activity, i created an broadcastReceiver that receives broadcasts, when something special in my activities happen. But my problem is that i can't define a telephonyManager in the broadcastReceiver like in an activity. Why wont the following work in? . TelephonyManager tmanager = (TelephonyManager) getSystemService (Context.TELEPHONY_SERVICE); tmanager.listen( new PhoneStateListener(){ public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); callstate = state; } }, PhoneStateListener.LISTEN_CALL_STATE); ... Why is getSystemService(String) undefined for a broadcastReceiver? Where is my fault? Thanks for an answer. Mak --~--~-~--~~~---~--~~ 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?
By using Overlay http://developer.android.com/reference/com/google/android/maps/Overlay.html and MapController http://developer.android.com/reference/com/google/android/maps/MapController.html and possibly subclassing MapView you can create pretty much any manipulation you could wish for. On Mar 14, 5:19 pm, Tim Bray timb...@gmail.com wrote: I'd like to implement something on a MapView that acts much like Zoomer - slides in whenever you touch the map, then fades after a bit of inactivity. MapView is closed-source, sigh... I'm sure I can figure it out, but if anyone else already has, I'd love to have some code to look at. -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] How to know SMS and Contacts update?
Where SMS/Contacts are added/updated/deleted, how can I write an App- Service to know the contents change? The changes are possibly caused by App activities or SYNC activity, or any else. Any content observer or intents I should look into? Welcome your design suggestion. Kenny --~--~-~--~~~---~--~~ 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: Getting Raw Data from AMR-NB 3GP file
I played with ISO parser a bit more today, and made some progress. I made a single 3gp audio recording on my Android device and ISO parser seems to be telling me that it is 5 boxes and 3 tracks, which I don't really understand. When I print the results of IsoFile.getBoxes() : File Type Box: 3gp4 Media Data Box (length: 1968) Media Data Box (length: 18) Media Data Box (length: 16) Movie Box (length: 1676) When I print IsoFile.getTrack(long trackId) for trackId 1 and onwards until NullPointerException occurs; Track 1: 1 samples Track 2: 1 samples Track 3: 140 samples Also, the following is printed to standard error when I parse the file: Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: iods 0x696f6473 parent is: moov Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: nmhd 0x6e6d6864 parent is: minf Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: mp4s 0x6d703473 parent is: stsd Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: mpod 0x6d706f64 parent is: tref Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: nmhd 0x6e6d6864 parent is: minf Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: mp4s 0x6d703473 parent is: stsd On Mar 13, 10:39 pm, benmccann benjamin.j.mcc...@gmail.com wrote: Thanks Warwick. That's basically what I got from Wikipedia, though I'm still not sure the advantage a media container provides. It enables streaming or has some other advantage? I checked out and built the IsoParser, but can't figure out what to pass to getTrack(long trackId). I'm not familiar with ISO 14496-13 and don't see the spec online. I've tried passing 0 or 1 and just get an empty list back. -Ben On Mar 13, 7:15 pm, warwickhunter warwickhun...@gmail.com wrote: Ben, I found some Java code that can parse an mp4 or 3gp file. I am using it to extract an AMR audio stream from the file. https://contributions.coremedia.com/isobox4j/wiki/IsoParser Look at IsoFile.getTrack to get the raw AMR samples and then stick an AMR header on the front of the data. 3gp is a media container file format. It is a simplified version of the mp4 media container file format. The AMR is just a sample stream within the 3gp or mp4 container file. Warwick --~--~-~--~~~---~--~~ 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] Support from Developers
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] Keystores
Hello yes i have forgotten the password to my keystore and was wondring if there was anyway to retrieve 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] Database
I have a problem and I have no idea whats wrong. I have a database called items and it consists of the following fields: _id integer, list integer, category integer, item text. In my program I have a function called getItems: public Cursor getItems() { return db.query(items, new String[] {item}, null, null, null, null, null); } Then I have the fillItems function in another class private void fillItems() { Cursor c = db.getItems(); startManagingCursor(c); String[] from = new String[] { item }; int[] to = new int[] { R.id.shoppingitem }; SimpleCursorAdapter cItems = new SimpleCursorAdapter(this, R.layout.item, c, from, to); setListAdapter(cItems); } And this fails! I then created a debugging routine: private void fillItems() { Cursor c = db.getItems(); c.moveToFirst(); String s = c.getString(0); c.close(); Toast.makeText(this, s.toString(), Toast.LENGTH_SHORT).show(); } I am at a complete loss, any attempt to read any data fails, but yet a call to c.count returns the right number of records from the database. --~--~-~--~~~---~--~~ 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] XML parsing
Hello Android Developers! I´m trying to port a java xml-parser to android. The parser is using ElementImpl from the com.sun.org.apache.xerces.internal.dom package. This package does not exist in the android sdk, the corresponding package seems to be org.apache.harmony.xml.dom. However I can´t reach this package, I read somewhere that this package is not part of the api and that it´s an internal implmentation of the package org.w3c.dom. So I´m wondering what to use instead or how to reach the internal implementation. I hope this makes sense, I haven´t been working very much with these kind of stuff before so I might be missing something very essential. Best reggards! /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] Drawing ViewGroup content on a SurfaceView/SurfaceHolder Canvas
Hi, Is it possible to draw contents of ViewGroup on SurfaceView/ SurfaceHolder canvas? I've a control that needs to be ontop of layout (with buttons and etc) and also requires fast drawing. I wonder if implementing it as SurfaceView and then calling ViewGroup.draw(canvas) on the layout with the SurfaceHolder canvas (to avoid window hole punch issue) would be possible or not? Or, would it be better then calling invalidate on my control from a runnable inside runOnUIThread or not? Please advise. 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: Repo Client init problem ubuntu 8.10
deleted the .repo file, same problem. Please advise. thx, Dan On Mar 12, 5:49 am, Eric Chan jude...@gmail.com wrote: try to delete the .repo file at your work folder, it is hided. Best Regards Eric Chan On Thu, Mar 12, 2009 at 10:03 AM, doubleslash doublesl...@gmail.com wrote: I have the same problem. I tried curl and verified indeed the whole python script was downloaded. I installed libreadline5-dev instead of lib32readline5.dev because my computer could not find the latter. I cannot initilize repo. Can someone help? On Jan 30, 5:15 am, Bernhard wst.lordf...@gmail.com wrote: Same Problem here: i flowed the instrcutions at: http://docs.google.com/View?docid=ajdmx8kfg357_81cmpr56f6 VMware with Ubuntu 8.10 --- m...@desktop:~/eee$ repo init -u git:// android.git.kernel.org/platform/manifest.git Traceback (most recent call last): File /bin/repo, line 590, in module main(sys.argv[1:]) File /bin/repo, line 557, in main _Init(args) File /bin/repo, line 176, in _Init _CheckGitVersion() File /bin/repo, line 205, in _CheckGitVersion proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) File /usr/lib/python2.5/subprocess.py, line 594, in __init__ errread, errwrite) File /usr/lib/python2.5/subprocess.py, line 1153, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory --- --~--~-~--~~~---~--~~ 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] Market API to access app descriptions and ratings?
I'm trying to create an app that would allow me to organize my installed applications into various groups. As part of the application I would like to display information about the app including the description the developer provides as part of the market, its current rating, and the number of downloads. I am aware of the Intent to launch the market for a particular app as explained here: http://developer.android.com/guide/publishing/publishing.html#market But I don't want to launch the market for the app, I want to access the information and provide a customized display. Can anyone point me towards some documentation that explains this or provide a code snippet example of how I could accomplish this with an Intent? Thanks for you help, -rAndomPi --~--~-~--~~~---~--~~ 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] computer software
27 Feb 2009 ... Computer software, or just software is a general term used to describe a collection of computer programs, procedures and documentation that ... en.wikipedia.org/wiki/Software - 96k - Cached - Similar pages Software reviews from experts and regular people. Find out what other people think about the software you want to buy. ** web page http://www.freewebs.com/movietheatr/ ## --~--~-~--~~~---~--~~ 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] Drawing ViewGroup content on a SurfaceView/SurfaceHolder Canvas
Hi, Wanted to know if its possible to draw ViewGroup contents on SurfaceView/SurfaceHolder canvas? I'm trying to achieve fast 2D animation (using SurfaceView) alongside Android UI components on the screen. Since SurfaceView punches a hole in the app window, I tried creating SurfaceView, and inside there I created LinearLayout and added couple of controls (Button and ImageView). Now I tried calling mLayout.draw (canvas) from SurfaceHolder canvas, it doesn't render anything. Am i missing something here? I wonder if that would yield better performance then calling invalidate from Activity.runOnUiThread(). Please advice. 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] Internet Permission crashes my app
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...@app@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...@app@vmdl24072@classes.dex - /data/dalvik-cache/ d...@app@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/ dev.funnyrss.FRSS} } from null (pid=-1, uid=-1) requires android.permission.INTERNET 03-13 18:06:06.142: DEBUG/AndroidRuntime(681): Shutting down VM 03-13 18:06:06.142: WARN/dalvikvm(681): threadid=3: thread exiting with uncaught exception (group=0x4000fe68)
[android-developers] Android can't play a YouTube video I uploaded
Hi, not sure if this is the right forum to ask, but several days ago I posted a demo of our app on youtube and discovered that users can't view it from their phone. The YouTube app shows this error message: Sorry, at this time the video you requested is not available in a format that will display on your phone. Can anybody tell me why? Appreciate any help, -Ben Ps. the video causing the error is: http://www.youtube.com/watch?v=PcmEFkaIdS8 --~--~-~--~~~---~--~~ 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 single select dialog in AlertDialog
from what i can gather what you are looking for is the .setItems() method, not the setSingleChoiceItems() On Mar 14, 5:47 pm, 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?? Thanks a lot for 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 the dialog. * ** - --~--~-~--~~~---~--~~ 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] Drawing ViewGroup content on a SurfaceView/SurfaceHolder Canvas
Hi, Is it possible to draw contents of ViewGroup on SurfaceView/ SurfaceHolder canvas? I've a control that needs to be ontop of layout (with buttons and etc) and also requires fast drawing. I wonder if implementing it as SurfaceView and then calling ViewGroup.draw(canvas) on the layout with the SurfaceHolder canvas (to avoid window hole punch issue) would be possible or not? Or, would it be better then calling invalidate on my control from a runnable inside runOnUIThread or not? Please advise. 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 add a system menu item
That it will be show in every application. Like the virtual keyboard menu item ? 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: Host is unresolved error
I spent the last 3 weeks trying to solve the emulator problem with http proxy and dns. Even if I use the google IP address(http:// 74.125.19.103/) I still get Web page not available. I read the android docs, searched the internet for similar problem but in vain. All these isssues manifest themselves att work (behind a firewall). At home I don't have any problem. I tried to specify the dns servers ip through the flag (-dns-server), the dns IP address I specified with this flag I got them from (ipconfig /all), but still the emulator complain: ### WARNING: can't resolve DNS server name '171.178.3.251' ### WARNING: will use system default DNS server I would appreciate any help as I am about to giveup. Thanks. Amine. On Mar 2, 3:23 am, Rafal rafal.gradz...@gmail.com wrote: On Feb 25, 9:17 pm, Mark Murphy mmur...@commonsware.com wrote: The problem may stem from your network setup: firewalls, etc. Please review: http://developer.android.com/guide/developing/tools/emulator.html#emu... I've seen that webpage already. I removed all user data used by Android (directory ~/.android), I think the same can be done with emulator -wipe-data. After emulator restart I finally have Internet connection working correctly! I just hope it will help others with the same problem... -- Rafal --~--~-~--~~~---~--~~ 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 single select dialog in AlertDialog
Hi Vincent you can try to comment button founction and use functions as following boolean onKeyDown(int keyCode, KeyEvent event) A key was pressed down. boolean onKeyUp(int keyCode, KeyEvent event) A key was released. you could choice one of them and then add following code into it new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { setResult(RESULT_OK); finish(); } } Maybe can help you. Best regards and good luck! Mercury On 3月15日, 上午12时47分, 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?? Thanks a lot for 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. 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 the dialog. * ** - --~--~-~--~~~---~--~~ 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: developer.android.com breaks on G1 ?
You maybe access developer.android.com by Opera Mini. On Wed, Mar 4, 2009 at 3:43 PM, CKinniburgh chriskinnibu...@gmail.comwrote: I believe I have noticed this, or a similar issue on an iPhone today. The Dev guides were cut off at the bottom of the page. On Mar 3, 9:19 pm, Sen senecajust...@gmail.com wrote: Has anyone noticed that if you try to browse the Reference section of developer.android.com, it doesn't let you scroll down to the bottom of the page for a majority of the documentation? I'd like to site in bed and browse some docs... this makes it impossible... Then again I don't have the RC33 update (because I have a developer phone) so maybe it's fixed. I just think it's kinda sad... But then again maybe its strange behavior with my 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: How to dismiss the single select dialog in AlertDialog
Hi Vincent That‘s a good idea , as we know, if we build an alterDlg need following code //modify by mercury xu 20090314 in the new sdk //they don't support this function as showAlert! new AlertDialog.Builder(loginScreen.this) .setTitle(Login Data) .setMessage(Login : + usrTxt + \n+ PassWords : + pwdTxt) .setIcon(R.drawable.icon) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { setResult(RESULT_OK); finish(); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .show(); maybe you can try to change the setPositiveButton and setNegativeButton as Not visible or comment them, and add following code for keyup or keydown founction. OnClickListener as setResult(RESULT_OK); finish(); you can get some useful infomation from http://developer.android.com/reference/android/app/AlertDialog.html. boolean onKeyDownhttp://developer.android.com/reference/android/app/AlertDialog.html#onKeyDown%28int,%20android.view.KeyEvent%29(int keyCode, KeyEventhttp://developer.android.com/reference/android/view/KeyEvent.htmlevent) A key was pressed down. boolean onKeyUphttp://developer.android.com/reference/android/app/AlertDialog.html#onKeyUp%28int,%20android.view.KeyEvent%29(int keyCode, KeyEventhttp://developer.android.com/reference/android/view/KeyEvent.htmlevent) A key was released. those two founction I hope that is your need. Wish good luck and best regards! Mercury 2009/3/15 vincent Kor kor.vinc...@gmail.com 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?? Thanks a lot for 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 the dialog. * ** - --~--~-~--~~~---~--~~ 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] png + opengl
Hi, Is it possible to draw a png image and then to run opengl operations on it with android? Is this the right forum to ask this? where can i get more information on doing such stuff? 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: GridView ImageView and performance
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 the GridView or 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.html. 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: Repo Client init problem ubuntu 8.10
Sounds like you don't have git installed on your system. JBQ On Wed, Mar 11, 2009 at 7:03 PM, doubleslash doublesl...@gmail.com wrote: I have the same problem. I tried curl and verified indeed the whole python script was downloaded. I installed libreadline5-dev instead of lib32readline5.dev because my computer could not find the latter. I cannot initilize repo. Can someone help? On Jan 30, 5:15 am, Bernhard wst.lordf...@gmail.com wrote: Same Problem here: i flowed the instrcutions at:http://docs.google.com/View?docid=ajdmx8kfg357_81cmpr56f6 VMware with Ubuntu 8.10 --- m...@desktop:~/eee$ repo init -u git://android.git.kernel.org/platform/manifest.git Traceback (most recent call last): File /bin/repo, line 590, in module main(sys.argv[1:]) File /bin/repo, line 557, in main _Init(args) File /bin/repo, line 176, in _Init _CheckGitVersion() File /bin/repo, line 205, in _CheckGitVersion proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) File /usr/lib/python2.5/subprocess.py, line 594, in __init__ errread, errwrite) File /usr/lib/python2.5/subprocess.py, line 1153, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory --- -- 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: MapView Zoomer behavior, how?
On Sat, Mar 14, 2009 at 5:24 PM, Mark Murphy mmur...@commonsware.com wrote: Tim Bray wrote: I'd like to implement something on a MapView that acts much like Zoomer - slides in whenever you touch the map, then fades after a bit of inactivity. What are the specific feature(s) you are seeking code for? 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 --~--~-~--~~~---~--~~ 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
On Sat, Mar 14, 2009 at 4:29 AM, nowb ola.br...@gmail.com wrote: I´m trying to port a java xml-parser to android. Why? Android comes with a perfectly OK XML parser that seems to Just Work, and then there are some android-specific libraries that look pretty slick if you don't want to wrestle with the horrible old DOM. -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 -~--~~~~--~~--~--~---