[android-developers] Re: How to implement scrolling for custom layout?
harvinder wrote: [2] while scrolling onMeasure and onLayout rely on _scroller to get the correct scrolling positions, why do onMeasure and onLayout need to know scroller? pskink -- 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: Directory structure for project related files
Thanks Mark. I'll use the following structure: misc/ misc/market/ misc/market/screenshots/ Should be enough for most of my projects. On 14 Jan, 18:51, Mark Murphy mmur...@commonsware.com wrote: I wouldn't call it tmp/, as that would make me think of Linux and OS X /tmp, which are files that can be deleted without incident. I've used various other directory names for stuff like this (e.g., artwork/, misc/). If assets/ weren't already used by Android for another role, I would probably have settled on that. But I do like having it co-located with the rest of the project files, and in version control, for the same reasons you do. On Sat, Jan 14, 2012 at 12:44 PM, nadam a...@anyro.se wrote: All of my android projects usually have a /tmp folder where I dump all the stuff that isn't necessary for building the apk, such as psd/xcf files, the 512x512 icon, screenshots and the signed apk that will be uploaded to the market. I'm also considering adding these files to my version control just to make sure I have all the files in one place and to have them backed up. Are there any best practices for organizing such files? Or has anyone any suggestions or personal preferences to share? -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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] Adding a new custom method to the Auto Generated RPC Service
I have been trying to get my head around the IO session listed below. http://bradabrams.com/2011/05/google-io-session-overview-android-app-engine-a-developers-dream-combination/ Everything seems straight forward till I tried to create my own custom method in the auto generated CloudTasksService class. eg I want to add a method like public static boolean doesTaskExist( Task task ) { return true/false if tasks exists or not } Problem is how do I get this method to be callable from the client? On the client side the Auto generated code, when you ask the Google plugin to create the RPC service, works fine for me but now I want to add a new method manually on the server side, which I have done, but how do I modify the TaskRequest class to allow my client to call this method? The problem I see is the TaskRequest is created by the factory. Do I have to implement all the plumbing code myself which the Google plugin does automatically for the other methods. I just don't want to have to be implementing code myself which can be done automatically. I found this thread but still can't get the client to call my new method on the server side. See http://code.google.com/eclipse/docs/appeng_android_tuning.html Rgds -- 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: MVC Architecture
I dont think its worth speding too many thought on MVC at all. IMO, that term in itself is not well defined at all, its just one more of those terms that are fashionable in the software dev community for a certain time frame. I remember when it was first coined - that was back in the days of ObjectWorks Smalltalk (Smalltalk being an object- oriented programming language), somwhere in the late 80ies or early 90ies, but it meant something quite different (some detail of the ObjectWorks UI library) from what people think of when hearing it today. Later, it was applied to Java Servlet programming in a way that made me shudder all over (think Struts). A better way is to simply follow the ideal of separation of concerns. Every component of the system should know and do just one well-defined thing. Strong cohesion, weak coupling. Never copy code, avoid redundancies like hell. My2cts 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: Logcat is broken every time phone is unplugged
Eclipse Indigo SR1, Windows 7 Home Premium 64bit. When I reconnect, I always have to reclick on the device in the Devices view (of the DDMS perspective). However, in the latest version of ADT, I have a similar problem, where clearing the log output results in subsequent log messages not appearing at all. I need to click around a bit (on other filters) to get it to kick back in again. -- 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 implement scrolling for custom layout?
@ pskink The CustomView may have hundreds of children and it is not appropriate to create all the views and keep in the memory. So when the scrolling starts, to get the latest position displayed (with correct views) on the screen, I get the latest scroll position in onMeasure and onLayout and set the children appropriately. -- 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: Logcat is broken every time phone is unplugged
same here On 15 Jan., 11:50, Mark Carter mjc1...@googlemail.com wrote: Eclipse Indigo SR1, Windows 7 Home Premium 64bit. When I reconnect, I always have to reclick on the device in the Devices view (of the DDMS perspective). However, in the latest version of ADT, I have a similar problem, where clearing the log output results in subsequent log messages not appearing at all. I need to click around a bit (on other filters) to get it to kick back in again. -- 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: Continuously running Service does not run continuously
I appreciate your answers very much. I am currently experimenting with the WakeLock and the AlarmManager, that were great hints ! Just a few words concerning the use case: I am writing an educational app for the barometer (contained in the Nexus Prime). Surely it does not make sense to measure the atmospheric pressure once a second or once a minute. Probably once every 10-60 minutes is more appropriate in everyday life. For these cases, the AlarmManager migth be the right choice. But in some cases, it might be interesting to see more frequent updates. Think of balloonists, glider pilots, sky divers. To address these as well, I need to test with extreme settings like measuring once a second. For an hour or a few hours it might be ok to keep the CPU running if the user is aware of it and explicitly turned on the WakeLock-option. In all other cases I definetely agree with you and want to warn other developers, battery really drains fast :-o Thanks again ! On 14 Jan., 20:17, Dianne Hackborn hack...@android.com wrote: And to really really re-iterate -- we are still only talking about non-production code. On Sat, Jan 14, 2012 at 11:16 AM, Dianne Hackborn hack...@android.comwrote: Also unless you make your service foreground, its process *will* be killed every now and then while it is in the background. And you can use the AlarmManager to avoid holding a wake lock the entire time, but a rate of once a second is way to fast to be appropriate for that -- scheduling Alarms should not be in terms of anything quicker than once a minute and really more like once every 5 minutes or more. On Sat, Jan 14, 2012 at 11:00 AM, Kristopher Micinski krismicin...@gmail.com wrote: The way you should read mark's response here is: Don't keep the cpu running, this is a dumb idea, if you're really doing this it probably indicates there is something wrong with your design If this is *strictly* for development, and you'll completely strip out the code when you release your app, it would probably be fine. kris On Sat, Jan 14, 2012 at 1:05 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jan 14, 2012 at 1:00 PM, Dirk b...@informatik.uni-hamburg.de wrote: Is there a way to control the device's sleep phases programmatically, so I can make sure the logging really takes place ? Use a WakeLock to keep the CPU running. Your users may not like you much, though. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to implement scrolling for custom layout?
harvinder wrote: @ pskink The CustomView may have hundreds of children and it is not appropriate to create all the views and keep in the memory. So when the scrolling starts, to get the latest position displayed (with correct views) on the screen, I get the latest scroll position in onMeasure and onLayout and set the children appropriately. so after the fling you have to create/deactivate dozens of child views? Does it really pay off to keep in memory only those children that are visible in the scroll window? pskink -- 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] compress frame to QVGA from onPreviewFrame??
hi, I am getting the frames from onPreviewFrame method, and convert these frames to jpeg and send it on a network. but i want the size of each image to QVGA that is 320x240. Please tell me what is the right way to convert the onPreviewFrame to QVGA, but i am doing like add 320 and 240 as a parameters of Rect , Here is my code. Is this give me the result that i want. thanks public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format ==ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h,null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); // Apply QVGA dimensions ByteArrayOutputStream output_stream = newByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); Thanks and Regards umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: MVC Architecture
I think MVVM is more suitable for Android. That is widely use in WPF. On Sun, Jan 15, 2012 at 8:35 PM, sell.bergstr sell.bergst...@googlemail.com wrote: I dont think its worth speding too many thought on MVC at all. IMO, that term in itself is not well defined at all, its just one more of those terms that are fashionable in the software dev community for a certain time frame. I remember when it was first coined - that was back in the days of ObjectWorks Smalltalk (Smalltalk being an object- oriented programming language), somwhere in the late 80ies or early 90ies, but it meant something quite different (some detail of the ObjectWorks UI library) from what people think of when hearing it today. Later, it was applied to Java Servlet programming in a way that made me shudder all over (think Struts). A better way is to simply follow the ideal of separation of concerns. Every component of the system should know and do just one well-defined thing. Strong cohesion, weak coupling. Never copy code, avoid redundancies like hell. My2cts 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 -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 implement scrolling for custom layout?
well there are hundreds of view and I trust keeping *hundreds* of view in memory is not the wise thing to do. I believe the listview implementation in the android may also be reusing the views. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AwesomePagerAdapter initial position
Since awesomePager is a ViewPager you can call awesomePager.setCurrentItem(position). http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setCurrentItem(int) http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setCurrentItem(int, boolean) Hope it helps, Yuvi On Sat, Jan 14, 2012 at 10:01 AM, sheamuso ohall...@gmail.com wrote: Does anyone know how to set the initial position of the AwesomePagerAdapter in the compatibility package. I've been trying to use setPrimaryItem but don't know how, see my feeble attempt below but don't know what parameters to pass in awesomeAdapter = new AwesomePagerAdapter(); awesomePager = (ViewPager) findViewById(R.id.awesomepager); awesomePager.setAdapter(awesomeAdapter); awesomeAdapter.setPrimaryItem(null, pos, null); private class AwesomePagerAdapter extends PagerAdapter { @Override public void setPrimaryItem(View collection, int position, Object object) { Object primary = instantiateItem(collection, position); super.setPrimaryItem(collection, position, object); } ... -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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 implement scrolling for custom layout?
harvinder wrote: well there are hundreds of view and I trust keeping *hundreds* of view in memory is not the wise thing to do. I believe the listview implementation in the android may also be reusing the views. yes, listview uses this aproach, so maybe its wise to look at sources of abslistview.java and/or adaptervuew.java pskink -- 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] achartengine time chart graph
i'm new in android and i want to use achartengine to implement time chart that represent the daily outgoing call durations from call log does any one know how can i do this and what should i do Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android fragmentation study
On Sun, Jan 15, 2012 at 2:44 AM, Dusk Jockeys Android Apps duskjock...@gmail.com wrote: My point was more that although there is no explicit law requiring home screens to support animations, from my reading of the CTD there is also no explicit law requiring views in normal Activities to support animations, but I think there would be a lot of complaints from developers if those kind of animations suddenly stopped working in the latest handsets. You are writing your own activity. You are not writing the home screen. If you were to publish your RemoteViews to a non-home-screen activity of a third-party app, the same anything goes environment would apply. Could a device manufacturer change the Android framework such that no animations worked anywhere? Yes. That should fail the CTS, not necessarily the CDD. The CDD leans more towards hardware stuff. If it doesn't fail the CTS, that's a hole in the CTS. But having said that I realise I am on shaky ground here... as we are talking about homescreen apps which are not part of the framework per se. More importantly, they are written by everyone from major device manufacturers to solo developers. However, from the user's point of view (who I would guess in 99% of cases use the Home screen which came with their phone), it is part of the framework, they would naturally think it is due to that phones implementation of Android, rather than understanding it is the Home screen app itself. This is an issue of user education as much as anything. Don't get me wrong. IMHO, Samsung screwed up. I would think the same thing of any other home screen implementer with the same limitation, **unless such animation disabling was a specific feature of that home screen**. And that caveat is the rub. Just as you don't like it when home screen implementers block app widget layout animations, a home screen implementer would not like it if they were *forced* to display whatever a RemoteViews had in it. From Google's standpoint, it's a whack-a-mole situation -- one developer's solution becomes another developer's problem. This is reminiscent of developers complaining about how such-and-so IME does not honor certain android:inputType or android:imeOptions values. IME developers can do what they want, and users can choose what IME to run. Home screen developers can do what they want, and users can choose what home screen to run. We need to teach users that IMEs and home screens are replaceable, just as we needed to teach Windows users in 1995 that they could, indeed, run a different Web browser than IE. That will take time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Send Email without user input
Hi, My requirement is to build an app that will send email to user at regular intervals but without any input from the user. Is there any way to do that? I am aware of the javamail-android available at the following link but would like to know of any other way (perhaps something mentioned in the official android documentation). http://code.google.com/p/javamail-android/ I am bit sceptical to use javamail-android because the source code for the three jar files namely additionnal.jar, mail.jar, activation.jar is not available. Thanks, Ambi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Send Email without user input
On Sun, Jan 15, 2012 at 8:59 AM, ambi ambi1...@gmail.com wrote: My requirement is to build an app that will send email to user at regular intervals but without any input from the user. Is there any way to do that? Use JavaMail or another email API. Or, do the mailing from some Web service that you host, and have your app talk to that Web service. I am aware of the javamail-android available at the following link but would like to know of any other way (perhaps something mentioned in the official android documentation). http://code.google.com/p/javamail-android/ I am bit sceptical to use javamail-android because the source code for the three jar files namely additionnal.jar, mail.jar, activation.jar is not available. JavaMail source code is most certainly available. Moreover, it is at the link you supplied in your email. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Send Email without user input
A particular device may have an Email application different from the one in Android sources (e.g. HTCs and the new Samsungs come to mind). The user may install any of the third-party Email clients (K9, ProfiMail, Mail Droid, Enhanced Email, Yahoo Mail, Yandex Mail, ) The user may not have any email accounts configured. The user may not want that email sent in the first place. The user may not want to enter his email credentials into your application. In short, your options are: 1) Use the standard intent to let the user bring up his preferred email client, where the user will decide if he's going to send that email or not 2) Use some kind of email library, most likely not with the user's credentials, but some others (e.g. a Gmail account you will set up for this purpose). JavaMail comes from enterprise Java, but I understand there are successful ports to Android. Do some more Googling, they're out there. Or you could learn a bit about SMTP and write some code yourself - the S in SMTP stands for Simple :) -- Kostya 15 января 2012 г. 17:59 пользователь ambi ambi1...@gmail.com написал: Hi, My requirement is to build an app that will send email to user at regular intervals but without any input from the user. Is there any way to do that? I am aware of the javamail-android available at the following link but would like to know of any other way (perhaps something mentioned in the official android documentation). http://code.google.com/p/javamail-android/ I am bit sceptical to use javamail-android because the source code for the three jar files namely additionnal.jar, mail.jar, activation.jar is not available. Thanks, Ambi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send Email without user input
Thanks Mark. You mean the source code for the three jar files additionnal.jar, mail.jar, activation.jar is available from the following link. I tried the download tab and it just has the jar files for download (on expanding these jar files I could only see the class file). Perhaps I should try the svn checkout? http://code.google.com/p/javamail-android/ Thanks, Ambi. On Jan 15, 2:04 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 15, 2012 at 8:59 AM, ambi ambi1...@gmail.com wrote: My requirement is to build an app that will send email to user at regular intervals but without any input from the user. Is there any way to do that? Use JavaMail or another email API. Or, do the mailing from some Web service that you host, and have your app talk to that Web service. I am aware of the javamail-android available at the following link but would like to know of any other way (perhaps something mentioned in the official android documentation). http://code.google.com/p/javamail-android/ I am bit sceptical to use javamail-android because the source code for the three jar files namely additionnal.jar, mail.jar, activation.jar is not available. JavaMail source code is most certainly available. Moreover, it is at the link you supplied in your email. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Send Email without user input
On Sun, Jan 15, 2012 at 9:15 AM, ambi ambi1...@gmail.com wrote: Thanks Mark. You mean the source code for the three jar files additionnal.jar, mail.jar, activation.jar is available from the following link. I tried the download tab and it just has the jar files for download (on expanding these jar files I could only see the class file). Perhaps I should try the svn checkout? http://code.google.com/p/javamail-android/ Click the Source button. Then click Browse, or go through a checkout process. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send Email without user input
Thanks mark, I got the source code now. Regards, Ambi. On Jan 15, 2:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 15, 2012 at 9:15 AM, ambi ambi1...@gmail.com wrote: Thanks Mark. You mean the source code for the three jar files additionnal.jar, mail.jar, activation.jar is available from the following link. I tried the download tab and it just has the jar files for download (on expanding these jar files I could only see the class file). Perhaps I should try the svn checkout? http://code.google.com/p/javamail-android/ Click the Source button. Then click Browse, or go through a checkout process. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Read Heap from DDMS
Is there a resource or link that helps you read what is going on with your app I'm plagued by an out of memory error and I have no idea why TypeCount Total Size Smallest LargestMedian free 929 927.031 KB 16 B 554.344 KB 96 B data object33,460 1.220 MB 16 B 1,106 B 32 B class object2,703 782.062 KB 168 B 38.180 KB 168 B 1-byte array (byte[], boolean[]) 703 8.212 MB 24 B2.039 MB 264 B 2-byte array (short[], char[]) 10,165 653.930 KB 24 B 28.023 KB 48 B 4-byte array (object[], int[], float[]) 5,123 327.000 KB24 B 16.023 KB 40 B 8-byte array (long[], double[])16 5.922 KB 24 B 4.000 KB 128 B non-Java object 129 5.930 KB 24 B 464 B 40 B How can I trace this to an actual variable My main concerns are the 1-byte array esp. the 2.039 MB I'm sure it is an Image or Bitmap I just don't know which one Is there anyway to tag this to a specific variable ? 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
Re: [android-developers] Read Heap from DDMS
On Sun, Jan 15, 2012 at 11:06 AM, New Developer secur...@isscp.com wrote: Is there a resource or link that helps you read what is going on with your app I'm plagued by an out of memory error and I have no idea why Type Count Total Size Smallest Largest Median free 929 927.031 KB 16 B 554.344 KB 96 B data object 33,460 1.220 MB 16 B 1,106 B 32 B class object 2,703 782.062 KB 168 B 38.180 KB 168 B 1-byte array (byte[], boolean[]) 703 8.212 MB 24 B 2.039 MB 264 B 2-byte array (short[], char[]) 10,165 653.930 KB 24 B 28.023 KB 48 B 4-byte array (object[], int[], float[]) 5,123 327.000 KB 24 B 16.023 KB 40 B 8-byte array (long[], double[]) 16 5.922 KB 24 B 4.000 KB 128 B non-Java object 129 5.930 KB 24 B 464 B 40 B How can I trace this to an actual variable Dump the heap and examine it using the Eclipse MAT plugin: http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html My main concerns are the 1-byte array esp. the 2.039 MB I'm sure it is an Image or Bitmap I just don't know which one I strongly encourage you to dump the heap in Honeycomb or Ice Cream Sandwich then, as they do a much better job than do earlier versions of Android of reporting bitmap memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android and XML
Hello, I have been reading up on how to use XML from within android. Apparently the interfaces are SAX which allows callbacks to be called when each element is processed, DOM which allows in-memory tree representations of XML, JAXP which can be used to validate XML given an XML Schema, and JAXB which is available but takes up 8MB or so of space and would be used to convert back and forth between XML and some annotated Java classes automatically at the aforementioned disk storage price. Apparently JAXB used to be used to validate but since JAXB 2.0 that function has been delegate to JAXB. Apparently there are three DOM levels, and Android's JDK supports level 2: http://developer.android.com/reference/org/w3c/dom/package-summary.html plus the load/store facilities available in DOM Level 3 which AFAIK are used to serialize/deserialize XML instances to and from memory? http://developer.android.com/reference/org/w3c/dom/ls/package-summary.html Then there are a variety of other XML APIs which do not come with Android the most nototrious being xerces from apache foundation which used to not be bundled with jdk. Since jdk 5 it is, but apparently people don't use it because java has its own DOM API. Why would you want to use it when java bundles a DOM API already. What more can xerces offer? And what more does the full xerces implementation offer if you were to add the xerces jar file to your APK? Anyways, in the end I decided I am going to use DOM to read my files and simply throw an exception if what I receive does not conform to what I expect. I also want to build my XML files with DOM prior to sending the XML over a network. I'm not clear on the following: where do I find good docs on DOM for Android. Is the API all there is available? Several books such as the following: http://www.amazon.com/Java-XML-Brett-McLaughlin/dp/059610149X/ref=sr_1_1?ie=UTF8qid=1326644460sr=8-1 seem to be somewhat obsolete and document xerces or obsolete APIs/issues (such as org.apache.xerces.parsers.DOMParser which now seems to be replaced with: import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; Anyways, any pointers to tutorials on using DOM on Android to process and build XML using DOM welcome. One useful link I found was the following: http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/ Thanks for your input, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Regarding screen orientation changes
If you control the other application (Application X), then when you launch it pass in another value in the extra data part, and don't specify the screen orientation, but, if the intent has this other value set correctly then it is forced to landscape mode. So, basically, the default is to not force the orientation, but give a way for this other application to be able to request landscape mode. To make it more flexible, you could just allow programs to request landscape or portrait mode, if you want it more flexible. On Sat, Jan 14, 2012 at 11:29 PM, Jay SB jsb.andr...@gmail.com wrote: James, Thanks for your response. I am working on Email application, my requirement is to show all the screen orientation only in landscape mode irrespective of device orientation, only when it launched through one particular application (Application X). If i launch the Email app through some other applications (Application y and z), it should always follow the device orientation. So, to satisfy the above requirement, when Email application is launched from Application x, i have used the API setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) to change the orientation. When my device is PORTRAIT mode, and when its launched through Application X, all the Email screens are initially launched in PORTRAIT (Device orientation )mode and then its switching back to LANDSCAPE mode (because of the above API). How to avoid this screen flickering ? Hope you will understand my problem. Regards, Jayantheesh On Sat, Jan 14, 2012 at 9:51 PM, James Black planiturth...@gmail.comwrote: It sounds like your requirements, or understanding is off, so you may want to check it out. The confusion is, if you automatically switch to landscape always then set it in the manifest. If you start in portrait mode then why switch them? Or what should happen differently on this orientation? On Jan 14, 2012 9:20 PM, Jay SB jsb.andr...@gmail.com wrote: Hi All, As far as i know, screen orientation can be changed by two ways, one is through Manifesto file and other is through code by setRequestedOrientation API. My requirement is to show the screen orientation in Landscape mode, only when it launched through one particular application. To satisfy the above requirement i cannot use the first solution, i.e.. setting the screen orientation through Manifesto file, since it always launch the activity in the specified orientation. So, now I am forced to take up the second solution, i.e.. setting the orientation through code by calling setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE). I am facing a problem with this approach, if my tablet is in LANDSCAPE mode, this solution works perfectly fine. But when my device is in PORTRAIT mode, initially it launches the activity in PORTRAIT mode and immediately changes the orientation to LANDSCAPE mode. How this flickering can be avoided ? Please through some light to handle this requirement. Manifesto file snippet: activity android:name=.activity.setup.AccountSetup android:label=@string/account_setup_title android:theme=@style/AccountSetup android:configChanges=orientation|keyboardHidden /activity Code snippet: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (App.SETUP_WIZARD_FLOW == true) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE); } setContentView(R.layout.main); } Regards, Jayantheesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- You received this message because you are subscribed to the
Re: [android-developers] Re: Package name
If the application is free this is a good choice, but if it is something that people paid for, then forcing them to pay again just because you change the package name would be really annoying, so for a paid version supporting both may be better. On Sat, Jan 14, 2012 at 11:54 PM, Ricardo Amaral mas...@ricardoamaral.netwrote: No, Market doesn't allow that. Here's what you could do instead: Publish your app under the new company/package name and wait for it to be live. Once that's done, publish an update to your older app. That update should simply change the app into redirecting users to the new app on the Market and politely apologize for the inconvenience and ask them to remove the old app after installing the new one. You could also detect the old app when running the new one and, if found, suggest the user to uninstall it. You need to be careful though with the user data though. You should provide means for them to migrate that data from the old app to the new one *BEFORE UNINSTALLING IT* or they'll lose everything. Maybe an export/import procedure will do the job. If you do it right, it only takes a few seconds for them to export all the data from the old app and import it into the new one. -- 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 -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
You may want to ask this on stackoverflow, but, more importantly, DOM takes up more memory for the XML file, so why use that on a mobile device with less memory? Do you have a business need to prefer DOM over just processing the file? If not, then you may want to rethink what you are asking about. On Sun, Jan 15, 2012 at 11:25 AM, John Goche johngoch...@googlemail.comwrote: Hello, I have been reading up on how to use XML from within android. Apparently the interfaces are SAX which allows callbacks to be called when each element is processed, DOM which allows in-memory tree representations of XML, JAXP which can be used to validate XML given an XML Schema, and JAXB which is available but takes up 8MB or so of space and would be used to convert back and forth between XML and some annotated Java classes automatically at the aforementioned disk storage price. Apparently JAXB used to be used to validate but since JAXB 2.0 that function has been delegate to JAXB. Apparently there are three DOM levels, and Android's JDK supports level 2: http://developer.android.com/reference/org/w3c/dom/package-summary.html plus the load/store facilities available in DOM Level 3 which AFAIK are used to serialize/deserialize XML instances to and from memory? http://developer.android.com/reference/org/w3c/dom/ls/package-summary.html Then there are a variety of other XML APIs which do not come with Android the most nototrious being xerces from apache foundation which used to not be bundled with jdk. Since jdk 5 it is, but apparently people don't use it because java has its own DOM API. Why would you want to use it when java bundles a DOM API already. What more can xerces offer? And what more does the full xerces implementation offer if you were to add the xerces jar file to your APK? Anyways, in the end I decided I am going to use DOM to read my files and simply throw an exception if what I receive does not conform to what I expect. I also want to build my XML files with DOM prior to sending the XML over a network. I'm not clear on the following: where do I find good docs on DOM for Android. Is the API all there is available? Several books such as the following: http://www.amazon.com/Java-XML-Brett-McLaughlin/dp/059610149X/ref=sr_1_1?ie=UTF8qid=1326644460sr=8-1 seem to be somewhat obsolete and document xerces or obsolete APIs/issues (such as org.apache.xerces.parsers.DOMParser which now seems to be replaced with: import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; Anyways, any pointers to tutorials on using DOM on Android to process and build XML using DOM welcome. One useful link I found was the following: http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/ Thanks for your input, John Goche -- 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 -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- 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] send notification from service to activity
Hi In my application when I press a button then it starts downloading in a background service. Its a huge file to download. Though I close my application it continues downloading in service. I want to notify in my activity when download finish. Please note the cases: These cases after starting download. 1. If I close my application it stills downloading and after some time it finish. I don't need to notify the activity because the activity in not visible. 2. If I close my application it stills downloading and after some time I starts the activity. But download is not finish.I am in activity and after a while download is finish. I need to notify the activity because the activity is visible now. How implement this feature in android ? Dont forget to share any idea. Regards Goutom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
On Sun, Jan 15, 2012 at 6:06 PM, James Black planiturth...@gmail.comwrote: You may want to ask this on stackoverflow, but, more importantly, DOM takes up more memory for the XML file, so why use that on a mobile device with less memory? Do you have a business need to prefer DOM over just processing the file? If not, then you may want to rethink what you are asking about. Well, my XML files are going to be varied but small in size, so memory shouldn't be a problem. I was wondering about the availability of good tutorials on Java XML DOM though. Regards, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
I was wondering about the availability of good tutorials on Java XML DOM though. This shouldn't be your concern, there is a vast amount of literature (in the form of references, tutorials, etc...) on both XML, and DOM, Android also has an XmlPullParser that you might want to look into, I'm sure there are a fully sufficient number of tutorials on that as well. In general your choices in android are these three: dom, sax, and xmlpullparser, plus whatever off the shelf parser you want to grab. The stigma with dom is that there's a large runtime overhead. Even if it's *small enough* you shouldn't use it (dom) just because it's slightly easier to learn, but there might be appropriate reasons for it depending on what you need... Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] send notification from service to activity
http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html And a sample app demonstrating what that blog post discusses can be found here: https://github.com/commonsguy/cw-advandroid/tree/master/Broadcast/Ordered On Sun, Jan 15, 2012 at 12:36 PM, Goutom goutom.sust@gmail.com wrote: Hi In my application when I press a button then it starts downloading in a background service. Its a huge file to download. Though I close my application it continues downloading in service. I want to notify in my activity when download finish. Please note the cases: These cases after starting download. 1. If I close my application it stills downloading and after some time it finish. I don't need to notify the activity because the activity in not visible. 2. If I close my application it stills downloading and after some time I starts the activity. But download is not finish.I am in activity and after a while download is finish. I need to notify the activity because the activity is visible now. How implement this feature in android ? Dont forget to share any idea. Regards Goutom -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
On Sun, Jan 15, 2012 at 6:47 PM, Kristopher Micinski krismicin...@gmail.com wrote: I was wondering about the availability of good tutorials on Java XML DOM though. This shouldn't be your concern, there is a vast amount of literature (in the form of references, tutorials, etc...) on both XML, and DOM, Android also has an XmlPullParser that you might want to look into, I'm sure there are a fully sufficient number of tutorials on that as well. In general your choices in android are these three: dom, sax, and xmlpullparser, plus whatever off the shelf parser you want to grab. The stigma with dom is that there's a large runtime overhead. Even if it's *small enough* you shouldn't use it (dom) just because it's slightly easier to learn, but there might be appropriate reasons for it depending on what you need... Yes, for instance the fact that with DOM you can not only parse but also build XML models in memory. I would say both are just as easy to learn, but with DOM I can also presumably validate my document once it's in memory. Maybe I can do that with SAX as well, not sure. Anyways the following book has an up-to-date chapter on Java and XML http://www.amazon.com/Beginning-Java-7-Apress/dp/1430239093/ref=sr_1_7?ie=UTF8qid=1326650427sr=8-7 even though android AFAIK uses Java 6 this reference should be good enough for my purposes. Regards, John Goche -- 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] Android Service Activity demo code
Hi, I'm new in Android, need to work on Service Activity, Any demo code or link for Guidance. Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
Yes, for instance the fact that with DOM you can not only parse but also build XML models in memory. I would say both are just as easy to learn, but with DOM I can also presumably validate my document once it's in memory. Maybe I can do that with SAX as well, not sure. Did you try googling validating with sax and see the oracle docs that come up :-) Anyways the following book has an up-to-date chapter on Java and XML http://www.amazon.com/Beginning-Java-7-Apress/dp/1430239093/ref=sr_1_7?ie=UTF8qid=1326650427sr=8-7 even though android AFAIK uses Java 6 this reference should be good enough for my purposes. I would highly doubt that there are significant api differences in xml parsers between java 6 and 7.. kris -- 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] Multi Language Tool
Hi, I need to add multi-language capabilities to an Android App I'm developing, and I've been thinking about building a tool to parse my strings.xml file, and automatically add the translations for the translations I want (using the Google Translate API). Anyone know if something like this already exists? Sincerely, Brad Gies -- bgies.com maxhomevalue.com idailythought.com greenfarminvest.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Multi Language Tool
I think MOTODEV Studio for Android supports this. On Sun, Jan 15, 2012 at 1:24 PM, Brad Gies rbg...@gmail.com wrote: Hi, I need to add multi-language capabilities to an Android App I'm developing, and I've been thinking about building a tool to parse my strings.xml file, and automatically add the translations for the translations I want (using the Google Translate API). Anyone know if something like this already exists? Sincerely, Brad Gies -- bgies.com maxhomevalue.com idailythought.com greenfarminvest.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
On Sun, Jan 15, 2012 at 7:17 PM, Kristopher Micinski krismicin...@gmail.com wrote: I would highly doubt that there are significant api differences in xml parsers between java 6 and 7.. kris Thanks. Another API for XML which I have not mentioned is StAX (the streaming API for XML). I guess that would be another alternative, which, presumably, being part of java 6 also works on android? Regards, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android and XML
On Sun, Jan 15, 2012 at 1:32 PM, John Goche johngoch...@googlemail.com wrote: Another API for XML which I have not mentioned is StAX (the streaming API for XML). I guess that would be another alternative, which, presumably, being part of java 6 also works on android? Android does not support StAX, last I checked. Just because something is in Java 6 does NOT mean that Android supports it. The Android java.* and javax.* class libraries represent a subset of Java 6 SE. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Send Email without user input
Hi, I am now using javamail-android but getting the javax.mail.AuthenticationFailedException error. I have rechecked username, password and all seem to be correct. Can someone please give hint to resolve the javax.mail.AuthenticationFailedException exception? ps: I am sorry if this may not be appropriate forum to discuss javamail-android. Thanks. Ambi. On Jan 15, 3:06 pm, ambi ambi1...@gmail.com wrote: Thanks mark, I got the source code now. Regards, Ambi. On Jan 15, 2:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 15, 2012 at 9:15 AM, ambi ambi1...@gmail.com wrote: Thanks Mark. You mean the source code for the three jar files additionnal.jar, mail.jar, activation.jar is available from the following link. I tried the download tab and it just has the jar files for download (on expanding these jar files I could only see the class file). Perhaps I should try the svn checkout? http://code.google.com/p/javamail-android/ Click the Source button. Then click Browse, or go through a checkout process. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hardware accleration slow down every Canvas app. Why?
Hi all, I'm forcing hardware acceleration on my galaxy Nexus. Every apps that uses canvas are slowed down when this acceleration is enabled. Why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Send Email without user input
I suggest you use StackOverflow, with an question tagged 'javamail'. On Sun, Jan 15, 2012 at 1:55 PM, ambi ambi1...@gmail.com wrote: Hi, I am now using javamail-android but getting the javax.mail.AuthenticationFailedException error. I have rechecked username, password and all seem to be correct. Can someone please give hint to resolve the javax.mail.AuthenticationFailedException exception? ps: I am sorry if this may not be appropriate forum to discuss javamail-android. Thanks. Ambi. On Jan 15, 3:06 pm, ambi ambi1...@gmail.com wrote: Thanks mark, I got the source code now. Regards, Ambi. On Jan 15, 2:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 15, 2012 at 9:15 AM, ambi ambi1...@gmail.com wrote: Thanks Mark. You mean the source code for the three jar files additionnal.jar, mail.jar, activation.jar is available from the following link. I tried the download tab and it just has the jar files for download (on expanding these jar files I could only see the class file). Perhaps I should try the svn checkout? http://code.google.com/p/javamail-android/ Click the Source button. Then click Browse, or go through a checkout process. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Package name
Thanks. I think i have to live with what the current name is then. :( On Sun, Jan 15, 2012 at 9:01 AM, James Black planiturth...@gmail.com wrote: If the application is free this is a good choice, but if it is something that people paid for, then forcing them to pay again just because you change the package name would be really annoying, so for a paid version supporting both may be better. On Sat, Jan 14, 2012 at 11:54 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: No, Market doesn't allow that. Here's what you could do instead: Publish your app under the new company/package name and wait for it to be live. Once that's done, publish an update to your older app. That update should simply change the app into redirecting users to the new app on the Market and politely apologize for the inconvenience and ask them to remove the old app after installing the new one. You could also detect the old app when running the new one and, if found, suggest the user to uninstall it. You need to be careful though with the user data though. You should provide means for them to migrate that data from the old app to the new one BEFORE UNINSTALLING IT or they'll lose everything. Maybe an export/import procedure will do the job. If you do it right, it only takes a few seconds for them to export all the data from the old app and import it into the new one. -- 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 -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloskey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase frame per second ??
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network, but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { // 10 e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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] Android, auto complete with email contacts.
Hi, I have an EditText, I would like to activate autocomplete on it. Something that help user to autocomplete with the correct email address. Is there some code snippet I can read on how to do it? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hardware accleration slow down every Canvas app. Why?
Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hardware accleration slow down every Canvas app. Why?
This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android, auto complete with email contacts.
What it takes is: - Extending AutoCompleteTextView or MultiAutoCompleteTextView - Providing a suitable adapter Take a look at the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3.7_r1/com/android/email/activity/AddressTextView.java?av=f Or else take a look at K-9, you can also browse its source repository online. -- Kostya 16 января 2012 г. 1:34 пользователь sblantipodi perini.dav...@dpsoftware.org написал: Hi, I have an EditText, I would like to activate autocomplete on it. Something that help user to autocomplete with the correct email address. Is there some code snippet I can read on how to do it? 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 -- 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] Test apps with usb to phone - works if phone has bad ESN?
So far I've been testing apps during dev using emulator. I understand I can test directly on an android phone attached by USB. I'd like to try. In order to get a few cheap phones for testing I am looking at used units with bad ESN. Will they work for testing by USB to my development PC? They won't be on any service plan and, of course, only testing apps that run with no connection to a service. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?
All the standard apps use hardware acceleration and we've measured large performance improvements. What apps exactly are slower using hardware acceleration? On Sun, Jan 15, 2012 at 1:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Read Heap from DDMS
Thanks MAT shows the following The class*android.content.res.Resources*, loaded by*system class loader*, occupies*2,805,432 (26.30%)*bytes. The memory is accumulated in one instance of*java.lang.Object[]*loaded by*system class loader*. *Keywords* java.lang.Object[] android.content.res.Resources Clicking Details Class Name Shallow HeapRetained Heap * java.lang.Object[509] @ 0x40db12d8 mat://object/0x40db12d8 2,048 2,797,424 \ * *mValues*android.util.LongSparseArray @ 0x40ac0a00 mat://object/0x40ac0a00 24 2,801,536 .\ * *sPreloadedDrawables*class android.content.res.Resources @ 0x40ac0700 mat://object/0x40ac0700*Unknown, System Class* 48 2,805,432 One instance of*android.graphics.Bitmap*loaded by*system class loader*occupies*2,138,456 (20.05%)*bytes. The memory is accumulated in one instance of*byte[]*loaded by*system class loader*. *Keywords* android.graphics.Bitmap byte[] Clicking Details Class Name Shallow HeapRetained Heap * byte[2138400] @ 0x4134ce98 ... mat://object/0x4134ce98 2,138,416 2,138,416 \ * *mBuffer*android.graphics.Bitmap @ 0x412599e8 mat://object/0x412599e8 40 2,138,456 .\ * *mBitmap*android.graphics.drawable.BitmapDrawable @ 0x4125cee8 mat://object/0x4125cee8 64 136 ..\ * *mBGDrawable*android.widget.FrameLayout @ 0x411e5230 mat://object/0x411e5230 464 1,072 ...\ * *[0]*android.view.View[12] @ 0x41234ea0 mat://object/0x41234ea0 64 24,168 I'm not seeing a variable name, Is there anyway to find What variables or Which Bitmap this is that is 2M in size ? Thanks again On 01/15/2012 11:13 AM, Mark Murphy wrote: On Sun, Jan 15, 2012 at 11:06 AM, New Developersecur...@isscp.com wrote: Is there a resource or link that helps you read what is going on with your app I'm plagued by an out of memory error and I have no idea why TypeCount Total Size Smallest LargestMedian free 929 927.031 KB 16 B 554.344 KB 96 B data object33,460 1.220 MB 16 B 1,106 B 32 B class object2,703 782.062 KB 168 B 38.180 KB 168 B 1-byte array (byte[], boolean[]) 703 8.212 MB 24 B 2.039 MB 264 B 2-byte array (short[], char[]) 10,165 653.930 KB 24 B 28.023 KB 48 B 4-byte array (object[], int[], float[]) 5,123 327.000 KB 24 B 16.023 KB 40 B 8-byte array (long[], double[])16 5.922 KB 24 B 4.000 KB 128 B non-Java object 129 5.930 KB 24 B 464 B 40 B How can I trace this to an actual variable Dump the heap and examine it using the Eclipse MAT plugin: http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html My main concerns are the 1-byte array esp. the 2.039 MB I'm sure it is an Image or Bitmap I just don't know which one I strongly encourage you to dump the heap in Honeycomb or Ice Cream Sandwich then, as they do a much better job than do earlier versions of Android of reporting bitmap memory. -- 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: Hardware accleration slow down every Canvas app. Why?
All apps that heavily use canvas to draw something like drawLine(), drawRect(), and other primitives. I'm not the only one who is experiencing the problem, there are many other developers that are experiencing the problem also on honeycomb with tablets. XDA is full of complaining about this hardware acceleration. On 15 Gen, 23:01, Romain Guy romain...@android.com wrote: All the standard apps use hardware acceleration and we've measured large performance improvements. What apps exactly are slower using hardware acceleration? On Sun, Jan 15, 2012 at 1:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android, auto complete with email contacts.
I don't understood how to pass contacts from phonebook to AutoCompleteTextView or MultiAutoCompleteTextView On 15 Gen, 22:52, Kostya Vasilyev kmans...@gmail.com wrote: What it takes is: - Extending AutoCompleteTextView or MultiAutoCompleteTextView - Providing a suitable adapter Take a look at the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.goo... Or else take a look at K-9, you can also browse its source repository online. -- Kostya 16 ÑÎ×ÁÒÑ 2012šÇ. 1:34 ÐÏÌØÚÏ×ÁÔÅÌØ sblantipodi perini.dav...@dpsoftware.org ÎÁÐÉÓÁÌ: Hi, I have an EditText, I would like to activate autocomplete on it. Something that help user to autocomplete with the correct email address. Is there some code snippet I can read on how to do it? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?
Please tell me about specific examples so I can see why it is so. On Sun, Jan 15, 2012 at 2:25 PM, sblantipodi perini.dav...@dpsoftware.org wrote: All apps that heavily use canvas to draw something like drawLine(), drawRect(), and other primitives. I'm not the only one who is experiencing the problem, there are many other developers that are experiencing the problem also on honeycomb with tablets. XDA is full of complaining about this hardware acceleration. On 15 Gen, 23:01, Romain Guy romain...@android.com wrote: All the standard apps use hardware acceleration and we've measured large performance improvements. What apps exactly are slower using hardware acceleration? On Sun, Jan 15, 2012 at 1:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android, auto complete with email contacts.
The auto-complete list is provided by an adapter, which is responsible for: 1) Filtering 2) The drop-down list item views (sort of like with spinner and list view). Here is the adapter from the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3.7_r1/com/android/email/EmailAddressAdapter.java?av=f -- Kostya 16 января 2012 г. 2:29 пользователь sblantipodi perini.dav...@dpsoftware.org написал: I don't understood how to pass contacts from phonebook to AutoCompleteTextView or MultiAutoCompleteTextView On 15 Gen, 22:52, Kostya Vasilyev kmans...@gmail.com wrote: What it takes is: - Extending AutoCompleteTextView or MultiAutoCompleteTextView - Providing a suitable adapter Take a look at the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.goo... Or else take a look at K-9, you can also browse its source repository online. -- Kostya 16 ÑÎ×ÁÒÑ 2012šÇ. 1:34 ÐÏÌØÚÏ×ÁÔÅÌØ sblantipodi perini.dav...@dpsoftware.org ÎÁÐÉÓÁÌ: Hi, I have an EditText, I would like to activate autocomplete on it. Something that help user to autocomplete with the correct email address. Is there some code snippet I can read on how to do it? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hardware accleration slow down every Canvas app. Why?
One examples: https://market.android.com/details?id=MortgageCalculatorPRO.DPsoftware.orgfeature=search_result#?t=W251bGwsMSwyLDEsIk1vcnRnYWdlQ2FsY3VsYXRvclBSTy5EUHNvZnR3YXJlLm9yZyJd there a dozens of similar app that is slowed down by hardware acceleration. On 15 Gen, 23:31, Romain Guy romain...@android.com wrote: Please tell me about specific examples so I can see why it is so. On Sun, Jan 15, 2012 at 2:25 PM, sblantipodi perini.dav...@dpsoftware.org wrote: All apps that heavily use canvas to draw something like drawLine(), drawRect(), and other primitives. I'm not the only one who is experiencing the problem, there are many other developers that are experiencing the problem also on honeycomb with tablets. XDA is full of complaining about this hardware acceleration. On 15 Gen, 23:01, Romain Guy romain...@android.com wrote: All the standard apps use hardware acceleration and we've measured large performance improvements. What apps exactly are slower using hardware acceleration? On Sun, Jan 15, 2012 at 1:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android, auto complete with email contacts.
I finded this examples: http://www.betaful.com/2011/02/multiple-e-mail-autocomplete-in-android/ but I don't find the way to use it. On 15 Gen, 23:37, Kostya Vasilyev kmans...@gmail.com wrote: The auto-complete list is provided by an adapter, which is responsible for: 1) Filtering 2) The drop-down list item views (sort of like with spinner and list view). Here is the adapter from the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.goo... -- Kostya 16 января 2012 г. 2:29 пользователь sblantipodi perini.dav...@dpsoftware.org написал: I don't understood how to pass contacts from phonebook to AutoCompleteTextView or MultiAutoCompleteTextView On 15 Gen, 22:52, Kostya Vasilyev kmans...@gmail.com wrote: What it takes is: - Extending AutoCompleteTextView or MultiAutoCompleteTextView - Providing a suitable adapter Take a look at the built-in Email app: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.goo... Or else take a look at K-9, you can also browse its source repository online. -- Kostya 16 ÑÎ×ÁÒÑ 2012šÇ. 1:34 ÐÏÌØÚÏ×ÁÔÅÌØ sblantipodi perini.dav...@dpsoftware.org ÎÁÐÉÓÁÌ: Hi, I have an EditText, I would like to activate autocomplete on it. Something that help user to autocomplete with the correct email address. Is there some code snippet I can read on how to do it? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Read sensor value without using SensorEventListener
Any comments? Thanks. On Jan 14, 9:24 am, ambi ambi1...@gmail.com wrote: Hi, Is there a way to read the sensor value without using the SensorEventListener? My understanding is that the SensorEventListener.onSensorChanged() method will tell me the sensor value but only when the value changes. I want to read the sensor value when the user clicks a button. Thanks, Ambi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Read sensor value without using SensorEventListener
No, you must use a SensorEventListener. On Sun, Jan 15, 2012 at 6:04 PM, ambi ambi1...@gmail.com wrote: Any comments? Thanks. On Jan 14, 9:24 am, ambi ambi1...@gmail.com wrote: Hi, Is there a way to read the sensor value without using the SensorEventListener? My understanding is that the SensorEventListener.onSensorChanged() method will tell me the sensor value but only when the value changes. I want to read the sensor value when the user clicks a button. Thanks, Ambi. -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?
I think Romain Guy was looking for specific examples from the stock Android apps. You said that *all* apps slowed down, if some random market app slows down, that's not really unexpected, if you can substantiate your claim by pointing out an app running on many devices because it comes preloaded, it might be a cause for concern. (This is a case where your numbers don't match their numbers, and people trust their numbers, so your numbers are probably wrong, or your hardware is just broken.) kris On Sun, Jan 15, 2012 at 5:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: One examples: https://market.android.com/details?id=MortgageCalculatorPRO.DPsoftware.orgfeature=search_result#?t=W251bGwsMSwyLDEsIk1vcnRnYWdlQ2FsY3VsYXRvclBSTy5EUHNvZnR3YXJlLm9yZyJd there a dozens of similar app that is slowed down by hardware acceleration. On 15 Gen, 23:31, Romain Guy romain...@android.com wrote: Please tell me about specific examples so I can see why it is so. On Sun, Jan 15, 2012 at 2:25 PM, sblantipodi perini.dav...@dpsoftware.org wrote: All apps that heavily use canvas to draw something like drawLine(), drawRect(), and other primitives. I'm not the only one who is experiencing the problem, there are many other developers that are experiencing the problem also on honeycomb with tablets. XDA is full of complaining about this hardware acceleration. On 15 Gen, 23:01, Romain Guy romain...@android.com wrote: All the standard apps use hardware acceleration and we've measured large performance improvements. What apps exactly are slower using hardware acceleration? On Sun, Jan 15, 2012 at 1:45 PM, sblantipodi perini.dav...@dpsoftware.org wrote: This is what I saied, every apps seems to be slower. Sincerely I am trying many apps and every apps seems slower when hardware acceleration is on. I really don't find any improvements in this hardware acceleration on android platform. On other OS it clearly boost performance, on android it slow down every kind of painting. On 15 Gen, 22:39, Romain Guy romain...@android.com wrote: Every apps that uses canvas are slowed down when this acceleration is enabled. That is certainly not true since *every* app uses Canvas :) It depend on what you do with Canvas and how your code works (for instance if you keep creating new bitmaps/paths/paints it's going to be slow.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to convert morse sound to text???
That app should not remove noise,now i want to konw how to compute a dit duration from the buffer of audiorecord??? 2012/1/13 RLScott fixthatpi...@yahoo.com Have you tested the app to see how much noise it can tolerate? And have you listened to how much noise there is in actual use on the shortwave radio bands? On Jan 13, 12:22 am, Ludy Lu ludy...@gmail.com wrote: android market has a application named morse code reader can convert morse sound to text... 2012/1/13 RLScott fixthatpi...@yahoo.com The job of parsing Morse code can be very simple if the sound is clean and regular. If it is a little bit irregular in timing, then the job gets harder. If there is a little noise, then it gets harder still. And if there is a lot of noise, then the programming becomes nearly impossible. The last I heard, a program could not beat a trained human listener in the toughest of environments. So how clean and regular in timing is this Morse code that you want to parse. On Jan 12, 10:48 pm, Ludy Lu ludy...@gmail.com wrote: now question is how to remove noise and how to compute a dit length from pcm buffer??? 2012/1/13 Indicator Veritatis mej1...@yahoo.com It would if there were an Android API for it. I am not aware of one, and I doubt one exists. This is rather a fairly simple (audio) signal processing task. What does have to do with Android is the question: how can he use the phone's microphone to listen to the sound, what APIs should he use to generate an audio stream out of it (for that signal processing)? The answer to these questions is not obvious either. On Jan 12, 10:47 am, TreKing treking...@gmail.com wrote: On Thu, Jan 12, 2012 at 2:13 AM, ludy ludy...@gmail.com wrote: i use audiorecord to record morse sound ,and then need to convert morse sound to text,how to do that??? Write the code to do that or use a library. This has nothing to do with Android specifically. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Service Activity demo code
On Sun, Jan 15, 2012 at 12:13 PM, ALi omaisat...@gmail.com wrote: I'm new in Android, need to work on Service Activity, Any demo code or link for Guidance. Service Actvity is not a thing - they are two separate things. Read the documentation. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to convert morse sound to text???
This question shouldn't be on this list. This is a signal processing question, and not a really simple one.. You'll need a signal and audio processing library, which you can probably find somewhere. The Android part of this question is how you get the audio, but actually processing it and detecting the morse code is nontrivial.. I know I've seen algorithms for doing this sort of thing in textbooks before, but I'd guess that if you don't have a signals background it's going to take quite a bit of work. Perhaps try an amateur EE forum? kris On Sun, Jan 15, 2012 at 8:41 PM, Ludy Lu ludy...@gmail.com wrote: That app should not remove noise,now i want to konw how to compute a dit duration from the buffer of audiorecord??? 2012/1/13 RLScott fixthatpi...@yahoo.com Have you tested the app to see how much noise it can tolerate? And have you listened to how much noise there is in actual use on the shortwave radio bands? On Jan 13, 12:22 am, Ludy Lu ludy...@gmail.com wrote: android market has a application named morse code reader can convert morse sound to text... 2012/1/13 RLScott fixthatpi...@yahoo.com The job of parsing Morse code can be very simple if the sound is clean and regular. If it is a little bit irregular in timing, then the job gets harder. If there is a little noise, then it gets harder still. And if there is a lot of noise, then the programming becomes nearly impossible. The last I heard, a program could not beat a trained human listener in the toughest of environments. So how clean and regular in timing is this Morse code that you want to parse. On Jan 12, 10:48 pm, Ludy Lu ludy...@gmail.com wrote: now question is how to remove noise and how to compute a dit length from pcm buffer??? 2012/1/13 Indicator Veritatis mej1...@yahoo.com It would if there were an Android API for it. I am not aware of one, and I doubt one exists. This is rather a fairly simple (audio) signal processing task. What does have to do with Android is the question: how can he use the phone's microphone to listen to the sound, what APIs should he use to generate an audio stream out of it (for that signal processing)? The answer to these questions is not obvious either. On Jan 12, 10:47 am, TreKing treking...@gmail.com wrote: On Thu, Jan 12, 2012 at 2:13 AM, ludy ludy...@gmail.com wrote: i use audiorecord to record morse sound ,and then need to convert morse sound to text,how to do that??? Write the code to do that or use a library. This has nothing to do with Android specifically. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Service Activity demo code
Treking, did you see the new Service Activity Content Provider demo included in the SDK? OP: Right, these are two separate things, the first page of the Android develop guide explains but it boils down to this: Activities: a way to do GUI stuff (think: actions associated with a screen) Services: a way to do computation not associated with a UI. (Think background, but it's not quite that, either..) kris On Sun, Jan 15, 2012 at 8:51 PM, TreKing treking...@gmail.com wrote: On Sun, Jan 15, 2012 at 12:13 PM, ALi omaisat...@gmail.com wrote: I'm new in Android, need to work on Service Activity, Any demo code or link for Guidance. Service Actvity is not a thing - they are two separate things. Read the documentation. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Send Email without user input
http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-ap On Jan 15, 2012 7:29 PM, ambi ambi1...@gmail.com wrote: Hi, My requirement is to build an app that will send email to user at regular intervals but without any input from the user. Is there any way to do that? I am aware of the javamail-android available at the following link but would like to know of any other way (perhaps something mentioned in the official android documentation). http://code.google.com/p/javamail-android/ I am bit sceptical to use javamail-android because the source code for the three jar files namely additionnal.jar, mail.jar, activation.jar is not available. Thanks, Ambi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Key Board Localozation
Hi All, Any one could help for the key board localization in android. Thanks and Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tool for handling of localisation files
Hi, I am working on a App that supports several languages and got an offer to have my strings.xml file translated into several languages. However, the persons doing that are not technical and I would really prefer to give them an Excel file or something like that. Anybody using something else than a pure XML editor to handle translations? Thanks and greetings from Lucerne, Stephan Wiesner -- 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] No Video but audio present when using MediaPlayer on the emulator
Has anyone else had this issue. I'm trying to play video and the video window is not present although I can hear audio. I tried creating the Mediaplayer as an AsyncTask and the same thing happens although UI performance is much better. Any ideas on what could be wrong? -- 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] WebView ignore Javascript that invokes PUT/DELETE Http method
I have a web view that in it's HTML/Javascript makes an Http call with Put/Delete methods. those calls seems to be ignored (I test them on chrome and they work fine). Any idea? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Service Activity demo code
On Sun, Jan 15, 2012 at 9:04 PM, Kristopher Micinski krismicin...@gmail.com wrote: Treking, did you see the new Service Activity Content Provider demo included in the SDK? Nope - and can't find it either ... what you talkin' about, Willis? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Key Board Localozation
On Sun, Jan 15, 2012 at 11:30 PM, aru padam deepesh...@gmail.com wrote: Any one could help for the key board localization in android. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en