**** BEGIN LOGGING AT Wed Apr 18 02:59:59 2012 Apr 18 03:02:54 rking: sometimes they have deps, but it's rare and annoying Apr 18 03:03:12 hey there question.. im looking to use the igoogle weather api for a school project.. if Iw ant to display the weather images.. would I be better off using individual web views for them, or download the image temporarily and use an image view? Apr 18 03:03:18 You can make your apps on whatever SDK you want, and they'll work on old phones, right? Or do you have to decide what level of oldness you want to go for? Apr 18 03:03:22 bankai_: OK, good to know. Apr 18 03:03:57 rking: you should base your app on the lowest SDK version as you can... ie. if you don't need the functionality of a higher version, don't use it Apr 18 03:04:12 bankai_: Interesting. Can you elaborate a bit on why? Apr 18 03:04:22 you cover more devices that way Apr 18 03:04:40 in saying that, if you don't care about the 2% of the market running 1.5 - it's no problem :) Apr 18 03:05:03 Oh, so it does matter what the phone is running. Apr 18 03:05:08 I thought maybe it was all statically linked. Apr 18 03:05:10 rking: check this out http://en.wikipedia.org/wiki/Android_(operating_system) - scoot down to the bottom and have a look at that pie chart Apr 18 03:05:24 bankai_: You roxolot. Apr 18 03:05:59 i'll probably get shot for this, but 2.2 ( api 8+ ) is a good start, rather than 1.5/1.6 Apr 18 03:06:25 * rking shoots bankai_ for that. Apr 18 03:06:29 How dare?? Apr 18 03:06:40 i know this may be dumb but should i always use the latest sdk Apr 18 03:08:12 drpenguin: download and cache :) Apr 18 03:09:09 bankai_: oh wow.. a cache dir! that sounds quite elegant, thank ya Apr 18 03:10:03 bankai_: why would someone shoot you for saying that? maybe if they were a moron. that's absolutely correct. Apr 18 03:14:16 Hi guys Im having noobie troubles again Apr 18 03:14:21 with sharedpreferences Apr 18 03:14:30 now I've done this before but dont remmeber how i did it Apr 18 03:15:08 Once I save a value into Apr 18 03:15:09 SharedPreferences settings = getSharedPreferences("myPrefs", MODE_WORLD_READABLE); SharedPreferences.Editor editor = settings.edit(); editor.putInt("experience", iExperience); Apr 18 03:15:28 now how can I get that int next time i start up my app? Apr 18 03:15:35 mantas322: editor.commit(); first so you have it saved Apr 18 03:15:44 fuck@ Apr 18 03:16:00 mantas322: then you can use settings.getInt("experience", "somedefaultvalue"); // to get the data Apr 18 03:16:25 i.e. settings.getInt("experience", 0); // to default to 0 if experience doesn't exist Apr 18 03:17:04 the default value was confusing me Apr 18 03:17:14 gotcha Apr 18 03:17:18 I wass missing the commit Apr 18 03:17:21 THANK YOU so much!@ Apr 18 03:17:27 no worries Apr 18 03:18:51 Quuuuuuuuuuuuuuuuuuuuuuubez Apr 18 03:19:10 sweeeeet. Apr 18 03:19:11 QubeZ: sup Apr 18 03:19:14 my app is almost done Apr 18 03:19:16 yo drpenguin, been wondering where you been Apr 18 03:19:22 my avd is taking forever to boot not sure it will Apr 18 03:19:29 drpenguin: I just became a first time dad on Sat Apr 7th... son and mom doing well Apr 18 03:19:38 QubeZ: back to working full time man heh, WHOAAAAAAAAAAAAA Congrats dude! Apr 18 03:19:45 readme: yo, just trying to fix my broken ass adapter Apr 18 03:19:52 foolover: how long is 'forever' ? it's not fast ... Apr 18 03:20:10 oh 2 to 3 minutes it ran Apr 18 03:20:17 i scroll slowly, my header shows properly "today, tomorrow, this week, later..", but when I scroll fast... the labels get all messed up Apr 18 03:21:34 cool just finished hello world Apr 18 03:21:38 check out the app sonalight (sonalight.com) Apr 18 03:21:47 im a pro android developer now, lol Apr 18 03:21:54 I was thinking about playing with TTS and STT software today and found some stuff from CMU that works on android I'm going to try out Apr 18 03:21:56 foolove cool! you are now ready for "Goodbye sanity" Apr 18 03:22:00 i bet todo mapr could benefit from that code Apr 18 03:22:00 foolover Congrats! Apr 18 03:22:19 readme: *nod* Apr 18 03:22:22 foolover: is it on google play yet? :P Apr 18 03:22:33 we're approaching a whopping 500 downloads so far :\ Apr 18 03:22:34 this community sure is nicer than the perl community that i have been a member of for sometime I much appreciate the warm welcomes Apr 18 03:22:39 not sure how good that is Apr 18 03:23:12 damn thats alot of money Apr 18 03:23:15 QubeZ: the biggest feeling of failure always occurs right before you are wildly successful Apr 18 03:23:30 so when it comes you know you are doing well Apr 18 03:23:37 readme: needed that motivation, i have a lot of patience Apr 18 03:23:58 the biggest feeling of failure always occurs right before even more failure Apr 18 03:24:03 you know waht you do man, you have a sun now, get him in early Apr 18 03:24:11 s/sun/son/ Apr 18 03:24:15 * readme is switching to intellij, learning maven, and setting up some CI for his app Apr 18 03:24:21 going to automate tests and release builds Apr 18 03:24:23 ya defniitely, i got him an android onesie Apr 18 03:24:26 so he's on his way Apr 18 03:24:28 haha Apr 18 03:24:32 Good man! Apr 18 03:24:52 also got him a "hello world" onesie... kinda dual message there. Every non-developer says "oh, hi there" haha Apr 18 03:25:00 i wish i had been indoctrinated into programming at birth Apr 18 03:25:03 that would be awesome Apr 18 03:25:20 Baptism by Dennis Ritchie Apr 18 03:25:33 i can't wait to do some cool projects with him when he gets older -- maybe robotics by then Apr 18 03:25:45 any who... my adapter is broken. I must address it. Apr 18 03:26:19 kids can become insanely smart at a young age with the right parents Apr 18 03:27:14 I think my parents took the wrong kid home from the hospital then.. because I am way more academic than both of them were Apr 18 03:27:45 hehe Apr 18 03:28:12 we have MANY things that our parents did not grow up with. Apr 18 03:29:02 my mom and dad were immigrants with little education -- they wanted more for me so thats how I ended up with an excellent education and work ethic Apr 18 03:32:04 excellent education... right, I believe you ;-) Apr 18 03:32:34 well the best I could get in Florida lol Apr 18 03:32:38 how do i access the wysiwyg editor for eclipse the xml portion or is this an add-on that needs to be installed im using eclipse class editor Apr 18 03:33:10 QubeZ, http://science.slashdot.org/story/12/04/16/2119219/florida-thinks-their-students-are-too-stupid-to-know-the-right-answers Apr 18 03:33:14 QubeZ, :) Apr 18 03:33:24 foolover: double click an xml file? Apr 18 03:33:47 foolover: if it's not working, try right clicking the project, going to android tools, and clicking fix project properties. Apr 18 03:34:43 pfn: oh man, and for some reason I thought I was smart so far...damn it Apr 18 03:35:17 Florida is notorious for poor education. Glad I moved to Minnesota. Apr 18 03:37:26 i double clicked androidmanifest.xml it just brings up package version code etc like parameters or something Apr 18 03:37:41 Defines general information about the AndroidManifest.xml Apr 18 03:37:45 that is the title Apr 18 03:40:06 i guess i need to create a visual class Apr 18 03:46:52 anyone know of a way around this problem? Trying to unlock my phone, but some trouble with "com.android.phone restarted too many times [Force Close] [Tell HTC]".. Here is the "adb logcat" log file.. http://privatepaste.com/be77d34e36 Apr 18 03:52:58 immotus: have you rooted your phone/ Apr 18 03:56:47 bankai_: no.. it hasn't been rooted Apr 18 03:57:08 bankai_: also, this is my first time trying to unlock it Apr 18 03:57:18 which update site has the xml wysiwyg editor Apr 18 03:57:25 by unlock you're talking about the bootloader? Apr 18 03:57:34 foolover: it comes with the eclipse plugin Apr 18 03:58:20 bankai_: I'm trying to use a non T-mobile carrier's SIM card.. I'm going overseas in a little while and I purchased a cell plan in the other country Apr 18 03:58:43 oh not sure how to access i dont see visual class option when i right click on a project Apr 18 03:58:51 ahh carrier unlock? still probably more apprpriate to ask in #android-root Apr 18 03:59:15 bankai_: k. will do :^) thanks! Apr 18 04:00:54 foolover: i don't know what you're seeing and i can't check on my eclipse atm, but when you open up the XML you have three views - XML, GUI builder ( or something along those lines ) and something else i can't quite recall. if you can't see this you have the wrong view Apr 18 04:02:48 guava's pretty big, is there a guava-min for android? Apr 18 04:02:59 I guess proguard is the answer Apr 18 04:05:04 is it possible to have two linear layouts on the same line, non nested? Apr 18 04:07:21 cooldman224: you can wrap them in a linearlayout or relativelayout themselves and have the two LL children not be nested, if thats what you're asking Apr 18 04:07:25 what would the container for the linearlayouts be Apr 18 04:07:33 you want them side by side? Apr 18 04:07:59 QubeZ, ah good thinking Apr 18 04:08:23 or is it possible to not have view.gone for the nested layout as well? Apr 18 04:08:24 oi Apr 18 04:08:26 wtf Apr 18 04:08:27 mf Apr 18 04:09:14 cooldman224: you can set the visibility of the layout as you wish Apr 18 04:09:29 either in XML initially or programatically later to gone/invisible/visible as you see desire Apr 18 04:10:03 QubeZ, yeah I undestand that I am just trying to keep the same code regardless of screen orientation Apr 18 04:11:29 this is the most inefficient layout ever but whatever Apr 18 04:11:43 anyone knowledgeable about computer hardware? Apr 18 04:11:58 computer hardware? who needs that rubbish ... Apr 18 04:12:05 that is the worst question asked in here Apr 18 04:12:15 cooldman224: what exactly are you trying to do? let's start there Apr 18 04:13:05 create a res/layout-land/yourfile.xml to handle what your landscape orientation will look like Apr 18 04:13:23 QuebeZ, i have a toolbar in each listview that when the item is clicked is view.visible. Yeah I am Apr 18 04:13:32 so i have on LL for the toolbar Apr 18 04:13:39 another for checkedtextview Apr 18 04:15:38 it works fine but who cares about efficiency, i just dont want roman guy mad at me Apr 18 04:17:19 hairlessmangina: there is a channel for that Apr 18 04:17:32 ##hardware Apr 18 04:19:47 http://www.latimes.com/business/la-fi-oracle-ellison-20120418,0,1664844.story Apr 18 04:19:53 larry vs larry Apr 18 04:20:25 sepcial Apr 18 04:21:43 hairless - i am, whats up? Apr 18 04:28:11 I'd love to see oracle schooled Apr 18 04:28:23 if that means a judge telling them to go fuck themselves thats fine Apr 18 04:28:54 if it means google looses and picks something else for android Apr 18 04:28:54 QubeZ, now my checkedtextview isnt being checked but only in landscape. I don't know why. http://pastebin.com/JMEL3TJB Apr 18 04:28:55 even better Apr 18 04:32:52 cooldman224: you might need to set clickable and focusable properties on the checkedtextview in xml layout Apr 18 04:32:59 although I've never used checkedtextview, only checkbox Apr 18 04:41:37 QubeZ, yeah no go :( I may have to scrap it Apr 18 05:01:17 JakeWharton: you around? Do you run IntelliJ on linux at all? Apr 18 05:01:34 * readme installed IntelliJ and finds it very annoying when he tries to resize a window pane Apr 18 05:01:48 there is no visible handle and the threshold for grabbing seems difficult to hit Apr 18 05:02:50 hm, it's getting easier now Apr 18 05:08:49 readme: does intellij work with java 7 now? Apr 18 05:08:59 readme: with android as well Apr 18 05:09:32 IntelliJ seems fickle as hell on linux. One second it works, the next it doesn't. Apr 18 05:09:50 Of course, I'm using the community edition. Apr 18 05:10:28 let me guess Apr 18 05:10:30 ubuntu Apr 18 05:11:53 Linux Mint Apr 18 05:12:01 I've tried it with four different JDKs though. Apr 18 05:12:28 i think the official jdk is the best Apr 18 05:12:54 cooldman224: don't use java 7 for android dev Apr 18 05:13:03 Yeah, when I say that I mean I tried it with: the official sun jdk 6 that was in Mint's repos, the official sun jdk 7 that was in mint's repos, and the latest jdk 6 and 7 that I downloaded from oracle's site. Apr 18 05:13:05 g00s, too late Apr 18 05:13:13 actually, I tried it with the OpenJDK too, and it didn't even run on that Apr 18 05:13:20 so technically, I tried it with 5 jdks. Apr 18 05:13:24 wow thats horrible Apr 18 05:13:30 yeah, I am having a hell of a time. Apr 18 05:13:33 tisk linux.... Apr 18 05:13:34 I think I am going to file bugs now. Apr 18 05:13:38 It's not linux's fault Apr 18 05:13:41 it's IDEA that has bugs Apr 18 05:13:42 ffs Apr 18 05:13:48 readme: did you remember to set up your alternatives ? Apr 18 05:13:58 could it have been pointing to the same jdk the whole time ? Apr 18 05:14:12 g00s: yeah, my alternatives are set to sun jdk but i tested using the IDEA_JDK environment variable that idea.sh uses to launch IDEA in different JDKs Apr 18 05:14:20 hmm Apr 18 05:14:21 legit, 5 jdks Apr 18 05:14:39 bug filing time Apr 18 05:14:51 I'd like to use this, it just.. doesn't work yet :) Apr 18 05:14:59 i was able to build and run an android project though. Apr 18 05:15:12 it was just a pain in the arse due to the fact that clicking menus is a nightmare for some reason. Apr 18 05:15:24 sometimes I click a menu and then it doesn't get focus Apr 18 05:15:31 i only use linux for servers, dev on windows is not bad Apr 18 05:15:47 I've been a hardcore linux user for almost 10 years Apr 18 05:16:15 not because I care, but, because it's comparatively better than windows, I think Apr 18 05:16:21 see i cant because i pc game Apr 18 05:16:58 * readme will be investing in a macbook pro soon though. Apr 18 05:17:26 mehhhhh Apr 18 05:17:52 my mbp has been the most troube-free investment in machine i have ever made Apr 18 05:18:32 windows 7 is the most trouble free ms os ever Apr 18 05:18:45 i do hear good things about it Apr 18 05:19:08 i think , ms might screw up windows 8 with metro a little possibly, and then nail it with windows 9 Apr 18 05:19:18 it seems every other version of windows sucks Apr 18 05:19:32 yeah i think windows 8 will suck on the desktop which is unfortunate Apr 18 05:19:43 opportune time for linux/mac to rise Apr 18 05:20:20 cooldman224:its the year of the linux desktop :P Apr 18 05:20:41 well i definitely do like where gnome is going Apr 18 05:20:49 i think i am converted from a long time kde fan Apr 18 05:21:06 so that means no more opensuse and hello fedora Apr 18 05:23:15 the only open source things i still use are gimp and inkscape, mostly Apr 18 05:23:46 there could be a few others, but those are what i use often Apr 18 05:25:37 i designed my icon with gimp Apr 18 05:25:45 :) Apr 18 05:25:53 to the best of my ability haha Apr 18 05:27:20 bugs filed Apr 18 05:27:30 we'll see if the community accepts the problems or tells me I'm full of it Apr 18 05:27:34 if the former, great Apr 18 05:27:36 if the latter, screw them Apr 18 05:27:50 http://youtrack.jetbrains.com/issue/IDEA-84811 Apr 18 05:28:04 i think these could be pretty cool http://www.gizmowatch.com/anticipated-slider-ultrabooks.html Apr 18 05:28:11 if they are real 'puters Apr 18 05:28:18 and let me do real stuff :D Apr 18 05:28:20 http://youtrack.jetbrains.com/issue/IDEA-84810 Apr 18 05:28:50 readme: used to Apr 18 05:28:51 on a mac now Apr 18 05:29:01 g00s: nice! Apr 18 05:29:07 JakeWharton: does it work for you at all on linux? Apr 18 05:29:15 I'm sure it must work to some extent Apr 18 05:29:18 yeah it worked well enough Apr 18 05:29:21 i used to use it for pure Java Apr 18 05:29:24 on mint it isn't doing so well Apr 18 05:29:30 i tried with 5 diff jdk versions too Apr 18 05:30:10 do i need a special form element for an answer box?? Apr 18 05:30:49 what's in the box?!? Apr 18 05:31:00 the answer will be a number Apr 18 05:32:03 http://www.youtube.com/watch?v=zRJcxMe1zWY Apr 18 05:33:26 jakewharton i got one better than that im bout to one up you Apr 18 05:33:28 android:inputType="number" Apr 18 05:33:28 in your EditText foolover Apr 18 05:33:29 http://www.youtube.com/watch?v=TAqZb52sgpU Apr 18 05:33:43 mine was pretty good Apr 18 05:33:46 if you watch the whole thing Apr 18 05:34:45 been so long since I saw that movie Apr 18 05:35:51 ya me 2 Apr 18 05:35:58 i took like 5lbs of hot tamales from work Apr 18 05:36:06 so good Apr 18 05:36:20 i have the text box as number but it will display the answer as a number Apr 18 05:37:16 foolover: protip: being specific as possible will get you better answers Apr 18 05:37:35 got a weird problem with my listview... Apr 18 05:37:44 QubeZ: the adapter still? Apr 18 05:38:09 paste teh codez Apr 18 05:38:53 i have a textview header that shows the dates (or labels) for grouping items in the listview. For date sorted, it works perfect... meaning I fling through the list and groups looks right. I then setup a "GTD" view which shows "Overdue, Today, Tomorrow, This Week, Later" headers and it looks perfect when I first enter the view and when I scroll slowly through the listview. Only time it gets messed up is when I fling fast through it. Apr 18 05:39:16 currently i have on my layout a number box my end result i need this box to display the answer i am working on a small calculator app Apr 18 05:39:30 its my second program aside from hello world Apr 18 05:40:17 here's the relevant piece of code: http://pastebin.com/yXprfVWv Apr 18 05:40:20 for xml layout of my program do i need a number box for the answer box or something else i know number boxes i would think would allow input from user this box i do not want user to be able to input anything Apr 18 05:40:39 again, works perfect when I first go into My Tasks listactivity and scroll slowly Apr 18 05:41:01 if I fling thorugh it fast, it gets all separated i.e. 2 items separated by 2 "This Week" header labels. When they should be grouped. Apr 18 05:43:26 QubeZ: where is the code getting called from, getView of your adapter? Apr 18 05:43:47 readme: in my bindView Apr 18 05:44:00 I am using the Romain Guy recommended way to handle this adapter... using viewholder pattern Apr 18 05:44:34 I have 3 views in my app - GTD view, Date sorted, Title sorted. Date and Title work perfectly. GTD is what I'm trying to implement and only breaks when I scroll through quickly. Apr 18 05:45:06 can't say what might be wrong without seeing the whole adapter Apr 18 05:45:32 I suspect something is wrong with synchronization Apr 18 05:46:06 possibly, just can't figure out why its 100% working for my other 2 views but not this one Apr 18 05:46:19 been driving me nuts, i've been stepping through the code for days Apr 18 05:46:21 whats different about them Apr 18 05:46:30 hey Apr 18 05:47:26 hey girrrrl Apr 18 05:47:50 readme: only handling the logic of separating out based on date.... so one main difference is that I have date comparisons that return "Today" or "This Week" etc.. based on where that task is in relation to today. Apr 18 05:48:11 so 2012-04-18 (today) then a task which is 2012-04-22 would be marked as This Week Apr 18 05:48:49 and again, the task is in the right place in relation to the header... its just the header is not being hidden at times when I fling fast resutling in duplicate headers shown (This Week shown twice for example) Apr 18 05:50:27 QubeZ: ah Apr 18 05:51:17 QubeZ: feel free to PM me with more code. I would like to see Utility.convertDateToGTD specifically Apr 18 05:51:27 after the fast fling, i slowly go to the top then go back to that same area and its working again... strange Apr 18 05:52:18 you have any static fields that you're accessing in that Utility.convertDateToGTD Apr 18 05:53:28 http://pastebin.com/GYQ0WNfN Apr 18 05:54:05 i didn't paste the calculateEndOfWeek() but its a simple method that just tells me how many days until the next Sunday so I know when "This Week" ends Apr 18 05:57:29 and the problem is that you see multiple "This Week" tags Apr 18 05:57:32 where you shouldn't? Apr 18 05:58:48 either that or even sometimes one of my takss that is dated 2012-04-24 shows up under "This Week" even though it should have the header "Later". My Log.v output shows the piece of code executing is correct becuase I specifically put a "prevDate not null, labels different" message in there however the code holder.dateHeader.setVisibility(View.VISIBLE); doesn't appear to run Apr 18 06:03:35 QubeZ: what screen is this in your app so I can look Apr 18 06:03:53 this is new functinality I'm adding for 1.5.0 Apr 18 06:04:00 oh Apr 18 06:04:02 good :) Apr 18 06:04:12 but its in My Tasks - if you choose for now, Date or Title sorted... you'll see the labeling works fine Apr 18 06:08:35 I can't figure out how to choose date/title sorted in my tasks Apr 18 06:08:43 there is some weird gesture control that draws on the screen though Apr 18 06:08:46 Menu -> Settings Apr 18 06:09:21 ya gesture allows you to filter tasks, left swipe (all), right swipe (today), draw 2 (today & tomorrow), draw 7 (next 7 days), draw M (month) Apr 18 06:09:35 so should the label be "Today" for tasks I created now? Apr 18 06:10:49 ya, but thats diff than what I am talking about in this new GTD view I'm implementing Apr 18 06:10:56 well, it's not Apr 18 06:10:58 it's the date time Apr 18 06:11:08 anyway Apr 18 06:11:10 the issue at hand Apr 18 06:11:16 but yes, in Date sorted mode, any task you add today will show Today, Wed Apr 18, 2012 Apr 18 06:11:23 readme: can you send me screenshot? Apr 18 06:11:24 ohh Apr 18 06:11:28 let me try date sort mode Apr 18 06:11:50 in date sort mode, it defaults to the time Apr 18 06:12:03 send me a screenshot Apr 18 06:15:23 IntelliJ somehow totally screwed up adb and ddms Apr 18 06:15:32 I might have to reboot, I have a defunct java process that wont go away Apr 18 06:15:47 readme: that sounds like Oracle's problem... Apr 18 06:15:54 Leeds: right now it's my problem Apr 18 06:15:58 ok, i haven't heard of any issues with the labeling in the production build of TDM Apr 18 06:16:08 readme: send me a screenshot when you get things in order Apr 18 06:16:11 QubeZ: the label appears as "2:04 pm" Apr 18 06:16:24 brb, going to reboot so I can use my tools again. Apr 18 06:16:29 readme: on the list item lower right ? thats what it should show Apr 18 06:16:39 but the label above the list item will show Today, Wed Apr 18 Apr 18 06:16:45 and group any tasks from today into that label Apr 18 06:16:51 label == header Apr 18 06:16:57 ah, ok Apr 18 06:17:21 thats what I thought at first but I was confused Apr 18 06:17:29 yup, so header is my issue with this GTD view. I should have clarified. The items within the Listview work fine since they are DB-backed Apr 18 06:20:31 nm, killall -9 adb fixed it Apr 18 06:20:37 anyway Apr 18 06:21:49 QubeZ: am I supposed to be able to use the gesture to show only todays tasks Apr 18 06:22:10 ah yeah Apr 18 06:22:12 i guess I am Apr 18 06:22:16 if you only want to see today's tasks, you can swipe right Apr 18 06:22:47 if you prefer a specific filter each time you enter My Tasks, like "Today" or "Next 7 Days", then you can set that in Settings Apr 18 06:23:12 TDM will honor that setting, then you can still gesture to other filters but your default filter upon entering My Tasks will be honored by your setting. Apr 18 06:25:55 QubeZ: when you see multiple "this week" are they next to each other vertically? Apr 18 06:26:23 yup, order is correct because I fetch my data from the DB using date sorted asc Apr 18 06:26:34 so just right on top of each other, with no list items between them? Apr 18 06:26:39 so evertying is in the right order, just labeling is getting messed up Apr 18 06:27:08 well its like "This Week" header -> Item -> "This Week" header -> Item when it shoudl be "This Week" header -> Item -> Item Apr 18 06:27:09 meaning there are two consecutive dateHeaders Apr 18 06:27:21 since both items are 2012-04-21 and 2012-04-22 i.e. This Week Apr 18 06:27:24 oh, I see Apr 18 06:27:35 so you're creating the "This week" header for each item that is this week? Apr 18 06:27:44 instead of just once, for all items, but only when you scroll fast? Apr 18 06:28:17 im not, I hide it when the label's are equal but for some reason my Log.v message is executing from the block of code as I can see its correct output in logcat but my holder.dateHeader.setVisibility(View.GONE); is not executing Apr 18 06:28:40 readme: right, when i scroll to the bottom quickly... its labeling gets messed up. I go to the top then scroll through slowly, its correct Apr 18 06:28:58 QubeZ: PM sent Apr 18 06:29:07 i think we are a bit out of the realm of common android problems ;) Apr 18 07:30:06 k3wl! a new sdk Apr 18 07:30:22 is it possible to attach sources to 3rd party jars? Apr 18 07:30:30 this wasn't possible with r17 Apr 18 07:35:57 Anyone know how I could create custom elements for a ListView, sort of like BaconReader has done? http://androinica.com/wp-content/plugins/apps-android/screenshots/com.onelouder.baconreader-0.png Apr 18 07:39:02 all of this time coding android and i still dont know why when i pop up an alert i get - $BadTokenException: Unable to add window -- token null is not for an application - anyone know how to avoid this? Apr 18 07:39:55 gaz`: maybe you used the wrong type of context Apr 18 07:40:15 this is an old one, i don't even remember the real reason any more Apr 18 07:40:58 well i have an object called Ism, I do Ism ism = new Ism(context,activity); then i do ism.popUpMenu(); in my code and it does Apr 18 07:40:59 dies Apr 18 07:41:09 is it becaus eive passe din activity and context into a new object or something Apr 18 07:41:39 android would be way easier without htis crap Apr 18 07:41:51 hampers you every step of the way this error Apr 18 07:41:54 well, maybe the context was not attached yet, like you did it before onCreate Apr 18 07:42:14 no it passes it over once i hit a button in the activity Apr 18 07:42:23 so its ready and not null Apr 18 07:47:13 gaz`: is this releavant? http://stackoverflow.com/questions/5796611/dialog-throwing-unable-to-add-window-token-null-is-not-for-an-application-wi Apr 18 07:47:29 yes Apr 18 07:47:32 been reading that thanks Apr 18 07:47:36 still investigating, cheers!! Apr 18 07:47:37 Hello guys, I just want to share that Android development is really cool :P Apr 18 07:47:51 :-) Number5 Apr 18 07:47:54 gaz`: thats what i meant, you were using the wrong type of context :D Apr 18 07:48:05 yeh i know g00s Apr 18 07:48:08 i think ur right Apr 18 07:48:43 why does getApplicationContext even exist Apr 18 07:48:45 its f00ked Apr 18 07:48:49 that was it g00! Apr 18 07:48:52 was using that Apr 18 07:48:55 instead of this Apr 18 07:48:58 hehe Apr 18 07:49:10 gaz`: because it is needed in other cases =) Apr 18 07:49:16 ah Apr 18 07:49:29 they should called it getSpecialContext or something :p Apr 18 07:50:20 I was debugging a problem that didn't exist for an hour just now Apr 18 07:50:22 gaz`: why? it is the application context. Apr 18 07:50:24 I made a big app, where one of the things is listen on a port for http request, than secure the requests and send it to our own server, than I get a response (as an html page) decrypt it and send it back to the browser (which is a webview within my app) and voila, the html page is shown correctly which is retrieved from a secured connection :D Apr 18 07:50:25 :) Apr 18 07:50:41 Turns out I was pulling an old file from adb over and over, thinking my code was doing something wrong Apr 18 07:51:35 That's why I like Android, it's not that difficult to achieve that, while on Windows, man man man, it's a pain in the *ss :P Apr 18 07:52:21 i have a ExpandableListActivity with a custom adapter to it. THe list entries are TextViews which are created programatic, how can i change this to make them in xml documents. I have tried to create a xml with only a root TextView but the app crashes Apr 18 07:52:57 Number5: listening on a port in windows isn't difficult :) Apr 18 08:12:39 im hspy Apr 18 08:12:41 happy Apr 18 08:12:57 got my UI android project integrated into libreoffice core :D Apr 18 08:13:05 now to move on with the next phase Apr 18 08:13:14 does that mean libreoffice for android will be out next week? ;) Apr 18 08:13:40 yay! Apr 18 08:14:09 haha nope not quite Leeds Apr 18 08:14:14 still lots of work and a long way to go Apr 18 08:14:38 Anyone know how I could create custom elements for a ListView, sort of like BaconReader has done? http://androinica.com/wp-content/plugins/apps-android/screenshots/com.onelouder.baconreader-0.png Apr 18 08:15:24 culmor30: have you tried googling for "custom elements listview"? Apr 18 08:16:11 baconreader ? Apr 18 08:16:21 * g00s sits up straight Apr 18 08:16:44 Is a reddit app Apr 18 08:16:44 hey g00s Apr 18 08:16:56 hello eagles0513875_ Apr 18 08:17:21 g00s: finally got the android ui project i integrated into the LibreOffice master branch have 2 other people willing to help out with that development :) Apr 18 08:17:36 awesome ! Apr 18 08:17:39 eagles0513875_: a full port to android? :) Apr 18 08:17:47 monsti: yes but still ways ways off Apr 18 08:17:56 right now it can be compiled for android but it doesnt have a UI yet Apr 18 08:18:00 happy birthday :) Apr 18 08:18:06 even an iOS port too Apr 18 08:18:26 guys Apr 18 08:18:28 write me a gui for r :) Apr 18 08:18:30 i can dual boot my phone Apr 18 08:18:31 am i cool yet Apr 18 08:18:32 (r-project.org) Apr 18 08:19:01 monsti: next phase is for me create a file explorer that will search ones phone or memory card for files with file formats that LibreOffice supports Apr 18 08:19:06 and open them for now Apr 18 08:19:11 thats at least phase one Apr 18 08:19:21 culmor30: ? Apr 18 08:19:50 today i am going to install the new sdk r19 and try if google did their homework! Apr 18 08:19:58 i need to update :D Apr 18 08:20:01 will do that now actually Apr 18 08:20:10 in r18 i wasn't able to attache source to 3rd party jars Apr 18 08:20:16 which is a 100% full nogo Apr 18 08:20:37 Leeds: I see that I need to put items into a ListAdapter, but I'm unsure of how I actually create a custom View to populate this Apr 18 08:20:40 btw monsti if you really want to laugh im compiling the 4gb code base on an intel atom n450 hyperthreaded cpu in a netbook with 2gb of ram Apr 18 08:20:56 i know im nuts :P Apr 18 08:21:05 i really don't understand why their QA guys didn't whip the coders Apr 18 08:21:07 culmor30: and you've browsed the appropriate docs on d.android.com and didn't find anything? Apr 18 08:21:14 looks like you can only get 18 via the web site, 19 has to come through the updater. i had issues with the updater fucking everything up though Apr 18 08:21:50 eagles0513875_: yeah that's contributing to "how to waste time" - reminds me on towers of hanoi in vim macros :) Apr 18 08:21:53 What page do you suggest I look at? I'm looking at the listview tutorial pages and docs now, but my connection is very slow Apr 18 08:22:26 maybe someone could help me. I have a ServiceIntent which reads some data from a webservice and stores this data to SharedPreferences. I've also an OnSharedPreferenceChangeListener in my main activity in which I update the screen. Using Android 2.1 in the emulator if i call prefs.edit.commit() i get an "android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views"-Exception. If I c Apr 18 08:22:26 omment out my screen update, it works fine. Everything works fine with Android 4.X. Apr 18 08:23:03 wreiner: you have to run ui updates in the ui thread - google for this Apr 18 08:23:11 culmor30: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html Apr 18 08:23:25 wreiner: e.g. this can be done by a handler or other ways Apr 18 08:23:48 monsti: atm my desktop is being used for gaming i might try and see if i can get parts for a bday present to build a new one and turn my current one into a development box Apr 18 08:23:57 Leeds: Thanks, this looks highly relevant. I'll start here :) Apr 18 08:24:32 eagles0513875_: you really remind me on some big thing :) Apr 18 08:24:33 monsti: i tried to get my head around using a helper but with no luck so far :) Apr 18 08:24:43 i actually don't have any waste of time projects! i really need one Apr 18 08:24:46 monsti: i try google for what you stated Apr 18 08:25:08 monsti: mine isnt a waste of time. developing for windows is lol. Apr 18 08:25:36 eagles0513875_: maybe installing osx 10.7 on my netbook would do it :) Apr 18 08:25:39 4 hour build time isnt bad and that was for the initial build this is an incremental build Apr 18 08:25:50 monsti: i have mac hardware so i dont need hackintosh :p Apr 18 08:26:18 well i don't give apple money :) Apr 18 08:26:48 i would prefer to give it to apple then microshit Apr 18 08:27:03 yeah :))) Apr 18 08:27:18 i only use windows for gaming Apr 18 08:27:24 wow my sdk update is done :) Apr 18 08:27:39 afk - updating the projects Apr 18 08:27:44 They're equally objectionable, IMO. Just more compatible software for Windows Apr 18 08:28:01 fyi monsti this netbook is running kubuntu i dumped windows 7 starter Apr 18 08:28:06 culmor30: things are changing imho Apr 18 08:28:10 I have a bit of a personal bias against Apple after they voided my expensive warranty on my expensive mbp for no reason, though. Apr 18 08:28:48 O_O Apr 18 08:28:56 get a windows laptop and throw linux on it Apr 18 08:28:57 (bit of dried coke on the aluminum case == water damage, warranty void) Apr 18 08:29:05 O_O Apr 18 08:29:10 what a senseless waste of coke Apr 18 08:29:23 have to say though they are built rock solid Apr 18 08:29:23 It was my dad, too. I didn't even do it Apr 18 08:29:24 culmor30: advice: don't do drugs on your laptop Apr 18 08:29:40 yeah Apr 18 08:29:43 culmor30: he should have to pay Apr 18 08:29:53 to fix it since he was the one that dropped it Apr 18 08:29:55 i keep a hunter s thompson novel nearby for when i need something to do a line off Apr 18 08:31:11 Leeds: at least it seemed to run a bit faster afterward :p Apr 18 08:31:44 culmor30: speed kills? Apr 18 08:32:09 No, it was coke. Apr 18 08:33:05 storkme: I just use my tablet now. Nice smooth surface, and I can test my app while I'm getting my fix Apr 18 08:33:46 imma blow everyones mind before I go use the restroom & I want answers when I get back Apr 18 08:34:35 here goes, HOW DOES THE BRAIN RECORD MEMORIES & HOW DOES THE BRAIN HAVE ENOUGH SPACE ON IT TO DO THIS FOREVER UNLESS OF COURSE YOU GET ALTIEMERS & IS ALTIEMERS LIKE DEFRAGGING UR BRAIN CUZ ITS ERROR OUT OF MEMORY SPACE? Apr 18 08:34:51 fair enough Apr 18 08:35:43 You don't remember everything you've ever done... it's just key events. I can't even remember what I ate for breakfast yesterday. Apr 18 08:36:04 <[deXter]> Well, I remember cause I usually have the same thing for breakfast everyday. :P Apr 18 08:36:27 * culmor30 is considering a Cognitive Science minor Apr 18 08:36:34 <[deXter]> Aww Leeds, you should have kicked him with a nice part message like.. "OUT OF MEMORY" Apr 18 08:37:43 guys do you have this kind of issue with the new Facebook SDK for android? http://stackoverflow.com/questions/10202245/facebook-api-on-android-blank-screen-instead-of-auth Apr 18 08:38:07 wow, that was profound Apr 18 08:38:10 not Apr 18 08:39:26 stermi: Tried a different emulator/device/connection? Apr 18 08:39:35 monsti: is this what you had in mind? http://stackoverflow.com/questions/4369537/update-ui-from-thread Apr 18 08:39:45 I've tryed on a galaxy nexus and on an xperia mini Apr 18 08:39:52 that is not my trhead Apr 18 08:39:57 but I've the same problem Apr 18 08:40:03 ahh Apr 18 08:40:04 my app is already online using the old sdk Apr 18 08:40:07 and it's working Apr 18 08:40:15 I upgraded to the new one, and I'm testing Apr 18 08:40:29 hop on a neighbor's wifi, perhaps? Apr 18 08:41:00 wreiner: yeah that's the way! Apr 18 08:41:51 monsti: okay i'll try that - thanks Apr 18 08:43:21 wreiner: Use this example too, I've been doing AsyncTask for the last couple of days and this is how you get it to survive an orientation change (if applicable): http://evancharlton.com/thoughts/rotating-async-tasks Apr 18 08:44:08 culmor30: thx i'll check that too Apr 18 08:45:23 Does this channel have a website or anything? Apr 18 08:46:37 google.com? Apr 18 08:48:01 culmor30: yes, d.android.com Apr 18 08:49:20 So this is the "official" android developer community, then? Apr 18 08:50:49 there is a mailing list/google-group which is probably the most official... and stackexchange is also somewhat official... this channel is probably semi-official at best, nowadays :) Apr 18 08:51:18 although there is still a reference to this channel on d.android.com Apr 18 08:51:40 oh? Apr 18 08:52:17 monsti: yeeha :D Apr 18 08:53:14 Well that's neat. Apr 18 08:53:16 culmor30: i don't unterstand how i should implement this with async task Apr 18 08:53:36 What are you having trouble with? Apr 18 08:53:48 i stated it above Apr 18 08:53:51 let me scroll Apr 18 08:53:51 :) Apr 18 08:54:11 "I have a ServiceIntent which reads some data from a webservice and stores this data to SharedPreferences. I've also an OnSharedPreferenceChangeListener in my main activity in which I update the screen. Using Android 2.1 in the emulator if i call prefs.edit.commit() i get an "android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views"-Exception. If I comment out my screen update, Apr 18 08:54:11 it works fine. Everything works fine with Android 4.X." Apr 18 08:55:37 You'll Override the doInBackground method and do all your long operations in there (accessing the web service) Apr 18 08:56:06 oh i'm already using a serviceintent for that Apr 18 08:56:29 Leeds: http://source.android.com/community/index.html Apr 18 08:56:37 Fairly official tbh Apr 18 08:56:47 but the serviceintent is called by some broadcastreceivers too Apr 18 08:56:53 "We maintain two official IRC channels on irc.freenode.net (access via the web at freenode webchat)" Apr 18 08:57:32 Knossos: yes, I know - but there's very little Google activity around here nowadays - a lot less than there used to be... most of the active chanops aren't googlers, for example Apr 18 08:58:23 wreiner: you obviously touch the gui views on the wrong thread. To fix, do the changes on the correct thread. Apr 18 08:58:24 Hi, has anyone tried running valgrind on android browser? Been trying it, but browser never gets exec'ed via valgrind logwrapper Apr 18 08:58:30 wreiner: Does the serviceintent operate in another thread? Apr 18 08:58:40 Just started android a few days ago myself and I haven't had to use that yet. Apr 18 08:59:01 if i understand it correctly it's a new thread Apr 18 08:59:36 Oh, it's a service, looks like Apr 18 08:59:43 So you can't do UI updates from there Apr 18 08:59:44 Leeds: I think that happens with any developer channel to be honest. It starts out with lots of devs. Then they start getting badgered more and more as more users appear. They find then that they get a lot less work done, and so they end up leaving. Apr 18 08:59:46 appel1: yes therefor i now use the solution suggested by monsti Apr 18 09:00:10 yes but i need to use the shared preferences Apr 18 09:00:36 Unfortunately I'm not familiar with that :( Apr 18 09:00:39 wreiner: a handler can send messages to the threads Apr 18 09:00:39 or something is terribly wrong with my code :) Apr 18 09:00:48 I know asynctask pretty well now, though Apr 18 09:00:49 Knossos: that has happened - but I think more to the point, nobody was even (AFAIK) tasked with or paid for dealing with IRC, so it's totally reasonable for them to choose not to waste time here :) Apr 18 09:00:54 wreiner: so you've solved your problem? Apr 18 09:01:06 yes i think so Apr 18 09:01:34 i thought culmor30s way would perhaps also be good to have a look at :) Apr 18 09:01:40 Does it not work on earlier versions than 4.0? Apr 18 09:01:48 Perhaps you need one of the support packages Apr 18 09:01:53 nope it does only with runOnUiThread stuff Apr 18 09:02:11 as mentioned in the post on stack overflow Apr 18 09:02:21 if you want i can create a snippet an paste it to pastebin? Apr 18 09:03:04 I'm in over my head now, I'm afraid. Perhaps someone else will know, though Apr 18 09:03:27 And if not, I'll be doing some service things in a few days, so I might know then. Apr 18 09:03:35 appel1, That's true, but on Android it just works easily or it's because I have a certain level of experience in programming ;-) Apr 18 09:04:27 i think it's already working now so for now no need to help - the snippet would only be for clarification of my (suggested by monstis) solution :) Apr 18 09:04:43 Ah, okay Apr 18 09:04:44 Number5: I doubt it would take me much time to implement something like that on Windows. So it is probably easier on Android for you because you know Android and not Windows ;) Apr 18 09:05:20 How difficult would it be to port a not-terribly-complicated android app to ios for money? Apr 18 09:05:35 probably not very hard if you have a mac Apr 18 09:05:37 If anyone has any experience with that Apr 18 09:05:44 just poke around in xcode for a bit Apr 18 09:05:51 appel1, I started programming on Windows 5 years ago. I start developing for android just a few months ago :) Apr 18 09:06:36 I'll have to look at that sometime. I'm writing an (unofficial but much needed) app for my university. Apr 18 09:07:32 is there any kind of support package for calendaractivity like the fragment support package? Apr 18 09:07:44 yeah - the sdk r18 works :) Apr 18 09:07:51 The android platform is a well thought design, whith very good documentations and guides. I can't say that for Windows Apr 18 09:08:10 Number5: still takes about the same amount of code to do the same thing on both platforms. It isn't very difficult. Apr 18 09:08:14 Number5: adt 20 will bring us a property panel :) Apr 18 09:08:25 which was included in visual studio 7 Apr 18 09:08:35 i can get calendaractivity in android 2.3 wit sdk r18? Apr 18 09:08:43 monsti, don't understand what you mean Apr 18 09:08:51 Number5: i am still looking for min/max for a date/time picker :) Apr 18 09:08:53 aaah Apr 18 09:09:10 :) Apr 18 09:09:11 Number5: maybe this will be available in android 7.0 Apr 18 09:09:14 Number5: yeah, it is easy to get bogged down with legacy stuff on Windows. But then I'm sure Android will have the same problem in 10 years ;) Apr 18 09:09:22 appel1: :))) Apr 18 09:10:06 appel1, I don't know, there's already some difference between android 4 and android 1.6 Apr 18 09:10:26 Number5: yes, and it'll only get worse :) Apr 18 09:10:27 like fragments to name one Apr 18 09:11:05 appel1, anyway, my experience with Android is much better than with Windows Apr 18 09:11:35 though I have to admit they improved it with .NET and C#, but still. Apr 18 09:12:18 question about windows Apr 18 09:12:34 Number5: i don't like fragments Apr 18 09:12:34 well first off why does trying to install new hardware manually still bring up an A:\ drive prompt in windows 7 Apr 18 09:12:46 Number5: you can't nest them - so we created our own concept Apr 18 09:12:47 Number5: yeah, you can do a lot less on Android :) and still a lot of devs can't follow the most basic best preactices when it comes to Android app design. Apr 18 09:13:00 and secondly why can't i make folders with periods in front even tho i can view them and change around the files in them and even rename them (but i can't rename them unless i take the period out) Apr 18 09:13:26 WHY Apr 18 09:13:34 Shamisen: legacy/backwards compatibility issues probably :) Apr 18 09:14:11 Shamisen: question about you: why are you moaning about Windows in #android-dev? Apr 18 09:15:15 umm because fuck windows Apr 18 09:16:07 http://www.ubuntu.com/ problem solved. now back to android Apr 18 09:16:17 ... Apr 18 09:19:02 * monsti is happy :) r18 wis up and working with my project Apr 18 09:22:45 monsti: i just upgraded Apr 18 09:22:51 onto the next phase of my project hehe Apr 18 09:37:04 Hi all..I got the list of App name, Package name & Icon of installed application in database, Now I want to interception with installed application and database. Suppose any application delete from device then I want changes in Database. any one please throw some light on it Apr 18 09:37:11 I have a question if i have an android project already can I add a normal java JUnit test java file or do i have to do somethign special Apr 18 09:39:24 I have a question if i have an android project already can I add a normal java JUnit test java file or do i have to do somethign special Apr 18 09:41:27 eagles0513875_: tried reading the documentation? http://developer.android.com/guide/developing/testing/index.html Apr 18 09:42:05 now i have :D and will Apr 18 09:53:11 somehow a dialog im making gets null when its still up so it cant be dismissed, any generic way to kill all dialogs up? Apr 18 09:56:51 I had a lot of trouble with dialogs the othre day Apr 18 09:56:51 other* Apr 18 09:57:07 Are you losing the reference to the activity which created it? Apr 18 09:57:15 @chithra1: you must recreate your app list using BroadcastReceaver when you get message like ACTION_PACKAGE_ADDED, ACTION_PACKAGE_REMOVED and ACTION_PACKAGE_CHANGED Apr 18 09:58:04 in my Launcher it works perfect Apr 18 09:58:25 culmor30 maybe! Apr 18 09:58:31 cant get it to go away Apr 18 09:58:44 How are you creating it? Apr 18 09:58:55 Managed or unmanaged? Apr 18 09:59:17 m_ProgressDialog = ProgressDialog.show(this, "Please wait...", "Retrieving data ...", true); Apr 18 09:59:23 ive just moved this to oncreatedialog Apr 18 09:59:28 so i can use removeDialog(0) Apr 18 09:59:32 but even thats not happening Apr 18 09:59:37 dismissDialog(0) Apr 18 10:00:04 Put your onCreateDialog on pastebin, lemme see Apr 18 10:00:34 @kselos: thanks a lot Apr 18 10:01:31 its literally just that one line culmor30 Apr 18 10:01:39 and a call to super Apr 18 10:03:02 Here's what mine looks like Apr 18 10:03:04 http://pastebin.com/cU8hdGrB Apr 18 10:03:25 Make sure you're not actually displaying the dialog in the onCreateDialog method, only returning it Apr 18 10:04:36 now when i try to dissmiss i get no dialog with id 0 was evern shown Apr 18 10:04:52 Are you dismissing from the same activity? Apr 18 10:05:03 or using AsyncTask? Apr 18 10:05:07 same activity Apr 18 10:06:13 yeh i was showing in there too Apr 18 10:06:15 checkign now Apr 18 10:06:55 I used this api demo as a reference making mine: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ProgressBar3.html Apr 18 10:07:24 nice Apr 18 10:07:33 Say I need to find out which Activity is the "tab selector" in the ICS browser. Is there a quick way to find that? Apr 18 10:07:36 Only thing I can think is that you're trying to dismiss before it is created Apr 18 10:07:55 is it NavScreen? Apr 18 10:08:37 heh, looks like it is :p Apr 18 10:09:17 yeh but its still on scren culmor30 Apr 18 10:10:09 Are you running an AsyncTask or switching activities at all? Apr 18 10:11:43 yeh i have a thread Apr 18 10:11:51 to grab stuf foff net Apr 18 10:12:23 but it doesnt happen in there Apr 18 10:12:27 Are you dismissing the dialog from the task's onPostExecute method? Apr 18 10:12:33 no Apr 18 10:12:46 How do you decide when it needs to be closed? Apr 18 10:13:24 actually i am dismissing it in the thread in this event, this is where data fails to download so i do it in a catch but thats within a thread Apr 18 10:14:16 You need to have a painter to the activity that created the dialog, and then dismiss it with creatorActivity.dismissDialog(id) Apr 18 10:14:21 A pointer, rather Apr 18 10:14:31 yeh i just tried that Apr 18 10:14:33 but its acting weird Apr 18 10:14:45 my code is a mes snwo with too much experimentation Apr 18 10:14:46 hehe Apr 18 10:15:07 http://evancharlton.com/thoughts/rotating-async-tasks Apr 18 10:15:49 ^ very good reference for structuring an AsyncTask to survive oientation changes, but this also gives you an always-working pointer to the "creator" activity Apr 18 10:16:47 use fragments, set retainInstance = true, enjoy your asynctask member in fragment. Apr 18 10:16:48 If a new instance of that activity is created while the thread is running, see how it updates the pointer of the thread in onCreate() ? Apr 18 10:17:00 yeh Apr 18 10:18:41 greetings to all! I am trying to build and app that runs when the phone is idle. Scenario: "Using the phone, putting it down, after X seconds the app starts (the screen is turned on)". is there a screen listener but NOT for my activity, but for android? Apr 18 10:18:49 Do fragments make that easier, alankila? I spent a whole day figuring that out. Apr 18 10:19:04 they don't necessarily get recreated in an orientation change Apr 18 10:19:11 because the onCreate and onCreateView steps are separate Apr 18 10:19:31 asynctask only creates its view tree in onCreate, which is why the whole instance has to go. It's a mistake of activity design that fragments fixed. Apr 18 10:19:56 although I suppose they could call onDestroy and then just reuse the same instance right afterwards ... would be strange, but better Apr 18 10:20:35 I'm targeting 2.2 with my current project so I've not learned fragments yet Apr 18 10:21:08 But I understand the concept Apr 18 10:25:06 oh yes I did mean fragment above, not asynctask. Jesus. Apr 18 10:26:44 huh? Apr 18 10:26:52 @kselos: it will be more helpful for me if you give some example application implementing the same Apr 18 10:28:51 getting Connection refused when trying socket.connect() for BlueToothSocket. Any ideas? Apr 18 10:28:59 hello guys! Does anyone knows an answer or can point me the way to do it? http://stackoverflow.com/questions/10207524/determine-if-the-screen-is-idle-not-in-activity-on-android Apr 18 10:30:54 cmpahar, you might wanna use the accelerometers? Apr 18 10:31:25 rokk, you just blow my mind! you are right! Apr 18 10:31:47 :) Apr 18 10:32:04 but i dont think that this is the right way Apr 18 10:32:15 :) Apr 18 10:32:18 I mean that if I put the phone down a play a game?! Apr 18 10:32:35 s/a/and/ Apr 18 10:33:30 http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/ ?? Apr 18 10:35:39 rokk, i read it but i dont think that fits my case Apr 18 10:35:49 rokk, although i will try it out :) thanks Apr 18 10:36:12 I don't rly understand what you are after :p Apr 18 10:39:47 rokk, look. You use your phone, right? After you finish using it, you put it down (somewhere) with the screen turned on. After that normally in 60 sec the screen turns off, right? Before the screen turn off i want to launch a video Apr 18 10:41:24 man the millions of times ive forgotten to add the internet permission >.< Apr 18 10:45:17 cmpahar, aha, before the screen turns off? Apr 18 10:45:20 Damn bluscreen. (I'm culmor30, btw) Apr 18 10:45:30 rokk, exactly Apr 18 10:46:13 why not just check the screen-off timer value and make a countdown? Apr 18 10:46:39 and if someone is using the phone? Apr 18 10:46:59 your countdown starts from the beginning value again Apr 18 10:47:20 how can i determine that someone is using the phone (not my app) Apr 18 10:47:33 with intents from android os Apr 18 10:47:58 do you have link?! Apr 18 10:48:09 this will help me a lot :D Apr 18 10:48:26 http://developer.android.com/reference/android/content/Intent.html Apr 18 10:48:40 make a reciever for some brodcast actions Apr 18 10:49:35 thaaaanks! Apr 18 10:49:41 np Apr 18 10:50:04 With a TextView, is there a way for my to specift that I would prefer text be cut off at the end of the screen rather than wrapped to a new line? Apr 18 10:50:14 me to specify* damn Apr 18 10:54:48 Never mind, I found the setEllipsize property Apr 18 11:18:05 Hey guys Apr 18 11:18:20 I've traveled over the sea of the internet in search of a answer Apr 18 11:18:25 How does one learn the Android API? Apr 18 11:20:04 http://d.android.com Apr 18 11:20:06 start reading Apr 18 11:20:09 then do something Apr 18 11:20:12 more reading and doing Apr 18 11:20:17 and then magically you've learned some Apr 18 11:21:05 I bought a book about it and that helped me get started. Now that I know the basics I can learn on my own Apr 18 11:21:12 Also helps to know Java Apr 18 11:21:25 As in, it's required that you know Java Apr 18 11:22:17 or, if you know how programming languages work, but not java, learn the basic structure of java, then let your IDE's autocomplete and google do the rest :P Apr 18 11:23:09 Any OOP experience should get you started pretty quickly I'd think Apr 18 11:23:29 is there a lego mindstorms for java? :P Apr 18 11:23:57 http://www.kickstarter.com/projects/ologic/oddwerx-autonomous-smartphone-robots Apr 18 11:24:43 I meant more in the lines of this http://www.techno-stuff.com/prog-1.JPG Apr 18 11:25:11 My parents were too poor to get me that when I was a kid :( Apr 18 11:26:13 I got a bit sad that line tracking worked like "if dark turn right, else turn left" Apr 18 11:26:28 when I learned that* :P Apr 18 11:27:04 hah Apr 18 11:31:36 I freaking love jsoup Apr 18 11:31:55 Wrote a whole page parse script in one go, worked perfectly Apr 18 11:34:59 zeeZ: Yeah, I have some basic experience in C++ and quite alot in Lua, I don't know if that will help me with Java though. Apr 18 11:35:44 Do you know the basics of object-oriented programming? Java and C++ are somewhat similar Apr 18 11:36:01 classes, lots of them Apr 18 11:36:13 and casting, classes and casting, that's all you need :P Apr 18 11:36:44 Well... and some methods, for good measure Apr 18 11:36:53 (but I believe they are "functions" in c++) Apr 18 11:40:03 Ugh, casting. Apr 18 11:40:13 Not ugh: Duck Typing. Apr 18 11:41:16 if a view is GONE, does it still consume cpu time etc when movign around the stuff Apr 18 11:42:03 If "GONE" is just "hidden but available to bring back when you like," I'd imagine some CPU is still used when processing it Apr 18 11:42:19 yeh its hard to say Apr 18 11:42:22 i think ur prob right Apr 18 11:42:31 could be very powerful if it didnt tho Apr 18 11:42:36 Perhaps less, because there's no graphical rendering going on for it Apr 18 11:42:42 yeh! Apr 18 11:42:45 ill try this anyway and see Apr 18 11:48:29 JavaDog: no, GONE is essentially the same as display: none; in CSS Apr 18 11:48:45 the layout is rendered as if the item is not there Apr 18 11:49:01 But the item can still be brought back, yeah? Apr 18 11:49:15 JavaDog: yes, which will force a relayout Apr 18 11:49:42 Ah okay, so it would save some processing time to use GONE then Apr 18 11:49:50 no, not really Apr 18 11:49:57 at least, no significant amounts Apr 18 11:50:15 ah Apr 18 11:50:19 nevermind, misread Apr 18 11:50:27 Ah Apr 18 12:07:34 Is the fastest regex solution on android java's inbuilt stuff? Apr 18 12:13:25 any clue? http://stackoverflow.com/questions/10207500/connection-refused-on-bluetooth-socket-connect-android Apr 18 12:15:17 hello Apr 18 12:16:18 How do i run a logcat through ADB while the device is booting? I get bootloops prior to the bootanimation... All i get is Apr 18 12:16:58 just run "adb logcat", no? Apr 18 12:17:49 "adb -d logcat" to force adb to look for a physical device, if you're running an emulator Apr 18 12:17:57 as i said, all i get is Apr 18 12:18:06 Can you get into recovery? Apr 18 12:18:11 yeap Apr 18 12:18:41 Perhaps logging hasn't started at that point Apr 18 12:18:54 then how do i know what's going wrong and im getting bootloops>? Apr 18 12:18:54 Or maybe it's stored in a file someplace, rather than logged to logcat Apr 18 12:19:08 im running it on a physical device Apr 18 12:19:10 not an emulator Apr 18 12:19:53 Check for a boot.log file in /var/log and /dev/log/main Apr 18 12:21:57 ok gimme 5 Apr 18 12:26:56 hmmm... Apr 18 12:27:01 Now im getting another eerror Apr 18 12:27:17 oh Apr 18 12:27:18 1 min Apr 18 12:27:50 nope. Getting an error while in recovery, and trying to run adb shell Apr 18 12:28:07 exec '/system/bin/sh' failed: no such file or directory (2) Apr 18 12:30:11 and i also cant find a boot.log file while trying to adb pull Apr 18 12:30:38 Can't run the shell? Apr 18 12:30:42 nope Apr 18 12:30:49 Might need to just flash a new rom Apr 18 12:31:04 Hi guys I have a noobish early morning question Apr 18 12:31:26 isnt there any other way of finding out how to see whats going wrong during boot? Apr 18 12:31:46 Well if the shell can't start, logging can't start either Apr 18 12:31:50 Is there any way to "ghetto rig"/display a loading screen/loading image during the start up of your app without having to do the working in another thread? Apr 18 12:32:51 mantas322: If you do the work in the UI thread, Android will see that your app hasn't responded to input for a while and will show the force close screen Apr 18 12:34:34 mantas322: Try using AsyncTask to do the work while your app loads. It's not too difficult to set up. Apr 18 12:41:54 I was afraid you'd recommedn that javadog Apr 18 12:42:07 is there no way!? I was just display a little image Apr 18 12:42:20 cause all i see is black screen for 5-6 seconds whilst my app loads Apr 18 12:44:36 Your app? Apr 18 12:44:56 Oh, sorry. Confusing conversations Apr 18 12:45:32 Yes, a task that takes 5-6 seconds to load should be processed in another thread or AsyncTask Apr 18 12:46:10 One problem I ran into when learning AsyncTask yesterday was screen orientation changes Apr 18 12:46:12 I've got a map with multiple overlays (one for blue points, one for red points, etc). I want to be able to filter / choose what to show on the map. Just blue points or red and yellow, or all points. I've got all the points in different "methods" and I've "included" them in oncreate like this yellowpoinst(); bluepoints(); Apr 18 12:46:25 mantas322: This guide is excellent: http://evancharlton.com/thoughts/rotating-async-tasks Apr 18 12:46:30 How can I create this filter? Any ideas? Apr 18 12:48:14 I've got to go to bed though. Wish you luck! I'll be back in several hours, but there are plenty of awesome people here who can also help out :) Apr 18 12:48:32 How do extract a tarball in android from the adb shell? i have root access Apr 18 12:49:15 nimesh_accenture: You need busybox Apr 18 12:49:55 thx javadog... so how do i get it and install it? Apr 18 12:50:00 Then you can use the command: busybox tar cvf /tarball.tar /destination (I'm pretty sure) Apr 18 12:50:11 On the market, get any "Busybox installer" application Apr 18 12:50:29 https://play.google.com/store/apps/details?id=stericson.busybox&hl=en Apr 18 12:50:41 unfortunately ... i only have a shell and no internet Apr 18 12:50:54 ah Apr 18 12:51:28 http://omappedia.org/wiki/Android_Getting_Started#Installing_Busybox_to_filesystem Apr 18 12:51:54 I've really got to run though, see you later D: Apr 18 12:53:48 thanks javadog Apr 18 12:54:47 javadog:thx Apr 18 12:55:05 javadog feeds off of people thanking him Apr 18 12:55:12 its his ego diet Apr 18 12:56:52 guys Apr 18 12:57:12 have you developed an app with Facebook connect? can you please logout and login? Does it works? Apr 18 13:09:52 hi, I'm trying to login to GTalk using asmack library with x-google-token authentication protocol. It works great with auth key obtained from https://www.google.com/accounts/ClientLogin?accountType=GOOGLE&Email=xxxxxx@gmail.com&Passwd=xxxxxx&service=mail, but if i obtain auth key from AccountManager, authentication fails with "SASL authentication X-GOOGLE-TOKEN failed: not-authorized:". Has anyone a hint of why it fails? Apr 18 13:12:38 I'm pretty sure I'm building the token correctly: Base64.encodeToString(new String('\0'+email+'\0'+authKey).getBytes("UTF-8"), false) Apr 18 13:14:29 I'm using authTokenType="gmail" from accountManager.getAuthToken, and service=mail from ClientLogin. It should work :S Apr 18 13:15:08 the service name should be the same for both Apr 18 13:15:29 Sorry, that was a type, authTokenType="mail" Apr 18 13:15:54 It's the same for both Apr 18 13:24:37 What is "wxga800" - is there a list of what these represent? Apr 18 13:25:15 Is there a URI for linking to the market from within an app and bringing the Rate & Review dialog up? Apr 18 13:25:48 theneb, only for linking to the market Apr 18 13:25:59 Okay, shame we can't chuck them to that screen. Apr 18 13:33:08 why the basic lecture of something is often called "101" (one o one)? Apr 18 13:33:32 everythingWorks: thats how some US universities group their courses... intro courses are 101 Apr 18 13:34:07 Ge0rG: Why do they start with 101, not with 1? :) Apr 18 13:35:32 everythingWorks: because 101 was the torture chamber in 1984? Apr 18 13:35:44 when sorting a listview is it possible to let the arrayadapter decide how to sort it like overiding a sorting method or something? I have 3 diffrent array adapters that contains 3 diffrent items that all inherites from MyItem, but i want them to be sorted by diffrent criteria. so i cant use "adapter.sort(new Comparator) {...}" Apr 18 13:35:48 first year courses start with 100, the first in a sequence of related courses is 1, hence 101 Apr 18 13:35:55 Ge0rG: o.o Apr 18 13:36:21 wongk: understood, thanks :) Apr 18 13:36:31 everythingWorks: http://en.wikipedia.org/wiki/Course_numbering_in_North_America Apr 18 13:36:42 so how bout that Android? ;) Apr 18 13:37:03 SO HOW BOUT THEM MOBILE DEVICES Apr 18 13:37:10 THEY SURE ARE INTERESTING TO DEVELOP FOR Apr 18 13:37:13 so loud Apr 18 13:37:14 thanks Ge0rG Apr 18 13:38:38 kempe: sounds like ArrayAdapter doens't meet your needs Apr 18 13:40:32 this is where proxy adapters or view-specific sorting come in handy, but i don't think android offers either? Apr 18 13:40:57 you can, uh, write your own adapter.... Apr 18 13:41:14 just sayin. Apr 18 13:41:23 (in fact you should probably do this) Apr 18 13:41:26 yeah, each would have a copy of the list Apr 18 13:41:34 wongk: to bad, Apr 18 13:41:56 lov: yeah i might have to, was just checkjing if it would be possible with the existing one Apr 18 13:42:03 but if you just want to copy the list, he wouldn't need his own adapter Apr 18 13:42:34 kempe, can't you just sort the array? Apr 18 13:42:53 and call notifyDatasetChanged IIRC Apr 18 13:43:54 aleb: yeah but then i have to do it with an ugly if-statment depending if contains item1, item2 or item3 and so on Apr 18 13:44:22 when working with bluetooth devices, like headsets. Do they work as a server or a client in the connection phase? Apr 18 13:44:40 i was under the impression all 3 adapters where using the same array/list? Apr 18 13:45:41 yeah the do but they contain diffrent items depending on what activity is the childactivity Apr 18 13:46:02 if they contain different items, they are not the same array Apr 18 13:46:03 kempe, and otherwise that logic would be in ArrayAdapter? I don't understand Apr 18 13:46:15 so what exactly is the problem? Apr 18 13:48:08 well nothing realy, i could sove it but i wanted to know if you could do the sort directley in the adapter Apr 18 13:48:41 kempe: yes, you can. You just have to subclass the adapter and modify how it uses the elements. Apr 18 13:48:59 it's your code, structure it how you like Apr 18 13:49:15 I cant seem to find in the documentation on android's AudioRecord, wether read() read's result is signed or unsigned. Does anyone know where i can find this documented? (i'm writing a report so ideas to sources and not only the answer would be realy great) Apr 18 13:49:21 wongk: thanks =) Apr 18 13:49:28 kempe: depending on your backing, it could be as simple as implementing the Sortable interface and using Arrays.sort as appropriate. Apr 18 13:49:47 lov: ok tanks, i will try Apr 18 13:49:58 To answer my own question, for details about wxga800 see android-sdk-linux/platforms/android-15/skins/WXGA800 Apr 18 13:50:44 As4xk: I believe 8bit is unsigned, 16bit is signed. Apr 18 13:51:03 As4xk: I honestly don't know offhand, though. Apr 18 13:52:45 lov: Ok. Thanks Apr 18 13:53:45 As4xk: you could always try writing a simple app and testing yourself :> Apr 18 13:56:07 lov: Yes. i guess i'l do that :) Apr 18 13:59:15 I have a Button on top of a VideoView, obviously as the video starts playing the video moves on top of the button. What can I do to ensure the button stays on top? Apr 18 14:01:57 Yo, how can I block a gallery. I don't want to let the user move the gallery and click on it... What is the method? I didn't found Apr 18 14:07:25 Hmmm, the toggle state of a ButtonImage works fine Apr 18 14:07:31 It's just the standard view Apr 18 14:13:38 Or on a ScrollView Apr 18 14:35:17 when ICS is used for the first time, android shows helpful hints as how to use the system. the screen dims out and circles points of interest. Anyone know what this is called or how they achieved this? Apr 18 14:35:35 lack of terminology is really hurting Apr 18 14:35:43 my guess would be "dialog" Apr 18 14:36:16 but it could also be a "view" Apr 18 14:36:58 or possibly an Activity Apr 18 14:37:04 i figured it was a fullscreen view but just wanted to check around first Apr 18 14:37:24 radioact1ve: just look at the Launcher2 source Apr 18 14:37:43 good call, hate when i miss the obvious Apr 18 14:38:48 evancharlton: you know its in there or a good starting point? Apr 18 14:39:11 radioact1ve: how could it not be in there? Apr 18 14:40:16 Hi all Apr 18 14:40:33 hi Apr 18 14:42:29 evancharlton: but have you personally checked? Apr 18 14:42:33 like can you go find it for him Apr 18 14:42:38 and point him to the exact file and line Apr 18 14:43:36 maybe I can implement it in his project for him too. Apr 18 14:43:45 i was going to suggest that Apr 18 14:43:48 but he didnt say what he wanted Apr 18 14:43:52 can you do mine next? Apr 18 14:44:13 pragma-: sure, just get in line. I'll make sure your request gets the attention it deserves. Apr 18 14:44:41 excellent! i want it to have some bang and some zip. Apr 18 14:44:46 evancharlton did you merge in my change? Apr 18 14:44:53 not yet Apr 18 14:46:30 you already added the right person, though. He'll take a look as soon as he can. Apr 18 14:46:51 JakeWharton did Apr 18 14:46:52 not me Apr 18 14:47:53 samsung galaxy beam? Apr 18 14:47:59 isnt there some trademark issues with android beam? Apr 18 14:48:36 whoa whoa what did i miss? Apr 18 14:48:43 I'll let the lawyers comment on, speculate about, and litigate that. Apr 18 14:48:56 just asked for a few tips Apr 18 14:49:21 How can I set a value for a RatingBar in a ListView with a Adapter (SimpleAdapter?) Apr 18 14:50:34 i assume you'll need a reference to the view for that Apr 18 14:50:40 so fragmetns Apr 18 14:51:09 evancharlton JakeWharton SimonVT: onResume() isn't called on a Fragment when something on top of it in the stack is popped off, and it becomes active Apr 18 14:51:13 is this desired behaviour? Apr 18 14:51:23 I have no idea, sorry. Apr 18 14:51:35 Nic007: setRating(int) Apr 18 14:51:37 No idea Apr 18 14:51:39 it just seems like hte onResume in fragments isnt useful Apr 18 14:51:50 because its only called when the Activity's onResume() is called Apr 18 14:52:47 avancharlton: Where in the Adapter? Apr 18 14:52:56 In getView Apr 18 14:54:37 canadiancow|work: Depending on what transaction you used, there are likely other callbacks you can use Apr 18 14:54:45 no Apr 18 14:54:50 there are none for what we're doing Apr 18 14:55:04 What are you doing? Apr 18 14:55:08 hhmmm Apr 18 14:55:19 it's not in the back stack Apr 18 14:55:26 IRC traffic is entirely clear text huh? Apr 18 14:55:26 or is it? Apr 18 14:55:28 im not sure Apr 18 14:55:36 Wavesonics: not if you connect via ssl... Apr 18 14:55:53 so no moreso than http or ftp or ... Apr 18 14:56:02 How can I enable opengl2.0 in the emulator? Apr 18 14:56:03 canadiancow, hhmmm... Apr 18 14:59:45 Nobody tried opengl 2.0 on the emulator? Apr 18 15:00:01 actually SimonVT what are the other callbacks Apr 18 15:00:04 i'll take anything Apr 18 15:00:56 If the transaction is a remove, replace or detach, the UI is destroyed when it's hidden. So when it's popped from the backstack you can use onViewCreated Apr 18 15:01:10 i wonder: if i have a webview with two checkboxes.. Apr 18 15:01:28 is it possible from within java code to check whether the checkboxes are checked? Apr 18 15:01:45 hi.. can one set a longclick method call just by editing the layout xml? android:longClickable="saveSoundAsRingtone" Apr 18 15:01:54 i get an error .. Apr 18 15:02:14 If it's a hide, I'm not sure there's a callback Apr 18 15:02:20 Nobody for the emulator and opengl 2.0? Apr 18 15:02:33 dannyD_: no Apr 18 15:02:44 SimonVT, we have a Fragment, and we're displaying a DialogFragment (as a dialog) Apr 18 15:02:57 and when .... no i'd have to look into this Apr 18 15:03:12 I enabled the gpu and tested with configurationInfo.getGlEsVersion() but it return 0.0 Apr 18 15:03:21 evancharlton: http://www.stealthcopter.com/blog/2010/04/android-context-menu-example-on-long-press-gridview/ Apr 18 15:03:28 more like that right...? Apr 18 15:03:31 :-/ Apr 18 15:03:37 yes Apr 18 15:04:51 wiiihoo.. cool Apr 18 15:05:06 to bad im 2 to tired .. huh! Apr 18 15:05:45 oh ok.. FYI: it's possible to add a javascriptinterface.. so in my html input i can use javascript to react to enabling/disabling the checkboxes and pass it on to my app Apr 18 15:07:31 I am working with httpclient and wondering how to handler ClientProtocolException Apr 18 15:07:47 what causes clientProtocolException to be thrown? Apr 18 15:08:02 hm, is it possible to make a webview wrap its content height-wise? Apr 18 15:08:04 when the client protocol goes wrong Apr 18 15:08:23 storkme: are your one of these technical types? Apr 18 15:08:51 technically maybe. Apr 18 15:09:14 in which situation would the exception be thrown? Apr 18 15:09:24 someone should do a nerdy cover album of oasis' 'definitely maybe' called that ^^ Apr 18 15:09:28 i can't find any good examples and the documentation says little Apr 18 15:09:48 Signals an error in the HTTP protocol. <-- what more do you need to know Apr 18 15:10:55 storkme: I need to know what would cause it, so I can handle the error. Apr 18 15:13:06 ie. would no connection to the internet cause it. a incorrect url, wrong port, etc Apr 18 15:16:16 bad webserver or bad gateway Apr 18 15:16:41 huh Apr 18 15:16:48 got SSL working on EFNet, but not FreeNode Apr 18 15:17:01 added the CA cert to my trusted list Apr 18 15:17:11 but i still et "not trusted" error on connection Apr 18 15:18:27 storkme: so nothing I can change client side to solve the problem: I guess a message to the user explaining that the app is unable to to connect will have to do Apr 18 15:18:29 Is the HTC OpenSense SDK download broken for everybody else too? Apr 18 15:18:37 in the Android SDK Downloader? Apr 18 15:19:39 Hep, Why a ListView can't scroll if there's only 2 items displayed on 238 items. I put my Items with a ArrayAdapter Apr 18 15:20:11 ... what? Apr 18 15:21:53 evancharlton: dont suppose you can give that a try for me real quick? Apr 18 15:22:12 My ListView doesn't scroll Apr 18 15:23:43 http://www.htcdev.com/devcenter/opensense-sdk/download-install Apr 18 15:23:45 >_> Apr 18 15:23:47 god damnit Apr 18 15:23:58 hello Guys Apr 18 15:24:06 Can I put a ListView in a scrollView? Apr 18 15:24:22 yes, but why ? Apr 18 15:25:50 Because I have an interface bigger than the screen and in a panel of my UI I want to show comments Apr 18 15:26:05 elwardi: so you can scroll while you are scolling Apr 18 15:26:12 xD Apr 18 15:26:15 Yep Apr 18 15:28:41 I developing a fast touching kind of game, on each touch I am playing a sound from raw resources, i am using MediaPlayer and it is kinda laggy when you touch items very fast, is there any good way to deal with that, here is a block of code i am using http://pastebin.com/4S8JtcSe Apr 18 15:29:39 also, it sometimes throw a NullPointerExeption Apr 18 15:30:25 elwardi: IIRC, SoundPool is the low-latency audio framework Apr 18 15:30:30 I am into this for a while now, and getting sick of it, please, need help Apr 18 15:30:46 Nic007: no, don't put listviews inside of scrollviews. Ever. Apr 18 15:31:09 damn eclipse, why you no let me add "" around my string :D Apr 18 15:31:12 elwardi: there's no point in reset'ing the mediaplayer Apr 18 15:31:14 this is the string btw: Apr 18 15:31:15 and then throwing it away Apr 18 15:31:28 That's what I saw, but I want to do it. I found something (http://nex-otaku-en.blogspot.ca/2010/12/android-put-listview-in-scrollview.html) Apr 18 15:32:01 Nic007: that's the most idiotic thing i've seen in here in a long time Apr 18 15:32:31 ah, copying and pasting the " works :D Apr 18 15:32:40 Nic007: all you've done is make a very expensive LinearLayout Apr 18 15:33:24 elwardi: ie, you create a reusable mediaplayer, play a sound with it, then reset it so you can reuse it Apr 18 15:33:33 elwardi: then throw it away and create a new one Apr 18 15:34:10 elwardi: I don't know what these sounds are for, but you could keep the mediaplayer Apr 18 15:34:11 evancharlton: Ok, I'll try something else. I will do it on a new fragment. Like on the play store Apr 18 15:34:27 and check is isPlaying() whether a sound is already being played Apr 18 15:34:30 i tried that, and it was still laggy when you touch like 5 or 6 times per second, Apr 18 15:34:31 and ignore the touch if it is Apr 18 15:34:44 elwardi: well, yeah Apr 18 15:35:05 elwardi: then why did you recreate it? to make it worse? Apr 18 15:35:05 gonna see about SoundPool and/or IIRC Apr 18 15:35:32 elwardi: again, if this is simply a 'confirm button press' click sound Apr 18 15:35:35 elwardi: "IIRC" is "If I recall correctly" Apr 18 15:35:55 I used two different MediaPlayer, and that made it even worse managing to stop previously played sound and play a new one Apr 18 15:35:55 oh Apr 18 15:35:58 i thought it was Internet IRC Apr 18 15:36:03 I have an app with a SyncAdapter, which is automatically syncing in the background. There's one place in my app where I need to show the status of a sync operation and get make sure a sync completes ASAP rather than waiting the 0-30 seconds or so for sync to go from pending to actively running. Is there any way I can immediately force a sync rather than waiting for the system to move it fro Apr 18 15:36:03 m pending to active? Apr 18 15:36:11 DaFuCK Apr 18 15:36:13 Lol Apr 18 15:36:15 sorry Apr 18 15:36:42 gonna throw my machine away Apr 18 15:40:24 canadian: y u say my name and make my computer beep when I'm sleeping Apr 18 15:40:52 elwardi: but what you generally want to do is wait for a bit before you take action on a button event again Apr 18 15:41:14 JakeWharton: what? Apr 18 15:41:21 elwardi: so that if the user taps the button a 10 times within a second you don't attempt to play the sound 10 times as well Apr 18 15:41:29 *canadiancow Apr 18 15:42:19 JakeWharton: y u hav speakers on when u slepeing Apr 18 15:42:33 because I was drinking Apr 18 15:42:35 and forgot Apr 18 15:42:41 jamming to music last night Apr 18 15:43:02 drinking + porn = get woken up by speakers Apr 18 15:46:16 drinking + programming ABS w/blasting music = get woken up by canadiancow Apr 18 15:46:33 LOL Apr 18 15:46:52 MDijkstra : but thats the point, for each touch in the right space there is a tick sound, wrong space, error sound, the error sound is about 150ms length and i need it to be interrupted on the next touch, I am trying the SoundPool and will see what that gives me Apr 18 15:47:20 i was drinking something called an "Old Fashioned" last night Apr 18 15:47:23 it was strong Apr 18 15:48:36 I guess I will be using SoundPool anyway Apr 18 15:48:39 http://www.stealthcopter.com/blog/2010/08/android-soundpool-vs-mediaplayer-focus-on-soundboards-and-memory-problems/ Apr 18 15:55:34 hi, could someone point me to a working sample howto download an auth basic ssl xml file from a server ? Apr 18 16:17:50 Does anyone have an example of a C library writing a file to an Android device? NDK+JNI Apr 18 16:18:52 I have a C Library that creates a structure (ints and char buffers) and then serializes it to a byte buffer. Apr 18 16:20:04 I need to write the byte buffer to the Android's local storage, but I'm not sure if I should try to do that with open()/close(), or if I should try the FileStream stuff in Java. I'd have to pass the byte buffer to Java in the latter case. Apr 18 16:20:16 Any ideas? Apr 18 16:21:18 RandomAccessFile at least has capability of working with direct byte buffers Apr 18 16:21:42 and your confident that finding an alternative to this C library is not the best solution? Apr 18 16:22:59 I am very confident that the only way to make this byte buffer is in this C Library, yes. The C Library is used in many other applications, and the buffer needs to be compatible with all other devices. Apr 18 16:23:56 oh... not a ByteBuffer instance then Apr 18 16:24:09 pardon me for confusion Apr 18 16:24:25 Jonathan_Eyre: ok, well i would definitely marshal the data to java, unless the NDK has apis for working with the android FS (i've neve rused the NDK) Apr 18 16:25:10 yes, not a ByteBuffer, but an actual buffer holding bytes. Funny how that is not synonymous. Apr 18 16:25:13 I guess all the C code needs is a path to wherever you want to create the file Apr 18 16:25:26 stdio should work as usual Apr 18 16:25:57 you could also do that, but in that case you'd marshal the path Apr 18 16:26:11 I thought so as well, but I ran into issues. Perhaps, since I alreay have the stdio version written, I should just try to ebug it. Apr 18 16:26:17 ByteBuffer is pretty thin wrapper around contiguous chunk of memory, I suppose. Apr 18 16:26:29 wongk: What do you mean by "Marshal the path"? Apr 18 16:26:38 afaik java's arrays are not necessarily contiguous, though I'm not sure Apr 18 16:26:49 Jonathan_Eyre: it would pass through the JNI Apr 18 16:27:13 there's some complexity in the JNI when it comes to acquiring elements of the array, which makes me think that maybe they aren't even contiguous Apr 18 16:27:20 Are you saying that I need to get the working directory from JNI? I cannot assume that I can hard-code it? Apr 18 16:27:31 definitely not Apr 18 16:27:59 never hardcode paths on android Apr 18 16:28:00 Definitely not to which question? lol Apr 18 16:28:03 okay Apr 18 16:34:18 Jonathan_Eyre: please do not hardcode paths to the sdcard or your local data directory; they are subject to change at any time or may be device specific. Apr 18 16:36:13 are the screen sizes and densities correct in this image? http://i.imgur.com/OIabF.jpg Apr 18 16:37:02 I'm quite sure screen sizes are wrong Apr 18 16:37:35 Eh, no, birbeck :p Apr 18 16:37:38 • xlarge screens are at least 960dp x 720dp Apr 18 16:37:38 • large screens are at least 640dp x 480dp Apr 18 16:37:38 • normal screens are at least 470dp x 320dp Apr 18 16:37:47 yeah Apr 18 16:37:49 All of those are normal Apr 18 16:37:51 xlarge are tablets Apr 18 16:38:17 (think Xoom/Transformer/Samsung 10.1) Apr 18 16:38:27 yeah, those are xlarge mdpi Apr 18 16:38:33 large are 5"+ devices (Samsung Galaxy Note, 7" tablets) etc. Apr 18 16:38:41 the associate of size and density is misleading, though it may becorrect in your examples Apr 18 16:38:42 and pretty much those will match Apr 18 16:38:45 anybody have a way to get the OpenSense SDK? Apr 18 16:38:51 association Apr 18 16:38:52 all those phones will match normal size Apr 18 16:39:07 large is anything 480px x 640px or higher, according to d.android.com Apr 18 16:39:16 birbeck, dp. Apr 18 16:39:19 GN = 720px * 1280px = 360dp * 640dp = normal Apr 18 16:39:19 not px. Apr 18 16:39:21 shit Apr 18 16:39:24 reading fail Apr 18 16:39:52 birbeck, it's logical: using layouts made for tablets is pointless on GN :) Apr 18 16:39:56 even though it has 1280x720 Apr 18 16:40:03 ok, so they are all normal, including the galaxy nexus? Apr 18 16:40:29 Yep Apr 18 16:40:47 but the densities are correct? sgsii isnt mdpi? Apr 18 16:40:53 are there any ldpi devices? Apr 18 16:41:06 No, it's hdpi Apr 18 16:41:15 wongk: like 0.1% :) Apr 18 16:41:25 wongk: some of the low-res tablets might be Apr 18 16:41:42 interesting Apr 18 16:44:01 ok, so http://i.imgur.com/yJj9G.jpg is accurate now? Apr 18 16:44:24 yep Apr 18 16:44:47 i cant believe i misread dp for px, i knew it wasnt making sense Apr 18 16:45:41 I'd maybe remove some of the normal-hdpi devices and throw in an xlarge-(m|h)dpi tablet, if you're teaching them about the difference between screensize and dpi Apr 18 16:46:21 yeah, i wanted to put a tablet in here, but the site only has phones Apr 18 16:46:55 its just a presentation on how fragmentation isnt really an issue for most apps Apr 18 16:47:07 and how to handle different size screens and densities Apr 18 16:47:10 poll: so i have a list of google checkout orders, charged orders have a light grean background, cancelled orders have a light red background, would you want to see refunds (initiated by you, not the user) in a red background or something different? Apr 18 16:47:22 lov: Right. In light of it being God's Word that I must access the JNI for this operation, either to just get the files directory, or to write the buffer through Java... I'll just try to pass the whole buffer back from C through JNI to a java write function. Apr 18 16:47:22 hmm, that probably means Transformer Infinity will be large / hdpi? Apr 18 16:48:06 wongk: i stopped caring about orders, i just my checks from google Apr 18 16:48:18 i havent looked at checkout in ages Apr 18 16:48:50 so, 1 for "couldn't care less" :P Apr 18 16:49:31 birbeck: It's quite a common misconception that tablets are xhdpi, so at least explain it :p Apr 18 16:49:53 yes, my tablet is mdpi :P Apr 18 16:50:11 yeah, ill discuss that point, maybe another slide for phone vs tablet Apr 18 16:51:02 so kindle fire would be what, large/medium? Apr 18 16:51:32 large, I think? Apr 18 16:51:43 large obviously Apr 18 16:51:55 a normal 10 inch tablet is xlarge/mdpi Apr 18 16:52:24 you should be using the new resource qualifiers, if at all possible Apr 18 16:52:34 i.e., large/small/xlarge/whatever is deprecated Apr 18 16:53:35 this apparently isn't code/resource related Apr 18 16:54:19 evancharlton: only if targetting 12+, which kindle fire is not Apr 18 16:54:32 birbeck: which is why I said "if at all possible" Apr 18 16:54:47 and layout aliases are a bit over this presentation Apr 18 16:55:59 has anybody been able to pull the OpenSense SDK? Apr 18 16:56:55 this is getting annoying Apr 18 16:57:16 http://code.google.com/p/android/issues/detail?id=25294 Apr 18 16:59:43 http://www.htcdev.com/devcenter/opensense-sdk/download-install/ Apr 18 16:59:50 this is off topic, but has anyone made a regular expression for beginning of string OR a non-alphanumeric character? Apr 18 17:00:06 Is it possible to send a serialized object to send to another activity via startActivityForResult() and get another serialized object back in onActivityResult() ? Apr 18 17:00:36 yes Apr 18 17:00:53 extras Apr 18 17:01:03 TachyonDevWork: ty Apr 18 17:03:06 Brentonator: not sure what you are trying to achieve, but (^|[^\d]) Apr 18 17:05:02 so you can use the caret like any other character? I have certain words that should only be unused like "@ss" when alone. we currently match against non-alphanumerics outside of it Apr 18 17:05:54 you can use the any character as a literal if you escape it Apr 18 17:06:33 ^ matches beginning of line when used alone, or not when used in square brackets Apr 18 17:06:46 so that reads beginning or line or not number Apr 18 17:07:01 beginning of* line Apr 18 17:08:32 is someone writing a parser using regular expressions? Apr 18 17:10:33 hopefully not :P Apr 18 17:32:23 anyone know the progress/eta on being able to distribute library projects as jars? Apr 18 17:40:57 anyone know howi get to the url in this Hello; if I want a GPS service to switch providers, do I have to shut it down? Apr 18 17:44:12 err, I mean location service Apr 18 17:46:33 can me help a people. I can not got english and i want building a android ics for gt-i9100 a source version from android.com Apr 18 17:47:21 Hello,someone knows how to get opengl 2.0 working in the emulator (4.0.3)?I get 0.0 for gl version when using "configurationInfo.getGlEsVersion()".... Apr 18 17:47:34 I enabled gpu support Apr 18 17:47:50 is c2dm super slow/busted for anyone else? Apr 18 17:48:12 the first step i think, downloading the sourcecode and than? Apr 18 17:48:26 my server-side c2dm implementation is timing out after 30s while trying to communicate with google Apr 18 17:49:56 maybe google's down Apr 18 17:50:12 MarcAurelio: http://source.android.com/source/initializing.html Apr 18 17:51:16 wongk, thanks I'm on this site and I see taht windows not supportet f... Apr 18 17:52:26 so mom i change the system. Apr 18 17:54:31 MIKO2981: if you have an issue related to android development you are free to discuss it in the channel rather than PMing people Apr 18 17:55:35 birbeck: Hopefully soon Apr 18 17:59:35 SimonVT: actually the company said we could distribute the library in source form :) Apr 18 17:59:42 so on the linux Apr 18 17:59:49 but yeah, hopefully soon Apr 18 18:05:30 birbeck: It's just so much simpler to drop in a jar than to add an android library project :p Apr 18 18:05:43 true dat Apr 18 18:05:45 i agree 1000x Apr 18 18:05:57 especially when you just drop the jar in artifactory Apr 18 18:06:06 Even eclipse picks up jars in libs/ automatically now Apr 18 18:06:16 eclipse and your projects dont need to know anything then Apr 18 18:06:52 * wongk learned a new word - artifactory Apr 18 18:06:55 :P Apr 18 18:07:27 hey guys.. jsut published my first application. I am using my Galaxy Nexus to develop it, and after I published it and check it out it says it's not compatible with my GNex. Why? API level is 7-16+, and 14-16+ (2 apks). Apr 18 18:07:42 Plus, with jars you can check in every dependency in source control Apr 18 18:08:11 SimonVT: the work part is that you you have to always have those library projects open Apr 18 18:09:08 yeah Apr 18 18:10:41 I can't install Java 6 JDK. I have the steps on this site make http://source.android.com/source/initializing.html Apr 18 18:11:01 for the install jdk. Apr 18 18:11:27 my pm just asked me and my ios counterpart how hard it would be to ship a library to third-parties that could include a portion of our platform Apr 18 18:11:43 MarcAurelio: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u30-oth-JPR Apr 18 18:11:55 i said depending on how much customizability they need and how much we can distribute in source form, it could be as simple as cutting a branch Apr 18 18:12:09 thx. wollw Apr 18 18:12:10 the ios guy said, its hard to estimate, but perhaps 2 weeks Apr 18 18:12:15 wongk, Apr 18 18:12:28 so not other person *grrr* Apr 18 18:14:30 this pakage jdk-6u30-linux-x64-rpm.bin or this jdk-6u30-linux-x64.bin? Apr 18 18:15:03 MarcAurelio: i usually get just the bin, not rpm or deb Apr 18 18:15:13 and extract it to ~/opt/jdk Apr 18 18:15:14 MarcAurelio: depends on your distribution, pick the one that's right for you Apr 18 18:15:31 then set JAVA_HOME="$HOME/opt/jdk" Apr 18 18:16:16 Oh! I want download and than come the login site... :( Apr 18 18:16:40 i think there is a link below the sign in to just go to the downlaods Apr 18 18:17:03 unless you are not on the oracle site, i thought the latest java6 was u31 Apr 18 18:17:45 the latest JRE is Apr 18 18:17:55 31 isn't on the JDK page yet Apr 18 18:20:21 I have to use jdk 6 or do I use the newer jdk? Apr 18 18:20:34 yeah, jdk6 Apr 18 18:20:44 afaik you cannot compile android apps with 7 Apr 18 18:21:01 err Apr 18 18:21:04 you can download jdk 7 Apr 18 18:21:11 but you need to set your options to 6 Apr 18 18:21:29 i suppose that works too Apr 18 18:22:03 when building AOSP, shouldn't that already be set? Apr 18 18:24:39 i have never built aosp, cant help you there Apr 18 18:24:46 i can not install jdk6 with apt-get from a oter source? Apr 18 18:25:16 not without a 3rd party repository if you are on ubunutu 11.04 or higher Apr 18 18:26:10 where can I look at what the ubuntu version I am? Apr 18 18:26:22 lsb_release -a Apr 18 18:27:30 I have Ubuntu 11.10 Apr 18 18:28:12 Is there an example online where someone creates a ByteArray*, calls a CallIntMethod to have Java load up the ByteArray (passing the byte pointer in, presumably), and then is able to access the loaded array in C? Apr 18 18:28:19 MarcAurelio: http://www.ubuntugeek.com/install-sun-java-6-in-ubuntu-11-10-using-ppa.html Apr 18 18:28:33 you can add a third party repo if you want to go the simple route Apr 18 18:28:36 Jonathan_Eyre: there's code like that in Android, i am pretty sure Apr 18 18:28:36 thx birbeck Apr 18 18:28:45 (passing byte arrays back and forth across JNI boundaries) Apr 18 18:29:22 ctate: Do you have a link to it? Apr 18 18:30:14 ctate can you make this go faster? https://android-review.googlesource.com/35391 :) Apr 18 18:30:14 birbeck, have you see in the http://source.android.com/source/initializing.html is a 3rd party reporstory or not? sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" ???? Apr 18 18:30:45 that only works on ubuntu 10.x and earlier Apr 18 18:30:57 sun java is no longer in the partner repository Apr 18 18:31:17 ah! Apr 18 18:31:36 Jonathan_Eyre: for example you could look at hte way that Parcel's byte-array methods are implemented Apr 18 18:31:40 java side is http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/os/Parcel.java;h=15e3af42c4e3a9dd70b65603a3bbaa989b8fbc45;hb=master Apr 18 18:31:46 how can I delete now? Apr 18 18:31:50 native side is part of http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=core/jni/android_util_Binder.cpp;h=990a617e723fa62b4b901198e2cbd85db3e053c6;hb=master Apr 18 18:32:11 [git.omapzoom.org i believe is TI's gitweb mirror of AOSP] Apr 18 18:32:12 MarcAurelio: you want to delete the repository after you installed java? Apr 18 18:33:28 yes the first repository I have entered I would like to delete. Apr 18 18:33:43 apt-del-repository? Apr 18 18:34:24 open ubuntu store, open software sources from the menu, select the repo, and click delete Apr 18 18:34:41 or manually edit /etc/apt/sources.d/xxx Apr 18 18:41:20 birbeck, I have to type the whole? sudo apt-get install sun-java6-jre sun-java6-plugin Apr 18 18:42:13 or this: sudo apt-get install sun-java6-jdk? Apr 18 18:42:43 you could just give up and upgrade to Windows or something :) Apr 18 18:43:32 that's where he started :P Apr 18 18:43:39 it's not supported Apr 18 18:44:29 is the second the correct way? Apr 18 18:45:05 oh, for building Android itself? mmf yeah. Apr 18 18:45:12 so i go the second way. install the sun-java6-jdk Apr 18 18:45:13 * ctate uses a Mac for that. This does not help you. Apr 18 18:45:36 ctate, I'm on Linux xD Apr 18 18:45:41 totime Apr 18 18:46:31 oh! currently not totime... Apr 18 18:47:13 just download from oracle Apr 18 18:48:17 the android-building mailing list is yor frend Apr 18 18:48:17 s Apr 18 18:48:23 see for example this thread: https://groups.google.com/group/android-building/browse_thread/thread/bb51709059cf4b86 Apr 18 18:48:39 pfn, I can not download from oracle, then have I a login site. :( Apr 18 18:49:02 you don't need to login to dl Apr 18 18:49:21 MarcAurelio: see that thread Apr 18 18:49:23 lmao Apr 18 18:50:09 Im getting owned by eclipse, meh Apr 18 18:50:24 currently I restart my system. Apr 18 18:53:11 Zooklubba one solution would be: don't use eclpise Apr 18 18:53:17 eclipse* Apr 18 18:53:32 I solved my problem. Apr 18 18:53:58 i have two files layout.xml, one in /res/layout and one in /res/layout-small. on a "normal" device, what layout.xml will be used? Apr 18 18:54:09 layout Apr 18 18:57:28 ugh i hope i cna fully drop 2.1 soonish Apr 18 18:57:35 i just had to write a bunch more code that requires 2.2 Apr 18 18:57:40 s/write/copypaste/ Apr 18 18:57:51 s/requires/exists in/ Apr 18 18:59:23 Hello, what's the easiest way I can make action bar tabs scroll rather than collapse into a menu on a small screen? Apr 18 19:02:33 sorry, the '/' in /res shouldn't be there Apr 18 19:02:39 ctate, java6-jdk is installed Apr 18 19:03:09 the next step ist de Installing required packages. yayyy!! Apr 18 19:05:56 E: Package 'lib32readline5-dev' has no installation candidate. However the following packages replace it: lib32readline-gplv2-dev. I can now take this package confess rust? Apr 18 19:08:52 wongk, ctate, birbeck? Apr 18 19:10:22 don't ask me; i hate linux desktops :) Apr 18 19:10:30 MarcAurelio i have set that up countless times simply by following the directions Apr 18 19:10:32 if it doesnt work, google it Apr 18 19:10:44 if you cant setup the build environment, i have doubts as to your ability to... build Apr 18 19:11:01 evancharlton can you make my server GZIP my responses? Apr 18 19:11:13 canadiancow|work: to be fair, Ubuntu made this *much* harder by no longer packaging the Sun JDK themselves Apr 18 19:11:40 ok ctate, you are dev on windows? Apr 18 19:11:52 i use a Mac when i work on Android Apr 18 19:12:06 Is it possible to do regular expression matching in EditText declarations in xml layouts/ Apr 18 19:12:28 i.e. android:inputType=^[0-9]*$ Apr 18 19:12:31 nope Apr 18 19:12:47 cool, i think i whant buy a Mac for building android and other opensource projects the best way I think. Apr 18 19:12:50 How can I have a TextView which becomes automatically hidden if doesn't fit in a LinearLayout? Apr 18 19:13:04 seanoshea you can attach a listener thingy Apr 18 19:13:19 seanoshea: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType Apr 18 19:13:26 ctate - ok. So, I have to use one of the input types Apr 18 19:13:37 correct Apr 18 19:13:52 if I want to allow just numbers and the comma, I guess I'd have to create a custom keyboard or something? Apr 18 19:13:54 any one know if there are unresolved issues/glitches in the lastest SDK/ ADT versions? i decided to update my setup and now eclipse is hanging on "Installing .apk" stage Apr 18 19:14:16 (basically, I want to be able to allow commas, decimals and integers for internationalized text entry for numbers) Apr 18 19:14:27 I don't want this to happen, but anybody wonder what google can do if orcale wins? Apr 18 19:14:56 seanoshea you can add a listener for when the text changes Apr 18 19:14:57 canadiancow|work - yeah, I was thinking of doing something like that Apr 18 19:14:58 and run it through a regex Apr 18 19:15:07 and then TextView#setError("ZOMG YOU SPELLED IT WRONG"); Apr 18 19:15:36 hello android devs, can anyone of you confirm that SQLiteDatabase.insertWithOnConflict(table, null, values, SQLiteDatabase.CONFLICT_IGNORE) DOES really return the ID of the existing row ? Apr 18 19:15:47 canadiancow|work - that would work, but I want the keyboard which shows up to only have numbers, the decimal point and a comma Apr 18 19:15:58 then make your own keyboard Apr 18 19:16:06 you can get the numeric keypad to show up Apr 18 19:16:16 but thats it Apr 18 19:16:27 canadiancow|work ok - i'll take a look at my own keyboard Apr 18 19:16:43 that was... a joke Apr 18 19:16:49 i mean you can do it Apr 18 19:16:52 but... dont Apr 18 19:17:00 use an inputType, a text change listener, and setError() Apr 18 19:17:00 canadiancow|work … hmmm ok. Apr 18 19:17:54 are there any built-in methods that take an InputStream as a parameter and return a string (the contents of the IS)? Apr 18 19:18:06 can anyone help me out here? I published my app to the play store and it says it's not compatible with my galaxy nexus (the phone i developed it on). Phone is running android 4.0.4 (MIUI). It's a simple app that requires no special permissions, dev console says API level: 7-16+, supported screens: small-xlarge, opengl texture: all. What gives? Apr 18 19:18:09 canadiancow|work take a look at commons-io Apr 18 19:18:19 is that built into android? Apr 18 19:18:33 canadiancow|work nope (unfortunately) Apr 18 19:18:38 so, not what i asked for :P Apr 18 19:18:53 ninjai, dumb badging Apr 18 19:18:59 wasn't sure on what you meant by 'built-in' Apr 18 19:20:20 canadiancow|work, what's that? Apr 18 19:20:46 how can i fix it? Apr 18 19:20:57 ninjai: aapt dump bading my.apk Apr 18 19:21:00 and pastebin the results Apr 18 19:22:19 canadiancow|work, http://pastebin.com/PHaZjsxP Apr 18 19:22:44 densities: '120' '160' '240' Apr 18 19:22:48 that line has me concerned Apr 18 19:22:52 galaxy nexus is 320 Apr 18 19:22:54 me too Apr 18 19:22:56 120? Apr 18 19:22:57 wtf Apr 18 19:23:05 i dunno i didn't touch that stuff man lol Apr 18 19:23:18 120 is ldpi Apr 18 19:23:20 where can i change this stuff? Apr 18 19:23:34 yea my app is densities: '120' '160' '240' '320' Apr 18 19:23:59 can you pastebin your whole manifest? Apr 18 19:24:22 what if you want to accept all densities? Apr 18 19:24:28 canadiancow|work, http://pastebin.com/W6tGR3Xa Apr 18 19:24:29 just include them all? Apr 18 19:25:10 wtf Apr 18 19:25:15 ok i have no idea why thats not working Apr 18 19:25:25 =( Apr 18 19:25:25 thats like the simplest manifest i've ever seen Apr 18 19:25:29 densities: '160' '240' '320' '65535' Apr 18 19:25:45 My app is super compatible Apr 18 19:26:02 how can I specify the densities manually? Apr 18 19:26:08 that's nuts Apr 18 19:26:30 http://developer.android.com/guide/topics/manifest/supports-screens-element.html Apr 18 19:26:40 android:anyDensity="true" Apr 18 19:26:41 try putting in the section the explicit attribute Apr 18 19:26:59 other than that i have no idea Apr 18 19:27:11 The app says compatible with my GN Apr 18 19:27:25 SimonVT: i've heard that someone has done an Android product that uses 480 Apr 18 19:27:35 xxhdpi or some wack like that Apr 18 19:27:42 good Apr 18 19:27:50 320 still isnt good enough for e-reading Apr 18 19:28:02 SimonVT, my app says its compatible with YOUR GN? why not mine?! arrrrrrrrg Apr 18 19:28:11 canadiancow|work: yeah laser printed 300 dpi output is totally unreadable :) Apr 18 19:28:17 because you're running a custom ROM Apr 18 19:28:30 must be Apr 18 19:28:36 still odd though Apr 18 19:28:36 but ink bleeds Apr 18 19:28:41 pixels dont Apr 18 19:28:45 laser printers dont' use ink; they use toner Apr 18 19:28:50 doesn't bleed Apr 18 19:28:50 i dont have this problem with a bunch of other apps, just mine =\ Apr 18 19:28:55 liar Apr 18 19:29:00 have you ever smeared toner on something? Apr 18 19:29:00 but yes it makes fuzzy-edged overlapping spots Apr 18 19:29:01 480 :o Apr 18 19:29:22 But it's probably pentile so it's really 48dpi! Apr 18 19:29:47 my tv is far away Apr 18 19:29:50 so it's really 480dpi Apr 18 19:29:56 retina tv Apr 18 19:30:05 basically Apr 18 19:32:19 canadiancow|work: patch +2'd, btw Apr 18 19:33:03 <3 Apr 18 19:33:08 just got an email Apr 18 19:34:11 so push the button already :) Apr 18 19:37:20 I don't think they get the buttons, ctate Apr 18 19:40:37 canadiancow is trying to be cool by adding dp to his 480i tv Apr 18 19:40:54 hells yeah Apr 18 19:41:00 evancharlton: ctate: did you mean this button? http://www.funnyjunk.com/funny_pictures/416741/GOD/ Apr 18 19:41:44 evancharlton: +1, i didnt know you contributed to hockeykit Apr 18 19:41:50 that's a key, not a button :) Apr 18 19:42:03 :) Apr 18 19:42:05 evancharlton: interested in a patch to add user/password support for a server with basic auth? Apr 18 19:42:47 its nothing you cant figure out in .0002 seconds though :) Apr 18 19:42:52 If I upload one APK that is meant for API levels 7-16+, and i upload a second APK for API levels 14-16+, will people with phones with newer android versions get my API 14-16+ APK? The version code is confusing me. I have 2 "active" ones. One is version code 1 (api 7-16+) and the other is version code 2 (api 14-16+) Apr 18 19:43:23 HAY JakeWharton Apr 18 19:43:25 guess what got merged ;) Apr 18 19:43:29 fuck Apr 18 19:43:33 all Apr 18 19:43:33 the Apr 18 19:43:34 things Apr 18 19:43:35 haha Apr 18 19:43:42 whats that? Apr 18 19:43:44 :D Apr 18 19:43:44 https://android-review.googlesource.com/35391 Apr 18 19:43:55 ctate: please, please hit mine too Apr 18 19:43:58 they were missed for r7 Apr 18 19:44:00 JakeWharton's upset because mine is cosmetic, and JakeWharton's are crashes Apr 18 19:44:03 and have been there since forever Apr 18 19:44:04 JakeWharton: gimme link sir Apr 18 19:44:19 https://android-review.googlesource.com/31261 Apr 18 19:44:25 https://android-review.googlesource.com/31270 Apr 18 19:44:30 https://android-review.googlesource.com/31260 Apr 18 19:45:00 thank you Apr 18 19:45:03 oh yes, the context menu one Apr 18 19:45:31 birbeck: what's hockeykit? Apr 18 19:45:50 evancharlton: umm, you are mentioned in the contributors Apr 18 19:45:58 got a link? Apr 18 19:46:05 yeah looking Apr 18 19:46:23 JakeWharton i +1'd one of them Apr 18 19:46:27 ninjai, your users get the newest highest target, my guess Apr 18 19:46:29 the other two im not familiar enough Apr 18 19:46:46 canadiancow|work: fwiw the only +1s that matter much are ones from othe rAndroid team members Apr 18 19:46:52 ninjai, i.e. if there's a newer version out, and is compatible with the phone, it will fetch Apr 18 19:46:52 yea yea Apr 18 19:46:55 not strictly true but you know Apr 18 19:46:57 but it makes me feel better Apr 18 19:47:01 evancharlton: https://github.com/TheRealKerni/HockeyKit/blob/develop/client/Android/LICENSE Apr 18 19:47:08 https://android-review.googlesource.com/31260 is more subtle and needs someone more familiar than i Apr 18 19:47:38 birbeck: haha whut. I don't even know what that is. Different Evan Charlton maybe? Apr 18 19:47:48 Well I greatly appreciate you taking a look. Apr 18 19:48:00 JakeWharton: have you tried https://android-review.googlesource.com/31260 in your own local build and seen it work right and improve things and so on? Apr 18 19:48:29 Yeah, it's fairly easy to reproduce Apr 18 19:48:31 evancharlton: i guess, you have another android dev with the same name i guess Apr 18 19:48:53 evancharlton: did you develop the mileage app? Apr 18 19:48:55 I could attach an example .zip or something if that would help Apr 18 19:48:57 maybe I answered a question of his in here and he credited me or something. Apr 18 19:48:59 birbeck: yes Apr 18 19:49:03 birbeck: afaik, I'm the only one Apr 18 19:49:13 evancharlton: ok, then at least im crediting the right guy Apr 18 19:49:21 bbl Apr 18 19:49:52 I'll email them and see why they think I was helpful :P Apr 18 19:50:10 evancharlton, for remote-stacktrace? Apr 18 19:50:18 ah-ha Apr 18 19:50:27 I did do something with that at one point Apr 18 19:51:17 pfn, do the version numbers just tell which is the newest? the multiple APK support confuses me. for simple numbers, lets say version 1 supports android 2.1 and version 2 supports android 4.0. is this how I should be storing them in the dev console? I tried doing version 1 twice, where one was ICS compatible and the other was froyo/gingerbread compatible and it hated on me for having 2 apk's with version 1 Apr 18 19:51:48 ninjai, version numbers only tell which is newest Apr 18 19:52:05 ninjai, you can't have 2 apks on the same versioncode with overlapping compatibility Apr 18 19:52:08 ==pfn Apr 18 19:52:23 e.g. you can't have 7-16 and a 14-16 on versioncode 1 Apr 18 19:52:29 you can have 7-13 and 14-16 Apr 18 19:52:34 dont use multiapk Apr 18 19:52:35 dont use multiapk Apr 18 19:52:35 versionCode is basically a statement about which of two apks is "newer", especially for purposes of handling each others' data Apr 18 19:52:48 pfn ah, looks like i need to change my froyo/gb compat to less than 16+. I have it on api 7-16+ and my ICS one at 14-16+. Apr 18 19:52:48 and basically multiapk is an abomination unto man and god Apr 18 19:53:01 [15:52:47] <@ctate> and basically multiapk is an abomination unto man and god [15:52:35] dont use multiapk Apr 18 19:53:08 multi-apk seems useless now that accessory apks are supported Apr 18 19:53:12 asset apks Apr 18 19:53:20 ? Apr 18 19:53:29 o/ Apr 18 19:54:09 ninjai, don't use multi-apk unless you're gonna be saving like 20mb or something Apr 18 19:54:22 and even so, asset apks solve that issue, I think Apr 18 19:54:26 pfn, my app is very small. 99kb or something lol Apr 18 19:54:45 so... why'd you do multi-apk Apr 18 19:54:52 yeah, don't do multi-apk Apr 18 19:54:53 how's everyone doing? Apr 18 19:54:55 because I have no idea wtf I'm doing Apr 18 19:54:55 lol Apr 18 19:55:07 why didn't you just make a new version that supported 7-16 Apr 18 19:55:15 why only 14-16 Apr 18 19:55:26 I'm getting an illegal continuation byte error. Can that happen when treating jint like int? Apr 18 19:55:31 14-16? there's a 16? Apr 18 19:55:47 i mean i know what the dev console says, but...you cant really test on 16 Apr 18 19:55:49 canadiancow|work, market lists 16 if you don't set max sdk Apr 18 19:55:51 because I'm not sure what I'm doing, and some of the layout attributes android hates me for when I make it support older android Apr 18 19:56:17 oh well, if you want to support 2 versions that way, I guess that works... Apr 18 19:56:31 at least multi-apk across versions doesn't /really/ break things terribly Apr 18 19:56:49 ninjai, hint: use version-restricted resource qualifiers Apr 18 19:56:56 e.g. values-v11, and layout-v11 Apr 18 19:57:06 tiem to hit the books..... Apr 18 19:57:09 lol Apr 18 19:59:38 so what costs more: bandwidth or cpu Apr 18 19:59:46 in the context of gzipping server comm Apr 18 19:59:53 when you pay for the datacenter, and your users pay for the clients Apr 18 20:01:46 canadiancow|work: monetary cost, or what variable are you looking to minimize? Apr 18 20:01:59 monetary for servers Apr 18 20:02:07 so i dont care about client data usage, or client battery usage, or wahtever Apr 18 20:02:23 but compression is going to use more cpu in the servers Apr 18 20:02:38 and im wondering if anyone knows how that compares to the bandwidth you save Apr 18 20:02:49 i would generally consider bandwidth the more precious resource Apr 18 20:02:54 i mean "faster" is also nice Apr 18 20:03:06 but im not an admin or even in IT =] Apr 18 20:04:36 bandwidth costs more Apr 18 20:07:25 http://www.theverge.com/2012/4/18/2957682/larry-page-android-isnt-critical-its-a-delivery-vehicle-for-google Apr 18 20:08:49 no surprise there Apr 18 20:08:56 old news g00s Apr 18 20:09:12 and obviously he's going to say that in that context Apr 18 20:09:16 they're getting sued over android Apr 18 20:09:28 theyre not going to say "ITS OUR LIFE BLOOD WORTH A BAZILLION DOLLARS" Apr 18 20:10:00 anyone have an example for gzipping the REQUEST body? Apr 18 20:10:17 does anybody have the OpenSense SDK from HTC downloaded? Apr 18 20:10:20 or can they? Apr 18 20:10:26 in the Android SDK Manager? Apr 18 20:10:55 even given his incentives to say what he said, i don't doubt that's exactly how google looks at android Apr 18 20:10:59 "Sources: current Windows Phone devices will not get 'Apollo' upgrade" <-- that sucks for wp7 owners Apr 18 20:11:21 TachyonDevWork: i cannot Apr 18 20:11:35 i doubt anyone can Apr 18 20:12:31 HttpClient? or HttpURLConnection? Apr 18 20:12:32 holy crap JakeWharton http://www.theverge.com/2012/4/18/2957351/square-seeking-4-billion-dollar-valuation Apr 18 20:12:37 canadiancow|work: ^^ Apr 18 20:13:07 wongk, any way Apr 18 20:13:37 canadiancow|work: subclass HttpEntity, quite easy, you just need a gzip implementation Apr 18 20:14:01 and obviously set Content-Type Apr 18 20:14:06 but if hte server doesnt support it, im fucked, right? Apr 18 20:14:20 certainly Apr 18 20:14:26 hmmm Apr 18 20:14:36 g00s + JakeWharton: can i haz job now? Apr 18 20:15:32 bubble bubble bubble Apr 18 20:15:39 yes Apr 18 20:15:41 money is a bubble Apr 18 20:15:49 it's like 1998 all over again Apr 18 20:15:50 wongk: Ugh I need OpenSense for some 3D Stuff Apr 18 20:15:54 we'll all be in Star Trek in 10 years doing things for the "greater good" Apr 18 20:15:57 http://phandroid.com/2012/04/17/google-play-store-now-offering-247-phone-technical-support/ Apr 18 20:16:00 except im no longer in high school Apr 18 20:16:08 ugh Apr 18 20:16:10 another one: http://www.rarewire.com/wpsite/ Apr 18 20:17:15 Question: I'm trying to install the SDK, and I get the error "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Failure initializing default SSL context". Done all the solutions involving updating java, editing the config file manually, setting http instead of https, and none of it seems to work. Any other thoughts? Apr 18 20:17:25 Java doesn't have clamp()? Apr 18 20:17:37 I realize it's just a min/max… but still Apr 18 20:17:49 Well that's a coincidence. I was just about to post a question about clamp() myself. Apr 18 20:18:14 I think I saw clamp but with a silly name. Apr 18 20:18:16 Maybe bound()? Apr 18 20:18:23 ceiling / floor ? Apr 18 20:18:25 Math.bound()? Apr 18 20:18:34 g00s so much old news Apr 18 20:18:43 canadiancow|work: grr :D Apr 18 20:18:46 zynga's market cap dropped like 2 billion dollars this week :( Apr 18 20:18:53 no bound() Apr 18 20:19:00 i think we're in a bubble Apr 18 20:19:26 I don't know what I saw. Apr 18 20:19:36 I could have sworn there was something Apr 18 20:19:38 Anyway... Renderscript. Apr 18 20:19:39 oh well Apr 18 20:20:08 Was looking and some compiled renderscript which came with a hand-made clamp() operation. Presumably that was pasted in from the library to make a self-contained test. Apr 18 20:20:54 ok so [16:13:37] canadiancow|work: subclass HttpEntity, quite easy, you just need a gzip implementation Apr 18 20:20:59 know of any already-written implementations? :P Apr 18 20:21:13 Putting aside the feature of architectural interest (so to speak) the assembly was just terrible. The bitcode was also terrible. Where does the optimisation happen? Apr 18 20:21:36 Anyone? SSL errors when trying to download the android SDK from the manager? :/ Apr 18 20:23:37 I doubt that question has anybody in here who could answer it. What would get me on my way is if anybody could tell me where the source for the built-ins is. I grepped but found nothing that looked plausible. Apr 18 20:26:12 man... pre-HC spinners are fugly. Apr 18 20:26:33 heh Apr 18 20:26:51 Today a workmate described the standard apple one as 'the rotating anus'. Apr 18 20:27:11 ? Apr 18 20:27:16 i guess we know whats on his mind Apr 18 20:27:23 thats not a Spinner Apr 18 20:27:35 ^ Apr 18 20:27:45 that's a ProgressBar Apr 18 20:28:41 Hmm, I wonder if I can manually download and install the sdk... Apr 18 20:28:42 IntelliJ xml auto complete is awesome Apr 18 20:28:53 lw enter = android:layout_width Apr 18 20:29:00 Well I wish I hadn't typed that into google. Apr 18 20:29:05 I forgot I was on image search. Apr 18 20:29:11 Indeed, t0mless Apr 18 20:29:21 Except, lw enter keeps giving me layout_weight Apr 18 20:29:28 lol Apr 18 20:29:37 stop using so many linear layouts? Apr 18 20:29:44 I don't! Apr 18 20:30:07 If they sort it by usage, I'm pretty much fucked Apr 18 20:30:13 Cus I keep adding layout_weights Apr 18 20:30:29 Then chaing to width Apr 18 20:31:10 haha Apr 18 20:32:08 Maybe it's just alphabetically sorted Apr 18 20:32:09 auto-completion makes you dumber Apr 18 20:33:05 SimonVT it lists both for me and always puts width on top Apr 18 20:33:10 By that same line of logic, so do IDE's Apr 18 20:33:12 :| Apr 18 20:33:16 Damn them Apr 18 20:34:36 everyone has varied but fixed working memory capacity; if the tool offloads that so i can focus on more important things, i don't see why autocomplete is bad. wc will be exercised on non tribal problems anyhow; why do it memorizing api calls ? Apr 18 20:34:37 Oh awesome I can manually install sdk components Apr 18 20:35:02 Well that gets around that issue. Apr 18 20:35:11 with enough time and effort, you can do anything manually Apr 18 20:35:32 inefficiency ftw? Apr 18 20:35:34 Well, it took less time than it took for me to google, try the solutions I found, find out they fail, ask here and get no response Apr 18 20:35:44 So I should've done it manually from the beginning :) Apr 18 20:36:23 sure, i guess i could hand code my opcodes like i did with z80 ... Apr 18 20:36:55 anyhow, to each his own :) Apr 18 20:37:51 sure, to teach his own -- until his own becomes all-powerful and all-controlling and decides to own you Apr 18 20:38:12 "You can't have everything. I mean, where would you put it?" Apr 18 20:38:26 There's an app for that Apr 18 20:38:45 * pragma- accuses SimonVT of being an Apple-fan. Apr 18 20:38:54 I'm perfectly fine with just having most everything Apr 18 20:40:15 experiencing the MapView API for the first time Apr 18 20:40:29 s/experiencing/suffering/ Apr 18 20:40:40 JakeWharton: Fixed my bug yet? :p Apr 18 20:40:46 you have a bug? Apr 18 20:41:00 NineOldAndroids Apr 18 20:41:01 oh Apr 18 20:41:03 shit, no Apr 18 20:41:04 s Apr 18 20:41:05 o Apr 18 20:41:06 rry Apr 18 20:41:06 LKSJDF:LDJKSF:LKJSDF Apr 18 20:41:15 it was movie night last night Apr 18 20:41:16 * pragma- slaps JakeWharton. Apr 18 20:41:21 I'll let you fix your keyboard first Apr 18 20:41:21 Get ahold of yourself, man. Apr 18 20:41:22 got hammered while watching Bullitt Apr 18 20:41:27 stupid Colloquy Apr 18 20:41:35 haha Apr 18 20:41:46 press enter and start typing and it's like you're holding it down Apr 18 20:42:53 mapview Apr 18 20:42:54 sigh Apr 18 20:43:00 ctate i have a task for you :) Apr 18 20:43:41 "Your mission, should you choose to accept it...." Apr 18 20:44:06 JakeWharton: you wouldn't be using Colloquy by chance would you? Apr 18 20:44:15 i am indeed Apr 18 20:44:28 it's a Colloquy bug. happens to me, too. Apr 18 20:44:41 "I will do you this favor. One day I will call upon you to perform a service for me..." Apr 18 20:45:36 ctate: JakeWharton: weird thing, is, i'm using it too and have never seen that behavior Apr 18 20:45:51 (2.4 5436) Apr 18 20:45:54 I don't use colloquy and I have never seen that behavior either. Apr 18 20:46:10 type really fast and press enter somewhere in the middle without stoping the fast typing Apr 18 20:46:24 oh maybe i type too slowly ! Apr 18 20:46:53 I can repro Apr 18 20:46:54 #android-colloquy-bug Apr 18 20:47:30 the only other weird thing i can think of, is that i have my mac prefs kb repeat rate set to max Apr 18 20:47:34 Hmm, so a new version of the SDK manager also fixes the issue. Apr 18 20:47:37 don't see how that would effect things though Apr 18 20:47:39 Wonder why that one isn't on the website. Apr 18 20:47:47 mal|lappy: yeah, weird Apr 18 20:48:04 I found it in the repository.xml file manually. Apr 18 20:48:09 * mal|lappy shrugs Apr 18 20:48:13 it works now, that's what matters to me :) Apr 18 20:48:41 ship it Apr 18 20:48:45 Yes! Apr 18 20:49:07 s/effect/affect/ Apr 18 20:49:10 welcome to #android-pedant Apr 18 20:49:40 offect Apr 18 20:49:53 iffect Apr 18 20:51:18 uffect Apr 18 20:51:24 and sometimes yffect Apr 18 20:53:13 ... everywhere i go i'm shooting people into space.... Apr 18 20:53:26 It's for the affect of the effect that I effectively do affectionate things. Apr 18 20:53:33 Hi! How can I have an Android TextView show "all or nothing", so it does not show anything if it does not have enough space? (it shows a single word, btw) Apr 18 20:53:59 wut Apr 18 20:54:18 make it wrap_content, then it will always have enough space Apr 18 20:54:21 So if there is not enough space you'd rather go fuckitall instead of elipsizing? Apr 18 20:54:28 or that Apr 18 20:54:35 t0mless, exactly, but how? Apr 18 20:54:42 That seems stupid. Apr 18 20:54:46 myTextView.setVisiblity(checkIfTheresRoom(myTextView) ? View.VISIBLITY : View.GONE); Apr 18 20:54:56 all you have to do is fill in checkIfTheresRoom(TextView tv) Apr 18 20:55:01 View.VISIBLE * Apr 18 20:55:04 yes, but I want that done automatically Apr 18 20:55:05 argh, yes Apr 18 20:55:16 you didn't even spell "visibility" properly Apr 18 20:55:18 aleb: that'd be nice, wouldn't it? :P Apr 18 20:55:23 evancharlton must use auto-completion often. ;) Apr 18 20:55:28 canadiancow|work: I just like to test you guys Apr 18 20:55:30 its like you almost had it, but then s/e/ity/ Apr 18 20:55:30 pragma-: you know it Apr 18 20:55:40 View.V ctrl-space Apr 18 20:56:21 my hope is that IDEs get good enough that I can do do pack and have it fill out the whole file for me, with no bugs Apr 18 20:56:57 aleb: my less-snarky answer is that you'll have to get the text metrics and compare it against the measured width of the view Apr 18 20:57:02 isn't that $ android make-paid-project ? Apr 18 20:57:19 g00s: that just churns out soundboards :( Apr 18 20:57:23 haha Apr 18 20:57:27 lol Apr 18 20:59:33 evancharlton: when IDEs get to that point, unfortunately you'll be paying them royalties for redistributing their apps. Apr 18 20:59:48 silly ctate Apr 18 20:59:50 you can't pay an IDE Apr 18 20:59:52 it's...software Apr 18 20:59:54 ...YET. Apr 18 21:00:02 software is meant to be Free! Apr 18 21:00:05 Apr 18 21:00:05 and you're wetware. discuss. Apr 18 21:00:16 GNU4LYFE Apr 18 21:01:00 Important changes to the AdMob Transfer Funds Tool Apr 18 21:01:06 Dear AdMob App Developer, Apr 18 21:01:14 ...blah, this is the dumbest thing Apr 18 21:01:50 I can't transfer my Admob earnings back to ads? I guess Google doesn't want my money. Apr 18 21:04:14 evancharlton, maybe there is a layout which will hide the views which do not fit :/ Apr 18 21:05:04 aleb: maybe. But then again, maybe you'll have to make it. Apr 18 21:07:24 wut http://i.imgur.com/VDRCy.png Apr 18 21:07:35 JakeWharton evancharlton who else is in the bay area Apr 18 21:09:21 no one Apr 18 21:09:27 it's just me an jake, holding it down Apr 18 21:10:11 lame Apr 18 21:10:50 obviously SimonVT is holding down VT Apr 18 21:10:55 lot is holding down NY Apr 18 21:10:57 *lov Apr 18 21:11:07 pfn: i'm holding down the desert in AZ Apr 18 21:11:10 oops Apr 18 21:11:18 sorry pfn :) Apr 18 21:11:56 Definitely Apr 18 21:12:02 :) Apr 18 21:13:35 Heh Apr 18 21:14:47 so you have an app on your phone that claims to let you administer your servers remotely; what would you expect out of an app like this? Apr 18 21:15:06 That depends on what it means by servers. Apr 18 21:15:18 Personally, I have esxi servers Apr 18 21:15:21 meaning, what would it have to lack to make you go "ugh..this is crap, it doesn't even have ------" Apr 18 21:15:38 vsphere Apr 18 21:15:41 The ability to see uptime, file system status, logged in users, Apr 18 21:15:42 for esxi Apr 18 21:15:42 let's say it's some Debian servers that you SSH to from your terminal Apr 18 21:15:51 alright, that's great mal Apr 18 21:16:00 we have done uptime and uname so far Apr 18 21:16:02 services? Apr 18 21:16:04 I don't see how I could administer a server from a phone to be honest Apr 18 21:16:34 is there anyway to save a file to android's internal storage? This is incase someone doesnt have an SD card inserted. Apr 18 21:16:43 there is also Nmap, a terminal, a syslog reader and a system monitor which charts the awked output of "ps aux" into something pretty Apr 18 21:16:46 sam: +1 Apr 18 21:16:50 MAYBE a tablet Apr 18 21:16:51 MAYBE Apr 18 21:16:55 but even there... Apr 18 21:16:55 Sicp: the ability to run watch on any command yo uwant Apr 18 21:16:59 but in dire situations, it can be handy Apr 18 21:17:00 eg: a custom iwndow that does that Apr 18 21:17:04 i need vsphere + ssh Apr 18 21:17:04 window* Apr 18 21:17:10 canadiancow|work, who else? ctate and romainguy, clearly :p Apr 18 21:17:20 a custom window that does what? didn't get that sorry Apr 18 21:17:29 Sicp: Are you familiar with the linux command "watch" ? Apr 18 21:17:33 yes Apr 18 21:17:50 It'd be nice to have the ability to put in a command, and have it watch it, and output to a window Apr 18 21:17:57 yea but romainguy doesnt seem like he'd want to come out for drinks Apr 18 21:18:06 Not really a full ssh session, just a list of things I could watch, like tabbed windows, one for each command Apr 18 21:18:09 even ctate hides his alcohol behind a special circle Apr 18 21:18:14 ah you mean to leave that there and come back to it and see what that command has been producing? Apr 18 21:18:18 That would allow people to customize what they see, based on commands they have Apr 18 21:18:53 Sicp: For instance, I could put "sensors" in there. Then I could click on that tab, or window of your app, and immediatly see sensors output Apr 18 21:19:30 we have implemented something like a Favorites menu in the Terminal activity Apr 18 21:19:35 where you have all the shit you usually run Apr 18 21:20:29 That would work, I suppose Apr 18 21:20:33 brb Apr 18 21:21:33 I will definitely look into what you just said, and more importantly about filesystems status with "free", maybe? Apr 18 21:21:55 because I have recently cancelled the plan to have a Maps activity that would show you where you the user are and where the server you're connecting to is Apr 18 21:22:03 mainly because it was pretty pointless Apr 18 21:24:28 JakeWharton: Point to note, by the way. clamp() is actually a three-point median operation. Apr 18 21:24:50 o_O Apr 18 21:24:53 But I do doubt that you're going to find a three-point median operation in place of the clamp() you expected to find. Apr 18 21:28:21 i wish could take a wildcard Apr 18 21:28:39 is putting 'tags: x,y,z' supposed to actually do anything in your market app description, or is it just bogus Apr 18 21:29:03 I think tags are used for usual Taxonomy Apr 18 21:29:13 where there is x, y or z, you will show up if you have them Apr 18 21:29:15 g00s: dont people just do that for keyword spamming? Apr 18 21:29:38 i read about it somewhere, but does market actually use that intelligently? Apr 18 21:29:50 i'm not interested in keyword spamming Apr 18 21:29:51 it's Google, everything is intelligent there Apr 18 21:29:55 i assume you mean play store Apr 18 21:30:08 and if you mean play store, nothing is intelligent Apr 18 21:30:09 uh - yeah, play store Apr 18 21:30:12 birbeck: it can Apr 18 21:30:13 trying to get used to that still Apr 18 21:30:28 evancharlton: what can do what? Apr 18 21:30:30 birbeck: iirc, you can do host="*.google.com" Apr 18 21:30:35 what do you think of an employer that asks you "have you ever tried busting your head over learning Lua?" Apr 18 21:30:43 evancharlton: seriously? thats not in the docs Apr 18 21:30:54 evancharlton: ill give it a shot though Apr 18 21:31:41 http://stackoverflow.com/questions/6809557/where-to-add-application-tags-in-the-android-market Apr 18 21:32:11 but i don't actually see anything indicating play is slurping up tags and doing anything with them Apr 18 21:32:35 g00s: yeah, thats just for keyword spamming Apr 18 21:32:42 oh Apr 18 21:32:55 so yeah, the play store does use them Apr 18 21:34:42 evancharlton: didnt work with *.domain.com Apr 18 21:35:50 does "domain.com" not work? Apr 18 21:36:05 just tried that too Apr 18 21:36:08 and no Apr 18 21:36:17 only explicit domains Apr 18 21:36:35 domain.com will match "domain.com" not "foo.domain.com" or "foodomain.com" Apr 18 21:37:12 hello Apr 18 21:38:05 i'm experimenting with an opensource project that build upon various scripting languages for android, however eclipse creates many apk files (one for each scripting library) instead of one big apk Apr 18 21:38:11 any ideas how can i fix this? Apr 18 21:38:34 I have just tried to customize a bit ActionBar, I ve read some blog about that on developer.android.com But I cannot find anywhere info how to control some properties that are in ActoinBar class doc like setDisplayShowTitleEnabled(boolean) from xml. Does anybody tried it? Apr 18 21:39:01 Is it possible? Apr 18 21:41:14 interesting, i'm noticing that amazon curates their kindle ebook listings more than i thought; when there is a problem with a book (people report issues) they delist it and contact the publisher Apr 18 21:41:30 Yep, android:displayOptions Apr 18 21:41:36 you can't buy it again until the publisher rectifies it, corrects it, and reuploads Apr 18 21:41:51 g00s: from a single complaint? Apr 18 21:42:01 birbeck: no, there must be some threashold Apr 18 21:42:05 g00s: from a single _unverified_ complaint? Apr 18 21:42:06 *threshold Apr 18 21:42:16 voodoo explicit intent resolution in declared manifest is driving me turbo-insane! Apr 18 21:42:29 ok, that makes sense, if its a poor quality book, they do the same with apps Apr 18 21:43:07 i wanted to buy a book from kindle the other day, and it said it was not available because of compatibility or something Apr 18 21:43:19 hmm, weird Apr 18 21:43:36 at first i was like, well that sucks, but then, it would suck more if i bought the book and it was unreadable Apr 18 21:44:04 is google working as hard at publisher disintermediation as amazon is ? Apr 18 21:44:19 i could have taken my chances with google play books, but the formatting probably wouldnt have been any better and it was more expensive Apr 18 21:44:35 i hate getting locked into these silos birbeck Apr 18 21:45:13 i like the way orally does it; you log into your account, get updates when they fix things; d/l any format you want, etc Apr 18 21:45:17 *oreilly Apr 18 21:45:24 yeah, they are all drm'd, thats why i prefer to buy from oreilly, but oreilly books suck now Apr 18 21:45:36 i haven't seen any good ones lately Apr 18 21:46:07 i have safari books, that keeps me pretty occupied, but no offline reader for android Apr 18 21:46:18 i still prefer pdf :) Apr 18 21:46:24 * g00s is old fashioned Apr 18 21:46:54 i prefer pdf's too, but oreilly only sells pdfs for oreilly books, safari has lots of tech publishers Apr 18 21:47:20 inform it sells a bunch of pdfs for various publishers Apr 18 21:47:21 you can use tokens to download a pdf, but then it has a footer on each page and random pages have your name tattoed all over it Apr 18 21:47:26 *informit Apr 18 21:47:32 hmm, interesting Apr 18 21:48:15 they usually now have epub / pdf Apr 18 21:48:26 chrome has a nice epub viewer Apr 18 21:49:47 i pretty much just read on the subway if i am not doing support emails or reading android news Apr 18 21:49:50 and in bed Apr 18 21:50:02 i use my phone or tablet for those Apr 18 21:50:22 i hate reading on the computer Apr 18 21:51:00 yeah, me too Apr 18 21:51:05 though i can read on phone or tablet no problem Apr 18 21:51:51 canadiancow|work, come out for drinks? Apr 18 21:51:54 canadiancow|work, at io you mean Apr 18 21:52:02 no Apr 18 21:52:06 im goign to be down in a couple weeks Apr 18 21:52:09 I see Apr 18 21:52:32 sf's a bit of a hike, so I wouldn't make it, heh Apr 18 21:52:42 filed 2 bugs in intellij yesterday. both have already been assigned and are being fixed \o/ Apr 18 21:52:53 hopefully I can use it in the next release. Apr 18 21:53:09 readme: wtf? we pay oracle millions and it takes them years to months-years to write a patch Apr 18 21:53:28 bankai_: thats because they're too busy patent trolling Apr 18 21:53:30 s/years to// Apr 18 21:53:43 readme: gah...don't get into that again lol Apr 18 21:53:58 yes please. Apr 18 21:55:35 i'd respond, but ctate has a big +o Apr 18 21:55:48 indeed. Apr 18 21:57:00 is there a way to prevent the keyboard from having the capitalization toggled when it comes up for a textfield input? Apr 18 21:57:14 prevent it from being toggled by default when the keyboard first comes up Apr 18 21:57:41 you see it's a username field and usernames in this case have to be all lowercase, don't want to bother the user with that Apr 18 21:58:10 you can just re-jig to the text to be all lower-case if that's a requirement Apr 18 21:58:26 meaning after focus is gone, make it lowercase? Apr 18 21:58:49 String.toLowerCase() Apr 18 21:59:10 there is a better way than that Apr 18 21:59:17 Just setting the text inputtype should make it not capitalize by default I believe? Apr 18 21:59:22 readme o/ Apr 18 21:59:22 I believe I was able to do it with android:inputType before, but i forget what value Apr 18 21:59:36 http://developer.android.com/reference/android/text/InputType.html Apr 18 22:01:18 there's the Capitalize first letter of all words Apr 18 22:01:31 maybe if I set it to zero it would override what is there already Apr 18 22:02:28 I don't want this to happen, but anybody wonder what google can do if orcale wins? Apr 18 22:03:20 there's...something going on between them? Apr 18 22:03:28 didn't see anything on the feeds Apr 18 22:03:32 lol Apr 18 22:03:34 haha Apr 18 22:03:41 what?.. Apr 18 22:03:54 you serious? Apr 18 22:04:08 well there's this....http://feeds.arstechnica.com/~r/arstechnica/index/~3/RZPMX7TWe7E/google-v-oracle-day-3.ars Apr 18 22:04:12 just popped up Apr 18 22:04:24 I have been away I guess Apr 18 22:04:32 Sicp: You can set an inputfilter that make capital letters lower case Apr 18 22:04:33 haha yea that Apr 18 22:04:35 radioact1ve: probably best if you don't talk about the legal environment here. thanks. Apr 18 22:04:44 oh ok sorry Apr 18 22:04:46 no problem Apr 18 22:04:57 so a lawyer walks into a bar... Apr 18 22:05:02 lol Apr 18 22:05:04 "Ow!" he says. Apr 18 22:05:07 actually i just realized the pun there Apr 18 22:08:42 great: I have a Market user complaining loudly in the comments he tried to joined me 5 times and got no answer and that support is horribad, yet I never received any emails..... Apr 18 22:08:57 Gotta love users. Apr 18 22:09:30 * Gumboot wouldn't know anything about such matters either, if it weren't for an officemate who announces random things he's found amusing. Apr 18 22:09:35 today I received an awesome feedback email with a user literally stating app changed his life :p Apr 18 22:09:44 i got an email from a guy saying his cell phone service is bad Apr 18 22:11:55 oh and get repeated crash report with this user with an awesome eeepad something using Android 2.2.2 and declaring API 9. Apr 18 22:12:28 o_O Apr 18 22:12:28 when you think you have seen it all in terms of weird crash, there is always something new Apr 18 22:12:46 2.2.2 but API *9*? Apr 18 22:13:21 chalk that one up as "don't lie to the OS, yo." Apr 18 22:14:00 hay guise, if we make the OS say its a higher api level, apps will give us more features Apr 18 22:14:15 totally valid Apr 18 22:14:31 Someone should try setting it to 100 to see what google's going to introduce in the future. Apr 18 22:14:33 just change the API level and everything works! Apr 18 22:14:46 Google could do it so they know what to work on. Apr 18 22:14:53 no no Apr 18 22:14:55 not android features Apr 18 22:14:56 app features Apr 18 22:15:04 like if api level >= 9 enable NFC feature Apr 18 22:15:47 @ctate: yes, I beilive it is a hacked or test device or something Apr 18 22:16:03 ghod yes Apr 18 22:16:07 not worth worrying about Apr 18 22:16:12 canadiancow|work: If one of the features is to automatically add functionality to the app, it'll still work. Apr 18 22:16:14 indeed Apr 18 22:16:29 unless you particularly want to write the owner and say "dude y u trip ballz" Apr 18 22:17:06 poor eeepad dude still tried to launch app 10 times and it crashed 10 times =) Apr 18 22:17:44 Quelle surprise! Apr 18 22:18:59 What a Terrible Failure Apr 18 22:19:30 a dumb loglevel Apr 18 22:23:07 htc one is only qhd? Apr 18 22:23:08 suckass Apr 18 22:23:20 oh, because it's the one s Apr 18 22:23:25 how about the one x, I wonder Apr 18 22:25:17 all right, so i'm going to get rid of my ldpi assets. after all, JakeWharton says its safe Apr 18 22:25:34 I wish when people did phone reviews (battery life) that they would be more specific about the battery stats Apr 18 22:25:52 how many hours to get to what % level of battery life, and how long the screen was on during that time Apr 18 22:26:06 "heavy", "moderate", "light" usage are all such subjective numbers Apr 18 22:26:10 s/numbers/terms Apr 18 22:26:12 What would be nice is the output of my battery status screen Apr 18 22:26:20 subjective terms* Apr 18 22:26:20 :P Apr 18 22:26:26 which shows a graph, phone activity, gps, bluetooth, and wifi Apr 18 22:26:26 etc Apr 18 22:26:28 the nerd in me would like to see the phone hooked up to instrumentation to see what the current draw is doing certain things Apr 18 22:26:37 pfn: write an app that does the testing - flashes the screen x amount of times a minute, downloads files, runs tests on the GPU Apr 18 22:26:46 the distant days when will not have to care about battery life anymore will be nice Apr 18 22:27:00 Jug6ernaut, a bit late to the party on that Apr 18 22:27:06 i read about a new Li batter improvement every day : Apr 18 22:27:07 :) Apr 18 22:27:17 pfn i usually am :\ Apr 18 22:27:21 a little tiny pocket reactor would be nice Apr 18 22:27:30 ofc Apr 18 22:27:30 lol Apr 18 22:27:37 minus the heat output xD Apr 18 22:27:47 guy how invent unlimitted battery life will get rich Apr 18 22:28:07 * Jug6ernaut doesnt even get started on that .... Apr 18 22:29:44 What channel should join to talk about rooting phones? Apr 18 22:29:53 #android-root Apr 18 22:29:53 android-root Apr 18 22:29:57 Thanks Apr 18 22:29:59 android-root Apr 18 22:29:59 :o Apr 18 22:30:06 :) Apr 18 22:30:16 (just to make sure he understands) Apr 18 22:30:22 lol Apr 18 22:31:55 hmm, 18650s are at 3100 mAh now. is there any doohicky that would take one of these and let me power my phone through usb ? Apr 18 22:32:13 sorry Apr 18 22:32:18 im all out of doohickies Apr 18 22:32:24 g00s, probably can find something on dealextreme Apr 18 22:32:42 g00s, either that, or buy one of the cheapie packs, and adapt it to work with the batteries Apr 18 22:32:57 if you're not up to putting together some circuitry yourself Apr 18 22:34:40 yeah, something like this http://www.dealextreme.com/p/usb-ac-recharged-1w-65lm-luxeon-led-flashlight-and-cell-phone-pda-adapters-1-18650-included-17470 Apr 18 22:35:18 Hmm, anyone have any clues about RFCOMM connections? It's apparently changed in the two years it's been since I played with this Apr 18 22:36:09 cool! http://otgp.us/otgp-mobile-18650 Apr 18 22:36:18 Used to be I could do listenUsingRfcommWithServiceRecord("RFCOMM0",new UUID(0,0x003));, but that dosen't seem to be working Apr 18 22:36:23 uh, except the $60 part Apr 18 22:36:30 the conneciton shows up on the PC side, but accept() never returns Apr 18 22:36:50 mal|lappy: are you using a different android device ? could just be flaky phone Apr 18 22:37:14 I'm using a new phone, I've never done it on a thunderbolt before Apr 18 22:37:22 HTC thunderbolt ? Apr 18 22:37:24 Had the phone for the past year and a half, it's been solid Apr 18 22:37:25 yeah Apr 18 22:37:28 bwahahahahaha Apr 18 22:37:51 Use a BT headset, and handsfree in the car, never had BT issues before, though I've never done rfcomm with it Apr 18 22:37:52 sorry, its not funny actually. desire and thunderbolt are fucked in the bt dept Apr 18 22:38:07 So rfcomm is broken, but nothing else? That's odd, google didn't say anything of the sort Apr 18 22:38:27 its more about htc than google Apr 18 22:38:35 I mean when I googled Apr 18 22:38:38 oh, sorry Apr 18 22:38:45 My bad hhe, forgot where I was for a moment Apr 18 22:39:04 hi, if I buy a phone from china. can I translate it to english even if I don't have the source? Apr 18 22:39:04 so I find it hard to believe that it's the phone, any tutorials on how to set up rfcomm? Apr 18 22:39:09 I'm sure the interface has changed since 2.0 Apr 18 22:39:28 phpn00b: most phones let you select language Apr 18 22:41:25 mal|lappy: if the phone does not have it built in, then I need to translate it myself... Apr 18 22:41:43 mal|lappy: 2.0 ? i thought bt wasn't supported until 2.2 Apr 18 22:41:47 rfcomm, that was Apr 18 22:42:10 g00s: It was, it was just difficult to use heh, you had to use reflection to get SDP records, and sometimes to connect. Apr 18 22:42:18 Hence me asking: how do I do it now? Apr 18 22:42:27 yeah, but things chaged since then - so try out the right way now :) Apr 18 22:42:35 I tried it via the documentation, and I get nothing Apr 18 22:42:37 see the bt chat example Apr 18 22:42:39 accept() never returns Apr 18 22:42:40 huh Apr 18 22:43:01 mal|lappy: ?? Apr 18 22:43:04 is it possible? Apr 18 22:43:06 Wait a second... "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" on an actual device? :( Apr 18 22:43:08 phpN00b What? Apr 18 22:43:24 250mb free in the internal storage, so it shouldn't be complaining :( Apr 18 22:43:57 mal|lappy: is it possible to add more language support to an android phone without access to the source code? Apr 18 22:44:10 Oh, I dunno. Never dealt with a language that wasnt available Apr 18 22:45:29 need to ask on xda then Apr 18 22:45:39 phpN00b: not really, no. Apr 18 22:48:53 evancharlton: so it is not possible? Apr 18 22:49:37 Oh, looks like I still have to use reflection :/ Apr 18 22:49:40 reflection works Apr 18 22:55:46 hi, what would be the last moment a student would be able to redraw his proposal? Apr 18 22:55:53 wrong channel sorry Apr 18 22:56:13 n20: depending on what you're installing and on what OS revisino, it can require a lot of storage transiently to do the install Apr 18 22:56:21 n20: how big is the apk, and does it have any native libs? Apr 18 22:56:46 but 250 mb sounds ... ample. ugh. Apr 18 22:57:07 (*really* 250mb free?) Apr 18 22:57:33 what does "adb shell df" say? Apr 18 23:00:08 well that was fucking lame Apr 18 23:00:11 BSOD Apr 18 23:00:23 * pfn ponders getting linux for his next work laptop Apr 18 23:00:24 but it went too quick to read and nothing is showing up in the event log of why Apr 18 23:00:35 don't really need windows for work anymore.... Apr 18 23:00:47 "The previous system shutdown at 3:52:11 PM on ‎4/‎18/‎2012 was unexpected." Apr 18 23:01:00 But I have not errors for that time Apr 18 23:01:15 t0mless, sometimes bsod can't be recorded Apr 18 23:01:30 depending on the nature of bsod, writing a minidump risks disk corruption Apr 18 23:01:41 if you have a separate log device, maybe Apr 18 23:01:46 but I don't think windows groks that concept Apr 18 23:01:52 indeed Apr 18 23:02:31 might be time for a memtest Apr 18 23:09:49 does anyone know if it's possible to setup Emma for JUnit tests on a library project? Currently I have a application referencing the library project to get JUnit to work, but everything regarding Emma for code coverage is outdated... Apr 18 23:13:34 Hello everyone. I have some EditText items in a SlidingDrawer. When I click an ImageButton within the SlidingDrawer, I would like to get the contents of the TextEdit as a String and store it somewhere. When I try to do this, it causes a NullPointerException. the EditText I'm talking about is defined as a private class-scoped variable. When I initialize the defined variable within OnCreate(), it is returned from findViewById() Apr 18 23:13:34 and cast to (EditText). Does anyone know why this might cause a NullPointerException? Apr 18 23:14:21 paste some code and the exception stacktrace as reported in the log Apr 18 23:14:29 * ctate points to the imgur link in the channel topic Apr 18 23:14:51 lol Apr 18 23:14:55 i like that comic Apr 18 23:15:03 i'll get it for you Apr 18 23:15:21 pastebin, btw; no pasting into the channel :) Apr 18 23:16:07 I like my user's reports. "There was some error, I don't remember what it was or anything, and I was just doing things and it happened" Apr 18 23:16:29 "What things?" "I don't know" Apr 18 23:16:31 i'm creating a pastebin Apr 18 23:16:55 how can I copy parts of the logcat from Eclipse? Apr 18 23:17:44 eh, i can export to txt. I'll use that Apr 18 23:17:45 select them / copy? Apr 18 23:17:55 surely the log pane allows selection....? Apr 18 23:17:57 it's not a text output. there are tons of list items Apr 18 23:18:04 * ctate usually uses adb from the command line, fwiw Apr 18 23:18:10 you can select the items but they aren't text. it's a table Apr 18 23:18:14 blah Apr 18 23:18:19 shift-click to select a range? :) Apr 18 23:18:23 or export, sure Apr 18 23:18:30 you can export selected rows at least Apr 18 23:18:35 * ctate has never used the Eclipse integration with the SDK, fwiw Apr 18 23:19:58 http://pastebin.com/PrbKA5TD Apr 18 23:20:05 http://pastebin.com/wXdgrPCX <--the code Apr 18 23:20:22 of course there are many supporting source files, but this is the one that disobeys the rules Apr 18 23:20:31 * ctate | 04-18 23:05:38.424: E/AndroidRuntime(513): Caused by: java.lang.NullPointerException Apr 18 23:20:31 04-18 23:05:38.424: E/AndroidRuntime(513): at net.hesperaux.ouch.SymptomsManagerActivity.onCreate(SymptomsManagerActivity.java:41) Apr 18 23:20:51 do the line numbers match up here, btw? Apr 18 23:20:53 because if so, that's Apr 18 23:20:56 please forgive any blatantly stupid coding practices. this is my first android application and i'm trying to learn GUI right now Apr 18 23:20:57 * ctate | spinnerLocations = (Spinner) findViewById(R.id.symptoms_spinner_locations); Apr 18 23:21:06 they probably don't. I added some extra comments for you Apr 18 23:21:09 ahh Apr 18 23:21:15 so what's line 41 for realz? Apr 18 23:21:24 * hesperaux reruns Apr 18 23:21:48 Toast.makeText(getApplicationContext(), ((TextView) fieldSymptomName).getText(), Toast.LENGTH_SHORT).show(); Apr 18 23:21:55 line 44 Apr 18 23:21:57 (or whichever line in your paste that is being complained about Apr 18 23:22:00 t0mless, you have it Apr 18 23:22:00 fieldSymptonName will be null Apr 18 23:22:04 so sounds like ==t0mless Apr 18 23:22:06 that's the problem line Apr 18 23:22:07 because you haven't set your content view Apr 18 23:22:12 :) Apr 18 23:22:13 ;O Apr 18 23:22:15 because that. Apr 18 23:22:31 the content view is set in a tabhost activity though Apr 18 23:22:43 nb: setting breakpoints and stepping through your onCreate() is useful :) Apr 18 23:22:43 each activity has their own content Apr 18 23:23:14 hmm Apr 18 23:23:15 Anyone have a best practice for JUnit testing a asynchronous call? Apr 18 23:24:06 t0mless, could you help me understand further? What layout should I apply to this activity if it is used as a TabSpec? Apr 18 23:24:35 Hmm Apr 18 23:24:42 whatever layout you have your listview and symptom_ etc views in Apr 18 23:25:13 the ones contained in the SlidingDrawer then? Apr 18 23:25:31 Doubtful... Apr 18 23:25:42 but maybe? Apr 18 23:25:46 I dunno Apr 18 23:25:49 they're your layouts Apr 18 23:26:15 hesperaux: presumably you've written some xml that describes what your activity's UI should look like Apr 18 23:26:18 well I created a view from XML and used it as a footer for the ListView in this Tab Apr 18 23:26:19 what layout file did you put your ListView in? Apr 18 23:26:29 your code needs to tell the OS to use that xml for building the layout Apr 18 23:26:48 the ListView is not in a layout file. it is created by an Adapter I believe Apr 18 23:26:53 that's done with setContentView( the resource ID of the layout ) Apr 18 23:26:56 Negative Apr 18 23:27:04 Your listview uses an adapter Apr 18 23:27:08 it does not create one Apr 18 23:27:10 the *contents* of hte list are supplied by the adapter Apr 18 23:27:22 the fact that the list is on screen is explained by a layout resource :) Apr 18 23:27:31 so what does getListView() actually do then? Apr 18 23:27:38 http://developer.android.com/resources/tutorials/views/hello-listview.html Apr 18 23:27:41 i'm using that as black magic and would like to know more Apr 18 23:27:52 t0mless, i began with that tutorial Apr 18 23:27:58 getListView essentially calls findViewById(android.R.id.list); Apr 18 23:28:03 and casts it to a ListView object Apr 18 23:28:11 i see Apr 18 23:28:17 now i understand Apr 18 23:28:59 http://developer.android.com/reference/android/app/ListActivity.html Apr 18 23:29:06 I found where it is defined Apr 18 23:29:15 do make sure you've read http://developer.android.com/guide/topics/ui/index.html and the other overview documentation, hesperaux Apr 18 23:29:16 read that first paragraph after Screen Layout Apr 18 23:30:06 so right now you only have a full screen ListView Apr 18 23:30:12 since you didn't set your own content view Apr 18 23:30:22 so all those calls to findViewById() are returning null Apr 18 23:31:14 well i don't have just a listview. The listview is in a tab, and there's a slidingdrawer footer on the listview. all of that is currently visible Apr 18 23:31:19 no, it isn't Apr 18 23:31:28 because you haven't yet told hte OS to actually display anything :) Apr 18 23:31:36 but i'm looking at it on my phone right now Apr 18 23:31:55 ListActivity will do set content view for a full screen list Apr 18 23:31:56 then the code you pasted is not the code you're running Apr 18 23:31:58 the activity i pasted isn't the main intent of my app Apr 18 23:32:15 which if its inside a tabhost would have the tabs as well Apr 18 23:32:31 http://pastebin.com/m637ey0q Apr 18 23:32:50 oh god, TabActivity Apr 18 23:32:52 that's the main intent of my app. i also have a few XML files as well Apr 18 23:32:59 yeah... Apr 18 23:33:08 i was following a tutorial for the tabs Apr 18 23:33:09 and you can add a footer view to your list view dynamically, like you did, but again Apr 18 23:33:18 all your findViewById calls are returning null Apr 18 23:33:21 dont' use TabActivity Apr 18 23:33:27 it's deprecated Apr 18 23:33:33 says so right there in the documentation Apr 18 23:33:38 t0mless, which means that although the system has added the views, the IDs of the XML layouts are not identified in this scope? Apr 18 23:33:38 Also that Apr 18 23:33:47 No, they're there Apr 18 23:33:50 you're just not doing it right Apr 18 23:33:53 * hesperaux will be rid of TabActivity ASAP Apr 18 23:33:53 there is no good reason to use TabActivity Apr 18 23:34:08 findViewById will look in only the contentView of the activity Apr 18 23:34:11 perhaps I should start over, heh Apr 18 23:34:12 which is just your listview Apr 18 23:34:17 * ctate | New applications should use Fragments instead of this class; to continue to run on older devices, you can use the v4 support library which provides a version of the Fragment API that is compatible down to DONUT. Apr 18 23:34:21 hesperaux: yes, i would recommend that. Apr 18 23:34:23 if those IDs are in XML of your sliding drawer Apr 18 23:34:27 ctate, should @hide TabActivity Apr 18 23:34:27 t0mless, i see Apr 18 23:34:28 heh Apr 18 23:34:30 you need to do footerview.findViewById() Apr 18 23:34:32 ctate, in newer api versions Apr 18 23:34:47 so if you target a newer api version, it's no longer visible Apr 18 23:34:47 t0mless, ohhh, that makes sense Apr 18 23:34:50 pfn: we probably will Apr 18 23:35:07 i'll do that now and see if that works Apr 18 23:35:14 then i'll work on redoing this app without TabActivity Apr 18 23:35:25 what would I do instead? is there a doc I could look at? Apr 18 23:35:42 if you must use tabs without the action bar Apr 18 23:35:47 you can use a tabhost with fragments Apr 18 23:35:51 in a normal activity Apr 18 23:35:57 but would be better to use the action bar Apr 18 23:36:00 and fragments Apr 18 23:36:03 because i'm trying to target 2.2, i'm avoiding using fragments. is there a way to do it easily? Apr 18 23:36:12 .:16:34:39:. ! @ctate | New applications should use Fragments instead of this class; to continue to run on older devices, you can use the v4 support library which provides a version of the Fragment API that is compatible down to DONUT. Apr 18 23:36:21 Fragments down to DONUT Apr 18 23:36:23 hesperaux, android-support library Apr 18 23:36:24 ;O Apr 18 23:36:24 that is not an excuse. Apr 18 23:36:40 do give us a little credit here :) Apr 18 23:36:41 how is the compatibility handled? Apr 18 23:36:48 i thought it would be difficult to implement Apr 18 23:36:53 it basically reimplements the fragment stuff locally Apr 18 23:36:54 complete backporting of the entire fragment library Apr 18 23:36:55 you import android.support.v4.app.Fragment Apr 18 23:37:06 nice! Apr 18 23:37:12 hesperaux, download the android-compatibility library in your sdk, look at samples Apr 18 23:37:16 that's excellent Apr 18 23:37:21 seriously, the support libs (and external similar projects like ActionBarSherlock) totally rock Apr 18 23:37:31 ^ +1 Apr 18 23:37:39 they are yor best frends Apr 18 23:37:50 ctate, with endorsement like that, is the goog gonna buy out jake? :p Apr 18 23:38:07 easy there, tex :) Apr 18 23:38:10 * hesperaux is interested in learning to do things the *right* way Apr 18 23:38:17 hesperaux: Fragments. Apr 18 23:38:18 it's just hard to do that the first time lol Apr 18 23:38:19 and ActionBar. Apr 18 23:38:26 I will look into both Apr 18 23:38:43 ctate QuickActions should be added as an API as well Apr 18 23:38:47 focus on the ICS user experience, and use support libs to manage older device builds Apr 18 23:39:04 not sure what the gtalk app uses for the popup window Apr 18 23:39:24 but others have been naming them QuickActoins and they rock Apr 18 23:39:51 t0mless, is that the thing to access operations on contacts? Apr 18 23:39:56 yea Apr 18 23:40:18 when you click the contact card it pops up the little row of icons Apr 18 23:40:22 thank you for the pointers. I'm sure i'll be back with more questions, and i'll just hang out in here for now Apr 18 23:40:30 I thought that's gone from ics Apr 18 23:40:30 to like call, emeail, text, etc Apr 18 23:40:33 or completely revamped Apr 18 23:40:37 hrm Apr 18 23:40:39 lemme see Apr 18 23:41:23 it's def different on ICS tablet Apr 18 23:41:29 I don't have an ICS phone with gtalk Apr 18 23:41:32 yeah, it's not like how it used to be Apr 18 23:42:04 well quick actions are still awesome Apr 18 23:42:12 t0mless, it does the same as outside of gtalk Apr 18 23:42:17 and then action modes on the ActionBar for multiple items Apr 18 23:43:20 t0mless, your recommendation to find the ID from the footer view worked just fine. This is good to know. thanks Apr 18 23:43:55 What is the best way for me to store user-accessible data on the SD? Apr 18 23:44:11 put it in a folder on the SD? Apr 18 23:44:31 make sure one exists before you try to though Apr 18 23:44:31 there's a getExternalDataDirectory call on context or something, isn't there Apr 18 23:44:38 How would I connect a flat file to an Adapter? Apr 18 23:44:39 yea Apr 18 23:44:45 o.O Apr 18 23:44:53 wut? Apr 18 23:45:06 /candiancow impression Apr 18 23:45:10 suppose each line in a file is to be presented in a view Apr 18 23:45:16 ok Apr 18 23:45:31 hesperaux, that's the definition of an adapter Apr 18 23:45:33 read the file Apr 18 23:45:39 represent the lines of the file as a view Apr 18 23:45:40 you'll have to create a custom adapter for that Apr 18 23:45:46 and yes, custom adapter Apr 18 23:45:56 but not difficult Apr 18 23:46:15 I would use a Loader Apr 18 23:46:44 to load the data from the file and then create the adapter from that data Apr 18 23:47:00 okay Apr 18 23:47:08 if it's just strings you could load it into an ArrayList and use an ArrayAdapter Apr 18 23:47:46 I think it probabl?y will be just strings Apr 18 23:48:13 do views provided by an adapter have to fill a ListView? Apr 18 23:48:20 no Apr 18 23:48:29 GridView uses an adapter Apr 18 23:48:33 Spinner uses an Adapter Apr 18 23:48:38 ViewPager uses an Adapter Apr 18 23:48:54 Adapters are useful :) Apr 18 23:48:59 ok. i would add the adapter to those view instances in the same fashion then? Apr 18 23:49:10 AdapterView uses an Adapter! Apr 18 23:49:22 for the most part, yea Apr 18 23:49:39 some of them might need extra methods implemented Apr 18 23:49:46 interfaces* Apr 18 23:50:34 some of the views might have to support interfaces? or does the adapter have to support certain interfaces to be added to some of the views above Apr 18 23:50:48 the adapter might have to support other interfaces Apr 18 23:51:00 like for ListView, your adapter has to implement ListAdapter Apr 18 23:51:00 ok Apr 18 23:51:35 okay Apr 18 23:51:46 but ArrayAdapter extends from BaseAdapter which implements both ListAdapter and SpinnerAdapter Apr 18 23:51:54 read-ez les documentations :) Apr 18 23:52:31 i will Apr 18 23:52:38 thanks for all the help Apr 18 23:52:42 this is going to sound off the wall, but i really think android should let you easily supply your own sqlite engine Apr 18 23:52:57 * hesperaux goes off to read and redo his layouts Apr 18 23:53:26 * t0mless wonders if androidplot.com will be less explodey tomorrow Apr 18 23:53:35 t0mless: heh Apr 18 23:53:38 one more question... is it better to use lots of XML layouts or create views programmatically? which should be mostly avoided? Apr 18 23:53:47 use layout Apr 18 23:53:49 s Apr 18 23:53:52 at least I was able to get the latest release, I only had 4.4 Apr 18 23:53:53 er Apr 18 23:53:55 0.4.4 Apr 18 23:53:59 roger that Apr 18 23:54:13 building UIs at runtime takes way more code, is slower, and can be less efficient Apr 18 23:54:17 t0mless: i think you can still dl 0.5.0 though Apr 18 23:54:19 and may not give you quite as much fine control Apr 18 23:54:25 yea, I got it earlier Apr 18 23:54:35 now that they have at least a link up Apr 18 23:54:40 instead of just a CentOS page Apr 18 23:54:51 it is certainly okay for the UI to be interactive and to be adjusted on the fly and so on, but fundamentally i would say you want to focus on defining the layout in resources Apr 18 23:55:12 ctate, very well Apr 18 23:56:39 t0mless: i'm still not clear on 0.5.0 and interactivity; does it allow swiping for scrolling and pinch/zoom ? Apr 18 23:57:11 I only knew 0.5 existed because you mentioned it the day after I downloaded 0.4.4 Apr 18 23:57:18 hadn't seen any documentation Apr 18 23:57:22 or release notes Apr 18 23:57:28 then their website went boooooooooom Apr 19 00:00:53 * g00s sighs - its ozone season again Apr 19 00:04:40 I read that sharedprefs are stored in data/ - but ddms says it's an empty folder when I try to go into it. Apr 19 00:04:56 because ddms doesn't have root permissions Apr 19 00:05:06 emulator or device? Apr 19 00:05:09 device Apr 19 00:05:13 is it rooted? Apr 19 00:05:17 nope Apr 19 00:05:25 no way to get in then? Apr 19 00:05:27 then you're SOL Apr 19 00:05:36 maybe someday we can get to our apps private parts w/o rooting devices Apr 19 00:05:38 silly. ok. Apr 19 00:05:51 yeah, it is silly. as a dev i should be able to get to my app Apr 19 00:06:12 exactly Apr 19 00:06:42 you could try cd /data/data/your.package.name/ Apr 19 00:06:47 and see if it will let you ls that Apr 19 00:07:37 on the device or via adb? Apr 19 00:07:40 adb Apr 19 00:07:53 what's the syntax? Apr 19 00:07:58 adb shell Apr 19 00:08:03 thanks Apr 19 00:08:07 cd /data/data/your.package.name Apr 19 00:08:22 you can adb backup on ics to get to your app's private bits Apr 19 00:08:34 Naughty. Apr 19 00:09:23 that didn't work, I'll try backup, though I'm on 2.3.3 Apr 19 00:09:31 you can't backup before ics Apr 19 00:09:35 oh Apr 19 00:09:38 vadi2: you need to root Apr 19 00:09:40 or use an emulator Apr 19 00:09:52 rooting isn't that hard on most devices and is mostly safe. Apr 19 00:09:58 yes sounds like an emulator is how I'll go. Apr 19 00:11:08 Hello,Do someone knows how to enable opengl es 2.0 in the emulator? I enable gpu support,but the configurationInfo.getGlEsVersion() function only return 0.0 ...some ideas? Apr 19 00:11:48 thegrinch1: "Caution: OpenGL ES 2.0 is currently not supported by the Android Emulator. You must have a physical test device running Android 2.2 (API Level 8) or higher in order to run and test the example code in this tutorial." Apr 19 00:11:52 http://developer.android.com/resources/tutorials/opengl/opengl-es20.html Apr 19 00:12:24 I thought the newest release of the emulator let you do openGL apps on it Apr 19 00:12:33 or is that only opengl 1.x? Apr 19 00:12:34 if so awesome Apr 19 00:12:37 maybe Apr 19 00:13:03 I remember coding opengl es 1.x in the emulator a long time ago. Apr 19 00:14:56 http://android-developers.blogspot.fr/2012/04/faster-emulator-with-better-hardware.html Apr 19 00:15:22 On the developper blogs,it clearly states opengl 2.0 is supported Apr 19 00:15:25 http://developer.android.com/guide/developing/devices/emulator.html#accel-graphics\ Apr 19 00:15:42 only works with r17 tools and API15r3 Apr 19 00:15:45 nice Apr 19 00:16:57 I do use latest adt and the latest api... Apr 19 00:17:18 and you set the GPU emulation on? Apr 19 00:17:24 yep Apr 19 00:17:28 dunno then Apr 19 00:17:34 wouldnt it also depend on the host GPU? Apr 19 00:17:37 thegrinch1: do you have proper drivers installed on your system? Apr 19 00:17:40 for your graphics card Apr 19 00:17:51 latest one... Apr 19 00:17:58 what card Apr 19 00:17:59 what OS? Apr 19 00:18:29 sounds like you should file a bug. Apr 19 00:19:00 Just to cover all bases, make sure your host is able to do Open GL 2.0 stuff Apr 19 00:19:35 my core i7 with GT540 should do that...lol Apr 19 00:19:42 Dont Assume Apr 19 00:20:01 Windows? Apr 19 00:20:26 yep... Apr 19 00:20:40 Figure maybe dxdiag should tell ya whats enabled Apr 19 00:21:33 I'll try few more times and then get back if I really do not manage...Was Hoping someone from google would be there... Apr 19 00:23:26 Just got my first support request \o/ Apr 19 00:24:10 Yay! You have bugs! Apr 19 00:27:28 Can anyone shed some light on what exactly "LOCAL_EXPORT_PACKAGE_RESOURCES" in Android.mk does? My google-fu is weak today.... Apr 19 00:27:51 I imagine it exports your resources for packaging Apr 19 00:27:57 I've got an APK being built / packed into a full build, but it's throwing an exception due to not being able to find resources Apr 19 00:28:13 @t0mless Apr 19 00:28:22 are you trying to use a resource that doesn't exist? Apr 19 00:28:46 Nope - it all works fine if I don't use the android build system (e.g. use eclipse to make an apk and adb to install) Apr 19 00:29:15 and I don't see this LOCAL_EXPORT_PACKAGE_RESOURCES in anything else in /packages/apps Apr 19 00:29:22 but they are all using resources successfully Apr 19 00:29:40 then you likely don't need it Apr 19 00:31:00 yea..not sure what the issue is here *frustrated* Apr 19 00:41:17 if i'm making an ICS app but i want it to run on 2.2, do I use the compatibility libraries and target 2.2, or do I target 4.0.3? Apr 19 00:41:39 hey Apr 19 00:41:45 Can i get some help with my on click Apr 19 00:46:01 wargon: sure! just finished my hw so im free Apr 19 00:47:00 penguin Apr 19 00:47:07 ok basically im making a simple app Apr 19 00:47:13 i have a site i have the api Apr 19 00:47:18 i want it to log in and connect Apr 19 00:47:40 I am very new to android programming Apr 19 00:49:12 ok Apr 19 00:49:27 wargon: break your problem down into smaller steps Apr 19 00:49:42 ok theres a lot to do Apr 19 00:51:16 ok heres my problems Apr 19 00:51:24 i have a site we are creating i need to log into Apr 19 00:51:36 that does sounds like a problem Apr 19 00:51:47 i have the api from the site but i need to log in and dontk now how Apr 19 00:52:06 evan if you dont want to help just dont commen Apr 19 00:52:08 comment Apr 19 00:56:28 This is so weird. Files I drop in res/xml don't show up. Apr 19 01:00:39 readme: clean & rebuild? Apr 19 01:01:29 argh, my jedivulcan ban isn't working Apr 19 01:01:53 who is that ? Apr 19 01:02:07 ctate: yep. did that. hit f5 too. trying updating eclipse platform and tools then i'll try with a clean workspace Apr 19 01:02:12 i also tried fixing the project properties Apr 19 01:02:24 wack Apr 19 01:02:25 * readme is having awesome luck with tools past few days Apr 19 01:02:41 yesterday I installed intellij and was greeted with two bugs right off the bat, but they're being fixed now Apr 19 01:02:58 :) Apr 19 01:05:21 what borked? Apr 19 01:06:38 I was doing something stupid Apr 19 01:07:28 if you select new android xml file in "res/xml" and then leave the drop down as layout, it will not show up in the folder and it won't tell you there was an error (except in the error log, obv) Apr 19 01:07:44 not sure if that's worthy of a warning or something Apr 19 01:15:24 g00s: someone who's join/part flooding and just generally annoying me with his excess flood :P Apr 19 01:16:39 i remember years ago seeing an advance in ozone sensory technology that did not require a heater element; it was supposed to be used in phones for crowd sourced air quality. has anyone seen any more on that ? Apr 19 01:16:58 somewhat related , maybe i should set up one of those air quality eggs Apr 19 01:17:33 would be nice if android had an api for that (ozone sensor) Apr 19 01:17:45 if phones had sensors... Apr 19 01:20:26 ugh, wants to use his new rechargeable aa's, bit nimh break-in takes 48 hours Apr 19 01:21:50 AAs? how quaint. Apr 19 01:22:17 hehe. i use AAs and 18650s in my flashlights :D Apr 19 01:23:15 my flashlight has a li-polymer battery Apr 19 01:23:21 also, a touchscreen. :) Apr 19 01:24:18 though hm i suppose i should get a good LED flashlight Apr 19 01:24:28 ctate: what type of battery would you prefer ? Apr 19 01:24:33 ctate: do you have a firesword? Apr 19 01:24:36 ha ha Apr 19 01:24:40 g00s: oh, probably AAs Apr 19 01:24:46 t0mless : figured out the resource issue. Turns out I'm a genius....the png file was only in drawables-mdpi/, and the android make was configured for hdpi, so the resource actually didn't exist -- it worked in eclipse because the emulator was the proper configuration. Apr 19 01:24:53 ctate: check out all of the zebra light sc51 Apr 19 01:25:13 hamiltont: genius with a capital J Apr 19 01:25:16 At least I'll never be confused about that again ;-) Apr 19 01:25:18 yea.... Apr 19 01:25:25 biased towards light quality and duration rather than absolute brightness, if possible Apr 19 01:25:36 you you want hi cri Apr 19 01:26:18 http://www.zebralight.com/SC51c-AA-Flashlight-85-CRI_p_54.html Apr 19 01:26:19 oho, they have different color temps Apr 19 01:26:27 ok, so you want neutral :| Apr 19 01:26:37 http://www.zebralight.com/SC51w-Flashlight-AA-Neutral-White_p_45.html Apr 19 01:26:39 well, the CRI is only slightly yellower than the CRI Apr 19 01:26:39 XD Apr 19 01:26:47 wut Apr 19 01:26:49 Why do I feel like I am in an episode of King of the Hill Apr 19 01:26:52 4000K vs 4200K Apr 19 01:27:02 color temp ~= cri Apr 19 01:27:06 != Apr 19 01:27:13 filed a bug in adt Apr 19 01:27:14 http://code.google.com/p/android/issues/detail?id=29105&thanks=29105&ts=1334798823 Apr 19 01:27:15 i know not from "CRI" Apr 19 01:27:36 if you think you would every need to use a cr123 "just in case" look at the sc80's. Apr 19 01:27:54 those take AA and cr123 Apr 19 01:28:13 but i'm not sure if the aa runtime is as good as the dedicated AA, due to how the regulator is designed Apr 19 01:29:28 my favorite flashlight ever is the sc600. its as bright as my car headlight Apr 19 01:29:39 (zebralight, also) Apr 19 01:29:47 this looks pretty awesome. http://www.zebralight.com/SC51c-AA-Flashlight-85-CRI_p_54.html Apr 19 01:30:10 yeah, they have quite a cult following Apr 19 01:30:10 i don't want a serious floodlight; i want a compact maglite replacement Apr 19 01:30:17 with decent light quality Apr 19 01:30:22 thanks! Apr 19 01:30:30 :) Apr 19 01:30:40 (i have typically hated LED lights; we'll see if they're any good these days) Apr 19 01:30:49 ok Apr 19 01:30:50 i need help Apr 19 01:31:07 ctate: its hard to choose between neutral and high cri Apr 19 01:31:47 high cri runtime is less, (led is less efficient) , but I'm not all that sure if its that much better than neutral. wish you could see both before trying Apr 19 01:32:10 in the desert, i prefer cool. i think i would prefer neutral in a greener / wetter environment Apr 19 01:32:28 and they make headlamp versions of all these lights, if you prefer that Apr 19 01:32:31 H51 Apr 19 01:32:49 when you have one layout Apr 19 01:32:58 lets say a login screen Apr 19 01:33:06 when you log in you want it to go to another layout correct? Apr 19 01:33:19 i have not seen a high-output headlamp that i did not want to *ban* Apr 19 01:33:59 yeah, maybe go with the CRI then :) Apr 19 01:34:00 especially the ones that are blue/purple tinted Apr 19 01:34:08 oh, those are cheap crap Apr 19 01:34:10 they're dangerous Apr 19 01:34:20 nichia leds, over 6700 K Apr 19 01:34:21 (those are the xenon injected ones and so on) Apr 19 01:34:53 anyon free to help? Apr 19 01:35:16 "go to another layout" Apr 19 01:35:30 you could start a new activity, or you could just switch to a new layout in the current one Apr 19 01:35:35 ctate: basically he wants to do the equivalent of shifting to a new activity without doing just that Apr 19 01:35:37 whichever best fits your use case Apr 19 01:35:45 setContentView() Apr 19 01:35:46 done! Apr 19 01:35:47 ok im right Apr 19 01:36:18 do i do any on click methods for the button to switch layouts or do i just do set content view Apr 19 01:37:03 "for the button to switch layouts" i'm having trouble parsing Apr 19 01:37:16 let's say you've done the typical thing in your onCreate() Apr 19 01:37:18 I think what hes asking here is if he will need to resetup all of his buttons Apr 19 01:37:27 because they were tied to the old Layhout Apr 19 01:37:43 you called setContentView(), and the used findViewById() to look up object pointers to the View instances corresponding to various elements of the newly-established layout Apr 19 01:37:52 and stuck those pointers into variables Apr 19 01:38:02 this is much easier i think Apr 19 01:38:12 all im doing is having one button send me to a new layout Apr 19 01:38:14 when you call setContentView() again, it doesn't magically know that those variables now point to stale View objects that are now irrelevant Apr 19 01:38:53 if you want to work with elements of the new layout, you have to do the work of looking them up again Apr 19 01:39:14 i dont want xml 1 have anything to do with xml 2 Apr 19 01:39:21 i only want xml 1 to send me to xml 2 Apr 19 01:39:27 You.. dont, for both of those questions Apr 19 01:39:32 or rather, statements Apr 19 01:39:37 "xml" doesn't do anything Apr 19 01:39:39 it's just data Apr 19 01:39:49 in this case, it's data describing a way to lay out a UI Apr 19 01:40:13 calling setContentView() tells the OS "hey there's this data that describes a UI. make that happen for me pls k thx" Apr 19 01:40:19 and it does. Apr 19 01:40:56 * wargon facepalm Apr 19 01:41:02 if you want the UI to change, you can call setContentView() again, which tells the OS "okay forget that last UI i asked for, now set up the UI from this other data pls thx" Apr 19 01:41:39 ok this is easy lets say this to see iif it makes sense to you Apr 19 01:41:47 if you want a button to change UIs, you set up a click handler as part of your first UI Apr 19 01:41:57 and in the implementation of that you call setContentView() again to switch to the new UI Apr 19 01:42:07 voilà Apr 19 01:42:28 ok you call it a "ui" but its in another xml file Apr 19 01:42:40 it is *described* by a different XML file Apr 19 01:42:46 Because thats what it is.. the xml file describes a UI that the OS inflates Apr 19 01:43:04 i get it but the need to get so touchy about it is not needed Apr 19 01:43:06 Its like a blueprint and the OS is a contractor, and you tell the contractor "make this" Apr 19 01:43:12 i know Apr 19 01:43:27 all i want is setContentView(R.layout.main); to switch to setContentView(R.layout.xx); Apr 19 01:43:30 you are free to change UIs as often as you want Apr 19 01:43:53 so your calling any xml file containing a different layout a "ui" Apr 19 01:44:15 no, i'm calling the xml file a "layout" Apr 19 01:44:28 i'm calling the actual visible UI on the device, controls on the screen and so on, the UI. Apr 19 01:44:48 k Apr 19 01:44:49 the xml file is hte blueprint, the UI is the finished building [to use drpenguin's analogy] Apr 19 01:45:00 i get that Apr 19 01:45:07 lets get back to the basics Apr 19 01:45:07 i *think* you're asking "how do i rebuild my UI using a different blueprint, on the fly?" Apr 19 01:45:09 is that not right? Apr 19 01:45:21 ... its so simple Apr 19 01:45:25 stop thinking so copmlex Apr 19 01:45:33 you do that by calling setContentView(R.layout.xx); Apr 19 01:45:35 that's all. Apr 19 01:45:37 We arent >_> you arent understanding what we are saying Apr 19 01:45:37 yes Apr 19 01:45:48 i understand what your saying Apr 19 01:45:52 im asking Apr 19 01:46:09 how to set the button to do setContentView(R.layout.xx); Apr 19 01:46:24 call setContentView in the onClick handler..? Apr 19 01:46:39 exactly Apr 19 01:46:44 * ctate | if you want a button to change UIs, you set up a click handler as part of your first UI Apr 19 01:46:49 * ctate | and in the implementation of that you call setContentView() again to switch to the new UI Apr 19 01:47:08 are you asking how to respond to clicks on a button? Apr 19 01:47:19 yes. Apr 19 01:47:22 in general? aha. Apr 19 01:47:32 oh dear Apr 19 01:47:34 as i said all of this is general Apr 19 01:48:33 http://developer.android.com/guide/topics/ui/index.html#Events Apr 19 01:50:12 i understand theorys Apr 19 01:50:16 you all were here once Apr 19 01:50:39 i get you ahve to set view Apr 19 01:50:54 ctate wanna make me dinner? Apr 19 01:51:20 I'll add the special sauce Apr 19 01:51:29 nvm Apr 19 01:53:08 ctate: just mow your lawn and feed him the grass clippings Apr 19 01:53:12 http://developer.android.com/guide/topics/ui/ui-events.html lays it out more usefully i think Apr 19 01:53:20 hes gone ctate Apr 19 01:53:40 oy missed that Apr 19 01:54:06 so i was just at a GTUG meeting Apr 19 01:54:10 where they talked about google tv Apr 19 01:54:18 the guy said prior to honeycomb, android only had a 20MB stack Apr 19 01:55:23 Hi I just publish an app Apr 19 01:55:36 I dont know, how long its going to be for the website to include it in its search Apr 19 01:55:57 does anyone know the url format that accepts the w/e Apr 19 01:56:33 mantas322: https://play.google.com/store/apps/details?id=com.tomdignan.android.LEDCallerID replace 'com.tomdignan.android.LEDCallerID' with the package name of your app Apr 19 01:56:48 and while you're at it buy my app Apr 19 01:56:49 :) Apr 19 01:56:59 lol Apr 19 01:57:52 hmm Apr 19 01:57:55 doesnt work Apr 19 01:57:58 I might Apr 19 01:58:04 but u have to acknowledge mine first Apr 19 01:58:23 isnt it the package name? Apr 19 01:58:44 yes Apr 19 01:59:01 We're sorry, the requested URL was not found on this server. Apr 19 01:59:03 :( Apr 19 01:59:09 so wait Apr 19 01:59:12 dont be so impatient Apr 19 01:59:14 I CANT >:O! Apr 19 01:59:30 * mantas322 taps feet 60 beats per half a dosen seconds Apr 19 01:59:42 o.o; Apr 19 01:59:54 * drpenguin shoots mantas322 with a tranq Apr 19 02:00:18 fuck Apr 19 02:00:20 i have no food Apr 19 02:00:23 everything close is closed Apr 19 02:00:26 oh wait there's a mcdonalds Apr 19 02:00:35 but i had that for lunch cause caterers sucked :( Apr 19 02:01:01 If you eat mcdonalds again, your colon will fly out of your arse Apr 19 02:01:02 I'll make googlePlay index my apk Apr 19 02:01:05 go to the grocery store and make something? Apr 19 02:01:16 * mantas322 sacrifices chicken, pouring its blood into a pentagram Apr 19 02:01:18 canadiancow: do you not have delivery in canadaland? Apr 19 02:01:25 * mantas322 takes of clothes and dances Apr 19 02:01:36 well Apr 19 02:01:37 isn't pizza pizza open until like midnight? Apr 19 02:01:42 i dont want anythign that expensive Apr 19 02:01:45 tomo is pizza day Apr 19 02:01:48 yay! its up! Apr 19 02:01:51 check out my app https://play.google.com/store/apps/details?id=MantasCode.RadQuiz Apr 19 02:02:00 ewww Apr 19 02:02:03 what is that Apr 19 02:02:04 android 2.2? Apr 19 02:02:08 worst package name ever Apr 19 02:02:15 Indeed Apr 19 02:02:18 that too evancharlton Apr 19 02:02:27 I package name however I want Apr 19 02:02:31 actually no Apr 19 02:02:38 but anyway Apr 19 02:02:44 No tablet support? Apr 19 02:02:51 it works on tablet Apr 19 02:02:58 but prolly ugly as fuck Apr 19 02:02:58 brb gonna try Apr 19 02:03:03 Logitech Revue Apr 19 02:03:03 This item is not compatible with your device. Apr 19 02:03:04 YO Apr 19 02:03:05 probably! :D Apr 19 02:03:07 STOP REQUIRING TOUCHSCREENS Apr 19 02:03:11 ass :( Apr 19 02:03:21 lol Apr 19 02:03:24 just get a touch-sensitive TV, dumbass Apr 19 02:03:36 evancharlton go fuck yourself, dumbass! Apr 19 02:03:36 grease-marks on ALL the things! Apr 19 02:03:37 you guys know any friends who are radiologists? Apr 19 02:03:41 mantas322: no Apr 19 02:03:43 * canadiancow hides Apr 19 02:03:48 :< Apr 19 02:03:55 * canadiancow unhides Apr 19 02:04:45 fine...mcdonalds time Apr 19 02:04:46 :( Apr 19 02:04:53 canadiancow: order pizza, fool Apr 19 02:04:58 * _Auron_ hums Apr 19 02:05:24 go get a sammich from Tim Hortons Apr 19 02:05:45 I would never eat mcdonalds Apr 19 02:05:52 <_Auron_> evancharlton: yo Apr 19 02:05:58 _Auron_: long time no see man Apr 19 02:06:09 evancharlton Apr 19 02:06:10 TOMORROW Apr 19 02:06:11 IS Apr 19 02:06:12 PIZZA Apr 19 02:06:12 DAY Apr 19 02:06:22 [22:01:45] tomo is pizza day Apr 19 02:06:23 canadiancow: ... can't eat pizza on wednesday? Apr 19 02:06:29 im like sheldon that way Apr 19 02:06:35 but no, we're ordering it tomorrow for lunch Apr 19 02:06:38 <_Auron_> indeed. I moved to a new apartment, didn't have internet at home for 6 weeks, and freenode wouldn't let me on via my VWZ 3G connection Apr 19 02:06:43 SIX WEEKS Apr 19 02:07:01 <_Auron_> yes Apr 19 02:07:07 i had internet installed before i was done unloading my mooving (c wut i did thar) truck Apr 19 02:07:07 <_Auron_> System Uptime: 6wks 4hrs 21mins Apr 19 02:07:14 <_Auron_> have had my computer on the entire time though, coding Apr 19 02:07:53 <_Auron_> well I don't make mounds of money and I had like 3 different deposits/large bills to pay as soon as I moved Apr 19 02:07:59 canadiancow have mushroom and olive pizza tonight, and pepperoni pizza tomorrow Apr 19 02:08:02 totally different meals Apr 19 02:08:11 <_Auron_> plus I wanted to stabilize my financial situation and see where I'm going; first time I have a place entirely to myself Apr 19 02:09:41 Ugh says my app is incompatible with Asus Transformer Prime Apr 19 02:09:43 :< Apr 19 02:10:11 did you say you support xlarge screens? Apr 19 02:10:49 though the web portal says it's compatible with my acer iconia Apr 19 02:10:55 which is a 10.1" screen too Apr 19 02:11:43 well this is depressing Apr 19 02:12:17 cause it certainly worked when it wasnt on google play Apr 19 02:12:43 however the website says its compatible Apr 19 02:13:16 you mean incompatible Apr 19 02:14:20 <_Auron_> evancharlton: I've continued working on Stroids 2, btw Apr 19 02:14:24 no I mean the other one Apr 19 02:14:27 its green background Apr 19 02:14:49 then what is the problem? Apr 19 02:14:52 compatible means it works. Apr 19 02:15:11 JakeWharton: ping Apr 19 02:15:12 says installed but i dont see it Apr 19 02:15:16 _Auron_ Steroids for Android? Apr 19 02:15:19 2! Apr 19 02:15:29 <_Auron_> no, Stroids. :P Apr 19 02:15:34 ctate: yes, sir? I see you're hammering my inbox... Apr 19 02:15:53 going to put that one patch into frameworks/base when I get home as per Adam Apr 19 02:16:03 great; that's what i was going to point you at Apr 19 02:16:17 thank'ee kindly for the fixes, and all that Apr 19 02:16:50 it says its installed? Apr 19 02:17:19 haha. my pleasure. hoping to make more significant fixes in the future Apr 19 02:17:22 If you go to settings->applications->manage apps Apr 19 02:17:32 its not there Apr 19 02:17:40 You sure it installed? Apr 19 02:17:44 but the googlestorewebsite says installed Apr 19 02:17:55 if it is i cant find it Apr 19 02:17:56 oh, it has to push to the device Apr 19 02:18:02 if you went from web portal Apr 19 02:18:09 maybe my googleplay needs update Apr 19 02:18:11 takes time Apr 19 02:18:20 yeah Apr 19 02:18:32 and I'm not sure it will ever tell you if it failed Apr 19 02:18:46 <_Auron_> friend of mine recorded some gameplay a few weeks ago: http://www.youtube.com/watch?v=gdrMO9lnqw4 Apr 19 02:18:56 can i search by package name within the googleplay app? Apr 19 02:18:58 <_Auron_> still has a long way to go though Apr 19 02:19:11 _Auron_: private video Apr 19 02:19:26 :/ private video to me more precise Apr 19 02:19:38 Their face has no nose. Apr 19 02:19:47 <_Auron_> oh oops Apr 19 02:20:39 "Sorry The application Google Play Store (process com.android.vending) has stopped unexpectedly. Please Try again. Apr 19 02:21:07 <_Auron_> readme/t0mless: try again Apr 19 02:22:28 are all those boxes supposed to be wireframe placeholders for something? Apr 19 02:22:51 <_Auron_> nope, going to be doing different dynamic background effects Apr 19 02:23:14 That seems... seizure inducing Apr 19 02:23:29 <_Auron_> o.O Apr 19 02:26:44 mantas322: got a stack trace? I can see if I can send it to the right people Apr 19 02:26:48 or just file a bug on b.android.com Apr 19 02:27:05 nope. Apr 19 02:27:18 l2logcat Apr 19 02:27:19 try it Apr 19 02:27:33 its uploaded on GooglePlay Apr 19 02:27:39 mantas322: try what? Apr 19 02:27:46 my app Apr 19 02:27:56 why would your app crash Google Play Store? Apr 19 02:28:05 you tell me bro Apr 19 02:28:28 I'm not abuot to go poke around your app for looking for some mystery bug :-/ Apr 19 02:28:31 your app doesn't show up on my iconia Apr 19 02:28:40 theres no bug Apr 19 02:28:41 hit me with a stack trace if you care to get it fixed Apr 19 02:28:53 mantas322: there clearly is if it's crashing Google Play Store Apr 19 02:29:00 :/ Apr 19 02:31:13 :\! Apr 19 02:32:21 does anyone know if there was something special to be done when upgrading ABS to 4.0.2? Apr 19 02:32:27 from 4.0.1 Apr 19 02:32:43 anyone care to try to see if my app will install on your device? Apr 19 02:34:47 Not as far as I know Apr 19 02:34:59 I keep my ABS up to date with the dev branch Apr 19 02:36:56 Yeah thats what I thought. I am getting a nullpointer only when I start on 2.3 but 4.0 is all good. http://pastebin.com/AuwFvfNy Apr 19 02:37:24 hello all Apr 19 02:37:37 hello Apr 19 02:38:05 IT WORKS!!! Apr 19 02:38:11 AWE :DDDDDD Apr 19 02:38:40 hey qubez Apr 19 02:38:55 yo drpenguin Apr 19 02:38:58 going lowercase today i see Apr 19 02:39:15 Wait.. wha? Apr 19 02:39:17 wthhhh Apr 19 02:39:20 cooldman224 check the issue tracker on github Apr 19 02:39:28 normally you're DrPenguin I thought Apr 19 02:39:32 I am, I dunno Apr 19 02:39:43 not that i care but i'm aware Apr 19 02:39:44 I didnt notice it, as soon as I logged in I started doing my MIPS homework Apr 19 02:39:44 =) Apr 19 02:40:04 t0mless: the open issues on ABS github? Apr 19 02:40:10 yea Apr 19 02:40:18 I seem to rememebr something similar to that up there Apr 19 02:40:27 if not, open one Apr 19 02:40:39 QubeZ: hey Apr 19 02:40:51 ugh Apr 19 02:40:55 usually jake is around later at night, ill ask then but I didnt see anything Apr 19 02:41:01 So I am updating an app I'm 90% certain that I lost the original certificate for Apr 19 02:41:06 Is there anything I can do to get around that? Apr 19 02:41:13 readme: hey man Apr 19 02:41:29 readme: that asset crashed my code because on the first iteration, cursor.moveToPrevious() no worky Apr 19 02:41:44 anyhow, im so frustrated I couldn't even focus on my day job Apr 19 02:42:10 luckily after I got home I saw this 11 day old boy and it cheered me up... i then launched eclipse then got frustrated again Apr 19 02:43:37 QubeZ: so it was the cursorMoveToPrevious Apr 19 02:43:46 sigh Apr 19 02:43:48 the internet bores me Apr 19 02:44:07 pragma-: do us a favor and get off of it Apr 19 02:44:16 QubeZ: use /ignore Apr 19 02:44:35 that was a joke by the way, i have no issues with anyone on the "internet" because ya know, i have a life =) Apr 19 02:44:37 /ignore is not as funny as his joke Apr 19 02:44:45 my ignore list for android dev Apr 19 02:44:47 http://pastie.org/3814361 Apr 19 02:44:51 disregard readme, he's a sad person. Apr 19 02:45:09 pragma-: he seems happy and well adjusted to me Apr 19 02:45:11 oops, that's not quite right. Apr 19 02:45:34 readme: anyhow, question for you sir... Apr 19 02:45:35 http://pastie.org/3814367 Thats it Apr 19 02:45:47 why does the exact same logic work for Date and Title sort but not for this GTD sorting? Apr 19 02:45:53 so i dont understand why its the adapter Apr 19 02:46:01 QubeZ: probability Apr 19 02:46:16 hm Apr 19 02:46:22 elaborate Apr 19 02:46:26 Im getting a class cast exception on a scrollview, heres my layout https://gist.github.com/2417979 and heres my code: https://gist.github.com/2417982 … that tableview is definitely a tableview….what gives?! Apr 19 02:46:32 maybe because you only have like 5 possible GTD values, but you have several possible date values Apr 19 02:46:40 * prag-ma insults readme Apr 19 02:46:47 clever Apr 19 02:46:48 lern to use /ignore Apr 19 02:46:54 you changed your nick just for me :) Apr 19 02:46:57 you must be desperate Apr 19 02:47:17 I did it that way because I noticed you come in on several different cloaks Apr 19 02:47:42 yes, i am a ninja Apr 19 02:47:53 can't be, because ninja's are awesome Apr 19 02:47:58 =) Apr 19 02:48:12 i'm not awesome Apr 19 02:48:16 i'm stupenduous Apr 19 02:48:31 :) Apr 19 02:49:45 i kind of like this nick Apr 19 02:50:55 bet you can't guess what my nick means Apr 19 02:50:58 <-- Apr 19 02:51:17 it means you're australian? Apr 19 02:51:42 good on you, mate Apr 19 02:52:37 I wouldn't be surprised if they have the globe upside-down and north is really supposed to be south. Apr 19 02:55:37 Hi there! Does anybody know how to set the SUID bit of an executable within the Android Build System? Like run-as has. Thanks! **** ENDING LOGGING AT Thu Apr 19 02:59:59 2012