**** BEGIN LOGGING AT Tue Mar 17 02:59:58 2015 Mar 17 03:12:16 How do I run some code after a CursorAdaptor finishes loading? Mar 17 03:12:47 CursorAdapter * Mar 17 03:20:32 ideasss guys? Mar 17 03:22:08 hello there! Mar 17 03:25:38 I have a question, about colors on selections Mar 17 03:25:56 is it posible to define a global color for all selectors? Mar 17 03:26:04 like listview, recycler view items, etc Mar 17 03:34:42 tksko: yes Mar 17 03:35:07 make a selector drawable and apply it to the control styles in your theme Mar 17 03:35:32 buy i dont know whick style to override on theme Mar 17 03:35:49 is it possible to get the "ripple" effect before api level 21? Mar 17 03:35:54 yes Mar 17 03:35:55 i am using minSdk to 14 Mar 17 03:35:58 oh Mar 17 03:35:59 before Mar 17 03:36:04 not by defaulkt Mar 17 03:36:07 not by default Mar 17 03:36:12 but you could make it.. but i wouldnt bother Mar 17 03:36:48 you get a performance degredation and the animation wouldnt complete Mar 17 03:36:53 feels kinda pointless Mar 17 03:37:03 you can override selectableItemBackground Mar 17 03:37:09 in your theme Mar 17 03:37:26 it applies to ListView and RecyclerView items? Mar 17 03:37:31 @drawable/your_selector Mar 17 03:37:33 yes Mar 17 03:37:40 thats what the platform applies by default Mar 17 03:37:54 RecyclerView does not apply a selector like a ListView Mar 17 03:38:17 you just need to set your item background to android:background="?android:attr/selectableItemBackground" Mar 17 03:38:27 to get the default or your own Mar 17 03:38:35 default will ripple on APIv21+ Mar 17 03:39:20 you can always add a res/drawable-v21 directory to your project to override your own drawable with a ripple one Mar 17 03:39:23 I am using Cards and recylcerView Mar 17 03:39:50 and i want them to look the same on all android apis >= 14 Mar 17 03:39:56 but i am a bit confused Mar 17 03:40:14 they wont Mar 17 03:40:19 do your own cards Mar 17 03:40:26 just a 9-patch image Mar 17 03:40:28 and they will Mar 17 03:40:35 but you probably dont want that Mar 17 03:40:50 you wont be able to use the view Elevation attribute/property Mar 17 03:41:18 cards looks different on v21+ because they use the new dynamic elevation property to give the view a shadow Mar 17 03:42:05 yes i know Mar 17 03:42:19 but they loook great on older versons Mar 17 03:42:27 the googles card library is great Mar 17 03:42:35 but the colors... Mar 17 03:42:52 colors? Mar 17 03:42:54 i am getting all blue, when i click on cards or listview items (naviagation drawer) Mar 17 03:43:14 thats because you probably want to be using a listView Mar 17 03:43:25 I mean a RecyclerView Mar 17 03:43:34 you can turn off the default ListView selector Mar 17 03:43:36 when i set the card to support clicks, i got a blue color Mar 17 03:43:41 that'll solve it Mar 17 03:43:56 I am currently using Recylcler View with cards inside Mar 17 03:44:04 right? Mar 17 03:44:11 your using AppCompat right? Mar 17 03:44:16 yes Mar 17 03:44:21 set your control colors then Mar 17 03:44:57 @color/my_awesome_red Mar 17 03:45:16 @color/accent Mar 17 03:45:22 see https://chris.banes.me/2014/10/17/appcompat-v21/ Mar 17 03:45:45 http://thelettervsixtim.es/ < this game is sooo awesome Mar 17 03:47:58 i still get blue :O Mar 17 03:48:17 read the article Mar 17 03:48:25 i'm so bluuuuueueueueueueue ... Mar 17 03:48:33 colorControlActivated colorControlHighlight Mar 17 03:48:57 i think i know the problem Mar 17 03:49:09 i am using a material drawer library Mar 17 03:49:16 and i have to extend from a custom theme Mar 17 03:50:08 I am using this: https://github.com/mikepenz/MaterialDrawer Mar 17 03:51:27 What are the last finishing touches so to speak you folks put on your apps before you ship them? Mar 17 03:51:55 all activities must be able to rotate indefinitely without crashing or leaking :) Mar 17 03:54:01 sounds good Mar 17 03:54:10 make sure you aren't logging stuff Mar 17 03:55:47 does anyone have any idea why this will return the same values for both instances of the ball object? Mar 17 03:55:47 http://pastebin.com/fvf45F4e Mar 17 03:56:08 desmin88 d.android.com has a bunch of checklists Mar 17 03:56:18 quite extensive Mar 17 03:56:59 where specifically? Mar 17 03:57:12 nvm Mar 17 03:58:37 a bunch of stuff like http://android-developers.blogspot.com/2013/06/google-play-developer-8-step-checkup.html Mar 17 04:05:33 i still cant find any working solution :( Mar 17 04:21:49 well i am terrible at theming Mar 17 04:21:53 i will give up for today Mar 17 04:21:58 thanks for your help Mar 17 04:22:01 dont feel bad, its a terrible system Mar 17 04:46:46 it's only terrible if you need multiple inheritance, otherwise, the system is extremely good Mar 17 04:47:11 contrary to g00s hating on everything android Mar 17 04:48:25 Yeah, “terrible” is a bit of an exaggeration... Mar 17 04:48:38 well it has terrible documentation for starters Mar 17 04:48:50 i mean, not the system in abstract, but the attribute Mar 17 04:51:35 want to grab some themed element from one app to another? next thing you know, you've gone down a rats next covering dozens of xml files Mar 17 04:51:58 actually i take that back - its a piece of crap in abstract too Mar 17 04:56:30 dont forget to use ?prefferedThingItemWtfIsThisAttribute where you can - but only available v21 ! Mar 17 04:57:36 I'm trying to update my app and I'm extending Activity but getActionBar() returns null. What gives? Mar 17 05:04:19 dragorn http://blog.sei.cmu.edu/post.cfm/enhanced-tool-securing-android-apps-075 Mar 17 05:04:59 gwt g00s Mar 17 05:05:01 hey Mar 17 05:05:13 hey Napalm Mar 17 05:05:27 g00s: http://thelettervsixtim.es/ < check it out Mar 17 05:05:30 awesome game Mar 17 05:06:02 g00s: preview before you buy > https://www.youtube.com/watch?v=ch7nM30DEdI Mar 17 05:06:03 :D Mar 17 05:07:14 right, i gtg, speak later Mar 17 05:07:34 Napalm considering the XML theme / styles for the platform, do you think devs / designers are screwing around with that stuff as-is, or do you think its being compiled down from some other representation ? Mar 17 05:07:54 g00s: waaa Mar 17 05:08:09 at least the strings / translations get transformed from some other representation into resources Mar 17 05:08:15 i remember ctate told be about that Mar 17 05:08:18 g00s: what are you talking about? Mar 17 05:08:21 nm Mar 17 05:08:27 no Mar 17 05:08:32 now you have to explain Mar 17 05:08:47 you mean the arsc file? Mar 17 05:08:52 the binary form Mar 17 05:08:56 and the binary xml? Mar 17 05:09:07 th eplatform styles.xml, themes.xml - do you think these are generated from some other tool , or edited manually ? Mar 17 05:11:56 oh i see Mar 17 05:11:59 edited manually Mar 17 05:12:08 i see lots of mistakes and issues Mar 17 05:12:08 :D Mar 17 05:12:43 a good example is the fact some styles perfer to use "android:" prefix and some dont Mar 17 05:12:59 the prefix is not reqired because the styles are in the "android" package Mar 17 05:13:22 right, im off Mar 17 05:13:23 night Mar 17 05:13:25 gnight Mar 17 06:27:27 Hey everyone, running app on non-Lollipop devices crashes with this java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$layout message, what could be the issue. Codebase is fine, Gradle has this compile 'com.android.support:appcompat-v7:+' entry under dependencies, also updated Support Library and Repository. Mar 17 06:33:51 I plugged in my phone for testing and adb devices shows nothing Mar 17 06:34:00 i enabled dev mode on the phone but it's also not working Mar 17 06:34:06 i'm also not getting a notification for usb debugging Mar 17 06:39:17 razzledazzle Samsung device ? Mar 17 06:40:08 nah, tested on Moto G 1st Gen and an Android One phone, app works on Nexus 5 with Lollipop. Mar 17 06:40:14 ProLoser, 1) your os has a driver that it used instead of one that works with adb 2) Your device is not properly setup with udev permissions, and need to start adb as root (after killing it because it runs a daemon), or fix your permissions issue 3) You do not have USB debugging enabled on your phone 4) I had to put my phone into MTP for USB mode to get mine to show up Mar 17 06:40:22 it's probably one of those Mar 17 06:40:53 ProLoser, if you're on Linux you might need to set udev permissions Mar 17 06:41:23 i'm on mac, and i'm on cm12 Mar 17 06:41:35 ProLoser: possibly a different cable/port Mar 17 06:42:06 where do you guys put your sdk folder? Mar 17 06:42:16 ~/android-sdk Mar 17 06:45:27 g00s, the app doesn't run without multidexenabled Mar 17 06:45:40 ProLoser these guys have cheap cables if you need to buy some http://www.monoprice.com/Category?c_id=102&cp_id=10303&cs_id=1030302 Mar 17 06:45:50 oh you think it's the cable Mar 17 06:46:06 i have a mac, and there is nothing to do Mar 17 06:46:18 if you plug it in, and nothing works, its bad news Mar 17 06:46:41 blah, i moved my sdk and now adb is gone from my cli Mar 17 06:46:44 i forgot where i pointed to it Mar 17 06:46:56 razzledazzle oh, i never used multidex support, hope i never have to Mar 17 06:47:22 seems like a hack Mar 17 06:48:50 razzledazzle where did you get the Android One ? Mar 17 06:49:08 i plug it in and i don't even get some sort of notification Mar 17 06:49:17 is android 5 like different in this regard? Mar 17 06:49:24 no Mar 17 06:50:31 yeah i just tried 3 cables with no results Mar 17 06:50:37 fucking hate hacking on android Mar 17 06:50:42 i also fucking hate this phone Mar 17 06:52:58 g00s, its an Indian make, this phone http://www.gsmarena.com/spice_mi_498_dream_uno-6683.php, from a local dealer Mar 17 06:55:01 i was hoping they would be on https://store.google.com/ Mar 17 06:55:12 i guess i should get one for testing Mar 17 06:55:57 ProLoser: what phone is it, anyway? Mar 17 06:56:27 g00s, really should, a decent phone :) Mar 17 06:58:32 m7 Mar 17 06:58:46 m7? Mar 17 06:58:56 htc one Mar 17 06:59:40 that shouldn't be a problem Mar 17 07:00:20 so, to double-check, you enabled developer mode *and* USB debugging, right? Mar 17 07:02:02 developer options: on Mar 17 07:02:09 android debugging: on Mar 17 07:02:13 debugging notify: on Mar 17 07:02:16 i get no notification Mar 17 07:03:39 USB debugging? Mar 17 07:04:46 i thought that's what android debugging IS on 5 Mar 17 07:05:41 says "Enable the Android Debug Bridge (adb) interface" Mar 17 07:05:48 i don't see an option specifically about usb Mar 17 07:06:04 I don't have 5 on my HTC device... but on my N9, there is an explicit USB option Mar 17 07:06:32 er, cm... I don't have that, either Mar 17 07:07:12 i think it's just been renamed Mar 17 07:20:32 How do people normally go about persisting large sets of data through rotation? Mar 17 07:20:39 I.e data loaded in through the network Mar 17 07:21:16 used cache in db Mar 17 07:21:22 use dataloaders Mar 17 07:21:23 or whatever Mar 17 07:21:47 how long do emulators normally take to boot Mar 17 07:21:59 I've seen dataloaders screencast today on youtube stream Mar 17 07:22:22 desmin88: https://www.youtube.com/watch?v=3d9BeWqlfTk Mar 17 07:22:44 loaders blow Mar 17 07:23:26 so use some dao class with cache Mar 17 07:23:40 these objects are quite large Mar 17 07:23:58 persisting to the disk would take quite a while Mar 17 07:33:36 blah Mar 17 07:33:39 emulator sucks Mar 17 07:33:44 phone debugging doesn't work Mar 17 07:33:46 this whole situation sucks Mar 17 07:36:42 phone debugging works fine for many many developers Mar 17 07:37:37 these IDE internal errors are going to jetbrains ... shouldn't they be going to google O.o Mar 17 07:38:24 avd nexus 5 has been loading for half an hour Mar 17 07:38:42 maybe i should just get a new phone Mar 17 07:39:04 can't decide between moto x, 1+1, nexus 6, nexus 5 Mar 17 07:39:08 I'm still not convinced that you've enabled USB debugging Mar 17 07:39:29 google isn't selling the n5 any more Mar 17 07:39:38 so scratch that one off your list ;) Mar 17 07:40:12 *used Mar 17 07:40:19 probably a huawei nexus coming soon Mar 17 07:40:34 i'd gram a Moto G 2015 Mar 17 07:40:37 *grab Mar 17 07:40:43 oh fuck, Moto E 2015 Mar 17 07:41:18 is that better than moto x? Mar 17 07:41:19 But you were looking at the X, so you probably want something better :D Mar 17 07:41:22 i want fast charging Mar 17 07:41:29 i like the peek feature Mar 17 07:41:58 is nexus 5 > moto x? Mar 17 07:43:57 g00s: https://drive.google.com/open?id=0BwYq0mz47eSscXdMemRWUS1MZWs&authuser=0 Mar 17 07:44:20 sorry: https://drive.google.com/file/d/0BwYq0mz47eSscXdMemRWUS1MZWs/view?usp=sharing Mar 17 07:45:25 Anyone having Android Studio randomly freeze up/slow down and autocomplete stop working? Mar 17 07:45:44 do you have a massive project? Mar 17 07:46:12 ProLoser try turning on adb over network Mar 17 07:46:30 its not that big Mar 17 07:46:54 i get an ip and port Mar 17 07:46:59 but it's not showing up when i adb devices Mar 17 07:47:20 try adb connect Mar 17 07:47:27 ip of the phone Mar 17 07:48:28 worked Mar 17 07:48:37 \o/ Mar 17 07:48:59 man thats nice, maybe its just CM - but on 4.4 you had to have usb working and then say 'adb tcpip' which sucked Mar 17 07:49:08 if your usb wasn't working - nothing you could do Mar 17 07:49:17 why does native oauth ALWAYS use webviews? Mar 17 07:50:02 Leeds do you have that option on your Nexus 9 ? Mar 17 07:50:16 (adb over network) in dev options Mar 17 07:50:19 yay my app runs Mar 17 07:51:10 is it normal to set a property of a like... config object directly? Mar 17 07:51:29 i'm trying to work witht he spotify sdk and want toe dit the cache size and i am used to java always having setters/getters Mar 17 07:51:33 but i can't seem to find one in the api Mar 17 07:52:58 blah Mar 17 07:53:12 https://developer.spotify.com/android-sdk-docs/com/spotify/sdk/android/playback/Config.html Mar 17 07:53:21 i can't figure out how to adjust the cacheSizeLimitInMegabytes Mar 17 07:54:44 or should i like create a child class with that one property overridden that extends their class? Mar 17 07:55:15 and just override that final prop? Mar 17 07:55:21 sorry i'm sort of a noob with java Mar 17 07:56:55 ProLoser learn java Mar 17 07:57:15 i'm trying Mar 17 07:58:50 at least point me in the right direction dude Mar 17 07:58:59 i do javascript, not java Mar 17 08:02:07 hey, how do I do something when a view holder is removed from a recycler view? Mar 17 08:02:19 does viewholder have a lifecycle callback etc? Mar 17 08:02:30 I couldn't find any Mar 17 08:02:31 SheikhAman there is a recycle listener Mar 17 08:02:44 recycle listener, on recycler view? Mar 17 08:03:15 https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecyclerListener.html Mar 17 08:04:45 or maybe you mean https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyItemRemoved(int) Mar 17 08:05:30 I basically have a "typing.." with the dots animating, in a view holder Mar 17 08:05:40 and that viewholder is removed once the typing stops Mar 17 08:05:51 so wanted to stop/clear that animation before that view holder is removed Mar 17 08:06:12 I'll check them both and write back :) Mar 17 08:17:37 Hello. If something is stored to the "/storage/emulated/N/..." folder, does that mean it is stored internally, or externally? Mar 17 08:20:28 so it seems raw files cant have numbers in their file names? Mar 17 08:23:47 I lied, only the first character cannot be numeric Mar 17 08:47:05 Not too good with iconography, what do you folks think of this as a launcher icon? http://gyazo.com/74c6fe9f4fda9151238ef19c98aac00a Mar 17 08:50:53 i can't figure out why AudioManager.STREAM_ALARM is always stuck at 7 Mar 17 08:51:03 even though I'm explicitly changing the alarm volume Mar 17 08:52:45 can i tell gradle to ignore the fact that one of my libraries has a higher minsdklevel then my app. I am handing this in code. Mar 17 08:59:07 sulaiman, External memory, as my best guess Mar 17 09:08:38 Hi there. Mar 17 09:10:48 How can I login/authenticate with web server in order to send some json requests? Web page has custom authentication - not possible to sign in with gmail/fb,twitter,... account Mar 17 09:10:54 and recommendations? Mar 17 09:11:53 recommendations on reading Mar 17 09:18:06 read on how OAuth works Mar 17 09:18:10 the basic working of it Mar 17 09:18:18 and then implement the same in your web server Mar 17 09:18:43 this is by far the best authentication and access control mechanism for stateless connection such as mobile etc, in my opinion Mar 17 09:30:32 Hello. My android app does not show real time users on google analytics. Anyone have any idea why? Posted problem here: http://stackoverflow.com/questions/29055277/google-analytics-android-device-real-time-overview-showing-0 Mar 17 09:45:18 Hello, when my application is on background, sometimes it automatically goes back to the main Activity Mar 17 09:45:37 like if Android was restarting the app Mar 17 09:45:42 :o Mar 17 09:45:49 is it supposed to happen ? Mar 17 09:45:51 do you have services on it Mar 17 09:46:25 I have googlemap service Mar 17 09:46:41 well its not supposed to happen Mar 17 09:46:58 is this simple app with one activity? Mar 17 09:47:06 no lol Mar 17 09:48:15 well dunno Mar 17 09:48:23 can you pastebin the manifest Mar 17 09:48:35 maybe this is some playing with activity flas Mar 17 09:48:38 flags Mar 17 09:49:32 sure Mar 17 09:49:52 is there any way to have a navigation drawer with custom entry & exit animation? i.e., (with fade in and fade out animation of the child view(s) in the drawer) Mar 17 09:50:07 here : http://pastebin.com/UQgimhrL Mar 17 09:51:29 Hey! wakey wakey :) Mar 17 09:51:37 hmm Mar 17 09:51:39 Hello. My android app does not show real time users on google analytics. Anyone have any idea why? Posted problem here: https://productforums.google.com/forum/#!category-topic/analytics/discuss-tracking-and-implementation-issues/e-eB_uSDriE Mar 17 10:08:12 We're looking a a solution where an android host will connect our own usb device. To communicate with this, will we need to install a driver, or can we take care of everything in an app? Mar 17 10:18:28 hey guys - i'm trying to use opencv to load an image like this : Mat image = Highgui.imread("/storage/sdcard0/lena.png"); and it always says it's 0. I have that image in that path - any idea why? Mar 17 10:18:30 really confused Mar 17 10:22:08 is anyone having trouble when inspecting code and android studio uses 100% cpu and freezes? Mar 17 10:48:48 *bump* hello everyone, i am creating a streaming app for video. and users have requested a kids mod where only some streams are a avaliable, i have already build in a switch (boolean to switch it on / off. ) anyone have any sugestions on how to best impliment such feature ? i imagen making a area to use password to unlock/ lock the feature ? Mar 17 10:49:54 i ask this question yestarday and i was sugested to look in to pin activity. i am curently doing so. and i am unable to find much about it online anyone know a good tutorial or doc on this ? Mar 17 10:56:16 does anyone have any idea on this problem: http://stackoverflow.com/questions/28897487/why-does-my-application-randomly-crashes-with-sigsegv-when-it-tries-to-start-an Mar 17 11:00:59 Does somebody know a lib for a 'bar' chart, and if it's possible, a zoomable chart? Mar 17 11:01:34 Where can I find a list of changes between Dalvik and ART regarding JNI? Mar 17 11:15:54 I'm using an SQLite DB browser and between two database versions it displays a column as VARCHAR and as VARCHAR NOT NULL respectively. is there any point in changing this? if so, how would I do this? also, doesn't SQLlite only support TEXT and not VARCHAR? Mar 17 11:16:19 (and by changing i mean writing a way to migrate from the old db to the new one Mar 17 11:36:53 What's the best way to automatically update/notify the user of an event without periodically polling on android? Is it idiomatic to keep a long-running connection on android? Mar 17 11:37:33 I'm aiming for something that works like whatsapp or viber or many other apps which seem to instantly update the user as soon as something happens Mar 17 11:38:14 foocraft, gcm Mar 17 11:38:39 foocraft, GCM of course Mar 17 11:38:49 Hello, I have a quastion about API keys for google map v2 in android. Do I have to generate key from the same google user that is owner of play store account associated to application ? Mar 17 11:39:13 Mavrik: *all* those apps use GCM? Mar 17 11:39:38 foocraft, most likely. Mar 17 11:39:44 * foocraft nod. Mar 17 11:40:10 one long-running connection for all apps I guess Mar 17 11:40:11 My map shows up, but without any content, just gray with controlls. And I dont see any errors or messages in logcat Mar 17 11:40:38 does anyone have any idea on this problem: http://stackoverflow.com/questions/28897487/why-does-my-application-randomly-crashes-with-sigsegv-when-it-tries-to-start-an Mar 17 11:48:10 Hello. I am using fragmentTransaction.replace(container, fragment) in my onCreate to set a fragment. But when I click the back button, the fragment is removed. How can I make sure that this does not happen Mar 17 12:05:49 vedu, are you adding it to the backstack? Mar 17 12:05:59 yeah. Mar 17 12:06:05 stop that Mar 17 12:06:33 danijoo: I just did that and ran my app. about to see what happens. Mar 17 12:06:41 thanks :) Mar 17 12:06:51 yw :) Mar 17 12:09:37 Hey, can I draw on canvas in different layers? (Like it's possible with Photoshop) - I can see Canvas has some saveLayer() functions, but not sure if that's what they do... Mar 17 12:10:01 viran, what do you want to archieve with that? Mar 17 12:10:12 cant you just draw one thing on top of the other? Mar 17 12:10:30 Yes Mar 17 12:11:18 you dont need layers for that. whats drawn first, is on the background Mar 17 12:11:24 like real painting :) Mar 17 12:11:58 Oh, sorry, though you were asking if that's what I wanted.... It's pretty complex, sometimes my background needs to change after I've drawen a layer above it Mar 17 12:12:43 u cant change something once its drawn Mar 17 12:14:03 What does the canvas layers do? Mar 17 12:15:27 good question. never used them tbh ) Mar 17 12:15:40 Can't find any example on Google Mar 17 12:15:51 yes. same here :( Mar 17 12:17:23 Hello, I have a quastion about API keys for google map v2 in android. Do I have to generate key from the same google user that is owner of play store account associated to application Mar 17 12:25:13 vegetablesalad19: you have to generate it from the same key that you use it to sign the app Mar 17 12:25:29 even in debug/development mode the app is signed with a key Mar 17 12:28:50 johnny_and1, thank you ! Mar 17 12:33:56 johnny_and1, I don't seem to get any error or message when using fake key, is that normal ? Mar 17 12:34:59 johnny_and1, I am generating it with my key-files, but do I have to register them to the same account that my application is registered ? Mar 17 12:36:20 vegetablesalad19, have you followed the instructions from this page: https://developers.google.com/maps/documentation/android/start ? Mar 17 12:37:17 do you have Google Play services installed on the phone that you're using for development? Mar 17 12:37:20 yes, but it doesn't state what account should I use to add API key Mar 17 12:38:03 to what account do you refer to? Mar 17 12:38:07 I don't have ovners google account right now, my question is can I register API key to my private account Mar 17 12:38:33 yes Mar 17 12:38:48 User that owns application - google play store owner of application I'm working on Mar 17 12:39:12 you're not signing the app for release, are you? Mar 17 12:39:23 no just for development Mar 17 12:39:34 ok, then register it in your account Mar 17 12:39:41 with the debug key from your pc Mar 17 12:40:52 So I did that, but it doesn't work, map shows up, but it is just gray map with google logo and +/- buttons (the same if I would just enter any random API key) Mar 17 12:41:25 <_cypha> does anyone know if I can compile native C code including some headers from the aosp external tree to a third party app? Or if that's possible only for system services? Mar 17 12:41:35 So only thing I coul'd think of I would be doing wrong, is not registering API key to right google account Mar 17 12:42:11 but if you say it doesn't matter then problem should be elsewhere Mar 17 12:43:27 you don't get any exception in logcat? Mar 17 12:44:32 no Mar 17 12:44:55 after setting canvas.clipRect() how do remove it? Mar 17 12:45:04 I don't get exception even if I add any fake key, like "123456" Mar 17 12:45:11 can you please go and take a look over the page that i've previously linked? Mar 17 12:46:35 canvas.restore()? Mar 17 12:51:57 johnny_and1, ehh I had a filter on my console, so I missed error.And I have missed that I need to add .debug to package name when adding key. Mar 17 12:53:01 vegetablesalad19, so, it's working now? Mar 17 12:53:56 What's my AS method to generate a crapton of getters/setters? Mar 17 12:54:12 While refactoring assignments and reads? Mar 17 12:54:23 cmd + N Mar 17 12:55:04 enter class name? 何? Mar 17 12:55:21 johnny_and1, Yes, thank you ! Mar 17 12:55:30 Im talking Mac Mar 17 12:55:34 dont know what you're on Mar 17 12:55:38 linux. Mar 17 12:55:38 johnny_and1, .debug at the end of package name was the fault Mar 17 12:55:39 you should by a mac though Mar 17 12:55:42 I have a control key Mar 17 12:55:43 lel Mar 17 12:55:53 OSux Mar 17 12:55:57 ah well look it up Mar 17 12:56:00 it's under Code -> Generate should show which key that is for you Mar 17 12:57:44 I found the generate menu Mar 17 12:58:17 I think what I'm looking for is "encapsulate fields?" Make private, add getter/setter, refactor useages Mar 17 12:58:39 well only you will know what you're looking for Mar 17 12:58:42 but it's all under there Mar 17 12:59:28 Something tells me that this is one of the more common refactors whenever you need to enforce business logic on some pojos Mar 17 13:06:48 i'm using parse and every user has up to 5 PFFile is it best to put each file in a column or all of them in one column like an array of PFFile? Mar 17 13:22:12 is someone else getting this when checking for updates in AS? http://prntscr.com/6hvps4 Mar 17 13:24:19 does anyone have any idea on this problem: http://stackoverflow.com/questions/28897487/why-does-my-application-randomly-crashes-with-sigsegv-when-it-tries-to-start-an Mar 17 13:25:16 johnny_and1, didnt you ask about that a while ago? Mar 17 13:25:22 or was it someone else Mar 17 13:25:26 :) yes I did Mar 17 13:25:42 :( sorry for you that you still dont have a solution Mar 17 13:25:49 but as you can see, I still don't have a solution Mar 17 13:26:02 probably I'll open a ticket with google Mar 17 13:26:02 lol Mar 17 13:27:36 I need to draw an xml drawable wider than screen width, is it possible? Mar 17 13:28:40 astroduck, ImageView#scaleType Mar 17 13:30:01 danijoo: scale type is not necessary, i'll be setting its width and height in code. But last time I tried it, it wasnt expanding more than its parent, which was MATCH_PARENT Mar 17 13:30:16 parent was at MATCH_PARENT ie Mar 17 13:30:58 astroduck, this is afaik not possible. but you can make the drawable bigger than the imageview and with the correct scaleType it will look like it is extending the screen width Mar 17 13:34:23 danijoo: I don't know, I was successful in making it extend its parent's height, which was again at MATCH_PARENT (I can't find that code unfortunately, but it was surely ugly). Any example of what you propose? I can't think of a way to use scaletype to do that, any example, if already existing, would be really helpful :) Mar 17 13:37:26 astroduck, lets say your bitmap is 500x500, and the imageview is 400x400. Mar 17 13:37:37 if you just put the image in the view, it will get resized to 400x400 Mar 17 13:38:09 if you set scaleType="centerCrop", it will stau at 500x500 and thus look like it would be bigger than the screen Mar 17 13:39:39 danijoo: Ah gotcha! That might work, it'll look into it. Thanks for the advice :) Mar 17 13:40:14 yw Mar 17 13:40:48 "Several months ago, we began reviewing apps before they are published on Google Play" Mar 17 13:43:01 Leeds, I got mine reviewed yesterday and they nodded it through although using words like "Blizzard Entertainment" and "Warcraft". Im really curious if the google-ban-hammer will strike here after release lol Mar 17 13:46:15 Hi all. Somebody experience with d3.js ? is it possible to use it in an android app? Mar 17 13:46:24 danijoo: from day 1, the official line has been that android market->play store submissions aren't manually reviewed Mar 17 13:48:39 FrancescoV, yes you can use d3.js in android Mar 17 13:48:54 Leeds, yes but im wondering if the review mechanism is exactly the same as the ban-check algorythm or not :) Mar 17 13:48:56 you have to use it in a webview Mar 17 13:49:44 johny_and1: thanks, nice to hear! Mar 17 13:49:45 what do you want to use it for exactly? Mar 17 13:50:42 Hi, I am a CS student. In the context of a bigger project I have to write an app for a wearable Android machine which, according to the manufacturer, is "single activity". Does this mean my App must have a single Activity class or that only one at a time may run (but isn't this the usual case)? Mar 17 13:51:31 need to create some bar charts for Android and iOS. Maybe d3.js is the option to make it work for both platforms Mar 17 13:51:36 have you experience with it? Mar 17 13:53:16 t0by, i assume you mean android wear. There should be a lot of docs and starter projects for it on developer.android.com Mar 17 13:53:42 t0by, personally i have no experience with it, but google usually tries to make getting into that stuff easy so that more people develop for it Mar 17 13:54:09 t0by, I cant imagine how a device could be possible to show more than 1 activity at once without time traveling Mar 17 13:54:12 :) Mar 17 13:54:22 FrancescoV, for something as simple as bar charts, I wouldn't go through the hassle of sending data between android and the javascript in the webview Mar 17 13:54:46 just use some charting library Mar 17 13:55:18 ^ this Mar 17 13:55:33 http://android-arsenal.com/tag/40 Mar 17 13:55:45 I was thinking the same thing but my boss thinks different. The idea is to generate the html files before, which uses d3.js, and use them in the app Mar 17 13:56:01 FrancescoV: you can find some charting libraries at the previous link Mar 17 13:56:14 I see, thanks! Mar 17 13:56:36 dragorn: danijoo: according to the manufacturer is plain Android 4.4.2 Mar 17 13:56:56 t0by, i've got no idea what device you have or what that implies Mar 17 13:57:00 please your boss then. I've used d3.js heavily on a previous version of my app. It's a pain. Mar 17 13:57:14 t0by, if you're doing android wearable stuff, it's almost certainly android wear Mar 17 13:57:27 dragorn: me neither, honestly. It is exceedingly difficult to milk information from the manufacturer at this stage; I hoped "single activity" was a thing in the android world. Mar 17 13:57:37 t0by, if you're not, then you'll have to figure out what your prof actually means, because you're getting off into the land of custom stuff Mar 17 13:58:21 t0by, well an activity is basically a screen in android - you run an app, the thing you look at is an activity. All android is 'single activity' in as much as it only shows one app at a time, but an app can have multiple activities when you do things Mar 17 13:58:44 t0by, I'd just ignore it until I run into problems Mar 17 13:59:22 t0by, android wear is a whole other thing, where an app on a phone has an external display on a watch, more or less (not something I do so that's about as specific as I get with it). Wear may imply an app can only have one activity which is displayed - they do try to enforce simplicity with it Mar 17 13:59:57 so they may mean you have to do everything in one screen and can't have things that take you to other screens (like a preferences screen or whatnot). but now I'm guessing what they might mean, so who knows. Mar 17 14:11:39 hey guys, im brand new with android dev Mar 17 14:11:59 so if i have an app with an image to share Mar 17 14:12:01 String imagePath = Environment.getExternalStorageDirectory() Mar 17 14:12:01 + "/myImage.png"; Mar 17 14:12:05 sorry for that... Mar 17 14:12:21 where should i set my image so my app finds it when user try to share? Mar 17 14:12:52 Hello there! Mar 17 14:13:37 hi! Mar 17 14:17:35 Bleh just had the nightmareish experience of developing an app for iOS. Android is so much superior. Mar 17 14:20:16 fonko, you just posted your imagePath Mar 17 14:20:29 why don't you store it there? Mar 17 14:20:37 Hello, I have a NullPointerException but the trace shows SourceFile:162, is there a way to see which file it was? Mar 17 14:26:08 I need to make some simple CRUD screens Mar 17 14:26:32 which is the recommend pattern for a CRUD? Specially for the creation form... Mar 17 14:27:00 i dont know if is recommend to navigate to a full screen activity/form, or make it float in an alert style Mar 17 14:28:21 johnny_and1, that throws /storage/emulated/0/myimage.png Mar 17 14:28:41 should i store my image there when app starts? how do i do that? Mar 17 14:31:46 anyone a member in the /r/android-dev on Reddit? Mar 17 14:33:55 yes Mar 17 14:34:49 Tennis I am. Mar 17 14:35:34 How does one get in ? Mar 17 14:35:52 mods and approved submitters only Mar 17 14:36:26 Tennis: http://www.reddit.com/r/androiddev Mar 17 14:36:51 thanks Mar 17 14:47:49 Does anyone here perceive Android Studio 1.2 to run better than previous versions? Mar 17 14:48:39 no, seems to use more cpu for me Mar 17 14:49:08 they're just slower and slower Mar 17 14:49:13 0.6 was he fastest for me Mar 17 14:50:00 Hm, well it's running well right now, but I haven't used it long enough to get stuttering, freezing, etc like I did with the previous version Mar 17 14:50:08 especially when I'm working with layouts Mar 17 14:51:03 it uses a lot more cpu when it's idle because it's still monitoring cpu and memory of the connected device Mar 17 14:52:18 Ah Mar 17 14:52:21 well that's an easy fix Mar 17 14:56:04 I like the feature but not that I can't find anything to turn it off by default and that it consumes ~25% cpu Mar 17 14:57:09 There was an X at the bottom of the window Mar 17 14:57:14 hm now I can't get it to use that much cpu Mar 17 14:57:23 hello!:) i came here to ask for a project., and some help Mar 17 14:57:39 next to it read "Monitoring device" or something Mar 17 14:57:54 I just clicked the X and now it's using 0% cpuii Mar 17 14:57:55 cpu* Mar 17 14:57:57 yeah but if you accidentally click on memory or cpu it turns back on Mar 17 14:58:03 im new to android but i have a few programming skills...so, i would like to create an app(or widget etc) that will display a text and a number at lock screen which changes depending on the local time... Mar 17 14:58:07 Well just click the X again, lool Mar 17 14:58:09 for a android phone Mar 17 14:58:10 lol* Mar 17 14:59:05 but you can't from the cpu or memory tab :D it's a minor annoyance nothing much, and I guess I could move the tabs away Mar 17 14:59:14 Oh ok Mar 17 15:01:15 menu.add().setActionview() results in a non-clickable menu item in the actionbar. Any solutions? (tried setEnabled()) Mar 17 15:02:37 what do you guys use for analitics ? (preferably free) Mar 17 15:03:40 blusky crashlytics/fabric is free and easy to integrate, altough I don't like the ui that much Mar 17 15:04:15 anyone who can help with the development of the application(with lock screen)? Mar 17 15:04:28 memorion: gonna look into that Mar 17 15:05:12 Is there an Android app which has full screen map view with controls shown when you tap ? Mar 17 15:05:25 blusky never tried but https://bugsnag.com/ looks nice too, but the free tier is relatively limited Mar 17 15:06:06 and is there any self hosted alternative ? Mar 17 15:06:12 (so it will be really free :D) Mar 17 15:06:26 Are realm notifications useful for updating the UI or if I'm using Rx as even-bus-pub-sub-plumbing to my data layer, are notifications just some me-too feature? Mar 17 15:06:32 Are there any good conferences or workshops for Android besides Google IO? Mar 17 15:06:34 but it's more for "analytics" than crash report Mar 17 15:07:10 (for crash report, we use "sentry", and are really happy with it) Mar 17 15:07:30 blusky crashlytics/fabric shows active users in reatime Mar 17 15:07:46 theblang the droidcons probably Mar 17 15:08:11 blusky, acra can be selfhosted Mar 17 15:08:29 but i think its only crash reporting no analytics Mar 17 15:10:28 yeah, i'm using acra selfhosted Mar 17 15:10:36 it's just crash reporting Mar 17 15:11:23 Do you know similiar tools like Lucky Patcher? Mar 17 15:11:57 "Lucky Patcher is a great Android tool to remove ads, modify apps permissions, backup and restore apps, bypass premium applications license verification, and more. " Mar 17 15:12:27 so you want to steal money from devs? :) Mar 17 15:15:16 its like piracy. not quite theft because its hypothetical funds Mar 17 15:15:55 Tennis: Personally, I'd say that copyright infringement is one crime, theft is another crime, and it doesn't make sense to conflate the two. Mar 17 15:15:55 loss of earnings though for sure Mar 17 15:16:49 piracy is theft Mar 17 15:17:14 debatable Mar 17 15:17:35 doesn't have to have a monetary value to be considered theft Mar 17 15:17:57 I think the original would have to be removed Mar 17 15:18:01 in my head Mar 17 15:18:13 for me to consider it theft Mar 17 15:18:55 i'd say theft is not the right word for it Mar 17 15:18:56 thats too bad Mar 17 15:19:04 I like to compare geographical restrictions to racism Mar 17 15:19:21 taking something that is not yours and without oermission Mar 17 15:19:32 that is not the definition of theft? Mar 17 15:19:36 'taking' Mar 17 15:19:39 or copying Mar 17 15:19:46 pfn: +1 Mar 17 15:19:46 yes, copying is taking Mar 17 15:19:57 i'd say our language currently is outdated in this matter Mar 17 15:20:00 well. it removes earnings, so why should it not be considered theft Mar 17 15:20:17 they're hypothetical earnings Mar 17 15:20:18 danijoo: There are cases where it doesn't remove earnings. Mar 17 15:20:19 did you not have it before you copied? did you have it after? yes, you took it Mar 17 15:20:24 In fact, there are many cases where it increases revenue. Mar 17 15:20:32 assuming there would be earnings, if there was no copying... Mar 17 15:20:39 i'd pirate the hunger games but i would NEVER pay to see it. besides its just a rip off of battle royale anyway Mar 17 15:20:41 Some bands, for example, became famous because of copyright infringement. Mar 17 15:21:01 arguing earnings or the loss thereof is a separate concern Mar 17 15:21:11 theft is theft Mar 17 15:21:17 that's the core of your argument though Mar 17 15:21:32 if hunger games was any good i'd consider seeing the third film in the cinema, but it wasnt so I didn't steal anything from them Mar 17 15:21:38 earnings were never part of my argument Mar 17 15:21:43 so it was almost increased revenue for them Mar 17 15:21:59 its still theft Mar 17 15:22:00 theft is theft , taking isn't always theft Mar 17 15:22:05 no its not Mar 17 15:22:07 you took without permission Mar 17 15:22:14 I don't require permission Mar 17 15:22:43 in what fucked up society do you live? Mar 17 15:22:50 my actions didn't have a knock on affect Mar 17 15:22:56 of course you require permission Mar 17 15:23:06 you chose to ignore the requirement Mar 17 15:23:08 dude are you married to rules? Mar 17 15:23:14 physically nothing was stopping me Mar 17 15:23:28 it obviously wasn't a requirement Mar 17 15:23:37 so, the next time a store leaves its doors open, you'll walk in and start taking shit out Mar 17 15:23:45 and I never said I follow the rules Mar 17 15:23:47 I steal shit constantly Mar 17 15:23:52 I know what it is and what I do Mar 17 15:23:53 stealing Mar 17 15:24:16 I would help my self possibly if it was a big faceless store Mar 17 15:24:18 I don't make up half ass excuses to cover for what it is Mar 17 15:24:33 if it was moms and pops local organic cupcakes or something Mar 17 15:24:35 no Mar 17 15:24:45 it's still exactly the same Mar 17 15:24:47 but if it was cinnabun or something Mar 17 15:24:53 yeah, you just have fucked up ethics and can't face up to what it is that you're doing Mar 17 15:24:56 I think some people who call it theft are simply getting emotional and trying to manipulate other people's emotions. Mar 17 15:25:25 memorion: Are you saying that copyright infringement is the same as theft? Mar 17 15:25:35 you're so smarmy pfn I didn't even want to resort to ad hominem. but you literally think your shit don't stink Mar 17 15:25:40 Because it's quite easy to show that is false, by quoting legal texts (e.g., US law or UK law). Mar 17 15:25:45 Tennis, no, that's you Mar 17 15:25:52 I admit my shit stinks freely Mar 17 15:25:56 I accept it Mar 17 15:26:00 TacticalJoke no, I meant that stealing in a big faceless store is the same as stealing from the local cupcake store Mar 17 15:26:09 Oh, sorry; I missed some of the text. Mar 17 15:26:23 Tennis, you're the exact definition of what you just said, you're projecting feelings of yourself upon me Mar 17 15:26:32 thats not the case Mar 17 15:26:33 perhaps you should go see a psychiatrist regarding your issues Mar 17 15:26:41 i'm not actingly like i'm better than anyone Mar 17 15:26:44 thats why you're smarmy Mar 17 15:26:56 wat? Mar 17 15:26:56 but you are, "I'm not stealing, I'm a good little boy" Mar 17 15:27:00 ^ Mar 17 15:27:10 you said i live in a "fucked up societ" you said i have "fucked up ethics" Mar 17 15:27:21 unless it's the man, then it's justified apparently Mar 17 15:27:24 as though your take on ethics is so benevolent Mar 17 15:27:53 I'm not claiming to be good , I quite openly preaching my opinions without a slant to anyone who thinks otherwise Mar 17 15:27:57 I've never said I had the best ethics Mar 17 15:28:02 once again, I've never made a comparison Mar 17 15:28:12 I've made a stqtement, you don't accept what you are Mar 17 15:28:24 to call someone elses ethics fucked up incinuates you have a firm grasp on ethics Mar 17 15:28:25 and that, is the end of the discussion Mar 17 15:28:34 I think the debate about "intellectual property" is very nuanced and complex. Saying "it's theft; end of discussion" doesn't even begin to address the mountains of complication. Mar 17 15:28:42 Tennis, takes one to know one Mar 17 15:28:53 I know you are but what am i Mar 17 15:29:48 Is there a dedicated channel for questions about building android from sources or can i ask here? Mar 17 15:30:50 asga: not really, and not really Mar 17 15:31:10 i was afraid of that Mar 17 15:31:25 asga, the guys in #android-root might know most about that Mar 17 15:31:37 i will try that, thanks Mar 17 15:31:40 but its hard to make anybody answer there ^^ Mar 17 15:31:53 mostly, there isn't enough conversation on the topic, and there aren't enough people who can/will actually answer questions - too many n00bs, not enough experts Mar 17 15:31:54 or try the cyanogenmod channels Mar 17 15:32:16 So i might aswell ask here too and if someone knows he might answer... its also just a basic question Mar 17 15:32:46 here is definitely not the right place Mar 17 15:32:55 yeah cyanogenmod might be good as well Mar 17 15:32:59 Okay Mar 17 15:33:02 thx Mar 17 15:33:17 asga, read the topic in here :) Mar 17 15:37:46 danijoo: that does not help because it doesn't state that i shall not ask about building android from sources... and also it seems there is no dedicated channel on the topic..... Mar 17 15:38:08 asga, what do you get when building android from sources? :) Mar 17 15:38:18 a custom ROM :p Mar 17 15:38:31 Depending on who you ask... Mar 17 15:38:41 If i didn't modify its not custom for me ;) Mar 17 15:39:19 well. im to busy for hairsplitting atm ;) Mar 17 15:39:21 But as suggested, i already asked at android-root Mar 17 15:39:36 Thats why i asked here where to ask anyway ;) Mar 17 15:39:58 did you try the cyanogenmod channels? building cm is pretty much the same as building android I'd imagine Mar 17 15:40:13 Because i didn't want to have any discussion on how it does not fit this channel ;) Mar 17 15:40:31 is it just #cyanogenmod ? Mar 17 15:40:34 i will try that too Mar 17 15:40:36 #cyanogenmod-dev Mar 17 15:40:48 thx Mar 17 15:42:03 Everyoen ready to register for google IO? Mar 17 15:46:28 People constantly send me emails over my apps contact button with nothing in it but their email address as link Mar 17 15:46:42 i get about 10 of those each month Mar 17 15:46:45 really strange Mar 17 15:48:10 mostly I get spam for ad networks... the odd offer to game the store rankings/ratings Mar 17 15:48:30 well yeah. thats another story Mar 17 15:49:15 I mean I have a button in my app "contact". It opens email intent with a blank mail and my app name as subject Mar 17 15:49:36 and then I get emails with that subject and the mail is empty besides useremail@qwerty.com Mar 17 15:50:04 im wondering if there is any email app that puts that in automatically so users accedently press send instead of return Mar 17 15:57:00 Whenever I install the app from a website and log in to the app. when I hit the home button and come back to the app, I get logged out. It doesn't happen when I sideload the app. Also when I restart the phone the issue gets fixed. any clues? Mar 17 16:00:29 "the app" ? Mar 17 16:01:14 sounds like a question for #android Mar 17 16:03:18 danijoo, the app = the app I just installed from a website Mar 17 16:03:35 this isnt a developer question Mar 17 16:03:36 go to #android channel Mar 17 16:03:39 this is for app making Mar 17 16:03:45 building android from sources is easy, envsetup.sh, lunch, make Mar 17 16:03:52 3 steps Mar 17 16:04:10 and that's all the help I'm giving on that subject Mar 17 16:06:24 hmm the reason I asked it here because it seems to be a development issue. I am referring to my company's enterprise app that I'm working on. but I guess no one ran into this issue before Mar 17 16:06:27 Greetings Mar 17 16:07:02 So what do you guys use if you want a directory selector ? Mar 17 16:08:57 Ashiren this is what that channel says ---> roid-root || App development questions? See #android-dev Mar 17 16:09:51 Ashiren nm i see Mar 17 16:12:19 I would have thought that many developers would want a directory selector in an app to specify where to save photos for example ( if you are making a photo app ). Mar 17 16:14:03 Unknown0BC, im pretty sure there is a library for that Mar 17 16:14:58 danijoo: I saw some stuff for that on the net. But nothing standard. So im wondering what people are using... Mar 17 16:15:14 there is no standard for that Mar 17 16:16:24 yeah Mar 17 16:16:56 never used anything for that yourself danijoo ? Mar 17 16:18:21 nope. but if I had to, i would google "folder selection dialog android" and use the first entry in the list Mar 17 16:18:42 first one huh Mar 17 16:20:10 or check out androidarsenal Mar 17 16:20:16 usually has better stuff :) Mar 17 16:21:29 Yup. I will have more of a look at the available stuff. thanks guys. Mar 17 16:23:00 <__aden> hey there. looking for someone adept at NDK toolchains. having a problem with my build process specific to the new android-22 platform Mar 17 16:23:16 is there an option in AS to run the debug apk on all connected devices instead of selecting a single one Mar 17 16:23:42 I want to protect my App against Lucky Patcher, so I want to know if there are similiar tools Mar 17 16:24:05 __aden, hmm, I don't see any NDK updates for 22... what gives? Mar 17 16:24:57 Filling out this new rating system questionnaire takes a sudden turn. "Do you share personal information?", "Sharing Location?", "Does the app contain any Nazi symbols, references, or propaganda?" Mar 17 16:25:10 :D Mar 17 16:25:19 welcome to France/Germany Mar 17 16:25:21 it reads like that ridiculus US immigration form Mar 17 16:25:31 "Are you a communist?" Mar 17 16:26:12 <__aden> Mavrik -- so, it's more to deal with the android source itself and building with the NDK. I link against android version specific headers to use the OMX interface Mar 17 16:26:40 uhm, oh. Mar 17 16:26:50 I see how that could be a problem. Mar 17 16:27:21 <__aden> it looks like google is handling stdatomic.h a little differently Mar 17 16:39:24 Is it possible to set up different run configurations that supply stuff like test server URLs, for example Mar 17 16:40:58 theblang: If you're using Gradle you can do that with different BuildConfig setups Mar 17 16:41:47 droid_dev99: Yeah, I am. I'd like to be able to change several things, like which analytics property I am using, which server url, maybe prepopulate a login with user information so I don't have to type it in all the time Mar 17 16:43:20 theblang: ah I generally just check if BuildConfig is dev etc and have that conditional logic where appropriate. I have the same situation with server URLs and prepopulated passwords etc so I check for BuildConfig.dev and simply use the appropriate constants Mar 17 16:43:33 probably a sexier way to do it but works for me Mar 17 16:43:56 droid_dev99: yeah, that is how I feel about my method. I'm reading in a properties file that is SVN ignored Mar 17 16:44:03 hello everyone, i'd need some help with android fundamentals. I'm working with fragments, so i call a new activity with fragment from my main fragment. i pass some extras (a string) to the new activity through the intent, but i'm not able to pull those extras from the new fragment Mar 17 16:45:08 gabmus you need to send the Extras as Arguments into the Fragment Mar 17 16:45:11 theblang: I know you can for sure do it with Gradle but it may be tricky to find out how. Flavors are more for freemium versionings so probably not what you want Mar 17 16:45:54 theblang: where am i supposed to do this? Mar 17 16:46:28 gabmus: to clarify, you want to pass the string from the Activity to the hosted Fragment correct? Mar 17 16:46:53 it has to pass through the activity to get to the fragment, right? Mar 17 16:47:02 yes, that should be the thinhg Mar 17 16:47:03 gabmus arguments are a Bundle set on the Fragment. The standard is to make a newInstance function rather than use a constructor, for your fragment that is. So in the Activity you pass Extras to, where you create and attach your fragment, pass the Extras to newInstance. The new instance function will use those passed in parameters to create a Bundle, set it as arguments on a new Fragment, and return that fragment Mar 17 16:52:24 theblang: i cant get the message from the activity! i'm trying to do this in the oncreate method but it doesnt find EXTRA_TEXT http://pastebin.com/68Prp8bS Mar 17 16:53:13 missed a bit sorry http://pastebin.com/SPR0iXXB Mar 17 16:54:00 gabmus see if getIntent().getExtras().getString(MainActivity.EXTRA_TEXT) Mar 17 16:54:06 gabmus see if that works Mar 17 16:54:18 gabmus: http://startandroid.ru/en/lessons/complete-list/241-lesson-28-extras-passing-data-using-intent.html Mar 17 16:54:39 i'm using parse and every user has up to 5 PFFile is it best to put each file in a column or all of them in one column like an array of PFFile? Mar 17 16:54:53 theblang: doesnt work Mar 17 16:55:21 gabmus weird, make sure you are correctly creating your Intent then Mar 17 16:55:59 maybe its because im starting the intent from a fragment in a separate file? Mar 17 16:56:48 gabmus: I suspect reading that lesson will really help you out Mar 17 17:01:29 ok it was damn easy, just had to put the string in the parenthesis Mar 17 17:01:47 the documentation isnt that good uh? not the first time it leads me in the wrong way Mar 17 17:05:39 is anyone an active Android dev in Chicago? Mar 17 17:19:09 droid_dev99: i guess not Mar 17 17:19:18 is running an AsyncTask inside a service kind of overkill? Mar 17 17:20:41 how so? services need threads as well Mar 17 17:21:34 just wondering. and yes, I should have Google'd that before posting here. Services run on the UI thread... Mar 17 17:21:47 rburgosnavas: ughh AsyncTaks Mar 17 17:21:48 rburgosnavas: if it's an IntentService having an AsyncTask is stupid Mar 17 17:22:03 rburgosnavas: please just use an IntentService :) Mar 17 17:22:09 if it's a regular service you should be asking yourself why am I not using an IntentService Mar 17 17:22:35 * Zharf still hasn't found a usecase for intent services in his applications :p Mar 17 17:23:03 Zharf: great for command pattern network or disk I/O Mar 17 17:25:02 probably the only use-case for a regular service is backround audio Mar 17 17:25:07 *background Mar 17 17:26:11 I use regular services for all kinds of stuff -.- Mar 17 17:26:12 O.o Mar 17 17:26:53 such as? Mar 17 17:27:09 Zharf: why do you need to run on the main thread if it's a service?! Mar 17 17:27:57 thepoosh, I don't run it on the main thread.... Mar 17 17:28:23 you start a service (that runs on main thread) then go off the thread and do stuff? Mar 17 17:28:32 that is the definition of an IntentService Mar 17 17:28:44 thepoosh: IntentService is very limited. It runs and dies, many times you want a long running backgroudn service Mar 17 17:28:59 the Service gets started by an alarm and runs in the background pulling data from a server every N hours Mar 17 17:29:22 why should the service stay alive if it polls periosically? Mar 17 17:29:35 what is considered an ongoing operation? Mar 17 17:29:49 plus, if the device goes to sleep, the service dies Mar 17 17:30:08 *hibernates Mar 17 17:30:09 thepoosh: *may* die Mar 17 17:30:13 it happens Mar 17 17:30:16 trust me Mar 17 17:30:22 all the freaking time Mar 17 17:30:28 I have it restart in onResume() Mar 17 17:30:35 hmmmmm Mar 17 17:30:53 you should consider using WakefulService Mar 17 17:31:03 but actually, now that I'm looking at the code, I see a spaghetti of BroadcastReceivers that start this Service Mar 17 17:31:18 WakefulService... will look into that Mar 17 17:31:19 I have a bulk of my application logic in services Mar 17 17:31:31 I don't want them to just die after doing one thing Mar 17 17:31:37 meh you should probably avoid Wakelocks unless you have a REALL need Mar 17 17:31:45 why? Mar 17 17:31:58 wakelocks are bad, mmkay? Mar 17 17:32:05 lol Mar 17 17:32:09 mmkay Mar 17 17:32:10 they don't play nice with others Mar 17 17:32:12 mostly because people forget to release them Mar 17 17:32:16 ah Mar 17 17:32:24 um Mar 17 17:32:35 polling server with wakelock will kill users battery Mar 17 17:32:53 quickly Mar 17 17:32:55 is that data updated so often? Why is it so important for the polling to run when th edevice is sleeping? Mar 17 17:33:02 even *holding* a wakelock Mar 17 17:33:06 only thing I've used wakelock so far was a video player Mar 17 17:33:10 so, it seems that I should have an alarm trigger an IntentService every so often to pull data from a server instead of having a running Service? Mar 17 17:33:21 yes! Mar 17 17:33:53 fine, going for some gaming Mar 17 17:33:55 sya Mar 17 17:33:56 rburgosnavas, what is that data? Mar 17 17:34:18 it's a set of JSON objects Mar 17 17:34:41 kind of like getting Twitter feeds Mar 17 17:34:41 I mean what does that data represent. Mar 17 17:34:50 I've never done server polling in the background either... all my services are alive while the user uses the application and no more (well, there's that music playing service too) Mar 17 17:34:59 Why do you need to poll it? How often does it change? Why aren't you sending a GCM message when it updates? Mar 17 17:35:14 it's not my server Mar 17 17:35:33 write your own server as a middle hand ;) Mar 17 17:35:35 i'm using an external service's API Mar 17 17:35:43 I thought about it Mar 17 17:35:45 rburgosnavas: seems like a good scenario to have a separate server buffer Mar 17 17:35:51 and poll the src server all the time Mar 17 17:35:54 and send a GCM Mar 17 17:35:59 when needed Mar 17 17:36:17 Parse can probably do that Mar 17 17:36:38 @thepoosh & @Zharf: yeah, I thought about that (not Parse but GCM) but I thought it may be overkill Mar 17 17:36:40 rburgosnavas, ok, does it have to be polled and updated if the app isn't used? Mar 17 17:37:17 Mavrik: I guess not. The list seems to be updated a lot less frequent than, say, a Twitter feed Mar 17 17:37:32 is there a way to automatically set something like "..." if text doesn't fit into the textview? Mar 17 17:37:48 memorion: ellipsize Mar 17 17:37:50 so I guess it only makes sense to poll and update when the app is running Mar 17 17:37:56 thepoosh thanks! Mar 17 17:43:33 awright, I'm re-writing the whole thing to use an IntentService instead. thanks, peeps... appreciate it!!! I may come back for another related question Mar 17 17:43:39 rburgosnavas, the question being is if it's worth waking up the device just for the poll Mar 17 17:43:51 Mavrik: nah, it is not Mar 17 17:43:52 rburgosnavas, or can the poll be done when user is actively using the device Mar 17 17:43:52 in second case you don't need wakelock Mar 17 17:43:58 just intent service Mar 17 17:44:05 that way the update will run when the device is up anyway Mar 17 17:44:14 sounds good Mar 17 17:44:18 I've seen the light Mar 17 17:45:38 rburgosnavas: pleasure! Mar 17 17:45:51 now that i know i can influence you Mar 17 17:46:11 do you have a moment to talk to me about our lord and saviour Larry page? Mar 17 17:46:33 you mean lord duarte? Mar 17 17:46:41 lol Mar 17 17:46:44 seya Mar 17 18:10:30 I need to create a "progress button". That is when it is clicked, a frame sequence appears in the center of the button and animates until progress is finished. The button also has custom selector states. Anyone have recomendation on best way to implement this? Mar 17 18:11:21 what about a progressbar at the same place. Mar 17 18:11:31 no progress bar, custom animation Mar 17 18:11:48 I was thinking of just dumping button + image view into a sub'd frame layout Mar 17 18:11:55 progressbar -> custom progress animation Mar 17 18:12:15 and then hide the button and show progressbar Mar 17 18:12:28 yeah that would work too Mar 17 18:12:36 can't hide the button Mar 17 18:12:44 the progress animation occurs inside of it Mar 17 18:12:45 but yeah Mar 17 18:12:54 do you need to use custom animation for the button or just the behavior of a progress? Mar 17 18:13:04 there are libraries that do the "progress button" well Mar 17 18:13:11 sure you can hide it, if the view you have instead of it has the same background the user wont notice a difference Mar 17 18:13:17 button has custom selector states. i have essentially a gif to play while the progress is going on, inside the center of the button Mar 17 18:13:58 I was just wondering if it were better to say, subclass button then override ondraw and switch ifProgressing and draw in the button /custom animation frames myself Mar 17 18:14:14 i think that would make much more work Mar 17 18:14:20 overkill Mar 17 18:14:23 yeah Mar 17 18:14:50 id use a button with a text and an imageview/imagebutton with your animation on it Mar 17 18:14:56 and swap their visibility Mar 17 18:15:09 yeah Mar 17 18:15:16 again the button always stays visible :P but yeah Mar 17 18:16:48 would probably do a framelayout like you said Mar 17 18:17:13 but if it were used all over your app I would consider making a custom view for it Mar 17 18:17:43 you can just use the imagebutton onDraw method but wrap it in a framelayout and provide accessors to show, set the animation etc Mar 17 18:27:08 Ahh it awesome being able to talk to people who work for the company you work for to provide resources instead of having to hack something together yourself Mar 17 18:30:46 wow Pdf api is cool Mar 17 18:32:34 Is it possible to post in a drama-filled reddit thread and *not* regret it afterwards? Mar 17 18:32:39 I don't think I ever have. Mar 17 18:33:44 TacticalJoke, only if you dont visit it again after the post :p Mar 17 18:33:57 haha Mar 17 18:34:00 That's the secret. Mar 17 18:34:27 Are tablet users able to see smartphone screenshots in google play store? Mar 17 18:34:31 I cant test it right now :/ Mar 17 18:36:46 pfn http://www.slideshare.net/Odersky/scala-days-san-francisco-45917092 Mar 17 18:38:12 yes. Mar 17 18:43:47 Mavrik, was this yes for me? Mar 17 18:44:04 yep, you always see all the screenshots Mar 17 18:44:07 just the sort order changes Mar 17 18:44:35 thanks. So I dont need to provide screenshots for activities that look identical Mar 17 19:07:45 is anyone using a CursorLoader to populate a list from network? Mar 17 19:09:23 well, specifically - a CursorLoader that loads data from a DB which was populated via network Mar 17 19:09:39 so its just from a db Mar 17 19:10:04 well right - point being the dataset changes but yes it's not important that it's from the network Mar 17 19:10:22 if it changes, the cursor will change accordingly Mar 17 19:10:58 are you leading toward the fact you've implemented this pattern? Because I have a followup question Mar 17 19:11:37 dont ask to ask :) someone in here will pretty sure know the answer Mar 17 19:12:47 implementing a CursorLoader backed list is a fair amount of boilerplate / complexity what with the Content Provider layer on top of the DatabaseHelper. CursorLoader is the one type of Loader that actually uses Observables to provide a callback to you when the Cursor data changes Mar 17 19:13:19 What I'm wondering is how is that any better than say - dropping an event on an event bus when a data insert has taken place and updating accordingly Mar 17 19:14:14 who said its better? :p Mar 17 19:14:45 most "best practices" I see for a network data centric app suggest the use of Loaders in this way Mar 17 19:15:00 Head engineer for the Vine app did a talk and mentioned this pattern as well Mar 17 19:15:19 droid_dev99 do you have a link to the talk ? Mar 17 19:15:29 ya, sec Mar 17 19:15:55 https://www.youtube.com/watch?v=7zamwc2lXhg Mar 17 19:16:26 that's actually a great video to show someone when they wonder why it takes you longer to *do* on Android than iOS :P Mar 17 19:16:28 droid_dev99 thanks. you can also look at https://corner.squareup.com/2015/02/sqlbrite-reactive-sqlite-for-android.html Mar 17 19:17:04 ah I did look at that but I need to use SQLCipher Mar 17 19:17:58 I look at Loaders the same way I look at AsyncTask. Heavyweight and I don't see why I'd ever use it Mar 17 19:18:23 droid_dev99 this is pretty long - have an estimate in time where they talk about it ? Mar 17 19:19:16 oh it's really not the topic at all, she just mentions it at 23 minutes Mar 17 19:20:46 thanks Mar 17 19:21:14 I wonder why you would ever use a Loader when it seems as though they don't accomplish anything you can't do more simply in other ways Mar 17 19:22:06 droid_dev99: that has been my question for a while. but I think Loader (and a variety of other things in the framework) were added at times when there _weren't_ all that many pre-built alternatives. Mar 17 19:22:27 their main fault is now that they're part of the framework, so they can never be removed or improved, and they mislead people Mar 17 19:22:57 would you agree that is the case with AsyncTask? Mar 17 19:23:26 for other reasons, yes. mostly that asynctask's _semantics_ change across versions, and the old ones have buggy behavior around .cancel() (which is fixed in newer ones). Mar 17 19:23:29 lately I've been interviewing junior candidates for an Android role and they never know about the problems with using AsyncTask specifically in modifying the UI Mar 17 19:23:35 AsyncTask is just an Executor and a Handler Mar 17 19:23:40 i don't think that's very heavyweight Mar 17 19:24:00 so ultimately you have to build your own asynctask. the _pattern_ of onPre / doInBackground / onPost is quite useful, it's just verbose and inconsistent when you can build something better. Mar 17 19:24:14 how does sqlcipher expose itself in the API? Mar 17 19:24:17 sorry - heavyweight is misleading. I simply feel like it adversely affects readability Mar 17 19:24:44 it's website it telling me how to add a jar to Eclipse <3 Mar 17 19:25:16 that's about it :) The so hooks the API calls of the SDK and provides replacements for the DBHelper Mar 17 19:25:19 afaik sqlcipher has its own sql stack entirely? so you have a different package for SqlDatabase, etc. Mar 17 19:25:30 or did they fix that? Mar 17 19:26:19 I love going through code and just destroying it. Mar 17 19:26:22 Taking it apart and refactoring. Mar 17 19:26:27 groxx: looks like no Mar 17 19:26:59 Fabric.io down for everyone or just me? Mar 17 19:27:10 droid_dev99 custom cursor idea was interesting, if a bit strange. Mar 17 19:27:14 danijoo: http://isup.me/fabric.io Mar 17 19:27:24 danijoo: down Mar 17 19:27:34 so JakeWharton since you are amazingly here anyway and my stack is pretty much 90% libraries you have written - do you see a problem with using otto to notify DB writes as I described? Mar 17 19:27:51 danijoo: ah. yeah, down here too Mar 17 19:28:02 rubby apps goes down Mar 17 19:28:02 thx Mar 17 19:29:38 droid_dev99: i didn't see the original description Mar 17 19:30:16 in general it'd be no different than a callback Mar 17 19:30:17 JakeWharton: basically using otto to signal data has been written, using that event subscriber to update my adapters accordingly Mar 17 19:31:32 as opposed to a CursorLoader and Content Provider layer Mar 17 19:40:53 droid_dev99: fwiw I'm essentially doing that at the moment, and it seems to be working out pretty well. my internals are relatively chatty (among other reasons), so I've taken to just reloading the data proactively after a change and broadcasting it. It lets me register for loads / changes / whatevers, and I just have to handle "display or update" any Mar 17 19:40:53 number of times. Mar 17 19:43:12 groxx: cool thanks. I feel like I should probably write a toy app with Loaders at some point just to say I did it but... today is not that day :P Mar 17 19:44:55 droid_dev99: fwiw they're somewhat convenient if you _already have_ a content provider that you want to display. e.g. a system content provider, or some other app's data. a little bit simpler / more magical than doing it by hand. but I definitely don't think it's worth _building_ a content provider just to support it. Mar 17 19:45:09 unless you're using something like https://github.com/SimonVT/schematic maybe Mar 17 19:45:56 droid_dev99 also keep in mind, if you do CP, you dont need to implement the whole thing. i used just query(), and at that only a few URIs i was using with a loader Mar 17 19:46:09 the main problems with loaders is that they are hard to compose event-wise Mar 17 19:46:22 so if they would fit in a nice rx chain, its kinda pain Mar 17 19:46:55 ha. CP generation that's pretty nifty. Surprised I haven't come across that yet Mar 17 19:46:58 and mark murphy blogged a bit about how the whole loader sbtraction doesn't really work well for anything except content providers heh Mar 17 19:47:07 or activities. yeah Mar 17 19:47:26 plus, the fact that they're only identifiable by integers is... odd. Mar 17 19:47:39 yeah his book was the basis for me starting on this path. He mentioned the inconsistency of only the CursorLoader variant implementing the Observable Mar 17 19:48:07 they almost seem to be designed to show system-content-provider-content, and not much else. or maybe to push everyone to build publicly-accessible CPs, but that never really came about. Mar 17 19:49:51 groxx i think CPs would have been more popular if they weren't tied to just tabular data / cursor - yeah there is that extras thing Mar 17 19:50:01 (and if they were less boilerplate ofc) Mar 17 19:50:11 Yes Content Providers as a basis for provided data across apps makes perfect sense to me. It's just - as you say - its forced use as a database intermediary Mar 17 19:50:35 that is a bit square peg round hole Mar 17 19:51:51 yeah. they're a thin wrapper around sqlite, but they don't have a 'group-by' or 'having' section, or larger transactions, or much of anything. Mar 17 19:52:26 you can do transactions, but maybe you mean transaction involving CP and something else ? Mar 17 19:53:03 the CP can do transactions, but users of the CP cannot enforce (or even hint), beyond the batch operations (which are pretty good, admittedly) Mar 17 19:53:36 and lots of CPs don't do transactions. and the API doesn't really hint you in that direction. Mar 17 19:54:06 heck, you can't even _ask_ the CP if it ran in a transaction or not, so if it fails part way through, you don't know the state of the data behind it. Mar 17 19:55:21 add to that Android's awful permissions model, and they're leaky almost to the point of being dangerous. Mar 17 19:55:45 Does scaletype get ignored for animationdrawables? Mar 17 19:56:16 groxx i was initially a skeptic, having done enterprise integration work - we almost ever wanted multiple / different apps hitting a db - too closely coupled. changes in data mode, etc Mar 17 19:56:27 so i think the same with sharing db among apps on andorid Mar 17 19:56:50 'bad idea from the beginning' Mar 17 19:57:57 g00s: yeah, sharing data between apps (possibly of varying versions) is difficult no matter what you do. CP doesn't really help you there. if anything, the API's subtle push to make things 1:1 matching the DB makes it _worse_. Mar 17 20:06:12 just keep your db on /sdcard or whatever :p Mar 17 20:08:47 ravilov wasn't sdcard in 2.3 fat ? Mar 17 20:08:54 good way to lose your sqlite db :D Mar 17 20:09:04 (external storage) Mar 17 20:09:06 isn't it still FAT? Mar 17 20:09:10 there's no way to update the NDK :/ Mar 17 20:09:12 lol wow Mar 17 20:09:21 ravilov uhh Mar 17 20:09:33 what is it now? Mar 17 20:11:06 anyone using f2fs beside samsung for all storage ? Mar 17 20:11:21 i thought we were using ext3 for everything these days Mar 17 20:12:04 if so, I guess that would explain them disabling all support for UMS Mar 17 20:12:29 g00s Google is using F2FS on /data on Nexus9 Mar 17 20:12:55 interesting :) Mar 17 20:14:03 seems the Moto E / G uses it too Mar 17 20:14:08 and X Mar 17 20:14:36 I think Nexus5 uses F2FS on top of the encryption as well (if encrypted) Mar 17 20:14:41 not sure what it does if not encrypted Mar 17 20:15:46 no f2fs on my encrypted n5 Mar 17 20:15:57 https://en.wikipedia.org/wiki/F2FS#Products Mar 17 20:16:00 interesting Mar 17 20:16:03 says esdfs on my moto x Mar 17 20:16:34 hmm Mar 17 20:16:38 perhaps I'm daft? Mar 17 20:16:39 first gen? Mar 17 20:16:45 2g Mar 17 20:16:47 my Nexus5 died on me yesterday so I cant really check Mar 17 20:16:52 I'll check the Nexus9 though Mar 17 20:17:32 how would one check? I can see if the N6 uses it. Mar 17 20:17:38 mount Mar 17 20:17:43 in local shell Mar 17 20:18:04 my Nexus9 is definitely using it, Nexus6 isn't Mar 17 20:19:54 check this http://www.curious-creature.com/2009/01/19/shelves-an-open-source-android-application/comment-page-1/ Mar 17 20:20:17 that's not really 0day, mate Mar 17 20:20:53 anyway g00s, I agree FAT is a very crappy fs but that doesn't necessarily automatically mean lost data ;) Mar 17 20:20:59 Mark Murphy says: Mar 17 20:20:59 February 14, 2009 at 11:33 am Mar 17 20:20:59 Hi! You may remember me from all the times youve corrected my mistakes in various blogs and discussion groups! Mar 17 20:21:05 that's CommonsGuy Mar 17 20:21:13 6 years ago Mar 17 20:24:57 Should I worry about stopping an AnimationDrawable or will system handle that? Mar 17 20:28:04 does anyone have particular affinity for their test stack? This: https://github.com/futurice/android-best-practices suggests using Roboelectric for unit testing and Robotium for UI. Thoughts? Mar 17 20:29:33 "Use the Jackson library to parse JSON data" thats the point where you know you should read that Mar 17 20:29:37 should not* Mar 17 20:29:54 Jackson is good for stream-parsing. Very lightweight. Mar 17 20:29:55 dunno. how's Espresso v2 for testing? the little bit I've looked at it seems promising Mar 17 20:30:05 Though I mainly hate the API. Mar 17 20:30:30 TacticalJoke, yes, but prefering a certain lib in best practices is bullshit Mar 17 20:30:39 gson definitly has its usecases Mar 17 20:30:40 Yah. Mar 17 20:30:50 "Use Activities just to manage Fragments" Mar 17 20:30:51 No wai. Mar 17 20:31:09 this "best practices" is just a list of what auther likes Mar 17 20:31:13 I don't think I've ever read a decent "best practices" guide for Android. Mar 17 20:32:13 make a pull request :P Mar 17 20:32:21 "Fragments should be your default option for implementing a UI screen in Android." Mar 17 20:32:37 Hi, sorry - does any of you know of a fast & minimum effort way of building a system of (1st gen) iPod or Nokia 3210-style menus? Mar 17 20:32:44 You know, the tree-like menu navigation Mar 17 20:32:56 just finished my first kotlin application :) Mar 17 20:33:06 nice danijoo what did you think ? Mar 17 20:33:09 2 java classes in total, rest is plain kotlin Mar 17 20:33:13 i bet /r/androiddev would like to know too Mar 17 20:33:16 Anybody knows of a prepackaged library, or something. Mar 17 20:33:20 all just personal opinions, nothing more. they just like to be forcefully authoritative and call it "best practices" Mar 17 20:33:40 g00s, Its pretty nice. there are only 2 things that sucks Mar 17 20:33:42 t0by maybe provide a link showing what these menus look like Mar 17 20:33:48 one of them will be fixed in m11 though Mar 17 20:33:53 What's the other one? Mar 17 20:34:01 TacticalJoke, Parcelable Mar 17 20:34:05 Ah. Mar 17 20:34:08 haha Mar 17 20:34:25 idk. It's really just a "lessons learned" for them. Not like anything they suggest is *wrong* outright Mar 17 20:34:28 I wonder whether there's anything the Kotlin guys can do to help there. Mar 17 20:34:35 I ended using Serializeable instead Mar 17 20:34:48 droid_dev99: I think what they say about Fragments is misguided. Fragments can be a real pain. Mar 17 20:34:55 danijoo oh no :| Mar 17 20:35:20 g00s,I might post it to /r/androiddev, yeah. but its not really a useful one for lots of people Mar 17 20:35:20 Serializsly?! Mar 17 20:35:27 i think most of my pain from fragments comes from having teo effing implementations Mar 17 20:35:32 *two Mar 17 20:35:34 its a database for a game made by blizzard Mar 17 20:35:52 g00s, I thought that was familiar to... everybody, I guess (either from the Nokia or from the iPod). I was wrong, but luckily there is a video on Youtube: https://www.youtube.com/watch?v=6xGZxckiktQ#t=1m25s Mar 17 20:35:53 I like the idea of using mostly Fragments and it has worked for me in the past. Maybe I haven't done enough to hit the pain points yet Mar 17 20:36:13 g00s: have you see Square's talk on Fragments? Mar 17 20:36:22 g00s, you mean there is more than an implementation of Fragments? Mar 17 20:36:22 droid_dev99 sure Mar 17 20:36:29 droid_dev99, please link :) Mar 17 20:36:37 t0by well native and support library Mar 17 20:36:45 is the talk all fragmented? :p Mar 17 20:36:52 Oh, you mean the one for older versions? Mar 17 20:37:12 Hi all, is there any better way to use SQLite on android? I mean, there's just a lot of messy code to get things working, something like an ORM would make things easy to change, does anyone know of a good library that would work on android for this? Mar 17 20:37:36 The idea behind fragments is pretty good Mar 17 20:37:36 foocraft, there *are* orms for android. Mar 17 20:37:37 g00s: related blog post https://corner.squareup.com/2014/10/advocating-against-android-fragments.html Mar 17 20:37:42 you no like sql? Mar 17 20:37:57 The problem is that there lifecycle is a mess Mar 17 20:38:01 sql is not messy at all when done right Mar 17 20:38:05 ravilov: I no like mixing it with Java code. I hate that! Mar 17 20:38:12 so for example, i wanted to put a PreferenceFragment in with some v4-supportFragments inside a ViewPager - but they don't share a common root so the FragmentPagerAdapter is a problem Mar 17 20:38:19 I would like someone to factor out the SQL commands(aka ORM) Mar 17 20:38:32 and you run into such stupid situations like fragments onCreate being called before activities onCreate and stuff like that Mar 17 20:38:48 `` wait, you can do that in string names? does that come out as `R.string.error.message.call` in code? Mar 17 20:38:54 t0by: which one would you suggest I check out? Mar 17 20:39:08 foocraft, ormlite Mar 17 20:39:25 danijoo: really? How is that happening? lol even static fragments shouldn't be inflated until the setContentView of its parent Activity Mar 17 20:39:28 bonkers Mar 17 20:39:39 droid_dev99, screenrotation Mar 17 20:39:49 * ravilov on the other hand dislikes any abstraction over sql, it's just unnecessary and makes the code more bloated and slower Mar 17 20:39:54 foocraft, I used ORMLite. It doesn't suck. Mar 17 20:40:11 maybe I'm just too used to handling plain sql Mar 17 20:40:15 when the first version of the support library came out, onPause and onStop were ordered incorrectly - i knew then, we were in for a rough ride Mar 17 20:40:21 droid_dev99, the lifecycle of fragments looks pretty easy Mar 17 20:40:30 until you see the full graph: https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png Mar 17 20:40:38 hello! :) can anyone guide me about creating an app which puts a text on lock screen depending on local time(for android phone)? Mar 17 20:40:55 foocraft: I'm using greenDAO. speedy and a pretty thin ORM. it has some quirks, but overall I like it. Mar 17 20:41:35 I love when you go to fix a design problem in your code and thereby accidentally fix other design problems you'd forgotten all about. Mar 17 20:41:38 I like Square's rant against Fragments as they advise making fragments shells of themselves that are nigh empty and only inflate, their contents being ruled by a different object altogether (ie. presenters), something I have naturally done. Validations of winnings ;) Mar 17 20:42:09 Chainfire :) Mar 17 20:42:45 what version of android supported nested fragments ? Mar 17 20:42:55 (initially) Mar 17 20:42:57 a version too late Mar 17 20:43:04 lol Mar 17 20:43:33 d.a.c suggests API level 17 for getChildFragmentManager Mar 17 20:43:39 so I guess API 17 :) Mar 17 20:44:02 i wonder when i can say minsdk=17 Mar 17 20:44:22 (I say too late as my very first comment when trying out Fragments was "WTF how can this POS not support Fragments inside Fragments? Doesn't that break the whole point?" Mar 17 20:44:54 and then I never really bothered with Fragments in-depth again until... two months ago. Mar 17 20:44:55 it should have been called getDawgFragmentManager Mar 17 20:45:00 at any rate, Espresso v2 DOES look interesting Mar 17 20:45:28 haha Mar 17 20:45:43 droid_dev99: Do you know about the new JVM-unit-testing support in the Gradle plugin and Android Studio? Mar 17 20:46:03 TacticalJoke: no have not heard about that Mar 17 20:46:25 https://sites.google.com/a/android.com/tools/tech-docs/unit-testing-support Mar 17 20:47:48 oo nice. Certainly worth looking into Mar 17 20:48:31 is the update feature of AS broken? Mar 17 20:48:49 danijoo do you have the right channel ? Mar 17 20:49:12 (i don't think so) Mar 17 20:49:14 when i click help->check for update, i get an error message Mar 17 20:49:14 http://prntscr.com/6i1ush Mar 17 20:49:37 i get that once in a while, not often though Mar 17 20:50:14 I get it the whole day Mar 17 20:50:18 im still on 1.1 Mar 17 20:50:54 I get "You already have the latest ...". Mar 17 20:50:56 On 1.1. Mar 17 20:51:32 TacticalJoke 1.2 has been ok for me :D Mar 17 20:51:40 more memory. always more memory ... Mar 17 20:51:48 i get this error on every channel o_o Mar 17 20:51:53 Nice. I couldn't get unit testing working with Preview 1. Mar 17 20:51:57 g00s, still didn't get that 16G ram? Mar 17 20:52:04 Mavrik :| Mar 17 20:52:19 hallo Mar 17 20:53:01 i have to say though, when i checkout a different branch on git from command line, AS seems to get messed up though, ide doesn't refresh correctly Mar 17 20:53:02 hello, i have created a KidsModeDialogPreference estended class of DialogPreference that is a toggle button with two password fields where parrents would enter enter a code twice to enable/disable a kids mode in my app. the KidsModeDialogPreference work's just fine. however.. if i go in an edit. and "save" if using persistBoolean and callChangeListener so far so good. the value is getting change when i press ok on the dialog .. if i then press t Mar 17 20:54:01 or am i doing something wrong ? Mar 17 20:54:14 g00s, do you have .idea in the repository? Mar 17 20:54:30 danijoo no, don't keep those under version control Mar 17 20:54:34 or imls either Mar 17 20:54:41 hm. then i dont know Mar 17 20:54:52 i always switch branches from commandline Mar 17 20:54:56 g00s: it's really only the .imea/workspace you don't want no? Mar 17 20:55:46 droid_dev99, modules.xml can make problems, too, if the projects root folder has different names on different computers Mar 17 20:59:46 For notification action icons, is there a better way to select which color to use (black vs white) based on the style of the notification? For example, pre-L devices have a dark notification background, thus a white action icon would be used where L devices have a white background Mar 17 21:05:41 so this is the problem, I have a ListView with some checkboxes, I want to align_below a button, but it doesn't work Mar 17 21:05:45 cool http://www.gizmag.com/quell-pain-wearables/36578/ Mar 17 21:05:54 the button is placed at the top of the layout Mar 17 21:05:59 when i start the day and fire up android studio, i should strap that to my head Mar 17 21:06:35 does it have anything to do with addPreferencesFromResource()? Mar 17 21:12:10 Heya! After about a year, I figured to try and get back into my little game project. Lots seems to be changed for Android development, and I am now totally stuck :( Mar 17 21:12:14 I got most back up, but when I try and run in the new android studio I get a "java.lang.NoClassDefFoundError" Mar 17 21:12:20 There is no "errors" marked in Android Studio. Seems like it just happens when I click run. Mar 17 21:12:25 Anyone that could help me figure out where to go about fixing that? (I am not too familiar with Java). Mar 17 21:16:56 Drogos: what's the full error? and do you get the error if you try to make the project (not run, but 'make') Mar 17 21:18:02 java.lang.NoClassDefFoundError: no.quixotic.hungryseagull.TweenAccessors.SpriteTween Mar 17 21:18:03 at no.quixotic.hungryseagull.Screens.SplashScreen.show(SplashScreen.java:77) Mar 17 21:18:03 at com.badlogic.gdx.Game.setScreen(Game.java:61) Mar 17 21:18:03 at no.quixotic.hungryseagull.HungrySeagull.create(HungrySeagull.java:11) Mar 17 21:18:03 at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:241) Mar 17 21:18:04 at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511) Mar 17 21:18:06 at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239) Mar 17 21:18:19 Drogos: use pastebin, please :) Mar 17 21:18:27 okies Mar 17 21:19:08 hey guys, whats the best way to handle master detail fragments on orientation change? currently the activty lifecycle kicks off again and you end up on the master fragment instead of detail (phones) Mar 17 21:19:20 If I just do make, there is no problem. Mar 17 21:19:36 teasp00n: that sounds reasonable? or do you want master/detail on both landscape and portrait? Mar 17 21:20:50 groxx: i suppose i could lock it in portrait? tbh ive never really got my head around handling that case. in my mind i would expect to be able to rotate the view without anything changing if that makes sense Mar 17 21:23:01 teasp00n: do you have master/detail defined by the layout width or something? you may want to use layout-sw123dp/ instead of layout-w123dp/ Mar 17 21:24:20 but yeah, master/detail + showing both on rotation = probably a pain with android's fragment / activity setup. you could remember what they were last on, and rebuild the task stack with [master, detail] when they rotate. Mar 17 21:25:34 g00s, nothing particularly exciting in those slides; scala.js is neat, and might prove a good basis for what I want to do with scala.dx Mar 17 21:26:37 Drogos: do you have multiple modules in the android project? Mar 17 21:28:08 groxx, Not completely sure what that means, but I have subfolders (packages). And the one file it says it can not find, is in a subfolder. Mar 17 21:28:49 If I try and run it from the terminal, as a desktop application it all runs smooth and nice. Mar 17 21:29:15 "as a desktop application"? Mar 17 21:29:44 g00s, well, I suppose tasty kind of falls into it as well Mar 17 21:29:46 and, by run from the terminal, do you mean ./gradlew installDebug or something? Mar 17 21:29:51 groxx, yes, I use the libGDX thingy. So I can use the same source code for desktop and Android. Mar 17 21:30:09 ./gradlew desktop:run Mar 17 21:31:06 So I know all the references and such atleast work on the desktop. It is when I try and run it on Android that it fails. Mar 17 21:31:15 hm. not sure what's different between those two. Mar 17 21:31:21 And a year ago, it also did work in Eclipse. Mar 17 21:32:36 From what I have found on google, I get the impression that I have to somehow tell it that it should include subfolders when building. But that might be just that my search is not well formed enough. Mar 17 21:33:37 Whats new in 5.1 api beside multisim? Mar 17 21:33:45 nothing really important, am I right? Mar 17 21:34:17 seems like a bugfix release mostly Mar 17 21:34:57 * g00s still thinks androidmanifest should have excludeSdk sort of thing, so that problematic versions of android can be left behind Mar 17 21:35:20 exculde="Samsung"? Mar 17 21:35:20 minSdk=15, targetSdk=22, excludesSdk=21 for example Mar 17 21:35:23 lol Mar 17 21:35:23 plz. Mar 17 21:35:28 which one would you leave out? Mar 17 21:35:47 actually Mar 17 21:35:50 yeah, "exclude all 4.2* on samsung" Mar 17 21:35:50 21? Mar 17 21:36:03 Resources.getDrawable(int) is deprecated in API 22 https://plus.google.com/u/0/+AlanViverette/posts/YHy5drbz3oN Mar 17 21:36:03 Mar 17 21:36:13 g00s, this should be default for using support lib :p Mar 17 21:36:27 excludes could have been handy with honeycomb too :D Mar 17 21:37:19 Mavrik those are the same morons who spend most money on apps Mar 17 21:37:42 there are people spending money on android apps Mar 17 21:37:46 I doubt that ^^ Mar 17 21:38:06 * Chainfire has proof Mar 17 21:38:09 * Chainfire ate last week Mar 17 21:38:09 well the pocketcasts dev make most their money on android Mar 17 21:38:14 devs* Mar 17 21:38:28 Drogos: kinda sorta. it can depend on a lot of details, sadly. if you don't mind sharing, could you pastebin your build.gradle files, and an example / description / something of your folder structure? by the sound of it your gradle stuff might need a bit of customizing. I can try, no promises though :) and either way it'll help anyone else here figure Mar 17 21:38:28 out what the actual cause is. Mar 17 21:40:05 hi Mar 17 21:40:10 groxx, cool, thanks for offering to help! I will not your name for tomorrow, cause it is getting too late here. I will update you if I find a solution, and what it was, or if I still am completely lost ;) Mar 17 21:40:37 not = note Mar 17 21:40:50 g00s Mar 17 21:41:05 tank q Mar 17 21:41:05 exclude 4.2 samsung… is this a BT problem? Mar 17 21:41:07 :-) Mar 17 21:41:19 Drogos: ah, sure :) feel free to pm me if you need to. in the meantime, your root settings.gradle probably needs something like `include ':app', ':other_project', ':etc'` if you don't have everything listed. Mar 17 21:41:34 Drogos: I would kinda assume that there's something like that because the desktop version works, but who knows Mar 17 21:41:36 tricknology yeah Mar 17 21:41:48 actually iam working on ubuntu port for android device Mar 17 21:42:03 yeah I noticed that some data is not coming through correctly on 4.2 samsungs Mar 17 21:42:04 stuck at bulding process Mar 17 21:42:19 groxx, yeah, this seems to be the same problem as I have: http://stackoverflow.com/questions/16417401/tween-registeraccessor-noclassdeffounderror Mar 17 21:42:26 thought it was the device manufacturer SDK, but it works with every other device we have here Mar 17 21:42:43 tricknology they are problematic, and popular Mar 17 21:42:48 make: *** No rule to make target '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/EXECUTABLES/recovery_intermediates/import_includes Mar 17 21:42:51 :( Mar 17 21:42:59 SO the s6 is coming out…. :/ Mar 17 21:43:45 ?? Mar 17 21:44:02 Drogos: hm. following the chain of instructions there, it leads to what seems to be an incomplete gradle setup guide :( Mar 17 21:44:26 Drogos: if the jar is being built correctly, you may need a line like this in your app's build.gradle, in the `dependencies { }` section: `compile fileTree(dir: 'libs', include: ['*.jar'])` Mar 17 21:45:01 Drogos: that'll include all jars in the project/(maybe an app subfolder)/libs/*.jar. customize the dir/include if necessary. Mar 17 21:45:08 PS. Samsung Pay’s MST doesn’t just work right out of the package... Mar 17 21:45:14 Uh... weird error coming up when I try to build my app in Android Studio... anyone ever seen this before? http://pastebin.com/6KE40jmx Mar 17 21:45:56 I don’t use AS but clean? Mar 17 21:46:13 groxx, I got it! Not sure why, I am totally sure I tried this before, but well. The thing I had to do was to add ../ infront of 'libs' in the build.gradle file. Mar 17 21:46:21 or cjeck that your build parth doesn’t contain soem weird things Mar 17 21:46:25 like duplicate jars Mar 17 21:46:31 t0astt Mar 17 21:46:33 t0astt: yeah, I'd say try cleaning too, and if that doesn't work maybe you need to exclude one of the copies? not sure how the build process merges stuff like that. Mar 17 21:46:47 tricknology, groxx: I just cleaned Mar 17 21:46:49 will let you know Mar 17 21:46:53 Drogos: the joy of subfolders :) it's working then? great to hear :) Mar 17 21:46:58 Been sitting here for hurs, and as soon as I start to share the problem, it gets solved. Thanks a lot! :D Mar 17 21:47:04 same error Mar 17 21:47:08 tricknology problem is, if you try to exlude the samsung notes running 4.2 from Play - there has to be at least 50 skus Mar 17 21:47:46 i think it was the Note 3 running 4.2 Mar 17 21:48:17 there are more samsung galaxy notes out there than other manufactures do phones at all lol Mar 17 21:48:19 the other day somebody asked on /r/androiddev how to blacklist problematic phones ... Mar 17 21:48:25 different types of * Mar 17 21:48:29 i was going to say, its probably easier to whitelist the working ones :D Mar 17 21:48:50 Nexus* Mar 17 21:48:57 groxx, tricknology: found a solution... but I'm not sure how to go about doing this? http://stackoverflow.com/questions/21041182/android-testing-multiple-dex-files-when-using-gradle-check-connectedcheck Mar 17 21:49:10 droid_dev99, plot twist. samsung made a nexus too :p Mar 17 21:49:31 danijoo: fair point. I died a little inside when that happened :P Mar 17 21:49:53 eh.. you on 4.11? Mar 17 21:50:05 t0astt, I’m on eclipse still Mar 17 21:50:07 finaly lolypop on my z3 =P Mar 17 21:50:22 so pretty but feature incomplete Mar 17 21:50:28 tricknology: Oh, ok. I have not seen anything about JUnit in my app yet, so I'm not sure Mar 17 21:50:39 danijoo: also it's more of a plot *rotation* namely about 90 degrees in the EXIF data :*( Mar 17 21:52:20 tricknology, groxx: Ok, just found junit. I'm on 4.10 Mar 17 21:52:36 is this a good way to restart an app from an fragment ? http://pastebin.com/WgC1ne9p Mar 17 21:52:47 one of the answers suggests there is a bug in 4.10, upgrade your version Mar 17 21:53:09 fanno, there is no good way to "restart" an app Mar 17 21:53:33 danijoo: is there then a good way to make sure it exit's ? Mar 17 21:53:44 fanno, you should add FLAG_ACTIVITY_NEW_TASK Mar 17 21:53:47 wtf? android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@431e4308 is not valid; is your activity running? Mar 17 21:53:56 tricknology: you wouldn't happen to know how to do that, would you? I'm not looking to break my IDE/project right now... lol Mar 17 21:54:05 nope, I’m on eclipse Mar 17 21:54:12 danijoo: the restart is not required but the app must restart and all static containers must do the same Mar 17 21:54:16 use git and backup your project Mar 17 21:54:28 or jsut make a hard copy Mar 17 21:54:32 "soft" Mar 17 21:55:01 danijoo: should i have both FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK or just FLAG_ACTIVITY_NEW_TASK ? Mar 17 21:55:10 both Mar 17 21:55:20 but I dont think that this will reset statics Mar 17 21:55:23 not sure though Mar 17 21:55:39 wat… http://pastebin.com/63PHMCPn Mar 17 21:55:47 if you want to really restart, use AlarmManager to start your app in 2 seconds, then call System.exit() Mar 17 21:55:50 java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Mar 17 21:56:07 danijoo: will all fragments at least be cleared? Mar 17 21:56:13 what are you trying to do tricknology O.o Mar 17 21:56:21 fanno, yeah Mar 17 21:56:22 I don’t this that’s coming from me... Mar 17 21:56:33 it shows up a lot in my logcat Mar 17 21:57:15 danijoo: i restart when i disable and enable a kids mode so i have to ensure that the data is wiped so kids can't access old data. (whitch could happend if it reused a old fragment) Mar 17 21:57:52 fanno, since you clear top, all old activities (and their frags) get destroyed Mar 17 21:58:01 tricknology: I got it! Had to add "exclude module: 'junit' " to my gradle file Mar 17 21:58:05 danijoo: thanks Mar 17 21:58:06 Im not sure what happens with static fields though Mar 17 21:58:17 you should check them in a debugger Mar 17 21:58:42 since you are in a new task, they might get reset too. but dont assume it Mar 17 21:59:23 danijoo: i should be able to do that by using get get instance right ? if it recreate the instance that means they are cleared correct ? Mar 17 21:59:30 Hey guys. I'm having some problems with testing location services in an emulator. I'm using the Intel x86 device image. I tried starting up Google Maps on the emulator, and it doesn't seem to get a location. I tried to enable High Accuracy location in settings, and sending 'geo fix ' through telnet. Any ideas? Mar 17 21:59:40 tricknology, so something on your phone tries to do something accross users. Suspicious.. Mar 17 21:59:44 huh http://mashable.com/2015/03/17/rare-severe-geomagnetic-storm-sun/ Mar 17 21:59:56 fanno, no Mar 17 22:00:49 danijoo: how would to debug it then ? Mar 17 22:00:58 with the debugger Mar 17 22:01:12 using breakpoints ? Mar 17 22:02:17 i dont know what you want to to. if you have static fields singeltons, check if they are rreset (yes, with breakpoints). If that is not the case, design your app in a way they get reset on the first activity and/or set the correct values there Mar 17 22:02:38 HITTING EARTH RIGHT NOW! Mar 17 22:03:05 danijoo, that’s kind of weird.. I am not doing that at all Mar 17 22:03:24 holy shit g00s Mar 17 22:03:28 * Chainfire looks outside Mar 17 22:03:33 * Chainfire shakes fist at clouds Mar 17 22:03:45 maybe the CME will take out all samsungs :) Mar 17 22:03:48 AndreasL, genymotion :p Mar 17 22:04:11 danijoo, is it better? I'm on Linux btw Mar 17 22:04:12 again with a kp level 9. third time the past year. I need kp 10 to see it here Mar 17 22:04:21 a samsung specific worldwide EMP. *dream* Mar 17 22:04:25 make: *** No rule to make target '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/media/bala/Newvolume1/phablet/out/target/product/condor/obj/EXECUTABLES/recovery_intermediates/import_includes' Mar 17 22:04:39 AndreasL, yes :) for every os Mar 17 22:04:40 need help Mar 17 22:04:45 danijoo, oh, ok. Cool! Mar 17 22:05:42 tricknology, is it happening in your task? (2404) Mar 17 22:07:02 danijoo, even the free one? I don't have the resources to buy the Business one atm Mar 17 22:07:10 i have a linearLayout and set its visibility to "gone" in xml. While rotating the device i can see its visibility changes to "visible" in onRestoreInstanceState. Why is that? is that normal? Mar 17 22:07:23 AndreasL, the free one has support for geolocations Mar 17 22:07:25 only for a short moment** Mar 17 22:07:53 and is 100x faster than android emulator (in fact its faster than most real phones) Mar 17 22:08:02 danijoo, I see it doesn't have multi-touch support. But I guess the Intel one doesn't have that either Mar 17 22:08:19 danijoo, interesting. I'm using Intel with KVM, it's pretty fast too. I'll check out genymotion now :) Mar 17 22:08:29 AndreasL, please tell me how you multitouch with a mouse :pp Mar 17 22:08:39 danijoo, my laptop has a touch screen ;-) Mar 17 22:09:09 good point :p Mar 17 22:09:51 adkins, are you sure you are not setting it in the code somewhere and setting it back? Mar 17 22:11:12 danijoo: ok the static instances is not cleared. if i create cleared ... if i null the instance that is same as "delete" right? Mar 17 22:11:34 crap, i just ran gradlw from a command line... am I in trouble? Mar 17 22:11:37 it's downloading lots of stuff... Mar 17 22:12:02 +1 for eclipse Mar 17 22:12:06 danijoo: thought so, but rechecking.....so this should definitely not be happening? Mar 17 22:12:14 lol tricknology Mar 17 22:12:17 well my app still builds... Mar 17 22:12:21 so i guess I'm OK Mar 17 22:12:27 :P Mar 17 22:12:40 fanno, you cant clear application context though ;) Mar 17 22:12:52 (the application singelton) Mar 17 22:13:29 danij i should not need to do that i think Mar 17 22:14:32 danijoo: this should work too ? tho i wont clear the data... http://pastebin.com/8YmV4X8G Mar 17 22:15:17 fanno, this is bad Mar 17 22:15:28 full class: http://pastebin.com/sQPdb4Ff Mar 17 22:15:30 because you end up with an unused singelton Mar 17 22:15:39 after a change to kidlock Mar 17 22:15:53 better make a deleteAllInstances() method Mar 17 22:16:29 danijoo: and the loop the instance and remove them from the hashmap ? Mar 17 22:16:38 maybe Mar 17 22:17:56 what other options would there be ? instance = new HashMap(); ? Mar 17 22:18:11 just over wride the singelton ? Mar 17 22:18:32 yup Mar 17 22:18:37 I feel like i'm in Gradle Hell right now Mar 17 22:18:53 danijoo: hmm guess i could also do instance.clear() ? Mar 17 22:19:12 im going now. good luck though ;) Mar 17 22:19:22 danijoo: thx for inputs Mar 17 22:19:36 danijoo: i check in the last line of onSaveInstanceState if it is visible => never is. I check in the first line of onRestoreInstanceState => visible if i rotate from portrait to landscape, but not from landscape to portrait. crazy isnt it? Mar 17 22:20:13 danijoo: i got it , i guess ;) Mar 17 22:20:39 different layout for landscape, not set it to "gone" there, like in the portrait one ;) Mar 17 22:20:54 adkins, i guess something like that :) Mar 17 22:20:58 hate those kind of bugs.. Mar 17 22:21:04 they are so hard to find :( Mar 17 22:21:18 yes Mar 17 22:21:29 adkins: does it ever actually display as visible, or is it just that it's visible before super.onRestoreInstanceState ? Mar 17 22:22:05 Holy crap, I think I just solved my gradle problem... sweet? Mar 17 22:24:03 groxx: i hide it in the current case in onResume later on.....so not visible ;) Mar 17 22:25:09 groxx: all good Mar 17 22:44:46 I wonder whether the new Microsoft web browser will be any good. Mar 17 22:44:59 hi can anyone here help me with a "material design" design question? Mar 17 22:45:30 anyone that designs with material design here? Mar 17 22:45:52 anyway, my question is this Mar 17 22:45:58 .... Mar 17 22:46:13 suppose http://i.imgur.com/tdxJXLe.png Mar 17 22:46:54 "no one" , "item two" and "the third" are 3 different views and each of them have their own funzione Mar 17 22:47:04 like, save, delete, search, filter, etc etc Mar 17 22:48:05 how would you huys put in these dunctions? Mar 17 22:48:12 normaly they are toolbar icons Mar 17 22:48:25 whats should i do? change icons on every tab click? Mar 17 22:48:34 i never saw an android app do that Mar 17 22:48:48 any ideas please? Mar 17 22:51:25 Sal I do Mar 17 22:51:27 Sal, i suppose those differnt screens are fragments Mar 17 22:51:37 so each frag can have its own menu Mar 17 22:51:42 ^ Mar 17 22:51:50 then android will switch the icons without you having to do anything Mar 17 22:51:54 they are lists grom different db tables Mar 17 22:52:13 its something like a MDI interface Mar 17 22:52:33 does anyone know a (sane) way to smoothly scale text on android? e.g. on lollipop the current time scales smoothly as you drag up and down to expand the widget-y area of the notification center Mar 17 22:52:49 when user clicks a choice on a slide-in lef menu, i add a new tab and show the list Mar 17 22:53:00 Could be a PagerTabStrip Mar 17 22:53:26 groxx, Napalm does I think.. Mar 17 22:53:30 danijoo, so, android already does that? Mar 17 22:53:41 it changes icons depending on the selected tab? Mar 17 22:53:47 Sal, if you implement it correctly, yes Mar 17 22:53:53 lol Mar 17 22:54:00 is there any google app that does it? Mar 17 22:54:08 http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html Mar 17 22:54:12 Sal ^ Mar 17 22:55:08 hey guys.. im trying to download an APK to the downloads folder, but when i open the APK it says there was a problem. the APK seems to have the correct size, what could be wrong? http://paste.ofcode.org/s3DG8xq5qNNbZ3Qxbddg75 Mar 17 22:55:20 gotta restart Mar 17 22:55:22 i need to see something visually Mar 17 22:55:42 https://www.google.com/search?q=pagertabstrip+with+icons&espv=2&biw=1138&bih=801&source=lnms&tbm=isch&sa=X&ei=z7AIVZqdNYfloASbrYHADQ&ved=0CAYQ_AUoAQ#tbm=isch&q=pagertabstrip&imgdii=_&imgrc=vkvuzj_E8-2drM%253A%3BTDa1jhkFu-paVM%3Bhttp%253A%252F%252Fi.stack.imgur.com%252FG2HaA.png%3Bhttp%253A%252F%252Fstackoverflow.com%252Fquestions%252F16270095%252Fchange-height-of-pagertabstrip-tabindicator%3B348%3B96 Mar 17 22:55:45 wooah Mar 17 22:55:50 look at google play store Mar 17 22:55:57 http://i.stack.imgur.com/G2HaA.png Mar 17 22:57:36 yes, but i don't see icons changing Mar 17 22:57:46 its not a thing that the control does automatically Mar 17 22:57:51 you have to code it Mar 17 22:57:52 right? Mar 17 22:58:07 with event listeners Mar 17 22:58:27 Sal no Mar 17 22:58:54 Sal you implement the menu buttons in oNCreateOptionsMenu of the fragment they belong to Mar 17 22:59:05 and setHasOptionsMenu(true) for those fragments Mar 17 22:59:14 see http://developer.android.com/reference/android/app/Fragment.html#setHasOptionsMenu(boolean) Mar 17 22:59:22 yes, like i said, on an event Mar 17 22:59:36 so i don'0t think many use it that way Mar 17 22:59:45 Sal, thats no listener Mar 17 22:59:52 and this is the only good way of doing it Mar 17 23:00:14 yes, ok... i know everything could be done by code Mar 17 23:00:28 i was just wondering what was the most common way of doing it Mar 17 23:00:37 there is only this way Mar 17 23:00:39 because there's nothing about it in material design refs Mar 17 23:01:01 anyone know how to make a EditTextPreference android:inputType="number" to show the same keys as android:inputType="numberPassword ?" as i only want 0 - 9 ? Mar 17 23:01:48 oops, that HTC One M9 with Snapdragon 810 can reach 130'F Mar 17 23:03:25 how much is that in real people degrees? Mar 17 23:03:36 Chainfire, :D Mar 17 23:03:56 that's gotta be like 200'C, yowza Mar 17 23:04:01 OMG Mar 17 23:04:30 http://media2.giphy.com/media/eVy46EWyclTIA/200_s.gif Mar 17 23:04:56 ;) Mar 17 23:05:56 still, 54C doesn't sound that hot Mar 17 23:06:13 perhaps I am not good at imagining how hot that is Mar 17 23:06:20 pff. I thought this would relate to something like 80 degree or so Mar 17 23:06:36 54 isnt that far away from what cpus can easily manage, isnt it Mar 17 23:07:01 a modern i7 can survive 99 IIRC Mar 17 23:07:12 yeah, my laptop hits 100 when gaming Mar 17 23:07:13 then again, I don't tend to put i7s in my ear Mar 17 23:07:14 well. my leg maybe cant though :D Mar 17 23:07:28 (just the CPU, not any external stuff, to be clear) Mar 17 23:07:48 130'F is getting too hot to touch :| Mar 17 23:07:57 groxx, my old macbook unibody kinda had that temperature on the case when gaming Mar 17 23:08:03 i know, thats the temp my steering wheel gets in AZ : Mar 17 23:08:04 uncomfortable, certainly. lots o' ear sweat. Mar 17 23:08:08 aluminium body got too damn hot. Mar 17 23:12:19 hey guys! anyone have an opinion on how I should tackle a Readability API wrapper? The doc says you can use OAuth[1.0] or XAuth, but neither method seems ideal. Mar 17 23:12:50 the date.getTime() doesn't actually returns more than just the time :( Mar 17 23:12:54 hm, interesting. the calculator app's text scaling scales to "fit" via paint.measureText, and then animates the view's scale property from to 1.0f when the size changes to hide the transition. I'm kinda surprised it's that smooth. Mar 17 23:12:57 i thought my life would be so much simpler Mar 17 23:13:24 whats the best way to just compare times disregarding the day and month? Mar 17 23:13:31 they will need one of these http://www.androidpolice.com/2015/03/16/fujitsu-shows-off-a-liquid-cooling-device-for-mobile-electronics-thats-just-1mm-thin/ Mar 17 23:13:45 DadFoundMy_: how about timezones or DST or leap seconds? Mar 17 23:15:03 DadFoundMy_, if you dont want calculations on the unix timestamp, you might checkout joda time Mar 17 23:15:14 g00s: I don't usually read to comments, but when I do, I link to them. http://www.androidpolice.com/2015/03/16/fujitsu-shows-off-a-liquid-cooling-device-for-mobile-electronics-thats-just-1mm-thin/#comment-1910204007 Mar 17 23:15:39 groxx: Well in my app a user sets a time frame. Then later on i would like to check if the current time of an action occured in between those two times Mar 17 23:15:42 groxx :D Mar 17 23:16:12 danijoo: yeah i was considering using joda, but i thought date.after would do the trick Mar 17 23:16:16 DadFoundMy_: hm. timezone / dst / leap seconds still apply then, arguably. Mar 17 23:17:04 groxx: in the context of the app and it's important i dont think so. It is just used to make a suggestion that is super easily overridden Mar 17 23:17:26 e.g. do you want "within the time frame" to be absolute (e.g. "between 4 and 5 hours from now"), or relative to their current location (e.g. "tomorrow, between 1 and 2 pm")? Mar 17 23:19:25 groxx: i guess ill get specific. My app is a high school agenda book. When the user creates a class they set the timeframe (8am - 9am). Then when they create an assignment if the current time is inbetween the time frame for a class it suggests that class Mar 17 23:20:03 DadFoundMy_, why dont u just compare the timestamps Mar 17 23:20:52 danijoo: how would i do that? Mar 17 23:20:59 Date.getTime() to get the unix time Mar 17 23:21:03 hey guys.. im trying to download an APK to the downloads folder, but when i open the APK it says there was a problem. the APK seems to have the correct size, what could be wrong? http://paste.ofcode.org/s3DG8xq5qNNbZ3Qxbddg75 Mar 17 23:21:15 then get unix time of the beginning of that specific day Mar 17 23:21:23 danijoo: thats what im doing currently but i need to disregard the days Mar 17 23:21:27 substract it and youll get the hour information Mar 17 23:21:35 so would i just subtract the uneeded shit? Mar 17 23:21:41 ah beat me to it Mar 17 23:21:41 and then can do a 8 < yourTime < 9 Mar 17 23:21:50 DadFoundMy_: I'd probably recommend doing the same kind of transformations you're doing to display as , and then seeing if the assignment is .between(start,end). calendar objects have that iirc, or you can .getTime() from them and just compare longs. Mar 17 23:22:23 ^ yeah, calendar will give you "beginning of day" information. Mar 17 23:22:51 This looks good: new unit-testing stuff for Gradle plugin 1.2.0: https://android-review.googlesource.com/#/c/142060/2/build-system/changelog.txt Mar 17 23:22:52 why can't these guys make an up to date build of macvim for 10.7 - they support the commodore 64 :| Mar 17 23:23:15 Loading Java resources and stuff. Mar 17 23:23:23 dates ain't easy. since you're comparing things to how they're displayed, make sure you go through the full display transformations to make sure you're in the same "time context" (or whatever you want to call it), or you're nearly guaranteed to have bugs you may never see. Mar 17 23:23:42 g00s: wait. macvim runs on C64? Mar 17 23:23:58 /brain boggles Mar 17 23:24:21 groxx lol, plain vim probably, like the amiga Mar 17 23:24:49 bah i guess they didn't backport to android http://www.threeten.org/ Mar 17 23:24:59 you can use calendar or joda-android Mar 17 23:25:49 https://github.com/dlew/joda-time-android Mar 17 23:27:01 "Developers now have more insight into why apps are rejected or suspended, and they can easily fix and resubmit their apps for minor policy violations." Mar 17 23:27:13 where? Mar 17 23:27:47 http://android-developers.blogspot.co.uk/2015/03/creating-better-user-experiences-on.html Mar 17 23:28:00 What does this refer to? "Over the past year, we’ve paid more than $7 billion to developers and are excited to see the ecosystem grow and innovate. " Mar 17 23:29:03 i apple was 10 billion in 2014 Mar 17 23:30:02 hello, i am now at a state where my app is "done" and i can start making layouts for different device sice. i want to base the layout on acrual device size and NOT dpi what method to do tha with ? i read a few place but my head is spinning. =( is what i want layout--**dpi ? or layout-lange layout-xlange idea is i want taplets to look different than phone Mar 17 23:30:48 So googles opinion is that it gives more insight if your app is rejected without giving a good reason instead of banning it without giving more than a vague reason Mar 17 23:32:10 sice? lange? taplet? wow Mar 17 23:32:13 what irks me as well is that I cannot set the highest rating manually Mar 17 23:32:41 layout-swXXXdp would be it Mar 17 23:33:14 Chainfire: like, 5 stars? Mar 17 23:33:36 ravilov: so the lange and xlange is not usefull for this ? Mar 17 23:33:36 Chainfire: or like "this app will ruin your childhood, retroactively, and do the same to everyone you know" Mar 17 23:33:50 groxx, i'd load it Mar 17 23:33:55 danijoo: ikr? Mar 17 23:33:59 curious as to how Mar 17 23:34:00 http://i.imgur.com/gQaYLbT.png Mar 17 23:34:25 g00s, they have to do this because its not allowed to show those in certain countries Mar 17 23:34:28 g00s you need that for germany and france Mar 17 23:34:28 g00s: well, if it has the internet on it at all, then the answer is yes. because every argument devolves into claiming someone is hitler. Mar 17 23:34:37 fanno, why are you using these weird words that aren't words? Mar 17 23:34:39 i.e germany, france Mar 17 23:35:05 groxx> this shit aint fit for minors Mar 17 23:35:25 ravilov: sorry my spelling sucks =( large / xlarge Mar 17 23:35:44 hm... doesnt wikipedia app kinda contains Nazi symbols and stuff like that? Mar 17 23:35:54 i mean.. I could open the article with that ^^ Mar 17 23:35:55 user generated content dont count Mar 17 23:36:09 your spelling sucks *consistently*, that's what's weird Mar 17 23:36:21 a good point Mar 17 23:36:28 ravilov: when i look at https://developer.amazon.com/public/solutions/devices/kindle-fire/app-development/01--screen-layout-and-resolution it looks like i can use layout-large / layout.xlarge ? Mar 17 23:36:33 fanno: probably large / xlarge for tablets. probably. depends on how you define "tablet" anyway, since some phones are the same size as small tablets: http://www.cnet.com/news/7-inch-samsung-galaxy-w-is-samsungs-biggest-phone-yet/ Mar 17 23:36:35 anyway yes, gave you the solution Mar 17 23:36:46 fanno, large/x-large are deprecated Mar 17 23:36:52 are thye? Mar 17 23:36:54 since android 3 Mar 17 23:36:57 arent they Mar 17 23:37:26 yes they are Mar 17 23:37:28 "A set of four generalized sizes: small, normal, large, and xlarge Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width." Mar 17 23:37:38 ravilov: You seem to spend a lot of time insulting people in here. What a waste of time and energy. Mar 17 23:37:46 ah, you're right. they recommend sw123dp instead. Mar 17 23:38:09 fortunatly because of fragmentation, they will never have a chance to actually remove them :p Mar 17 23:38:42 I'm pretty sure google knows you can't guarantee nazi free content if you show anything user created but you should be fine if you don't bundle that stuff in your apk Mar 17 23:38:47 yeah, I'd imagine they'll continue to work pretty much forever Mar 17 23:39:02 TacticalJoke, you seem to spend a lot of time tracing my steps and complaining. what a waste of time and energy. Mar 17 23:39:19 hi Mar 17 23:39:27 fanno: ah, here ya go, explicit examples for "tablet" layouts: http://developer.android.com/guide/practices/screens_support.html#ConfigurationExamples Mar 17 23:39:47 groxx taking a look Mar 17 23:39:54 and thanks to everyone else for input aswell Mar 17 23:41:28 wtffffffffff Android Studio Mar 17 23:41:59 I created a class in another module, gradle doesn't build it even though Android Studio is fine with it Mar 17 23:42:09 Gradle is simply not building that version of the module :/ Mar 17 23:45:44 Hey, I was wondering if there was a way to use a python library to code part of my android app?? I have not been able to find another library in java that does what I need it to do and thought maybe one of you guys knows some way that I dont Mar 17 23:47:29 jesus, is there any way to build Android applications without complete callback hell? The flow of reading code seems to be hard to follow... I just started 2 days ago though, so I have no idea what I'm talking about, but I just get the impression that's how thing s are done. Mar 17 23:48:26 AndreasL: same way as every other callback hell solution: higher-level abstractions. there's RxJava (and RxAndroid's extensions), there are event busses, there are helper functions, there's even "use a different jvm language, like scala". Mar 17 23:48:32 groxx: hey Mar 17 23:48:39 groxx: you wanted to know about smoothly sizing text Mar 17 23:49:37 groxx, I think I'll have to check out those solutions you mentioned. Thanks Mar 17 23:50:05 truthseeker1990: see, e.g. https://code.google.com/p/android-scripting/ Mar 17 23:50:32 truthseeker1990: but you'll likely be better off implementing whatever it is you want to do in java :) Mar 17 23:50:49 AndreasL, If you are really new to android development, I suggest to learn doing it without them first Mar 17 23:51:16 Napalm: yeah, in an "is there a sane way" way. looks like the calculator app scales text to fit by repeatedly paint.measureText()ing, and then the activity manages a scale animation. I'm not sure what the notification center does. also I'm curious if these work smoothly on older OSes. Mar 17 23:51:35 , I havent been able to find libraries that do the job in java. And writing the whole thing myself is complicated because the topic matter is quite complicated Mar 17 23:51:53 truthseeker1990: what is it you need to do? Mar 17 23:51:59 truthseeker1990, whats the topic. maybe someone knows a good lib Mar 17 23:52:17 you can also check out android arsenal for android specific libraries Mar 17 23:52:28 groxx: you can use an ObjectAnimator Mar 17 23:52:40 danijoo, yeah, I won't do it yet, but I will have to think hard about how to avoid a complete spaghetti Mar 17 23:53:34 groxx: remember to do TextView.getPaint().setLinearText(true); on start of animation and set it to false after Mar 17 23:53:51 * groxx looks up lineartext Mar 17 23:53:53 I need to resolve TLE data from satellites into terrestial coordinates Mar 17 23:54:37 Napalm: that's some fantastic documentation ಠ_ಠ "true to set the linearText bit in the paint's flags, false to clear it" Mar 17 23:54:39 I have looked at SPG4 model, but have been told it might be too complicated to try and resolve this myself Mar 17 23:55:05 groxx: read the flag info Mar 17 23:55:10 Napalm: yeah, just noticed :) Mar 17 23:55:37 Napalm: is that enough to just objectanimate your way through the scale change? any caveats? (like "is stupidly slow") Mar 17 23:56:22 Napalm: hm. does it re-flow text by any chance? Mar 17 23:56:27 this is really strange, I call ./gradlew assembleDebug and it creates the release version :/ Mar 17 23:56:31 how :/ how I ask?! Mar 17 23:56:41 magic! D: Mar 17 23:56:52 groxx: sorry, on a call.. talk in a bit Mar 17 23:57:00 Napalm: np, glad for the tips :) Mar 18 00:17:04 Is the ninepatch binary online anywhere (independent of sdk?) Mar 18 00:17:22 Or does anyone know of a place online where i can upload a ninepatch and stretch it to see if the patches are working? Mar 18 00:17:53 android studio has something for that, I think? Mar 18 00:18:03 independent of as/sdk Mar 18 00:18:03 otherwise http://romannurik.github.io/AndroidAssetStudio/ Mar 18 00:18:14 does not give you preview Mar 18 00:18:22 no? I thought it did :| oh well Mar 18 00:18:32 need for gfx artist in other company so he can stop sending me things i have to fix Mar 18 00:22:40 lasserix: draw9patch.com/? Mar 18 00:22:55 though it's pretty weird Mar 18 00:23:22 also maybe http://weblookandfeel.com/nine-patch-editor/ Mar 18 00:23:24 that site never worked for me Mar 18 00:24:33 how do i debug when my app crashes? Mar 18 00:24:55 Look at LogCat. Mar 18 00:26:43 I want to get the genre for an audio file in Android. I can retrieve a value with MediaMetadataRetriever and MediaMetadataRetriever.METADATA_KEY_GENRE but this gives me a number. Does anyone know what this represents? Mar 18 00:27:44 Thoughts on RealmDB: oh cool, types and syntax checking. Mar 18 00:27:58 groxx ahh weblaf editor is really good Mar 18 00:28:44 hey guys.. im trying to download an APK but then it wont open :( help plz http://paste.ofcode.org/s3DG8xq5qNNbZ3Qxbddg75 Mar 18 00:29:32 surf2b1: http://developer.android.com/reference/android/provider/MediaStore.Files.FileColumns.html Mar 18 00:30:41 err surf2b1 http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html you want to look at MediaColumns MIME_TYPE Mar 18 00:31:23 surf2b1: looks like http://developer.android.com/reference/android/media/MediaMetadataRetriever.html#extractMetadata%28int%29 to me Mar 18 00:35:48 lasserix: I think that will put me on the right track. Thanks Mar 18 00:36:04 groxx: I am already doing that. It returns a number. Mar 18 00:36:25 surf2b1: extractMetadata says it returns a string. is the string just a "1" or something? Mar 18 00:36:34 yeah Mar 18 00:37:48 hrm. lots of possibilities :( Mar 18 00:38:22 I'll toss this into the "things that might be promising" pool: http://developer.android.com/reference/android/provider/MediaStore.Audio.Genres.html <- dunno what it returns, but if there's an id / whatever column, see if the values match what extractMetadata returns. Mar 18 00:40:35 just grab the mimetype Mar 18 00:48:57 this video is a great commentary on post-industrialized society :) https://www.youtube.com/watch?v=1Xhdy9zBEws Mar 18 00:50:25 * groxx expected an Idiocracy snippet Mar 18 00:51:07 replace the knowledge work / bargraphs with Android Studio Mar 18 00:51:46 groxx i haven't seen that one yet Mar 18 00:54:18 is there any way to simulate method references in java 7. i tried using an enum, because enums can be used for almost everything :) Mar 18 00:55:24 g00s: like, java 8 Class::method ? Mar 18 00:55:31 groxx yea Mar 18 00:56:21 retrolambda :] otherwise I imagine everything ultimately boils down into currying in some form, so you might as well use Runnable. Mar 18 00:57:16 I can see what retrolambda generates, if that would be interesting Mar 18 00:58:09 groxx no thats ok - do you use retroL ? Mar 18 00:58:18 on my side project, yeah Mar 18 00:58:42 Is it possible to use robot light /medium etc? Mar 18 00:58:47 *without adding anything Mar 18 00:59:04 should be Mar 18 01:00:07 you have to find the right string to put in android:fontFamily="sans-serif-thin" Mar 18 01:01:12 oh wonderful its all 4.2 stuff and up Mar 18 01:01:14 backlog Mar 18 01:04:41 hey guys, i'm trying to read from a file into a byte array and then convert that to a string. my problem is that it doesn't seem to understand null termination of the string Mar 18 01:04:46 im new to java and am a bit confused Mar 18 01:05:03 byte[] buffer = new byte[4096]; Mar 18 01:05:04 int readbytes = instream.read(buffer, 0 , instream.available()); Mar 18 01:05:04 String stringId = new String(buffer, "UTF-8"); Mar 18 01:05:07 shouldn't this just work? Mar 18 01:05:17 it creates a string of 4096 characters Mar 18 01:05:25 with 1 valid and the rest 0... Mar 18 01:05:43 (not really android specific but i look for java example and that looks totally legit) Mar 18 01:06:01 instream = FileInputStream Mar 18 01:06:21 DrBenway: you probably need to use one of the other string constructors, like `new String(buffer, 0, readBytes, "UTF-8")` Mar 18 01:07:00 otherwise there's probably a StringReader() class or something somewhere Mar 18 01:07:21 When you are starting fragments or activities, how do you know when to pass in basic values as a bundle and when to initialize them via a constructor? Mar 18 01:07:22 alright that does work Mar 18 01:07:38 a bit weird how it automatically "escape" the null chars Mar 18 01:07:46 TheKarlBrown: bundle always, constructor never Mar 18 01:07:51 maybe i'm just used to C style... Mar 18 01:08:04 groxx why is that Mar 18 01:08:18 TheKarlBrown: the constructor won't be called when Android re-inflates your views when it restarts your process Mar 18 01:08:38 or, only the no-arg one will be called. Mar 18 01:08:43 whoa Mar 18 01:08:59 you mean Mar 18 01:09:04 when they are being piled on top of each other? Mar 18 01:09:43 and you remove them Mar 18 01:09:50 or are you talking about orientation changes? Mar 18 01:10:13 I mean, given an activity + a fragment in it, hit "home". come back an hour later. your process will be dead and need to be restarted from scratch, and the OS will do that for you, and re-create your activity and fragment and views from the saved instance state. it can't know what constructor is meaningful, so it only saves the arguments. Mar 18 01:11:05 well my app already breaks when I hit home :3 Mar 18 01:11:22 the whole startActivity(intent) and fragment setArguments(bundle) weirdness is to provide a serializable way to define how to start your app, because _you_ don't start it, the OS does. Mar 18 01:11:41 start / resume, that is. Mar 18 01:11:53 groxx if you don't mind me asking what do you do for a living? you have been continually helpful Mar 18 01:12:17 android dev :) also web + ios + server. Mar 18 01:12:31 is it worth it? Mar 18 01:13:10 android dev? I like it. and you can do stuff that's impossible on iOS, so you can build quite a few unique, interesting things Mar 18 01:13:38 what would be good examples of things that you can do (I know I have some ideas) Mar 18 01:14:53 it goes both ways, there are things that should be much easier on iOS than android - like anything involving low latency audio for music creation, etc Mar 18 01:15:01 oh and they have working BLE :) Mar 18 01:15:11 make your own phone / sms app, real background processing (so email apps are possible and actually _work_ without having to give your login info to someone else, for example), do a lot more with contacts / etc, and observe the system in a whole lot more detail (e.g. know when they took a picture, act on it). Mar 18 01:15:45 yeah. and the camera on iOS is soooooo much more predictable Mar 18 01:16:10 I missed all of that can i get a repeat Mar 18 01:16:15 babydoll knocked the wifi cable out Mar 18 01:16:21 lol Mar 18 01:16:24 ah, just noticed the rename :) Mar 18 01:16:30 "make your own phone / sms app, real background processing (so email apps are possible and actually _work_ without having to give your login info to someone else, for example), do a lot more with contacts / etc, and observe the system in a whole lot more detail (e.g. know when they took a picture, act on it)." Mar 18 01:16:31 errr the ethernet Mar 18 01:17:03 and g00s laments the BLE stack's suckiness on android Mar 18 01:17:05 yeah I knew it was more in depth I wasn't sure how Mar 18 01:17:18 what is BLE? Mar 18 01:17:23 bluetooth low energy Mar 18 01:17:54 my new cc2650 sensortag is shipping as we speak :D Mar 18 01:18:23 also stuff like way richer notifications, an ecosystem that has some pretty sophisticated cross-app communication + keyboards + stuff that iOS _finally_ came out with but has no widespread use yet Mar 18 01:19:36 i like that its so easy to get to c / c++ apis from iOS apps Mar 18 01:19:54 and there are tons of nice c / c++ things - and not having to use the NDK Mar 18 01:20:00 and swift looks pretty reasonable (has its warts, but they seem excited about fixing them) Mar 18 01:20:38 groxx what are they using for the build system these days? beside xcode :P Mar 18 01:20:45 xcode :) Mar 18 01:20:51 heh Mar 18 01:20:54 sounds like it's crashier than ever too Mar 18 01:21:11 you can escape all that and use just makefiles, but I don't know of many that actually do that. Mar 18 01:21:26 jetbrains has some tooling Mar 18 01:21:52 it's more of a "hey look, you don't actually need xcode!" -> two months later, they're back to tweeting about how xcode crashed. Mar 18 01:22:58 OH. and a big bonus (hopefully won't go away soon D:) - android apps get built + published + start landing on people's devices _within a couple hours_. iOS hovers around 5-7 days. you can try sooooo many more things on android, so much more quickly. Mar 18 01:23:17 iOS also has some nice stuff like the vDSP apis, i guess you could roll your own stuff like that with renderscript ? Mar 18 01:23:58 they also have the motion coprocessor, if you need to do that without draining battery Mar 18 01:24:15 there's probably a samsung api for that too, but yeah :) Mar 18 01:24:17 imho ios evolves quicker than android, and at the same time gets to users too Mar 18 01:24:22 iOS hardware is vastly superior Mar 18 01:24:42 in which way Mar 18 01:25:03 gordon_ have you tried using the gyro on a bunch of phones :( Mar 18 01:25:11 no Mar 18 01:25:38 seems like very phone reports values back differently. stuff like that Mar 18 01:25:52 1) it works as advertised way more often. 2) it's usually way faster (especially disk access omg). 3) some categories don't really exist on android in any meaningful way (TouchID, motion coprocessor, etc. there are equivalents, but they suck, and they're only on a few devices) Mar 18 01:26:37 groxx what do you use on the server ? Mar 18 01:26:59 rails, for good or bad :) plus mysql, redis, a few other side techs and some home-grown stuff. Mar 18 01:27:07 well.. it's not hard to update like 7 devices ;) Mar 18 01:27:18 ios is high-end only Mar 18 01:27:37 not only! it's on iphone 4s too! Mar 18 01:27:42 and it's.. laggy Mar 18 01:27:44 gordon_ i agree, but Google /could/ have a more stringent CTS or something Mar 18 01:27:47 that's always been the apple play, and why they're always have tiny market share Mar 18 01:27:48 can you even build apps for the 4s any more? Mar 18 01:27:58 My 4s still runs every app Mar 18 01:28:04 I've never run one that wasn't compatible Mar 18 01:28:07 I might even have a 4 Mar 18 01:28:21 with cool bumper? :> Mar 18 01:28:22 well, it's probably doomed soon then Mar 18 01:28:23 read today apple is planning to trade in android phones for new apple phones...reeks of desperation Mar 18 01:28:49 I'm actually considering switching to OSX for development/new os experience for my next laptop Mar 18 01:28:59 good luck Mar 18 01:29:03 I hate OSX Mar 18 01:29:07 <_genuser_> hey d00ds Mar 18 01:29:19 really? all my dev people recommend it to me (but they are students at university) Mar 18 01:29:26 I like OSX for dev :) it's like a sane unix/linux/*nix/bsd. Mar 18 01:29:28 because they think its a good fusion of linux Mar 18 01:29:35 yeah thats carbon copy what I hear Mar 18 01:29:47 But I've had iphones for ages and I like android more so........ Mar 18 01:29:53 dont get these people Mar 18 01:30:10 I keep trying *nixes. I keep having to resort to the CLI to fix e.g. permissions errors, within hours of installing it. 100% unacceptable. Mar 18 01:30:11 I mean i've been hardcore windows for ages, with some linux experience and no OSX Mar 18 01:30:19 usability of finder is like.. I dont know, I just cant use it Mar 18 01:30:27 Yeah I hate permissions errors on nix Mar 18 01:30:35 I'd love to recommend *nix, but it's just not there yet. keeps getting better though! Mar 18 01:30:42 I was using osx for.. 8 months ? for 10 hours per day at work Mar 18 01:31:47 and if you want to install anything (even free) from apple store you need to give your credit card Mar 18 01:32:05 which I'm not eager to do Mar 18 01:32:21 myke lol, why would you think apple is desperate http://www.kantarworldpanel.com/global/News/Apple-market-share-grows-across-Europe-US-and-China Mar 18 01:32:48 Yeah their new phone had record breaking sales which blew my mind Mar 18 01:33:17 anyone thinking apple is desperate is seriously clueless ;) Mar 18 01:33:18 well.. they finally managed to make bigger phone ;) Mar 18 01:33:35 If your phone doesn't have 4k resolution, seppuku Mar 18 01:33:58 bah. /me waits for 5k. http://www.apple.com/imac-with-retina/ Mar 18 01:34:02 dont know why apple has many users in asia Mar 18 01:34:05 now MS seems ... kinda desperate :) Mar 18 01:34:12 because bigger numbers mean better. Mar 18 01:34:13 BB too Mar 18 01:34:21 yeah, bb seems doomed Mar 18 01:34:37 but I also dont know why apple's value is worth that much Mar 18 01:34:39 they are trying to pivot into other things like medical equipment Mar 18 01:34:53 gordon_: well, they are sitting on absolute piles of cash. they're crazy profitable. Mar 18 01:35:15 gordon_ amazing profit margins from efficiencies in the supply chain Mar 18 01:35:27 they're only doing phones, tablets and laptops Mar 18 01:35:31 and hipster workstation Mar 18 01:35:34 android oems basically scrape by Mar 18 01:36:05 while google is making self driven cars, has own sattellite and own internet wires under the ocean Mar 18 01:36:30 gordon google is fueled by absurd govt funding tho Mar 18 01:36:35 or was at least Mar 18 01:36:47 nah. ads. Mar 18 01:36:55 that too Mar 18 01:37:01 But originally I think they had support Mar 18 01:37:12 Primarily user data and ads tho Mar 18 01:37:22 they also provide severs as PaaS Mar 18 01:37:32 and big data tech Mar 18 01:38:02 So I put a fragment containing a MapView (Google Maps) inside a ViewPager. Unsurprisingly, distinguishing between dragging the map and swiping is a bit difficult. Is there any simple way to solve this? Mar 18 01:38:29 rethink your design Mar 18 01:38:37 add tabs at the top and don't allow swiping the map to page Mar 18 01:38:43 heh. probably :) leave tabs, yeah. Mar 18 01:38:57 I wish I could get this article fact checked about google https://medium.com/@NafeezAhmed/how-the-cia-made-google-e836451a959e Mar 18 01:39:06 or use the screen edge for swiping Mar 18 01:39:08 AndreasL: that aside, does dragging from the edge still move the viewpager? or you could intercept touches in a parent view if it's on the edges, if not. Mar 18 01:39:24 groxx, no and yes Mar 18 01:39:49 g00s: looking toward the future Mar 18 01:40:08 for all the noise about macbooks...7% market share Mar 18 01:40:26 groxx, it does if I'm very precise, but I can only do that with my mouse apparently, not my finger. So it works, but only if you're very very precisely near the edge Mar 18 01:40:30 mobile market share under 50% even in the US, and much worse in other countries Mar 18 01:40:37 7% market share is pretty huge for a single vendor Mar 18 01:41:08 just like under 50% market share is *gigantic* for a single vendor Mar 18 01:41:19 myke: 80% in japan Mar 18 01:41:21 android may have >50% market share, but of the vendors, what does that account Mar 18 01:41:27 right but apple was vying for #1 largest company in the world, and this is all they do Mar 18 01:41:29 pfn, I was considering that. Do you have strong reason to believe that this design doesn't work well? Serious question, I'm interested if you have any experiences with it, in which case I'd appreciate you elaborating it a little! Mar 18 01:41:37 not like they have other business lines to fall back on Mar 18 01:41:38 yeah, 50% ownership by a single vendor = utter domination Mar 18 01:41:40 gordon_, that's because none of the android phones do certification or some bullshit Mar 18 01:42:05 pfn: hope android one will get it right Mar 18 01:42:17 gordon_, apple automatically does japanese conformity certification Mar 18 01:42:32 there's also google store now with nexuses Mar 18 01:42:39 but... they are not available :( Mar 18 01:45:34 but yeah, it's so unbelievably hard to get a sim in japan with a foreign phone Mar 18 01:45:36 unless you have an iphone... Mar 18 01:49:59 <_genuser_> d00ds what's up? Mar 18 01:50:06 <_genuser_> what are y'all upto? Mar 18 01:54:00 consuming internet in vast quantities Mar 18 01:54:55 anyone have any experience using phonegap? Mar 18 01:55:18 <_genuser_> groxx: heh. :) Mar 18 01:57:38 <_genuser_> only read phonegap. Mar 18 01:57:42 <_genuser_> no usage. Mar 18 02:03:52 performance issues.. Mar 18 02:04:01 with phonegap ;) Mar 18 02:04:21 anyone tested robovm ? Mar 18 02:04:40 bankai_ uses robovm i think Mar 18 02:07:25 our CTO has brought it up recently since we don't have anyone with Obj-C experience Mar 18 02:08:01 I'm trying to figure out if I should build a case against it Mar 18 02:08:17 hey all Mar 18 02:08:41 given a SENSOR_STATUS_ACCURACY_LOW can i do anything from the code? or that lies on hardware/system Mar 18 02:08:56 something about calibration Mar 18 02:21:26 yes robovm++ Mar 18 02:28:41 robovm sounds very interesting **** ENDING LOGGING AT Wed Mar 18 02:59:58 2015