**** BEGIN LOGGING AT Sat Jul 27 02:59:58 2013 Jul 27 03:03:26 nope, no use Jul 27 03:04:31 xmpp and whatnot are good and federated already Jul 27 03:25:41 Hey guys. Jul 27 03:25:52 I am having a strange problem Jul 27 03:26:04 as I scroll my listview up and down I am recycling bitmaps Jul 27 03:26:17 but for some reason still, it is giving me out of memory errors Jul 27 03:26:27 only if I really scroll fast, though Jul 27 03:27:36 maybe your loading full versions of them? Jul 27 03:27:49 Hrmm? Jul 27 03:28:07 maybe you are load full resolution versions Jul 27 03:28:28 I'll check Jul 27 03:28:31 rather than something appropriate to view size/dimensions Jul 27 03:28:47 I would be surprised if that is the case. But it might be Jul 27 03:29:07 not recycling fast enough if course Jul 27 03:29:11 but even then, it isn't only when they load Jul 27 03:29:16 it's if I try to do it quickly Jul 27 03:29:23 like I can scroll down the list slowly with no problem Jul 27 03:29:32 then flick back up to the top really quickly and it will crash Jul 27 03:29:44 I feel like maybe it isn't recycling the moment I call? Jul 27 03:30:04 I watched and we keep only 8 items live. The items are all getting recycle called on the immediately Jul 27 03:30:14 no, recycling isn't called when you think it is Jul 27 03:30:23 what do you mean? Jul 27 03:31:20 if that's the case, then look at the heap dump and see what's actually eating memory Jul 27 03:31:36 I don't know how to look at the heap dump Jul 27 03:32:25 time to learn Jul 27 03:32:46 i have 2 classes, A and B. B extends A. B is gonna call an Asynctask, i want the asynctask's onPostExecute to call a function in A. how do i do this? Jul 27 03:32:48 use ddms to request a heap dump when you get your out of memory force close Jul 27 03:33:06 then use mat or jhat to examine the heap Jul 27 03:33:45 kc8hfi, B extends A, so all functions of S are available to B, obviously Jul 27 03:34:34 all non-private Jul 27 03:34:47 i know that much, but the asynctask don't have an object of B to start with Jul 27 03:35:30 i don't want to give it a B object either, because i'll have more classes that extend off A that might wanna call the same asynctask Jul 27 03:35:41 so pass B in Jul 27 03:35:53 ... Jul 27 03:36:11 if i pass B in, then that won't work if any other derived classes need to call the same asynctask Jul 27 03:36:39 then pass A I Jul 27 03:36:40 in Jul 27 03:36:57 ok, how do i get an object of A inside B? Jul 27 03:37:00 that seems pretty straightforward Jul 27 03:37:05 B is an A Jul 27 03:37:20 so you just use it as if it were A Jul 27 03:37:59 thank god we don't have a C Jul 27 03:38:26 there is a C that will have the same asynctask, Jul 27 03:38:35 C extends A also. Jul 27 03:38:49 so pass in A, thatsbibvioys Jul 27 03:38:53 obvious Jul 27 03:40:46 sounds like a chicken egg problem Jul 27 03:41:30 hmm, let me post some code, i'm not understanding something... Ok, this is the B that extends from A, http://www.fpaste.org/28263/13748964/ Jul 27 03:41:37 just define the AsyncTask receiving objects of type A and you're set Jul 27 03:41:52 you can send in B or C Jul 27 03:41:55 or A Jul 27 03:42:12 yeah, you're not understanding basic OO :p Jul 27 03:42:15 and here is the asynctask, http://www.fpaste.org/28264/48965261/ Jul 27 03:42:59 in the first paste, line 74 is where i create a new one of those asynctask things, nothing is being passed in yet because thats what i'm asking for help on. Jul 27 03:44:32 new CheckLogin(this); Jul 27 03:44:56 oh, i forgot the class A, here it is http://www.fpaste.org/28265/74896685/ Jul 27 03:46:00 whats the parameter type for the CheckLogin constructor then? Dashboard? Jul 27 03:46:05 yes Jul 27 03:48:24 thats because B is an A? Jul 27 03:52:55 yes Jul 27 03:53:12 you can pass in anything that extends from A as being an A Jul 27 03:53:35 fruit, orange extentds friuit, apple extends fruit, granndy smith extends apple, fruitbasket accepts fruit, all of those objects can enter the basket Jul 27 03:53:36 and the "receiver" wont know if it is actually derived from A or really A Jul 27 03:54:02 (because it is A, or "fruit" heh) Jul 27 03:57:14 Is there an android 4.3 sdk yet? Jul 27 03:57:23 yes Jul 27 03:57:48 Might want to change the topic. Jul 27 03:58:35 thanks Jul 27 03:58:41 Yw Jul 27 03:58:58 yeah, running sdkmanager will update it to 4.3 Jul 27 04:01:00 i cnat wait to get home - my chromecasts have arrived :) Jul 27 04:01:39 canadiancow: where did you order them from ? Jul 27 04:01:49 amazon Jul 27 04:01:54 wednesday around 1430 PDT Jul 27 04:02:05 not bad Jul 27 04:02:09 one is for my dad, in 2 months Jul 27 04:02:15 i'll probably give it to a friend for now Jul 27 04:02:18 and have them order me one Jul 27 04:02:38 im going through the android source code Jul 27 04:02:40 interesting stuff Jul 27 04:02:43 well my options are $140 off amazon Jul 27 04:02:49 oh god Jul 27 04:02:50 just wait Jul 27 04:02:53 ya Jul 27 04:02:54 140!!!! Jul 27 04:02:54 :) Jul 27 04:02:58 maybe i should resell mine :P Jul 27 04:03:01 what makes chromecast special ? I thought they had sticks like that before Jul 27 04:03:07 it's $35 Jul 27 04:03:08 thats what Jul 27 04:03:17 canadiancow: http://www.amazon.co.uk/Google-Chromecast-1080p-HDMI-Streaming/dp/B00E5PODCC/ref=sr_1_2?ie=UTF8&qid=1374897730&sr=8-2&keywords=chromecast Jul 27 04:03:28 only one that comes up on a uk amazon search Jul 27 04:03:38 yeah StingRay_ ive seen them around $100 Jul 27 04:03:42 scalpers Jul 27 04:03:44 bbiab Jul 27 04:03:50 and it's not using some random hacked-up version of Android which a) isn't designed for a TV and b) needs some sort of controller plugged in Jul 27 04:04:16 so the image it tried to allocate was 250k Jul 27 04:04:21 don't think it is a terribly large image Jul 27 04:04:28 I guess I'll get one along with the new nexus 7 then :) Jul 27 04:04:39 ProgramMax: thats for 1 image ? Jul 27 04:04:44 yeah Jul 27 04:04:49 full screen or something ? Jul 27 04:05:14 hang on in mem are images stored decompressed ? Jul 27 04:05:25 or RAW rather Jul 27 04:05:44 it is happening inside BitmapFactory.nativeDecodeStream Jul 27 04:06:19 ProgramMax: so you are loading all the full res versions Jul 27 04:06:24 how big are your views ? Jul 27 04:06:28 that they are going into ? Jul 27 04:06:49 I don't think the images are that big. Maybe they are. I'll go get one Jul 27 04:07:08 the views are just list items...I get about 8 on the screen at a time Jul 27 04:08:03 hello all Jul 27 04:16:20 the images are 320x200 Jul 27 04:17:15 and when you scroll fast, do you do a count of whats currently loading ? Jul 27 04:17:35 as in loading 250k x 50+ is not gonna be all that nice Jul 27 04:17:43 hrmmm you know what, that could be it....my count of items that stays on screen is at 8 Jul 27 04:17:46 however Jul 27 04:17:54 each image request is an intent Jul 27 04:18:03 it is implemented inside an ImageService Jul 27 04:18:08 those aren't being cancelled Jul 27 04:18:26 so I guess it will try to continue downloading the images and creating the Bitmaps Jul 27 04:24:11 Would it be bad form to update a map fragment from a service.. while its containing activity is paused? Jul 27 04:24:20 yes Jul 27 04:24:44 why is that? Jul 27 04:25:13 I kind of get that feeling from general practices I've seen.. Jul 27 04:25:28 but it sure is nice to have the map display every correctly immediately when the user resumes without any lag Jul 27 04:25:52 so do it in onresume Jul 27 04:26:00 If you update a fragment while its in the background is still actually occuring the cost of rendering? Jul 27 04:26:49 but what if it never comes back? Jul 27 04:26:52 you're just wasting battery Jul 27 04:26:59 and slowing down the device Jul 27 04:27:21 I guess the question is: by how much. Jul 27 04:27:29 it doesnt matter Jul 27 04:27:30 dont do it Jul 27 04:28:17 Can anyone tell me how it is decided whether or not a device supports a particular action? Eg, Google Now says my galaxy tab doesn't support texting. I would like to find out where that is established. Jul 27 04:28:51 probably in the manifest of your texting app Jul 27 04:29:38 I would think it would mean no application is registered to accept the intent to bring up the SMS app Jul 27 04:30:42 here's an example of an SMS intent: http://stackoverflow.com/questions/2372248/launch-sms-application-with-an-intent Jul 27 04:44:40 Is there a quick way to learn the Android concepts? like activities, views, layouts, etc...? Jul 27 04:45:20 Another thing, how do you define your own controls (or views) in android? for example, let's say I create a carousel control, and I want to use it on several activities, how do I do it? Jul 27 04:46:16 gavilan2: you'd want to read through the training section on d.android.com - which would lead you, sooner or later, to http://developer.android.com/training/custom-views/index.html Jul 27 04:48:39 custom views Jul 27 04:51:56 pfn: whoa, what? Jul 27 04:52:04 gavilan2: are you ok? Jul 27 04:58:13 maybe... why¡ Jul 27 05:06:26 is there a way to set up a Switch's onTouchEvent from the XML? Jul 27 05:16:26 you cannot define onTouchEvents in xml Jul 27 05:17:12 a Switch doesn't jush have a simple on/off event either, does it? Jul 27 05:18:21 just* Jul 27 05:18:41 on and off are states Jul 27 05:18:45 rather than events Jul 27 05:18:52 and event may change a state Jul 27 05:19:01 but yes, a switch has simple on/off states Jul 27 05:19:08 just like a toogle Jul 27 05:19:11 or checkbox Jul 27 05:19:22 bah. I just want something that maps nicely to a start/stop method Jul 27 05:19:49 then have a Click event Jul 27 05:19:53 that gets the state Jul 27 05:19:57 and does something Jul 27 05:19:59 :) Jul 27 05:21:25 StingRay_: coming from ASP.NET, it's a little bit odd that I can define an onClick when the documentation doesn't mention it? Jul 27 05:21:57 http://developer.android.com/reference/android/view/View.html#setOnClickListener(android.view.View.OnClickListener) Jul 27 05:22:16 as in the Switch inherits from View so it has the event too? Jul 27 05:22:43 anything that extends View has … View stuff Jul 27 05:23:03 yeah Jul 27 05:23:08 still getting my head around it Jul 27 05:23:28 I'm not really a programmer, but always thought that was just OOP basics Jul 27 05:24:18 StingRay_: yeah, I didn't make the connection between Switch and its base class. Jul 27 05:25:33 and if you want an onClick, then yes, you can associate that in an xml attrib I think Jul 27 05:25:57 yep Jul 27 05:26:43 i learned bit of programming with andoid/java, so it's hard for me to compare to anything else :) I hear mention of .NET being rather good though :) Jul 27 05:26:50 android* Jul 27 05:26:59 * StingRay_ needs more coffee Jul 27 05:27:19 StingRay_: I pay the bills with .NET, I was just going to buy Xamarin Studio but then I saw that the top reason for app uninstalls is binary size Jul 27 05:27:40 that sucks :( Jul 27 05:28:15 well if Google hadn't decided that no one needs SD cards and absolutely no one needs to shift apps to the SD card then it wouldn't be such a problem Jul 27 05:29:20 i thought i saw a poll this last wek; surprising # people wanted sd cards Jul 27 05:29:32 yeah Jul 27 05:29:34 google wants you to put your stuff on the cloud Jul 27 05:29:59 you could make it work with UnionFS or LVM so the SD card and internal storage appears as one Jul 27 05:30:13 g00s: that's great if you have their 1gbit connection ;) Jul 27 05:30:26 and you dont mind privacy concerns Jul 27 05:30:35 voltagex: what, you don't have a fibre connection at home? Jul 27 05:30:54 voltagex must be in the US :D Jul 27 05:31:03 Leeds: not until next April, and only if the conservative government doesn't decide we only need dialup Jul 27 05:31:20 g00s: I'm going to say Australia Jul 27 05:31:29 g00s: Australia, 1mbit up on a good day, 8mbit down - and this is considrered a good connection Jul 27 05:31:36 Leeds: correct! Jul 27 05:31:38 .. BLIMPS ! Jul 27 05:31:43 * voltagex checks if my hostmask is working Jul 27 05:33:49 20mbit up sometimes and 50-70mbit down AND thats still just a copper wire out of my house :) Jul 27 05:33:59 not even fibre Jul 27 05:34:01 need help Jul 27 05:34:04 build/core/base_rules.mk:130: *** prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/lib: MODULE.HOST.STATIC_LIBRARIES.libbfd already defined by prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/lib32. Stop. Jul 27 05:34:25 wowdd1_: read topic Jul 27 05:35:58 Visual Studio's intellisense has ruined me Jul 27 05:37:00 g00s: the fact that their internet connection depends on whoever wins the next election is a dead giveaway for an Aussie Jul 27 05:37:16 Leeds wow, i had no idea (as usual) Jul 27 05:37:53 AIUI, one party has committed to a national fibre rollout, the other... hasn't Jul 27 05:40:13 Leeds: also, Alcatel-Lucent are going to ruin our connections anyway even if we do get fibre. Jul 27 05:48:50 StingRay_: Languages don't matter that much... Programmers do.... Jul 27 05:50:02 I think that also, but it's sometimes noobish of me to assume something is best as procudure/method A, when I have little else (language) to compare to Jul 27 05:50:33 and I keep hearing reference to .NET, and how development with Java/Android is lacking in a few things Jul 27 05:50:34 :) Jul 27 05:50:46 StingRay_: It's true... Jul 27 05:51:08 like I say, alien statement to me though :) Jul 27 05:51:10 StingRay_: C# is superior than Java... It's easier to use, blah blah blah.... Jul 27 05:51:28 gavilan2: it's more the IDE Jul 27 05:51:47 StingRay_: But most of the people don't use the most advanced stuff that make C# superior to Java.... Jul 27 05:51:58 voltagex: I'm talking about the language, not the ide.... Jul 27 05:52:43 c# is basically java Jul 27 05:52:50 voltagex: C# has support for dynamic typing, it has lambdas, it has LINQ with which you get the parse tree at runtime and can do a bunch of crazy things... It's really easy to compile things at runtime, you can also easily call the real compiler thing at runtime.... Jul 27 05:52:58 you just add delegates, properties and linq Jul 27 05:53:06 see all these statements now just confuse me even more lol Jul 27 05:53:11 and foreach :P Jul 27 05:53:18 it doesn't have dynamic typing, it has type inference Jul 27 05:53:29 pfn: and what does the dynamic keyword do then? Jul 27 05:53:38 -_- you don't know C# pfn.... Jul 27 05:53:46 I dunno, never used dynamic Jul 27 05:54:05 pfn: As I said... Most people never use those advanced features :).... That doesn't mean they don't exist.... Jul 27 05:54:12 I have a c# app with a decently large consumer user base Jul 27 05:54:41 you know nothing, Jon pfn Jul 27 05:55:05 pfn: if only that guaranteed it was well written :) Jul 27 05:55:15 Leeds: It's John smith actually... Jul 27 05:55:16 btw, I do not mean to imply it isn't :) Jul 27 05:55:27 gavilan2: it's Jon Snow, actually Jul 27 05:55:41 Leeds: Jon Snow is a ripp off of John Smith.... Jul 27 05:55:54 ok, if you say so Jul 27 05:56:02 Leeds: you get home sick when you watch Game Of Thrones ? Jul 27 05:56:04 :) Jul 27 05:56:15 yeah Jul 27 05:56:22 aye, same here Jul 27 05:56:28 Leeds: http://www.imdb.com/title/tt0114148/ You think I'm an ignorant savage And you've been so many places I guess it must be so But still I cannot see If the savage one is me How can there be so much that you don't know? You don't know ... Jul 27 05:56:31 it's almost August... in Yorkshire, that means winter is coming :) Jul 27 05:56:36 even though my distance to home is a little less that yours Jul 27 05:57:00 Leeds: I wish, I have had to have the aircon on 100% all the time this last few weeks Jul 27 05:57:12 Leeds: But if you walk the footsteps of a stranger You'll learn things you never knew you never knew Jul 27 05:57:36 StingRay_: Anyway... If you want to learn stuff, start by learning the different programming paradigms..... Jul 27 05:58:22 gavilan2: yeah, my main focus is android atm … but would be nice to pull from others Jul 27 05:58:33 we had about 10 days without bedroom aircon - broke down, landlady refused to fix it... had a bit of a blazing row (in the middle of which she said I was so fat she was surprised I could sleep at all, aircon or not), then she changed her mind and bought a new one Jul 27 05:59:14 Leeds: but are you not like….literally 4 times the height of her ? Jul 27 05:59:17 :) Jul 27 05:59:29 4 times the weight, maybe... I was pretty shocked when she said that Jul 27 05:59:37 how do i set up gradle with android studio? Jul 27 06:02:04 * StingRay_ just found the "use transparency for floating windows" in AS, wtf would you use this ? Jul 27 06:02:07 :) Jul 27 06:13:18 Finished! That was rough. Jul 27 06:13:26 Upgrading some old code to a Loader. Jul 27 06:13:46 And it had a MergeCursor...so I had to made a custom Loader. All happy now. Jul 27 06:30:45 hm, is there any way to have a json file, i guess in res/assets , that references resources (@string/foo) Jul 27 06:35:51 doubt it Jul 27 06:37:40 trying to remember, i guess XmlResourceParser interpolates everything ? Jul 27 06:40:30 does anyone here have examples of good developer portfolio websites? Jul 27 06:40:55 I see several design portfolio websites - but none of them are by developers (people who write code instead of use photoshop) Jul 27 06:42:50 ok...trying to debug an app, getting "handshake failed" when trying to connect debugger...how do I fix? Jul 27 06:43:37 liquidmetal wouldn't that be a profile on github or something :P Jul 27 06:43:42 ohloh Jul 27 06:44:24 g00s, yes - that would make sense. But a website describing the projects and a link to the github project seems to make more sense to me Jul 27 06:44:36 Do most devs use just github for their portfolios? Jul 27 06:45:01 i've been using linkedIn for that … but i've been thinking of deleting my LinkedIn profile lately Jul 27 06:45:30 g00s, why? linkedin sounds useful Jul 27 06:46:02 when i started in 2009 it wa s asimple place to put your CV and connect with people Jul 27 06:46:15 now its turned into a shitstream of spam and crap Jul 27 06:46:22 like, the usual social bullshit Jul 27 06:46:26 yay, my devices are starting to get OTA 4.3 Jul 27 06:46:28 :) Jul 27 06:46:51 I got lazy and just sideloaded the OTA onto my N7 Jul 27 06:46:57 but even more so, they ave been pretty shady lately about their fees for placing you in the results recruiters get Jul 27 06:47:18 my "portfolio" is github and my own dev account on play Jul 27 06:47:39 too much LinkedIn spam Jul 27 06:47:40 i still use linkedIn to keep in touch with professional conacts Jul 27 06:47:49 but yeah, i hardly ever log into it Jul 27 06:48:08 now they have those endorsed updates Jul 27 06:48:14 its all bullshit Jul 27 06:48:44 so much better in 2009. CV. connect. done. goodbye Jul 27 06:49:04 everybody want you to be feeding them info about yourselves 24 hours aday Jul 27 06:49:04 saw a comment from someone this week which said something like "just got endorsed by my hairdresser. that's it, linkedin is done." Jul 27 06:49:17 haha Jul 27 06:50:16 liquidmetal so make a small personal website with your CV maybe. links to github, play, maybe write something somewhat intelligent on a blog Jul 27 06:50:49 at the time i thought my linkedIn profile being non-public would protect me some, but i doubt it. Jul 27 06:51:18 my app is getting complicated enough it needs its own website anyhow Jul 27 06:53:14 still that bluetooth weather thing? Jul 27 06:53:25 yeah, its grown a bit Jul 27 06:54:34 i haven't updated play in a while tho Jul 27 06:55:01 pfn so did you update all your apps today :) Jul 27 06:55:09 sounds like you were on a spree Jul 27 06:55:25 no, just the keyguard manager Jul 27 06:55:56 seems I have a bug in crypto in 4.3... Jul 27 06:58:07 pfn: u or android ? Jul 27 06:58:38 dunno yet Jul 27 07:00:46 need to run it through the debugger and see Jul 27 07:02:48 anyone know what author/library is written by an ex-google protobuf author (that does almost the same thing)? not thrift. i thought there was something newer Jul 27 07:03:53 i wonder if its MessagePack Jul 27 07:07:04 i think it was Cap'n Proto Jul 27 07:08:49 yeah, Kenton Varda Jul 27 07:29:48 I have an idea for volume normalization using mic input to auto increase volume , for example when a ambulance is approaching and you are on the phone it can be useful, the android dudes should include it in sound volume options Jul 27 07:31:07 but it would need to know the difference from your voice and background noise I guess Jul 27 07:33:03 is it a good idea or what ? Jul 27 07:34:34 shmooz: some phone hardware does this Jul 27 07:34:38 uses dual mics Jul 27 07:34:53 could be wrong, but I think they do Jul 27 07:35:04 and it's more driver/hardware level than OS Jul 27 07:35:24 can't think of nothin new eh :P Jul 27 07:35:25 again could be wrong, I'm just talking/discussing cause nobody else is :) Jul 27 07:35:48 some bt headsets do that VERY well Jul 27 07:35:59 and amazing noise cancellation too Jul 27 07:36:51 haven't found an example yet Jul 27 07:37:03 just like auto brightness , but for sound Jul 27 07:37:20 like I said, you wont find an app Jul 27 07:37:22 I dont think Jul 27 07:37:29 cause it's driver/hardware level Jul 27 07:37:44 app would have to do serious sound calcs Jul 27 07:38:04 best if its built into the system Jul 27 07:38:19 hardware/driver yes Jul 27 07:38:23 I think so Jul 27 07:39:19 actually I dont know now, come to think of it, maybe it doesn't…you should look at hardware features of a top device Jul 27 07:39:25 see if it's listed Jul 27 07:39:55 I googled a bit, I don't see it in any system or app Jul 27 07:40:03 oh guys Jul 27 07:40:09 did you see CM's Focal? Jul 27 07:40:10 system or app no, hardware feature maybe Jul 27 07:41:09 narekb: it looks like every other camera app Jul 27 07:41:18 with the buttons functions some place else Jul 27 07:41:19 :) Jul 27 07:41:42 StingRay_: it does, but I think the CM team are trying to make it faster and more functional than any other cam app Jul 27 07:41:59 give me an app with apeture control and direct exposure time and I will LOVE you Jul 27 07:42:10 hmmm Jul 27 07:42:13 *aperture Jul 27 07:42:41 until you give me that, stop swapping button placements Jul 27 07:42:48 * StingRay_ looks at CM Jul 27 07:42:50 :) Jul 27 07:43:11 heh Jul 27 07:43:11 but again, thats a hardware/driver thing that is not universal … so fk u android Jul 27 07:43:26 y u do dis android Jul 27 07:43:27 :D Jul 27 07:45:19 he must be one of those apple agent, here to spy on us ;) Jul 27 07:45:37 god no, apple has no excuses Jul 27 07:45:57 android has at least the excuse of impossible hardware variances Jul 27 07:46:28 apples is, well, our users are too stupid and our system too locked …so fk u users Jul 27 07:47:41 me : " hey I want a pro camera app, is that possible?" Jul 27 07:48:11 apple : " erm, no you dont, you want us to detect smiles, and use auto filters to make your sh*tness acceptable" Jul 27 07:48:43 android : " erm… possible, but down to manufacturers choices and open api's, too many camera variances" Jul 27 07:49:06 CM team: "Screw you guys, we are making it!" Jul 27 07:50:50 i think it is down the the manuf. Jul 27 07:51:05 but very suprised they do have it in their own cam apps Jul 27 07:53:11 I mean even if you had limited metering control, that would be something Jul 27 07:55:22 oops, I actually wanted to say "don't" have it Jul 27 07:55:32 I need more coffee Jul 27 07:56:22 hey, how i can check (in a different activity) that if a string/value in my sharedpreferences exist? Jul 27 07:56:47 preferences are not bound to an activity Jul 27 07:56:53 they are an app wide thing Jul 27 07:57:20 so you just check as you would normally Jul 27 08:00:19 StingRay_: so i shouldnt create an object of my other activity and use like: otherActivity.myPref.contains("my_key"); Jul 27 08:00:22 ? Jul 27 08:00:37 not really Jul 27 08:00:55 if anything create a nice wrapper to sharedPrefs Jul 27 08:00:58 I would think Jul 27 08:14:27 people Jul 27 08:14:36 anyone have experience with porting CM roms? Jul 27 08:14:46 is it difficult the first time? Jul 27 08:15:57 most app developers have never ported a CM rom... Jul 27 08:16:46 Leeds: my disappointment has reached a really high level Jul 27 08:16:51 I really want to get ICS on this device Jul 27 08:17:01 (it won't hold JellyBean, but ICS will probably do) Jul 27 08:17:16 just wanted to know if anyone made it to a final ported ROM Jul 27 08:17:55 and again... this channel is for app development, not 'roms' Jul 27 08:18:37 http://s3-ec.buzzfed.com/static/imagebuzz/web02/2010/2/13/12/its-cool-im-just-a-panda-4607-1266081857-9.jpg Jul 27 08:19:54 * StingRay_ thinks, would all this come up if the channel was #android-app-dev Jul 27 08:23:19 Most likely Jul 27 08:23:30 They're usually not the brightest of the bunch Jul 27 08:29:22 narekb: it's nothing personal... but it does say "Android application development" very clearly at the start of the /topic... and 'rom' development is mostly either an horrific mess, or kept in relatively well-controlled groups Jul 27 08:29:41 ok, Leeds I am sorry Jul 27 10:01:59 Leeds: you there ? Jul 27 10:02:08 here? whereva Jul 27 10:02:39 Leeds, you there? you here? whatever, bring us some beer :D Jul 27 10:02:44 *wherever Jul 27 10:06:40 i heard someone saying beer? Jul 27 10:11:03 i heard someone brings us beer Jul 27 10:17:05 Hey. I'm just getting my app translated at the moment.. This is probably not the best place to ask this question, but I'm sure some of you can answer it. Is there any point in getting it translated to Simplified AND Traditional Chinese? Jul 27 10:21:07 Depends. Jul 27 10:21:18 Are you planning on marketing your app in Hong Kong/Taiwan? Jul 27 10:22:36 Simplified Chinese is the official script of the PRC- where as, you'll find Traditional Chinese script used in Hong Kong, the ROC, and other overseas Chinese communities, especially those where Cantonese is the norm. Jul 27 10:25:04 trying the hello world for android, when i go to run as, "none applicable" is in the menu however to my knowledge, i have not deviated from the tutorial https://developer.android.com/training/basics/firstapp/running-app.html Jul 27 10:25:52 Hi. How can I set the maximum SDK requirement in my manifest to be infinity? Jul 27 10:26:19 Why would you need to do that? Jul 27 10:26:46 ... just don't set it? Jul 27 10:27:02 SimonVT, can I?!?!?! Jul 27 10:27:10 markovh: Do you have the ADT installed? Jul 27 10:27:12 maxSdkVersion is for if you have any restrictions.. When you don't, don't set it Jul 27 10:27:20 can I leave it unset? Jul 27 10:27:34 seitensei: yes Jul 27 10:27:41 Well, yeah Jul 27 10:27:49 can I leave it unset? and don't even mention the max SDK? Jul 27 10:28:19 The docs even tells you not to set it Jul 27 10:28:26 Odd. What do you have selected in your project panel? Jul 27 10:28:27 ah ok. great Jul 27 10:28:29 SimonVT: what are docs ? Jul 27 10:28:32 seitensei: both tools and the eclipse plugin (as far as i can tell) Jul 27 10:28:34 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#max Jul 27 10:30:11 speaking of ... after upgrading his nexus 4 to 4.3, my friend's MXPlayer Pro complained that it is not compatible with this version of Android, I assumed they made the mistake of setting their maxSdkVersion Jul 27 10:31:25 or maybe there is no mistake Jul 27 10:31:32 Or they set it intentionally, and might issue an upgrade if they determine that it is compatible as-is, or fix any incompatibilities and update. Jul 27 10:31:42 ^ Jul 27 10:32:15 either way, it's annoying Jul 27 10:32:32 Complain to the dev Jul 27 10:32:42 1 star fuck you Jul 27 10:32:45 If you look around the play store, you'll notice comments on apps related to incompatibility on newer versions of Android on apps that are developed for 2.x and haven't been updated or supported for newer versions of android. Jul 27 10:33:03 seitensei: uploading a pic Jul 27 10:33:44 seitensei: http://postimg.org/image/6uj7wc5ob/ Jul 27 10:34:17 didn't capture the final option runas in that screenshot but you get what i'm selecting anyway Jul 27 10:34:55 Try it while your focus is on your MainActivity.java Jul 27 10:34:58 I think it should work then. Jul 27 10:35:11 I haven't touched Eclipse since Android Studio, though. Jul 27 10:35:20 nope Jul 27 10:35:53 Nothing in the menu when your focus is on 'ATestApp' in the pane, or when MainActivity.java is opened as your active file? Jul 27 10:37:46 nope Jul 27 10:39:57 markovh: you should have an entry in "run configurations" for android Jul 27 10:40:28 seitensei: ah wait i see Jul 27 10:40:46 different play button appears that has the option in it when i select mainactivity.java Jul 27 10:41:05 right next to the one i was hitting (without the little red box over the green arrow) Jul 27 10:41:14 thanks Jul 27 10:45:53 shmooz: the point of setting the maxSdk is sometimes, that it is only tested thus far, it would make little sense to compile it and leave it as it is before you know whats new, deprecated or different in the next version Jul 27 10:49:06 Most devs really can't predict the future to the detail, so it prevents apps from crashing unexpectedly because it was never tested on that version of android Jul 27 10:49:40 StingRay_: pong Jul 27 10:50:00 well MXPlayer is known to be one of the top video players for android, I guess they have a reason to do so Jul 27 10:50:27 but other video players didn't complaing afaik Jul 27 10:50:42 better making it possible to run after the update then having people cry out loud because of crashes Jul 27 10:51:11 shmooz: just got it on mine too - I'm pretty sure it's an explicit message from mxplayer - that is, they've put a check in to reject unknown OS versions... Jul 27 10:51:25 shmooz: its not about if it would work or not, its about if it could not work Jul 27 10:51:55 problem is, particularly for a paid app, if the developer can't update for some reason, it means they're actively stopping paying users from using it, which isn't great Jul 27 10:52:53 Leeds: true, but if it would crash all the time they would lose new customers Jul 27 10:52:55 Leeds: well, what if that choice is dictated, by an system feature change Jul 27 10:53:07 I can think of a few in the past that have Jul 27 10:53:19 I'd say better pop up a *warning* that says it hasn't been tested on that version, rather than straight refusing to work Jul 27 10:53:29 where google just decided to revoke a function/feature Jul 27 10:53:59 Leeds: most users just click ok without reading so it would not really make the users not cry Jul 27 10:54:02 for help Jul 27 10:54:23 as opposed to definitely making users cry now, who can't even attempt to use the software they've paid for Jul 27 10:54:27 anyway... Jul 27 10:54:34 StingRay_: did you want something before? you pinged me Jul 27 10:54:57 there should be a [I'm feeling lucky] button for it Jul 27 10:56:09 Leeds: was unrelated to android dev, and I used the power of google :) Jul 27 10:56:18 ah, fair do's Jul 27 10:56:27 about china Jul 27 10:56:31 and beaches :) Jul 27 10:56:59 green slime? Jul 27 10:59:52 Leeds: if you add tentacles to it, that would sound like japan ^^ Jul 27 11:00:30 karlsve: you been watching too much anime Jul 27 11:02:13 ^^ not really just the bias that people have about countries and their destinct oddities Jul 27 11:05:06 Is there a way to make my app restart if it crashes? Like a service that runs idenpedently that watches it, yet is still in the same apk? Jul 27 11:05:35 marrrk: is the better goal to stop it crashing ? Jul 27 11:05:38 maybe Jul 27 11:05:42 ^^ Jul 27 11:05:51 I'd uninstall an app in a second if it did something like that, would love it if it got in a crash/restart loop Jul 27 11:05:55 They are not mutually exclusive. Jul 27 11:06:05 they are if you get it in a loop Jul 27 11:06:13 Well I wouldn't eat chips with gravy on them either. Jul 27 11:06:15 start crash, start…. err… crash Jul 27 11:06:35 marrrk: yes it is possible Jul 27 11:06:42 go for it! Jul 27 11:07:10 mmm... chips with gravy... Jul 27 11:07:18 about what flipboard did to me until i reflashed 4.3 today Jul 27 11:07:53 I would keep a counter and if it exceeds a few crashes in a short amount of time I wouldn't restart it anyway. Jul 27 11:09:04 The reason is actually to find bugs through this. Jul 27 11:09:05 run another instance and set it visible when one crashes Jul 27 11:09:15 lol Jul 27 11:09:19 jk Jul 27 11:10:02 marrrk: instead of restarting, just make sure you get the report about the crash and the cause Jul 27 11:10:13 report to whom? Jul 27 11:10:14 the user? Jul 27 11:10:21 or send a crash report to him Jul 27 11:10:23 ? Jul 27 11:10:27 I want to have it. Jul 27 11:10:30 i said "you" Jul 27 11:10:33 I need to look into that next. Jul 27 11:10:55 so why not do that first instead of unnecessarily restarting your app... Jul 27 11:10:56 ? Jul 27 11:11:59 Because I want to do both and thought the order in which I do them does not matter. Jul 27 11:12:18 well have fun, ill retry to install InDefero Jul 27 11:12:36 marrrk: just don't do it Jul 27 11:12:50 the user knows if they want to start the app again Jul 27 11:12:55 Leeds, I remember you from back in the day with nookdevs Jul 27 11:13:07 * poutine tips hat Jul 27 11:13:09 poutine: hi! Jul 27 11:13:17 I meant fedora, whatever Jul 27 11:13:22 Leeds: dont get overexcidted Jul 27 11:13:23 -d Jul 27 11:13:43 The user will have to restart the app. It's not about what they want. Jul 27 11:13:47 always nice to get recognised... Jul 27 11:14:34 marrrk: uhm why would they have to? often times if an app crashes i decide to do something else and try it later or wait for an update for that feature Jul 27 11:15:16 But you probably don't do that with apps which you will be using because you agreed to in the context of a study. Jul 27 11:15:47 And of course if it crashes all the time that's not a viable option. Jul 27 11:16:34 Do you recommend this ACRA library for the reports? Jul 27 11:16:47 if such an app crashes, i would still ask the developer to fix it asap since it is not possible to take part in the study anymore otherwise, so its not really their problem, or did they sign that they would even do it if the app constantly crashes? Jul 27 11:17:45 Well the constant crashing should be avoided if I say that it won't be restarted if there is more than one crash in half an hour or so. Jul 27 11:18:04 Or 5 hours. Jul 27 11:18:07 Or whatever. Jul 27 11:18:12 ^^ Jul 27 11:18:31 Depending on what they will be actually paid :D Jul 27 11:19:03 i don't know anything about reports libraries, so im out of the equation for that question, and can leave to get my train Jul 27 11:19:08 cya Jul 27 11:32:40 i wanna write some code to make my application work with a rest service; however i didnt find any guide on sdk documentation regarding android rest capabilities. can someone point me to a doc/url to give a summery of it? Jul 27 11:33:40 are you sure you did a "android rest" google search ? Jul 27 11:33:56 cause, I just did, and like loads poped up, video too Jul 27 11:33:58 :) Jul 27 11:35:51 StingRay_: i did and tried bunch of them and they were not straight forward on like available classes and methods of doing rest in android Jul 27 11:37:01 thats cause you create something that matches need and endpoint tech Jul 27 11:37:03 I would think Jul 27 11:39:57 StingRay_: hmm! probably :) Jul 27 13:05:44 hmmm, I seem to have a fair number of Java/python crashes, resulting in AS crash Jul 27 13:06:02 also notice that "use external build" is not persistant in settings Jul 27 13:44:12 hi Jul 27 13:45:46 anyone works here with webworks/phonegap or something in that matter? i try to convert my blackberry app to android without totally rebuild, but it doesnt to more than just a white page, makes me think that my blackberry html is not compatible with android html... even when i have all the js/css files included.. is there something different about making an android html(5) app? Jul 27 13:48:24 and the main problem is, i dont have an android phone.. so what i do is convert my .apk to .bar and test it.. so maybe its the convert or so? Jul 27 13:48:48 um... the Android SDK has an emulator in it Jul 27 13:49:21 yeah but for some reason it doesnt load Jul 27 13:49:26 or takes forever Jul 27 13:50:06 have some patience Jul 27 13:50:18 or get it set up to run accelerated, up to you Jul 27 13:50:52 hm i will try Jul 27 13:52:57 I'm implementing Google IAB at the moment and using the sample code as a base (IabHelper). There doesn't seem to be a way for the Google IAB servers to contact my server to state a payment has been made. It only pushes it back to the client. Is this correct? Jul 27 13:53:57 Amorgos: I think your kinda in the wrong channel Jul 27 13:54:12 this is android app dev, phonegap have their own channel Jul 27 13:54:18 ? Jul 27 13:54:37 StingRay_, you mixed up people. Jul 27 13:54:47 oh yeah Jul 27 13:54:48 Where in my question does it suggests I am using PhoneGap? Jul 27 13:54:57 @Asmooh Jul 27 13:55:17 Asmooh: #phonegap Jul 27 13:55:27 StingRay_, well i build it for android right? :) Jul 27 13:55:38 totally different Jul 27 13:55:40 :) Jul 27 13:55:43 Amorgos, yes Jul 27 13:55:48 ah okay, sorry Jul 27 13:55:52 didnt know Jul 27 13:55:55 Amorgos, you could probably see that on Google Wallet, but I don't know what the delay is Jul 27 13:56:01 Asmooh: one is a webpage Jul 27 13:56:04 Amorgos, there is an API to poll status though Jul 27 13:56:06 the other is an app ;) Jul 27 13:56:32 ... I'll keep looking! Jul 27 14:16:00 Hi, I'm following the guide to create your first android app. However, the example "hello world" program contains an error: R cannot be resolved to a variable. Do you know a solution for this?' Jul 27 14:16:54 is R actually being generated ? if not, thats why…. if it is, then you should import it Jul 27 14:17:48 do you know what R is? Jul 27 14:17:53 No it's not generated Jul 27 14:18:08 Leeds, no, but I guess it's very important Jul 27 14:18:36 press ctrl-shift-O on your Eclipse Jul 27 14:18:40 All forums say: clean and rebuild your project, it will generate R, but it doesn't Jul 27 14:18:55 anodesni: you prob have an xml error then Jul 27 14:19:01 That only adds: import android.R; Jul 27 14:19:15 remove that line Jul 27 14:19:31 or you named a resource file with invalid chars Jul 27 14:19:45 It's the standard files for an empty project Jul 27 14:20:19 and press again, you should import your own R Jul 27 14:20:35 rottz: he just said it wasnt generated Jul 27 14:20:41 so nothing to import Jul 27 14:20:46 I think it's an installation issue Jul 27 14:20:47 he doesnt even know what is R, how does he know it wasnt generated? Jul 27 14:21:05 "No it's not generated" Jul 27 14:21:08 rottz, because I look at the gen folder Jul 27 14:21:12 :) Jul 27 14:21:23 anodesni: have you edited ANY xml files ? Jul 27 14:21:30 StingRay_, no Jul 27 14:21:34 lol OK then :) Jul 27 14:21:51 I'll try adding some packages first Jul 27 14:21:58 if it wasnt generated, and you arent using it, why do you need it? Jul 27 14:21:58 and some other APIs Jul 27 14:22:17 anodesni: you shouldn't really Jul 27 14:22:18 rottz, setContentView(R.layout.activity_main); Jul 27 14:22:26 oh, so you are using Jul 27 14:22:29 you should just run the default project Jul 27 14:22:39 do you have an "activity_main.xml" on your layout folder? Jul 27 14:23:06 rottz, yes Jul 27 14:23:26 well, first pastebin it Jul 27 14:24:05 second, is the project setup as an Android project? Jul 27 14:24:46 right click it, properties, there should be an Android submenu with some API level selected Jul 27 14:44:00 It's working now Jul 27 14:44:17 Probably had something to do with my device not being found by eclipse Jul 27 14:48:11 physical device? Jul 27 14:48:45 shouldnt be, you don't need a device to make an android app Jul 27 14:48:50 but well, at least its working now Jul 27 14:59:18 any of you keep your maven depedencies you dvcs? Jul 27 15:09:24 is there any better JS engine then rhino? Jul 27 15:10:40 v8? Jul 27 15:11:08 trident. Jul 27 15:11:30 is this java or ndk? Jul 27 15:15:39 I'm getting lots of open gl crashes, all on a phone that starts with GT-SXXXX Jul 27 15:15:42 are those known to cause trouble? Jul 27 15:15:55 they seem like cheap level samsung phones Jul 27 15:16:29 I think ill just ban them all Jul 27 15:17:18 funkbox: trident is no js engine Jul 27 15:17:54 monsti: i was trolling :) Jul 27 15:18:45 alright they're all banned, screw those old shits of phones hehe Jul 27 15:18:55 funkbox: that's my job here ;) Jul 27 15:18:55 somehow they cant start cocos2d, get some gl error Jul 27 15:19:05 android.opengl.GLSurfaceView$EglHelper.throwEglException Jul 27 15:19:14 i don't generally troll but wasted 3 hrs to find that i forgot a slash in the repo path in maven Jul 27 15:19:38 funkbox: i forgot a , and got a crash 2 years later ;) Jul 27 15:19:40 top this! Jul 27 15:20:34 cool they updated rhino - anybody around who is willing to port the bytecode compiler to dalvik? Jul 27 15:21:16 there is a proof of concept but they guy didn't finish his stuff Jul 27 15:21:18 monsti: are you doing ndk stuff? :) Jul 27 15:21:31 never ever Jul 27 15:21:39 eheh why? Jul 27 15:21:45 i work with the x86 emulator Jul 27 15:22:06 ok Jul 27 15:22:07 rhiho is slower then v8 but a for loop and some if's - i really don't care about 1-2 seconds Jul 27 15:22:26 but i'd like to get the compiler working Jul 27 15:22:49 monsti: crashes are easy. blocking the whole team a few days before ship is not :( Jul 27 15:23:15 QcMat are you setting min EGL version? Jul 27 15:23:21 on your manifest Jul 27 15:23:24 Nop rottz , that may be it! Jul 27 15:23:35 QcMat: check if that GT is the intel version of the galaxy 3 tab ;) Jul 27 15:23:36 I'm kind of new to android, not to c++ and gl, but android Jul 27 15:23:42 not used to fragmatation like that Jul 27 15:23:45 QcMat: if yes, just blacklist Jul 27 15:23:56 ok cool Jul 27 15:23:56 I dont know what version cocos need Jul 27 15:24:00 but probably 2.0 Jul 27 15:24:07 well, by setting it in manifest, it'll blacklist at submission right? Jul 27 15:24:08 automagically Jul 27 15:24:27 Jul 27 15:24:31 thanks! Jul 27 15:24:31 yes Jul 27 15:24:37 appreciated Jul 27 15:24:47 it will warn you that you are removing the support for XXX devices Jul 27 15:24:51 oh yeah, that's fine Jul 27 15:24:53 the chromecast dongle, anyone have the link to the docs? i can't google them Jul 27 15:24:55 better than screwing those people over :) Jul 27 15:24:58 yeah Jul 27 15:25:02 and getting 1* review Jul 27 15:25:02 s Jul 27 15:25:05 yep Jul 27 15:25:11 it seems to be just those damn GT-SXXXX devices Jul 27 15:27:04 rottz, it seems my version of cocos uses glES1.1 Jul 27 15:27:11 is it still possible some of those devices dont have it? Jul 27 15:27:38 just google the exact model that got the crash :) Jul 27 15:28:02 but yeah, I guess it might be somehow possible Jul 27 15:28:09 ok Jul 27 15:28:13 I'm glad that aint my phone :D Jul 27 15:28:35 are you setting the correct minimum API for cocos also? Jul 27 15:28:44 should be API 8 or so Jul 27 15:29:02 http://gfxbench.com/device.jsp?benchmark=gfx27&D=Samsung+GT-S5570+Galaxy+Mini&testgroup=gl apparently it even has 2.0 Jul 27 15:29:08 checking Jul 27 15:29:16 yep Jul 27 15:29:38 well, it might be textures sizes then Jul 27 15:29:47 max texture size is ok too :( Jul 27 15:29:49 are you using non-power-of-2 texture sizes? Jul 27 15:29:54 was about to say it, my max is 2048, it supports 4096 Jul 27 15:29:59 yes, I am Jul 27 15:30:02 well, I never use over 1024 Jul 27 15:30:15 I definitely have non POT textures Jul 27 15:30:19 I heard some devices cant handle over 1024 Jul 27 15:30:31 ok, good to know, I can change that most likely Jul 27 15:30:33 and always use power of 2 Jul 27 15:30:40 I mean, I always use Jul 27 15:30:52 I heard also its advised to round to the next power of 2 Jul 27 15:31:31 my games dont use anything very sophisticated, but I neved had crashes related do open GL Jul 27 15:31:39 http://pastie.org/8181256 I'm guessing I cant get much info from that trace Jul 27 15:32:35 googleing it says GPU memory full Jul 27 15:33:40 yeah try staying below 1024 Jul 27 15:33:52 I mean, 1024 and below Jul 27 15:34:06 yeah Jul 27 15:34:37 you cant expect much from android devices if you're targeting every kind of device Jul 27 15:34:48 so always stay at the minimums Jul 27 15:35:17 yeah Jul 27 15:35:24 ok cool, I just gotta adapt to that market :) Jul 27 15:35:39 a mix between banning devices and staying low in memory usage Jul 27 15:37:20 you might want to keep over opengl 2.0 also, it shouldn't ban many models, and it avoids headache of ancient phones (like if you have to migrate to a newer version of cocos that is 2.0 only or something) Jul 27 15:38:08 and opengl 3.0 was just released this week, so you might see a movement towards it soon on android game engines Jul 27 15:38:37 yeah that's what I thought Jul 27 15:38:40 I did that for iphone once Jul 27 15:38:44 to ban legally the ipod 2G Jul 27 15:38:54 because that device was causing too much trouble with my physic Jul 27 15:39:08 post a link to your game, Im curious lol Jul 27 15:39:12 I didnt actually need 2.0, but I had set it Jul 27 15:39:22 I have a few Jul 27 15:39:25 is it convention to call your main activity MainActivity? Jul 27 15:39:25 iOS or android? Jul 27 15:39:41 android Jul 27 15:39:41 even though i could call it anything i want? Jul 27 15:39:56 jasabella I dont call mine MainActivity, didnt know about that convention :) Jul 27 15:40:00 rottz, I only ported a few kid games to android so far, so if you want to see my real stuff check out dream track nation and tiny plane Jul 27 15:40:09 oh hehe Jul 27 15:40:11 Don't really think it's convention, they just had to call it something Jul 27 15:40:16 I don't use it Jul 27 15:40:17 but the game I was talking about now : https://play.google.com/store/apps/details?id=com.cubicfrog.imakelollipops&hl=ca Jul 27 15:41:09 oops remove end part for non spanish :) Jul 27 15:41:19 seems like a fun game :) Jul 27 15:41:39 yep my daughter played it alot on iOS Jul 27 15:41:59 we kept getting customer emails to port them to android Jul 27 15:42:10 it wasnt hard (both c++ cocos2d) so I did it Jul 27 15:42:19 cool Jul 27 15:42:25 how old is it on android? Jul 27 15:42:28 Is there any way to have a Preference that allows the user to add items to a list? Jul 27 15:42:45 rottz, that one is actually a bit older than the others Jul 27 15:42:58 6 months or so, it's the first one I did, then I released it, then I ported all 6 others and dumped them at once Jul 27 15:42:59 Forkk you'd have to use a String as base and make it yourself Jul 27 15:43:10 hmm Jul 27 15:43:15 Forkk using a separator or JSON Jul 27 15:43:17 or whatever Jul 27 15:43:24 I dont know how they'll do on android, but at least they're there hehe :D Jul 27 15:43:48 there's string set preferences on newer devices Jul 27 15:44:18 yeah, you're doing fine, the game seems polished and has a good rating, just avoid 1* by fixing the crashes :) Jul 27 15:44:33 hehe thanks :) Jul 27 15:44:38 depends on the min sdk you're supporting Jul 27 15:44:47 I'll probably just hardcode them into other tabs or something Jul 27 15:44:54 only one component needs them really Jul 27 15:45:08 Forkk, Jul 27 15:45:12 ? Jul 27 15:45:20 see above Jul 27 15:45:37 Yeah, but not for older versions... Jul 27 15:46:53 QcMat do you sell IAP? or have ads? Jul 27 15:47:03 for now, IAP to remove ads Jul 27 15:47:19 at first I dumped all full version games on the store with ads, but got a few "ads suck" review, understandably Jul 27 15:47:24 so I added that and it stopped them entirely Jul 27 15:47:39 people who hate ads enough to leave a review buy the inapp I guess Jul 27 15:47:53 yeah, I do the same Jul 27 15:48:06 QcMat: how is that converting ? Jul 27 15:48:26 not that much yet Jul 27 15:48:30 but my market are adults, I dont know about kids, AFAIK ads for kids pay peanuts Jul 27 15:48:33 2-3 a day Jul 27 15:48:52 yeah well I'm used to it with iOS too Jul 27 15:49:00 they pay my bills on iOS hehe Jul 27 15:49:12 but not just those games I listed, those are the educational ones, ads are low yet Jul 27 15:49:13 yes* Jul 27 15:49:28 CPMs are pretty low because install rates are low Jul 27 15:51:28 rottz, do you do ads? Jul 27 15:51:39 yeah Jul 27 15:51:44 Chartboost, Revmob, Playhaven, in that order, have great CPMs Jul 27 15:52:02 I can make some awesome days at 9$ CPM on Chartboost Jul 27 15:52:17 on iOS, on android my numbers are still pretty low to have stable income from it Jul 27 15:52:54 I'll try the other 2, Revmob I already know and didnt have much success with it on Android (numbers are too low also, just release the game 2-3 weeks ago) Jul 27 15:53:08 revmob is on and off unfortunately Jul 27 15:53:15 it can do some amazing days, but it can really really go down Jul 27 15:53:15 So my app is going to have a somewhat dynamic settings menu. The Preference system seems perfect for this, but SharedPreferences doesn't look like it'll work to well. Jul 27 15:53:25 ive seen days in the 1$ cpms, and days in the 7-8$ constantly Jul 27 15:53:27 on iOS theres like 10-50 installs per day Jul 27 15:53:50 playhaven is always just "average" I guess, CB is really really good most of the time, revmob on and off Jul 27 15:53:51 on android I had like 1 install in 1 week Jul 27 15:53:54 I have those 3 daisy chained Jul 27 15:54:01 Users will be able to add things to lists and those things will each have their own settings menus. Different types of them may even have different settings menus. Jul 27 15:54:08 Any advice on what I should do? Jul 27 15:54:30 rottz, if you want chartboost, on iOS super easy to integrate, else check github for ChartboostX Jul 27 15:54:45 that's if you need support in c++, 1 static lib and it just works great Jul 27 15:55:10 I was using AdMob (interstitial), RevMob and MMedia daisy chained, but removed RevMov and MMedia, weren't making any money Jul 27 15:55:17 kk Jul 27 15:55:22 I keep revmob last in my chain Jul 27 15:55:23 AdMob I'm averaging $5 CPM Jul 27 15:55:31 because the fill rate is really good, but most often than not the cpm sucks Jul 27 15:55:32 cool Jul 27 15:55:33 5$ is great Jul 27 15:55:42 if I could exchange all the roller coasters for a stable 5$ all the time, i'd do it Jul 27 15:56:23 do you also have iOS apps? Jul 27 15:56:24 plus I have AdMob banner also during the match, which pays like $.07 cpm Jul 27 15:56:30 haha yeah banners are ridiculous Jul 27 15:56:44 I had those last year, was making like 3$ a day on them Jul 27 15:56:45 not me, I ported the iOS version of my friend's game to Android Jul 27 15:56:57 kk Jul 27 15:57:14 I'm figuring out marketing on gplay, it's different than iOS, alot Jul 27 15:57:26 seems to be very SEO based, and long term stuff based, uninstalls, etc Jul 27 15:57:31 iAd pays very well Jul 27 15:57:42 yeah iAd aint too bad Jul 27 15:57:47 fill rates are shit, but they pay well Jul 27 15:57:52 but that's why you daisy chain Jul 27 15:58:20 Anyone? Jul 27 15:58:24 do you use AdWhirl (now AdMob mediation)? Jul 27 15:58:36 I used to, I had admob + iad via adwhirl Jul 27 15:58:43 I stopped using it because I made my own at that time Jul 27 15:58:49 it was a great tool! Jul 27 15:59:46 woa, thats a lot of effort... :) Jul 27 15:59:51 Im happy with AdMob mediation Jul 27 16:00:08 it was lots of efforts, but I wanted the ads to pop when another ad failed Jul 27 16:00:20 adwhirl just did some %'s which was great, but when CB cant find an ad, I want revmob to try, etc Jul 27 16:00:30 and if revmob fails, in house ad Jul 27 16:00:35 so I got 100% fill rate pretty much Jul 27 16:01:02 for interstitial you're probably on the right path, I dont think AdMob Mediation works well (or at all) for interstitial Jul 27 16:01:07 I use them for banners only Jul 27 16:01:20 for interstitial I did a very crude rotation myself Jul 27 16:01:43 what I did is I have a XML that says who's #1, 2, 3 Jul 27 16:02:00 so when I launch an ad, it starts #1, if it fails, checks to start #2, and I can switch those without updating the apps, via the xml Jul 27 16:02:08 so when chartboost has bad days, I put playhaven in front, etc Jul 27 16:02:18 some work, but really worth it in the end $ wise Jul 27 16:02:27 the app downloads the XML from your server? Jul 27 16:02:37 yeah Jul 27 16:02:40 cool Jul 27 16:03:05 on iOS doing this well can double my ad income Jul 27 16:03:19 because when I stick one that has horrible CPM first, it steals all my day's traffic Jul 27 16:03:30 thats a good approach, I might have to improve my implementation once I start making some decent money (for now I make like $5 per day) Jul 27 16:03:39 it started that way Jul 27 16:03:46 and now it's arround 2k ads a day :) Jul 27 16:03:56 took about a year of FT work to get it there Jul 27 16:04:11 woa, thats a lot, congrats :) Jul 27 16:04:14 tx Jul 27 16:04:21 all on iOS, hopefully android can make something happen hehe Jul 27 16:04:29 my friends game on iOS makes like 100-200 per day Jul 27 16:04:30 I'm studying, it seems SEO is very important, I'm gonna hire someone to do it well Jul 27 16:04:33 awesome Jul 27 16:04:57 that'S about what my second best game makes Jul 27 16:05:02 but he has only 1 game, he should have kept it going and released 5 more Jul 27 16:05:06 awesome Jul 27 16:05:16 that's how we did it, we had one arround that area, and we used it to cross promote new ones Jul 27 16:05:21 and they all supported themselves Jul 27 16:05:22 but he settled for 1 game.. oh well, Im making more games for android :) Jul 27 16:05:41 do in house ads work well? Jul 27 16:05:48 oh yeah for sure, they're crucial Jul 27 16:05:58 when I release a new game, I Assign like 20% of my traffic to that new game Jul 27 16:06:04 it ususally boosts it up really fast up ranks Jul 27 16:06:14 and a week later or so, I keep that 20% and split it amongst all the apps Jul 27 16:06:24 every major release, I focus it on 1 game Jul 27 16:06:41 I use chartboost for the cross promotion ads Jul 27 16:07:19 cool, so all your apps promote your other apps 20% of the time? Jul 27 16:07:25 in house ads, my stats are like 25% CTR and 5% IR Jul 27 16:07:32 yeah Jul 27 16:07:43 when I pop an ad, I do rand()%5 pretty much Jul 27 16:07:55 1/5 chance to get a in house, 4/5 to get a paid ad Jul 27 16:08:13 that number (5) is also in my XML, so I can torque it more or less whenever I want Jul 27 16:08:47 yeah, its giving great results.. good to know, I might try it later.. but my games aren't so well connected one to the other, so the inhouse ad might not work so well Jul 27 16:08:48 I think that system is a huge part of what made my stuff work on iOS, being able to react quick, on gplay it's less important, you can update in 6 hours or so Jul 27 16:08:59 and yeah, my apps are all pretty similar Jul 27 16:09:03 similarely themed Jul 27 16:09:42 how does Apple like those updates being fetched from servers? Jul 27 16:09:42 yeah, very nice, hope you do as well on android also :) Jul 27 16:09:49 Whatever, nobody answered, so I guess I'll just use SharedPreferences and set the name of the SharedPreferences based on each item's ID. Jul 27 16:10:19 rottz, thanks! I hope your game makes as much as your friend's ios game soon too Jul 27 16:10:27 100-200 a day is a huge step, real money! Jul 27 16:10:55 Mavrik, they're ok with them I guess, lots of people do scripting with lua scripts downloaded, etc Jul 27 16:11:14 it's better than spammy updates for a change in % of in house ads shown Jul 27 16:12:04 mhm Jul 27 16:12:17 saves them some time and effort hehe Jul 27 16:13:20 thanks! Jul 27 16:13:42 yeah I hope it does well... but I will be releasing more games, so hopefully they add up to a decent amount Jul 27 16:13:43 what's your game, btw? Jul 27 16:13:48 ill go download it on my super nexus Jul 27 16:14:01 yeah well cross promotion is really key I think Jul 27 16:14:09 its a Kakuro game: Jul 27 16:14:16 https://play.google.com/store/apps/details?id=co.rottz.realkakuro Jul 27 16:14:18 buying users is very expensive Jul 27 16:14:24 cross promotion is like getting them cheaper Jul 27 16:14:39 cheaper because you could be making money with that traffic instead, but much cheaper than buying traffic Jul 27 16:14:55 cool, looks polished Jul 27 16:15:04 the rating is low because I'm being abused by the competition, so if you ignore the 22 1*'s anonymous ratings it would have a good rating (4.8 or so) Jul 27 16:15:13 that sucks :( Jul 27 16:15:13 QcMat have you used lua on android yet ? Jul 27 16:15:21 g00s, not yet Jul 27 16:15:31 I plan on using lua in a game on both iOS and Android, later this year Jul 27 16:15:57 yeah my friend is a very good designer, the game is really polished, but it was not my merit :) Jul 27 16:16:04 a horizontalscrollview containing a linearlayout. calling addView on the linearlayout seems to scroll the HSV to that position, any way to disable this ? Jul 27 16:16:04 hehe Jul 27 16:16:08 well you coded it there Jul 27 16:16:09 okay guys its definetely too warm Jul 27 16:16:13 cool. i was looking at the best all-java options; luaj looked good. you're probably using the c version though for ios Jul 27 16:16:16 *hot Jul 27 16:16:20 I was wondering how we would translate chat symbols such as :P or :) to custom emoticon images in android.. Jul 27 16:16:31 g00s, I havent used it on neither platform yet Jul 27 16:16:39 all I know is I want it in the platformer I'm making Jul 27 16:16:49 I want to be able to change some AI behavior at any time Jul 27 16:17:06 :) Jul 27 16:17:21 QcMat link your iOS games/developer profile Jul 27 16:17:35 https://play.google.com/store/apps/developer?id=Cubic+Frog+Apps this? Jul 27 16:17:41 ah iOS lol, stupid me Jul 27 16:17:44 yeah Jul 27 16:18:38 btw, what do you mean about the SEO part of google play? for climbing the search ranking? Jul 27 16:18:58 well from what I searched on google, on promoting apps on gplay, I saw that SEO of description and title were very important Jul 27 16:19:01 can anybody guide me regarding that? That would be great.. Jul 27 16:19:21 https://itunes.apple.com/us/app/preschool-edukitchen-free/id587107345?mt=8 rottz , cant figure out how to link to all apps, but you can see the rest from "related" Jul 27 16:19:31 "view more by developer" Jul 27 16:20:13 it's pretty much the same games, with a few more than android, and paid / free versions Jul 27 16:20:31 ughlol: you could start off with something like this http://developer.android.com/reference/android/text/SpannableStringBuilder.html Jul 27 16:21:15 karlsve, thanks a ton, I'll look it up and ping you if I dont understand. :) Jul 27 16:21:36 ughlol, the MMS app uses ImageSpan inside SpannableStrings to show emoticons Jul 27 16:22:08 ah I thought you had many more on iOS Jul 27 16:22:21 Mavrik, okay, so is it something like mapping sertain stings to an image? Jul 27 16:23:30 no, check the docs - you have a string and you say "span from character 13 to 16 is this ImageSpan" Jul 27 16:23:35 and ImageSpan holds your image. Jul 27 16:23:54 and then you put the SpannableString into TextView and that's it Jul 27 16:24:16 Mavrik, i see, I'm going to look into it. I'll ping you if i get stuck. Thanks a ton :) Jul 27 16:25:35 I have a design question, what would be a good UI design for managing a ListView. Should I swipe for deleting an item, or should I ask the user if they want to delete or edit an item if they press it for a long time? Just looking for suggestions Jul 27 16:26:43 sulaiman, the standard Android UX is to hold down the item you want to delete Jul 27 16:26:51 swiping to delete is an iOSism Jul 27 16:27:06 making your listview inconsistent with rest of OS will annoy users ;) Jul 27 16:27:21 is it really hold down to delete? hold down used to be context menu Jul 27 16:27:26 yeah, I will stick to the standard way then Jul 27 16:27:32 thanks Jul 27 16:27:34 g00s, yeah, delete is always in that context menu Jul 27 16:27:42 or it triggers actionview with delete option Jul 27 16:28:03 the only exception I've seen is Gmail which has swipe-to-archive and delete in long-press actionview Jul 27 16:38:27 I'm trying to use the SignInButton Class, but I don't know why, my editor tells me there's an error(Element is not allowed here). But I copy paste an example. Is there anything to do anywhere so that it knows about that class? Jul 27 16:39:48 I have the plus sample working, but If I try to add it in my module, it complains about it Jul 27 16:40:10 you probably have mismatched parenthesis, or semicolons or something Jul 27 16:40:20 copypasting is bad that way ;) Jul 27 16:41:48 how do i install android jdk sdk and stuff? Jul 27 16:42:47 Would it be considered bad practice to prefix all my interfaces with "I"? Jul 27 16:44:58 b80905 download ADT Jul 27 16:45:19 rottz: i already have it Jul 27 16:45:37 rottz: what next? Jul 27 16:46:09 it comes with everything already Jul 27 16:46:23 did you download the ADT Bundle or the plugin? Jul 27 16:46:26 don't i have to install jdk or something? Jul 27 16:46:28 (download the bundle) Jul 27 16:46:31 http://developer.android.com/sdk/index.html Jul 27 16:46:41 adt bundle Jul 27 16:46:44 ok Jul 27 16:47:13 well, yeah, maybe you have to download the JDK (I already had) Jul 27 16:47:42 not sure on this Jul 27 16:47:51 okay i will see if i need it Jul 27 16:47:59 Forkk, why would you do that? :) Jul 27 16:48:07 did you try? Jul 27 16:48:09 how do i write the hello world program? Jul 27 16:48:10 without downloading Jul 27 16:48:22 Mavrik, meh, old habits? Jul 27 16:48:36 right click on project explorer, then new android project Jul 27 16:48:57 Mavrik, I copy paste the whole xml file, In that case it should be fine. In which jar file does that class exist? Jul 27 16:50:16 rottz: where is it? Jul 27 16:50:31 rottz: where is project explorer? Jul 27 16:50:51 when you open ADT Jul 27 16:51:01 what's the flag to clear the entire navigation stack? FLAG_ACTIVITY_CLEAR_TOP seems to only remove the top Jul 27 16:51:02 if it shows a Welcome Screen, just close it Jul 27 16:51:12 and you should be on the workbench Jul 27 16:51:21 one of the panels (to the left) is Project Explorer Jul 27 16:51:40 http://developer.android.com/training/basics/firstapp/creating-project.html Jul 27 16:51:55 rottz: where is adt? Jul 27 16:52:39 you downloaded adt bundle, just install then run it Jul 27 16:53:14 rottz: i downloaded the adt bundle zip archive Jul 27 16:53:36 Forkk, C# person I see :P Jul 27 16:53:57 I guess... I haven't done C# in ages though. Jul 27 16:54:27 rottz: it contains eclipse and sdk directories Jul 27 16:55:10 ok, then unzip it and then run eclipse Jul 27 16:55:24 rottz: i would prefer not to use eclipse Jul 27 16:55:58 rottz: is it necessary? Jul 27 16:56:18 well, you need an IDE Jul 27 16:56:22 if you dont want to use command line Jul 27 16:56:28 rottz: i want to use the command line Jul 27 16:56:35 http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine Jul 27 16:58:08 Forkk: I use I... C... and A... for interface/concrete/abstract class names. Helps quickly sort out what's what when navigating code Jul 27 16:58:21 I guess Jul 27 16:58:34 but I like to follow naming conventions of my platform :) Jul 27 16:59:25 rottz: when i enter ./android list targets terminaly says ./android: 1: ./android: java: not found and similar stuff Jul 27 16:59:45 rottz: ^y Jul 27 16:59:46 Forkk: I don't think there's any established convention in Java about this that I know about; so I stick to what makes my life easier [ie, whatever floats your boat theory :-)] Jul 27 17:00:01 rottz: it looks like i need to install jdk or something Jul 27 17:01:12 rottz: can you help me with that? Jul 27 17:01:33 what's to help, get the joke and install it Jul 27 17:01:38 jdk Jul 27 17:01:45 Is there a way I can do inheritance with preferences? Jul 27 17:01:54 stupid autocorrect Jul 27 17:02:01 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Jul 27 17:02:24 inherit prefs? like how? Jul 27 17:02:27 rottz: i've heard the official version is proprietary Jul 27 17:02:39 rottz, irrelevant Jul 27 17:03:45 b80905: If you're using a linux box, you can probably install openjdk Jul 27 17:04:38 pfn, like inherit preferences from another class? Jul 27 17:05:06 classes don't have preferences, nothing to inherit Jul 27 17:05:41 pfn best freudian slip evar Jul 27 17:05:50 er rottz = b80905 for irrelevant Jul 27 17:06:12 g00s, autocorrect, not slip Jul 27 17:06:16 on phone Jul 27 17:06:22 pfn: and what's that supposed to mean? Jul 27 17:06:44 b80905, it doesn't matter that it's "proprietary" Jul 27 17:07:00 pfn, honestly, the better way to put it would be to ask if I can combine preferences from multiple XML files. Jul 27 17:07:17 pfn: why doesn't it? Jul 27 17:07:20 Forkk, no, just on your own Jul 27 17:07:48 b80905, the correct question is why does it? Jul 27 17:07:57 alright, then, I suppose I'll have to generate it programmatically or something Jul 27 17:08:50 Forkk, make use of defaults Jul 27 17:09:10 pfn, what do you mean? Jul 27 17:09:23 how do default values help me in any way? Jul 27 17:09:28 pfn: nonfree software propaganda? Jul 27 17:09:34 the default parameter to any pref get call Jul 27 17:09:45 keywird: propaganda Jul 27 17:10:01 keyweird? Jul 27 17:10:42 Forkk, simple, you chain your calls through pref structures and you have a form of inheritance Jul 27 17:11:09 * Forkk is confused Jul 27 17:11:49 pfn: so you like nonfree software? Jul 27 17:11:57 child. get string (k, parent. getstring(k, null)) Jul 27 17:12:07 b80905, I don't care, it is irrelevant Jul 27 17:12:47 I like what gets the job done and suits my needs Jul 27 17:13:03 pfn, I wasn't talking about that, I was talking about inheriting preference fields from something else... Jul 27 17:13:34 whether it is proprietary or open is irrelevant, just the price, functionality and suitability Jul 27 17:14:07 "hello from microsoft!" Jul 27 17:15:15 Forkk, just add the prefs from xml additively Jul 27 17:15:37 b80905: Does that mean 'bad design' and 'financial success'? Jul 27 17:15:40 that would add multiple PreferenceScreens though Jul 27 17:16:01 it won't, organize your xml better Jul 27 17:16:16 b80905: you _may_ be able to use openjdk [http://stackoverflow.com/questions/11178332/how-to-build-android-project-with-openjdk-on-ubuntu] But as a practical matter, I dunno how many Android devices are exclusively installed with only libre software Jul 27 17:17:39 pfn, I haven't written my XML yet :P Jul 27 17:22:33 seitensei: what are you talking about? Jul 27 17:23:23 kbs: i have installed openjdk and i have not had any problems so far Jul 27 17:23:44 is there any way to set up intellij project tree view with right click -> context menu -> 'Open With … " … Jul 27 17:23:51 b80905: cool. able to create/install android apks with it too? that's great. Jul 27 17:24:03 eclipse used to have that; sometimes i edit in vim. convenient Jul 27 17:24:26 g00s, use ideavim Jul 27 17:25:11 g00s, there is also an open in external editor command Jul 27 17:25:13 well, i use a few different editors, lets say dot -> graphviz Jul 27 17:25:22 ok, trying to find that Jul 27 17:25:24 but I don't know what it is Jul 27 17:25:47 you all are sheeple! using software that denies your freedom! Jul 27 17:26:19 that ship sailed decades ago :-) Jul 27 17:26:51 was busy coding :( Jul 27 17:27:11 ha! :-) Jul 27 17:27:17 funkbox the hw isn't open, so whats the point Jul 27 17:27:20 :| Jul 27 17:27:32 openmoko for all Jul 27 17:27:39 i mean, if you really want to take the argumwent to its logical conclusion Jul 27 17:27:40 ubuntu edge for none Jul 27 17:27:41 i consider 'free software' as FSF defines it very detrimental Jul 27 17:30:58 at the risk of getting everyone on their respective soapboxes :-) funkbox -- just curious, what's your thinking on that? Jul 27 17:32:57 kbs: GPL is very restricitve in that using any GPL code means you have to GPL all your own stuff, which is really infeasible for things that actually make money Jul 27 17:33:25 so devs have to roll their own. a more sensible license makes it much more likely that others will contribute Jul 27 17:33:46 it's interesting that GPL actually encourages dual licensing Jul 27 17:33:55 what's ur developing device?? Jul 27 17:33:58 the usage of it that is Jul 27 17:34:00 funkbox: oh, I see -- gotcha. So, it's about the GPL licensing specifically, rather than the idea of libre software Jul 27 17:34:04 mine is xperia zl Jul 27 17:34:45 kbs: yeah, don't care about the whole free thing. GPL in specific. i also dislike dogma and FSF/rms are as dogmatic as you can get Jul 27 17:35:05 BSD-style licensing is great Jul 27 17:35:11 funkbox: *nod* understand :-) Jul 27 17:35:16 GPL is great if you are a company releasing source code Jul 27 17:36:00 i'd never license anything under GPL. BSD/MIT Jul 27 17:36:17 maybe beerware. you can use this software provided you buy me a beer Jul 27 17:39:45 pfn: releasing source code is a pain Jul 27 17:41:45 even though stallman is an extremist, i think extremists still play important roles in framing debates by "helping move the poles". whether politics or something else, the most extreme positions often influence the median opinions also. Jul 27 17:42:40 and funny thing, often he winds up being right down the road Jul 27 17:42:54 I wish stallman had better people skills; it's amazing how much that influences the otherwise generally insightful observations he has Jul 27 17:42:55 can i use the android sdk manager from terminal? Jul 27 17:43:16 kbs: he's an atheist Jul 27 17:45:10 b80905: are you suggesting that atheists and poor people skills (or insightful observations) are co-related :-) Jul 27 17:46:27 kbs: are you suggesting that that question is in any way on-topic whatsoever? Jul 27 17:46:47 :P Jul 27 17:46:57 g00s: i agree, it is pretty useful sometimes to have so dedicated people Jul 27 17:47:14 g00s: but as a human being, rms isn't... a good one Jul 27 17:47:36 * kbs has been caught trolling for entertainment Jul 27 17:47:45 kbs: i think he is one of the kindest men on earth Jul 27 17:47:47 i saw some picture of him grabbing a woman's ass the other day, it was wrong on so many levels Jul 27 17:47:53 (at a convention) Jul 27 17:48:52 g00s: fake Jul 27 17:48:55 pfn macvim $FilePath$ worked :D Jul 27 17:49:07 b80905 are you sure? i was really depressed when i saw that Jul 27 17:49:44 g00s: i think i i can show you the original photo Jul 27 17:50:36 so was it some smear job ? Jul 27 17:50:52 g00s: wait a minute, i'm gonna try to find it Jul 27 17:54:50 counted btree ftw Jul 27 17:57:05 anyone use the app engine "automatic" backend thing yet? Jul 27 17:57:56 g00s, you use graphviz? I was thinking of doing an Android graphviz app Jul 27 17:59:10 Ologn yeah, i use graphviz here and there; now i use it for visualizing Ragel state machines Jul 27 17:59:55 and on a completely different note: if I want to store recipes in a database with a variable number of ingredients, is it better to have a separate slot for each one, or have an 'ingredients' slot which contains something like json? The first seems to be limiting to the max number of ingredients and require a larger amount of setup for the database table...the second adds work in that I have to par Jul 27 17:59:55 se the results of the column separately....is there a preferred method? Jul 27 18:00:58 damccull comes down to data modeling Jul 27 18:01:00 a relational database? Or bigtable (the appengine db) Jul 27 18:01:18 there could be a table 'ingredients' with m:n relationship to recipes Jul 27 18:01:28 so you can see what recipes use eggs Jul 27 18:01:33 I usually use graphviz to figure out complex library dependencies Jul 27 18:01:57 Ologn yeah, used it with doxygen too Jul 27 18:03:50 Ologn have you seen this? http://www.amazon.com/Structure-Methods-Applications-Engineering-Systems/dp/0262017520 Jul 27 18:03:59 overloading link with book & concept Jul 27 18:07:40 g00s: I have a table full of ingregients already. each recipe needs to reference a variable number of ingredients. Jul 27 18:07:49 kbs right now I'm using sqlite, inapp database Jul 27 18:08:34 damccull: gotcha. g00s idea is the usual approach I've seen as well. A cross table between your recipies and your ingredients Jul 27 18:08:34 without thinking about it much, it seems like a tricky data modeling problem Jul 27 18:08:46 you will have subtypes Jul 27 18:08:55 uhm Jul 27 18:08:59 subtypes?" Jul 27 18:09:02 table ingredients Jul 27 18:09:02 onion: yellow onion, red onion, etc Jul 27 18:09:10 g00s: oh, yes correct... Jul 27 18:09:14 table recipies Jul 27 18:09:22 forgein key them Jul 27 18:09:38 No, that's the first time I have heard of that book Jul 27 18:09:46 g00s: what's wrong with just putting each subtype as a separate ingredient? Jul 27 18:10:06 g00s: take a closer look http://cs424423.vk.me/v424423435/d2d/lIGxgxpRgzQ.jpg and http://commons.wikimedia.org/wiki/File:NicoBZH_-_Richard_Stallman_(by-sa)_(5).jpg Jul 27 18:10:10 depends if you want to do something with recipse ingredient substitution Jul 27 18:10:21 you can use a recipies_ingredients table with a composite key of recipie_fk and ingredient_fk Jul 27 18:10:43 then use that mapping table to see which ingredients belong to the recipie or which recipies the ingredient is in Jul 27 18:11:11 zaltekk: yes, that was what g00s suggested as well. I dunno about this subtype rathole, I'd kinda stick to something simple myself :-) Jul 27 18:11:34 g00s: most recipes will be explicit without any substitutions, but some will have variations based on type of ingredient, yes... Jul 27 18:11:37 hmm Jul 27 18:11:39 missed the subtype thing Jul 27 18:11:46 subtype of ingredient? Jul 27 18:12:00 zaltekk: onion: red, yellow Jul 27 18:12:00 oh, substitutions Jul 27 18:12:06 err Jul 27 18:12:07 hmm Jul 27 18:12:43 i guess it depends on how you view the signifigance Jul 27 18:13:02 in a class, i would probably represent that with a metadata value to change the 'type' from like an enum of known types Jul 27 18:13:06 how could you do that in a database? Jul 27 18:13:11 is it worth being its own ingredient? probably, or the recipie wouldn't specify Jul 27 18:13:27 you can do enums in the db Jul 27 18:13:36 and have a type column on the ingredient Jul 27 18:13:56 zaltekk: it's like if I want to make chocolate covered pretzels Jul 27 18:13:58 but thinking of it from an inventory standpoint, the two onion types wouldn't be the same row Jul 27 18:14:11 but I have 3 choices of chocolate: white or regular or dark Jul 27 18:14:29 each one looks and tastes SLIGHTLY different but they're all chocolate covered pretzels Jul 27 18:15:01 so maybe the recipe, then, references all three types as a "use one of these" Jul 27 18:16:05 is there a special reason why dx.bat was moved in latest android sdk? updated today and now I have to fix all my scripts that call dx.bat... (btw it cannot be downgraded either?) Jul 27 18:17:10 damccull: If you want to have a "set" of interchangeable ingredients, you can create an intermediate ingredient_set type table; though that'll generally make your queries fairly painful to construct. Jul 27 18:17:12 g00s: so what do you think? Jul 27 18:18:02 If your "interchangeable" ingredients are universal [ie, independent of recipie] then there might be some simplifications you could do as well. Jul 27 18:18:20 b80905 i can't tell. i hope he didn't do that Jul 27 18:19:18 Does Ant for Android projects use -Werror? Because my compiles fail it a message that says "error: warnings found and -Werror specified" Jul 27 18:19:29 To be clear its not my code that has those warnings but the Facebook SDK :/ Jul 27 18:19:38 g00s: clearly the author just cut out richard stallman's face from the second picture and pasted it into the first one Jul 27 18:20:13 g00s: did you read previous message? Jul 27 18:20:24 yeah Jul 27 18:20:49 why do you still doubt? Jul 27 18:21:25 mihi its because the tools are now broken into versions (18.0.0) Jul 27 18:21:43 g00s: why do you still doubt? Jul 27 18:23:06 g00s, and would it have to be *that* hard to drop a second dx.bat where it was before (using the "old" version obviously)? Jul 27 18:23:29 mihi confusion? Jul 27 18:23:55 can i use the android sdk manager from terminal? Jul 27 18:24:07 kbs: so instead of having "chocolate" in the table and then making it have metadata with 3 options, make 3 separate chocolate entries? Jul 27 18:24:12 g00s, breaking existing builds of software is not the nicest way either... Jul 27 18:25:00 just symlink then :| Jul 27 18:26:47 Does sharedpreferences support any sort of namespacing? Jul 27 18:27:12 Forkk: what you mean? Jul 27 18:27:21 Like groups Jul 27 18:27:34 Forkk: the preferences classes do Jul 27 18:27:39 damccull: hard to parse that question without seeing actual tables ;-) [see zaltekk 's description for instance] but in essence, yes. rather than having a recpie_ingredient table, you could use recipie_set child table, pointing to recipie. The recipie_set itself would be mapped to ingredients, via a recipie_set_ingredient table. Something like that Jul 27 18:27:44 ok Jul 27 18:27:47 Forkk: or sharedpreferences actualy lets you name individual preference files too Jul 27 18:28:14 yeah, but I'd rather not have a bunch of them Jul 27 18:28:23 sounds like it'd be faster to just have one Jul 27 18:28:23 g00s, yeah, and tell all other users that try to build the project too. but I see nobody sees a problem here so I'll have to add ant tasks to dynamically change the path to all my build scripts... Jul 27 18:28:36 Forkk: sharedprefs are basically just key/value pairs. The grouping is done in the ui Jul 27 18:31:09 mihi there are 2 approaches: maintain backwards compatibility and duplicate functionality and make everything a lot more confusing, or update the tools cleanly but make a little more work for people. Microsoft likes the first, which is why windows 8 still runs programs from dos but comes with a crapton of useless stuff for most people. Google is opposite, and prefers to prune stuff that's no longer Jul 27 18:31:09 needed, but makes a little more work on our end. Jul 27 18:34:36 what is ant debug? Jul 27 18:36:04 it's the way you can tell if small insects are working correctly Jul 27 18:37:08 when i run it it says 'build failed unable to find javac compiler' something like that Jul 27 18:38:15 b80905: that sounds like it can't find your jdk Jul 27 18:39:02 damccull: i just installed openjdk Jul 27 18:39:20 b80905: try setting a JDK_HOME or JAVA_HOME environment variable Jul 27 18:39:37 b80905: also i don't know how well android works with openjdk. never tried it Jul 27 18:42:00 should work just fine Jul 27 18:47:37 damccull: where am i suppose to find ant? Jul 27 18:47:43 damccull: *supposed Jul 27 18:48:35 b80905: you could try actually following the system requirements Jul 27 18:48:54 i want ot get the OverScroller in the HorizontalScrollView. how bad is it to use reflection ? Jul 27 18:49:07 i want the HSV to snap to a child Jul 27 18:52:03 are you sure you don't want a ViewPager instead? Jul 27 18:52:24 silmawien: yes Jul 27 18:52:43 silmawien: want a horizontalscrollview that will slowly snap to a child but may display many children Jul 27 18:52:46 think of like a grid Jul 27 18:54:47 it's kind of sucky to have the margin of the items be in the center Jul 27 19:46:52 hi Jul 27 19:46:59 i need help in calendar Jul 27 19:47:08 how to show only current week dates in calenter? Jul 27 19:47:10 calender? Jul 27 19:48:37 ello Jul 27 19:48:43 any one is there? Jul 27 19:50:06 karachi are you asking how to view current week ok calendar application? Jul 27 19:50:15 yes Jul 27 19:50:29 i have application which show all dates in gridvew from 1 to 31 Jul 27 19:50:37 ijust want to show only curent week Jul 27 19:50:40 in single row Jul 27 19:51:21 http://www.androidhub4you.com/2012/10/custom-calendar-in-android.html see this example Jul 27 19:51:28 is display all month in gridview Jul 27 19:52:27 m requimrent is to display current week only when click on next is show next wek when click on previouweek is display previous week dates like this image imgur.com/zflI6lR Jul 27 19:55:38 karachi well you probably need to make custom adapter for the gridview Jul 27 19:57:09 how? Jul 27 19:57:37 complete source code is here https://github.com/manishsri01/CustomCalendarAndroid Jul 27 19:57:48 how do i just filter dates?? Jul 27 20:00:00 i need help:( Jul 27 20:00:52 karachi edit gridview to have only 2 columns and then create custom adapter for the gridview. Jul 27 20:01:08 karachi the adapter is what gives content for gridview Jul 27 20:01:33 2 column? no i wantto show single row which contain sun to sat dates Jul 27 20:02:55 karachi 1 column sry. Jul 27 20:03:22 then?? how i show 7 dates? in sigle column? Jul 27 20:03:36 but I need to goto sleep, need to get up early. Jul 27 20:03:39 https://github.com/manishsri01/CustomCalendarAndroid this is complete source code Jul 27 20:04:28 karachi yeah righs sry, I really almost asleep. 7 columns of course. I was thinking rows. Jul 27 20:04:39 *I'am almost Jul 27 20:04:53 well then just create custom adapter. Jul 27 20:05:00 do u just tell me ho to implement?/ this is example code just edit this plzz Jul 27 20:05:15 is hav only 1 single page Jul 27 20:06:45 There is tutorials to create custom adapter for gridview, just google them. I really need to go to sleep. -> Jul 27 20:07:50 do u make for me tomorrow?? i just want to show calender like this image imgur.com/zflI6lR Jul 27 20:50:22 is there any android prgrammer? Jul 27 20:56:32 no, all of us are bad Jul 27 21:10:17 i need help regarding android programing Jul 27 21:10:28 any one have knowledge aboutg calendar?? Jul 27 21:10:30 about Jul 27 21:11:15 what about it? Jul 27 21:11:50 i want to create a calender which display only current week dats Jul 27 21:11:52 dates Jul 27 21:12:01 how i wil do? Jul 27 21:12:17 you mean calender in your app? Jul 27 21:12:28 no customize calender Jul 27 21:12:36 what? Jul 27 21:12:46 www.androidhub4you.com/2012/10/custom-calendar-in-android.html Jul 27 21:12:53 see this example tutoria Jul 27 21:12:58 is display calender in gridview Jul 27 21:13:11 and? Jul 27 21:13:11 which contain 5 rows Jul 27 21:13:33 i want to show only1 row from sun to sat which contain current date Jul 27 21:13:46 so? Jul 27 21:13:49 just do it Jul 27 21:13:49 what's the difference between String.equals(String) and String.contentEquals(String)? Jul 27 21:13:52 you have the code Jul 27 21:14:01 like this image http://imgur.com/zflI6lR Jul 27 21:14:07 yes i have this example code Jul 27 21:14:31 karachi: just add 7 TextView's to a LinearLayout Jul 27 21:14:56 no problem is Jul 27 21:15:11 i want to show only curent week with two button which show previous week and nextweek dates Jul 27 21:15:14 se this image http://imgur.com/zflI6lR Jul 27 21:15:18 i want to make like that Jul 27 21:15:31 BullShark: the API tells you .equals compares Strings whereas .contentEquals compares String to CharSequence or String to StringBuffer Jul 27 21:15:51 u see this image Jul 27 21:15:53 ?? http://imgur.com/zflI6lR Jul 27 21:16:04 yes Jul 27 21:16:13 so its show dates of current week Jul 27 21:16:18 yes and? Jul 27 21:16:20 when user click on next week is dislay next week dates Jul 27 21:16:23 how is possible? Jul 27 21:16:27 i just told you Jul 27 21:16:56 you create the layout and update the textviews upon button click Jul 27 21:16:59 this example shoe calender in gridview Jul 27 21:17:03 www.androidhub4you.com/2012/10/custom-calendar-in-android.html Jul 27 21:17:06 omg Jul 27 21:17:09 how i customize this code? Jul 27 21:17:15 dont Jul 27 21:17:18 simple Jul 27 21:17:38 thi is url of complete code https://github.com/manishsri01/CustomCalendarAndroid Jul 27 21:17:56 is only single page code tell me how i display only current week?? Jul 27 21:19:06 help me plz Jul 27 21:19:17 karachi, how about starting at the basics and trying to implement it yourself? Jul 27 21:19:40 i know bsic Jul 27 21:19:56 and if you happen to have too much money, a lot of people would do that if you pay them Jul 27 21:20:02 problem is this example show full month calender in gird Jul 27 21:20:18 i want t disly just only single row which contan curent row Jul 27 21:20:26 i do not mean the basics of the calendar but the basics off java and especially android programming Jul 27 21:20:33 current date i mean Jul 27 21:21:57 karachi: rewriting the printMonth is what you are going to do Jul 27 21:22:11 yes problem is in prnt month Jul 27 21:22:20 howw to get only current week dates from there?? Jul 27 21:22:44 there is no problem, its just that you have different goals then the initial creator of the code Jul 27 21:23:36 for (int i = 1; i <= daysInMonth; i++) { Jul 27 21:23:36 Log.d(currentMonthName, String.valueOf(i) + " " Jul 27 21:23:37 + getMonthAsString(currentMonth) + " " + yy); Jul 27 21:23:37 if (i == getCurrentDayOfMonth()) { Jul 27 21:23:37 list.add(String.valueOf(i) + "-BLUE" + "-" Jul 27 21:23:37 + getMonthAsString(currentMonth) + "-" + yy); Jul 27 21:23:37 } else { Jul 27 21:23:37 list.add(String.valueOf(i) + "-WHITE" + "-" Jul 27 21:23:38 + getMonthAsString(currentMonth) + "-" + yy); Jul 27 21:23:38 // } Jul 27 21:23:39 } Jul 27 21:23:44 is creatng loop for 1 to 31 Jul 27 21:23:51 how to i prin onlsy current week dat Jul 27 21:23:52 anyone able to kick him? Jul 27 21:23:58 y ? Jul 27 21:24:06 read the topic, no pastes Jul 27 21:24:18 orry im newer here Jul 27 21:24:21 sorry Jul 27 21:25:27 50% of all oreilly ebooks ; coupon code CFSCN13 Jul 27 21:26:43 g00s: on amazon? Jul 27 21:26:51 oreilly.com Jul 27 21:27:11 i would always recommend getting oreilly *ebooks* from oreilly Jul 27 21:27:21 (free updates, multiple formats, blah blah) Jul 27 21:28:40 i picked up "The User Experience Team of One" Jul 27 21:35:17 hello guys Jul 27 21:37:01 hi Jul 27 21:37:27 I'm in a activity that has dropdown. In his onNavigationItemSelected class method, i have to launch a ListFragment. I cannot find a way to do that Jul 27 21:38:57 If it was a Fragment, I would do like this: getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment).commit(); but I have ListFragment :P Jul 27 21:39:36 under its the same Jul 27 21:40:38 Napalm: replace second argument must be Fragment Jul 27 21:41:14 under: a ListFragment inherits from a Fragment Jul 27 21:41:17 silly :P Jul 27 21:46:42 Hey guys, I have a bug with a Holo Light and Dark Action Bar interface where if I try to cut and paste, the icons in the cut and paste menu are white. http://i.imgur.com/uaNySb7.png Is there any way to fix this? Jul 27 21:46:59 (If I hold down on the buttons I can see their blue outline Jul 27 21:47:01 )_ Jul 27 21:51:10 When you create a new project in Eclipse/ADT, it uses the Holo Light theme with dark ActionBar. Is this the preferred theme? When I look on Google's Android apps, they don't seem to use the Dark ActionBar themselves much. Should I use light or dark action bar? Jul 27 21:51:26 They use it in Hangouts Jul 27 21:51:38 I prefer dark personally Jul 27 21:51:51 be forewarned though, you may run into this bug that I'm running into with copy and paste: http://i.imgur.com/uaNySb7.png Jul 27 21:52:08 The icons are there, just being hidden due to the fact that the copy and paste bar is white Jul 27 21:52:17 oh, I see Jul 27 21:52:39 Trying to figure this out Jul 27 21:52:46 ollienx: ActionBar#getThemedContext() Jul 27 21:52:49 But I just checked, Hangouts use light actionbar Jul 27 21:52:56 google talk did Jul 27 21:53:00 I assumed they carreid it over Jul 27 21:53:04 Nope Jul 27 21:53:04 Napalm: where do I run that? Jul 27 21:53:06 in oncreate? Jul 27 21:53:56 ADT/Eclipse defaults to holo light with Holo Light ActionBar on API 11 (honeycomb) but uses dark actionbar on API 14, anyone know why? Jul 27 21:54:12 Prolly because they liked i more on phones Jul 27 21:54:17 which ICS first came out for Jul 27 21:54:38 smallfoot: before only API14 supports the built-in dark actionbar theme Jul 27 21:54:54 smallfoot: http://developer.android.com/design/style/themes.html Jul 27 21:55:00 ollienx: use that on API 14+ when you need a context for the action bar otherwise creation your own ContextThemeWrapper for your theme Jul 27 21:55:00 Google talk had it, theres a screenshot Jul 27 21:55:02 Napalm, what you mean? Jul 27 21:55:16 smallfoot: i mean exactly what i said Jul 27 21:55:27 Napalm: I'm confused, how does this fix copy and paste showing the wrong icon? Jul 27 21:55:30 it just returns a context Jul 27 21:55:33 only API14+ has the dark actionbar theme Jul 27 21:55:42 Napalm, ah, I see, now I understand Jul 27 21:55:43 smallfoot: he means that Dark AB with Holo Light was implimented in 4.0 Jul 27 21:55:47 (api 14) Jul 27 21:55:49 I see, thanks Jul 27 21:56:01 ollienx: context is used to get the resources of your app Jul 27 21:56:10 Napalm: yes you are right but: http://i.imgur.com/KzvzaQM.png Jul 27 21:56:29 Well it seems Dark ActionBar is default for new projects of API level 14+ in Eclipse/ADT, but Google themselves don't seem to use it much, instead they use light actionbar, anyone know why? Jul 27 21:56:37 under: your using the wrong ListFragment.. use the support library one Jul 27 21:56:41 Because google chose not to Jul 27 21:56:51 You have the option not to use it, if you don't want to use it then don't Jul 27 21:56:58 I see Jul 27 21:57:01 I am unsure which to use... Jul 27 21:57:05 I prefer dark personally Jul 27 21:57:05 smallfoot: thats just showing you how you can use themes' its not "default" Jul 27 21:57:34 ollienx: when a action bar button is created it will lookup the default styles from the theme set on the context Jul 27 21:57:39 ok Jul 27 21:57:50 but I don't create the actionbar, it's created as part of stock android with edittexts Jul 27 21:57:56 arg Jul 27 21:58:06 I'm sorry, I don't quite understand Jul 27 21:58:20 the dialog is creating the actionmode Jul 27 21:58:36 Napalm: sorry? import android.app.ListFragment; isn't this the right one? Jul 27 21:58:37 the dialog edittext to be precise Jul 27 21:58:44 under: correct Jul 27 21:58:58 under: android.support.v4.app.ListFragment Jul 27 21:59:08 I can create swap partition from adb shell? Jul 27 21:59:11 so do I just run ActionBar.getThemedContext() within the creation of the dialog? Jul 27 21:59:24 try it Jul 27 21:59:26 and see Jul 27 21:59:58 okey doke Jul 27 22:01:06 Napalm: thanks. no errors now Jul 27 22:01:45 Napalm: didn't work Jul 27 22:02:20 then its a styles issue in your app Jul 27 22:02:44 I haven't edited the styles Jul 27 22:02:59 Can I programatically change the color of the ActionBar at runtime? Jul 27 22:03:30 Maybe I'm doing this in the wrong place, but I'm running getActionBar().getThemedContext(); right before I show the dialog Jul 27 22:03:33 is this incorrect? Jul 27 22:04:47 I appologize for the stupid questions, I'm rather new to android dev Jul 27 22:06:41 hmm i should get the damn fragments right Jul 27 22:06:50 gotta look into that stuff Jul 27 22:14:25 Napalm: no error but i get app crash..... Jul 27 22:23:21 I don't know whether to use Light or Dark ActionBar, or have some setting that user can switch between them Jul 27 22:29:13 hi Jul 27 22:48:43 Hey guys. I'm starting an activity with some extras which is not actually created but brought back from a previous "moveTaskToBack()". How can I get the extras of the offending intent? What function will be called? Jul 27 23:00:19 Should I have private methods in my Activity, or move them out as public methods to another class? Jul 27 23:03:55 smallfoot: depends Jul 27 23:04:03 huh? dark actionbar was in 3.0 Jul 27 23:04:16 i like to keep stuff that doesn't require android in a separate plain java library that makes it much easier to test/etc Jul 27 23:04:29 then just inject android specific things like logging/etc Jul 27 23:05:48 ditto Jul 27 23:07:55 hmm, can't wait to update qicr, there's so much I want to change about it Jul 27 23:08:16 like large notifications with live updating messages Jul 27 23:09:22 the switch to appcompat will be nice, too Jul 27 23:11:57 I want better channel navigation, too Jul 27 23:14:58 funkbox, I see... Jul 27 23:15:50 If my Activity have an Intent, is it possible to update/modify that Intent from another class? Jul 27 23:17:37 start activity again and getIntentw Jul 27 23:18:31 Because I need to update the Intent used by the ShareActionProvider, and that intent needs gets updated every second from another class Jul 27 23:18:49 huh Jul 27 23:18:58 sounds like you have the wrong idea Jul 27 23:19:05 Oh? Jul 27 23:19:32 why would it need to be updated every second Jul 27 23:19:37 Well everytime sometimes changes, I need to update the Intent, else it will share old stuff Jul 27 23:19:43 and from another class Jul 27 23:19:51 generate a new intent Jul 27 23:19:58 Technically it is not every second, it is everytime a user does a change, which can be several times a second Jul 27 23:20:28 if you create a new Intent, there is overhead, which is why I want to create the Intent just once, then update it when nescesary Jul 27 23:20:37 so generate the intent when they actually share Jul 27 23:20:46 I don't know how to do that, is that possible? Jul 27 23:20:51 pfn have you used the beta/alpha stuff in Play yet for your updates ? Jul 27 23:21:00 like Qicr Jul 27 23:21:25 g00s, not yet, I don't have any beta testers Jul 27 23:21:49 i had a few volunteers but getting them on groups was a stumbling block Jul 27 23:22:11 crop duster, construction worker, fire fighter … interesting users Jul 27 23:29:27 i've been thinking about using mono to get some of the business logic shared across WP/android/ios Jul 27 23:29:44 i want to set up an Air Quality Egg. fuck arizona and their shitty as reporting; every time the air get bad the airnow website reports 'no data' Jul 27 23:30:03 funkbox oh cool Jul 27 23:30:10 g00s: tried it? Jul 27 23:30:48 air egg: no; mono : no, but ron_frown may have some ideas Jul 27 23:31:29 the problem is then how to manage the 100kloc of existing code Jul 27 23:31:47 holy crap Jul 27 23:32:46 100kloc isn't really that massive Jul 27 23:32:58 that's across ios/android/wp Jul 27 23:36:00 loc of code? Jul 27 23:36:34 Xabster: http://en.wikipedia.org/wiki/Source_lines_of_code Jul 27 23:36:42 so, lines of code of code? Jul 27 23:37:13 Xabster: it's a measure of how much code there is and also accounting for brackets and stuff Jul 27 23:37:27 joke lost Jul 27 23:37:41 it was a bad joke and you should feel bad Jul 27 23:37:46 LOC = lines of code, loc of code is lines of code of code Jul 27 23:38:07 like PIN number is redundant Jul 27 23:38:17 that's not a joke, that's just tedious Jul 27 23:43:22 JavaScriptInterface cannot access properties? Only methods? Jul 27 23:44:54 pfn for channel navigation, what do you think you would do? a tree view (server/channel) ? Jul 27 23:45:18 seems ok for tablet especially landscape, to have that on the left Jul 27 23:46:16 looks like you have servers alone, and then channels as tabs Jul 27 23:46:29 who what? Jul 27 23:46:40 :) Jul 27 23:47:16 ron_frown funkbox is trying to have some cross platform mono thing between wp/android/ios Jul 27 23:47:37 you guys coding andorid irc client? Jul 27 23:48:02 pfn "0.01z" <-- wtf kind of build name is that Jul 27 23:48:29 yeah Jul 27 23:48:30 lol Jul 27 23:49:05 shared libraries COULD achieve that but monotouch/and mono for ios still use all the os frameworks etc Jul 27 23:49:47 JakeWharton: remember we were talking about local.properties? Google had to reassure some folk http://tools.android.com/recent/androidstudio022released :P Jul 27 23:50:00 What do I need to read to became an "expert" android developer? (Assuming I'm already an expert programmer) Jul 27 23:50:25 JakeWharton: also if you use Android Studio, it's not absolutely required anymore! Jul 27 23:51:06 deleet: yep. Fast turnaround time. I reported it Monday. Jul 27 23:51:14 nice Jul 27 23:51:20 gavilan2 i find it hard to believe, if you are an expert programmer, you are asking how to become an expert in X :P Jul 27 23:51:50 g00s: I want to know your opinion :) Jul 27 23:51:51 gavilan2 if you are expert in java, a lot of it will likely just make sense once you learn intricacies Jul 27 23:51:54 I quite like that they're updating Android Studio a lot more.. but switching to gradle when you have multiple submodules and etc is not trivial :/ Jul 27 23:52:05 if you know other languages, throw logic out the window and you'll be there quicker Jul 27 23:52:08 ron_frown: How to learn the intricacies then? Jul 27 23:54:24 god I wish java would just die like it should have >5yr ago Jul 27 23:54:43 its like that 105yr old whos been on life support the last 10 Jul 27 23:54:51 :) Jul 27 23:55:00 java 8 looks like its somewhat tolerable Jul 27 23:55:19 yeah Jul 27 23:55:28 I'd never use java on servers or desktops Jul 27 23:55:37 i dont care too much; i'll use whatever; but i have using a version of java (android) which is missing shit like nio.2 Jul 27 23:55:40 so that leaves mobile... how long before android picks up a remotely modern version of java =) Jul 27 23:57:07 4.x is still jse 6 right Jul 27 23:57:21 i was reading the other day one of the few techs that apple & google still use and collaborate on is llvm Jul 27 23:57:32 llvm & clang are the shit Jul 27 23:57:46 dvm just seems like … crap Jul 27 23:58:24 i always get the impression google doesn't want to invest in the java side of things much with android; seems like language support and dvm haven't really improved that much Jul 27 23:58:35 dvm has Jul 27 23:58:39 in all my porting Jul 27 23:58:40 dvm optimizations are pretty lame ? Jul 27 23:58:48 I've seen TONS of code being committed in dalvik Jul 27 23:58:54 lol dvm has gone through some massive stuff Jul 27 23:58:54 but still not updating java versions Jul 27 23:59:03 really. i'm amazed to see it still doesn't do pretty basic optimizations Jul 27 23:59:11 and its gc still sucks Jul 27 23:59:11 define basic Jul 27 23:59:22 theres just so much bullshit to have to worry about in android Jul 27 23:59:41 deleet like method call optimization Jul 27 23:59:52 in any other environment you'd say is it easier to write a c++ app or a java app Jul 27 23:59:57 everyone would say java Jul 28 00:00:07 I'd say c++/objc is way easier to achieve what you want Jul 28 00:00:14 because it's lame. Jul 28 00:00:17 everything is the same Jul 28 00:00:19 looks the same Jul 28 00:00:25 its all got curly brackets ! Jul 28 00:00:29 I like android for what it is, and being free etc Jul 28 00:00:35 "open" Jul 28 00:00:47 but god damn it there are too many fucking hoops to jump Jul 28 00:02:57 maybe in android 5 they'll replace java with something else haha Jul 28 00:03:01 yeah, not Jul 28 00:03:29 they'll never replace java Jul 28 00:03:37 too much already developed to simply throw away Jul 28 00:03:58 but I do wish they would dev a real production version of Qt5 for Android Jul 28 00:04:04 dev/release Jul 28 00:04:20 yeah, if c++ was a first class thing i would like that Jul 28 00:04:29 i'd use c++ / qt / qml Jul 28 00:04:32 ron_frown: how well does it work in pracice though? i know rdio does it but don't know what htey do etc.. Jul 28 00:04:34 onandroid Jul 28 00:04:48 g00s, yeah, hopefully Java 7, Java 8 or C# Jul 28 00:04:48 g00s: i hope they replace it with C# :) Jul 28 00:04:57 there's a beta version of Qt5 on Android but afaik it doens't do much Jul 28 00:04:58 acquire xamarin Jul 28 00:05:14 funkbox my honest opinion Jul 28 00:05:14 the mono vm is pretty amazing; it seems to me - far ahead of dvm Jul 28 00:05:29 if you are simply changing the language you write against the very same APIS Jul 28 00:05:36 there usually isnt a TON of it thats portable Jul 28 00:05:53 and 1000 for each dev for each mono platform Jul 28 00:05:54 I dont know Jul 28 00:05:57 I dont think its worth it Jul 28 00:06:03 wp8 also uses the portable apis Jul 28 00:06:11 which may or may not be compatible with mono Jul 28 00:06:22 I know they crippled the libraries for the portable framework Jul 28 00:06:34 Is there any library or thing to avoid nasty switch statements in if? things like starting an activity for a result, and then you have to demux with an integer, or creating a dialog, they seem awfull..... Jul 28 00:06:41 g00s - they just released mono 3.2 which has way more optimizations Jul 28 00:06:45 ron_frown: yeah, the licensing is a pain Jul 28 00:06:50 well, .NET have some standard libraries under System.* namespace, then Microsoft have some own libraries under Microsoft.* Jul 28 00:07:13 I am a big .net guy Jul 28 00:07:19 I'm very familliar with how all that stuff is setup Jul 28 00:07:23 M$ won't give third party access to their API's on wp8 Jul 28 00:07:36 .net itself is far far far superior language/platform to java Jul 28 00:07:40 deleet: third party? what do you mean? Jul 28 00:07:42 yeah, seems that way Jul 28 00:07:51 deleet can you run c++ apps? Jul 28 00:07:58 ron_frown: yep. i would really love C# (or fingers crossed may i have a unicorn as well please F# as first-class citizen) Jul 28 00:07:58 if nothing else Jul 28 00:08:06 monots AOT compilation is pretty nuts Jul 28 00:08:06 gavilan2: essentailly native apps presenting UI Jul 28 00:08:24 the other candidate is scala, but scala is too complex imho. i'd just be happy to get lambdas Jul 28 00:08:26 iirc they can't present any UI elements whatsoever so there's not much point Jul 28 00:08:28 deleet: I still don't understand what you mean..... Jul 28 00:08:53 funkbox: How good is the support for scala in Android? does google officially support it? and recommends it' Jul 28 00:08:55 ? Jul 28 00:09:02 gavilan2: he used "M$." that should be indication enough Jul 28 00:09:10 yup. Jul 28 00:09:22 gavilan2: IIRC scala works fine. some initial startup cost and lack of tooling but should work fine Jul 28 00:09:41 so what's the ultimate language for Android? :) Jul 28 00:09:45 C. Jul 28 00:09:51 C sux... Jul 28 00:09:54 nein. Jul 28 00:10:22 g2g Bye! Jul 28 00:10:30 c/c++ would take over if 1) there was a decent UI framework for it Jul 28 00:10:36 well, Qt Jul 28 00:10:38 and if you could run a C++ app as a c++ app Jul 28 00:10:44 i wonder if they might push go. Jul 28 00:10:52 I'd be down for that Jul 28 00:10:57 that's the only one I'd consider really, Qt is the only solid one out there Jul 28 00:10:59 me too Jul 28 00:11:04 qt is real fucking solid Jul 28 00:11:08 but what I've seen Jul 28 00:11:09 go can easily call into c libraries, right ? Jul 28 00:11:16 (but not the other way) Jul 28 00:11:31 qt /digia seems to want to capitalize on anything android related Jul 28 00:11:33 we shall see Jul 28 00:11:36 I wouldn't take Go tbh, that would seriously impact the quality of apps even more .. they picked java because it's 'accessible' Jul 28 00:11:49 as long as it's strong, static typing i'll take it Jul 28 00:11:54 java is just straight up crap Jul 28 00:12:03 and accessible in this specific case is what Jul 28 00:12:06 that there are dev tools? Jul 28 00:12:07 so people with jse jee etc can code on it.. now look at the # of people who code in Go Jul 28 00:12:13 ron_frown: it's okay. the tooling makes it much more bearable Jul 28 00:12:17 ron_frown: that a lot of people are familiar with Java Jul 28 00:12:17 because if thats the case... eclipse is fucking awesome. Jul 28 00:12:24 more than C++ tbh Jul 28 00:12:26 if they kept java up to date, improved dvm, and worked with oracle i'd be happier … anf jni went away i'd be mostly happy Jul 28 00:12:28 and by that I mean not so muhc Jul 28 00:12:34 g00s exactly Jul 28 00:12:36 eclipse fucking sucks lol Jul 28 00:12:41 there's a lot more language competition and i expect java to start moving faster Jul 28 00:12:44 g00s: jni has it's usages Jul 28 00:12:45 jni is a huge pile Jul 28 00:12:56 that makes android platform shit like 1000 more complicated Jul 28 00:12:56 but even I'm replacing it with IPC now Jul 28 00:13:01 jni is set to be replaced in java 8 or 9 also Jul 28 00:13:13 JNI , when it first came out, was such a steaming pile Jul 28 00:13:19 it had so many bugs - and sun didn't give a shit Jul 28 00:13:20 still is.. Jul 28 00:13:24 I dont know how many people outside romain and a few others here do platform dev Jul 28 00:13:31 but I'd say the codebase is a mess Jul 28 00:13:37 not really Jul 28 00:13:40 not saying its shit code Jul 28 00:13:41 just a mess Jul 28 00:13:57 it's a bit jumbled true.. but not a mess, no Jul 28 00:14:07 ron_frown i really wonder; with android 5 - if they are going to split android into "profiles" for low power devices, etc Jul 28 00:14:16 g00s: why ? Jul 28 00:14:29 it's actually very well logically organized and I like a lot of the things they did Jul 28 00:14:34 android as it is - isn't so good on modest HW Jul 28 00:14:38 I dont Jul 28 00:14:54 thats why gingerbread was around for so long Jul 28 00:14:57 I've ported android to several bits of hardware, and added tons of functionality in my own little fork Jul 28 00:15:05 and I gotta say Jul 28 00:15:09 its like pulling teeth Jul 28 00:15:21 well, what parts of the framework? the hw interfacing part I don't know Jul 28 00:15:28 that stuff aint bad Jul 28 00:15:29 i always thought android was dev-friendly and high quality code Jul 28 00:15:35 because the hardware specific stuff was just linux +) Jul 28 00:15:40 but platform I find it to be fairly decent Jul 28 00:15:43 typical for linux kernel dev Jul 28 00:15:46 etc Jul 28 00:15:57 what parts of the platform did you not like? Jul 28 00:15:58 watch how network service shit works Jul 28 00:15:59 ron_frown: at least it wasn't windows kernel stuff Jul 28 00:16:10 a MILLION broadcast intents and broadcast recievers Jul 28 00:16:11 ah, well, networking is hardware :P Jul 28 00:16:25 a lot of the time broadcasting for all intents and purposes to itself Jul 28 00:16:31 * funkbox still has nightmares of 10,0000-line undocomented C functions Jul 28 00:16:33 because communicating with the hw interface is all async iirc Jul 28 00:16:33 sure other stuff can intercept Jul 28 00:16:59 and of the gui server shit is a mess Jul 28 00:17:04 SystemUI Jul 28 00:17:08 http://stackoverflow.com/a/6271637/229631 - is there a neater solution for handling click events in Fragments? Jul 28 00:17:16 I dont know Jul 28 00:17:33 then the fact that I could *NEVER* get eclipse or intellij working reliably for platform dev Jul 28 00:17:39 made shit like 100x worse Jul 28 00:17:44 I could get it to compile sometimes Jul 28 00:17:49 never ever debug Jul 28 00:17:49 voltagex: I just get the view itself and add individual click listeners. that's a stupid method imo. Jul 28 00:18:19 fastboot worked well, but adb sync didnt work half the time Jul 28 00:18:28 voltagex: what's wrong with this: http://pastie.org/private/tmhgggz9rvv1exyz2liw Jul 28 00:18:31 so it was like flash device, test Jul 28 00:18:42 fastboot Jul 28 00:18:46 reboot Jul 28 00:19:03 that was probably shit I could have solved and not necessarily affiliated with a "bad codebase" Jul 28 00:19:10 infact not at all Jul 28 00:19:13 you should really go bug romainguy for his config/setup Jul 28 00:19:26 nah hes got better shit to worry about Jul 28 00:19:35 deleet: yeah, just used to declaring events away from code (I'm a C#/ASP.NET coder by day) Jul 28 00:19:50 deleet: so declaring onclick in XML makes more sense to me Jul 28 00:20:05 you can't do that with fragments and, imo, you shouldn't Jul 28 00:20:10 layout is layout, not actions. Jul 28 00:20:10 voltagex Id say there was a time that made some sense Jul 28 00:20:14 but not so much anymore Jul 28 00:20:35 logic goes in the fragment class because that's the logical component, not the layout file Jul 28 00:20:50 also that can go kaput very fast when you reuse the layout for different fragments Jul 28 00:21:31 but this also means doing a getViewById for all controls Jul 28 00:21:50 if you do it once per layout, that's cheap (in fact it's cached iirc) Jul 28 00:21:52 my hardware doesnt have a ton of aftermarket developer requirements, and if it did, it'd be the type of industry where we could build apis and require epople to dev with those Jul 28 00:22:00 I'm very tempted to jump android ship Jul 28 00:22:03 I dont know Jul 28 00:22:09 eh. and go where Jul 28 00:22:10 android is awesome Jul 28 00:22:11 ios? lol. Jul 28 00:22:19 wp8? haha I pity the fool Jul 28 00:22:19 deleet - build my own Jul 28 00:22:31 thats what I am saying Jul 28 00:22:32 yes but based off of something, no? Jul 28 00:22:56 linux+qt or linux+cairo+whatever Jul 28 00:23:00 we now also have ubuntu os and firefox os.. both completely retarded Jul 28 00:23:07 however, there is Tizen.. Jul 28 00:23:08 ubuntu os imo had potential Jul 28 00:23:20 but sounds like they are trying to close it down for oems Jul 28 00:23:27 and tizen has really fucked licensing afaik Jul 28 00:23:33 I am tempted to jump the Android ship too, I think Android sucks. Java 6 is legacy, its a shitty language compared to C# on .NET. Eclipse/IntellJ is shitty compared to Visual Studio. The emulator is slow as shit hell. Debugging is not easy. Error messages aren't the best. Jul 28 00:23:43 i seem to recal one of the devs of tizen basically blasting the licnsing Jul 28 00:23:46 smallfoot: use the x86 emu Jul 28 00:23:48 I am not going to iOS though... Jul 28 00:23:50 + intel haxm Jul 28 00:23:59 it's actually faster than my tegra3 tablet. Jul 28 00:24:01 deleet, I've tried the x86 emu with and without haxm, and its still slow as shit Jul 28 00:24:07 oh Jul 28 00:24:13 smallfoot that could be a problem Jul 28 00:24:16 what os Jul 28 00:24:20 Windows 7 Jul 28 00:24:26 my mac did that and it was because it wasnt actually loading haxm extensions Jul 28 00:24:37 What is this licensing thing you speak of about in Tizen? Jul 28 00:24:52 well.. I have a hackintosh with a 3770k and 32gb of ram .. emulator speed is not the problem Jul 28 00:25:05 smallfoot - there was a clause something along the lines that usages of the platform must be approved and people involved in that process were samsung employees or something Jul 28 00:25:08 something random ass like that Jul 28 00:25:23 ron_frown: I can probably get you that approval Jul 28 00:25:24 Apple's attitude makes me not even want a hackintosh Jul 28 00:25:30 how so Jul 28 00:25:34 deleet you work on tizen? Jul 28 00:25:37 I know people ;P Jul 28 00:25:40 not myself, no Jul 28 00:25:44 ron_frown, wow, really weird license clause Jul 28 00:25:51 smallfoot dont quote me on that Jul 28 00:25:55 I evaluated the platform a bit ago Jul 28 00:26:10 I think they're waiting to officially launch first Jul 28 00:26:13 then they'll soften uo Jul 28 00:26:14 *up Jul 28 00:26:16 but I recall people involved, basically telling me "dont bother porting to your hardware, very unlikely you'd ever get away with it" Jul 28 00:26:28 I'm just gonna build my own shit Jul 28 00:26:29 mit it Jul 28 00:26:36 and start out with proper language support from the get go Jul 28 00:26:45 well if you do, imo, C++ / Qt5 is the way to go Jul 28 00:26:58 solid support/community and you can do w/e you want fairly easily Jul 28 00:27:17 my company did this before with Qt4(?) and Qtopia Jul 28 00:27:28 yeah plusit already has that slightly slower but easy to build model and faster native mode Jul 28 00:27:34 qtquick isnt really all that slow Jul 28 00:27:39 but super easy to build apps with Jul 28 00:27:42 no, not really. and it's very easy to use Jul 28 00:28:04 personally I'd honestly want it to not be so much about language Jul 28 00:28:09 when it came out origianlly like 2 yrs ago it was quirky .. but now it's very good Jul 28 00:28:15 like windows, fuck you can build an app in whatever the hell you want Jul 28 00:28:21 why cant that be the case here Jul 28 00:28:58 because embbeded devices don't carry around high end cpus :P Jul 28 00:29:02 so? Jul 28 00:29:21 so that whole 'base' has a high entry cost to allow you to run anything you want Jul 28 00:29:23 you build a super lightweight ui toolkit Jul 28 00:29:33 and then do something like waht nacl portable client does Jul 28 00:29:39 with portable binaries Jul 28 00:30:07 there are lots of options Jul 28 00:30:08 nah, I would take a different approach, apt packaging/npm/dependency style Jul 28 00:30:17 if you want to install something, install it's requirements first Jul 28 00:30:20 I think that would honestly be even better Jul 28 00:30:30 but that doesnt really affect what Iw as saying Jul 28 00:30:34 it does Jul 28 00:30:38 thats more just package management and dependency management Jul 28 00:30:51 it'd def be a hell of a lot easier to maintain Jul 28 00:31:03 because then your ui toolkit is never stale.. you can change it up, improve it as needed Jul 28 00:31:07 every minor os ver I basically start from scratch cherry picking changes over from my previous shit Jul 28 00:31:15 deleet totally Jul 28 00:31:33 I'd just start from scratch with skia or cairo and be done with it Jul 28 00:31:41 meh, I had a shitload of ideas when I was considering building an OS for fun Jul 28 00:31:42 I really like qt and the fact they've already done all the dirty work Jul 28 00:31:59 deleet what do you think about ubuntu phone? since they are c++ / qt Jul 28 00:32:01 but I wish it was more a generic toolkit than a dev platform Jul 28 00:32:30 g00s: useless tbh, as with anything from canonical Jul 28 00:32:39 :( Jul 28 00:32:51 one thing I think is funny across the board atm Jul 28 00:32:59 everyone is desperately struggling with the next ui concept Jul 28 00:33:03 which I do think is important Jul 28 00:33:12 I find it hilarious that everyone thinks Android is broken etc etc.. but all these OS' run Android apps. Jul 28 00:33:19 you know why Jul 28 00:33:19 fucking hipocrites Jul 28 00:33:25 adoption Jul 28 00:33:28 because they get instant app ecosystem Jul 28 00:33:31 yeah. Jul 28 00:33:46 but bb10 for example Jul 28 00:33:52 anything native = doesnt work Jul 28 00:33:58 nice Jul 28 00:34:02 I liked the bb10 native shit Jul 28 00:34:02 that's like, any non-trivial app Jul 28 00:34:10 to be fair Jul 28 00:34:24 apis and shit I've seen almost looked like they were... like preview or beta Jul 28 00:34:25 I don't know bb10 apis, just their android support Jul 28 00:34:32 and it was sad. Jul 28 00:34:45 a half assed attempt to sell more phones basically Jul 28 00:34:54 yep Jul 28 00:35:03 desparate attempt to gain back any amount of market share Jul 28 00:35:38 desperation is a strong keyword in that company atm Jul 28 00:35:49 but firefox and ubuntu are the same story Jul 28 00:36:03 ff os has improved in speed Jul 28 00:36:09 I don't know what they're trying to fix in the first place Jul 28 00:36:21 but the idea of js and html as apps still makes my skin crawl Jul 28 00:36:33 well, like I said, accessibility Jul 28 00:36:35 even html as a ui toolkit and not js would be reasonable imo Jul 28 00:36:43 any 15 year old can code html these days Jul 28 00:36:45 ff's xul stuff was even worth while Jul 28 00:36:56 so that's a very large dev pool Jul 28 00:37:32 the problem is that the limitations are obvious and painstalkingly so.. but getting the dev pool seems to be more important Jul 28 00:37:38 I've got a couple projects on my plate now Jul 28 00:37:40 unrelated to os dev Jul 28 00:37:50 but I really seriously think thats going to be next in the queue Jul 28 00:38:10 well, if you do, lmk, I'd love to contribute Jul 28 00:38:19 awe man, im coding in my element now.. im in the zone.. oh yea baby. yeah! Jul 28 00:38:32 * Napalm listening to http://www.youtube.com/watch?v=-SQqHiw9J-M Jul 28 00:38:34 Napalm so in the zone you're AFK ! Jul 28 00:38:37 much better than coding this fucking event app that no one goddamn uses Jul 28 00:38:46 pisses me off to no end .. so much effort, no usage Jul 28 00:39:08 big crowds like that scare me Jul 28 00:39:35 Hey guys, I don't know if this is the right place to ask but I'm trying to register for a Google Play Developer account, and it fails. Support requires the transaction number from this process, so I don't know where else to ask. Does anyone know what I can do? Jul 28 00:39:51 another thing i hope they fix soon is this dvm 65k method limit bullshit Jul 28 00:39:59 i mean, wtf! Jul 28 00:40:05 what is that g00s? Jul 28 00:40:41 that sounds like a 32bit limitation Jul 28 00:41:11 its a 16bit integer limitation Jul 28 00:41:22 hehe Jul 28 00:41:30 pkg.cls.method? Jul 28 00:43:05 g00s: have you seen android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html Jul 28 00:43:23 yeah, its a pain Jul 28 00:43:33 also, it may even go against Play TOS as of recently Jul 28 00:43:58 you'll prob have to bundle it with assets but you can do it Jul 28 00:44:42 deleet https://code.google.com/p/android/issues/detail?id=40409 Jul 28 00:45:06 oh wait, this may be different Jul 28 00:46:01 yeah, I've used jumbo before with no problems Jul 28 00:47:24 my macbook pro battery is so swolen I can click my track pad =) Jul 28 00:47:30 good thing I got a new one on its way Jul 28 00:47:36 mistaaaake Jul 28 00:47:46 why not wait for the new rmbps Jul 28 00:47:56 ? Jul 28 00:48:04 new battery Jul 28 00:48:07 not new macbook Jul 28 00:48:07 oh Jul 28 00:48:10 I thought new mb Jul 28 00:48:11 I wont be buying another mac Jul 28 00:48:17 I like mac os and what a mac is generally Jul 28 00:48:20 I will, rather, my company will :D Jul 28 00:48:31 but dont support this push into locked down software ecosystems etc Jul 28 00:48:32 since I didn't buy my first one either Jul 28 00:48:44 well, tbh, for dev it's just the best by far Jul 28 00:48:59 linux has too many issues and windows is just fucking windows Jul 28 00:49:03 Mine isnt a a retina ascreen Jul 28 00:49:16 so that may now be fixed Jul 28 00:49:20 ah, mine isn't either, I have an early 2011 17" Jul 28 00:49:23 but I hate the shitty screen realestate on my mac Jul 28 00:49:36 ron_frown i think my battery is going soon too; my touch pad started going nuts. how much did yours cost ? Jul 28 00:49:36 theres no way to shrink ui Jul 28 00:49:37 but I still get 1920x1200 Jul 28 00:49:42 29bucks Jul 28 00:49:45 * ron_frown thrusts Jul 28 00:49:49 nice Jul 28 00:49:51 hm Jul 28 00:49:53 its not oem, but its waranted Jul 28 00:49:59 oh haha Jul 28 00:50:01 clearly a business expense Jul 28 00:50:03 fuck that Jul 28 00:50:11 there are genuine ones for like 59 Jul 28 00:50:15 not terrible Jul 28 00:50:22 I have insurance on my laptop Jul 28 00:50:29 lithium batteries make me nervous Jul 28 00:50:45 and if the battery fucks my lappy up worse... I'll just file a claim and get a brand spankin new one Jul 28 00:51:00 if the battery fucks up, your house could burn down :( Jul 28 00:51:16 i'd spend the extra money to get a good li battery Jul 28 00:51:26 li fires are super toxis nasty Jul 28 00:51:32 "hi I'd like to file a claim.. my laptopt burst into flames.. so I'll need a new city, thanks" Jul 28 00:53:06 maybe that is what detroit should have done Jul 28 00:53:55 my policy is just for replacement of the laptop Jul 28 00:54:10 I was going to file a claim just now, but for a battery seems like bs Jul 28 00:54:15 I dont roll like that Jul 28 00:54:26 was it under warranty ? Jul 28 00:54:34 nah Jul 28 00:55:03 mines a 2009 or 2010 or something Jul 28 00:55:08 def not one of the latest ones Jul 28 00:55:11 yeah me too :( Jul 28 00:55:31 I think linux on the desktop has gotten LEAPS AND BOUNDS better than it was even 2yr ago Jul 28 00:55:43 and I think with wayland and mir rihgt around the corner for being really viable Jul 28 00:55:52 I'd rather go linux Jul 28 00:55:55 i think ubuntu phone is using mir Jul 28 00:55:58 yeah it is Jul 28 00:57:05 honestly mint really impressed me Jul 28 00:57:15 felt like exactly what linux should be Jul 28 00:57:20 clean consistent system UI Jul 28 00:57:25 fast as shit Jul 28 00:58:23 i stopped using linux because it was eating up my time Jul 28 00:58:29 but yeah, linux ftw Jul 28 00:59:32 hi guys, eclipse is giving me an error that I don't really understand... "the method append(string) is undefined for the type chararraybuffer" Jul 28 00:59:33 I haven't tried mint Jul 28 00:59:54 i'm looking at the docs, and that method is right here: http://developer.android.com/reference/org/apache/http/util/CharArrayBuffer.html#append%28java.lang.String%29 Jul 28 01:00:01 Im not a linux fanboi Jul 28 01:00:07 I just htink its come a long long way Jul 28 01:00:16 do I need to import java.lang.string or something? Jul 28 01:00:49 freshprince: just use new String(chararray).append()? Jul 28 01:01:07 er, chararray.buffer() Jul 28 01:01:24 or stringbuilder if you're doing lots of thosel Jul 28 01:01:29 this is the line thats choking it: showTextBuf.append(showText); Jul 28 01:01:47 and showText is a string that I just built, and showTextBuf is a CharArrayBuffer that I initialized on the prev line Jul 28 01:01:53 use a StringBuilder instead Jul 28 01:02:16 what is that Jul 28 01:02:22 http://developer.android.com/reference/java/lang/StringBuilder.html Jul 28 01:03:08 then if you want a chararray after that, use http://developer.android.com/reference/java/lang/StringBuilder.html#getChars(int, int, char[], int) Jul 28 01:03:09 I mean my string is all set.. I just want to put it into a chararraybuffer so that I can do a textview.settext with it Jul 28 01:03:23 you can do textview.settext with a regular String Jul 28 01:03:35 it'll be converted down to a Char[] and applied Jul 28 01:04:01 or CharSequence rather Jul 28 01:04:10 oh shit you're right... I was trying to use the instantiation with the (string, 0, string.length()) ... thank you very much Jul 28 01:04:17 p Jul 28 01:04:18 np Jul 28 01:05:12 hey guys, anyone here who got a flip case for their phone? Jul 28 01:09:18 lol why is the video camera of my s4 nexus constantly blurry Jul 28 01:09:49 acidjazz: tap the screen and it will focus on that point Jul 28 01:10:22 that only works during camera mode Jul 28 01:10:25 not video mode Jul 28 01:10:29 i tried focusing in camera then switching.. nope Jul 28 01:10:34 interesting Jul 28 01:10:45 sounds like an app might have changed the focus and the default app doesnt reset it Jul 28 01:10:58 restart device? Jul 28 01:12:55 damn, my project only has 31k loc.. it feels so big Jul 28 01:13:12 android is like that :D Jul 28 01:13:28 idk what's the 'standard' for a sole dev, 31k seems like a lot Jul 28 01:13:44 deleet: restarted Jul 28 01:13:54 Napalm: 0 apps that touch camera installed.. pretty fresh .. unboxed last night Jul 28 01:14:04 i googled this and it seems common Jul 28 01:14:06 as of last month Jul 28 01:14:18 did you take all the plastics out of the back :D Jul 28 01:14:24 LOL Jul 28 01:14:48 acidjazz: why dont you make a quick app or download an app that lets you play with the focus and see Jul 28 01:15:12 its probably a S4 hardware specific issue that the pure-nexus firmware doesnt account for Jul 28 01:15:15 afaik the N4 doesn't do autofocus when recording video so it may just be off by default Jul 28 01:15:25 if that's the case, seems like a software issue Jul 28 01:20:38 whats the next good phone? Nexus 5 or Motorola X or something else? Jul 28 01:21:24 hard to know since none of those are out Jul 28 01:21:26 :D Jul 28 01:21:40 i think the nexus 6 will be better than the nexus 5, imho Jul 28 01:21:48 Moto X is hyped, but i'm skeptic to anything thats not a Nexus Jul 28 01:21:52 my system clock is telling me, that time is going backwards o.O Jul 28 01:21:58 The moto x2 will be epic I hear Jul 28 01:22:06 Nexus 4 was a disappointment, due to its iphone-fragile Jul 28 01:22:14 yeah, so its nexus 6 vs x2 Jul 28 01:22:31 smallfoot: I've been using the nexus 4 without any case for a while now Jul 28 01:22:36 oh Jul 28 01:22:38 or the htc Two Jul 28 01:22:41 only thing I have is a drand sticker on the back Jul 28 01:22:43 glass back scares me Jul 28 01:22:46 dbrand* Jul 28 01:22:49 dbrand? Jul 28 01:23:17 I've dropped it once and I have a small dent on the metal rim where it clipped the edge of my desk's metal footing Jul 28 01:23:54 http://lmgtfy.com/?q=dbrand Jul 28 01:24:19 I got tired of using a case, it made the N4 feel fat Jul 28 01:29:13 AlCapwn: i got a flip case for my n4 Jul 28 01:29:27 and im pretty happy about that Jul 28 01:29:36 i just dont like scratches Jul 28 01:30:05 only thing that bothered me for quite some time now, was the fact that it didnt turn the screen on upon flipping it open Jul 28 01:30:10 fixed that tonight Jul 28 01:30:34 but i gotta change the reaction time of that service a bit, its too fast in game mode ^^ Jul 28 01:30:38 one of the reasons I got the dbrand back cover is because if the back glass cracks, I won't know about it :P Jul 28 01:30:48 I don't want to know until I need to Jul 28 01:31:28 mine isnt cracked yet, im damn sure about that :D Jul 28 01:32:08 the case I had was nice, but it made single handed use difficult Jul 28 01:32:11 a bigger issue on my nexus s4.. im not getting results trying to draw on canvas in a webview.. in my logcat under tag WebViewInputDispatcher i get "blockWebkitDraw" (in block) and then a 2nd one same line but with "lockedtrue" at the end.. any wya i can unlock this? Jul 28 01:32:20 nexus lg 4 works 100% great Jul 28 01:33:24 okay the proximity sensor of the n4 is pretty damn bad i gotta say Jul 28 01:33:30 acidjazz: your trying to draw the canvas of your webview? that doesnt sound like a good idea at all Jul 28 01:33:31 its just a near and far sensor Jul 28 01:34:04 acidjazz: wrap your view in a viewgroup and do it after it draws its children Jul 28 01:34:49 well an additional nice option :D i can lock my phone by swiping across Jul 28 01:35:03 display will be on but its locked :D Jul 28 01:35:06 fun stuf Jul 28 01:35:08 +f Jul 28 01:38:14 Napalm: hmm Jul 28 01:38:34 Napalm: what about the road of trying to unlock this draw? Jul 28 01:38:52 your not Jul 28 01:40:11 ok Jul 28 01:47:49 does the nexus 10 emulation have issues? Jul 28 01:56:20 what's the proper way to interact with a Switch? onClick doesn't really behave as expected Jul 28 02:01:11 http://developer.android.com/guide/topics/ui/controls/togglebutton.html Jul 28 02:01:23 voltagex: should be as declared in the above Jul 28 02:17:04 Android sucks, you can't even had a number picker in a PreferencesFragment without creating custom controls Jul 28 02:22:55 I hope soon gets released x86 version of android 4.3 too Jul 28 02:29:52 hmm...why can't my app open a socket when running in a restricted user profile? Jul 28 02:29:59 Chrome works fine :s Jul 28 02:32:31 maybe cuz its running in restricted mode Jul 28 02:32:50 karlsve: yes, I've declared it like that Jul 28 02:33:24 karlsve: but the "swipe" isn't detected, and only tapping the toggle works, and doesn't change the visual state of it. Jul 28 02:33:48 smallfoot: I don't see any documentation saying sockets are disabled, if it were, I wouldnt expect chrome to work either Jul 28 02:33:56 oh, onCheckedChange Jul 28 02:35:06 hi Jul 28 02:35:51 AlCapwn, I can imagine chrome being a web browser gets special treatment Jul 28 02:36:18 or that only port 80 and 443 (HTTPS) works Jul 28 02:37:24 that wouldn't work, there's no guarentee a web server is running on either of those ports Jul 28 02:37:42 More investigating to be done tomorrow Jul 28 02:37:49 Gnight for now Jul 28 02:38:42 99,999999% of all web servers run on port 80 Jul 28 02:43:33 how I just wish Android ran C# on .NET Jul 28 02:43:36 java 6 is so shitty Jul 28 02:44:32 Java had nicely licensed chunk of code that could be quickly reused (and even then, it still brought a lawsuit - .NET would invite a harder one) Jul 28 02:44:38 EOT Jul 28 02:45:06 well all the android smartphone manufacturers are still paying Microsoft Jul 28 02:45:14 Microsoft is making more money on Android than on Windows Phone Jul 28 02:46:08 smallfoot: that's however due to other licensing issues, not ones related to DVM itself Jul 28 02:46:20 idk Jul 28 02:46:41 (and more related to USPTO rubberstamping apparently every application that comes in) Jul 28 02:47:03 I think Microsoft published most of C# and .NET as ECMA standards anyways Jul 28 02:47:37 as a developer, I just feel C#, .NET, Visual Studio would be so much easier, faster to develop and nicer than having to use Java 6, and Eclipse Jul 28 02:48:05 smallfoot: not most of it. And pretty sure that if it came to deal with something as widespread as android instead of Mono, the situation would change *fast* Jul 28 02:48:32 also, they needed a portable environment, so Visual Studio, and most of .NET post 2.0 would be out Jul 28 02:48:49 ok, maybe you'd get 3.0 Jul 28 02:48:51 I wish Google could at least update to Java 7 from Java 6, and update to ADT to use Eclipse 4.3 instead of 3.6 Jul 28 02:49:01 smallfoot: Java 7 got ... interesting licensing changes Jul 28 02:49:09 oh :( Jul 28 02:49:14 didnt know Jul 28 02:49:20 so we're stuck with shitty ass Java 6 Jul 28 02:49:43 smallfoot: well, maybe something will happen. Meanwhile, anything that *runs* on JVM v6 is still good Jul 28 02:50:28 anyway, I am going to try get some sleep Jul 28 02:50:30 afk Jul 28 02:50:49 but Java 6 isn't fun to code in, its much more code than C# / .NET, and cumbersome properties and no using() for stuff like files Jul 28 02:51:01 and why they using Eclipse 3.6 instead of 4.3? Jul 28 02:52:42 but you can use ADT with 4.3 Jul 28 02:52:49 just install vanilla eclipse and the plugin Jul 28 02:52:52 I see, didn't know Jul 28 02:53:07 because I downloaded the complete ADT package from google android website Jul 28 02:53:23 I don't know why they don't use latest Eclipse for ADT Jul 28 02:54:47 smallfoot: Well, I recommend using IntelliJ anyway :> Jul 28 02:55:23 I'm new to Android development, so I need the IDE everyone else is using, so I can read guides Jul 28 02:57:09 well, true. Ok, now truly going off. Cya **** ENDING LOGGING AT Sun Jul 28 02:59:58 2013