**** BEGIN LOGGING AT Sat Oct 26 02:59:59 2013 Oct 26 03:03:00 woop: they don't repair them either, probably :P Oct 26 03:03:46 lol yeah Oct 26 03:04:07 how much does it cost to send it to apple for repair? Oct 26 03:04:26 dammit why do this do not stop Oct 26 03:04:36 aha found why Oct 26 03:04:47 knew as soon as I ranted I'd find the bug Oct 26 03:06:47 nubish: $0 if you do it right Oct 26 03:07:39 haha Oct 26 03:10:45 holy shit im watching this show called the tomorrow people Oct 26 03:10:46 its wicked sick Oct 26 03:15:16 Just had a thought in bed. Why not just use JDBC? Oct 26 03:16:35 Meh sod it. Oct 26 03:16:38 Night all Oct 26 03:17:02 Anthaas: your missile address was noted and given to USSC :> Oct 26 03:17:47 it might work if he uses XML over JDBC :) Oct 26 03:17:56 json wouldn't be as fast though Oct 26 03:17:58 XD Oct 26 03:21:15 Anthaas just needs to read up on all of these Oct 26 03:21:25 omg im farting petroleum Oct 26 03:23:01 careful Oct 26 03:23:09 or usa will claim your butt :P Oct 26 03:23:18 expecially texan Oct 26 03:24:50 had too much milk with poptarts Oct 26 03:25:01 im gonna get so fat Oct 26 03:29:19 hi, anyone have a good alternitive for xml editors other then the one in the Eclipse android dev pack Oct 26 03:29:34 farting oil is one of the joys of either consuming a lot of Olean or using the Alii Oct 26 03:29:43 vim Oct 26 03:32:31 i love vim, but for xml uh Oct 26 03:33:48 Just setting up the look of the app basically Oct 26 03:34:12 the gui in the eclipse on is nice but its way to touchy Oct 26 03:34:16 one* Oct 26 03:36:45 Well... I have Huawei u8815, today i replace touch screen to new one. My oryginal ICS was not able to recognize it. As i tested i need plug old one in boot process and then can replug the new one and use without trouble. Currently i root my device and put cm-10.1-20131025-NIGHTLY-u8815 rom. Oct 26 03:37:07 It boot but still my touch screen is not initialized. Oct 26 03:37:38 Any clue how to initialize it or debug why its fail? Oct 26 03:39:48 Nilium: I found stats on the PHP versions used out there Oct 26 03:39:49 http://w3techs.com/technologies/details/pl-php/5/all Oct 26 03:40:25 I was talking about which version people were coding for, not which version was installed Oct 26 03:40:28 but that only means that the servers are running php5, not that the code on them is php5 Oct 26 03:40:55 finding out that kind of thing seems to be an expensive study nobody cares to do Oct 26 03:41:18 or maybe not... I'm sure some professor could get grad students to email website owners Oct 26 03:41:31 It'd be a boring study. Oct 26 03:41:41 Not really useful either, since knowing doesn't help much. Oct 26 03:42:11 The problem is just convincing people to stop aiming for the lowest common denominator Oct 26 03:43:26 Greetings, folks! Could anyone please suggest me how could I implement two-thumbs seekbar that is vertical as well: is there any libraries or whatever? I know I can write it myself, but this would take much more time than I have Oct 26 03:47:01 two-thumbs seekbar? is that a bar that you have two knobs on? Oct 26 03:47:49 Rager: yeah, it should be Oct 26 03:49:36 As an option it would be very nice if I could set custom background and thumb drawables Oct 26 03:56:28 sounds very custom to me Oct 26 03:56:34 and have to write it I think Oct 26 04:27:54 is it possible to get location updates without having to implement a service Oct 26 04:28:14 (to which its soul task would be to manage a LocationListener) Oct 26 04:38:03 Rager, eating a lot of escolar results in farting and leaking a lot of oil Oct 26 04:40:09 which, according to the wiki, apparently is sold as albacore tuna at sushi joints Oct 26 04:47:23 Is the Nexus 4 considered a normal sized device? Oct 26 04:52:54 not to me Oct 26 04:53:07 i want to go back to the old galaxy s2 format Oct 26 04:53:25 silly bigger screens…ugh! Oct 26 04:53:57 StingRay_: Men are just starting to realize an universal truth that women have known for a long long time... Oct 26 04:54:02 StingRay_: BIGGER IS BETTER!!! Oct 26 04:54:52 what do you guys do to accommodate something like the samsung note; is that a tablet ? Oct 26 04:55:09 just let the phone sized-layouts stretch? Oct 26 04:55:22 stretch ??? Oct 26 04:55:45 the fracking thing is #3 in the analytics for a huge app my buddy is working on Oct 26 04:55:57 so it must be pretty popular Oct 26 04:56:08 yeah, on my beta group quite high ratio also Oct 26 04:56:15 2 more added today Oct 26 04:56:56 good job we can have adaptive UI's right ? Oct 26 04:56:57 :) Oct 26 05:00:37 i have a few beta testers using SM on 3g note 10.1 Oct 26 05:01:38 SM ? Oct 26 05:01:43 my app Oct 26 05:01:46 oh Oct 26 05:01:51 hey, did you try crashlytics ? Oct 26 05:02:02 no bugsense currently Oct 26 05:02:08 working well ? Oct 26 05:02:15 so so Oct 26 05:02:23 well, yes for my needs currently Oct 26 05:02:56 uh, i'm not getting shit done. working on 3 apps at the same time across 2 platforms Oct 26 05:03:01 i can't multitask Oct 26 05:20:27 Man...im trying to use Android Studio Oct 26 05:20:41 I have no idea what's going on :ap Oct 26 05:20:52 What's this whole maven business? Oct 26 05:21:04 How do I import libraries? Oct 26 05:21:33 http://i.imgur.com/nUem835.jpg Oct 26 05:22:49 Lol Oct 26 05:23:55 Blah...I don't even want to use an IDE haha, but my partner insists :P Oct 26 05:25:21 Just use eclipse Oct 26 05:25:24 and ADT Oct 26 05:25:35 or the lazy mans solution Oct 26 05:25:43 Android developer tools pack Oct 26 05:26:00 Meh...eclipse... Oct 26 05:26:09 And yes that's what I want to do... Oct 26 05:29:29 Well, I've finally implemented vertical two-thumb slider. Hooray! Oct 26 05:31:42 Ugh Oct 26 05:31:54 I hate when things dont work :p Oct 26 05:32:53 I spent like 2 hours with it Oct 26 05:33:03 Basically I couldn't get it to find the support library Oct 26 05:33:51 Also...I wonder how efficient the support library is.. Oct 26 05:34:03 I'm developing with a g1 and a garminfone :p Oct 26 05:34:52 frankdrey thats even worse than my droid-1 :D Oct 26 05:35:07 :D Oct 26 05:35:20 are you using sensors or something the emu doesn't have ? Oct 26 05:35:31 My PC is shit slow Oct 26 05:35:39 Emu boots 20 minutes Oct 26 05:36:00 well, ok. i was going to recommend genymotion, but thats vbox and needs about 1G Oct 26 05:36:02 ram Oct 26 05:36:08 Ram I have Oct 26 05:36:11 :o Oct 26 05:36:27 AS needs about 1G too :) Oct 26 05:36:35 so if you have 4G should be OK Oct 26 05:37:21 Linux? Oct 26 05:37:33 hm, i think it works on linux Oct 26 05:37:45 Wait...vbox Oct 26 05:37:47 It should Oct 26 05:38:08 i dont have any extensions either, it was a pretty easy install Oct 26 05:38:19 but i'm on mac, so can't help with linux specifics Oct 26 05:38:51 Yup Linux works Oct 26 05:38:56 Ill give it a shot Oct 26 05:39:04 Tomorrow Oct 26 05:39:06 ;) Oct 26 05:39:09 I need to sleep :p Oct 26 05:40:05 g00s: this crashlytics looks better than bugsense Oct 26 05:40:17 yah Oct 26 05:40:18 well, the web stuff and the freeness of features Oct 26 05:40:58 just asked for invite Oct 26 05:41:23 if api is as easy and adaptable/customisable as bugsense then hey ho, may switch Oct 26 05:41:27 or use both :) Oct 26 05:41:59 nah Oct 26 05:42:07 more shit to go wrong / explode, just use 1 Oct 26 05:42:34 i know somebody working on fixing an app thats crashing because one of 6, yes *fucking 6* analytics libraries is eating shit Oct 26 05:45:02 Now I cant fall asleep knowing I have failed :p Oct 26 05:47:37 StingRay_ i wouldn't be surprised if one crash lib clobbered the other installing the exception handler Oct 26 05:47:47 but if they do it right i think it should work Oct 26 05:47:50 *if* Oct 26 06:09:01 how can I see if a statusbar notification I created earlier still exists, or if the user cancelled it away? Oct 26 06:09:12 Hey guys, just started playing around with android dev today, after a while of working I've run into something that so far I haven't been able to work out: https://www.dropbox.com/s/6h6dw18xzlbmsr1/Screenshot%202013-10-26%2017.03.07.png Oct 26 06:09:20 Any ideas? :( Oct 26 06:16:25 Does freenode ever stop netsplitting? Oct 26 06:16:27 tweeky: does that string resource exist ? Oct 26 06:16:53 I'm not sure, what exactly do you mean? I was following a google guide but must be missing something.. :) Oct 26 06:17:06 Do I have to define it somewhere else? Oct 26 06:17:17 thats not defining it Oct 26 06:17:24 thats referencing it Oct 26 06:17:32 Oh ok Oct 26 06:17:33 it is defined in an xml resource Oct 26 06:17:51 guessing it would be in your strings.xml Oct 26 06:18:00 :) Oct 26 06:18:37 values/strings, i see I see... So I should be defining it all in strings.xml first? =p Oct 26 06:19:04 well if you plan to use it Oct 26 06:19:14 you should go thought the android tuts on d.android.com Oct 26 06:19:18 getting started guides etc Oct 26 06:20:16 Ah ok Oct 26 06:20:18 Thanks Oct 26 06:21:16 Yeah, I've been following googles guides but in no order, mainly because I usually program in windows, for windows in c/cpp and most guides have a lot I don't want/need to know. But I've never done Java really, but I'm getting it :) Oct 26 06:26:14 tweeky: why turn to java/android ? Oct 26 06:26:27 as in what has got you wanting to get into android Oct 26 06:27:12 Bought an S4, couldn't find a launcher that had everything I wanted Oct 26 06:40:57 Hmm, can't seem to use Preference Fragments because I've set the project to run on too low of an Android OS, can the minimum Android version be altered after the project setup? Can't seem to find it... Oct 26 06:47:23 manifest Oct 26 06:47:34 you really should start with the gettings started guides Oct 26 06:49:23 Yeah i'll take a look =p Oct 26 06:50:03 good code for all Oct 26 06:55:16 Admob is paying me 65 cents a click from Canada today...cool Oct 26 06:56:06 what is it normally ? Oct 26 06:56:25 hmm Oct 26 06:57:13 maybe 21 cents Oct 26 06:57:23 http://www.androidhive.info/2013/09/android-sqlite-database-with-multiple-tables/ done with this, i get a data from a method… now how can use this method of data to create a listview ? Oct 26 06:57:27 oh so quite a bump Oct 26 06:57:36 what is it for just a show and not a click ? Oct 26 06:58:02 I think you get a few pennies for showing ads, but the real money is from clicks Oct 26 06:58:21 i mean does that x3 today ? Oct 26 06:58:50 Yaa, it has been going up all month Oct 26 06:59:06 I made at least $87 yesterday Oct 26 06:59:43 I am releasing a new app soon, which hopefully will do good, and I expect things to pick up with the tablets and phones people will get for Christmas Oct 26 06:59:55 rabbi1: by using the cursor in a adapter that powers a listView Oct 26 07:00:00 If I make $98 a day on Android ads I can do Android full time for myself Oct 26 07:00:12 $36000 a year is not much but I can live on it Oct 26 07:00:13 StingRay_: artist ….. Oct 26 07:00:30 ? Oct 26 07:00:41 Ologn: what your current app ? Oct 26 07:00:45 StingRay_: a little more will help… Oct 26 07:01:00 StingRay_, the one I will be publishing in the coming weeks? Oct 26 07:01:08 Ologn: no current Oct 26 07:01:31 I have a few... http://play.google.com/store/apps/developer?id=Panacea+Supplies Oct 26 07:01:32 rabbi1: not sure what other help to give, besides going into full blown training Oct 26 07:02:22 Ologn: oh yeah, I remember.... Oct 26 07:02:24 :) Oct 26 07:03:08 I've been too busy doing my CS homework to release my new app, hopefully I'll have it translated and out for a little bit before Christmas Oct 26 07:03:31 well my 1st app is almost out Oct 26 07:03:41 after all my learning Oct 26 07:03:53 StingRay_: i want to know how to pass the data to a variable of Cursor Oct 26 07:04:06 going to do a soft release, then few feature adds then it will be away and I will shout about it :) Oct 26 07:04:07 yaya Oct 26 07:04:16 rabbi1: One good thing to look at is the Android samples Google has Oct 26 07:04:31 rabbi1, they have examples of passing data to Cursors and junk... Oct 26 07:04:32 rabbi1: a variable to a cursor ? Oct 26 07:04:51 you mean a sqlite query ? Oct 26 07:05:36 StingRay_, the one thing I learned over the past 2.5 years is the whole agile, lean startup etc. thing is the way to go... Oct 26 07:05:38 StingRay_: List contact = new ArrayList(); Oct 26 07:05:38 contact=getAllContacts(); Oct 26 07:05:38 ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, contact); Oct 26 07:05:38 listContent.setAdapter(adapter); Oct 26 07:05:59 rabbi1: pointless initialization of contact to arraylist that you throw away Oct 26 07:06:18 rabbi1: you need to do the basics Oct 26 07:06:22 on listViews Oct 26 07:06:34 then your questions are answered Oct 26 07:07:21 Hmm I set the minsdkversion to 11 but it still thinks it's 8, even after an ide restart :( Oct 26 07:07:24 Normal? Oct 26 07:07:40 tweeky: where, the manifest? Oct 26 07:07:43 i did it but not with sqlite data… will go through again. thanks Oct 26 07:07:44 yep Oct 26 07:08:20 if you want to change the build target, the project.properties file can be adjusted. Oct 26 07:09:37 Hmm, there's local.properties with a single line in it, a path, that apparantly is generated by the ide (Using AS btw) Oct 26 07:10:20 Oh. Well then I have no idea. Possibly build.gradle lists the sdk used for building, if *that* is what you want to change. Oct 26 07:11:49 tweeky: your maybe using some lib that it referencing a non-support-lib class Oct 26 07:12:03 changing the imports to the support-lib maybe what you need Oct 26 07:12:07 the build version has to be large enough to contain features you want to use, this is why I suggest it Oct 26 07:12:19 oh hang on… I'm talking sh*t Oct 26 07:12:21 tired Oct 26 07:12:23 is there a way to have two apps define the same intent, and detect if the other app is installed, and use the already-installed app's intent if so, rather than the one it defines? Oct 26 07:12:26 8am here now Oct 26 07:12:52 From 6 months ago to now has much changed on Android? Oct 26 07:13:18 significant^ Oct 26 07:13:35 in what way ? Oct 26 07:13:38 not really I dont think Oct 26 07:14:28 just anything significant that a developer should know Oct 26 07:19:48 StingRay_: i need to use http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews SimpleCursorAdapter, under which can you tell me what is ContactsContract ? Oct 26 07:21:46 see on that page you linked Oct 26 07:21:53 there is a seach icon top right Oct 26 07:22:03 search "ContactsContract" and takes you to all the info Oct 26 07:22:17 talbes, fields, intent use etc Oct 26 07:22:19 all of it Oct 26 07:57:56 Hello! anyone knows how to use nine patches? Oct 26 08:02:37 hi, ~apklib-org.holoeverywhere_library_1.6.8 always refer to Maven:com.google.android:support-v4:r13, how can I switch to use "com.android.support:support-v4:13.0.0" ? I'm using Intellij Idea 13. Oct 26 08:03:19 "Maven:com.google.android:support-v4:r13" does not existed in my local .m2 repo, but "com.android.support:support-v4:13.0.0" does. Oct 26 08:05:26 Hey guys, I created an XML for a settings page, with a few check boxes, and added a small class with an onCreate function, but can't find any info on the site on how to actually display the settings page. How would I go about displaying it? I was thinking with intents but still kind of confused. Oct 26 08:05:39 see my IDEA config http://d.pr/i/z553 Oct 26 08:05:54 Trying to have it open on an options button click event. I have two, one for my settings and one for system settings (Which works of course) Oct 26 08:11:03 tweeky: that's fine, what's ur confuse? Oct 26 08:16:58 the conflict part, i think, http://d.pr/i/5dfC Oct 26 08:25:43 Just not sure on how to launch the settings menu Oct 26 08:33:42 Like, my settings class only has one function anyway, onCreate. Oct 26 08:45:21 I'm making a CRUD style app with synchronization. Any thoughts on persistance? I can easily put together a REST server with JPA/JAXB/JAXRS but hmm, what do I do with the client? I don't really feel like typing SQL queries. Oct 26 08:45:51 Is it a good idea to mix ThreadSafeClientConnManager and ThreadPoolExecutor? Oct 26 08:49:10 I looked at ActiveAndroid and db40 but am a bit worried about performance. Are there any extremely light-weight tools? Oct 26 08:54:44 hi Oct 26 08:58:24 hey guys question, how do I make something a decimal Oct 26 08:58:36 double lowfeetplusinch = inchlowint + lowfeettoinch + declowint ; <--- i need the last one to be a decmial Oct 26 08:59:44 I made the edittext box a decimal but it still seems to think its a whole number Oct 26 08:59:53 PureEvil: http://developer.android.com/reference/java/text/DecimalFormat.html Oct 26 08:59:55 how do I get it to add the . Oct 26 09:00:06 I tried that, keeps telling me I cant do it to double Oct 26 09:01:06 do I need to do it before this: double decupint = Double.valueOf(updec_text.getText().toString()) ; Oct 26 09:07:52 PureEvil: setMinimumFractionDigits wouldn't work? Oct 26 09:08:31 dont know that one Oct 26 09:08:51 fyi this is the first app I have ever attempted, so far so good other then this decimal issue Oct 26 09:08:53 lol Oct 26 09:09:36 PureEvil: Am not very familiar either. DecimalFormat has setMinimumFractionDigits which determines number of digits after the . Oct 26 09:10:11 Is it a good idea to mix ThreadSafeClientConnManager and ThreadPoolExecutor? Oct 26 09:15:34 i have a list, 200-300 items.. user can filter. when i filter ArrayList i must clean adapter e re-set adapter in ListView? Oct 26 09:41:02 found a simple fix, just / 100 Oct 26 09:41:09 made it a decmial Oct 26 09:55:21 Can anyone help with my settings problem :) Oct 26 09:55:33 I've looked at a bunch of guides, latest being this: http://android-elements.blogspot.com.au/2011/06/creating-android-preferences-screen.html Oct 26 09:56:23 And I create the settings panel, however I can't work out how to say, go to it. I'm trying to display it on an onOptionsItemSelected option from the home screen. :s Oct 26 10:27:36 double feetupint = Double.valueOf(upfeetinput_text.getText().toString()); Oct 26 10:27:36 if(feetupint == Double.NaN) feetupint = 0; Oct 26 10:27:43 what do I have wrong there? Oct 26 10:28:04 its crashing my app if you leave a EditText empty Oct 26 10:28:59 I also tried == "" and == null Oct 26 10:32:17 if(feetupint.equals(value) ? Oct 26 10:32:50 Can't you just check if EditText has content, and process only if it does? Oct 26 10:35:10 PureEvil Oct 26 10:36:36 I looking at it Oct 26 10:36:54 I want it to just make it a 0 if it has nothing in it Oct 26 10:37:49 OnTextChangeListener Oct 26 10:40:56 I have it in the OnClick for the button now Oct 26 10:41:13 will that make a diffrence if I put it in the on text change? Oct 26 10:45:34 I got it just needed to do this: if (upfeetinput_text.getText().toString().equals("")) { Oct 26 10:58:58 There's probably isEmpty(), it's more elegant, or .length() == 0 Oct 26 11:08:34 thank you alankila Oct 26 11:08:43 .length() == 0 worked perfect Oct 26 11:08:48 and does look much better Oct 26 11:15:53 hi, can I send binary data with the Android SMS app? More precisly I'd like to make an intent starting the SMS app with some binary data prefilled Oct 26 11:16:09 usign the 8-Bit SMS codec Oct 26 11:17:03 hello Oct 26 11:17:46 is there a way to let the adapter know that is getView is called becouse of setAdapter or becouse refresh notifyDataSetChanged ? Oct 26 11:17:58 *its getView Oct 26 11:42:26 hi, how to import the resource from dependency library like HoloEverywhere? I got an error about "no resource found ... @style/Holo.Theme".. Oct 26 12:10:32 guys I'm trying to make an app that would communicate with wordpress installation as a news reader. does anyone have experience with this and what would be the best place to start - ie. plugin or JDBC? Oct 26 12:11:26 you almost certainly want to do your actual Internet communication over HTTP Oct 26 12:12:34 aha, so you'd suggest pulling articles directly via http requests Oct 26 12:13:26 probably best to use a json interface, but rss/xml/etc is doable Oct 26 12:13:47 right, I thought about SAX or so, but this makes sense. Thanks man Oct 26 13:19:17 * Baluse listerin Oct 26 13:19:43 hello i want to select category then product then customization. Oct 26 13:19:55 I had implemented this in past with 3 activities Oct 26 13:20:10 Is it better to use a single activity with fragments? Oct 26 13:42:40 Baluse: its really up to how you want to do it. The three fragments will be more flexible Oct 26 13:54:57 is there a tool to validate if an apk file is properly signed? Oct 26 13:55:28 I'm messing around with a basic launcher... temelate you could say. How should I approach drawing a status bar shadow? As an exercise. Should I draw an image over the screen, say 1x30 and just stretch it horizontally? Or are there ways to draw gradients and primitives within the api? Oct 26 14:06:17 well i want to avoid the lag when opening new activity has Oct 26 14:06:34 but is it possible to change action bar per Oct 26 14:06:38 fragment ? Oct 26 14:12:28 Baluse: yes its possible Oct 26 14:50:19 Is it a good idea to mix ThreadSafeClientConnManager and ThreadPoolExecutor? Oct 26 15:11:22 if anyone is interested I am starting today the Beta for my next game... it's a game on the Tycoon genre (similar to Kairosoft's games, but I consider my game a bit deeper)... Oct 26 15:11:42 all help will be appreciated... more info: http://www.gamedev.net/page/indie/project.html/_/simulation/big-boss-tv-r11 Oct 26 15:27:33 hello Oct 26 15:27:48 rottz did you do the graphics? Oct 26 15:28:04 i want to add search at my listview. Should i put it at actionbar? Oct 26 15:48:26 On android studio, if I want to try the app on a device, I need to click the "Play" button, make it and then deploy, is there a way to just deploy? the make takes quite long time Oct 26 15:49:35 the same is for eclpise Oct 26 15:52:32 search isnt showing at actionbar Oct 26 15:52:34 why? Oct 26 16:01:11 Are you following the developer docs on how to add a search view? Oct 26 16:04:48 yes Oct 26 16:04:58 but only get search at overfow Oct 26 16:05:29 however it seems that this is null SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); Oct 26 16:07:32 afternoon Oct 26 16:08:47 can anyone tell me where I might find out more about the animation which is show with a ListFragment when using the "@android:layout/list_content" layout? Oct 26 16:09:13 specifically, I want to determine how I can actually get the loading message to display while my data is being retreived from the database Oct 26 16:36:19 Hello. I have a question.. I was using GCM and MQTT before. GCM is good but somethings it will not be delivered + Google Account is required in Android below 4.0+. MQTT was good too but it does not work for some users (and i have no idea why). Well, now i want to give XMPP a try. Does it require Wake_locks or a Foreground service to run? How about the "heavy-load" traffic? Does it take Oct 26 16:36:19 huge performance or traffic for sending/receiving a message? Oct 26 17:01:21 Hi Oct 26 17:02:27 I've started doing some Android dev using IDEA and Java, but I'm quite frustrated with Java 7 (I'm used to C#) and would like to use Java 8 - would this affect working with Android? If so, would I be better off using Scala, or would that cause problems too - am I better off using Java 7? Oct 26 17:04:31 better off using scala Oct 26 17:05:17 and yes, you cannot use java8 on android Oct 26 17:05:22 Thanks Oct 26 17:05:31 IFAIK some/most/all of Java 7 isn't really officially supported, is it? Oct 26 17:05:52 the stuff that's byte code compatible works Oct 26 17:06:12 which is like everything except try with resources, I think Oct 26 17:06:32 I noticed that I can compile and run with IDEA set to use 7, but I didn't find any Android libs which supported try with resources... Oct 26 17:06:33 Yes that :) Oct 26 17:07:26 but everything in this case isn't much Oct 26 17:07:49 additionally, you don't want to use any libraries that ate only available on 7 Oct 26 17:07:53 I tried to use try with resources with some SQLite stuff and it didn't seem to implement the required interface - not that that's a problem, but when you're used to 'using', it's quite depressing to go back to a = null; try { a = ... } finally { if (a != null) a.close(); } Oct 26 17:07:57 like jodatime Oct 26 17:08:00 ah Oct 26 17:08:18 also further cause of failures Oct 26 17:08:54 if you want a better language for Android, your two choices are monotouch or scala Oct 26 17:09:21 or whatever mono thing that is that lets you do c# Oct 26 17:09:44 yep it's called Xamarin now I think Oct 26 17:09:52 that's the company Oct 26 17:10:03 They renamed the product after the company Oct 26 17:10:04 product is monotouch, I thought Oct 26 17:10:11 is that so Oct 26 17:10:18 Yes, it confused me for a bit Oct 26 17:11:12 I like learning new languages (as long as they're good ;) and it's easier using more 'official' stuff on a platform, so Java or Scala it is, I think Oct 26 17:12:00 scala is not so official, but it works most transparently vs c# Oct 26 17:13:07 Excellent Oct 26 17:14:26 hope you're a functional fanatic Oct 26 17:15:45 Not quite a fanatic, but it's my preferred way to live Oct 26 17:19:05 Can a BaseAdapter know if its getView is called becouse of setAdapter or data refresh ( notifyDataSetChanged )? Oct 26 17:21:03 hi Oct 26 17:21:44 i am trying to create a different view for landscape mode for my activity, but for some reason it always shows the general view, is there a way to trace what is going wrong? Oct 26 17:23:10 meh Oct 26 17:25:31 gdrc, if it matters, you're doing it wrong Oct 26 17:26:32 you say? :P Oct 26 17:34:35 if i start my app in landscape mode it takes the right layout file, but if i then switch to portrait it doesn't switch to the portrait-xml Oct 26 17:35:59 LtRipley: you have to implement onConfigurationChanged maybe ? Oct 26 17:36:38 shmooz: why would i need to do that? Oct 26 17:36:42 If you're handing orientation changes, you need to reinflate your layout Oct 26 17:36:55 i thought that was happening automagically? Oct 26 17:37:53 actually it looks like it is inflatet Oct 26 17:38:01 but with the wrong layout file Oct 26 17:38:13 is there a way to verify why an emulator doesn't run? (black screen) Oct 26 17:38:41 when i turn my device, i will get a new view, but the view takes still the old layout-file Oct 26 17:38:42 Do you have configChanges="orientation" in your manifest? Oct 26 17:39:10 android:configChanges="orientation|keyboardHidden|screenSize" Oct 26 17:39:14 <|0xD34D|> doh Oct 26 17:39:19 Well, there you go Oct 26 17:39:31 <|0xD34D|> you're telling the system you will handle the orientation changes Oct 26 17:39:36 You explicitly told it that you were handling orientation changes Oct 26 17:39:38 <|0xD34D|> instead of letting it do the work Oct 26 17:39:42 Is it a reasonable, sane thing to use NHibernate on Android, or is there something terribly wrong with doing so? Oct 26 17:39:45 SimonVT: oh Oct 26 17:40:01 i don't remember telling it so :D Oct 26 17:40:22 Just that I'm going a bit crazy writing queries in strings for SQLite. It makes me feel like a PHP programmer or something ;) Oct 26 17:40:54 SimonVT: thanks, i guess that solves my problem Oct 26 17:40:54 Sorry, I mean Hibernate, of course Oct 26 17:48:29 it wouldn't work Oct 26 17:48:54 there's no jdbc interface to sqlite for android Oct 26 17:49:19 Foxandxss, wait 10 minutes Oct 26 17:49:31 <^cheeky> o/ Oct 26 17:49:44 pfn: nah, seems like nexus10 emulator needed gpu emulation Oct 26 17:49:46 <^cheeky> i am alive :)) Oct 26 17:51:26 it doesn't need it, it just runs faster with it on Oct 26 17:52:00 <^cheeky> OnCan ... where you @ Oct 26 18:00:33 pfn: seems like nexus10 doesn't work without it :) Oct 26 18:23:58 So I am trying to write an image to a file then have a WebView open the file. I am using "localfile = new File(getActivity().getCacheDir() +"/" + name);" then "new FileOutputStream(localFile);" to write the file, but when I try to load the file into the webview it says it cant find it... what should I do!? Oct 26 18:24:04 I my main problem is that I am not able to tell the webview where to file the image that the fileoutstream wrote Oct 26 18:24:53 localFile.getAbsolutePath() Oct 26 18:25:34 localFile.exists() ? Oct 26 18:25:37 :) Oct 26 18:25:43 StingRay_: that is what I am doing :P Oct 26 18:25:50 StingRay_: webview says nono Oct 26 18:26:05 dunno about webviews Oct 26 18:26:13 use an imageView Oct 26 18:26:15 :) Oct 26 18:27:15 StingRay_: I wanna have the webview since it has soo many nice features, it animates gif, has automatic zoom Oct 26 18:30:27 is there an android API for storing application options, or should i just create my own, IE an sqlite db to store options Oct 26 18:30:46 outlaw84: It also eats memory for breakfast, lunch and dinner. A solution that isn't optimal, but works, would be to encode the image as base64 and just embed it directly Oct 26 18:31:07 rednovae: http://developer.android.com/guide/topics/data/data-storage.html Oct 26 18:31:09 rednovae: shared preferences not enough? Oct 26 18:31:38 nope that'll work fine, thanks Oct 26 18:32:18 Turns out I was missing a slash.... "file:///" + localFile.getAbsolutePath(); wrote fine :S Oct 26 18:33:10 yup, the :// is part of the URL syntax, not the path Oct 26 19:29:35 <^cheeky> hope all are having an awesome week end <3 /me Oct 26 19:47:09 is there anyway to download the api as a readme? my chrome tabs are freezing up Oct 26 19:51:15 <|0xD34D|> Tauss: the docs are in the sdk Oct 26 19:51:30 <|0xD34D|> look in the docs/ directory where your SDK resides Oct 26 19:51:34 Tauss: Are you using Mac OS? Oct 26 19:52:06 windows 7 and I will look for the docs right now Oct 26 19:52:15 Ok, not sure if there's a Dash equivalent on Windows Oct 26 19:52:36 I need to find one for Linux to aid my inevitable switch Oct 26 20:11:38 |0xD34D|: I believe I found the docs I wanted under the android folder. Thank you. Oct 26 20:12:13 <|0xD34D|> np, those are handy to have available especially if working with no internet for whatever reason Oct 26 20:12:15 <^cheeky> staggeredView would be awesomeness for my app !!!! Oct 26 20:14:29 Hi guys, I am wondering about this ContentProvider concept. First, assuming I have more than just CRUD operations. For example if I have a tree indent unindent operations. Is there a recommended way to export them through a ContentProvider? Oct 26 20:15:08 Can anyone help me with Genymotion? Every virtual device image it downloads is corrupted. Oct 26 20:16:18 desmin88: I couldn't get it to work either. A shame, considering Google APIs require Intel images on the regular emulator, which are terribly slow. Oct 26 20:17:02 I wonder if there'd be any risks associated with open-sourcing my live wallpaper. Oct 26 20:17:29 It's paid, so there's obviously the risk of it just getting rebuilt and published by other people, I guess, but China's already doing that anyway Oct 26 20:17:37 Minus the building part Oct 26 20:18:59 So... anyone can help me with a few questions on ContentProviders? Like the one I posted above. Oct 26 20:19:46 Hello. I have a question.. I was using GCM and MQTT before. GCM is good but somethings it will not be delivered + Google Account is required in Android below 4.0+. MQTT was good too but it does not work for some users (and i have no idea why). Well, now i want to give XMPP a try. Does it require Wake_locks or a Foreground service to run? How about the "heavy-load" traffic? Does it take Oct 26 20:19:46 huge performance or traffic for sending/receiving a message? Oct 26 20:20:00 whops, wrong channel ;) Oct 26 20:29:28 Nilium: whats the intent behind osing it ? Oct 26 20:29:53 In case anyone wanted to learn from it. Oct 26 20:30:34 does anyone have a idea how to "set up" proguard that exceptions (in a signed apk) are still exceptions (with line number and classname, etc.)? Oct 26 20:32:13 what would be the point of proguarding it ? Oct 26 20:32:27 if all the possible methods were named Oct 26 20:32:43 Shrinking size for example? Oct 26 20:32:55 my app is sized down for more then 300kb after using proguard Oct 26 20:33:01 I only use proguard for its shrinkery. I don't bother obfuscating my app. Oct 26 20:33:29 yea. But how to "ignore" all those obfuscations? specially in the beta-versions Oct 26 20:33:39 -keepattributes SourceFile,LineNumberTable will do this job? Oct 26 20:33:45 Nilium: if your LW had basic 3d stuff I would very much like to take a look Oct 26 20:33:52 cant remember if it does ? Oct 26 20:34:14 It's all rendered in GL, so technically it does. Oct 26 20:34:42 Haven't decided if I'll open source it, anyway. I like the idea of doing it, but I dislike the idea of people re-releasing it Oct 26 20:34:59 is it popular ? Oct 26 20:35:00 StingRay_: even with names proguarded class files are still a pain to read Oct 26 20:35:17 as far as i know, never tried it for android files Oct 26 20:35:42 Popular: no, but I operate on the assumption that shit people do shit things. Oct 26 20:36:02 Nilium: cause if it is popular, I dont think I would, maybe do a few blog posts with examples from it if you want to give to android community…. rather than giving them a release ready app :) Oct 26 20:36:24 I'm still trying to decide what I'd write about in a blog post about it. Oct 26 20:37:56 well I know what I would want Oct 26 20:39:14 I'm a production 3d artist, games consoles, vfx, there is little I dont know about 3d… but putting my skills towards LW with vibrant 3d, basics would be ace Oct 26 20:39:44 not really searched quite yet for any specific guides/tuts… but not sure they existed when I did happen on the idea of LW Oct 26 20:40:09 Well, I'm not interested in writing tutorials or guides. Oct 26 20:40:30 And I used to do game art. Need to get back into that. Oct 26 20:41:07 done it for 17 years, think I have done my grind now, not sure I will ever go back Oct 26 20:41:13 not a fan anymore Oct 26 20:41:15 :) Oct 26 20:41:33 That's how most of the folks in it get. Oct 26 20:41:59 If the crunch doesn't kill you, anyway. Oct 26 20:42:16 well, it wasn't that really Oct 26 20:42:34 for me it was…erm… the next stage of my career would be to go 100% management Oct 26 20:42:50 and that just… felt like jumping of a roof into sh*t Oct 26 20:42:52 :) Oct 26 20:43:07 is anyone exprienced with using HttpClient and/or ThreadSafe...? Oct 26 20:47:38 misterli: tis the weekend, not sure now is the best time to ask questions like that :) Oct 26 20:49:06 Yeah i know Oct 26 20:49:25 Questions like that are best answered with a couple of shots consumed already... Oct 26 20:49:42 Well, i try since 2 weeks now to write a "_proper_" Http Client which can handle up to 10.000 connections but fail.. Tried everything. Serializing to disk. Putting Requests to DB. Using ExecuteOnExecutor, using all stuff... :D Oct 26 20:50:27 Or maybe you have an idea how to "good"-sync stuff from device to server? For example syncing the images to a server? Currently i query the MediaStore and put all images to a "Request". Oct 26 20:50:50 storing the timestamp of the latest uploaded pic and next time querying > timestamp LIMIT n,Offset. Oct 26 20:50:51 That kind of scaling usually require evented async combined with thread pools... Oct 26 20:51:09 Yeah. This is what i were doing but the reusing of the connetion failed on/in some/most cases Oct 26 20:51:24 ThreadSafeClientConnManager and ThreadPools Oct 26 20:51:37 One (os backed) thread per request usually will not work at those scales. Oct 26 20:53:08 http://pastebin.com/e8hAkEyY Oct 26 20:53:47 This is what im currently doing. AsyncTaskExecutor.executeConcurrently(new PostTask(_context, httpClient, postData), null); is putting the stuff to task.executeOnExecutor with a corepool size of 4 and a maximul pool size of 256 Oct 26 20:57:54 any hint to improve this would be great. I was also thinking about using MQTT for sending only "text-stuff" which do not need a MultipartEntity, but this would be overload the app Oct 26 20:58:52 misterli: I can't help you with this; you're probably far ahead of me already with this on Android. But you have checked out other efforts in this area like Volley, right? Oct 26 20:59:17 Is it possible for an Android app parts (for example services and activities) to be run on different PROCESSES at the same time? Not asking about Threads (shared memory), but actually different processes. Oct 26 20:59:17 Yes. Volley seems to be very slow and it does not support multipartentity. Just with a few hacks which are very dirty Oct 26 20:59:34 alankila there by any chance ? Oct 26 21:00:19 tried many stuff. I guess it would work great when the ThreadSafeClientConnManager would really work "safe". but it does not drop the connections in all cases Oct 26 21:02:47 Can anyone even hear me on this channel? I fear that my IRC settings might be wrong / I don't have a voice in the channel. Oct 26 21:03:08 Yes. It is because you may not registered/login via nickserv. But now you are :) Shloffen Oct 26 21:03:25 Shloffen welcome to the jungle! Oct 26 21:03:34 lol, thanks :) Oct 26 21:04:08 misterli: Just browsing the headlines regarding netty on Android drops a lot of hints that pushing the IO in Android that hard is not a well trodden path, which I guess you're feeling already. Oct 26 21:04:39 yes Oct 26 21:05:13 good news everybody Oct 26 21:05:19 anyway. There must be a "good" and clean solution Oct 26 21:05:21 DroidCon UK 2013 was great! Oct 26 21:05:25 Hi, I am developing an app to be as an aid for displaying various information: text, accessplans, hydrants etc. for a fire department. Now I was thinking of publishing the app on Google Play (instead of self signed) but am worried that by doing this it would be possible for a fire department to buy 10 tablets and use the same Google Account for all of them, thereby avoiding to pay for my app more than once. Is there any way of dea Oct 26 21:05:52 misterli of netty doesn't work well, maybe try apache mina Oct 26 21:05:52 So a small question: I'm a beginner in Android, and am building an app which uses Sqlite. I want a sync adapter to sync with my server, or at least a service to do so. How do I make sure no two processes update the Sqlite DB without the other knowing about it? Oct 26 21:06:06 misterli: And this one you've checked as well, http://loopj.com/android-async-http/ ? Oct 26 21:06:42 "Persistent cookie store, saves cookies into your app’s SharedPreferences" Oct 26 21:06:45 :O Oct 26 21:07:06 hey kjeldahl how are you Oct 26 21:07:18 Yes. But it does not Queue Requests :) Oct 26 21:07:29 And it does not MultiThreaD Requests ( i need at least 4 connections similar ) Oct 26 21:07:38 g00s: Good, it's been a bit busy, touring the country with speaking engagements. Oct 26 21:07:43 g00s: You? Oct 26 21:07:55 oh, nothing as exciting - what are you speaking about ? Oct 26 21:08:04 misterli: Like I said, you're WAAAY ahead of me. :-) Oct 26 21:08:17 would domination with kawa :D Oct 26 21:08:22 :P damn. It cant be "that" hard Oct 26 21:08:22 *world Oct 26 21:08:26 g00s: Mobile security. I consider it a "side gig", but it pays the bills! ;-) Oct 26 21:08:33 oh wow Oct 26 21:09:50 I think I could fit all the people who knows anything about Kawa into one conference room. Wouldn't pay a lot of bills! ;-) Oct 26 21:10:12 (in this country I mean) Oct 26 21:10:17 if they all knew it was a secret weapon they might :D Oct 26 21:10:40 volley would be great if it would support proper MultiPartEntity Oct 26 21:11:15 Well. If there is any other way to send/share between client<->server (text and binary-data) it would be great if you could tell me which. XMPP? Oct 26 21:12:03 kjeldahl just a quick question, by any chance, do you recognize this algorithm asDouble() ? https://code.google.com/p/core-java-performance-examples/source/browse/trunk/src/main/java/com/google/code/java/core/parser/ByteBufferTextDoubleReader.java Oct 26 21:12:24 its not horner's method, its not a traditional strod implementation either Oct 26 21:12:34 *strtod Oct 26 21:13:02 No idea. Oct 26 21:13:18 ok, no worries - a long shot indeed Oct 26 21:13:58 misterli what were you trying to do again ? Oct 26 21:14:19 Its a Syncing-Service. It syncs all Files/Images/whatever from client to server Oct 26 21:14:26 like a backup-service Oct 26 21:14:44 currently it does it by using POST REquests Oct 26 21:15:35 hm, http tho ? Oct 26 21:15:43 maybe find a java rsync impl Oct 26 21:15:45 yes. Currently Oct 26 21:16:25 So guys can it happen that the same app's services / activies run on the device in different processes? Oct 26 21:16:41 Shloffen: 5 seconds Oct 26 21:16:44 rsync would be a solution but i need to identify the device. Its not just the file. There are some file-informations too Oct 26 21:16:59 StingRay_: tanks Oct 26 21:16:59 This is why i use MultiPartEntity.Sending $_POST Vars and $_FILE vars at once Oct 26 21:17:03 StingRay_: thanks Oct 26 21:17:09 Shloffen: the amount of time it would take to get your answer if you search google Oct 26 21:17:23 i see http good for request/response stuff, not a backup service Oct 26 21:17:23 15 mintues Oct 26 21:17:35 the amount of time (min) you been waiting for an answer here Oct 26 21:18:04 Yeah. The App has several "Backup-"Stuff-Solutions. Its not just for backuping but it's a service which has tons of devices. And i need to identify this device. So how would you do that? Oct 26 21:18:05 maybe i'm wrong. Oct 26 21:18:13 No, you are not Oct 26 21:18:37 But at least it doesnt matter how to transfer the file aslong as the "Header" of the package (HTTP 1.1) are not overloaded Oct 26 21:20:00 StingRay_: You are right I found some of the answer now that I googled it. I googled it before, with different terms, and didn't find anything concrete. Sometimes rephrasing the question helps. I will try to do the same with my Sqlite question (the original motivation). Oct 26 21:20:32 The problem is not the transfer itself at all, but the problem is that it "reserve" thousands of connections. Its important to transfer 2-4 files at once. Sure, i may use a ThreadPool. This is what im currently doing, but it will causes outofmemory when there are too many Oct 26 21:22:02 http://pastebin.com/e8hAkEyY If the reusing of connection would work flawless in my pastebin it would be everything fine ;-) Oct 26 21:22:06 misterli multipath tcp will do that automatically Oct 26 21:22:22 iOS already has it, althought not used deeply; linux has or is getting it Oct 26 21:22:28 android will probably have it eventually too Oct 26 21:22:34 pff ;P Oct 26 21:22:47 hehe Oct 26 21:22:53 ok, so what can you do now Oct 26 21:23:13 i wish i knew, i'm stumped Oct 26 21:23:22 no idea. Maybe fixing the ThreadSafeClientConnManager (http://pastebin.com/e8hAkEyY) Oct 26 21:30:19 misterli dunno if this will help; i just picked up a copy of http://www.amazon.com/Network-Programming-Elliotte-Rusty-Harold/dp/1449357679 Oct 26 21:30:23 looks very good Oct 26 21:30:42 i'd buy the ebook from oreilly tho Oct 26 21:31:20 you'll have to skip the parts about nonblocking i/o though, since android doesn't have nio.2 Oct 26 21:31:37 sorry i can't be of more help Oct 26 21:33:06 Thank you for that. I rode (parts) of it already Oct 26 21:33:32 but HttpClient is a crap. It's not working flawless... Its not really a nio issue, isnt it? Oct 26 21:36:26 misterli apache HttpClient? are you using the android one ? Oct 26 21:37:19 Apache httpclient :) Oct 26 21:37:31 are you using the android supplied one though ? Oct 26 21:38:03 yes. I tried both. But still the problem that the connection is not reused or canceled. Even with EntitiyUtils.ConsumeCrap() Oct 26 21:39:03 misterli lemonxah seemed to have knowledge of some of the android-specific quicks in harmony Oct 26 21:39:11 maybe you can catch him Oct 26 21:39:34 (as related to networking classes) Oct 26 21:39:41 okay great. :-) Did you try XMPP before? Afaik google want to use XMP for the ne GCM Service? Oct 26 21:39:53 no, i use mqtt Oct 26 21:39:58 !!! Oct 26 21:40:11 i tried to use MQTT instead of GCM SEVERAL times Oct 26 21:40:22 it works(ed) but it does not reconnect in some cases Oct 26 21:40:29 for that sort of thing GCM might be better Oct 26 21:40:56 No, it's not. My app is used in Israel, China,... where google is blocked. MQTT is a backup solution in my app but it's little buggy Oct 26 21:41:10 one of the mqtt devs at ibm (alsm) hangs out in #mqtt, if you have any issues with paho you may be able to ask him Oct 26 21:41:29 there are a few ibmers there who work on paho or other clients Oct 26 21:41:58 Yeah. Well. It cannot be too hard. Paho seems to be easy. And it works. But just drop the connection "_sometimes_" Oct 26 21:42:07 Do you have any problems using it? Or how do you use it? Oct 26 21:42:25 i'm mre in an experimental phase now; but - mobile tcp just sucks all around Oct 26 21:42:34 its a stateful tcp connection Oct 26 21:42:44 okay. I had 30.000 Beta-Tester and about 10.000 of them exprienced problems after a few days Oct 26 21:43:07 well, can't expect that tcp connection to live more than 20 minutes; i have a short timeout Oct 26 21:43:18 also, there are 2 clients: mpaho and fusesource Oct 26 21:43:21 *paho Oct 26 21:43:34 yes Oct 26 21:43:35 fusesource was just acquired by RedHat Oct 26 21:43:50 How about battery/performance? Did you have any problems? Oct 26 21:44:23 nope. lemonxah is also playing with it, he can help Oct 26 21:44:35 okay, cool Oct 26 21:45:10 i wish the paho client did a few things differently; they create too much garbage in the logging for example Oct 26 21:45:33 yep :S Oct 26 21:45:35 i wish there was a way to access mqtt ping Oct 26 21:45:46 the older ibm client had that Oct 26 21:45:55 do you reconnect using the lostConnection() or by a network receiver? Oct 26 21:45:56 good to test connections :) Oct 26 21:46:09 can't trust lostConnection Oct 26 21:46:13 Yeah Oct 26 21:46:22 network receiver + short timeout Oct 26 21:47:15 there are some areas i'm not clear about yet Oct 26 21:47:22 go ahead. Which one? Oct 26 21:47:30 on 3g, the socket can wake up the phone if data arrives Oct 26 21:47:34 mqtt is very cool, but ... Oct 26 21:47:35 but apparently, not on wifi Oct 26 21:47:45 it may not be applicable to your problem domain though Oct 26 21:47:46 ? it does in my case Oct 26 21:47:56 hm Oct 26 21:48:06 i wish this shit was more documented , heh Oct 26 21:48:14 these corner cases with wifi wakelocks and such Oct 26 21:48:22 yup Oct 26 21:48:27 But why do you need wakelocks? Oct 26 21:48:32 wake locks are evil Oct 26 21:48:43 maybe thats why you're connections are dying :P Oct 26 21:49:07 it's running within a service and return sticky.Even if it dies it should reconnect when the service come back Oct 26 21:49:39 oh, i sync with the mqtt broker with alarmManager Oct 26 21:49:44 need a wakelock Oct 26 21:50:11 But you dont handle the wakelock by yourself? Oct 26 21:50:19 i do Oct 26 21:50:35 there is a little helper class in the support lib now that does it Oct 26 21:50:46 WakefulBroadCast or something like that Oct 26 21:50:55 AlarmManager.RTC_WAKEUP should do that? Oct 26 21:51:15 only wakeup, the phone can still go to sleep after receiver ends Oct 26 21:51:19 ah, i c Oct 26 21:51:25 in other words, between receiver and service start Oct 26 21:51:57 i see. Well, i dont like the concept that services need to be in foreground to stay alive. (because of security) Oct 26 21:51:57 Well, I wrote 1500 words about my app and I haven't touched implementation details.. Oct 26 21:52:18 <^cheeky> Nilium: what was the paper for if you don't mind me asking Oct 26 21:52:29 Har har Oct 26 21:52:59 <^cheeky> immmm ok sorry Oct 26 21:53:50 I have a degree in English, I'm allowed to write things Oct 26 21:54:03 Everyone else doing writings is just an illegal writer. Oct 26 21:54:05 <^cheeky> no one is stopping you !!!!! lol just ws curious Oct 26 21:54:14 <^cheeky> heh Oct 26 21:54:25 I'm assuming the "what was the paper for" thing was a joke Oct 26 21:54:25 <^cheeky> i am an illegal programmer Oct 26 21:55:03 <^cheeky> no .... :S just wanted to know, its cool :) Oct 26 21:55:18 It's not a paper. I'm writing because I can. Oct 26 21:55:49 does anyone know how to fix genymotion having corrupted downloads? Oct 26 21:55:50 Also need to get my fingers in shape for NaNoWriMo next month. Oct 26 21:56:26 desmin88 ? Oct 26 21:56:38 Napalm what did you do at droidcon ? Oct 26 21:56:42 see anyone ? Oct 26 21:56:48 g00s: every single virtual device image it downloads gets corrupted Oct 26 21:56:51 He set some people on fire, kidnapped some other people Oct 26 21:57:09 It turns out he has a very spacious closet. Oct 26 21:57:19 desmin88 i just downloaded an image, it worked fine Oct 26 21:57:30 mac has 1.3.1 which is newish client Oct 26 21:57:41 g00s: met Cyril Mottier and some other Googlers Oct 26 21:58:51 Napalm cool. did they have an RxJava session there ? Oct 26 21:59:01 i hope you didn't set them on fire Oct 26 21:59:20 g00s: every time without fail this happens Oct 26 21:59:21 http://gyazo.com/ad761c88c713602f0e332c4ea34d00c5 Oct 26 21:59:44 desmin88: works fine for me Oct 26 21:59:50 yay Oct 26 22:00:02 desmin88 something is wrong on your end Oct 26 22:00:08 just worked fine Oct 26 22:01:14 desmin88 even your irc isn't working :) Oct 26 22:01:22 you have a shitty connection maybe Oct 26 22:01:42 i was uninstalling virtualbox Oct 26 22:02:47 and i just reinstalled virtualbox Oct 26 22:04:47 Can't decide if I should break this up into a series of blog posts or just cram everything into a single post Oct 26 22:07:15 Nilium if you're using mac os 10.9 does moom work ok with it ? Oct 26 22:07:22 Yes. Oct 26 22:07:30 thx Oct 26 22:07:45 Hmm, can someone help me with endlessadapter? The progress bar at the end of the listview when it loads more items wont center align and twitches rather then rotates Oct 26 22:07:54 You just need to make sure to give it permission to control stuff, since all your apps will lose those permissions with 10.9 since the way it's set up has changed. Oct 26 22:08:10 Some apps you'll need to manually add to the list (drag the app from Finder into the list). Oct 26 22:08:29 hm, interesting. thanks Oct 26 22:34:23 If I want to handle any kind of http intent (sharing from browser for instance), isn't this all that is required from my manifest? https://gist.github.com/ekroth/15c2cd1bac727b2f98b3 Oct 26 22:36:13 Still my application doesn't show up when sharing or opening http links Oct 26 22:36:50 hi, i am building a service that is going to be running all the time to get GPS location, but if the mobile sleep the service will stop, so how do i know when the device sleeps ? so I can wake up with an AlarmManager Oct 26 22:57:56 Hey guys, I need some help. My progressbar is twitching, and wont stay centered. Heres the layout http://pastie.org/8433420 and my endlessadapter class http://pastie.org/8433424 Oct 26 23:00:06 woops, wrong endlessadapter. Oct 26 23:00:37 http://pastie.org/8433429 Oct 26 23:02:13 hmm, and it also stops loading/clears screen whenever the screen rotates Oct 26 23:03:11 desmin88: cacheInBackground is suppose to be synchronous not asynchronous Oct 26 23:03:55 really? Oct 26 23:03:57 yes Oct 26 23:04:05 thats not what i gathered from the github page Oct 26 23:04:41 its already on another thread, use setRunInBackground(false); if you want it the other way Oct 26 23:05:06 oh Oct 26 23:05:29 you meant synchronous for the endlessadapter thread Oct 26 23:06:49 sweet, its working Oct 26 23:07:04 the progressbar that is Oct 26 23:07:08 but i still cant center it Oct 26 23:08:06 Napalm: danke Oct 26 23:13:29 When I launch an Intent from an Activity, how can I detect the intent has returned from a Fragment inside that Activity? Oct 26 23:13:49 hello Oct 26 23:14:18 Hi Oct 26 23:15:25 Call me Occam. Oct 26 23:15:49 i want to create a fragment that would be a listview. So adapter would only change and some actiobar items. Oct 26 23:16:00 should i create one activity and 1 or two fragments? Oct 26 23:16:31 also could i swipe and go back somehow but not forward? Oct 26 23:22:52 Baluse: sounds ok Oct 26 23:31:17 Napalm: Have you ever had issues with centering the pendingview? Oct 26 23:32:22 desmin88: its a direct child of a ListView it will be required to be a FrameLayout with the content inside centered Oct 26 23:32:45 Well thanks, did not know that Oct 26 23:41:38 Question - is it important or desirable that the method of sending data to the server from an app is the same as sending data from the server to an app? Oct 26 23:42:30 i don't see why that would be desirable, but maybe you can be more specific Oct 26 23:42:47 For sake of continuity within the development I guess Oct 26 23:43:03 i.e. is it OK to use XML to send to the app, but JSON to send to the server? Oct 26 23:43:31 Anthaas: sure Oct 26 23:43:34 i don't see a problem with that if it is easier to reach the goal Oct 26 23:43:40 why wouldnt it be? Oct 26 23:43:40 Bonus. Oct 26 23:43:47 I just assumed it might be considered messy Oct 26 23:43:54 or something of the sort. Oct 26 23:44:08 Anthaas: You shouldn't be parsing nor writing either of those formats though.... Oct 26 23:44:16 the only thing you should avoid is having too maintain two different methods that do the say stuff, for no reason Oct 26 23:44:53 Ahh, so don't use XML and JSON to send to the server, for example, just one or the other. Oct 26 23:45:20 Json > XML for posting data. Oct 26 23:45:43 you probably have a reason to do use both, there is no real reason not to do it Oct 26 23:46:15 Napalm: Despite putting my progressbar inside a framelayout with a gravity of centered, it still is left aligned Oct 26 23:46:18 but if you could reuse some of your code, you should try it to avoid implementing the same logic twice Oct 26 23:46:28 Thats my plan. JSON to the server, XML to the app. Oct 26 23:47:31 i guess the type of the data is very different anyhow Oct 26 23:48:36 I need to add data that is not within a mysql resultset and I find that easier with XML personally. Oct 26 23:49:36 Wait, are you using just a basic LAMP setup for your server? Oct 26 23:49:41 i usually wrap my data in objects and it doesn't really matter to which format i export it to Oct 26 23:50:15 Hmm, interesting. Oct 26 23:50:43 Depending on what you are running on the server side, Ruby is really good at json. Oct 26 23:50:57 So create a custom PHP class, for example, set an array to one dataset, and some other variables as the data I want, then export my echo json_encode($mycustomclassvariable); ? Oct 26 23:51:57 desmin88: pastie your layout file Oct 26 23:52:10 sure Oct 26 23:52:30 Anthaas: i don't know enough about php to answer that :) Oct 26 23:52:38 Gotcha, yeah, if you are doing it that way you could make your class json serializable: http://php.net/manual/en/jsonserializable.jsonserialize.php Oct 26 23:52:38 but it sounds like the right direction Oct 26 23:52:48 http://pastie.org/8433471 Oct 26 23:53:21 Ahhh thanks! Oct 26 23:54:30 Can a phones hardware be controlled from web app? Oct 26 23:54:35 (like the camera) Oct 26 23:55:11 No. Oct 26 23:55:20 Yes Oct 26 23:55:23 :( Oct 26 23:55:26 WE DONT WANT WEB APPS Oct 26 23:55:27 ALWAYS NO! Oct 26 23:55:33 I agree Oct 26 23:55:38 Haha, correct answer is SOME hardware can. Oct 26 23:55:42 Oct 26 23:55:47 desmin88: try settings the ProgressBar view's layout_width to wrap_content Oct 26 23:55:49 But the more correct answer is don't make a web app. Oct 26 23:55:50 ;P Oct 26 23:56:21 Yes, the most correct answer is don't make a web app. Oct 26 23:56:26 use #phonegap Oct 26 23:56:27 why not though? Oct 26 23:56:39 cause they are the worste Oct 26 23:56:41 \fenny, any reason why i shouldn't make web app Oct 26 23:56:45 for the user Oct 26 23:56:55 Because, I #care about your end users. Oct 26 23:56:57 JavaScript is slower, lack of offline capability, poor UX Oct 26 23:56:58 personally I find them and uninstall instantly Oct 26 23:57:04 Same. Oct 26 23:57:08 I will NOT use a web app. Oct 26 23:57:18 to be fair none of you are average users Oct 26 23:57:18 Facebook is a webapp isn't it? Oct 26 23:57:20 No Oct 26 23:57:22 want to know how to kill all web/phonegap apps ? Oct 26 23:57:23 They changed it Oct 26 23:57:28 make them carry a label Oct 26 23:57:31 :) Oct 26 23:57:36 Napalm: No effect other than the size of the progressar. Oct 26 23:57:37 Mark Zuckerburg said doing FB as a Web App is "the worst decision Facebook has ever made". Oct 26 23:57:39 So why is it still such a badly done app x.x. Oct 26 23:57:54 Facebook still uses waay too much ajax though. Oct 26 23:58:23 facebook is part webapp Oct 26 23:58:30 Well guys i was thinking of doing the lynda 7 hour course for learning android dev - from installing eclipse to deployment. What are your thoughts on that? Oct 26 23:58:56 You will learn nowhere near enough of what is required for a decent Android app in 7 hours. Oct 26 23:58:58 I have seen the lynda course... Oct 26 23:59:00 lol Oct 26 23:59:09 It's full of fluff. Oct 26 23:59:13 desmin88: i just checked back on your adapter.. thats your problem Oct 26 23:59:27 Any suggestions on a better resource? Oct 26 23:59:29 webscrapper1: go for it, let us know in 7 hours how it went Oct 26 23:59:29 do they do a 14 hour course so you get millons of downloads guarenteed ? Oct 26 23:59:36 see getPendingView() change content to: return LayoutInflater.from(parent.getContext()).inflate(R.layout.item_pending, parent, false); Oct 26 23:59:36 take that one if they do Oct 26 23:59:44 desmin88: ^ Oct 26 23:59:49 I suggest reading the get started @ google. Then use code project and stack overflow to get past issues. ;D Oct 26 23:59:58 \smooz, just looking for the best way to get up to speed Oct 27 00:00:07 \shmooz, just looking for the best way to get up to speed Oct 27 00:00:11 webscrapper1: it's all good Oct 27 00:00:26 The BEST way would learn to develop one natively. Oct 27 00:01:10 Do you know any java webscrapper? Oct 27 00:02:32 i tried slide for activity but screen is black Oct 27 00:02:37 any idea ? Oct 27 00:02:46 Napalm: Hmm, I changed my my getPendingView to that, and while keeping the progressbar width to wrapcontent, it still wont stay centered. Oct 27 00:03:07 Baluse: setContentView(R.layout.mylayout); Oct 27 00:04:41 Huhhh, does issuing .add on an ArrayAdapter cause the ListView to be updated accordingly? Oct 27 00:04:46 where? Oct 27 00:04:57 it is temporary Oct 27 00:04:57 michalrus: notifyDataSetChanged() Oct 27 00:05:04 Anthaas, thankyou<33 Oct 27 00:05:21 On your new activity. Oct 27 00:05:29 If its black its because it doesnt have a content view Oct 27 00:07:59 Anthaas, it seems not to update it, to. I'm using java.util.List when initialising the ArrayAdapter. Oct 27 00:08:10 Maybe this is the issue? Oct 27 00:08:14 *too Oct 27 00:08:22 ListView.notifyDataSetChanged() ? Oct 27 00:08:29 Oh! Oct 27 00:08:38 I was doing this on ArrayAdapter. Oct 27 00:08:41 haha! Oct 27 00:08:48 (Why does it have this method?!) Oct 27 00:09:18 If you change the dataset that the adapter represents, you need to notify the list view that its adapter has had its dataset changed, so it can refresh the content. Oct 27 00:09:38 Yes. Oct 27 00:09:54 This method does that. Oct 27 00:10:09 Anthaas, but why does ArrayAdapter.notifyDataSetChanged() exist? Oct 27 00:10:39 because Oct 27 00:10:48 the android api people put it in ther Oct 27 00:10:54 O_O Oct 27 00:11:05 I've not yet used it, but Im sure there is a use. Oct 27 00:11:38 Well, the java doc says: Oct 27 00:11:39 * {@inheritDoc} Oct 27 00:11:41 michalrus: what do you mean why does it exsit though, that question makes no sense Oct 27 00:11:41 ;) Oct 27 00:12:04 because google said, let there be light Oct 27 00:12:12 desmin88: I think he meant what is its purpose, what functionality could be implemented through its use. Oct 27 00:12:29 And there was light, and it was good. Oct 27 00:12:33 any listview that doesnt have static data? Oct 27 00:12:36 desmin88, if you use .notifyDataSetChanged on ListView, then there's no reason for it to be also a method of ArrayAdapter, especially if it does not do what you'd expect it to. Oct 27 00:13:08 desmin88, or there is and the reason is what I'm asking about. Oct 27 00:13:15 hello i call setDisplayShowTitleEnabled but takes ages to make it disappear Oct 27 00:13:21 michalrus: That sentence isn't necessarily true - the notifyDataSetChanged might have a different purpose in ArrayAdapter. Oct 27 00:13:23 like 1/2 of second Oct 27 00:13:25 Read the documentation :-) Oct 27 00:13:31 Anthaas, 00:13:08 < michalrus> desmin88, or there is and the reason is what I'm asking about. Oct 27 00:13:34 Kay. Oct 27 00:13:40 what Oct 27 00:14:03 desmin88, okay, forget that, whatever. I'm satisfied with Anthaas understanding my point. Oct 27 00:14:11 lol Oct 27 00:17:18 \fenny, i know a little java. but i write mostly in python Oct 27 00:17:56 hmm. Oct 27 00:19:54 I have a menu with a single item that's set to showAsAction="always" and it's going into overflow even though there's plenty of room for it. Any idea why? Oct 27 00:20:27 doesnt that make it go into the overflow? Oct 27 00:21:01 try "ifRoom" Oct 27 00:21:21 I thought it forced it to display instead of overflow. Trying ifRoom again. Oct 27 00:21:39 Anthaas, actually, there's no notifyDataSetChanged in ListView. :O http://developer.android.com/reference/android/widget/ListView.html Oct 27 00:21:46 :O Oct 27 00:22:06 desmin88 - It still goes into overflow with "ifRoom" Oct 27 00:22:15 http://developer.android.com/reference/android/widget/ArrayAdapter.html#notifyDataSetChanged() Oct 27 00:22:29 michalrus: thats where my confusion came from Oct 27 00:23:08 desmin88, ok, I see, sorry then. :) Oct 27 00:23:11 Xonk: are you using the support library? Oct 27 00:23:25 michalrus: My bad! Are you calling notifyDataSetChanged on UI thread? Oct 27 00:23:42 Yes Oct 27 00:23:46 The point is, that my ListView is not updating, even after adapter.notifyDataSetChanged(). ;O Oct 27 00:23:48 can you please paste your menu xml Oct 27 00:23:57 Anthaas, I *think* so, let me check. Oct 27 00:24:13 https://github.com/PledgeApps/buyingtime-android/blob/master/src/main/res/menu/alarms.xml Oct 27 00:24:19 michalrus: And you are sure that the underlying data IS definitely being changed? Oct 27 00:24:44 Anthaas, is java.util.List mutable? Oct 27 00:24:55 No REPL to check that. O_O Oct 27 00:25:05 Java Lists are mutable, yes Oct 27 00:25:09 In Java all lists are mutable. Oct 27 00:25:13 Okay. Oct 27 00:25:14 As far as I know Oct 27 00:25:19 I know of no exceptions. Oct 27 00:25:49 I also learned a couple weeks back that the only difference between an ArrayList and a Vector in Java is that Vectors are synchronised objects, ArrayLists are not. Oct 27 00:25:57 You can get immutable lists with Oct 27 00:26:04 Anthaas, right. Oct 27 00:26:07 ImmutableArrayList? Is that a class? Oct 27 00:26:08 Collections.unmodifiableList(List) Oct 27 00:26:14 ahhh Oct 27 00:26:21 desmin88 - Found it. My class needs to extend ActionBarActivity instead of just Activity. Oct 27 00:26:32 http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collections.html#unmodifiableList(java.util.List) Oct 27 00:26:34 well there ya go Oct 27 00:26:41 sonOfRa, well, I want it to be mutable. I'm using it as data source for ArrayAdapter, on which I'd like to use .add() Oct 27 00:26:43 Thanks for taking a look Oct 27 00:26:46 i think Napalm|afk left me :( Oct 27 00:27:16 sonOfRa, so, when using java.util.List and .add, and adapter.notifyDataSetChanged... my view stays intact. Oct 27 00:27:19 :< Oct 27 00:27:44 s/view/ListView/ Oct 27 00:29:18 Anthaas, yeah, wrapping it in runOnUiThread does not help either. Oct 27 00:29:42 Uh, such a basic functionality, this should work out of the box. :< Oct 27 00:32:36 hello i want to have background colors at list Oct 27 00:32:42 depending on dataobject Oct 27 00:32:48 is it best to define my colors ? Oct 27 00:32:55 as resourse and create an adaptor? Oct 27 00:35:29 Am I just crazy, or should this progressbar be centered in my listview? http://pastie.org/8433518 Oct 27 00:36:03 your crazy Oct 27 00:36:11 michalrus, you aren't blocking the UI thread from redrawing are you? Oct 27 00:36:22 is the style of that bar line or circle ? Oct 27 00:36:34 desmin88: ^ Oct 27 00:36:43 circle Oct 27 00:37:00 and does the circle expand to the entire width of the parent view ? Oct 27 00:37:06 no Oct 27 00:37:11 then you are crazy Oct 27 00:37:38 http://gyazo.com/342ab47af077cbb62c29629be173e3d2 Oct 27 00:37:38 layout_width="wrap_content" on the progress view Oct 27 00:37:48 or Oct 27 00:37:52 set gravity Oct 27 00:37:57 not layout gravity Oct 27 00:38:05 layout_gravity is a parent relationship Oct 27 00:38:17 gravity is for placement within it's own view bounds Oct 27 00:38:42 brb, coffee Oct 27 00:39:38 Fenny, I don't think so. I'm now even running all .add()s and .notifyData... in another thread that runs them in runOnUiThread. :< Oct 27 00:40:05 michalrus: pasting your code to us would make helping easier Oct 27 00:40:18 Anthaas, it's Scala. Ok? :^ Oct 27 00:40:20 michalrus: i'm guessing, your adding to the listVIew ? Oct 27 00:40:30 Personally, I can't read or write Scala. Oct 27 00:40:32 StingRay_, to the ArrayAdapter of the ListView. Oct 27 00:40:34 Someone else Im sure can though Oct 27 00:40:50 getCount() before and after the add on the adapter Oct 27 00:40:56 see if you are actually doing it Oct 27 00:41:00 StingRay_, right away! Oct 27 00:41:14 also make sure your not using another instance other than what you think and are adding to Oct 27 00:41:16 StingRay_, setting the gravity, not layout gravity of the progressbar to center doesnt affect it Oct 27 00:41:54 desmin88: no sure that it would, thinking about it Oct 27 00:41:58 but what I said was true Oct 27 00:42:03 yes Oct 27 00:42:06 i got them confused Oct 27 00:42:11 and also making the 1st changes would work Oct 27 00:42:22 as in wrap_content or manually set a size Oct 27 00:42:32 desmin88: layoutParams = new RelativeLayout.LayoutParams(90,90); Oct 27 00:42:33 then layout_gravity has "free" space to play with Oct 27 00:42:51 well, FrameLayout Oct 27 00:43:03 Ok I will set the progressbar to wrap/wrap Oct 27 00:43:08 desmin88: layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT,RelativeLayout.TRUE); Oct 27 00:43:27 shmooz: he working with a frame layout Oct 27 00:43:33 and no, using relative layout is silly Oct 27 00:43:35 ok then Frame Oct 27 00:43:39 huge performance waste Oct 27 00:43:48 for something so simple Oct 27 00:44:21 doesn't Frame have the same thing ? Oct 27 00:44:25 no Oct 27 00:44:29 totally not Oct 27 00:44:32 look at the classes Oct 27 00:44:39 the size difference alone :) Oct 27 00:45:08 well then I would use Relative Oct 27 00:45:30 thats again, a bit silly Oct 27 00:45:37 there are no "relative" conditions Oct 27 00:45:40 it works fine for me :) Oct 27 00:45:40 hence no need Oct 27 00:45:52 didn't say it wouldn't work Oct 27 00:45:54 why would you use relativelayout with only 1 child view Oct 27 00:46:00 said it was 10x the cost of what it needs to be Oct 27 00:46:02 StingRay_, it's throwing an exception. ;o Oct 27 00:46:03 10-27 02:45:37.917: DEBUG/com.michalrus.helper(32105): adding maps! Oct 27 00:46:03 10-27 02:45:37.917: DEBUG/com.michalrus.helper(32105): ; count = 4 Oct 27 00:46:03 10-27 02:45:37.927: DEBUG/com.michalrus.helper(32105): ; Some imported map Oct 27 00:46:03 10-27 02:45:37.927: DEBUG/com.michalrus.helper(32105): ; exception: java.lang.UnsupportedOperationException Oct 27 00:46:06 10-27 02:45:37.927: DEBUG/com.michalrus.helper(32105): ; count = 4 Oct 27 00:46:07 pls no Oct 27 00:46:15 I'm centering the progress in both child and parent Oct 27 00:46:28 michalrus: http://pastie.org/ Oct 27 00:46:32 the parent in my app is a VideoView Oct 27 00:46:38 desmin88, 5 lines is too much? Oct 27 00:46:46 a bit Oct 27 00:46:49 Kay. Oct 27 00:47:16 e.getMessage is null. Oct 27 00:48:13 Heres the current pendingview, still cant seem to get it centered :[ http://pastie.org/8433538 Oct 27 00:49:06 I inflate like so: LayoutInflater.from(parent.getContext()).inflate(R.layout.item_pending, parent, false); Oct 27 00:49:35 desmin88: http://pastie.org/8433545 Oct 27 00:49:48 you were doing the oppisite of what I explained Oct 27 00:50:28 childVIew > parentLayoutParams > parentView (layout_* prefix) Oct 27 00:51:01 2500 words in and my typing ability has been hampered by a parrot punching a hole in my finger. :| Oct 27 00:51:03 oh no wait Oct 27 00:51:07 I'm being dense Oct 27 00:51:45 use center_horizontal Oct 27 00:51:45 im confused Oct 27 00:51:56 okay. Oct 27 00:52:34 well no what I pasted will work Oct 27 00:52:47 ok. Oct 27 00:52:53 if thats all that your wanting in there Oct 27 00:53:38 yeah its just the progressbar Oct 27 00:53:45 okay let me use that and see what happens Oct 27 00:54:21 also be aware with LayoutInflater.from(parent.getContext()).inflate(R.layout.item_pending, parent, false); Oct 27 00:54:47 the last parameter is "do you want this view to evaluate the layout as I place it in the parent view" Oct 27 00:55:05 Michalrus, are you doing add on the array adapter, or on the original collection? Are the instances of the two different? Oct 27 00:55:19 desmin88: and your saying, no :) Oct 27 00:55:41 Fenny, on array adapter. But I think I've pinned down the problem. Seems I'm using immutable List underneath. Oct 27 00:55:58 Fenny, so this is resolved in Android context. Oct 27 00:56:01 so by default I think that the layout_* parameters you have set on the root of that inflated view tree, will be thrown out Oct 27 00:57:11 StingRay_: okay im going to read up more on that Oct 27 00:57:24 hint, change it to "true" Oct 27 00:57:24 because i got confused about layoutgravity vs gravity Oct 27 00:58:04 Okay I'm changing it to true, ill let you know Oct 27 00:58:19 my paste and true and you should be set Oct 27 00:59:08 For my project, I ended up rolling my own adapter using BaseAdapter rather than dealing with the sillyness that was arrayadapter. Then I just defined an interface to implement the methods for my internal collection, and used them as accessors in my adapter. Oct 27 00:59:20 StingRay_: My app now crashes on start Oct 27 00:59:53 desmin88: nothing to do with my paste I gave Oct 27 00:59:59 where are you inflating ? Oct 27 01:00:06 In my endlessdapter Oct 27 01:00:26 ava.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView Oct 27 01:01:16 ah in an adapter it always evaluated parent Oct 27 01:01:26 so yeah false is probably what it requires Oct 27 01:01:43 cause the parent is the listView that the adapter passes it to Oct 27 01:01:44 I think Oct 27 01:02:13 yes, the parent is the listview. Oct 27 01:02:35 When I use false, it isnt centered Oct 27 01:03:12 give the framelayout a background color Oct 27 01:03:23 make sure that it is the size you think it is Oct 27 01:03:29 it maybe centered fine Oct 27 01:03:38 just that the parent is wrapping it Oct 27 01:03:39 :) Oct 27 01:04:01 good idea! Oct 27 01:04:25 if that is the issue, i will be sad. Oct 27 01:04:53 yep, its centered. Oct 27 01:05:35 http://gyazo.com/94f5e869c388497e2394ed05935251d7 Oct 27 01:06:14 so the listView you have got set to wrap_content in width ? Oct 27 01:06:17 :) Oct 27 01:06:39 give the listView a background too Oct 27 01:06:43 diff color :) Oct 27 01:06:48 visual diagnosis Oct 27 01:08:05 my listview is set to wrapcontent in width, and height Oct 27 01:08:15 very bad Oct 27 01:08:20 oh. Oct 27 01:08:26 very very bad for height Oct 27 01:09:06 as you will cause child layout referesh on resize, meaning almost every item will trigger re-layout on every addition times by every distance on a frame update Oct 27 01:09:23 so probably after 10 items, the layout is happening thousands of times Oct 27 01:09:25 well fck me then Oct 27 01:10:02 If only you'd said fsck. Oct 27 01:10:10 :) Oct 27 01:10:27 And then I would've had an opportunity to point out that you're not a filesystem Oct 27 01:10:37 * Fenny runs chkdsk Oct 27 01:11:18 What would be better, fill or match for height then? Oct 27 01:11:29 fill is redundant Oct 27 01:11:33 depreciated Oct 27 01:11:37 match_parent Oct 27 01:11:41 o Oct 27 01:11:47 but you also want a fixed width Oct 27 01:11:50 that is news to me Oct 27 01:11:58 clear in the docs Oct 27 01:12:11 a listView with a variable width is not the best idea either Oct 27 01:12:23 that will cause re-layout Oct 27 01:12:31 really you want fixed dimensions on a listView Oct 27 01:12:40 i see Oct 27 01:12:48 ok let me get a picture so we can diagnos Oct 27 01:12:52 diagnose* Oct 27 01:13:02 dont need to Oct 27 01:13:09 match_parent width height Oct 27 01:13:09 oh Oct 27 01:13:12 of listView Oct 27 01:13:13 done Oct 27 01:13:21 I diagnosed it for you no ? Oct 27 01:13:26 hence my questions Oct 27 01:13:30 hence setting colors Oct 27 01:13:40 oh Oct 27 01:14:10 well uhh thank you so much Oct 27 01:14:24 i have some silly colory stuff to play with … with all my icons now, going to be ripping my hair out I think Oct 27 01:16:27 I think im going to change all my fill parents to match now Oct 27 01:17:12 they resolve to same value Oct 27 01:17:24 yes Oct 27 01:17:31 but since its deprecated Oct 27 01:17:31 just the use of it is depreciated Oct 27 01:17:34 :) Oct 27 01:17:57 is it possible to have searchview Oct 27 01:18:10 at bar and do live search as you type in a listview? Oct 27 01:18:20 Baluse: do other apps do that ? Oct 27 01:18:37 i dont know if they do Oct 27 01:18:41 like maybe the contacts app ? sms / mail apps ? when typing names ? Oct 27 01:18:52 let me see Oct 27 01:19:02 yes like contacts Oct 27 01:19:20 but i would like it to be at top to take less space Oct 27 01:19:58 is that not within your control ? Oct 27 01:20:00 :) Oct 27 01:20:47 dont know how Oct 27 01:20:53 i added a search view Oct 27 01:20:59 but seems to work differently Oct 27 01:21:01 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html Oct 27 01:21:16 with adapter + filter Oct 27 01:21:26 i dont want autocomplete Oct 27 01:21:33 i want to filter my listview Oct 27 01:21:57 well thats just using a filter on the adapter Oct 27 01:22:07 and maybe a textWatcher on a text box Oct 27 01:22:43 all depends on the data and source of the data supplied to the adapter Oct 27 01:22:55 should be easy enough for you to figure out Oct 27 01:23:16 I need to go off and do some realtime icon wizardry Oct 27 01:24:18 so i will add a clasic edit box Oct 27 01:30:52 don't you love when they deprecate functions and don't provide alternatives? Oct 27 01:44:51 why does android show android.support.v7 as missing yet it still compiles and runs fine? Oct 27 01:45:00 *android studio show Oct 27 02:07:41 ok...i see appcompat v7 in maven Oct 27 02:07:48 but elsewhere it seems to be missing Oct 27 02:08:13 it's as if IntelliJ can't see it Oct 27 02:08:15 but the compiler can Oct 27 02:11:26 <^cheeky> i have to implement inBItmapOptions with picasso Oct 27 02:11:44 <^cheeky> i am creating a bitmap for each view :/ Oct 27 02:12:02 frankdrey-pc: try refreshing gradle Oct 27 02:12:07 then try refreshing gradle 3 more times Oct 27 02:13:55 hmmm Oct 27 02:14:03 i found some "dependencies" window Oct 27 02:14:14 and it looks like support-v4 links to a jar file Oct 27 02:14:28 looking around in sdk shows that that jar file exists for support-v4 Oct 27 02:14:33 but not for appcompat-v7 Oct 27 02:15:26 unless you're not actually using gradle to manage dependencies - if that's the case, I'm not sure what to tell you Oct 27 02:16:30 i have no idea what i'm doing :D Oct 27 02:16:34 is the case :p Oct 27 02:20:40 tried adding it as "sources" Oct 27 02:20:45 NPE in Android Studio xD Oct 27 02:21:11 bbl Oct 27 02:59:17 Hey guys I have a little java knowledge but I'm decent in python. Any suggestions on fastest way to lwarn how to get an app to the market? **** ENDING LOGGING AT Sun Oct 27 02:59:58 2013