**** BEGIN LOGGING AT Sun Nov 09 03:00:00 2014 Nov 09 03:05:15 pretty good tut on RecyclerView LayoutManager http://wiresareobsolete.com/2014/09/building-a-recyclerview-layoutmanager-part-1/ Nov 09 03:05:29 i wonder if 84.08MB of memory is ok for an app Nov 09 03:05:43 i've read a few of Daves's tutorials, they are top notch Nov 09 03:06:14 cliffreich hello world: no; solving the answer to the universe, sure Nov 09 03:07:39 g00s it's the app i posted on reddit the other day Nov 09 03:07:54 this says Memory Avg 46.53MB Nov 09 03:07:54 thou Nov 09 03:07:56 hey g00s Nov 09 03:07:59 hey Napalm Nov 09 03:08:24 what are you up to ? Nov 09 03:08:35 nothing much Nov 09 03:09:01 Napalm hows the book on recyclerview coming :P Nov 09 03:09:25 nothing yet Nov 09 03:09:28 lol Nov 09 03:09:29 rats Nov 09 03:14:10 Hello, Is this the proper way to write an Android.mk file that links the C++ library "SDL2" and links my projects C++ files? : http://hastebin.com/yacajuronu.avrasm Nov 09 03:15:02 I believe I need to add "-lSDL2" to line 38 but I wanted to see what you guys think. Nov 09 03:18:36 Hmm. My Hudl 2 is running the old Google Play. Nov 09 03:18:43 When I tap the build number, it says it's up to date. Nov 09 03:18:43 Weird. Nov 09 03:18:48 It's the non-material one. Nov 09 03:20:17 TacticalJoke: When did you power it on last? Nov 09 03:20:38 Just today. Nov 09 03:20:48 How long ago today? Nov 09 03:21:06 Around nine hours ago. Nov 09 03:21:10 I'll turn it off and on... Nov 09 03:21:25 Eh, I notice play store will update when I forget the device is on Nov 09 03:21:30 So just forget about it :D Nov 09 03:21:47 Foggettaboutit. Nov 09 03:22:40 If I tap "Build version" quickly, I can make multiple alert dialogs appear. Nov 09 03:22:55 A lot of Google apps have this "feature". Nov 09 03:23:15 Anyway. Yeah, I'll just wait. Nov 09 03:27:14 hey folks I am getting an error when I launch ADT (eclipse) saying "This Android SDK requires Android Developer Toolkit version 23.0.0 or above. Then I try to hit check for updates and it says no update found Nov 09 03:27:35 Is there a way to "Completely" disable proguard? Nov 09 03:27:39 100% off. Nov 09 03:27:40 None. Nov 09 03:29:44 will this work to make my app compatible with most devices? last time galaxy S4 wasnt compatible... android:anyDensity="true" plus android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" Nov 09 03:32:45 WACOMalt: Are you using the Android-Eclipse bundle or standalone Eclipse with ADT installed manually? Nov 09 03:32:55 the bundle Nov 09 03:33:04 but I already gave up and started redonwloading the full bundle :/ Nov 09 03:33:13 WACOMalt: The bundle sucks. Nov 09 03:33:22 Get Eclipse Luna, and use the ADT plugin. Way better. Nov 09 03:33:24 Why is that? Nov 09 03:33:36 The Bundle is, I think, a two-year-old version of Eclipse. Nov 09 03:33:38 It's just awful. Nov 09 03:33:52 ah lame Nov 09 03:33:53 Plus, you get annoying issues such as yours with the bundle. Not with standalone Eclipse. Nov 09 03:34:18 (Well, you can get similar issues, but with standalone Eclipse they're easy to figure out.) Nov 09 03:34:24 kk Nov 09 03:34:29 I'll follow your advice Nov 09 03:34:39 I think they even downported the bundle to an **even older** version a while back. Nov 09 03:34:42 Because of some bug. Nov 09 03:37:20 TacticalJoke, what is your oppinions of Android STudio? Nov 09 03:37:39 It has potential, but it currently lacks stuff I need (such as JVM unit testing). Nov 09 03:37:49 It's also way, way slower than Eclipse on here. Nov 09 03:37:53 gotcha Nov 09 03:38:00 where do I download just the ADT plugin? Nov 09 03:38:02 Most people recommend it, though. So I'unno. Nov 09 03:38:10 I can only find bundle or SDK. is it just the SDK? Nov 09 03:38:28 oh yes now S4 supported Nov 09 03:38:38 http://developer.android.com/sdk/installing/installing-adt.html Nov 09 03:38:43 You install it via Eclipse. Nov 09 03:38:47 ah gotcha Nov 09 03:42:22 now to fight my way through getting this project to open lol. I hat epicking up someone else's project Nov 09 04:14:17 What do you folks think about reading a SharedPreferences on the UI thread? Nov 09 04:16:24 ok Nov 09 04:21:31 TacticalJoke: I've had no issue doing that Nov 09 04:36:52 Hey guys, I was looking on sockets for android, and was wanting to do file transfers, someone told me about channels. I don't understand this, and I seriously can't find any tutorials with it being used. I only found it on android developer website and there is barely tells me anything. Nov 09 04:37:33 Demon_Jester: your searching for the wrong thing, google for: java nio Nov 09 04:37:36 WACOMalt: Did you ever get your problem fixed Nov 09 04:37:49 napalm ok I will look into it. Nov 09 04:38:13 Demon_Jester: this looks like a good Tut for your needs http://rox-xmlrpc.sourceforge.net/niotut/ Nov 09 04:38:41 afaik, android doesn't have NIO 2, so it won't have async networking Nov 09 04:40:10 Mallot1, yes, but no :P Nov 09 04:40:15 started from scratch Nov 09 04:40:15 g00s well I mean I want to transfer files, like have a list of files from the remote host and I select one to transfer. Nov 09 04:41:26 also don't forget about downloadmanager, but maybe you want to upload also Nov 09 04:41:28 WACOMalt: Alright, let me know if you need any help. I have used Android Studio and Eclipse. I found that you should setup the Android ADT with your own Eclipse IDE from eclipse.com rather than Google's Version. Nov 09 04:41:57 g00s that too I was also wanting to transfer from my android to my remote host.. I will look into it. Nov 09 04:42:45 so, I'm trying to use this project https://code.google.com/p/perl-android-apk/, in my project. and I am getting this error: Nov 09 04:42:45 Archive for required library: 'libs/armeabi/libcom_googlecode_android_scripting_Exec.so' in project 'PerlAPK' cannot be read or is not a valid ZIP file. Nov 09 04:43:02 I'm not actually sure how to include the zip file it's looking for Nov 09 04:44:57 as I recall you need to make a zip of your libs/ dir Nov 09 04:45:08 but it's been ~6-8 months since I've done NDK+Gradle Nov 09 04:45:21 so that's a pretty hazy memory Nov 09 04:46:08 well, thanks for the idea Nov 09 04:51:07 WACOMalt: did you look in the perl and perl-build directories of the project.. it has a create_zips.sh script Nov 09 04:51:43 WACOMalt: and instructions in COMPILING to build perl Nov 09 04:51:52 looks like you'll need the NDK installed Nov 09 04:52:00 also looks like I need linux :/ Nov 09 04:52:27 <[Saint]> Everyone does. Nov 09 04:52:29 I dont see that Nov 09 04:52:34 .sh Nov 09 04:52:38 read the content of the script Nov 09 04:52:42 it just zips up 3 folders Nov 09 04:52:47 which you can do by hand if you want Nov 09 04:53:00 I amah Nov 09 04:53:04 ah Nov 09 04:53:20 and the zips alreay exist. do I just need to add those zips to my build path? Nov 09 04:53:39 no Nov 09 04:53:46 <[Saint]> FWIW .sh!=linux Nov 09 04:53:52 they go into the assets folder of your project probably Nov 09 04:55:16 WACOMalt: see https://code.google.com/p/perl-android-apk/source/browse/apk/src/com/android/perl/config/GlobalConstants.java Nov 09 04:55:18 for file names Nov 09 04:55:32 http://i.imgur.com/W29zxO5.png Nov 09 04:55:54 ah Nov 09 04:57:10 nope Nov 09 04:57:13 they are raw resources Nov 09 04:57:22 https://code.google.com/p/perl-android-apk/source/browse/apk/src/com/android/perl/ScriptActivity.java#189 Nov 09 04:57:41 stick them in the res/raw directory of your project with the names from the GlobalConstants.java file Nov 09 04:57:56 ok Nov 09 04:57:58 thank you so much Nov 09 04:58:16 aw dang.. those files are already there Nov 09 04:58:31 exact same files Nov 09 04:59:07 the error is then not related to those zip files Nov 09 05:00:14 Is there any way I can pass multiple URI's to a cursor? Nov 09 05:01:10 WACOMalt: do you have the ndk? Nov 09 05:01:17 nope Nov 09 05:01:22 how can you tell I need it? Nov 09 05:01:38 because you do Nov 09 05:01:39 lol Nov 09 05:01:43 :| Nov 09 05:01:48 I have the SDK Nov 09 05:02:08 but seriously, how looking at this project do you know "oh, I obviously need the NDK as well" Nov 09 05:02:08 get it and open your eclipse workspace prefs and find the Android prefs and set the ndk directory Nov 09 05:02:20 WACOMalt: then restart eclipse and try a clean build Nov 09 05:02:54 WACOMalt: because of the directory structure having done native code before.. Nov 09 05:04:11 well.. Ok. Id just love to learn how the heck to know. The structure looks the same to me as my other project Nov 09 05:05:31 and thats working? Nov 09 05:06:38 yes Nov 09 05:06:44 but it didnt use NDK Nov 09 05:06:48 to my knowledge... Nov 09 05:06:57 the obviously its simply an Eclipse/ADT issue Nov 09 05:10:02 WACOMalt: ok, i just downloaded the APK and had the same issue.. I then deleted the errors from the problems panel and then did a Project > Clean and then all is well Nov 09 05:10:31 wait.. downloaded the APK? Nov 09 05:10:34 not the source? Nov 09 05:10:38 i mean source Nov 09 05:10:42 my bad Nov 09 05:11:14 you can delete errors and they arent errors any more? O_o Nov 09 05:11:28 well, there it goes Nov 09 05:11:30 wtf lol Nov 09 05:11:31 yes, but it still wont run Nov 09 05:11:37 you'll want to do a clean build Nov 09 05:11:51 it was probably an importer issue Nov 09 05:11:59 mind you the project itself is fucked Nov 09 05:12:14 .so pre-compiled binaries without the source for them Nov 09 05:12:19 ugh Nov 09 05:12:34 so this app wont work on Intel based android devices Nov 09 05:12:48 Honestly dont care at all :) Nov 09 05:12:58 it probably could with some work since perl works on x86 Nov 09 05:13:08 plus, it will be sub-optimal even dog slow on newer devices because only the basic arm ABI is specified Nov 09 05:13:19 yup Nov 09 05:13:35 that portion of it is running a few very small perl scripts Nov 09 05:13:42 I'm not worried about speed here Nov 09 05:13:50 (or I wouldnt be using perl) Nov 09 05:15:32 but thanks Napalm Nov 09 05:15:36 np Nov 09 05:15:46 if you're interested I'm trying to get Kareha Imageboard server running on Android Nov 09 05:16:03 should be doable now with some tweaks to the perl scripts imports. Nov 09 05:16:10 probably gonna have to bundle imagemagick too Nov 09 05:16:26 running a server on android ? Nov 09 05:16:29 ugh Nov 09 05:16:44 not only that, a perl powered server, running via some scripting layer Nov 09 05:16:48 compiled for arm-abi Nov 09 05:16:57 hehe, that just makes it worse Nov 09 05:17:02 indeed it does :) Nov 09 05:17:04 yeah, sounds terrible Nov 09 05:17:24 well, on the plus side, the perl scripts are extremely lightweight Nov 09 05:17:58 This is what I'm trying to run: http://wakaba.c3.cx/s/web/wakaba_kareha Nov 09 05:19:09 WACOMalt why not run it on something like http://www.elinux.org/Beagleboard:BeagleBoard-X15 Nov 09 05:19:23 because the goal is to have it on a phone lol Nov 09 05:19:31 I have this working fine on a raspberry pi already Nov 09 05:19:47 but that negates the purpose of this effort, which is to do the same on android Nov 09 05:19:59 http://piratebox.cc Nov 09 05:20:37 there is an app for this, but it doesnt include the imageboard like the other versions do. I'm trying to kinda of proof-of-concept it out to get the real dev to hopefully concieve a better solution Nov 09 05:22:02 https://play.google.com/store/apps/details?id=de.fun2code.android.piratebox Nov 09 05:26:09 hmm, well the app works Nov 09 05:26:37 now I just need imagemagic, CGI Carp, and to switch around some imports Nov 09 05:27:08 I hate how Candy Crush Saga tries to tell me which moves to make. Nov 09 05:27:09 I refuse. Nov 09 05:30:00 TacticalJoke: Seen the new southpark episode? Nov 09 05:30:14 Nah. Haven't seen South Park in age. Nov 09 05:30:15 ages* Nov 09 05:30:37 was that the one where they rip on freemium games? Nov 09 05:30:41 It's about a freemium app created by the Canadian devil Nov 09 05:30:44 Yep Nov 09 05:30:53 haha yeah, that was awesome Nov 09 05:30:57 Yeah, I think King is evil. Nov 09 05:31:00 Not sure why I'm playing this. Nov 09 05:31:09 I guess I'm just trying the whole "play games on a tablet" thing. Nov 09 05:31:34 TacticalJoke: Then let me recommend Icewind Dale: Enhanced Edition Nov 09 05:31:42 Thanks. I'll check it out. :) Nov 09 05:34:21 Is it worth paying for? Nov 09 05:35:38 Absolutely, but I'm a diehard D&D fan Nov 09 05:36:22 in AS, is there a way to select a symbol to see its fully qualified name? Nov 09 05:36:43 Does a game like that offer much gameplay (hours)? Nov 09 05:37:36 TacticalJoke: Plenty, and it's replay value is limitless, it's an RPG based on Advanced Dungeons and Dragons Nov 09 05:38:14 It's a reboot of a PC game from the late 90s Nov 09 05:38:25 Interesting. I never played D&D. Nov 09 05:38:42 Darklust: really? what makes it so replayable? I've not played it, but it seems like a game you'd play once, like final fantasy Nov 09 05:39:08 genuinely curious - been tempted to play it but haven't gotten around to it Nov 09 05:39:26 barbs: You make a ton of decisions that can affect the outcome of the game, there are a ton of classes and races, and the gameplay can be non-linear in terms of the quests you take up Nov 09 05:39:45 interesting... Nov 09 05:40:08 I feel weird admitting this. Nov 09 05:40:14 But Candy Crush Saga is actually quite good. Nov 09 05:40:20 I finally understand why people get addicted. Nov 09 05:40:27 However, I predict that it'll start to get boring very soon. Nov 09 05:40:42 The last time I tried it was years ago, on a tiny screen, running Gingerbread. Nov 09 05:40:46 you look weird admitting that Nov 09 05:41:10 * Darklust slaps TacticalJoke around a bit with a Galaxy Beam Nov 09 05:44:18 I get genuinely freaked out by how much people spend on some of these games Nov 09 05:44:28 Yeah, it's weird. Nov 09 05:44:56 Though these games are good at manipulating the brain. Nov 09 05:45:02 The colours, the sounds, everything. Nov 09 05:45:17 when it reaches $100+ you just think, do you realise how much other stuff, more entertaining, more creative stuff, you could have spent that money on Nov 09 05:45:29 I think it's unethical. Nov 09 05:45:43 They purposely create games to create addiction. Nov 09 05:45:55 And then take money. Nov 09 05:46:12 you really need to see that bit from southpark, it's just so damn relevant right now haha Nov 09 05:46:32 :) Nov 09 05:46:33 https://www.youtube.com/watch?v=MS4VRbsjZrQ Nov 09 05:46:55 I've got no problem paying for games, no problem with IAP stuff as such... the main thing is when you're paying for something transient, a 2-hour boost or something like that... Nov 09 05:46:58 barbs: thanks ;) Nov 09 05:50:28 flipside, new Civ game out this week, $15 - which I think is too much Nov 09 05:51:38 I suspect I've been slightly spoiled by the Humble Bundle - got *so many* games I've never even installed Nov 09 05:53:28 * g00s has no games Nov 09 05:55:23 So many puzzle games (such as sudoku games) lock the screen's orientation. Really annoying. Nov 09 05:55:44 Then I can't play upside-down. (Though I can get around this by locking the screen upside-down before opening the app.) Nov 09 05:56:03 TacticalJoke: Screen rotation is hard. Nov 09 05:56:20 Isn't there a way to lock in both portrait modes? Nov 09 05:56:27 It's arbitrary to lock one of them. Nov 09 05:57:53 I can’t remember. I wrote most of our rotation code while heavily medicated so I remember nothing. Nov 09 05:58:57 thats really the best way to do android - medicated - Nov 09 05:59:06 g00s: Why do you think I was medicated? :-) Nov 09 05:59:09 once in a while, you catch a glimpse of some poor soul here off his meds Nov 09 05:59:14 haha Nov 09 05:59:21 I really wish the tools for Android were as polished as the tools for iOS. Nov 09 05:59:33 its not just the tools :) Nov 09 05:59:39 lol Nov 09 06:00:13 Heh. Nov 09 06:00:23 I could do without Java, too. Nov 09 06:00:49 It’s so clear the NDK is a second-class citizen it’s painful. Nov 09 06:01:22 microsoft open sourced their c# compiler Nov 09 06:01:39 I'm so glad we don't have to use something awful like C++. Nov 09 06:01:52 Pfft. C++ is great Nov 09 06:01:56 For normal app development, I mean. Nov 09 06:02:03 Really? Are you medicated again? :p Nov 09 06:02:05 :P Nov 09 06:02:10 i think large parts of .NET are also Apache Nov 09 06:02:32 I really don’t care what language it is so long as it’s trivial to call C code. Nov 09 06:02:42 I think large parts of C++ are also dragons Nov 09 06:03:51 Heh. I was interviewing interns last week and several said that C++ and Java were basically the same language. Nov 09 06:03:56 I totally wanted Google to pick C#. Nov 09 06:04:38 jfpoole: They didn't get hired did they Nov 09 06:04:55 Darklust: The interview ended shortly after they made that claim. Nov 09 06:05:33 jfpoole they are kind of right, compared to things like haskel :D Nov 09 06:05:33 Clueless programmers seem so happy. Nov 09 06:05:38 I sometimes envy that. Nov 09 06:05:41 after all both have { } D Nov 09 06:05:45 g00s: Ha! Nov 09 06:06:11 heh ... same == "object oriented / high-level" ... that's close Nov 09 06:06:28 they haz methods Nov 09 06:06:56 "Functional programming language" Nov 09 06:07:11 Reminds me of a video I saw on youtube of a guy teaching people how to translate english to swedish in haskell Nov 09 06:08:32 Ugh. Nov 09 06:08:39 I have to wait 10 minutes to continue playing Candy Crush Saga. Nov 09 06:09:02 TacticalJoke: Snort a line in the meantime Nov 09 06:09:16 My first reaction is "Is there some way to reverse-engineer it?". Nov 09 06:09:23 Not quite the reaction they'd hoped for, I'm guessing. Nov 09 06:09:41 It's been around for years and years under the name Bejeweled Nov 09 06:09:49 Before micro-transactions were a thing Nov 09 06:10:12 Is that the same game without the time restrictions? Nov 09 06:10:23 Actually, I don't wanna know. It's annoyingly addictive. lol Nov 09 06:10:38 Yeah, well the objects are jewels instead of candy too Nov 09 06:10:46 Still as sparkly and attractive Nov 09 06:11:50 :D Nov 09 06:12:12 "Santa Balls" is the best :-D Nov 09 06:17:49 I think it's good for us app developers to try all different apps/games. Nov 09 06:18:19 It suddenly occurred to me recently that I'm new to not only Android programming but Android itself (kinda). Nov 09 06:19:04 I bought an Archos 101 back in 2010 and fell in love with that piece of shit Nov 09 06:19:46 * [Saint] still compiles debian images for that fucker Nov 09 06:19:51 I'm not ridiculously new to Android, though. I'm on my third device. Nov 09 06:19:59 [Saint]: Haha really? Nov 09 06:20:07 <[Saint]> Android on it, can go die in a fire. Nov 09 06:20:23 <[Saint]> Urukdroid, stock, all the other half-assed failed attempts. Nov 09 06:20:26 I used a rom called Urukdroid Nov 09 06:20:31 <[Saint]> Ugh. Nov 09 06:20:32 Right haha Nov 09 06:20:35 <[Saint]> Yeah, that. Nov 09 06:21:01 <[Saint]> Did yours have the "Better not let it sleep, ever, else it'll never wake up" bug? Nov 09 06:21:15 Yes, sorta Nov 09 06:21:35 It wouldn't turn on or charge, and I'd have to literally plant my ass on it for 15 minutes for it to start charging Nov 09 06:21:41 Something to do with the temperature of the device Nov 09 06:21:51 <[Saint]> Mine's a debian media center in my bathroom now. Nov 09 06:22:40 Eh well, it took a spill one day and the screen exploded Nov 09 06:23:04 Still, the actually exterior shell wasn't that bad, under the plastic was some sort of hard metal cage Nov 09 06:23:39 How many Android devices have you folks owned in total? Nov 09 06:24:00 <[Saint]> I lost count maaaaaaaaaaaaany moons ago. Nov 09 06:24:06 Currently I own 7 Nov 09 06:24:24 <[Saint]> I've got about 10 or so presently. Nov 09 06:24:34 <[Saint]> What I've /owned/...nup...no idea. Nov 09 06:24:53 <[Saint]> I'd take a wild guess at the 2 or 3 dozen mark. Nov 09 06:25:38 LG optimus zone for a gameplay controller, Kyocera hydro for a server, Craig tv stick for my projector, Craig netbook (what I'm using AndChat on currently), Nexus 5 for my daily driver and a Nexus 7 Nov 09 06:25:40 <[Saint]> Lots of accidents, lots of hardbricks during development, lots of misplaced devices, lots giften to family, etc. and so on. Nov 09 06:25:52 <[Saint]> *gifted Nov 09 06:26:51 I have a dead Nexus 7 2012 model that suffered the groundhog day bug Nov 09 06:26:58 <[Saint]> Wow Darklust, apart from the last 2, you're really scraping the bottom of the obscurity barrel. Nov 09 06:27:23 [Saint]: So many niche devices that can be repurposed Nov 09 06:27:27 <[Saint]> What locality are you in? Nov 09 06:27:37 <[Saint]> That's a lot of offbrand tech. Nov 09 06:27:50 Eh, I'm in the US Nov 09 06:28:08 <[Saint]> Huh. Wouldn't have picked that. Nov 09 06:28:08 Lot of that crap was bought from Rite-Aid pharmacy Nov 09 06:28:16 <[Saint]> Ahhhh. Nov 09 06:29:00 I mean they're all capable of development testing, they run from Android 2.3 to 4.4 Nov 09 06:29:14 <[Saint]> My device list smacks of mid-range Samsungs. Nov 09 06:29:22 <[Saint]> Samsungs, as far as the eye can see. Nov 09 06:29:36 <[Saint]> ...too many of the buggers. Nov 09 06:29:37 [Saint]: Have you ever owned... a Galaxy Beam D: Nov 09 06:29:57 <[Saint]> i5830? Nov 09 06:30:02 beam me up, scotty Nov 09 06:30:03 <[Saint]> The MSM7227 one? Nov 09 06:30:10 <[Saint]> (iirc) Nov 09 06:30:22 <[Saint]> Ah. No. Thnking of another one. Nov 09 06:30:23 Eh, the one that could project a shitty image on the wall Nov 09 06:30:35 <[Saint]> Aha. Right, no, no I have not. Nov 09 06:30:59 <[Saint]> Didn't Nokia have another stab at reinventing that terrible wheel a while ago? Nov 09 06:31:05 <[Saint]> Or, was it Sony? Nov 09 06:31:09 <[Saint]> ...perhaps both. Nov 09 06:31:23 Windows 10 looks interesting. Nov 09 06:31:24 Oh god yeah Nov 09 06:31:28 Could it take Android market share? Nov 09 06:31:38 I kinda feel like it'll be too little and too late. Nov 09 06:31:44 And currently ZTE has an android projector through Sprint Nov 09 06:32:31 <[Saint]> Could Windows 10 take Android marke...WHAT!?! Nov 09 06:32:38 TacticalJoke: Why compare Windows 10 with the android market share? Nov 09 06:32:39 <[Saint]> I, what? Nov 09 06:32:43 Apples to oranges sorta deal Nov 09 06:33:00 Windows 10 is gonna run on all kinds of devices. Nov 09 06:33:09 It'll be a direct Android competitor. Nov 09 06:33:14 <[Saint]> That doesn't mean people are going to /do/ it. Nov 09 06:33:34 ...Windows has never competed with Android, nor was it meant to Nov 09 06:33:42 Of course it does. Nov 09 06:33:51 You can buy an Android phone or a Windows one. Nov 09 06:33:55 An Android tablet or a Windows one. Nov 09 06:33:58 The Windows Mobile devices sure, if you think they'll take a punch Nov 09 06:34:02 <[Saint]> Linux runs on "all worts of devices" too, it doesn't mean anyone is going to do so though. Nov 09 06:34:14 <[Saint]> *sorts Nov 09 06:34:18 My point is that Windows 10, unlike Windows Phone, will (or probably will) actually be good. Nov 09 06:34:37 <[Saint]> So various people have said ever since Vista. Nov 09 06:34:43 <[Saint]> Doesn't make it true though. Nov 09 06:34:47 Have you guys even heard of Windows 10? Nov 09 06:34:53 Kinda feel like you're just assuming I'm saying something really weird. Nov 09 06:34:56 "They next one will be good, I'm sure!" Nov 09 06:35:18 <[Saint]> TacticalJoke: I'm intimately aware, yes. Nov 09 06:35:24 by the way Nov 09 06:35:36 Intimately? Nov 09 06:35:42 The Note 4 doesn't have a spring mechanism on SD cards Nov 09 06:35:51 Things CAN devolve Nov 09 06:36:01 thinking of returning mine Nov 09 06:36:02 Agamemnus: You have to tell all the users pronto! Nov 09 06:36:05 claiming it as a defect Nov 09 06:36:10 All those SD card they'll jaaam into the sockets Nov 09 06:36:26 the SD card constantly gets unmounted Nov 09 06:36:38 not sure it is good for durability Nov 09 06:36:59 <[Saint]> Its rated for multiple thousands of insertions. Nov 09 06:37:05 <[Saint]> pretty sure you're good. Nov 09 06:37:13 The SD card? Nov 09 06:37:16 Oh god... there's a *limit*? Nov 09 06:37:34 I can't just pull it out and put it back in to my hearts content? Nov 09 06:37:37 <[Saint]> There's a lower bound for expected durability, yes. Nov 09 06:37:45 Well, I don't want to be copying data and then having that shit unmount Nov 09 06:37:51 boom, corruption Nov 09 06:38:01 anybody familiar with using ant? Nov 09 06:38:05 Wait, we're not talking about intercourse are we Nov 09 06:38:08 sure, ant Nov 09 06:38:29 yes, we are. phone/sd card intercourse Nov 09 06:38:31 <[Saint]> Thanks, ANT. Thant. Nov 09 06:38:43 haha Nov 09 06:38:58 anyway. when I try running ant debug install Nov 09 06:39:03 it says insufficient permissions Nov 09 06:39:05 i am at least the 3rd person to complain about the SD card Nov 09 06:39:07 to install on my device Nov 09 06:39:12 I'm running adb as root, etc etc Nov 09 06:39:15 what do? Nov 09 06:39:19 vinit-ivar: install from unknown sources Nov 09 06:39:21 check it Nov 09 06:39:23 checked. Nov 09 06:39:29 debug, 7 times? Nov 09 06:39:32 yep Nov 09 06:39:40 do you have 'install from untrusted sources' ? Nov 09 06:39:57 you mean unknown sources, right? Nov 09 06:39:57 I do Nov 09 06:39:58 <[Saint]> do you have '1 minute ago'? Nov 09 06:40:02 g00s has me on ignore Nov 09 06:40:15 eh? Nov 09 06:41:00 vinit-ivar: hard to say Nov 09 06:41:08 default project working? Nov 09 06:41:12 must be something you did Nov 09 06:41:19 :( Nov 09 06:41:27 i ported the eclipse project to use an ant buildfile Nov 09 06:41:36 so i used the android tool Nov 09 06:41:49 google it Nov 09 06:41:52 tried Nov 09 06:41:54 nothing Nov 09 06:41:55 ah well Nov 09 06:41:58 "eclipse to ant insufficient permissions" Nov 09 06:42:05 i'll make a post on stackoverflow Nov 09 06:42:06 cheers Nov 09 06:42:30 wait Nov 09 06:42:34 are you on linux or windows? Nov 09 06:42:50 linux Nov 09 06:42:56 tried sudo Nov 09 06:43:03 so when you said you're running adb on root.., i see Nov 09 06:43:10 nah, tried adb root as well Nov 09 06:43:11 https://groups.google.com/forum/#!topic/android-discuss/-Fp5VkTmW1k Nov 09 06:43:14 did you read this Nov 09 06:43:19 hang on Nov 09 06:43:41 yep, i have to do that all the time anyway Nov 09 06:43:47 adb devices is working fine Nov 09 06:45:52 i don't know Nov 09 06:46:41 Is the device unlocked, like...its not locked sitting there waiting for you to unlock it and approve the session, is it? Nov 09 06:47:27 nah, it's unlocked Nov 09 06:47:40 <[Saint]> bah - I'm out then. Nov 09 06:47:44 * [Saint] shrugs Nov 09 06:47:46 it runs fine when I use adb install, tbh, but i wanted to get it working with ant :x Nov 09 06:47:51 vinit-ivar: Have you checked whether or not it is, in fact, a goat? Nov 09 06:47:58 <_u2pop_> hello all Nov 09 06:48:02 Darklust, actually, I haven't Nov 09 06:48:03 brb Nov 09 06:48:19 <_u2pop_> i am trying to fix the play store Nov 09 06:48:27 <_u2pop_> i get error "unfortunately google play store has stopped" Nov 09 06:48:31 i'm sure google appreciate the efforts Nov 09 06:48:41 <_u2pop_> i search on google Nov 09 06:49:08 _u2pop_: That's a very general NRE Nov 09 06:49:09 <_u2pop_> many way i did cleaning data cache downloading apk updating removing google play services too updating.. Nov 09 06:49:15 <_u2pop_> and nothing for fix it :( Nov 09 06:49:38 _u2pop_ doesn't sound like it has to do with app development Nov 09 06:49:42 please read topic Nov 09 06:50:09 <_u2pop_> i know is just trying to talk someone expert of here if know that issues :/ Nov 09 06:50:16 <_u2pop_> i will try on #android nvm Nov 09 06:52:49 _u2pop_ you can't Nov 09 06:53:08 go to Mountain View Nov 09 06:53:17 and tell them their Play Store app constantly crashes Nov 09 06:53:24 then you'll get escorted out by security Nov 09 06:54:04 ^ Nov 09 06:54:13 v Nov 09 06:54:15 _u2pop_: are you using a theme Nov 09 06:54:22 <_u2pop_> yes Nov 09 06:54:24 don't Nov 09 06:54:28 how do i add permissions in android studio? can't seem to find AndroidManifest.xml anywhere Nov 09 06:54:29 wait Nov 09 06:54:31 is it herathon? Nov 09 06:54:35 <_u2pop_> no Nov 09 06:54:37 ah well Nov 09 06:54:43 <_u2pop_> is not the theme i am sure of that Nov 09 06:54:51 changed the density? Nov 09 06:54:54 <_u2pop_> i haved using for 4 months that theme Nov 09 06:55:06 vinit-ivar you also, please read the topic :) Nov 09 06:55:33 <_u2pop_> i just was doing a stupid thing like patching play store for some privilege Nov 09 06:55:41 sorry, just tried to help the lad :P Nov 09 06:55:42 <_u2pop_> and that fucked my play store :/ Nov 09 06:55:47 off to #android you go, _u2pop_ Nov 09 06:55:53 <_u2pop_> g00s come on dude is not a big thing.. Nov 09 06:55:53 <_u2pop_> o Nov 09 06:55:54 <_u2pop_> k Nov 09 06:55:58 <[Saint]> sad thing is...he's there. Nov 09 06:56:28 _u2pop_ we can't have every idiot fucking up his phone asking for help here Nov 09 06:56:50 true enough Nov 09 06:56:55 _u2pop_ it's nothing to do with you doing anything Nov 09 06:57:51 on my note 4 i have these crashes, not rooted, nothing Nov 09 06:58:37 <[Saint]> Even though he gave clear causation, you know better huh? Nov 09 07:00:23 well Nov 09 07:00:41 let's say you have a llama chewing your sandwich Nov 09 07:00:42 OK? Nov 09 07:01:06 O_o Nov 09 07:01:08 and your problem is: the llama took your sandwich Nov 09 07:01:16 stay with me here... Nov 09 07:01:23 and you say Nov 09 07:01:48 you put salami in the sandwich Nov 09 07:01:58 <_u2pop_> i was playing with that http://forum.xda-developers.com/showthread.php?t=1836102 Nov 09 07:02:03 and you're sure that because you put salami in the sandwich, the llama ate the sandwich Nov 09 07:02:12 but would it have eaten the sandwich ANYWAY?!? Nov 09 07:02:31 nobody really knows, but probably it would have.. Nov 09 07:03:29 wtf is wrong with this channel today :/ Nov 09 07:03:46 hahah ... silliness Nov 09 07:07:34 oh i think i missed something :D Nov 09 07:08:03 oh trust me, you really really didn't Nov 09 07:13:39 bankai_au rxjava -rc10 Nov 09 07:15:20 i was kinda hoping, with android 5, they would have surprised us with "and heeeerrreeee ... java 8 " Nov 09 07:15:41 <[Saint]> Hahahahaha....yeah, right. Nov 09 07:16:04 g00s: i want what you're having Nov 09 07:16:10 <[Saint]> 10 points for confidence. Nov 09 07:16:19 <[Saint]> -10 for application Nov 09 07:17:37 well, some java 8 language features. optional methods in interfaces, etc Nov 09 07:18:07 Android Java 7.5 Nov 09 07:18:16 not expecting classpath Nov 09 07:18:29 this can't go on forever :) Nov 09 07:18:55 JFX and RoboVM guys were talking about working on java 8 for android at JavaOne conference Nov 09 07:19:41 <[Saint]> Can't you already do such a thing in a tremendously hackish way with some Gradle fuckery? Nov 09 07:20:10 <[Saint]> I seem to recall laughing my ass off at some stage with such a post detailing using Java 8 w/ Android. Nov 09 07:25:08 most of the new java 8 stuff won't work Nov 09 07:25:43 i'd like to play with kotlin soon Nov 09 07:26:11 g00s: i hear it's "fun" hehehe Nov 09 07:26:19 kotlin-android is from jetbrains i think Nov 09 07:26:53 <[Saint]> A co-worker has some...non-savory...things to say about Kotlin. Nov 09 07:27:05 <[Saint]> No idea what it did to butter his toast wrong. Nov 09 07:27:10 <[Saint]> But, it did /something/. Nov 09 07:27:18 <[Saint]> It may as well be Hitler for all he cares. Nov 09 07:38:30 hm, this looks pretty good Nov 09 07:38:45 so seems basically, all you have to do is add: apply plugin: 'kotlin-android' Nov 09 07:39:05 sourceSets { main.java.srcDirs += 'src/main/kotlin' } Nov 09 07:39:51 looks like you keep using the standard android gradle plugin Nov 09 07:42:43 oh gotta add kotlin-stdlib to deps Nov 09 07:43:14 bankai_au have you looked already? here is a mixed kotlin / java project https://github.com/JetBrains/kotlin-examples/tree/master/gradle/android-mixed-java-kotlin-project Nov 09 07:43:26 android / kotlin / java Nov 09 07:44:12 Hello Nov 09 07:46:08 i had a quick look a few weeks ago. Don't have time to learn it though :( Nov 09 08:14:03 Mavrik you around ? Nov 09 08:55:08 does anybody use google play services for multiplayer? Nov 09 08:55:25 is it that worth to make user log in into google+? Nov 09 08:58:04 i see Nov 09 09:15:28 g00s this book has me doing intro to comp sci homework Nov 09 09:16:02 yesterday : strings and arrays... today : linked lists Nov 09 09:27:22 Hi android-dev Nov 09 11:35:04 #android-dev* Nov 09 12:03:07 hi, i'm pretty new to android development and trying to create a material design app (using appcompat). however the elements don't have any margin. Nov 09 12:08:44 I'm starting an intent with an uri like this: "geo:0,0?q=%s". To open google maps, navigator or something a like. If the user havent got an app installed to handle such an intent I fire another intent opening play store pointed at maps... but I'd rather searcg for apps able to handle the first intent. Is that possible? Nov 09 12:17:23 Hello Folks new Android channel, #android-os , everyone is welcome! Nov 09 12:27:37 any good tutorials on creating an account manager? (not for google accounts) Nov 09 12:45:51 Hey guys, does anyone know why I'm getting a "Too many attribute references, stopped at: 0x######### error when launching activities that use setTheme() in my app? When it occurs, the layout that is nowhere near what its supposed to be (if it doesn't FC before). The only change I've made is adding a new library to my project. Nov 09 12:55:33 OERIAS: new android channel? what's wrong with the channels we have now? Nov 09 12:56:14 gsteinert, nothing is wrong with the. We just need more variety Nov 09 12:56:36 would you like to eat at the same restaurant everyday for 3+ meals ? Nov 09 12:57:15 we have #android for general android chat, #android-dev for development, #android-root for rooted devices... waht does #android-os bring to the table? Nov 09 13:05:52 general chat, android wear devices, more emphasis on other google products like chromebooks and google services Nov 09 13:09:35 OERIAS: fair enough, might be worth making that more obvious in the topic rather than the 'official android channel' AFAIK that would still be #android - see https://source.android.com/source/community/index.html Nov 09 13:12:02 lol Nov 09 13:12:07 thats stupid Nov 09 13:14:35 what is pifon1 Nov 09 13:24:26 basically, it's "people are rude to me and off-topic sometimes in #android, so I'm starting my own channel - ner-ner!" Nov 09 13:25:31 OERIAS was rude to me too on #android Nov 09 13:26:13 no Leeds you got it all wrong Nov 09 13:26:24 OERIAS: The topic for #android-os suggests that it's more official than other channels. Is there any reason for that? Nov 09 13:26:39 yes. Nov 09 13:27:24 OERIAS: Sure, I'm listening... Nov 09 13:27:54 I didn't set the topic Nov 09 13:28:09 and beside I don't owe you any explanation Nov 09 13:28:13 OERIAS: So? I asked you a question and you seem to know the answer. Nov 09 13:28:14 you are none Nov 09 13:28:28 Ugh. Nov 09 13:28:31 Well who are you to ask questions? Nov 09 13:28:41 Go ask God Nov 09 13:28:48 see if he answers Nov 09 13:28:51 lol whats going on in these channels... Nov 09 13:28:59 lol ringing endorsement for #android-os ! Nov 09 13:29:11 I don't believe in god. Apart from that, I don't have to justify asking questions. Nov 09 13:29:50 there you go, you won't get any answers Nov 09 13:37:39 OERIAS, why are you always so mean to everyone? Nov 09 13:38:47 TheFlipside, I am not mean to everyone, I mean to the few people that are mean to other, I'd mention names here, but that person gets the picture. Nov 09 13:39:06 sounds like drama Nov 09 13:39:53 I am nice to people on irc, TheFlipside , but being nice all the time gets soured. Nov 09 13:41:12 I'm having a bit of trouble with the FragmentPagerAdapter from the v4 support library. I have a variable number of pages, populated from a SQLite database. Each item has a button that opens the system text message app. All works fine unless, while the message app is open, the activity with the pager is stopped. When I return to the activity it is started up again, but all pages contain the content of the first page. Nov 09 13:42:16 I can reproduce reliably by setting the 'destroy activities' switch in developer options, but the debugger keeps detatching once the activity is destroyed so I'm having trouble debugging the thing! Nov 09 13:44:45 I'm using Log.i() at the moment and getItem() doesn't seem to be called on the adapter when going back to the activity. Is there any way to invalidate the view or something to force it to reload? Nov 09 13:52:44 hey Nov 09 13:57:08 I have an Activity implementing SherlockFragmenActivity, and use onOptionsItemSelected to have a menu. Then I create an AlertDialog.Builder(this) on one of the options there. But Google Analytics now reports an occurence of: BadTokenException (@ViewRoot:setView:505) {main}. Nov 09 13:58:23 Some googling hinted that the cause could be that the main Activity is missing when the AlertDialog is built. How would that happen? Nov 09 14:00:59 would AlertDialog.Builder(MainActivity.this) help? or is MainActivity.this the same as this here? Nov 09 14:04:50 Quacked: MainActivity.this is the same as this when used directly in the MainActivity class. If you are using it within a nested class, or an anonymous nested class you should use MainActivity.this Nov 09 14:05:25 to be safe, I tend to use the MainActivity.this format wherever I use this - just for clarity. It never hurts to use it! Nov 09 14:07:12 its within the MainActivity class so shouldnt make any difference in this case Nov 09 14:07:27 but I will do that nevertheless Nov 09 14:07:35 but not sure why I got that error then Nov 09 14:09:32 I'm a little confused with your original message... what do you mean when you say Google Analytics reports a BadTokenException? Nov 09 14:38:46 * capella will pissing off people on *not my channel* convince them to come over *to my channel* :p Nov 09 14:39:11 because "reasons" Nov 09 15:00:56 gsteinert, in my google analytics report theres a crash description Nov 09 15:01:07 but I get nothing more than this: BadTokenException (@ViewRoot:setView:505) {main} Nov 09 15:02:40 Quacked: ah i see, you haven't been able to reproduce it yourself? Nov 09 15:22:03 so by using a Custom view I can get hardware acceleration? so that will be fater than a SurfaceView? Nov 09 15:22:50 Hi guys. I always try to use enums over static int constants since it's considered as a more safe way of doing things, however expolring Android sources I see that android devs seem to never use enums at all. I understand that it's more about Java than Android but I'm curious why it's like that in Android. Nov 09 15:22:52 I thought SurfaceView was supposed to be faster than View. Nov 09 15:26:10 AlexBerdnikov if I remember correctly, this is mostly because in the very very long ago, there was an issue with enums on Android that made them very slow, so they used the constants. Probably just for the sake of consistency that they keep doing it that way. Nov 09 15:26:50 Chanifire, Hm... Thanks for the answer Nov 09 15:28:11 AlexBerdnikov more specifically, http://stackoverflow.com/questions/4822877/why-doesnt-android-use-more-enums, see the 'previous answer' on the top answer Nov 09 15:29:00 Chainfire Thank you Nov 09 15:29:46 success a custom view can be faster than a surfaceview, depends on what you want to draw really Nov 09 15:30:14 Chainfire, im drawing some shape drawables an some bitmaps. Nov 09 15:31:08 enabling/disabling the drawing of my background (canvas.drawBitmap) makes 0 ms difference, isnt that a pretty expensive operation? Nov 09 15:32:02 one of the major advantages of a surfaceview is that you can do most of the rendering on a background thread. one of the disadvantage is that it creates an intermediate graphics buffer that is not necessarily faster than normal drawing Nov 09 15:32:19 as always, that depends Nov 09 15:33:04 gsteinert, nah, havent been able to reproduce the error Nov 09 15:33:27 ill probably ignore it :) Nov 09 15:33:39 success depending on the Android version and what sort of canvas you're using, it the bitmap may be converted to a texture once and is being cached, in which case drawing it really isn't very expensive Nov 09 15:34:15 Quacked: That's prbably why you're having trouble tracking it down. If you can work out how to reproduce it, you'll have a stack trace and be able to teset that your fix actually worked! it's not really worth trying to debug a problem if you can't reproduce it yourself. It may have been a problem with their device? Nov 09 15:35:01 yeah, thats what I'm going for :P Nov 09 15:35:36 success if you want to do something really graphics intensive, your best bet is always to use OpenGL. If that's a bridge too far, write it using a custom view and a surface view, test on a few different devices and Android versions and pick whichever one is fastest. Nov 09 15:36:04 should probably implement tracking the description of the error as well Nov 09 15:36:10 but I think I'm too lazy Nov 09 15:39:50 is there any app to list other app's sandbox directories? Nov 09 15:39:59 I would need root anyway, damn, I had to put it when I bought the phone :P Nov 09 15:44:14 Chainfire, the goal of this project was to learn Android and make a decent game. So i chose not to use an engine (Andengine, libgdx, unity). I looked at openGL and it is not trivial to learn. So what I will do is optimize it as much as I can not using OpenGL. If not fast enough, maybe rewrite using Andengine or libgdx since I think the game is actually pretty good. Nov 09 15:46:14 can it make a big differenc eusing power of 2 bitmaps? Nov 09 15:46:23 my size is 42 which is a bit dumb... Nov 09 15:46:51 OpenGL can be a bit daunting yes. If you're just doing this for practise, then leave that be for now. Nov 09 15:47:01 again, that depends on device and Android version Nov 09 15:47:25 power of two textures used to be significantly faster on older GPUs, but as I understand it, this is no longer the case Nov 09 15:48:53 I am not an expert on trying to write fast graphics without OpenGL, though Nov 09 15:50:25 success: I assume you're using Canvas? Nov 09 15:50:59 flan3002, yes Nov 09 15:52:40 can a Library contain resources? Nov 09 15:53:11 success: I tried to write a live wallpaper, using a Surface. Nexus 5, so high resolution, drawing a 1000x1000 bitmap, transformed and rotated. I was unable to get it to even draw at 30fps, and the general consensus was to abandon Canvas. I profiled it, but that didn't help much. If you need to draw fast, you really should consider using something else. OpenGL is weird, yes, but... Nov 09 15:54:54 Oh, and I did make sure to try with and without hardware acceleration... Nov 09 15:55:05 ChrisUK: seriously? ... Nov 09 15:55:41 :) Nov 09 15:55:47 well I just read it might be possible Nov 09 15:55:56 its the same answer it has been yesterday Nov 09 15:56:06 flan3002 same experience here with live wallpapers... unfurtonately, GL wallpapers are a fairly nasty hack with still some drawbacks... live wallpapers could use some love from the Android devs :/ Nov 09 15:56:09 This is exactly the main idea behing Android Library Projects, to share code and resources among projects. Nov 09 15:56:28 which I think might be different than a normal JAR Nov 09 15:56:47 ChrisUK: yes but you said library projects arent possible Nov 09 15:57:00 well I think they are Nov 09 15:57:09 I have done it a different way now Nov 09 15:57:11 you can have resources in them Nov 09 15:57:18 Chainfire: I gave it up, as I didn't want to put too much time into it. I thought it wouldn't be that slow, but didn't want to use OpenGL for it. I used OpenGL before, so that wouldn't have been much of a problem, but still... Nov 09 15:57:21 so then the answer is yes this time Nov 09 15:58:48 flan3002 that is a great example of where a surfaceview is not necessarily fast though, which was a question from success earlier. surfaceview is at the core of the live wallpaper system, and this is exactly what prevents hardware acceleration of normal canvas operations Nov 09 15:59:10 Chainfire: Isn't there some GL specific Surfaceview? Nov 09 15:59:33 GLSurfaceView Nov 09 15:59:54 yes, there is, that's what you use if you make a GL based live wallpaper (or custom view in success' case), it doesn't have that limitation Nov 09 16:00:48 * flan3002 won't touch LWPs anytime soon. Nov 09 16:01:05 read the GLWallpaperService source code to find out how the made one into to the other, it really is quite a neat hack if you've never delved into that part of the (graphics, not wallpaper) subsystem Nov 09 16:03:55 Any ideas how to fix this nullpointerexception? http://pastebin.com/z6ubYcgC Nov 09 16:04:11 crash report, cannot reproduce myself :p Nov 09 16:05:50 the "line 126" is supposed to be "line 196" Nov 09 16:06:49 Quacked: am I right that those two fragments are inside a fewpager? Nov 09 16:06:56 viewpager* Nov 09 16:07:00 hehe, yes Nov 09 16:07:18 then I know where this is from Nov 09 16:08:06 lets say you have a pager with 4 pages, and you start at page 1 and go to page 4, page 1 will be garbage collected and you cant find it anymore Nov 09 16:08:31 yeah Nov 09 16:08:43 so you should check in updateTheListView() if frag3 == null and only run the update if this is false Nov 09 16:08:44 that was my guess Nov 09 16:08:50 I have 3 fragments Nov 09 16:09:20 good tip. thanks Nov 09 16:09:25 yeah but since the lifecycle is out of your control, you should always check if its null Nov 09 16:09:32 yw Nov 09 16:10:19 since you have 3 fragments i think the NPE is thrown when you are at page 1 and this method is called Nov 09 16:10:38 because the default viewpager setting is to cache 1 fragment to the left and right of the current shown Nov 09 16:10:49 (you can change that though) Nov 09 16:11:56 I know, but my logic is based on not increasing that (iirc) Nov 09 16:12:27 then just add a check for null :) Nov 09 16:12:31 will do :) Nov 09 16:13:01 70 % of all errors in that app was from this, hehe Nov 09 16:34:57 evenin Nov 09 16:41:33 Anyone here have even the slightest experience with ndk-build ? Nov 09 16:48:07 Hi! I am not familiar with the android platform as such, and mainly work on desktop apps. However, I am now working on a project which would benefit from having a mobile app. Is there any/What is the recommended way to add extensibilty and hackability(i.e. execution of *almost* arbitary code) via a plugin/module system to an app. Nov 09 16:55:34 wz1000: Well, you /can/ load code at runtime, but embedding a scripting language might be more sensible. What do you need? Nov 09 16:56:39 wz1000: For dex loading, maybe look at http://android-developers.blogspot.in/2011/07/custom-class-loading-in-dalvik.html Nov 09 16:57:15 wz1000: Otherwise, whatever scripting language you like. Be it beanshell (do people still use that?), JS or Lua... Nov 09 16:57:31 somebody know if usign ART is compatible with loading dex classes on runtime? Nov 09 16:57:48 Yes, it is. Nov 09 16:58:01 kozko: They compile the code and cache it. Nov 09 16:58:50 hi? Nov 09 16:58:58 as far as I know, ART is just a execute the JIT of the DEX when installing the apk Nov 09 16:59:05 hi gmg85 Nov 09 16:59:15 kozko: http://stackoverflow.com/questions/23739261/does-android-art-support-runtime-dynamic-class-loading-just-like-dalvik/24652129#24652129 Nov 09 16:59:21 are there any dangers in using intent flags to make a decision in an activity's on create method? Nov 09 17:00:05 flan3002 thanks :) Nov 09 17:00:34 gmg85: Depends. It's output from 'the outside', by some definition. If people could abuse that (e.g. payments), better sanitize it. Nov 09 17:02:22 if in code you have a linear layout how to you align it bottom to top Nov 09 17:02:25 instead of top to bottom Nov 09 17:06:54 flan3002: Thanks, I think using V8 to execute js sounds like the simplest solution to me. Nov 09 17:07:57 wz1000: Is there a Java API for that? I heard embedding V8 is nasty... Nov 09 17:10:32 whatever you embed, you'll have to provide some API for communicating with your app, or else it's kinda pointless... Nov 09 17:11:14 ravilov: Yeah, I realise that. Nov 09 17:12:14 ChrisUK: use RelativeLayout with android:layout_alignParentBottom Nov 09 17:12:37 Also, how are dependencies managed in android? Nov 09 17:12:55 ok thanks Nov 09 17:12:59 ill try to do that in code Nov 09 17:13:10 This is really interesting ndk-build in release, produces a bigger library than one that has all debug options set Nov 09 17:13:12 so with relative layout they will by default be added ontop of each other Nov 09 17:13:14 ? Nov 09 17:14:18 flan3002: No, I think I'll have to use the NDK Nov 09 17:14:52 wz1000: Uhm... you should maybe embed something that's meant to be embedded then... Nov 09 17:15:03 https://developers.google.com/v8/get_started Nov 09 17:16:21 wz1000: Okay, that looks acceptable. Alternatively, have a look at Squirrel or Lua. ^^ Nov 09 17:16:31 yes Nov 09 17:16:34 i'm gorgeous Nov 09 17:17:05 Hah, well... Nov 09 17:17:08 flan3002: I am more comfortable in C++ than java really. Maybe I'll build a nice interface to V8 to interface with the java code. Nov 09 17:23:46 ChrisUK: with LinearLayout you can also try android:gravity="bottom" Nov 09 17:25:57 Anyone know if I can combine several NDK static libraries ( different architectures ) into a fat library? like lipo would do on iOS? Nov 09 17:26:14 to be honest with you this is very hard to do in code Nov 09 17:28:13 no it's not Nov 09 17:30:10 cant really find any good examples of it Nov 09 17:30:13 in code Nov 09 17:30:16 most are just XML Nov 09 17:30:26 Tomaz^W, you can. They go in /libs/ in the APK but there's not much info about it that I can find at least. Multiple APKs with one per platform is preferred Nov 09 17:30:53 it's a static library, so it doesn't go into the apk Nov 09 17:31:04 aimed at jooles Nov 09 17:32:17 wat Nov 09 17:32:34 yes it does Nov 09 17:32:44 what does it matter if it's "static" or not? Nov 09 17:33:04 well it's gonne be builtin into the app.so at compile time Nov 09 17:33:25 ...okay? Nov 09 17:33:28 so the actual libWhatever.a doesnät actually go into the phone Nov 09 17:33:41 .a is irrelevant for runtime Nov 09 17:34:06 or apk or whatever, but right now I have 7 libWhatever.a, and I'd like to combine them to one .a, and let the compiler pick whatever it needs when building the app.so Nov 09 17:34:16 as in, a fat static library Nov 09 17:34:41 .a is just an 'ar' archive I believe Nov 09 17:35:14 i have a problem that my action bar does not show the application title,does anyone know the reason? Nov 09 17:36:09 the application icon is showed in action bar if i create the project with android studio, no im using eclipse Nov 09 17:36:13 ravilov: okay, I'm not at all familiar with Unix environments, so you're sayign that theoretically I could combine all these 7 .a files into 1? Nov 09 17:36:26 theoretically, yes Nov 09 17:36:36 now* im using eclipse Nov 09 17:37:37 ravilov: that means I'll keep investigating how then :) Nov 09 17:39:36 sorry, i made a mistake in my question,let me ask it again Nov 09 17:40:22 i have a problem that my action bar does not show the application icon,does anyone know the reason? Nov 09 17:41:07 the application icon will be showed in action bar if i create the project with android studio, but now im using eclipse Nov 09 17:41:09 * ravilov has never used action bars Nov 09 17:42:25 android studio stable enough now to drop eclipse? Nov 09 17:42:26 the defalut theme of my new project gave me the action bar Nov 09 17:43:15 you think its a good choice to use android studio instead? Nov 09 17:45:43 i try android studio because another problem i met in eclipse last week which does not happen in android sutido Nov 09 17:47:31 ravilov: found a way to do it using ar -M :) Nov 09 17:47:43 then i found the reason and made some changes to eclipse then it worked.now another problem come out, may be i really should choose android sutdio Nov 09 17:48:00 ravilov: at least the first tests shows that the new .a contains 2 of each .o file, so I'm guessing it works Nov 09 17:51:30 I am trying to fix a PANIC: count not open device error on my android-studio avd manager. I have added ANDROID_SDK_HOM=/home/alex to my enviroment variables. However I am running the studio.sh script with sudo. Does that mean that I am not running android studio as alex? and that this envorment variable will then not work? Nov 09 17:59:46 what's a good guide for recyclerview? Nov 09 18:01:01 trial and error Nov 09 18:04:46 hi, i have a problem developing a simple app. right now i just have a listview and try to fill it through a custom adapter but if i add the adapter to the listview, the app crashes and i don't see any error log Nov 09 18:06:04 dnano91: show the code Nov 09 18:06:09 dnano91: Look again. There should be an error. Nov 09 18:06:31 flan3002: logcat is empty. not sure why (ide is intellij) Nov 09 18:06:40 dnano91: Have any filters enabled? Nov 09 18:06:52 dnano91: Use the adb logcat then... Nov 09 18:07:05 gordon_: https://dpaste.de/ZYOb this is the adapter Nov 09 18:09:11 using adb logcat i got android.content.res.Resources$NotFoundException: String resource ID Nov 09 18:10:42 dnano91: Post more of it Nov 09 18:12:17 flan3002: oh, found it. thanks :) Nov 09 18:14:53 I thought intellij would highlight any missing string resource Nov 09 18:19:00 cliffreich: problem was that i put an int into a textview Nov 09 18:20:06 Betatesters wanted, anyone that would like to try? Nov 09 18:20:36 success whats your app about Nov 09 18:22:19 should I be running android-studio as admin (with sudo) ? Nov 09 18:22:28 no.. Nov 09 18:23:25 bilb_ono bad idea... it's really easy to install sudo and add a sudoer user Nov 09 18:24:11 android studio doesn't need or want root Nov 09 18:24:32 pfn, I find certain features, like sdk manager, avd manager only work if I run with sudo Nov 09 18:24:52 then you setup your environment wrong Nov 09 18:25:09 pfn, so should I add my user to the sudoers file? Nov 09 18:25:23 no Nov 09 18:25:34 you shouldn't be using sudo Nov 09 18:25:47 learn how to setup your environment correctly Nov 09 18:32:23 pfn, now that my environment is "messed up", would you recommend purging my installation, or is there a way to fix the installation? also, is there a good set of instructions you recommend? the last one seems to have steered my wrong Nov 09 18:32:34 cliffreich, balls in maze game, standard ball in maze game but with several balls Nov 09 18:33:43 I want to share my app to beta testers, how do I make sure it cannot be reversed to source files? Nov 09 18:34:04 A game with balls Nov 09 18:34:09 It's just what I always wanted Nov 09 18:34:29 i'll just reverse your app to check what 2d engine are you using no problem, wouldn't copy code Nov 09 18:34:30 heheh Nov 09 18:34:32 jk Nov 09 18:34:55 oh recyclerview, why do you vex me so Nov 09 18:34:57 success: Here's the deal, it can be decompiled no contest Nov 09 18:35:33 But take solace in the fact that, your source code is probably alike to some application that's been made in the past 15 years Nov 09 18:39:36 damn net Nov 09 18:40:27 by the way, whats a good free 2d engine for android? Nov 09 18:42:59 unity? Nov 09 18:43:15 discord Nov 09 18:44:10 in an acitivity is there a way of getting the size of the drawable screen excluding the title bar? Nov 09 18:45:51 libgdx? Nov 09 18:48:23 Tomaz^W, cool! Nov 09 18:48:51 will check all those Nov 09 18:49:02 ravilov: not at all sure if the compiler will understand which .o files to use for each acrhitecture, but I'm guessing there's some magic going on there that solves that :) Nov 09 18:50:22 Tomaz^W, no idea, never tried adding multiarch .o's to a library... good luck Nov 09 18:51:21 does it make sense for me to add permissions to other users for my /usr/local/android-studio directory? or should I just somehow find a way to uninstall the old android-studio and reinstall it new? Nov 09 18:52:58 guys, whats wrong with my android emulator, last light back when I was use Kitkat(4.4), the screen comes up in less than 10 sec. Then, i switchedto Lolipop, and it works too. But have problem with not enough memory for the app. Now, i switch back to either 4.4 or 5.0, it does not run anymore. Nov 09 18:54:07 would like to try libgdx Nov 09 18:54:10 looks awesome Nov 09 18:54:13 and works on ios too Nov 09 18:54:21 Cervantes, try to restart it. Works for me (memory issues) Nov 09 18:54:36 emulator has memory leaks ? Nov 09 18:55:22 gordon_, i don't know. When i have problems like too much disconnecting or not oppening I just restart it Nov 09 18:55:29 AMrDan: I have tried tweaking around for 20 times. Nov 09 18:55:50 ok Nov 09 18:56:23 Cervantes, are you using eclipse? Nov 09 18:56:25 AMrDan: none works, so I guess there must be something I dont know. I did uninstalled some package. Nov 09 18:56:33 AMrDan: no, android studio Nov 09 18:56:59 AMrDan: it was fine last night, was smooth running appes less than 10 sec boot up. Nov 09 18:57:20 hello Nov 09 18:57:25 I have an IntentService which is started when a GCM message arrives and downloads updates from the server. how do I signal the application to update the UI from that service (if it's currently running)? Nov 09 18:57:52 Cervantes, reboot the AS or even your computer to see if thats something related to memory issues Nov 09 18:58:04 greetings :) say I have re-compiled the fairphone launcher with a couple of modifications. it is installed in /system/app. I have a different certificate, so I cannot just update it. Would it work to just remove the original apk, move my apk into /system/app, then reboot? Nov 09 18:58:06 Cervantes, try the AS first .. course Nov 09 18:58:17 AMrDan: ok Nov 09 19:02:59 Cervantes, how's that dude. Got it? Nov 09 19:07:57 AMrDan: wait, updating the package Nov 09 19:12:10 So how stupid am I if I let people from this channel beta test? it is not exactly angry birds I have here, just a decent hobby game Nov 09 19:12:29 reverse engineering to get the source, is that fairly easy? Nov 09 19:13:50 success: Yes, don't worry about it Nov 09 19:14:14 well if it is something to worry about asking here is pretty stupid hehe Nov 09 19:15:00 cliffreich_, i can tell you waht engine im using. my own crap one with no opengl Nov 09 19:15:06 oh well it is not crap Nov 09 19:15:12 its java, it is compiled to byte code, best you can do is obfuscate Nov 09 19:15:14 but not using opengl is not for serious games Nov 09 19:17:50 AMrDan: ok, it was the problem with package, i update all the package. And now every device can boot, I even has no problem with memory on 5.0 Nov 09 19:18:44 AMrDan: However, I was testing with landscape layout on 4.4 and AVD 4.4 has bug with landscape where it stays portrait when i rotate. Nov 09 19:19:23 AMrDan: i thought lollipop(5.0) has no problem with this. But it seems landscape mode is also not working on 5.0 Nov 09 19:25:16 Cervantes, can't help you with that. I have the same problem especially when I use the camera Nov 09 19:27:57 so does it go for released apps as well that they can be reversed easily? Nov 09 19:28:46 AMrDan: ok, np. Nov 09 19:33:24 success i saw that there is an IDE to reverse APK. proguard is the only thing i use Nov 09 19:33:38 success: Yep, you can decompile anything under the sun, note that it won't be a 1:1 copy of the source code however, and with obfuscation it'll be like reading your facebook statuses in pre-modern english Nov 09 19:35:49 success: I recommend an app called Show Java on the play store, open your app with it Nov 09 19:35:57 Compare the results to your source code Nov 09 19:37:02 ok so my protection is that if people would copy they would choose something else to copy... Nov 09 19:38:32 Your peace of mind should come from the fact that the majority of knock-off apps have ~1 download on the play store and are ripped by witless people Nov 09 19:38:35 if people choose you to copy then you are such a success that youve already made your millions Nov 09 19:38:46 And are smothered in ads Nov 09 19:38:53 Wow, that Show Java app, when run against my app, gives me practically my source code back. ;o Nov 09 19:38:55 yes but if you havent released yet... Nov 09 19:39:12 TacticalJoke: Hehe shit Nov 09 19:39:16 Tweak your proguard settings Nov 09 19:39:24 but, but, but Nov 09 19:39:46 lol Nov 09 19:39:54 Haven't used Proguard yet. Might do it before release. Nov 09 19:40:01 ProGuard* Nov 09 19:44:16 using android studio, the apk is stillthe one found under /bin/ ? Nov 09 19:44:20 Hmm, this app doesn't let us see just the dexcode. Nov 09 19:45:16 I guess I can use 'dexdump'. Nov 09 19:52:01 Okay, dexcode is hard to read. Nov 09 19:53:14 general java question: using a generic method how can i check if the generic parameter is some kind of list? Nov 09 19:53:25 there is an online web called decompile apk or something, i checked my app and it's all there but proguard did a good job. id be too lazy to try to understand all that for just my first app Nov 09 19:53:54 dnano91: instanceof Nov 09 19:54:51 Darklust: example for List and static void do(T listOrString)? Nov 09 19:55:24 dnano91: if (listOrString instanceof List) {} Nov 09 19:55:34 dnano91: Why are you wanting to do this? Nov 09 19:55:47 "List or String" sounds really weird. Nov 09 19:56:03 TacticalJoke: i need to pass a parameter that can be a single string or a list. Nov 09 19:56:16 Darklust: okay, so i don't really need the generic here Nov 09 19:56:17 A string or a list of strings? Nov 09 19:56:53 yes Nov 09 19:57:15 dnano91: Well, it'd have to be generic, or just an Object Nov 09 19:57:34 Couldn't you use varargs? Nov 09 19:57:57 Darklust: okay. i was thinking about using object Nov 09 19:58:12 TacticalJoke: if i'd knew what it is, then maybe Nov 09 19:58:34 Hello, I am getting these errors http://hastebin.com/sasaqacula.vbs anyone know how I can fix this thanks! Nov 09 19:58:57 I'm trying to find the official documentation. Struggling, for some reason. Nov 09 19:59:21 Varargs applies to an array of like-typed arguments signified by an elipses Nov 09 19:59:52 https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html Nov 09 19:59:52 It would be the difference between String[] and List Nov 09 19:59:56 The "Arbitrary Number of Arguments" thing. Nov 09 20:00:29 You wouldn't have the benefits of a Collection using that Nov 09 20:01:15 Either that or use overloading ("void foo(String)" and "void foo(List)"). Nov 09 20:01:28 Too much spaghetti code :p Nov 09 20:01:30 Or just have the List version and pass a List every time. Nov 09 20:01:43 A method that takes a parameter that can be either a String or a List just sounds bad to me. Nov 09 20:02:14 TacticalJoke: Meh. Nov 09 20:03:28 It defeats the whole "type system" thing. :p Nov 09 20:03:47 what is a good directory on linux to save my android-studio projects? how about /usr/local/android-studio ? Nov 09 20:03:48 I mean, we could declare *everything* as Object and just cast, but code would be horrible. Nov 09 20:03:53 or should I make a subdirectory and use that? Nov 09 20:04:12 bilb_ono: /home/you/android/ Nov 09 20:04:20 bilb_ono: /home/bilbobaggins/android-studio Nov 09 20:04:57 so I create that subdirectory? Nov 09 20:05:07 you can put them anywhere Nov 09 20:05:10 TacticalJoke: You're absolutely right in your observation, you wouldn't be utilizing the strongly-typed nature of the language Nov 09 20:05:18 don't call it android-studio though Nov 09 20:05:21 dnano91: If you want more advice, post code. :D Nov 09 20:13:47 are there any images that you can access through the android.R ? Nov 09 20:13:54 like stock images Nov 09 20:15:19 Any SDL developers? Nov 09 20:18:22 ChrisUK: Sure is, android.R.drawable Nov 09 20:18:59 In about 4 lines of code you can make an app that'll loop through them and show you what they look like Nov 09 20:19:18 Is there a way to return a value from a view? I am saving a game score in my view and I need it in the activity that calls the view Nov 09 20:21:02 gopirate: a textView? Nov 09 20:21:13 *textBox Nov 09 20:22:53 Mallot1: a surface view Nov 09 20:23:22 gopirate: Sorry man, I'm a beginner myself :) Nov 09 20:23:38 Mallot1: surface view is displaying the game and keeping score, I want to pass the score back to the caller activity then pass it to a new activity once the game is over Nov 09 20:23:55 cool. maybe someone else can help Nov 09 20:24:29 !Mallot1 Nov 09 20:24:45 * Mallot1 is a bot. he is a very cool one too. Nov 09 20:25:31 just kidding heh heh heh Nov 09 20:25:37 * Mallot1 is AFK Nov 09 20:26:18 does picasso cache to disk or only memory Nov 09 20:26:23 memory Nov 09 20:26:27 relies on http client cache Nov 09 20:26:30 for disk Nov 09 20:27:00 Yes. That. Nov 09 20:27:45 Disk caching is the job of the HTTP client because it can do things like conditional GETs, etc. which it is well suited for. Nov 09 20:29:11 Gotta go, data roaming! Nov 09 20:29:29 that is a terrible thing Nov 09 20:30:27 gopirate: You're asking about passing values between activities? Nov 09 20:30:54 TacticalJoke: Both, activities and from a view to activities Nov 09 20:31:26 JakeWharton i just found a java.lang.OutOfMemoryError for android.graphics.Bitmap.nativeCreate, is there a way to clear cache after the picasso spent certain amount of memory or something like that? Nov 09 20:31:36 To get data from a view, just findViewById and then getText or whatever. To get data from a launched Activity, call startActivityForResult and have the activity setResult. Nov 09 20:31:38 Currently I have an activity that sets the context view to a surface view. In the surface view I am keeping the game score. Once the game is over I want to pass the score back to the activity that called it and on to another activity to display it Nov 09 20:31:44 Though if you're passing stuff around all the time, it might be better to use globals. Nov 09 20:32:00 Android is one place where globals can be a Good Thing (because of the Activity lifecycle). Nov 09 20:32:02 cliffreich_ the cache has a max, and you can configure it Nov 09 20:32:16 Are globals kept between activities? Nov 09 20:32:21 but that's not your issue cliffreich_ Nov 09 20:32:26 They're kept for as long as the process is, I believe. Nov 09 20:32:32 cliffreich_ you're probably loading large images without resizing them first Nov 09 20:32:34 JacobTabak: I have unlimited international data. I just want to preserve the fast part. Nov 09 20:32:36 They get around the Activity-being-destroyed-on-rotation thing. Nov 09 20:32:42 cliffreich_ you should always use fit() or resize Nov 09 20:32:45 so if my app packahe is com.sj.xxx then it should be https://play.google.com/apps/testing/com.sj.xxx right? Nov 09 20:32:50 https://play.google.com/apps/testing/com.package.name Nov 09 20:33:06 it is not found there Nov 09 20:33:22 success you will get a 404 if your'e not opted into the beta Nov 09 20:33:36 and signed in to your google account Nov 09 20:34:27 gopirate: By "globals", I mean "static fields in some class", of course. Nov 09 20:34:27 i send the link to my other email which is in he group and get the message that there is nothing here (Sorry - nothing to see here. Nov 09 20:34:28 There may be several reasons: Nov 09 20:34:28 The app you’re looking for doesn't exist Nov 09 20:34:28 or Nov 09 20:34:28 the app developer is not currently running a test Nov 09 20:34:29 or Nov 09 20:34:33 you are not eligible to participate in the testing program. Nov 09 20:34:35 If you received the link to this page from someone, we recommend you contact them for more information. Nov 09 20:34:38 oops Nov 09 20:34:42 JacobTabak yes thats what i thought so i pulled a new update with a fixed size for images, but was a little bit worried about the default limit as my app easily gets 80mb after some time Nov 09 20:35:26 success as i said before that user needs to be opted in to your beta and signed in to the correct google account Nov 09 20:35:48 why does your app get so big? Nov 09 20:36:28 images is the only thing it does, thats why i'm trying to find how picasso cache the images Nov 09 20:36:34 look at the source Nov 09 20:37:00 The cache is only 1/7th of heap Nov 09 20:37:03 https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/LruCache.java Nov 09 20:37:10 So if you're OOMing you have other problems Nov 09 20:37:19 TacticalJoke: Wouldn't I need to then pass the class around between activities? Nov 09 20:37:29 gopirate: No. Nov 09 20:37:46 textView.setText(GlobalHolder.someStaticField); Nov 09 20:38:24 (I don't like the "GlobalHolder" naming, or the direct field access, personally, but that's just to make things clear here.) Nov 09 20:38:51 TacticalJoke: I see... Ok I will look into it Nov 09 20:39:14 opted in = I added him? Nov 09 20:39:17 TacticalJoke: thanks Nov 09 20:39:22 gopirate: Unfortunately, because Android likes to kill activities a lot, I've come to the conclusion that globals are sometimes the lesser evil on Android. Nov 09 20:39:26 I added the user and he is signed in to the correct account Nov 09 20:39:30 In fact, sometimes they are significantly less evil than anything else. Nov 09 20:39:33 Any time. :) Nov 09 20:40:09 TacticalJoke: yea, I've been taught and seen that globals are bad design, but it seems like the best choice for something like a score or game state Nov 09 20:41:29 JacobTabak JakeWharton: it's the first time it goes OOM, i guess that it may spend more as long as the OS give it more memory Nov 09 20:41:50 hey guys, is there some kind of rule for native function signature? Nov 09 20:41:52 also, just saw that the crash came with a device with 1% battery heh http://imgur.com/ONwUrEa Nov 09 20:41:58 gopirate: I don't know anything about SurfaceView, though, so what I'm saying might or might not apply. Nov 09 20:42:03 Or about the exact nature of your game. Nov 09 20:42:20 from* Nov 09 20:43:54 i hope the update with fixed size for big images will deal with this Nov 09 20:44:27 oh Nov 09 20:44:32 im blind Nov 09 20:44:40 I'm gonna rename my app before release. I have like 20 active branches. This should be fun. Nov 09 20:44:48 (Local, secret branches.) Nov 09 20:45:04 Though "hg addremove --similarity" is awesome, so it shouldn't be too painful. Nov 09 20:52:59 when I am unzipping android-studio into an appropriate place (like /usr/local), should I need sudo to do so? Nov 09 20:53:44 uh Nov 09 20:54:02 depends on your permissions and what the place is. Nov 09 20:54:47 Mavrik, well I apparently messed up permissions on my last try installing, so this time I am trying to do it "right". I want it so that I can access all features of android-studio with my user, and don't have to run it with sudo. I am putting it into /usr/local Nov 09 20:56:04 well, you'll certanly need sudo to move anything to /usr/local Nov 09 20:56:19 since it's 755 on most systems Nov 09 20:56:33 Mavrik, is /usr/local an ok directory to put android-studio in? will it make it so that I can only run whats inside with sudo? Nov 09 20:57:19 uh Nov 09 20:57:32 <[Saint]> It should eliminate the requirement for sudo entirely. Nov 09 20:57:46 <[Saint]> I'd start looking at some basic unix knowledge first. Nov 09 20:57:52 <[Saint]> Else you'll have a REALLY bad time. Nov 09 20:58:53 [Saint], I do have some basic unix knowledge. Are you saying that putting it in /usr/local will eliminate the need for sudo. Or do I manually change the permissions on /usr/local ? Nov 09 20:59:37 <[Saint]> The former. Nov 09 21:08:15 you should absolutely NOT need sudo for android studio or your projects Nov 09 21:08:16 bilb_ono: Nov 09 21:27:33 Does anyone have an opinion about Titanium Studio? i.e. using it instead of coding with straight java (and objective C for iOS)? Nov 09 21:29:17 I've read that for two apps to have the same sharedUserId, they need to be signed with the same key. Does this also apply to apps signed with the platform key? (ie. can a platform app share a UID with any other app?) Nov 09 21:29:45 x0rs: It's the RC Cola of mobile client development. Nov 09 21:29:53 when I download android studio for linux from https://developer.android.com/sdk/installing/studio.html should it include the android sdk or do I have to download that separately Nov 09 21:31:51 bilb_ono: I'm not sure, but I think they stopped including the Android SDK in Android Studio downloads. Nov 09 21:33:22 TacticalJoke, thats whats confusing to me. Now its a .zip file it seems. The only place I can find the sdk download, it says its for Eclipse: https://developer.android.com/sdk/index.html Nov 09 21:34:14 I see "GET THE SDK FOR AN EXISTING IDE". Nov 09 21:34:15 does anyone know why this won't build correctly? http://pastebin.com/Btp34TVc Nov 09 21:34:50 TacticalJoke, ah yeah im an idiot though I see it now. thanks Nov 09 21:35:41 On , though, I see "Download Android Studio [...] with the Android SDK [...]". Nov 09 21:36:30 TacticalJoke, when I do that, it gives me a zip file which does not seem to include the sdk Nov 09 21:36:42 <[Saint]> JakeWharton: hahahahahaha....that was hilarious. Nov 09 21:36:51 Okay. Maybe they just haven't updated the web page. Nov 09 21:37:03 TacticalJoke, but the "get the sdk for an existing ide" seemed to work, at least it give me a tar Nov 09 21:37:12 <[Saint]> Kinda gives RC Cola an even worse name, though...I mean, its awful shit, but, its no Titanium Studio Nov 09 21:37:29 <[Saint]> At least RC Cola has some benefit to human life. Nov 09 21:37:36 mmm delicious remote control cola Nov 09 21:40:19 TacticalJoke, would I put that sdk into the same directory that android-studio is in? or inside of android-studio? Nov 09 21:40:20 I think Titanium has benefit, it's just so absolutely apparent that it's a second-class product Nov 09 21:40:54 at my last job we had two programmers total. I wrote a web app in a responsive nature and recommended something like Titanium to package it as an app Nov 09 21:41:19 it was a highly specialized thing, but with two developers you can't really write an app on 3 mobile platforms Nov 09 21:41:25 bilb_ono: I think it makes sense to keep the SDK out of the Android Studio directory. Nov 09 21:41:39 An IDE is just a tool people use. It should be optional. It shouldn't "own" the SDK. Nov 09 21:42:05 TacticalJoke, so if I have android-studio in like /opt, I could put the android-sdk in to opt as well and point to that when I am trying to use it? Nov 09 21:43:03 bilb_ono: i have ~/android/sdk/, ~/android/studio/, and ~/android/projects/ Nov 09 21:43:28 JakeWharton, thank you, that is very helpful. I will try that setup Nov 09 21:43:45 On a side note, isn't "/opt" really old school? Nov 09 21:44:30 TacticalJoke, perhaps? I read that from a stack overflow q. I will probably make an android folder like JakeWharton did Nov 09 21:45:03 after trying long and hard to make things like studio "global" for all users I gave up and just keep stuff in my home folder Nov 09 21:45:16 also I'm the only user on my system... so making things global was doubly stupid Nov 09 21:54:08 should I have to change permissions for the sdk tools folder? when I try and run the sdk manager I am getting this error: ProcessNotCreatedException: Cannot run program "/home/alex/android/android-sdk-linux/tools/android": error=13 Permission denied Nov 09 21:54:24 i recall having to goof with permissions on linux Nov 09 21:56:35 is it save to install the new osx version yet Nov 09 21:56:38 safe* Nov 09 21:56:40 yosemite Nov 09 21:57:36 no, never Nov 09 21:58:31 lol Nov 09 21:58:38 that's harsh Nov 09 21:59:28 <[Saint]> bilb_ono: no - you should not Nov 09 21:59:58 yeah I did the global thing too, set up a devs usergroup and gave it read/write to /ide and /sdk Nov 09 22:00:05 then never added any other users Nov 09 22:01:07 JacobTabak: i haven't updated yet and probably won't unless i "have" to. read about too many people where things have broken Nov 09 22:01:20 regan: you around? Nov 09 22:01:23 [Saint], now that I am getting that error, would it be a mistake to manually go in an change permissions so that it is accessible? would that mess up anything else? Nov 09 22:03:02 bilb_ono: perms should be 755 Nov 09 22:04:07 bankai_au, is that for the tools folder itself within the sdk? Nov 09 22:11:20 just that binary Nov 09 22:16:29 JacobTabak: no (re: 10.10) Nov 09 22:16:38 ah Nov 09 22:17:02 if you downloaded the tgz from google it should have the right permissions when extracting Nov 09 22:17:09 i want a nice library for storing objects in shared prefs Nov 09 22:17:26 if there isnt one, then i will make one Nov 09 22:17:30 but i hope there is Nov 09 22:17:31 Back in Soviet Russia, libraries stored YOU in shared prefs Nov 09 22:18:05 anyone know of one? Nov 09 22:20:36 DontDoThat.jar Nov 09 22:21:09 can't imagine why not Nov 09 22:21:20 because you're nesting serializations Nov 09 22:21:28 shared prefs are XML Nov 09 22:21:45 'im thinking about like... a list of strings Nov 09 22:21:52 so you're basically saying, I want to Gson my objects into a string to put in a Map to serialize to XML to write to disk Nov 09 22:22:05 yea thats exactly what i want Nov 09 22:22:08 no Nov 09 22:22:13 just gson to disk Nov 09 22:22:28 shared prefs are thread safe and multi process thread safe though Nov 09 22:22:43 plus the built in caching Nov 09 22:22:50 seems like getting a lot for free Nov 09 22:22:58 it's not free Nov 09 22:23:08 free in terms of developer effort Nov 09 22:23:10 you are getting a lot, but it's not at all free Nov 09 22:23:24 i mean, WebView is getting a lot for free then... Nov 09 22:23:24 i honestly don't care how its implemented Nov 09 22:23:35 but i want way to store objects to disk without any boilerplate Nov 09 22:23:41 and without worrying about threading etc Nov 09 22:23:48 any recommendations? Nov 09 22:24:13 im thinking like... simple objects, recent searches etc Nov 09 22:24:37 ideally cached in memory after retrieved the first time Nov 09 22:25:24 maybe AtomicFile + gson + simple wrapper class Nov 09 22:25:36 question regarding configurationchange and the emulator... does it support the event and if so how come its not firing for me Nov 09 22:26:44 ...using a 4.4 emu android manifest configchanges has been added for orientation|hiddenkeyb|screensize Nov 09 22:26:50 is there a hot key in as to pop up the variables pane? Nov 09 22:28:25 main.xml root element is a relativelayout id'd it but does not show up under r.id so ive tried to cast r.layout.main to relativelayout so in configchange method i can access setbackgroundcolor... app crashes under a 4.2 emu orient change. Nov 09 22:34:23 Is anyone here an Android developer? Nov 09 22:34:32 me! Nov 09 22:34:48 Is anyone here an SDL developer? Nov 09 22:34:56 not me! Nov 09 22:34:59 are you just doing a survey or do you have a question Nov 09 22:35:12 aw Nov 09 22:35:15 heh heh Nov 09 22:35:29 bankai_au: I have a question Nov 09 22:35:36 About ndk-build Nov 09 22:36:31 There's something wrong but I don't know what. Here's all the info: http://pastebin.com/Btp34TVc Nov 09 22:36:43 bankai_au: ^ Nov 09 22:41:28 I can get the avd manager to show up but not the sdk manager. If /tools/android had to be given permissions to run the avd manager, what binary do I need to give permissions to run the sdk manager? Nov 09 22:45:28 well nvm. I did chmod -R 0755 android-sdk-linux and now I can launch it Nov 09 22:46:32 that made everything executable Nov 09 22:46:53 i guess it doesn't really matter, but, yeah Nov 09 22:47:57 I still can't install packages though. I keep getting: Failed to create directory /home/alex/android/android-sdk-linux/temp . It doesn't say why its failing from what I can tell Nov 09 22:48:31 lasserix_, are you there? Nov 09 22:53:30 when you ls -l who is the owner and group of the folder? Nov 09 22:53:39 you might want to chown -R you:you android-sdk-linux Nov 09 22:55:12 JakeWharton, you mean for the android-sdk-linux folder? it doesn't seem to list a user. for android-studio, ls -l shows alex (me), but android-sdk-linux says 53856 in that place Nov 09 22:55:48 chown it back to you Nov 09 22:56:22 you really do not want to start chucking chmod -R 755s around. It shows a bigger issue. All you should need is to install it and add it to your path . something along the lines of this. https://gist.github.com/38956cbf1fe2d58a36a0 . The fact its not working suggests to me you should stop and clean up before going any further. Nov 09 22:57:24 <[Saint]> Yeah...I already mentioned that some basic unix understanding is required here unless one wants to continually bash their head against such trivial issues. Nov 09 22:57:26 I would suggest you delete the lot and reinstall/untar/unarchive the sdk properly as you the user. Nov 09 22:57:38 <[Saint]> Yep. Nov 09 22:57:53 it really is trivial so long as you know how to modify the PATH. Nov 09 22:57:58 <[Saint]> And investigate how this happened in the first place. Nov 09 22:58:09 and if you dont then go learn how to do it. Nov 09 22:58:48 <[Saint]> rgr: you shouldn't even need to modify the path in theory. Nov 09 22:58:58 <[Saint]> Just drop it in a location that's already in the path. Nov 09 22:59:08 that would be really tupid Nov 09 22:59:09 stupid Nov 09 22:59:30 rgr, so by delete the lot, you mean delete the whole android-sdk-linux folder. then when I am untarring it into the same place I should not need sudo to do so, correct? Nov 09 22:59:32 <[Saint]> If you say so. That's what such directories are for dude. Nov 09 22:59:38 keep the android hierarchy the same. Nov 09 22:59:56 no its not. You want to keep the android tools seperate in the sdk/tool hierarchy. Nov 09 23:00:17 <[Saint]> And why is it that you believe that this would not be the case? Nov 09 23:00:19 bilb_ono: as I thought. What are you using sudo for? Nov 09 23:00:30 <[Saint]> You seem to have a fundamental misunderstanding. Nov 09 23:00:41 [Saint]: because the tools folder is not on the default path. Thats why. Nov 09 23:01:05 * [Saint] sighs Nov 09 23:01:37 No sighs about it. I have no idea what you're talking about unless I've missed some sort of pat magic. where you unatr the sdk tools is NOT on the path. Nov 09 23:01:51 unatr=untar etc Nov 09 23:01:58 I downloaded a folder called android-sdk-linux.something.tgz. I want to untar it to /home/alex/android. So tar -xzf android-sdk-linux.something.tgz -C home/alex/android Nov 09 23:02:11 bilb_ono: google. Its everywhere. Nov 09 23:02:12 i need help on change of backgroundcolor on rotation Ctr+f11 Nov 09 23:02:30 and *dont* use sudo. Nov 09 23:02:48 most of the results I see by googling suggest to "run as administrator. But I feel that is what got me into trouble in the first place Nov 09 23:02:59 no one tells you to run it as administrator. Nov 09 23:03:05 (or if they do they are idiots) Nov 09 23:05:51 (and it IS what got you into trouble in the first place : all the android tools are installed as you for you - no admin needed) Nov 09 23:07:34 Do most users not update their Android version on their phone, so older phones almost surely has a lower API? Nov 09 23:08:20 success: how long is a piece of string. Most people who can update their sw over the air. They can only do that if their phone mfr makes the updates available. many old phones dont get updates. Nov 09 23:08:22 i think it's more carriers/manufacturers won't offer the update Nov 09 23:08:48 <[Saint]> Right. Nov 09 23:09:19 <[Saint]> If they offered updates in a timely fashion, it'd be a lot harder to convince you to "upgrade" to the next piece of shit when the contract rolls over. Nov 09 23:09:41 but it is possible to update yourself? or you have to root then? Nov 09 23:09:54 There is that form of conspiracy theory. The other side is that Android moves so fast that older HW just gets left behind. Nov 09 23:09:55 in a way it is good, it kind of offers a way to shut out weak phones Nov 09 23:10:05 <[Saint]> Many devices don't even _have_ anything to update to. Nov 09 23:10:08 <[Saint]> Rooted or not. Nov 09 23:10:34 <[Saint]> A large portion of devices hit the market with absolutely zero intention of ever getting an OS update. Nov 09 23:10:39 success: this is a development group. Not a SW update group! There are oodles of forums out there with phone specific info of the type you are asking. There are also unofficial ROMS for older HW. Nov 09 23:10:58 <[Saint]> ...for some. Nov 09 23:11:12 obviously only for some. Nov 09 23:11:53 But along that trait, Im unaware of any "large portion" of devices that never get *any* SW updates. But I'll grant you poetical license ;) Nov 09 23:12:06 bilb_ono: good luck. back tomorrow. Nov 09 23:35:50 is there a way to let Android Studio generate all sorts of drawables based on 1 large image input? Nov 09 23:49:06 G1eb: http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html Nov 09 23:49:30 Should I refactor my code changing ListView w/ RecyclerView ? Nov 09 23:55:49 bankai_au this should be in the next release Nov 09 23:56:03 adding images to the folders is a pain Nov 09 23:56:33 bankai_au: I have a question Nov 09 23:58:53 thanksthere's something wrong but I don't know what. Here's all the info: http://pastebin.com/Btp34TVc bankai_au Nov 10 00:04:45 God, Plants vs. Zombies 2 is 478 MB. Nov 10 00:06:43 On dial-up, that download would've taken a good few days. Nov 10 00:09:37 Back in 1995, Eye of The Beholder was about 5mb Nov 10 00:09:48 It about took up a majority of the free space on the hard disk Nov 10 00:14:53 Darklust: Kings quest. 15 floppies. :P Nov 10 00:17:01 Yep I remember that too Nov 10 00:18:15 I still have my 5 1/4 floppies for Bards Tale Nov 10 00:45:10 Hello Folks new Android channel, #android-os , everyone is welcome! Nov 10 00:53:37 this is what i came up with JakeWharton http://pastebin.com/nNMmFYk3 would love thoughts/feedback Nov 10 01:06:53 ack! I just don't understand. I was able to make a connection using HttpURLConnection a while ago, but now I'm getting EOFException when I call getResponseCode. I didn't change anything, so I don't know what's causing this. Nov 10 01:10:03 hey guys, does anyone know how to encode PCM to AAC on the fly with the native MediaCodec Nov 10 01:16:44 actually, I'm seeing that the stacktrace from my emulator is saying the exception comes from com.android.okhttp.internal.Util.readAsciiLine, but when I look in Android 4.4's sources, I don't find any com.android.okhttp package. Nov 10 01:18:29 does anyone know how to get the ip address of the access point the device is connected to? using getIpAddress using WifiManager and WifiInfo gives me the internal ip address of my device, rather than the external ip address of the access point, which is what im looking for... Nov 10 01:21:37 i also tried using dhcpInfo, but all these methods return internal ips Nov 10 01:25:20 mantazer: When you say you tried DhcpInfo, did you also try the gateway field of DhcpInfo? Nov 10 01:25:32 herpderphurr: yes, the gateway returns an internal ip Nov 10 01:25:37 oddly Nov 10 01:26:36 herpderphurr: maybe i could just make a web service call to some service that returns the ip of my router? Nov 10 01:26:40 idk Nov 10 01:29:22 not a clue then. Any idea on my issue? (EOFException when calling getResponseCode) Nov 10 01:29:48 I'm wondering if it's an emulator issue. I'll try debugging on a few devices after dinner. Nov 10 01:30:18 herpderphurr: what class is this? Nov 10 01:30:29 some http class? Nov 10 01:31:56 I'm using the built-in HttpURLConnection, but the exception comes from a class in the com.android.okhttp.internal package. Nov 10 01:32:17 I couldn't find that package anywhere in Android's sources, so I'm wondering if it's an emulator thing. Nov 10 01:32:17 My book app is getting 46 cents a click today in the USA, cool Nov 10 01:32:42 and 53 cents a click in Germany Nov 10 01:32:49 herpderphurr: maybe try getResponseMessage? Nov 10 01:33:11 my hunch is that if youre getting an EOFexception, there may be something wrong serverside Nov 10 01:34:07 How many clicks? Nov 10 01:39:47 chris banes is going to have his hands full when he comes into work monday XD Nov 10 01:40:24 44 US clicks, 20 German clicks Nov 10 01:41:34 Ologn: every time someone clicks an ad you get 46 cents? what do you normally get (if this is some sort of campaign)? Nov 10 01:43:13 success, last Sunday I got 22 cents a click from the USA Nov 10 01:43:15 g00s: Why? Nov 10 01:43:19 so if libgdx builds to iPhone that is one huge reason to use it over andengine... Nov 10 01:43:47 success, I'm not 100% sure why it is higher today, it may be a campaign, or more people bidding... Nov 10 01:44:30 Unity vs libgdx, pros and cons? Nov 10 01:45:04 i would get more money with street begging than admob. im glad i love programming :^) Nov 10 01:45:17 xD Nov 10 01:45:26 ty Tomski, managed to build and launch app on my phone Nov 10 01:46:02 Hoiw much users do you really need to make out a living out of an app? Nov 10 01:46:28 i never ever click an ad, have only done so once on purpose I think, maybe 5 times by accident Nov 10 01:47:44 success, 10 million total installs, with maybe 4 million still on phones, you may be able to live on that Nov 10 01:47:53 you show 1000 ads -> 1 click, 1 click = 20cent(?) =0.2$. I need 10000$/month to live on it. 10000/0.2*1000 = 50000*1000=50million Nov 10 01:49:30 success, my click through rate is usually 0.5% to 1.5%, so the click-through rate is higher...it depends on the app though, an out-of-place ad on a game app might have a lower CTR Nov 10 01:50:43 yeah, if you have a football app then maybe you have betting ads, something like that could have higher click through rates i guess Nov 10 01:50:49 if the ads match the app Nov 10 01:51:38 or those annoying full screen ads but youll probably lose users Nov 10 01:51:58 interstitial Nov 10 01:53:01 yeah i hate those... Nov 10 01:57:54 g00s is there a good guide for recyclerview? Nov 10 01:58:39 cliffreich_ i've only found 2 Nov 10 01:58:41 http://www.grokkingandroid.com/first-glance-androids-recyclerview/ Nov 10 01:58:48 http://www.grokkingandroid.com/statelistdrawables-for-recyclerview-selection/ Nov 10 01:58:53 ok ty Nov 10 01:59:07 is LocalBroadcastManager a system API, or is it only in the support lib? Nov 10 01:59:12 Thorn support lib Nov 10 02:00:29 okay thanks Nov 10 02:19:08 What kind of speedup can you expect going from SurfaceView/canvas to OpenGLES2.0? I draw background bitmap, some shapedrawables and some smaller bitmaps. Nov 10 02:19:17 my rendering takes 16-19ms Nov 10 02:19:26 (updating the game only takes 1ms) Nov 10 02:24:42 type erasure can suck a big one Nov 10 02:28:13 hm, when doing an sqlite query on a background thread, is it still best practice to call cursor.getCount() (on bg thread) to ensure the first window is filled ? Nov 10 02:28:45 this is long time-ago secret knowledge :) Nov 10 02:30:25 "the query is not truly executed against the database until data is actually needed. A call to getCount() is the likely first statement that will trigger the actual query." Nov 10 02:33:16 from 2010 :/ wonder if it still applies Nov 10 02:41:59 from CursorLoader : // Ensure the cursor window is filled. cursor.getCount(); Nov 10 02:42:04 so i guess so :) Nov 10 02:44:35 g00s where is that documentation? Nov 10 02:47:30 speaking of cursors i have to do something with contacts Nov 10 02:47:35 sigh. **** ENDING LOGGING AT Mon Nov 10 02:59:59 2014