**** BEGIN LOGGING AT Fri Nov 04 03:00:01 2016 Nov 04 03:19:57 gonna have to learn kotlin just so keep following all these blogs ... Nov 04 04:06:13 If you haven't learned it by now, it's too late Nov 04 04:12:12 CedricBeust i think so :D Nov 04 05:34:08 A few days back, I posted a message here asking if anyone knew which engine a few games might of been made in, and I gave "Infinity Loop" as one example. Wanted to make mention that I came acrosss the answer. ;-) http://cocos2d-x.org/games/3774 Nov 04 06:48:07 i have 3 editText in my app,how to know in which edittext the cursor is blinking? Nov 04 06:49:37 i want to set text in the edittext having cursor Nov 04 06:50:11 i am starting learning android development from today. should i do udacity's "developing android app" as it seems to be bit old? Nov 04 06:50:48 fuddu hai android tutorials Nov 04 06:51:11 kuch smjh ni ata method kaha se aya Nov 04 06:51:22 dimag ka dahi ho jata h Nov 04 06:51:48 to kaha se padhna sahi rahega? google developer guide? Nov 04 06:53:08 yup Nov 04 06:53:08 please keep it english Nov 04 06:53:26 OK. TheSchaf. Nov 04 06:53:34 ah, western imperialism :) Nov 04 06:53:59 Any other resources that I should use byomkesh? Nov 04 06:54:23 video lectures on youtube Nov 04 06:54:38 most of them seems to be outdates. Nov 04 06:54:48 sorry, outdated Nov 04 06:54:54 well they will give you a run Nov 04 06:55:07 rest you can do by yourself Nov 04 06:55:07 Thanks, I will check them out Nov 04 06:55:41 i have 3 editText in my app,how to know in which edittext the cursor is blinking? Nov 04 06:57:05 check if hasSelection() on them Nov 04 06:57:18 or focus, or something :) Nov 04 06:57:19 ok Nov 04 06:57:40 let me look Nov 04 06:59:29 i want to set text too on that field so edittext.hasSelection().append(); won't work Nov 04 06:59:35 oh ok Nov 04 06:59:50 look at https://developer.android.com/reference/android/widget/EditText.html Nov 04 07:00:06 there is getText() Nov 04 07:01:48 getText takes the text from textfield, Nov 04 07:02:46 its like i have two buttons and 2 edit text, i want to set some text from both buttons but only where the cursor is blinking Nov 04 07:03:25 that's the problem am not getting how to get the current field where the cursor is blinking and set text over there Nov 04 07:04:28 getText returns an Editable so you can do like edittext.getText().append(...) Nov 04 07:04:39 an Nov 04 07:05:01 and for finding where the cursor blinks try isFocus or hasFocus - if that does not work try hooking some event on focus change and track the last selected edittext Nov 04 07:06:26 ok thanks Nov 04 07:17:58 I heard that taking snaps by camera while phone is locked/sleep or doing something else is banned by google? Nov 04 07:28:58 eh.. why did anyone created content resolver.. Nov 04 07:32:38 Good morning. Nov 04 07:33:25 Does anyone know of Glide loads "Large Bitmaps Efficiently" like described here? https://developer.android.com/training/displaying-bitmaps/load-bitmap.html That is, instead of loading the entire image, does it load a scaled down runtime to preserve memory? Nov 04 07:35:47 yes Nov 04 07:35:48 https://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en Nov 04 07:42:41 Thanks. Nov 04 07:43:52 I heard that taking snaps by camera while phone is locked/sleep or doing something else is banned by google? Nov 04 07:43:57 I'm getting nasty OutOfMemory errors while scaling, cropping and rotating an image. (The image was taken with the device's own camera, and the device is an Samsung S3 or something) Nov 04 07:46:58 Sircle: dunno if its really banned by google. but doing that without user's knowledge would be a big no-no Nov 04 07:48:14 Ashiren: user can allowe access to cam but doing it anytime in background is banned I heard Nov 04 07:48:33 Unfortunately BitmapFactory.Options doesn't allow to apply a Matrix and an actual target image size at the same time. So I have to make multiple calls to first BitmapRegionDecoder and then Bitmap.create which leaves me with a minimum of two Bitmap instances in memory =\ Nov 04 07:52:14 I could of course write the intermediate images to disk, flush memory, and then proceed with a fresh memory, but that seems ... to complicated, so I must be something wrong. Nov 04 09:21:54 Morning guys, anyone have experience using the TeamFoundation plugin for Android Studio? Don't seem to be able to import into TFVC Git Nov 04 09:22:45 Just hangs forever, left it running from 5PM last night got in this morning and still hung Nov 04 09:37:00 hi! Nov 04 09:48:11 So, currently, we have minSdkVersion as 14 (4.0). Nov 04 09:48:42 If we increase that to 5.0, I presume people on <5.0 will still be able to use the existing version, but won't get any more updates to the app until they upgrade to 5.0+ Nov 04 09:51:01 eeyup Nov 04 09:54:04 Cool :) that's what I was thinking Nov 04 09:54:10 I guess that makes sense, because the minsdk is in the APK Nov 04 09:54:17 so that specific APK supports 14+ Nov 04 09:58:55 thats a pretty big chunk of people you gonna miss sdousley Nov 04 09:59:17 hi Nov 04 09:59:30 need help about DBFlow, using ENUM Nov 04 09:59:44 i need to make where clausole with enum Nov 04 09:59:51 and i receive "SQLiteException: no such column: CERT_X (code 1): , while compiling: SELECT * FROM `Bonus` WHERE `ask`!=0.0 AND `market`=CERT_X ORDER BY `underlyingName` ASC" Nov 04 09:59:57 why? Nov 04 10:00:19 CERT_X is a value not column. Nov 04 10:02:32 But it's somehow interpreting it as a column. There must be a syntax error in your query Nov 04 10:04:24 raoul11: is there still a lot on 4.0? Nov 04 10:04:30 yes, i post the query Nov 04 10:05:09 there is any way to access ito DB file inside /data/app without root? Nov 04 10:05:19 raoul11: on our stats, it shows 14% as 4.4, 6% on 4.3 and < 1% on 4.2 or lower. Nov 04 10:05:44 but I know uninstalls aren't always tracked on play store. so I see those as a max of 14% and 1% Nov 04 10:06:13 thinking about it, I actually track phone version on our system Nov 04 10:10:07 any help? Nov 04 10:10:28 hithere, firebase analytics - thinking of integrating it - but it sounds to good to be true (free...). Are there any caveats? Nov 04 10:30:56 xan_IT: if CERT_X is a value, you'll likely need to quote it: `market`='CERT_X' Nov 04 10:31:22 sdousley mmm so seams bug of DBFlow Nov 04 10:33:00 I don't know anything about DBFlow, did that generate the query for you? Nov 04 10:33:03 does somebody know it you can use libraryX with is compiled with java 1.7 & libraryY which is compiled with java 1.8? will this give any issues? Nov 04 10:42:26 sdousley is a ORM for android Nov 04 10:43:59 after a half a year of looking for a good ORM for android I ended up with requery Nov 04 10:58:01 DBFlow use APT to generate code. is fast and complete Nov 04 11:03:44 Zharf has you try DBFlow? Nov 04 11:09:24 Morning guys, anyone have experience using the TeamFoundation plugin for Android Studio? Don't seem to be able to import into TFVC Git. Just hangs forever, left it running from 5PM last night got in this morning and still hung Nov 04 11:13:36 xan_IT, yes, it sucked Nov 04 11:14:15 Zharf i try activeAndroid, sugarORM, greenDAO and DBFlow and last seams best, what's problem as? Nov 04 11:14:35 tried all of them, they all had their issues Nov 04 11:15:09 about DBflow? Nov 04 11:15:10 but to be honest, I can't remember specifics :p Nov 04 11:15:14 ok Nov 04 11:15:22 I just like requery for now Nov 04 11:15:26 < xan_IT> DBFlow use APT to generate code. is fast and complete Nov 04 11:15:31 ^ and generates queries wrong... Nov 04 11:15:52 sdousley i found problem only for enum Nov 04 11:16:01 but i can override default converter Nov 04 11:16:13 i'm trying to use that Nov 04 11:16:49 Zharf has arrived to 4.0 and solve much problem of previous version Nov 04 11:17:48 it was probably 3.0 or 3.0.1 that I tried Nov 04 11:18:42 ok, with custom converter works Nov 04 11:18:46 https://github.com/Raizlabs/DBFlow/issues/1054 Nov 04 11:19:10 now im seeing in much time i receive response Nov 04 11:20:06 it's clear? Nov 04 11:20:34 github does not print ` Nov 04 11:22:22 Melatonina, hi. so i implemented your suggestion from yesterday regarding database path, but now I'm getting "Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database" and i can seem to figure out why... I have added permissions to the manifestfile and im calling the onCreate method in the activity that will be using the database.. Nov 04 11:22:31 could someone maybe have a look at the code ? let me know what I'm doing wrong? Nov 04 11:22:33 http://cryptb.in/lJW#c40730d6cceeb22af5fdf50cb0855562 Nov 04 11:26:00 jadesoturi, are you trying to copy a database from assets to the filesystem and use that? Nov 04 11:28:17 jadesoturi: when you open a database you only tell SQLite the filename of the database Nov 04 11:28:48 jadesoturi: you only need the path of the database when you copy the database with filesystem operation Nov 04 11:29:51 jadesoturi: SQLiteDatabase.openDatabase(DB_NAME, null, SQLiteDatabase.OPEN_READONLY); Nov 04 11:30:13 jadesoturi: otherwise, why should you place your database in a specific directory? Nov 04 11:31:38 jadesoturi: you also don't need to call this.getReadableDatabase(); before copying the file Nov 04 11:31:48 jadesoturi: why do you do that? Nov 04 11:32:14 i was told that it needs to be read before copying. but i guess thats wrong.. Nov 04 11:32:39 jadesoturi: and to check if the database file exists you can use new File(myPath).exists() Nov 04 11:33:13 ok.. ill update my code accordingly.. :) Nov 04 11:33:27 you're code is a mess Nov 04 11:33:37 you even have duplicated code Nov 04 11:33:51 yes, iknow :/ work in progress :) Nov 04 11:33:57 ah ok Nov 04 11:33:57 ill tidy it up:) Nov 04 11:34:19 you are welcome Nov 04 11:34:28 I have set onGlobalLayoutListener on RelativeLayout in onViewCreated to get it's width in a Fragment but I'm still getting zero width after calling getWidth() on the layout. Any idea why? Nov 04 11:34:55 :) Nov 04 11:39:23 what's a small wrapper/lib to abstract away sockets and manage client threads Nov 04 12:01:21 jadesoturi: learn to say "Thanks" Nov 04 12:03:53 sorry.. and thanks! Nov 04 12:04:16 wasn't my intention to let it slide, just got hung up trying to clean up the code! :) Nov 04 12:04:47 and i did yesterday :) not my intention to be impolite :D Nov 04 12:05:19 ok Nov 04 12:30:58 Melatonina, ok. so i cleaned up the code a little and made changes like you said(i think). but still getting the same error: http://cryptb.in/Ncbx1#be0316958c124e7d1f2d5a6c61abfc10 Nov 04 12:34:01 http://cryptb.in/SM#edd0dde115c47683aa8f2f2d0d03db81 error log output.. Nov 04 13:02:05 jadesoturi: I told you: SQLiteDatabase.openDatabase(DB_NAME, null, SQLiteDatabase.OPEN_READONLY); Nov 04 13:02:30 you didn't do that Nov 04 13:03:37 jadesoturi: I told you: new File(myPath); Nov 04 13:03:43 you didn't do that Nov 04 13:06:40 You are getting the same error because your code is equivalent Nov 04 13:13:53 ok. sorry i think i misunderstood. so i need to declare the myPath right before the new File(myPath) to be myPath = DB_PATH + DB_NAME; right? and then change new File("easyBrew.db") to new File(myPath) and on SQLiteDatabase.OpenDatabase change it to above? Nov 04 13:16:20 http://cryptb.in/Ka#3da4866171d50fda386356a5967bb779 is this correct? Nov 04 13:20:37 Try it Nov 04 13:21:18 did you understand the logic behind what I told you? Nov 04 13:22:04 SQLite expects db file to be in a specific directory. Normal filesystem operation have no notion of that special directory. Everything else is consequential Nov 04 13:27:06 yeah i understood. just though it didnt matter if i "hardcoded" the name, or referred to it using myPath... Nov 04 13:27:16 but im still getting the same error:/ Nov 04 13:31:19 My code works fine Nov 04 13:32:12 Use ADB File Explorer to check if the file was copied in the right place Nov 04 13:32:24 Be more proactive in debugging Nov 04 13:32:39 proactive = move your ass Nov 04 13:32:56 it's a way to say it without the "ass" word Nov 04 13:33:39 I'm having difficulties understanding what's the utility of the "xmlns:android" bit. I mean why does it point to "http://schemas.android.com/apk/res/android" especially when the site doesn't even exist ? Nov 04 13:33:43 copy the file manually Nov 04 13:33:46 do something Nov 04 13:33:47 Same with "xmlns:tools" Nov 04 13:34:10 droidace: wikipedia "xml namespace" Nov 04 13:34:24 droidace: will say those URLs are just symbolic Nov 04 13:35:15 droidace: they are used to indicate a namespace. The XML parser interprets them as it wishes Nov 04 13:36:47 droidace: don't worry. You are not the first one to direct his web browser to one of those URLs. Statistically 68.4% of developers are so dumb to do the same thing. The remaining part is not smarter, just lazy. Nov 04 13:46:07 Melatonia i've checked the file is there. i said this yesterday also.. im not trying to be spoonfed, but have no idea as to where to look for answers now.. But ill have another look once i get home. out of powah on my laptop now. thanks anyway! Ill go through the code again and see if there are any problems.. Nov 04 13:46:56 trying to create a coordinatorlayout behavior that changes the alpha of my toolbar based on nestedscrollview scrollY. anyone have any suggestions on how to handle flings? Nov 04 13:47:07 jadesoturi: I was not able to open your last paste. Try to paste it again later Nov 04 13:49:07 ok i will. be back in a few hours once i get home and get more power.. Nov 04 14:35:35 Still no new number updates for the dashboards! Nov 04 14:35:53 Been nearly 2 months Nov 04 14:36:15 2 months tomorrow I guess Nov 04 14:36:52 Next time it's updated Froyo will hopefully be gone :D Nov 04 14:37:05 And Gingerbread will be on its knees Nov 04 14:37:13 And ICS Nov 04 14:37:22 About to lose 3 Major version soon Nov 04 14:38:05 s/version/versions/ Nov 04 14:51:33 How often do they normally update the dashboards? Nov 04 15:02:07 Little confusing for me. Is intent.getExtras().get("my_key").toString() = intent.getStringExtra("my_key") Nov 04 15:02:20 Just the string output, don't compare the object Nov 04 15:02:29 are they equal Nov 04 15:02:32 ? Nov 04 15:03:25 Are you sure you're even doing that the right way? Nov 04 15:04:11 t2mkn, if you're object for key 'my_key' is a String, than it is equal, if it's another kind of object, it isn't Nov 04 15:04:21 Like, I'm not even sure the left-half method would work safely Nov 04 15:06:27 Issue is, I am trying to list all key value pare coming with the incoming intent to an activity. Nov 04 15:07:21 so just using intent.get Extras() to get the Bundle and from there looping to see all string values, or if object that will show string representation Nov 04 15:08:15 But the issue is the string which I collect using intent.getStringExtra("my_key") is not inside that intent.getExtra().get("my_key"); Nov 04 15:08:23 so are both different Nov 04 15:10:16 ludocode: For the longest time they updated it once a month, but it's been a bit slower recently Nov 04 15:11:17 Ah. I wonder if they're trying to hide sales numbers of the Pixel Nov 04 15:12:01 ludocode: Yeah I was getting the same feeling, that they want to let it gain traction before updating Nov 04 15:13:20 t2mkn: What problem are you trying to solve? Nov 04 15:15:42 yiati a frustrating problem with firebase. Trying to get the json data coming with notification when app is not on foreground. When user tap on notification, it opens the MainActivity. Are those json don't come in intent? Nov 04 15:17:22 Is there any way I can see what is sent by firebase in detail to a request ? Nov 04 15:19:18 t2mkn: https://firebase.google.com/docs/cloud-messaging/android/send-multiple#override-onmessagereceived Nov 04 15:21:06 yiati that works when app is in foreground. What if app is in background or at closed state? Nov 04 15:22:13 t2mkn: https://firebase.google.com/docs/cloud-messaging/android/send-multiple#backgrounded Nov 04 15:22:25 if im using firebase for auth Nov 04 15:22:48 can I add a seperate domain such as domain.com Nov 04 15:22:52 and remove the local host? Nov 04 15:23:47 Hi, when an activity is started how can I check if it was started with startActivityForResult? Nov 04 15:24:37 Maybe bounce a broadcast off it? Nov 04 15:24:48 yiati thats right. It says it sends the payload data as extras in the intent. This is where my problem is, I am not getting any extra values as sent from firebase console. Nov 04 15:24:59 soulisson: http://stackoverflow.com/questions/16753657/check-if-activity-has-been-called-for-result Nov 04 15:25:15 Melatonina: thank you Nov 04 15:25:56 soulisson: do you need direct access to my browser's google search bar? Nov 04 15:26:22 Melatonina: I got it to work Nov 04 15:26:44 Kam: me? Nov 04 15:26:55 Melatonina: The firebase /w Auth Nov 04 15:27:02 Melatonina: apparently :) Nov 04 15:27:10 Kam: cool :) Nov 04 15:27:21 Kam: I'm using Auth0 Nov 04 15:27:40 Melatonina: Trying to figure out a way to only whitelist one domain Nov 04 15:27:46 Auth0 didnt work out for me Nov 04 15:27:58 why not? Nov 04 15:28:34 idk, it just didn't wanna work. and the api was confusing Nov 04 15:28:39 I like the firebase one Nov 04 15:28:40 its simple Nov 04 15:28:47 Yes, firebase is simple Nov 04 15:29:27 Melatonina: I really should start searching in english, there are almost no results in my native language :) Nov 04 15:30:07 soulisson: I never search in my native language, nor I read computer books in my native language. Nov 04 15:30:20 Melatonina: what's yours? Nov 04 15:30:21 but I approached it for the database. The database was too simple for my use case, so I dropped Firebase altogether Nov 04 15:30:28 soulisson: Italian Nov 04 15:30:37 I think firebase is part of the new trend for Google Services to use documentation that involves leaving anything out that you'd "just know already" if you worked for Google Nov 04 15:30:45 Melatonina: there are no good resources in Italian? Nov 04 15:31:13 I'm looking at the result of me pushing a source tree into Google Cloud via GCM and nowhere in it can I find whether or not this is going to cost me anything (for example) Nov 04 15:31:30 soulisson: there are some but why waste time if there are better resources in English? I barely notice if I'm reading documentation in English or Italian Nov 04 15:32:26 Melatonina: Do you know how to remove localhost from Auth? Nov 04 15:32:56 Melatonina: you're right, my english level is not very good so I tend to look for things in my native language first, but I decided to take some english courses in a local center in my town Nov 04 15:33:38 soulisson: so for technical topics I just google in English. I use Italian when the topic is related to my Country, language or culture. Nov 04 15:33:57 soulisson: good choice. Can I ask what's your native language? Nov 04 15:34:08 he is french, and most android stuff in french sux Nov 04 15:34:22 why would ppl even consider anything else than english for programming, it's a mystery Nov 04 15:34:36 adq: I'm not french but my native language is french indeed Nov 04 15:34:53 anyway Nov 04 16:12:18 I'm getting an exception that apparently is caused by mismatching support library versions, however I don't see the mismatch in my gradle file. any ideas? Nov 04 16:12:19 https://gist.github.com/Syzygy2048/0b83e7c0e2226f9fd70a3b4898ab3f08 Nov 04 16:12:56 the exception occurs in the setContentView call of my main activity Nov 04 16:26:37 soulisson: anyway, your English is not bad either. So you should be more confident and patient and just google Android topics in English. You'll get accustomed quickly. Technical documentation is easy to ready. Those Android security book will help you too. Nov 04 16:29:33 Melatonina: ok, thanks very much Nov 04 16:33:57 Hi i’m in the process of releasing my app in Google Play. how do u genrate 512 x 512 Hi res icons and 1024 w x 500 h Feature graphic. I don’t have Photoshop or Illustrator. Is there a way to do this online? Nov 04 16:35:01 droidace: gimp is a free alternative to photoshop. (some say you get what you pay for though) Nov 04 16:35:30 does it work with MAc? Nov 04 16:35:52 google can answer that question better than i can. Nov 04 16:37:13 ya Nov 04 16:37:17 seems like it will Nov 04 16:37:56 if you’re willing to spend a few bucks, Acorn and Pixelmator are great Nov 04 16:39:05 winegoddess: hello, Android mom Nov 04 16:39:25 :) why hello there! Nov 04 16:42:14 damn it, i hate issues like this -.- Nov 04 17:01:10 lol gimp Nov 04 17:03:45 god damn it, i removed almost the whole app and i still get my error... Nov 04 17:04:04 i might just as well start from scratch and copy in what I need... might be faster... Nov 04 17:16:26 Syzygy: whats the error Nov 04 17:19:28 Syzygy i heard dagger + instant run is iffy Nov 04 17:19:40 try turning off IR Nov 04 17:20:32 Literally anything and instant run is iffy Nov 04 17:20:59 touche Nov 04 17:21:35 found it. it seems like one of my libs is compiled with some outdated support library version Nov 04 17:21:36 Which is why I laugh when people tout it as some kind of replacement for the UI preview not working Nov 04 17:21:56 and that lead to issues Nov 04 17:25:53 Syzygy 'gradle dependencies' is your friend ;) Nov 04 17:27:30 JakeWharton: is there a reason why there's no aar version of viewpagerindicator? Nov 04 17:28:19 Because it's 6 years old Nov 04 17:28:30 And aars are only about 3 Nov 04 17:29:34 ah. might be worth an upload onto maven central though, since apklib won't work with gradle/Android Studio and there are a ton of recompiles on there Nov 04 17:29:52 I have no interest in that Nov 04 17:30:00 Haven't touched the project in 4 years Nov 04 17:30:04 alright. Nov 04 17:30:08 instant ruin* Nov 04 17:38:32 adq "Who the heck uses Jack? It's not like it works with anything. " ha ! Nov 04 17:38:48 catching up on some android reddit humor Nov 04 17:38:48 rom cooker i believe Nov 04 17:39:11 isn't the whole AOSP built with jack & jill? Nov 04 17:39:39 don’t they still not handle annotations properly? Nov 04 17:39:45 https://source.android.com/source/jack.html Nov 04 17:42:00 i doubt they build whole aosp with jack Nov 04 17:50:14 JakeWharton Scala 2.12.0 released, you jumping on ? :P Nov 04 17:50:31 yolo Nov 04 17:50:48 g00s: wait for libraries to catch up ;) Nov 04 17:53:22 I'm trying to parse a typical youtube page with JSoup. However youtube.com apparently is not responding with the typical page with the player. What can I do? Nov 04 17:54:32 gordon_ how long is the dotty effort supposed to go on for ? Nov 04 17:55:11 Melatonina: I don’t think there’s much you can do. Possibly listen for a redirect, but that’s it Nov 04 17:55:17 are you trying to get the URL of the video? Nov 04 17:55:32 is it like YouTube showing me the finger? Nov 04 17:55:36 dotty wont be there for quite time... Nov 04 17:55:38 Melatonina, there is an API for youtube Nov 04 17:55:46 Yes, I have to make a video downloader Nov 04 17:55:47 g00s: I dont think dotty will made it to 2.14 Nov 04 17:55:48 yeah, why don’t you use that? Nov 04 17:55:54 instead of scrapping page with jsoup (not efficient) Nov 04 17:56:02 and easily breakable Nov 04 17:56:03 https://developers.google.com/youtube/android/player/ Nov 04 17:56:19 YouTube doesn't allow you to play their videos with anything else but their video player Nov 04 17:56:27 so what Nov 04 17:56:40 youtube provides via their api what they allow you to do Nov 04 17:56:42 I need the video, not the player Nov 04 17:56:59 why do you need the video and not the player? Nov 04 17:57:05 Yeah, I need to do things that YouTube don't allow you to do. Download the video Nov 04 17:57:14 To do post-processing Nov 04 17:57:25 not gonna happen Nov 04 17:57:39 TubeMate does that Nov 04 17:57:45 you can try to look up some other youtube saving apps to see what they do, but you’re pretty much on your own Nov 04 17:57:59 I have a C# downloading library Nov 04 17:58:01 in the past, there was a field giving the url mp4 in the api from youtube Nov 04 17:58:15 so look at that library and see how they do it Nov 04 17:58:17 and first thing it does it download the page and collect the video urls Nov 04 17:58:18 i have no clue if it's still there or if it depends on the account or something else, but i did it Nov 04 17:58:34 how old is that library Nov 04 17:58:35 but when I do the same with android I don't get the same kind of page Nov 04 17:58:41 2015 Nov 04 17:58:49 does it still work today? Nov 04 17:58:56 Never run it. Nov 04 17:58:57 and is it desktop or mobile Nov 04 17:59:03 well, that’d be step one Nov 04 17:59:16 Ok. I'll see what kind of page youtube sends to Firefox Nov 04 17:59:22 today Nov 04 17:59:36 Thanks for the encouragement Nov 04 17:59:36 https://developers.google.com/youtube/v3/docs/videos Nov 04 17:59:38 Melatonina: youtube-dl Nov 04 17:59:39 it's either there, or not. Nov 04 17:59:49 it's against the TOS anyway, from the little i have read in 2 minutes Nov 04 17:59:55 it is Nov 04 17:59:57 yes, it's against the TOS Nov 04 17:59:58 now, once you figure out how to get the URL, I’d HIGHLY suggest setting up a server to do this Nov 04 18:00:00 ... Nov 04 18:00:11 and then your app asks the server for the URL Nov 04 18:00:18 #ThugLyfe Nov 04 18:00:19 I'll deal with the legal matters later Nov 04 18:00:29 that way, when, not if, YouTube changes their page, you can easily fix it Nov 04 18:00:42 spoken like a true disruptor Nov 04 18:00:52 living on edge Nov 04 18:00:53 “Fuck the law! there’s disruption to be had!” Nov 04 18:00:58 against the rules Nov 04 18:01:07 such a bad ass Nov 04 18:01:09 s73v3r: yes, I think in the final version I'll do this stuff on the server side. Now it's only a demo Nov 04 18:01:09 if you're rebel for real, you're rebel for life Nov 04 18:01:19 snr is so high Nov 04 18:14:57 ThreadPoolExecutor: I have one task that is getting run on it. If that task uses the same instance of the ThreadPoolExecutor to add another task, will that task not be run until the first task is done? Nov 04 18:15:29 in other words, if I wanted that original task to depend on the second task finishing, would that work, or would it block forever? Nov 04 18:18:01 idk if threadpoolexecutor has something like taskexecutor: Executors.newSingleThreadScheduledExecutor << but this allow to run tasks sequentially Nov 04 18:18:28 so task n somehow always depends on the completion of task n-1 **** BEGIN LOGGING AT Fri Nov 04 18:27:16 2016 Nov 04 18:27:59 So it seems like the original task is going to need it’s own thread pool to allow tasks 2 and 3 to execute inside it, so to speak Nov 04 18:34:15 s73v3r: Any time you want to guarantee ordering of work you need to schedule it on the same thread yes Nov 04 18:34:33 well, this is a little different Nov 04 18:34:46 Pool doesn't apply to work that can't be parallelized Nov 04 18:34:47 i have task 1, which is an encompassing task for tasks 2 and 3 Nov 04 18:35:06 task 1 starts task 2 and 3, and isn’t done until they are done Nov 04 18:35:16 task 2 and 3 go in sequence, one after the other Nov 04 18:37:04 If you do 2 and 3 on the same worker thread then you don't need to worry about chaining them. Just write them synchronously on the worker thread, then 2 and 3 just become 2 Nov 04 18:37:23 i want them to be separated because they’re two different tasks Nov 04 18:37:40 say task 2 is fetching data from a web service, and task 3 is parsing out that JSON Nov 04 18:38:08 write 2 different functions for them and run those function synchronously on the worker thread Nov 04 18:38:34 then they are separated, but you still don't have to worry about chaining or joining threads Nov 04 18:38:38 no Nov 04 18:38:46 Okay that's an option too lol Nov 04 18:38:46 those tasks are already written Nov 04 18:38:59 i’m trying to think of the encompassing, coordinator task Nov 04 18:39:05 task 1 Nov 04 18:40:32 and it sounds like the threadpool that task 1 is running on can’t be used to also run tasks 2 and 3 Nov 04 18:40:50 s73v3r you want rxjava Nov 04 18:40:54 ^ Nov 04 18:41:05 can’t do that Nov 04 18:41:13 not my project, and we’re not using rx Nov 04 18:42:14 then you'll have to reinvent rxjava yourself then Nov 04 18:42:33 i really don’t think so Nov 04 18:42:38 is what I’m asking that hard? Nov 04 18:42:56 i have one overarching task that is comprised of multiple substeps Nov 04 18:43:04 It sounds easy, just sounds like it's being approached in a much more difficult manner than necessary Nov 04 18:43:36 each of those substeps is already written as a task. I’m just trying to wrap those steps into one overarching task that will look to the rest of the system like a normal task Nov 04 18:43:56 use a countdown latch or something Nov 04 18:44:06 s73v3r: What Task? AsyncTask? Runnable? Nov 04 18:45:00 I don't see anything for just Task https://developer.android.com/index.html#q=Task Nov 04 18:45:12 there isn’t a “task" Nov 04 18:45:23 it’s just a class being run on a threadpool Nov 04 18:45:59 threadpoolexecutor Nov 04 18:46:00 Okay so you have 2 Runnables Nov 04 18:46:16 ? Nov 04 18:46:42 Or extends something that implements Runnable? Nov 04 18:47:05 the classes themselves aren’t Runnables, but the ThreadPoolExecutor runs them inside one Nov 04 18:47:56 it’s using java Executors and ExecutorServices Nov 04 18:50:10 You said your end goal is to create something "that will look to the rest of the system like a normal task". I don't now what a normal task looks like Nov 04 18:50:28 don’t worry about it Nov 04 18:51:04 basically, instead of having a class run task 2 or task 3, i can drop task 1 in it’s place, and the rest of the system won’t care Nov 04 18:52:32 So what is preventing you from creating task 1? Nov 04 18:52:55 the question I posed at the beginning of this whole thing Nov 04 18:56:49 Sorry, I still just don't understand what your issue is in these vague terms. It sounds like the suggestion adq had of using Executors.newSingleThreadScheduledExecutor is what you want Nov 04 19:04:31 Ologn https://hbr.org/2016/11/the-competitive-landscape-for-machine-intelligence Nov 04 19:13:32 "With machine intelligence, companies can create models that evolve much more regularly" hm this is tricky, they tend to be brittle Nov 04 19:38:54 Okay, this seems like it’s so obvious I’m missing something here, I know I’ve done this before Nov 04 19:39:52 Actually I’m going to keep searching for a bit before I ask haha Nov 04 19:45:10 Okay, setting a textView to clickable=false and focusable=false should ensure that all click events pass through to its parents container, right? Nov 04 19:46:02 This seems like it’s so basic I shouldn’t have to ask, but it’s not working for me. My ImageView is handling it fine Nov 04 19:49:41 weird konk3r you don't even have to set those at all for that to happen Nov 04 19:50:07 Yeah, I didn’t think I would need to, but I added them when that wasn’t working Nov 04 19:53:30 Android views can be a PITA at times hahaha Nov 04 19:57:49 lets see if this makes it into android :) http://arstechnica.com/security/2016/11/how-to-block-the-ultrasonic-signals-you-didnt-know-were-tracking-you/ Nov 04 19:58:03 "The researchers’ patch adjusts Android’s permission system so that apps have to make it clear that they’re asking for permission to receive inaudible inputs. It also allows users to choose to block anything the microphone picks up on the ultrasound spectrum. " Nov 04 19:58:46 " the group’s Chrome extension preemptively screens websites’ audio components as they load to keep the ones that emit ultrasounds" ugh ! Nov 04 20:00:30 I think I’m just going to have to cover the entire view with a clickable overlay if I can’t figure this out soon Nov 04 20:00:45 Also, that’s cool ^^ Nov 04 20:28:44 I am trying to determine when my app is in foreground. There are soo many mixed opinions about this. Using lifecycle callbocks onPause, onDestroy seems like it might give false positives sometimes. getRunningTasks has been removed in 21. Anyone else deal with this have some suggestion how to approach this? Nov 04 20:31:00 i read something about using onTrimMemory to reliably determine if app is in background. it seems like a hack but i think all solutions for this seem a bit hacky. Nov 04 20:36:14 Is there any way to avoid this exception? I'm using Picasso to load images and sometimes the images are huge (they are coming from Google image search): java.lang.RuntimeException: Canvas: trying to draw too large(122880000bytes) bitmap. Nov 04 20:36:26 I use the 400ms after last onPause method shadynastys Nov 04 20:38:16 shadynastys http://www.developerphil.com/no-you-can-not-override-the-home-button-but-you-dont-have-to/ Nov 04 20:41:27 g00s looks like i was on the right path with onTrimMemory. Ty for the link. Its exactly what i was looking for. Something that was posted as a general solution to a problem that was not just SO Nov 04 20:43:17 missingno yes i have thought of implementing that but again it seems too hacky for my preference. I think the onTrimMemory is the most reliable solution at this point. Nov 04 20:46:06 "The researchers’ patch adjusts Android’s permission system so that apps have to make it clear that they’re asking for permission to receive inaudible inputs. It also allows users to choose to block anything the microphone picks up on the ultrasound spectrum. " << lol wat!! Nov 04 20:46:25 why not providing a microphone with an audible frequency response (most of them are) only Nov 04 20:46:37 An Android app is considered as client side as a front-end web application like React/Angular/Ember right? Nov 04 20:46:50 or just restrict samplerate to 32kHz and byebye ultrasonic channel Nov 04 20:47:00 Ownix: yeah, you could look at it that way Nov 04 20:47:06 (nyquist would force everything below 16kHz) Nov 04 20:47:06 adq 22 right ? O.o Nov 04 20:47:09 no 32 Nov 04 20:47:13 the patch is cool, but none of us will ever get it Nov 04 20:47:21 32kHz SR => 16kHz nyquist limit Nov 04 20:47:23 human voice is like 4k Nov 04 20:47:44 yeah but ultrasonic refer to non audible spectrum Nov 04 20:47:49 s73v3r: From an authentication/authorization standpoint they definitely are, right? Nov 04 20:47:49 let's say above 18 or 20kHz Nov 04 20:47:50 oh yeah Nov 04 20:47:51 naw, I’d rather have the permission and the ability to still do ultrasonic sounds Nov 04 20:47:54 it varies depending on the human subject Nov 04 20:47:55 Ownix: yeah Nov 04 20:48:31 there are cool things that can be done with the ultrasonic signaling. It’s just too bad some people had to be a big bag of dicks about it Nov 04 20:48:34 basically any kind of token granted to your app by a server, is "public" right? Nov 04 20:48:50 yes Nov 04 20:48:51 s73v3r advertisers ruin everything Nov 04 20:49:06 still you can hide (close to steganography) message into audible frequency Nov 04 20:49:14 without really impacting or being noticeable the audio signal Nov 04 20:49:29 i believe this is another FUD article Nov 04 20:49:39 still it was interesting to read, thx g00s Nov 04 20:49:55 well those 2 companies they mentioned seem to already be on it Nov 04 20:50:03 g00s: The Encyclopedia Galactica, 2255 edition fell through a wormhole, and found that the advertisers were first against the wall when the revolution came Nov 04 20:50:22 cool Nov 04 20:50:52 lol Nov 04 20:51:15 basically any kind of token granted to your app by a server, is "public" right? << it depends Nov 04 20:51:37 some service using some token allows more than read-only Nov 04 20:51:56 and even if it was only read-only, it depends on the sensible nature of the data being accessed from the token via an api or something Nov 04 20:52:02 so it really depends Nov 04 20:53:08 back to the ultrasonic thingy, the bandwidth is poor and the error correction is important, better go at GHz with wifi at this rate, but i get it was about a hidden channel Nov 04 21:07:54 "Windows 7 and 8.1 Are Gaining More New Users Than Windows 10" haha Nov 04 21:08:12 maybe its because of things like "Here We Go Again: Microsoft's Popping Up Ads From the Windows 10 Toolbar" Nov 04 21:08:23 f$# all these companies Nov 04 21:10:32 it’s why I laugh at all the people who say they’re gonna leave Mac for Windows Nov 04 21:18:30 "Apple accounted for over 100 percent of smartphone industry profits in the third quarter of this year, according to estimates published by BMO Capital Markets on Thursday." Nov 04 21:18:55 wat Nov 04 21:19:03 "came largely as a result of significant losses posted by rival vendors including LG and HTC" Nov 04 21:19:10 over 100 percent of the profits? Nov 04 21:19:14 sounds profitable Nov 04 21:19:18 lol Samsung gets 0.9% profit share Nov 04 21:34:25 Hello Guys, i faced with issue, with Samsung mobile phone at Lithuania, i want know my Emergency Recovery Code, but it's gone you know from my display, so i need then do Device initiliazation (Smart Switch), but i enter phone model name and serial number, but it's don't happend, it's give message that check the Model and S/N and enter then again Nov 04 21:34:49 So how i can install new software to my Device Nov 04 21:34:51 try #android or #android-root. This is for app development Nov 04 21:35:40 Oh, ok, thanks Nov 04 21:40:36 I think most people take "dev" for "device" Nov 04 21:41:21 Maybe you're right Nov 04 21:43:33 i think dev for development is more common, isn’t it? Nov 04 21:43:42 the people who make roms are called devs? Nov 04 21:44:08 Yeah it's common... for people who deals with application developmen Nov 04 21:44:10 t Nov 04 21:44:29 For most people, application are things that appear magically on Google Play Nov 04 21:44:29 well, not even that, but the enthusiasts and modders too Nov 04 21:44:48 so they have no concept of "development" Nov 04 21:45:08 and "dev" suggests device more than "development" Nov 04 21:45:29 Then, I don't know how typical IRC users are Nov 04 21:46:13 most IRC users are nerd anyway Nov 04 21:46:20 so they should know better Nov 04 21:50:01 So Guys, you just create applications, no from point? Nov 04 21:50:43 just apps, yes Nov 04 21:53:24 100% apps not from concentrate ! Nov 04 22:33:06 Melatonina, hi.. so i checked the logges. it seems that its not getting copied anymore. im getting an W/System.err: java.io.FileNotFoundException: easyBrew.db from the copyDataBase() method. but I dont understand why its not finding it. its in the Assets folder and with the exact same name as specified in the code. Nov 04 22:33:40 jadesoturi: I don't have your code anymore Nov 04 22:35:52 hang on. android studio just crashed. ill pastebin it in a minute or two.. Nov 04 22:37:02 * Melatonina hangs on Nov 04 22:41:53 http://cryptb.in/x66J3n#f9f3cabee318d154fa5b057417a184c4 Nov 04 22:42:25 its both Database class, main and equipment activity Nov 04 22:44:33 jadesoturi: what line throws what exception? Nov 04 22:45:22 jadesoturi: suggestion new File(otherFileObj, filename) join otherFileObj's path with filename in a well formed path Nov 04 22:47:24 InputStream myInput = myContext.getAssets().open(DB_NAME); this one, by being called from the onCreate from main activity Nov 04 22:48:10 im not sure what you mean with "join otherFileObj's path..." Nov 04 22:49:32 it seems to me that the problem starts before the new File line. since its the InputStream that does not find the file... but its in my Assets folder.. so getAssets should read it, right? Nov 04 22:52:00 is there a way i can "hardcode" the path to the assets folder? just to test if it will find it then? Nov 04 22:52:43 jadesoturi: the File() comment was a generic suggestion Nov 04 22:53:03 jadesoturi: did you log the list of all available assets? Nov 04 22:53:29 no. working on it right now.. Nov 04 23:09:47 http://www.reuters.com/article/us-alphabet-apps-idUSKBN12Y100 Nov 04 23:10:19 "as concerns mount that the app economy has reached saturation" ... thought that happened a few years ago Nov 04 23:10:47 Should we stop developing apps then? Nov 04 23:13:06 yup Nov 04 23:13:40 Melatonina better off getting paid to talk at a tech conference :D Nov 04 23:14:44 hehe Nov 04 23:18:09 the chance of making any significant money from apps as an indie dev is very small... the chance of getting paid to write apps goes up if you've got successful apps in the market Nov 04 23:18:19 like ThePoosh? Nov 04 23:23:55 Melatonina the glide app is quite a few people (team) Nov 04 23:24:31 many highly polished apps, like twitter, are at least a few people - twitter was severl dozen Nov 04 23:25:12 the secret sauce of glide (video) is another team lol Nov 04 23:25:14 definitely need a team Nov 04 23:25:32 I'm alone. Nov 04 23:25:50 I'm f###ed Nov 04 23:26:33 Do you know any javascript parser for Android? Nov 04 23:26:38 just need to outsource revenue Nov 04 23:26:41 I can't google any Nov 04 23:27:04 dont think there is any, jsoup does html, might be to get raw and extract needed flags Nov 04 23:27:08 Melatonina, ok. so it was a typo in the assets folder name for some reason(it worked with capital A before, but not now). after fixing that the database is getting copied over, but the filename is fileName.dbfileName.db e.g. its doubled up.. Nov 04 23:27:27 so its not being found when trying to open it.. Nov 04 23:28:16 and the cause is? Nov 04 23:29:25 yeah. thats what im wondering. also. manually renaming the file in adb shell didnt help still forcequit with the same error:/ Nov 04 23:29:26 DB_PATH = context.getDatabasePath(DB_NAME) Nov 04 23:29:35 context.getDatabasePath(DB_NAME) + DB_NAME Nov 04 23:30:05 that's smart Nov 04 23:30:28 db = SQLiteDatabase.openDatabase(GetApplicationDirectory() + "/" + db_file, null, SQLiteDatabase.OPEN_READONLY); Nov 04 23:31:02 jadesoturi: did you understand what you did? Nov 04 23:31:05 public String GetApplicationDirectory() { Nov 04 23:31:05 return( getApplicationInfo().dataDir ); Nov 04 23:31:06 } Nov 04 23:31:17 black91: stop it Nov 04 23:31:27 stop what Nov 04 23:31:42 vomiting random code Nov 04 23:31:50 your vomit Nov 04 23:32:06 that is the right answer, your welcome Nov 04 23:32:27 yeah sorta. i need to remove the DB_NAME from DB_PATH? Nov 04 23:32:34 black91, thank you. ill give it a go:) Nov 04 23:32:35 cannot access db out of unacessible dir Nov 04 23:32:47 put db in app path, unless accessed by multiple apps Nov 04 23:32:59 I'm not going to discuss anymore in this way Nov 04 23:33:08 good Nov 04 23:33:10 no one likes you Nov 04 23:33:32 and your not even helpful Nov 04 23:41:25 Where is that black91 guy? He was funny... now I suddenly don't read him anymore. Sad thing. Nov 04 23:48:28 "Mr. Schmidt suggested using Amazon Web Services as a cloud provider." lolwut Nov 04 23:50:04 becoming clear why google exec meat with white house so often ... Nov 04 23:50:08 *meet Nov 04 23:54:58 oh i guess thats so google didn't benefit from the campaign Nov 04 23:55:11 well, beside having puppet in white house :D Nov 05 00:24:37 black91, thanks, the application dir solved my problem. now its both copying and reading the database correctly :) Nov 05 00:24:57 np Nov 05 00:25:25 1 hour later Nov 05 00:25:34 congrats Nov 05 00:27:07 yeah thanks or something.. Nov 05 00:27:22 https://developer.android.com/reference/android/content/Context.html#getPackageManager() Nov 05 00:27:36 I prefer something Nov 05 00:28:09 good for you :) Nov 05 00:28:11 Melatonina, you are condescending and deceiving Nov 05 00:28:31 something is better than nothing Nov 05 00:28:38 u must like remote access? Nov 05 00:29:04 u put off u used virus Nov 05 00:29:08 ppl no like Nov 05 00:30:33 u talk in a shisty, spiey, unintelligent way, but dont seem to know anything. its insulting to even read Nov 05 00:30:39 sorry Nov 05 00:30:58 hey all Nov 05 00:31:20 black91: who's that ? sounds like i missed something :) Nov 05 00:32:19 u word into a way, broad method, that can relate to about anybody. but no detail whatsoever Nov 05 00:32:24 because you dont seem to know Nov 05 00:32:46 then you respond 15-30 minutes, after said argument, with a lame, obviously thought out indirect response Nov 05 00:33:19 which you will do again at 19:40-50, Nov 05 00:34:37 your like a kid yelling CHEEZ ITS in walmart, just to get everyones attention Nov 05 00:34:38 plz stop Nov 05 00:34:38 so for some reason since I opened and upgraded ADT my projects not opening Nov 05 00:35:03 fels upgrading ADT means using Android Studio now :) Nov 05 00:35:24 there is no other 'ADT' upgrade ;) Nov 05 00:36:03 fels: please continue and ignore black91. He is a returd Nov 05 00:36:05 g00s: yeah sorry studio - but I can't open my project anyone not sure what is going one Nov 05 00:38:10 without more details, not sure how we can really help much Nov 05 00:39:19 how about checking with gradlew in CLI how your project behaves, if all ok then blame AS, maybe check permissions or unzip/install it again Nov 05 00:40:33 adq: thanks - I'm sorry but I don't know what gradleww is Nov 05 00:41:30 fels, https://developer.android.com/studio/build/building-cmdline.html Nov 05 00:42:17 basically, you exclude the "AS" variable in building your project via CLI, so if it's succeed it's AS the culprit Nov 05 00:42:44 (it's also slightly faster ;)) Nov 05 00:43:16 oh - let me try that - I've just reopned studio and it's asked me to upgrade Gradle to versin 2.14.1 Nov 05 00:43:30 do what AS says Nov 05 00:43:35 should I upgrade Nov 05 00:43:39 yup Nov 05 00:46:33 wait .. it seems to be working now .. wtf ... :) Nov 05 00:51:21 ok - so shoudl /idea/modules.xml be checked into source control ? Nov 05 00:55:04 I just don't put anything from .idea into source control... Nov 05 00:55:10 no, read about what most ppl put in gitignore or hgignore Nov 05 01:28:14 Guys, why do you think people like black91 is... well.. like he is...? You know. Nov 05 01:28:29 Are they born like that? Nov 05 01:28:47 Did they suffer a very adverse fate? Nov 05 01:29:12 what does that even mean? Nov 05 01:29:20 see your so broad. Nov 05 01:29:27 you have no actual argument Nov 05 01:29:49 Thanks for contributing an example. Nov 05 01:30:26 ? Nov 05 01:30:39 Eh Nov 05 01:34:17 ? Nov 05 01:34:49 speak Nov 05 01:35:08 all i see is nasty talk with no actual argument Nov 05 01:37:23 i recommend you to reddit Nov 05 01:37:31 you? Nov 05 01:38:05 ? Nov 05 01:38:33 nothing Nov 05 01:39:18 someone with a voice speaks, or even types in your case Nov 05 01:39:25 but you have no voice, no argument, nothing Nov 05 01:40:38 just because you speak does not mean you have a voice Nov 05 01:41:51 not mean? Nov 05 01:41:58 ? Nov 05 01:43:11 quit addressing me then, and we will it at that Nov 05 01:43:20 i dont want a pm in 15 minutes once you thought about it Nov 05 01:43:29 black91: just drop it... Nov 05 01:55:14 thanks Zharf and adq - thanks Nov 05 02:15:04 LOL Nov 05 02:33:41 anyone know how to get rid of the 'undefined reference __android_log_print' when using cmake to build ndk libraries? I've tried adding log to ldLibs under android.defaultConfig.ndk, and multiple ways in my android.mk file and cant get rid of the error **** ENDING LOGGING AT Sat Nov 05 03:00:00 2016