**** BEGIN LOGGING AT Sat Jan 03 02:59:59 2015 Jan 03 03:00:23 so in particular, I want to stream video from my VPS. I'll need some program running on the server as well Jan 03 03:08:49 if i have AppWidgetProviderInfo of a widget is it somehow possible to get the ID of that widget? Jan 03 03:09:02 why do I get a NullPointerException from this code? numberValue is a public static int defined globally (at the top of the class). public void updateTextView() { TextView textView = (TextView) findViewById(R.id.textview); textView.setText("" + numberValue); } Jan 03 03:09:55 (not my widget, some widget installed on device) Jan 03 03:10:47 duncannz: textView is null. Also, Integer.toString(numberValue) Jan 03 03:11:17 1. Why? 2. ok Jan 03 03:11:51 duncannz: I don't know what your layout is like. you probably don't have a TextView with the id of textview in your layout. Jan 03 03:12:31 yep that was right lol. it autocompleted from a different layout. Jan 03 03:40:58 so you java people have it all wrong Jan 03 03:41:12 javascript/cordova isn't the problem, java is Jan 03 03:41:59 I just s[ent a few hours rewriting and debugging a cordova contact plugin... and they used the READ_CONTACTS permission for no good reason Jan 03 03:42:41 why? because java/android is just too convoluted and many are just stumbling around Jan 03 03:43:00 ...like ghosts in Sleepy Hollow's Purgatory Jan 03 04:08:53 stupid samsung android drivers. Jan 03 04:09:03 Agamemnus: do java like a real man or get out Jan 03 04:09:30 oooh ouch! that was harsh, shmooz! Jan 03 04:10:19 that's what he gets for dissing java Jan 03 04:10:35 glad that I dissed samsung over their dumb drivers... Jan 03 04:11:08 unless you're a samsung fan too... Jan 03 04:11:35 you only need drivers if you're on windows, anyway... and if you're on windows, it's your own fault :P Jan 03 04:12:03 nah, windows can offer what others can't. Jan 03 04:13:00 So I have a main activity which is a login screen, and then I have my "Home" activity which is the part of the app that actually "does the app stuff". Problem is, when I back out of the Home activity, it goes back to my login screen which isn't supposed to happen. What do I want to look into to stop that? The "backstack"? Jan 03 04:13:01 driver problems? Jan 03 04:13:10 you don't always have to take what's offered... Jan 03 04:13:35 Leeds: driver problems, daily reboot (altho, linux is catching up fast here), IE!, etc. Jan 03 04:14:14 I'm no fan of SameSong Jan 03 04:14:25 B0BBY: try to find the latest USB drivers for your phone Jan 03 04:14:31 Leeds: joking aside, I like manga studio, and flstudio two of my big windows programs. I switched to linux years ago but had to come back for those two. Now, I just think of each platform as offering something useful. Jan 03 04:14:46 shmooz: yeah, just downloaded the latest from samsung for note II Jan 03 04:23:26 now to see if I can get spongycastle working in my proj. Jan 03 04:35:18 So I'm calling finish() after I start an activity that takes the user away from my login screen. Pressing back exits the app, which is good. However when I open the app again it goes to the login screen... what do I need to do to make the app go to the last activity the user was on? Jan 03 04:36:14 if the login screen is the outsider case, then you should launch into your normal activity, and then have it launch the login activity Jan 03 04:37:00 So you're saying the very first activity that should open on a fresh start of the app is the normal activity, and if they're not logged in then intercept that and route them to the login activity? Jan 03 04:37:46 when adding/removing views from the hiearchary, where should i kick of an animation for example, i want the viewgroup i add to expand when its added? Jan 03 04:40:51 do I remember correctly that someone in here had frozen android studio while debugging? I can't remember who it was, but the android backstage podcast mentioned something interesting on that. Jan 03 04:43:02 t0astt: is this when you back out -> resume from recents, or resume by "launching" from home? Jan 03 05:07:57 I'm trying to build and deploy the NDK sample apps, and I'm not sure that it is working correctly. It seems like all of the apps look identical to the Hello, World app. I see the name of the activity at the top, and the text "Hello World, [activity-name]" at the top, where the activity name is different for each app since I specified a different name when I built it. Jan 03 05:08:33 But it doesn't make sense why the native-plasma app would be nothing more than a Hello World app, but I'm not sure what I've done wrong. Jan 03 05:08:58 Is anyone here more familiar with how to build the NDK samples? Jan 03 05:22:51 So, for example, after trying to build the hello-jni project, I don't see the exact output described in http://brian.io/android-ndk-r10c-docs/Getting_Started/html/index.html Jan 03 06:00:59 How does an app know which activity to start first? Does it go by whatever is named MainActivity? Jan 03 06:01:33 t0astt: day 1 tutorial stuff man Jan 03 06:01:42 Look at the android manifest Jan 03 06:01:45 GBGames, i was tryin to build the ndk samples as well.. couldnt get em to work Jan 03 06:02:12 if your trying to compile c/c++ for android i suggest using the arm-linux-gnueabi packages Jan 03 06:02:26 very simple to use Jan 03 06:04:25 bynarie: Are those packages mentioned on the android developer pages? Jan 03 06:05:05 i dont think so Jan 03 06:05:22 but its super easy to compile like a single .c or .cpp file into an executable Jan 03 06:05:45 That's good to know. Thanks! Jan 03 06:05:52 its how i was able to compile a 64 bit busybox (aarch64-linux-gnu Jan 03 06:05:53 I'll look into them. Jan 03 06:06:36 all you have to do is execute "arm-linux-gnueabi-gcc -static helloworld.c -o helloworld.out" Jan 03 06:06:42 I just wish that the NDK page at http://developer.android.com/tools/sdk/ndk/ was more accurate. The docs it mentions are not in the package I downloaded. Jan 03 06:06:55 i cant figure out the NDK... i think its junk Jan 03 06:07:05 And that's just one problem I've encountered. Jan 03 06:07:34 Well, even so, I find it very bizarre that the hello world app that appears on my tablet is not the one that should be building. Jan 03 06:07:39 all i know is that you need your files in jni folder, edit android.mk, and execute ndk-build Jan 03 06:07:42 I have no idea where that one comes from. Jan 03 06:07:58 LoL^ Jan 03 06:10:17 GBGames, what are you specifically trying to build? or are you just experimenting ? Jan 03 06:10:51 Well, my ultimate goal is to build my existing games for Android, but for now, I'm just trying to build the sample apps. Jan 03 06:11:06 I was able to get the SDK and build a hello world app there. Jan 03 06:11:13 And deploy it to my tablet. Jan 03 06:11:43 So I downloaded the SDK, I ran tools/android update sdk --no-ui Jan 03 06:11:45 yea Jan 03 06:11:48 Waited an hour. Jan 03 06:12:09 Then I followed http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine Jan 03 06:15:41 i dont know if you can build apps with the gnu cross compilers Jan 03 06:15:54 i just use it to build console programs Jan 03 06:16:38 I don't see why you wouldn't be able to do so. Jan 03 06:16:47 I mean, what else would you use? Jan 03 06:20:04 nice, finally have my phone connected to eclipse. Jan 03 06:20:17 omg u still use eclipse? Jan 03 06:20:31 switch to intellij.. much better Jan 03 06:21:01 will the community edition let you use the ADT? Jan 03 06:21:18 yes Jan 03 06:21:24 cool. TIL Jan 03 06:21:28 will it let you do NDK apps? Jan 03 06:21:30 android studio Jan 03 06:21:34 ;) Jan 03 06:21:35 yes Jan 03 06:21:40 oh? since when? Jan 03 06:21:53 android studio = intellij Jan 03 06:21:54 it seemed blissfully unaware of C sources the other day. Jan 03 06:22:02 android studio uses intellij under the hood yes, but i was asking if ideaC itself would Jan 03 06:22:26 maybe im wrong lewellyn but i believe there is a setting you have to check to set it up.. its not automatic Jan 03 06:22:38 i saw nothing related to anything not-java in the settings. Jan 03 06:22:48 ok Jan 03 06:22:57 lewellyn: iirc its a plugin. for C/C++ Jan 03 06:23:12 ddd, yes, intellij works for android apps... Jan 03 06:23:24 the actual intellij ideaq Jan 03 06:23:26 ide Jan 03 06:23:37 ddd: or i can keep using eclipse, which works better for my needs and i've got my plugins set up the same in every instance i use on every platform for every platform. :P Jan 03 06:23:47 oh the payware one or the community edition? (or both?) Jan 03 06:23:55 bynarie: I setup android studio for all new projects. this one's already workign fine in eclipse. Jan 03 06:24:10 my original problem with the phone was lack of drivers, so it wasn't visible in anything. Jan 03 06:24:18 lewellyn: I use the oracle jdk1.8.0_25 on my system. eclipse lina (4.4.1) has been having issues with it Jan 03 06:24:24 i was just kiddin, lots of ppl use eclipse still Jan 03 06:24:36 s/lina/luna/ Jan 03 06:25:08 and lewellyn, you can make c/c++ calls through NDK with gradle Jan 03 06:25:26 I'm on 64bit ubuntu linux. My windows side works fine. trying to dup on my linux side now. pita sometimes hehe Jan 03 06:26:01 screw winblows... i gave up windows completely about 2 months ago... im on linux full time now Jan 03 06:26:15 bynarie: that... isn't quite relevant to opening a .c and .h and getting something *useful* in AS Jan 03 06:26:17 i've reasons to be on windows as well. dual boot works for me Jan 03 06:26:24 bynarie: I used to try it on the emulator. then move it to a server. then copy it over wifi to the device and install. took a while doing it that way. Jan 03 06:26:29 at least both are native installs hehe Jan 03 06:26:31 ddd: i use jdk7 still. Jan 03 06:26:36 ah Jan 03 06:26:50 and my indigo install uses 1.5, iirc. Jan 03 06:27:01 i have dual boot setup too, i just dont boot to windows unless i absolutely have to... photoshop for example Jan 03 06:27:09 i cant get wine to run photoshop Jan 03 06:27:28 and i cant navigate GIMP Jan 03 06:27:30 yeah ps is .. a mess .. under wine Jan 03 06:27:36 yes it is ddd Jan 03 06:27:38 bynarie: problem with linux is lack of a seamless experience. especially with ubuntu and all variants. you're constantly upgrading the entire installation installing from scratch. Jan 03 06:28:08 im trying to get the android source files ... i have some questions about the "repo" tool , what parameters does the --groups switch take , and since im going to be builduing on linux i can pass --platform=linux right ? Jan 03 06:28:13 B0BBY, not for me.. my shit is stable and there are some package upgrades but no full system installs Jan 03 06:28:19 same here Jan 03 06:28:23 im on ubuntu Jan 03 06:28:26 14.10 Jan 03 06:28:37 its extremely seamless IMO Jan 03 06:28:40 the only issue i had was the need to install some i386 repo libs that wasn't expected Jan 03 06:28:41 bynarie: ubuntu doesn't upgrade from major version to major version without problems. the official supported position is that you must re-install. Jan 03 06:28:49 bynarie: same here. kubuntu 14.10 Jan 03 06:28:57 bynarie: and of course, you can't stay on a given version. 'coz the repos go out after a while. Jan 03 06:29:03 <-xubuntu 14.10 Jan 03 06:29:08 I was using xubuntu/ubuntu both. Jan 03 06:29:19 64bit with *very* few issues. (Just some eclipse luna + jdk8 + gtk2 icon building stuff) Jan 03 06:29:21 well im good with my setup for now Jan 03 06:29:26 well still have xubuntu installation. Jan 03 06:29:38 my server is gentoo, tho. Jan 03 06:29:48 lol gentoo Jan 03 06:29:49 ddd, you have to install a few special packages for ADB to run correctly from android studio if your on 64 bit Jan 03 06:30:00 Ok, I found something about running android sdk to download things, and even though I sat for an hour, apparently the latest system image wasn't one of the 15GB of files downloaded. Jan 03 06:30:01 B0BBY: thats utter horse crap. the repos do not go out anytime soon. hell you can still install 10 year old installs Jan 03 06:30:04 i forget which ones they are Jan 03 06:30:06 g00s: heh, every one's got their favorite distro to rag on. :) Jan 03 06:30:12 bynarie: yeah found that tidbit out the hard way hehe Jan 03 06:30:18 dood same here Jan 03 06:30:27 ddd: true but if you start out with LTS versions. Jan 03 06:30:28 it kept telling me ADB cant start or something Jan 03 06:30:32 i used gentoo for a while, maybe 5 years or s Jan 03 06:30:32 -╯□)╯︵-┻━┻ Jan 03 06:30:35 B0BBY: makes zero difference Jan 03 06:31:02 im good with any debian distro... mint, buntu, debian Jan 03 06:31:04 all good Jan 03 06:31:18 ddd: most non-LTS versions I used always ended up forcing me to upgrade due to repos being unsupported. This has been recognized by ubuntu teams and LTS versions are recommended. Jan 03 06:31:32 i've been using linux since 1994, been involved actively with the community since then, and i've worked on just about every major distrib out there as well has have my RHCE. I've yet to run against what youre saying Jan 03 06:31:40 B0BBY, yes that is correct.. LTS = recommended Jan 03 06:32:07 and having been in the community this long I can tell you thats utter horse crap. and even IF the repos DID change for the LTS its a simple sources change Jan 03 06:32:08 g00s: I started gentoo 10yrs ago or so. ended up being realy nice for my server (lightweight). desktop would be too much compiling everyday. Jan 03 06:32:24 ddd: well, then good luck to you. :) Jan 03 06:32:36 B0BBY: its worked for *years*. thank you Jan 03 06:33:00 i started out with freakin linux-mandrake when i was about 12 years old... learned how crappy it is Jan 03 06:33:12 yick, mandrake Jan 03 06:33:17 i know Jan 03 06:33:20 garbage Jan 03 06:33:24 hehehe Jan 03 06:33:44 i dont like redhat distros at all Jan 03 06:34:00 fedora suse mandriva = all crap.. IMO Jan 03 06:34:03 slack, opensuse, or (k)ubuntu for me. i stick with (k)ubuntu generally Jan 03 06:34:15 slack is good for sure Jan 03 06:34:35 i like the lightweightness of xbuntu Jan 03 06:34:56 yeah. i like kde personally. definitely heavy but i like the way its put together Jan 03 06:34:57 ddd, are you using plasma 5 or 4? Jan 03 06:35:03 think this is 4 Jan 03 06:35:19 i like kde too.. love it actually... its not too heavy, i just got used to xfce Jan 03 06:35:40 crap. give me a sec. migrating some gems from jruby 1.7.8 to 1.7.18 and one blew up on me Jan 03 06:35:50 have you used plasma5 yet? its really somethin Jan 03 06:35:57 no not yet Jan 03 06:36:06 omg its so clean looking Jan 03 06:36:16 i'm not going to touch it until its official, and its had a couple minor updates done. Jan 03 06:36:32 yea good call Jan 03 06:36:38 i am too old to go dumpster diving for broken stuff when stuff breaks Jan 03 06:36:44 haha Jan 03 06:36:53 i'd rather cut down on how much i have to ;) Jan 03 06:37:03 oh yea Jan 03 06:37:46 what kind of android devices you got? Jan 03 06:38:05 a single one that i'm doing anything with. Samsung Galaxy S5 Active Jan 03 06:38:35 i just bought the galaxy tab s 8.4 today.. its not too bad Jan 03 06:38:41 i just got nexus 9 for xmas Jan 03 06:38:46 i've a couple huawae devices i could play with too but i love my S5 so i'm focusing on it Jan 03 06:39:02 s5 is pretty new right? Jan 03 06:39:04 yeah my wife just bought me this S5. love it to death. friggin fast Jan 03 06:39:06 yeah Jan 03 06:39:37 2GHz cpu 2GB RAM, 16GB storage, can handle a 128GB microSD, blazing quick. Jan 03 06:39:55 its an arm v7a Jan 03 06:41:23 she got it for me because I'm *devastating* to my phones. I've a crapload of dogs and 2 properties to take care of. I'm forever dropping it, or the dogs grabbing it and running off with it, etc. i'm.. rough to say the least LOL Jan 03 06:41:24 not bad at all Jan 03 06:41:35 HAHA Jan 03 06:41:37 that sucks Jan 03 06:41:46 i have a drawer full of dead phones because they can't take the beating Jan 03 06:41:48 u got ne apps on the playstore? Jan 03 06:42:10 not this one though. man its taken a beating and just a TINY little ding on the right side of the casing. Jan 03 06:42:13 no Jan 03 06:42:18 i'm still learning Jan 03 06:42:29 not pushing anything out until i get a LOT better Jan 03 06:42:41 i made an app, called find root, its basically just a simple root checker, which there are already a million, but i did it just to say "I have an app on the play store" lol Jan 03 06:42:56 hahaha Jan 03 06:43:00 if you search for "bynarie" you will find it Jan 03 06:43:08 its a junk app, but i made it Jan 03 06:43:24 wow i'm tired Jan 03 06:43:37 rail --version except that its rails ;) Jan 03 06:44:07 whats that? ruby on rails? Jan 03 06:44:19 working on getting this linux install configured. covering java, ruby, javascript (node + jQuery), css, etc etc Jan 03 06:44:22 yeah Jan 03 06:44:27 i c Jan 03 06:44:39 i work on a lot of different stuff. android is the new pony in the stable for me Jan 03 06:45:32 dood, me too.. im always finding a new project to do, and never finish.. its c one day, then raspberry pi, then arduino, then android, then html, then css, then java, then linux and so on Jan 03 06:45:51 yeah. its the never finish part i'm trrying to break Jan 03 06:46:00 same here i totally get that Jan 03 06:46:17 i'm working theodinproject.com right now from start to finish Jan 03 06:46:52 that and augmenting with udemy courses on android for android programming. nothing else matters for the next 4 months Jan 03 06:46:54 but i learn something cool and it gets me geeked so i tinker for a couple weeks then lose interest and move on to another obsession.. right now im in android-obsession mode Jan 03 06:47:15 yeah, god can i obsess too Jan 03 06:47:17 sheesh Jan 03 06:47:31 hey, u made that website? theodinproject? Jan 03 06:47:47 but i don't stick long enough to get depth. i've a lot of broadness, just not a lot of depth wrt coding. Jan 03 06:48:03 I'm a deep sys admin type, but code i'm broad not deep Jan 03 06:48:09 no, i'm a user of it Jan 03 06:48:26 that is EXACTLY the same wth me.. i got a ton of broad knowledge of a ton of things but not one of them i got super deep into Jan 03 06:48:30 its the free side of The Viking School Jan 03 06:48:59 it looks like a good site Jan 03 06:49:11 its hard to hold my attention. The only thing that did was the Army. I did demolitions while I was in (Combat Engineer). Jan 03 06:49:36 is ruby and ruby on rails similar? or is it like java to javascript.. same name but totally different Jan 03 06:49:44 I did that for almost 20 years until I got hurt. All the rest of .. this stuff (computers, hardware, software, etc) I learned on the side. Jan 03 06:50:02 wow that sounds pretty exciting Jan 03 06:50:10 i havent been in military Jan 03 06:50:10 ruby is the programming language. (and interpreter). Rails is a web framework. its written in ruby Jan 03 06:50:26 oh ok Jan 03 06:51:07 rails is an MVC (Model Controller View) architecture based framework basically Jan 03 06:51:10 ddd, do you hang out on any other irc chans? Jan 03 06:51:29 im not even really sure what MVC is Jan 03 06:51:57 yeah. #java, #ruby, #ruby-lang, #rubyonrails, #rvm, #pry, #jruby, and a few others Jan 03 06:52:17 with the whole android thing, are you a rooter? Jan 03 06:52:52 when they're not under warranty ;) Jan 03 06:52:56 mine still is. Jan 03 06:53:02 true true Jan 03 06:53:26 she *just* got it for me so it will be awhile before i try to root this S5 Jan 03 06:53:35 i understand Jan 03 06:54:01 my fone is a nexus 5, so first thing i did was root and install TWRP... no warranty for me Jan 03 06:54:05 bbiam i need coffee Jan 03 06:54:15 I had a Galaxy Mega from a friend Jan 03 06:54:21 :::drinking coffee as we speak::: Jan 03 06:54:42 but the damned screen cracked. basically spider webbed Jan 03 06:54:50 ddd: how's the rails learning going? Jan 03 06:55:02 groxx: going real good. Jan 03 06:55:30 it was more active record iving me the shits. Jan 03 06:55:40 Ok, I think I see what's happening. There is this unhelpful line "Build and install the application as you would a normal Android application. " and I had to fill in the blank, and I did it wrong because the only thing I knew to do was "android create" from the hello world example. Jan 03 06:55:40 haha Jan 03 06:55:50 what kind of things can you do with rails? is it for website design, like UI elements, or code like php for connectivity ? Jan 03 06:55:52 ddd: because Active Record, or because database design? Jan 03 06:55:58 little of both Jan 03 06:56:22 cool Jan 03 06:56:30 groxx: that was for you Jan 03 06:56:33 GBGames, u get that shit compiled and working then? Jan 03 06:56:52 ddd: I figured :) database design is a little different, if you haven't done it before. Jan 03 06:56:55 bynarie: its not for design, though it makes design easier to do. its backend stuff Jan 03 06:57:24 ah ok.. i figured it was probably something behind the scenes Jan 03 06:57:36 for creating the 'guts' of a web app. though it does create the views for you (the page(s) you see and thus prettify) Jan 03 06:57:37 bynarie: it's a server + ORM + general web framework for making primarily database-backed websites. but it's pretty open-ended. Jan 03 06:58:06 ok Jan 03 06:58:33 so, kind of like a framework then Jan 03 06:58:48 well actually that was exactly what you said, a web framework Jan 03 06:58:51 groxx: and yeah, playing *in* the databases wasn't much called for in my years at this. setting them *up* was a different story. Jan 03 06:59:05 bynarie: Ok, so http://developer.android.com/tools/sdk/ndk/index.html#Reqs says to generate a build.xml, and I swear a different piece of documentation indicated I would have to do it in a directory that doesn't exist. Jan 03 06:59:08 ddd: aah, ops work? Jan 03 06:59:19 drat. I almost made an entirely three-letter-word sentence there. Jan 03 06:59:33 yeah. i'm an admin type by nature Jan 03 06:59:43 this coding stuff is me trying to break out of that mold. Jan 03 06:59:57 But holy cow, I finally got an ndk sample app to build correctly. Jan 03 07:00:04 * GBGames checks the time. Jan 03 07:00:05 its as hard to learn to be a developer as it is to be an admin Jan 03 07:00:06 * GBGames weeps. Jan 03 07:00:07 GBGames, as in the NDK stuff still? or somethin else??? Jan 03 07:00:21 ddd: well, fwiw databases seem to fit with admin mentalities pretty well, from what I've seen. though it might not be what you're using, the sqlite docs are phenomenal, and the concepts are generally the same (EXCEPT how sqlite does types. ignore that.) Jan 03 07:00:55 bynarie: I finally pieced together enough of the docs to figure out how to build it using ndk-build and the sdk and ant. Jan 03 07:00:56 stupid question but wtf is sqlite.. is it just a lightweight sql database? Jan 03 07:01:06 i see it with android apps all the time Jan 03 07:01:09 bynarie: yep. Android has it built in. Jan 03 07:01:22 groxx: well, my job has been to install and configure the engines themselves. not actually query against them other than basic info. anything *I* need, there's a TON of prebuilt (and easily modified) toolsets out there Jan 03 07:01:29 sqlite is nice because you can have it run in memory without a lot of overhead. Jan 03 07:01:35 bynarie: to be a bit more specific, it's by far the most popular embedded database software. _might_ be one of the most widely used pieces of software in the world, period. Jan 03 07:01:57 yeah in memory DBs are fast though they bludgeon your available ram to death and back Jan 03 07:02:10 really groxx ? can it be used on webservers and whatnot too? Jan 03 07:02:24 shit, youo'd be hard pressed to find where it could NOT be used Jan 03 07:02:28 bynarie: other ones are usually better for higher performance, but you can, yes Jan 03 07:02:37 Ok, I'm off to bed. Jan 03 07:02:38 hell you could use it to store a set of commands to run your toaster if you wanted to Jan 03 07:02:47 ha! Jan 03 07:02:49 your toaster probably already has it installed xD Jan 03 07:02:52 GBGames, good night Jan 03 07:02:53 Good night, and thanks for your help, and thanks for listening to me rant. Jan 03 07:02:55 groxx: lol too true Jan 03 07:03:04 thats funny Jan 03 07:03:44 ┬─┬ノ( º _ ºノ) And I'll put this back. Jan 03 07:03:53 ok, getting that coffee. also going to watch an eps or two of Revolution Jan 03 07:03:59 so if im understanding this, its sort of, in a way, like a file stored on the device used as a database.. not really for remote connections.. but im assuming it uses standard SQL language? Jan 03 07:04:00 I'm slowly moving more and more towards "don't use files for . put it in an sqlite database instead." Jan 03 07:04:16 need to step back and get away from the screen for a bit. 0200 and i've been at it since 0900 Jan 03 07:04:34 wow u need to rest ur eyes! Jan 03 07:04:49 yeah. badly. they're burning and I've definitely burnt through my focus Jan 03 07:05:05 i *might* be back tonight. if not, I'll see everyone tomorrow Jan 03 07:05:14 whatd be the difference between storing my data in, say, a text file? as opposed to using sqlite? Jan 03 07:05:22 ddd, good night... good talkin to ya Jan 03 07:05:26 bynarie: basically. it's a single-file (mostly), single-process (mostly) database. mostly for e.g. inside an application, or in a restricted environment (like your phone) Jan 03 07:05:27 same here Jan 03 07:06:00 bynarie: e.g. every browser (probably. almost certainly.) has a number of databases for storing things like your cookies, bookmarks, history, etc. Jan 03 07:06:10 they're nearly all sqlite Jan 03 07:06:34 ok ok... like titanium backup requires sqlite... is that possibly where settings could be stored? the list of apps installed Jan 03 07:07:01 i think i understand now what its for after a little explanation Jan 03 07:07:37 yeah, probably. basically, anywhere you need something more complex than you can easily store as lines in a text file, you _very likely_ want to use a database. and sqlite is so widely supported and uses so few resources, you might as well use it. Jan 03 07:07:58 ok that sounds right Jan 03 07:08:51 well, thanks for helping me understand it Jan 03 07:08:56 are all views are created after onCreateView return or can be some delay if a custom view is added Jan 03 07:09:03 sqlite also has lots of stuff in it to ensure the file doesn't get corrupted, to let you query it quickly, to make absolutely certain that things are written to disk properly on half-working systems, etc. it's better than you can do yourself. Jan 03 07:09:59 groxx, so you dont have any half-entries in the DB? like all data goes or none Jan 03 07:10:18 bynarie: exactly. it's all-or-nothing. fully transactional. Jan 03 07:10:24 ok sweet Jan 03 07:11:04 slani, what are you trying to accomplish.. more details plz Jan 03 07:11:27 it's "flavor" of sql is a little different than e.g. mysql or postgres or other "bigger" databases, but it's a "full" database. it even has full-text searching, which is how the contacts search works, for example. Jan 03 07:11:37 (that's actually an extension, but it's standard in Android) Jan 03 07:12:22 that makes sense Jan 03 07:12:59 slani, have you tried using handlers? Jan 03 07:14:21 ok Jan 03 07:21:56 bynarie: I created a custom view which is a child view of framelayout. Those framelayout also contain relativelayout where buttons will be added programmatically after onViewCreated is called. I need some position data (x, y) from custom view to set position of buttons. But problem is that buttons are created before onMeasure (here I save some x, y data) of custom view is called. Jan 03 07:22:15 bynarie: how can handlers can help in this problem Jan 03 07:24:21 slani: I'm not _entirely_ sure what you're trying to do, but that sequence is normal - layout isn't done immediately, it's done "later", which saves the system from doing work it might not need to do Jan 03 07:24:56 slani: it's fine that they're created first, you just need to move them to the right position in onLayout(Children). Jan 03 07:26:39 slani, im prolly wrong but i THOUGHT u could create like a timer or a pause with handlers Jan 03 07:26:52 im not really experienced with java Jan 03 07:26:54 groxx: ok. but how can I do that. How can I check if custom view is created? Jan 03 07:27:48 slani: it's created as soon as you inflate the xml it's defined in. that'll be immediately after setContentView(R.layout.etc), or .inflate(R.layout.etc). Jan 03 07:28:09 slani: but it won't know its size until a layout pass (or two) has completed Jan 03 07:32:14 groxx: then only solution is to create new thread and add buttons Jan 03 07:33:14 slani: nope. you just need to work with the layout system, which is what you should be doing if you're building a custom view. here's some basics: https://developer.android.com/training/custom-views/custom-drawing.html Jan 03 07:33:37 a new thread is unlikely to help you. at best it'll probably just work sometimes, but not when the device is too busy Jan 03 07:34:28 hm.. Jan 03 07:40:05 groxx: then my approach is not appropriate Jan 03 07:41:30 slani: it's possible. you can build nearly any arrangement of views with the built-in viewgroups (like RelativeLayout) - I'd suggest doing that first, it's usually easier. making custom views is pretty common though, you just have to learn how. Jan 03 07:49:15 groxx: I thought that all childs view are created after onViewCreated is called. Jan 03 07:52:10 slani: this is in a fragment? Jan 03 07:54:44 yes Jan 03 07:56:10 then all your views in your xml will exist after inflater.inflate(R.layout.your_layout, container, false). you should be able to find them and set them up. Jan 03 08:01:02 groxx: I can find them but when I try to get data from my custom view I get x = 0 and y = 0, Jan 03 08:01:23 what kind of data? Jan 03 08:02:00 becasu onMeasure in custom view is called after I creat buttons Jan 03 08:02:28 groxx: size of some objects I draw in custom view Jan 03 08:03:04 and your custom view doesn't have a width or height, right? that's because it has just been inflated, not laid out. Jan 03 08:07:02 groxx: yes Jan 03 08:07:51 how can I be sure that my custom view is laid out that I can set buttons Jan 03 08:49:41 Is there a way to get child from recyclerView dynamically? I'm trying to convert the listview screenshot method to recyclerview. Jan 03 09:24:21 groxx: ? Jan 03 09:44:08 Hi guys, I start another Activity by http://www.sourcedrop.net/Orm7b9b3009c8 I need to set callback for class ChangeNickActivity how I can do it? Jan 03 10:09:44 hmmmm Jan 03 10:10:32 how do I make a listview row have varying height (depending on whether the row has an image or not) without having that row shrink itself up before the image has loaded and end up becoming scrollable because it shrunk before all of its content loaded? Jan 03 10:11:01 I dont think it's possible Jan 03 10:12:03 varying height rows in a listview is something that exists, sure. But having the image be part of this scenario is different, cause at getView() time there's a separate thread spawning for getting hte image and by the time it returns, getView would have drawn and went back home and took a nao Jan 03 10:12:04 nap* Jan 03 10:32:35 what " p before the image has loaded and end up becoming scrollable because it shrunk Jan 03 10:32:35 "? Jan 03 10:45:05 hi Jan 03 10:45:11 happy Caturday Jan 03 10:45:57 if I have a worker thread and I want to communicate with the UI thread to make updates is a Handler the best way? Jan 03 10:48:36 handler is good Jan 03 10:48:41 lots of control Jan 03 10:48:54 but you can also keep activity reference (in aweak reference, say) and use runOnUiThread Jan 03 10:49:46 so I would call runOnUIThread from within my worker thread Jan 03 10:50:04 and create a thread within that thread to update the UI? Jan 03 10:56:15 how to access debug varaible in code? Jan 03 10:56:25 no Jan 03 10:56:48 runonuithread wraps passing the message to the ui looper via its handler through the activity Jan 03 10:57:02 you can only touch ui thread from main thread Jan 03 10:57:06 *touch ui Jan 03 10:57:39 I think just sending a message is simpler to be honest Jan 03 11:01:17 Hello o/ Jan 03 11:01:32 I have a problem with a progress ring Jan 03 11:01:39 I have two activities: A & B Jan 03 11:01:50 There is a button on activity A to launch activity B Jan 03 11:02:15 Activity B does heavy operations (doInBackground downloading a JSON, and then parses the JSON) Jan 03 11:02:36 So, I set a progress ring on activity A which starts when I do an intent of activity B Jan 03 11:02:46 However, the progress ring kind of "freezes" Jan 03 11:03:03 Do you have any idea of how I could manage to do this? Jan 03 11:03:36 erm... does activity B have a UI? Jan 03 11:03:58 Yes Jan 03 11:04:07 It has its own UI Jan 03 11:06:23 Leeds, Here si activity A: https://dl.dropboxusercontent.com/u/19626172/Activity_A.png Jan 03 11:06:30 And activity B : https://dl.dropboxusercontent.com/u/19626172/Activity_B.png Jan 03 11:07:02 I access activity B thanks to the button "Accéder à la liste" Jan 03 11:09:10 Hum Jan 03 11:09:28 I should try to do my heavy stuff in the onStart() method Jan 03 11:11:55 Hum... not better Jan 03 11:15:10 Encrypt: maybe use a thread to do background operation and update the UI with runOnUIThread (not sur of the exact name) method to update activity B Jan 03 11:15:44 Schoumi, The background operation is an AsyncTask already :/ Jan 03 11:15:48 arf Jan 03 11:16:37 Schoumi, https://github.com/Zencrypter/App_mobile/blob/master/Beerlover/app/src/main/java/com/pereiraprive/beerlover/MainActivity.java Jan 03 11:16:41 My problem is line 67 Jan 03 11:17:09 And here is the BeerList activity: https://github.com/Zencrypter/App_mobile/blob/master/Beerlover/app/src/main/java/com/pereiraprive/beerlover/BeerList.java Jan 03 11:18:55 Hum what's the thread line 92 wants to do? Jan 03 11:21:17 Schoumi, That's the progress ring Jan 03 11:21:44 This is a code we found on the internet Jan 03 11:21:49 But maybe thats too much :x Jan 03 11:21:51 yep but why do you need a special thread on that? Jan 03 11:21:53 I'll try something else Jan 03 11:22:24 maybe nothing importants here (i read the code) Jan 03 11:24:45 Encrypt: this is the downloadBeer that take times? Jan 03 11:25:02 Yes, it is Jan 03 11:25:36 and the asynctask is DownloadTask Jan 03 11:25:40 Right :) Jan 03 11:27:00 ok Jan 03 11:28:51 you use the asynctask well but you use the method get to wait the completion of your task make it synchronous Jan 03 11:29:56 ok Jan 03 11:42:49 I'll come back :p Jan 03 12:05:40 Is there any disadvantages of keeping a googleApiClient connected as a singleton in the application object? Jan 03 12:08:00 the application object? Jan 03 12:08:02 what's that? Jan 03 12:08:10 activity Jan 03 12:08:28 activity is activity Jan 03 12:08:31 what is application object? Jan 03 12:08:44 i believe he means activity Jan 03 12:08:52 well we better have a sit down for this Jan 03 12:08:54 If you override the Application class, you have the Application Jan 03 12:08:57 * Odaym sits down. Jan 03 12:09:04 what? Jan 03 12:09:09 the Application class? Jan 03 12:09:31 go read the docs :) Jan 03 12:09:37 yea Im looking Jan 03 12:09:44 wow this is like .NET stuff Jan 03 12:09:56 never even knew there was something like tthis Jan 03 12:10:23 seems...rarely useful Jan 03 12:13:23 it's useful, for instance to save the appContext so that you can access resources without passing context around everywhere, which is a bad idea given how easy it is to mix applicationContext and some activity's context. Jan 03 12:13:56 this can be done? Jan 03 12:14:02 man I drag that context all over the place! Jan 03 12:14:24 even to my adapters and just everywhere Jan 03 12:14:33 well to the adapters its fine Jan 03 12:14:50 lol Jan 03 12:14:56 I had no idea! Jan 03 12:15:28 it's also a nice place to init stuff like crashlytics Jan 03 12:15:50 yea yea I do that in onCreate of the first activity Jan 03 12:16:14 would love to send these things off to 1 place and be able to see them all at once without having to track down where they all first started Jan 03 12:16:15 havchr: is incorrect Jan 03 12:16:26 nice try but no Jan 03 12:16:35 why? seems like the .NET way of doing things Jan 03 12:16:40 you cant just use the application resource everywhere Jan 03 12:16:56 well not in the general sense Jan 03 12:17:32 think about loading resources, they are based on the configuration/theme and other aspects of the currect context not that of the application context Jan 03 12:17:40 well you're not going to be able to say getResources() from a class you've written Jan 03 12:17:41 this includes language and locale and lots of other properties Jan 03 12:18:26 well I am looking at it as some central thing that would allow me to have global scope objects, instead of having to rely on SharedPrefs Jan 03 12:18:36 I am just saying you cant just decide to drop the use of context on all your things and instead use the application context Jan 03 12:19:00 personally I don't do getApplicationContext() anymore Jan 03 12:19:07 I just pass the context to where I need it and that's ti Jan 03 12:19:24 cast it into activity where needed Jan 03 12:19:35 Odaym: i dont follow exactly, but thats ok Jan 03 12:19:48 Odaym: sounds like you want to extend the Application context yourself Jan 03 12:20:15 I am not sure what you are relying on SharedPrefs for Jan 03 12:20:19 the way you say it Jan 03 12:20:22 Odaym, you should use getApplicationContext where you can. If you hold on to a activity context for longer than needed, you will leak resources Jan 03 12:20:51 Odaym: you just need to read this -> http://www.doubleencore.com/2013/06/context/ Jan 03 12:21:14 Napalm, for inflating resources, I think you are required to use the activity context. Jan 03 12:21:24 havchr: no you are not Jan 03 12:21:47 havchr: you might also want to read that article Jan 03 12:22:00 thanks for the article, I'll give it a read! Jan 03 12:22:27 when inflating use activity Jan 03 12:22:41 Napalm, you wouldn't know about any techniques to reduce overhead with handling the google api client? Jan 03 12:23:32 lasserix_: in general yes, but thats not to say you cant do it elsewhere for good reason Jan 03 12:24:46 nice, ok Jan 03 12:26:04 I listened to that guy from the article for like 6 hours when I started to work with BLE Jan 03 12:26:10 he was not as lucid as in this article Jan 03 12:27:03 Odaym: he also has a great talk on the android touch system https://www.youtube.com/watch?v=EZAoJU-nUyI Jan 03 12:27:37 he's like a nice bear Jan 03 12:29:48 Napalm: i was under the impression by using app context while inflating you can tuck up your styles and themes Jan 03 12:30:46 lasserix_: what do you think a ContextThemeWrapper is for? Jan 03 12:31:07 make christmas gifts extra pretty Jan 03 12:31:18 * Napalm sighs Jan 03 12:31:23 makes sense Jan 03 12:31:41 naplam i am sooo tired and a little feeling like a rock Jan 03 12:31:42 most of the most unused classes in Android is MutableContextWrapper Jan 03 12:31:50 so don't waste your mental energies on me ;p Jan 03 12:31:57 but do go on Jan 03 12:32:06 check it out, you can change your theme on the fly with it Jan 03 12:32:21 to me i would figure you'd want to use app context for styles and such since it is app scope Jan 03 12:32:48 oh cool that is good for apperance profiles Jan 03 12:33:00 attachBaseContext in your Activity wrap with a MutableContextWrapper that wraps a ContextThemeWrapper Jan 03 12:33:31 now you could swap out your ContextThemeWrapper based of the original base context and reinflate your views Jan 03 12:33:45 now they are inflated with new theme without restarting activity Jan 03 12:34:31 You can also do some neat tricks with MutableContextWrapper like swap out context's so you can keep the same view after your Activity restarts Jan 03 12:34:48 care to write ablogpost with example code? Jan 03 12:34:52 I've done this with a WebView with great effect Jan 03 12:35:03 that would be neat to understand because it would mean really understanding context Jan 03 12:35:07 can you write an articl eon it? Jan 03 12:35:17 i will buy you some bitcoin beer Jan 03 12:35:37 lasserix_: https://github.com/slightfoot/android-web-wrapper/blob/master/WebWrapper/src/com/example/webwrapper/RetainedViewFragment.java Jan 03 12:35:43 why isn't someone like him working at Google? Jan 03 12:35:44 so strange Jan 03 12:35:53 who? Jan 03 12:36:10 the bear Jan 03 12:36:17 is this you? Jan 03 12:36:26 yes Jan 03 12:36:28 lol Jan 03 12:36:32 no it isn't him Jan 03 12:36:48 it's some guy who's good, strange how he doesn't like...go to Google, how is he satisfied with whatever company he's with Jan 03 12:36:49 can you add comments explaining what is happenning Jan 03 12:36:52 lasserix_: https://github.com/slightfoot/android-web-wrapper/blob/75ddc0a0244230d97fc78ae0a71b9b9b631e40a6/WebWrapper/src/com/example/webwrapper/BrowserActivity.java#L43 Jan 03 12:39:13 are you seriously him Jan 03 12:39:16 bullshit man Jan 03 12:39:17 lol Jan 03 12:39:39 Odaym: lasserix_ was talking about the github account not bear man Jan 03 12:39:49 ahh ok ok Jan 03 12:41:00 that talk is really good, you understand a lot Jan 03 12:41:11 I know google had good reasons for doing so, but the amount of code I have to write to get the wear to have sticky notifications is crazy. Jan 03 13:01:25 hvmake a post Jan 03 13:01:29 havchr: make apost Jan 03 13:01:31 for others Jan 03 13:02:05 lasserix_, there is a good guide for it, http://www.doubleencore.com/2014/07/create-custom-ongoing-notification-android-wear/ Jan 03 13:03:43 thanks yo Jan 03 13:04:13 since i can only keep one eye or the other open time to sleep Jan 03 13:04:16 goodnight! Jan 03 14:13:29 I don't have Android Studio or Eclipse installed atm. I'm trying to remember the password for my keystore for my published app, is there a tool with java where I can try out to see which password is correct ? Jan 03 14:13:53 neredsenvy: its called keytool and comes with the jdk Jan 03 14:21:51 Napalm If I try to call keytool -list -keystore /../key and type the password wrong once or twice will this corrupt the keystore or create any problems ? I have about 10 passwords I use can't remember which one I used to I need to try all 10 of them. Jan 03 14:27:01 neredsenvy: you can try as many as you like Jan 03 14:27:25 neredsenvy: if you are that concerned, copy your current keystore file before you try any passwords Jan 03 14:28:19 Have done : P Jan 03 14:28:59 Does it matter that when I created the keystore I used JDK7 (not sure 32b or 64b) and now I'm using JDK8 ? Jan 03 14:32:23 I created a custom view which is a child view of framelayout. Those framelayout also contain relativelayout where buttons will be added programmatically after onViewCreated is called. I need some position data (x, y) from custom view to set position of buttons. But problem is that buttons are created before onMeasure (here I save some x, y data) of custom view is called. Jan 03 14:32:42 neredsenvy: no difference Jan 03 14:34:10 should you set the Bundle of a message to null after you have used it? Jan 03 14:34:25 with SetData(null) Jan 03 14:46:28 Hello friends... please how do i get unique identifier for android device Jan 03 14:47:31 hackable, do you really need it to be the unique identifier for the device, or is it good enough with just something to anonymously identify the user automatically? Jan 03 14:48:09 Napalm does it make sense that my keystore does not have .keystore extension shows up as just File Jan 03 14:48:33 neredsenvy: doesnt matter, the file can be named anything you like Jan 03 14:50:13 Whelp think it's game over for me : P Tried keytool -list -keystore mykeystore tried each of 10 passwords I use and all Keystore was tampered with or password was incorrect : (( Jan 03 14:50:26 hackable: String androidId = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); Jan 03 14:51:02 neredsenvy: it could be a bad file, do you have a hex editor? Jan 03 14:51:10 yes Jan 03 14:51:21 game over Jan 03 14:51:27 if you lost keystore Jan 03 14:52:04 neredsenvy: open up your keystore file and verify the first 4 bytes are FE,ED,FE,ED Jan 03 14:52:09 I have the keystore I just don't can't get the password right which is weird because I have a list of 10 passwords that I use for games, apps, services etc.. I don't use any other, Jan 03 14:52:51 lets se Jan 03 14:52:57 neredsenvy: just out of curiosity.. try the password: android Jan 03 14:53:20 0.o Jan 03 14:53:20 Napalm, thanks.. but i read it that the Android_id can change on reboot or factory reset? Jan 03 14:53:21 what the shit Jan 03 14:53:27 Napalm worked Jan 03 14:53:28 lol, Jan 03 14:53:34 your an idiot Jan 03 14:53:37 It didn't give me wrong password error Jan 03 14:53:40 if you published with that one Jan 03 14:53:47 its probably your debug keystore Jan 03 14:53:48 Did I not password protect my keystore Jan 03 14:53:49 haha Jan 03 14:53:57 omg what the shit Jan 03 14:54:02 its ok Jan 03 14:54:08 is there a way to get secure and consistence device Id which will not change Jan 03 14:54:08 its as secure as the next keystore Jan 03 14:54:26 Napalm, is there a way to get secure and consistence device Id which will not change Jan 03 14:54:26 hackable: I just told you Jan 03 14:54:49 Napalm: can't find it Jan 03 14:54:59 hackable: String androidId = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); Jan 03 14:55:23 Yes, i know.. i just want to be sure if the android id will not change on factory rest of reboot Jan 03 14:55:23 oh you want something that wont change after a factory reset Jan 03 14:55:25 you can do that Jan 03 14:55:34 you'll need to use the NDK Jan 03 14:55:41 Yes... i want something that will not change after reset Jan 03 14:55:45 Well the application is nothing special just a trivial app me and some 30 of my friends use so : )) but I still can't believe I didn't put my own password behind it. Jan 03 14:56:03 Tho I can change the password for the keystore right and still have it work Jan 03 14:56:55 neredsenvy: correct Jan 03 14:57:26 i'm with you Napalm Jan 03 14:57:35 And yup it's androiddebugkey xD Jan 03 15:00:21 Napalm tho how did the debug key work on GooglePlayStore Jan 03 15:00:42 neredsenvy: did you verify its actually the right keystore? Jan 03 15:00:54 grab your production APK.. extract the CERT.RSA Jan 03 15:01:17 google and you can use keytool to compare the SHA hash for the certy Jan 03 15:05:29 is it bad "style" to have a volatile global boolean flag used to fast exit a thread? Jan 03 15:06:42 I extracted the .RSA ran keytool -printcert -file CERT.RSA the SHA1 key matches the one I get when I run keytool - list - keystore mykeystore Jan 03 15:07:34 When I run that command I get androiddebugkey, Nov 30, 2013 PrivateEntryKey but if it's a Debug key how was I able to use it to publish the app to PlayStore : / Jan 03 15:08:19 I thought it was restricted or could it be that just the alias of it is Jan 03 15:08:52 neredsenvy: is that the expiry date? 30th Nov 2013? Jan 03 15:09:17 No that's when it was generated & app published. Exiration date is 2038 Jan 03 15:09:19 neredsenvy: it was probably a bug in the PlayStore or before they added the check.. i cant remember when Jan 03 15:09:42 neredsenvy: either way, just rename the alias and set new passwords Jan 03 15:09:51 coo Jan 03 15:09:53 cool* Jan 03 15:10:12 Thank you very much I owe you a beer Jan 03 15:10:27 umm guys, why is it throwing this error? i copied the whole project folder to my phone before reinstalling my laptop, first on linux now on windows again, but it's throwing this error before debugging even starts: http://pastebin.com/VrGWJxYc Jan 03 15:12:01 I'm using intellij idea Jan 03 15:13:27 ReScO: its your Username Jan 03 15:13:36 "C:\Users\Ré\" Jan 03 15:14:07 ReScO: test it by making a directory in C:\ and compile your project from there Jan 03 15:21:10 https://plus.google.com/u/0/109684463673080126378/posts/3aoYpiL3mrG Jan 03 15:21:14 lol, sold Jan 03 15:24:18 Napalm: i love how the comments are either "ewww... wtf!?" or "i would d disgusting thing to her" Jan 03 15:26:08 Napalm: now i'm having this: Error running scanner: Unable to open debugger port : java.net.ConnectException "Connection refused: connect" Jan 03 15:29:44 http://2.bp.blogspot.com/-FkTHjJfi1aU/VKaG4_oB2II/AAAAAAAAiAs/AjoK_VICErY/s1600/tiger.gif lol Jan 03 15:40:53 whats a good scripting language/package for an android table Jan 03 15:41:02 tablet* Jan 03 15:41:07 i dont understand Jan 03 15:41:37 to do scriptingbon android Jan 03 15:42:47 i was looking at some on the playstore but some opinions would be nice Jan 03 15:44:18 Napalm: now i'm having this: Error running scanner: Unable to open debugger port : java.net.ConnectException "Connection refused: connect" Jan 03 15:44:38 ReScO: and? Jan 03 15:44:51 Why does that happpen and how do i fix it? Jan 03 15:44:53 ReScO: disable your firewall, or work out why it cant connect Jan 03 15:45:23 !seen test Jan 03 15:45:32 seen test Jan 03 15:45:35 Crap :p Jan 03 15:46:03 Napalm: firewall is disabled Jan 03 16:05:19 Does anyone know what the best current method is of retrieving JSON from an URL? Jan 03 16:10:06 uploading a watch face to the play store, do i have to do something special to mark it as a watch face? i've uploaded the mobile apk which included the watch face, i've tested it via adb install and worked ok Jan 03 16:13:07 i'm not prompted for a watch screenshot but for tablet/phone/tv so i'm assuming ive done something wrong Jan 03 16:13:30 if you specify android:screenOrientation="portrait" will this stop the activity being recreated when phone is rotated?> Jan 03 16:18:14 nvm, correctly shows the 6 supported devices now :) Jan 03 16:19:32 Hello again o/ Jan 03 16:19:52 I'm still trying to get a working progress ring, but I'm stuck... Jan 03 16:20:15 Apart from modifying all my code, I can't do much :/ Jan 03 16:24:29 jrd0: you've packaged your wareable apk in your normal apk and updated the manifest? Jan 03 16:24:41 ChrisUK: you dont want to do that Jan 03 16:25:22 whats a good scripting language/package for an android tablet Jan 03 16:27:38 Does anyone know what the best current method is of retrieving JSON from an URL? Jan 03 16:28:10 Any reason why my recycler view isn't being populated? All the code seems to be correct, but when the app loads the recyclerview is never populated. Code is at https://gist.github.com/rymate1234/bc08c36b956ec4652284 Jan 03 16:28:43 ReScO: http://square.github.io/retrofit/ Jan 03 16:28:53 yes Napalm, i used studio to generate the project and build the apk, seems to be working ok now Jan 03 16:29:02 just flailing around with gimp to make a promo image lol Jan 03 16:29:09 lol Jan 03 16:29:56 rymate1234: ps. basic auth is only secure when going over HTTPS Jan 03 16:30:21 dont worry it'll be https if I ever release :P Jan 03 16:31:12 rymate1234: did you confirm your notes object from gson actually contains data? Jan 03 16:31:19 it does get data in it Jan 03 16:32:13 rymate1234: looks like it could be a layout issue Jan 03 16:32:31 rymate1234: add your R.layout.activity_notes_list to that gust Jan 03 16:32:32 gist Jan 03 16:34:15 Napalm: added Jan 03 16:34:26 rymate1234: you might also want to add your R.layout.notes_list_item Jan 03 16:34:39 rymate1234: found your problem Jan 03 16:34:43 your layout ducks Jan 03 16:34:45 sucks Jan 03 16:34:46 :D Jan 03 16:35:16 Napalm: seriously? Jan 03 16:35:48 I've commented on your just Jan 03 16:35:50 gist Jan 03 16:36:05 you might want to get rid of the default padding, your choice Jan 03 16:36:40 lemme try Jan 03 16:37:35 Napalm: guessing my layout had a height of 0 or something Jan 03 16:37:38 rymate1234: just to explain you set the height of your RecyclerView to 0dp, and layout_weight is only going to work inside a LinearLayout not a RelativeLayout.. see the docs on the classes to better understand this Jan 03 16:38:32 wow i feel dumb now Jan 03 17:08:48 Hey Jan 03 17:28:54 I think I'll give up :) Jan 03 17:29:07 I can't get a progress ring to work Jan 03 17:29:25 Because my app does too much work on the new activity which is being launched Jan 03 17:29:31 So, the ring never spins Jan 03 17:31:14 Hey Peeps, Happy New Year! Jan 03 17:31:53 Does anyone know if there is a way to generate a snapshot of a path drawn on a Google Map? Jan 03 17:32:41 I'm drawing multiple paths which the user can get more info about by clicking on attached geo points Jan 03 17:32:58 I'd like them to be able to select one and share it Jan 03 17:33:00 Encrypt: check for redundant loops Jan 03 17:39:33 shmooz, There is no redundant loop Jan 03 17:39:45 Just too much work done on the activity which is launched Jan 03 17:39:56 But I don't want to modify all my code... Jan 03 17:43:16 What's up Jan 03 17:48:18 Not much here Jan 03 17:49:40 Yeah its the morning Jan 03 17:49:52 brb Jan 03 18:21:07 In my android phonegap chat app which uses socket.io and node.js, when the phone goes to sleep afer inactive usage, the client disconnects, is there any way to prevent this and keep the connection going? Jan 03 18:24:13 MetalHead77: You don't want that. Use gcm. Jan 03 18:24:24 Keeping the connection open would very quickly kill the battery, Jan 03 18:24:47 funktronic: gcm? Jan 03 18:24:56 https://developer.android.com/google/gcm/index.html Jan 03 18:25:54 there are only few cases in which keep-alive is a good idea Jan 03 18:26:19 funktronic: unfortunately I can't use gcm because this app will also be for iOS, windows phone and blackberry Jan 03 18:27:19 MetalHead77: maybe then look into something like urban airship Jan 03 18:28:19 MetalHead77: Pubnub Jan 03 18:28:46 or multi-handling on the server Jan 03 18:28:57 thepoosh: Tried that already. Pubnub sucks balls. Connection issues now and then Jan 03 18:29:05 nope Jan 03 18:29:12 we use them a lot Jan 03 18:29:23 for over 4M users Jan 03 18:29:29 they're fine Jan 03 18:29:48 thepoosh: What does your pubnub app do? Jan 03 18:29:59 does it use the webview? Jan 03 18:30:02 no Jan 03 18:30:08 that's why Jan 03 18:30:09 glide Jan 03 18:30:18 when it comes on to using the webview, pubnub sucks Jan 03 18:30:21 what do you mean by "the webview"? Jan 03 18:30:35 the JavaScript API Jan 03 18:30:45 MetalHead77: use a Service. but really these are extra things outside the scope of phonegap Jan 03 18:30:49 why aren't you writing in java?! Jan 03 18:30:50 every minute there are connection issues Jan 03 18:33:15 Napalm: I've tried all the services and they all suck. Node.js and socket.io is the way to go Jan 03 18:33:37 MetalHead77: Your app wont' be good. Jan 03 18:34:07 funktronic: Based on? Jan 03 18:34:12 MetalHead77: You're using phonegap. Jan 03 18:34:41 funktronic: You're stupid. Jan 03 18:34:41 MetalHead77: No, I think you miss my point. http://developer.android.com/reference/android/app/Service.html Jan 03 18:34:57 MetalHead77: read http://developer.android.com/guide/components/services.html Jan 03 18:35:27 I just have never seen a good PhoneGap app. Jan 03 18:35:35 Napalm: Ah ok Jan 03 18:36:03 Service still won't work since you really do not want to keep the phone running. Jan 03 18:36:28 funktronic: thats all about socket keep-alive and other things Jan 03 18:36:53 Napalm: It's super duper unreliable. TCP keep-alives won't keep it alive. Jan 03 18:37:05 There needs to be actual data going through, but then you're keeping the radio awake. Jan 03 18:37:21 If you're keeping the radios awake you're obliterating battery life. Jan 03 18:37:36 funktronic: how do you think GCM push notifications work? Jan 03 18:37:38 :P Jan 03 18:38:00 Napalm: they're all collated Jan 03 18:38:39 well, that's not really a clear enough answer Jan 03 18:38:40 Do IMAP accounts in Kit Kat 4.4.2 support TLSv1.2? Jan 03 18:39:30 There is a lot of stuff that goes into making that reliable. Different APNs automatically close connections after a certain amount of time. You have to periodically wake up and check if you're actually connected. Jan 03 18:39:48 Lots of routers/firewalls will not respect keep alives Jan 03 18:39:52 It's a mess Jan 03 18:40:31 MetalHead77: you should able to to use this to direct you: https://burakdd.wordpress.com/2012/10/20/design-realtime-notification-system-with-tornado/ Jan 03 18:40:51 The simple solution is just to store the chat history and load it on connect Jan 03 18:41:03 you guys are overthinking Jan 03 18:42:04 funktronic: thats where long-polling is used Jan 03 18:42:08 http://en.wikipedia.org/wiki/Push_technology#Long_polling Jan 03 18:42:25 MetalHead77: well yea, because you are not being clear about what you are trying to achieve Jan 03 18:42:41 Napalm: The thing is that the carriers will terminate connection without you even knowing until you actually try to use it. It's pretty bad. Jan 03 18:42:43 MetalHead77: your all like "i want to keep socket open, even when user leaves the app" Jan 03 18:44:44 We had a ton of code to basically try to figure out what the timeout period for each carrier was, and we'd send a ping packet like every 30 mins and if it failed, we'd go back to 15 mins and if it worked we'd increase the ping period to an hour. Jan 03 18:44:54 ping packet = actual data Jan 03 18:45:26 funktronic: well I wasnt suggesting he does all that Jan 03 18:45:50 hence, the right thing is to let google figure it out and use gcm :) Jan 03 18:46:01 indeed Jan 03 18:46:13 plus whatever works on android with a service won't work on iOS Jan 03 18:46:17 indeed Jan 03 18:46:58 http://xmpp.org/extensions/xep-0124.html this BOSH technique is really quite interesting Jan 03 18:47:19 XMPP is sooo verbose though Jan 03 18:47:51 long polling is pretty good Jan 03 18:49:15 are there any annotations i can decorate a method with making the thread explicit (like @UiThread, @ArbitraryThread) - descriptive, not prescriptive ? Jan 03 18:49:40 g00s: What would you expect the annotations to give you? Jan 03 18:49:51 funktronic i could just comment it i guess Jan 03 18:49:56 g00s: just create your own annotations Jan 03 18:50:01 g00s: its simple enough Jan 03 18:50:07 I've started using RxJava for everything. No more threads! Jan 03 18:50:27 i'm using RxJava too, but i still have threads lol Jan 03 18:50:37 You're creating threads ? Jan 03 18:50:40 for example, scanLeCallback occurs on some random thread Jan 03 18:50:46 funktronic no, android does it Jan 03 18:50:55 What does scanLeCallback do ? Jan 03 18:50:59 all the BLE callbacks occur on random threads Jan 03 18:51:04 frikken JSON.... Jan 03 18:51:10 its amazing how inconsistent android is Jan 03 18:51:32 the bluetooth classic stuff async notifications come in from broadcast receiver on ui thread, the BLE stuff is just some random thread Jan 03 18:51:40 with their own callbacks Jan 03 18:51:45 g00s: just have a PublishSubject and send things to it Jan 03 18:52:08 funktronic if you are putting things ona publishsubject from random threads, you need SerializedSubject Jan 03 18:52:09 onLeScan(..) { mysubject.onNext(new LeScanResult(...) } and then it doesn't matter Jan 03 18:52:11 how can i get the json string from a URL? http://api1.nl/vosca/getdetails.php?bc=5060166690144 is the URL Jan 03 18:52:20 funktronic thats not correct Jan 03 18:52:54 read docs for SerializedSubject and SerializedSubscriber ;) Jan 03 18:52:57 ah you care about order ? Jan 03 18:53:05 I never did bluetooth. Jan 03 18:53:12 of course, can't have onComplete called before onNext - they are on different threads Jan 03 18:53:36 I guess I assumed you'd never call onComplete Jan 03 18:54:16 onNext is called by the callback, onComplete is called when the scan is over - but again difference between classic and LE ; classic goes for some time and stops, LE goes indefinitely and you have to stop it with a delayed runnable or something Jan 03 18:54:26 so that will never happen on the lescancallback thread Jan 03 18:54:29 Fair enough Jan 03 18:54:53 but yeah, rx ftw :) Jan 03 18:57:45 g00s: how is Rx different than futures? Jan 03 18:58:00 thepoosh: It's ... miles ebtter Jan 03 18:58:03 futues is for one value, rx is for multiple values Jan 03 18:58:21 can't there be a Future for List? Jan 03 18:58:26 You can also transform the streams. Jan 03 18:58:27 or List Jan 03 18:58:49 thepoosh but then don't you need to collect that state somewhere :) Jan 03 18:59:03 rx also lets you collect Jan 03 18:59:13 hmm Jan 03 18:59:19 how can i get the json string from a URL? http://api1.nl/vosca/getdetails.php?bc=5060166690144 is the URL Jan 03 18:59:23 never dealt with any of then Jan 03 18:59:35 ReScO: what have you tried? Jan 03 18:59:40 Like say you have a "user." When the user changes you want to reload their messages and also reload their avatar. user.map(User::avatarUrl).takeLast(100, TimeUnit.Miliseconds).flatMap(loadImageFromUrl).subscribe(avatarImageview::setImageBitmap) Jan 03 19:00:17 and then for the messages user.distinctUntilChanged().subscribe(reloadMessages) Jan 03 19:00:22 it's composition and transformation of values Jan 03 19:00:54 thepoosh: outdated tutorials and the android example shits out questionmarks until it reaches 500 chars Jan 03 19:01:14 This is a pretty good intro: http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Jan 03 19:01:43 You can also create Observables from Futures Jan 03 19:16:17 funktronic oops, needed to use SafeSubscriber not SerializedSubscriber Jan 03 19:27:14 Hi all. Im looking to display dates and times in the format selected in the Device's settings. Googling isnt pointing me to any clear direction though, where should I look? Jan 03 19:28:47 Napalm it would be cool if you could set up code marked by certain annotations in a color, like @ArbitraryThread = red or something Jan 03 19:28:58 for the editor Jan 03 19:39:14 if you have a gradle project with several sub-projects, and one of these sub-projects is new and experimental (the others don't depend on it yet) so I'd like to create a stub Service to try out the code. Usually this would be a TestService, but i'm not unit testing more just exploring / poking APIs so i'd like to just sent it intents via activitymanager. i don't want that service to wind up in the app though, is the right Jan 03 19:39:14 place to make a flavor for it ? Jan 03 19:40:13 I usually just create a separate project that consumes it Jan 03 19:40:21 like MylibrarySample Jan 03 19:40:44 funktronic ok that works too, thanks Jan 03 19:48:31 hi guys, I have a question is it possible to get the internal storage path of the application ? Jan 03 19:51:06 if your app creates a directory is that private to your app? Jan 03 19:51:34 wathek: What are you trying to achieve. Jan 03 19:52:31 Hello, can anyone here please tell me how to build e2fsprogs for my galaxy s2 ? these are the sources: https://android.googlesource.com/platform/external/e2fsprogs/ Jan 03 20:02:09 have ListViews gone through any major changes since ICS? Would an example from that era still be valid today? Jan 03 20:02:42 tnzr: Yes still valid. Jan 03 20:02:47 funktronic: thanks Jan 03 20:02:54 Although the new hotness is RecyclerView. Jan 03 20:02:59 ooh really? Jan 03 20:03:00 * tnzr googles Jan 03 20:03:17 oh neat Jan 03 20:08:21 question Jan 03 20:08:58 I've git cloned a project, included it in my settings.gradle, added it into my build.gradle, and its not compiling Jan 03 20:09:15 with 'unknown entity R' Jan 03 20:10:00 how do I deal with that? Jan 03 20:18:13 if I am saving a jpg file from my app that I want to be visible to other apps should I use the MODE_WORLD_READABLE? Jan 03 20:24:51 rild is crashing w/segfault nothing printed because PR_GET_DUMPABLE==0, due to linker (https://android.googlesource.com/platform/bionic/+/master/linker/debugger.cpp#210) Jan 03 20:25:05 funktronic, trying to download files in the internal storage Jan 03 20:25:15 any ideas/suggestions on how to efficiently make it dumpable? Jan 03 20:36:46 gm Jan 03 20:49:52 TacticalJoke good tips at the bottom https://medium.com/@ParallaxBrew/the-mobile-app-gold-rush-10-essentials-for-developing-the-next-outlier-852da4ea4c49 Jan 03 20:50:05 common sense i hope, but a good reminder Jan 03 21:03:45 Nice article; thanks. :) Jan 03 21:04:05 The easy-enough-for-a-five-year-old thing makes me think: I could get my niece (who's five years old) to beta-test my app. Jan 03 21:04:17 She's not the target audience, but if she finds the UI easy then any adult would. Jan 03 21:06:26 I think #2 is an often overlooked point. Apps really do need to look good to succeed. We are a pretty superficial species. Jan 03 21:06:53 I do setOnClickListener on my ImageView, but click does nothing. Why? Jan 03 21:07:53 so I'm trying to use some library projects in my build, and I have them included through my settings.gradle, and have added them to my build.gradle dependencies, but whenever I compile more than one of them, R isn't resolving Jan 03 21:08:07 any ideas what I can do here? Jan 03 21:08:30 compiling one project without the others works Jan 03 21:09:05 actually no Jan 03 21:09:07 EugenA: Does it work if you click more than once? (If so, it could be a focus issue.) Jan 03 21:10:13 I'm trying to use MaterialNavigationDrawer, which depends on android-ui and calligraphy Jan 03 21:10:16 android-ui compiles with no errors, but calligraphy won't Jan 03 21:12:36 TacticalJoke: I'm working with inflater Jan 03 21:13:25 TacticalJoke: http://pastebin.com/geQfLTsR Jan 03 21:13:37 huh, i can only find the 8G version of Moto G2 on amazon, isn't there a 16G version ? Jan 03 21:14:16 i guess not O.o Jan 03 21:16:18 EugenA: It looks like you're doing something wrong. Shouldn't the inflation of the row be happening in the adapter for the GridView? Jan 03 21:17:00 And surely you could simply say "getLayoutInflater()" above. Jan 03 21:17:04 if i'm going to get a phone for development, and its not going to be on any carrier, do i need a sim card still ? Jan 03 21:17:20 I doubt it, g00s. Jan 03 21:17:30 I develop on a phone that doesn't have a (working) SIM card. Jan 03 21:17:36 so will the device work without it physically installed ? Jan 03 21:17:38 ah k Jan 03 21:17:42 Still connects to my Wi-Fi and so on. Jan 03 21:18:36 non-removable battery, sucks. does that mean it can't be replaced ? Jan 03 21:18:43 at all ? Jan 03 21:18:59 get the first gen Jan 03 21:19:48 Doesn't the 2013 Moto G also have a non-removable battery? Jan 03 21:20:53 how can I make the "up" button have the same animation as the back button? right now the back button makes the current screen fade away, as if you're going back. but the "up" button feels like you're opening a new app, the screen it should go back to fades in from the middle. Jan 03 21:21:18 gdrc what is the logic behind your suggestion ? Jan 03 21:22:51 Can someone take a look at this pastebin real quick? I'm getting an error about android:nohistory not being a valid attribute for my activity, however the documentation clearly says androi:nohistory is an attribute... http://pastebin.com/faYEvKxW Jan 03 21:23:05 you get the 2gen only if you care about 5 " Jan 03 21:23:33 i figure it will be supported a bit longer Jan 03 21:24:11 t0astt: noHistory (capital H) Jan 03 21:24:28 duncannz: I tried that, except when I pressed run it automatically changed it back to lowercase :P Jan 03 21:24:47 whaat that's weird Jan 03 21:24:58 Yeah... is it a setting in Android STudio maybe? Jan 03 21:25:06 anyway the docs do definitely have a capital H so try to get it working Jan 03 21:25:19 doubt it Jan 03 21:25:27 maybe close and save the file then press run? Jan 03 21:25:28 idk Jan 03 21:25:33 yeah I'll try that Jan 03 21:25:38 Or I'll open it in Sublime text or something Jan 03 21:25:42 and do the edit there Jan 03 21:27:10 It's also complaining about "Files under the build folder are generated and should not be edited." Jan 03 21:28:35 does it=android studio? Jan 03 21:29:11 https://twitter.com/YIofficial/status/551062107815686144/photo/1 Jan 03 21:29:23 duncannz: yes Jan 03 21:29:37 Still complaining, but I just got it to run fine without it changing the noHistory Jan 03 21:29:40 weird :P Jan 03 21:29:56 yeah weird Jan 03 21:34:51 What should I see in my git repository? Should everything be in the app folder or should the root have other things like build and app Jan 03 21:42:35 Hello, I'm having a hard time trying to load an existing android studio project into android studio....... is there a known method on how to do that? Jan 03 21:42:37 Hey! Jan 03 21:43:57 I have 3 buttons in an actionbar, but only two of them is clickable depending on which orderInCategory number they got assigned. The one with the smallest number is not clickable. Any ideas? Jan 03 21:45:07 So, when reddit gives a numeric character references, instead of giving "ಠ", it gives "&#3232;". That doesn't seem to make sense on any level. Jan 03 21:51:44 Haha solved it! My touchscreen do not work where that button positions... Jan 03 21:51:44 lol Jan 03 22:01:09 how you doing guyz ? Jan 03 22:03:01 Anyone still know? Jan 03 22:14:18 what? Jan 03 22:15:01 Has anyone really been far even as decided to use even go want to do look more like? Jan 03 22:15:13 abra What should I see in my git repository? Should everything be in the app folder or should the root have other things like build and app Jan 03 22:15:30 I don't know if I have unimportant files in there. Jan 03 22:15:38 I just want the files I need Jan 03 22:16:12 AndreYonadam: https://www.google.com/search?q=gitignore+android+studio Jan 03 22:16:13 Feeling on the lagwagon. But you want push an app to a repo using git right? Jan 03 22:16:26 or this links Jan 03 22:16:29 :P Jan 03 22:16:48 TacticalJoke: Does AS do that file for me? Jan 03 22:17:00 TacticalJoke: do you know if theres any viewholder generator based on xml layout? Jan 03 22:17:03 I don't know. I haven't used it in a while. Jan 03 22:17:15 abara: Hmm, not sure. Jan 03 22:17:34 TacticalJoke: Ohh. Thanks. I didn't know a .gitignore existed. lol. Thanks again. Jan 03 22:17:38 AndreYonadam: afaik AS has a plugin (ready-to-go) for git Jan 03 22:18:26 Ahh, that SO question has an answer claiming that AS 1.0 generates a sufficient .gitignore file. Jan 03 22:18:35 TacticalJoke: man, i got a huge form here. I'm just already tired just to think about write down the viewholder for him. Jan 03 22:18:38 TacticalJoke: Yeah I saw that Jan 03 22:18:53 abara: Yeah its in the menu. I just wanted to know if it was including things that I didn't need. I mean I looked at projects on Github as a reference and I think I'm alright. Jan 03 22:18:53 when using the function Environment.getDataDirectory().getAbsolutePath() it should return the internal storage path shouldn't it ? Jan 03 22:18:58 Thanks guys Jan 03 22:19:04 abara: I just use custom ViewGroups, personally. Jan 03 22:19:14 Though I guess that doesn't solve your problem, really. Jan 03 22:19:36 AndreYonadam: Yeah, i know that feel bro :/ Jan 03 22:20:06 TacticalJoke: yeah..., i really need a viewholder Jan 03 22:20:12 AndreYonadam: Generally, you want to check in files that you're creating and not check in files that are auto-generated. Jan 03 22:21:21 TacticalJoke: Yeah the thing that I was concerned about was the graddle/wrapper. I thought that was auto-generated but it appears that people are including it in their repos so it isn't. Jan 03 22:22:06 AndreYonadam: http://stackoverflow.com/questions/20348451/why-gradle-wrapper-should-be-commited-to-vcs Jan 03 22:22:22 TacticalJoke: Thanks. I'm going to take a look at that. Jan 03 22:25:40 I'm not sure how I feel about that. Hmm. Jan 03 22:42:55 this is weird. i have a project with several subprojects. in one of those subprojects i do 'gradle installDebug' and it not only installs that app, but the other 'com.android.application' subprojects also Jan 03 22:43:16 there are no dependencies between them Jan 03 22:49:12 meh, only happens from AS, cli is fine Jan 03 23:00:48 https://developers.google.com/android-publisher/api-ref/purchases/products#resource Jan 03 23:00:53 There's a "get". Jan 03 23:01:01 But how do you validate and consume purchases? Jan 03 23:01:13 I mean wait Jan 03 23:01:30 how do you consume purchases? Jan 03 23:01:46 and how do you validate them? Jan 03 23:04:45 Can anyone help me with a bound service not calling onServiceConnected? It's defined in the manifest, it has an onBind that returns a binder. Jan 03 23:17:11 there's like a ton of answers if you google 'onserviceconnected is not called' Jan 03 23:17:45 ..or you can be more speicific Jan 03 23:17:59 Yeah, I've gone through everything I can find Jan 03 23:19:20 Hrm... I'm using existing code from LimeLight, so the binder works in that project obviously Jan 03 23:20:27 I need to launch my MainActivity from a widget on the lockscreen. I was thinking " getWindow().addFlags(WindowManager.LayoutParams.... " and then just new Intent(this, MainActivity.class). But how do I access the Activity from this Widget? Jan 03 23:20:54 nah man Jan 03 23:21:05 from this IntentService* I mean Jan 03 23:21:06 you're in a widget to prevent the access to the activity! Jan 03 23:21:09 I'm using it as a library and calling their code, I've copied the definition they use from their manifest. They left off 'com.limelight' and just called it ".computers.ComputerManagerService" Jan 03 23:21:15 no? Jan 03 23:21:29 Odaym, yeah, but I need a shortcut to the app on the widget Jan 03 23:22:11 GTMog: AS will autocomplete that Jan 03 23:22:25 Which should work when user is not using keyguard Jan 03 23:22:26 always worked for me Jan 03 23:22:32 I figured, adding the full name didn't change anything Jan 03 23:23:27 I can't believe while scrolling a list in Trello the page starts to scroll horizontally too.... Jan 03 23:23:27 Odaym ever see startLeScan not pick up another device around 50% of the time? Jan 03 23:23:30 I mean come on! Jan 03 23:23:40 I can step over the bindService call, and no breakpoints anywhere in the service manager or binder get hit Jan 03 23:23:51 another device? Jan 03 23:23:57 meaning picks up 1 but not 2? Jan 03 23:23:59 yeah, your peripheral Jan 03 23:24:07 yes ! Jan 03 23:24:14 it does pick up one, the second less often wtf Jan 03 23:24:24 always picks up my fitbit first and then the device Jan 03 23:24:42 Hi guys, is it possible to put these 3 small classes into one; and being able to use them from outside? http://pastebin.com/WmdiJZQd Jan 03 23:24:47 gtmog, show your code for binding and your service connection Jan 03 23:24:49 but just not picking up, no Jan 03 23:25:44 activity.bindService(new Intent(activity, ComputerManagerService.class), serviceConnection, Service.BIND_AUTO_CREATE); Jan 03 23:26:10 bump.. Jan 03 23:26:22 more of a java question, dimitrovskif Jan 03 23:26:42 Odaym: yeah I know, I am experienced dev but I haven't got much Java experience Jan 03 23:26:47 nor do I :P Jan 03 23:26:49 looks like KeyguardManager and disableKeyguard did the trick Jan 03 23:26:53 but of course you can do that Jan 03 23:26:54 Odaym: at the moment, I have those three as inner classes Jan 03 23:27:00 dimitrovskif: http://stackoverflow.com/questions/2336692/java-multiple-class-declarations-in-one-file Jan 03 23:27:01 with the write predirectives (private, public, etc.) Jan 03 23:27:10 Not sure that works for older Android versions though Jan 03 23:27:12 right* Jan 03 23:27:29 TacticalJoke: tried retrofit? These three don't cause 'mess' Jan 03 23:27:35 that's a Jon Skeet answer Jan 03 23:27:40 you better not ask any more questions Jan 03 23:27:41 haha Jan 03 23:28:03 ack, bbias Jan 03 23:28:50 jk Jan 03 23:29:08 why I don't return to my first activity from the second one? http://pastebin.com/Dcrfxgyv Jan 03 23:29:51 cause you didn't write the code that goes back Jan 03 23:30:55 dimitrovskif: Those files are tiny now. Will they be tiny in the future? Jan 03 23:31:05 TacticalJoke: definitely :) Jan 03 23:31:24 then consider not writing them! Jan 03 23:31:25 haha Jan 03 23:31:36 that's not how Retrofit works... Jan 03 23:31:42 never used that Jan 03 23:31:47 Jake would help you though Jan 03 23:31:56 Retrofit forces you to use interfaces/classes to specify REST apis and it's kinda weird Jan 03 23:32:00 Could you use Callback, then? Jan 03 23:32:06 I've never tried, so I don't know. Jan 03 23:32:07 ahhh that Rest thing for Android Jan 03 23:32:15 yea I know it, I saw it acouple of days ago Jan 03 23:32:16 It's really cool Jan 03 23:32:21 Im sure Jan 03 23:32:24 they do great work there Jan 03 23:32:31 Automatically parses and does everything for you, it uses lots of reflection Jan 03 23:32:39 you should see Picasso Jan 03 23:32:44 wew Jan 03 23:33:48 you can now sign into Android Studio Jan 03 23:33:51 that's so cool Jan 03 23:33:56 I don't really see the problem. Jan 03 23:34:02 Things like AuthData should always be their own type. Jan 03 23:34:13 People who *don't* create classes for stuff like that are simply writing bad code. Jan 03 23:34:18 Odaym: this example also doesn't have code to return, but it works http://pastebin.com/fv8dg1c4 Jan 03 23:34:29 We've all been beginners who've created classes that do 17 different things. Jan 03 23:34:48 so that example launches the new Activity and instantly closes it? Jan 03 23:36:43 EugenA: Activity.setResult does not finish() the Activity. Jan 03 23:36:48 Activity.finish does, however. Jan 03 23:37:40 I don't know whether that's the right solution in your case, though. Depends on exactly which activity you want to go back to. Jan 03 23:38:59 sorry DC EugenA Jan 03 23:43:18 sq: back, and put service connection stuff on pastebin: http://pastebin.com/riq6C2wr Jan 03 23:47:14 if I add finish(); I get "Unfortunately, MyApp has stopped." Jan 03 23:48:17 Read stacktrace, find your error, fix it Jan 03 23:48:29 GTMog: i have no idea, sorry :s Jan 03 23:48:43 looks good to me Jan 03 23:49:30 Yeah, it ok, thanks for looking at it :) Jan 03 23:52:01 I need to launch my MainActivity from a widget on the lockscreen. I was thinking " getWindow().addFlags(WindowManager.LayoutParams.... " and then just new Intent(this, MainActivity.class). But how do I access the Activity context from this IntentService? Jan 03 23:53:01 guys what's your average pay Jan 03 23:53:24 75USD a.h Jan 03 23:53:37 0 Jan 03 23:53:39 I was thinking the FLAG_DISMISS_KEYGUARD would work Jan 03 23:53:43 ddd: a.h ? Jan 03 23:53:47 an hour Jan 03 23:53:55 could have written that like /hr Jan 03 23:54:04 could have done a lot of things Jan 03 23:54:16 a.h a/h ah /hr a/hr etc Jan 03 23:54:39 ddd: isn't 75/hr like 80k per month if you worked at a company :D Jan 03 23:55:25 idk, i don't work at a company and it all depends on the contracts you land. Jan 03 23:55:33 not interested in working for someone else Jan 03 23:56:46 test Jan 03 23:56:53 passed Jan 03 23:58:39 thanks. it is working now Jan 04 00:00:06 I’m trying the xmpp framework and got a local ejabberd server running. Now I want to connect a jabber client from a phone, what should I type as the host? Since localhost or local IP-address will not work.. I also tried with my IP-address out to the net but can’t get it work :( Jan 04 00:02:30 any advantage between the moto E and moto G (2) for dev ? Jan 04 00:02:47 mEck0: why did you cross post this in iphonedev? Jan 04 00:04:01 bankai_: Because anyone there that might not hang around at the android channel might have a solution for the problem? Jan 04 00:05:11 When you click on a lockscreen widget and it highlights the pattern unlock, what method is that? Jan 04 00:05:42 If i want to make a image clickable in a popup window. What's the best way to do it? Jan 04 00:05:49 Just get a nullpointerexp atm. Jan 04 00:06:27 g00s: E is cheaper? Jan 04 00:06:45 don't really see much difference between the 2, qualcom 400 vs 200, screen has less resolution, E has no compass Jan 04 00:06:50 4g vs 8g thats about it Jan 04 00:07:18 they both "feel" remarkably similar. E is wimpier but has smaller screen, it all nets out to about the same. Jan 04 00:07:23 oh a little smaller. i don't hear much about the E though, are they as comitted to updating that as they are with the G ? Jan 04 00:07:33 not sure. I think? Jan 04 00:07:34 aceus2: just set a onclick listener on the iamgeview Jan 04 00:07:57 hmm Jan 04 00:08:02 hold on Jan 04 00:09:43 Take a look at the R.id.action_about at the bottom... http://pastebin.com/pMNMDUkq Jan 04 00:10:29 Is it the wrong View? Jan 04 00:13:34 groxx seems the moto g & g2 come as developer edition phones Jan 04 00:14:44 "4The device will receive at least one software update from the current KitKat 4.4.2 operating system. " Jan 04 00:14:51 oh, thats lame Jan 04 00:16:35 and somewhere else it says "to the current" lol Jan 04 00:17:08 Uh Jan 04 00:17:17 Any ideas with my nullpointershait? :) Jan 04 00:20:24 ugh, this is confusing. g(1) as play edition, g2 .. not wut Jan 04 00:20:34 maybe pfn can sort this out Jan 04 00:20:53 I don't have a g Jan 04 00:21:02 I only have both x models Jan 04 00:21:20 pfn what is play edition vs developer edition, and should i care ? Jan 04 00:21:38 aceus2: you have to ImageView iv = (ImageView) view.findViewById Jan 04 00:21:43 i think the only developer edition i see is the moto X Jan 04 00:21:44 developer has an unlocked bootloader, play ed probably does not Jan 04 00:21:48 where the view is the root of the popup or the view containing the image view Jan 04 00:21:50 I dunno :| personally I just care that it's unlockable. Jan 04 00:21:56 hm Jan 04 00:21:59 assuming there's a dev ed of the g Jan 04 00:22:04 I have not hearf Jan 04 00:22:06 yep Jan 04 00:22:08 otherwise it'll think you're looking for an imageview somewhere else (eg in the layout of the activity) Jan 04 00:22:18 it's only an issue for vzw and att models Jan 04 00:22:19 Any ideas of how to get the view to the popup? Jan 04 00:22:24 Where the imageview is stored... Jan 04 00:22:32 Dialog.getView Jan 04 00:22:34 we got a regular X and just unlocked it ourselves, it was pretty easy. Jan 04 00:22:37 or getContant or whatever Jan 04 00:22:50 nvm Jan 04 00:22:56 which aceus2 switch condition? Jan 04 00:23:17 pfn so if i get us gsm unlocked, is that essentially a developer edition O.o http://www.amazon.com/Motorola-Moto-2nd-generation-Unlocked/dp/B00MWI4HW0 Jan 04 00:24:39 should be Jan 04 00:26:44 solved it by finding the right view! Thanks alot lasserix_! Jan 04 00:27:27 afaik the developer editions just come with the bootloader unlocked, so you don't have to do it yourself. which is pretty easy - `adb oem unlock` will spit out a code -> you plug it into motorola's site -> you get an unlock code + instructions. Jan 04 00:28:14 so it's mostly a "developer tax" + removes any uncertainty about it being unlockable. Jan 04 00:31:05 so then i guess i need to decide between one from amazon and a Play edition Jan 04 00:34:39 pfn does moto show the same commitment to updating across all their models, or do they favor, say, the better ones like X ? Jan 04 00:36:11 g00s, may I ask why you need a device only for development? can't you work with your daily use phone? Jan 04 00:36:31 my daily use phone is windows phone Jan 04 00:36:43 dafuq Jan 04 00:36:50 heh XD Jan 04 00:37:48 there is no difference between g and x series in terms of update. maybe moto g update ro Jan 04 00:37:59 rollouts are faster Jan 04 00:39:25 is E/RecyclerView﹕ No adapter attached; skipping layout a common issue when trying to create a RecyclerView? I'm following this very closely and keep getting that in the logs, and my list never shows up Jan 04 00:40:16 tnzr, yeah I get that message too. I just ignore it Jan 04 00:41:06 hmm ok Jan 04 00:45:11 Daily use phone from AT&T: locked and encrypted bootloaders Jan 04 00:45:27 gimped development Jan 04 00:45:44 2013 on Jan 04 00:52:26 Any guesses regarding the release date of Android Studio 1.1? Jan 04 00:54:08 TacticalJoke i'm guessing sometime before I/O 2015 :) Jan 04 01:17:24 This is kinda amazing: http://stackexchange.com/performance Jan 04 01:33:44 g00s, dunno, but unlocked bootloader Jan 04 01:33:57 and only the 2nd x is on lollipop Jan 04 01:48:29 The Genymotion emulators are quite nice Jan 04 01:48:39 uses 3GB RAM for L but works quite nicely Jan 04 02:09:24 if I have a cancel button that does nothing, do I have to write out an empty override method for the second argument to adb.setNegativeButton? Jan 04 02:09:58 new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which){ /* do nothing */ } }); Jan 04 02:10:04 seems like a convoluted way to say do nothing Jan 04 02:14:08 I've been looking at various code samples on the internet for ok/cancel boxes and all of them do that (define an onClick method with nothing in it). is there really no shorter way? Jan 04 02:14:31 duncannz: get used to boilerplate. there's a lot of it. Jan 04 02:14:46 ok haha so the answer is no Jan 04 02:17:32 duncannz: yeah more or less Jan 04 02:17:36 ok lol Jan 04 02:17:41 duncannz: to enable the button it expects a handler Jan 04 02:18:04 there's many things like that in android. best not to get too worked up over them. it annoys my sense of efficiency, too Jan 04 02:18:14 yeah I can imagine lol Jan 04 02:18:18 better not to waste time in the end Jan 04 02:18:25 the IDE will autocomplete a lot of it for you, too. Jan 04 02:18:31 AS is getting particularly nice about filling them in Jan 04 02:18:33 yeah that's true. it's more that it looks messy Jan 04 02:20:43 duncannz: Are you talking about Dialog.Builder.setNegativeButton? Jan 04 02:20:47 AlertDialog* Jan 04 02:20:53 yes TacticalJoke Jan 04 02:20:59 You can just pass 'null' for the listener. Jan 04 02:21:00 the second argument to it Jan 04 02:21:06 I tried that Jan 04 02:21:19 wait do you mean null for the second argument Jan 04 02:21:23 Yes. Jan 04 02:21:26 nah I tried that Jan 04 02:21:31 I'll try again Jan 04 02:21:34 maybe I did something wrong Jan 04 02:21:52 .setNegativeButton(android.R.string.cancel, null) Jan 04 02:21:54 Or whatever it is. Jan 04 02:21:55 duncannz: if you don't override you get just OK button ? Jan 04 02:22:06 yep it works! thanks TacticalJoke **** ENDING LOGGING AT Sun Jan 04 02:59:58 2015