**** BEGIN LOGGING AT Wed Oct 29 03:00:00 2014 Oct 29 03:00:05 i submitted a crash report to google play for you with my name Oct 29 03:00:45 holy hell! Oct 29 03:01:20 i dont always test... but when i do.. Oct 29 03:01:24 :D Oct 29 03:02:18 cliffreich from graphics design , i agree with JacobTab_ ... to busy. not enough contrast. distracting graphics Oct 29 03:02:31 cliffreich no love for jacobtabak or #android-dev in your post QQ Oct 29 03:02:36 :D Oct 29 03:03:04 oh ok. i'm still getting an idea about mobile apps Oct 29 03:03:15 isnt crashing for you g00s? Oct 29 03:03:50 i'm just looking at the screen shots Oct 29 03:06:24 cliffreich http://www.google.com/design/spec/style/imagery.html#imagery-principles Oct 29 03:06:35 do i have to edit a file (i already downloaded 19.1 in the SDK) Oct 29 03:06:37 Error:The SDK Build Tools revision (19.0.3) is too low for project ':libraries:tess-two'. Minimum required is 19.1.0 Oct 29 03:07:19 ill start studying a app design from tonight Oct 29 03:07:57 i really want to get into android dev :) Oct 29 03:08:39 cliffreich: What's stopping you? Oct 29 03:08:41 I'm trying to figure out why andoid doesn't provide the bluetooth low energy 'current time service' when acting as a central, any ideas? Oct 29 03:08:58 cliffreich if your app is crashing like JacobTab_ maybe delist for now. once you get a few bad reviews at once in the beginning, its all over Oct 29 03:09:11 loke my still few graphic designer skills Oct 29 03:09:37 sudoritz what IDE Oct 29 03:09:40 I wish I had graphics-design skills. :/ Oct 29 03:09:47 android studio Oct 29 03:09:49 mac osx Oct 29 03:09:57 ossifrage good question :( maybe post a enhancement request on the issue tracker Oct 29 03:11:21 g00s, sadly asking for it as a enhancement doesn't help because of the timescale involved Oct 29 03:11:28 sudoritz in your build.gradle Oct 29 03:11:50 buildToolsVersion '19.0.3' Oct 29 03:11:53 hmm Oct 29 03:11:55 buildToolsVersion '21.0.1' in the android { } container Oct 29 03:12:03 (use the latest) Oct 29 03:12:06 ahhh Oct 29 03:12:08 k Oct 29 03:12:33 i found jacobs error (trying to get weather)... uploading a new APK and i think ill post about it on reddit so they dont go mad Oct 29 03:12:40 will upload apk right now Oct 29 03:12:49 gert* Oct 29 03:12:51 get* Oct 29 03:13:06 g00s, I was surprised that ios7 provides current time, battery service and the apple notification thing Oct 29 03:13:27 apple is a bit ahead with BLE Oct 29 03:16:36 has anyone ever experienced a bug only on cyanogenmod? Oct 29 03:20:03 done and done Oct 29 03:20:39 it's pretty exciting that people try your app Oct 29 03:21:48 canadiancow: sure Oct 29 03:23:33 and did you get it fixed? Oct 29 03:23:37 either by doing it yourself, ortelling them Oct 29 03:23:58 Is Activity.finish synchronous? Oct 29 03:24:08 no Oct 29 03:24:33 hhmmmmm it still didnt get it like it keepts failing at 19.0.3 Oct 29 03:24:38 almost any call that has an effect on the lifecycle of a component is async Oct 29 03:24:40 God. Is basically everything in the UI async? Oct 29 03:24:44 I see. Oct 29 03:24:53 But stuff like EditText.setText is sync, right? Oct 29 03:25:10 defaultConfig { minSdkVersion 14 targetSdkVersion 19 versionCode 1 versionName "1.0" Oct 29 03:25:14 heh ... well ... Oct 29 03:25:26 i think so, but the redraw may be an event on the queue Oct 29 03:25:36 Okay. lol Oct 29 03:26:00 targetsdk 19? why not 21? Oct 29 03:26:21 tried that too Oct 29 03:26:29 canadiancow: no, but I also didn't particularly try. in my experience it either exposed a quirk i probably should fix in the app, or fell into "well you're not running cm10 so you're a nightly so go away" Oct 29 03:27:01 canadiancow: i'm fighting at fight at work b/c one of our apps blows up on some CMs due to a weirdo XML error, but I think we need to fix it on our side Oct 29 03:27:41 canadiancow: i tend to live in the mindset of "if the users device is acting broken they're unlikely to fix it anyhow" so I tend to ignore platform errors like that. Unless it's the platform I control, then I can yell at people. Oct 29 03:27:49 in my opinion, if it works on a nexus, it's not your bug :P Oct 29 03:28:15 canadiancow: heh. yeah. s/nexus/my hardware/ and I agree, professionally. On my own shit, some degree of "has to work everywhere" Oct 29 03:28:31 problem is, when nexus behaves differently than samsung, which outnumbers probably 100:1 Oct 29 03:28:34 well in this case, it works everywhere except CM Oct 29 03:28:39 yeah g00s i was just gonna say Oct 29 03:28:46 this isn't a nexus vs everyone else, it's CM vs everyone else Oct 29 03:28:56 well, then you cna stand on principle, or you can try to fix it on your side Oct 29 03:28:56 except i cant repro it on my nexus 4 running a nightly Oct 29 03:28:59 i guess i'll try a stable Oct 29 03:29:19 cm is popular, but it's not THAT popular Oct 29 03:29:27 God, I have like 300 tabs open in Google Chrome. Oct 29 03:29:29 Everything is painful. Oct 29 03:29:33 canadiancow: what's the bug? Oct 29 03:29:42 an asset appears really squished Oct 29 03:29:43 I'm a freaking tab hoarder. :[ Oct 29 03:29:49 canadiancow: that's odd Oct 29 03:30:02 canadiancow: png lib bug? Oct 29 03:30:02 ohhhhh i was in the wrong build.gradle and was supposed to be in libraries tess-two lol Oct 29 03:30:05 700 in OneTab. Oct 29 03:30:11 :) Oct 29 03:30:15 dragorn, no idea. it's only one asset, and it's in the actionbar Oct 29 03:30:21 canadiancow: what's the chance you can re-gen it? Oct 29 03:30:23 canadiancow is the device giving wrong ifo throwing off resource qualifiers ? Oct 29 03:30:38 it's only one asset, but maybe? Oct 29 03:30:43 like maybe they say they are xlarge when they aren't Oct 29 03:30:43 it's especially prevalent on the oneplus one Oct 29 03:31:21 canadiancow: i wonder if the png has a quirk Oct 29 03:31:35 yeah maybe 9patch defective :) Oct 29 03:32:18 btw, i just added cardview to my project, and when i did my first build i got all these warning messages that the pngs had messed up icmp profiles Oct 29 03:33:08 it's not a 9patch Oct 29 03:33:15 also, i love looking through drawable folders Oct 29 03:33:23 i always encounter a "where the heck do we use THAT image?" Oct 29 03:33:53 canadiancow maybe try a different png crusher Oct 29 03:34:03 so not the one in aapt? Oct 29 03:34:05 :P Oct 29 03:34:12 anyway, it works everywhere except cyanogenmod Oct 29 03:34:17 either that or only CM users are telling us Oct 29 03:34:47 i remember the one in aapt caused GB to blow chunks a long time ago Oct 29 03:34:51 i guess they fixed that :) Oct 29 03:35:05 getting closer now i have to DL java i think 1.7 for osx Error:Execution failed for task ':libraries:tess-two:compileReleaseJava'. > invalid source release: 1.7 Oct 29 03:35:12 GB... Oct 29 03:35:13 * canadiancow shudders Oct 29 03:35:29 minSdkVersion="16" Oct 29 03:35:35 when I compile a shared libary with the ndk I get an error at the install step: install: cannot stat ‘/var/lib/jenkins/jobs/MyTestProject/workspace/obj/local/armeabi/libSDL2.so’: No such file or directory why might this file not be getting created? Oct 29 03:35:37 no jank for you Oct 29 03:36:58 does anyone here have a oneplus one and want to help me with something? :) Oct 29 03:44:08 ok good news i had to go to help/ instal software and type in the repository url for the samsing stuff insde eclipse.. Oct 29 03:44:13 downloading the zip file externally own't work. Oct 29 03:44:15 that's stupid.... Oct 29 03:45:20 Glad you got it done. Oct 29 03:45:50 What's the bad news? Oct 29 03:46:05 none yet it has to finish doing the install right now Oct 29 03:46:16 i guess the bad news is i have no idea how to use the sdk yet Oct 29 03:46:23 i'll be wanting to invoke a text listener... Oct 29 03:46:49 for a certain string of text from sms, which will then make my android gear fit vibrate a ton Oct 29 03:47:07 i think its kinda hoakie that the guidance for tabs here http://android-developers.blogspot.com/2014/10/material-design-on-android-checklist.html Oct 29 03:47:23 iis to copy stuff out of the samples Oct 29 03:50:44 i have no idea how to open samples from the repository eclipse said it installed Oct 29 03:50:57 i'm so confused the files dont' show up in any of the drop down menus for creating a new projec.t.. shouldn't that happen by default? Oct 29 03:50:58 Android SDK samples? Oct 29 03:51:05 it should be under samsung Oct 29 03:51:11 because it's the samsung stuff Oct 29 03:51:31 Why might the ndk fail to compile a shared library without throwing an error? I'm getting an error from later on when it tries to move the compiled libarry to libs Oct 29 04:09:27 I am trying to make a cylindrical listview by overrdiging drawChild and using the difference between the vertical center of the listview and the vertical center of the child (row) to calculate the angle by which to rotate the child (row) into (or out of, depending on if it is above or below the center point) the screen Oct 29 04:10:01 however, all my rows are bunched a little, so i am guessing my translation for the camera is not set up correctly,anyone do something like this before? Oct 29 04:10:18 that sounds apply Oct 29 04:10:22 apple-ly Oct 29 04:10:32 for a client, no control Oct 29 04:10:37 but nice bonus ;p Oct 29 04:10:54 its fora custom machine-embedded device interface Oct 29 04:11:55 well, if you are using scrum this won't last very long. he'll eventually realize that 10 important things can be done in the time of one faux-apple control Oct 29 04:12:13 hehe Oct 29 04:12:26 unfortunatly it doesn't matter Oct 29 04:12:37 that one thing is more important than everything else working properly ;p Oct 29 04:14:30 I came up with a fairly neat solution for that "dialog showing multiple times" thing: create a DialogFragmentHelper class which checks whether the dialog fragment already exists. http://pastebin.com/rE5RyVXH Oct 29 04:14:33 the best is when product owners decree things because they think they are ui designers Oct 29 04:14:44 The main drawback is that it needs three parameters. :/ Oct 29 04:15:02 But it's not much worse than "fooDialog.show(getSupportFragmentManager, whatever);". Oct 29 04:17:35 Does this look like a good idea? http://pastebin.com/rE5RyVXH Oct 29 04:19:13 i have a weird invalid source release but my system is at 1.7 Oct 29 04:19:14 Error:Execution failed for task ':libraries:tess-two:compileReleaseJava'. > invalid source release: 1.7 Oct 29 04:19:27 javac 1.7.0_71 Oct 29 04:19:40 sudoritz: What anndroid version are you targeting? Oct 29 04:19:55 4.4.4 Oct 29 04:21:07 wel guess what everyone... Oct 29 04:21:34 i just built the samples. they are ONLY made for the samsung gear, and in the documentation for the hello accessory sdk which is the sdk i installed, there is NO gear fit support Oct 29 04:21:38 atleast by first appearences.. Oct 29 04:21:49 this is ridiculous.. why can't I make an app talk to my gear fit...... 0_0 Oct 29 04:22:33 RedEyedGirl: Karma Oct 29 04:22:42 RedEyedGirl: Not yours, but Samsung's Oct 29 04:24:13 lol samsung gadgets Oct 29 04:24:30 they probably sold a few hundred anyhow Oct 29 04:24:45 i thought the gear was a total flop Oct 29 04:24:48 samsung gear = watches ? Oct 29 04:25:22 sudoritz are you setting language compatibility level in your build.gradle Oct 29 04:25:22 guess battery dies after one day ? Oct 29 04:25:23 My Samsung laptop has stuck pixels. Started after about a year; they're getting worse. Oct 29 04:25:39 TacticalJoke: it's time to get a thinkpad ;) Oct 29 04:25:42 So I'm not a Samsung fan. Oct 29 04:25:55 oh fix is ready. hope it solved JacobTab_ issue Oct 29 04:26:02 its now up Oct 29 04:26:03 Are they good? I actually recently got my parents a Lenovo desktop. Oct 29 04:26:20 2 hours Oct 29 04:26:28 what was your bug and how did you miss it Oct 29 04:26:30 compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } Oct 29 04:26:33 and did you see the stack trace? Oct 29 04:27:59 I get confused sometimes about when to name a class containing "helper" methods FooUtils and when to name it FooHelper. Oct 29 04:28:12 TacticalJoke: thinkpads ? in my opinion they are the best Oct 29 04:28:12 I guess -Utils is more generic while -Helper deals with particular instances. Oct 29 04:28:20 gordon_: Cool. I'll look into that. :) Oct 29 04:28:21 sudoritz go to your project structure and just make sure your sdk is set right for all modules Oct 29 04:28:48 im using an async task to retrieve info from your location, it usually works but seems like it couldnt get some info from yours and the part comparing if it's empty was actually from the array object and didnt check if the array itself was empty/null. silly mistake but hopefully that fixed it, if not, then ill go cry and fix it Oct 29 04:28:52 if they are only static methods they should either be a Util or more appropriately the pluralization of the target class name (e.g., Foo --> Foos) Oct 29 04:29:02 if it requires an instance to operate it should probably be a Helper Oct 29 04:29:13 JakeWharton: If I use my DialogFragmentHelper method () and, for activities, launchMode:singleTop, does that sound reasonable? (To avoid this issue.) Oct 29 04:29:19 Sorry I keep pinging you. lol Oct 29 04:29:43 Interesting. Never seen the pluralisation style before. Oct 29 04:29:49 i haven't used fragments in over a year so i have no idea if that works Oct 29 04:29:58 yes, read Effective Java Oct 29 04:30:08 singleTop should probably work, i dunno Oct 29 04:30:12 K. Thanks. Oct 29 04:30:40 *Everyone* recommends Effective Java. Must be amazing. :D Oct 29 04:30:47 Even the Android documentation recommends it. Oct 29 04:30:50 i have purged as much of the cryptic wizardry and ephemeral requisite knowledge of fragments and activities from my brain to make room for useful things Oct 29 04:30:55 it is amazing Oct 29 04:31:04 :) Oct 29 04:32:26 The pluralisation pattern seems quite nice. In this case (although I'm not sure whether it applies most here), it'd be DialogFragments.showSingle. Oct 29 04:32:39 wow, Windows 10 will come with a command line package manager Oct 29 04:32:44 drop "Dialog" Oct 29 04:33:30 g00s: such a feature Oct 29 04:34:51 Ah, I guess Java uses this. Arrays, Collections, etc. Oct 29 04:35:26 Files. Oct 29 04:35:35 indeed Oct 29 04:35:40 Classes Oct 29 04:35:54 TacticalJoke: you can make rap song of it Oct 29 04:37:14 I wonder how many programming-related rap songs exist. Oct 29 04:37:20 I bet at least five. Oct 29 04:38:50 https://www.youtube.com/watch?v=b-Cr0EWwaTk Oct 29 04:42:56 This can't be good Oct 29 04:43:02 "The JAVA Life" Oct 29 04:48:18 Why might the ndk fail to compile a shared library without throwing an error? I'm getting an error from later on when it tries to move the compiled libarry to libs Oct 29 04:49:50 I have a ListView with each item having both (clickable to open the item) and a Star on the right to favorite the item. If the user tries to click on the star and misses by a few pixels the clicking to open the item gets activated - i tried putting margins / padding around the Star but i wasn't able to disable clicking on that area - how do i achieve this? Do i need to remove item click event listener and instead add it to a specific Layout View Oct 29 04:54:00 sylon i thnk you need something called a touch delegate Oct 29 04:54:27 http://blog.vogella.com/2012/04/15/android-using-touchdelegates/ Oct 29 05:07:04 i'm still kinda wondering what google has in mind for contextual action bar (CAB) / action modes; i don't really see much in the material spec - unless i missed it Oct 29 05:07:17 i didnt know about that g00s Oct 29 05:07:19 touch delegate Oct 29 05:07:22 i always just add padding and it works fine Oct 29 05:07:35 if :) Oct 29 05:07:58 not sure how if got in there, man Oct 29 05:08:15 seems horrible to write code to increase touch size, that should be handled declaratively in xml Oct 29 05:08:27 what are you talkin about "if" ? Oct 29 05:08:50 i had a typo, nm :) Oct 29 05:09:01 oh lol Oct 29 05:09:02 man Oct 29 05:09:07 its like 25 lines Oct 29 05:09:10 to increase the touch size Oct 29 05:09:29 and ugly code too Oct 29 05:12:22 I use wifi adb Oct 29 05:12:28 the connection dies. A lot. Oct 29 05:12:33 It makes me sad Oct 29 05:12:39 everything just keeps resetting Oct 29 05:12:45 no emulator found, and I waste time. Oct 29 05:12:48 I am trying to set up 3 fragments so that the middle one is centered and the top & bottom go full width: http://paste.fedoraproject.org/146027/55926114 - the middle one i either a text few or a more complicated structure with an image and 3 radio buttons and is inserted programmatically. Oct 29 05:12:50 Currently I have a centred rectangle and the top & bottom have the same width as the middle one (about a 1/3 of the screen due to the width of the widest string) Oct 29 05:12:52 More dying lately. Oct 29 05:14:44 Hmm. It seems I could make the launch mode of each of my activities "singleTop". Oct 29 05:14:53 nivag what do you mean centered Oct 29 05:15:07 and full width Oct 29 05:15:10 why dont you draw a diagram Oct 29 05:15:51 also you said 3 fragments but i only see 2 Oct 29 05:16:00 and you used the wrong words in several places in your question so basically Oct 29 05:16:07 try to ask a better question >:D Oct 29 05:16:12 or Oct 29 05:16:20 do or do not Oct 29 05:16:24 There is no try Oct 29 05:16:47 JacobTab_: the middle fragment is added programatically Oct 29 05:17:14 DIAGRAM! Oct 29 05:17:21 can I post a picture somewhere? Oct 29 05:17:26 you can Oct 29 05:17:55 how? Oct 29 05:17:57 just start up a google play virtual engine server thingamadoodle and feed us the api secret crackawahamma Oct 29 05:18:14 imgur? Oct 29 05:18:50 and by us I mean JacobTab_ Oct 29 05:19:03 i'm wasted... too much tea Oct 29 05:21:32 ----------------------------- Oct 29 05:21:34 | | Oct 29 05:21:35 | | Oct 29 05:21:37 ----------------------------- Oct 29 05:21:38 | | Oct 29 05:21:40 | | Oct 29 05:21:41 ----------------------------- Oct 29 05:21:43 | | Oct 29 05:21:44 | | Oct 29 05:21:46 ----------------------------- Oct 29 05:21:52 argh not to scale Oct 29 05:21:56 I do believe this is not imgur Oct 29 05:21:58 nice try Oct 29 05:22:14 Agamemnus: lol Oct 29 05:22:21 This is interactive Imgur. Oct 29 05:24:07 Nivag you are gonna get your booty booted right on outta here if you paste more than one line :P Oct 29 05:25:08 :| Oct 29 05:25:10 my gear fit by the way Goos.. i like it Oct 29 05:25:18 i can't always have my phone right on me at work Oct 29 05:25:24 but my gear fit vibrates when i get a text Oct 29 05:25:40 i wanted to make an app that makes my gear fit vibrate a ton when someone texts me with certain words Oct 29 05:25:47 especially so that if im sleeping i can be woken up Oct 29 05:25:56 i don't think i've gotten any texts while i'm asleep though o.0 ironically Oct 29 05:27:45 probably better to get good sleep Oct 29 05:28:20 who sleeps with their watch on O.o Oct 29 05:28:28 jclass secClass=env->FindClass("android/provider/Settings$Secure"); crashes my program with a jni error: failed to remove 0x41df5180 from internal ref table, any ideas why? Oct 29 05:28:35 see: http://paste.fedoraproject.org/146030/60408141 Oct 29 05:28:36 * ObrienDave raises hand Oct 29 05:31:36 JacobTab_ how is that for a diagram? - without ouuting too many lines here! Oct 29 05:31:54 ouuting --> putting Oct 29 05:31:56 and wherers your xml Oct 29 05:32:16 http://paste.fedoraproject.org/146027/55926114 Oct 29 05:32:28 The thought of my watch giving me text messages is kinda scary. Oct 29 05:32:44 always use match_parent instead of fill_parent Oct 29 05:33:18 also why do you have wrap_content on your linearlayout (line1) if you want it to be the full width of the screen? Oct 29 05:34:05 you probably want line #8 and line #22 to be wrap_content Oct 29 05:34:19 and line #15 should be 0dp height, weight = 1 Oct 29 05:36:19 (i was referring to height in my last 2 comments) Oct 29 05:49:42 JacobTab_ : thanks, working on it Oct 29 05:50:01 k, those thoughts hinge on some assumptions i've made Oct 29 05:50:04 so hopefully they're correct Oct 29 05:52:25 hello all Oct 29 05:53:01 JacobTab_ :http://paste.fedoraproject.org/146033/45615151/ is what I have now, but all text is to the left & top of there respective bands Oct 29 05:53:13 nope Oct 29 05:53:49 JacobTab_ : I think I'm not understanding your suggestions corretly Oct 29 05:54:22 do you really want your header and footer to be measured based on weights? Oct 29 05:55:26 http://pastebin.com/CerS8Tgb Oct 29 05:57:47 Hey JakeWharton is your "Slideshow using ViewPager" packaged up anywhere? Oct 29 05:58:10 This post shows your code but its all copy/paste http://androidopentutorials.com/android-image-slideshow-using-viewpager/ Oct 29 05:58:30 JacobTab_ : will try your changes, basically I want the central area to be the same regardless of what I put in the middle (I know it will fit into a rectangle of a suitable size) Oct 29 05:59:29 i don't know what that is Oct 29 06:00:20 maybe some of the parts are yours and not really the whole thing Oct 29 06:04:36 hey QubeZ hows it going Oct 29 06:04:42 how is mini QubeZ Oct 29 06:06:09 Nivag what i described keeps your header/footer at their natural width and scales the middle to take the rest of the sapce Oct 29 06:07:32 JacobTab_ :it does that, but the text in the middle fragment is not centered Oct 29 06:08:18 set the textviews layout_gravity to center Oct 29 06:10:50 It's fun to go back in time in my revision-control system and see how badly my project sucked months ago Oct 29 06:10:51 . Oct 29 06:10:59 Especially since I'm still learning a lot about Android. Oct 29 06:11:31 The difference is astounding. Oct 29 06:27:05 hey guys Oct 29 06:27:43 JacobTab_: in http://fpaste.org/146038/63963141 I managed to simplify things, but have still failed to centre the text in the middle fragment Oct 29 06:28:29 you still need to set your layout_gravity on the textview Oct 29 06:28:30 JacobTab_: if it helps, I have a nexus 7 running Android 4.4 Oct 29 06:28:37 (i did say that before, didn't I?) Oct 29 06:33:37 JacobTab_: tried setting layout_gravity on the textview - didn't work Oct 29 06:33:50 ok then set the width and height to match parent and gravity to center Oct 29 06:35:17 hey guys im in a PreferenceFragment and i need to call Intent gattServiceIntent = new Intent(this, BluetoothLeService.class); "this" being the context, but i dont have a context. How can i get the context inside perefenceFragment Oct 29 06:35:36 getActivity Oct 29 06:36:14 lasserix: getActivity returns a context? Oct 29 06:38:26 also the following is needed to start the service: bindService(gattServiceIntent, mServiceConnection, BIND_AUTO_CREATE); Oct 29 06:38:54 but i get:" Cannot make a static reference to the non-static method bindService(Intent, ServiceConnection, int) from the type ContextWrapper" Oct 29 06:39:43 activity is a context Oct 29 06:40:11 i am trying to get to run my BLE service but i cannt figure out how to Oct 29 06:40:25 eclipse will compile Oct 29 06:40:27 but it wont load it Oct 29 06:41:00 https://gist.github.com/jareddlc/9b91b8f70b6e15267225 Oct 29 06:41:45 show more of the code Oct 29 06:41:50 can't tell where you are declaring this stuff Oct 29 06:42:12 Hi! I want take photo by making a MediaStore.ACTION_IMAGE_CAPTURE intent. But I also want to pass some "extra" to indicate something for the photo when the Activity is finished. Can I do that on MediaStore.ACTION_IMAGE_CAPTURE intent? Oct 29 06:42:21 lasserix: onCreate Oct 29 06:43:23 i guess it be better if i make a commit and share the source Oct 29 06:43:44 does not make sense cause you have static non-static conflict Oct 29 06:44:07 you probably need to prefix Oct 29 06:44:13 BIND_AUTO_CREATE Oct 29 06:44:16 with whatever class its from Oct 29 06:45:04 JacobTab_: I've tried umpteen difrrent combination, but with no change at all i how it looks http://fpaste.org/146040/64976141/ the middle text is always in the top left of the middle band! :-( Oct 29 06:45:25 i should have probabably should have said im learning android Oct 29 06:46:04 are the 3 snippets on the bottom the layout files for each of the 3 fragments? Oct 29 06:46:07 btw, why are you use fragments here? Oct 29 06:47:36 man i feel like since appcompat , my development is coming to a crawl. automcomplete selecting wrong versions of stuff ... Oct 29 06:47:57 hahah hey g00s long time, Oct 29 06:48:03 actually AS + acppcompat autocomplete seems pretty weird Oct 29 06:48:08 lasserix: here is my fragment clas https://github.com/jareddlc/TurquoiseBicuspid/blob/master/TurquoiseBicuspid/src/com/jareddlc/turquoisebicuspid/SettingsActivity.java Oct 29 06:48:11 sometimes it works, sometimes not Oct 29 06:51:44 jareddlc_ Context.BIND_AUTO_CREATE Oct 29 06:51:57 JacobTab_: I thought fragments were the way to go... Initially I have a login fragment occupying the full screen, then I replace it with the current page were the top & bottom only have minor changes in the text of fixed fields, but the middle could either have (A) variable numbers of lines of text or (B) 1 to 5 constructs each with an image and 3 radio buttons. Oct 29 06:51:59 JacobTab_: There will be several of both A & B types Oct 29 06:52:08 so im my case, getActivity().BIND_AUTO_CREATE? Oct 29 06:52:54 JacobTab_ have you used ActionMenuView yet ? Oct 29 06:53:04 ok Nivag thats fine but you shouldn't be having trouble centering text. either do wrap/wrap/layout_gravity = center, or match/match/gravity = center Oct 29 06:53:18 g00s no i haven't appcompatted yet Oct 29 06:53:30 hmm Oct 29 06:53:58 jareddlc_: no Oct 29 06:54:03 you accessing a state field Oct 29 06:54:04 Context. Oct 29 06:54:08 not getActivity() Oct 29 06:54:11 static versus non static Oct 29 06:54:30 JacobTab_: yeah the complicated stuff I seem to get to work okay with a bit of effort, but the simple centering... is driving me even more crazy! Oct 29 06:55:24 k lasserix ive done just that: getActivity().bindService(gattServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); Oct 29 06:55:44 should this load the code onServiceConnected? Oct 29 06:55:49 if so its not executing it Oct 29 06:56:28 JacobTab_: almost 8pm here in New Zealand, gotta go do something about dinner... bye Oct 29 06:57:03 i hope google puts up the samples very soon Oct 29 06:57:06 for api 21 Oct 29 07:04:42 not sure why my ActionMenuView isn't showing up as anything at all Oct 29 07:04:51 just blankness Oct 29 07:05:25 i wonder if it needs some theme Oct 29 07:35:11 ActionMenuView has public abstract void initialize (MenuBuilder menu) ... Oct 29 07:35:20 but MenuBuilder is internal Oct 29 07:35:36 "Initializes the menu to the given menu. This should be called after the view is inflated." Oct 29 07:35:38 okay Oct 29 07:37:28 lol Oct 29 07:37:32 english is hard Oct 29 07:38:49 i can't find a single example of ActionMenuView on the whole interwebs Oct 29 07:39:11 looking at Toolbar.java, since it uses it - but its very complicated Oct 29 07:39:30 Chris banes is like, oh use ActionMenuView ... so it can't be that hard Oct 29 07:40:12 i could be spending my time writing the Windows Phone version instead of fucking with this :) Oct 29 07:41:12 :\ Oct 29 07:41:15 i just want to sleep Oct 29 07:41:16 ugh Oct 29 07:41:50 * g00s gives JacobTab_ 1 melatonin, tryptophan, and lysine ;) Oct 29 07:43:25 Uhhh how is retrofit going to serialize this property: photo_750x373 with mode LOWER_CASE_WITH_UNDERSCORES Oct 29 07:43:39 sorry, how is GSON going to do it Oct 29 07:43:42 was about to say Oct 29 07:43:50 just annotate it if you'er concerned Oct 29 07:43:54 @SerializedName Oct 29 07:45:20 oh yea Oct 29 07:46:50 thanks for that Oct 29 07:58:06 "@Override": same line as declaration or line before declaration? Oct 29 07:58:09 this doesn't look good ... Oct 29 07:58:11 I'm used to the latter, but the former seems nice. Oct 29 07:58:21 mPresenter.updateMenuView(false); Oct 29 07:58:30 if (mPresenter == null ) { } Oct 29 07:58:31 lol Oct 29 07:58:36 Where is that? Oct 29 07:58:41 ActionMenuView Oct 29 07:59:53 I can't find that in the 'master' branch. Hmm. Oct 29 08:00:00 ( https://android.googlesource.com/platform/frameworks/base/+/master/core/java/com/android/internal/view/menu/ActionMenuView.java ) Oct 29 08:00:35 Oh. lol Oct 29 08:00:36 I see it. Oct 29 08:00:42 if (mPresenter != null && mPresenter.isOverflowMenuShowing()) { Oct 29 08:00:49 :) Oct 29 08:00:52 After assuming that mPresenter is not null. Oct 29 08:01:09 If this changed, that seems to mean that they edited this code at some point, without noticing the bug. Oct 29 08:02:56 Nullability is such an issue. Oct 29 08:03:03 Do we even need it? Oct 29 08:03:21 In theory. Oct 29 08:03:34 onLayout : nonOverflowWidth is never used Oct 29 08:03:55 crappy code ... Oct 29 08:04:46 I'd better go. Have fun. :) Oct 29 08:11:23 hello! sorry for disturbing peace Oct 29 08:11:34 good android dev platform, ~150 bucks? Oct 29 08:11:54 used nexus 5 when the nexus 6 comes out Oct 29 08:12:01 if possible no mediatek they brak gpl apparently Oct 29 08:12:11 get a nex 5 Oct 29 08:12:12 JacobTab_: something uptodate would be better no? Oct 29 08:12:17 oh? Oct 29 08:12:17 or a nex 4 Oct 29 08:12:21 nexus 5 is up to date Oct 29 08:12:33 and by far the best choice Oct 29 08:12:38 they both will receive lollipop Oct 29 08:12:52 what about moto G, or lg volt? Oct 29 08:13:04 i wouldn't use non-stock Oct 29 08:13:14 moto G isn't too bad probably Oct 29 08:13:16 but that's just me Oct 29 08:14:01 what you mean non-stock? I plan on jbing the phone anyways Oct 29 08:14:02 isnt moto G nearly stock? Oct 29 08:14:21 and/or flashing it Oct 29 08:14:34 Cheaterman: non-stock is for example what samsung makes with the gui ^^ Oct 29 08:14:38 or HTC Oct 29 08:14:53 own launchers, own themes .. Oct 29 08:14:58 hmm. I'm not even using android sdk directly, it's a portable framework Oct 29 08:15:02 based on python Oct 29 08:15:15 so i'd rather test on something popular than something "stock" Oct 29 08:15:28 id also dont use custom roms if you are not sure what exactly is changed Oct 29 08:15:30 i'd even say - the farther from stock the better, to check potential compat issues Oct 29 08:15:50 that logic doesn't really work lol Oct 29 08:15:58 what a logic lol Oct 29 08:16:18 then you have it on your far-away-thing and it dont run on anything else ^^' Oct 29 08:16:31 its like you're choosing to be here: rather than here <----X----> Oct 29 08:16:43 what about <-------X> ? Oct 29 08:18:11 id do Oct 29 08:18:12 :) Oct 29 08:18:55 but whatever, stick away from samsungs. they are the cause of all evil. Oct 29 08:19:19 and Razrs, razrs are evil too Oct 29 08:19:39 I think you are all missing context and distribution numbers….without which your entire arguments is void Oct 29 08:20:51 but I like the :) Oct 29 08:22:14 develop on stock, test on the rest i think Oct 29 08:22:34 maybe a samsung and something with an old api level for testing Oct 29 08:40:57 hi guys, i have some text i want to draw on a canvas, but i want to line break it if the resulting width is larger then a specific value, what is the best way to do this? pref i want to center it around a given pixel, so knowing the width/height of the bounding box would be great Oct 29 08:42:26 asperon: you cant do it directly with canvas.. you have to use something that will break and align each row.. you can do this with http://developer.android.com/reference/android/text/StaticLayout.html Oct 29 08:43:14 Napalm, looking at the second answer here, http://stackoverflow.com/questions/6756975/draw-multi-line-text-to-canvas, thing is i need to know the size of the layout to position it correctly Oct 29 08:43:17 asperon: once laid out you can use the draw(canvas); method Oct 29 08:43:48 asperon: what? Oct 29 08:45:31 aha, so. to get ActionMenuView to work, you have to use layout_width="wrap_content" Oct 29 08:45:42 otherwise, it doesn't do jackshit Oct 29 08:45:54 i had it "match_parent" Oct 29 08:46:46 i wonder if i should file a bug; the docs for this class are atrocious Oct 29 08:54:34 * capella wonders if that's related to an actionbar issue I've been stuck on ... Oct 29 08:59:09 hmm Oct 29 08:59:23 anyone know how to set build variant for android instrumentation tests? Oct 29 08:59:47 hello. i can find my find using ‘adb devices’, but ‘fastboot devices’ doesn’t list it. i’m on OS X Oct 29 09:00:18 how is that an app dev question? :) Oct 29 09:01:00 it isn’t :) i was just wondering if i needed to do something to do to get fastboot to recognize my device Oct 29 09:01:41 yes, putting it in fastboot mode actually helps Oct 29 09:01:51 #android-root or #android are the channels for such questions tho. Oct 29 09:06:12 Good online Canada shop? Oct 29 09:07:44 rant complete http://jacob.tabak.me/2014/10/thoughts-on-futurices-best-practices-document/ Oct 29 09:08:11 Mavrik i can talk through your testing setup with you if you'd like Oct 29 09:08:58 this is too low-level Oct 29 09:10:06 JacobTab_: solved! http://paste.fedoraproject.org/146057/45737511 truck was to use RelativeLayout at the top level! Oct 29 09:10:18 truck --> trick Oct 29 09:10:30 danijoo: so the above abouve getting a S5 is invalid? Oct 29 09:10:37 JacobTab_, thanks, but I just noticed I had proguard enabled in debug build as well -_- Oct 29 09:10:41 aboute Oct 29 09:10:42 fixed it :) Oct 29 09:11:14 nice Oct 29 09:11:24 someone tell me if i made any mistakes in my rant plz Oct 29 09:11:25 JacobTab_: now my central text is nicely centred, thanks for your help! Oct 29 09:11:27 i want to go to bed Oct 29 09:11:31 :) Oct 29 09:11:51 now off to figuring out how to persuade Gradle to make the Google-style split library build for people who don't want to see the light and still use Eclipse Oct 29 09:12:34 JacobTab_ go to bed!!! what time is it your place? just after 10pm here Oct 29 09:12:39 4:13 am Oct 29 09:13:07 centrl USA? Oct 29 09:19:38 yes Oct 29 09:31:09 Good dev platform for about 150$ anyone? Oct 29 09:31:40 Nothing? Oct 29 09:31:56 At least get a Nexus 4 or Nexus 5 Oct 29 09:35:07 Cheaterman are you a bot ? did you not get lots of suggestions ? Oct 29 09:36:25 StingRay_: go easy on him - he's apparently Canadian Oct 29 09:42:08 Hello, I'm starting an activity with startActivityForResult, and it throws an ActivityNotFoundException (it's normal, i'm launching an other activity if it can't find the first one), but it looks like it's calling onActivityResult. Is it expected than onActivityResult would be called if it can't open the activity? Or is there something wrong somewhere in my code? Oct 29 09:44:06 I wouldn't expect it to call onActivity if the startActivityForResult() call failed with an exception Oct 29 09:44:14 er, onActivityResult Oct 29 09:44:14 Morg0th: the issue is mostly with you relying on an exception instead of actually checking for the existence of the activity you are trying to start Oct 29 09:45:40 how can i start an alarm intent with silent as a parameter using tasker Oct 29 09:46:00 I am trying to figure out fragment transactions. In short, I have two fragments: One is the "document" and the other is an "outline" (the outline shows information about the document and has some buttons). Right now, I just have a single activity that contains nothing but the document fragment. I now want to be able to slide in the "outline" fragment temporarily on top of the document. I have a hard time figuring out where to begin getting this to work. Oct 29 09:46:48 loke could you do it with simple views/inflate ? Oct 29 09:46:54 as in without fragments ? Oct 29 09:46:55 ok i'll just check if the first activity exists and not launch it if it does not then. thanks Oct 29 09:47:10 StingRay_: I already wrote the fragments code, and they work fine individually :-) Oct 29 09:47:18 not what I asked Oct 29 09:48:26 StingRay_: In that case I'm afraig I didn't understand the question. Oct 29 09:57:06 ok is there an app that can change the DEFAULT alarm sound on my phone to be silent or vibrate? Oct 29 09:57:35 RedEyedGirl: Wrong channel, try #android-dev Oct 29 09:57:37 err Oct 29 09:57:38 #android Oct 29 09:58:25 if that feature becomes a virus world will lose million of lives :^) Oct 29 09:58:38 Does someone know why Android Studio isn't starting on Mac? I just deleted and downloaded the latest build again and when I double click the .app or in my Dock it doesn't open. Oct 29 09:59:44 do you have apple java installed? Oct 29 09:59:57 Mavrik, yes. It worked just fine a couple of days ago. Oct 29 10:04:40 Mavrik, could it be because I installed 1.8 through homebrew? It seems to be using that now instead of 1.6. Oct 29 10:04:42 Probably :/ Oct 29 10:05:21 That sounds like a reasonable bet... Oct 29 10:05:27 hmm, AS pretty much always defaults to Apple's 1.6 Oct 29 10:05:46 it's just that you have to actually install it manually with Yosemite now Oct 29 10:06:10 You can change AS to use 1.7 too Oct 29 10:07:40 Fixed it by following this: https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under Oct 29 10:07:51 Setting it to 1.7* works for 1.8 too Oct 29 10:08:21 And there is Retina support in 1.7, great! Oct 29 10:09:31 hmm Oct 29 10:09:39 using Oracle's java always made all my fonts look like ass Oct 29 10:12:23 JakeWharton, Im using picasso and it's complaining that i need okhttp1.6.0 or newer Oct 29 10:12:27 so im using 1.6.0 Oct 29 10:12:34 and it still gives the exact same error Oct 29 10:12:35 :(( Oct 29 10:13:05 IntelliJ 14 is in beta right now. It'll be available soon and I think it'll make 1.7 default then. Oct 29 10:13:09 I hope. Oct 29 10:17:06 Do you get better performance if you switch to 1.7? Oct 29 10:18:23 hi guys, i am trying to set a custom icon for a Marker. the icon needs to have two parts, an image on top and an image below. any ideas how to achieve this as I cannot add a view Oct 29 10:18:34 Mrdarknezz, probably. Oct 29 10:18:52 But not worth switching for if you don't need 1.7. Oct 29 10:59:38 for anyone interseted, i used InfoWindowAdapter to achieve what i wanted Oct 29 11:11:37 hello guys , anyone familiar with the popupwindow class Oct 29 11:31:43 If I have a long running thread with a looper and a handler, how does the looper "steal" time from the execution of the run() method if at all? How do I enforce to check the message queue and handle pending messages? Oct 29 11:38:43 is it possible to get "internal android icon" (ex: @android:drawable/ic_delete) with R.XXXX or something like that ? Oct 29 11:40:20 afound it : ndroid.R Oct 29 11:50:54 Anyone knows how install org.junit to IntelliJ IDEA 13 CE ? Oct 29 12:03:11 emanuelez: what do you mean? you start processing messages with the looper by calling Looper.loop(). Oct 29 12:03:42 so the run() method is not allowed to do anything else in the mean time Oct 29 12:04:43 No, Looper#loop blocks and waits for messages Oct 29 12:04:46 emanuelez: the call to loop will not return until you exit the looper. Oct 29 12:05:18 appel1: I see. Thanks Oct 29 12:20:12 Is there a way to see when a paused application has been garabage collected? Oct 29 12:26:12 Mrdarknezz: you mean when its cached process is killed? Oct 29 12:29:38 appel1: For example if I start my app, then press home button. Then after ~30 min I open it again Oct 29 12:29:43 appel1: Never killing it Oct 29 12:30:53 Mrdarknezz: yes? Oct 29 12:32:50 appel1: Is there a way for me to see when that happens through an Application class? Oct 29 12:33:10 So I know if I need to refresh some remote data that has been removed from the memory Oct 29 12:33:32 I'm currently looking at this http://developer.android.com/reference/android/app/Application.html#onTrimMemory(int) Oct 29 12:33:41 Mrdarknezz: huh Oct 29 12:34:15 Mrdarknezz: if the data is not there and you load it, does it matter if the user has used your app before? I don't see how. Oct 29 12:37:04 Mrdarknezz, ugh, DO NOT DO THAT Oct 29 12:37:07 -_- Oct 29 12:37:19 Mrdarknezz, check for data validity in onResume of your activity Oct 29 12:37:34 that is "if more than N minutes passed from onPause, do refresh of data in activity" Oct 29 12:37:40 Mrdarknezz: and to clarify, when a cached process is killed it is not garbage collection. :) Oct 29 12:38:19 Mavrik: No thats not what I'm doing Oct 29 13:24:06 hi, where i can locate my sqllite file ? Oct 29 13:25:20 t0th_-_ http://bit.ly/1022wti Oct 29 13:25:38 ok Oct 29 13:25:40 thanks, man Oct 29 13:25:45 you are the best Oct 29 13:25:58 why have this channel ? Oct 29 13:26:12 for discussions on problems Oct 29 13:26:22 but not the problem of "I dont know how to use google" ;) Oct 29 13:26:28 StingRay_, wp Oct 29 13:26:33 This channel is not a substitute for googling Oct 29 13:26:47 bla bla bla Oct 29 13:26:55 anyway, thanks men Oct 29 13:27:12 StingRay_, extra points for minifying the link to hide lmgtfy Oct 29 13:27:25 +1 Oct 29 13:39:03 hey Oct 29 13:39:08 why would my app have issues retrieving XML from a web address when my desktop browser does not =/ Oct 29 13:39:48 How can I get a list of all activities with a specific category and action? Oct 29 13:39:50 I'm trying to troubleshoot why my app suddenly stopped working, and the only thing I can work out is that it seems to not get the whole file, or perhaps the indexes are stuffed up in the rss feed Oct 29 13:40:03 but if i load the rss feed in my desktop browser, it's all there Oct 29 13:41:14 SirLagz i would guess you have access to all the info you need if you debug it :) Oct 29 13:41:42 StingRay_: well, that's what I'm trying to work out. where to start debugging Oct 29 13:42:04 erm, the start of the http call maybe a good place Oct 29 13:42:24 StingRay_: now to remember how I wrote this damn thing haha Oct 29 13:42:26 ending with the completion of the parser ? guessing as I dont know how you designed it Oct 29 13:42:53 parser doesn't complete, it errors out with an index out of bounds exception Oct 29 13:43:08 well there you go then Oct 29 13:43:14 StingRay_: It's been a while since i've done anything android, so bear with me Oct 29 13:43:14 debug away :) Oct 29 13:43:57 StingRay_: i did a tcpdump, and it seems to get all the xml to the android app. I use SAXParser to parse the rss feed Oct 29 13:44:07 StingRay_: so should I be looking into the saxparser bits then ? Oct 29 13:44:12 or is that too far along the http call ? Oct 29 13:45:00 StingRay_: also, my app has been working up until my webhost did something. What sort of server modifications could have caused an issue like this ? Oct 29 13:46:48 I hadn't touched my app in months, until it broke :( Oct 29 14:10:32 How can I get a list of all activities with a specific category (LAUNCHER) and action (MAIN) and run it ?? Oct 29 14:14:06 jclass secClass=env->FindClass("android/provider/Settings$Secure"); crashes my program with a jni error: failed to remove 0x41df5180 from internal ref table, any ideas why? Oct 29 14:17:50 and now my app works...wtf Oct 29 14:17:55 stupid webhost Oct 29 14:25:54 hi Oct 29 14:26:41 hi Oct 29 14:36:24 hi there, i have a minimal ui with 2 EditTexts for just number input and a ListView which has its own list_layout.xml now i'm trying to Oct 29 14:36:27 allow usage of a button if both fields are filled (IME_ACTION_DONE) but after adding the list_layout.xml it doesn't do done anymore but Oct 29 14:36:30 "next" and after the 2 inputs it changes to keyboard layout and thats it Oct 29 14:36:49 the list_layout.xml only contains a TextView element with editable="false" Oct 29 14:37:25 KekSi wtf are you typing ? Oct 29 14:37:39 sorry, asked on #android first and copy/pasted :x Oct 29 14:38:47 thought list_layout had 2 edittext and listview, then you say it only contains textview...maybe you should paste code instead of words Oct 29 14:40:14 no my main activity thing has the 2 edittexts and listview and i'm using an arrayadapter to put the things in the listview by rendering it using the list_layout.xml Oct 29 14:41:28 is there a preferred pastie i should use in here? Oct 29 14:43:21 completemyandroidapp Oct 29 14:44:08 complete my android app Oct 29 14:44:09 ? Oct 29 14:45:34 help Oct 29 14:45:37 makemy androidapp Oct 29 14:46:12 http://pastebin.com/HNkL4i1E Oct 29 14:46:21 there's some bits that might help show what i'm on about Oct 29 14:48:54 i set any attribute in the list_layout.xml file i could think of but still it switches from the number-only input to the normal keyboard after i press "next" and it never shows "done" as an option Oct 29 14:49:17 it acts as if there's another input field that has to be filled Oct 29 14:49:39 i have the text autocomplete app Oct 29 14:50:03 u type anything or 100000000000 words in a text file and it autocompletes from that dictionar Oct 29 14:50:05 y Oct 29 14:50:10 no spacebar needed Oct 29 14:51:31 u want ? Oct 29 14:51:49 ok dont know what u talking about Oct 29 14:54:05 hey Oct 29 14:54:08 make my android app Oct 29 14:54:43 oddly it shows "done" on each of the number-keyboards as long as there's nothing in the listview - as soon as that displays something it shows "next" and opens the normal keyboard after both edittext.number inputs Oct 29 14:56:31 why are the searchview default assets blurry? this makes me sad Oct 29 14:58:29 hello Oct 29 14:58:48 can somebody explain me that error(in idea): Oct 29 14:58:50 Error:Failed to find: com.android.support:appcompat-v7:16.+ Oct 29 14:58:51 Open File Oct 29 14:58:55 ? Oct 29 14:58:56 hi Oct 29 14:59:06 i am using querybuilder: queryBuilder.where().in Oct 29 14:59:11 how i can use method in? Oct 29 15:03:30 why does the newest adt bundle include eclipse juno but the newset eclipse Oct 29 15:05:31 is not it supposed to carry with the eclipse luna Oct 29 15:07:01 Does anyone know how to make Android Studio use another version of Java on your system? My other apps need 1.7+, I set Android Studio to use 1.7 but it constantly crashes now. Oct 29 15:07:43 Muchoz, delete the one you dont use? Oct 29 15:07:49 I use both Oct 29 15:08:43 I'm on Mac btw Oct 29 15:10:51 Ah I got it :D Oct 29 15:11:00 (I hopeà Oct 29 15:11:02 ) Oct 29 15:14:33 and uses 10xpower even when not gaming Oct 29 15:14:58 mini atx .. drum Oct 29 15:15:58 hey yall. Q about services.. is it separate from the app? Oct 29 15:16:21 I would liek to run a service even if the app is closed Oct 29 15:17:55 o Oct 29 15:18:04 i answer? Oct 29 15:19:41 sure? Oct 29 15:19:42 http://developer.android.com/guide/topics/manifest/service-element.html Oct 29 15:19:56 abotu taht colon Oct 29 15:20:13 android:process=“:something”? Oct 29 15:24:26 i know about windowsservice Oct 29 15:24:38 they can run in background without app Oct 29 15:24:40 whateevr Oct 29 15:25:20 tricknology_ service needs context and "something that starts it" Oct 29 15:26:34 so yeah and activity, broadcast receiver Oct 29 15:26:39 whatever Oct 29 15:27:04 I had an app that did this, i forgot how it worked though, only did it once.. haha Oct 29 15:27:24 StringRay_ I think it listened for an sms broadcast Oct 29 15:28:03 where is the broadcast receiver registered? Oct 29 15:29:38 where or when ? Oct 29 15:29:45 you can spec it in manifest Oct 29 15:30:13 but the app would always need to be triggered once/first for the service to get the BOOT_COMPLETE iirc Oct 29 15:31:14 oh so you have to open the app at least once after reboot? Oct 29 15:31:28 forget the word reboot Oct 29 15:31:30 and yes Oct 29 15:31:56 ok, how about if the app is forced closed? is there a way to keep the service running? Oct 29 15:32:19 not generally, no Oct 29 15:32:24 if a user wants to kill your app context and or all services you dont fight them Oct 29 15:32:30 you stop putting out sh*t lol Oct 29 15:32:44 is there any way to make an avd talk to chromecast? Oct 29 15:32:52 you can launch your service at boot via a boot receiver that binds and starts the service Oct 29 15:33:08 pfn: the only problem I can think of is the L2 networking stuff Oct 29 15:33:18 pfn: the CC expects to be in the same l2 broadcast domain Oct 29 15:33:25 dragorn, yeah, need the avd to be bridged onto my main network Oct 29 15:33:31 it keeps creating a nat connection Oct 29 15:33:32 which sucks Oct 29 15:33:33 pfn: if you can bridge your AVD over your *wired* ethernet, it should work Oct 29 15:33:39 you can't bridge in client mode on wifi Oct 29 15:34:10 (because then packets come from a mac address the AP hasn't registered via the association handshake; assuming your card even propagates it correctly) Oct 29 15:34:35 interesting, anyway, yeah, I'm on a wired net Oct 29 15:35:05 pfn: I'll admit I dont' know jack about the avd networking backend; is it a tun/tap interface it makes? Oct 29 15:35:15 damned if I know Oct 29 15:35:16 heh Oct 29 15:35:24 pfn: run your avd and ifconfig on the host :P Oct 29 15:35:41 either it nats by making a tuntap virtual interface and using iptables Oct 29 15:35:46 nothing on windows Oct 29 15:35:51 oh Oct 29 15:35:51 windows Oct 29 15:35:53 ha Oct 29 15:35:56 GFL. :P Oct 29 15:35:56 I imagine it's just full software nat Oct 29 15:36:12 yeah; i imagine they just emulate sockets out for you or something Oct 29 15:36:20 rather than simulate l2 networking Oct 29 15:36:57 on linux, IF it's a tuntap, you can do it with brctl; just remove the nat rules and build a bridge w/ the tap and the eth Oct 29 15:37:15 yeah, I saw some mention of that on SO Oct 29 15:37:42 I *bet* you can't do it with a vpn, either, but you could try. Android only supports tun mode VPN which is a L3 interface and not a true L2 bridge Oct 29 15:37:42 and I *bet* that chromecast uses l2 broadcasts to find things Oct 29 15:37:43 but if it uses something like mdns it might still work Oct 29 15:38:08 probably does mdns Oct 29 15:38:10 mmm... no, never mind. I don't think it would. You can't l2 bridge the tun on the server side. Oct 29 15:38:13 I imagine everything should Oct 29 15:38:19 but yeah, can't bridge Oct 29 15:38:55 StingRay_ thanks. Oct 29 15:39:54 pfn: heh; it's very deeply ingrained in wifi; it won't even try over a vpn w/ wifi off Oct 29 15:40:25 makemy androidapp Oct 29 15:40:27 makemy android app Oct 29 15:40:34 make my android app Oct 29 15:41:10 * genii smacks loekfef for therapeutic reasons Oct 29 15:42:01 oh well, just need to force my app to do the same thing on 7" that it does on 10" Oct 29 15:42:07 hate doing that Oct 29 15:42:30 pfn: you can rescale your display on the n10 to be a 7 Oct 29 15:42:35 pfn: one sec Oct 29 15:42:42 yeah, I don't have a 10" tablet, that's the problem, heh Oct 29 15:42:56 o Oct 29 15:42:56 heh Oct 29 15:44:17 time to solve that then Oct 29 15:48:51 * pfn shrugs Oct 29 15:48:51 nah Oct 29 15:49:09 android Oct 29 15:49:31 complete my simple andoid app Oct 29 15:49:41 i am learning myself Oct 29 15:49:47 hi all, anyone work with app-inventor? Oct 29 15:49:51 head gone for a toss by studying so much information Oct 29 15:50:32 still so much to read in the docs Oct 29 15:50:55 I wonder if android developers get paid well or not Oct 29 15:51:07 do companies hire people who know only android dvelopment Oct 29 15:51:19 basically am I adding any value to myself or not :D Oct 29 15:51:58 nope, no one hires android developers Oct 29 15:52:01 shmoon_ personally I think there are many worthless devs that know the basics Oct 29 15:52:20 but if you can demo that you are pretty sh*t hot, then like anything, you can get paid well Oct 29 15:52:32 JakeWharton one question :) You prefer Bugsnag over Crashlytics? Oct 29 15:52:55 Yes Oct 29 15:52:56 StingRay_: applies to almost everything :D Oct 29 15:53:09 JakeWharton any specific reasons why? Oct 29 15:53:13 why pawn stars said it gold rush Oct 29 15:53:30 💩 Oct 29 15:54:32 ArcaneWater: Better UI, better grouping, no plugin in your build breaking incremental compilation, API to pull crash data. Oct 29 15:54:57 crashlytics with the magical plugin sucks Oct 29 15:58:57 Which image loader library do you use? All the images will be on the file system Oct 29 15:58:57 complete my app Oct 29 15:59:05 complete my simple sample app Oct 29 16:00:25 loekfef are you a bot ? Oct 29 16:00:54 this channel is for buying selling hiring apps? Oct 29 16:01:01 no free help ? Oct 29 16:01:11 what ? Oct 29 16:01:22 this is for dev discussions Oct 29 16:01:32 what is discussion.. Oct 29 16:01:45 android development ….read topic Oct 29 16:01:45 i want to discuss how to make my app Oct 29 16:01:48 all want money Oct 29 16:01:58 what ? Oct 29 16:03:16 hello Oct 29 16:03:28 hello Oct 29 16:03:44 i have an issue with OAuth2 in my Andoid app, i'm in the rigt spot to ask? Oct 29 16:03:53 what is tht Oct 29 16:03:59 Google+ social login Oct 29 16:04:08 google is scam Oct 29 16:05:15 want some help loekfef ? Oct 29 16:06:35 How do I determine if the device has the capabilities to provide me with the users current location using maps v2? Oct 29 16:12:30 Hi guys Oct 29 16:14:53 GrecKoyes Oct 29 16:14:56 GrecKo yes Oct 29 16:14:57 pm ? Oct 29 16:15:29 n Oct 29 16:15:31 o Oct 29 16:15:44 what do you need help with ? Oct 29 16:16:01 can i ask 3 things or try 1 first Oct 29 16:16:19 i have working disctionary Oct 29 16:16:30 want to add buttons and background image Oct 29 16:16:34 for look Oct 29 16:16:47 and 3rd thing is about making it protected Oct 29 16:16:49 I've a simple game project. It has one activity and two fragments (one for main menu, and another one for the game itself). On my MenuFragment I've an interface variable setted (for the callbacks), but if I put my game on background and then return after, for instance, 2 hous, this variable has changed to null and I get a NullPointerException... How can I keep the reference to my interface variable?? Oct 29 16:17:10 want to password protect the text file or hide it Oct 29 16:17:17 the dictionary is in text file Oct 29 16:17:42 right now app autocompletes dictionary very well fast Oct 29 16:18:17 i can add the text file to passworded zip file so its safe + 70% less size Oct 29 16:18:39 but how can android program open zip then read text inside Oct 29 16:18:50 and then apk itself is a zip Oct 29 16:19:05 ok not this help Oct 29 16:19:14 just add button and background image to the text field Oct 29 16:20:12 dont care if it crashes later or uses all ram cpu Oct 29 16:20:36 just want to show someone dictionary with buttons and nice background image Oct 29 16:21:10 but anyway no no android app has exit button , they hide in memory even best ones Oct 29 16:21:48 GrecKogone ? Oct 29 16:22:36 Hi, anyone having trouble with SwipeRefreshLayout since moving onto appcompat-v21 ? Mainly setRefreshing(true) not actually animating the refresh UI thingy. Oct 29 16:23:26 what is that garbage " android:background="@drawable/background"> " Oct 29 16:23:38 where is the linkto .jpg file Oct 29 16:23:58 loekfef I think maybe you need to go though the tutorials Oct 29 16:24:11 into to android and getting started at d.android.com Oct 29 16:25:25 yes Oct 29 16:25:46 but rading books and tut takes time Oct 29 16:25:51 i do that in 10 days Oct 29 16:25:56 but need to show app now Oct 29 16:30:57 hmm, is there a way to create an avd with hardware buttons and no systemui nav bar? Oct 29 16:31:24 looks like no Oct 29 16:31:26 loekfef not sure you are ready…better to learn what you need to then attempt to do an app Oct 29 16:31:51 pfn I thought there was, well, if you choose the skin that is Oct 29 16:32:34 someone add button and background image to my app Oct 29 16:33:02 loekfef this is not the place to ask people to do work for you…try freelancer.com Oct 29 16:33:35 websites/forums/blogs/fackbook/twittr are not Live chat . Oct 29 16:33:48 this is instant Oct 29 16:34:03 nothing to do with what I just said but…yeah…I agree Oct 29 16:34:12 GrecKo? Oct 29 16:34:12 irc is fairly instant :) Oct 29 16:34:23 I can do it for 500€ Oct 29 16:35:44 .calc Oct 29 16:35:44 = 0 Oct 29 16:35:45 !calc Oct 29 16:36:01 = 1 Oct 29 16:36:07 .calc 500e Oct 29 16:36:07 500e = 500 Oct 29 16:36:13 no Oct 29 16:36:14 no bots Oct 29 16:44:34 (jackarius86) hi does anyone know whats going wrong with my logic where negative numbers are being confused with positive numbers? is there a common problem when using Vector3/float logic? Oct 29 16:47:42 shouldn't normally happen, presumably your logic is wrong. Oct 29 16:54:13 nexus 6 day? Oct 29 16:59:15 So I want my app to have an introduction, login and main activity. Oct 29 16:59:59 If the user is not logged in and hasn't done the intro yet, go to the intro. If he's not logged in but has done the intro, go to the login activity, else go to the main activity. Oct 29 17:00:36 What's the best way to go around that? Oct 29 17:01:05 does anyone use SwipeRefreshLayout ? Oct 29 17:01:55 I was using one Oct 29 17:02:11 ah that was a different one Oct 29 17:02:26 but I tried that one too Oct 29 17:02:30 I guess Oct 29 17:02:49 what problem do you have ? Oct 29 17:03:12 yeah I checked that out Oct 29 17:03:18 Damo2k: find this post usefull http://antonioleiva.com/swiperefreshlayout/ Oct 29 17:03:43 haha Oct 29 17:03:45 Damo2k: http://nullpointerbay.com/2014/06/pull-to-refresh-on-android/ Oct 29 17:06:44 Hi everyone Oct 29 17:07:51 gordon_: since I upgraded appcompat form v19 to v21, its behaviour changed Oct 29 17:08:13 ah.. Oct 29 17:08:17 to the point that setRefreshing(true) doesn't animate the UI component on demand Oct 29 17:08:20 dont know about it now Oct 29 17:08:38 was curious if its just some UI incompatibility with my layouts, or if its a known bug Oct 29 17:08:40 new appcompat uses Toolbar now Oct 29 17:08:47 yup Oct 29 17:09:25 http://stackoverflow.com/questions/24995480/android-l-material-design-on-swiperefreshlayout-color-scheme Oct 29 17:09:45 look at the answer Oct 29 17:10:18 ah Oct 29 17:10:24 material design is nice :) Oct 29 17:11:07 haha it is Oct 29 17:11:19 except not all components in AppCompat have material feel Oct 29 17:11:27 but yeha, it looks clean Oct 29 17:11:32 hmm Oct 29 17:11:38 maybe they have on lolipop Oct 29 17:12:03 I hate how I need to use actionbaractivity though -.- Oct 29 17:12:23 you need to ? Oct 29 17:12:42 well I always prepare my BaseActivity so.... Oct 29 17:13:13 I tried, the normal Activity won't get an actionbar with appcompat themes Oct 29 17:13:45 Zharf: you can put Toolbar in xml Oct 29 17:14:02 gordon_, sure, but then it won't automatically have all the stuff a normal actionbar has Oct 29 17:14:04 and make your theme as Appcompat.NoActionbar or something Oct 29 17:14:17 needs more work to make it work the same :p Oct 29 17:14:43 what's different ? Oct 29 17:15:07 well I will read it on site Oct 29 17:15:51 it's just an empty bar by default Oct 29 17:24:30 well if anyone wants a key listener: https://github.com/znwabudike/Android_KeyPressTest Oct 29 17:24:46 really only listens to back button and activity lifecycle events Oct 29 17:24:59 since home and menu are unlistenable i guess. Oct 29 17:31:38 this is weird https://code.google.com/p/android/issues/detail?id=78377 Oct 29 17:31:54 appcompat crashing on some samsung devices Oct 29 17:33:58 do you think it's a valid bug? Oct 29 17:34:05 seems unlikely Oct 29 17:35:52 want me to test g00s? Oct 29 17:36:06 I have 5 samsung devices Oct 29 17:36:09 tricknology_ thanks - i was just reading through the defect tracker Oct 29 17:36:14 this isn't my app Oct 29 17:36:35 Tab 4 10&7, Tab 2 7, Note 2, S5, S3 Oct 29 17:36:42 aah word Oct 29 17:36:56 g00s: totally possible. somewhat unlikely. Oct 29 17:37:13 Anyone get Eclipse to work on Yosemite? There was an issue with Java if I remember correctly… I’m about to try it in a VM Oct 29 17:37:28 tricknology_, use Android Studio Oct 29 17:37:36 no time at work to learn it Oct 29 17:37:37 tricknology_, you won't regret it Oct 29 17:37:47 Yeah but the learning curve is gonna wreck my productivity Oct 29 17:37:53 There's nothing to learn, it's dead simple compared to Eclipse Oct 29 17:38:06 I spent a whole day in IntelliJ and didn’t get very far Oct 29 17:38:20 anyone know I get error : No resource found that matches the given name '@style/Theme.Sherlock.Light' Oct 29 17:38:24 Android Studio is a lot more friendly for Android dev Oct 29 17:38:38 eeh i have to import all Git and eclipse projects Oct 29 17:38:47 I tried last week, it was a mess Oct 29 17:38:51 codeme, you're probably trying to use the Sherlock action bar lib Oct 29 17:39:00 Make sure you imported it correctly. Oct 29 17:39:01 I’ll do it at home eventually, then start using it at work Oct 29 17:39:28 AndroidStudio >= IntelliJ? Oct 29 17:39:29 Muchoz: ok thanks I will try to check it Oct 29 17:39:33 tricknology_, alright. 1 thing that's not so good imo is the way Git works in IntelliJ (not good in Eclipse either) Oct 29 17:40:05 with Egit it’s a breeze in Eclipse. very very simple. Oct 29 17:40:17 Adding something means it's forever added, which is annoying and you remove it from the commit in the commit window. It's confusing. Oct 29 17:40:19 I barely have to touch the command line Oct 29 17:40:26 I love the commandline! Oct 29 17:40:33 Why hide all of it? Oct 29 17:40:38 yeah and deleting projects or modules is a pain Oct 29 17:40:43 Loss of functionality Oct 29 17:40:49 I don’t need it? Oct 29 17:40:53 click clikc done Oct 29 17:41:01 Ever had do to a merge or something? Oct 29 17:41:07 Those GUI's are shit Oct 29 17:41:58 * g00s <3 SourceTree Oct 29 17:43:26 damn it, second time my MBP wouldn't wake, had to hard-power down, corrupted HFS+ Oct 29 17:43:40 this isn't good :( Oct 29 17:44:09 time to make sure i have my Play kets backed up Oct 29 17:44:11 *keys Oct 29 17:46:46 you better, g00s.. put them in GoogleDocs? Oct 29 17:47:09 yeah Oct 29 17:47:20 Good thing is that you can pull the HD from the MBP and run it externally if you need to Oct 29 17:47:28 When I have a README.md in the app dir, does that get added to the apk? Oct 29 17:48:13 Heh, I just found out http://readme.md exists Oct 29 17:48:34 LOL Oct 29 17:49:34 https://github.com/echonest/pyechonest/blob/master/README.md Oct 29 17:49:39 ok, looks like the SwipeRefreshLayout on setRefreshing(true) is a bug: https://code.google.com/p/android/issues/detail?id=77712 Oct 29 17:49:39 redir Oct 29 17:49:46 for v21 on AppCompat Oct 29 17:49:58 ******* AppCompat.. Oct 29 17:50:06 tricknology_, ikr. Weird. Oct 29 17:50:17 Would be a good site to explain what a readme is. Oct 29 17:50:28 didi you do this in chrome? Oct 29 17:50:32 with a google search engine? Oct 29 17:50:41 i wonder what an httpget on that will do Oct 29 17:53:15 tricknology_: fuck Appcomat ? Oct 29 17:53:17 why Oct 29 17:53:56 Damo2k, I don't think he knows what he's talking about tricknology_ Oct 29 17:54:46 always giving problems Oct 29 17:55:09 I don’t think there is 1 person in here who hasn’t had a crappy tiem iwth appcompat Oct 29 17:55:46 I don't think there is a one person here who hasn't had a crappy time with android dev in general Oct 29 17:56:34 I just don’t understand why there has to be an appcompat. iOS devs have it easier in that respect Oct 29 17:58:12 crappy time with appcompat? Oct 29 17:58:14 nope, I haven't Oct 29 17:58:19 crappy time with android? nope either Oct 29 17:58:26 sure there are limitations, happens with every platform Oct 29 17:58:44 tricknology_: backward compatibility - its impossible for everyone to have an handset on latest platform Oct 29 17:58:48 I for one, like appcompagt Oct 29 17:58:49 tricknology_: because android doesn't update across every device at the same time and people want to use new features on old operating systems Oct 29 17:58:53 appcompat is easy, how is it difficult Oct 29 18:04:49 ugh, how do I detect whether a navigation bar is present on device Oct 29 18:04:50 do I need to use MenuItemCompat for api > 16 ? Oct 29 18:05:18 I thought if I'm using android.R.dimen.navigation_bar_height, it should be 0 if it's not present... Oct 29 18:05:20 apparently not Oct 29 18:05:57 "You must use the static methods in MenuItemCompat for any action-related calls on a MenuItem." meh Oct 29 18:06:16 g00s, of course you don't have to Oct 29 18:06:26 MenuItemCompat is just a version checker Oct 29 18:06:33 that noops a call if it's not available on the api you want Oct 29 18:06:39 s/want/are running on Oct 29 18:06:44 pfn: http://stackoverflow.com/questions/16092431/check-for-navigation-bar Oct 29 18:06:56 Why is my nav drawer covering my Toolbar? I'm using the NoActionBar AppCompat theme Oct 29 18:07:04 With a custom XML Toolbar Oct 29 18:07:08 Which is what is recommended now? Oct 29 18:07:17 tricknology_, yeah, that's not much of an answer, and it doesn't work on all devices, as evidenced by discussion Oct 29 18:07:23 see all these appcompat problems? lolol Oct 29 18:07:44 my question isn't an appcompat problem Oct 29 18:07:55 and that appcompat question is just a theming question, not a problem Oct 29 18:08:23 I'm probably just doing something wrong Oct 29 18:08:27 idk it gave me a ton of problems once and now I’m just player hating. I’ll stop Oct 29 18:08:39 Maybe I should not use the NoActionBar theme? Oct 29 18:08:45 but I don't want an action bar on a lot of screens Oct 29 18:08:51 so i'd like using my own toolbar Oct 29 18:09:19 if I want to learn to develop apps for android (probably using android studio) should I learn java first? Oct 29 18:09:26 oOOo Yosemite is beautiful Oct 29 18:11:01 tb01110100 pay $10 for answer Oct 29 18:11:08 $10000 for java tutorial Oct 29 18:11:12 $39829348034 for android tut Oct 29 18:11:15 tb01110100 you should really Oct 29 18:11:24 You don’t have to.. I didn’t Oct 29 18:11:25 the basics will really help Oct 29 18:11:27 StingRay_ lies when not paid Oct 29 18:11:30 But it will help Oct 29 18:11:40 loekfef dont be a troll Oct 29 18:11:47 then make my app Oct 29 18:11:57 complete my simple ap Oct 29 18:12:03 free Oct 29 18:12:05 is that a troll threat ? Oct 29 18:12:08 I took a Java class after starting Android becuase I felt like I needed it to really understand what was going on Oct 29 18:12:16 like super(), inheritance, etc Oct 29 18:12:20 alright, I'll learn some java first Oct 29 18:12:30 thanks for the tips Oct 29 18:12:40 ok so i want to ask Oct 29 18:14:40 what is going on? Did someone short circuit? Oct 29 18:14:54 im going ##java Oct 29 18:15:02 this channel useless Oct 29 18:15:03 tb01110100: what langs do you already know? You could probably just brush up on a few java basics if you already know something like C# or other jvm langauge. Oct 29 18:15:28 loekfef gl Oct 29 18:15:51 pieces, some bash, python, lua, c, and haskell Oct 29 18:15:52 pfn seems like in some cases you need MenuItemCompat Oct 29 18:15:57 LOL really, good luck loekfef Oct 29 18:16:36 loekfef should be kicked, i'm pretty sure its a bot Oct 29 18:16:41 pieces029_: some bash, python, lua, c, and haskell Oct 29 18:16:47 python is close.. at least it’s OO. Oct 29 18:17:02 add var declarations like in C Oct 29 18:17:22 and take away the pointers Oct 29 18:17:30 tb01110100: I mean you probably know enough to get by with out "learning" java, but it will be easier if you just go learn the language. Oct 29 18:17:50 pieces029_: yeah, I'm planning on doing that now. Oct 29 18:18:00 I have an idea: try it and see :) Oct 29 18:18:14 if there’s something you don’t understand then go to the javadocs Oct 29 18:18:23 but for the love of god don’t go to ##Java lol Oct 29 18:18:52 anyone have any guides/books they'd recommend for java? Oct 29 18:19:10 if I have a master / detail view in landscape, and I want to do a detail page with different sections, what are my options. I can think of Tabs and a Spinner right now Oct 29 18:20:12 Not I, I learned using the Vogella tuts Oct 29 18:20:21 can you already preorder the nexus 6? Oct 29 18:20:39 * tricknology_ is thinking about getting the nex6 Oct 29 18:20:47 This seems like a really awesome way to learn, I've been playing with it to learn some scala / groovy. http://www.codingame.com/games Oct 29 18:21:09 I think I’m going to have to play with it in a store though Oct 29 18:21:41 tricknology_, don't like that the backside is curved D: Oct 29 18:22:06 I’m not sure if I do ot not.. we have an iPhone 6+ here at work and it’s a bit hard to hold because of that Oct 29 18:22:12 2 very small points of contact Oct 29 18:22:15 tb01110100: here is what the java channel recomends "Some good java books are Core Java Vol I (http://amzn.to/116LxVm) and Vol II (http://amzn.to/116LFEv), Effective Java (http://amzn.to/116LIAb), and Java Concurrency in Practice (http://amzn.to/116LOaQ)" Oct 29 18:22:37 ok, I think the issue with the toolbar under the drawerlayout is that the drawerlayout is the root element of my XML. Would it make more sense to have a vertical linearlayout in this case, with my toolbar as the first item and the drawerlayout as the second child? Oct 29 18:22:51 before i go and recode this up does anyone else think this will work Oct 29 18:23:05 tricknology_, I like the feel and look of the iphone 6+ though Oct 29 18:24:27 I was gonna grab it but someone has it :/ Oct 29 18:24:41 it is pretty.. and very thin, and light Oct 29 18:25:47 bye Oct 29 18:25:57 bye felicia Oct 29 18:27:10 Hi. My app uses the RemoteControlClient to display playback controls on the lockscreen currently. Since API 21 MediaSession (Compat) should be used. To get the lockscreen controls on Android 4.4 or less, do I still have to use the RemoteControlClient? Oct 29 18:27:59 uuh Oct 29 18:28:06 anyone running Yosemite and getting this ? Oct 29 18:28:07 http://pastebin.com/wqSdDXa8 Oct 29 18:28:40 tricknology_ just install a new java ? Oct 29 18:29:09 yes Oct 29 18:29:13 i got that last week on 10.7 after updating the jdk Oct 29 18:29:16 just exit the shell :D Oct 29 18:29:22 tricknology_, did use the iphone 6+ for a short bit thouhg and was kind of underwelmed by the screen fidelity Oct 29 18:30:25 g00s, restarted terminal. still persists. I’ll restart the machine. Eclipse works so that’s good but I hope it doesn’t cause any other issues.. Oct 29 18:30:51 oh, btw. i only installed the OSX java.. Oct 29 18:31:06 any idea if you can "overclock" the nexus 6's camera to record at a higher framerate? Oct 29 18:31:07 I used ot have to install JRE and JDK... Oct 29 18:31:13 as in, decently record Oct 29 18:31:13 tricknology_ what version is OS X java now ? Oct 29 18:31:28 2014-01 is the version i downloaded Oct 29 18:31:29 g00s, in almost no cases Oct 29 18:31:55 pfn sure, if you use ActionMenuView, you need the compat version Oct 29 18:32:09 which i just found out Oct 29 18:32:14 the hard way :) Oct 29 18:32:14 tricknology_: Try java -version Oct 29 18:32:15 http://support.apple.com/kb/DL1572 Oct 29 18:33:01 and Toolbar is using ActionMenuView under the hood, so ... Oct 29 18:33:31 * tricknology_ facepalms.. thanks SimonVT Oct 29 18:33:41 java version 1.6 Oct 29 18:33:58 …should I also get 1.8? do I need JRE and JDK? Oct 29 18:35:48 jdk should include jre Oct 29 18:35:57 also, android supports 1.8 by now Oct 29 18:36:29 I’m on yosemite, so I just got 1.6 in the Java for OSX package Oct 29 18:36:40 Eclipse runs.. haven’t build or ran anythign yet Oct 29 18:36:51 I though Android was only up to 1.6? Oct 29 18:36:53 tricknology_ i'd run AS with apple jvm, but install oracle 1.8 or something for the builds Oct 29 18:36:57 can you switch on Strings? Oct 29 18:36:58 mhm Oct 29 18:37:17 that's what I use - 1.8 Oracle for building and stuff, Apple 1.6 for IDE itself Oct 29 18:37:19 * tricknology_ is still using ratchet-ass eclipse Oct 29 18:38:07 I don’t like a lot of things about AS. one of them being that you have to delete things from the project dir. Oct 29 18:38:30 can’t create git repo Oct 29 18:38:38 hello Oct 29 18:38:59 SimonVT loekfef seems to be a spambot Oct 29 18:40:03 g00s, well, of course, if you're using Toolbar, then you don't have access to newer apis, L, etc. Oct 29 18:40:10 loekfef: Are you a spambot? Oct 29 18:40:13 tricknology_: It's not in VCS -> "Enable Version Control Integration"? Oct 29 18:40:52 u afkbot Oct 29 18:40:55 pfn: I tried IntelliJ 14 and it seems that you don't have to do gen-idea anymore, so that's nice. Oct 29 18:40:59 I eman it is there. but I have to add remote and all that manually thoguh console Oct 29 18:41:03 im here more that u Oct 29 18:41:04 is there a plugin that does this? Oct 29 18:41:09 marrrk, sure, but it's not a complete implementation yet, it seems Oct 29 18:41:22 tricknology_: The git plugin, suprisingly enough. Oct 29 18:41:23 g00s is ur petbot Oct 29 18:41:28 i think loekfef is drunk Oct 29 18:41:31 loekfef: Please behave Oct 29 18:41:40 he keeps calling u everytime Oct 29 18:41:42 marrrk, but like I said, that's definitely in progress Oct 29 18:41:45 to ban all Oct 29 18:41:50 did that yesterday Oct 29 18:41:56 just ban already? Oct 29 18:41:56 tricknology_ only gibberish from the beginning Oct 29 18:42:02 freeone3000 thanks, lol. Oct 29 18:42:03 and this time i just said "hello " Oct 29 18:42:09 how is that ban thing spambot /? Oct 29 18:42:34 is it really a bot? Oct 29 18:42:56 passes the turing test if you ask me.. Oct 29 18:43:09 marrrk, what's new in IntelliJ 14? Oct 29 18:43:16 could pass for a drunk foreigner Oct 29 18:43:17 tricknology_ tricknology_ tricknology_ ... Oct 29 18:43:20 tricknology_: Ah. The remote should be added if your ssh key is loaded when you try to push. It's there in IDEA 13, so Android Studio should also have it. Oct 29 18:43:45 I have IDEA 13, basically AS, no? Oct 29 18:43:55 I guess I’ll just have to play with it at home for a couple weeks Oct 29 18:44:18 tricknology_: Android guys done changed some stuff, but if you have IDEA 13, push to a non-existant remote should bring up the "Remotes" dialog, which is also available from the VCS menu... somewhere. Oct 29 18:45:27 hmm ok.. well.. can you create Java projects in AS? (I think I might have asked before) Oct 29 18:45:33 ugh, I can't decide when to include padding at the bottom when I'm using windowTranslucentNavigation=true Oct 29 18:45:45 #FirstWorldProblems Oct 29 18:46:58 * pfn tries fitsSystemWindows again Oct 29 18:47:49 pfn not attempting to get content and a drawer to play nice with sys bars are ya ? Oct 29 18:47:54 is it possible to launch an asyntask in the "onPostExecute" of another asynctask ? Oct 29 18:48:02 it seems to fail, but i don't know why Oct 29 18:48:03 blusky a kitten will die Oct 29 18:48:07 hmm, nope Oct 29 18:48:15 yo mama is so fat, fitsSystemWindow = false; Oct 29 18:49:10 blusky, why don't you read your logs and see Oct 29 18:49:58 i don't have any exception Oct 29 18:50:02 Anyone has an idea regarding the RemoteControlclient stuff? Oct 29 18:50:13 it just "seems" that my 2nd asynctask isn't launched Oct 29 18:50:57 oh shit, my problem is elsewere Oct 29 18:51:20 i have a third asynctask, waiting for other asynctask to finish Oct 29 18:51:31 apparently, it's blocking the other asynctask Oct 29 18:51:37 asynctasks are serial by default Oct 29 18:55:39 that's certainly why :) Oct 29 18:55:57 AS warns if menu.xml showAsAction is using android: over another namespace, but not actionViewClass. lots of bugs. bugs all the way down Oct 29 18:56:06 while doing "onPostExecute", is the status of the task "finished" ? Oct 29 18:56:18 at the end of the day its amazing to get anything working :) Oct 29 18:57:38 its like indiana jones going to cross that bridge in The Last Crusade, when he has to step on all the right things Oct 29 18:59:45 I need some help with my code Oct 29 18:59:54 something doesn't make sense and I don't understand what Oct 29 19:00:13 i spent about 3 hours last night but eventually had to sleep Oct 29 19:00:54 here is the code http://pastebin.com/r3Qu4dCz Oct 29 19:00:57 it's really short Oct 29 19:01:32 line 94-111 is where the magic happens Oct 29 19:01:34 i spent a whole day trying to figure out why ActionMenuView wouldn't show up, its because it doesn't like layout_width="match_parent" Oct 29 19:01:45 but it used to happen in initialize Oct 29 19:01:49 just doesn't work anymore Oct 29 19:12:11 i'm really excited about this http://www.androidpolice.com/2014/10/29/video-shows-project-ara-prototype-spiral-2-model-will-appear-module-developers-conference-january-2015/ Oct 29 19:12:22 hope it takes off ... Oct 29 19:15:43 What's the assets folder actually for? Oct 29 19:16:36 Is it just res but without all of the dpi stuff? Oct 29 19:17:10 Muchoz it's more similar to raw than res Oct 29 19:17:29 resources are given an id in the R file and can be accessed by ID at any time directly Oct 29 19:17:36 assets are more like files bundled within the APK Oct 29 19:17:45 Alright, thanks. Oct 29 19:17:46 you can list them, etc Oct 29 19:17:59 but yes you're right about no DPI stuff Oct 29 19:18:09 also assets can be passed around directly with a URI Oct 29 19:18:16 Anyone know why the install step of ndk-build might fail? It is failing to find the .so file, it didn't throw an error when building the shared library though Oct 29 19:18:39 like file:///android_asset/myfile.jpg Oct 29 19:18:50 JacobTab_, cool thanks. Oct 29 19:26:30 Muchoz: I don't know. I don't see much difference except for an even uglier splash screen. Oct 29 19:27:02 marrrk, let's hope they up the JDK version from 6 to 7 on Mac. Oct 29 19:27:10 Hi guys, if i street view into my room... can i add a listener for example: when i tap on the door show a toast? Oct 29 19:27:23 Muchoz: Why? Oct 29 19:28:30 marrrk, because Yosemite uses 7 instead of 6 and I need to have multiple versions running for Android Studio. Oct 29 19:28:40 I've got 6 and 8 running at the same time. Oct 29 19:28:52 I'm on Yosemite and I have 6,7 and 8 installed. Oct 29 19:29:04 And it's a pain Oct 29 19:29:07 Is it? Oct 29 19:29:12 Yes Oct 29 19:29:17 How? Oct 29 19:29:35 I don't know whether Android Studio is using my 6 or 8 for example. Oct 29 19:29:52 Retina isn't officially supported until Java 7. Oct 29 19:30:10 Intellij works for me with retina Oct 29 19:30:42 Same here, but it crashes sometimes when I switch my window from my 1080p screen to my Retina screen. Oct 29 19:30:46 Muchoz AS uses 1.6* by default Oct 29 19:30:48 And it's a pain in my ass. Oct 29 19:30:53 OK assuming I have an android application and I need some way to identify imageviews Oct 29 19:30:58 g00s, AS is built on IntelliJ. Oct 29 19:31:00 you have to change a plist to switch from 1.6 to whatever Oct 29 19:31:02 like which imageview was clicked Oct 29 19:31:06 whats a good way to do????????? Oct 29 19:31:17 ajoul, no need for ????????????? Oct 29 19:31:19 Hmm, I don't know both my Screens are running in retina and it doesn't crash. Oct 29 19:31:32 Muchoz: sorry keyboard stuck Oct 29 19:31:46 Muchoz of course it is ? Oct 29 19:32:00 g00s: what do you mean? Oct 29 19:32:01 ajoul: you give them id's in xml, and a onTouch listener in code Oct 29 19:32:02 g00s, and we're talking about why it should update that version. Oct 29 19:32:09 ajoul: How about you give the view an onClickListener Oct 29 19:32:14 shmooz: how do I give them IDs? Oct 29 19:32:16 So why are you saying it uses 1.6* by default? We just said so... Oct 29 19:32:25 shmooz: oh nvm... ok so Oct 29 19:32:37 shmooz: ok lets say I take the view of the image clicked Oct 29 19:32:42 Muchoz: I don't know whether Android Studio is using my 6 or 8 for example. Oct 29 19:32:59 Okay in Contents/Info.plist there is JVMVersion set to 1.6* Oct 29 19:33:05 let my try to set it to 1.8 and see what happens Oct 29 19:33:12 g00s, yes. But Java 6 isn't first in my Path. Oct 29 19:33:14 shmooz: ok I have a table and the ID would be the same for every image, but the image source will change programatically during execution Oct 29 19:33:19 marrrk, it crashes a lot more. Oct 29 19:33:21 Muchoz doesn't matter Oct 29 19:33:35 shmooz: is there a way to get the name of the file that the imageview points to Oct 29 19:33:37 marrrk oracle JVM will look terrible with fonts if you don't have retina Oct 29 19:33:38 g00s, so it just searches till it finds 1.6 and not 1.8? Oct 29 19:33:56 Makes sense.. Oct 29 19:33:58 lol Oct 29 19:34:09 Muchoz no the jarbundler sets the plist entry to 1.6; it looks under /Library/Java Oct 29 19:34:41 Actually, I don't care. It works fine for me. Sometimes I get the internal IDE crash or whatever but it usually doesn't crash. Oct 29 19:35:33 g00s, the versions in there are 1.7 and 1.8. No 1.6 to be found there. Oct 29 19:35:46 some Apple java stuff goes into /usr/bin Oct 29 19:35:46 https://www.dropbox.com/s/z6iplpop5a037c7/Schermafdruk%202014-10-29%2020.35.44.png?dl=0 Oct 29 19:36:48 I would just install 1.6 and get over it. Oct 29 19:37:16 g00s, the java in /usr/bin is 1.8 Oct 29 19:37:36 marrrk, I did using the installer on their site. But I can't find a trace of 1.6 anywhere. Oct 29 19:37:45 Even though AS' setting is 1.6* Oct 29 19:37:48 Muchoz thats just a symlink Oct 29 19:38:04 Weird so with a clean install of Yosemite you don't get 1.6? I did an upgrade. Oct 29 19:38:10 but those symlinks, and how they work, are part of the apple java stuff Oct 29 19:38:16 hey guys? how do you jump to mentions in AS? Oct 29 19:38:20 The jdk6 Oct 29 19:38:23 is in a different folder Oct 29 19:38:25 like cmd + K in Eclipse Oct 29 19:38:48 here: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Oct 29 19:38:57 marrrk, I upgraded from Mavericks. Oct 29 19:39:09 like you highlight myVariable and want to jump to all the places where its mentioned in the code Oct 29 19:39:13 versus: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home Oct 29 19:39:27 Odaym, CMD + K is a clear command across Mac. Weird it's set to jump in Eclipse. Oct 29 19:39:33 But also one of the reasons I don't use Eclipse. Oct 29 19:39:40 read again man Oct 29 19:39:54 Read mine again, 'man'. Oct 29 19:40:08 "Weird it's set to jump in Eclipse." Oct 29 19:40:42 marrrk, how do I even uninstall jdk7 and jdk6? Oct 29 19:40:57 Why would you uninstall them? Oct 29 19:41:08 regardless how you feel about it personally, command K in Eclipse jumps to the next mention of the highlighted instance Oct 29 19:41:20 this is reality Oct 29 19:41:27 brah Oct 29 19:41:40 I'm just giving you a headsup, it shouldn't be CMD+K imo Oct 29 19:41:43 Eclipse is the worst Oct 29 19:41:48 talk to Apple Oct 29 19:41:57 marrrk, said it well. Oct 29 19:41:57 is there an equivalent for it in AS? Oct 29 19:42:01 that's the original question Oct 29 19:42:12 Odaym: F3. Oct 29 19:42:39 that just "Bookmarked" it in the gutter Oct 29 19:42:43 with a checkmark Oct 29 19:42:49 One of my favourites: http://www.ihateeclipse.com Oct 29 19:42:54 Odaym, https://www.dropbox.com/s/gsm7ustdur3vdkd/Schermafdruk%202014-10-29%2020.42.49.png?dl=0 Oct 29 19:43:56 marrrk, when you press the 'Help' dropdown in AS. Does it lag for you too? Oct 29 19:44:00 Muchoz, https://www.dropbox.com/s/satzgq37a8ps1ad/Screenshot%202014-10-29%2021.43.45.png?dl=0 Oct 29 19:44:29 I don't use AS. I see no reason to. Oct 29 19:45:02 Odaym, jesus man. I'm showing you the command isn't there. Grow up and say thank you. It'd be appreciated. Oct 29 19:45:12 that'll be all Oct 29 19:45:14 marrrk, why not? Oct 29 19:45:41 Intellij does everything AS does and more, right? Oct 29 19:46:15 Well I would use IntelliJ for Java, but for specifically Android I would use AS. Oct 29 19:46:21 Schermafdruk sounds like a funny language. Is it scandinavian? Oct 29 19:46:30 It's Dutch Oct 29 19:46:44 Dankjuwel Oct 29 19:47:20 Dankjewel* Oct 29 19:47:38 or dankuwel Oct 29 19:47:39 Damn, I always thought it was jewel made of thanks Oct 29 19:47:59 Hahah, if you look at it like that Oct 29 19:49:16 it's ctrl + G Oct 29 19:54:23 hidgw, I will start to do openCV with android. What do you suggest, Install NDK or just download the openCV at the opencv.org and import my project? Other soggestions? Thanks so much! :-) Oct 29 19:54:42 hidgw, sorry .. I was supposed to say Hi! Oct 29 19:55:12 Hello everybody. I will start to do openCV with android. What do you suggest, Install NDK or just download the openCV at the opencv.org and import my project? Other soggestions? Thanks so much! :-) Oct 29 19:57:19 meh now loekfef is threatening me in pms Oct 29 19:57:58 Anyone know why the install step of ndk-build might fail? It is failing to find the .so file, but it didn't throw an error when building the shared library Oct 29 19:58:38 http://mashable.com/2014/10/28/google-nanoparticles/ Oct 29 19:59:01 Hello everybody. I will start to do openCV with android. What do you suggest, Install NDK or just download the openCV at the opencv.org and import my project? Other soggestions? Thanks so much! :-) Oct 29 19:59:19 Not just about puters anymore ;) Oct 29 19:59:20 capella-s3 i lold at the "dead people can't click on ads" Oct 29 19:59:35 hahahaha Oct 29 20:00:13 * capella-s3 sings "Alive and klicking" Oct 29 20:01:14 Hi guys, i have street view into my room... can i add a listener for example: when i tap on the door show a toast? Oct 29 20:02:18 roxdragon: That sounds like a hard problem Oct 29 20:03:06 uhm... Oct 29 20:03:30 roxdragon: so you have have streetview looking at your house? Oct 29 20:04:18 Hi all. What do you suggest, Install NDK or just download the openCV at the opencv.org and import my project? Other soggestions? Thanks so much! :-) Oct 29 20:04:42 capella-s3 i wonder why google would be doing anything with that Oct 29 20:04:51 pieces029_: i have a street view of my room.. created wityh photosphere.. but i want know if is possible to click on the door and show a toast Oct 29 20:05:07 g00s cause FUTURE Oct 29 20:05:28 not good enough Oct 29 20:05:54 i can see things like, investing in alternative energy for datacenters, etc ... Oct 29 20:06:02 heh... they seem to have a life sciences group Oct 29 20:06:47 roxdragon: oh gotcha, I'm sure it's possible. You probably need to do something like visualgrep but never done that with android Oct 29 20:06:54 I was surprised at autonomous cars... this is more edgy even Oct 29 20:07:18 Can someone help me? Oct 29 20:07:20 i can see autonomous cars too kinds, wrt delivery of physical things Oct 29 20:07:49 amazon with drones, mercedes / volvo with self driving trucks, etc Oct 29 20:08:31 what's visualgreo? Oct 29 20:08:33 p Oct 29 20:09:04 yah... that does dovetail better... but if you have lots of success a cash, research is a great investment always Oct 29 20:09:24 investors don't think so Oct 29 20:09:59 investors is a broad term Oct 29 20:12:56 capella-s3 maybe Sergey or Brin just got frightened by their mortality Oct 29 20:13:11 i mean, if Jobs can't stick around ... Oct 29 20:13:33 well that seems mostly his fault Oct 29 20:14:36 heh Oct 29 20:14:54 death is for the weak Oct 29 20:21:38 my emulator is stuck, it does nothing. anyone know? Oct 29 20:23:10 know what? Oct 29 20:24:41 when did android get java 1.6 support again? 2.2? Oct 29 20:24:44 or was it 2.1 Oct 29 20:25:00 disable screen pinning simply by holding recent and back? Oct 29 20:26:49 codeme: mine too, all the time, but if you wait long enough might work sometimes Oct 29 20:27:57 mihai_c: oh ok I’ll try to wait, thanks Oct 29 20:29:19 Anyone know why the install step of ndk-build might fail? It is failing to find the .so file(doesn't seem to have been created), but it didn't throw an error when trying to build the shared library Oct 29 20:31:56 I want to put Abort & Next buttons on the menu bar, are there some simple examples I can look at. This for an application that runs on a dedicated tablet (Nexus 7) used to record eyesight test results, so it is important that users to NOT treat like as a standard Android - actions need to be more deliberate. I will disable, or trap, the normal back button. Also is it possible to trap the... Oct 29 20:31:57 ...home button? Oct 29 20:32:17 Nivag, can’t shield the home button :( Oct 29 20:32:41 I was just looking for that. As of 4.0, no more. Can’t even listen for it Oct 29 20:33:00 This is to prevent malicious apps from preventing a user from exiting. Oct 29 20:33:40 pity, this is for a dedicated tablet, so I don't really want users to go wandering off doing other things! Oct 29 20:34:08 what the hell! Oct 29 20:34:17 Nivag something like this? http://developer.android.com/samples/DoneBar/index.html Oct 29 20:34:40 No '"Trust me! I know what I am doing, honest"!!! Oct 29 20:34:55 I tap my app icon to start it, and my Nexus 7 starts showing a reboot animation, like as if in windows you log out and back in Oct 29 20:35:26 X-Windows or some other windows??? :-) Oct 29 20:35:48 I don't think it did a real reboot, because I didn't see the droid or Google at start, but it had those 4 colored animated progressbar Oct 29 20:37:09 hello guys Oct 29 20:37:52 i am trying to integrate entry and exit points to my app to determine whenever the app is minimzed or no Oct 29 20:38:15 look at onPause()? Oct 29 20:38:21 my plan is on using a counter Oct 29 20:38:42 where is the best strategy ? ++ in onresume and -- in onpause Oct 29 20:38:51 or ++ in onstart and -- in onstop Oct 29 20:39:18 because onpause will also get called whenever i move from an activity to another activity Oct 29 20:39:24 well.. what are you tryign to achieve exactly? becuse your counter will always be 1 or 0 Oct 29 20:39:37 tricknology exactly Oct 29 20:40:00 I want to know when the user has minimzed the app so that i can run a background task ( a sync with server on minimize) Oct 29 20:40:19 there is no minimize Oct 29 20:40:21 eh, you don’t need a counter. Oct 29 20:40:29 ^ what he said Oct 29 20:40:31 tricknology, how can i ? Oct 29 20:40:36 whatitis i know :/ Oct 29 20:40:38 start your task in onResume() Oct 29 20:40:46 stop it in onPause() Oct 29 20:40:58 have a look at this: http://android.okhelp.cz/wp-content/uploads/lifecycle-activity-android.png Oct 29 20:41:23 tricknology, i know these. by heart Oct 29 20:41:29 ok Oct 29 20:41:36 but in ios for ex there is a callback whenever u press the home button Oct 29 20:41:39 makes life a lot easier Oct 29 20:41:48 not familiar with iOS Oct 29 20:42:08 i want to do a final sync with my servers whenever the user pressses the home button Oct 29 20:42:15 but when you press the home button, onPause()onStop() Oct 29 20:42:19 (or the back button enough to get out of the appto homescreen) Oct 29 20:42:25 I have a demo app that will show you this Oct 29 20:42:43 https://github.com/znwabudike/Android_KeyPressTest Oct 29 20:42:48 tricknology, but onpause and onstop will also get called whenever i move from an activity to the other Oct 29 20:43:03 yeah Oct 29 20:43:17 set a flag then. Oct 29 20:43:36 says "Explicitly declare in the manifest which screen sizes your application supports". Is that really a good idea? I thought I read that we *shouldn't* do that by default. This document seems to suggest otherwise. Oct 29 20:43:52 TacticalJoke, i have read what u have read too Oct 29 20:44:04 weird how open source software changes every couple of seconds. Oct 29 20:44:07 isActivityChanged = true; right before startActivity(); then pass isActivityChanged with your intent. check it in onCreate or onResume() Oct 29 20:44:10 tricknology, thats what i was telling Oct 29 20:45:00 what about abusing the fact that onstop is called after onpause and within an indeterminate time Oct 29 20:45:05 or use a singleton Oct 29 20:45:10 Is it a good idea to release an app I've never tested on an actual tablet (which I've nonetheless tested on a "tablet" in the emulator)? Oct 29 20:45:16 Note that this app isn't much of a "tablet app". Oct 29 20:45:22 Only phone users will want to use it. Oct 29 20:45:27 TacticalJoke ofcourse not. Oct 29 20:45:32 TacticalJoke, nah Oct 29 20:45:40 TacticalJoke u need to test it mate Oct 29 20:45:41 but if you want to, I can give it a whirl on a 10 and 7 Oct 29 20:45:51 tricknology: Thanks. lol Oct 29 20:45:55 I'll probably get a tablet soon. Oct 29 20:46:02 tricknology, my plan = ++ in onresume,,, -- in onstop Oct 29 20:46:13 tricknology singleton for what ? Oct 29 20:46:16 What would I do if I never got a tablet? The "supported screens" thing? Oct 29 20:46:38 TacticalJoke, release the app, pray it works fine. Oct 29 20:46:58 I've found myself praying to Google a lot lately. Oct 29 20:47:10 TacticalJoke hehehe Oct 29 20:47:22 It works well on various phones, and on the emulator in 5.0. Oct 29 20:47:36 TacticalJoke, try it on various emulators Oct 29 20:47:40 genymotion etc Oct 29 20:47:40 Yeah. Oct 29 20:47:45 Oh, okay. Oct 29 20:47:52 tricknology, what do u think of my last idea ? Oct 29 20:48:01 Isn't Genymotion not "official", though? Oct 29 20:48:20 to store your isChangingActivity var. then you don’t have to pass through intent if you don’t want to. Singletons are frowned upon generallt but I think that is an oK case Oct 29 20:48:30 TonySoprano9099 Oct 29 20:49:18 tricknology, i can do it a static Oct 29 20:49:24 but i didnt understand ur approach Oct 29 20:49:27 can u rephrase it plz Oct 29 20:49:31 sure Oct 29 20:50:12 you want to run a background service or task when your app is running, and stop it when it’s hidden away in the activity stack Oct 29 20:50:18 right? Oct 29 20:50:31 but you want to keep it runnign if you’re switching activities, within your own app Oct 29 20:50:31 AS 0.8.14 is pomoted to beta Oct 29 20:51:25 putting a counter in onStart() onStop() will make the counter value always 0 or 1, and i am assuming you want to depend on that when you are starting and stopping your task Oct 29 20:51:41 Do you folks specify in your apps? Oct 29 20:51:48 but the problem is that switching activities will also call onstart() onstop() Oct 29 20:51:59 nop Oct 29 20:52:03 u got it wrong Oct 29 20:52:11 ok correct me Oct 29 20:52:44 “Activity cannot be resolved to a type” wtf, Eclipse.. it crashed and now this. Oct 29 20:53:00 i dont want to start anything when the app is forground Oct 29 20:53:14 plug-in com.android.ide.eclipse.adt was unable to load class com.adnroid.ide.eclipse.adt.ToolsLocator Oct 29 20:53:23 ooh ok the reverse Oct 29 20:53:25 ? Oct 29 20:53:42 whenever the user presses the home button (or enough back buttons)... and the app goes background.. i want to run the backgrnd task Oct 29 20:54:11 that is.. the bkrnd task should start running when the app is not visible (minimizeD) Oct 29 20:54:14 "com.adnroid.ide.eclipse.adt.ToolsLocator"? Oct 29 20:54:21 ok but still your counter will increment and deincerment when you switch activities Oct 29 20:54:39 tricknology exactly Oct 29 20:54:51 yeah TacticalJoke. My Eclipse has commited harakiri Oct 29 20:54:51 which makes the counter idea not very much gr8 Oct 29 20:55:02 yeah so what I’m saying is.. Oct 29 20:55:36 by all your startActivity() calls, set a static isChangingActivity = true; Oct 29 20:55:47 then check that in your onPause or onStop() Oct 29 20:55:51 if false, start your service Oct 29 20:56:16 when does it become false ? Oct 29 20:56:18 TacticalJoke, restarting Eclipse fixed it… Oct 29 20:56:32 oh reset it in onStart() or onCreate() to false Oct 29 20:56:38 Can Android tablets download any app (whether it has a "tablet screenshot" or not) by default from Google Play? Oct 29 20:56:42 or onResume() Oct 29 20:56:52 Or is there some push towards "tablet apps"? Oct 29 20:56:55 yes it can Oct 29 20:56:57 K. Oct 29 20:57:00 My guess is onResume. Oct 29 20:57:02 God, I need a tablet. lol Oct 29 20:57:14 TacticalJoke i got a lenovo ideatab 1000 Oct 29 20:57:18 My current app isn't designed for tablets, though. Oct 29 20:57:18 for 79$s Oct 29 20:57:19 wherever makes sense with the app but onResume is probably the better spot for it Oct 29 20:57:21 Nice. Oct 29 20:57:31 the Tab 2’s are pretty cheap now Oct 29 20:57:36 TacticalJoke, although my unborn kid is faster.. but still Oct 29 20:57:58 tricknology, so whenever i will use startactivity(intent)... before that i set it for true ? Oct 29 20:58:01 If it's as slow as the emulator, you know you have problems. :) Oct 29 20:58:12 yeah, or startActivityForResult() Oct 29 20:58:21 set it false in onActivityResule() Oct 29 20:58:49 isn’t that what the singleton is for though? Oct 29 20:58:52 tricknology, there are probably 25 activities Oct 29 20:58:56 tricknology, not really Oct 29 20:59:07 yeah it’s not the best solution Oct 29 20:59:17 btu you were going to put a counter in them all anyway, right? Oct 29 20:59:32 yes Oct 29 20:59:56 i dont know why there isnt a clear cut answer to this easy problem in android Oct 29 21:00:12 TacticalJoke, tricknology.. How about detecting which key is pressed and acting accordingly? Oct 29 21:00:19 It’s that home button thing, they took our powers Oct 29 21:00:35 you can’t detect the home button anymore :( Oct 29 21:00:51 assertThat(TacticalJoke).isEqualTo(TonySoprano9099); Oct 29 21:01:09 you would only be able to detect it through onPause() and onSto() Oct 29 21:01:20 which is called when switching an activity Oct 29 21:01:47 WindowManager.LayoutParams.TYPE_KEYGUARD seems to be missing Oct 29 21:02:21 missing >= 4.0 Oct 29 21:03:31 herro all Oct 29 21:03:37 Napalm hey man! Oct 29 21:03:42 hey mattblang Oct 29 21:03:47 how goes? Oct 29 21:03:52 Gradle question: if I simply add a compile “packagename:version” line to dependencies Oct 29 21:04:12 Where is studio pulling the jar from and how does that work? Oct 29 21:04:14 Napalm pretty good. trying to meet an end of the year deadline on our Android app, haha Oct 29 21:04:17 How about a reusable/shared class for the purpose of switching activities that you call using switchActivity(activity) that automatically sets your flag before switching the activity and triggering the onPause(), which takes a look at why the app is being paused - flag set = changing activities, flag not set = "minimized", and onResume resets flag ? Oct 29 21:04:23 This is gonna be a really dumb question. I'm almost clueless about graphics and supporting different screens. If I want my app to have some kind of splash screen (such as you see in games) that has a title image, I have to worry about providing different resolution images for screens of different densities, right? Oct 29 21:05:07 TacticalJoke: Yes, but you should slice up your splashscreen and implement it as a layout, not a single image Oct 29 21:05:56 zambo: compile gradle command does not take a "packagename:version". It's "groupid:artifactid:version", and they are found in your repositorys set in your gradle scripts.. normally your parent one which will declare jcenter or mavencentral Oct 29 21:05:56 Yeah. I'm gonna do something like a wizard. Like a "here's how you use this app" screen. It'll have two or more sub-screens (using fragments). Oct 29 21:06:59 AndDev426 I think he left… :( Oct 29 21:07:07 I wonder whether to have a central image with a Nine-Patch border. Oct 29 21:07:32 Though that might not be great. It'll still either shrink or potentially pixelate the image on higher-density screens, I guess. Oct 29 21:07:56 You’re gonna need different resources, unfortunately Oct 29 21:07:59 TacticalJoke: Check this out: http://stackoverflow.com/questions/10574363/android-splash-screen-image-sizes-to-fit-all-devices Oct 29 21:08:03 TactivalJoke Oct 29 21:08:04 zambo: for example http://search.maven.org/#search|ga|1|com.squareup.retrofit Oct 29 21:08:07 Napalm: The project I’m looking at doesn’t have the repositories for these libraries, nor are they in the /libs folder. If I change the version number, it is fetching the different version and storing it in ~/.gradle/etc/etc… I’m very confused Oct 29 21:08:21 Thanks. Checking that out! Oct 29 21:09:08 zambo: you also have a local repo, like the local m2 google one from the sdk Oct 29 21:10:06 Any of you have experience with ongoing notifications with buttons and BroadcastReceiver? I'm trying to make something similar to a music player with an ongoing notification with the buttons "prev", "play/pause" and "next". Clicking one of these buttons should call a method (not activity) in my app without opening the app. Oct 29 21:10:17 TacticalJoke: hey dude, for splash. just load a vector image and do a fancy animation on it. either that or provide one higher-res image in drawable-nodpi and load it and have it strech with aspect ratio Oct 29 21:10:44 See, this'll be a tutorial screen. The imagery will be just to make it look nice. Oct 29 21:10:44 AndDev426: this is where services are used Oct 29 21:10:51 I guess I'm trying to avoid text only. lol Oct 29 21:11:07 That sounds like an interesting idea. Didn't know about the -nodpi thing. Oct 29 21:11:10 TacticalJoke: as i said just use drawable-nodpi and provide one res Oct 29 21:11:37 Services? Not ongoing notification with BroadcastReceiver? Oct 29 21:12:01 AndDev426: where is your MediaPlayer Oct 29 21:12:35 AndDev426: if its in an Activity and the user leaves it.. bang it goes. so you want it someplace where it can continue in the background and your notification events can be received Oct 29 21:12:36 Napalm: It is not a media player. It is actually an app that calls a URL based on which button is called. Oct 29 21:13:01 AndDev426: that makes no-sense. please elaborate Oct 29 21:13:20 For the sake of simplicity: each button will call a method that shows a toast. Oct 29 21:14:07 How do the real music player do it? Do they use a service or BroadcastReceiver? Oct 29 21:14:16 i just said Oct 29 21:14:33 want a quick example.. Oct 29 21:14:33 ok Oct 29 21:14:40 Yes, please. Oct 29 21:15:28 AndDev426: you using AndroidStudio? Oct 29 21:15:43 I'm using volley and it can't load images off of amazon with the default https settings. "com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:" Amazon has sslv3 disabled. It seems to work fine some devices but its broken on the Nexus 10 I have. Has anyone worked through this yet? Oct 29 21:15:55 No, I am using Eclipse. Oct 29 21:16:20 Would you say that Android Studio is better than Eclipse? Oct 29 21:16:38 definitely, I just made the move 2 days ago Oct 29 21:16:44 not going back Oct 29 21:17:42 I used AS back when it first came out and it was bad, now its better. still needs more tweaks. but yes. I would use it. I do use it. Oct 29 21:17:58 Perhaps I should have a look at it. What I am a bit worried about is the lack of features since the version is still < 1.0 (I think). Oct 29 21:18:08 ^ Oct 29 21:18:31 lack of features eh? Oct 29 21:18:58 I have not really used it but it may lack features or tweaks, as you say. Oct 29 21:18:59 Are app images on Google Play now bigger? Oct 29 21:19:07 At least on my phone, they look wide now. Oct 29 21:19:07 you plan to build a particle accelerator man? Oct 29 21:19:24 Odaym: Hehe, no :) Oct 29 21:19:28 They made a new required image Oct 29 21:19:36 make the move Oct 29 21:19:39 defeat gradle Oct 29 21:19:40 feel better Oct 29 21:19:52 tricknology: Is this documented somewhere? Can't seem to find it. Oct 29 21:21:33 AS doesn't take 1+ second to open intellisense, for example Oct 29 21:21:51 AS scrolls 4K+ lines of code smoothly as if they are 100 Oct 29 21:22:02 Napalm: Are you creating the example from scratch? Oct 29 21:22:12 Okay, it seems to be here: https://support.google.com/googleplay/android-developer/answer/1078870?hl=en Oct 29 21:22:13 AndDev426: not exactly Oct 29 21:22:29 Odaym: Nice. I am downloading AS right now. Oct 29 21:23:05 I find Android Studio way slower than Eclipse. Oct 29 21:23:09 TacticalJoke, Feature Graphic Oct 29 21:23:16 Uses at least two times the amount of RAM. Oct 29 21:23:28 much slower to load Oct 29 21:23:29 tricknology: Ya. Thanks. Oct 29 21:23:44 Android Studio is one of the slowest apps I've ever used. Though mainly because of Gradle, I presume. Oct 29 21:23:52 nah here it's tons faster Oct 29 21:23:54 I'm not talking about project downloads. Oct 29 21:23:57 Just in general. Oct 29 21:23:59 depends on the setup maybe Oct 29 21:24:07 This is another dimension, I sewar Oct 29 21:24:14 tricknology: I know, right. Oct 29 21:24:21 It's like the slowest app I've ever used in my life. lol Oct 29 21:24:25 And people say it's fast. Wut. Oct 29 21:24:36 yea, all other people must be wrong Oct 29 21:24:40 flawless Oct 29 21:24:46 Nope, not saying that. Oct 29 21:24:59 It's more like "Why is there such a difference?". Oct 29 21:25:40 I have 4GB of RAM. Not sure whether that's relevant. Oct 29 21:25:45 Am I unlucky (/have a bad setup) or is the emulator a joke when it comes to speed and performance? Oct 29 21:25:48 I bet it'd be fast with 16. Oct 29 21:25:54 The emulator is terrible. Oct 29 21:25:58 16 here still feel like its slow Oct 29 21:26:02 Though the HAXM thing helps a lot. Oct 29 21:26:05 tricknology: Damn. Oct 29 21:26:08 do you have Haxm TacticalJoke? Oct 29 21:26:12 heh Oct 29 21:26:13 Yeah, that helps so much. Oct 29 21:26:14 :D Oct 29 21:26:44 anyone in here well versed in the NFC world? Oct 29 21:26:47 why not genymotion? Oct 29 21:28:40 genymotion better on AMD cpus? I have an AMD octocore at home, never run the emulator.. ever Oct 29 21:29:28 anyone know how to get the progressbar so thin its flush with the header like http://www.google.com/design/spec/components/progress-activity.html#progress-activity-types-of-indicators Oct 29 21:29:47 well http://material-design.storage.googleapis.com/videos/components-progressandactivitiy-progressandactivity-7-youtube.mobile-buffer_large_xhdpi.webm Oct 29 21:29:59 since there is a lot on that page Oct 29 21:31:25 I don't get why the feature graphic isn't shown on the website. The site seems to show only the high-res icon. Oct 29 21:31:34 (Google Play, I mean.) Oct 29 21:38:55 I feel like all the new "material" Google apps look the same. Oct 29 21:39:04 So much for "brand colour" and stuff. Oct 29 21:39:17 I kinda miss brand icons. Oct 29 21:39:53 I'm updating one of my apps but I only have the emulator for testing 5.0. Is there a change to the sharing Oct 29 21:40:05 sharing intent* Oct 29 21:40:33 Instead of getting the sharing menu in the emulator it goes straight to the messaging app Oct 29 21:40:39 I really don't like it Oct 29 21:40:55 Is there any way to release an app update only for phones in the Play store? Oct 29 21:40:56 I really don't like it when design tries to imagine that it's living in some imaginary world of beauty Oct 29 21:40:58 but it could be because there are no other apps installed that works with it Oct 29 21:41:02 it comes off as fake and pretentious Oct 29 21:41:23 mattblang what do you mwan? Oct 29 21:42:24 Apple (before) embraced the fact that its software is living on hard and cold metal, you're going to be using it through the screen of a physical machine, they never tried to design it as something that's floating off the ground or morphing into a rainbow Oct 29 21:42:48 tricknology I want to update my app, but only for phones. might try and meet a deadline only on the phones first Oct 29 21:43:58 Yeah, I find it kinda pretentious. Oct 29 21:44:12 it's too THERE Oct 29 21:44:14 The whole Material Design spec is like a liberal-arts college course. lol Oct 29 21:44:30 I think you have to smoke weed to really "get" it. Oct 29 21:44:32 like "I'm so smooth and beautiful, oh look at me, I sway as you touch me" Oct 29 21:44:44 I still mainly prefer Holo. Oct 29 21:44:53 man, Apple is a school Oct 29 21:44:58 Holo looked tough and solid. Oct 29 21:45:00 people should study Apple as a major Oct 29 21:45:01 haha Oct 29 21:45:16 TacticalJoke, Odaym it would be nice to be able to share design across all platforms though. UI and UX design takes a lot of time Oct 29 21:45:35 yea as users we are judging it while I cant find a damn icon for what I need in an app Oct 29 21:45:48 of course I am ignorant of what it really takes, but I am giving final judgement if asked "so what do you thin" Oct 29 21:45:50 mattblang: Couldn't we do that with Holo? Oct 29 21:45:56 Or do you mean Android<-->iOS. Oct 29 21:46:14 I am not great at graphics. Oct 29 21:46:16 God, I wish I was. Oct 29 21:46:21 Then again, I'm not terrible, either. Oct 29 21:46:33 yea same, I can make things look less awful Oct 29 21:46:33 I'm wise enough to know not to try to make complex icons. Oct 29 21:46:37 Right. lol Oct 29 21:46:59 I try my hardest to make the graphics as simple as possible so that users don't notice how bad I am at graphics. Oct 29 21:47:06 problem with an icon is you end up changing it soo much Oct 29 21:47:16 I have had maybe 15 revisions now Oct 29 21:47:28 StingRay_: But you're good at it. You probably have standards. lol Oct 29 21:47:35 thats worse Oct 29 21:47:43 hi Oct 29 21:47:48 means I eventually think….god this icon sux Oct 29 21:47:53 My app icon right now is a die (as in "dice" die). It's really simple. And yet it doesn't look very good. Oct 29 21:48:07 I need to make it again before releasing. Oct 29 21:48:21 TacticalJoke no, because Holo was only on Android. now they are releasing icons and UX patterns with Material Design for Android, iOS, and the Web (with Polymer) Oct 29 21:48:24 Is it best to start with the high-res and automatically scale that down? Oct 29 21:48:26 Or start with medium? Oct 29 21:48:40 (If I'm doing auto-scaling.) Oct 29 21:48:45 what should I set in styles.xml to set drawable for all object like buttons, spinners.... Oct 29 21:48:55 mattblang: But should different platforms look exactly the same? I'm not sure. Oct 29 21:49:21 TacticalJoke why not? Oct 29 21:49:23 I don't like this idea of putting Material Design on the web. It looks so bad, IMO. Oct 29 21:49:34 mattblang: It's boring if everything looks the same. Oct 29 21:49:39 It's like those towns in which every house is identical. Oct 29 21:49:45 i bet once Material is out in the wild, people will start having seizures from the animations Oct 29 21:49:45 TacticalJoke and a lot less $ to develop too haha Oct 29 21:49:57 hi Oct 29 21:50:05 that website for the material design specs looks awful honestly, looks childish Oct 29 21:50:11 Odaym: I agree. Oct 29 21:50:27 And I hate that top-bar thing. Oct 29 21:50:31 yea! Oct 29 21:50:41 I have some drawables, in different formats, and it seems like my tablet (asus transformer) for some reason uses the low-dpi ones instead of better ones that are available Oct 29 21:50:41 just so in your face Oct 29 21:50:43 "Gee, thanks for effectively reducing my screen's size." Oct 29 21:50:56 The worst is the Nexus site(s). Oct 29 21:50:58 what could be the reason for it? I use them as bitmaps with canvas Oct 29 21:51:44 People on laptops (generally) have small-enough screens as is. Those sites just make the problem worse. Oct 29 21:57:35 Anyone migrate from eclipse to android studio and have productFlavors working correctly? Oct 29 22:03:30 cryptojuice you should migrate your project structure if you haven't Oct 29 22:03:55 but i can probably help you either way Oct 29 22:04:00 what is your issue Oct 29 22:04:30 ooh Oct 29 22:04:34 i have an issue Oct 29 22:05:01 https://github.com/agamemnus/googleplayservices/blob/dcc3d355e30f1bf4bdd32ad319e3b537bfb2c988/src/android/GooglePlayServices.java Oct 29 22:05:03 works fine Oct 29 22:05:35 but Oct 29 22:05:58 https://github.com/agamemnus/googleplayservices/blob/master/src/android/GooglePlayServices.java Oct 29 22:05:58 that page is not working for me right now Oct 29 22:06:00 doesn't Oct 29 22:06:00 nm Oct 29 22:06:08 show me compare view? Oct 29 22:06:09 yeah github was slow for a moment Oct 29 22:06:11 i dont have time for this nonsense Oct 29 22:06:13 :O Oct 29 22:06:41 not sure how Oct 29 22:06:48 main point Oct 29 22:06:53 just get compare view Oct 29 22:06:59 im working on something but i'll look at a compare Oct 29 22:07:07 mGoogleApiClient.connect (); doesn't work Oct 29 22:07:14 i think maybe this is wrong Oct 29 22:07:29 basically I moved the initialization code out of the "initialize" function and into a separate one Oct 29 22:07:45 (but I thought "this" was referring to the current class the function is in?) Oct 29 22:07:52 Something just doesn't work. I don't know what Oct 29 22:08:10 would appreciate it, I was trying to figure it out for hours last night. Oct 29 22:08:19 But I need to sleep now, I'm about to fall apart Oct 29 22:08:23 nap :-) Oct 29 22:09:07 JacobTab_: my package files are directly in the src folder. I would like to add another productFlavor called "staging". should I create another folder in src called staging? or is there a way I can define a custom location. Oct 29 22:09:32 cryptojuice do you have customized source locations in your build.gradle? Oct 29 22:09:38 ie, migrated from eclipse and kept eclipse project structure Oct 29 22:09:45 JacobTab_: yes Oct 29 22:09:53 if so, you should really take the time to migrate over to the standard gradle project structure Oct 29 22:10:12 hello Oct 29 22:10:12 then your flavors will just make sense Oct 29 22:10:20 you'll have src/main, src/flavor Oct 29 22:10:30 and you don't need to configure anything other than the flavor name Oct 29 22:10:51 ListView shows only the first Element, i set layout_height to wrap_content, so why does it keep doing that Oct 29 22:11:04 JacobTab_: that seems like the cleanest solution. Was just trying to figure out a way without mudding up our git history Oct 29 22:11:16 you should be able to move it without any issue Oct 29 22:11:21 git's smart like that Oct 29 22:11:29 ufk do not set wrap_content to the height of a listView Oct 29 22:11:45 so what to set it to ? Oct 29 22:11:46 fixed size or match_parent Oct 29 22:11:58 it is not something of variable size Oct 29 22:12:30 or of course you can do like relativelayout Oct 29 22:12:32 JacobTab_: is there a way to go about this without creating a new project with AS then copying files over? Oct 29 22:12:41 setting its size relative to others Oct 29 22:12:52 cryptojuice yes it should be straightforward Oct 29 22:13:16 just do it on a branch Oct 29 22:13:27 hey, what can ba a reason why android selects low-dpi drawables instead of high-dpi? I have terribly pixelated BitmapDrawables on canvas on tablets, even though I provided hi-res files. Oct 29 22:13:39 just close your IDE, move the files to the correct place, edit the build.gradle to remove the custom sourcesets Oct 29 22:13:44 then reopen teh ide and voila Oct 29 22:14:03 JacobTab_: perfect, I will give that a try. Thanks for your help. Oct 29 22:15:38 could be that the ListView shows only one element is because it's inside a TableRow ? Oct 29 22:19:09 nah man Oct 29 22:19:17 it's the height of it that's restricting how much it shows Oct 29 22:20:17 Threads. Oct 29 22:20:21 no Oct 29 22:20:25 * Odaym walks away Oct 29 22:20:30 haha Oct 29 22:22:39 I am doing some background tasks with 3rd party packages who use Executors (BOLTS ANDROID), the Executor is some kind of background thread pool, now when all is said and done, and I get my results, I am doing a getActivity().runOnUiThread( () - > setListAdapterWithResults(results)) but the list view doesnt show up. i have confirmed that setListAdapterWithResults(results) is running on the mainest of main threads. Oct 29 22:25:58 setListAdapterWithResults isn't an android method Oct 29 22:26:31 also executors are part of java, not really bolts, maybe bolts offers custom executors Oct 29 22:27:44 man too many gmail accounts. one for email, one for junk mail, one for chrome settings sync, one for android app development. Oct 29 22:27:53 gmail accounts are getting out of hand. Oct 29 22:28:19 Yeah, I have a few now. Oct 29 22:28:34 Remembering accounts and passwords in general is a pain. Oct 29 22:28:38 I have personal email one, and a formal email one for resumes, etc. Oct 29 22:28:48 O.o Oct 29 22:29:01 so that's one more. I have started deleting some of them now. for example I used to have a blogging one. Oct 29 22:29:23 * B0BBY assumes g00s has only one gmail account Oct 29 22:29:33 2; personal + dev Oct 29 22:29:46 nice, you kept it to a minimum. Oct 29 22:29:52 i use fastmail now Oct 29 22:30:19 when I started experimenting with blogging, I didn't want to associate it with my main email account. etc etc. ended up creating 15 or so overall, then closed them down to I think 6-7 now for regular use. Oct 29 22:30:21 I have e-mail, Google Play downloads, and Android-app dev. Oct 29 22:30:32 what's fastmail? Oct 29 22:30:46 just another email provider Oct 29 22:30:59 oh yeah, I create a separate one for my android phone, because I didn't want my email hooked to it. my bank password unlock email goes to my main email. Oct 29 22:31:00 not free, but stuff isn't getting scanned Oct 29 22:31:18 g00s: oh, I thought maybe it's a conslidator Oct 29 22:31:46 I tried fastmail back when "fuck gmail" was trending Oct 29 22:31:56 couldn't put up with it, web interface was really lacking Oct 29 22:32:02 and I had paid Oct 29 22:32:02 I'm sorry I forgot the one I had created to experiment with facebook. I haven't closed it yet but it's not used regularly. Oct 29 22:32:50 I never wanted extra stuff associated with my main email. which lead to creating tons of extra accounts. I'm still picking and closing some of them. Oct 29 22:33:30 other than promotional, slaes brochures, I hardly ever get an actual email from friends, etc. Oct 29 22:35:37 wow, people still use that terrible Gmail web inferface? Oct 29 22:35:43 can RelativeLayout be scrolled without wrapping it with ScrollView? Oct 29 22:35:45 heh, if I release this chrome extension and it require an account, I hope I'll re-use one. Oct 29 22:35:57 i wonder if gmail will go the same way as Google Reader Oct 29 22:36:01 Mavrik: gmail interface and the contained within chat interface. Oct 29 22:36:09 now that they have that Inbox thing Oct 29 22:36:25 I actually liked google reader. I don't know why they closed it. all my rss feeds were in teh same place. Oct 29 22:36:36 I guess rss feeds themselves have gone out with twitter, etc. Oct 29 22:36:47 the official reason was there wasn't anyone there to support it technically Oct 29 22:36:48 oh I turned off the promotional inbox crap. Oct 29 22:37:04 "keep the lights on" Oct 29 22:37:19 all the google products are free. so it's not like they 're not paying people to support other crap. Oct 29 22:37:26 unless they meant no one wanted the project. Oct 29 22:37:28 Gmail is really just a teaching ground for dark UI patterns Oct 29 22:37:35 hehe Oct 29 22:37:38 It appears that bluetooth SCO has been broken in the latest Lollipop SDK and I believe I have a fix for it, does anyone have any advice on how to get visibility on this issue? I've reported it here: https://code.google.com/p/android/issues/detail?id=78404, is there anything else I can do besides wait and hope someone reads it? Oct 29 22:37:39 It just doesn't behave like any other known UI Oct 29 22:38:02 any other known web UI? Oct 29 22:38:04 jclaudino, pretty much get as much people as possible to star it Oct 29 22:38:11 jclaudino, or get a Google engineer drunk in Mountain View Oct 29 22:38:29 lol, thanks for the advice Oct 29 22:38:46 are there any other forums or google groups that the engineers frequent? Oct 29 22:39:04 jclaudino i've been waiting for google to fix BLE since 4.3.0 .. good luck :) Oct 29 22:39:06 Not that I'd know of, I've seen some of them answer threads on the Google Groups. Oct 29 22:40:30 Mavrik, if they add more ui and other stuff, i'm afraid a tab will take even more in RAM, it's already far above 300MB Oct 29 22:40:31 yea that's what I'm worried will happen to this issue :( Oct 29 22:40:33 wtf Oct 29 22:41:21 adq, I'm not saying "add UI" Oct 29 22:41:32 ok, take "the other stuff" if so Oct 29 22:42:08 whenever i try to use RelativeLayout with wrap_content, shit goes crazy Oct 29 22:42:28 JacobTab_: bolts offers its own executors yes. and setListAdapterWithResults is a function name i made up to describe what it is doing. Oct 29 22:42:31 and instead it seems to go all match_parent Oct 29 22:42:45 explodes i would assume your problem is in that method Oct 29 22:42:56 I understand Google will fix bluetooth right after it fixes the 65k dex method limit Oct 29 22:44:05 the 64k method issue is very problematic especially with the needs of adding few libs including playservices & co, check that Ologn : https://gist.github.com/dmarcato/d7c91b94214acd936e42 Oct 29 22:44:07 it might help you Oct 29 22:44:15 and it's before any proguard pass Oct 29 22:45:13 adq: cool, I bookmarked that Oct 29 22:46:39 bluetooth smootooth. what google needs to fix is chrome freezing everytime it loads pages with flash blah blah. instead of page being scrollable with missing content, it just freezes. Oct 29 22:46:55 -> flash Oct 29 22:46:59 it's adobe Oct 29 22:47:01 that or they need to push to make it illegal for idiots web master that use flash. Oct 29 22:47:04 JacobTab_: When the executor is changed to the bolts UI_EXECUTOR, it works fine, but it does a lot of work on the UI thread Oct 29 22:47:25 adq: yeah, but I suppose they could load it in a separate thread. I assume they do, but the main UI shouldn't freeze then. Oct 29 22:47:36 every tab has even its own process dude Oct 29 22:47:57 it's your OS who is not really scheduling well if so ;) Oct 29 22:48:03 (preemptive helps) Oct 29 22:48:20 understood. then whatever's making the UI freeze that really should be addressed, despite flash being the crappy software that it is.... Oct 29 22:48:41 oh geez don't get me started on flash on linux. it's even worse. Oct 29 22:48:45 ^^ Oct 29 22:49:36 someone should just make it illegal for adobe to be in teh software business. Oct 29 22:49:40 all their products suck bigtime. Oct 29 22:50:03 they are trying with html5, but it looks like it's taking time Oct 29 22:50:12 *years* Oct 29 22:50:18 maybe *decade(s)* Oct 29 22:50:30 I'm just glad google builds flash and acrobat into the chrome package so I don't have to download the stupid adobe downloader first. Oct 29 22:50:34 i dont think flash is even on android anymore right ? Oct 29 22:51:31 I suspect the html5 move might be more due to web master who keep releasing flash content. Oct 29 22:51:52 http://helpx.adobe.com/flash-player/kb/installing-flash-player-android-devices.html lol adobesque Oct 29 22:51:55 lowering your security Oct 29 22:52:28 on the matter of security, I was java and android default to 128bit AES encryption only unless you enable extra stuff. Oct 29 22:52:40 that is my latest project, so I'll be doing more research on teh subject. :) Oct 29 22:57:54 funny how Play doesn't follow the guidelines for cards either Oct 29 22:58:02 ANdroid Play Store App Oct 29 22:58:34 My apps should just be a plain listview Oct 29 22:58:42 no cards Oct 29 22:59:06 WHen an activity crashes due to some NPE and the activity has a parent activity does the OS try to resume the parent activity for some reason? (My gut tells me no but my app keeps crashing twice and im trying to track it down) Oct 29 22:59:10 what's cards. I'm missing UI lingo? Oct 29 22:59:19 its new in L Oct 29 22:59:30 ooo they named it i forgot Oct 29 23:00:39 cards isn't new in L Oct 29 23:00:47 they're been around awhile Oct 29 23:01:29 built into the OS? i thought they introduced them at IO Oct 29 23:02:55 meh AS layout preview blows up with Failed to parse file .../android-sdk-macosx/platforms/android-21/data/res/drawable/progress_indeterminate_horizontal_material.xml Oct 29 23:03:16 by the time google puts out a working IDE ... Oct 29 23:03:28 B0BBY: http://www.google.com/design/spec/components/cards.html and https://developer.android.com/training/material/lists-cards.html Oct 29 23:03:35 shadynastys, it's a UI pattern Oct 29 23:03:45 doesn't have to be built into the OS to be widely used since 4.2 Oct 29 23:03:51 it's just a 9patch drawable afterall :P Oct 29 23:05:13 eh, the UI stuff never sits still. they keep coming out with newer and newer stuff. newer stuff for you to learn. Oct 29 23:05:15 i know that its a ui pattern but not in the way it is now with L supporting it native and not really used Oct 29 23:05:33 as lingo all the time in android Oct 29 23:05:35 not like in teh good old days of vb6. you learned a few UI items, you learned them all. you milked it for 10 years. Oct 29 23:06:48 lol the usage says don't use card in a list. Oct 29 23:06:55 and the cards look better than the tiles. Oct 29 23:07:40 http://www.androidpolice.com/2014/10/29/google-six-line-solution-developers-allow-search-queries-interact-apps/ Oct 29 23:07:42 what an idiotic post Oct 29 23:08:04 "the entirety of the code" Oct 29 23:08:12 yeah, nevermind the fact that you hjave to implement the searchable activity Oct 29 23:09:19 don't worry there's not shortage of idiotic stuff. Oct 29 23:09:29 I present to you the latest buzz words, "the internet of thigns" Oct 29 23:09:31 *things Oct 29 23:10:56 There are some cool "Things" Oct 29 23:11:27 it's more the idea that people keep re-packing existing stuff for marketing purposes. Oct 29 23:11:38 like RESTful. since when has it been anything but that? Oct 29 23:12:14 the internet of things just says there will be things attached to the internet. you don't say! there's always been "things" attached to them interwebs Oct 29 23:12:19 * g00s doesn't understand how Play recommends Iron Maiden and Kim Kardashian Oct 29 23:12:33 it's a trick question. Oct 29 23:12:37 pick iron maiden Oct 29 23:12:51 "the internet of things" makes it sound like there is a special internet just for my things. Oct 29 23:12:59 i like iron maiden, but how it came up with kardashian ... Oct 29 23:13:04 internet of thangs Oct 29 23:13:22 TacticalJoke,Hey Oct 29 23:13:25 g00s: I think the latest craze if pushed to you regardless of your choices. Oct 29 23:13:33 *is Oct 29 23:13:55 g00s: It's how they find new addicts. Oct 29 23:16:41 Hi all, I have a question regarding TextureViews. I have two Fragments in a ViewPager and a TextureView in each Fragment. One Fragment previews the camera and the Fragment plays back video. For some reason, before I set the content stream on the video Surface, the video TextureView flickers with the camera preview! Why does this happen? Oct 29 23:19:50 this ActionMenuView is buggy as hell, or at least terribly documented. i put it in a RelativeLayout and it refuses to work, i'm sure it needs some special layoutparams Oct 29 23:33:28 jacobtabak are you there now? Oct 29 23:33:34 jacobtab_ Oct 29 23:34:09 i think I am conscious Oct 29 23:40:10 at least samsung has good docs for GridLayout http://developer.samsung.com/android/technical-docs/GridLayout-in-Android Oct 29 23:40:22 perlsyntax: Hi. Oct 29 23:40:24 i mean really, GridLayout javadoc just begs for diagrams Oct 29 23:42:17 Ooh, View has an inflate() static method. Kinda handy. Especially to avoid those warnings when specifying 'null' for the root when doing DialogFragment stuff. Oct 29 23:49:02 Do you guys think that using "LayoutInflater.from(getActivity())" is fine (instead of "getActivity().getLayoutInflater()") inside a DialogFragment? Oct 29 23:49:14 They both work, but it's hard to trace through the Android source to see whether they're the same. Oct 29 23:51:00 they're basically the same Oct 29 23:51:22 it really doesn't matter where you get it from, just specify an activity context and not an application/service context, and you're fine Oct 29 23:51:34 it only matters if you do some custom inflation Oct 29 23:52:09 In this case, I'm just gonna say "inflater.inflate(R.layout.whatever_dialog, null);". Oct 29 23:52:46 I guess that doesn't qualify as custom inflation. (Just checking, because I'm not sure what that means.) Oct 29 23:54:29 custom inflation means you're doing your own xml parsing Oct 29 23:54:45 Okay. Oct 29 23:59:29 So many people call DialogFragment subclasses something like "FooDialogFragment". They should call it "FooDialog". :) Oct 30 00:02:30 FooDialogFragment is probably better :) There is a Dialog class Oct 30 00:03:05 FooDialog imples it extends android.app.Dialog Oct 30 00:03:09 Yeah, but all the cool kids are using DialogFragments (not Dialogs) these days, so there's no misunderstanding (if you're a cool kid). Oct 30 00:03:17 s/using/subclassing/ Oct 30 00:03:30 there's consistency Oct 30 00:04:33 I'd agree with that reasoning in general, but in this case I go the other way. "DialogFragment" is so much to read. :) Oct 30 00:04:53 One of my dialog fragments is called DeleteListDialog. DeleteListDialogFragment is just way too much. Oct 30 00:06:21 Hmm, I'm trying to find where Window.getLayoutInflater is defined (it's an abstract method in the Window class). Any ideas? Oct 30 00:06:33 The documentation doesn't show "Known subclasses" for Window. Oct 30 00:08:03 Oh, there's "android.policy.PhoneWindow". Oct 30 00:09:07 Oh, that's cool. I have verified that, from a DialogFragment, "getActivity().getLayoutInflater().inflate(...)" must be the same as "View.inflate(...)". Gotta love open-source APIs. :D Oct 30 00:09:20 View.inflate(getActivity(), ...) ^ Oct 30 00:09:58 I can hereby avoid that obnoxious warning about passing null for the 'root' param, and also make my code tidier in general. Oct 30 00:11:12 if i have a card, and want a horizontal progress indicator to live in the first 4dp at top, do i need to make my own drawables for that ? Oct 30 00:11:27 I'm using the android printhelper class with scale_mode_fit and orientation_portrait. Printing to pdf seems to work great, but printing to an actual printer gets cropped off-page Oct 30 00:11:42 How can I make it print to physical printers the way it does to pdf? Oct 30 00:18:29 ok so I am getting 2 crashes every time that my app crashes. https://gist.github.com/px-amaac/be669ee4c587b6b91ee5 I had to create a button that would crash my app in order to reproduce this. I know where and why the app is crashing in both places. My question is why after the first crash does the app seem to make an attempt at resuming the activity on the stack? any ideas or direction is Oct 30 00:18:29 appreciated Oct 30 00:19:13 question for you all, in earlier versions of Android Studio, gradle adb commands were more verbose, i.e. if installed failed due to certificate issues it would display a message. Now it does not display anything Oct 30 00:27:55 shadynastys, do you use a service? sometimes service is relaunched Oct 30 00:32:29 I do have 1 service that runs but it is from Plot Projects http://www.plotprojects.com/?utm_expid=66248451-5.6Sy7iNWgRDaR8t54qRBOIw.0&utm_referrer=https%3A%2F%2Fwww.google.com%2F And even if the service is launched it does not explain why activity on the stack gets resumed. Oct 30 00:38:55 If I pass a Serializable to another Activity by Intent.putExtra. And then on the second Activity complete, I pass the Serializable back using Intent.putExtra. Will the Serializable be another object when I get it back using Intent.getSerializableExtra() ? Oct 30 00:40:27 Android passes object using serialisation across activity, therefore it is always pass by value. Am I correct? Oct 30 00:42:54 carbon_monoxide: I'm not sure, but I think I've had a situation in the past where passing a Parcelable led to the exact same instance being read on the other side with getParcelableExtra. But maybe Serializable is different? Why do you ask, anyway? Oct 30 00:44:24 no carbon_monoxide Oct 30 00:44:28 use startactivityforresult Oct 30 00:44:44 and setResult(result code, intent) Oct 30 00:48:04 Thanks for your help! Because I pass some beans to another Activity for update. I need to return the beans back to the main Activity afterwards. Oct 30 00:48:47 I'm using startActivityForResult and onActivityResult pair Oct 30 00:51:31 If so, I wonder. I have the bean as private member of the main Activity. When other Activity passed it back thru Intent.putExtra, I get the bean back by Intent.getSerializableExtra(). Would the bean in my member being updated, if it is pass by reference. Oct 30 00:52:48 Actually, I know that I shouldn't rely on Intent Bundle to handle it. Oct 30 00:53:17 I should use persistence layer like SQLite, and then renew things. Oct 30 00:53:41 But I'm curious Oct 30 00:55:54 question for you all, in earlier versions of Android Studio, gradle adb commands were more verbose, i.e. if installed failed due to certificate issues it would display a message. Now it does not display anything Oct 30 00:56:39 also, Android Studio/gradle is no longer signing my release apk even through I have buildTypes:release specified Oct 30 00:56:47 Viperz28: That is not a question. More of a statement. Oct 30 00:57:15 with the latest Canary release, did something change? Oct 30 00:57:35 shadynastys: you should let me finish :-) Oct 30 00:58:28 You already made the statement earlier without the question so i was going off that. Oct 30 00:58:41 yeah, I got disconnected Oct 30 00:58:46 ahh ok Oct 30 01:00:49 Viperz28 no, your configuration is probably incorrect Oct 30 01:01:12 do you want to post your build.gradle Oct 30 01:01:36 https://www.irccloud.com/pastebin/m84EVIHT Oct 30 01:02:01 ok first i'm just going to talk out loud Oct 30 01:02:07 but you should not need to uncomment anything to see maps Oct 30 01:02:28 you should register both your debug and release keys in the google api console and put the debug keystore in source control Oct 30 01:03:35 so you'er saying when you run 'gradle assembleRelease' it doesn't sign your apk? Oct 30 01:04:02 correct Oct 30 01:04:26 and how do you know that it's not signed Oct 30 01:04:29 https://www.irccloud.com/pastebin/8HpD2FoS Oct 30 01:05:05 sounds lame but maps does not work Oct 30 01:05:23 :OpenPilotAndroidGCS:validateReleaseSigning Oct 30 01:05:34 have you changed your app id? Oct 30 01:05:42 no nothing Oct 30 01:06:29 have you tried putting in a bad signign key Oct 30 01:06:31 and seeing if it errors Oct 30 01:06:52 keep seeing this D/REQUEST (16202): Retrying: com.google.maps.api.android.lib6.b.j@42d4d370 Oct 30 01:07:16 oh shoot Oct 30 01:08:08 bad key! Oct 30 01:08:19 cool thanks for walking me through that Oct 30 01:08:39 as far as the error messages that you used to be displayed Oct 30 01:08:52 so you verified that it is indeed being signed by putting in a bad key? Oct 30 01:08:55 but that doesnt resolve your issue? Oct 30 01:09:16 I am sure that will take car of that Oct 30 01:09:43 I wish we could add notes to the api console, so we can specify debug vs release keys Oct 30 01:11:06 I verified it worked this morning and forgot I switched branches :-) Oct 30 01:11:13 yes viper that's an issue Oct 30 01:11:25 working now :-) Oct 30 01:11:26 do you know what i mean about putting your debug key in source control ? Oct 30 01:11:50 yes, so the rest of the team can also use it Oct 30 01:11:59 ya you know how? Oct 30 01:12:14 yes get SHA1 from debug.keystore Oct 30 01:12:37 create access in API console Oct 30 01:13:03 then uncomment this part Oct 30 01:13:10 https://www.irccloud.com/pastebin/LTKlOafP Oct 30 01:13:37 we have this like this because debugging with maps on is painful Oct 30 01:14:06 @JacobTabak is that what you were talking about? Oct 30 01:14:51 oh, it just makes it slow or something? Oct 30 01:14:58 big time Oct 30 01:15:15 seems like there are much better ways to do that than to comment something out that should go in source control Oct 30 01:15:44 probably, very new to Android dev Oct 30 01:16:26 building a Ground Control Station for UAV's Oct 30 01:17:33 as far as the inconsistent keys messages during install, do you know about that? Oct 30 01:17:46 i'm not sure what you're referring to exaclty Oct 30 01:18:30 pastebin it? Oct 30 01:19:15 during gradle installDebug, in the past, if I had a release version I would get an error message something like inconsistent cert/keys. Now it looks like it succeeded when it failed Oct 30 01:19:51 https://www.irccloud.com/pastebin/BaPsfkcz Oct 30 01:20:05 so that failed? Oct 30 01:20:21 the release signed apk is still installed Oct 30 01:20:55 so instead of complaining about having a prev installation with debug keys, it just overwrites the debug install with the release install? Oct 30 01:21:14 er Oct 30 01:21:17 no I see hwat you'er saying Oct 30 01:21:19 no it doesn't overwrite it Oct 30 01:21:21 i see Oct 30 01:21:23 here just do this Oct 30 01:21:58 in your buildTypes { debug { applicationIdSuffix '.debug' } } Oct 30 01:22:38 you will have to add that new package to the api console for google maps Oct 30 01:22:47 but then you don't have to worry about what you're describing Oct 30 01:23:14 I wonder why it not longer reports the issue Oct 30 01:23:28 yea not sure, i used to see that all the time but switched to this app id suffix Oct 30 01:23:31 so its not an issue anymore Oct 30 01:24:13 that will append to the package during build? That would be awesome, easier to identify the keys in the console Oct 30 01:24:38 it just changes the app id for your debug configuration Oct 30 01:25:04 completely Oct 30 01:25:11 it's like giving a flavor a different app id Oct 30 01:26:06 aggh, I see I have two apps installed now. Oct 30 01:26:19 yes Oct 30 01:26:25 that's a good thing (c) Oct 30 01:26:36 yes it is Oct 30 01:26:52 thanks Oct 30 01:26:59 If I use editText.setSelection(editText.getText().length()) to put the caret at the *end* of the edit text, will that get things wrong with RTL languages? Oct 30 01:28:51 @JacobTabak I can change the icon for Debug app, http://stackoverflow.com/questions/22875948/how-to-provide-different-android-app-icons-for-different-gradle-buildtypes Oct 30 01:28:53 perfect Oct 30 01:29:06 you can do a lot mroe than that! Oct 30 01:29:36 you could add a checkbox to your settings screen to disable google maps only in debug builds! Oct 30 01:31:17 that's a good idea Oct 30 01:32:17 just don't release your dogfood http://www.androidpolice.com/2014/03/12/youtube-5-5-26-update-introduces-ui-tweaks-new-playlist-actions-hints-at-youtube-surveys-apk-download/ Oct 30 01:33:17 lol, nice Oct 30 01:33:27 thats what happens when you sign your debug builds with release keys Oct 30 01:33:30 like you did in your pastebin Oct 30 01:37:06 Agghh, I know what you mean now. I can actually remove that code now Oct 30 01:38:04 it's funny I already have my debug key up in the store Oct 30 01:43:56 If y'all don't know about the static View.inflate(), I would highly recommend it. Just saying. :) Oct 30 02:05:44 TacticalJoke i think we all know about it Oct 30 02:09:55 :D Oct 30 02:10:07 g-zeros Oct 30 02:25:00 Does something like the following (relating to starting secondary activities) seem like a good general pattern? http://pastebin.com/cVUxKR2Z Oct 30 02:25:14 The alternative, of course, is to manually create the Intent in the calling Activity/whatever. Oct 30 02:28:55 Then both my "create Intent" and "read Intent" methods are in the same class. Otherwise, half is in the calling Activity and half in the receiving Activity. Oct 30 02:29:33 that's fine Oct 30 02:29:47 pretty common Oct 30 02:30:07 Okay, thanks. :) Oct 30 02:45:23 What's a good app to learn from? I've been looking at IOSched, and it seems really messy to me. The GitHub app seems quite neat. I'm not sure what else there is. **** ENDING LOGGING AT Thu Oct 30 03:00:00 2014