Re: [android-developers] SMS from laptop
Hi, I was wondering if it’s safe to use the http protocol to retrieve the message(SMS) to the phone and send it. http is not encrypted so anyone in-between can listen to the content of your traffic with easy. so in general: no. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can two application's content providers share one authority?
No, the authority must be unique. That is why the documentation says to use a fully-qualified name for the authority, so it won't accidentally conflict with another app. If when installing your app there is already another installed app using the same authority as one of your providers, the installation will simply fail. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. On Thu, Nov 25, 2010 at 10:45 PM, Pink sivareddy.j...@gmail.com wrote: Hi, Can i override already existing content provider by implementing another ContentProvider with same authorty? If that is the case. How can android system decides ContentProvider to handle data requests? What is typical usae of MIME type? We maintain unique URI for each Data. Then why do we need MIME type again? Is not CONTENT_URI enough for all requests? If it is not the case. Can you give me some example, where MIME play it's unique role? Intent-filter are able provide information about URI as well as MIME type. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Lazy load images into listview
To OP: Have you seen this? http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html -- Kostya 26.11.2010 6:59, Doug пишет: On Nov 23, 3:45 pm, Opengro...@tenromans.com wrote: @Doug, I see a lot of applications that appear to be using multiple threads to download images. E.g., the Android market itself. It's kinda amazing to me that there isn't a standard way of doing this considering the number of applications I see that use a thumbnail/text ListView. Well, in my last message I listed possible reasons why this is not such an easy thing to standardize on. It's just really hard to impose the same requirements on every app. One app's download thread implementation simply may not suit another. Doug -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Can two application's content providers share one authority?
Thanks for your response. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. How does mapping done between MIME and CONTENT_URI? Please give me a scenario if possible. On Nov 26, 1:34 pm, Dianne Hackborn hack...@android.com wrote: No, the authority must be unique. That is why the documentation says to use a fully-qualified name for the authority, so it won't accidentally conflict with another app. If when installing your app there is already another installed app using the same authority as one of your providers, the installation will simply fail. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. On Thu, Nov 25, 2010 at 10:45 PM, Pink sivareddy.j...@gmail.com wrote: Hi, Can i override already existing content provider by implementing another ContentProvider with same authorty? If that is the case. How can android system decides ContentProvider to handle data requests? What is typical usae of MIME type? We maintain unique URI for each Data. Then why do we need MIME type again? Is not CONTENT_URI enough for all requests? If it is not the case. Can you give me some example, where MIME play it's unique role? Intent-filter are able provide information about URI as well as MIME type. 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.comandroid-developers%2bunsubscr...@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.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Passing object via intent
Hi TreKing, could you explain the 3rd way, I have to send to another application an ArrayListCustomObject, how to do it? On 25 Nov, 23:53, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 9:55 AM, pedr0 pulsarpie...@gmail.com wrote: I read some tutorial about the object of this topic (Passing object via intent) there tutorial said that there are two way: 1) My object must implement Parcelable Interface 2) I have to move my object static, for share data between activities. A 3rd way that I prefer: make your object bundleable, where it can put it's relevant data into a Bundle and re-construct itself from a Bundle, which you put in the intent. This eliminates the complexity and class-loading issues of Parcelable and the common issues with statics. --- -- 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] Trouble with loud speaker off on Galaxy S
Other way around for me! Have found a work around using setMode for now On Thu, Nov 25, 2010 at 5:58 PM, David Fisher davidfsh...@gmail.com wrote: Hi, Which OS version there is on your samsung Galaxy S? I have 2 of them, one with froyo and one with Eclair OS. On the Froyo, the setspeakerphone is a bit of a trouble. On the 2.1 it works fine. On Thu, Nov 25, 2010 at 3:36 PM, draf...@gmail.com draf...@gmail.comwrote: Has anyone else experienced this on the Samsung Galaxy S? When I use the folowing to turn the Loudspeaker on it works fine: audioManager.setSpeakerphoneOn(true); But when I try the opposite to turn it off: audioManager.setSpeakerphoneOn(false); The Loudspeaker stays on and audio is played via that instead of the ear piece on the device. The above works on the Nexus One and HTC Hero, just got a Samsung Galaxy the other day and it doesn't work, has anyone else encountered the issue and perhaps know why it is happening and if there is a work around? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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: OpenGL on multiple threads with sharegroups
On Nov 26, 5:29 am, String sterling.ud...@googlemail.com wrote: Is that an OpenGL ES feature, or something specific to iOS? My understanding is that creating OpenGL contexts is always platform- specific. EGL seems to define textures and vertex buffers as shared by default; see section 2.4 of the EGL spec (http://www.khronos.org/registry/egl/ specs/eglspec.1.4.20101006.pdf). Does Android claim to support EGL? Earlier I found another post saying that this didn't work, but now I can't find it... Generally, all your Android threads run in one process, and it's not hard to share data between them. Might it be possible to save your OpenGL context from your rendering thread, then use it to create textures in another thread? You would need a mutex since there is so much state in the context (currently bound texture, etc). So it would be easier to move everything onto one thread. Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Feature Graphic, High Resolution Application Icon and Promotional Video.
contected them, lets see if they answer. On Nov 25, 11:58 pm, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 4:10 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Is there someone who know when we can finally upload this file without having to re-upload and re-upload it? Do you know also what URL should we use for Promotional Video? Is it good a youtube url or they need a direct link to a video file ? I don't think the people able to answer that question read this group. And if they do, they're not going to answer you. This is your best option.http://www.google.com/support/androidmarket/bin/request.py?contact_ty... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Access to Google Reader API
Hello, I am trying to develop a Google Reader app for Android. This app was working fine before today with the following code : monTransport = GoogleTransport.create(); GoogleHeaders entete = (GoogleHeaders) monTransport.defaultHeaders; entete.setApplicationName(ActuXml); entete.gdataVersion = 2; entete.setGoogleLogin(jeton); XmlHttpParser parseur = new XmlHttpParser(); parseur.contentType = text/xml; charset=UTF-8; parseur.namespaceDictionary = NAMESPACE_DICTIONARY; monTransport.addParser(parseur); HttpRequest requete = monTransport.buildGetRequest(); requete.url = new GenericUrl(http://www.google.com/reader/atom/; + finurl); try { flux = requete.execute().parseAs(ReaderItems.class); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } I get a valid token by using the android API 2.0 code : AccountManager manageurcomptes = AccountManager.get(getBaseContext()); Bundle bundle = manageurcomptes.getAuthTokenByFeatures(com.google, AUTH_TOKEN_TYPE, null, moi, null, null, null, null).getResult(); if (bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) { authJeton = bundle.getString(AccountManager.KEY_AUTHTOKEN); util = bundle.getString(AccountManager.KEY_ACCOUNT_NAME); This code was working at the beginning of this week, today it doesn't work anymore. Any change on the server side for the unofficial Google Reader API ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Market Console Pagination
Seemed to have been fixed now. Thanks On Nov 25, 9:45 pm, TreKing treking...@gmail.com wrote: On Wed, Nov 24, 2010 at 10:34 PM, Adam Hammer adamhamm...@gmail.com wrote: Especially since basic pagination is something a first year student should be able to do. You're assuming the people behind the Android Market website have this much experience. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Test Framework available in Andorid Native Layer
Hi All, I would like to test A/V video codec in native layer using test framework setup. Can you please guide me on this ? Regards, Nagaraj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL on multiple threads with sharegroups
I do bitmap loading in another thread, but I do glBindTexture in the main graphics thread. Works well for me, I load bitmaps stored in zips delivered by contentproviders into textures. I think opengl es does have mechanisms for sharing textures across GL contexts, but the above method should be fine, except for a slight delay when the actual bindtexture happens. Adam On Nov 25, 8:44 am, Phil Endecott spam_from_goo...@chezphil.org wrote: Dear All, I'm porting some iPhone OpenGL code that uses a separate thread for OpenGL texture loading. To do this, I create a new OpenGL context in the same sharegroup as the main rendering context, and then the textures loaded in one context are available to the other. I've not seen any equivalent to this on Android. Is this correct, or am I missing something? My code is C++, but as far as I can see the situation is the same for Java OpenGL code. Thanks for any suggestions. Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PUBLISHED APPS MISSING FROM UPDATED CONSOLE
Thanks, I can see all my apps again. On Nov 25, 1:14 am, Nicolas Thibaut nthibau...@gmail.com wrote: thanks, it works for me I can publish :) On 25 nov, 10:04, String sterling.ud...@googlemail.com wrote: So, my best selling app was also AWOL from the console this morning. But it IS still visible in the Market client, and I can still edit it by entering its Console URL manually: http://market.android.com/publish/Home#EDIT_APPLICATION?pkg=com.packa... Not that they shouldn't fix this... just that there is a workaround if you need to make changes before they do. String On Nov 25, 5:15 am, Brad bradfull...@gmail.com wrote: WTF - My best selling app is also missing from my Developer Console. I just updated it earlier today - now it's gone. I used the form to submit a help request (thanks TreKing), hopefully it's not going to / dev/null! On Nov 24, 1:01 pm, Adam Hammer adamhamm...@gmail.com wrote: A few of my unpublished and at least one of my published apps is not accessible from the console at this time. THIS IS URGENT, I don't use that lightly, google test your code before you deploy!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Parcelable iterface implementation in parent class
Hi at all, I have this doubt thinking about the Parcelable interface, question is: Let A and B two type of object, with B that extend A, when I implement the parcelable interface for A all is ok but when I have to implement the parcelable interface for B can I write in parcel only B object fields ? can I be sure that the system call the parcelable interface implementation from object A? Thanks so much and excuse-me for by english -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CPU frequency scaling
Hi, Is it any way scaling cpu frequency in real time? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can two application's content providers share one authority?
Any help On Nov 26, 2:21 pm, Pink sivareddy.j...@gmail.com wrote: Thanks for your response. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. How does mapping done between MIME and CONTENT_URI? Please give me a scenario if possible. On Nov 26, 1:34 pm, Dianne Hackborn hack...@android.com wrote: No, the authority must be unique. That is why the documentation says to use a fully-qualified name for the authority, so it won't accidentally conflict with another app. If when installing your app there is already another installed app using the same authority as one of your providers, the installation will simply fail. MIME types are a totally different thing, used to determine the activity or other component that can interact with a particular content: URI. On Thu, Nov 25, 2010 at 10:45 PM, Pink sivareddy.j...@gmail.com wrote: Hi, Can i override already existing content provider by implementing another ContentProvider with same authorty? If that is the case. How can android system decides ContentProvider to handle data requests? What is typical usae of MIME type? We maintain unique URI for each Data. Then why do we need MIME type again? Is not CONTENT_URI enough for all requests? If it is not the case. Can you give me some example, where MIME play it's unique role? Intent-filter are able provide information about URI as well as MIME type. 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.comandroid-developers%2bunsubscr...@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.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using Uses-Library in android application
Hi, Can any one explain how i can use the Uses-Library tag in Android manifest file as i am facing problem in using it. Following is the exact senario what i am doing. 1. Having an external jar file. name it as sample.jar 2. Created one Android application which uses the jar in it. (Added Uses-Library android:name=sample / line in manifest file) 3. Copied the sample.jar file to system/framework folder in the device. 4. Trying to install the Android application in the device. Error: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY Anything is missing here? Regards, Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 implement 3D morphing in Open GL ES?
3D morphing is easy to implement in M3G. You can just morph different 3d meshes with the Morph class. It is much more difficult to implement this in Open GL ES, because there are no classes for morphing here. Does anyone know how to implement 3D morphing in Open GL ES? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL on multiple threads with sharegroups
On Nov 26, 11:08 am, Adam Hammer adamhamm...@gmail.com wrote: I do bitmap loading in another thread, but I do glBindTexture in the main graphics thread. Works well for me, I load bitmaps stored in zips delivered by contentproviders into textures. Yes; thanks; I'm actually doing something like that at the moment, and it's not ideal. (I think you mean calling glTexImage2D(), not just glBindTexture(), don't you?) I think opengl es does have mechanisms for sharing textures across GL contexts Yes. I've investigated some more and eglCreateContext() takes an EGLContext to share from: If share_context is not EGL_NO_CONTEXT, then all shareable data ... will be shared by share_context ... and the newly created context (from the EGL spec, section 3.7.1.) So the question is, can I call eglCreateContext() from my C++ code, and/or is there a way to access this functionality from Java? Looking through the Java docs I have found the EGLContext and EGLContextFactory reference pages, but they are almost totally content- free. Does Android really implement EGL? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Contact Search
Check the code under chapter 7 here: http://media.wiley.com/product_ancillary/27/04705655/DOWNLOAD/Professional%20Android%202%20Code%20Listings.zip Hope this helps, Federico On 26 Nov, 07:29, Androidbaby hoto...@gmail.com wrote: Scenario: i am working on a code to get the contact phone number by search the name. I have name of the contact and i want to get the number from the contact list. Will some help me ??? Any Code will be a great help of mine... 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: Passing object via intent
On Fri, Nov 26, 2010 at 4:31 AM, pedr0 pulsarpie...@gmail.com wrote: Hi TreKing, could you explain the 3rd way, I have to send to another application an ArrayListCustomObject, how to do it? Unless you wrote another application, that is unlikely to work. Even then, it is a very bad idea, since if the two applications have different definitions for CustomObject, you are in trouble. Since users update their applications on their own accord, getting the two applications out of sync would be easy, even likely. Tell whoever wrote another application to join this list and post on this thread why they think their approach is a good idea. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Passing object via intent
I am interested in this approach too. Do you mean having a sort of toBundle() method and a constructor that accept a Bundle, or is there something more slick? Thanks, Federico On 26 Nov, 10:31, pedr0 pulsarpie...@gmail.com wrote: Hi TreKing, could you explain the 3rd way, I have to send to another application an ArrayListCustomObject, how to do it? On 25 Nov, 23:53, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 9:55 AM, pedr0 pulsarpie...@gmail.com wrote: I read some tutorial about the object of this topic (Passing object via intent) there tutorial said that there are two way: 1) My object must implement Parcelable Interface 2) I have to move my object static, for share data between activities. A 3rd way that I prefer: make your object bundleable, where it can put it's relevant data into a Bundle and re-construct itself from a Bundle, which you put in the intent. This eliminates the complexity and class-loading issues of Parcelable and the common issues with statics. --- -- 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: Can two application's content providers share one authority?
On Fri, Nov 26, 2010 at 4:21 AM, Pink sivareddy.j...@gmail.com wrote: How does mapping done between MIME and CONTENT_URI? getType() on ContentProvider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using Uses-Library in android application
On Fri, Nov 26, 2010 at 7:04 AM, Reddy devireddy@gmail.com wrote: Can any one explain how i can use the Uses-Library tag in Android manifest file as i am facing problem in using it. Following is the exact senario what i am doing. 1. Having an external jar file. name it as sample.jar 2. Created one Android application which uses the jar in it. (Added Uses-Library android:name=sample / line in manifest file) 3. Copied the sample.jar file to system/framework folder in the device. 4. Trying to install the Android application in the device. Error: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY Anything is missing here? Questions regarding custom firmware should be directed to a list that pertains to custom firmware: http://source.android.com/community/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CPU frequency scaling
Il Fri, 26 Nov 2010 03:31:13 -0800, viktor ha scritto: Is it any way scaling cpu frequency in real time? On most devices it is already enabled. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Adding separators to a ListView
Yes, this topic again! One thing that never occurred to me before... how can I add separate OnItemClickListeners to my different lists? For each of the adapters that I add to the MergeAdapter, I want different actions when I click the item. Currently I have no way, it seems, to tell what's been clicked, and which list it came from. The item position argument is misleading too, as it also contains any non- clickable views I also added to the adapter. Am I missing something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can two application's content providers share one authority?
If i have an activity which has one intent-filter as android:mimeType=vnd.android.cursor.item/contact .. And in the activity if i call getData() on the intent of the activity. What will i get? How does android execute this request? getType() on ContentProvider. You mean, When ever android needs to match MIME type to URI. It goes through all content provider's getType and compare the strings. Correct me if i am wrong. On Nov 26, 5:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Nov 26, 2010 at 4:21 AM, Pink sivareddy.j...@gmail.com wrote: How does mapping done between MIME and CONTENT_URI? getType() on ContentProvider. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Adding separators to a ListView
BTW, support for MergeAdapter is best on the [cw-android] Google Group: http://groups.google.com/group/cw-android I try not to clutter up the main lists with CommonsWare-specific stuff. Besides, I'm more likely to notice the question. :-) On Fri, Nov 26, 2010 at 8:14 AM, Neilz neilhorn...@gmail.com wrote: For each of the adapters that I add to the MergeAdapter, I want different actions when I click the item. Currently I have no way, it seems, to tell what's been clicked, and which list it came from. getItem() will return to you the Object corresponding to the position you supply. And, I just checked in a change that added a getAdapter() method that, given the position, will return the ListAdapter associated with it. Note that this might not be one of your adapters, if you used addView(). The actual OnItemClickListener stuff is at the ListView level, so the MergeAdapter is going to be ignorant of any of that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can two application's content providers share one authority?
On Fri, Nov 26, 2010 at 8:26 AM, Pink sivareddy.j...@gmail.com wrote: If i have an activity which has one intent-filter as android:mimeType=vnd.android.cursor.item/contact .. And in the activity if i call getData() on the intent of the activity. What will i get? You will get a Uri or null. This is clearly documented. How does android execute this request? It pulls the Uri out of the Intent, if there is one, and returns it to you. When ever android needs to match MIME type to URI. It goes through all content provider's getType and compare the strings. No. You cannot convert a MIME type to a Uri. You can, however, find the MIME type *for* a Uri. That is why the method is named getType(), takes a Uri as a parameter, and returns a MIME type. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CPU frequency scaling
I mean If it is possible without remaking a ROM. On 26 Лис, 15:06, Alessandro Pellizzari a...@amiran.it wrote: Il Fri, 26 Nov 2010 03:31:13 -0800, viktor ha scritto: Is it any way scaling cpu frequency in real time? On most devices it is already enabled. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CPU frequency scaling
Il Fri, 26 Nov 2010 05:50:32 -0800, viktor ha scritto: I mean If it is possible without remaking a ROM. On 26 Лис, 15:06, Alessandro Pellizzari a...@amiran.it wrote: Il Fri, 26 Nov 2010 03:31:13 -0800, viktor ha scritto: Is it any way scaling cpu frequency in real time? On most devices it is already enabled. Please quote the right way. It is already enabled on most devices. You don't need to enable it remaking the ROM. It is enabled in the stock ROMs. If you want to configure it (change the governor or the timings) you need root access to the phone. But the default should be OK for most users. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Passing object via intent
On Fri, Nov 26, 2010 at 3:31 AM, pedr0 pulsarpie...@gmail.com wrote: Hi TreKing, could you explain the 3rd way, I have to send to another application an ArrayListCustomObject, how to do it? Well, as Mark has explained, trying to send some CustomObject to another app doesn't sound like the most stable idea, if it works at all. On Fri, Nov 26, 2010 at 6:40 AM, Federico Paolinelli fedep...@gmail.comwrote: I am interested in this approach too. Do you mean having a sort of toBundle() method and a constructor that accept a Bundle, or is there something more slick? That's the gist of it. I have an interface with two methods: Bundle toBundle(); and void fromBundle(Bundle bundle); Each derived class also defined a constructor that just calls fromBundle(). It's basically the exact same idea of the Parcelable interface where you shove your data into a Bundle and then read it back in some structured fashion. I switched to this strategy after running into some class loader problems trying to instantiate my Parcelables in a Service that had been passed from an Activity. There's at least one post in the group describing the problem. This fixed that problem and simplified things considerably by removing the need to copy and paste the CREATOR stuff and the (apparently pointless) describeContents() function. If you're already using Parcelable, it's pretty easy to switch to this method. - 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] Access to Google Reader API
On Fri, Nov 26, 2010 at 4:25 AM, Robert Auger bobyg...@gmail.com wrote: Any change on the server side for the unofficial Google Reader API ? You'll probably have better luck asking this question on a forum dedicated to said API. - 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] Parcelable iterface implementation in parent class
On Fri, Nov 26, 2010 at 5:22 AM, pedr0 pulsarpie...@gmail.com wrote: when I have to implement the parcelable interface for B can I write in parcel only B object fields ? You can write any fields you like into the parcel. can I be sure that the system call the parcelable interface implementation from object A? The system will use the most derived class's implementation. If you want A's functions to be called, you do so with a call to super. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Parcelable iterface implementation in parent class
Yes It works, thanks so much. On 26 Nov, 15:18, TreKing treking...@gmail.com wrote: On Fri, Nov 26, 2010 at 5:22 AM, pedr0 pulsarpie...@gmail.com wrote: when I have to implement the parcelable interface for B can I write in parcel only B object fields ? You can write any fields you like into the parcel. can I be sure that the system call the parcelable interface implementation from object A? The system will use the most derived class's implementation. If you want A's functions to be called, you do so with a call to super. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Library project and widget xml referes in AndroidManifest.xml
Hello, i'm using Android Project Library (http://goo.gl/7vvxI). In Android docs, it copys all items from android library project AndroidManifest.xml in application AndroidManifest.xml like in example, AndroidManifest.xml of library project manifest ... application ... activity android:name=GameActivity / ... /application ... /manifest so, AndroidManifest.xml of application must be manifest ... application ... activity android:name=com.example.android.tictactoe.library.GameActivity / ... /application ... /manifest So, if in library project i've a widget declaration, like below, how i can refer to widget xml in application AndroidManifest.xml? In library project receiver android:name=com.example.android.tictactoe.library.MedWidget android:label=@string/label_med_widget meta-data android:name=android.appwidget.provider android:resource=@xml/med_provider / intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter /receiver in meta-data i refer to med_provider in xml folder. Do i need to copy med_provider.xml in xml folder of application? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Library project and widget xml referes in AndroidManifest.xml
For example, for android default resource you can use @android:anim/ cycle_interpolator And for resource in library project? On 26 Nov, 15:37, Premier a.grum...@gmail.com wrote: Hello, i'm using Android Project Library (http://goo.gl/7vvxI). In Android docs, it copys all items from android library project AndroidManifest.xml in application AndroidManifest.xml like in example, AndroidManifest.xml of library project manifest ... application ... activity android:name=GameActivity / ... /application ... /manifest so, AndroidManifest.xml of application must be manifest ... application ... activity android:name=com.example.android.tictactoe.library.GameActivity / ... /application ... /manifest So, if in library project i've a widget declaration, like below, how i can refer to widget xml in application AndroidManifest.xml? In library project receiver android:name=com.example.android.tictactoe.library.MedWidget android:label=@string/label_med_widget meta-data android:name=android.appwidget.provider android:resource=@xml/med_provider / intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter /receiver in meta-data i refer to med_provider in xml folder. Do i need to copy med_provider.xml in xml folder of application? 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: button on screen that controls page sliding
For going from one Activity to another with animation you can use overridePendingTransition() but this won't help in drag Have a look at this tutorial where I found this guy pretty useful. http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.html http://www.inter-fuser.com/2009/07/android-transistions-slide-in-and-slide.htmlVinay Julme ** On Fri, Nov 26, 2010 at 3:07 AM, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 2:08 PM, timecatcher3 timecatch...@gmail.comwrote: I want to use the ViewFlipper or ViewSwitcher with animation but want to control the sliding like the sliding drawer button does for the Android App Menu? On Tue, Nov 23, 2010 at 5:15 PM, TreKing treking...@gmail.com wrote: OK ... this is pretty broad. What do you have working so far? Where exactly are you having trouble? - 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.comandroid-developers%2bunsubscr...@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: CPU frequency scaling
Thanks Alessandro, I will try managing governor. On 26 Лис, 15:58, Alessandro Pellizzari a...@amiran.it wrote: Il Fri, 26 Nov 2010 05:50:32 -0800, viktor ha scritto: I mean If it is possible without remaking a ROM. On 26 Лис, 15:06, Alessandro Pellizzari a...@amiran.it wrote: Il Fri, 26 Nov 2010 03:31:13 -0800, viktor ha scritto: Is it any way scaling cpu frequency in real time? On most devices it is already enabled. Please quote the right way. It is already enabled on most devices. You don't need to enable it remaking the ROM. It is enabled in the stock ROMs. If you want to configure it (change the governor or the timings) you need root access to the phone. But the default should be OK for most users. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 focus and clickable links
We have a ListView and a WebView in a FrameLayout. The WebView is set as empty view for the ListView. The WebView contains some HTML text with hyperlinks. The problem is when the List is empty and the webView is displayed, we cannot click the links in the WebView using the touch interface. However, if the user uses the trackball, he can move through the links and navigate also. It seems that when the user touches the WebView, the touch event is being dispatched to the ListView and not the WebView. Is this assumption correct? Can some one please explain what is happening and how can this be fixed? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Scale a Drawable dinamically
Hi, i have a drawable and i want to scale it programatically, does anybody know how to to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Repeating background does not repeat
Hi all, Basically, I want to set a repeating background on a given ImageView when loading an image from network. Easy stuff to do. But I'm facing a strange problem using a dedicated drawable with tileMode set to repeat. Actually, sometimes the source image is correctly repeated, sometimes it's not, which obviously makes the background very ugly cause the source image is stretched. The problem occurs randomly (on both emulator and G1). I'm using the following XML (background.xml) to define my repeating background: bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/back android:tileMode=repeat /bitmap and I use it this way: ImageView android:id=@+id/header_image android:layout_width=fill_parent android:layout_height=@dimen/header_image_height android:background=@drawable/background /ImageView This works perfectly... sometimes. Of course, I can do the same thing using that code: Bitmap mBackBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.back); BitmapDrawable mBackgroundDrawable = new BitmapDrawable(getResources(), mBackBitmap); mBackgroundDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); mHeaderImage.setBackgroundDrawable(mBackgroundDrawable); This works very well... always! ^_^ But it sounds a little bit dumb to do it myself through code: it seems easier to maintain it from XML and this background is used in so many layouts in my application. Has anyone already faced this problem? Am I missing something? Any guess is welcome. Thanks. Vince -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scale a Drawable dinamically
You want to set dimensions via programmed settings like setWidth() and setHeight()? Or are you talking about something else. Can you elaborate as to the over all goal of this? On Nov 26, 12:33 pm, gato chlr dany...@gmail.com wrote: Hi, i have a drawable and i want to scale it programatically, does anybody know how to to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make such a customized component
I need to build a customized component has following functionality: 1 it has 2 component, a special text input box, and a image button 2 The text input box has up/down arrow at the right end. When there is a list of result back, the text box will show the result list. It is very similar to Google voice search. It has a input text box and a search image button together. Can someone give me suggestion on how to do that? any sample code for that? Thanks! Cindy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] listView.getCheckedItemPositions() without CheckedTextView
Hi, all! I am trying to create multiple selection ListView but I could not use CheckedTextView: my string is much more complex then text View. But, when I use any other control exept CheckedTextView listView after selection getCheckedItemPositions() has no selected items at all. I created custom contlrol implements Checkable interface, but toggle method is never called. May be, someone know fow to do it? With hope, Tina -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scale a Drawable dinamically
You set the size of the drawable with Drawable.setBounds(). Exactly what will happen due to this depends on the particular drawable. On Fri, Nov 26, 2010 at 9:33 AM, gato chlr dany...@gmail.com wrote: Hi, i have a drawable and i want to scale it programatically, does anybody know how to to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Library project and widget xml referes in AndroidManifest.xml
Resource from library project are packaged with the application (that's the whole point of library projects), so you don't need to change any @type references. The only thing you need to update are the classes (like Activity, Service, etc...) that are declared relative to the library package in the library manifest. They must be expanded as the package of the main application is different. Xav On Fri, Nov 26, 2010 at 6:46 AM, Premier a.grum...@gmail.com wrote: For example, for android default resource you can use @android:anim/ cycle_interpolator And for resource in library project? On 26 Nov, 15:37, Premier a.grum...@gmail.com wrote: Hello, i'm using Android Project Library (http://goo.gl/7vvxI). In Android docs, it copys all items from android library project AndroidManifest.xml in application AndroidManifest.xml like in example, AndroidManifest.xml of library project manifest ... application ... activity android:name=GameActivity / ... /application ... /manifest so, AndroidManifest.xml of application must be manifest ... application ... activity android:name=com.example.android.tictactoe.library.GameActivity / ... /application ... /manifest So, if in library project i've a widget declaration, like below, how i can refer to widget xml in application AndroidManifest.xml? In library project receiver android:name=com.example.android.tictactoe.library.MedWidget android:label=@string/label_med_widget meta-data android:name=android.appwidget.provider android:resource=@xml/med_provider / intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter /receiver in meta-data i refer to med_provider in xml folder. Do i need to copy med_provider.xml in xml folder of application? 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: IllegalStateException in MediaPlayer (Redux)
Do you have an error listener registered? Does it give you more information? According to the state diagram, stop() is not available in all states. Perhaps you're calling stop() in an invalid state, causing the player to transition to the Error state, at which point prepareAsync would fail: http://developer.android.com/reference/android/media/MediaPlayer.html In my experience with media player, it's best not to assume that a state transition has happened until one of the listeners tells you. Also, if you have the luxury of creating a new MediaPlayer instead of trying to stop and reuse the current player, I think you'll receive fewer error reports. On Nov 23, 1:16 am, Jason Polites jason.poli...@gmail.com wrote: Hi folks, Some time ago I posted an issue relating to an IllegalStateException in the Media Player (http://groups.google.com/group/android-developers/ browse_thread/thread/46c7c2cd4f4a6958/5551d47aac93632c) I have just launched the app into the wild and this error is flooding in. I just can't seem to fathom why.. here's the code: if(mp != null) { mp.stop(); mp.prepareAsync(); } (mp is a MediaPlayer instance BTW). According to the doco, prepareAsync is valid for {Initialized, Stopped} states.. but I just can't see how it could be in any state other than stopped?? The trace is: java.lang.IllegalStateException at android.media.MediaPlayer.prepareAsync(Native Method) .. the line of code mentioned above follows. Is it possible that stop() is not synchronous? Can't seem to see anything in the doco stating this. Anyone got any ideas? P.S. I'm seeing this on a wide range of devices, but all so far are version 2.1-update1 -- Droid Odyssey! A new game for Androidhttp://www.carboncrystal.com/droid-odyssey/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] google sky map
hello friends, i am new to android programming ,and im not aware if google sky map can be added to the application. if yes can any of u plz guide how it can be used in an application or suggest any site that has some relevant tutorial about using using google sky map in android application. how can apk file be added in the application?? thank you so much Pegards, khushi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] unable to send co-ordinates from emulator control to the emulator
hello friends, when im trying to send dummy co-ordinates from location control emulator control(ddms) .. there is a pop up window which says unable to send command to emulator... what could be the problemi m never able to send co-ordinates in any program fro emulator control option from ddms. please guide me . thank you so much regards, khushi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Animate to new position - impossible?
Got it - but ... Its not obvious what the: something to adjust your layout to cause your View to stick in the new spot. is. I am already using the AnimationListener to trigger post animation code - but I am stuck on how to make this actually happen. It would be great to have a snippet that shows how this might be done in code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Animate to new position - impossible?
Well, it is highly dependent on your layout. Here is an example: https://github.com/commonsguy/cw-advandroid/tree/master/Animation/SlidingPanel/ On Fri, Nov 26, 2010 at 3:31 PM, Jason Van Anden jason.van.an...@gmail.com wrote: Got it - but ... Its not obvious what the: something to adjust your layout to cause your View to stick in the new spot. is. I am already using the AnimationListener to trigger post animation code - but I am stuck on how to make this actually happen. It would be great to have a snippet that shows how this might be done in code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SAX- \n \r not recognized
i have a node called emial under that content is the attribute, in that content I'll get some text that text is have \n and \r. It's not clear what you're saying. I suppose it would be an issue trying to put control characters into an XML attribute. It would help if you posted a snippet of the XML in question and possibly a snippet of the handler where you think the issue occurs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Kill an app / package in API 8 (Froyo)
I hope not. Task killers are more trouble than they're worth, IMO. Android OS already provides a way to Force stop an application. And right next to the Force stop button is the Uninstall button, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom view in widget
I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. Let's say you want to draw something nice into a widget, I saw several widgets doing that, like HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from HTML content or so, it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do. -- 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.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Kill an app / package in API 8 (Froyo)
Unless there is some evidence that the exact same problems wouldn't happen again, sorry no. On Tue, Nov 23, 2010 at 2:05 PM, reistar bryan.y...@gmail.com wrote: Do you think this will ever become available again in some form to 3rd party apps? I understand the problems task killers caused, but there are legitimate reasons for a user to force stop an app. (Like automating closing programs after an event using a program like Tasker.) Thanks, -Bryan On Nov 9, 6:34 pm, Dianne Hackborn hack...@android.com wrote: On Tue, Jun 15, 2010 at 3:10 PM, Happy C. taiwanhappin...@gmail.com wrote: Does the Force stop in the setting of android 2.2 also use KillBackgroundProcess or use the system level API (developer can't use directly) to make it? Force stop uses the brutal real force stop mechanism that is no longer available to third party apps. I have tried the KillBackgroundProcess and adding the related permission, but it can't stop the running app either or running service like Force stop does. Correct, it can't kill processes that the system would not normally be free to kill for out of memory reasons -- that is it only kills background processes or processes running services, which can be killed without the user being aware that something happened. If it killed a foreground process running an activity, for example, this would lose the current state of the activity causing it to disappear. Force stop and my KillBackgroundProcess seems to have sent the same signal 9. but they behave differently. I don't know why it doesn't work in my KillBackgroundProcess. Force stop does a lot more than just killing processes. (Which is one of the reasons the task killer apps' abuse of it has caused so many problems.) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to make such a customized component
On Fri, Nov 26, 2010 at 12:52 PM, cindy ypu01...@yahoo.com wrote: 1 it has 2 component, a special text input box, and a image button Horizontal LinearLayout with your special text input box and an ImageButton should be all you need. 2 The text input box has up/down arrow at the right end. So define a layout with an EditText and two buttons. When there is a list of result back, the text box will show the result list. I don't know what that means. any sample code for that? There is plenty of sample code for simple layouts as you've described. However, the likelihood of there being sample code for your specific issue is rather small. - 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: custom view in widget
When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. Let's say you want to draw something nice into a widget, I saw several widgets doing that, like HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from HTML content or so, it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do. -- 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.2 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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: custom view in widget
So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I have is that they don't scale in an (emulated-) tablet. The OS seems to scale the width more than the height. I played around with all setting I could imagine, scale type, minimum width, height, wrap_content/fill_parent, 9-patch png's. What would be the standard way to make this work? I saw widget's that apparently can do this. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 2:08 PM Subject: Re: [android-developers] Re: custom view in widget When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. Let's say you want to draw something nice into a widget, I saw several widgets doing that, like HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from HTML content or so, it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do. -- 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.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] How to allow for devices without a touchscreen android.hardware.touchscreen
Basically all my games support non touchscreen devices but it seems that the store thinks my games have this as a required feature. So how do I make it so the following does not show up in the Android Market? This apk requests 1 features that will be used for Android Market filtering android.hardware.touchscreen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom view in widget
Yes, portrait mode seems to be somewhat different. I don't have a tablet, but had to fix this for a Motorola Milestone (when the keyboard is pulled out, the home screen rotates). I did this by doing three things: - having separate layouts for portrait and landscape modes (you can use res/layout_port, etc. in a widget); - specifying a larger width for the landscape layout (found empirically, so that my 2*1, 3*1, and 1*1 widgets line up at the edges when placed one below another); - using nine-patches for the backgrounds. One more trick would be to make use of layout_weight, although I haven't needed that. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 1:38 пользователь Hendrik Greving fourhend...@gmail.com написал: So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I have is that they don't scale in an (emulated-) tablet. The OS seems to scale the width more than the height. I played around with all setting I could imagine, scale type, minimum width, height, wrap_content/fill_parent, 9-patch png's. What would be the standard way to make this work? I saw widget's that apparently can do this. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 2:08 PM Subject: Re: [android-developers] Re: custom view in widget When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. Let's say you want to draw something nice into a widget, I saw several widgets doing that, like HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from HTML content or so, it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do. -- 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.2 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.comandroid-developers%2bunsubscr...@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.
Re: [android-developers] How to allow for devices without a touchscreen android.hardware.touchscreen
Just an idea: you could try adding this feature in the manifest yourself, and set android:required=false. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 2:01 пользователь tberthel travisberthe...@hotmail.com написал: Basically all my games support non touchscreen devices but it seems that the store thinks my games have this as a required feature. So how do I make it so the following does not show up in the Android Market? This apk requests 1 features that will be used for Android Market filtering android.hardware.touchscreen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=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: SAX- \n \r not recognized
Yep, if you're expecting whitespace characters to make it through XML encode/decode, don't. In general they're ignored (except perhaps for CDATA), so if you want them preserved you should use some sort of substitution code. On Nov 22, 9:57 pm, Android Humanoid droid.hu...@gmail.com wrote: Hi All, I'm using a SAX Parser where it is not recognizing \n \r symbols that am getting from it, but when I save the file instead of parsing through a parser they are seen in the file. My xml file is of utf-8 format. Please cay anyone help me. Thanks 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] Re: custom view in widget
That's a good idea, I'll try that. By the way, if I want to replace one of the buttons from my widget provider per remoteviews, can I do this (for instance with removeAllViews and addView)? I've tried this and the widget than fails loading. Or do I need to set up a layout each for all possible combinations and then use this with updateAppWidget? - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 3:07 PM Subject: Re: [android-developers] Re: custom view in widget Yes, portrait mode seems to be somewhat different. I don't have a tablet, but had to fix this for a Motorola Milestone (when the keyboard is pulled out, the home screen rotates). I did this by doing three things: - having separate layouts for portrait and landscape modes (you can use res/layout_port, etc. in a widget); - specifying a larger width for the landscape layout (found empirically, so that my 2*1, 3*1, and 1*1 widgets line up at the edges when placed one below another); - using nine-patches for the backgrounds. One more trick would be to make use of layout_weight, although I haven't needed that. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 1:38 пользователь Hendrik Greving fourhend...@gmail.com написал: So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I have is that they don't scale in an (emulated-) tablet. The OS seems to scale the width more than the height. I played around with all setting I could imagine, scale type, minimum width, height, wrap_content/fill_parent, 9-patch png's. What would be the standard way to make this work? I saw widget's that apparently can do this. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 2:08 PM Subject: Re: [android-developers] Re: custom view in widget When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. Let's say you want to draw something nice into a widget, I saw several widgets doing that, like HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from HTML content or so, it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do.
Re: [android-developers] Re: Google Add-On Maps for 1.5 and higher
No, no android:optional on uses-permission. Semantically that is totally different than what am talking about here, which means to still allow being installed even if the device doesn't support the library (or feature since you can do the same uses-feature). On Tue, Jan 19, 2010 at 1:43 AM, Jonas Petersson jonas.peters...@xms.sewrote: Hi Dianne, Dianne Hackborn wrote: As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional. This sounds like a really good step. However, I failed to find it mentioned in the docs (maybe I'm just looking in the wrong place). When this works, could we expect it to also work for uses-permission, as outlined over a year ago? That would be a really good thing too, IMHO. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Binary sms?
Hi, is there a way to generate binary sms in emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] droid 2 drivers
A Nexus One worked fine and installed the adb drivers right away. It can't find the drivers for Droid 2 (Vista 32). Anybody know where to get them from? 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] How to allow for devices without a touchscreen android.hardware.touchscreen
It is currently assumed that applications require a touchscreen, since a non-touch device is not a compatible device. To be honest, I would just not worry about it; at whatever point non-touch devices are going to become compatible, there will be a lot of noise about it with instructions on how to deal with it. On Fri, Nov 26, 2010 at 3:00 PM, tberthel travisberthe...@hotmail.comwrote: Basically all my games support non touchscreen devices but it seems that the store thinks my games have this as a required feature. So how do I make it so the following does not show up in the Android Market? This apk requests 1 features that will be used for Android Market filtering android.hardware.touchscreen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: droid 2 drivers
By the way I've tried the Motorola link but it doesn't take the drivers http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM108806b00aRCRD - Original Message - From: Hendrik Greving To: Android Developers Sent: Friday, November 26, 2010 8:21 PM Subject: droid 2 drivers A Nexus One worked fine and installed the adb drivers right away. It can't find the drivers for Droid 2 (Vista 32). Anybody know where to get them from? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to make such a customized component
Still looking for the help. On Nov 26, 2:02 pm, TreKing treking...@gmail.com wrote: On Fri, Nov 26, 2010 at 12:52 PM, cindy ypu01...@yahoo.com wrote: 1 it has 2 component, a special text input box, and a image button Horizontal LinearLayout with your special text input box and an ImageButton should be all you need. 2 The text input box has up/down arrow at the right end. So define a layout with an EditText and two buttons. When there is a list of result back, the text box will show the result list. I don't know what that means. any sample code for that? There is plenty of sample code for simple layouts as you've described. However, the likelihood of there being sample code for your specific issue is rather small. - 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 make such a customized component
On Fri, Nov 26, 2010 at 11:20 PM, cindy ypu01...@yahoo.com wrote: Still looking for the help. With what? I answered both your questions. If you're still stuck on this you should elaborate on what you've done so far and what SPECIFICALLY you're having trouble with. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding a user to a new group
Hi All, I am facing some permission problem while trying to access a directory. I am running in system server context which meants I am running as user system . I want a access a file in a directory logdir and this directory does not have execute permission for others(770).Because of security issues, its not allowed to make the security bits to 771. The ownershipd details of the logdir is ; owner == dhcp group == dhcp Is there any way so i can add the user 'system' to this dhcp group ? Thanks, Jins -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: droid 2 drivers
Have you looked here: http://developer.Motorola.com ? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 7:33 пользователь Hendrik Greving fourhend...@gmail.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