**** BEGIN LOGGING AT Fri Dec 04 03:00:42 2015 Dec 04 03:11:55 hi, dl.google.com works fine. but dl-ssl.google.com is blocked in my place. I just figured out files hosted in dl-ssl.google.com is the same as dl.google.com. if so, why are there two hosts? I just don't get it. for instance: dl.google.com/glass/gdk/addon.xml is just the same as dl-ssl.google.com/glass/gdk/addon.xml Dec 04 03:12:08 Anyone ever see SharedPreferences persist after an uninstall? Running 6.0 on a Nexus 6 Dec 04 03:12:46 I'll write something into the shared preferences, uninstall the app, re-install, and am able to load what was written Dec 04 03:17:00 does your app get the same userid in an adb shell? Dec 04 03:17:43 same userid? Dec 04 03:18:37 if you do adb shell then run-as , and an ls -l, is the userid consistent across installs? Are the files literally staying on the system? Dec 04 03:18:59 hmmm... let me check Dec 04 03:19:22 I'm doing an adb install app.apk, then uninstalling from the phone, then doing another adb install Dec 04 03:19:27 so should be the same Dec 04 03:19:30 but let me verify Dec 04 03:19:31 shared preferences never persist after uninstall Dec 04 03:19:39 Anyone know a good way to avoid OutOfMemoryException with Bitmap? Dec 04 03:19:41 that's what I always thought Dec 04 03:19:42 you're doing something weird and you're reading stale data or defaults Dec 04 03:19:46 I don’t know about 6.0 - in versions of android I’ve worked with the sharedpreferences are in an xml file in a dir in the app’s sandbox top-level, called something like ‘sharedpres/sharedprefs.xml’ (not exact) Dec 04 03:19:47 but it's definitely happening Dec 04 03:19:55 like you're reading from non-internal data Dec 04 03:20:00 it's not happening like you think Dec 04 03:20:03 that's exactly the point Dec 04 03:20:39 yeah, you're probably right, but can't figure out what that is Dec 04 03:20:56 you give too little detail to go on Dec 04 03:21:25 I call PreferenceManager.getDefaultSharedPreferences with my current activity, Dec 04 03:21:36 and do a getString with a null default value Dec 04 03:21:46 but I get a non-null string in return Dec 04 03:21:56 on a fresh install Dec 04 03:22:01 over adb Dec 04 03:27:20 That's expected behavior if you have a default preference value for the key you are querying Dec 04 03:27:49 Are you calling PreferenceManager.setDefaultValues anywhere? Dec 04 03:28:22 still too little details Dec 04 03:28:26 Even after an uninstall? Dec 04 03:28:53 I'm not calling setValues before the getValue Dec 04 03:29:12 Are you calling it at all? No chance of a race condition? Dec 04 03:31:12 There's a call to getDefaultPreferences().edit().putString().apply() that happened a while ago (hours) Dec 04 03:31:38 and that string keeps popping up when I call getDefaultPreferences().getString(KEY, null) Dec 04 03:31:42 after an uninstall Dec 04 03:31:52 and re-install Dec 04 03:33:04 pfn: what could I provide that would help? I've tried to create a simple case to test, but can't reproduce without the full setup Dec 04 03:34:11 that's a hint that you set it somewhere in your code Dec 04 03:34:23 you can always check your data dirs to see if the prefs file remains Dec 04 03:35:17 One weird thing, it's only happening with a specific signed release build Dec 04 03:35:29 if I try to a debug build, it doesn't happen Dec 04 03:41:45 Ahh, think I have it figured out Dec 04 03:42:03 I'm pretty sure it's Google's Auto Backup For Apps Dec 04 03:42:19 backing up shared preference files on this device Dec 04 03:42:31 and pulling them back in on re-install Dec 04 03:43:03 yeah that'll happen Dec 04 03:43:16 might want to throw backup=false in your manifest for testing Dec 04 03:45:31 I'm surprised it's happening - not even using the 23 API level Dec 04 03:45:36 compiling with 21 Dec 04 03:46:37 I think the allowBackup=false should fix this Dec 04 03:47:06 oh. yeah it shouldn't be happening with 21 Dec 04 03:47:11 backup should only happen on api23 Dec 04 03:47:28 that's what I thought, but went through adb shell bmgr Dec 04 03:47:33 and verified that it's happening Dec 04 03:47:55 is your compileSdkVersion == targetSdkVersion Dec 04 03:49:25 yup Dec 04 03:49:29 both 21 Dec 04 03:50:40 hi, i've been trying to add tabs to a fragment for a single activity app, so i have the activity with a container that switches out fragments through a nav-drawer, but when i switch to the fragment with the tabs, the tabs/toolbar are overlaying the fragment content instead of going above it. any ideas or where to look for help? Dec 04 04:02:21 That seems to have fixed it, thanks everybody Dec 04 04:23:55 alex_PP_ still there ? **** BEGIN LOGGING AT Fri Dec 04 12:26:18 2015 Dec 04 12:35:43 i need a professional answer, on which looper/thread the received intents are handled? Dec 04 12:37:55 is there an easy way to group modules together in a folde in Android Studio? Dec 04 12:38:00 folder* Dec 04 12:38:14 for example if I have an Application module MyAppModule, and 5 Library modules MyLib1, MyLib2, ..., MyLib5, and I also have MyHelperLib1 and MyHelperLib2 Dec 04 12:38:44 right now they all show up in Android Studio in a long list. is there any way to group them into something like "my libraries" and "my helpers" ? Dec 04 12:40:42 Sure, put them in a folder, prepend the module with :foldername in your gradle files Dec 04 12:43:18 SimonVT: I did try just that but then the module apears empty in Android Studio Dec 04 12:43:43 Try again Dec 04 12:43:51 That's how you do it Dec 04 12:44:39 re-trying now... Dec 04 12:50:47 SimonVT: ok so I just moved a library-module named "mylib" into a new directory named "mygroup" Dec 04 12:51:34 SimonVT: then I in "settings.gradle" from "include ':mylib" to "include ':mygroup:mylib'" Dec 04 12:52:59 SimonVT: then I clicked on Sync Projects, and once that finished in the Project section (with "Android" selected in the dropdown at the top), the "mylib" entry is gone, and I now see a "mygroup" entry that is empty Dec 04 12:53:35 am I missing something? Dec 04 12:54:30 No, that's it Dec 04 12:55:01 I also changed in my application-module "myapp" 's gradle file "myapp.gradle" from "compile project(':mylib')" to "compile project(':mygroup:mylib')" Dec 04 12:55:46 then why does it show me an empty "mygroup" entry? Where is the "mylib" library? Dec 04 12:57:31 Oh, you use the android view Dec 04 12:57:54 Yeah, it seems the folder show up as separate entries there Dec 04 12:58:07 File a bug, switch to the project view Dec 04 13:02:29 SimonVT: yeah, that's what I figured. where do I file the bug? Dec 04 13:03:07 b.android.com Dec 04 13:08:28 SimonVT: I'm using Android Studio 1.5, that's the latest stable build right? Is there a newer version I can try before filing this bug? Dec 04 13:09:28 For notification, if I give the same notification id, it updates the current notifiation. Is there a way that if some variable is same, instead of update it groups both the notifications? Dec 04 13:10:08 There's a 2.0 preview Dec 04 13:12:36 WantToCode, not that I know of, you'll need to handle the grouping yourself Dec 04 13:14:15 But there isn't a way to check notification by Id Dec 04 13:14:26 do I maintain a collection of sent notifiations? Dec 04 13:15:17 Zharf, ^ Dec 04 13:15:44 mark a message read when the user clicks (or possibly dismisses) the notification and then when you need to build a new notification just bundle all unread messages? Dec 04 13:15:56 or something like that Dec 04 13:16:26 Yep. Dec 04 13:16:32 ok so basically maintain a collection. Dec 04 13:16:35 Store list of received notifications, mark them "read" Dec 04 13:16:51 sharedprefs would be enough for this? Dec 04 13:16:54 When applicaiton is opened or notification is dismissed (there's an intent for that) you clean up the database. Dec 04 13:17:13 people Dec 04 13:18:47 i'm using recyclerview and i want such behavior - when view scrolled up less then 25% of screen, it must move back, and if it scrolled more than 25% it must move until end of screen and it all must be animated Dec 04 13:18:54 WantToCode, the way to handle the data doesn't really matter, so yeah, sharedprefs could be used... though at some point you might want to use a real database Dec 04 13:19:21 no Dec 04 13:19:25 no no no Dec 04 13:19:40 Zharf: have a look at NoSQL doctrine Dec 04 13:19:43 Zharf, thanks Dec 04 13:19:59 WantToCode: its ok, except real database part Dec 04 13:21:22 squ, you might want to clarify your point, I'm not interested otherwise Dec 04 13:21:29 ok Dec 04 13:42:42 i'm still having a problem saving and then reading data from a text file. http://hastebin.com/wepubideyi.avrasm i have my writing function on top, and my reading function on bottom. when i try to read it, it only ever tells me the very last thing that was written, as opposed to the entire file. what's the deal with that? Dec 04 13:44:12 last thing? Dec 04 13:44:19 you only write one line Dec 04 13:44:55 I suppose your problem is that you're probably not opening in append mode Dec 04 13:45:30 you should use Context.MODE_APPEND Dec 04 13:46:28 well, the code that writes can be called multiple times. its a button Dec 04 13:46:44 like I said. Dec 04 13:47:05 that did it! thank you! Dec 04 13:47:08 without MODE_APPEND it will clear the file Dec 04 13:47:11 i've been busting my head open about that for weeks Dec 04 13:47:33 thank you very much Dec 04 13:47:38 no problem Dec 04 13:49:02 http://stackoverflow.com/questions/20835628/how-to-draw-a-pie-chart-in-android how would i actually utilize the code shown just below the accepted answer? the one about not using third party libraries. would i need some object in my xml to draw the points to? i'm unfamiliar with this sort of thing Dec 04 13:53:53 you need to draw it on a canvas (such as custom view's onDraw(Canvas)) Dec 04 13:54:00 just don't do any heavy calculations in onDraw Dec 04 14:06:45 Hi, I need to install an application from Play Store on my Emulator, is there a simple solution to htat? Dec 04 14:10:57 Can you trigger a click event on an activity? Dec 04 14:11:04 Like exactly like if the user clicked on it Dec 04 14:11:28 My activity is overlayed with a Dialog. If I click outside of the Dialog, I want to pass the click to the underlying activity Dec 04 14:11:50 *brr* Dec 04 14:12:12 Zharf: i'm not finding the canvas? is that a layout type or a widget? Dec 04 14:12:22 (I'm doing weird things because I have to deal with the shitty YouTube Player API, not my fault) Dec 04 14:13:44 can you actually catch the touch events on the side of the dialog? I don't know, but you could try to pass those touch events to the activity somehow... I doubt it'd work though :p Dec 04 14:15:23 Catching the event seems easily doable, the problem is, can I pass the event to the whole activity Dec 04 14:15:35 And let it be handled like it would without the dialog overlay Dec 04 14:16:17 no clue Dec 04 14:16:47 Rush2112, you can make your own Canvas, or you can create a custom view and override onDraw Dec 04 14:23:50 i have the following RxJava chain using retrofit, and i'm trying to find out why, after the call succeeds, the response object in .subscribe() is null.. any ideas? https://gist.github.com/xorgate/676f729f851df6ffed8d Dec 04 14:31:20 ok so Zharf im still super confused but i have this code now that should activate on a button press. what else do i have to do? http://hastebin.com/ukebebeyiv.avrasm Dec 04 14:33:49 two quick questions : in the dependencies block some variables have the ".ext" part and some others not, shouldn't all of them use it? https://github.com/googlecodelabs/android-testing/blob/master/app/build.gradle Dec 04 14:34:51 Example is $rootProject.glideVersion vs $rootProject.ext.espressoVersion but they are both defined here https://github.com/googlecodelabs/android-testing/blob/master/build.gradle Dec 04 14:38:28 Rush2112, depends on what you want to do with it, put it in a Bitmap and show it on an imageview? Dec 04 14:38:52 the bitmap stuff is all in code, right? not in the xml? Dec 04 14:39:05 yep Dec 04 14:39:10 Zharf: could you give me any example syntax of how to do this? Dec 04 14:41:41 something like Bitmap b = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); Canvas c = new Canvas(b); /* draw stuff on c */ imageView.setImageBitmap(b); Dec 04 14:43:20 thank you! and thats all i would need? Dec 04 14:44:37 and what's the imageView thing? i'd still need to create that Dec 04 14:44:58 if you have an imageview in your layout, use findViewById to get that Dec 04 14:45:06 it's just an example where you can put the bitmap into Dec 04 14:45:22 I don't know what you're doing so I can't be very specific Dec 04 14:45:42 on the other hand figuring things out for yourself is the best way to learn so I don't want to give full answers ;) Dec 04 14:46:06 yeah i just found it whoops Dec 04 14:46:08 didnt realize it was a widget Dec 04 14:46:14 argh.. i was using OkHttp's Response and not Retrofit's Response :((( Dec 04 14:46:58 guys im not sure where to ask this, but, is it possible to read whatsapp messages without having them marked as read? im assuming i would need to use adb to get onto my phones sd card, and copy out the data from there? Dec 04 14:47:41 Rush2112, getting off work, I'll be unavailable for the next hour and a half or so Dec 04 14:48:11 thats fine! i think ive got it, thank you Dec 04 14:49:40 anyone around to help? Dec 04 14:52:41 fergal and how can you read it after adb pull? Dec 04 14:53:30 gotnut: are you asking how will i decrypt it? Dec 04 14:54:19 yes. Dec 04 14:56:25 maybe you can hook into the notification system Dec 04 15:00:45 not a dev question, but how can i reboot a phone with a broken power button? Dec 04 15:02:05 kungp use adb Dec 04 15:03:13 don't i have to get to fastboot mode (forgot what it's called) for that? Dec 04 15:03:44 kungp no, not bootloader.. adb reboot Dec 04 15:04:31 you can find apk from playstore which will reboot too.. Dec 04 15:04:54 So for a ViewPager, if I DONT want the user to be able to scroll on their own, I can just override the ViewPagers onInterceptTouchEvent method and do nothing Dec 04 15:05:53 gotnut: adb worked fine, thank you :) Dec 04 15:08:07 gotnut, you can't reboot from an app, not since 2.x or if you're rooted... They (smartly) blocked that. Dec 04 15:08:28 but yes, adb reboot is a good answer, so long as you have adb turned on, which it sounds like you did Dec 04 15:08:40 (oh, screen isn't broken. so at least you can fix that.) Dec 04 15:10:01 dragorn you cant from an app? lols never thought that.. thanks for info.. Dec 04 15:10:13 i remember on froyo , you could reboot your phone will a null Notification object sent to NotificationManager Dec 04 15:11:31 gotnut, otherwise malware could just throw you into a reboot loop. you also can't touch airplane mode, other data settings, etc now. They've moved a LOT into "system signed apps only", so you have to either have the production firmware key (you don't, and can't, unless you build your own firmware) or you have to have it rooted, no dm-verity, and put it in /priv-app/ Dec 04 15:14:20 Can I ViewPager be used with Activities instead of fragments? Dec 04 15:14:35 drose379 no Dec 04 15:14:41 Has to be fragments? Dec 04 15:14:46 or views Dec 04 15:15:22 What if I dont want the user to be able to scroll, could I just override the onInterceptTouchEvent method? Dec 04 15:15:31 Scroll through the viewpager I mean Dec 04 15:15:53 why use a viewpager then Dec 04 15:16:09 I have a bar at the bottom for next and back Dec 04 15:16:13 I want the sliding effect Dec 04 15:16:22 Its a wizard Dec 04 15:16:50 If that makes sense g00s ? Dec 04 15:17:02 yeah, there are some wizard libraries that do this also Dec 04 15:17:10 but .. view or fragments Dec 04 15:17:41 Fragment would prob be better Dec 04 15:17:43 Thanks g00s Dec 04 15:17:59 Zharf, omg it just works Dec 04 15:18:21 drose379 its probably easies to just have MyWizardActivity, especially if step 2 depends on step 1 data Dec 04 15:18:44 It does g00s, do you mean have that one Activity have the 2 views? Dec 04 15:18:54 yeah Dec 04 15:19:14 How would that work though? Would the second view be set to GONE to start? Or does the ViewPager take care of that? Dec 04 15:19:23 im going insane Dec 04 15:20:07 I keep getting a JSONException or a NullpointerException. neither of which should be happening Dec 04 15:20:18 https://gist.github.com/Ribesg/bea4862ca2ff98ee7935 Dec 04 15:20:26 Whats the JSONException say/ Dec 04 15:20:28 drose379 the viewpager should take care of it Dec 04 15:21:01 g00s, is the second view in a different layout file? Or right with the first view? I've only used VP with frag before, never view Dec 04 15:21:09 im stepping through my code, and when i hit the line that causes the error (it's a two part if statement), I manually enter each part of the condition, and both pass Dec 04 15:21:37 but when i proceed, it throws the JSONExceptiopn Dec 04 15:21:47 Whats the exception message? Dec 04 15:21:53 hang on Dec 04 15:21:56 let me see Dec 04 15:23:45 g00s, which adapter is used for Views? Dec 04 15:24:06 damnit. now it's not doing it :/ Dec 04 15:24:14 drose379 PagerAdapter Dec 04 15:24:40 I dont see any methods that return a View though Dec 04 15:25:47 drose379 did you google this ... Dec 04 15:25:57 Yeah im looking at the docs for PagerAdapter rn Dec 04 15:30:47 Hmm Dec 04 15:31:08 The thumb of my SeekBar gets focused when I click on the view containing the view containing it Dec 04 15:31:17 How do I prevent this ? Dec 04 15:41:44 So g00s how will the Activity have access to the views that the ViewPager is currently showing? Dec 04 15:45:11 Hi my boy has blocked my old xperia android device somehow he maid it... I simply can't recover the device! What's the best solution? Dec 04 15:46:28 internet is not properly configured... Dec 04 15:46:58 any advice? Dec 04 15:47:16 Maybe try #andrid Dec 04 15:47:20 jsparks, do you have root ? Dec 04 15:47:32 or a custom recovery ? Dec 04 15:48:19 I can't do anything I even tryed to reset default etc but the combination of power + volume down keys won't do anything, probably not Dec 04 15:48:40 reflash with pc companion ? Dec 04 15:48:44 Please use #android for help with your device, this channel is for app dev Dec 04 15:49:20 SimonVT ok sorry for the trouble Dec 04 15:49:44 freakyfidlers only have mac Dec 04 15:52:09 having an issue, in which my views wont redraw one my Palette is loaded... source here: https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/CubeDetailActivity.java Dec 04 15:52:21 pertinent code is on lines 85 and 242, afaik Dec 04 15:52:26 any ideas? Dec 04 15:58:07 Having an issue with a custom PagerAdapter.. will post code in a sec Dec 04 15:58:44 Im not seeing the views when I attach this adapter to my viewpager.. http://pastie.org/private/aqxy5eolvkxcr9aqz5msaa Dec 04 16:04:13 hi, it's my first time implementing a broadcast receiver Dec 04 16:04:17 erm Dec 04 16:04:21 ContentObserver Dec 04 16:04:56 what should I do with my activity, i don't want it to be visible to the user, can I kill it? Dec 04 16:06:41 JFlash you could read some android stuff, and stop faking it + asking silly questions Dec 04 16:07:32 ey g00s did you see the adapter I posted? Dec 04 16:07:41 Cant figure out why its not showing my views Dec 04 16:08:14 Use hierarchy viewer to figure out why Dec 04 16:08:37 What do you mean? Dec 04 16:09:30 * pfn twiddles his thumbs while he builds aosp Dec 04 16:09:41 Check your view hierarchy with hierarchy viewer Dec 04 16:09:41 Make sure your views are in the hierarchy, has a size, are on screen, ... Dec 04 16:10:16 The ViewPager which should be the parent is on the screen Dec 04 16:10:36 hi, g00s, how's IRC bullying working out for ya? Dec 04 16:11:55 interesting, aosp builds using jack now Dec 04 16:12:01 very very interesting Dec 04 16:12:11 JFlash i have little tolerance for people that misrepresent their qualifications (by your own admission) and then having stated knowing X, ask elementary questions about X that you could have learned just by reading intro to android 101 Dec 04 16:12:16 pfn, heh, unless you've got a very beefy build server, enjoy the wait :P Dec 04 16:12:31 well, it's in my vm... and I'm just building some stuff under packages/apps Dec 04 16:12:36 (hacking exchange) Dec 04 16:12:45 again, smart lock started honoring device admin poilicy Dec 04 16:12:49 SimonVT, heres the XML file: http://pastie.org/private/eaab0gyollhcmp9cnfrsa#74 Dec 04 16:12:57 ] Dec 04 16:12:58 oops Dec 04 16:13:01 Ribesg, cool Dec 04 16:13:01 Communication error with Jack server (52) Dec 04 16:13:02 FU Dec 04 16:13:02 I guess Dec 04 16:13:28 maybe if I switch branches it won't try to use jack... Dec 04 16:13:44 hack the planet Dec 04 16:13:52 question: will my activity be brought to the foreground when the onChange of my ContentObserver is called? Dec 04 16:14:15 can if so , can I register it from a server instead. I'm lost folks, this is hard stuff Dec 04 16:14:20 JFlash, does the onChange shoot off any intents for activities? Dec 04 16:14:35 canvs2321-, no Dec 04 16:14:43 Anyone here happened to use Micrsooft SDK for Microsoft Band 2? Dec 04 16:15:21 actually I dont want it to bring anything visible up Dec 04 16:15:29 I just want to save data to SQL Dec 04 16:15:59 then don't if you don't need it. if you have access to a context and such in onChange or wherever without need for an activity context go for it Dec 04 16:16:31 canvs2321-, thanks, hopefully it will work fine Dec 04 16:17:16 I'm just tryingto make a mental map of what I need to do to make a phone_read listener work across phone restarts Dec 04 16:17:36 JFlash, you problem is just hard to visualize without me having expierence with ContentObserver. but seems you are not wanting an Activity to start, but also seems like you'd be the one starting it based of what you've said. So it just seems you are in control Dec 04 16:18:10 dragorn are you familiar with any android devices that support BLE peripheral mode ? my n7 running android 6 does not Dec 04 16:18:14 also... can I register the listeners from a service instead of an activity Dec 04 16:18:40 wild guess, how about the same way you register an alarm on phone boot? Dec 04 16:18:41 because otherwise I think the user will have to open the app evrytime the phone is restarted Dec 04 16:18:46 http://developer.android.com/training/scheduling/alarms.html#boot Dec 04 16:19:20 JFlash why even a need for listeners in the sense of activity/service, you can listen for broadcast and register them in manifest and react accordingly with spawning your own activities or just doing background work Dec 04 16:19:22 but do you think I can register content observers using that same workflow Dec 04 16:20:03 instead of using getActivity() Dec 04 16:20:14 can I just use 'MainActivity.this' (MainActivity being my class name) Dec 04 16:20:24 go do some testing or more reading is best answer from me Dec 04 16:20:46 good, switching back to 5.x branch dropped use of jack, I hope Dec 04 16:20:47 I thought there were some security restrictions that prevented from registering ContentObserver unless the resgistration comes from an app actually opened by the user (willyingly) Dec 04 16:22:16 canvs2321- , well the broadcast is to listen for phone_read right? I think there are even more restrictions there Dec 04 16:23:22 the point is... Android tries to make it so that I can only read phone state if an activity is firest opened by the user. The company can run the app before it gives it to the employee... however... Dec 04 16:23:48 * pfn adds jflash to the ignore list Dec 04 16:23:53 fml, manifest has no flag for BLE peripheral mode, and hardly any devices support it Dec 04 16:23:54 as amusing as he is... not worth the effort to flame Dec 04 16:24:14 ... I'm afraid that after the phone is restarted, the user would have to open the app willingly in order for the BroadcastListeners to be applyed Dec 04 16:24:53 have you actually tried? Dec 04 16:25:11 the point is .. I can run the app the first time.. but the registration of the permissions I need has to be persistent across restarts. Even that I can make the app run by itself upon restart Dec 04 16:25:33 Duiker101, no , I'm trying to decide the correct course of action at this point Dec 04 16:25:39 JFlash, check out manifest registering, no need for any activity to be loaded and a registerBroadcast stuff. just depends on your level of access when using broadcast receivers in manifest to listen Dec 04 16:26:56 canvs2321-, there are certain services you cannot listen for unless the user has specifically opened your app first. this is security measure since Android 3.1 Dec 04 16:27:10 JFlash, get all your theories out on paper and start doin some testing. don't expect to theorize and be perfect on execution. just work at it and get things flowing then optimize Dec 04 16:27:39 of course I plan to do testing, I just want to save some time Dec 04 16:28:07 well yeah i'm not assuming the app hasn't been ran atleast once to set stuff up. but you can setup broadcast listeners in manifest and if app is installled it should hit depending on access Dec 04 16:28:42 anywho, go with your idea and come back with error logs in a pastebin and related code if you can Dec 04 16:29:43 and no errors equals no pasting meaning you are winning, so go win! Dec 04 16:30:35 but will the resgistration persist accross restarts? Dec 04 16:31:05 show me a registration and how it fails, then i will tell you yes/no/maybe Dec 04 16:32:02 Is there a way to make NavigationView's header sticky? Dec 04 16:32:20 and to keep your insanity goin a bit, yes, once an app is installed, it listens............does it have access.........to be continued Dec 04 16:32:21 JFlash, I think the answer is, we don't know, but it shouldn't, if it does, come back and we'll figure it out Dec 04 16:36:46 Duiker101, got it, I'm on it!! Dec 04 16:37:30 Correct Dec 04 16:48:22 is there a decent software/plugin or whatever to do live coding of views? not just the XML but proper views like canvas drawing. Dec 04 17:05:17 what up foos... Dec 04 17:06:52 Is anyone here using DBFlow ? Dec 04 17:15:06 romulof I've never used it but I've done some research on it Dec 04 17:15:12 why do you ask? Dec 04 17:15:25 So I need to get the view from my ViewPager, in order to access things in the view Dec 04 17:15:41 Would that be something like adapter.getView().findViewById()? Dec 04 17:15:59 Or just pager.findViewByid() Dec 04 17:17:28 lexton : care to share research results? Dec 04 17:19:24 you should be able to do pager.find Dec 04 17:19:48 if you are working with fragments is a bit more tricky but with a normal viewpager you should be ok Dec 04 17:24:58 vigilancer I've only done basic research on dbflow, although from what I've heard from others it's fast and a decent orm implementation Dec 04 17:25:03 how can I bundle a file with my application and then get that file as a File object? Dec 04 17:25:16 I haven't had the time to use it Dec 04 17:25:51 I've been using it on a sightly large project Dec 04 17:26:05 It's kinda incomplete, but fast Dec 04 17:26:11 Huge potential Dec 04 17:28:23 romulof why does it feel incomplete? Dec 04 17:29:34 it's missing lots of simple helpers Dec 04 17:29:47 such as `Model.findById` Dec 04 17:30:31 ops ... "public static MyModel findById(Long id);" Dec 04 17:31:12 ok, it's easy to implement, but it's the kind of thing you expect to find out of box Dec 04 17:31:21 also, reverse relationships could be generated Dec 04 17:31:45 Anyone know how to gain access to the current view for a viewpager Dec 04 17:34:17 drose379: what do you mean Dec 04 17:34:31 I have an activity, and a viewpager, the viewpager has 2 views Dec 04 17:34:41 1 is showing by default, the other shows if you scroll Dec 04 17:34:44 views or fragments? Dec 04 17:34:46 Views Dec 04 17:35:05 I need access to the views being shown inside the viewpager Dec 04 17:35:11 I tried pager.findViewById(); Dec 04 17:35:48 orbyt_, does that make sense Dec 04 17:36:11 override setPrimaryItem() and hold a reference to the view Dec 04 17:36:21 drose379: yep, ive only ever used fragments though. Doing a bit of googlnig on it Dec 04 17:36:28 googling* Dec 04 17:36:42 danijoo, what if the user has scrolled over and is looking at the next view Dec 04 17:37:00 Is there a way to show which view is currently being shown Dec 04 17:37:06 That way I can store ref to the correct view Dec 04 17:37:18 what I told you drose379 Dec 04 17:37:39 Let me look at that method, one sec Dec 04 17:37:59 So setPrimaryItem is called automatically Dec 04 17:38:06 I should just save ref there, and use a getter method Dec 04 17:39:39 could you just use getCurrentItem() and then retrieve it from whatever array/collection your views are in when you added them in your adapter? Dec 04 17:39:47 or would that not work Dec 04 17:40:02 orbyt_, no] Dec 04 17:40:17 Why not? Dec 04 17:40:29 ^ im wondering as well Dec 04 17:41:00 if you add all the views to an array adapter you kinda work against what viewpager does Dec 04 17:41:07 About DBFlow (part 2): the examples in their documentation don't work Dec 04 17:41:23 -adapter Dec 04 17:41:40 because it should instantiate and GC views as needed to save memory Dec 04 17:42:15 Well yes, but I only have 2, so it does them both at the same time Dec 04 17:42:50 danijoo, still getting a NP exception when using what you explained Dec 04 17:42:52 Want to see the code? Dec 04 17:43:35 Simple: http://pastie.org/10607085 Dec 04 17:43:49 drose379: out of curiosity why arent you using fragments in the viewpager? Dec 04 17:43:59 Views would be better for this case Dec 04 17:44:11 rgr Dec 04 17:44:21 yeah with fragments its easy.. Dec 04 17:44:33 because they get a tag you can find them with Dec 04 17:44:44 Think I should just use Fragments? Dec 04 17:44:54 Did you see the code? Why would I still be getting NPE when trying to access views Dec 04 17:45:10 Depends why you say views are better for your case Dec 04 17:45:32 I guess theyre not Dec 04 17:45:42 Frags will be better so I can have each views logic seperated too Dec 04 17:45:48 drose379, cant tell from that snippet Dec 04 17:46:01 because it depends on lifecycle if theres already a view set yet Dec 04 17:46:05 Now to convert 2 activities to Fragments Dec 04 17:46:09 you cant do this in onCreate Dec 04 17:46:11 drose379: There’s not enough context in that snippet to tell Dec 04 17:46:28 Ok, well I think im gonna go with fragmentAdapter anyways Dec 04 18:00:52 I'm using a standard view in a viewpager, some of the views load a textureview for playing back video Dec 04 18:01:21 would it be possible to start and stop videos from the pageradaptor methods? Dec 04 18:01:44 I can access the textureview from setPrimaryItem Dec 04 18:02:00 View myTextureView = mCurrentView.findViewById(R.id.video_view); Dec 04 18:02:12 not sure how to get to the mediacontroller from there to start and stop video Dec 04 18:02:53 "Invoking Nearby from a Service is not supported" lame Dec 04 18:03:18 google is making it more and more difficult to do interesting things in the background Dec 04 18:03:26 may as well just use iOS Dec 04 18:06:43 g00s: They’re just making it easier for you to worship at the altar of the almighty battery Dec 04 18:07:44 yeah in my scenario, i expect the device to be plugged in to power source, but the app is constantly doing something Dec 04 18:07:56 hi, g00s, I'm back Dec 04 18:08:00 \o/ Dec 04 18:08:07 getting this error: android.database.sqlite.SQLiteException: no such column: Calls._ID (code 1): Dec 04 18:09:09 hmm... cursor.moveToFirst() might fix it Dec 04 18:10:19 dammit , I need to do "_id DESC" not Calls._ID DESC Dec 04 18:10:34 stupid stackoverflow code! Dec 04 18:17:56 great, and since Nearby pops up a permission dialog and you need onActivityResult, won't work for child fragments Dec 04 18:20:51 I have a screen with a sign in button and a sign up button. Should clicking these buttons open up a new activity (a different one for each) or just replace the main fragment on the current activity? Why? Dec 04 18:21:12 i like using fragments for the sign in/sign up flow Dec 04 18:21:12 autrilla you can look at how iosched does it Dec 04 18:21:17 better a new activity I think Dec 04 18:21:23 or depends Dec 04 18:21:26 Duiker101: why Dec 04 18:21:41 you can even pop up a dialog or activity with dialog theme Dec 04 18:21:52 isnt the guideline that every new screen should be a new activity? Dec 04 18:21:56 or DialogFragment :| Dec 04 18:21:58 probably activity is easier, separate the the stuff you need, fragments you can probably do cooler stuff but might require a bit more thought Dec 04 18:22:29 yes it is, but if you consider apps that do sort of splash screens or some shenenigans like that Dec 04 18:22:31 i say fragments, because then you can keep all the code relating to sign in/sign up together Dec 04 18:23:14 i guess it depends how you want it to work with the activity stack, back button etc Dec 04 18:23:19 well that would be the case for an activity too. one perk of the activity is, you can invoke it from anywhere in cases like expired credentials Dec 04 18:23:25 s73v3r: it's all together already Dec 04 18:23:57 I abstracted all sign in/up code out. I don't want that stuff in my activities/fragments. Dec 04 18:24:07 the apps I’ve worked on have all been ones where you sign up at front, and credentials don’t expire util you leave the app Dec 04 18:24:27 credentials will basically never expire Dec 04 18:25:06 how long is your sign up flow? Dec 04 18:25:14 what if the user changes password from somewhere else? what if they leave the app in the background change pass from another phone and get back? Dec 04 18:25:23 there could be cases, unlikely, but there could be Dec 04 18:25:27 click the sign up button, gimme your email, gimme a password, dine Dec 04 18:25:29 done* Dec 04 18:25:38 Duiker101: they get an auth token Dec 04 18:25:44 which won't expire, so w/e Dec 04 18:25:53 :o Dec 04 18:25:59 Can I exclude a certain test file when running espresso tests from the command line? Dec 04 18:26:15 welp ok lol, anyway, you cna stick it in a fragment and if you need it stick the fragment in an activity Dec 04 18:26:19 so you cover everything Dec 04 18:28:07 Using a fragment would mean moving all the stuff I currently have in my activity to a fragment, hmmm Dec 04 18:28:27 then stick to the activity, an activity is not wrong Dec 04 18:28:49 i've been reading that proguard should really only be used on the release version of an app, but i'm hitting the dex method limit while developing, using the debug version. what's the recommended way to avoid the limit while developing? Dec 04 18:29:12 autrilla my app doesn't have anything in activities except fragment switching code ;) Dec 04 18:29:23 multidex? Dec 04 18:29:26 i think activities should be mostly empty Dec 04 18:29:38 g00s: reasoning? Dec 04 18:29:58 seand I think you can turn off obfuscation so it would still minify, but not mess make your stacktraces unreadable Dec 04 18:30:03 they are just life support for fragments :) Dec 04 18:31:23 seand you can add your debug build type Dec 04 18:31:23 minifyEnabled false Dec 04 18:31:25 in the gradle Dec 04 18:31:26 g00s: no no, why did you decide to do it that way? Dec 04 18:31:33 i mean true Dec 04 18:32:03 joshkovach: okay, thanks Dec 04 18:32:09 Duiker101: yeah, that's how you turn on proguard Dec 04 18:32:42 there should be another line for proguard Dec 04 18:33:24 You could enable multidex for debug builds: http://developer.android.com/tools/building/multidex.html#dev-build Dec 04 18:33:30 put -dontobfuscate in your proguard-debug-rules.pro and use that file when you configure it in gradle instead of the main one Dec 04 18:33:54 there might be more to do, though Dec 04 18:34:25 autrilla, the reason for having all in fragments is that they are very easy to reuse, whereas activities are not. for example you can have a fragment within a fragment but not an activity in another activity Dec 04 18:34:36 SimonVT: yeah i saw that page, i just wasn't sure what the recommended way was. i guess most people don't run into the dex method limit, though Dec 04 18:35:44 i guess i'll try both ways and see which is faster to build: multidex vs proguard without obfuscation Dec 04 18:36:13 thanks guys Dec 04 18:36:21 multidex, by far Dec 04 18:36:34 No need to test Dec 04 18:36:43 oh okay, thanks! Dec 04 18:38:25 I would also suggest checking your libraries, they count toward your limit Dec 04 18:40:59 Duiker101: yeah i know, i'm using the API client library for java which has a bunch of dependencies Dec 04 18:41:34 api client library? Dec 04 18:42:06 https://developers.google.com/api-client-library/java/google-api-java-client/setup Dec 04 18:43:11 Ah I see! thx Dec 04 18:45:37 noob question, but I can create my own custom classes right? and instantiate them from my MainActivity Dec 04 18:46:20 nadav yes Dec 04 18:46:29 excellent, thanks Dec 04 18:51:10 whos idea was it to limit the password that unlocks the device to 17 characters? Dec 04 18:51:53 jhon Dec 04 18:53:30 So, if I create a custom class, and I want to access activity data Dec 04 18:53:36 How to modify the strings.xml from within java? (i tried googling it, but I probably dont know how to put this into the words, to get the right result) im not asking for spoonfeeding, a point to the right direction would be appreciated too Dec 04 18:53:38 I need to do something with FragmentManager? Dec 04 18:54:25 you can pass a reference to the activity in the constructor of the class. Dec 04 18:54:37 You don't, shibari_ Dec 04 18:54:43 A class is a very generic thing in Java, it's on an Android specific thing Dec 04 18:55:20 I see. Thanks Dec 04 18:55:55 SimonVT: so, if for example i have a text view with "hello world" that stores that string in strings.xml and there is a button that should change that text to "hello android", thats not possible, or if it is how should i do it? Dec 04 18:56:28 Show another string Dec 04 18:58:08 hmm, good point. So if i have two strings, how should i make the content_main.xml use the other, onClick of a button ? Dec 04 18:58:18 i still have to change an xml :/ Dec 04 18:58:34 TextView#setText Dec 04 18:59:14 gotcha, sorry for the stupid questions(im still quite a newb) and thanks for help ^_^ Dec 04 19:01:38 anyone know , on GMS Nearby Messages, what they mean by TTL (time to live) ... what is living? the pairing relationship, or how low messages are kept, or something else ? Dec 04 19:02:24 anyone done any looking at React Native? Dec 04 19:04:25 these docs are horrendous https://developers.google.com/android/reference/com/google/android/gms/nearby/messages/MessageFilter.Builder Dec 04 19:04:35 too bad its not even open source, no way to look at the code Dec 04 19:04:56 g00s: rate it 1 star Dec 04 19:05:06 seand lol, where is that Dec 04 19:05:12 top right corner of the page Dec 04 19:05:19 er content area Dec 04 19:05:22 ah ok i have to sign in Dec 04 19:10:38 s73v3r : I have my doubts that any cross-mobile-platform framework is worst to look at Dec 04 19:11:29 well, it does use native widgets, as opposed to using webviews Dec 04 19:11:49 lol they didn't even try with this class https://developers.google.com/android/reference/com/google/android/gms/nearby/messages/MessagesOptions Dec 04 19:12:33 awesome, 1 star is "unusable documentation" Dec 04 19:12:43 * g00s freely gives out 1 stars Dec 04 19:13:01 you are in an obscure part of the docs Dec 04 19:13:12 g00s, don't forget to add some fivers to motivate them) Dec 04 19:15:13 * seand will help you give out 1 stars Dec 04 19:19:34 yay, hacked up email again Dec 04 19:21:33 ? Dec 04 19:28:05 Hello might I ask a troubleshooting question here because #android-root is inactive Dec 04 19:28:26 No, try -root later Dec 04 19:28:39 Im kind of in a hurry :/ Dec 04 19:28:41 oh well Dec 04 19:29:19 Best way to send data from a fragment to a parent activity? Dec 04 19:29:36 drose379 thats answered in the fragment docs ;) Dec 04 19:29:36 I was thinking LocalBroadcastManager, but is there any other systems I should think about? Dec 04 19:29:42 Oh is it? Dec 04 19:29:50 EventBus Dec 04 19:30:17 lolcycle is lolcycle Dec 04 19:30:20 http://imgur.com/EkKRRiO anyone can shed some light? Dec 04 19:30:59 is the onResult method correct? Dec 04 19:31:09 what's the quickfix, if any? Dec 04 19:31:37 nadav: put cursor on the red underlined stuff, press alt-enter Dec 04 19:31:40 drose379, depends, you can do just getActivity if you really want to be dirty Dec 04 19:31:42 Yeah, it's correct Dec 04 19:31:52 g00s, what part of the docs does it describe this? Dec 04 19:32:13 http://developer.android.com/guide/components/fragments.html Dec 04 19:32:17 Woha, thats nice sq Dec 04 19:32:34 "Communicating with the Activity" Dec 04 19:32:57 Thakns g00s Dec 04 19:33:05 g00s: for me that link redirected to http://developer.android.com/intl/ko/guide/components/fragments.html and now everything is in korean Dec 04 19:33:20 lolwut Dec 04 19:33:29 What you guys think of this UI, user can not scroll, all scrolling is done by the buttons: https://vid.me/02Ne Dec 04 19:33:37 yeah dev.android.com often redirects to korean Dec 04 19:33:49 so weird... Dec 04 19:33:56 http://developer.android.com/intl/en/guide/components/fragments.html Dec 04 19:34:59 drose379: srsly move location icon to the right Dec 04 19:35:03 at least do that Dec 04 19:35:16 Oh sq its you Dec 04 19:35:31 Yeah, I dont see what you mean about moving to right showing its a button? Dec 04 19:36:22 is the icon a button? Dec 04 19:36:43 Yeah seand Dec 04 19:37:04 then yeah, i would move it to the right as well... it's not obvious to me that it's a button and not just a descriptive icon Dec 04 19:37:06 open settings/dialog windows/whatever in any app. you'll see that (non-clickable) icons are always located on the left, while clickable stuff is usually on the right Dec 04 19:37:37 Ok, I will move it to the right then Dec 04 19:38:49 what did you use to take the screen capture? Dec 04 19:39:01 http://imgur.com/hcAcP1o - Another peculiar error Dec 04 19:39:09 drose379: Don’t move it to the right, move it to the end Dec 04 19:39:18 Android Studio Duiker101 Dec 04 19:39:22 when I click the alt-enter auto complete, it changes it to ConnectionState type, but then it gives me another error Dec 04 19:39:26 s73v3r, isnt that the same thing? Dec 04 19:39:34 you have importent the wrong thing I think Dec 04 19:39:49 android studio? :o how? Dec 04 19:39:50 yes and no Dec 04 19:40:01 Ill show you Duiker101 Dec 04 19:40:02 using end, you’ll automatically get support for RTL languages Dec 04 19:40:02 One sec Dec 04 19:40:06 Ah ok Dec 04 19:41:01 drose, don't worry I found how ;) Dec 04 19:41:13 Oh ok Dec 04 19:41:21 but thanks, I didn't know it was possible Dec 04 19:41:22 Well since I already uploaded this: here Duiker101 Dec 04 19:41:23 http://i.imgur.com/fCyYa4q.png Dec 04 19:41:38 :) Dec 04 19:41:44 thanks ^^ Dec 04 19:41:59 Yep Dec 04 19:43:02 why does DownloadManager.getUriForDownloadedFile() return the wrong URI on some phones...it seems to return a Uri that links to the temp file it was using during download, not its final destination Dec 04 19:43:17 the file does appear in the directory I told it to, but the app gets the wrong link Dec 04 19:43:25 Where am I supposed to set the tag for a fragmnet Dec 04 19:43:47 usualy in replace/add/show() Dec 04 19:44:00 What do you mean Dec 04 19:44:06 http://imgur.com/hcAcP1o - can anyone suggest something? I'm losing it Dec 04 19:44:20 transaction.add(fragment, "TAG") Dec 04 19:44:27 Oh Im using a ViewPager Dec 04 19:44:32 So I have none of that Dec 04 19:45:07 is there a way to set my output path in android studio? I have an aar that I'd like to output to a different directory Dec 04 19:45:26 nadav: I think you have in your imports the wrong ConnectionState Dec 04 19:45:53 why do you need tags on ViewPager fragments drose379? Dec 04 19:46:05 go to the top of the file and find a ConnectionState, if it's not, change it to com.microsoft.band.ConnectionState Dec 04 19:46:12 I need to gain access to my fragment and pass it something MooGoo Dec 04 19:46:26 you dont need tags for that really Dec 04 19:46:32 Ohh Dec 04 19:46:33 just keep track of the fragments in some array Dec 04 19:46:41 like in inistinateItem() Dec 04 19:46:44 tags are useful to retrieve the fragments from the adapter Dec 04 19:46:49 Duiker101, no luck, I'm using the correct ConnectionState Dec 04 19:47:01 I could do getItem() Dec 04 19:47:03 MooGoo, Dec 04 19:48:09 perhaps Dec 04 19:48:24 just need to make sure the list gets properly repopulated after a config change Dec 04 19:48:55 nadav: Are you sure registerResultCallback returns a ConnectionState? Dec 04 19:50:09 drose check out this http://stackoverflow.com/questions/6976027/reusing-fragments-in-a-fragmentpageradapter Dec 04 19:50:19 http://imgur.com/CmVyMTw Dec 04 19:50:31 fragments and viewpagers are usually unhappy together unfortunately Dec 04 19:50:32 Here's the definition, Duiker101 / SimonVT Dec 04 19:51:01 eh, using fragments in a viewpager sucks Dec 04 19:51:06 hey Dec 04 19:51:07 it does work automatically with fragmentpageradapter Dec 04 19:51:18 so I got some opacity bar from the HoloColorPicker Dec 04 19:51:19 but fragmentpageradapter is poorly designed Dec 04 19:51:28 and only expects static fragments Dec 04 19:51:29 Im trying to place a textview straight above it Dec 04 19:52:03 with layout_above="id/opacitybar" and layout_marginBottom="5dp" Dec 04 19:52:05 nadav: If you don't know java, you're gonna have a bad time Dec 04 19:52:12 nadav can you link that page? Dec 04 19:52:17 however it appears to place it waay higher up than 4 dp Dec 04 19:52:28 SimonVT, what did I miss? my java is rusty Dec 04 19:52:28 I think SimonVT is correct, that function doesn't return a value Dec 04 19:52:37 rusty = nonexistent Dec 04 19:52:44 What does registerResultCallback return? Dec 04 19:52:47 quit using euphemisms Dec 04 19:52:50 You seem to have missed that Dec 04 19:53:04 oh. Dec 04 19:53:09 pfn, stfu. Dec 04 19:53:21 Thanks, my bad Dec 04 19:53:21 I can do layout_marginBottom="-25dp" to move it into place Dec 04 19:53:24 but that seems ugly Dec 04 19:53:26 hah, no Dec 04 19:55:27 Ok. This is embarrasing. I had 'state' there because before I changed the called method from .await() to .registerCal..(), it retuned a ConnectionState object. Dec 04 19:55:36 but yeah, it's working now. thanks Dec 04 19:56:34 BTW Duiker101, this is not online, or atleast I couldn't find it. it's on Microsoft Android SDK .rar Dec 04 19:57:07 ah I see, that's why I couldn't find it :p Dec 04 20:06:35 what do you guys use to resize the icon for all the sizes? Dec 04 20:13:15 ok, so in my mainactivity.java file Dec 04 20:13:22 I try and set the text in a textview Dec 04 20:14:59 Klas5: yhea? Dec 04 20:15:14 I dont seem to be able to call any .setText(@string/offtext) Dec 04 20:15:27 Klas5, you need to get the resource Dec 04 20:15:32 try .setText(R.string.offtext) Dec 04 20:15:35 if you're actually trying to do that, then you need to setText(R.string.foo) Dec 04 20:15:40 oh, that worked :D Dec 04 20:15:47 yeah, like they said Dec 04 20:16:14 @string/foo is an XML identifier, the tools turn it into R.string.foo (like @id/whatever turns into R.id.whtever) Dec 04 20:18:39 second thing then, I try setting the textcolor on the next line with: setTextColor(getResources().getColor(R.color.off_red)); Dec 04 20:20:28 and this works, but the "getColor" line is dashed out and something about depracated Dec 04 20:20:47 so instead I should use "ContextCompat.getColor(context, R.color.off_red) Dec 04 20:21:08 but this doesnt work and "context" cannot be resolved Dec 04 20:21:18 instead fo context do this Dec 04 20:21:21 "this" Dec 04 20:21:26 if you are in the activity Dec 04 20:21:36 the activity itself is a context Dec 04 20:22:17 Hi Dec 04 20:22:34 hey Dec 04 20:23:39 Hi Guys ... need your help .... Dec 04 20:24:00 what's up? Dec 04 20:25:00 I am trying to connect to a google api service by using the GoogleApiClient in the ApplicationClass Dec 04 20:25:36 but the google API client is not connecting Dec 04 20:25:39 ah Dec 04 20:25:45 sweet Dec 04 20:25:54 I'm currently using the unity plugin from google play API, I went through all the steps to authenticate my game with IDS and stuff on the dev console (with a debug key), but now I'm completely stuck when I'm calling this method : social.localuser.authenticate Dec 04 20:27:10 I tried it the same in an FragmentActivity... it worked fine ... but ever since I moved it to an ApplicationClass... it is not connecting :-( ... Dec 04 20:27:24 I am trying to do this: http://stackoverflow.com/questions/33398473/accessing-googleapiclient-object-in-all-activities Dec 04 20:28:03 can't help with this one unfortuantely :( Dec 04 20:28:30 I have the done the authenticating part , set up the keys ...so I dont think this is an authentication issue ... Dec 04 20:28:50 no probs Duiker Dec 04 20:39:08 interesting, android studio 1.5.1 is out, but no corresponding builder release Dec 04 21:11:51 I'm looking to dd a hard drive over ethernet to file on another computer using the arch installer, in order to take a full copy of the drive before I start the installation process. what's the best way to do this? Dec 04 21:12:28 phroa maybe #linux ;) Dec 04 21:12:37 k Dec 04 21:12:41 #archlinux too Dec 04 21:12:51 lol, shit, I misclicked the channel Dec 04 21:12:56 thought I was in #archlinux Dec 04 21:13:08 android, linux, it's pretty much the same anyways :) Dec 04 21:13:26 I don't think android ships with dd :P Dec 04 21:13:43 (nor ethernet ports on phones) Dec 04 21:13:49 it'll be part of google play services 9 for maximum bloat Dec 04 21:20:58 anyone using the latest android studio 2.0 eap? Dec 04 21:21:21 is anyone elses auto complete on xml layouts not working? Dec 04 21:22:51 Let me check, I just updated Dec 04 21:23:20 working fine for me, try restarting and maybe clean/rebuild project? Dec 04 21:23:22 thanks man Dec 04 21:23:29 yeah ill try that Dec 04 21:25:34 oh sorry, being a fool Dec 04 21:25:41 auto complete doesnt work on Dec 04 21:25:51 but i suppose that makes sense Dec 04 21:26:00 oh haha. glad the rest works for you Dec 04 21:26:16 so how are everyone's projects going? Dec 04 21:27:03 Good, just started a new job this week, but can't really talk about it because NDA Dec 04 21:27:31 you have a job as an android developer? Dec 04 21:27:41 first time with a 'real' android job and not just working for myself :) Dec 04 21:27:45 Yes @AKK9 Dec 04 21:28:05 where are you in the world? Dec 04 21:28:49 USA, moving to China soon though, I'm working full-time remote for a company in South America Dec 04 21:28:53 thats awesome! what would you say is the toughest thing to get used to versus "freelancing"? Dec 04 21:29:30 Having other people make decisions for me is weird to get used to. Since we have a full time UI designer it's weird not doing my own design Dec 04 21:30:18 Also choices of libraries, etc. are not 100% up to me (although I will have major sway with this project) Dec 04 21:30:41 how long have you been developing on android? Dec 04 21:31:20 is it a decent career? is the pay decent and is there full time work? or is it just contracts? Dec 04 21:32:03 do you have any formal training? schooling, etc? Dec 04 21:35:51 lol Dec 04 21:35:56 scared him off Dec 04 21:36:10 Sorry I got disconnected from freenode for some reason Dec 04 21:36:35 @AKK9 I started programming in 2013 after I got my Nexus 4 because I was curious about Android and saw that Eclipse+ADT was free (vs having to pay for Apple dev license) Dec 04 21:37:13 I never thought I would enjoy it enough to want to do it for a living but it's a great option as I need a job I can do while travelling or working from home Dec 04 21:38:30 do you constantly look for contract work? Dec 04 21:38:53 or are you on a full time dev team? Dec 04 21:39:12 No, before I was just working on my own projects. This is my first real Android job where I'm not working for myself Dec 04 21:39:38 oh ok Dec 04 21:39:55 have you made money of paid apps and stuff so far? Dec 04 21:40:03 well congrats! thats awesome! Dec 04 21:40:35 Some, not enough for my expenses which is why I had to start applying :) Dec 04 21:41:05 I applied for ~20 Android jobs, got an interview with 1, luckily I was able to impress them with my code test and landed it Dec 04 21:41:35 @drinfernoo thanks, I'm very excited! Dec 04 21:41:52 If it wasn't for this, I guess I would have become a pizza delivery driver or something to pay the bills Dec 04 21:41:56 -.- Dec 04 21:42:22 lol sounds cushy Dec 04 21:43:05 trying to decide what to do for a career Dec 04 21:43:14 i kind of like programming, but never finished an app Dec 04 21:43:20 i have no ideas Dec 04 21:43:37 question for you guys, im having trouble getting my views to update after i load a Palette, and my code is here: https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/CubeDetailActivity.java Dec 04 21:44:05 i believe the relevant code starts on lines 85 and 242, if anyone wants to take a look, id appreciate it :) Dec 04 21:44:19 @AKK9 Try freelancing on Upwork. It's not good money and you will be competing against Indians who work for $5-10 an hour but you'll get good experience Dec 04 21:45:16 AKK9, im working on my first real app, and i basically just started with an app i wanted to use. ive never seen one quite like it, but it was something i wanted to use, and i may be the biggest consumer when its done, but its going to be free anyway i think lol Dec 04 21:46:02 do you have good experience with java in general? Dec 04 21:46:11 and/or android dev? Dec 04 21:46:18 or you started recetnyl? Dec 04 21:47:13 ive been an off and on java developer since 2005-ish, just for fun, but i picked up android dev around a year and a half ago Dec 04 21:47:39 ive taken some breaks, but im pretty close to having something i can release finally :) Dec 04 21:48:14 thats pretty cool man Dec 04 21:48:29 every idea seems to be already done Dec 04 21:48:43 and every idea seems to have a dedicated organisation based around it Dec 04 21:48:48 with a whole team of ppl developing it Dec 04 21:48:57 no way to compete with that Dec 04 21:49:01 yeah, but most markets have something you could improve on, if you put your mind to it Dec 04 21:49:12 liuwenhao good call, pizza will be delivered by drone soon :) Dec 04 21:49:35 g00s, maybe he'll write the app to control it ;) Dec 04 21:49:48 at least you wouldnt have to tip lol Dec 04 21:49:51 I would be the guy throwing rocks at the drone for free pizza Dec 04 21:50:09 it just hovers overhead until you put $$$ on the landing pad :D Dec 04 21:50:43 If you own property, do you have control over the airspace? For example, if a drone is hovering 15 feet over your house, can you legally shoot it down? Dec 04 21:50:51 Sorry this is completely off topic Dec 04 21:51:06 AKK9, maybe look at apps that you use, and find something you think could be just a bit better, and start thinking about how you could make a similar app that does that one thing "right" Dec 04 21:51:08 i think it depends on the state Dec 04 21:51:26 probably, but it would have to be in self defense lol Dec 04 21:51:39 i know in most states you don’t own the mineral rights below your land, so I don’t think you’d have much control over the airspace after maybe a few dozen yards Dec 04 21:53:59 i'm curious about Google's Brillo; Android for IoT - anyone know how google plans on monetizing this? i can't come up with anything Dec 04 21:54:30 liuwenhao not in the US Dec 04 21:54:54 if you shoot anything down from airspace, thats breaking federal law Dec 04 21:57:35 there have been a few cases where people have shot down drones, and basically it is treated like you broke someone else’s property Dec 04 21:58:17 http://www.roboticstrends.com/article/why_shooting_down_drones_is_a_federal_crime Dec 04 21:58:49 I think we are gonna need new laws as personal quadcopters become more common Dec 04 21:59:23 but these things have always been around. RC aircraft have been a thing for a long time Dec 04 22:00:00 Yeah but they are far less manuverable and also didn't have gopros/ip webcams attatched to them Dec 04 22:00:23 rc choppers have existed for a long time and were extremely maneuverable Dec 04 22:00:23 I've never heard of anyone doing something malicious with a RC plane (although I'm sure lots of people have) Dec 04 22:01:49 Anyways sorry for going off topic I was just cuious about the pizza drones Dec 04 22:02:45 it does remind me of the old Colbert Report segment on TacoCopter Dec 04 22:02:55 When I published my app it was like 15 down in the play store when you searched for its name, now (2 days later) it's not even in the 100 search results at all Dec 04 22:02:58 it's still on the play store though if you go to the direct link Dec 04 22:03:17 duncannz, link? Dec 04 22:03:22 does it have a really common name? Dec 04 22:03:50 s73v3r: commonish but the other search results are completely unrelated Dec 04 22:03:57 only like 6 competitors Dec 04 22:04:05 How many downloads? Dec 04 22:04:19 duncannz i have seen that also Dec 04 22:04:25 Active installs are one of the most important things for search ranking in Google Play if I remember correctly Dec 04 22:04:26 liuwenhao: in the first day, 24 (with 15 keeps) Dec 04 22:04:38 don't know about the second day, hasn't come up yet in console Dec 04 22:04:41 i search for keyword XXXX (XXXX is in my title) and i'm not in the search results at ll Dec 04 22:04:45 so i have a callback being called whenever my Palette is loaded, and it applies the color, and calls invalidate() on the view, but i still have to exit and return to the activity for all the views to update. what am i doing wrong? lol Dec 04 22:04:52 danijoo: sent via pm Dec 04 22:04:57 duncannz, seen it Dec 04 22:05:10 duncannz but try on Plat app ; i get different results than web Dec 04 22:05:13 there are a lot of apps with the same keywords or doing the same Dec 04 22:05:14 *Play Dec 04 22:05:25 g00s, really? Dec 04 22:05:38 play might be more targeted to you Dec 04 22:05:44 because they know who you are Dec 04 22:05:46 danijoo yeah, i could see being far down in ranj ... but the listing ends and my app isn't even there Dec 04 22:05:59 danijoo: yeaah but if you look at all 100 search results (searching its title) there are only like 10-ish apps doing the same thing. whereas all the other search results are completely unrelated Dec 04 22:06:21 g00s, if I search my app without logging me in, its on position 3 or 4 Dec 04 22:06:28 if i log me in its on position 1 Dec 04 22:06:40 so my account meta data must be part of the search Dec 04 22:07:39 danijoo its very strange. web interface gives me like 20 results, i know, there should be about 10 more (including mine, and my competitors) Dec 04 22:08:01 so ... at the end of the day, we are completely at the mercy of google Dec 04 22:08:09 yeah Dec 04 22:08:12 I did have one incident with the content rating being wrong about sexual content. I did another rating saying it had "sexual references without descriptive detail" and then they put the content rating back on. So I doubt that could still affect it. (As a sidenote, I didn't think I needed to because it said "this question does not include user-generated content" and the questions are user-generated. but anyway, can't argue with Dec 04 22:08:13 them) Dec 04 22:08:13 if they dont even list you in search, then what ? Dec 04 22:09:24 all you can do is advertise on reddit and stuff until you are important enough i think :/ Dec 04 22:09:37 and chose the name wisely. Dec 04 22:09:49 When I search for the exact title of my app, I count 11 competitors and the other 89 search results are completely irrelevant. e.g. new york times, dictionary, browser, bowling games, etc Dec 04 22:09:56 it its words that are keywords for thousands of other apps you are fucked Dec 04 22:10:22 the thing is it was coming up 15th or so when I first released it Dec 04 22:10:24 duncannz, i think the problem is that the words / word combination in your title is very common Dec 04 22:10:31 and might exist in many app desctiprions Dec 04 22:10:39 yeah but then why was it coming up 15th at first then get dropped completely out Dec 04 22:10:53 duncannz, yeah you get a ¨bonus¨ in the first 2 weeks for app listing Dec 04 22:11:24 nah I'm only in the third day of it being published. First day, about 15th. Second day, about 17th. Third day (today) gone Dec 04 22:18:32 so after about 2 days I realized that my gnustl_shared.so problem was because the folder in my /libs/ was namde armeabi and not armeabi-v7a Dec 04 22:23:58 Anyone home? Dec 04 22:41:25 heh, someone tipped me $1 for protify... I shouldn't spend it all in one place Dec 04 22:42:55 I don't know what is flubbin' up, but something is. Using Butterknife's @BindDrawable, I'm getting this error: ChromecastActivity$$ViewBinder.java:36: Error: Expected resource of type drawable [ResourceType] >> target.mPauseDrawable = res.getDrawable(2130837804) Dec 04 22:43:42 R.java shows that 0x7F02012C (2130837804) is indeed the pause button drawable I'm looking for. Dec 04 22:46:25 only on the release build with proguard enabled, too, curiously enough Dec 04 22:47:36 As a workaround, I used the regular "binding" pattern Dec 04 22:47:42 @pfn I got a donation of $0.01 on Paypal once and Paypal kept the .01 as a transaction fee -.- Dec 04 22:47:57 liuwenhao, that's nice of the sender Dec 04 22:58:05 and yet, so many people on Reddit seem to think that if developers just added a “donate” button in their apps, they’d be swimming in money Dec 04 23:13:26 s73v3r in the US i dont think we can add donate to apps unless you are 501(c) Dec 04 23:14:13 i think that’s just if you want tax deductableness. Dec 04 23:14:28 or maybe they don’t call it a donation, but a “contribution”? Dec 04 23:14:28 s73v3r play services TOS Dec 04 23:15:05 either way, there are way to donate to developers in app, regardless of what it’s called Dec 04 23:15:53 wtf doesn't the intellij xml editor ever give res-auto as the suggestion for namespace Dec 04 23:15:56 it always gives fq package name Dec 04 23:16:53 doesn't android studio do it differently? Dec 04 23:17:07 studio usually suggests res-auto Dec 04 23:18:16 wtf = "what the fuck", not "why the fuck" Dec 04 23:18:30 I wonder why intellij doesn't do the same Dec 04 23:18:38 because its not AS Dec 04 23:18:58 is “res-auto” a thing outside of Android resource files? Dec 04 23:19:07 no, specific to android Dec 04 23:19:29 then i could see why AS is the only one to have it Dec 04 23:24:57 On the phone, app-production-release.apk is installed. When I try to install app-beta-release.apk, I get INSTALL_FAILED_UPDATE_INCOMPATIBLE :: http://pastebin.com/BX2eTfTu Dec 04 23:25:31 The applicationId should be unique, as well a provider defined in AndroidManifest.xml The signature should also be unique, as well. Dec 04 23:25:49 But, adb install app-beta-release.apk complains Dec 04 23:26:38 idk what is going on Dec 04 23:28:01 Even just installing an update to app-production-release.apk gives an error: INSTALL_FAILED_CONFLICTING_PROVIDER Dec 04 23:28:08 Which it shouldn't. It's the same damn app. Dec 04 23:30:36 Nevermind; Dec 04 23:30:39 Found the problem Dec 04 23:35:59 explodes_: they're signed with different keys but define the same package Dec 04 23:47:07 the problem was that the version i was trying to "upgrade" was the old beta that had production settings, so I got super confused Dec 04 23:58:51 kroot lives Dec 05 00:00:23 hmm, intellij has appNs which adds res-auto Dec 05 00:00:32 but when typing xmlns:app=, it autocompletes with package name Dec 05 00:00:33 that's lame Dec 05 00:01:19 pfn just use AS, problem solved Dec 05 00:03:16 I guess I'll just live with appNs Dec 05 00:05:51 how can I set the output path for one of my project's AAR files that it's generating? Dec 05 00:08:03 Does anyone know anything about utilizing MST outside of Samsung Pay? Dec 05 00:08:42 EG: on rooted devises with MST capability like the S6 Dec 05 00:09:20 is there an easy way / library for implementing a comments section? so I open an activity with a specific ID and then there is a comments section for that ID? like disqus on a website Dec 05 00:13:04 https://twitter.com/matt_j2/status/672931187682353153 Dec 05 00:13:34 *canned laughter plays* Dec 05 00:13:53 *cut to commercial* Dec 05 00:20:28 Hi I'm wondering how I make an activity like this Dec 05 00:20:30 http://img.wonderhowto.com/img/04/27/63550794632635/0/google-calendar-gets-huge-makeover-new-features-apk-inside.w654.jpg Dec 05 00:21:19 specifically the blue top part Dec 05 00:22:00 okay so it's called the app bar Dec 05 01:22:44 When I go to Play Books, open a Book and then press recents, I see 2 entries in recents: Play Books home Activity and the Book I am reading. What is this feature called ? Dec 05 01:23:00 (the custom recents entry for the open book) Dec 05 01:23:20 Tab View? Dec 05 01:23:47 drpibb hm, do you have a link, googling that would pull up other stuff Dec 05 01:28:13 i think Chrome used to show each of its tabs as one entry in recents tasks Dec 05 01:30:08 it's an option in Chrome Dec 05 01:30:18 aha, its ActivityManager. addAppTask Dec 05 01:31:48 hm api 21 dang it Dec 05 01:34:48 foiled again Dec 05 01:36:02 curses! Dec 05 01:49:43 i'm lost. using Nearby Messages, when the server associates devices after token exchange, how long does this relationship last ? Dec 05 01:50:44 if after the token exchange, the parties hopped to different networks / 3g, would this still work ? Dec 05 01:51:17 I have an sdk installation, which is huge, and need to make some space on my tiny drive. Is there a "graceful" way to pare it down, or would it be best to wipe it, and do a more conservative re-deploy? Dec 05 01:51:24 ...do you think... Dec 05 01:51:52 I just put it on an external flash drive Dec 05 01:52:25 promet what is huge? my sdk is < 1G Dec 05 01:52:46 wow mine is ~64 GB Dec 05 01:52:47 running stuff off external flash would be unbearable Dec 05 01:53:04 if you think gradle is slow now :D Dec 05 01:53:16 well, I'm running it that way so... Dec 05 01:53:33 Squeegee external thumb drive or SSD ? Dec 05 01:53:45 actually it's an SD card Dec 05 01:53:55 I do have another attached drive, that I rarely use (sata 3 ssd at least) maybe there Dec 05 01:54:36 I didn't do anything special, I just installed android studio and then ran SDK manager and clicked "install" Dec 05 01:54:45 and it grew to be over 60 GB Dec 05 01:55:33 didn't select multiple versions of the sdk or anything Dec 05 01:55:40 I think it's all the "retro" compatibilities with older android versions, an immense amount of duplication, I think... Dec 05 01:55:49 Hmmmm Dec 05 01:56:44 Squeegee for most people, if you needed to d/l 60G worth of stuff, it would take all week Dec 05 01:57:05 unless your in Japan with super fast internet like Leeds Dec 05 01:57:14 hey, I resemble that remark! Dec 05 01:57:24 heh Dec 05 01:57:29 but for those of us in 3rd world countries .. like the US ... Dec 05 01:57:36 I haven't been in Japan since January, although my partner is getting on a plane to go there right about now... you mean Hong Kong :) Dec 05 01:57:41 well I'm in the U.S. and it only took a couple hours I guess Dec 05 01:57:58 but I guess it's compressed while in transit Dec 05 01:58:16 probably highly redundant like promet said Dec 05 01:59:30 well half of that is system images apparently Dec 05 01:59:53 over 33 Gigs of system images Dec 05 02:00:12 oh, i don't have any emus installed :D Dec 05 02:00:35 just ostriches Dec 05 02:01:06 yes Dec 05 02:01:14 ostrich bacon :) Dec 05 02:01:56 and my US ISP gives me well over 80 Gigs/ day Dec 05 02:01:56 btw Dec 05 02:03:05 ostrich is also not kosher... Dec 05 02:03:38 Leeds i'm sure if those guidelines were made when android was around, it wouldn't be kosher either Dec 05 02:04:07 g00s: sure they are, you just need to snip the end off one of his antennae Dec 05 02:04:34 hehe Dec 05 02:05:51 Squeegee, mine is only 16.8G, you've made me feel like a king! =P Dec 05 02:06:45 clearly I shouldn't have downloaded the android TV image Dec 05 02:06:51 but, w/e Dec 05 02:06:58 Mine is less than 7GB with loads of unnecessary stuff. Dec 05 02:07:05 almost nobody should download the android tv image... almost nobody is using android tv :) Dec 05 02:07:14 yup Dec 05 02:11:12 our samsung smart TV runs some proprietary OS I guess...prob. will be unsupported and full of security holes in 5 years Dec 05 02:13:26 what are SDK build tools? Dec 05 02:17:55 I’m trying to set an appcompat theme using the android-support-v7-appcompat library. Dec 05 02:17:58 keep getting this: Error retrieving parent for item: No resource found that matches the given name 'android:style/Theme.AppCompat.Light'. Dec 05 02:19:00 duboisj see the Plaid / cheese square code on github Dec 05 02:19:05 I use ant to build, the android-support-v7-appcompat.jar is in my libs/ directory. Dec 05 02:19:15 lol ant what Dec 05 02:19:56 I know, it’s an old tool ;0 Dec 05 02:20:18 maybe thats your problem :) Dec 05 02:21:03 ndk Dec 05 02:21:34 I’m sure there’s a way, even with this tool. Dec 05 02:22:00 Leeds are you using ant still? can you use aars with it ? Dec 05 02:23:04 I’d guess I’m referring to the name wrongly, or that I need to tell some tool about the location of the jar. Dec 05 02:23:20 I’ve tried also: