**** BEGIN LOGGING AT Sun Jan 03 02:59:58 2016 Jan 03 03:12:12 nilsi google 'infinite recyclerview' Jan 03 03:12:29 i think maybe nick butcher's plaid app in github might do that Jan 03 03:14:48 g00s: Thanks! will take a look Jan 03 03:23:33 g00s: thats just an infinit scroll in plaid app Jan 03 03:29:26 ok so how accurate is the measurement for s view in its onMeasure? Jan 03 03:29:43 seems to me like its a close approximation Jan 03 03:30:38 i cannot seem to calculate the number of text rows given a font size of 11 and a line spacing of 1.3 Jan 03 03:31:00 rows = vHeight / (int)(FONT_SZ * 1.3f); Jan 03 03:31:24 works fine on one devie but not on another] Jan 03 03:36:18 line spacing doesn't affect number of lines Jan 03 03:53:49 Oh, counting lines Jan 03 04:31:02 "With this build IntelliJ IDEA and the whole IntelliJ platform migrates to Java 8. Users won’t be able to launch the IDE under a JDK older than Java 8. " Jan 03 04:37:39 considering that they bundle a jdk, it doesn't matter Jan 03 04:48:41 Does anyone know if there is a good current tutorial on how to make your own library from scratch? I am trying to follow a vogella tutorial, but have been derailed, because the steps use an option that is no longer available in android studio Jan 03 04:51:21 You mean creating a .aar? Jan 03 04:51:48 well yes Jan 03 04:52:04 also setting up a project with just a library module, and no app module Jan 03 04:52:31 the wizard only has options to make an app project, and then I have to try and weed out all the app parts which is a chore that i am getting stuck on Jan 03 04:54:14 Hello guys. I have a question. I have been looking for an answer but I han't it so far..... Jan 03 04:54:25 42 Jan 03 04:56:36 Is there anyway to get a SPECIFIC language from my strings file to print it? I mean: I have my app translated to English/Portuguese/Swedish and 3 . The idea is: One should print the message 1 in English, another one will print the same message in English and another one the same message in Swedish.... Jan 03 04:57:17 anyone know how I could do it just asking for the getResource().getString(R.string.transl_msg); Jan 03 04:58:29 tribeirom: Have you checked out developer.android.com/training/basics/supporting-devices/languages.html or http://developer.android.com/guide/topics/resources/localization.html ? I think those are what you are asking for Jan 03 05:00:03 zzxx: Not really. But I'm opening the links here to see if I find something.....thanks for sharing the links.... Jan 03 05:01:02 still....if someone here knows the answer and don't mind to talk to me about it...I would be happy....meanwhile....going to read the docs Jan 03 05:11:23 interesting. preferenceFragment uses listview, preferencefragmentcompat uses recyclerview - Jan 03 05:11:37 would have thought native PF migrate to RV by now Jan 03 06:52:44 hello, good morning Jan 03 06:54:09 i have map in fragment , i am trying to show markers on map. It was okey when i was using Activity, however when it turned into Fragment, markers gone.Any help ? Jan 03 07:07:12 hi all. does anyone know a simple guide for saving/loading images? i want to load an image from internal storage and set it to an imageview. have the user be able to upload images from the gallery/camera/whatever app, and eventually take whatever image is in the imageview and save it to internal storage (overwriting the previous if there was one) Jan 03 07:08:06 like initially the imageview pulls from storage and if the user clicks it to add a picture, whatever they add replaces the current image Jan 03 07:08:49 sounds like you just want a file chooser Jan 03 07:09:38 I really like this one, and I've seen it used by many apps: http://www.ninthavenue.com.au/simple-android-file-chooser Jan 03 07:10:21 it allows the user to open a file, then you can just open it in the imageview Jan 03 07:11:53 I was kind of looking for a URI approach for the portion where the user adds a new image because its more convenient for them to be able to use any photo app they want. as long as it sends back an image Jan 03 07:21:03 hello Jan 03 07:21:12 I am trying to set up a dev environment (win10) with virtualbox hosting ubuntu server that allows my phone to connect to the server. After beating my head against the nearest hard surface, I've come to conclusion that I need help. Does anyone else have a similar setup, or a pointer to a better way to do this? Jan 03 07:22:25 i've gotten vbox networking successfully setup a number of different ways...NAT/Bridged, but have not been able to get the phone to get through to the server...win10/ubuntu talk happily Jan 03 07:22:50 just had a hard drive crash, thought i had lost everything Jan 03 08:04:07 Can I have some help in debug some java code ? Jan 03 08:06:12 AmR|EiSa: Go ahead Jan 03 08:08:42 My code at http://stackoverflow.com/questions/34567926/calling-java-static-method-from-qt-c-not-working Jan 03 08:09:34 I try call findDeviceID() but I don't get any val. Jan 03 08:10:06 So I init fetchID and I get it. Jan 03 08:10:16 I don't know what is bad :( Jan 03 08:10:28 CedricBeust_: ^ Jan 03 08:10:53 Not familiar enough with Qt + JNI so can't really help you sorry Jan 03 08:12:04 I don't need Qt or JNI Help now, I need java help. Jan 03 08:12:12 This is java class Jan 03 08:13:11 And repalce extends org.qtproject.qt5.android.bindings.QtActivity to be extends Activity that's all Jan 03 08:14:55 I set permission to READ_PHONE_STATE, But this java code not work. Jan 03 08:15:00 hm? Jan 03 08:15:01 CedricBeust_: ? Jan 03 08:16:48 and how does permission line looks like Jan 03 08:17:25 Jan 03 08:20:35 well it works for me Jan 03 08:20:47 are you trying this on emulator? Jan 03 08:22:07 and the string is empty, not null? Jan 03 08:23:54 yes Jan 03 08:24:09 nop tablet Jan 03 08:25:54 Ashiren: I don't debug java part. Jan 03 08:26:54 i can tell it looks OK from java part Jan 03 08:27:07 When I Init fetchID and I get it. but when it's not i get empty. Jan 03 08:27:49 the only permission you set is READ_PHONE_STATE right ? Jan 03 08:27:56 eeyup Jan 03 08:28:07 otherwise it would throw exception anyway Jan 03 08:28:32 and if device hasnt any ID it would return null Jan 03 08:29:03 have you tried in getIMEI() something like return "xxx" Jan 03 08:29:15 to check if its getDeviceId or reading string from qt Jan 03 08:30:07 I will Jan 03 08:51:50 so i was trying to ask earlier how accurate the onMeasure is. is it exact or some close approximation of the view dimensions? Jan 03 09:00:47 can anyone tell me which database i should follow Jan 03 09:00:49 ORMLite & Green DAO Jan 03 09:00:58 The one you like the most :) Jan 03 09:01:51 I dont have any idea about anyone...now i have to start an erp based project in which i need to setup lcoal database. Jan 03 09:02:03 but now confused..which one to go Jan 03 09:02:13 i want to go for best Jan 03 09:23:16 android.content.res.Resources$NotFoundException: String resource ID #0x2 Jan 03 09:23:23 what is this error? Jan 03 09:24:34 nvm was my bad Jan 03 09:25:14 idk what this dex2oat thing is but omg it takes forever to start my app in the emulator now :\ Jan 03 09:56:49 :o Jan 03 10:20:09 <_abc_> What's the most popular android widget set please? Jan 03 10:20:39 <_abc_> Been browsing google images for that, seems like most people use stock ui elements but there are some extras. Any preferences? Comments? Jan 03 10:21:11 How I can read log text ? Jan 03 10:21:58 <_abc_> Also is it possible to get an on device boot log on a device which is stuck on the boot animation? Factory reset etc does not help, and it can't be flashed. Jan 03 10:22:16 <_abc_> Blackberrys have this, is there something in android? Jan 03 10:23:39 <_abc_> I understand that the general attitude is, that a phone stuck in some boot problem which is not solved by wiping cache and factory reset, is considered non-recoverable? Jan 03 10:25:47 <_abc_> In particular, a lot of Samsung phones seem to have this problem and are not recoverable by wiping, and cannot be flashed with a rom in odin mode or even by kies. Jan 03 10:29:07 _abc_: try #android or #android-root Jan 03 10:29:26 <_abc_> Thanks. What about widget sets? Anyone using non default ui widget sets? Jan 03 10:29:54 <_abc_> Also this has nothing to do with android-root, the phone is on oem rom and the image attempted to be flashed is also the same oem rom. Jan 03 10:30:23 <_abc_> (it probably has got to do with samsung screwing up somewhere since I see quite a few messages on this online) Jan 03 10:30:40 <_abc_> So are custom widget sets popular? Jan 03 10:31:41 <_genuser_> man, AS just brings the computer down to a crawl. Jan 03 10:31:48 <_abc_> :) Jan 03 10:31:49 <_genuser_> amazing how it makes eclipse look at light as notepad. Jan 03 10:32:04 <_genuser_> the emulator seems to have gone downhill also. Jan 03 10:32:09 <_genuser_> thinking of moving to canary Jan 03 10:32:25 <_abc_> I managed to make AS work on a headless machine, so it churns away instead of the main machine or laptop. Jan 03 10:33:34 <_genuser_> _abc_: so how do you code on AS. Jan 03 10:33:44 <_genuser_> or are you running it on a headless mahine via RDP? Jan 03 10:33:54 <_abc_> _genuser_: remote X11 is easy. Once you get all the 50 or so parameters right. Jan 03 10:33:59 <_abc_> _genuser_: it's on linux. Jan 03 10:34:13 <_abc_> _genuser_: the headless box running AS is debian 7 wheezy Jan 03 10:34:22 <_genuser_> ah, nice! Jan 03 10:34:48 <_genuser_> I have a headless "server" (old quadcore/4GB RAM/Win7), but I use it more as a mysql server and test machine. Jan 03 10:34:53 <_abc_> It also runs other eclipse based things while at it. Like NetBeans and Mplab X Jan 03 10:35:04 <_genuser_> if I have to install something I just install it on that machine. main machine only has few things that I trust. Jan 03 10:35:16 <_abc_> Well you can have a little farm of zombie headless machines and run your heavy things on them. Jan 03 10:35:35 <_abc_> I don't know if putting AS on a server is wise. It will make anything kneel as you noted ;) Jan 03 10:35:43 <_genuser_> I also have a truly headless fileserver running. no X, nothing. just samba/ssh/raid Jan 03 10:36:07 is there a way to get an accurate measure of a views size? not the close ish approximation returned by onMeasure ? Jan 03 10:36:34 <_genuser_> my old server mobo is free. 4G RAM max supported, dual core 1.7GHz, maybe I could put something on it and insatllal new NIC and try AS on it. Jan 03 10:37:01 <_abc_> 1.7GHz is low end now Jan 03 10:37:20 <_abc_> You can do it, it is okay, the speed will not be insane but it works. Jan 03 10:37:34 <_abc_> Also if you are a windows guy you can use rdp or vnc. Jan 03 10:37:45 <_abc_> I prefer X11 over ssh usually. Jan 03 10:38:34 <_genuser_> I remember setting up vnc over x11 years ago. Jan 03 10:38:37 <_genuser_> oh what a hassle it was. Jan 03 10:38:44 <_abc_> It's much easyer now. Jan 03 10:38:52 <_genuser_> oh? Jan 03 10:39:08 <_abc_> It's automated. You mostly install it and provide a password. Jan 03 10:39:45 <_genuser_> in gentoo land where you gotta kill your own deer, make your own venison, slaughter it, kill it, dress it, then smack two stones to light a fire to cook it.... it can still be a hassle to do lot of stuff. Jan 03 10:40:17 <_abc_> You can't scare me, I started with slackware 1.2.13 kernels in 1995. 14 floppies to install etc. Jan 03 10:40:41 <_genuser_> wasn't it like 22 back then? Jan 03 10:40:52 <_abc_> I remember 14. Jan 03 10:41:07 <_abc_> Maybe I'm confusing it with wfwg 3.11 + msdos 6.22 >;) Jan 03 10:41:23 <_abc_> Anyway, any custom widget sets people like here? Jan 03 10:41:37 <_genuser_> heh, nice. I remember using slack for a bit few years ago. I thought it was pretty alright. Jan 03 10:41:46 <_genuser_> seemed easier to use kde4 on slack than on kubuntu. Jan 03 10:42:10 <_abc_> It still is easyer to install and maintain slack, things are transparent. Especially for headless/gui-less machines. Jan 03 10:42:15 Lol Jan 03 10:42:19 lol Jan 03 10:42:20 lol Jan 03 10:42:24 I fix it :) Jan 03 10:42:57 <_genuser_> gentoo's gotten much nicer lately but I only use it for minimal stuff and raid'ing. Jan 03 10:43:17 <_genuser_> Desktop is still win7. and then older win7 machine that's running headless in a ... CRATE! Jan 03 10:44:00 AmR|EiSa: ? Jan 03 10:46:12 Ashiren: It's all about calling Constructor and onCreate, from AndroidManifest :) Jan 03 10:46:16 <_abc_> adb can't connect to an un-booted phone, right? At all? Jan 03 10:46:19 _abc_: I started with slackware disk sets in 1996ish... Jan 03 10:46:27 <_abc_> Assume it does not have usb debugging enabled Jan 03 10:46:29 I'm still using it today Jan 03 10:46:32 Ashiren: It's all about calling Constructor and onCreate, from AndroidManifest :) Jan 03 10:47:00 _abc_: nope Jan 03 10:47:06 <_abc_> bummer Jan 03 10:47:18 adb starts listening relatively early during the boot process - long before the GUI is active Jan 03 10:47:29 <_abc_> Leeds: so there is a chance? Jan 03 10:47:37 <_abc_> Leeds: the phone is stuck on boot logo. Jan 03 10:47:51 <_abc_> Animated boot logo. Seems to be a popular failure mode for Samsung. Jan 03 10:48:02 if it's the OEM logo, probably not... if it's the Android boot animation, possibly Jan 03 10:48:39 <_abc_> oem logo. Jan 03 10:48:42 <_abc_> Samsung. Jan 03 10:48:49 Ashiren: The android:name in the section of the manifest should be changed to my java Class. Jan 03 10:51:16 Ashiren: It's work But this is bad or I can do it ? Jan 03 10:56:37 <_genuser_> default indentation: Tab size: 2, Ident: 2, Continuation Indent: 2. Jan 03 10:56:47 <_genuser_> so WHY is ctrl-alt-L (format) setting it to 4? Jan 03 10:57:30 You set it the wrong place? Jan 03 10:57:52 <_genuser_> SimonVT: I'm certainly fine setting it in the right place. where is the right place, tho? Jan 03 10:58:16 At least code style/java Jan 03 10:58:20 <_genuser_> I'm at: File -> Settings -> Editor -> Code Style Jan 03 10:58:54 <_genuser_> ah, perfect, that was it. Jan 03 10:58:55 <_genuser_> Thanks!! Jan 03 10:59:53 * _genuser_ waits for "ewww 2 characters for indentation" comments. Jan 03 11:00:12 ewww 2 characters for indentation Jan 03 11:04:53 <_genuser_> bankai_: heh. Jan 03 11:05:19 <_genuser_> I used to use Tabs and then just set my editor's tabs to 2. and other devs could set it to 4 or 3 and see it indented their way. Jan 03 11:05:30 <_genuser_> but lately, I just set it to 2 of whatever. Jan 03 11:17:49 hi irc Jan 03 11:42:39 SimonVT: /mode #android-dev +b *!~senayar@*$##fix_your_connection might be better because sometimes they dont identify to nickserv bfore joining the channel Jan 03 11:44:54 tinyhippo: The channel requires authentication tho, shouldn't my ban always work in that case? Jan 03 11:46:01 it didnt seem to as I saw a connection to the channel from an uncloaked address straight after your +b - however it may have been a delay in propogation of the ban across all of the ircds Jan 03 11:46:34 Yeah, I wondered about that myself.. But seems to have stopped now Jan 03 11:46:43 :) Jan 03 11:46:55 Maybe it saw itself as banned when applying the cloak, and the client stopped trying to join Jan 03 11:47:12 nope.. Jan 03 11:48:54 Hopefully that works :) Jan 03 11:49:56 * tinyhippo crosses fingers Jan 03 12:07:19 If I'm using v4 support lib, will I get nested fragments on all versions >1.6? Jan 03 12:09:09 yes. thats the whole point of it Jan 03 12:09:22 Hello folks Jan 03 12:11:05 Hello folks Jan 03 12:11:19 I'm a noob Developer here Jan 03 12:11:28 Hello Jan 03 12:11:46 I'm having trouble with Android Studio or... Maybe my desktop isn't working Jan 03 12:12:17 danijoo: Well nesting Fragments was added some time after the Fragments were introduced so that's what I am asking Jan 03 12:12:26 What trouble? Jan 03 12:12:58 dimitrovskif, oh. my mind skipped the nested in your sentence Jan 03 12:13:02 but i think its working Jan 03 12:13:06 Damn, my battery is low Jan 03 12:13:57 danijoo: haha. Yeah, I will test it - probably it is working since getChildFragmentManager() is implemented in the support lib. Reading the docs atm Jan 03 12:15:08 The simple problem is that my Android studio crashes whenever I use it for a couple of minutes then after the restart Android studio project is corrupted Jan 03 12:15:39 Catfish305, whats the error Jan 03 12:16:05 My processor is dual core Intel Pentium and I have 4GB ram Jan 03 12:16:15 So my computer meets the minimum specs Jan 03 12:16:42 The Windows error is system thread exception not handled Jan 03 12:16:59 The error is b s o d Jan 03 12:17:19 Then there is critical process died and page fault in nonpaged area Jan 03 12:18:26 Do you have a corrupt installation? Jan 03 12:18:30 Try reinstalling android studio Jan 03 12:18:48 I think not Jan 03 12:19:04 Because during installation it displayed no error Jan 03 12:19:30 Of the Android studio file during installation date show that the file was not properly downloaded Jan 03 12:20:35 I mean, during installation, a previous download showed an error but not the current download Jan 03 12:20:49 check the checksum Jan 03 12:22:49 See the problem is with running a project. I think my hardware can't handle Android Studio. My windows computer goes into BSOD whenever I'm few minutes into developing an app Jan 03 12:23:18 what means bsod Jan 03 12:23:20 RAM? Jan 03 12:23:25 Yeah it sounds like a hardware problem. Are you using the emulator? Jan 03 12:23:29 Blue screen of death Jan 03 12:23:31 oh Jan 03 12:24:09 I couldn't turn it on, just after a few minutes in and then a bsod happened Jan 03 12:24:22 Try running your projects on a real device if thats possible Jan 03 12:24:23 The PC, how much RAM? Jan 03 12:24:24 Do note that I'm running a windows 10 computer Jan 03 12:24:31 4gb Jan 03 12:24:42 the specs are pretty low for AS Jan 03 12:24:47 kinda the minimum Jan 03 12:25:03 Nah, I'm having problem with Android Studio itself, not its emulator Jan 03 12:25:14 i think gradle and AS already eat 1gb ram each while idling and doing nothing Jan 03 12:25:28 Did you try using readyboost? Jan 03 12:25:33 What is a regular spec? Jan 03 12:25:42 That has helped me before Jan 03 12:25:58 Well, currently I've 6gb Jan 03 12:26:07 I 4 GB and another 2 GB Jan 03 12:26:12 http://prntscr.com/9ljy28 Jan 03 12:26:17 thats my current processes Jan 03 12:26:36 take the emulator out and its still close to 4gb just for android Jan 03 12:26:47 then theres also chrome, the OS etc which need RAM Jan 03 12:27:09 Damn, why doesn't my computer show that level of utilization of ram ? Jan 03 12:27:41 open the taskmanager and click "more details" in the bottom left ;) Jan 03 12:28:12 I know, but the graph doesn't display that much utilization Jan 03 12:28:40 graph? Jan 03 12:29:24 Yup, in performance tab Jan 03 12:30:05 thats giving me 11 gb mem usage right now :p Jan 03 12:30:09 but I have a ton open Jan 03 12:40:09 is there a site with common libraries? specifically looking for a ble advdata parser right now Jan 03 12:41:20 aep, https://android-arsenal.com/ Jan 03 12:45:26 cool thanks Jan 03 12:48:15 sad, nothing for me Jan 03 12:48:23 anyone got an advdata parser? Jan 03 12:48:30 since the one in 4.3 is broken... Jan 03 12:53:49 found one on stackoverflow :) Jan 03 12:54:51 aep, which one? Jan 03 12:55:54 http://stackoverflow.com/a/24539704/1993710 Jan 03 13:15:32 Hey guys, I charge my phone balance by using a USSD service, I provide my bank account number and my password it'll charge my simcard. Now I wanted to know if I create an app to call this USSD code for me, woud there be any security issue? considering the ussd code contains my bank account ID and password Jan 03 13:16:28 is this the only way to do it? Jan 03 13:18:03 Does any other way come to your mind? Jan 03 13:18:22 buying charging cards for money?? Jan 03 13:19:04 You mean the old fasion way? Buying cards from stores out there? Jan 03 13:19:38 yea - id rather do that than sending bank data via cellular data Jan 03 13:19:56 or maybe they offer a way to do it via the website Jan 03 13:20:52 Not sure how that's any more secure. Jan 03 13:21:09 mohsen_1, you'll have to store bank account data on your device somehow Jan 03 13:21:39 Look I charge my sim card by USSD services now Jan 03 13:21:52 I just wanted to programmatically do it Jan 03 13:22:01 To save time Jan 03 13:22:11 Which means that the number can be retrieved from the device later. Jan 03 13:22:11 If that's ok for you, go ahead. Jan 03 13:24:00 But the app gets compiled, if anyone tries to do that, he should first get through the phone's lock then find the binary of app Jan 03 13:24:06 Then decompile it Jan 03 13:25:43 I just hate following those ussd steps frequently during a day Jan 03 13:30:58 mohsen_1> But the app gets compiled, if anyone tries to do that, he should first get through the phone's lock then find the binary of app || thats pretty easy to do Jan 03 13:31:45 attacker just needs to backup the apk and throw apktool on it to reverse engineer it. Jan 03 13:33:08 So what? Jan 03 13:33:26 mohsen_1, obviously you don't hardcode the number, you ask the user for it and then store it Jan 03 13:33:38 I dont say this will happen Jan 03 13:33:47 especially if its just a private app for him Jan 03 13:36:19 What if I prompt for the bank account password? and hardcode the rest of the code? Jan 03 13:36:29 This way I don't store the password in my device Jan 03 13:36:51 *the rest of USSD code Jan 03 13:53:05 Hi everyone Jan 03 13:54:51 hi Jan 03 14:47:24 So I ran this line of code: "startActivity(new Intent("android.intent.action.CALL",Uri.parse("tel:*123" + Uri.encode("#")));" but it opens skype and diels that number:-s Jan 03 14:54:51 Hi, I have problems with my seekbar. I cannot get the value of it. here's my code http://pastebin.com/vV9tjWkZ Jan 03 14:55:50 Hello everyone Jan 03 14:58:16 I'm facing a weird issue. I have a BufferedWriter which I initialize in OnCreate to write to a text file in ExternalFilesDirectory. I also register a listener to observe the accelerometer and in the listener method, I write the values to the file. Now the problem I face is that, not all values are written to the file even though I explicitly call flush and close on the writer in Activity Pause method. Jan 03 14:59:11 I've solved my problem. It was emulator Jan 03 14:59:20 :o Jan 03 14:59:31 cwek, also logcat tags should be less than or equal to 13 characters Jan 03 14:59:48 23 Jan 03 15:00:44 KajuAlien: do you also log the values? are they inconsistent with the file? Jan 03 15:01:45 Ashiren, I do at certain intervals. Infact it was the log values which revealed to me that not all the data was being written to the files. Jan 03 15:02:44 ah is it 23, some reason 13 stuck out, like from a lint warnin or something at some point way in the past Jan 03 15:16:13 i got a question. let's say i want to make a drop-down menu, consists of solely icons. what's the best way to go about this? Right now i made a layout consisting of the buttons and used PopupWindow() for this. is there a better way? i've tried using menus, but was pretty unsatisfied with the result. so far i've only tried popupwindow (which i'm perfectly happy with) and menus. Jan 03 15:39:13 I did that with keepshare, looks ok Jan 03 15:41:27 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/EntryEditFragment.scala#L50 Jan 03 15:54:38 How can I prevent a collapsing toolbar from scrolling when the list doesnt contain enough items to fill the screen? Jan 03 15:55:03 I could disable it manually but there should be a better way Jan 03 16:05:08 blindbox, see. above, pop-up window, as you've found, and a gridview Jan 03 16:06:00 oh, all right. can't read scala, but thanks for showing me a use case. Jan 03 16:06:13 gives me enough confidence to continue :) Jan 03 16:07:55 not hard to read, particularly that function Jan 03 16:08:27 Hi all. Am having trouble working out the first steps to actually build a project. I've checked out some source (of Hackers' Keyboard; http://code.google.com/p/hackerskeyboard) but where do I go from here? 'ant' complains about a missing local.properties file Jan 03 16:09:31 LeoNerd, ant is long dead for building android projects... but in that case, the readme of the project should tell you to run "android update project" and that will create local.properties for you Jan 03 16:10:18 indeed, noticed it after you pointed it out Jan 03 16:10:18 OK well, whatever works. :) Iwant to build the thing that lets me hack on the source code and install it on my phone Jan 03 16:10:38 speaking of hackers keyboard, I need to install. that Jan 03 16:10:49 You migth want to wait until I've fixed it for connectbot Jan 03 16:10:50 :) Jan 03 16:10:55 chrome remote desktop doesn't have any ways of accessing meta keys Jan 03 16:11:08 not without using a keyboard that has it... Jan 03 16:11:31 I don't use connectbot anymore Jan 03 16:11:51 juicessh is reasonably nice. even though it's not open source Jan 03 16:12:07 We've actually been fixing connectbot recently.. :) Jan 03 16:12:32 Hrm..I'm not sure if I'm doing 'android update project' correctly.. it's asking more questions; it wanted --path, and now --target... Jan 03 16:18:03 LeoNerd, yes, fill those in, of course Jan 03 16:18:14 OK.. so what do I put there? Jan 03 16:18:16 I know nothing, basically Jan 03 16:18:39 I've barely written 10 lines of java in my life before, Iwant to fix a small bug in HK. I've just checked out the sourcecode. Iknow nothing.. walk me through Jan 03 16:19:04 For now I just want to build the source code that I have, by any method that works, and see it install on my phone Jan 03 16:19:38 bad conditions to fix a bug if you dont know java nor android.. Jan 03 16:20:01 Lets skip over that for now Jan 03 16:20:39 I already told you how Jan 03 16:20:56 I'm not. going to hand hold any further Jan 03 16:20:57 Sure; I run android update project. It asks me for a pth, I presume that's . Jan 03 16:21:05 It asks me for a target ID. I have no idea what a "target ID" is Jan 03 16:21:18 android target Jan 03 16:21:19 IS it debug? 0? org.pocketworkstation.pckeyboard ? Jan 03 16:21:27 I can guess some words to put there Jan 03 16:21:35 android update project -h Jan 03 16:21:39 common sense helps Jan 03 16:21:46 -t --target : Target ID to set for the project. Jan 03 16:22:00 I don't know what is a "target ID". the words do not mean anything to me Jan 03 16:22:07 in that case, use the google Jan 03 16:22:14 Error: Target id 'debug' is not valid. Use 'android list targets' to get the target ids. Jan 03 16:22:17 aha. progress Jan 03 16:22:35 Isee. So it's the ID number of an API version Jan 03 16:23:01 I think android-21 will suffice for my phone... but how do I be sure? Jan 03 16:23:21 it doesn't matter, it's just compile target Jan 03 16:23:24 Ah Isee it has a name. I can compare that to my phone 'aboud' menu Jan 03 16:23:44 Hrm.. surely I can't build one for a later version than is on the phone? Jan 03 16:24:12 that's not how targets work Jan 03 16:24:12 Aha. I now have a local.properties, so it seems I can ant debug Jan 03 16:24:21 See already you're telling me useful things :) Jan 03 16:24:24 is there any issue with using kapt with gradle and referencing kotlin from java code? javac isnt seeing my kotlin sources Jan 03 16:25:09 hm actually, same issue without kapt Jan 03 16:26:37 yawkat, show your gradle file pleas Jan 03 16:27:03 https://s.yawk.at/AHgS Jan 03 16:27:33 the kotlin-gradle-plugin dependency is in the outer gradle file Jan 03 16:28:01 yawkat, you are missing the kotlin gradle plugin Jan 03 16:28:18 add classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" to your buildscript dependencies Jan 03 16:28:29 i did Jan 03 16:28:38 and wouldnt "apply plugin: 'kotlin-android'" error then Jan 03 16:28:43 not in the file you posted Jan 03 16:29:00 danijoo: i said something else :P heres the outer file https://s.yawk.at/2y1y Jan 03 16:29:47 hm Jan 03 16:29:58 its telling me "cant find symbol ..." whereever i reference kotlin classes from java Jan 03 16:30:38 so im guessing javac isnt seeing the kotlin binary or something Jan 03 16:34:40 hm, looks like retrolambda might be the problem Jan 03 16:36:29 heh this project is just processing hell Jan 03 16:46:22 hmm, what's wrong with this drawable xml when used as background in a view? it doesn't change colors when clicked: https://pastee.org/mp266 Jan 03 16:48:25 Selector items are checked top down until one matches Jan 03 16:48:38 oh ok. that makes sense. :) Jan 03 16:48:39 thanks Jan 03 16:49:12 i vow to read the docs more closely :) Jan 03 17:04:05 no matter what i do i can not get a reliable measurement on a custom view. i get code that works on my emulator but when i run it on my physical device i get screwed results Jan 03 17:04:34 how do you get a absolutely 100% guaranteed correct width/height on a view? Jan 03 17:05:56 mark4: When and how are you querying the width or height of the View? Jan 03 17:11:26 i did it in onMeasure, onFocusChanged or wahatever that is, with a layout listener. ive done every suggested method i could find Jan 03 17:11:40 NONE of them return an exact measurement, just a close approximation ish Jan 03 17:11:44 that works here but not there Jan 03 17:11:47 or works there but not here Jan 03 17:13:17 bView.getViewTreeObserver().addOnGlobalLayoutListener( Jan 03 17:13:18 new ViewTreeObserver.OnGlobalLayoutListener() . .. . this works in the emulator. it does not work at all on my nexus 7 Jan 03 17:14:45 That works fine, an OnLayoutChangeListener would also work Jan 03 17:15:34 Also ViewTreeObserver.OnPreDrawListener. Jan 03 17:16:25 SimonVT, it works on the emulator. on the physical device it returns a wrong value Jan 03 17:16:29 MUCH too large Jan 03 17:17:01 rows = vHeight / (int)(FONT_SZ * 1.3f) -1; <-- i use the height to do this calc Jan 03 17:17:12 on the emulator i get the correct number of text rows in the view Jan 03 17:17:25 on the nexus it returns 24 rows. thats 5 too high Jan 03 17:17:28 what are the dpi buckets Jan 03 17:17:37 ? Jan 03 17:18:14 Where does the 1.3 come from? Jan 03 17:18:35 And you can use hierarchy viewer to double check the returned view size Jan 03 17:18:42 tv.setLineSpacing(-3f, 1.3f); Jan 03 17:19:31 mark4: You need to check the return value of View.getHeight (perhaps by printing it to LogCat). That other stuff is a different topic. Jan 03 17:19:44 If View.getHeight is producing the right value, the problem is in the other stuff. Jan 03 17:20:00 what density is your emulator compared to your nexus 7 Jan 03 17:20:03 its not Jan 03 17:20:24 why would density matter im asking for a physical size at run time Jan 03 17:20:38 and how do i find out what the density of my emu is? Jan 03 17:20:56 its mdpi on the emu Jan 03 17:21:13 o/ Jan 03 17:21:23 i think the nexus 7 is xhdpi Jan 03 17:21:30 anyone ever used android-content-provider generator ? Jan 03 17:21:31 https://github.com/BoD/android-contentprovider-generator Jan 03 17:21:33 that Jan 03 17:21:34 :D Jan 03 17:22:07 mark4: How do you know that View.getHeight is producing the wrong value? Jan 03 17:22:10 if i need to compensate for density i need to know how to do that :/ Jan 03 17:22:43 TacticalJoke, i use the computed height to compute the number of text rows i can output to that view given the line spacing set above (1.3) Jan 03 17:22:43 how do I get the account type of the end user? the user that's using and installing the app? Jan 03 17:22:50 The -3f seems to be missing from the formula.. Does TextView#getLineCount not work? Jan 03 17:22:53 on the emu it works 100% flawlessly Jan 03 17:22:55 http://developer.android.com/guide/topics/providers/contacts-provider.html re ACCOUNT_TYPE Jan 03 17:23:25 on the nexus 7 it fails every time Jan 03 17:23:40 i think that -3f is an offset? Jan 03 17:23:47 mark4: The issue is very likely your math, not the view height Jan 03 17:23:47 the 1.3 is the spacing Jan 03 17:23:53 Spend the 2 minutes it takes to check Jan 03 17:24:13 SimonVT, what would i check? Jan 03 17:24:18 the -3 ? Jan 03 17:24:20 brb Jan 03 17:24:30 vHeight vs the actual height, as reported by hierarchyviewer Jan 03 17:25:09 If you're even getting a value, I'd be very surprised if it was wrong Jan 03 17:25:39 Sets line spacing for this TextView. Each line will have its height multiplied by mult and have add added to it. Jan 03 17:25:49 Also, TextView#getLineCount Jan 03 17:26:03 the -3f is an offset, the spacing is 1.3 Jan 03 17:26:08 what api level is that? Jan 03 17:26:27 Right, so each line is textSize * 1.3 + -3 Jan 03 17:27:00 Does textSize include ascent, descent, etc? Jan 03 17:27:06 yes Jan 03 17:27:50 or i was lead to believe it does... Jan 03 17:27:51 I thought adb logcat PATTERN somehow applied a filter, to only show lines matching that filter? Mine seems to be showing everything Jan 03 17:29:22 cannot resolve getLineCount() Jan 03 17:30:32 It's a method of TextView. Jan 03 17:31:48 yea thats the issue, i needed to cast my custom view to textview Jan 03 17:32:02 however. that methud returns 1 Jan 03 17:32:04 exactly 1 Jan 03 17:32:12 Cast your custom View to a TextView? wat Jan 03 17:32:33 i have a custom view that extends TextView Jan 03 17:32:59 bView is not a textView so i need to (TextView)bView.xxx() here Jan 03 17:33:54 putting that -3 into the formula makes it not work anywhere Jan 03 17:35:23 Might just be a coincidence that it works anywhere Jan 03 17:35:41 maybe lol Jan 03 17:36:23 problem is, this is only HALF the problem, i also need to know the number of columns in the view (text columns for a monospaced font) Jan 03 17:36:45 1 at a time tho Jan 03 17:40:31 i apply that -3 to the formula and it just straight out does not work. either im getting screwed up view heights or my formula is just wrong Jan 03 17:40:47 if i dont apply that -3 and just multiply by 1.3 it works but only on the emu Jan 03 17:41:16 mark4: Do you think it's time to admit that View.getHeight isn't the problem? Jan 03 17:41:49 TacticalJoke, then what is the problem? Jan 03 17:43:19 and im using getMeasuredHeight not getHeight Jan 03 17:46:07 Not going to bother coming up with more suggestions, if you wont even bother spending the 2 minutes it takes to check the view height.. Good luck Jan 03 17:46:18 how do i check that? Jan 03 17:46:26 i asked that! Jan 03 17:47:56 check it against what? Jan 03 17:48:08 use two different methods to determine the value and see if they are the same? Jan 03 17:48:18 what methods? Jan 03 17:48:38 does anyone know if you pass a null account_type to http://developer.android.com/guide/topics/providers/contacts-provider.html when adding a contact if the provider will refuse to insert it? Jan 03 17:49:00 its like you give me 1/100 of a suggestion here... HOW do i check the results? Jan 03 17:49:11 I told you hierarchy viewer multiple times Jan 03 17:49:17 hmm, the linting step tells me my class inheriting from ReseultReceiver is missing the CREATOR field which all Parcelable subclasses should. But ResultReceiver has that already.. Jan 03 17:49:21 hmm Jan 03 17:49:34 i have no idea what that is or how to use it. brb Jan 03 17:50:56 im not using android studio. is that a requirement? Jan 03 17:51:31 Open your application in Android Studio, build the source, and run it on your device. Jan 03 17:51:33 yup Jan 03 17:51:35 no can do Jan 03 17:51:39 not WONT. CANT Jan 03 17:51:47 android studio will NOT build my project Jan 03 17:55:31 ty for the help :/ Jan 03 17:57:59 weird, what causes adb connect to succeed and show device under 'devices attached' but the device is marked as 'offline' Jan 03 17:58:17 retried a bunch , connect succeeds, but stays offline :/ Jan 03 18:08:09 hi , I have 3 fragments ,#1 & #2 have recycleview to choose from and #3 have imageview and some UI elements. I load images in imageview by decodeing bitmaps as in http://bit.ly/1JRGcDC Jan 03 18:09:12 an the fragments is added in Backstack , the problem I face is that the memory usege is growing for every back press Jan 03 18:09:57 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq Jan 03 18:10:34 Er, oops. Jan 03 18:11:33 isn't the fragments added once to memory why the usege keep growing Jan 03 18:12:57 https://code.google.com/p/hackerskeyboard/source/browse/java/src/org/pocketworkstation/pckeyboard/LatinIME.java#1487 <== So I'm trying to fix an issue in this method. It is looking at the .packagename of an EditorInfo structure, to see if it is talking to something that is like ConnectBot. I'd like to add a version test in there, but EditorInfo doesn't appear to have a field that contains the declared >> Jan 03 18:12:57 << version of the package. Does anyone have any ideas on how I might manage this? Jan 03 18:14:24 started at 10~13Mb and it reaches 25~30Mb before it drops is that memory usage normal ?? Jan 03 18:16:01 does anyone have a download script for androidfilehost.com? Jan 03 18:18:05 TarekMA, it grows when you press back? Jan 03 18:18:16 or when you move forward Jan 03 18:19:46 danijoo: when I press back and also when I re-call the fragment Jan 03 18:20:02 g00s, try to re-authorize it maybe, and unplug replug physically the device prior to flushing the credentials Jan 03 18:20:14 danijoo: you can say it grow every time new fragment is drawn to screen Jan 03 18:20:46 well i think the only viable solution i to throw away my textview and use an imageview and render text into that. by hand if need be Jan 03 18:21:15 TarekMA, track the allocation to see where it comes from :/ Jan 03 18:21:30 or play arround with LeakCanary to check if you are leaking ¨something¨ Jan 03 18:22:47 danijoo I will see LeakCanary Jan 03 18:29:53 adq yeah, a copious amount of restarting things randomly eventually fixes ... Jan 03 18:30:37 now if i can figure this out - my app crashes, logcat shows the exception, and within a few seconds AS clears lolcat as android restarts the process Jan 03 18:31:02 so then i have to go back, uncheck the filter, scroll up through the noise ... Jan 03 18:35:56 annoying, but i think there is an option to avoid AS clearing the logcat buffer Jan 03 18:36:06 i'm so mad at AS and jni recently Jan 03 18:36:48 adq are you using 2.0 ? Jan 03 18:36:55 i tried, it's even worst Jan 03 18:37:04 so i'm still on 1.5.1 Jan 03 18:39:03 hmm, i'm using an intent service to do web requests to an api and have to marshall everything through intents Jan 03 18:39:57 are there established best practices? i'm defining all sortf of string constants to build the intents.. something like this: https://pastee.org/7cn2u Jan 03 18:41:10 and then build my intents like this: https://pastee.org/hf33z Jan 03 18:41:23 it's a little clumsy but i couldn't think of a smarter way yet Jan 03 18:45:41 and i'll have to do the same for results passed back to resultreceivers.. Jan 03 18:56:07 "Shugaa discovered his 7-year-old son had managed to rack up a $5,900 bill playing the Jurassic World game on his iPad in six days. " lol Jan 03 18:57:22 bought lots of dinosaurs Jan 03 18:57:30 "free"-to-play Jan 03 18:57:44 games theses days are really stupid Jan 03 18:58:53 What's the best way to make an list to details material animation? Jan 03 18:59:27 nmgandroid wouldn't that be a shared element transition ? Jan 03 18:59:38 like you click on one thing, it zooms into a new activity Jan 03 18:59:47 Yeah. Pretty much Jan 03 18:59:56 ktwo, so are customers Jan 03 19:00:38 g00s: I would like it to be similar to the animation when selecting an app in the google play store Jan 03 19:01:27 nmgandroid https://github.com/codepath/android_guides/wiki/Shared-Element-Activity-Transition Jan 03 19:01:47 g00s:thank you. I will look at that. Jan 03 19:03:08 of course, i could just add static methods to create the intents directly. doh.. ok. Jan 03 19:05:22 oh, inner classes cannot have static methods? um Jan 03 19:06:27 hmm, will read up on moar java Jan 03 19:09:25 static nested classes ftw.. Jan 03 19:09:52 g00s, cite that Jan 03 19:10:07 "Shugaa discovered his 7-year-old son had managed to rack up a $5,900 bill playing the Jurassic World game on his iPad in six days. " lol Jan 03 19:10:08 this Jan 03 19:10:09 ^ Jan 03 19:10:44 ludkiller http://www.pcmag.com/article2/0,2817,2497323,00.asp Jan 03 19:10:53 thanks :) Jan 03 19:11:05 just wanted to read it Jan 03 19:13:09 What is the latest android design support library version? Jan 03 19:17:30 danijoo another problem :\ , leakcanary giving me "NullPointerException: Attempt to invoke virtual method 'void com.squareup.leakcanary.RefWatcher.watch(java.lang.Object)' on a null object reference" Jan 03 19:17:44 when I set it on fragment Jan 03 19:18:02 you cant watch an object that doesnt exist Jan 03 19:18:05 it works aromaticity with activity Jan 03 19:18:28 yes but I set it up like the readme in github Jan 03 19:18:40 hey anyone a fan of dependency injection Jan 03 19:18:51 sorry but i dont have muchg exp with leakcanary Jan 03 19:18:58 do you use it in every project just to keep code organized ? Jan 03 19:19:10 or only the ones you think might grow big ? Jan 03 19:19:24 mmm so how can I see where is my leaks Jan 03 19:34:42 g00s, only 1 computer may connect to adb tcpip at a time Jan 03 19:34:53 g00s, additional computers will always show offline Jan 03 19:35:01 pfn i only have one computer :D Jan 03 19:35:28 still, you can only adb connect once Jan 03 19:37:43 and yes, you must authorize the computer before you will be able to adb connect successfully Jan 03 19:38:35 sure, it was all working for a while but then i just said offline even with adb kill-server Jan 03 19:39:16 works again Jan 03 19:39:59 "Why? Because f*** you!" -- Android. Jan 03 19:43:43 TacticalJoke here's to getting our projects done by xmas 2016 :P Jan 03 19:44:01 :D Jan 03 19:45:46 TacticalJoke i'll never live this down - larry wall beat us releasing Perl 6 ! Jan 03 19:53:02 hey guys..Ive read that the Web View is not such a good idea because it has some basic JS/Flash support issues .. is this correct? Jan 03 19:53:28 "Google, HP, Oracle Join RISC-V" " RISC-V is on the march as an open source alternative to ARM and Mips. Fifteen sponsors, including a handful of high tech giants, are queuing up to be the first members of its new trade group" Jan 03 19:53:38 target-riscv Jan 03 19:54:30 cart_man: Not such a good idea for what? Jan 03 19:54:58 TacticalJoke: Using is and expecting a complete browsing experience inside your app Jan 03 19:59:18 Hi guys. I was wondering what game engine you would suggest for android game development? Jan 03 20:01:23 How much money do you have? Jan 03 20:02:58 Mavrik: zero Jan 03 20:03:24 but suggest me even the ones who need money Jan 03 20:04:16 Unity 5, Unreal, libGDX are the big ones Jan 03 20:05:28 im using linux so libgdx is the only one i can use Jan 03 20:05:32 of those Jan 03 20:13:39 Mavrik zxing app works really well; at least on my n7 - looks a little old but ok Jan 03 20:15:55 lignux, I think theres a beta of Unity for linux Jan 03 20:16:23 danijoo: yea i heard about that but i think its only for ubuntu based distros im using arch Jan 03 20:16:24 or was that that building for linux? Jan 03 20:16:27 im not sure: s Jan 03 20:17:04 lignux, ah I see :) Jan 03 20:24:30 anyone knows how to solve this issue: Jan 03 20:24:31 Error:java.util.zip.ZipException: duplicate entry: android/support/v4/hardware/display/DisplayManagerCompat$LegacyImpl.class Jan 03 20:25:49 remove duplicates from your project Jan 03 20:26:22 i removed, didn't halped Jan 03 20:26:47 so you claim, clean. and build again Jan 03 20:26:53 *helped Jan 03 20:27:00 if it remains, you did not remove all duplicates Jan 03 20:27:56 stackoverflow app sucks, can't subscribe to tags or anything Jan 03 20:34:01 What is the latest android design support library version? Jan 03 20:37:09 nmgandroid: Go to android-sdk/extras/android/m2repository and follow the folder structure down until you get versions Jan 03 20:37:40 SimonVT:where is that? Jan 03 20:37:44 Assuming you've updated your sdk, you'll find the latest version there Jan 03 20:37:57 .. you don't know where your sdk is? Jan 03 20:37:59 Nevermind then Jan 03 20:39:26 OK... another question. I updated my build.gradle file and now AppCOmpactActivity wont resolve. Jan 03 20:44:52 Usually there's an error message when you try to build Jan 03 20:44:57 nmgandroid: refresh project Jan 03 20:46:00 vigilancer:I invalidated and restarted Jan 03 20:49:12 "art of any deal is negitiation" he said before breaking opponent's hand Jan 03 20:49:19 nmgandroid: pastebin error Jan 03 20:49:40 hello everyone Jan 03 20:50:24 nmgandroid: if it's not resolving you need include appcomnat support lib in build.gradle and refresh project Jan 03 20:50:31 vigilancer: it appears to be working now Jan 03 20:50:51 i'm trying to use linux android studio and if i am using the root folder of my project i cannot sync gradle, am i not supposed to be using the root? Jan 03 20:50:56 vigilancer: nevermind Jan 03 20:51:26 vigilancer:how do I refresh my project? Jan 03 20:51:59 when you editing build.gradle IDEA or Studio shows bar on top with link "Refresh" Jan 03 20:53:11 vigilancer:sync? Jan 03 20:54:16 yeah maybe Jan 03 20:54:52 vigilancer:where can I find the valid version #s for the support library? Jan 03 20:55:44 see SimonVT's answer Jan 03 20:55:46 or https://bintray.com/search?query=appcompat Jan 03 20:56:35 vigilancer:ok... so now, how do I use the design support library? Jan 03 20:57:37 press that big red button =D Jan 03 20:58:07 vigilancer:well, Google gives me a v22 for it but the gradle file doesn't like differing versions. Jan 03 20:58:16 appcompact is v21 Jan 03 20:59:01 read docs man, I don't undrestrand your problem Jan 03 20:59:36 vigilancer:ok. I will. Jan 03 20:59:59 ugh, this web api i'm working on forces me to choose the language for results upon login. now if the user changes the device's language at runtime the results will have a different language than the user interface.. Jan 03 21:00:08 oh well. time to sleep :) Jan 03 21:02:48 nmgandroid: sorry, bad day. but please be more specific with questions. like "I'm trying to achive this, doing that, but getting that kind of error/unexpected behaviour" Jan 03 21:08:03 vigilancer: OK. I heard about the android design support library. I tried to add it, and got an error (I forget what). Anyway, Android Studio expects the version numbers for the support libraries to match the compile SDK version. There is not version 22 for appcompact and there is version 21 of the design library (that I know). So I gave up and und Jan 03 21:08:04 id all my changes. I still have some errors. Jan 03 21:08:12 Make sense so far? Jan 03 21:11:12 nmgandroid: last support lib version 23.1.1 Jan 03 21:11:14 there is a 22, update your sdk Jan 03 21:12:07 vigilancer: I mistyped. sorry Jan 03 21:12:34 vigilancer: anyway AS cannot resolve symbol R. Jan 03 21:12:53 I am updating my packages right now to see if that is the issue. Jan 03 21:13:21 seems to me like androids default monospace font is NOT monospace Jan 03 21:13:38 "ABCD...XYZ" is not the same length in pixels as "abcd... xyz" Jan 03 21:13:44 nmgandroid: do ls $ANDROID_HOME/extras/android/m2repository/com/android/support/design/ Jan 03 21:14:38 vigilancer:$ANDROID_HOME is not defined at the moment Jan 03 21:14:56 nmgandroid: so figure out this path Jan 03 21:15:14 nmgandroid:is it my install path? Jan 03 21:15:26 what dont i understand about monspace fonts. i thought every character was supposed to take up exactly the same number of pixels? Jan 03 21:15:40 nmgandroid: it's root of android sdk installation Jan 03 21:15:47 ok Jan 03 21:18:54 vigilancer: I am now really just trying to fix the issue of "Cannot resolve R". Do you know anything about that? Jan 03 21:19:18 Does anyone know if the play console updates the metrics at a specific time? Jan 03 21:19:25 or is it more or less random? Jan 03 21:19:43 danijoo i think it always happens a few minutes after you check :D Jan 03 21:20:22 g00s, I gonna hit the magic 1 million with the next one I guess :p Jan 03 21:20:43 danijoo 1m downloads? congrats ! Jan 03 21:20:57 yeah :) Jan 03 21:21:00 thanks Jan 03 21:22:58 nmgandroid: rebuild project from idea Jan 03 21:24:03 danijoo: congrats) Jan 03 21:26:11 vigilancer:I don't have IDEA but I will try to rebuild once my packages update. Jan 03 21:26:21 *ide Jan 03 21:30:30 vigilancer:k Jan 03 21:34:33 vigilancer:I got a few errors. Here is one Error:(8, 5) No resource found that matches the given name: attr 'windowNoTitle'. Jan 03 21:35:53 Hey there! Activities do not seem to recreate on 180° orientation changes. Does anyone know how i do enforce activity recreation on 180° screen rotations, or at least get a callback when a 180° rotation occurs? Jan 03 21:38:03 JosefFilzmaier, i think some phones block that OS´wise Jan 03 21:38:14 and allow only 2 orientations Jan 03 21:39:16 what's your target api? Jan 03 21:41:02 vigilancer: 21 Jan 03 21:43:15 vigilancer: I fixed it! Clearing the problem lines helped. Jan 03 21:45:18 huh, thats obtuse - to know when a fragment transaction has completed - listen for the animation end Jan 03 21:45:45 or the fragment callbacks :p Jan 03 21:45:57 does c.drawText not work with monospaced fonts? Jan 03 21:46:49 danijoo there should be something like FragmentTransaction#addCommitListener or something Jan 03 21:47:18 otherwise you have to ensure any fragment you add obeys a protocol to poke you when its visisble Jan 03 21:47:32 i have set my paint to a monospaced font and am using c.drawText in my onDraw and two strings of identical character length are being drawn with different pixel lengths Jan 03 21:47:50 thats not monospaced Jan 03 21:51:53 is there any way to permanently squash this notification in AS "Edit translations for all locales in the translation editor" ... i hide it but it keeps coming back Jan 03 21:57:54 im srsly confused. monospace fonts do not seem to be monospace when drawing text to a bitmap via a canvas Jan 03 21:58:08 how the fuck am i supposed to do this? srsly! Jan 03 21:59:09 ive tried multiple monospaced fonts and they are being applied because when i change font the text changes but strings of exactly the same number of charactes are being drawn at different lengths Jan 03 21:59:22 am i just fucking this up again or what? Jan 03 22:01:46 same font size? Jan 03 22:01:50 yes Jan 03 22:02:08 literally draw two strings to the same canvas using the same paint Jan 03 22:02:11 some monospace fonts have different character widths Jan 03 22:02:18 I440r fonts have different metrics ... 2 fonts @ 12sp will be difference sizes of course Jan 03 22:02:27 c.drawTExt("abcdef" and "ABCDEF" a throu z for both Jan 03 22:02:46 g00s same font. different strings. monospace is NOT monospace that i can tell Jan 03 22:03:06 "ABCDEF....XYZ" is one character shorter in length in the bitmap than "abcd...xyz" Jan 03 22:03:36 c.drawText("ABCDEFGHIJKLMNOPQRSTUVWXYZ", 10, (i * 15) + 20, p); Jan 03 22:03:36 c.drawText("abcdefghijklmmnopqrstuvwxyz", 10, ((i + 1) * 15) + 20, p); Jan 03 22:04:57 thats with p.setTypeface(Typeface.MONOSPACE); Jan 03 22:06:11 I updated appcompact in my build.gradle file and now android.support.v7 does not contain .app Jan 03 22:06:37 <_biff> hi Jan 03 22:08:24 <_biff> after many issues read is it able to capture android screen? somebody gave me a link to asl but it needed a service running and connected thru adb with the phone Jan 03 22:09:18 <_biff> so above an android version is it able to capture screen native or somehow without root priv Jan 03 22:09:24 _biff show your code or stacktrace Jan 03 22:09:37 <_biff> g00s...for why? Jan 03 22:09:41 <_biff> say it works Jan 03 22:09:50 <_biff> but complicated to use in real life.. Jan 03 22:09:53 _biff see topic, http://imgur.com/jacoj Jan 03 22:09:57 <_biff> running a a service on pc...ehh Jan 03 22:10:19 hi Jan 03 22:10:24 <_biff> :) Jan 03 22:10:43 <_biff> goos https://code.google.com/p/android-screenshot-library/wiki/UserGuide Jan 03 22:10:49 <_biff> g00s Jan 03 22:10:58 <_biff> its a demo app Jan 03 22:11:06 is there an FAQ for this channel for newbies? :) Jan 03 22:11:07 <_biff> so i dindt write any line Jan 03 22:11:26 yeah from 2011 , ok Jan 03 22:11:38 kozukumi, it would consist of a single line ¨Read the javadocs¨ :D Jan 03 22:12:18 I was just wondering, other than a Nexus 5X/6P, what would be a good value Android phone for dev? Jan 03 22:12:25 <_biff> g00s do u have any idea? Jan 03 22:12:31 no Jan 03 22:12:32 <_biff> other than this asl Jan 03 22:12:48 lol, I noticed "Nexus", and at first I thought of Cisco's line of switches.. Jan 03 22:12:51 g00s:i updated my build.gradle to compile the support library v23.1.1 and now there is no android.support.v7.app Jan 03 22:12:52 nothing beats the Nexus for developing Jan 03 22:13:39 danijoo they are just so expensive :/ Jan 03 22:14:08 kozukumi, the nexus 5 is still viable Jan 03 22:14:15 and is on the latest android version Jan 03 22:15:07 only available second hand though? Jan 03 22:15:24 no idea Jan 03 22:15:49 danijoo: I updated my build.gradle to compile the support library v23.1.1 and now there is no android.support.v7.app Jan 03 22:16:10 lol what is android.support.v7.app Jan 03 22:16:20 nmgandroid, and why do you highlicht me with that? Jan 03 22:17:12 nmgandroid:I was wondering if you could help Jan 03 22:17:48 ^ kozukumi, thats somthing for the FAQ: dont highlight random people :p Jan 03 22:18:41 danijoo: sorry Jan 03 22:25:45 i have fragment, i will pass a city name to a google maps activity when i click a button on that fragment Jan 03 22:25:50 how can i do that ? Jan 03 22:32:15 I440r, it's the same width, just compared visually Jan 03 22:32:41 visually they are different on the avd/physical device display Jan 03 22:32:46 the strings are the same length Jan 03 22:33:01 uppercase a throug z and lower case a through z Jan 03 22:33:34 im obviously doing something stupid again Jan 03 22:33:39 same length, unless you copy paste Jan 03 22:33:50 in that case, you repeated m Jan 03 22:34:00 crap Jan 03 22:34:06 lol like i said. stupid Jan 03 22:34:35 was getting worried there Jan 03 22:34:36 ty Jan 03 22:35:53 hi all Jan 03 22:36:02 hi Jan 03 22:37:09 how i can store a return from an asynctask in an global variable? Jan 03 22:43:29 I440r, it's obvious if you irc using a monospace font as is proper Jan 03 22:44:06 <_genuser_> I'm resizing a dialogfragment, but it's contained layout isn't resizing. any ideas? manually resizing the layout and the dialogto the same width isn't doing anything... Jan 03 22:44:34 actually, I don't monospace irc anymore, but I switched to check Jan 03 22:44:51 pfn i do lol Jan 03 22:45:11 but im so busy looking at a forest to see the trees it seems :/ Jan 03 22:45:18 roboto light is my irc font Jan 03 22:45:28 <_genuser_> http://pastie.org/10668512 Jan 03 22:45:34 i thought roboto was mono? Jan 03 22:45:40 it's not Jan 03 22:47:10 why does for(...;i += 2) not work but for(....; i = i + 2) does? Jan 03 22:53:32 should work fine Jan 03 22:53:41 <_genuser_> so none of you have tried to resize a dialogfragment ever? Jan 03 22:53:47 <_genuser_> it does sound like a corner case, tho. Jan 03 22:55:00 i have fragment, i will pass a city name to a google maps activity when i click a button on that fragment, how can i do that ? Jan 03 22:55:21 with startactivity ? Jan 03 22:55:54 * g00s <3 roboto light, as coding font Jan 03 22:57:15 g00s: try PragmataPro Jan 03 22:57:23 think i did already Jan 03 22:57:31 no, nothing? ) Jan 03 22:57:42 is that one paid ? Jan 03 22:57:53 well.. yeah Jan 03 22:58:00 ah, didn't try it :D Jan 03 22:58:16 <_genuser_> roboto? pregnanto? Jan 03 22:58:19 <_genuser_> where are these fonts? Jan 03 22:59:20 roboto pregnanto with openjdk-to Jan 03 23:10:01 yea switchng my textview to an imageview and using c.drawText() was the answer. i am now scaling the characters based on the density and im getting the same number of characters per line on all displays. different number of rows but cols is the same Jan 03 23:10:25 meaning i now know exactly how many characters are in this view in both axis's Jan 04 00:45:23 Why would the line: ImageView image = new ImageView( this ); ever give me a null pointer excpetion Jan 04 00:45:25 Doesnt make sense Jan 04 00:50:20 drose379, Only thing I can think of is the ImageView class didn't get imported or something. Jan 04 00:50:36 It only happens sometimes Jan 04 00:52:11 Do you have something that might reference the image view before it get initialized? Jan 04 00:55:28 does anyone know if sharedPreferences.getAll() returns an in memory copy of the data or if it has to query the file system? Jan 04 00:55:33 can seem to find the source Jan 04 00:57:48 drose379, simple, you're doing it outside the life cycle Jan 04 00:58:08 jug6ernaut its in SharedPreferencesImpl or whatever Jan 04 00:58:33 first query it reads the file in memory. after that its all in memory, from what i remember Jan 04 00:59:03 nice Jan 04 00:59:06 yeah seems that way Jan 04 00:59:10 thanks g00s Jan 04 01:00:14 What do you mean pfn Jan 04 01:01:15 drose379, exactly what I said, you did it outside the component life cycle Jan 04 01:01:32 ImageView image = new ImageView( this ); Jan 04 01:01:42 Are you saying "this" is null? Jan 04 01:23:28 no Jan 04 01:23:34 read the stack trace again Jan 04 01:23:57 you cannot use any activity, service or application outside of onCreate and onDestroy Jan 04 01:24:20 thus, you cannot do that outside of the lifecycle Jan 04 01:40:32 That does not explain this problem pfn Jan 04 01:40:36 Because it only happens sometimes Jan 04 01:40:39 Not all the time Jan 04 01:41:52 Wait, you mean I can only start a service in onCreate()? Jan 04 01:45:58 Anyone know why getSupportActionBar.setTitle() would not work? Jan 04 01:56:56 Color c = Color.WHITE; <-- this works. why cant i create an array of Color values ? Jan 04 01:57:14 says i cannot create an array of color values because Color.blah is an int Jan 04 01:58:32 actually that doesnt work Jan 04 01:59:40 that exactly explains the problem, drose379 Jan 04 01:59:55 and doesn't work is what you say when you don't want your problem solved Jan 04 02:00:11 no i do want it solved, i need an array of color values Jan 04 02:00:20 talking about drose379 Jan 04 02:00:22 and i need to be able to pass a color to a method Jan 04 02:00:24 oh Jan 04 02:00:25 How does it explain it pfn Jan 04 02:00:39 drose379, exactly what I said explains it Jan 04 02:00:51 that is the end of the story, there is no more why Jan 04 02:00:55 Can you elaborate on it Jan 04 02:01:10 I am creating the imageview outside of the lifecycle? Jan 04 02:01:25 you get an npe in new view initialization because you are OUTSIDE the lifecycle Jan 04 02:01:38 I gave you a very clear explanation Jan 04 02:01:46 you did it outside of onCreate and onDestroy Jan 04 02:01:54 Hmmm Jan 04 02:01:59 So "this" is null Jan 04 02:02:05 no Jan 04 02:02:10 this. can never be null Jan 04 02:02:20 I440r, new Color(...) Jan 04 02:09:02 hello? Jan 04 02:09:24 anyone there? Jan 04 02:09:58 so... this is awkward now... Jan 04 02:10:23 gingercookie? Jan 04 02:10:43 Whats up eDevGames_ Jan 04 02:10:48 eDevGames_: what's up Jan 04 02:10:55 is anyone here good with glsurfaceviews? Jan 04 02:12:27 never heard of it Jan 04 02:12:56 isn't this the irc for programming help? Jan 04 02:13:49 Yep Jan 04 02:14:09 are you good with opengl? Jan 04 02:14:11 Nope Jan 04 02:14:18 :( Jan 04 02:14:18 nobody is ;( Jan 04 02:15:46 just ask your question, metaquestions are only going to be met with attitude Jan 04 02:17:27 well i have a custom class that extends glsurfaceview, and it renders an object. But the problem is that its parent view, a relative layout has a background drawable, and i want the background to display also in the view behind the rendered object Jan 04 02:17:50 but everything i try from stackoverflow hasnt been working, and only has been giving me a white background for the view Jan 04 02:19:20 bankai_ you got his hopes up :D Jan 04 02:19:46 lol Jan 04 02:48:23 is it possible to convert a duration of time in one unit (say, ms) to something in the format of mm:ss? **** ENDING LOGGING AT Mon Jan 04 02:59:58 2016