**** BEGIN LOGGING AT Wed Feb 08 03:00:03 2017 Feb 08 03:04:12 so is that 12 in decimal? Feb 08 03:05:28 shameless plug: quantum processors, the ultimate GPU šŸ˜Š https://www.microsoft.com/en-us/research/publication/post-quantum-key-exchange-for-the-tls-protocol-from-the-ring-learning-with-errors-problem/ Feb 08 03:19:58 capella https://www.technologyreview.com/s/603431/as-goldman-embraces-automation-even-the-masters-of-the-universe-are-threatened/ Feb 08 03:25:56 hrm. ((LinearLayout.LayoutParams)bt.getLayoutParams()).gravity = Gravity.FILL_VERTICAL; not working Feb 08 03:26:06 trying to make programatically added buttons fill vertical space Feb 08 03:26:10 as is some are taller than others Feb 08 03:26:51 g00s... I applied for an internship there ;) Feb 08 03:27:06 capella lolwut Feb 08 03:27:21 isn't that for college students :) Feb 08 03:28:03 Well, they have one called "returnship"... for underemployed and returning Feb 08 03:28:38 capella capitalism needs slave labor :) Feb 08 03:29:49 capella you'll like this http://newatlas.com/drones-oil-refinery-inspectors/47794/ Feb 08 03:29:56 will slave over tech and banking manuals for too much money Feb 08 03:31:50 pretty sure I saw the drone article sounds familiar, I've been following physics into energy systems and materials fabrication... so oil e&p is peripherally interesting Feb 08 03:32:33 ah nm. fill_parent worked Feb 08 03:33:54 ##physics gets some awesome quantum discussions šŸ˜Š Feb 08 03:34:47 I registered ##quantum but haven't set topic, modes, any work yet... pet project in the making Feb 08 03:41:43 i am getting this error --> Unable to detect adb version, adb output: /home/ramdom/Android/Sdk/platform-tools/adb: 3: /home/ramdom/Android/Sdk/platform-tools/adb: Syntax error: Unterminated quoted str Feb 08 03:43:08 i am suing Android Studio Feb 08 03:43:18 s/suing/using Feb 08 03:50:18 i am using linux Feb 08 03:50:37 Android Studio 2.2.3 Feb 08 04:31:01 Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /home/ramdom/Android/Sdk/platform-tools/adb: 3: /home/ramdom/Android/Sdk/platform-tools/adb: Syntax error: Unterminated quoted string Feb 08 06:02:05 g00s: here? what's new in your world? Feb 08 06:02:44 oh hai thepoosh . did you see this? https://mybroadband.co.za/news/smartphones/197233-secure-messenger-signal-beta-testing-video-calling.html Feb 08 06:03:22 who the F is Signal? Feb 08 06:05:03 thepoosh lol seriously ? :D Feb 08 06:05:29 actually never heard of them Feb 08 06:05:41 * thepoosh looking at their playstore page Feb 08 06:05:52 oh wow. they are becoming very popular because of their strong security Feb 08 06:06:12 you have people in the us govt installing it after the DNC / wikileaks, etc Feb 08 06:06:43 thepoosh have you heard of moxie ? Feb 08 06:07:04 nope Feb 08 06:07:11 g00s: that seems weird Feb 08 06:07:34 https://www.wired.com/2016/07/meet-moxie-marlinspike-anarchist-bringing-encryption-us/ Feb 08 06:07:35 also, they ask for even more permissions than we do Feb 08 06:07:44 which is a fuckton for permissions Feb 08 06:08:34 if i installed one messaging app, i'd install signal Feb 08 06:08:56 I would probably go for telegram if I would be that type of person Feb 08 06:09:07 but I use hangouts, whatsapp, messenger and glide Feb 08 06:09:35 btw, g00s we got written up on Forbes Feb 08 06:09:50 thepoosh oh yeah, link ? Feb 08 06:10:31 http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/mnewlands/2017/02/06/the-future-of-the-camera-is-in-wearables-heres-why/&refURL=http://www.forbes.com/&referrer=http://www.forbes.com/#6082364f42bb Feb 08 06:10:35 crap Feb 08 06:10:36 lol Feb 08 06:10:45 sorry for the stupid referral Feb 08 06:10:57 I hate forbes website Feb 08 06:11:33 g00s: I prefer Diphy to this Moxie guy Feb 08 06:12:33 i'm looking for an excuse to learn go, i have no projects in mind tho Feb 08 06:12:43 thats kinda problem Feb 08 06:12:58 thepoosh are you going to give me a decent link or do i have to click on that crap Feb 08 06:13:22 just a sec Feb 08 06:13:35 http://www.forbes.com/sites/mnewlands/2017/02/06/the-future-of-the-camera-is-in-wearables-heres-why/ Feb 08 06:13:36 there Feb 08 06:14:39 thepoosh: Telegram uses horrendous "encryption", if you'll call it that Feb 08 06:14:51 Also, have you tried something like XPrivacy to really see what Signal is accessing? Feb 08 06:15:00 thepoosh who the fuck is Murray Newlands Feb 08 06:15:09 not me Feb 08 06:15:15 and i don't actually know Feb 08 06:15:29 Lvl4Sword: I don't really care about the encryption side of things Feb 08 06:15:34 Because simply having a lot of permissions is not a reason to dismiss a program. Feb 08 06:15:36 thepoosh: lolwut? Feb 08 06:15:37 so I never bothered to check Feb 08 06:16:05 Lvl4Sword: fuck yeah, asking for too many permissions is a very good reason to uninstall Feb 08 06:16:11 or not install Feb 08 06:16:21 That seems a little strange to use/suggest a program like that if you don't care of the specifics. Signal is really well done, and WebRTC video and the GCM dependency is going away in a few months. Feb 08 06:16:42 thepoosh: Again, have you used XPrivacy ( or something else, whatever that may be? ) to verify what the program is doing? Feb 08 06:16:50 just said that if I would care about it (which I don't) I would go for it Feb 08 06:16:57 i did not Feb 08 06:17:28 Signal is well done, and recommended by pretty much everyone. Snowden, Glenn Greenwald, Laura Poitras, Bruce Schneier, et all. Feb 08 06:19:19 thepoosh gotta protects your privacy from presidentbannon's police state :D Feb 08 06:19:33 I live in Israel Feb 08 06:19:41 not in your NSA infected land Feb 08 06:19:43 i know ;) Feb 08 06:20:17 also, I went full black mirror Feb 08 06:20:27 and don't believe in the concept of privacy anymore Feb 08 06:20:33 I do Feb 08 06:20:39 it Feb 08 06:20:49 what? Feb 08 06:20:55 it's hard, but you got to demand it Feb 08 06:21:59 thepoosh privacy is power. now, if there were strong regulations on how corps could use my info, i'd probably donate it more readily - but we don't have that, and you can't know how your data will be used against you in the future Feb 08 06:22:39 they are starting in Israel a biometric ID card program now, I am not willing to get one Feb 08 06:22:39 all that data could be used to make the world a better place Feb 08 06:22:42 until they force me Feb 08 06:22:55 think of all the data mining in healthcare alone Feb 08 06:23:18 but if my data will be used to discriminate against me, i'll pass Feb 08 06:24:13 thepoosh giving any more firebase talks ? Feb 08 06:24:38 not that I know of, starting to teach in a uni though Feb 08 06:24:48 oh what class subject ? Feb 08 06:25:11 Android Feb 08 06:25:46 I will be doing the workshop while an actual professor will be teaching the OS/theoretical part Feb 08 06:26:29 thepoosh how theoretical does it get? internals? or is it more for app dev Feb 08 06:26:57 I think it's more about how the mobile world works and how the OS deals with stuff Feb 08 06:26:59 but not sure Feb 08 06:28:11 raoul11: GOOD MORNING!!! Feb 08 06:28:13 it's about time Feb 08 06:28:46 * raoul11 thepooshes thepoosh Feb 08 06:28:51 bokertov Feb 08 06:32:24 thepoosh are you guys using a book ? Feb 08 06:34:56 Hi Feb 08 06:36:56 I have this app on PlayStore https://play.google.com/store/apps/details?id=com.areebbeigh.qrcodeutility and all it does is scan and create QR Codes.. It's been on PlayStore for a while now but today I got an email from Google saying that I need to add a privacy policy for my app or it will be removed in some countries. Could anyone help me with this? My app doesn't send me any personal information about the user as such. All information I can get Feb 08 06:37:10 This is my first app so I'm not sure what to do.. Feb 08 06:39:22 there are templates out there Feb 08 06:39:30 http://www.iubenda.com/en/privacy-policy-generator Feb 08 06:39:36 not sure if its free for just one app Feb 08 06:41:41 g00s: no book for me Feb 08 06:42:03 I will be running along the lines of this though Feb 08 06:42:05 https://www.udacity.com/course/new-android-fundamentals--ud851 Feb 08 06:44:20 what is this thepoosh Feb 08 06:44:31 my teaching job Feb 08 06:46:11 teach me thepoosh Feb 08 06:46:20 The previous msgs didn't go thru ugh Feb 08 06:46:30 raoul11: That's not free Feb 08 06:47:16 freeprivacypolicy.com ? Feb 08 06:48:56 But what am I supposed to put in the privacy policy? I mean I don't collect any personal information about my users.. the app completely offline, it only scans and creates QR Codes and stores the info about them in a local database Feb 08 06:49:04 I can see nothing... Feb 08 06:49:36 the app is* Feb 08 06:49:56 do u use a 3rd party lib for analytics? Feb 08 06:50:18 Nope all analytics is done by Google which I see on the google dev console Feb 08 06:50:24 hmmm Feb 08 06:50:26 interesting Feb 08 06:53:27 i haven't logged into my dev console in months, wonder what awaits Feb 08 06:54:13 ANRs probably lo Feb 08 06:54:15 lol* Feb 08 06:54:20 i log into mine when i want to cry Feb 08 06:58:30 Areeb: why have an app for QA codes when Zxing is a thing? Feb 08 06:58:56 thepoosh: I just wanted to get started with Android dev.. Feb 08 06:59:03 oh Feb 08 06:59:05 cool Feb 08 06:59:06 So I went ahead and created this app heh Feb 08 06:59:37 Didn't know I'd hav to deal with legal stuff like this tho -_- now I hav no idea what to do Feb 08 07:00:30 thepoosh have you done anything with GraphQL ? Feb 08 07:00:39 nope Feb 08 07:01:11 http://www.iubenda.com/blog/privacy-policy-for-android-app/ Feb 08 07:01:13 Areeb: ^ Feb 08 07:01:36 maybe email em back and ask Feb 08 07:01:50 thepoosh: I'd have to pay for it Feb 08 07:02:04 found out they actually do reply to emails (when i got a shitty copyright notification) Feb 08 07:02:16 They do? Feb 08 07:02:30 yep Feb 08 07:02:34 Well which address? Google dev support? Feb 08 07:02:52 http://www.iubenda.com/en/mobile Feb 08 07:03:55 thepoosh: They ask me to pay $9 per month or some $2.9 dollars for the privacy policy šŸ˜‚ Feb 08 07:04:06 Not sure about the amount* Feb 08 07:04:09 so pay 3 dollars Feb 08 07:04:34 -.- Feb 08 07:04:43 https://www.freeprivacypolicy.com/ Feb 08 07:04:51 Tried that too Feb 08 07:05:15 raoul11 thepoosh you guys use DI in your projects ? Feb 08 07:05:30 There is says "When do I collect user info" well, I don't collect user info... Feb 08 07:05:30 no, but we should Feb 08 07:05:31 am trying my best to avoid it g00s Feb 08 07:05:37 it says* Feb 08 07:05:39 lol i don't feel so bad now :D Feb 08 07:06:56 Here: Feb 08 07:06:59 What personal information do you collect from the people that visit your blog, website or app? Feb 08 07:07:32 Does storing info about scanned barcodes on the user's local storage count as collecting personal info? Feb 08 07:08:41 g00s: i just dont get it Feb 08 07:08:51 am basically the kanye west of androiddev Feb 08 07:09:01 heh Feb 08 07:09:12 I am having issues with the GMS wallet / android pay library :( Feb 08 07:09:13 i dont get butterknife either Feb 08 07:09:18 every time it goes to show the fragment Feb 08 07:09:23 "com.google.android.gms.wallet.shared.BuyFlowConfig" is not found Feb 08 07:09:59 Tried updating to latest, doing a clean build etc. Feb 08 07:10:52 Areeb https://support.google.com/googleplay/android-developer/answer/2477981?hl=en Feb 08 07:12:14 raoul11: Isn't that appeal to be used only if the app is removed from PlayStore? Feb 08 07:12:23 my got suspended Feb 08 07:12:31 thought that was your case as well Feb 08 07:12:32 hey guys im getting an out of memory exception originating from the RadioButton class. ive had a bit of a search but i cant find any known issues. anyone else had similar problems with RadioButton?? Feb 08 07:12:38 Areeb: in play console at the privacy policy url for your store listing it'll tell you the permission you are requesting that needs the privacy policy, just make a short and sweet one for that info Feb 08 07:12:40 and only the update got suspended Feb 08 07:13:15 raoul11: I have until 15th March Feb 08 07:13:24 whatitis: You sure? Lol Feb 08 07:13:56 I mean "I don't collect any of your personal info guys, peace V" (of course it'll be more professional but still..) Feb 08 07:14:08 pay the 3$ buddy Feb 08 07:15:11 Idk abt that... Feb 08 07:15:45 Just state the permission and reason why you are using it and state that nothing is sent out anywhere Feb 08 07:16:09 whatitis: Have done something like that before? Did it work? Feb 08 07:16:55 I had til January somethin on one app, put a link in and hasnt been suspended yet. Have til march 15 for other apps Feb 08 07:17:14 If you don't mind, can I see it? :p Feb 08 07:17:22 Wont copy, pinky swear. Lol Feb 08 07:19:19 pinkie pie swear Feb 08 07:19:45 Yes ^ too Feb 08 07:19:59 my google-fu is terrible today, i'm trying to take large image that i've placed in drawables, scale it down to the size of my imageview in an asynctask and then set it to my imageview. Can anyone link me to a reference that covers this sort of thing? Feb 08 07:20:16 Haha, i just hacked together somethin simple from lookin at some other policies Feb 08 07:21:12 whatitis: I want to see it, please. Just need a template-ish thingie to make up one for my app. Feb 08 07:21:35 Because I'll end up writing something really stupid if I try šŸ˜‚ Feb 08 07:21:39 James0r look at glide Feb 08 07:22:04 g00s, i did see that mentioned. okay will do. thx Feb 08 07:30:42 play store should just have an option 'i don't use, store, or xmit info to anyone' Feb 08 07:31:22 can you just type the privacy policy into a text box, or do you have to host something at a url ? Feb 08 07:32:01 host Feb 08 07:32:19 wtf, thats stupid Feb 08 07:32:54 i swear sometimes google is so stupid Feb 08 07:32:55 http://i.imgur.com/qfXcFpR.png g00s Feb 08 07:56:23 g00s, wow. amazingly easy with glide. thanks again. Feb 08 07:56:39 :) Feb 08 08:24:25 What's a good way to detect if the app is open? (I want to display a notification from a service, but only if the app is closed) Feb 08 08:26:02 I could just set a flag in my apps lifecycle methods, but are there better ways? Feb 08 08:28:05 several ways, including yours, http://stackoverflow.com/questions/5446565/android-how-do-i-check-if-activity-is-running Feb 08 08:33:47 Thanks, I think I'll go with the a shared preferences flag. **** BEGIN LOGGING AT Wed Feb 08 09:37:26 2017 Feb 08 11:16:45 Hey friends, i have a problem with fragments and have read a lot of different opinions on it so i wanted to get your input on how to do it corecctly. Lets use the following example: I have an activity with a DrawerLayout as a navigation. This is all in one layout. In the navigation i have page 1 and page 2. Both of then should have the same navigation layout when a user is on those pages. Now what is the correct way of doing th Feb 08 11:17:35 My app lags during fragment transitions and systrace says "Measure/Layout took a significant time", what does that mean? Feb 08 11:18:09 i have seen both ways in tutorials posted on the web, but i am not sure what the correct way is and what way google intended the fragments to be used Feb 08 11:24:36 does android studio support importing projects as files? Feb 08 11:26:47 e.g could I have a source dir, a resources dir, and a manifest, and let it figure out the rest? Feb 08 11:40:45 Trying to figure out the best way of setting something up Feb 08 11:41:02 I have a service, which I would like to get the latest copy of some data every 30 minutes Feb 08 11:41:12 and an activity that will use the data Feb 08 11:41:29 What's the best way of having the activity fetch the last copy of the data from the service? Feb 08 11:44:05 store that data in the service? Feb 08 11:44:09 seems pretty simple to me lol Feb 08 11:44:26 then use intents Feb 08 11:44:47 send the data in a serialized format (gson string or parcelable) Feb 08 11:59:34 hi Feb 08 11:59:44 i have got one situation Feb 08 12:00:33 I would like to do an action similar to share, where a number of apps can define their intent filter in such a way that they'll receive that intent. The problem is that none of these apps have that intent filter in place. How should I proceed? Feb 08 12:01:16 Should I build my own share dialog and address those apps by their package name? Feb 08 12:01:31 Or is there a better way? Feb 08 12:01:37 i have one layout for a dialog box but when i change my phone's view to landscape mode the dialog box exceeds the dimensions of the fragment while in portrait mode it is working fine,why it is so? Feb 08 12:03:13 Syzygy: what Feb 08 12:03:20 What are you functionally trying yo do Feb 08 12:03:44 implement share functionality, but with an action that does not yet exist. Feb 08 12:03:59 use the universal one Feb 08 12:04:17 android.content.Intent.ACTION_SEND Feb 08 12:04:31 or Feb 08 12:04:36 ShareCompat.IntentBuilder also works Feb 08 12:04:47 Can I specify apps that should open this action? Feb 08 12:05:07 you can iterate over the list of apps that will appear in the chooser, yes Feb 08 12:05:14 but typically you would only want to exclude Feb 08 12:05:16 not include Feb 08 12:06:13 check this out: http://stackoverflow.com/questions/9730243/how-to-filter-specific-apps-for-action-send-intent-and-set-a-different-text-for Feb 08 12:07:11 Let me think of an analogy to better explain what I want to do. Since I don't really want to say what exactly it's for. Feb 08 12:08:28 i have one layout for a dialog box but when i change my phone's view to landscape mode the dialog box exceeds the dimensions of the fragment while in portrait mode it is working fine,why it is so? Feb 08 12:09:19 Say, I have an app that displays movie reviews, and there are apps that let you buy movie tickets. From othe displayed review, I want to include a "buy" button, that forwards it to one of those movie ticket apps. I don't care which one, but I care that it's actually one of them. To my knowledge none of those ticket apps implement an intent filter. Feb 08 12:10:02 right Feb 08 12:10:09 what you will need to do is build-in support Feb 08 12:10:13 i have one layout for a dialog box but when i change my phone's view to landscape mode the dialog box exceeds the dimensions of the fragment while in portrait mode it is working fine,why it is so? Feb 08 12:10:14 i have one layout for a dialog box but when i change my phone's view to landscape mode the dialog box exceeds the dimensions of the fragment while in portrait mode it is working fine,why it is so? Feb 08 12:10:14 i have one layout for a dialog box but when i change my phone's view to landscape mode the dialog box exceeds the dimensions of the fragment while in portrait mode it is working fine,why it is so? Feb 08 12:10:21 for a select number of apps, and do some research to find out what intents you can use, if any Feb 08 12:10:28 to initiate that action in those apps Feb 08 12:10:34 then Feb 08 12:10:35 bohemia, you just ruined any chance of anyone actually trying to help you. Feb 08 12:10:44 find out of those apps are installed (package name) Feb 08 12:10:52 and add those to a custom chooser if they are available Feb 08 12:11:08 syzygy you don't bother that Feb 08 12:11:14 chutiya Feb 08 12:11:34 I can not help you with that. Feb 08 12:12:07 ok Feb 08 12:12:14 Syzygy: make sense? Feb 08 12:12:20 tx, by custom chooser you mean I have to implement the behavior, that's basically exactly like sharing, myself? Feb 08 12:13:35 You might just need to filter down the apps list on the chooser Feb 08 12:13:40 which that stackoverflow link will do Feb 08 12:13:51 try it out and see if the apps do what you want to them to do Feb 08 12:13:52 I have found one app that uses a com.thatapp.something.ACTION that I could probably hijack, but it's not general. Feb 08 12:13:55 with that action Feb 08 12:14:03 Some won't be! Feb 08 12:14:13 That's the nature of things. Only simple data is simplified Feb 08 12:14:18 like images, URLs, text, etc. Feb 08 12:14:23 er Feb 08 12:14:29 only simple data is standardized* :P Feb 08 12:15:23 anyone? Feb 08 12:16:28 bohemia, just prepare based on orientation Feb 08 12:17:48 tx, yeah, but I want the always use this app functionality... I know it's not that hard to implement, but still, if there's a way where I just have to supply the package names, that would be prefered. Feb 08 12:18:43 i am loading that view dynamically having width and height as match_parent to that of fragment so what to prepare in that? Feb 08 12:18:44 whatitis, don't encourage that behavior... Feb 08 12:20:57 whatitis i have already created another layout resource file for landscape mode. Feb 08 12:21:12 bohemia, prepare as in if your "dynamically created view" extends the bounds of what is available, you add a scrollview to encompass such, or limit the view based on the limits Feb 08 12:31:55 and Syzygy with your service notification, can't you make your activity bind to service and upon activity closing unbind so service can check for bound activity and if 0 display notification? Feb 08 12:34:41 possibly, but saving a boolean to preferences works just as well and is simpler. Feb 08 12:35:19 Does android support chemical mime types? Feb 08 12:36:09 .. uh Feb 08 12:36:18 android doesn't have any chemistry-specific software built-in Feb 08 12:36:19 so no Feb 08 12:36:29 there is nothing installed to handle those types Feb 08 12:37:16 seems like it can just deal with anything you write into the mimetype field. Feb 08 13:37:35 what is the biggest problem in developing apps in android over apple? Feb 08 13:38:42 testing on lots of devices Feb 08 13:38:48 giving up trying and just hoping it works Feb 08 13:38:48 also Feb 08 13:38:53 lots of different screens Feb 08 13:38:58 From a developer standpoint, I would say the Activity/Fragment lifecycles and inter- Activity/Fragment communication Feb 08 13:38:58 (physically) Feb 08 13:39:12 inter app and fragment communication is pretty easy Feb 08 13:39:21 and there are many things you can do to make it easier on yourself Feb 08 13:39:24 bus systems for example Feb 08 13:39:25 Not compared to iOS development Feb 08 13:39:48 tx: ok, think I've got that working Feb 08 13:39:58 ? huh? Feb 08 13:40:03 How would I wait for the service to run if it hasn't finished yet Feb 08 13:40:19 CyberJacob> What's the best way of having the activity fetch the last copy of the data from the service? Feb 08 13:40:19 store that data in the service? Feb 08 13:41:01 thanks Feb 08 13:45:15 goose_, I'd say the biggest problem is the idiot manufacturers who keep fucking up with the OS Feb 08 13:46:03 ya a lot of OS now a days Feb 08 13:46:06 people think samsung equates to android but frankly I don't think I can even remotely suggest that samsung makes android compatible devices and software Feb 08 13:46:22 samsung phones sucks Feb 08 13:46:30 nokia is in the market again Feb 08 13:46:57 with nougat Feb 08 14:03:29 can anyone help me with debugging? I want to debug my app. it works properly but I wanted to see debugging in action. I set a breakpoint, but then the application does not stop on it. It probably once did, but now it does not even when I re-add breakpoint. what may be the problem? Feb 08 14:03:41 tx, thanks for your help earlier, i think I got it mostly working the way I want. Feb 08 14:06:06 actually few days ago when I tried first the debugger did not connect at all Feb 08 14:08:16 are you starting the app in debug mode" Feb 08 14:08:54 you should create a new app from the wizard, add a breakpoint in the main activity, hit debug and see if it hits Feb 08 14:09:10 you cann attach debugger in current ran app Feb 08 14:09:34 its phone and bug icon 3 positions next to run icon Feb 08 14:10:05 you can also execute it while debugging with the gear + run icon. Feb 08 14:10:38 yay... android studio froze -.- Feb 08 14:11:31 having some odd issues with this work notebook... but at least my new private one arrived today. Feb 08 14:22:00 I am starting app in debug mode, yes! :) Feb 08 14:22:27 it starts, says waiting for debugger, then when debugger connects (yes it does connect), the app goes on as if there was no breakpoint set Feb 08 14:22:50 try setting more breakpoints Feb 08 14:23:05 where do you set breakpoints Feb 08 14:23:35 onCreate, onStart Feb 08 14:23:46 like currently both onCreate and onStart of foreground activity Feb 08 14:25:03 put some Log.d(...) line, breakpoint that line Feb 08 14:25:14 if log prints and breakpoint dont occur, somethings wrong :v Feb 08 14:25:26 Any idea why my intent filter does not work? https://gist.github.com/Syzygy2048/6f75cd033cede505006417d46d753099 Feb 08 14:28:35 Hi! I just learned how to write a native module in React Native. But i don't understand the probably simple task of includeing some external JavaLibrary and use that. Anyone who can help me or guide me to a example repo or blogpost ? Feb 08 14:28:46 would like to use parts of this library https://github.com/iPaulPro/aFileChooser Feb 08 14:29:24 But when i add the suggested lines to my Android Manifest i run in to issues Feb 08 14:31:02 so when I do pm.querIntentActivities(intent, 0); the expected activity is returned, but when I do startActivity(intent) I get an exception because no activity can be found... Seems like I'm missing something here... Feb 08 14:36:30 Did you create a new intent? Feb 08 14:37:35 Mavrik, line 3-10 are all I'm trying to do right now ( https://gist.github.com/Syzygy2048/6f75cd033cede505006417d46d753099) Feb 08 14:38:47 as I said, if I do packageManager.queryIntentActivities(intent, 0); The activity of app2 is returned. Feb 08 14:42:34 So in other words, yes, I did create a new intent. Feb 08 14:53:44 hey. breakpoints that I place just do not work on application start. however they seem to work when the line with a breakpoint is hit later. like if I set breakpoint to the log line it does not hit, the log line is in onResume. but if I turn screen off and on again, then breakpoint triggers Feb 08 14:54:22 Mavrik, seems like it's an issue with the category... But if I set it to a standard category it doesn't work either, if I set it to default, everything from slack to ES file browser wants to take care of this.... Feb 08 14:55:53 webczat, disable instant run, proguard and clean Feb 08 14:57:47 instant ruin* Feb 08 14:58:39 it takes me 6 minutes to build without it... Feb 08 15:01:12 you don't need to build every 2 minutes, it creates so many problems for me that i keep it disabled, and from time to time retry it to see if it improved and then disable it again Feb 08 15:01:32 it works very well with a simple hello world project Feb 08 15:01:48 it's a real mess with lot of modules, deps and external projects Feb 08 15:02:48 also recently when i retried, i noticed it still suffer from an old issue (which is not reflecting code changes which is extremely annoying) Feb 08 15:03:06 disable instant run, proguard and clean. could you tell me what those are, and what problems they cause? Feb 08 15:03:36 instant run allows dex slicing to quickly update your apk without rebuilding everything which changed and pushing everything, it's fast Feb 08 15:03:53 proguard is an optimization and obfuscation tool among other things which mangles all your java code Feb 08 15:03:54 proguard takes out unneeded code and obfuscates the rest. Feb 08 15:04:18 and clean wipes the tears of past builds away. Feb 08 15:04:20 webczat: Debug.waitForDebugger Feb 08 15:04:45 webczat, just do in the settings of AS, search for intant run and disable it - and go in your build.gradle files and put false at minifyEnabled Feb 08 15:04:55 the debugger properly connects to the app, just breakpoints do not work on initial run Feb 08 15:04:58 so you can be sure your issue does not come from any of those two Feb 08 15:05:19 minify is disabled by default, checked Feb 08 15:05:56 well, maybe your sources slightly changed, hence the clean recommandation above, otherwise it might be just another bug Feb 08 15:06:33 adq: I am doing a weird things. due to limited resources here and accessibility requirements I run as on a windows vm put on a server, and I actually redirect usb from laptop to there. weird and slow sometimes but works. so it could also be some kind of a tiing issue? Feb 08 15:06:52 *timing Feb 08 15:07:42 well, if you cannot test without your vm usb redir, you cannot know if it comes from here or not Feb 08 15:08:05 i did some debugging via windbg inside vmware/vbox in the past, did not have issue but it was not android stuff related Feb 08 15:08:57 sourceSets for flavor dimensions works wonderful and made me happy today Feb 08 15:10:12 adq: but it is a remote, not local vm Feb 08 15:10:27 only you can know Feb 08 15:20:19 What can I do against apps that fill up my intent chooser for action_share that have no place being there? E.g. skype, because I assume it has mimetype "*/*" Feb 08 15:25:29 Does GSON have an equivelent of JSON.parseObject() for an existing JsonObject object? Feb 08 15:29:28 ive a question about rxjava2 and /or observable/observer/listener. I have a few listener which have several outputs Interface test (onConnected, onResumed, onDisconnected, onMessageReceived). Now ive a singleton object which register/unrgister all the listener. As far as i know RXJava2 only supports onNext/onError/onSubscribe/ ... does it make sense in this case to wrap an interface listener in the onNext or should i avoi Feb 08 15:47:57 Seems like Intent.CATEGORY_ALTERNATIVE is what I'm looking for. Feb 08 15:49:07 but now I have the issue that my expected activities are selectable by ACTION_PICK_ACTIVITY, but not by ACTION_CHOOSER... Feb 08 15:53:54 android x86 question here?................ http://www.android-x86.org/releases/releasenote-6-0-r2 <-- here say that also rpm file are provided, but can't find the link Feb 08 15:58:26 Hi, I'm trying to use spice to connect to a running avd and I'm getting a cryptic error message Feb 08 15:58:30 [lc@sunwell ~]$ spicy-screenshot -h localhost -p 5558 Feb 08 15:58:30 (spicy-screenshot:2497): GSpice-WARNING **: invalid SPICE_MAGIC! Feb 08 15:58:30 (spicy-screenshot:2497): GSpice-WARNING **: invalid SPICE_MAGIC! Feb 08 15:58:30 (spicy-screenshot:2497): GSpice-WARNING **: main channel event: 22 Feb 08 16:02:09 I like that error message... It's better than the ones I get. Feb 08 16:03:17 I'm glad you like it Feb 08 16:05:19 pmercado, wrong channel Feb 08 16:09:50 okay I do not know what happens with this debugger. Feb 08 16:10:13 like it may really be a timing issue. Feb 08 16:10:28 but I managed to turn it on only once Feb 08 16:11:02 I mean I managed to properly use breakpoints only once, although they work later. like if I ran an app then set a breakpoint it works Feb 08 16:11:09 apps waits on the debugger by default, so it shouldn't really be a timing issue. Feb 08 16:11:20 disabling instant run does not help, proguard already not enabled, etc Feb 08 16:12:08 Syzygy: well they wait. but maybe later when the debugger connect there is something? transferring data to a usb phone over an internet is not a common thing Feb 08 16:12:36 occasionally the debugger disconnects, but you describe it differently Feb 08 16:12:56 like usb redirection over spice protocol. works well, but for some reason those breakpoints do not work. I cannot check if they work locally, unfortunately Feb 08 16:13:28 have you tried it without spice? Feb 08 16:13:32 Syzygy: yeah, it is just breakpoints and probably only when the app is actually starting Feb 08 16:13:50 Syzygy: how could I do such a thing if my vm is remote? Feb 08 16:14:01 I have no idea, i never used spice. Feb 08 16:14:18 Syzygy: spice can do usb redirection, so it is the only possibility Feb 08 16:14:27 the spice magic thing 20 minutes ago is possibly the first time i've heard about it. Feb 08 16:14:37 like it is the protocol to connect to remote vms Feb 08 16:15:09 like rdp or whatever, and can do similar things, that is, usb redirection. Feb 08 16:16:21 well, I don't know if it's caused by spice, hitting a breakpoint is a simple thing. So either you're doing something really really wrong or whatever you're doing prevents you from using it correctly. Feb 08 16:17:05 Syzygy: I think that either *setting* a breakpoint happens at a wrong time for example, something like a race condition... or what Feb 08 16:17:23 you can have them set before you even compile the app. Feb 08 16:17:42 so maybe you are doing something really really wrong after all. Feb 08 16:17:44 if I set breakpoint on onResume, then start the app, and it goes past onResume. I then turn screen off and on, breakpoint hits because activity onResume's again Feb 08 16:18:16 it works like that. Feb 08 16:18:30 sounds to me like it should trigger the first time. dunno. Feb 08 16:19:01 could be that spice does some weird stuff with the connection and the app doesn't wait for the debugger to connect Feb 08 16:19:03 me too. and sometimes it does trigger. like it happens so rarely, so that I do not know if it is random but rare, or always happens in one case that I cannot reproduce Feb 08 16:19:13 or you're not hitting the breakpoint due to a rogue if condition. Feb 08 16:19:38 Syzygy: it is a method not line breakpoint, I could not miss it Feb 08 16:20:22 speaking of doing something really really wrong... I'm trying to hit an intent filter in another app with CATEGORY_ALTERNATIVE rather than CATEGORY_DEFAULT, it works with ACTION_PICK_ACTIVITY, but not with ACTION_CHOOSE, any idea what could be wrong there? Feb 08 16:21:32 hey guys can you suggest any opensource apps to learn the basics of android?? Feb 08 16:21:33 Syzygy: so although it waits for the debugger to settle as the log says, maybe it has a timeout and does not log the timeout? or ... not sure what, because I am not sure how breakpoints internally work Feb 08 16:22:13 kartik_karz, if you want to learn the basics: https://developer.android.com/training/index.html Feb 08 16:23:02 webczat, I'm not sure, i usually set line breakpoints. try that? and maybe try setting one deeper in your app and check if that is hit the first time you try to access it. Feb 08 16:23:10 actually not like that... I know basics of android-dev but want to have direct apps practice Feb 08 16:23:44 Syzygy: tried line breakpoints too. deeper ones would probably be hit but well, something is still broken Feb 08 16:23:53 kartik_karz, it depends what you want to learn, the openvpn client is pretty manageable if you don't care about modern UI components Feb 08 16:24:09 "would"... try it. Feb 08 16:24:16 owncloud's android client is another one i've made modifications too pretty easily Feb 08 16:24:21 *to Feb 08 16:25:07 I need an app which on modifiying would make it an awesome personal application Feb 08 16:25:30 Syzygy: what I meant is: the result does not matter because it is still broken. my app's main activity starts a second activity, I set breakpoint in onResume and in a log instruction inside separately, and it did not hit. it is probably deep enough. unless I would set on a key event or some other non lifecycle event, but knowing what happened before, it woruld trigger Feb 08 16:25:42 kartik_karz, https://github.com/Syzygy2048/BaseApp :3 Feb 08 16:26:42 like say some productivity apps etc Feb 08 16:27:03 actually how many years of experience do people here have?? Feb 08 16:27:20 I have an experience of 1 week Feb 08 16:27:50 webczat, the result matters because it can help you narrow down the issue. if for example you open the app, wait a minute, click a button to open another activity, and then the breakpoint triggers on the first try, you know that the app does not wait for the debugger. Feb 08 16:28:26 roughly 3 years part time. Feb 08 16:30:55 Syzygy: yeah. but as I said, it triggers on second onResume. logically speaking, it would also trigger on an event. Feb 08 16:31:36 but programming doesn't always have to do with logic, sometimes you're just working with a samsung device... Feb 08 16:31:40 Syzygy: so, it probably could have something like a timeout or race while waiting for debugger. the thing is it gives me nothing as I cannot ix that. I would have to ask my friend to test it on the same app Feb 08 16:31:54 Syzygy: this is huawei lol Feb 08 16:32:08 just saying, devices can be weird. Feb 08 16:32:23 Syzygy: yeah. Feb 08 16:32:57 Syzygy: but I can probably safely assume the breakpoint would trigger. I am a little too tired to test it now, not sure :D Feb 08 16:33:11 last month i got shit in here for not implementing Camera2, when the android 6 device i was using just didn't implement it. Feb 08 16:33:45 webczat, it's like 2 or 3 clicks... by far less exhausting than having this argument. Feb 08 16:34:43 Syzygy: not when you already shutdown the whole vm :) Feb 08 16:35:06 would be less tiring for me if you restarted it at least :P Feb 08 16:36:26 :D Feb 08 16:37:06 just not today. fortunately I was just testing debugging, the app itself works properly :) so Feb 08 16:39:51 alright, time to give up, finish up and go home. Feb 08 16:47:14 god damn it, right when I wanted to give up I find something that could solve my problem... Feb 08 16:49:05 hi Feb 08 16:50:37 anyone here Feb 08 16:51:19 no. Feb 08 16:52:48 http://picpaste.com/error2-zQDFjbv8.jpg Feb 08 16:53:07 i get this when i build gradle Feb 08 16:53:15 what should i do ? Feb 08 16:53:50 first, clean up your desktop Feb 08 16:54:03 hahahahaha Feb 08 16:54:10 then, use a code pasting site like gist.github.com instead of a screenshot Feb 08 16:54:26 then, google that error :) http://stackoverflow.com/questions/37250493/could-not-find-method-android-for-arguments Feb 08 16:54:55 which has at least one likely fix Feb 08 16:55:38 thanks Feb 08 17:27:11 https://developer.android.com/about/dashboards/index.html Feb 08 17:27:41 hm, what was kitkat last month, did it stop dropping ? Feb 08 17:35:10 g00s, http://imgur.com/a/Kynb1 Feb 08 17:35:11 enjoy Feb 08 17:35:33 page2 is just legend 22 23 24 25 (obvious to spot) Feb 08 17:35:52 obvious to NOT spot ;) Feb 08 17:36:19 thats pretty much the same version at https://en.wikipedia.org/wiki/Android_version_history#/media/File:Android_historical_version_distribution_-_vector.svg Feb 08 17:36:26 looking for raw data Feb 08 17:36:57 yes it should be the same, it comes from the same place Feb 08 17:37:08 (the official dashboard) but it's not from me so i'm not sure i can share the raw data Feb 08 17:38:10 https://blog.google/products/android-wear/android-wear-20-make-most-every-minute/ Feb 08 17:41:21 so what do we learn from the graph g00s? Feb 08 17:41:39 that ppl are changing less often their device and/or manufacturers are even more lazy than before to update their rom? Feb 08 17:41:58 i don't see anything else relevant Feb 08 17:42:27 lol i just wanted to project KK in a few months from now Feb 08 17:42:37 might have to argue for or against supporting it Feb 08 17:42:39 s/months/years/ Feb 08 17:42:53 i'm still near min 16 Feb 08 17:43:20 on my personal apps, it's not like i don't want to allow more ppl to use my apps or that i'm so new (bugged) features dependent Feb 08 17:43:34 this wouldn't be personal app Feb 08 17:43:36 and lib support is more and more polished Feb 08 17:43:46 well, if it's not for personal app it's easy to know Feb 08 17:44:06 but that's up to the context only you have Feb 08 17:44:46 christmas is so far, nougat won't raise fast i believe Feb 08 17:45:23 And then weā€™ll have Android Oleo Feb 08 17:45:48 Our newest app has 16% KK, 6% < KK and everything else is Lollipop or newer Feb 08 17:45:59 Nougat at 10% Feb 08 17:47:00 what kind of apps? :) Feb 08 17:47:05 because the context matters so much Feb 08 17:47:17 if you use something requiring the latest features, it really makes sense Feb 08 17:47:33 or not even the latest, i could give "fingerprint" as an example Feb 08 17:48:10 Mavrik have you used Realm? seems the iOS app (on my side) has been completed and they decided to go with that. Feb 08 17:48:27 i generally just prefer sql but whatevs Feb 08 17:48:39 I hate Realm due to their dumbass threading behaviour. Feb 08 17:48:46 lol oh no Feb 08 17:48:50 But it's fine if you want to do queries on UI :) Feb 08 17:49:00 why use realm when u can use array list Feb 08 17:49:05 lol Feb 08 17:49:09 adq, just a PDF viewer / editing app, most downloads in India for some reason. Feb 08 17:49:22 is free? Feb 08 17:49:25 yp Feb 08 17:49:33 going to make an advanced text logger called "Awesomo" Feb 08 17:49:33 that sounds pretty useful Feb 08 17:49:36 everyone will use it Feb 08 17:49:42 cuz its Awesomo Feb 08 17:49:45 wow incredible Mavrik Feb 08 17:49:52 ofc i believe you, but i would not have expected that Feb 08 17:49:55 We didn't do a marketing push yet, so I guess other apps are more relevant. Feb 08 17:50:05 But opening my private projects that seems to be the trend across all of them. Feb 08 17:50:13 FE:H is such a nicely polished game Feb 08 17:50:18 Surprisingly little < KK phones under active users. Feb 08 17:50:20 except for their webview announcements, that shit is ugly as fuck Feb 08 17:50:27 because < KK phones are garbage Feb 08 17:50:29 except in 3rd world Feb 08 17:50:36 samsung does a good job of getting people to upgrade Feb 08 17:51:01 'your phone will self destruct unless you press 'ok' Feb 08 17:52:22 https://arstechnica.com/gadgets/2017/02/lg-watch-sport-review-googles-bulky-watch-lets-you-leave-your-phone-at-home/ here we go too Feb 08 17:52:40 news are popping up Feb 08 17:52:41 Samsung is also starting 7.x rollout together with Sony and LG, so we'll see rising Nougat numbers pretty soon Feb 08 17:53:01 g00s, anyway, thing I hate with Realm is that you're not allowed to carry their objects over threads Feb 08 17:53:17 So the standard pattern of "load on background thread, shove into adapter on UI thread" doesn't work. Feb 08 17:53:35 so they make those threading decisions for you :( yuck indeed Feb 08 17:53:41 isn't that bad library design ? Feb 08 17:54:27 if I want my app to do networking even when minimized, what am I looking for, a Service? Feb 08 17:55:25 adq that is pretty thick, but i guess my garmin forerunner was thicker. Feb 08 17:55:53 i kinda like this new LG sport Feb 08 17:56:06 but i'm not wearing those things, only dev for fun on it Feb 08 17:56:21 https://plus.google.com/u/0/+IanLake/posts/WWDo8smBWtQ Feb 08 17:56:25 guess it depends how much heft it has, and whether you are always aware of it on your wrist (would be annoying) Feb 08 17:56:26 hurry wear developers Feb 08 17:56:39 (i'm so late) Feb 08 17:56:43 g00s, their idea is that they're fast enough for you to not need background thread Feb 08 17:56:46 g00s, so it's "simple" Feb 08 17:56:49 I don't trust them :P Feb 08 17:56:53 g00s, main issue is battery Feb 08 17:56:57 and it's not going to be solved this year Feb 08 17:57:14 other than that, it's a fancy gadget Feb 08 17:57:24 good for tech enthousiast, not for my mom Feb 08 17:57:47 but seriously, dev for round screen is just so fun Feb 08 17:58:33 also lot of constraints, tiny space, not much resources, it's really interesting if you like working in a constrained environment Feb 08 18:03:16 Iā€™ve got a Pebble Time (:() and a 1st gen ZenWatch. I may have to upgrade now Feb 08 18:06:17 wait for a deal Feb 08 18:06:25 or pay the high price lol Feb 08 18:06:34 yeah Feb 08 18:06:42 I mean, I could write it off, but i should wait Feb 08 18:06:43 Fossil smartwatches are on sale today I think :) Feb 08 18:06:50 50% off or something Feb 08 18:07:28 linky? Feb 08 18:09:54 be sure to take one planned to be upgraded to wear2 Feb 08 18:10:11 fossil models should be Feb 08 18:11:04 ars has a list. I saw fossil on there Feb 08 18:11:24 in the official blog link i pasted, you have a list too Feb 08 18:11:37 but most of it is already known/confirmed (see the corresponding reddit) since monthes Feb 08 18:12:00 i'm surprise that lg updates the LG G watch R (the round one) which is pretty cool Feb 08 18:12:43 and motorola probably made a lot of ppl sad Feb 08 18:19:55 if bill and ted were android developers, what excellent app would they have made? Feb 08 18:20:43 a dialer. duh Feb 08 18:21:07 Hey, on a Button from xml you can set android:theme="@style/someStyle" .. I'm trying to do it from code, cant find a solution that works... got one? Feb 08 18:21:21 you donā€™t do that Feb 08 18:21:26 you want to set android:style Feb 08 18:21:47 which, there is also a setStyle method on Views Feb 08 18:22:41 Yeah but on buttons (material design buttons) style does not work.... only theme allows you to change color/tint/ripple attributes Feb 08 18:23:13 are you sure? Feb 08 18:23:33 in your appā€™s theme, what are you inheriting for default button style? Feb 08 18:23:44 Im sure, that's how it is... Feb 08 18:24:10 http://www.materialdoc.com/raised-button/ Feb 08 18:24:38 so in your appā€™s theme, what do you inherit for your default button style, and what theme do you inherit from? Feb 08 18:25:37 In the manifest, the theme is set to AppTheme which is defined as follows Feb 08 18:33:09 thereā€™s part of your problem. Your Button is not inheriting a Button style Feb 08 18:33:19 have it inherit Widget.AppCompat.Button Feb 08 18:35:48 the style isnt being applied :/ Feb 08 18:36:10 style="@style/WatermelonDigitButton" produces a plain gray button Feb 08 18:36:24 android:theme="@"... would work Feb 08 18:37:32 unfortunately there is no way to programatically set a theme Feb 08 18:37:39 youā€™re gonna have to use the XML Feb 08 18:38:14 thanks Feb 08 18:42:13 Is anyone else surprised that there isnā€™t a built in image view for android that lets the view stretch to the width of a screen but keep the original aspect ratio for height? Iā€™ve had to build one for almost every app Iā€™ve done Feb 08 18:43:01 Itā€™s not that itā€™s hard, itā€™s just surprising that Iā€™ve used it so often and itā€™s still a custom view Feb 08 18:43:48 isnā€™t that fitCenter? Feb 08 18:45:10 Maybe fitCenter with width of match_parent and height of wrap_content would work, I recall there being an issue with it but I canā€™t remember what it was Feb 08 18:45:38 IIRC it had issues with relative layouts, I could be remembering wrong Feb 08 18:47:34 does anyone have a bare template project that's generated by Android Studio? Feb 08 18:48:02 oh, it's tools/templates/projects Feb 08 18:49:53 no, that's not right... Feb 08 18:51:37 pfn its in the android plugin Feb 08 18:52:40 i think its /Applications/Android Studio.app/Contents/plugins/android/lib/templates Feb 08 18:52:49 hmm, where's android studio in aosp Feb 08 18:53:01 oh, that's useful, thanks Feb 08 18:53:37 /Applications/IntelliJ IDEA CE.app/Contents/plugins/android/lib/templates/gradle-projects Feb 08 18:53:50 Mavrik how close do you think its possible to get, to GCM reliability, using mqtt and a standalone long running service. seems this decision has been semi-made; i think it was easier before doze / etc but wondering what you think Feb 08 18:54:18 not the way i would go, but ... some things have been done already Feb 08 19:05:35 "A fire that drew out 110 firefighters and 19 trucks to a factory operated by Samsung Galaxy Note 7 battery supplier, Samsung SDI, was caused by discarded faulty batteries, the company has said. " Feb 08 19:14:04 lol Feb 08 19:32:26 US govt makes a profit on california, but trump wants to "defund" Feb 08 19:32:33 heh Feb 08 19:32:40 * pfn reads days old news Feb 08 19:33:29 pfn you guys are fired ! Feb 08 19:34:23 lol, nevermind cali sends 400b+ yr to us govt Feb 08 19:34:25 that's schwarzeneggars job now Feb 08 19:35:20 arnold still has some great comebacks. like when he said they should switch jobs, and that he's praying for trumps ratings :) Feb 08 19:35:44 arnold is great in general, it's disappointing he was ineffective as the governator Feb 08 19:36:51 true. It seems the biggest thing he did was not defend Prop 8 Feb 08 19:37:05 at least, after I moved here Feb 08 19:38:39 should I create a app/theme directory to place there different themes? Feb 08 19:39:10 those should be in res/values Feb 08 19:39:47 you could split them into different files and put them in there Feb 08 19:39:48 thanks Feb 08 19:40:25 Iā€™m not 1000% sure, but you may still need to define the existence of the theme in themes.xml Feb 08 19:44:18 is it possible to have one layout XML, with 2 buttons and set each button with a style, which would be defined in the theme. Each theme could implement the buttons style, and when the theme is loaded the buttons will get those styles.... Feb 08 19:46:14 I cant find an example of something like that Feb 08 19:47:28 donā€™t do that Feb 08 19:48:58 that just sounds confusing as all hell Feb 08 19:51:59 iā€™ll reserve the right to re-evaluate if I see a picture of the effect youā€™re trying to create, but my gut says youā€™re fighting the framework, and thatā€™s always a bad idea Feb 08 19:53:03 lol this is hilarious, Trump called Flynn 3am in the morning to ask what was better, a strong or wek us dollar. Flynn said he no idea because it wasn't his area Feb 08 19:53:40 drumpf* Feb 08 19:53:47 wow. 1. itā€™s not an either/or thing, you want something in between. 2. He has a damned Treasury Secretary who would know that Feb 08 19:54:09 i guess he was too embarrassed to ask them Feb 08 19:54:24 heā€™s gonna get us all killed Feb 08 20:37:44 hi Feb 08 20:38:01 i downloaded camera2basic from their examples and want to use it as the base Feb 08 20:38:23 how do I change com.example.android.camera2basic to com.app.myapp Feb 08 20:39:02 i changed the .camera2basic part but can't figure out how to change the com.example.android part Feb 08 20:50:47 Hey everyone :). Would anyone possibly know why an app might freeze? It doesn't crash, and when debugging the app just hangs. The line of code is when importing a corrupt file(an epub) using a java library. But instead of throwing an IOException that I can catch...no exception, no crash, just hangs :(. Feb 08 20:54:02 you're doing it on main? Feb 08 20:54:46 Hmm, I tried using another thread but I may have been doing this incorrectly. Feb 08 20:55:06 I did it just by using this: Feb 08 20:55:12 http://stackoverflow.com/questions/11123621/running-code-in-main-thread-from-another-thread Feb 08 20:55:45 uh Feb 08 20:55:46 http://pastebin.com/C1UiZwFX Feb 08 20:56:19 dont do heavy i/o on main thread Feb 08 20:56:39 otherwise it freezes and may end up with ANR (android not responding, force close) Feb 08 20:57:20 I tried (the paste bin) which should take it off the main thread right? Feb 08 20:57:30 because with this is still pauses Feb 08 20:57:53 the loadEbooks() is invoked in separate thread? Feb 08 20:58:07 oh, no just the code inside loadEbooks Feb 08 20:58:45 umm but this all happen in main thread Feb 08 20:59:11 and code inside Runnable will happen on main thread even if loadEbooks is called from background because of mainHandler.post(myRunnable) Feb 08 20:59:19 oooh!! Feb 08 20:59:36 so if I move this to the ui thread maybe? Feb 08 20:59:39 * capella loves importing corrupt files, they're the best šŸ‘ Feb 08 20:59:57 :D :D . I'm happy for corrupted files to be ignored =) as long as I can view the rest Feb 08 21:00:04 or deleted... Feb 08 21:00:31 anyway what is the bigger picture? are you loading list of books to populare ListView/RecyclerView? Feb 08 21:00:45 heh, yah, handle it gracefully is better Feb 08 21:00:51 yea that's right! Feb 08 21:01:01 * i'm loading to populate a recyclerview Feb 08 21:01:03 Ashiren: ANR doesn't mean "Android Not Responding", it means "Application Not Responding" Feb 08 21:01:11 whatever Feb 08 21:01:23 Is there a SWEET way to detect if the device is a "HANDHELD" device? (phone, tablet) versus Fire TV, Android TV, Fire TV dongle? Feb 08 21:02:33 explodes: http://stackoverflow.com/questions/27138838/how-can-i-check-if-an-app-is-running-on-an-android-tv first link of google ~ Feb 08 21:03:06 Ashiren : should I be doing this as an IntentService instead do you think? Feb 08 21:03:17 thats overkill Feb 08 21:03:20 Nice thanks Feb 08 21:06:08 ah I just realised a simple Thread t = new Thread(new Runnable() {...} is fine. Feb 08 21:06:16 Saves an asynctask... Feb 08 21:06:27 Thanks Ashiren and capella! Feb 08 21:06:37 beware because AsyncTask is easy to mess up Feb 08 21:07:23 http://simonvt.net/2014/04/17/asynctask-is-bad-and-you-should-feel-bad/ Feb 08 21:07:54 yeah I do quite a lot :P. Normal Thread would be suitable? Seems to kinda unblock it.. Feb 08 21:08:56 new Thread is simple. but personally i'd use some ScheduledExecutor pool or rxjava Feb 08 21:10:23 Ok, been meaning to look at rxjava on android so this sounds like a good opportunity! Had no idea about ScheduledExecutor, thanks a bunch! Feb 08 22:53:01 hey guys Feb 08 22:55:19 in a google sample, which file holds @string_appname Feb 08 22:55:39 sorry @string/app_name Feb 08 22:55:46 if you cmd/ctrl + click it, it should take you there Feb 08 22:55:49 tyrese: what do you mean? Where is it defined? Feb 08 22:56:41 ok i think i found it Feb 08 22:56:53 base_strings.xml Feb 08 22:56:54 ty Feb 08 22:58:31 Do you have a preferred rich text editor component for Android? Feb 08 22:58:48 Current candidates found by googling: Feb 08 22:58:55 https://github.com/wasabeef/richeditor-android Feb 08 22:59:03 https://github.com/1gravity/Android-RTEditor Feb 08 22:59:09 https://github.com/mthli/Knife Feb 08 22:59:20 Do you have any experience with any of them? Feb 08 23:01:03 me? Feb 08 23:01:47 we're using Android Studio, I might want to use intellij. but I usually just use emacs Feb 08 23:02:31 Theyā€™re talking about something youā€™d drop into an app Feb 08 23:02:44 like a plugin? Feb 08 23:02:49 like a view Feb 08 23:02:58 oh Feb 08 23:03:04 something you would include so as to provide that functionality in their app Feb 08 23:03:19 like a notepad for android? Feb 08 23:03:27 with bolds, etc Feb 08 23:03:33 i guess Feb 08 23:04:05 Is there a list of components for android somewhere? Feb 08 23:04:18 or libraries Feb 08 23:04:24 android arsenal is one Feb 08 23:04:40 there was another one, but I canā€™t remember what it is right now Feb 08 23:04:49 ill try that Feb 08 23:04:51 ty Feb 08 23:13:00 hey i think this is my last question Feb 08 23:13:08 it probably isnā€™t :p Feb 08 23:13:17 well for a little bit at least lol Feb 08 23:13:56 /storage/emulated/0/Android/data/com.example/android.camera2basic/files/pic.jpg is where the camera saves the file Feb 08 23:14:08 where exactly is that? and how can I save it directly to gallery? Feb 08 23:14:17 dont' Feb 08 23:14:27 why not? Feb 08 23:14:40 the gallery should be saving it automatically Feb 08 23:14:52 it doesnt Feb 08 23:15:12 it's saving it to com.example.android.camera2basic Feb 08 23:15:24 and i should have reduced all that to our package Feb 08 23:15:24 the location on disk does not matter Feb 08 23:15:45 just for consistency purposes Feb 08 23:15:47 what you will probably want to do is look at the intents that the gallery responds to, and see if you can add one there Feb 08 23:15:52 donā€™t worry about it Feb 08 23:16:21 i think this is what you want to look at to get the gallery to see your image: https://developer.android.com/reference/android/provider/MediaStore.html Feb 08 23:17:37 so do apps store information in their own folder? Feb 08 23:17:45 and you tell the gallery to look at it? Feb 08 23:17:53 you generally donā€™t have write access outside of it Feb 08 23:18:23 thats kind of cool Feb 08 23:19:33 tyrese: usually if you google for some kind of Android component on google you get github links. There is lots of stuff on github. Android Arsenal is an Android specific directory for components which are often (but not necessarily hosted on github). So I search for components on google and on Arsernal. Feb 08 23:20:02 i just want to know what sort of components are out there Feb 08 23:20:09 tyrese: for some reasons Arsenal results don't show up as often with a direct google search Feb 08 23:20:14 pretty much anything Feb 08 23:20:23 tyrese: have a tour on Arsenal then. Feb 09 01:19:44 Heya Feb 09 01:20:09 who, me? Feb 09 01:20:44 Anyone really Feb 09 01:25:03 logcat, or a pound of gold Feb 09 01:26:05 The weight of 1 pounds of gold is worth: $18,087.16 Feb 09 01:42:32 anyone please tell me the best source to learn JSON for android Feb 09 01:42:35 ?????? Feb 09 01:46:11 ?? Feb 09 01:46:28 Does this channel has a log? Feb 09 01:46:45 anyone please tell me the best source to learn JSON for android? Feb 09 01:51:20 what specifically do you want to know Feb 09 02:02:04 want to learn web services Feb 09 02:02:22 getting ans displaying data in my app Feb 09 02:12:51 * sdk tools 25.3.0 out * Feb 09 02:13:13 have a look at things like spring boot, gson and retrofit Feb 09 02:13:22 wow they removed ddms traceview Feb 09 02:13:46 despite the cpu trace in AS sux Feb 09 02:13:49 affian: USD$ 19,857.6 Feb 09 02:25:09 Does anyone else get an error in their gradle file saying "All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.1, 25.1.0. ..."? Feb 09 02:25:43 the only one i have is "compile 'com.android.support:appcompat-v7:25.1.1'" yet its using the same version it says it found -- 25.1.1 Feb 09 02:26:04 it's probably one of your dependencies Feb 09 02:26:15 It compiles and builds and runs but still reports it as an error when trying to push updates Feb 09 02:26:15 or you simply forgot to check one of your modules Feb 09 02:26:21 what do you mean? Feb 09 02:26:55 classpath 'com.android.tools.build:gradle:2.3.0-beta3' Feb 09 02:27:01 if you use some external lib, it should promote the version to the highest, but sometimes it bugs and fails to do that, also it depends on the gradle version & few other things you are using, there were bugs Feb 09 02:27:02 is my only dependency in my project gradle file Feb 09 02:27:18 and that is the highest version suggested by android studio Feb 09 02:27:21 with everything up to date, i did not have anymore this problem, but i had it a month ago or so Feb 09 02:27:27 you can track dependencies with gradlew Feb 09 02:27:36 i would do that if i were you to find the culprit Feb 09 02:27:54 this gradle is very old Feb 09 02:28:22 oops sorry i meant, try with the stable one Feb 09 02:28:35 classpath 'com.android.tools.build:gradle:2.2.3' Feb 09 02:29:04 iirc i had it with one of the 2.3.0-beta, but cannot remember exactly which one since i'm often switching from stable to canary depending on what i play with Feb 09 02:29:15 anyway, there are few tickets on b.android.com about it Feb 09 02:30:03 "To take advantage of all the latest features (such as Instant Run), improvements and security fixes, we strongly recommend that you update the Android Gradle plugin to version 2.3.0-beta3 and Gradle to version 3.3." Feb 09 02:30:18 is the message i get when i put it back to 2.2.3 Feb 09 02:30:25 adq wow the ant scripts are gone ! Feb 09 02:30:50 InfiniteWaves, what i meant about dependencies was more about compile 'tld.some.random.lib:23.2354.45' Feb 09 02:30:56 not the android gradle plugin itself Feb 09 02:31:08 but again, i hit this issue, i said all i had to say, good luck InfiniteWaves Feb 09 02:31:16 i have hit Feb 09 02:31:49 g00s, well, for ddms i can understand but traceview is still not fully ported :) that's my only concern Feb 09 02:31:59 also i suspect their path moves will create some troubles lol Feb 09 02:32:30 but you are saying it would be caused by a dependency. the only one giving me the error is the support:appcompat entry... i dont have any other support or android dependencies Feb 09 02:32:35 https://code.google.com/p/android/issues/detail?id=76094#c6 about this traceview pb Feb 09 02:32:40 "for ants" Feb 09 02:32:45 i dont have mismatched versions Feb 09 02:33:12 ... Feb 09 02:33:15 track your dependencies, period Feb 09 02:33:21 or deal with your warning and mismatching versions Feb 09 02:33:56 you said you do'nt have mismatched versions but came here to ask and say: Does anyone else get an error in their gradle file saying "All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.1, 25.1.0. ..."? Feb 09 02:34:03 are you trolling us? Feb 09 02:36:49 http://imgur.com/a/gI1xg Feb 09 02:37:19 please explain how i have mismatched versions when there is only 1 support dependency Feb 09 02:38:51 InfiniteWaves, what i meant about dependencies was more about compile 'tld.some.random.lib:23.2354.45' Feb 09 02:39:30 use gradlew and track your dependencies. Feb 09 02:39:37 you said that twice like it is supposed to have a new meaning Feb 09 02:39:47 yes it means, you have multiple dependencies Feb 09 02:39:54 and at least one of them is the culprit Feb 09 02:40:20 but again, it's because you use some gradle versions being affected by this bug, there are tickets but i'm not going to search them for you Feb 09 02:41:58 normally, it should auto-promote, but it does not in your (rare) case which i have hit, now we're going full circle, i may be not that good at explaining, someone might jumps and helps you in a different way Feb 09 02:43:10 you aren't because i have no idea what you are talking about yet your acting like im supposed to know all of this by heart or something Feb 09 02:43:41 some compile 'tld.some.random.lib:2...' have implicit dependencies to different versions Feb 09 02:44:08 you just don't see it until you track them, even if up to date they might not use the latest lib support or something, leading to mismatch Feb 09 02:44:30 usually ppl don't notice because it's auto-promoted, so everything ends up using the latest version found Feb 09 02:44:36 except in the rare case you are hitting right now Feb 09 02:44:57 which random lib are you talking about? the only random lib i have in my app is butterknife which isn't throwing any errors Feb 09 02:45:00 omg Feb 09 02:45:27 well, i don't know more InfiniteWaves, sorry Feb 09 02:45:35 sigh. nevermind. Feb 09 02:49:11 anyone know a good image recognition api?? i'd like to feed the api a picture then have it match it with other pictures that are essentialy the same with minor differences like angle the picture was taken etc Feb 09 02:54:27 bubbely: You're probably looking for OpenCV Feb 09 02:54:43 bubbely: http://opencv.org/ Feb 09 02:55:05 loke: thanks Feb 09 02:55:40 bubbely: The object detection API in OpenCV might be what you want: http://docs.opencv.org/master/d5/d54/group__objdetect.html **** ENDING LOGGING AT Thu Feb 09 03:00:02 2017