[android-developers] Re: Rendering of Android User Interface on different devices.
They put up video and slides from the google IO session on this topic: http://code.google.com/events/io/sessions/SupportingMultipleDevicesBinary.html On Jun 6, 7:55 am, aayush abhatnagar192...@gmail.com wrote: Hello. I had a question. As the android OS will be available on a variety of devices with different screen resolutions, widths and properties, will there be any porting issues/ specific points that will need to be taken care of by the application developer to ensure that his UI renders equally well on all devices ? Or will the framework take care of it itself and the developer will be insulated from such issues ? Thanks in advance aayush --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Advice on debug tool for I/O
I run the emulator on my desktop, and use Wireshark filtered for http requests. http://en.wikipedia.org/wiki/Wireshark On Jun 3, 3:43 am, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, On a number of cases I have experienced problems with server / client communication where the server responses with XML files, which never reach my client. Is there any tool for monitoring everything incoming through an HTTP connection, or if not what is your advice to detect what's come through and what's not. I've tried Charles proxy, which intercepts all requests / responses, however, Android seems to refuse to work with proxies. Any advice will be much appreciated. Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Html.fromHtml in 1.5 strips out line Separator's
This looks like a bug to me. Under SDK 1.5 this code: String lineSeparator = System.getProperty ( line.separator ); String testString = first line+lineSeparator+second line; Log.i(helloworld15,testString.indexOf(lineSeparator)) +testString.indexOf(lineSeparator)); Spanned spanned = Html.fromHtml(testString); Log.i(helloworld15,spanned.toString().indexOf (lineSeparator)) +spanned.toString().indexOf(lineSeparator)); ouputs: 06-02 21:57:46.255: INFO/helloworld15(1210): testString.indexOf (lineSeparator)) 10 06-02 21:57:46.284: INFO/helloworld15(1210): spanned.toString().indexOf (lineSeparator)) -1 Under SDK 1.1 it output: 06-02 21:58:38.176: INFO/helloworld15(471): testString.indexOf (lineSeparator)) 10 06-02 21:58:38.715: INFO/helloworld15(471): spanned.toString().indexOf (lineSeparator)) 10 So it appears that as of SDK 1.5 Html.fromHtml is stripping out lineSeparators. This is also true for the method: fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler) for reference here is the Android Html class: http://developer.android.com/reference/android/text/Html.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Redirecting to market search URL doesn't work
2 sounds right. On May 19, 1:38 pm, orangechicken therealdave.my...@gmail.com wrote: To pretty up the URL we have on our site a URL /get/g1. It redirects to our market.android.com/search URL, eghttp://market.android.com/search?q=pname:ourappname. However, going to that link in the G1 browser results in a 404 instead of opening the Market to our app. Questions: 1. Is this a known issue? 2. Does the browser preprocess links on the page but not intercept them in a redirect? Thank you, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add the animated GIF file as an UI element to android application?
APIDemos has an example of such. You can google this list for more info. On May 19, 5:51 am, elgoog cm1...@gmail.com wrote: Hi All, I want to add an animated GIF file as an UI element to the android UI application. Note that the GIF should be shown as animation but not static image in the UI. Do you know how to do that? Thanks a lot! Mingsky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 display text and images in single view
If the issue is you want portions of text to wrap with images in between them, you can try: http://developer.android.com/reference/android/text/style/ImageSpan.html On May 14, 10:19 pm, Mark Murphy mmur...@commonsware.com wrote: currently i am using relative layout to display four TextAreas as a answer cell but how to show images in answer cell ? Use an ImageView. is there any way to do this?. is there any view ? by using that i am able to display text as well as images in same time. Use your layouts to display TextViews and ImageViews at the same time. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TCP (XMPP) Keep Alive and T-Mobile
I found this: http://code.google.com/p/android-random/source/browse/trunk/TestKeepAlive/src/org/devtcg/demo/keepalive/KeepAliveService.java these guys set their keep alive interval to: private static final long KEEP_ALIVE_INTERVAL = 1000 * 60 * 28; I'm assuming their optmized for the T-Mobile G1. On May 5, 5:13 am, Guillaume Perrot guillaume.p...@gmail.com wrote: Nobody can answer me ? I am still forced to leave the setting to 30s and it drains users battery. On 14 avr, 11:55, Guillaume Perrot guillaume.p...@gmail.com wrote: Hi, I just wondered which frequency is OK to send whitespace keep alive packets onto a TCP connection to keep it alive on a T-Mobile 3G connectivity (the use case is to maintain an idle XMPP session alive). On SFR in France, we are disconnected if idle for 3 minutes, but I guess T-Mobile's timeout is lower. Any idea ? By the way there is a bug in the Smack library, the keep alive setting is not enforced, e.g. if you set it to 30s, in the worst case the whitespace will not be sent until the double of this time (60s). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Will 2009 Google I/O Android sessions be on YouTube?
I hope so. Even if one attends one is unlikely to be able to attend all the sessions one wishes. On Apr 29, 12:26 pm, geoff.stromberg geoff.stromb...@gmail.com wrote: The 2008 Google I/O Android videos were a great resource. The 2009 Android sessions sound like they'll be great too. Can someone who is in the know say whether this year's sessions will be posted on YouTube as well? 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: animated GIF support in android
In BitmapDecode.java APIDemos shows how you can use Movie to display an animated GIF. I had partial success with it in the past. (I sometimes got a movie back with zero duration). On Apr 23, 4:33 am, Mark Murphy mmur...@commonsware.com wrote: Nasam wrote: Is animated GIF supported in android through SKIA library. I am not able to play animated GIF which is partially updated about each frame. I do not believe anything built into Android plays animated GIFs. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Picture supported in Android
Note that ImageView does not animate animated GIFs. On Apr 20, 7:34 pm, Anonymous Anonymous firewallbr...@googlemail.com wrote: http://developer.android.com/guide/appendix/media-formats.html On Tue, Apr 21, 2009 at 8:02 AM, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all, I'm doing an application of showing picture with ImageView.I want to know how many kinds of picture are supported in Android, and what are they.Could anyone give a list of these files?Thank you in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to set color to String?
Strings don't have color. Things that display strings do. On Mar 18, 11:38 pm, AlexNguyen alexnt...@gmail.com wrote: I have the String, how can I set color the text in String? For example: String S1; S1 = Name: + \t + this.Name1 + \n + Country/Area: + \t + this.Country1 + \n + Department: + \t + this.Department + \n + Title: + \t + this.Title + \n; I want set color: Name, Country, ... are RED. I don't know in Android can do it? Thanks, --Alex. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to port AbsoluteLayout to FrameLayout?
Ouch. I like AbsoluteLayout for small layouts, contained within larger more flexible layouts. Without it I think I'd have to abuse padding, and use lots of clear drawables with well defined size as spacers. On Mar 12, 5:03 pm, Romain Guy romain...@google.com wrote: AbsoluteLayout is deprecated in Cupcake. On Thu, Mar 12, 2009 at 5:01 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Where did you read it became obsolete. I just checked the reference docs and it's not been obsoleted/ deprecated. On Mar 12, 7:34 pm, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, AbsoluteLayout has become obsolete, I need to convert it to FrameLayout. My problem is in AbsoluteLayout.LayoutParams, I can specify (x,y) in the constructor, which specify the location of my view during layout. How can I achieve using FrameLayout + FrameLayout.LayoutParams? Thank you. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: My Log messages fails to appear on Logcat View
I find I can often just close the logcat view and re open it, without having to restart eclipse. On Feb 26, 4:10 am, PRATAP SOLAPUR pratap.sola...@gmail.com wrote: close the emulator n eclipse then restart both once againit'll display the logs On Thu, Feb 26, 2009 at 2:47 PM, gganesh ganesh@gmail.com wrote: hi , unfortunately even that doesn't works for me .I ran my programe in the debug mode but, no log messages .Any other clue ? On Feb 26, 12:39 pm, ANKIT SOMANI ankitsomani...@gmail.com wrote: I faced the Same Problem.This might be problem with DDMS. I found a solution, If you debug your application once then log cat will again start displaying Logs. Thanks. Regards ~Ankit Somani 2009/2/26 gganesh ganesh@gmail.com hi friends, When i run my application i could see the log messages in Logcat View, as i was working through , all of a sudden i couldn't see log message I'm not aware what has happened ,any clue ?. Can we stop log message displaying !,suppose i may accidentally turned it off i am fresh developer,help to solve it out. 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: Help me solve my Ambiguity regarding Activity
http://groups.google.com/group/android-developers/browse_thread/thread/1c94a1d6d070b0b0 On Feb 24, 5:14 am, gganesh ganesh@gmail.com wrote: hi friends, What is the difference between starting an new Activity by case :1 and case: 2 case : 1 Intent i= new Intent(com.android.google.Anyname) startActivity(i); case: 2 Intent i = new Intent(this, newActivity.class); startSubActivity(i, ACTIVITY_CREATE); what is the scenario which decides to chose between those two options to start an Activity 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: Spinner with Editable Text
I suggest you create your own SpinnerAdapter for the spinner. In getDropDownView for that SpinnerAdapter you determine what is displayed for each drop down view. On Feb 10, 1:21 pm, Inderjeet Singh inder...@gmail.com wrote: I would like to create a spinner where a user can edit the text for each drop-down entry. For example, I have a spinner for users, with pre-populated names: User 1, User 2, and User 3. I want the user to be able to edit these names to their liking. Any tips on how to go about it? Thanks Inder --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I am getting SICK of 1 star ratings for charging!
A new firmware is in the process of being sent to G1's, and the new version of Marketplace has a mark as spam feature for application comments. On Feb 4, 1:18 am, DouglasN raphael.and...@gmail.com wrote: On Feb 3, 7:59 pm, Beshoy Girgis odsl...@gmail.com wrote: I think some cool additions to the market would be to be able to rate a comment with a thumbs up or down... then from there, show the top ten rated comments or what not.. no need to show all 1000 of them. I think that would be workable. A button for anyone to report spam for review would be expensive, but would work as well. Easiest would be that you, the owner of the app, can delete comments. That would kind of defeat the purpose of sincere communcation and would essentially make the comments your ad. I absolutely disagree that you should be able to block certain users from getting your app, however stupid they are. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Want to help us port our iPhone app to Android?
Then you linux types may want to try: http://app-store.appspot.com/ pulling the ID out of cmxlgy's link and dropping it here works for me: http://app-store.appspot.com/?url=viewSoftware%3Fid%3D297414943 On Jan 29, 9:05 pm, wellwatch wellwa...@gmail.com wrote: dude, I run linux and can't install itunes can you give me another link to your app? On Jan 29, 8:55 pm, cmxlgy cmx...@gmail.com wrote: Hi all - Just curious if anyone would be interested in helping us port our iPhone app to Android? It would be on a revenue share basis. Drop us a line off-list. Link to app: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=297... 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 remove the image displayed in ImageView
You could try setImageBitmap passing a null. On Jan 22, 9:31 pm, cindy ypu01...@yahoo.com wrote: I could not find any API to remove the image displayed in ImageVIew. Help! On Jan 22, 11:16 am, cindy ypu01...@yahoo.com wrote: Hi How can we removed image displayed in Imageview? 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] mono on android
Anyone got any information on the mono download on the app market? It listed a homepage that is tough to recall and enter on this g1. Googling for android mono led to a good but closed thread in this group. Oddly the user's are commenting that he giant size of the mono app forces some cleanup code, reduces the size of market and leads to thei phone running better. On that note, has someone written a max file client apk to test other apps behavior in cramped external or sd storage? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 images to emulator
adb push On Jan 13, 4:44 pm, kcode fghj...@gmail.com wrote: How can i add images to the phone(emulator),so that the image viewer can display them. Current when I initiate an image viewer, a message is displayed that there are no images to be displayed. 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: Will Android open up the hardware?
Belongs in the Android discuss group. Makes some OK points but misses boat. Java is a good thing, Android on lots of different hardware is a good thing. On Jan 13, 1:48 am, Vinegar Tasters vinegartast...@gmail.com wrote: Also: http://www.edepot.com/forums/viewtopic.php?f=8t=956 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Please Google: clean racist comment on Android Market
The comments feature is useful, I've found them to be very helpful for the Apple App store. Giving users the ability to rank comments as helpful or unhelpful could help improve their quality. This thread probably belongs on Android discuss though. On Jan 6, 1:54 pm, Sundog michael_...@tmail.com wrote: IMHO it is well past time for Google to admit that the comments are an idea that was not well thought out, and disable the feature entirely. The comments feature, unlike the ratings, has no value whatsoever, especially unmoderated. On Jan 6, 2:13 pm, arnouf arnaud.far...@gmail.com wrote: Hello, I posted yesterday a new app (DiceDroid on Android Market) and I don't why a racist discussion is running through the comments feature. Please Google, could you delete this racist comments!! You can contact me at arnaud.farine AROBAS expertiseandroid.com Thanks a lot for your support Arnaud --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device id
I like: http://code.google.com/android/reference/android/os/Build.html The constant String Build.DEVICE is dream on the handset in front of me, the emulator returns generic On Dec 31, 8:49 am, Mark Murphy mmur...@commonsware.com wrote: There is also android.provider.Settings.System.ANDROID_ID. The value is null on the emulator but an apparently-unique 64-bit hex value on the G1. roland wrote: What about the imei? You can get it by ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(), and the emulator return 000. Don't forget add uses-permission android:name=android.permission.READ_PHONE_STATE / in your AndroidManigest.xml. On 31 déc, 08:24, jsm mamm...@gmail.com wrote: I have an application where I need to check whether the user is using the actual device not a emulator or others. I have seen the API where there is device id method from phone service. I need a generic way to check if the user is on the real device. For example if he has downloaded the app from the market, i need to know the device id of the user, this is strictly for licensing and restricting the use of app. Any ideas? -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Wrap Text around ImageView
I think you can achieve this efect using a Spanned, which you pass to a TextView: http://code.google.com/android/reference/android/text/Spanned.html I was able to display html with image tags, by using http://code.google.com/android/reference/android/text/Html.html and implementing http://code.google.com/android/reference/android/text/Html.ImageGetter.html I'm not sure the easiest way to create the Spanned from scratch, since the Html class was handling that for me. Best of luck On Dec 12, 4:26 pm, bostone bost...@gmail.com wrote: Did you get this working? I'm trying to do same effect Bob On Nov 5, 8:55 pm, Beginner ayrton.merc...@gmail.com wrote: Hi, I asked this in the begginer's group, without much success. So I'm going to try it here as well... I'm trying to get a pretty standard effect. An image (in an ImageView) on the the top-left corner of the screen, withtext(in a TextView) that wraps around it. (So part of it is on the right of the image, and the rest is on the bottom. Could someone tell me how to achieve this? Is there a wrapper View I could use? Thanks, -A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Versioning and Deploying
You also need a unique java package for each app. On Dec 11, 3:22 am, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I have several versions of my app, and I'd like to deploy them on my testing device. To do that I've altered the AndroidManifest.xml's version code and name. However, everytime when I attempt to install one of the versions, and have the other onle already installed on the device, the latter replaces the the one installed. Hence, I can't have them both on the device. Has anyone come across this issue? How did you handle it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Data Roaming and 3rd party apps
Referencing this article: T-Mobile produces official statement regarding international G1 data roaming http://www.engadgetmobile.com/2008/12/10/t-mobile-produces-official-statement-regarding-international-g1/ the statement being: Official T-Mobile statement: T-Mobile is committed to delivering the best experience in wireless to our customers. If a T-Mobile customer would like to use their T-Mobile G1 while outside the country, they should contact Customer Care before they leave to ask that the WorldClass feature be added to their service at no additional charge. If they choose, customers can also disable data roaming on the G1. This can be done by going through the following steps: Home Screen Menu Settings Wireless Controls Mobile Networks Data Roaming. Some third party applications available for download on Android Market require access to the internet and have the ability to turn on data roaming when in use. Customers are informed whether an application will use this feature prior to downloading, but should also be aware when traveling outside the country. Does this mean all 3rd party internet apps, (ie those that have requested android.permission.INTERNET), will turn on data roaming, or does this refer to apps that have requested some extra permission. Perhaps android.permission.CHANGE_NETWORK_STATE? 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 Market HTTP Links?
Yes you can: http://code.google.com/android/devel/sign-publish.html The Using Intents to Launch the Market Application on a Device section describes the url pattern. It also works if these urls are used on links on pages viewed from and Android phone. They don't work if you just type them directly into the browser, they have to be links, to generate the right intent. On Dec 7, 9:27 pm, cyntacks [EMAIL PROTECTED] wrote: Hi, Is it possible to link from a webpage to the Android Market? That is, can I place a link on our company website which if clicked from an Android mobile device it would automagically open the Android Market, bringing the user to that particular app? Thanks for the help, Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Manipulate Drawable Resource
Also not sure what you are talking about, but generically, from code, if you want a Drawable object that can be modified, I had that problem. I used a StateListDrawable. http://code.google.com/android/reference/android/graphics/drawable/StateListDrawable.html It was for Drawables in an ImageSpan. They started out as default placeholder drawables while the Bitmap was loading from the network. After the image came back from the network the handler called addState on the StateListDrawable with the new BitmapDrawable to be displayed, and called setState on it. The problem was it didn't measure right afterwards so I had to re call setText on the TextView passing it the Spanned holding the Drawable that had been updated. Then it worked great. On Dec 5, 9:57 am, pjv [EMAIL PROTECTED] wrote: Just making sure we are talking about notifications (and icons therein) at the top of the screen? From what I recall, the way notifications work is that you can refresh them in place by sending out a new notification with the same id. Ofcourse this would give you a chance to update the icon too. Can't remember how this is done exactly, but look at any basic notification examples or my Android's Fortune app's source code (which refreshes the fortune cookie that is offered as a notification). Is this simply what you wanted or am I not understanding you? On 1 dec, 02:28, Kyle [EMAIL PROTECTED] wrote: bump --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Custom ImageButton Shape
You can create a drawable using whatever image you want, for each of the states of the button. Try creating an xml file like so, and putting it in res/drawable: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=false android:drawable=@drawable/glassbutton_focusedblue_up / item android:state_focused=true android:state_pressed=true android:drawable=@drawable/glassbutton_focusedblue_down / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/glassbutton_defaultblue_down / item android:drawable=@drawable/glassbutton_defaultblue_up / /selector and then in your button set android:background=@drawable/mybutton_background however I'm betting this still results in a square clickable area. I'm not sure if you can do a circular clickable area, but you're not likely to need one. On Nov 20, 6:52 am, Lewis [EMAIL PROTECTED] wrote: I plan to create an imagebutton which I would like to make a nonstandard shape (e.g. a circle). Any general ideas on how I would go about this? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Image buttons
Simplest way to do this is to create a custom drawable xml describe what image to use for what state, described in this thread: http://groups.google.com/group/android-developers/tree/browse_frm/thread/1906f24707594f67/17322a04f7af1a5b On Oct 30, 2:48 am, Arun Mankad [EMAIL PROTECTED] wrote: Can somebody tell me how o create buttons with images that have different image for focused and clicked state -- Arun Mankad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why is Android/Eclipse so unreliable?
I get the 19% death with M5. Windows XP Professional. On Jun 16, 7:55 am, Nickname [EMAIL PROTECTED] wrote: I'm using XP. I never saw 19% death so far with M5. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android and Web Services
I'm using the same methodology. I've pieced it together from advice here. I took a look at KSOAP but found it easier to build up the request manual from streams and bytes. To build the request I used these snippets InputStream requestISStart = activity.getAssets().open(start of your soap stuff... requestDataStart = new byte[size]; requestISStart.read(requestDataStart) java.io.ByteArrayOutputStream bufferStream = new java.io.ByteArrayOutputStream(); os.write(requestDataStart os.write(arguments1.toString().getBytes()); RequestEntity requestEntity = new ByteArrayRequestEntity(bufferStream.toByteArray()); postMethod.setRequestEntity(requestEntity); etc. The part that is taking most of my time is parsing complicated requests, using: XmlPullParserFactory factory; try { factory = XmlPullParserFactory.newInstance( System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null); XmlPullParser xpp = factory.newPullParser(); which instantiates this: http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html On Apr 30, 11:14 am, joesonic [EMAIL PROTECTED] wrote: Thank really this helped me a lot: now I have a first dirty working code: public void ws() throws Exception{ HttpClient client = new HttpClient(); PostMethod postMethod = new PostMethod( http://www.w3schools.com/webservices/tempconvert.asmx; ); postMethod.setRequestHeader( Content-Type, text/xml; charset=utf-8 ); postMethod.setRequestHeader( SOAPAction, http://tempuri.org/ FahrenheitToCelsius ); postMethod.setRequestBody(soap:Envelope xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\; xmlns:xsd=\http://www.w3.org/ 2001/XMLSchema\ xmlns:soap=\http://schemas.xmlsoap.org/soap/envelope/ \soap:BodyFahrenheitToCelsius xmlns=\http://tempuri.org/ \Fahrenheit + + + 23 + /Fahrenheit/FahrenheitToCelsius/soap:Body/ soap:Envelope); int statusCode = client.executeMethod( postMethod ); if ( statusCode == 200 ) { // good response ((TextView)findViewById(R.id.text)).setText(postMethod.getStatusLine().toString()); } } Is it also possible to work with this somehow? NameValuePair[] xy = {new NameValuePair(Fahrenheit,23)}; postMethod.setRequestBody(xy); On Apr 30, 7:13 am, sauhund [EMAIL PROTECTED] wrote: The bad news is: Apache Axis is not in Android BUT the good news is, you can do this with a simple HTTP POST. Get theSOAPenvelope that Axis generates for you and POST it yourself with something like this: import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; HttpClient client = new HttpClient(); PostMethod postMethod = new PostMethod( YOUR_ENDPOINT ); postMethod.setRequestHeader( Content-Type, text/xml; charset=utf-8 ); postMethod.setRequestHeader( SOAPAction, YOUR_OPERATION ); postMethod.setRequestBody( YOUR_SOAP_ENVELOPE ); int statusCode = client.executeMethod( postMethod ); if ( statusCode == 200 ) { // good response return( postMethod.getStatusLine().toString() ); } To get theSOAPenvelope, start tcpmon or SOAPMonitor and run your axis code below. Then copy theSOAPfrom the monitor window and paste it into your Android code. If you'd like to expand on that approach, I'd recommend putting theSOAPin a resource file and merging in arguments such as Mike. enjoy! On Apr 25, 12:19 pm,joesonic[EMAIL PROTECTED] wrote: Hello, Is it possible to useSOAPWebServices in Android in a simple way. As an example an ordinary java snippet for webservices is given. import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.namespace.QName; import java.net.*; public class Test { public static void main(String[] args) throws Exception { Service service = new Service(); Call call = (Call)service.createCall(); String endpoint = http://www.example.com/soapserver.php;; call.setTargetEndpointAddress(new URL(endpoint)); call.setOperationName(new QName(getName)); String name= Mike; String result= (String)call.invoke(new Object [] {new String(name)}); System.out.println(result); } } What's the easiest and fasted way to transfor this for android? 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