**** BEGIN LOGGING AT Sun Mar 01 02:59:59 2015 Mar 01 03:02:29 so, is java the only language thatcompiles to ART ? Mar 01 03:03:20 There are other JVM-targeting languages that can be used (e.g., Kotlin). Mar 01 03:10:00 ...android doesnt have a jvm Mar 01 03:10:29 it had dalvik and now it has art Mar 01 03:11:05 until 4.4.x is gone, it will have both :D Mar 01 03:11:16 I know it doesnt share the java api, so Im wondering if other languages can compile to art Mar 01 03:11:17 dalvik is a vm Mar 01 03:11:26 yes, but its not a JVM Mar 01 03:11:27 Storyteller: I'm not sure that's right. Android kinda does have a JVM. In any case, the point is that JVM-targeting languages can be used. Mar 01 03:11:39 thats why its called the DVM Mar 01 03:11:41 ok, you cant run java code on android Mar 01 03:12:03 youuse a java derivative, with a different api and different bytecode Mar 01 03:12:11 right? Mar 01 03:12:16 yea, but any language targetted to java bytecode can be dx'ed into dalvik bytecode Mar 01 03:12:27 ok, good to know Mar 01 03:12:59 I dont mind java in general, but what version of java is used for adroid, where did they fork? java 7? java8? Mar 01 03:13:24 and how hard would it be to make a language from scratch that compiles to ART Mar 01 03:14:29 Storyteller: the fact you are asking that probably means your not ready to do it Mar 01 03:14:45 Id gather that Mar 01 03:18:52 Storyteller: It might help to state why you're asking all this. Mar 01 03:21:16 I just bought 1080p tv (i havent owned a tv in 10 years, watch a lot of netflix), I bought a slightly newer computerthanmine for development, Im getting an android tv box, imgoing to make games for android tv Mar 01 03:21:33 so Im selecting what platform to use to do so Mar 01 03:24:49 wouldn't you be looking at stuff like unity, libgdx, etc ? Mar 01 03:25:58 for some things. Id like to simplify development. for a large project, especially 3d, unity is a good choice. Mar 01 03:30:50 * g00s still skeptical of android / smart TVs ... this HW has a used-life of 6-8 years, not in jive with android sw lifecycle at all Mar 01 03:31:08 also why i wouldn't want android in my car Mar 01 03:33:00 how often do you buya tv? Mar 01 03:33:04 "The engine will switch back on after you've watched this 30-second advertisement." Mar 01 03:33:19 better question, how often do upper middle class people buy tvs? Mar 01 03:33:51 the # i read was average lifespan of TV is 6 years or more Mar 01 03:35:16 TacticalJoke "my windshield wipers are janky" Mar 01 03:38:43 So ... fixed, swipeable tabs. How would we go about migrating two activities into fragments and doing this? Mar 01 03:40:51 ok, so how often do you replace your console? Mar 01 03:41:03 TechGeek01: Google has all the answers. Mar 01 03:41:26 http://developer.android.com/training/implementing-navigation/lateral.html Mar 01 03:41:51 Do I need to work with the support library then? Or is that only for certain API levels? Mar 01 03:49:01 actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); Mar 01 03:49:12 seNavigationMode() is deprecated. Ideas? Mar 01 03:50:52 It's deprecated but it'll still work. Mar 01 03:51:25 I don't know what the alternative is, honestly. I've googled out of curiosity and there doesn't seem to be a simple answer. Mar 01 03:51:27 so, android is mostly arm right, what is the biggest chipyou can get for android these days? Mar 01 03:51:35 (I'm not using tabs, so I don't have to put the effort in to find out.) Mar 01 03:51:36 Same with addTab() and newTab()? Mar 01 03:51:42 tegra? Mar 01 03:51:49 I guess so; not sure. Mar 01 03:52:16 apparently fragments Mar 01 03:52:17 TechGeek01: Basically the alternative involves manually implementing the tabs. Mar 01 03:52:24 it changedagain with material design Mar 01 03:52:43 Oh God. What does manually implementing them entail? Mar 01 03:53:07 Also, it failed. Mar 01 03:53:34 I think using a ViewPager and then using something to visually present the tabs (maybe a SlidingTabLayout derivative). Mar 01 03:54:35 This provides some answers: https://www.google.com/search?q=toolbar+tabs+android Mar 01 03:56:11 If I were using ActionBar and I wanted tabs, I'd probably use the deprecated methods. Mar 01 03:56:45 Though I haven't seen how this looks on 5.0, so I'd have to check that first Mar 01 03:57:27 Unless it's Holo, in which case it should look the same. Mar 01 03:58:22 IIRC, we have one guy who will be running on Lollipop, but the rest of us are all Holo Mar 01 03:58:37 holo? Mar 01 03:59:46 Storyteller: Work on Dalvik and the Android Java libraries started in the late 2006, so between Jdk5 and 6 Mar 01 04:01:09 TechGeek01: Yeah, but your app gets to decide whether it uses Holo or not. Mar 01 04:01:29 Then yeah, we're using Holo Mar 01 04:01:44 Either way, all the official documentation is broken Mar 01 04:02:06 http://developer.android.com/training/implementing-navigation/lateral.html is far from working on API level 15 Mar 01 04:05:17 What makes you think it doesn't work? Mar 01 04:05:49 There are errors everywhere that prevent it from compiling Mar 01 04:06:43 hmm, ok Mar 01 04:07:13 looking at lots of set top boxes Mar 01 04:08:29 Can you give an example of one of the errors? Just curious. Mar 01 04:11:15 Cannot resolve symbol "activity_collection_demo" Mar 01 04:11:57 same for setArguments(), fragment?_collection_object, getArguments(), etc. Mar 01 04:15:47 I haven't ever bough a TV in my life Mar 01 04:15:57 not for myself at least Mar 01 04:17:16 so.. how different android-java vs regular-java ? Mar 01 04:17:32 none Mar 01 04:17:42 they are the same in syntax and and such, but the api is very different right? Mar 01 04:17:46 just some of the runtime Mar 01 04:18:03 only the UI is different Mar 01 04:18:13 everything else is effectively the same Mar 01 04:18:17 ok, its been years snce I used java, is there a book on android java thats recommended? Mar 01 04:18:29 ok, so almost any book on java then? Mar 01 04:18:48 I will begin development in about 2-3 weeks Mar 01 04:19:01 yes, tij and jcip are good choices to start Mar 01 04:20:03 Storyteller: For all intents and purposes, it's 100% syntactically Java and a bit less than 100% for libraries (no Swing, no AWT and a few others) Mar 01 04:20:10 I have a series of 3-4 games i will be developing to build up. Id like to get a breakout game, a match game, etc Mar 01 04:20:17 hi, all, i'm writing a small custom cross platform web app, and i need to be able to write data to a text file on an SD card plugged into the tablets we will be using. The site is 98% php. is it just a matter of using fopen() to point to the sd card directory? Mar 01 04:20:25 ok, it should be ok then Mar 01 04:20:51 and if I really dont like using java, I can use C# in unity, or gamemaker Mar 01 04:20:52 no swing, no awt, so no UI, and some javax stuff Mar 01 04:21:14 good deal then :) Mar 01 04:21:49 all jvm languages work on android as well Mar 01 04:22:02 with some differences in performance Mar 01 04:22:28 this: http://www.amazon.com/Android-Studio-Essentials-Belen-Zapata/dp/1784397202/ref=sr_1_11?s=books&ie=UTF8&qid=1425183371&sr=1-11&keywords=android+tv Mar 01 04:22:36 released in the last 30 days... Mar 01 04:27:36 I hate when news sites post about some YouTube video and don't link to it. Mar 01 04:27:41 I don't wanna read your words; I wanna watch! Mar 01 04:32:20 So I need to take a series of data values - an array, basically - and export it to somewhere where I can access that data later. How do we get that working? Mar 01 04:33:24 And actually, these arrays of data are each list items, so I need to be able to do things like editing one of them, or deleting one, later Mar 01 04:33:24 "Access that data later" could mean so many things. Mar 01 04:33:33 Here's the deal Mar 01 04:33:52 For our app (my robotics team, it's a scouting app), we scout matches Mar 01 04:34:19 Every time we scout a match, we save it, and I will generate an array of values from that form Mar 01 04:34:42 Then, it will need to be saved somewhere, where I can view that as a list Mar 01 04:34:59 There will be a list of matches, labeled by two specific values in that array Mar 01 04:35:17 And I need to be able to individually edit or delete these matches in that list Mar 01 04:36:27 So the arrays of data will need to be saved somwhere where that list will survive a restart Mar 01 04:37:43 save it wherever you want Mar 01 04:37:55 flat files, sqlite, prefs, etc Mar 01 04:38:46 Hey TacticalJoke you there? Mar 01 04:38:56 Yeah. Mar 01 04:39:19 I know this really isnt the channel for this... But I wanted to get your opinion on a ultrabook Im looking at Mar 01 04:39:50 heh Mar 01 04:40:00 that asus one looks nice Mar 01 04:40:02 I'm pretty clueless about hardware, but I'll give you my uninformed opinion if you want. :D Mar 01 04:40:20 UX305 Mar 01 04:40:22 Well I was about to grab the new Dell XPS, but I guess its having some problems with linux Mar 01 04:40:23 How about you guys take it to pm? Mar 01 04:40:23 Though I did use to know a little about desktops. Mar 01 04:40:46 pfn: Two things Mar 01 04:40:50 g00s you wanna join too? Mar 01 04:41:09 i'm on a 2009 MBP ... let me know what you guys decide ;) Mar 01 04:41:18 First, how would I go about creating an array for each dataset? Mar 01 04:41:55 Second, how can I save to a file? And then later edit that file? Mar 01 04:42:47 TechGeek01 look up tutorials on sqlite Mar 01 04:43:33 I can work with SQLite directly in Android? Mar 01 04:46:17 And SQLite is syntactically identical to standard SQL for things like web dev, correct? Mar 01 04:46:45 TacticalJoke how is the theming coming? Mar 01 04:47:07 I haven't done much lately. Been busy implementing features. Keep going off on tangents. Mar 01 04:47:16 Yeah Mar 01 04:49:37 Making my first TabView :D Mar 01 04:50:23 What are you using tabs for? Just curious. Mar 01 04:50:45 Something new that I dont think Ive told you about Mar 01 04:50:54 Wanna hear? Mar 01 04:52:40 TechGeek01: sqlite is a dabase, sql is a language. And yes, sqlite uses sql. Mar 01 04:53:53 Well, yeah. Tha Mar 01 04:53:57 That's what I meant Mar 01 04:54:23 Then I should be good there. I do a lot of web dev, so at least I have something familiar to me Mar 01 04:58:54 I can use SQLite in API level 15, correct? Mar 01 04:59:27 TacticalJoke http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android Mar 01 04:59:37 oops sorry, that was meant for TechGeek01 Mar 01 04:59:51 TechGeek01: You can use sqlite with API level 1 :) Mar 01 05:00:03 I figured as much, Cedric Mar 01 05:00:38 But the official Android dev page loads badly on slow internet, and it said API level 21 in the corner, before that changed. :P Mar 01 05:01:33 Well, guys, I'm out for the night Mar 01 05:01:36 TechGeek01 in the sdk manager, download the docs. although, i don't think they are searchable offline Mar 01 05:02:34 What was Android Studio's SDK manager under again? Lol Mar 01 05:20:25 nice, Bruce Schneier's new book is out tomorrow Mar 01 05:30:12 how do you get any work done reading so many books Mar 01 05:31:39 You get a lot of work done thanks to reading a lot of books Mar 01 05:33:02 there's a point of diminishing returns Mar 01 05:34:31 you get a lot of work done thanks to reading the right books Mar 01 05:55:22 pfn: you have a fave? Mar 01 06:05:41 for what, books? Mar 01 06:05:48 depends on subject matter Mar 01 06:07:53 how to change packagename/applicationId in Android studio without making a mess? Mar 01 06:08:38 how about project structure > app > flavours > applicationId Mar 01 06:09:05 Switch to the Project view (not the Android view) and use Refactor > Rename for each package. Mar 01 06:09:41 ok Mar 01 06:10:05 Also I guess you'll have to change the app ID separate (I don't have AS open right now to check). Mar 01 06:10:31 in that case Packages view is better Mar 01 06:13:01 ok everything looks fine. done successfully Mar 01 06:55:29 hey Mar 01 06:55:59 im a backend dev, anyone here looking for projects to work on for equity? i have a couple app ideas (that require a backend) that i think are pretty good Mar 01 06:56:23 lol Mar 01 06:56:36 g00s: ? Mar 01 06:56:55 tejasmanohar most here would say "cash or gtfo" Mar 01 06:57:14 we have our own projects to work on ;) Mar 01 06:57:35 and everyone has good ideas ;) Mar 01 06:57:39 alright Mar 01 06:58:15 not like full-time or anything, just side projects split equity but alright Mar 01 06:58:28 g00s: on a side note, are you looking for contract work? Mar 01 06:58:38 no Mar 01 06:59:15 kk. is it ok to scout for someone for contract work here as long as its only once in a long while and not spammy? Mar 01 06:59:26 some irc channels like #rubyonrails are fine w/ it, others arent Mar 01 06:59:48 tejasmanohar see the topic Mar 01 07:00:31 my bad Mar 01 07:03:54 Sup Mar 01 07:04:25 tejasmanohar: what apps Mar 01 07:06:00 Whats required to make a drawable object on android Mar 01 07:06:17 shmooz you have to be quicker :D Mar 01 07:06:21 For example, I have a class Person and person should render into a list view Mar 01 07:06:30 With certain display objects like a box Mar 01 07:06:31 text Mar 01 07:06:32 so on Mar 01 07:07:22 So I insert it into the LinearLayout as an object after setting it up, Any docs i can read on creating a custom object Mar 01 07:08:53 Hello, I'm trying to make a messaging app based on IRC (using jerklib for the protocol implementation), though my problem is that I can't seem to find a way to properly implement a daemon that listens for messages and adds them to the local message DB... Services seem to be useless to me since they imply that one knows that the work will return, though I want something that is more of a daemon... c Mar 01 07:08:59 an anyone help? Mar 01 07:09:07 *can anyone help? Mar 01 07:09:55 CBotulinum, I have done a full irc client in C++ Mar 01 07:09:57 if that helps Mar 01 07:10:04 on android? Mar 01 07:10:09 You just want an event listener for incoming messages Mar 01 07:10:16 Then put it into an array Mar 01 07:10:19 display the last Mar 01 07:10:46 If you want to get fancy you can create a message class Mar 01 07:10:47 a service can be long running and daemon-like-ish Mar 01 07:10:58 but will it work when the app is killed? Mar 01 07:11:08 or isn't in foreground? Mar 01 07:11:33 not when killed, but yes in bg Mar 01 07:12:19 so you're telling me that I can't implement a daemon in android... Mar 01 07:15:27 you could do a startForeground on a service, but this doesn't make it unkillable, just 'less likely' to be killed Mar 01 07:15:55 thanks for the info, I'll try to see if it works. Mar 01 07:16:55 I'm trying to understand creating a new task with launchMode="singleTask". I'm not able to see a difference between using this launchMode and not when launching an Activity within my app. Is there some test I can do to see a difference? Mar 01 07:19:40 i always mess that stuff up :( Mar 01 07:20:14 hey bankai_ any more adventures in kotlin ? Mar 01 07:21:25 I understand the concept of a task being a stack of related activities, but I can't seem to find an actual difference with simple testing. Hmm. Mar 01 07:30:08 anyone have opinions on libgdx Vs going with unity ? Mar 01 07:30:29 let the flame war begin Mar 01 07:30:35 I just want very nice shaders... and seems a pain with libgdx Mar 01 07:38:45 If I set android:clearTaskOnLaunch="true" for my main activity, launch a secondary activity, click Home, and go back to my app, it doesn't strip the task down to its root activity. Weird. The documentation says it should. Mar 01 07:38:55 I hate when stuff just doesn't work. Mar 01 07:42:02 so it brings you back to the secondary? Mar 01 07:42:08 Yeah. Mar 01 07:42:13 Trying to muster up the courage to root my phone Mar 01 07:42:24 And the secondary activity is launched in the same task as the main activity. Mar 01 07:42:50 wrenny #android-root for courage Mar 01 07:42:53 Is it hard now on android? Mar 01 07:43:09 TacticalJoke what are you wanting to achieve ? whats the purpose ? Mar 01 07:43:21 cause most of the time you shouldn't really need to bother Mar 01 07:43:22 Ffor Android L Mar 01 07:43:31 wrenny wrong channel Mar 01 07:43:49 Okay, this is weird. It works if and only if I set launchMode="singleTask" for the main activity *and* I launch my app from the icon (and not from the recent-tasks thing). Mar 01 07:43:53 K Mar 01 07:44:01 I don't see why I need to set singleTask for the main activity. Bizarre. Mar 01 07:44:19 Hello Mar 01 07:44:29 StingRay_: Oh, this is just for learning. Mar 01 07:44:37 I need to use libsuperuser with an application Mar 01 07:44:45 I've already written the code Mar 01 07:44:54 now, I've to build the app Mar 01 07:45:23 How can I include libsupersuser? Mar 01 07:45:37 -lsuperuser :) Mar 01 07:45:54 Have I to download the git repository? Mar 01 07:46:09 And how can I compile it? Mar 01 07:46:12 g00s, ? Mar 01 07:46:18 jk Mar 01 07:46:23 Any ideas? Mar 01 07:46:31 -s Mar 01 07:46:57 how'd you write the code that uses libsuperuser without linking it, then want to build. Did you just ignore all the calls using that lib that errored, and just kept trucking til build? Mar 01 07:47:31 I still can't see how to use the services... because I it seems that both an IntentService and a regular Service expect the task to END at some point and that they return something... Mar 01 07:47:59 intent service is for one offs, a service is in for long haul Mar 01 07:48:12 at this link: http://developer.android.com/tools/projects/projects-cmdline.html#ReferencingLibraryProject Mar 01 07:48:25 it's explained how to update the project Mar 01 07:48:28 with libraries Mar 01 07:48:29 I hate how so much of the Android documentation is pointlessly complicated. So many of these issues are really simple, but the documentation makes them appear almost insurmountably hard to grok. Mar 01 07:48:57 CBotulinum depends on the starting condition of a service and what it returns Mar 01 07:49:04 read the docs on sevices Mar 01 07:49:31 but yes, intentService is a finish on end kinda thing Mar 01 07:49:40 whatitis, I've written the java code Mar 01 07:49:46 cool Mar 01 07:50:07 whatitis, so, when I've to compile, the issue appears Mar 01 07:50:19 pastebin it Mar 01 07:50:25 whatitis, ok Mar 01 07:50:36 Are there any guides on how to use Services that are more useful than the official docs? because in the official docs they only talk about a service that has ONE TIME INPUT, I want something more like a daemon, where I can spawn an instance per request and that instance keeps processing data until it is killed... Mar 01 07:51:10 interpet more, there is more there for service vs intent service Mar 01 07:51:39 I know, yet the guides aren't helping whatsoever... Mar 01 07:51:50 are there any better ones? Mar 01 07:51:50 whatitis, http://pastebin.com/gUmS6UCA Mar 01 07:51:54 it's not the guides, it's your understanding of it Mar 01 07:52:14 whatitis, import eu.chainfire.libsuperuser.Shell; Mar 01 07:52:45 but now the issue is about compiling libsuperuser before compiling app, I suppose Mar 01 07:53:16 it should already be compiled and included Mar 01 07:53:46 or atleast it should be added as a library Mar 01 07:53:54 I don't know if I make a .jar for libsupersuse, if I must download the sources only, or other stuff Mar 01 07:54:24 whatitis, ok, but I don't know where to find doc related Mar 01 07:54:36 I've found only the .git repository Mar 01 07:54:40 pretty sure if it's related to chainfire, he's made a how-to Mar 01 07:54:42 with the sourcwes Mar 01 07:54:56 whatitis, I've read that how-to Mar 01 07:55:10 http://su.chainfire.eu/#how Mar 01 07:55:46 no, a how-to add to project, not howto use commands available Mar 01 07:55:57 whatitis, yeah, I agree Mar 01 07:56:12 I've already written the code :) Mar 01 07:56:35 whatitis, where can I find a how-to add to project? Mar 01 07:56:41 https://github.com/Chainfire/libsuperuser Mar 01 07:57:06 I've found only the .git repository Mar 01 07:57:10 this repository Mar 01 07:57:18 add it in gradle Mar 01 07:57:30 dependencies { Mar 01 07:57:31 compile 'eu.chainfire:libsuperuser:1.0.0.+' Mar 01 07:57:31 } Mar 01 07:57:33 https://github.com/Chainfire/libsuperuser/wiki Mar 01 07:57:48 that link has nothing? Mar 01 07:57:51 whatitis, ok, but I'm using build.xml Mar 01 07:58:05 well, then you are on another path Mar 01 07:58:09 msg the dev Mar 01 07:58:13 lol Mar 01 07:58:33 if using gradle, it is on the front page how to add it Mar 01 07:58:41 if not using gradle, why? Mar 01 07:59:01 if not using gradle, why? <-- can you explain better? Mar 01 07:59:05 :) Mar 01 07:59:10 what is your IDE? Mar 01 07:59:21 whatitis, usually, I compile from command line Mar 01 07:59:23 with ant Mar 01 08:00:00 and I use android script in sdk to create , update the project.... Mar 01 08:00:03 well there's the problem, you are a command line junky, but not a good one, so if you are going down that path, you need to know what you are doing Mar 01 08:00:26 This is weird -- setting clearTaskOnLaunch doesn't work on my tablet (4.4) either. Mar 01 08:00:45 romann Why android asset studio generates launcher icons as mipmap-xxxx instead of drawable-xxxxx ? Mar 01 08:01:08 is it a launch, or a set foreground from previously started Mar 01 08:01:28 napster: google mipmap android, and take the time to read it Mar 01 08:01:31 It's tapping the icon in the home screen. Mar 01 08:01:55 tapping on homescreen doesn't mean start new, could me show already Mar 01 08:01:56 ty Mar 01 08:02:29 "Specify whether an activity's task should be cleared when it is re-launched from the home screen. As a result, every time the user starts the task, they will be brought to its root activity, regardless of whether they used BACK or HOME to last leave it." Mar 01 08:02:43 whatitis, so, that ide is needed to compile libsuperuser? Mar 01 08:02:50 based on Launcher used Mar 01 08:03:20 The weird thing is I get the same behaviour on my tablet -- if I set the main activity's launchMode to singleTask or singleInstance *and* I launch from the home screen (and not recent tasks), things work as expected. If I don't do these two things, it doesn't work as expected. Mar 01 08:03:40 Why, for a start, does my main activity need that launch mode? Surely it's already a "start a new task" thing. Mar 01 08:03:46 no cristian_c, it is needed to simplify task that ppl that use commandline cant comprehend Mar 01 08:04:46 clear Mar 01 08:04:58 TacticalJoke, after reading your launchers code, you know that for sure? Mar 01 08:06:44 napster: ? Mar 01 08:06:48 hi all Mar 01 08:06:59 whassup thepoosh :) Mar 01 08:07:04 TacticalJoke: what's new in the reddit app? Mar 01 08:07:19 napster: I'm still pumped up from thursday Mar 01 08:07:29 :) Mar 01 08:07:35 it was a good rush Mar 01 08:07:50 yeah Mar 01 08:08:15 The latest change would be summarised thusly: "Tapping a post multiple times can no longer ever show the 'app picker' multiple times" Mar 01 08:08:16 I noticed that just because I had a memory leak session of about a week about six months ago Mar 01 08:08:28 s/'// Mar 01 08:08:28 TacticalJoke: that is important! Mar 01 08:08:43 did you do it with a timestamp of the last click? Mar 01 08:08:46 :P\ Mar 01 08:08:57 I'm doing it like this (though I still haven't rebased this change): Mar 01 08:09:09 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); Mar 01 08:09:13 The second statement. Mar 01 08:09:22 No idea whether that's a good idea. lol Mar 01 08:09:32 thepoosh anyway that was a very good catch. Mar 01 08:09:46 Seems to work, though. Previously, it was possible to show the "Open link in" dialog multiple times. Mar 01 08:09:48 why not disable click if it hasn't been more than X millis Mar 01 08:09:49 ? Mar 01 08:09:59 napster: thanks! Mar 01 08:10:16 I hate that naming style: FLAG_ACTIVITY_SINGLE_TOP. Who talks like that? Mar 01 08:10:25 programmers Mar 01 08:10:29 it's a flag Mar 01 08:10:33 it's activity related Mar 01 08:10:39 it's the single top flag Mar 01 08:10:53 it's there naming convention for xml resources too Mar 01 08:10:57 In Soviet Russia, flag activity single top. Mar 01 08:11:02 LOLLLL Mar 01 08:11:18 :D Mar 01 08:11:55 TacticalJoke: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTww5irrNpeNF_30OhF3Vr19yFV_ZlymviA_hEm_UlQzlbOJiGZMw Mar 01 08:12:06 haha Mar 01 08:12:17 Probably happened, too. Mar 01 08:14:04 Is there any difference between gradle shipped along with AS in android-studio/gradle and one you download from gradle.com? Except one from gradle website is more recent Mar 01 08:16:10 TacticalJoke i've never seen any app - worry about such a fast user they may start the same activity twice Mar 01 08:16:32 but yeah, rxjava debounce ftw Mar 01 08:17:14 It's quite easy to do sometimes. Mar 01 08:17:18 donniezazen, if set for android plugin to most recent, then it'll use most recent gradel as well, pretty sure android pluging 1.1.0 is using 2.2.1 of gradle Mar 01 08:17:19 Just a quick double-tap. Mar 01 08:17:31 I can do it in Google Keep, and it feels unprofessinal. Mar 01 08:17:35 unprofessional* Mar 01 08:18:06 i'd imagine you could do it in any app - like i said, having gone through enoug aosp apps - nobody ever checks Mar 01 08:19:03 It doesn't work in Calendar (as far as I remember). Mar 01 08:19:10 whatitis: what android plugin? Mar 01 08:19:14 Fixing it is as simple as using launchMode="singleTop" for secondary activities, though. Mar 01 08:20:52 I just got it to happen three times. :D Mar 01 08:22:05 whatitis: Android 1.1.0 indeed uses Gradle 2.2.1. Upstream gradle is at version 2.3. Mar 01 08:22:11 TacticalJoke https://gist.github.com/rfreedman/5573388 Mar 01 08:25:11 its not just going to be for activities, but just about anything Mar 01 08:25:35 where click changes state Mar 01 08:25:39 True. Mar 01 08:26:49 ugh, still no NumberPickerPreference - so weird Mar 01 08:32:27 Okay, this is weird. Now, setting clearTaskOnLaunch for my main activity works as expected as long as I start my app from the launcher (and not 'recent tasks'). In other words, I no longer have to also set the main activity's launchMode. Mar 01 08:33:16 Oh. It's because I was fiddling around and setting singleTask for the secondary activity. Never mind. Mar 01 08:33:25 (Which of course raises a new question -- why does *that* work?) Mar 01 08:33:28 Never-ending questions. Mar 01 08:38:16 g00s: Did you ever see Prison Break? Mar 01 08:39:50 QUick question, with the android version of NameValuePair Mar 01 08:40:00 Whats the best way to create an instance of it Mar 01 08:40:04 Wait no Mar 01 08:40:11 List Mar 01 08:40:16 A list of type NameValuePair Mar 01 08:40:21 Since its abstract Mar 01 08:40:41 ... Mar 01 08:41:04 ? Mar 01 08:41:06 It's an interface implemented by BasicNameValuePair. Mar 01 08:41:17 FWIW, OkHttp is better than the Apache HTTP thing. Mar 01 08:41:24 FWIW? Mar 01 08:41:29 For what it's worth. Mar 01 08:41:32 Ah Mar 01 08:41:38 Im just doing a simple Proof of concept Mar 01 08:42:24 TheHackOps: Do you know how interfaces and stuff work in Java? Mar 01 08:42:24 TacticalJoke, An interface is a pure abstract class right? Mar 01 08:42:33 Yes and no Mar 01 08:42:40 Im 100% from OO land Mar 01 08:42:44 but not java specifically Mar 01 08:42:50 I know what they do Mar 01 08:43:02 It's kinda like an abstract class, yeah. Mar 01 08:43:11 Though (in Java 7 at least) it cannot contain method bodies. Mar 01 08:43:21 Pure virtual function Mar 01 08:43:31 My naming is off thats it Mar 01 08:43:34 Im learning java now Mar 01 08:43:37 Just say 'new BasicNameValuePair("name", "value");'. Mar 01 08:43:38 The syntax Mar 01 08:43:53 Ok, so the one i had is just the base for it Mar 01 08:43:54 ty Mar 01 08:44:07 TacticalJoke no Mar 01 08:44:08 Yeah, it's just the contract which BNVP implements. Mar 01 08:44:35 Im a C#/C++ dev so you might have to translate those terms if you can be bothered Mar 01 08:44:43 Well im coming from those languages professionally Mar 01 08:44:49 C# interfaces are the same, I think. Mar 01 08:44:57 We have abstract Mar 01 08:44:58 yes Mar 01 08:45:04 I hate that I have to say "I think", because it's been so many years. ;| Mar 01 08:45:12 I used to know C# like the back of my hand. Mar 01 08:45:23 Method bodies can be defined in an abstract class Mar 01 08:45:28 which in my opinion is retarded Mar 01 08:45:38 Because its not a real abstract class then Mar 01 08:45:49 Anyway thats offtopic Mar 01 08:46:27 I don't agree. An abstract class is a class that cannot be instantiated and that can contain abstract methods. It's a very useful thing. Mar 01 08:46:38 If Java didn't have this ability, it'd be seriously hampered. Mar 01 08:47:30 C# is the same here. Mar 01 08:50:01 I think an abstract class is just that Mar 01 08:50:07 It defines the idea of the object Mar 01 08:50:11 not the implementation Mar 01 08:50:46 Anyway im trying to send a post request to a timetable website to get the data out of it Mar 01 08:50:51 No mobile app Mar 01 08:50:53 Im hacking it Mar 01 08:50:59 Creating a hack for it Mar 01 08:51:07 In the traditional sense Mar 01 08:51:54 No idea if it will work since its ASP Mar 01 08:52:01 The traditional sense of 'hack' relates to programming, not exploiting vulnerable servers or whatever. Mar 01 08:52:13 TacticalJoke, I am a student of this thing Mar 01 08:52:17 I have credentials Mar 01 08:52:23 I just want to see my data in an app Mar 01 08:52:30 I think thats a traditional hack Mar 01 08:52:50 Basically send my credentials > Get the HTML back parse it and then display it in the format i want Mar 01 08:54:23 "A hacker is one who enjoys the intellectual challenge of creatively overcoming and circumventing limitations of programming systems and who tries to extend their capabilities." Mar 01 08:54:28 Is that you, TheHackOps? Mar 01 08:54:31 Yes Mar 01 08:54:41 I have never nor would ever break into something illegally Mar 01 08:54:45 Okay, that is the traditional sense indeed. Mar 01 08:54:45 But i do like improving things Mar 01 08:55:02 Like the fact that i have to use a full screen page with no dam mobile app Mar 01 08:56:04 Weird Mar 01 08:56:52 I do set entity to set my post data and i get something about java.io.UnsupportedEncodingException Mar 01 08:57:27 TacticalJoke, So i have an HttpPost object and the docs say i have to give it the post data (Like every other lib) Mar 01 08:57:53 napster, Do people still use you? Mar 01 08:58:11 don't know, I still got mp3s anyway Mar 01 08:58:17 Which encoding are you trying? Mar 01 08:58:25 loginURL.setEntity(new UrlEncodedFormEntity(postDataList)); Mar 01 08:58:35 loginURL is just an instance of HttpPost Mar 01 09:00:26 Hmm, you might have to use one of the other UrlEncodedFormEntity constructors. Mar 01 09:03:56 Hi guys iam using recyclerview in my project here is a link to source code http://pastebin.com/xTF3ba8M. I see some errors like cannot inflate recyclerview. I have added reference to recyclerview project library. Can someone let me know what am i missing Mar 01 09:04:51 Its always a good feel when your timesheeting system blows up and you cant put your hours in Mar 01 09:13:23 http://developer.android.com/reference/org/apache/http/client/entity/UrlEncodedFormEntity.html Mar 01 09:13:30 This says it has an overload for an encoding type Mar 01 09:13:39 I cant seem to use it Mar 01 09:18:24 I want to make an app that connects to a hotspot from laptop and send a message to this laptop. Any hints how to do that ? Mar 01 09:18:31 Lmao Mar 01 09:18:43 I found out why, Methods have exception handling on them Mar 01 09:18:44 wtfd Mar 01 09:19:03 #its a java thing you wont understand Mar 01 09:19:05 TheHackOps, where is it saying/showing the overload method? Mar 01 09:19:17 whatitis, I fixed it Mar 01 09:20:30 AhmadElMelegy, sure, connect to AP, get connection socket to AP, connect, send Mar 01 09:21:05 TheHackOps: Are you using an IDE? You know they can insert those methods for you right? Saves you the trouble of looking up the details of the signature :) Mar 01 09:22:07 whatitis, thanks, it will be appreciated if there is something will help me while searching Mar 01 09:27:11 Are there any problems with leaving device id in production code? for instance in AdRequest.Builder().addTestDevice(xxxxxxx); ? Can it be exploited somehow? Mar 01 09:32:57 Thorbear, Yea android studio Mar 01 09:33:04 Why does everything in java have to have a try catch Mar 01 09:33:09 or is that just my ide complaining Mar 01 09:36:45 android.os.NetworkOnMainThreadException Mar 01 09:37:00 TheHackOps: Alt + Insert -> Override -> Select method to override :) And not everything needs a try-catch, you can re-throw it until a place it makes sense to catch. Mar 01 09:40:58 I imported someone elses gradle project into android studio, but android studio is not showing on the source files. Is there something missing in the gradle files? Mar 01 10:00:47 TheHackOps, this is Java. Mar 01 10:01:36 Didnt notice Mar 01 10:01:54 I have lots of pointers everywhere Mar 01 10:01:58 ... Mar 01 10:18:50 hey guys Mar 01 10:18:52 http://stackoverflow.com/questions/26546376/actionbar-gets-hidden-when-i-use-androidwindowsoftinputmode-adjustpan Mar 01 10:18:56 the answer does not work, any ideas? Mar 01 10:19:20 I've tried a lot of answers Mar 01 10:20:46 is there any way, for a given project, to determine minimum sdk version required ? Mar 01 10:21:06 *api Mar 01 10:21:14 android:minSdkVersion="9" Mar 01 10:21:19 in manifest Mar 01 10:21:49 my uqestion is in order to set the manifest Mar 01 10:21:50 :D Mar 01 10:22:14 blusky, android.os.Build.VERSION.SDK_INT; Mar 01 10:22:31 now, my question, how do you solve that stackoverflow problem with softkeyboard Mar 01 10:23:02 ok, I mis-asked the question Mar 01 10:23:22 I got a project, and I don't know wich min. sdk I got to put in my manifest Mar 01 10:23:27 i meant, the min Mar 01 10:23:45 Hello! What do you guys use to get crash reports? I see there are many solutions, but I also see that Google Play has a section for crash reports. Will I get crash reports automatically in Google Play? Or do I have to implement something specific in the app? Mar 01 10:24:14 luc4: if you can, install "sentry" on a server Mar 01 10:24:16 it's awesome Mar 01 10:24:31 https://github.com/getsentry/sentry Mar 01 10:24:58 the crash reports will come automatically, but only if the user hits "send crash report" Mar 01 10:25:27 Quacked: so, the app crashes, and the user gets a dialog with a button “send crash report”? Mar 01 10:25:56 yeah Mar 01 10:26:12 but my experience is that not many sends that report Mar 01 10:26:20 I get a lot more crash reports in google analytics Mar 01 10:26:22 that's why I use sentry Mar 01 10:26:46 Quacked: ah yes, so using google analytics I may implement this automatically? Mar 01 10:27:13 Quacked: but assuming the user is not online? I should have a “buffer” somewhere and then send? Mar 01 10:28:02 analytics stores such data on device until its ready to send I believe Mar 01 10:28:23 true Mar 01 10:28:49 Quacked: ah so that is already implemented… thanks! Mar 01 10:29:09 Quacked: and I see the added benefit of being able to “log” any user action I want? Mar 01 10:29:10 but you dont get a lot of info on the crash reports. Just like this: NullPointerException (@IabHelper:queryPurchases:837) {Thread-13} Mar 01 10:29:23 we paling it? Mar 01 10:30:03 Quacked: with google analytics? Mar 01 10:30:10 yaeh Mar 01 10:30:20 at least I havent found any place where it gives more details, hehe Mar 01 10:31:48 Quacked: well… it may be sufficient… and did you use Google Analytics? Can I use it to track any user action I want? Or only which screens are opened? Mar 01 10:32:19 anything you want Mar 01 10:32:30 Quacked: thanks for the info! Mar 01 10:33:17 like this: tracker.send(new HitBuilders.EventBuilder().setCategory("category").setAction("blablabla").build()); Mar 01 10:33:22 http://stackoverflow.com/questions/25691073/android-do-not-hide-action-bar-on-opening-keyboard?lq=1 Mar 01 10:33:25 that's my problem Mar 01 10:33:34 can i make image change from a button without fractions Mar 01 10:33:42 Quacked: thanks! Have you ever used crashlitics? Mar 01 10:34:12 nah, analytics has been enough for me Mar 01 10:35:00 Quacked: so you don’t know what that adds. Ok, thanks again! Mar 01 10:36:10 looks like you can modify the exceptiontracker in google analytics to get more details though Mar 01 10:37:08 some stuff here: https://developers.google.com/analytics/devguides/collection/android/v3/exceptions Mar 01 10:38:10 Quacked: ah that is good info. Do you also know if it can take also native C/C++ crashes… I suspect it won’t… Mar 01 10:38:15 no clue Mar 01 10:41:10 Quacked: thanks! Mar 01 10:52:45 Hello! I’m in a weird situation: I publicized an app but I noticed it is not available on Nexus 5. So I tried to fix and uploaded a new apk for beta testing. But… how do I install it? I have a direct link to the app itself on Google Play, but if I open it on Nexus 5 it tells me it is still not available for that device. But now, in my beta version, it seems to be available for Nexus 5… how do I install that test Mar 01 10:52:45 version? Mar 01 10:54:20 luc4: Crashlytics/Fabric is awesome if you were wondering. Mar 01 10:54:46 luc4, dont you have to make some google+ community etc for betas? Mar 01 10:54:59 Thorbear: but do you know what is the added benefit to Google Analytics? Mar 01 10:55:08 Moter8: yes, I did. Mar 01 10:55:17 crashlytics is more reliable than logcat in my experience, haha Mar 01 10:55:45 Moter8: logcat? No, I meant Google Analytics. Mar 01 10:56:01 yeah -- I meant with that that crashlytics is really great at detecting crashes. Mar 01 10:56:15 Moter8: ah I see :-) Mar 01 10:56:16 Havent tried GA but I think it doesnt do crashes? Mar 01 10:56:30 Moter8: exceptions yes Mar 01 10:56:54 I'm not sure about all the features of Google Analytics, but crashlytics is scary simple to set up and just works. Mar 01 10:58:25 Thorbear: I was hoping someone used both so could tell the real difference. Mar 01 11:07:55 I paid good money for an app that does not work on android 5.0 update Mar 01 11:08:13 is there a way to get backwords compat to use older apps Mar 01 11:36:05 DJJeff: did you ask the dev of the app what changed? Mar 01 11:45:43 cant because the dev is EA GAMES Mar 01 11:45:52 they wont answer crap Mar 01 11:46:18 they renamed it to a "free ad supported" version for 5.0 lolipop Mar 01 12:06:19 hi there Mar 01 12:19:18 private String[] filenames = {"test1", "test2", "test3"}; Mar 01 12:19:19 image.setImageResource(R.drawable.filenames[1]); Mar 01 12:19:26 Cannot resolve symbol 'filenames'. what am i doing wrong Mar 01 12:24:08 usually you wrap that in getResources().getDrawable() Mar 01 12:24:42 eg mIcon.setImageDrawable(getResources().getDrawable(mData.getIconId())); Mar 01 12:24:51 But... not sure Mar 01 12:34:55 <_genuser_> you guys up? Mar 01 12:35:28 hmmp R.drawable.something = resourced int Mar 01 12:35:30 not a string Mar 01 12:36:11 private int[] filenames = {R.drawable.filename1,R.drawable.filename2,R.drawable.filename3} Mar 01 12:37:48 image.setImageResource(getResources.getDrawable(filenames[1])); Mar 01 12:39:30 Gliese: got it working, thanks! Mar 01 12:39:39 yw Mar 01 12:50:06 I have a question regarding "global state" of my application. I found an advice creating an application class with static members to retain some data over different activities. Mar 01 12:51:07 But I'm not that much familiar with the activity lifecycle, and I assume my "global state" would go down the drain as soon as my activity is getting destroyed. Mar 01 12:52:44 can someone tell me how to compile this for android? https://github.com/qdii/ptunnel Mar 01 12:58:03 a simple make works just fine on my linux desktop, but im unsure how to create a working binary for an android device Mar 01 13:01:30 You might want to build an arm binary (gcc has cross compilation) and make JNI calls. But I'm just speculating, I don't know for sure. Mar 01 13:35:41 hello, i want to create an app for library for a college. How do I connect to website to read book database Mar 01 13:35:43 ? Mar 01 13:41:21 HammerHead https://developer.android.com/training/basics/network-ops/index.html Mar 01 13:50:05 /j #linux Mar 01 13:58:52 Hi everyone, has someone already done something with the old camera API? I'm wondering how can I take picture in background, in order to not freeze the UI Mar 01 14:27:41 Hi ! Can I make my views (EditText, TextView...) closer when in landscape orientation than what they are in portrait ? Mar 01 14:28:09 Actually I have top margins expressed in dp units Mar 01 14:30:12 zebu1er: have 2 layouts folders for the different orientations Mar 01 14:30:19 and do whatever you want in them Mar 01 14:30:33 res/layout and res/layout-land Mar 01 14:32:16 Then should I redescribe the whole layout in the landscape one ? Or like in XUL can I do some kind of overlay (describe difference) ? Mar 01 14:34:20 thepoosh: PS : My question is to you Mar 01 14:35:59 don't know about xul, but keep the ids as it is and alter attributes as you like Mar 01 14:39:19 zebu1er: you create those 2 files and if the changes are minor just copy paste and make the small changes where they are required Mar 01 14:40:24 http://developer.android.com/guide/practices/screens_support.html#ConfigurationExamples Mar 01 14:47:32 thepoosh: Ok thanks ! Mar 01 14:47:35 zebu1er, if it's just margins and padding that are different, define then in values Mar 01 14:48:51 also true Mar 01 14:49:29 Any example of how to send json to pc using android app ? Mar 01 14:49:53 AhmadElMelegy: that question needs clarification Mar 01 14:50:08 send via bluetooth? via server? wifi? Mar 01 14:50:13 wifi Mar 01 14:50:22 hotsopt from the pc Mar 01 14:50:26 wifi direct? Mar 01 14:51:10 I want to create a hotspot from my pc, then the app will connect automatic to it, and send 3 strings to the pc Mar 01 14:52:54 hmmmmm Mar 01 14:53:16 than most of the work is on the receiving end Mar 01 14:53:32 there shouldn't be a problem connecting to an ip and sending it information Mar 01 14:53:46 as long as that ip address can receive them Mar 01 14:54:47 Is there any example of a similar one ? Mar 01 14:57:22 When i am working with an ImageView and add the image inside the src, it adds white space above and under the image, how do i remove this ? Mar 01 14:58:47 Nightwalkerkg: try changing the android:scaleType Mar 01 14:59:10 also look into setting the height and width to wrap the content Mar 01 14:59:33 thepoosh, Thanks, the height and the width is set to wrap put the scaleType fixed the problem. Mar 01 14:59:34 :3 Mar 01 14:59:41 np Mar 01 15:00:26 thepoosh, Can you help me searching for this ? any hints ? Mar 01 15:00:33 nope, sorry Mar 01 15:00:41 don't know my way around that Mar 01 15:00:42 np, thanks Mar 01 15:03:21 thepoosh, If the receiving end becomes android device also, will this make my problem easier ? Mar 01 15:07:55 AhmadElMelegy: you need to listen to incoming stuff, unless you are registered to services that provide this like GCM or pubnub, it won't be trivial Mar 01 15:08:11 you'll need to open a connection and listen to events and broadcasts Mar 01 15:08:30 you can try doing this with Parse.com and stuff like that Mar 01 15:09:16 Thanks :) Mar 01 15:13:48 What would be the best way to display a small biography with an image ? CardView ? Mar 01 15:22:51 Hello! I added myself as a tester of my app, but is there a way to install it from the market without having to pay for it? :-) Mar 01 15:32:22 anyone aware of the bug that will not allow you to take picture on Galaxy S devices? Mar 01 15:32:51 the one that is caused by MediaStore.EXTRA_OUTPUT being passed to the image capture intent Mar 01 15:40:06 works on Nexus 5 fails on Galaxy S3, this code http://developer.android.com/training/camera/photobasics.html Mar 01 15:43:30 AhmadElMelegy: To produce JSON you've got either JSONObjet or JSONArray, then get the string with .toString() Mar 01 15:44:26 zebu1er, thanks, what about reviving this JSON to desktop app ? Mar 01 15:44:53 receiving* Mar 01 15:45:23 You mean what software on the PC ? Mar 01 15:46:19 zebu1er, I want to create a simple desktop app to receive this JSON from the android app Mar 01 15:46:57 Desktop = PC under windows ? Mar 01 15:47:06 any OS np Mar 01 15:47:10 what's this channel got to do with that Mar 01 15:47:39 Hey guys im trying to implement tabs into one of my activities Mar 01 15:47:51 And it says the activity needs to extend FragmentActivity Mar 01 15:48:03 AhmadElMelegy: You can ask Lazarus channel Mar 01 15:48:11 But if I do that, then I cant use methods such as setSupportActionBar ? Mar 01 15:48:36 thanks zebu1er :) Mar 01 15:48:59 AhmadElMelegy: I did json exchange between Linux Lazarus and an android app with websocket, that's fine ! Mar 01 15:49:53 zebu1er, great if there is open source example of that I will appreciate that :) Mar 01 15:50:29 Guys is there a way I can use .setSupportActionBar without extending ActionBarActivity? Mar 01 15:51:28 AhmadElMelegy: I can give you mine, but do you understand Pascal ? Mar 01 15:53:27 zebu1er, unfortunately no Mar 01 15:53:58 AhmadElMelegy: What language you're good for ? Mar 01 15:54:12 zebu1er, Java, Python Mar 01 15:55:26 man I can't believe that this code would seriously not run if you have S3 or S2 Mar 01 15:55:33 AhmadElMelegy: So do that in Java, nothing else ! Mar 01 15:55:37 it's taking a damn picture! this is an abomination Mar 01 15:55:59 zebu1er, OK, thank you so much Mar 01 15:57:32 who is CedricBeust? Mar 01 15:57:58 he has a wikipedia page, lol Mar 01 15:57:59 http://en.wikipedia.org/wiki/C%C3%A9dric_Beust Mar 01 15:58:27 Cdric Beust is a French software engineer and a software technology author. He is the co-author of two books and the creator of the TestNG Java testing framework. Mar 01 15:58:31 source: wikipedia :p Mar 01 15:58:47 ... he just linked that Mar 01 15:58:50 where'd he pop up from? Mar 01 15:58:54 just pops in gets op? Mar 01 15:58:54 Motor I know Mar 01 15:59:00 Moter8* Mar 01 15:59:11 he's an OP in this channel and I've never seen him in my life Mar 01 15:59:42 and what is the problem with that? :o Mar 01 15:59:54 Odaym: Well, nice to meet you too Mar 01 16:00:02 see, he's alive Mar 01 16:00:03 xD Mar 01 16:00:05 there are ~450 people here Mar 01 16:00:13 he gets to operate the channel Mar 01 16:00:16 out of nowhere Mar 01 16:00:24 why not give op to people who are here all the time Mar 01 16:00:39 Odaym, many op chose to not op themselves Mar 01 16:00:40 doesn't really matter, just an observation, nice to meet oyu Mar 01 16:00:53 why we even should care about the op Mar 01 16:00:56 this is just a chat Mar 01 16:01:00 not a place to have authority Mar 01 16:01:04 lets just talk about android dev Mar 01 16:01:06 Odaym: I created this channel, if you must know Mar 01 16:01:13 oook... Mar 01 16:01:17 Morning, guys Mar 01 16:01:19 yea I'll just go now Mar 01 16:01:20 Let's move on Mar 01 16:01:21 Devity dev dev Mar 01 16:01:34 Im red now Mar 01 16:01:35 haha Mar 01 16:02:03 didn't occur to me to do info on it Mar 01 16:02:12 So I typically have 7 tabs open all the time, plus maybe a few I'm working with Mar 01 16:02:25 Because of this app I'm writing, I now have 27 tab Mar 01 16:02:28 *tabs Mar 01 16:03:57 I just went to testNG website, seems to be pretty cool Mar 01 16:04:03 [18:03:50] -ChanServ- Founder : morrildl, kroot, ctate, romainguy Mar 01 16:04:08 Gliese: Thanks Mar 01 16:04:16 you one of those people? Mar 01 16:04:20 gotta try it Mar 01 16:04:40 Odaym, romaintuy is pretty famous in android community Mar 01 16:04:44 romainguy* Mar 01 16:04:48 he stopped coming here Mar 01 16:05:16 maybe too busy writing awesome software :p Mar 01 16:05:35 he's not on Android anymore as I heard Mar 01 16:06:14 What is the best way to make tabs with a toolbar? Mar 01 16:06:33 Odaym , hmm! dunno Mar 01 16:07:02 been chasing an error since the morning, now I realize it might not have even been the cause Mar 01 16:07:02 drose379, you mean something like http://i.imgur.com/HQOMhNF.png ? Mar 01 16:07:08 lels Mar 01 16:07:26 Moter8 yes Mar 01 16:07:31 MaterialTabs Mar 01 16:07:37 with support toolbar Mar 01 16:07:41 Is that a library? Mar 01 16:07:44 yep Mar 01 16:07:56 who makes it? Mar 01 16:08:03 not sure :D Mar 01 16:08:11 but it seems to be working nicely. Mar 01 16:08:20 Ive never worked with tabs before Mar 01 16:08:22 Looks like lollipop even on 4.2 etc Mar 01 16:08:31 Should I learn the basics first before using the Lib Mar 01 16:08:35 Or dive right in? Mar 01 16:08:49 I'd say first learn other things Mar 01 16:08:56 drose739 you have a lot libs to make that that works well Mar 01 16:08:57 Eh, not really sure Mar 01 16:09:13 I'm watching the treehouse videos. Mar 01 16:09:17 How do I create and work with an SQLite DB? Mar 01 16:09:25 Google is failing me today Mar 01 16:09:27 But they dont use this lib... soo Im trying it out on my own Mar 01 16:09:39 TechGeek01 try using ORMlite will be easy Mar 01 16:10:20 Im ashamed that I havent gotten into ORMlite yet Mar 01 16:10:24 really should work on that Mar 01 16:10:25 techgeek01 http://ormlite.com Mar 01 16:10:35 I am using it Mar 01 16:11:28 Hmm Mar 01 16:11:38 TechGeek01 you can create your tables with normal POJOS , very simple to use Mar 01 16:11:51 Otherwise, would someone be able to walk me through SQLite without ORMlite? Mar 01 16:12:13 I know everything about vanilla SQLite in terms of querying and what not Mar 01 16:12:25 The database creation is baffling me, though Mar 01 16:13:17 Unless it's just simply stated on the official Android dev page that doesn't seem to want to load Mar 01 16:13:36 nobody's going to walk you through anything Mar 01 16:13:47 only error help Mar 01 16:13:57 if that Mar 01 16:19:08 is anyone familiar with facebook sdk ? I want to use a "ShareDialogBuilder", but it doesn't seem to use "setCaption" and/or "setDescription" when sharing a link. Any idea why ? Mar 01 16:37:45 I am hiding the navigation bar with View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY, I want a stable layout with View.SYSTEM_UI_FLAG_LAYOUT_STABLE. That all works. Here is my question: When the bar disappears the space that it occupied is painted in green. What is that space? So I can color it. Mar 01 16:41:15 is it the decor view? Mar 01 16:45:14 It is. :) I rock. Mar 01 16:46:08 lol Mar 01 16:49:47 http://i.imgur.com/uMcwuFX.png Uhh, the app doesnt even have an activity Mar 01 16:49:51 activity bar Mar 01 16:50:03 ActionBarActivity* Mar 01 16:50:52 Any idea? First time I see this Mar 01 16:51:19 Moter8: It does, this is NoClassDefFoundError, not ClassNotFoundException Mar 01 16:52:42 Oh, MainActivity extens ActionBarActivity Mar 01 16:52:51 But I'm not doing anything with it.. hmm Mar 01 16:59:14 Motor maybe using SDK version that doesn't support that class Mar 01 16:59:19 Moter8 Mar 01 16:59:22 damn mac auto correct Mar 01 16:59:53 ok it's definitely a Galaxy S3 problem, I save the file to the sdcard and I see the file created and it's my image, I just cant seem to set it to an imageview using that path that I've made sure was correct Mar 01 17:00:07 N5 no problem Mar 01 17:00:15 Picasso is your friend Odaym! Mar 01 17:00:21 Im using Picasso Mar 01 17:00:29 was using setImageBitmap first Mar 01 17:00:40 after doing decodeFile on the path Mar 01 17:01:44 can you show your code? Mar 01 17:03:01 sure Mar 01 17:03:04 http://pastie.org/9991808 Mar 01 17:03:40 that setImageUri was setImageBitmap, dont mind it Mar 01 17:03:44 oh you are setting hardcoded file path? Mar 01 17:04:23 I construct the filepath where I want to the image to sit in after I've taken it Mar 01 17:04:35 its made up of mediaStorageDir.getPath() + File.separator + imageFileName Mar 01 17:05:08 where mediaStorageDir is Environment.getExternalStoragePublicDirectory( Mar 01 17:05:08 Environment.DIRECTORY_PICTURES, "MyFolder") Mar 01 17:05:14 ah ok Mar 01 17:05:23 the image is there..that's what is driving me crazy Mar 01 17:05:47 try Picasso.with(this).load(imgFile).into(cropImageView); Mar 01 17:05:56 I tried that before new File() Mar 01 17:05:59 that won't work Mar 01 17:06:10 in S5 is working? Mar 01 17:06:17 N5* Mar 01 17:06:17 I am testing on S3 Mar 01 17:06:22 oh Mar 01 17:06:27 yes Mar 01 17:06:36 is logical complaining about anything in S3? Mar 01 17:06:39 logcat* Mar 01 17:06:58 no exceptions Mar 01 17:07:07 the page loads fine with the elements in it, but imageview is bare Mar 01 17:07:53 darn Mar 01 17:07:59 I am doing the same in one app and works fine, but I don't do bitmap decoding and setimageURI , I use picasso directly with the file Mar 01 17:08:04 my pictureCallback is not called on one device Mar 01 17:08:08 sometimes Mar 01 17:08:13 and is working in devices pretty old Mar 01 17:08:36 you have S3? Mar 01 17:08:51 S4 and S5 , and they are in office Mar 01 17:09:11 I only have S3 here Mar 01 17:10:10 ah I just see line 19 and 20 are commented Mar 01 17:10:31 yea Mar 01 17:10:36 there is literally zero code going on there Mar 01 17:10:46 would need to debug, cannot see any reason to don't work just by looking the code Mar 01 17:10:54 should work what you have Mar 01 17:11:10 yea Mar 01 17:11:26 try loading the image from res folder Mar 01 17:11:28 instead of loading Mar 01 17:11:32 from scared Mar 01 17:11:38 sdcard* Mar 01 17:11:40 lol Mar 01 17:12:34 nah Mar 01 17:12:42 it ain't that stupid Mar 01 17:12:45 I think it's an issue of path Mar 01 17:12:59 can I create and then not be able to get? Mar 01 17:13:33 so try saving on internal path instead external Mar 01 17:14:19 thats not going to be implemented even if it works Mar 01 17:14:43 but you need to know the reason what it doesn't work :p Mar 01 17:14:57 reason why it wont get pictures from external Mar 01 17:15:14 just loaded image from res Mar 01 17:15:16 its fine Mar 01 17:15:24 permissions are ok? Mar 01 17:15:48 read/write external Mar 01 17:16:15 if you debug, the file exists? Mar 01 17:16:32 the picture is there you can even open it Mar 01 17:16:45 and sitting at the exact path where I said Mar 01 17:17:14 but did you make sure that this is true if (imgFile.exists()) ? Mar 01 17:17:31 that line is there in the code you saw Mar 01 17:17:35 but Mar 01 17:17:39 one sec Mar 01 17:17:54 I never tried to load the res inside that if, I tried after that line was commented Mar 01 17:18:12 yea, no res Mar 01 17:19:28 I was not able to load the image from res when I put it inside that if Mar 01 17:19:56 so imgFile != exist Mar 01 17:22:42 so the imgFile exists? just trying to figure out if you make sure that imgFile is being loaded correctly Mar 01 17:23:03 imgFile.exists() returns false Mar 01 17:23:21 ok thats the problem, for some reason the img is not being loaded Mar 01 17:23:26 and picasso has nothing to load Mar 01 17:23:55 yes I figured, but why am I able to see it with a file manager Mar 01 17:25:46 make sure the paths are exact the same, or try other way to save/load Mar 01 17:25:54 or you can even try with hardcoded path like File image = new File(/sdcard/example/image.jpg); Mar 01 17:25:59 to see if is loading correctly Mar 01 17:37:43 Hi, I'm following android tutorial (https://developer.android.com/training/camera/photobasics.html) and I have an issue, when coding the "Save the full-size photo" section, it say that "You may wish also to save the path in a member variable for later use" and in the code example appear a "String mCurrentPhotoPath;" (i suppose a) member class attribute, is that public or private attribute? Mar 01 17:39:38 because what I have is when running application, click on take-photo button appear photo-app, take the picture, and inside onActivityResult the mCurrentPhotoPath class attribute is null Mar 01 17:39:47 does it matter? Mar 01 17:40:11 afair, in java, variable without modificator is visible within package Mar 01 17:40:18 or something like that Mar 01 17:40:43 I don't know if does it matter, is why I'm asking :S Mar 01 17:41:02 if it starts with "m" is private Mar 01 17:41:36 Gliese: public int mVariable; ... take that! Mar 01 17:41:43 ahahah :p Mar 01 17:41:53 in google example they are not trolling like that for sure xD Mar 01 17:42:24 here it is http://stackoverflow.com/questions/12087510/check-if-the-sdcard-is-present-boolean-is-always-true Mar 01 17:42:31 uhm.... , after photo is taken, back to my app in onActivityResult and member attribute is null, why? Mar 01 17:42:37 Environment.isExternalStorageRemovable() returns false Mar 01 17:42:46 something with app lifecycle ? Mar 01 17:42:49 feathersanddown: can you pastebin the onActivityResult? Mar 01 17:42:52 sorry, I'm new to Android Mar 01 17:42:57 so maybe Im writing to somewhere I think is external but isnt Mar 01 17:42:59 I dont fucking know Mar 01 17:43:08 Fuck Samsung is all I know Mar 01 17:43:34 feathersanddown, you are building the sample or you did your own project? Mar 01 17:43:45 my own project Mar 01 17:43:59 fsck the camera. why PictureCallback is not called sometimes on motorola :s Mar 01 17:44:10 while others work perfectly Mar 01 17:44:37 answer feathersanddown http://stackoverflow.com/questions/9890757/android-camera-data-intent-returns-null Mar 01 17:44:52 thought this was my problem earlier today Mar 01 17:44:54 wasnt Mar 01 17:44:56 but it is yours Mar 01 17:45:33 http://beta.pastee.com/ch6vt Mar 01 17:46:03 seems when setting extra with the output file path intent data return is null Mar 01 17:46:14 already saw that so :) Mar 01 17:46:36 it has an answer Mar 01 17:46:40 somewhere :P Mar 01 17:46:56 quick tip, always code in english ;) Mar 01 17:47:12 oh god Mar 01 17:47:29 I didnt know people coded in different languages Mar 01 17:48:33 oh yes... is my way to code, but it doesn't matter Mar 01 17:48:59 sure it does, now he can't understand your code Mar 01 17:49:06 has to figure out what SiasdjasdoiajsdFOrasdm means Mar 01 17:49:24 feathersanddown, no prob, i can understand spanish, but for support etc always good to have it in english Mar 01 17:49:38 trying to understand why you get it as null Mar 01 17:50:43 line 26 set member attribute class with path, line 56 "s" String is null Mar 01 17:50:44 you have a lot try catch, did you debugged to see if any of them is being throwed? Mar 01 17:52:00 maybe I need to do something with the app lifecycle when onStop() -> camera app -> onResume(); Mar 01 17:52:02 ? Mar 01 17:52:04 why it should not be null? , there are you setting it? Mar 01 17:52:09 where* Mar 01 17:52:25 line 26 set member attribute class with path, line 56 "s" String is null Mar 01 17:53:29 your logcat is sending: Log.d(this.getClass().getName(), "No se pudo crear archivo temporal en: " + rutaTempFotografia.getPath()); ? Mar 01 17:54:14 make sure that try catch is going as you supose Mar 01 17:54:50 lol my device can't wake up Mar 01 17:57:45 Gliese: I think no.... at runtime the attribute value is setted as must, let me check... Mar 01 17:58:06 Is it possible to run and test apps from Android Studio over Wifi ? Mar 01 17:58:59 Nightwalkerkg yes, http://stackoverflow.com/questions/4893953/android-run-install-debug-applications-over-wifi Mar 01 17:59:50 Gliese: http://picpaste.com/ppppp-rrPsPjJs.png Mar 01 18:02:06 Gliese: after http://picpaste.com/jjjj-vJYA6oTI.png Mar 01 18:02:12 feathersanddown, maybe you are losing context after starting other intent, try onResume setting that variable again Mar 01 18:02:30 napster: !!! Mar 01 18:03:06 sorry, how? Mar 01 18:03:16 heyya Mar 01 18:03:18 http://redd.it/2xjrdy Mar 01 18:03:21 just saw this Mar 01 18:04:40 lol Mar 01 18:04:48 :D Mar 01 18:04:55 made me flinch Mar 01 18:05:16 feathersanddown, use other way to save/load images , check first answer http://stackoverflow.com/questions/17674634/saving-images-to-internal-memory-in-android Mar 01 18:05:47 so you can keep track of file path Mar 01 18:05:47 (that example is for internal memory, search for external if you don't want to save internally) Mar 01 18:05:49 who needs git anyways, ¯\_(ツ)_/¯ Mar 01 18:07:50 can anyone confirm if both rx/tx ir on the M9 ? Mar 01 18:08:05 VISUAL OR CORPORATE CONFIRMATION PLEASE Mar 01 18:08:09 ?! Mar 01 18:08:19 defaq are you talking about? Mar 01 18:09:00 thepoosh: Infrared learn as well as blaster on the htc m9 Mar 01 18:09:18 this is a question for XDA Mar 01 18:09:48 i asked them no one answers bud Mar 01 18:11:01 Another question, is there a way, when i click on a navigation drawer section to open a webpage but not go inside that section ? If you understand me. Mar 01 18:14:52 So, I hire voice actors on fiverr when I need something professional sounding, what do you guys do? Mar 01 18:36:29 uhm.... first time is always null.... 2nd and 3th time have attribute values as needed Mar 01 18:36:34 uhmm... Mar 01 18:41:11 o/ Mar 01 18:41:16 how's everyone's weekend? Mar 01 18:43:24 I'm trying to use a TableLayout to populate a "keyboard" of buttons, and iterating through its child views to set listeners on them, but that's making the whole thing really slow. is there a more effective way to do that? Mar 01 18:44:32 what is slow Mar 01 18:45:31 nearly a second between button tap and action Mar 01 18:45:51 I'm using the buttons to modify text in an EditText Mar 01 18:46:35 full second? like gap between tap and visible reaction to view, or tap, action is taking to long, but click was accepted Mar 01 18:47:49 good question. I'll try and figure that out Mar 01 18:48:33 drinfernoo: do you see the log of "skipped X frames, you might be doing too much work"? Mar 01 18:48:48 ^good point to check Mar 01 18:50:38 thepoosh, nope Mar 01 18:50:54 code? Mar 01 18:53:22 hey: I'm doing some sout on every app lifecycle method(onPause, onResume, etc...) to know where and what is doing, I have this: http://beta.pastee.com/kd8ry first two line are when app start when pressing "debug" button, third line is when my app call camera app , fourth line is running when in fifth line is the inside onActivityResult, 6th line is when app continue running as normal Mar 01 18:53:31 why do the onStart() method again = Mar 01 18:53:33 ???? Mar 01 18:55:40 only 79ms between my click listener being called and finishing Mar 01 18:55:50 thepoosh, let me git Mar 01 18:56:34 drinfernoo did you mean 'thepoosh, let me go!" ? Mar 01 18:56:47 g00s: !!! Mar 01 18:56:48 why do onStart again? because your app was onPause'd and another app was foreground, then your app became foreground again and onStart is called Mar 01 18:56:55 hey thepoosh :D Mar 01 18:57:00 g00s nope lol Mar 01 18:57:00 http://redd.it/2xjrdy Mar 01 18:58:25 here you go thepoosh, https://gist.github.com/drinfernoo/08ada96cb3e4820f5113 close enough Mar 01 18:59:35 thepoosh, I couldn't even write a main method from memory lolol Mar 01 18:59:43 what is ButtonFlat Mar 01 18:59:44 ? Mar 01 19:00:03 why not do GridLayout?! Mar 01 19:00:53 ButtonFlat is a material-styled only text button, and yes, why not do GridLayout? what's the advantage of GridLayout vs TableLayout? Mar 01 19:01:10 adapters Mar 01 19:01:16 onItemClickListener Mar 01 19:01:26 brb Mar 01 19:01:58 that's GridView, no? Mar 01 19:02:06 i can't believe somebody actually wrote a k/v store on top of sharedpreferences Mar 01 19:02:24 wat Mar 01 19:02:30 ok I can assure you that this code http://developer.android.com/training/camera/photobasics.html does not work on Galaxy S3, as is Gliese Mar 01 19:02:47 drinfernoo http://www.reddit.com/r/androiddev/comments/2xkhph/hawk_secure_simple_keyvalue_storage_saw_this/ Mar 01 19:02:54 hope the dev isn't here, thats just retarded Mar 01 19:03:10 Yay for reddit~ Mar 01 19:03:13 ! Mar 01 19:03:23 So does anyone know if I can have a light action bar on some of my activities, but dark on others? Mar 01 19:03:37 lol Mar 01 19:04:10 use Toolbar, and you can do whatever your heart desires Mar 01 19:04:16 using Theme.AppCompat.Light and Theme.AppCompat.Light.DarkActionBar? Mar 01 19:04:43 what is the best tutorial for android? the one google recommends after installation of android studio is mostly confusing and maybe even outdated Mar 01 19:05:04 hahah, Gliese! Mar 01 19:05:23 check that project out, PhotoIntentActivity, you just download it from that link as an Android sample and import it Mar 01 19:05:38 I just ran it on S3, you take a picture, nothing shows up. ran it on N5, you take a picture, you see it Mar 01 19:06:06 phew, that's reassuring, thought I was doing something wrong Mar 01 19:07:04 so dear androiders, have anyone written some service tests? Mar 01 19:07:28 i have a service which i vend as SDK and i need to try it out when running multiple instances of the same service... Mar 01 19:07:59 does it need to have a tag in the manifest file? Mar 01 19:08:04 been battling with this shit device since morning! Mar 01 19:08:07 how would i go about this Mar 01 19:08:07 its god damn 9 pm Mar 01 19:08:16 Odaym: whats the problem Mar 01 19:08:19 Odaym: relax Mar 01 19:08:24 I am relaxed, this is how I talk Mar 01 19:08:30 god damn Mar 01 19:08:32 see Mar 01 19:09:09 bloody hell Mar 01 19:09:14 get an S3, download this http://developer.android.com/training/camera/photobasics.html, run it Mar 01 19:09:20 BAM, you can't take pictures Mar 01 19:09:23 Odaym: maybe you need to check out your attitude towards software components Mar 01 19:09:26 100% guaranteed Mar 01 19:09:31 be quiet man Mar 01 19:09:36 telling me how to behave.... Mar 01 19:09:44 check it on the emulator man Mar 01 19:09:50 you dont want to see Odaym not calm Mar 01 19:10:00 oDAMN should been my name Mar 01 19:10:01 g00s: well i guess i don't Mar 01 19:10:04 lel Mar 01 19:10:26 nah but seriously, just trying to take a picture with my device, testing on several devices, S3 won't let you Mar 01 19:10:30 even from that google sample code Mar 01 19:11:50 how do you take picture, with takePicture? Mar 01 19:12:14 or via intent Mar 01 19:12:19 could be the default app problem Mar 01 19:12:37 you call their dispatchPictureIntent function, it's all in there Mar 01 19:13:04 * Moter8 wants to hit himself Mar 01 19:13:08 well, regardless of what the source of the problem is, how can code for such a task (demo code from google) not be working on some very popular device? Mar 01 19:13:10 ah well because today im struggling with pictureCallback not being called sometimes on 1 device Mar 01 19:13:16 10 minutes wasted by not ButterKnife.inject(this);'ing Mar 01 19:13:24 so what is the difference between TableLayout and GridLayout? since I think its GridView that has onItemClickListener and adapters Mar 01 19:13:26 HAHA Mar 01 19:13:27 'ing Mar 01 19:13:43 he Mar 01 19:14:06 i am into talking about something as interesting as testing services in a multi application environment Mar 01 19:14:13 :O Mar 01 19:14:15 its way more cool than those damn table views Mar 01 19:14:23 if someone got the guts Mar 01 19:16:57 haha, funny http://www.rogerebert.com/mzs/watching-aliens-for-the-first-time-again-with-a-bunch-of-kids Mar 01 19:19:38 android weekly #142 Mar 01 19:20:28 hm, a charting library i haven't seen https://github.com/PhilJay/MPAndroidChart Mar 01 19:20:37 anyone able to compare this with jjoe64? Mar 01 19:21:17 very very nice Mar 01 19:21:34 Nice Mar 01 19:21:53 life.change() Mar 01 19:27:14 g00s, I really like HelloCharts Mar 01 19:28:18 nice ip kaendfinger Mar 01 19:28:25 thnx Mar 01 19:29:19 drinfernoo wow, that looks nice too - thanks Mar 01 19:29:34 yup Mar 01 19:29:54 drinfernoo do you know = can you add data to the chart dynamically ? Mar 01 19:30:03 Wow hellocharts has some good inspiration, i love writing graph views Mar 01 19:30:05 I do like the web chart that one you sent has Mar 01 19:30:16 g00s, AFAIK, yes Mar 01 19:30:25 its a pretty simple library too Mar 01 19:30:47 yeah i have to do a rose plot Mar 01 19:32:59 What is considered high memory usage for an app? Mar 01 19:33:04 Say a news reading app with images? Mar 01 19:34:22 High memory is an app that is close to exceeding the devices VM allowance Mar 01 19:35:58 if TacticalJoke were here he'd LOL Mar 01 19:37:26 AKK9 do you have a more detailed question? Mar 01 19:37:56 ah this looks nice too https://github.com/thyrlian/AwesomeValidation Mar 01 19:38:27 good find Mar 01 19:38:27 if TacticalJoke were here he'd LOL hm why Mar 01 19:38:38 freaking chrome Mar 01 19:38:45 Moter8: I was messing round :) Mar 01 19:38:51 github/fb permanently loading, gahh Mar 01 19:39:00 :D Mar 01 19:40:42 whatitis, well maybe not HIGH usage but trying to figure out what is unreasonable memory usage Mar 01 19:41:18 g00s, I do not think hellocharts does those Mar 01 19:41:36 yeah its not too common. maybe i can add it Mar 01 19:42:07 AKK9, unreasonable is exceeding the devices allowance Mar 01 19:42:22 otherwise if the memory is free it's being wasted :) Mar 01 19:42:36 AKK9 i would look at how fast its growing and how fragmented things are getting (and how quickly) Mar 01 19:42:58 if its stable and not fragmenting much thats good, even if using a bit of memory Mar 01 19:43:06 whatitis: At what? Mar 01 19:43:30 I wasn't laughing just then. Had a spider absailing down towards my head. :/ Mar 01 19:43:32 long delay == killed troll :) Mar 01 19:43:40 abseiling* Mar 01 19:44:04 you joined, and i was trying to mess with ya to think something happened :) Mar 01 19:44:35 ok cheers g00s, it looks pretty stable based on memory monitor, no spikes and when GC runs it goes right back down to where is was when is started the app Mar 01 19:44:45 so should be fine Mar 01 19:45:13 So when is android tv coming Mar 01 19:45:15 XD Mar 01 19:45:32 what do you mean? doesn't android come on some tvs? Mar 01 19:45:48 yeah some tvs come with tracking features :) Mar 01 19:50:35 * pfn readds to ignore list Mar 01 19:51:11 * whatitis ignorre to ignore list Mar 01 19:52:38 as far as I can tell, GridLayout doesn't offer any kind of OnItemClickListener compatibility, so I'd be stuck iterating through the views anyway Mar 01 19:52:58 and I don't _really_ think that's where my slowdown is Mar 01 20:06:45 drinfernoo: You can use method profiling to find slowdowns. It's not the easiest-to-use system ever, but it works. Mar 01 20:07:05 I probably can't... AIDE lol Mar 01 20:07:35 Hi all, i have some out of memory issues. and it may or may not be because i am trying to do to much. i have a view pager with a page for each letter ( a.. z). each fragment on the page has a grid of imageview's (i cant recreate the problem my self on my device or in emulator ) but i get it on the google app page. i tried to add bitmap.recycle() code to the view pager adaptor. this cause me to get errors saying i cant use bitmap that are recy Mar 01 20:07:36 but! I think GridLayout may be faster, so I'm gonna try it out Mar 01 20:08:55 drinfernoo: Why not use Android Studio? Using AIDE sounds hugely limiting. Mar 01 20:09:23 I don't own a computer lmao Mar 01 20:10:01 trust me, I'm on your side, but I really want to dev, and I feel like I'm triumphing over adversity Mar 01 20:14:18 I do prefer the GridLayout way, but its not any faster. I don't really know if that's the problem, though Mar 01 20:16:25 I'm using palette to theme my activity based on the main image for the activity. Mar 01 20:16:46 At what point is it considered too inconsistent Mar 01 20:17:39 Should I just color the status bar and stop there, or should I color all the buttons and text and all that? Mar 01 20:17:52 It looks nice completely themed, but maybe I need to have some consistency? Mar 01 20:36:35 i think the button I'm using is causing it. it has a ripple effect, and the listener isn't called until the ripple finishes Mar 01 20:38:06 hey kickingvegas how are you Mar 01 20:38:43 drinfernoo: Can you use LogCat on there? Mar 01 20:38:55 yeah Mar 01 20:39:27 g00s: well! Mar 01 20:39:52 g00s: likewise? Mar 01 20:40:16 kickingvegas pretty good, getting done with my BLE project Mar 01 20:40:30 kickingvegas quick question, i think you would know : does iOS core bluetooth let you read multiple characteristics at once ? like ATT / multiple attribute reads? Mar 01 20:42:07 reason i ask - this oem has 7-8 characteristics that are changing ; so the iOS app uses notifications for those. but on adnroid, the limit is 4 so I have to poll Mar 01 20:42:52 android 5 can do 7 simultaneous enabled notifications but i'm targetting 4.4.x for now Mar 01 20:43:04 g00s: the API lets you issue a request to read a characteristic one at a time Mar 01 20:43:16 ok, thats like android then Mar 01 20:43:37 weird the iOS devs told me to read multiple O.o now i have to ask them what they meant by that Mar 01 20:44:26 You can discover multiple chars at once Mar 01 20:45:00 That is prob what they mean Mar 01 20:45:14 hmm, like service discovery ? Mar 01 20:45:22 Yes Mar 01 20:45:35 ah , that happens on connection for all the services. ok Mar 01 20:45:52 android has a bug with its cache there, gotta handle that too Mar 01 20:46:45 its not until android 5 we get to change the connection interval. so the peripheral goes into a relaxed timing after 30 seconds of connection, and reading the chars one by one is very slow Mar 01 20:46:58 kinda messing things up :( Mar 01 20:47:26 this is what happens when oems target one platform without regarding how the other will impact things Mar 01 20:47:40 nordic semi recommends having a char to write to which changes connection interval Mar 01 20:47:51 (of course, these are only recommendations) Mar 01 20:49:09 g00s: welcome to the circus Mar 01 20:49:34 kickingvegas you guys are just broadcasting right? Mar 01 20:50:04 Advertising, yes Mar 01 20:50:30 Hey got to run ttyl Mar 01 20:51:11 drinfernoo: FWIW, there was someone in here recently talking about a material-button library having issues with click listeners firing only after ripples finished. Mar 01 20:51:21 had^ Mar 01 20:55:03 TacticalJoke, it is indeed a bug in the library Mar 01 21:01:49 Hi guys. I have Activity implements LoaderManager.LoaderCallbacks. When the data under the cursor is updated I call some code to refresh a GridView with the update data. I faced a problem - my grid view is updated with a new item but the item(image) is a duplicate of the previous item and the new image appears on the first position only after the next refreshing. Mar 01 21:02:25 Did anyone experience something like that? Mar 01 21:07:49 Do any popular games actually use the google game services? Mar 01 21:09:10 can't say I've ever played a game and did the google oauth2 flow Mar 01 21:10:19 poutine, yes Mar 01 21:10:49 crossy road, Circle, Daddy Long Legs have it Mar 01 21:11:22 okay, maybe they arent superpopular but there definitely exist Mar 01 21:12:39 Ok Moter8, I appreciate the example list Mar 01 21:12:54 just wanted to make sure before I went down this route that it's actually used by other people Mar 01 21:13:50 I always cringe when I see google+ references Mar 01 21:14:59 Hello again, all Mar 01 21:15:42 So if I'm using an SQLite DB, can I write everything I need to interact with it somewhere where I can access it in all of my activities? Mar 01 21:15:58 That's a matter of #import statements, correct? Mar 01 21:16:51 TechGeek01, To answer your first question, yes, but typically you'll want a class that interacts with the db, and you use that class in every activity that needs db access Mar 01 21:16:59 Yup Mar 01 21:17:09 And then I can #import it? Mar 01 21:17:31 And where would be the best place to save that Java file to be imported? Mar 01 21:17:48 in your project Mar 01 21:18:06 Just in the java directory, or is there somewhere specific? Mar 01 21:20:14 are there some guidlines for memory limit ? so i know how much memory my app can use ? Mar 01 21:21:33 Having this layout: http://paste.lug.ro/131430 any ideas on how I could get that image onclick to get full screen ? Mar 01 21:22:59 I tried this http://paste.lug.ro/131431 but with funky results .. Mar 01 21:27:03 TechGeek01, that's stylistic Mar 01 21:27:17 can be in the same folder as your activity, etc Mar 01 21:28:45 it really is a chore to get genymotion to the point where it can run google play services, and compile/run the android-basic-samples Mar 01 21:31:32 http://devicelab.vanamco.com/cart Mar 01 21:34:01 BlackBishop, why you don't put the image as background to be full screen Mar 01 21:34:12 and them you put a click listener for all view Mar 01 21:34:47 poutine ? Un gars du Qc? Mar 01 21:35:02 nope Mar 01 21:35:10 Boooo :P Mar 01 21:35:12 :D Mar 01 21:35:19 What's up with the name then? Mar 01 21:35:35 I live in CA, but not the one you'd think (It's California) Mar 01 21:36:15 poutine is delicious Mar 01 21:36:34 I think California when I see CA :) We don't use that here unless it's at the end of a domain name Mar 01 21:36:38 and yes, it is! :D Mar 01 21:36:55 Great, now I'm hungry. Mar 01 21:37:37 Gliese: why background ? I need it to be over everything else .. I'll just create a new activity .. Mar 01 21:42:50 That feeling when you find the perfect name for a class. Mar 01 21:43:17 Mar 01 21:43:18 ThePerfectAbstractFactoryManager Mar 01 21:43:22 :D Mar 01 21:43:59 While my classes are named thisIsAClass, thisIsAlsoAClass, etc. Mar 01 21:44:00 :D Mar 01 21:47:35 the instances or the class name? Mar 01 21:48:10 I'm following http://www.devx.com/wireless/Article/40842/0/page/2 Mar 01 21:48:22 cool Mar 01 21:48:27 Can anyone enlighten me as to where we're getting DisplayTitle(c) from? Mar 01 21:48:45 It's not able to resolve it in my code Mar 01 21:48:54 The implementation is on that page. Mar 01 21:49:27 Ctrl+F "displaytitle" Mar 01 21:50:00 Wow Mar 01 21:50:04 That was stupid Mar 01 21:50:09 I freaking saw that Mar 01 21:50:49 Hehe, that happens to me when i spend too much time looking at the code, then i don't even know what i am reading. Mar 01 21:50:50 :P Mar 01 21:51:49 Where do you decalre that void then? Mar 01 21:51:58 Right in your DBAdapter.java? Mar 01 21:52:45 <-- surprised nobody mentioned class names starting with lower case letters. Mar 01 21:52:52 there .. fixed .. who said scotch tape isn't the right tool for the job ? Mar 01 21:53:00 TechGeek01_: Look at where it's being called from. Mar 01 21:53:17 On a side note, doing DB stuff on the main thread seems misguided. Mar 01 21:53:35 TacticalJoke: Do we decalre it right in the same activity we're calling it from then? Mar 01 21:53:43 It seems that that tutorial does. Mar 01 21:54:31 MikeWallaceDev, all my classes start with lowercase letters. :P Mar 01 21:54:41 Ah, good old camel case Mar 01 21:54:49 Burn the witch!!!! Mar 01 21:54:54 Muhahaha. Mar 01 21:54:57 :) Mar 01 21:55:02 I always learned, methods start uppercase, and functions and variables and shit are camel case Mar 01 21:55:13 Nightwalkerkg: That'll just make your code look inconsistent with everything else. :) Mar 01 21:56:05 Classes start with upper case, methods and fields lower case. everything is camel case Mar 01 21:56:24 TacticalJoke, hey, as long as it's working, i don't care if it's upercase, lowercase, or any case. :D Mar 01 21:56:28 not that I'm saying that's the right way to do it, that's just how Java does it Mar 01 21:56:52 But i usually keep it up-case, i was just joking. :D Mar 01 21:57:10 as long as you keep it up Mar 01 21:57:14 wait, what? Mar 01 21:57:24 That's what she said. Mar 01 21:57:29 Topkek. Mar 01 21:59:08 Oh, gawd, there's so much drama on reddit. Love it. Mar 01 21:59:21 Every possible controversial debate is happening at the same time. Mar 01 21:59:25 TacticalJoke admit it - you like it :D Mar 01 21:59:38 TacticalJoke, link ? :D Mar 01 21:59:50 It's nice watching from the outside. :) Mar 01 22:00:26 The main stuff I'm reading is from /r/TrueReddit. Mar 01 22:01:15 ./r/TrueReddit is where the "Get off my lawn" redditors go. Mar 01 22:02:32 halp. where is that option that turns of AS layout design mode Mar 01 22:02:57 That thing at the bottom left? Mar 01 22:03:17 the tabs are bottom of the text editor window Mar 01 22:03:40 yeah, but each time i restart AS, it defaults to design view Mar 01 22:03:50 and takes forever to initializethe rendering library Mar 01 22:03:51 Oh. Mine seems to remember my last view. Mar 01 22:04:18 doesn't seem to remember across restarts for m Mar 01 22:04:18 *me Mar 01 22:04:55 i'd like all the android shit to be in Preferences / Android Mar 01 22:05:14 like the ADT, one place for all android settings Mar 01 22:05:25 but its spread out all over Mar 01 22:07:37 AHA ! gear -> prefer XML editor Mar 01 22:07:44 When I use the Material.ActionBar.Dark it looks very good. But when I use the normal variant that is not dark, it looks very ugly. Why is this? Mar 01 22:08:47 That's what I call a badly placed UI option. Mar 01 22:09:29 smallfoot-: By "ugly" do you mean "grey"? Mar 01 22:09:37 Or "whiteish grey". Mar 01 22:10:29 Well the dark one is plain color, and if you pick a color, its plain colored, but the default action bar seems to have a faded gray Mar 01 22:10:58 You should be able to change the colour by way of "android:colorPrimary". Mar 01 22:11:03 its not white, and its not gray, it fades from gray to white, very weirdly, very odd Mar 01 22:11:05 Or "colorPrimary" if you're using AppCompat. Mar 01 22:11:14 Yeah, I know. I did that, then it looks good. Mar 01 22:11:21 But why does the default one look so ugly? Mar 01 22:13:05 Yeah, I'm not a fan either. Mar 01 22:13:41 I wonder why they made it that way, because I assume that is what most apps would go with since its default Mar 01 22:13:50 Isn't the default the dark theme? Mar 01 22:13:58 Maybe it was "everyone is using the default colors, so lets make the default so horribly ugly to force people to switch" Mar 01 22:14:03 Though I guess you meant "the default colour for the light theme"> Mar 01 22:14:05 I don't know Mar 01 22:14:15 I thought the Dark was the optional theme, and the Light was the default? Mar 01 22:14:44 yeah, the default color for the light theme action bar Mar 01 22:14:44 Theme.Material is dark and Theme.Material.Light is light. Mar 01 22:14:51 oh, I see Mar 01 22:14:53 Theme.Material.DoNotWant Mar 01 22:15:02 which is the default action bar? Mar 01 22:15:10 Dark on dark. Mar 01 22:15:17 hmm, I see Mar 01 22:16:01 smallfoot-: Have you seen this? http://www.materialpalette.com/ Mar 01 22:16:06 yes Mar 01 22:16:28 They have a pink colour scheme there. :D Mar 01 22:17:17 yes, I like that one Mar 01 22:18:13 Indigo is so nice. I need to include that in my app somehow. Mar 01 22:19:22 TacticalJoke, tnx for this. It's awesome. Mar 01 22:19:47 It seems Android development is very much boiler plate code Mar 01 22:19:58 Adding a floating action bar takes a lot of effort Mar 01 22:20:04 floating action button* Mar 01 22:20:31 would have been nice if they put that as a support lib. gotta love it, there has to be at least 7 of them now Mar 01 22:20:52 Yeah, some of these things need a standard implementation.. Mar 01 22:20:54 .* Mar 01 22:21:03 Libraries are great for weird stuff. Mar 01 22:21:48 Can anyone help here? Mar 01 22:21:50 On that topic, though, you know what grinds my gears? Apps that have a floating action button just because. Mar 01 22:21:50 EditText someThing = (EditText).findViewByid(R.id.scout_teamNum); Mar 01 22:22:17 TechGeek01_: D00d. Mar 01 22:22:20 (EditText) has a squiggly line twlling me it expected an expression Mar 01 22:22:52 I don't want to live in a universe in which code like that compiles. Mar 01 22:22:58 it didn't Mar 01 22:23:12 Illegal start of type Mar 01 22:23:19 But I'm literally following http://stackoverflow.com/questions/4531396/get-value-of-a-edit-text-field Mar 01 22:23:45 Why did you add a period after )? Mar 01 22:24:25 Hmm Mar 01 22:24:33 Sometimes you just need a second set of eyes, I guess Mar 01 22:24:47 findViewByid(R.id.scout_teamNum) Mar 01 22:25:06 Oh Mar 01 22:25:07 Nvm Mar 01 22:25:14 Missed a capital i Mar 01 22:26:06 Use autocomplete to enter method names. Manual entry is too error-prone. Mar 01 22:30:13 TacticalJoke any idea - whats the best tab library? Mar 01 22:30:33 I've never had to use tabs, so I'm not sure. Mar 01 22:33:13 Is it hard to roll one's own here? Mar 01 22:33:41 I dunno much about 5.0 animations, though, so I'd be kinda concerned about the UX there. Hmm. Mar 01 22:44:59 Any way to have a class extend both ListActivity and ActionbarActivity? Mar 01 22:45:29 sure Mar 01 22:45:52 how can i figure out if i've got a developer version of a certain kind of phone? i just RMA'd a phone and the one i got back already had developer mode enabled so i suspect it's a developer version but dont know how to confirm Mar 01 22:46:38 Dev mode can be enabled in settings Mar 01 22:46:43 Probably even the same phone Mar 01 22:46:52 IIRC, 8 taps on the Android version number Mar 01 22:47:32 if it's the same phone then they did a nand reset which is weird Mar 01 22:47:47 8 taps on the v ersion number gives me the kitkat red android splash Mar 01 22:49:19 Okay, double tap on the Build number, not 8 on version Mar 01 22:49:42 got it, thanks Mar 01 22:50:31 It's seven. Mar 01 22:50:49 7 on the build number? Mar 01 22:50:58 Maybe it's because I already have them enabled, then Mar 01 22:51:07 TechGeek01_: I think you'll have to either do it manually or use ListFragment. Mar 01 23:05:46 is there any real reason to implement digest auth on the server anymore? Mar 01 23:06:25 seems like ssl for everything makes basic auth and hashed passwords on server the better choice Mar 01 23:12:58 um, not storing passwords anywhere is still a good idea. Mar 01 23:13:05 and basic auth requires you to store the users password. Mar 01 23:29:37 Hi, when I start camera app from an Intent it change orientation, there is a way to set the camera orientation using Intent that match the current device orientation? Mar 01 23:34:16 that new SGS6 has pixel density of 577 ppi - is that slightly crazy ? Mar 01 23:36:44 g00s: I'm doing a once-over on my smali gradle files. I vaguely recall you mentioning something about figuring out how to integrate ragel with gradle? Mar 01 23:37:06 hmm, yeah i'll pastebin what i have Mar 01 23:37:55 I've been able to get rid of my hacked-together support for antlr and jflex so far (there weren't any plugins back when I initially switched to gradle). I'm hoping to do the same with ragel. And hopefully proguard as well. Mar 01 23:38:01 is documented wich extras can have an Intent for camera app? Mar 01 23:38:56 JesusFreke http://pastebin.com/Tif9Wibu Mar 01 23:39:41 let me know if you come up with something better. the registerJavaGeneratingTask bit is so AS adds the sources to its model Mar 01 23:39:57 g00s: great, thanks Mar 01 23:42:28 JesusFreke my gradle.properties has: Mar 01 23:42:32 ragel.path=/usr/local/bin/ragel Mar 01 23:46:30 where did I used to go to access /data/data/etc. while the device was plugged in Mar 01 23:46:35 wasn't it part of DDMS? Mar 01 23:54:29 Odaym: there's a file explorer or something in one of the top menus, iirc Mar 01 23:54:31 in ddms Mar 01 23:54:55 yea that's what I remember Mar 02 00:00:38 I have about 15 logos i need to display inside a fragment, what would be the best and most organized way to do this ? Mar 02 00:00:56 no it was adb shell Mar 02 00:00:57 right Mar 02 00:01:08 but forgot how to get in there without getting permission denied all the time Mar 02 00:03:56 Mavrik, digest auth doesn't obviate the need to store a password equivalent on the client Mar 02 00:17:54 Is there anywhere I can get a meaningful tutorial on implementing ListViews? Mar 02 00:21:42 Dunno. From what I've seen, Android tutorials are pretty bad in general. Mar 02 00:22:56 I was gonna go off of http://www.vogella.com/tutorials/AndroidListView/article.html, but it's written like it's teaching you stuff it already assumes you know Mar 02 00:23:20 hi all, I am having some issues with my ExpandableListAdapter, it seems as though, getChildView is not being called, can anyone think of a gotcha that I might be missing? Group count is 1, and Child count is 8 as sepected Mar 02 00:23:46 That looks good, but it's TMI for someone who wants just the basics. Mar 02 00:24:53 I'm like, dude, I just started with this shit 3 days ago. Teach me how to implement them, not best practices. Lol Mar 02 00:25:10 This looks like a simple overview: http://windrealm.org/tutorials/android/android-listview.php Mar 02 00:25:42 Matulis I think its in the instantiation of the expandablelistview that things are going wrong Mar 02 00:25:44 not in the adapter Mar 02 00:25:59 Its use of is weird, though. Should surely be . Mar 02 00:26:12 Same with its use of . Mar 02 00:26:53 0daym, the expandablelistview is inflated from a layout? Mar 02 00:26:54 Also, gawd, that thing it does with ArrayList. Mar 02 00:27:08 Is it a rule that Android tutorials have to be ignorant of basic stuff? ;| Mar 02 00:27:44 Yes Mar 02 00:27:45 sorry I meant the setup from the activity Mar 02 00:27:52 giving the children to the adapter Mar 02 00:28:25 groupChildren.add(child); Mar 02 00:28:26 group.setItems(groupChildren); Mar 02 00:28:26 groups.add(group); Mar 02 00:28:34 etc Mar 02 00:28:55 like here http://pastie.org/9992414 Mar 02 00:28:57 TechGeek01: Aside from all my complaints, that tutorial gives you the absolute basics. After, if appropriate, you could switch from ArrayAdapter to a BaseAdapter subclass. Mar 02 00:29:10 Perfect Mar 02 00:29:15 Thanks for that! Mar 02 00:29:52 I actually used that tutorial to learn all about them, it is fairly basic Mar 02 00:30:16 I can give a legitimate +1 to that suggestion Mar 02 00:31:04 well, gn Mar 02 00:33:43 Hello once again, i am still having problems with OOM issues, with some device not having enough memory for a specific feature of my app. what would be a good way to disable this feature if heap size is not big enough? Mar 02 00:34:14 if Android.SDK_VERSION < KIT_KAT then its a shit device Mar 02 00:36:53 smallfoot-: well it is reported by Galaxy Tab2 7.0 / Android 4.4 according to the play store backend. =( Mar 02 00:36:54 fanno: Are you loading every single image into memory at once? Mar 02 00:39:17 TacticalJoke: no, they are on grid view loading about 8 at a time. But the bitmap is properly loaded. i have tried to use .recycle but i cant control it as content is dynamic and i don't know where what images is Mar 02 00:41:39 TacticalJoke: i am using viewpager, i know there are problem with memory which is why i am trying to use recycle() Mar 02 00:47:03 I have a fragment with about 20 images, logos. And i had to use the picasso to crop them and minimaze the memory usage. Before it used up to 80Mb now it's using about 18. Mar 02 00:49:03 Nighwhen i load the viewpater and scroll throw all views from a..z so the view pager has about 20 pages. Mar 02 00:54:19 Reinstalled Firefox, realised the Sync wasn't on, lost all my bookmarks. Mar 02 00:54:29 [Cries in Spanish] Mar 02 00:55:01 ExpandableListView adapter, is there a good way to default it to all groups expanded? Other than just looping through and expanding all groups? Mar 02 00:55:12 http://windrealm.org/tutorials/android/android-listview.php Mar 02 00:55:35 Any way to make listAdapter.add() add items to the top of the list instead of the bottom? Mar 02 00:56:12 I think ArrayAdapter has an insert() method Mar 02 00:59:16 TacticalJoke: You know if that's a 0-based index or a 1-based? Mar 02 01:01:05 Always 0. Mar 02 01:01:51 I can't remember ever dealing with non-0-based indices outside of Pascal. Mar 02 01:01:55 i didn't know you could add elements to an adapter, i thought you just add to the data set and notifyDataSetChanged @_@ Mar 02 01:02:06 damien5314: That's what adding to the adapter does under the hood. Mar 02 01:02:32 figured Mar 02 01:04:11 ArrayAdapter is kinda weird. It has a few random convenience methods. Mar 02 01:06:36 i guess that's an easy way to make sure you don't lose the reference to your List or something, i've had a bug pop up from setting my List variable to a new list and couldn't figure out why it wouldn't update the ListView Mar 02 01:08:09 You guys know any website where i can learn more about android dev ? Mar 02 01:08:51 lots Mar 02 01:09:04 what do you want to know? Mar 02 01:09:13 How to improve my UI. Mar 02 01:09:26 improve how Mar 02 01:09:26 But also some performance improvemenets. Mar 02 01:09:36 myke, make it look much better. :D Mar 02 01:10:09 TacticalJoke, sorry to ask you again, but can you give me a link for that android L pallete website. I lost all my bookmarks. :/ Mar 02 01:10:11 yea i'm not grat at that. it's a lot of theming, like web pages Mar 02 01:10:18 http://www.materialpalette.com/ Mar 02 01:10:19 google's material design spec is a good guide to a nice-looking UI Mar 02 01:10:31 TacticalJoke, yeah, thanks a lot! Mar 02 01:11:08 damien5314, yeah, but for example how do i display about 20 logos inside an app but not just toss it around with imageView ? Mar 02 01:13:01 hmm.. i think there are some blogs that showcase apps with good design, let me see if i have a bookmark Mar 02 01:13:16 http://androidniceties.tumblr.com/ Mar 02 01:13:48 might give you some inspiration Mar 02 01:13:59 Yeah, this is great. Thanks! Mar 02 01:14:00 I love that StackOverflow feature that tells you when a question is a good one. Though the wording is strange: "Closed as not constructive". Mar 02 01:14:11 hey everyone i just installed android studio and found some old tutorial/app made in eclipse i don't know how to run them in android studio Mar 02 01:15:04 Hi Mar 02 01:17:18 https://rm-content.s3.amazonaws.com/519c54de8302980000001d7c/40100/upload-9b51d600-7a0e-11e4-a326-01eed86dbb15.png Is this a gridView with cardView inside it ? Mar 02 01:18:48 Is there a way to somehow run a function when I go back to an activity by way of calling a finish() from another activity? Mar 02 01:19:20 you can call the Activity for result Mar 02 01:19:56 You mean with startActivity() ? Mar 02 01:20:06 TechGeek01, look at startActivityForResult(); Mar 02 01:21:46 And will that allow the parent activity to act as though we just re-called onCreate() after I call finish()? Mar 02 01:21:55 no Mar 02 01:22:00 onResume Mar 02 01:22:13 life cycle :) Mar 02 01:22:40 You get onActivityResult, TechGeek01. Why do you want onCreate to fire again? Mar 02 01:23:00 I need to repopulate a ListView Mar 02 01:23:21 then that should be done in onResume Mar 02 01:23:44 then you won't have to bother with that Mar 02 01:23:49 Awesome Mar 02 01:24:38 tip : don't fight the platform. If you are trying to do something normal (like keeping your data up to date) and you have to figure out a cheat to do it, you're doing it wrong. Mar 02 01:33:09 i had to use a hack-ish kind of thing to hide items in a recyclerview, haven't found any way to do it otherwise :( Mar 02 01:33:36 keep a separate list of the visible items and retrieve the visible indices from that Mar 02 01:36:51 Hmm Mar 02 01:36:56 So onResume doesn't get called Mar 02 01:39:34 Hey guys I have a ubuntu server (its just old desktop pc actually) and I frequently use SSH to connect to it, and I was wondering what would be a common way to communicate with the ubuntu server to send commands like shutdown/reboot/hibernate stuff like that? Mar 02 01:40:42 a common way is asking in #ubuntu or #linux Mar 02 01:40:44 Demon_Jester hmm, #ubuntu maybe ? Mar 02 01:41:17 Yeah I will ask them I figured I would try here since I am wanting to make android app. Mar 02 01:41:42 dumb way to look at it Mar 02 01:42:04 What kind of app do you want to make Demon_Jester Mar 02 01:42:08 onResume should be called every time your activity is shown. Use Log.i to verify that it's being called. Mar 02 01:43:29 drose379 do various things, like if I want to manually shut it down (which I know I can do through ssh, and want to experiment trying it through android app) Mar 02 01:44:39 Cool good luck\ Mar 02 01:45:05 yep, thanks. Mar 02 01:47:08 i have a mix of support.v4.Fragments and native PreferenceFragments I'd like to put in a viewpager - but they don't have the same superclass. do i have to make my own FragmentPagerAdapter implementation ? Mar 02 01:48:46 yes Mar 02 01:56:54 i'd have to give it the native fragment manager and the support one, what a freaking mess Mar 02 01:59:25 i'll just make the stuff in the pageradapter all native fragments Mar 02 01:59:41 Leeds what do you think of the sgs6 ? Mar 02 02:00:28 g00s: no you dont Mar 02 02:00:40 g00s: well, I'm unlikely to buy one... I guess we'll see how much things like removable battery and SD card really matter Mar 02 02:00:46 g00s: https://github.com/kolavar/android-support-v4-preferencefragment Mar 02 02:01:15 Napalm ah, thanks Mar 02 02:01:43 Leeds don't care about sdcard much, but i really like removable batteries Mar 02 02:02:03 its one of their nicer looking devices at least Mar 02 02:02:44 it does have a lot of iphone 6 about it... Mar 02 02:02:48 what is the big button on the bottom of that thing ? Mar 02 02:03:26 home/fingerprint Mar 02 02:03:46 does anyone here use UML to plan their apps/classes? Mar 02 02:04:13 i doubt it Mar 02 02:04:48 trying to figure out how to code a custom UI object that is backed by a database...thought I would use UML to diagram it, but UML is fricken complicated Mar 02 02:05:06 how would UML help you decompose the problem ? Mar 02 02:05:18 I get confused thinking about it Mar 02 02:05:26 What about drawing something out on paper? Mar 02 02:05:34 I've never found UML very useful, personally. Mar 02 02:05:35 I don't have the experience to know how to design this Mar 02 02:05:43 TacticalJoke, thinking about doing that yeah Mar 02 02:06:24 maybe I could ask a generic question first: I want to set up a framealyout with its children containing different data objects that are displayed. the data objects should be fetched from a database asynchronously as needed... Mar 02 02:06:35 how do I approach this? Mar 02 02:07:03 btw, meant to say gridlayout. and then that's inside a viewpager Mar 02 02:14:17 say I have a view that starts as one color, but I want to set its colors via palette, and let them "pop in" when the image loads, that's an asynctask, right? Mar 02 02:22:11 Hey guys Im using SlidingTabLayout to create a tab view, and Im trying to change the color of the line the underlines the tab title text, anyone know what that is called ? Mar 02 02:25:38 argh. I'm keeping an ImageView in the pressed state. I want to use a selector to change the background when in that pressed state. But the pressed drawable doesn't show. Mar 02 02:25:59 it does show WHILE I am pressing on it. Mar 02 02:26:20 and, I know that the state is good, but the functionality is working Mar 02 02:26:35 ( if pressed, then this, else that ) Mar 02 02:26:42 it toggles perfectly. Mar 02 02:26:47 Any ideas?? Mar 02 02:27:24 the selector has two items : android:state_pressed="true" and empty Mar 02 02:28:20 drose379, I think they call it the indicator Mar 02 02:28:23 oh, and I also tried calling view.refreshDrawableState(); after setPressed(true) Mar 02 02:29:03 drinfernoo would it be something I change in SlidingTabLayout or SlidingTabStrip Mar 02 02:29:37 I think its in SlidingTabStrip, but that it wasn't well marked Mar 02 02:29:47 Hmmm Mar 02 02:29:48 drose379, https://github.com/jpardogo/PagerSlidingTabStrip Mar 02 02:29:56 MikeWallaceDev, http://stackoverflow.com/questions/6213337/selector-not-working-with-layout-and-image-view maybe can help Mar 02 02:30:02 muy simple Mar 02 02:30:27 well short answer : android:clickable="true" for your parent layout Mar 02 02:30:33 csst0111, saw... it Mar 02 02:30:48 (earlier) Mar 02 02:31:21 Thank you Mar 02 02:31:31 I admit that I didn't try it, because the clicks are all working... Mar 02 02:31:43 meh, I'll give it a shot, can't hurt Mar 02 02:31:58 Nope, no dice Mar 02 02:33:24 trying to make multi line text in a textview in a listview row, any ideas? Mar 02 02:33:48 the thing is, the pressed image DOES show, it just doesn't stick Mar 02 02:33:52 drose379, that's what I'm using, works pretty well, and is very customizable Mar 02 02:34:07 but the state does stick... I don't understand :-/ Mar 02 02:36:23 add a setPressed(true) just in case MikeWallaceDev Mar 02 02:36:44 I did, that's how I keep the state Mar 02 02:37:16 remove it :P Mar 02 02:50:04 feel free to slap me at anytime........ I was in the wrong onClick method. Mar 02 02:50:26 there are not enough palms in the world for my face right now Mar 02 02:50:36 :| Mar 02 02:52:15 well I wasted 3 hours thinking the origin for the text in drawText is the upper left corner Mar 02 02:55:24 Holy bajeezus, it'd be nice if we had type inference. Mar 02 02:55:52 well, on the bright side (??) I put the code in the correct place and it still doesn't work. Mar 02 02:59:05 TacticalJoke i wish i could use <> for anonymous inner classes, so annoying Mar 02 02:59:42 public Foo myFoo = new Foo<> { ... } **** ENDING LOGGING AT Mon Mar 02 02:59:58 2015