[android-developers] Re: Android 2.0 SDK is here!
OK, I could not install Android 2.0, API 5, rev1 because of this error: SSL peer shut down incorrectly. What does this mean? Next, download from Eclipse is so slow, is there any way to download standalone redistributable for Android 2.0 and then install it? I mean, like it was for 1.5 and 1.6. 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: KSoap - How to pass a dataset to a dotNet webservice?
You may try to ask this question directly to the android port of ksoap (http://code.google.com/p/ksoap2-android/) Next, if you look in ksoap2 docs (http://ksoap2.sourceforge.net/doc/ api/org/ksoap2/serialization/SoapObject.html) you'll see that in fact second parameter in addProperty() is Object. On 19 окт, 04:56, Dave david.gra...@gmail.com wrote: Hi Thanks for the response. Its not an issue with the webservice as this works fine. the issue is with how I go about creating the ksoap parameter to be passed to the webservice. Simple types suck as strings, ints etc.. are fine. but the complex type of a dataset just isnt as straight forward. I just thought that someone may have had this problem with ksoap before. Thanks Dave On Oct 19, 7:45 am, gjs garyjamessi...@gmail.com wrote: Hi, I'd think your asking in the wrong forum, a (microsoft proprietary) Dataset object is usually associated with .net development. Where would your microsoft Dataset object be coming from for you to send it from an android device to a dotnet webservice ? Suggest you try more googling eg - http://www.blackberryforums.com/developer-forum/178964-25-00-someone-... http://osdir.com/ml/java.enhydra.ksoap/2003-07/msg9.html Regards On Oct 19, 6:47 am, Dave david.gra...@gmail.com wrote: Folks I know there are quite a few examples of accessing dotnet webservices that return a dataset. I cannot find any examples there the webservice method requires a dataset as a parameter. i.e. dotNet webservice: WebMethod() _ Public Function TestWS(ByVal ds As DataSet) As String Return ds.Tables.Count Tables in dataset End Function I have tried adding the parameter of xml string of the dataset by capturing the http post content of a dotNet web page and extracting the relevant section for the parameter without any success. This included the schema but neither having this there or not made any difference. I have also just tried creating a simple xml structure but still nothing. rpc.addProperty(ds,dst1f1blah/f1/t1/ds); If anyone has any ideas it would be appreciated, I really dont want to go down the route of creating the soap xml and posting it myself. Thanks in advance 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: HTTP GET and ProgressDialog
Lee Jarvis, one more thing. You should implement Cancel stuff. It's either Cancel button on that progress dialog or back key listener. Otherwise you may just stack. On Oct 11, 6:01 pm, Lee Jarvis ljjar...@googlemail.com wrote: Oh, I don't plan on using half of the dialogs and such I'm using in that test application. I too prefer to write things in an activity over a dialog. I just want to get this to work. Unfortunately I'm getting confused as hell. I can see how this should be implemented, but I can't get it to do so. I guess I'll try and find some examples of using AsyncTask that aren't too complex. On 11 Oct, 22:53, Mark Murphy mmur...@commonsware.com wrote: Lee Jarvis wrote: What's with the (ick)? AlertDialog? Well, in your test app, it's probably fine. I worry about people overusing modal dialogs, doing things in a dialog that ought to be in an activity. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.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: Align tabs horizontally to the left of screen
Basically the question is - How to create TabHost on side? Or is it possible at all? On Oct 8, 2:56 pm, purvi purvi.n...@gmail.com wrote: Hello, I have a TabActivity that display tabs either on the top or bottom as specified of the screen in portrait as well as landscape view. Currectly the tabs are dislayed one row and two columns(for 2 tabs each column as one tab). Now what I require is that when the view changes from portrait to landscape, the tabs should be positioned to the left of the screen like two rows and one column each row with one tab. Can anyone please help me to arrange the tabs to the left of the screen? Thanks. Regards, Purvi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ddms and emulator
Which icon did you press under: triangle or bug? I mean, are you sure you run debug mode not release? Because breakpoints work only in debug mode. On Oct 9, 7:39 pm, recalcati lamiapost...@gmail.com wrote: Very strange. I was not able to do it and now, after I have post a message in the forum I can. I launch eclipse-rcp and from it the emulator. I don't launch the ddms externally. I launch, from emulator menu, the helloworld example. I put breakpoints in the debug perspective. I see the thread in ddms perspective. I select com.example.helloandroid and press the green beatle (Debug the selected process, ...) I change to debug perspective. I press menu on the emulator. eclipse stops where I put the breakpoint. Now I don't find anymore the step-by-step F6 button But if I re-run the helloworld application pressing on menu button it stops on the first breakpoint . What is the correct procedure? The reason is that I sometimes can link ddms and emulator, sometimes not. thx On Oct 10, 12:59 am, iappi lamiapost...@gmail.com wrote: I'm new to eclipse and android, so I have not the correct experience, by now. I'd like to know which are the tipical debugging methods. emulator ddms junits I'd like to do step-by-step using eclipse-rcp, emulator and ddms. I can see in DDMS perspective the thread of Helloworld example running. I change perspective to debug and I set breakpoint, but the application doesn't stop. I'm doing something not correct? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: tabs iphone style
Hi, I am confused. As far as I can see ppl just want to be able to do some cosmetic adjustments to the appearance of the tabs - mostly shape and position. BTW, what about tabs on sides (for landscape layout maybe)? We don't care about functionality (OK, business logic), radio-buttons behavior and switching content will do just fine :) So, why was it so hard for the Android Team to give us this ability (cosmetic adjustments) in the first place? And next about nEx.Software code. Can I somehow replace TabWidget only in the original TabHost? On Sep 18, 12:13 pm, nEx.Software email.nex.softw...@gmail.com wrote: In case anyone is watching this thread, I'll post the example I threw together here as well. I was planning on writing a full blown tutorial but since I can tell you are anxious to see it... This is a 1.5 compatible version that uses modified versions of the TabActivity, TabHost, and TabWidget (and related resources) from Android 1.6. There are obvious things that could be done better but the idea is there and should at least get you headed in the right direction. http://nexsoftware.net/Android/Tutorials/CustomTabActivity.zip This allows you to dynamically move the tabs from top to bottom, and also allows you to hide or show them, you can swipe left or right to switch tabs (particularly useful if you have hidden the tabs) and you can also replace the activity of atabwith another activity. Because this is theTabframework from Android 1.6 you can alsochangethe View that is used for the tabs. Also... as I said, this is compatible with Android 1.5. On Sep 17, 1:36 pm, Wouter wouterg...@gmail.com wrote: So what do I have to use? Someone has an example for me? On 17 sep, 17:30, nEx.Software email.nex.softw...@gmail.com wrote: I had actually copied the sources for TabActivity, TabHost, and TabWidget from the Open Source Project yesterday, I didn't realize that this was achangeactually until your response. I am not even using the 1.6 SDK yet... I am now going to peruse the diff report a little more closely. On Sep 17, 8:24 am, Mark Murphy mmur...@commonsware.com wrote: nEx.Software wrote: Yes...http://developer.android.com/sdk/api_diff/4/changes/android.widget.Ta... Ah, yes. setIndicator() used to just have the Drawable options, not the whole View. I'll have to experiment with these. Thanks for pointing this out! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing TabHost font size
Unfortunately, the link shows how to change TAB size not the FONT size. But the main warning stays correct: ...this code will likely break in future Android releases. However, continuing the same incorrect way to deal with problems, one may try the following: TabWidget tw = getTabWidget(); for (int i=0; itw.getChildCount(); i++) { RelativeLayout relLayout = (RelativeLayout)tw.getChildAt(i); TextView tv = (TextView)relLayout.getChildAt(1); tv.setTextSize(25.0f); // just example } It works so far (1.5r3) On Sep 10, 7:22 pm, Mark Murphy mmur...@commonsware.com wrote: Enoch wrote: Hi, I'm creating Tabs for my application and I wonder how do Ichangethe font size in theTabHost (TabMenu) There is no reliable officially-supported solution for this. You are welcome to poke around in the view hierarchy, find the TextView widgets that represent thetablabels, andchangetheir font sizes. The following link shows this technique, in this case changing the size of the tabs: http://wiki.andmob.org/faq-tabsize However, this code will likely break in future Android releases, so you will need to be prepared to make changes going forward. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.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: How to create Spinner with custom items
Mostly you have to derive from certain adapter and then override getView() method there. On Oct 6, 4:24 pm, fhucho fhu...@gmail.com wrote: How can I create Spinner with customized items? Normally it is possible to have spinner items with text and checkboxes on the right, but I would like to have one part of the item's text black and the second part gray. I tried to create custom ArrayAdapter for the Spinner but I just can't figure out how to do it. I would be really gratefull if someone could help me with this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to create Spinner with custom items
Well, on android forums there are plenty of examples. In general, you have to create and then use certain layout. Put all stuff you want onto this layout based on the position index. Return that layout. On Oct 6, 5:05 pm, fhucho fhu...@gmail.com wrote: Yes, I have to override getView() and getDropDownView(), but what should I do in getDropDownView(), in order to display a standard Spinner item with RadioButton, with the only difference that part of the text would have my custom color? On Oct 6, 10:51 pm, konic nflous...@gmail.com wrote: Mostly you have to derive from certain adapter and then override getView() method there. On Oct 6, 4:24 pm, fhucho fhu...@gmail.com wrote: How can I create Spinner with customized items? Normally it is possible to have spinner items with text and checkboxes on the right, but I would like to have one part of the item's text black and the second part gray. I tried to create custom ArrayAdapter for the Spinner but I just can't figure out how to do it. I would be really gratefull if someone could help me with this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---