**** BEGIN LOGGING AT Mon Jan 06 02:59:59 2014 Jan 06 03:00:00 hmmm, I might be wrong about that actually Jan 06 03:00:07 but yeah, so for a custom actionbar I'm doing the right thing right? Jan 06 03:00:18 as in using a custom background image Jan 06 03:01:51 yeah, nevermind. I they can shrink Jan 06 03:02:10 so the size doesn't really matter, you just have to make sure to set the stretchable regions appropriately Jan 06 03:02:17 I think they can shrink* Jan 06 03:02:52 I see, I'll have to learn how to do it Jan 06 03:02:54 it's confuisng Jan 06 03:02:56 *confusing Jan 06 03:03:34 I'm guessing an actionbar with a logo in the middle is a background image? Jan 06 03:33:57 morning androids Jan 06 03:47:08 so I have a fragment with a WebView and it overrides shouldOverrideUrlLoading, on a particular URL it calls dismiss() and returns true Jan 06 03:47:20 so my understanding is that the browser will not even issue any kind of HTTP request for that URL Jan 06 03:47:23 is that correct? Jan 06 03:54:45 yes Jan 06 03:55:46 Hi, I'm having trouble with my Eclipse, is anyone on here that can help me out? Jan 06 03:56:06 lots of people 'on here' atm :) Jan 06 03:56:36 I just downloaded the ADT bundle, and unzipped it. However, when I go to actually open Ecliple, I am told that Eclipse can't find the SDK Jan 06 03:58:07 More specifically, " . . . No JV machine was found after searching C:\ . . . Development\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\javaw.exe" Jan 06 03:58:15 "javaw.exe in your current PATH" Jan 06 03:59:54 I tried redownloading - had the same issue. Not sure what is wrong. Jan 06 04:01:10 Ok, a broader question, if nobody can answer the previois one - how can I change Eclipse's search location for the SDK? Jan 06 04:05:03 AlexGraal: do you have java installed? Jan 06 04:05:37 Yes - I should. I've been working on other java stuff through drjava, and I've downloaded Java, I'm pretty sure. Jan 06 04:06:39 But in case I don't, should I just redownload it? Jan 06 04:06:57 I mean, I thought that the toolkit had everything needed in it. Jan 06 04:19:33 From developer console is there a way to see my store link for app? Jan 06 04:20:07 qmr, if you find one, let me know. that's been driving me nuts forever! Jan 06 04:20:45 That was the issue, bankai_, thanks - I'm dumb for not checking that before Jan 06 05:05:14 Hey does anyone have a relatively high versionCode? I mean has anyone started off in Google Play with a versionCode above 1? Jan 06 05:06:42 Hey all, quick question. Just downloaded android SDK 4.4 and eclipse (running linux mint 16 x64), and I am trying to start an AVD. I created a generic AVD with eclipse, and when started, just sits with black background and 'ANDROID' across center of screen. I can start it via terminal with the same results, and no errors output. This is as far as it goes though, and doesn't appear to fully start. eclipse can't connect to it, as if i Jan 06 05:06:43 t isn't fully running. Am I missing something obvious? Jan 06 05:08:07 MikeClassic, I use my normal version number with the special characters stripped out Jan 06 05:08:14 ie 1.00 becomes 100 Jan 06 05:08:22 1.01 -> 101 Jan 06 05:08:24 etc Jan 06 05:08:27 alex_PP hmm interesting Jan 06 05:08:30 I'm curious how others are doingi t Jan 06 05:09:01 I mean I've got a build number as a string resource just for my personal and internal use, and only increase versionCode when a new release is going out to users Jan 06 05:13:35 you could do something like android{ versionCode = versionName.repaceAll("\D", "") in gradle Jan 06 05:15:41 yeah Jan 06 05:15:49 that's an idea, for sure Jan 06 06:42:51 hello everybody Jan 06 06:43:02 Hi Jan 06 06:43:09 hi ir7466 Jan 06 06:43:15 How can we help you sunny_slls? Jan 06 06:43:20 i have a stupid question. Jan 06 06:43:57 when we override the onReceive method of broadcastreceiver , is it like an anonymous inner class ? Jan 06 06:44:42 means when we do BroadCastReceiver bc = new BroadCastReceiver() { public void onReceive() {} }); Jan 06 06:44:56 its an inner class implementation right ?/ Jan 06 06:46:24 yes Jan 06 06:46:25 ir7466: ? Jan 06 06:46:45 but who cares about terminology :) Jan 06 06:46:54 sunny_slls: yes Jan 06 06:47:16 thanks but then i have another question related to it Jan 06 06:47:58 its always recommended to make inner class as static in case the inner class is using the object of the outer class. Jan 06 06:48:35 in android case consider the context. Jan 06 06:48:59 try it, the compiler won't let you use variables from the outer class unless you declare them final Jan 06 06:49:01 so there is no danger Jan 06 06:49:56 ya it doesn't unless its a class variable Jan 06 06:50:02 or final Jan 06 06:50:06 as you said Jan 06 06:51:08 oh yeah, or an instance variable Jan 06 06:51:16 but why is that a problem Jan 06 06:51:31 often you need the anonymous class to change an instance variable as a form of communication Jan 06 06:51:35 but then there are chances that you are trying to finish the activity and the instance is not yet released Jan 06 06:51:59 so onDestroy() doesn't gets called even if you call finish() Jan 06 06:53:22 huh Jan 06 06:57:02 durka42: sorry never mind. There is a scenario where i am facing this issue. Jan 06 06:57:30 durka42: I also have doubts regarding the affinity we define. Jan 06 06:58:21 suppose there is an activity B which has an affinity = "abc". I call activity B from activity A with new task Jan 06 06:59:19 so it launches activity B in new stack. Now i again start activity B. Does it create another stack with the same affinity name or creates an activity B in the same existing stack ? Jan 06 07:02:59 ir7466: durka42 : any ideas ? Jan 06 07:05:00 sorry I'm not too sure Jan 06 07:05:08 since i have a doubt if you are not destroying the activity which is created in the NEW TASK then everytime the new stack is created. Jan 06 07:06:54 i'm sorry, I'm not too sure either. I had some issues a while ago with activities being released... as I needed to be able to hit the back button and load a new instance even if it hadn't been released. I just did a bit of a workaround by checking a flag in onResume(), but this might not be what you are after Jan 06 07:09:41 ok Jan 06 07:28:39 fuck yeah … http://www.popsci.com/article/technology/goose-powered-moon-lander-and-other-imaginary-spacecraft-past Jan 06 07:28:49 "A Goose-Powered Moon Lander" Jan 06 07:30:03 oh yahoo, "Thousands of visitors to yahoo.com hit with malware attack, researchers say" Jan 06 07:30:40 "malicious payloads were being delivered to around 300,000 users per hour", epic ! Jan 06 07:46:06 "Thousands of visitors to yahoo.com" :o Jan 06 07:46:24 hey alex_PP , happy new year Jan 06 07:46:28 you too Jan 06 07:57:51 wow, looks like Japan is now #1 in app store revenue Jan 06 08:00:32 Apple? Jan 06 08:00:35 Or andoird? Jan 06 08:01:10 hm Jan 06 08:01:36 Guessing Apple because "App Store" Jan 06 08:01:54 http://www.fiercedeveloper.com/story/app-annie-japan-overtakes-us-app-store-revenue/2013-12-16 Jan 06 08:02:09 yeah apple still ahead in japan, but sounded like the gap was closing Jan 06 08:02:19 The analytics firm's http://blog.appannie.com/japan-spotlight-revenue-inflection-point/ showed Japan nearing $350 million in combined revenue across iOS and Google Play in October. Jan 06 08:02:31 g00s: You develop for iOS? Jan 06 08:02:55 Windows Mobile actually makes the most per download I think I read that a while ago. Jan 06 08:03:04 AndreYonadam i dabble in iOS, i'm porting one app to it atm. i'm not very good at it though Jan 06 08:03:42 WP looks nice; i hope it gains more momentum Jan 06 08:03:59 things are getting boring between android / ios :) Jan 06 08:04:26 g00s: Yeah me too. Its only 19$ a year I think. It used to be 99$. After this library I'm making for android and this next app I'm going to be done with android for a while and play around with iOS Jan 06 08:05:20 i want to do more with BLE and apple HW is much more mature there Jan 06 08:05:43 as an indie, i can't really test on a bunch of devices -- too expensive Jan 06 08:05:54 just want 2 or 3 max Jan 06 08:07:01 Yeah. I have an iOS device and an Android device and I know what you mean. I haven't got into Bluetooth that much yet. I never needed it. Jan 06 08:08:16 AndreYonadam seems WP apps still suck terribly; probably lots of opportunity there :) Jan 06 08:09:40 yup. I heard developing for WP feels a bit more limited. Actually they're getting a decent amount of applications but the quality is really bad. Jan 06 08:10:49 g00s I was looking into porting one of my apps which is in the educational nitch and I wouldn't expect them to have that many apps that are similar to mine but they did. Yet again, the quality wasn't that good. Jan 06 08:14:49 AndreYonadam my buddy just finished a WP app; he does android / wp / ios / jme - he said if the apis exist; its the easiest platform - but still limited in what you can do in the background just like ios Jan 06 08:17:00 g00s: that chart is both for app store and g-play? Jan 06 08:17:18 spu: :D Jan 06 08:19:14 I suppose ios revenue comes mostly from US, while android is more popular in the land of samsung :) Jan 06 08:19:27 That's probably true Jan 06 08:20:03 spu: A HUGE % of my app's installs are from India and other countries in Asia, even though its free. Jan 06 08:20:18 samsung's korean Jan 06 08:20:23 yeah Jan 06 08:20:29 LG is too? Jan 06 08:20:36 yeah Jan 06 08:21:29 sony's the only global Japanese phone manufacturer i can think of off the top of my head Jan 06 08:21:47 iOS still probably tops evertyhing in terms of overall revenue Jan 06 08:21:48 there's some more, but they mostly target the japanese market Jan 06 08:22:03 What's Asus? and Fujistu Jan 06 08:22:04 hello g00s . I wish you a very happy new year :) Jan 06 08:22:24 asus are german (i think) Jan 06 08:22:32 NEC is Japanese not sure if they make phones Jan 06 08:22:36 I know lenovo is Chinese Jan 06 08:22:44 fujitsu are japanese Jan 06 08:22:55 Nvm Asus is Taiwanese Jan 06 08:23:06 really? Jan 06 08:23:09 yeah Jan 06 08:23:10 who knew Jan 06 08:23:20 Fujitsu must be japanese since Fuji is name of the mountain in Japan Jan 06 08:23:23 haha I thought fujitsu were german Jan 06 08:23:31 I was lied to by my cousin Jan 06 08:23:34 Siemens is Jan 06 08:23:37 I know I don't know how I fell for that one Jan 06 08:23:42 sunny_slls happy new year to you too :) Jan 06 08:23:54 Siemens seems to be focusing a lot on medical equpiment Jan 06 08:24:30 i can't help but feel sorry for eriksson & siemens Jan 06 08:24:40 they rather got left behind Jan 06 08:24:59 must be making plenty on carrier hardware though Jan 06 08:25:02 my siemens sl 45 is still working perfectly Jan 06 08:25:14 g00s: i have a doubt regarding the backstack management of android Jan 06 08:25:35 ericksson is owned by sony no? Jan 06 08:25:39 no Jan 06 08:25:41 ) Jan 06 08:25:44 Hmm ... odd, no calendar sync option to sync google calendars in account settings ... Jan 06 08:25:45 g00s: everytime i do FLAG_ACTIVITY_NEW_TASK does it always create a new stack ? Jan 06 08:25:53 sony bought the handset busuness from them Jan 06 08:25:57 ahh Jan 06 08:26:02 that explainst it Jan 06 08:26:03 lol Jan 06 08:26:04 they were partnered in SE Jan 06 08:26:05 *explains Jan 06 08:26:20 Snoy is going down Jan 06 08:26:25 *Sony Jan 06 08:26:32 g00s: also if i set an affinity for an activity Jan 06 08:26:35 gtg Jan 06 08:26:42 in that case what happens ? Jan 06 08:26:46 alex_PP: peace Jan 06 08:27:54 sunny_slls i dont remember :( Jan 06 08:28:10 i think i forgot quite a bit ;) Jan 06 08:28:25 ok Jan 06 08:28:26 no problem Jan 06 08:28:49 g00s: i am getting confused with the backstack logic Jan 06 08:28:52 specially with FLAG_ACTIVITY_NEW_TASK Jan 06 09:18:11 hey can i see how many stacks has been created for my application in sysdump ? Jan 06 09:43:21 Really weird, on an Oppo Find 5 bottom margind don't seem to work Jan 06 09:57:37 does it make sense to specify a librarys version number in the version attribute of the manifest node in AndroidManifest.xml? or is this attribute solely for app-version-numbers? Jan 06 10:03:38 i'm really really struggling to get roboelectric testing to work with gradle, is there a trick to it or something? I'm following this guide here but nothing in my test folder compiles properly Jan 06 10:05:55 I'm just getting like, 'cannot find symbol org.junit/org.roboelectric' in my TestRunner Jan 06 10:07:39 meh, just run the tests on genymotion Jan 06 10:07:44 "Running tests on an Android emulator or device is slow!" Jan 06 10:07:53 not on genymotion Jan 06 10:10:11 i've never even heard of that :/ Jan 06 10:10:22 is it faster than the x86 intel image? Jan 06 10:10:29 yes Jan 06 10:10:57 to be fair it couldn't be any slower than not having any working testing at all Jan 06 10:28:35 g00s, that's a dumb solution :) Jan 06 10:28:48 storkme, that sounds like your robolectic isn't set as dependency for tests Jan 06 10:29:01 at least in Maven those are separate, for Gradle probably too Jan 06 10:29:28 i dont trust harmony to behave like oracle java; no way in hell i would trust roboelectric Jan 06 10:33:41 right. Jan 06 10:33:44 works perfectly fine :) Jan 06 10:33:59 it's testing YOUR code anyway, not Android implementations Jan 06 10:36:24 Hey guys, I have some ListView and every item looks like this: https://gist.github.com/Yatekii/45c45f4c849f8f291575 and I only set the Source of the ImageView if the item in the List has some subLists. Now it happens that it glitches and non-sublist-containing items display the ImageView too ... I debugged it and it does NOT set the source for those items -> it is a glitch in android that it displays it for random items (no Jan 06 10:36:25 t always the same (for the ones it should display it it's always correct)) how can I avoid this? Jan 06 10:37:05 Heya Guys, Jan 06 10:37:06 uh Jan 06 10:37:16 Yatekii, what's a "sublist"? Jan 06 10:37:24 and I doubt it's a glitch in Android Jan 06 10:37:49 anyone had problems with uploading filenames with spaces to NanoHTTPD ? Jan 06 10:39:10 ahm Marvik just like in DIrectories a Directory in another means that the item in the list will pop another listview Jan 06 10:39:20 and YES it IS a glitch Jan 06 10:39:49 Mavrik i don't understand your point; yeah if your code doesn't do anything with the java runtime classes … sure, but is that realistic most of the time ? Jan 06 10:40:05 yep Jan 06 10:40:10 I stepped through the whole list and only 2 have the location where the source is set triggered (Breakpoint) and still, 4 out of 20 display this image even tho it should only be 2 Jan 06 10:40:16 it IS a glitch. Jan 06 10:40:25 i doubt it ;) Jan 06 10:40:35 g00s, *shrug* Jan 06 10:40:39 yeah Jan 06 10:40:49 we have 80+% code coverage and Robolectric coupled with TeamCity works well :) Jan 06 10:41:03 Yatekii, it sounds like you don't really handle reuse of ListView views properly Jan 06 10:41:15 ha? Jan 06 10:41:29 it has the glitch the first time I display a ListView Jan 06 10:41:31 i just got done fixing a bug, where SSLSocket HandshakeCompletedListener is called differently on Harmony and OpenJDK Jan 06 10:41:38 that has NOTHING to do with reusing it :) Jan 06 10:42:59 http://stackoverflow.com/questions/17844957/running-simple-junit-tests-on-android-studio-intellij-when-using-a-gradle-base seems like nobody likes roboelectric and gradle :/ Jan 06 10:43:10 because it sucks :) Jan 06 10:43:38 rock, hard place Jan 06 10:43:42 Android is diverging further and further from android Jan 06 10:43:46 UHH Jan 06 10:43:49 from Java Jan 06 10:44:02 g00s, which is of course something you don't test with unit tests. Jan 06 10:44:38 in a perfect world Jan 06 10:44:56 i have very little code i can isolate completely away from the runtime classes Jan 06 10:45:03 well Jan 06 10:45:06 i mean, if you use a linked list, regex, anything ... Jan 06 10:45:10 Calendar Jan 06 10:45:18 something could be said about structure of said code then ;) Jan 06 10:45:56 Mavrik maybe you guys are just testing getters and setters XD Jan 06 10:46:01 * g00s runs Jan 06 10:46:04 https://gist.github.com/Yatekii/b06ed6378b09c225c699 my Adapterclass btw Jan 06 10:46:42 mhm, we are. Jan 06 10:47:00 its not a unit test if its touches the network of filesystem, many would agree on that Jan 06 10:47:18 storkme, seems like robolectric 2.3 and gradle should be compatible with help of JakeWharton-s plugin Jan 06 10:47:37 hopefully cuz this is no fun at all Jan 06 10:48:54 well, that's the definition of doing anything with Gradle really :/ Jan 06 10:50:29 Is there a way to upload files to NanoHTTPD with spaces in it's name. Jan 06 10:50:45 there probably is. Jan 06 10:50:59 but you haven't said anything about how are you uploading and what exactly is a problem Jan 06 10:51:08 sorry, crystal ball is in my other pants. Jan 06 10:51:23 when I upload a file with name like "ABC DEF.txt" (without quotes) . . .it is uploaded as "AB" (C DEF.txt is removed) Jan 06 10:51:57 and just how exactly do you upload it? Jan 06 10:52:18 using AJAX and FormData Jan 06 10:52:39 vanilla AJAX. . .no jQuery Jan 06 10:52:47 wait what. Jan 06 10:54:21 meh - 6am Jan 06 10:57:10 here's how I did it http://pastebin.com/9ak28xzf Jan 06 10:58:20 manmohan29: encode? Jan 06 11:00:43 @memoryleak : I haven't specified one Jan 06 11:00:52 filenames withour spaces upload just fine Jan 06 11:01:01 manmohan29: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent Jan 06 11:01:58 you have to encode the spaces and other special chars Jan 06 11:03:17 @memoryleak : got it, thanks. Is there a way to take care of that on server side ? Jan 06 11:03:52 Most programming langauges hav a similar function Jan 06 11:04:44 The webserver itself should handle it by itself Jan 06 11:05:53 Ok, thanks for guiding me. Jan 06 11:30:49 @memoryleak : Filenames are properly encoded and file gets uploaded to the server, but now the file names are like "abc%20def.txt" Jan 06 11:31:28 I'm using NanoHTTPD 2.0.5, isn't the server supposed to handle such file names by itself ? Jan 06 11:37:08 manmohan29: Do you have some backend logick behind the HTTP Server? Jan 06 11:41:11 #memoryleak: yes, once the file are uploaded in TEMP location, I move the file to desired location. Jan 06 11:41:28 so then just decode the file name while moving Jan 06 11:43:10 #memoryleak : here's how I do it : http://pastebin.com/NYHRPHGY Jan 06 11:45:13 manmohan29: http://docs.oracle.com/javase/7/docs/api/java/net/URLDecoder.html Jan 06 11:47:56 <_rd> Is the warning "Description Resource Path Location Type No grammar constraints (DTD or XML Schema) referenced in the document." in eclipse expected or do I really miss something? Jan 06 11:51:18 testing is hard. Jan 06 11:52:54 memoryleak: URLDecoder.decode() did the work :) Jan 06 11:53:22 I have one question thouh, Isn't this part meant to be handled by webServer ? Jan 06 11:53:39 No Jan 06 11:55:06 ok, thanks again. Jan 06 11:55:40 manmohan29: http://en.wikipedia.org/wiki/Percent-encoding Jan 06 11:56:16 That stuff is pretty basic in the area of webdev, you might consider reading into it Jan 06 11:58:20 memoryleak: I'll read that for sure. Jan 06 12:01:37 think I'm gonna give up on testing until robelectric 2.3 comes out :/ Jan 06 12:03:08 hi Jan 06 12:03:27 did google killed the MEDIA_MOUNTED permission in 4.4.2? Jan 06 12:03:37 i get a permission exception - it worked in 4.4.0 Jan 06 12:10:24 Why does it take ~1 second to load a 380x380 image? Jan 06 12:14:16 storkme: I'm one of these weird people who really enjoys testing...learn to love it :) Jan 06 12:15:58 i would probably like it if i could make it work Jan 06 12:16:40 Hey guys, every time I try to use 'extract-files.sh' it gives me this error: ./extract-files.sh: 4: ./extract-files.sh: ../msm8660-common/extract-files.sh: not found Also, in my extract-files.sh under the hercules tree, it just refers you to the 'common tree', being the msm8660 folder which I do not have. Jan 06 12:16:59 have you tried plain old junit? Jan 06 12:17:09 What's junit? Jan 06 12:17:22 I have not Jan 06 12:18:37 give that a go :) Jan 06 12:21:01 So why would that msm8660 folder not be there? Is the lack of that folder the reason I can't extract them? Jan 06 12:32:07 Hey guys, every time I try to use 'extract-files.sh' it gives me this error: ./extract-files.sh: 4: ./extract-files.sh: ../msm8660-common/extract-files.sh: not found Also, in my extract-files.sh under the hercules tree, it just refers you to the 'common tree', being the msm8660 folder which I do not have. Jan 06 12:32:23 Could you guys please help me out? I can't figure it out. Jan 06 12:32:42 I've been pulling my hair out all night over just that one little problem. Jan 06 12:43:47 try #android-root Jan 06 12:43:58 look in aosp tree online to see if it's there Jan 06 12:45:44 hi all, i was wondering about the NDK... does it support fopen() or open() and friends? Jan 06 12:52:00 kamintears, depends what "friends" are Jan 06 12:52:01 but yes. Jan 06 12:53:26 I've tried android-root, but nobody is even responding to me. :( Jan 06 12:54:04 I don't think anybody is actually on that one, you know? I haven't seen a peep. Jan 06 12:54:23 well spamming channel made for Android app development won't really help now will it? Jan 06 12:57:33 ok, ty Mavrik Jan 06 13:04:16 kamintears, it supports everything available in bionic Jan 06 13:04:22 and then any libraries as required by cts Jan 06 13:04:26 Daltonyx: have you tried #ubuntu? there's lots of people in there Jan 06 13:08:18 I'll try, thank you storkme. Jan 06 13:15:34 heh Jan 06 13:18:24 hello guys, I have an actionbar with several menuitems in it, there is also a refresh item, is it possible to control it from a fragment Jan 06 13:19:29 yes Jan 06 13:19:41 can you share how ? Jan 06 13:20:26 by reading the api documentation for fragment Jan 06 13:22:51 that's a lot of help Jan 06 13:26:31 Hey guys, So I've made a logo instead of an icon for my ActionBar so I am now using the myActionbar.setDisplayShowTitleEnabled(false); Jan 06 13:26:31 to remove the title from the activity but keep the actionbar. However, whenever I launch the app that title still appears for a second or two before it disappears. How do I fix this? Jan 06 13:27:54 CocoStorm: disable the title entirely in the style Jan 06 13:28:38 funkbox, I've tried true but it gets rid of the actionbar completely. Or is there a different way Jan 06 13:29:13 CocoStorm: look at the accepted answer on this bad boy here http://stackoverflow.com/questions/7655874/how-do-you-remove-the-title-text-from-the-android-actionbar Jan 06 13:31:07 funkbox, thanks, I'll give it a shot Jan 06 13:33:40 anybody experienced with the NDK/JNI stuff ? Whenever I call vm->DetachCurrentTHread(vm); I get the following error E/dalvikvm﹕ ERROR: detaching thread with interp frames Jan 06 13:33:40 I'm using this code https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c Jan 06 13:33:40 here's the detachThread method I'm using https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c#L30 Jan 06 13:33:40 and here's the method that is used to retrieve the JNIEnv and which calls AttachCurrentThread https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c#L321 Jan 06 13:33:40 I'm getting the SIGABRT crash whenever I the detachThread method is being called :((( Jan 06 13:33:41 thanks in advance for any hint whatsoever Jan 06 13:34:08 anyone know of a persisted timer wheel for android? Jan 06 13:35:51 funkbox, it worked thanks. It's strange though that the API doesn't sort this out and you need to create a workaround Jan 06 13:35:59 but yeah, just glad it's working cool! Jan 06 13:38:51 But for a custom actoinbar I would need a custom background image right? Jan 06 13:41:57 hi I have a stupid question, what's the difference between instrument testing and unit testing? Jan 06 13:42:06 (in android specifically) Jan 06 13:42:08 instrument testing is on-device Jan 06 13:42:36 and the concepts are orthogonal Jan 06 13:43:35 For a custom actoinbar I would need a custom background image right? Jan 06 13:43:57 How do I deal witht he sizes Jan 06 13:44:24 Also, I would like a custom shape/imageview to appear overlapping over other widgets, how can I do this? Jan 06 13:44:45 Also, it needs a button within it to disappear Jan 06 13:51:14 Hi all, I know you can find a char inside a String (index of "a" inside "abc"), but is it possible to get the last index like myString = "abca" and lastIndex = 3 Jan 06 13:51:41 lastIndexOf Jan 06 13:51:44 ... Jan 06 13:51:49 read api docs for string Jan 06 13:52:04 tnx Jan 06 13:52:15 pfn, why you no answer :'( Jan 06 13:53:37 your question isn't clear Jan 06 13:57:02 I wish intellij would use res-auto instead of package name for custom attributes Jan 06 13:58:56 pfn, I want to have something similar to a dialog that contains a button but with a custom shape and positioned at a specific part of the app Jan 06 14:08:19 hi, can anyone tell me why this xml is not well formed please? Jan 06 14:08:21 http://pastebin.com/LVjV9HLZ Jan 06 14:08:46 the error is on line 9 Jan 06 14:08:48 you need a view to contain all those views Jan 06 14:09:09 wrap the gridview and the two views together in a linearlayout Jan 06 14:09:27 ok thanks Jan 06 14:09:37 i was following this guide: http://developer.android.com/google/gcm/gs.html to get GCM id and api key Jan 06 14:09:55 but when i'm trying to get api key there's no registered app option under apis and auth Jan 06 14:10:00 anybody knows if this is outdated? Jan 06 14:10:33 Reflow: I think it vanished a couple of weeks ago Jan 06 14:10:36 arcode, because you are using layout_alignParentTop you probably want to wrap it in a RelativeLayout instead of a Linearlayout Jan 06 14:10:50 so how do i get the api key now? under credentials? Leeds Jan 06 14:11:00 thanks again pduin Jan 06 14:11:17 I have no idea - I just moved GCM down my to-do list a bit and hoped it would come back, or the docs would be updated, at some point Jan 06 14:14:40 Reflow: if you happen to learn anything, I'd be happy to know Jan 06 14:15:14 under credentials it ask for a sha1 hash Jan 06 14:15:19 of my developer certificate Jan 06 14:15:23 what would that be Jan 06 14:15:38 Reflow, isn't the new auth done without an API key? Jan 06 14:15:53 I don't know Jan 06 14:15:57 the plugin i'm using required an api key Jan 06 14:35:29 has anyone submitted to both the Play store and the Amazon store? Jan 06 14:35:45 yes Jan 06 14:36:51 misterli are there any code changes involved in making a Play store app available for Kindle through the Amazon app store? Jan 06 14:39:30 well you need to remove Google API dependencies :) Jan 06 14:39:37 ...missing constructor used by tools... is that dangerous or irrelevant? Jan 06 14:40:08 if my View implements OnClickListener shouldnt it be enough to touch the screen to end up in the onClick method? Jan 06 14:40:08 Mavrik so , you just submit a post to https://android.googleapis.com/gcm/send with reg ids? Jan 06 14:40:18 or is that the wrong listener? Jan 06 14:46:56 Reflow: yes Jan 06 14:47:55 err Jan 06 14:47:59 Mavrik: yes Jan 06 14:47:59 can't funkbox Jan 06 14:48:05 i can't IRC Jan 06 14:48:08 funk box it will say unauthorized Jan 06 14:48:19 Reflow: you need the token from the app Jan 06 14:48:32 what is that Jan 06 14:49:19 Reflow: did you read the docs at all? Jan 06 14:49:32 yes i read this Jan 06 14:49:33 http://developer.android.com/google/gcm/gs.html Jan 06 14:49:51 did you read this part? http://developer.android.com/google/gcm/client.html Jan 06 14:50:05 you need to send the registration id back to your server Jan 06 14:50:42 the thing is that i'm not using a native app Jan 06 14:50:47 i'm developing a cordova app Jan 06 14:50:52 and it uses a plugin that takes care of the client Jan 06 14:51:01 then i have no clue Jan 06 14:51:25 theblang; SORRY; was not here, now Jan 06 14:52:12 No, it's not. Keep in mind that if you want to use some amazon features (for example for kind) you may/want to use the amazon librarys Jan 06 14:52:18 the device registered perfect funkbox Jan 06 14:52:42 the problem is when i want to send the post it says unauthorized Jan 06 14:52:50 what could be the problem if it is not noticed when I touch my screen? My View implements onTouchListener. Jan 06 14:53:03 you may want to check the new push of google called ccs Jan 06 14:53:09 Reflow: you're not sending something correctly. check what you're posting Jan 06 14:53:35 (im not sure if its new since i use my own push) but i guess it's more xmpp Jan 06 14:54:12 i followed this: http://developer.android.com/google/gcm/http.html funkbox Jan 06 14:54:31 Reflow: you're probably not sending the authorization or the registratoin id Jan 06 14:55:02 Reflow: read down to "authentication error" Jan 06 14:55:07 yeah Jan 06 14:55:10 but that's what im asking Jan 06 14:55:14 how do i get the key Jan 06 14:55:19 because i'm not sending authorization Jan 06 14:55:34 what i've been asking the whole time is how do i get an API key Jan 06 14:56:02 request one, Jan 06 14:56:07 https://code.google.com/apis/console/?pli=1 Jan 06 14:56:15 Reflow: oh for fscks sake :) Jan 06 14:57:38 when i'm in credential and i hit new key it asks for a sha1 hash Jan 06 15:00:16 I am working with ImageRequests in Volley, and I am successfully getting to the onResponse, but my view is not updating with the new imageview Jan 06 15:01:31 how do i get a ~/.keystore Jan 06 15:01:45 generate one. Android Studio can do it easy Jan 06 15:01:58 yiati. Dont use Volley. It suxx :S Jan 06 15:02:47 what could be the problem if it is not noticed when I touch my screen? My View implements onTouchListener. My View does take another argument than normal and I have a warning: BoardView is missing constructor used by tools. Jan 06 15:04:21 i dont suppose it's possible to animate the ActionBar? Jan 06 15:04:35 specifically, translation animation Jan 06 15:06:21 is there any way to wrap support fragments so they can be used with native fragments? Jan 06 15:07:03 em Jan 06 15:07:11 pfn, the point is to use support fragments always Jan 06 15:07:17 especially since native fragments can be buggy Jan 06 15:07:23 meh Jan 06 15:07:27 annoying Jan 06 15:09:24 can't use support fragments without fragmentactivity, how stupid Jan 06 15:10:46 why dont u just use the fragmentactivity? Jan 06 15:11:13 i'm using the api key i got from cloud.google.com to post to https://android.googleapis.com/gcm/send but it says unauthorized Jan 06 15:11:51 can anybody tell me what the fuck connectedInstrumentTest actually does? because I don't get any console output or anything and my tests *should* be failing. Jan 06 15:12:43 Good morning. Is anybody one here that can help me out with my emulator? Jan 06 15:13:07 can someone help me create a 9 patch for this png file? I'm trying everything to allow the triangle at the bottom to stretch but it's not working.. http://oi44.tinypic.com/28v87du.jpg Jan 06 15:13:24 AlexGraal: what the problem? Jan 06 15:14:38 Well I've just started with android development, and I'm still learning the ropes. To test apps, you run them with the green button at the top, which opens the emulator, correcty? Jan 06 15:14:51 Eclipse IDE? Jan 06 15:15:13 When I do that, the emulator takes forever to open, and the system trys to install the app when it isn't on yet, so I get this error: "Error: Could not access the Package Manager. Is the system running?" Jan 06 15:15:21 Yes, Eclipse Jan 06 15:15:52 try it with the emulator already opened Jan 06 15:15:58 I'm trying both the normal Eclipse IDE and the Android Studio - I'm liking the studio so far Jan 06 15:15:59 All right Jan 06 15:16:06 can anyone help with my 9 patch? Jan 06 15:16:28 and if it still fails, kill adb by typing "adb kill-server" in a terminal Jan 06 15:16:36 and then restart it with "adb start-server" Jan 06 15:17:47 Anyone had problems with OnTouchListener? What could be the problem if it is not noticed when I touch my screen? My View implements onTouchListener. My View does take another argument than normal and I have a warning: BoardView is missing constructor used by tools. Jan 06 15:17:53 halp Jan 06 15:18:01 pleasee Jan 06 15:18:08 CocoStorm: follow this guide http://developer.android.com/tools/help/draw9patch.html Jan 06 15:18:10 Awesome, thanks. Odds are I'll be popping in with small questions in the next couple of hours - hopefully you'll still be here :) Jan 06 15:18:18 danijoo, I have Jan 06 15:18:23 the image you posted does not even reflect any effort by u. Jan 06 15:18:36 AlexGraal: if you don't get it running, I would drop it and use a real device. it'll be a lot faster. Jan 06 15:18:50 u have to draw 1px black lines and save it as 9.png, not jpg Jan 06 15:19:28 danijoo, I did Jan 06 15:20:00 fmj47: It's quicker? I have a Galaxy S3, I may try that then. Thanks Jan 06 15:20:03 so where is the result? I can only tell you where the error is if you show me what u did. i wont do all the work for u :) Jan 06 15:20:14 danijoo, okay let me screen shot it one sec Jan 06 15:20:27 just send the 9.png, not the screenshot Jan 06 15:21:25 danijoo, http://oi42.tinypic.com/9s6mig.jpg Jan 06 15:21:26 oh Jan 06 15:21:29 kk one sec Jan 06 15:21:40 Just wondering, what is better for me to learn on/use - the Android Studio or the standard Eclipse IDE? Jan 06 15:21:47 android studio. Jan 06 15:21:55 AlexGraal: LOT quicker. especially if you are doing graphics. Jan 06 15:22:07 AlexGraal, you learn the language and the framework, you use IDE you like more Jan 06 15:22:28 if you learn like "I need to press green button to start emulator" (which is utterly wrong :P) it's not going to work longterm really :/ Jan 06 15:23:00 AlexGraal: go for android studio. it's definitely much better than eclipse Jan 06 15:23:08 Haha fair enough - but that was me trying to explain what I did step by step to cause the problem. I'm still going to be following a guide to learn Jan 06 15:23:09 especially if you're setting things up with gradle Jan 06 15:23:10 CocoStorm: if you want the triangle to strich together with the box, expand the at the top located line so it also includes the triangle Jan 06 15:23:17 stretch* Jan 06 15:23:19 AlexGraal: if you are starting out go with Android Studio as it seems to be the direction that google is going. Jan 06 15:23:22 I'm having a hard time with the cluttery feeling of Eclipse Jan 06 15:23:37 Is it the Activity or View that should implement OnTouchListener? Jan 06 15:23:48 AlexGraal: it's not only cluttered, it's also slow as fuck Jan 06 15:24:16 that's for sure Jan 06 15:24:17 Hmmm all right - I'll start with the Android Studio. Thanks for the advice. Jan 06 15:24:21 but I use it anyway :) Jan 06 15:24:24 danijoo, I have but it's very blurred https://www.dropbox.com/s/k9l5qbsi751r11m/bubble2.9.png Jan 06 15:24:24 Houte: it doesnt matter. the object that has the listener implemented gets called when u registered it correctly. I would go for the activity though Jan 06 15:25:02 sure it gets blurred if u stretch it to greater dimensions than its resolutions. Jan 06 15:25:29 danijoo, so you suggest I make it bigger in the original file? Jan 06 15:25:35 thats why 0.patchs are usually used to NOT stretch the triangle :p Jan 06 15:25:52 danijoo, also it doesn't stretch sideways Jan 06 15:26:18 CocoStorm: Have you red this? http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Jan 06 15:26:30 no but i read it Jan 06 15:26:32 :P Jan 06 15:26:38 it tells you everything u need to know about 9.patch Jan 06 15:26:43 I jest, I'll try and make the triangle larger Jan 06 15:26:56 :) Jan 06 15:28:08 guys, I have a dilemma Jan 06 15:28:30 anyone here who knows his way around the KeyChain API or the android KeyStore? Jan 06 15:28:35 client says that uploading app on Play Store not feasible as end-users cannot Jan 06 15:28:46 configure Play Store :-( Jan 06 15:29:03 are these end-users in China or something? Jan 06 15:29:07 need to find some other way to give users app update Jan 06 15:29:16 so, what cloud option do I have Jan 06 15:29:30 Leeds: sadly no, in Europe mostly Jan 06 15:29:42 Looney: you can check for updates within your app and push them to the play store page for the app - all they have to do is hit "update" Jan 06 15:29:57 why wouldn't the users in Europe be able to configure play store? Jan 06 15:29:58 I would hate to hard-code checking version Jan 06 15:30:06 Looney, use HockeyApp Jan 06 15:30:13 no freaking idea Mavrik Jan 06 15:30:15 and if your client thinks his users are too dumb for that, maybe you'd better give them some crayons to play with or something Jan 06 15:30:21 hockeyapp Jan 06 15:30:28 Amen to the crayons Leeds Jan 06 15:30:43 lemme check out hockeyapp Mavrik Jan 06 15:31:04 besides crash tracking they give you the ability to distribute new versions Jan 06 15:31:11 and force upgrades if necessary Jan 06 15:31:15 this is nice Jan 06 15:31:18 how do you limit logcat to an app? Jan 06 15:31:22 I am following these instructions https://stackoverflow.com/questions/6854127/filter-logcat-to-get-only-the-messages-from-my-application-in-android Jan 06 15:31:25 and it doesn't filter at all Jan 06 15:31:32 precisely what client must be looking at Jan 06 15:33:22 durka42: http://goo.gl/Rv3FH8 Jan 06 15:33:34 Looney, of course upgrade procedure is less autmated and streamlined than Play Store Jan 06 15:34:10 hmm, forced upgrade you say Jan 06 15:34:19 I see, so you can't actually filter by the whole app Jan 06 15:35:16 no, you filter by tag Jan 06 15:35:21 anyone here who knows his way around the KeyChain API or the android KeyStore? Jan 06 15:35:39 no root or thereof needed by hockeyapp, I preceive Jan 06 15:35:56 Is it the Activity or View that should implement OnTouchListener? Jan 06 15:37:34 can anybody give me a quick primer on why testing is so fucking broken on android Jan 06 15:38:07 testing GUIs is hard? Jan 06 15:38:15 ^ Jan 06 15:38:26 it's broken? I was just making a new year's resolution to put tests in my app... Jan 06 15:38:40 exit Jan 06 15:39:14 i dunno, maybe there's some giant leap i'm missing, but so far every avenue has been a fucking disaster Jan 06 15:40:00 well, I haven't followed through yet, but maybe I'll agree with you soon :) Jan 06 15:43:03 there is no need to install HockeyApp if I am using the API Mavrik Jan 06 15:43:12 or it is also a must Jan 06 15:46:09 is there any way in android studio to find any unlocalised strings in java/xml? Jan 06 15:49:08 CallumTaylor: I dont think so. Jan 06 15:49:15 that sucks Jan 06 15:49:34 CallumTaylor: what kind of strings? Jan 06 15:49:59 any strings that get displayed on the UI, text views, buttons etc Jan 06 15:50:23 i guess i could do a search for setText(" Jan 06 15:50:32 at least it'll catch the majority of them Jan 06 15:51:08 Is there a "Style Code" button or somewhere in Android Studio? Jan 06 15:51:30 not sute Jan 06 15:51:31 sire Jan 06 15:51:34 sure** Jan 06 15:51:38 CallumTaylor: I was looking for specifics like a string w/ a $ in front that you need to find and localize Jan 06 15:53:23 usually, the convention in eclipse is to have any "" commented with a // $NON-NLS Jan 06 15:53:25 or something similar Jan 06 15:53:34 you could probably use a similar convention in intellij Jan 06 15:53:51 well normally i extract the string to strings.xml Jan 06 15:54:01 but every now and then there's that one time you forget Jan 06 15:54:11 CallumTaylor: wait... Jan 06 15:54:42 JakeWharton, you here? Jan 06 15:55:29 When implemting a touch listener on a listview, the listview's selector highlight is negated: is there a way to make them coexist or can I emulate the android default list selector highlight in code? Jan 06 15:56:08 CallumTaylor: you're talking about refactoring out harcoded strings... When you said localize, i thought you meant localizing strings in strings.xml Jan 06 15:56:25 oh no, my bad, yeah extracting hard coded strings Jan 06 15:56:32 lasserix: Doesnt writing your own selector and applying it do the stuff? Jan 06 15:56:38 i usually do them, but every now and then there's the odd string that has been left Jan 06 15:56:38 CallumTaylor: then yes, Android Studio can do that Jan 06 15:56:46 as background i mean Jan 06 15:57:14 CallumTaylor: Analyze > Inspect Cod Jan 06 15:57:29 *Inspect Code Jan 06 15:57:33 fantastic Jan 06 15:57:34 thanks Jan 06 15:59:08 so if a View or Activity just implements onClickListener that is not enough, it also has to be set on something? i dont have buttons or menus, i just have a view and i just want to know when the user click on the screen ( it is a game). then the game should start. Jan 06 16:00:01 Houte: The listener is the object who does something when a click is recorded. You still need to tell the listener to what click it should "listen" Jan 06 16:00:17 All right, quick question here - Why, when I set the width to be zero, I set it as "0dp" - what does the dp part mean Jan 06 16:00:39 so if you want it to listen to the click on a button for example, you have to button.setOnClickListener(myObjectWithImplementedListener) Jan 06 16:01:08 if you want to listen on a click anywhere, you have to setOnClickListener on your mainView Jan 06 16:03:22 danijoo: so how do I do that when I dont have for example a button? i cant just listen to random click on screen? Oh well I should just have a button anyway Jan 06 16:04:56 Houte: you can get the root view with findViewById(android.R.id.content) Jan 06 16:05:12 so maybe findViewById(android.R.id.content).setOnClickListener(yourListener) does the job Jan 06 16:12:34 With Volley does simply adding a Request to the RequestQueue automatically set it up to run in the background or do I need to do something to kick it off Jan 06 16:13:12 Houte: OnClickListener is just an interface... Another component must actually utilize it and call the appropriate method of OnClickListener Jan 06 16:18:53 somebody who uses butter knife? Jan 06 16:22:32 danijoo: ty Jan 06 16:22:41 is there a way to hide the extra space where the Up icon would normally be in the actionbar? Jan 06 16:22:44 you're welcome. does it work? Jan 06 16:32:16 edict from the boss, I have to intercept the back button in this app :( Jan 06 16:32:34 :( Jan 06 16:32:44 time to stab the boss in the foot Jan 06 16:33:53 I think there's almost a case for it - it's a payment app, so once you're done and it's showing the 'receipt' activity, they're worried that stupid users might accidentally exit the app, then get confused on whether or not their payment was successful. Jan 06 16:36:21 as a user I might appreciate a "payment successful!" Notification Jan 06 16:37:24 storkme: pop up a dialog with a dismiss button that waits a few seconds before it becomes active Jan 06 16:38:09 I was thinking about a notification too actually, seems more elegant.. Jan 06 16:55:21 Mornin'! Jan 06 16:55:52 I am adjusting the layoutparams of a child view, a linearlayout, that takes up a framelayout with a relativelayout so that via a touch listener, the linearlayout is displaced by the deltaX of the move action, so a user can swipe left and right to reveal what's under the linearlayout (in the relativelayout). Is calling requestLayout and ajdusting the layoutparams.margin of the linearlayout a bad way to do this? Jan 06 16:59:39 <_genuser_> hello folks. I see network activity be done on a background AsyncTask. so then is it ok to pass it a reference to the fragment which it will update once it's done? Jan 06 17:00:11 <_genuser_> I guess that's the best way I see. but just incase there's a better way, I don't mind learning that. Jan 06 17:01:10 Sure. Why not. Make sure something like that is in AsyncTasks onPostExecute(), though. Jan 06 17:01:34 <_genuser_> yeah, I have it working. Just thought I'd see if there's a preferred way. Jan 06 17:01:51 <_genuser_> for example, I just read the google document recommendting _against_ use of enums. Jan 06 17:02:00 <_genuser_> and against getters and setters. Jan 06 17:02:39 Ah-- case by case, that. Everything depends on everything. If you need something done at the end of some network activity, you're good. Jan 06 17:02:56 <_genuser_> :) Jan 06 17:03:06 <_genuser_> do you have any experience in using Gson? Jan 06 17:03:08 And pardon me, is my IRC client goofy or did you underscore "against" in that relay? Jan 06 17:04:05 anyone programming in c++? Jan 06 17:04:13 _genuser_: it's not against enums, it's to use enums judiciously Jan 06 17:04:28 enums are great and should be used where appropriate Jan 06 17:04:35 <_genuser_> I did. I use old school _ on either side to indicate an underline. but newer clients actually underline it. :) Jan 06 17:05:02 <_genuser_> JakeWharton: yeah, I saw that. the document said if you can use ints, use those because enum will cause a performance penalty. Jan 06 17:05:27 <_genuser_> in my case, it was just 2 values, so 0,1 made more sense. Jan 06 17:05:55 I'm trying to call java functions from c++ but my app just gets force finished with no information Jan 06 17:08:14 the performance penalty is likely moot. they really complain over the fact that enums are a full class with instances for each value. Jan 06 17:08:36 something that's important to keep in mind when you are developing the platform but not so much when you're writing an app Jan 06 17:09:07 <_genuser_> interesting stuff. Jan 06 17:09:38 <_genuser_> were you telling me about Gson? Jan 06 17:09:45 i might have been Jan 06 17:10:41 <_genuser_> can I show you a little json and ask a quick question if you don't mind? http://pastebin.com/QV2j7kQv Jan 06 17:11:15 What does this mean? android.content.res.Resources$NotFoundException: Resource ID #0x7f03001b type #0x1 is not valid Jan 06 17:11:20 you can show and ask the room but i'll take a look Jan 06 17:11:22 Only happens on tablets apparently Jan 06 17:12:21 java.lang.NoClassDefFoundError: .. where are the classes anyway? Jan 06 17:12:42 in classes.dex Jan 06 17:12:59 <_genuser_> :). ok on that pastebin, it shows a json object. my question is: does that mean it's an object called "getdata". properties are: version,runtime,data,personal. Jan 06 17:13:23 <_genuser_> data further has "raw", and "personal" objects, etc. etc. Jan 06 17:13:53 <_genuser_> so if I create this object heirarchy, then it would be easy to do fromJson(string, class); Jan 06 17:13:57 it means it's an object with a getdata field that's an object with version, runtime, etc. Jan 06 17:14:19 <_genuser_> JakeWharton: ok, cool. and each time there's a {} we have another object. Jan 06 17:14:27 right Jan 06 17:14:28 <_genuser_> with [] showing arrays. Jan 06 17:14:41 <_genuser_> cool. I just need to create this object then. Jan 06 17:14:43 yes. Gson will let you use Foo[] or List Jan 06 17:14:53 <_genuser_> oh nice. Jan 06 17:14:57 <_genuser_> thanks for looking. Jan 06 17:15:13 you can also turn an object into a map, if you want Jan 06 17:15:22 <_genuser_> a map you say.... Jan 06 17:15:30 e.g., Map datapool; Jan 06 17:15:59 <_genuser_> I see. Jan 06 17:16:07 datapool.get("protocol") => "ssl" Jan 06 17:16:37 <_genuser_> instead of writing the entire object just to do fromJson() and then reading values. Jan 06 17:17:39 Custom View myview is missing constructor used by tools. // my construcctor takes another argument except for Context. is this a problem? Jan 06 17:17:49 ok I copied the string path from classes.dex but still java.lang.ClassNotFoundException Jan 06 17:18:03 I'm in c++ native activity mind you Jan 06 17:18:13 <_genuser_> oh, I see. I think a little more googling and I'll be ready to parse this. Jan 06 17:18:17 <_genuser_> thanks again. Jan 06 17:18:30 What do I need to import for TextView to work? Jan 06 17:20:15 nothing in ndk documentation talks about calling java from c++ Jan 06 17:20:21 only c++ from java... Jan 06 17:23:01 rtfs I guess... sigh Jan 06 17:23:13 man google sucks Jan 06 17:38:00 does anyone know how to force the actionbar overflow menu button to show up on samsung phones (like S3)? Jan 06 17:45:04 What does this mean? android.content.res.Resources$NotFoundException: Resource ID #0x7f03001b type #0x1 is not valid Happens only on tablets Jan 06 17:49:11 what would you say to someone who is selling Xperia Z for 360 ? ? Jan 06 17:49:49 autrilla: do you have any context? It doesn't happen to be on a ViewPager, does it? Jan 06 17:49:49 I'd say all android devices have massive input lag Jan 06 17:50:17 jpiche, context? It is not on a ViewPager Jan 06 17:50:38 It's on a Fragment's onCreateView Jan 06 17:51:29 autrilla: I just mean, that error without any corresponding code is kinda useless. Have you double checked that all your ids in your layouts exist or are created using @+id Jan 06 17:52:40 It's on this line final View view = inflater.inflate(R.layout.fragment_event, container, false); Jan 06 17:52:57 jpiche, Yes, all ids exist Jan 06 17:53:14 autrilla: check your layout file and make sure you're not referencing anything that doesn't exist Jan 06 17:53:35 alexfu, that would make it happen on every device Jan 06 17:53:38 Not just tablets Jan 06 17:54:28 autrilla: do you have any tablet specific layouts? if so, I'd look over those Jan 06 17:54:41 jpiche, no, I don't Jan 06 17:54:54 <_genuser_> man this json object has tons and tons of sub object. it's a huge mess, lol. Jan 06 17:55:07 <_genuser_> but I'm glad Gson will parse it, instead of a manual parsing. Jan 06 17:55:12 autrilla: what does your layout file look like? pastebin it or w/e. Jan 06 17:57:57 alexfu, http://pastebin.com/zaTXqzhs Jan 06 17:59:39 autrilla: one easy way to get more insight is to open R.java and look for the ID 0x7f03001b Jan 06 17:59:56 hello Jan 06 18:00:26 i have problems with android emulator Jan 06 18:00:30 public static final int fragment_event=0x7f03001b; Jan 06 18:00:39 the device i have created in ADV it' s not starting Jan 06 18:00:57 better to stay that it is started but nothiung appears, with no error message Jan 06 18:01:15 autrilla: and what is that? Jan 06 18:01:24 alexfu, my layout Jan 06 18:01:27 which exists Jan 06 18:01:52 autrilla: you've done a clean/rebuild? Jan 06 18:01:57 Yes Jan 06 18:02:15 Hey guys! I'm trying to receive updates from the SensorManager on a separate thread, and I read that to do so, I need to implement a Handler along with a Looper. Now, the Looper is not entirely clear to me. I've read a couple of pages and I still do not understand what path it takes. The run function of a simple Thread that implements a Looper looks like so: Jan 06 18:02:30 autrilla: and you only have 1 layout folder? Jan 06 18:02:58 http://gyazo.com/9169f20c7e778e530e6d3ccd86e6abb4 Jan 06 18:03:04 public void run(){ Looper.prepare(); Handler handler = new Handler(); int a = 1+2; /* some code */ Looper.loop(); } Jan 06 18:03:54 Alright, so when Looper.loop(); gets called, what path does the code take at that moment? It will go back to the Looper.prepare(); and go back down the code? Going through int a=1+2; and back down to Looper.loop();? Jan 06 18:05:17 no Jan 06 18:05:21 looper.loop just loops Jan 06 18:05:27 through what? Jan 06 18:05:28 wait on new message, loop Jan 06 18:05:32 it's a message queue Jan 06 18:05:36 What message? Jan 06 18:05:37 autrilla: take out the background color in your layout, and rebuild/rerun Jan 06 18:05:44 a message that you send to it Jan 06 18:05:45 I'm trying to receive updates from SensorManager Jan 06 18:05:54 alexfu, I don't have a tablet :( Jan 06 18:06:06 I know because alpha testers have reported it Jan 06 18:06:07 Thus, I need a Handler, thus I need a Looper Jan 06 18:06:19 I don't want to send any messages to the looper, I just want update from SensorManager Jan 06 18:06:22 updates* Jan 06 18:06:29 autrilla: well.. theres always an emulator Jan 06 18:06:29 Also, how do I Looper.quit() a loop? Jan 06 18:07:04 look at the api, quit it Jan 06 18:07:23 If I go : int a =1+2; /*some code*/ Looper.loop(); Looper.quit(); // <-- looper.quit(); doesn't get called, because the code is stuck in the loop Jan 06 18:08:18 Hey guys, I have a custom alert dialog so I've made a layout for it. Putting text in was fine but I tried adding a button but I cannot see it and I've no idea why? https://gist.github.com/anonymous/7d1cc8d4984738cb8cad Jan 06 18:08:30 That is the layout for the dialog Jan 06 18:08:36 So, where is the code of the Loop? Jan 06 18:08:41 I mean, what am I looping? Jan 06 18:08:44 Maybe place looper.quit( ) inside looper.loop() Jan 06 18:08:53 razor-: oooh okay gotcha Jan 06 18:09:08 Now, what about SensorManager? How does that work with a Handler and a Looper? Jan 06 18:09:36 I have to insert the onSensorEvent(){} Jan 06 18:10:05 onSensorChanged() Inside the Handler? Jan 06 18:10:16 anyone? Jan 06 18:11:26 Remove that background Jan 06 18:11:45 remove which backgruond Jan 06 18:11:58 The button Jan 06 18:12:08 Alright so Looper would receive updates from SensorManager and route them to the Handler? Jan 06 18:12:22 How would I display a two dimensional int array? Jan 06 18:12:36 razor-, I've removed it and I still cannot see it Jan 06 18:12:36 if I have matrix[12][12], how would I go about displaying that Jan 06 18:13:28 CocoStorm: cleaned and recompiled? Jan 06 18:14:14 CocoStorm: set the buttons layout_with to match_parent Jan 06 18:15:07 CocoStorm: it looks like you may be pushing it out of view... remove the width restriction and the margins Jan 06 18:15:08 razor-, tried both things Jan 06 18:15:15 alexfu, will try Jan 06 18:15:31 alexfu, the width restrion of the buttno? Jan 06 18:15:39 CocoStorm: of the LinearLayout Jan 06 18:15:55 CocoStorm: you're hardcoding a width. use wrap content instead Jan 06 18:15:58 or match parent Jan 06 18:18:01 alexfu, tried those things and I still can't see the button Jan 06 18:18:10 alexfu, I can screenshot it to shwo you what it looks like Jan 06 18:18:17 And orientation to vertical Jan 06 18:18:37 razor-: orientation wouldnt really matter in this case Jan 06 18:18:47 Then declare another linear layout inside with your settings Jan 06 18:19:39 CocoStorm: run it on an emulator and use the HeiarchyViewer tool Jan 06 18:19:50 CocoStorm: The textview is fill_parent.. It's the same width as the parent Jan 06 18:19:58 The button is off screen Jan 06 18:21:51 Hello, I am using two equally sized overlappying viewgroups. The one on top is supposed to be able to translate to the left or right (from user touch input) to reveal the other one underneath. To do this I am extending a framelayout, displacing the one on top in onLayout by changing the layoutparams leftmargin to the touch displacement, which works fine. Just wondering if this is bad a idea for some reason? Jan 06 18:23:50 Translate the view on 4.0+ Jan 06 18:24:06 which method? Jan 06 18:24:13 setTranslationX Jan 06 18:24:15 okay one sec Jan 06 18:24:56 ahhaha thanks Jan 06 18:25:04 Pre-ics you can use offsetLeftAndRight Jan 06 18:25:21 much faster I presume, yeah this is targeted for 4.0 and up so perfect, thanks again Jan 06 18:25:25 Just remember to do it again in onLayout (not needed when translating) Jan 06 18:25:59 SimonVT, I changed it to wrap_content but I couldn't see it still. I could only see it if I change the text view to display some really small text like 'hi' Jan 06 18:26:16 so now I can see the button but if I write a sentence it disappears again Jan 06 18:26:19 I can paste what I have now Jan 06 18:26:27 Use weight Jan 06 18:26:37 Your text is pushing the button outside of the linearlayout Jan 06 18:26:52 https://gist.github.com/anonymous/9a9802b1941b084e25db Jan 06 18:27:54 translateX calls invalidate for you? Jan 06 18:28:32 lasserix: Shouldn't it? Jan 06 18:28:43 SimonVT, use weight? Jan 06 18:28:52 also thanks alexfu and razor- Jan 06 18:29:08 What problem are you guys running through? Jan 06 18:29:20 CocoStorm: layout_weight = 1 on TextView and leave button as wrap content Jan 06 18:29:20 I did say just place that button outside the linear layout Jan 06 18:29:24 Think I went through the same problem. Jan 06 18:29:52 lasserix: Yes, you shouldn't need to do more than translate it Jan 06 18:30:52 ahh I see it now, cheers guys :) Jan 06 18:31:11 How many activities have you used at most in your applications? Jan 06 18:32:40 Does anyone have experience with creating Android IMEs? I'm getting a NullPointerException from getCurrentInputConnection in 'onBindInput' even tough the documentation claims that in 'onBindInput': you know that getCurrentInputBinding() and getCurrentInputConnection() return valid objects Jan 06 18:37:09 Hey, whats a more efficient way of doing that? Jan 06 18:37:10 http://pastebin.com/X69VgMcE Jan 06 18:37:23 More efficient way to define a string array Jan 06 18:37:24 hi Jan 06 18:37:41 I have a question about ArrayAdapter Jan 06 18:38:13 I have defined two buttons in a layout, and them works fine, but when I want use onItemClick, it doesn't work. Jan 06 18:38:22 the list is not clickable Jan 06 18:38:45 any idea? Jan 06 18:39:29 hello, how is everyone? Jan 06 18:40:28 AlexGraal: uh... i think the difference between doing it in code as opposed to doing it through a string resource may be minimal. Jan 06 18:40:51 SimonVT, My problem now is that there is some space to the right of the textview for some reason.. Like shown here http://oi41.tinypic.com/vmrhpd.jpg . Here is the layout as it is now https://gist.github.com/anonymous/dbb31d86d4869c241a73 Jan 06 18:41:03 lompa, what happens when you click the button? Jan 06 18:41:53 Better yet, I noticed you want to use onItemClick... are these buttons in a ListView? Jan 06 18:42:30 it works Jan 06 18:42:54 yes Jan 06 18:42:59 alexfu, any idea why I have space on the right of the text view? my linear layout is wrap_content Jan 06 18:43:00 in all rows Jan 06 18:43:05 CocoStorm: Probably padding from your 9patch Jan 06 18:43:15 SimonVT, oh Jan 06 18:43:21 really? :S Jan 06 18:43:23 Also, you don't need to use weight anymore since it's no longer horizontal.. Jan 06 18:43:43 Okay, so the buttons work, but you can't use onItemClick on the rows themselves? Jan 06 18:44:00 azindiedev519: I've defined the methods in the arrayadapter. Jan 06 18:44:58 I guess I'm just trying to figure out what you want to happen Jan 06 18:45:00 azindiedev519: the buttons work, but in the activity, I defined the method onItemClick, but the item is not focusable Jan 06 18:45:12 so there's nothing I can do SimonVT :S Jan 06 18:45:33 You can not have padding in your 9patch Jan 06 18:45:47 Okay, so let me step back here for a second, you have 2 buttons, each one works, do you want the item clickable to have a third function? Jan 06 18:45:59 yes Jan 06 18:46:23 okay, do you have your code posted online anywhere? Jan 06 18:46:38 wait Jan 06 18:47:21 SimonVT, I don't think i used padding thoguh Jan 06 18:47:26 i just need to see your onItemClick Jan 06 18:47:28 You do Jan 06 18:47:32 You define a content area Jan 06 18:47:37 Anything not inside that content area is padding Jan 06 18:48:38 alexfu, I have a bunch of buttons - but they are all on the top row. How do I move down to the second row? Jan 06 18:48:41 the content area being inside the linear layout?:S Jan 06 18:49:23 AlexGraal, you want to use set your layout to vertical to move items down your layout Jan 06 18:49:53 CocoStorm: here's a good read: http://9-patch.com/ Jan 06 18:49:57 CocoStorm: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Jan 06 18:50:25 thanks Jan 06 18:50:48 AlexGraal: what are you trying to acheive?? Jan 06 18:50:57 Ah, thanks azindievev Jan 06 18:51:22 I found a website with the info I need - I wanted to have 12 buttons, a row of 6, and another row of 6 directly below that Jan 06 18:51:52 yeah you would use 3 layouts, 2 nested inside of the first. Jan 06 18:52:09 So I have to make another 9 patch? Jan 06 18:52:13 azindiedev519: http://pastebin.com/BU1YJg9G Jan 06 18:52:36 this is the method that I use onTouchEvent, I haven't onClickNow Jan 06 18:52:37 AlexGraal: So basically your layouts would be Vertical with 2 Horizontal layouts inside of it. Jan 06 18:52:41 CocoStorm: or just modify the one you have now... Jan 06 18:53:46 azindiedev519: Ah...now that I don't know how to do yet. Do you have a link that explains it by any chance? Jan 06 18:53:56 azindiedev519: http://pastebin.com/VLdxFrFs and here the layout Jan 06 18:55:03 AlexGraal: let me see if I can find something for you. Jan 06 18:55:17 lompa: I am looking at your code now, gimme a min Jan 06 18:55:32 CocoStorm: here, use this 9patch as reference... http://i.imgur.com/BYJR4Vm.png Jan 06 18:55:45 azindiedev519: ty, take your time :) Jan 06 18:56:47 alexfu, oh, thanks! Jan 06 18:57:44 lompa: okay, I don't see any onItemClick in your code, I only see onClick and onTouch. Where do you want to use onItemClick? Jan 06 18:58:19 AlexGraal: http://developer.android.com/reference/android/widget/LinearLayout.html Jan 06 19:00:06 azindiedev519: let me explain, the thing is, the method onTouch, if I haven't the buttons, and their respective onClick methods, onTouch works fine. But when I add the buttons, it doesn't work. Jan 06 19:00:24 lompa: I actually have to go to lunch, but if you want me to, I can email you my findings when I get a chance. Jan 06 19:01:09 azindiedev519: don't worry, I will be searching more in stackoverflow. ty very much! :D Jan 06 19:01:13 Ah, perfect. Jan 06 19:01:20 Okay, sorry I couldn't be of more help. Jan 06 19:01:25 Though I'm still a bit confused on where I would actually change the orientation in my code Jan 06 19:01:37 But thank you - I'll read through that page one more time Jan 06 19:01:59 put this tag in your in your xml layout Jan 06 19:02:00 Enjoy your lunch :) Jan 06 19:02:19 android:orientation="vertical|horizonal" based on which you need Jan 06 19:02:28 thank you, have a good day Jan 06 19:08:37 Custom View myview is missing constructor used by tools. // my construcctor takes another argument except for Context. is this a problem? Jan 06 19:10:38 If you want to use it in xml it needs to take a context and an attribtueset Jan 06 19:10:43 Other than that, no problem Jan 06 19:13:38 hello Jan 06 19:13:40 Is there a way to create an activity that can float on top of other apps? Jan 06 19:13:51 thats not specific to like samsung or sony Jan 06 19:14:06 I have an app that I need to consume rest service. But data should be stored offline. Jan 06 19:14:10 shinkamui: activities always float on top of other apps Jan 06 19:14:40 So I need a sync thing. Currently I store json Jan 06 19:14:44 evanc, i mean literally, i want a non fullscreen activity that handles communication to float on top of another active activity Jan 06 19:14:46 to file Jan 06 19:15:14 and when android kills the memory it recovers from that. Is there any other way that wont hurt performance ? Jan 06 19:15:28 im working on a PTT app for gaming and realized its not going to be very useful if it can't hang around while the game is being played Jan 06 19:24:23 Is there any way to know in code of a view has the FLAG_CLIP_TO_PADDING flag set Jan 06 19:24:35 As in, if CLIP_TO_PADDING was declared in xml Jan 06 19:24:53 Sorry, my wording is off, but I think my questions clear? Jan 06 19:25:13 You wrote the XML, no? Jan 06 19:25:40 Yes Jan 06 19:26:00 Well? I'm trying to update a PullToRefresh library to take this into account Jan 06 19:26:12 Right now, it gets goofy with the flag on Jan 06 19:27:19 how fast can you send data from a phone in the USA to a phone in Sweden? For example. I mean you have realtime 3d shooters online so mobiles(depends on the connection obv) should be able to handle it right? Jan 06 19:28:31 My brother lives in Sweden and latency between our computers is generally ~100 ms Jan 06 19:29:53 So how can I code my button to be rendered unusable once it has already beed pressed once? Jan 06 19:30:03 AKA, how do I make it so you the button stays "down" Jan 06 19:30:03 evanc: what about calling my activity when a specific key is pressed, like binding the mute hardware button or the like Jan 06 19:30:07 is that possible Jan 06 19:30:08 Setenabked Jan 06 19:30:19 Sorry setEnabled Jan 06 19:30:48 Was that an answer to me? Jan 06 19:30:49 AbelianHorizon: ok and you live in USA i take it? Jan 06 19:30:52 it is quite amazing that it is so fast- Jan 06 19:31:10 Houte: yes Jan 06 19:31:19 Alexgraal: yes Jan 06 19:31:57 Can you give me an example of how to implement setEnabled? Like where to actually put that, and what paramenters to you? Jan 06 19:32:02 parameters* Jan 06 19:32:14 Hi. I'm connected with an Accessory Device which get me a new integer value every 20-30ms. If I try to write this value in an EditText (focusable disabled) in a event Handler but it take an enormous amount of time to be set (also if I'm using a fixed Width of 240dp)... Why setText is so slow ? Jan 06 19:32:15 Houte: he has like 120 down Jan 06 19:33:21 AlexGraal: mybutton.setEnabled(false); Jan 06 19:33:35 Thanks :) Jan 06 19:34:31 AlexGraal: this won't change the drawable of the button, but will make it so you can't press it anymore Jan 06 19:35:52 alexfu, took me a while but I've got it now, thanks a lot! Jan 06 19:39:42 Pratically I've to fill my page with 24 real-time values (I'm using focus disabled EditText instead of TextView because EditText have a bottom border) ... Jan 06 19:40:24 With 24 realtime values the overload of setText is near to 0.8s ... to hight in a dual core running at 1.2Ghz (at Imo) Jan 06 19:40:33 ... or I'm mistaking something... Jan 06 19:41:06 So I'm using Volley and Jake Wharton DiskLruCache, and for some reason my bitmaps keep getting pushed to disk and then they aren't there Jan 06 19:42:33 And the Snapshot always returns null Jan 06 19:42:36 when I call get Jan 06 19:43:12 I have verified that the keys when I call edit() and get() are the same Jan 06 19:45:36 It is not possible to repeat version codes, right? My OCD is bothered by versionCode 5 and versionName=1.4 Jan 06 19:45:49 autrilla: right Jan 06 19:46:24 I guess I'll have to skip a version Jan 06 19:46:32 they don't have to be ordered Jan 06 19:46:49 Autrilla: yeah just skip a version name Jan 06 19:46:50 i do this: versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild Jan 06 19:47:25 Meh, I just do Alpha 1, 1.1, 1.2, 1.3... Jan 06 19:47:27 what method would i be looking at if i wanted to capture a specific key like the mute button and call forward a backgrounded activity, or if that specific key press could be read by a service and then do work or call my activity Jan 06 19:49:28 Shinkamui: http://stackoverflow.com/questions/2986337/is-it-possible-to-create-an-android-service-that-listens-for-hardware-key-presse Jan 06 19:49:37 Sorry for long link Jan 06 19:51:46 AbelianHorizon: thats actually very very helpful Jan 06 19:52:11 so i can trigger on a specific intent that happens Jan 06 19:52:17 at least now i have a place to start Jan 06 19:52:32 if there is a mute intent, and then figuring out the code to do what im looking to do with it Jan 06 19:52:42 Shinkamui: that googlefu Jan 06 19:52:43 definitely a starting point, thanks bro Jan 06 19:52:59 i've been googling left and right, but everything is about keyloggers and people generally refusing to help as a result Jan 06 19:53:21 i simply want to trigger a voice chat app for gaming ala teamspeak, but using the google games services as a backend Jan 06 19:53:25 Anyone know which specific conditions determine a click event if trying to implement a OnClickListener with just a OnTouchListener? Jan 06 19:54:20 didn't think it would be so damn hard, when i see all these other apps and utilities that have touchable floating icons that persist over every app and trigger them Jan 06 19:56:05 shinkamui: Inspect what permissions those apps have in common Jan 06 19:56:16 shinkamui: that should at least give you a hint of a starting point. Jan 06 19:56:18 root Jan 06 19:56:24 but it doesn't Jan 06 19:56:48 i've also contacted 2 of the devs, for some reason they seem to think im tyring to build a competitive app and refuse to offer any info Jan 06 19:56:58 sooooo painful dealing with those types Jan 06 19:57:01 yes - but you can do it without root Jan 06 19:57:03 so see above Jan 06 19:57:23 oh - not overlaid - but hardware Jan 06 19:57:44 SpeedEvil: the hardware button would work, are you referring to AbelianHorizon's link? Jan 06 19:58:18 its so far looks like a really good hint, im trying to figure out how to capture the mute button on the shield Jan 06 19:58:29 if there's a mute intent that i could register Jan 06 19:58:50 No - I'm referring to things like ratpoison - which shows an overlaid 'play/stop' button on other apps Jan 06 19:59:13 yesterday i pushed database on AVD and today when i installed apk on mobile my app does not load information from db. what i was supposed to do with push. look like its issue with the push because same app on AVD runns fine. Jan 06 20:00:42 other application ui SpeedEvil ? Jan 06 20:00:44 I've never seen that before Jan 06 20:00:46 !!! Jan 06 20:00:47 Jaami-win: clear the app data on the avd and see if it runs Jan 06 20:00:52 app runs fine on avd but does not work on mobile where transactions from db are supposed to work. i pushed db on avd. is that the reason? Jan 06 20:01:03 ok, Jan 06 20:01:23 shinkamui: It overlays a retarded (IMO) status box over other apps translucently in the conrer. which can take events Jan 06 20:35:47 Hey guys, I have a custom dialog with it's own layout and a button on it. Whenever I try to set an onclick listener on that button however, I get a null pointer exception. Why is this? Jan 06 20:37:45 button == null Jan 06 20:43:11 kjeldahl, but that can't be Jan 06 20:43:15 one sec let me paste Jan 06 20:44:37 https://gist.github.com/anonymous/9a05ffcb312b190ae6d1 Jan 06 20:45:25 CocoStorm: findViewById is an Activity level function. doesn't apply to dialogs Jan 06 20:45:37 alexfu, Oh really? Jan 06 20:45:40 :S Jan 06 20:45:57 So what can I use instead? Jan 06 20:46:20 CocoStorm: yes. You need to inflate the layout and then call findViewById on the inflated layout. Jan 06 20:46:34 not on the Activity Jan 06 20:46:37 Or, you know, call Dialog#findViewById Jan 06 20:47:19 And you should use dialogfragment Jan 06 20:47:23 didn't realize Dialog had that method.. even easier Jan 06 20:47:38 DialogFragment? Jan 06 20:48:03 Can't you create the listener when you create the button.. You know inline? Jan 06 20:50:00 setcontentview is inflating the layout though isnt it Jan 06 20:51:22 CocoStorm: for your Activity. use findViewById on the dialog, not the activity Jan 06 20:52:06 Use the dialog fragment example, their onClick is inline, http://developer.android.com/guide/topics/ui/dialogs.html Jan 06 20:52:30 AbelianHorizon: he has a custom view w/ a custom button Jan 06 20:52:47 ahh that worked, thanks :) Jan 06 20:53:39 Ah guess I didn't see that anywhere Jan 06 20:55:57 eclipse cant find active avd, terminated adb , restarted both but still eclipse is failed to find runing active avd. what i am supposed to do in this situation? Jan 06 20:56:16 brb Jan 06 20:57:27 is there any suggestion from you guys? Jan 06 20:58:40 Reboot 3 times Jan 06 21:00:02 Omg I think he's actually rebooting 3 times Jan 06 21:00:40 lol Jan 06 21:01:29 I have an animation to translate a view back into its original position after it the view has been displaced by some x by the user. As the animation is an illusion, I use setTranslationX(0) on the view in the AnimationEnded callback, but this produces an artifact (momentarily), anyone know the proper way to do this? (the animation has setFillAfter to false) Jan 06 21:03:14 hello Jan 06 21:03:21 define artifact Jan 06 21:03:31 i have a question Jan 06 21:03:37 i want to use a Trie Jan 06 21:03:53 that contains a dictionary (Meriam Webster) Jan 06 21:03:56 you're not allowed Jan 06 21:03:57 sorry. Jan 06 21:04:00 and then serialize it to a json file Jan 06 21:04:19 artifact um two sequential frames are being drawn at the same time Jan 06 21:05:11 as in it seems as if the bitmap mask of the animation is being drawn with the bitmapmask of the view it represents at the same time, so it glitches Jan 06 21:05:33 interesting Jan 06 21:06:35 AbelianHorizon: lol, best backlog ever Jan 06 21:06:41 Hmm for whatever reason, just using setFillAfter(true) while toggling the visibility at the end of the animation works without the prior artifact of when it was being translated before the animation (sometimes it wouldn't clear the buffer first) Jan 06 21:07:10 Jacky: ikr Jan 06 21:15:14 Hey guys, I need some advice about the google map fragment. I use fragment (navigation drawer) and I would like to replace the current fragment with the mapfragment... but it seems not working, any idea? Jan 06 21:15:24 plz Jan 06 21:16:06 lasserix: Why not just animate the translation back to 0 with ViewPropertyAnimator? Jan 06 21:17:04 view.animate().translationX(0); Jan 06 21:17:23 P-l: How are we suppose to give you any help when you provide us with no code/no possible stacktraces etc. help us help you Jan 06 21:17:41 SimonVT: haven't had the time to read over animator methods, but that makes a lot of sense. Didn't know that's how viewproperty was used, cool! thanks Jan 06 21:18:12 As to the above problem, I had to cancel the animation in the animation ended callback before translating back to 0 Jan 06 21:19:13 cool thanks for the pointer Jan 06 21:19:26 desmin88, I try to replace a mapfragment, with another fragment. And I think it's not possible or I have wrong (means it's possible?) ? Jan 06 21:20:06 so you just restated your original 'question;' Jan 06 21:20:11 'question'* Jan 06 21:21:15 Yeah animation framework is new to me Jan 06 21:23:44 "Google Launches Android Automotive Consortium" i dont want ios / android in my car; its OK with me if my phone plugs into the car and communicates via some protocol though. what are they trying to do :| Jan 06 21:24:02 lol g00s Jan 06 21:24:29 Broadcast recivers are a bit confusing Jan 06 21:24:49 just about every time im in this channel you have some sort of issue with google :P Jan 06 21:25:06 g00s: Yeah I read that on BBC Jan 06 21:25:18 What does TEsla use in their cars Jan 06 21:26:42 dunno; like my car manufacturer is going to provide updates :P Jan 06 21:26:53 good point Jan 06 21:26:56 i've had my truck for 20 years; who knows if android will exist 20 years from now :D Jan 06 21:27:16 or google for that bmatter Jan 06 21:27:21 big 4 cant even update phones regularly Jan 06 21:27:25 why would a car company Jan 06 21:28:47 'oh, you need to install CM to that play services isn't sending real time telemetry to X' Jan 06 21:28:58 lol Jan 06 21:29:51 Is it possible to animate a dialog? Jan 06 21:29:55 *a custom dialog Jan 06 21:30:03 [4.4] [SLIMBEAN] [HONDA] [CIVIC] Jan 06 21:30:09 ^xda soon. Jan 06 21:30:27 im using SQliteopenHelper in app and recently pushed a db file onto AVD that i modified with sqlite3, now app runs fine on AVD but on mobile it does not work when app is supposed to get data from db. i think i am missing some point, i dont know how to fix this problem. is there any idea to fix it? Jan 06 21:31:11 how many times did you restart? Jan 06 21:32:02 it had to be 3 Jan 06 21:32:13 Lol! Jan 06 21:33:03 I'm guessing it's not possible Jan 06 21:33:03 ? Jan 06 21:33:22 does apk includes the db file as well? Jan 06 21:33:30 I think it is cocostorm Jan 06 21:33:36 oh Jan 06 21:33:39 you could make a 'dialog' that is just a view looking like a dialog Jan 06 21:33:42 and animate that Jan 06 21:33:54 Idk though Jan 06 21:34:39 desmin88, so change the dialog to a view? Jan 06 21:34:50 if you want to Jan 06 21:35:07 is there any other way? Jan 06 21:35:23 but yeh i could ty Jan 06 21:36:27 I have a UI with a pixel-perfect layout. I scale this layout, view by view, so it reaches borders on any given device. It is essential that the ImageView look the same on every device, and given the scaling algorithm, it should. It looks proper on Nexus 4, 5, 7, 10, Note II, Note III, but not on RAZR HD. The drawable is being pulled from drawable-nodpi. I'm probably not being descriptive enough, but does anybody know anything about this? Is there so Jan 06 21:44:09 If I want to tell from a class, that the current activity should be finished and another one started, what is the best way? send a message (or maybe use Observer pattern) to the activity and from the start the new one? Jan 06 21:45:03 you could use some sort of listener interface Jan 06 21:45:05 or a bus Jan 06 21:45:13 hey, i got a question for you all. Jan 06 21:45:26 bus? Jan 06 21:45:27 Does anyone here use an IRC chat client for pc or android or both? Jan 06 21:45:35 event bus Jan 06 21:45:43 desmin88, I just don't want the mapfragment in a xml like this : class="com.google.android.gms.maps.MapFragment" Because I would like other fragment at the same place too. Jan 06 21:45:55 (sorry for the delay) Jan 06 21:46:21 then use a framelayout and dynamically fill it in depending on what you want Jan 06 21:46:58 hi Jan 06 21:47:16 Does anyone here use an IRC chat client for pc or android or both? Jan 06 21:47:16 what does instrumentTestCompile mean in Gradle dependencies? Jan 06 21:47:48 azindiedev: that makes no sense Jan 06 21:48:01 you're asking people in an irc channel if they use an irc client Jan 06 21:48:42 man, I can't get my eclipse to work...Every time I create an android project it is created without the main activity, even if I choose to create it through the wizard. This is my first time with android dev and I have no idea what to do. Plus the AVD doesnt work, is slow as hell. I've tried to install the intel accelerator and it says its working but it didnt get any better. What am I supposed to do? Jan 06 21:50:34 dhulke: drop eclipse while you're still new and pick up Android Studio. Jan 06 21:50:38 dhulke thats all completely normal. welcome to the club :) Jan 06 21:50:48 android studio? Jan 06 21:50:59 alexfu: I second that. Jan 06 21:51:02 is it free? Jan 06 21:51:06 dhulke: yes Jan 06 21:51:22 If the dataset I am using will always have a maximum of say two dozen, though the content is dynamic, does anyone know if it would be faster to instead of making use of convertview, inflate a pool of two dozen item views and manage them myself in the getView of the adapter? Jan 06 21:51:24 like I know java, but when i say im new to android i mean it Jan 06 21:51:36 Android. Studio. Jan 06 21:51:51 shit. My experiance with Android Studio isn't that greate. Jan 06 21:51:51 alright, ill take a look at that Jan 06 21:51:54 *great. Jan 06 21:52:11 but like is there a way of using my nexus 7 instead of an emulator? Jan 06 21:52:38 desmin88: how does that make no sense? I am asking if anyone uses an IRC client instead of webchat.freenode.net... Jan 06 21:53:06 dhulke: yes you can use a real device Jan 06 21:53:47 alexfu: so can eclipse or android studio deploy automatically to my device? Jan 06 21:54:21 dhulke: yes Jan 06 21:55:27 oh shit... android studio is from google itself... Jan 06 21:55:39 how did i miss that? Jan 06 21:55:42 oh shieeet Jan 06 21:56:35 http://25.media.tumblr.com/tumblr_m696liNcvK1rqfhi2o1_500.gif Jan 06 21:56:44 desmin88: does that make it easier for you? lol Jan 06 21:56:58 dhulke: well .... it's not all their code.... not even the majority Jan 06 21:57:43 bankai_: im just reading up on that... their using intelliJ's source code Jan 06 21:58:03 okay, fine, does anyone here use mIRC? Jan 06 21:58:21 probably a lot of people do Jan 06 21:58:25 irssi here. Jan 06 21:58:25 DAT gif Jan 06 21:58:26 considering its an irc channel Jan 06 21:58:26 desmin88, http://pastebin.com/iAk6FG51 Jan 06 21:58:27 i think there's a channel for those people Jan 06 21:58:54 I am asking only because freenode requires SASL authentication, and I can't connect in mIRC. Jan 06 21:59:36 I was hoping someone that uses it could tell me what they did to configure their client Jan 06 21:59:49 Quassel IRC here Jan 06 21:59:58 not as fancy as irssi xD Jan 06 22:00:13 dhulke: is Quassel or irssi both PC? Jan 06 22:00:23 well, windows based anyway Jan 06 22:00:41 i don't understand how the word PC now means "windows", makes no sense at all Jan 06 22:00:51 habbit of work, sorry Jan 06 22:01:14 I deal with people who know nothing about computers these days and call everything windows pc, and I have to adapt to their intellect... Jan 06 22:01:46 http://www.irssi.org/files/irssi-win32-0.8.12.exe Jan 06 22:01:47 or you could correct them :) Jan 06 22:02:04 i use the linux client though, cuz i hate windows Jan 06 22:02:20 bankai_: i would get fired for that... its an unfortunate situation. Jan 06 22:02:33 I would, but my laptop is not supported under linux... Jan 06 22:03:13 i personally prefer Debian, but yeah as said before, laptop doesn't have linux drivers for my display adapter. Jan 06 22:03:57 So since I cannot have multilple inheritance I cannot extend Observale so I am unsure how to solve this problem. I need to tell my Activity from another class that it should start another Activity and I want to do this in a clean way. I can use shared variables but I don't like it so much. Not clean. Jan 06 22:04:54 You can use a listener Jan 06 22:04:56 or an event bus Jan 06 22:05:04 those are popular ways to communicate Jan 06 22:06:00 listeners, gotta love em Jan 06 22:06:25 i hate them :( Jan 06 22:06:38 how come? Jan 06 22:06:46 well i dont hate them Jan 06 22:06:47 I think I actually overuse them Jan 06 22:07:10 you can have 5 million listeners per activity or fragment Jan 06 22:07:13 it gets crazy Jan 06 22:07:20 is that all ? :( Jan 06 22:07:24 do you mean greenrobot's event bus? Jan 06 22:08:07 otto is a popular one Jan 06 22:08:27 my main activity has... 8. more listeners than fragments almost lol Jan 06 22:08:43 Do event listeners such as click / touch defined in a view always have to recieve events from the list view if they are apart of it? Jan 06 22:09:11 but each of those has only 1 or 2 callbacks so it's not out of hand. Jan 06 22:16:34 What's the easist way to pipe a touch event from a listview to a row it contains? Jan 06 22:18:23 alexfu: okay, what server do you connect to with irssi? Jan 06 22:19:28 azindiedev in az :) ? Jan 06 22:19:47 g00s: yes. Jan 06 22:22:00 bummer, looks like hydrairc was abandoned. it was great while it lasted Jan 06 22:22:45 could use chatzilla or irccloud Jan 06 22:22:53 g00s: I'm trying to get any kind of client that will connect to this channel at this point lol I am tired of having FireFox open all the time. Jan 06 22:23:20 i use hexchat Jan 06 22:23:34 desmin88: windows, linux, or mac? Jan 06 22:23:54 its on windows and linux Jan 06 22:24:03 I searched for a mac client for ~45 seconds and gave up Jan 06 22:24:06 okay, thanks Jan 06 22:24:24 i'm using textual but it crashes A LOT Jan 06 22:24:39 like, index out of bounds crap Jan 06 22:24:54 weechat and quassel look nice Jan 06 22:25:04 i use a telnet client Jan 06 22:25:08 dont feel like building weehat on mac Jan 06 22:25:15 I miss my ubuntu machine ): Jan 06 22:26:32 azindiedev you could use qicr on android :D Jan 06 22:26:51 lasserix, why would you want to? Jan 06 22:27:03 Is your onclick in your Tag? Jan 06 22:30:52 Is there anyway to tell if an android chip is not working Jan 06 22:30:53 ? Jan 06 22:31:12 what is an "android chip"? Jan 06 22:31:16 lol Jan 06 22:31:47 like potato chips? Jan 06 22:31:48 like a Dorito? Jan 06 22:31:51 lmfao Jan 06 22:32:14 I have a touchlistener inside a custom viewgroup, when I use that viewgroup as a row item in a listview, the touch listener doesn't get triggered. Jan 06 22:33:46 JesusFreke: I ment like the Bluetooth Chip Jan 06 22:33:50 How can you test if its working? Jan 06 22:33:57 Turn it on and see if it remains on? Jan 06 22:34:02 Turn it on and try to connect to something? Jan 06 22:34:04 Or is there a built in device manager Jan 06 22:34:12 Well. I ment like programicly Jan 06 22:34:17 I wanted to test it if it was working Jan 06 22:34:22 Is that possible? Jan 06 22:34:34 AndreYonadam: what would cause it to not be "working"? Jan 06 22:34:54 evanc: I used to fix phones and the GPS and Bluetooth can be damages Jan 06 22:34:56 *damaged Jan 06 22:35:05 on some phones they have their own board Jan 06 22:35:18 I'm just saying Jan 06 22:35:22 I was just playing around Jan 06 22:35:29 and wanted to know if there is any way Jan 06 22:35:34 you can test if it is working or not. Jan 06 22:35:35 hit enter a few more times Jan 06 22:36:27 lasserix, how are you setting up the touch listener? Jan 06 22:36:40 right now it's just in the initialize of the viewgroup defination Jan 06 22:36:40 in the getView of the listviews adapter? Jan 06 22:36:45 uhh Jan 06 22:37:13 that's where I am at now, this was dev'd in sandbox, so it might go away when i integrate it back in due to how i do the getView stuff, just wondering why the inner touch listener is not getting called by default Jan 06 22:37:36 mContext.startActivity( new Intent( mContext, GameActivity.class ) ); Jan 06 22:37:36 mContext.finish(); // <- is that problematic to do from a non-Activity class? Jan 06 22:37:41 (where if I just add it as a single view in the main layout, the touch listener operates fine) Jan 06 22:38:10 yeah, i think you should attach that listener when you create / reuse the view in the adapter and you should be good. Jan 06 22:38:51 ahh i was hoping to keep in in the viewgroup class but ;p Jan 06 22:42:21 Intent.ACTION_OPEN_DOCUMENT is great Jan 06 22:42:46 handles remote content on Google Drive, G+, etc.... very well Jan 06 22:43:26 Intent.ACTION_PAVE_GOLD is not as good as it sounds. Jan 06 22:45:41 previously to get images you had to parse the uri to see if it was local or remote Jan 06 22:47:34 Hello Jan 06 22:48:49 I have about 10+ "tables" that I get from JSON service in order to sync Jan 06 22:50:12 then I keep Lists of objects and join them - in memory . I store json at file too. Jan 06 22:50:35 At IOS developer has Singletons and is fine . But in android world you cant have singleton it is going to die eventually. Jan 06 22:51:13 I could load the data from file again but I am not sure whether using an GreenDAO would be better Jan 06 22:51:25 to persist and other temp data i need Jan 06 22:51:30 you can't have singletons? Jan 06 22:51:35 Singletons are constructs that you can make happen without Android so they aren't going to die Jan 06 22:51:41 I have a Menu/MainActivity and a GameActivity. I can switch from Main to Game but the other way around is harder. What is the best way for a class that is not an Activity to initiate the switch to Main again? Currently I create an Intent in that class and it knows the Context(The GameActivity) but it does not work and I am not sure what goes wrong. Debugger said nothing useful. Jan 06 22:51:53 I was waiting for someone to swoop in and tell Baluse he's wrong Jan 06 22:52:05 he means android will kill your process eventually, disposing of your singleton Jan 06 22:52:09 noone told me I can't have singletons... Jan 06 22:52:09 yiati I can have singleton but it wont stay for ever Jan 06 22:52:17 it won't on iOS, either Jan 06 22:52:23 I love singletons Jan 06 22:52:25 what about when I reboot the phone? Jan 06 22:52:36 manager this, manager that Jan 06 22:52:41 how can i make a dialog have a custom title view that matches the usual title view except that it has an overflow menu on the right too? Jan 06 22:52:47 i mean not when rebooting but when device sleep Jan 06 22:53:03 in ios stays for ever unless you close the app as far as i know Jan 06 22:53:03 Buluse, evanc makes an excellent point, how do you handle this same scenario on iOS after phone reboot? Jan 06 22:53:09 Baluse: you're definitely confused on a couple of points :) Jan 06 22:53:17 He uses core data for this Jan 06 22:53:22 Baluse: init your singletons in the application, they will always be there along with the process. Am I missing something? Jan 06 22:53:43 I have them at application but after some time they arent there Jan 06 22:53:48 correct Jan 06 22:53:57 when the process is shutdown Jan 06 22:54:51 Baluse that's what you store files, and sharedpreferences, and network, etc for. Jan 06 22:54:52 baluse: what are you trying to accomplish? persisting the data you synced from the json service? Jan 06 22:54:56 even if device is at sleep mode. If I leave the smartphone there for some hours when it wakes up it would have killed them Jan 06 22:55:10 nebs yes . I have done this via storing json at file Jan 06 22:55:10 Baluse: correct Jan 06 22:55:26 your process may get shutdown at anytime when it's not in the foreground Jan 06 22:55:28 but I am trying to figure if GreenDao is better. Jan 06 22:55:35 GreenDao is bad ass Jan 06 22:55:46 Because it wont have to keep all objects at memory + it wont have to load all json again Jan 06 22:55:47 other than its inability to set defaults Jan 06 22:55:53 which is a minor annoyance Jan 06 22:56:06 so don't load all json again Jan 06 22:56:08 store it Jan 06 22:57:03 I do store it in file. But when app resumes after being killed takes some time to read the json and create all the objects in memory (~500) Jan 06 22:57:17 I've never seen greendao. wonder how much time this would have saved me. Jan 06 22:57:38 Baluse: so store it in a format that's more efficient than json? Jan 06 22:57:52 baluse, I tend to throw everything into an sqlite db and use the data with cursors instead of repopulating objects to pass around Jan 06 22:58:01 evanc sqlite seems more efficient in order to be able to query etc Jan 06 22:59:09 protobuf is fast if you just need to serialize/deserialize Jan 06 23:00:32 Baluse: if you're storing it in sqlite anyway, why would you need to re-read all of the json objects? Jan 06 23:01:32 Currently I dont Jan 06 23:01:38 use sqlite Jan 06 23:02:26 another problem is if I get notification from web server that I should refresh cache ,how can I block other threads from reading ? Jan 06 23:05:15 probably best to create a thin wrapper around your DB calls Jan 06 23:12:30 what is protobuf? Jan 06 23:13:39 http://code.google.com/p/protobuf/ -- Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats Jan 06 23:14:01 quite efficient for real time data like vehicle tracking Jan 06 23:16:43 cool got it working :) Jan 06 23:21:48 Ahh cool, I can do away with the sqlite tables :) Jan 06 23:22:16 oh that's for ndk? Jan 06 23:23:18 bankai_ i'm excited about CBOR; hopefully it replaces all these little formats like messagepack, etc Jan 06 23:25:53 (spoiler alert: it won't) Jan 06 23:26:13 "we have 10 competing standards, let's write another!" Jan 06 23:26:38 in sqllite . if I begin a transaction and delete all rows from a table and insert new rows. then if another thread/proccess access the database during this transaction , is it possible to get 0 rows ? Jan 06 23:26:58 Baluse: unless you committed the transaction, no, it shouldn't Jan 06 23:27:07 i see thats fine Jan 06 23:27:22 transactions are atomic Jan 06 23:28:01 CBOR is being worked on by ietf, i'm optimistic Jan 06 23:28:18 s/optimistic/naive/ Jan 06 23:28:19 that's what we need, more optimism :) Jan 06 23:28:43 g00s: and it's not the only such standard from IETF (and that's counting active-use ones!) Jan 06 23:28:57 Is there some sort of EventListener interface I can implement where I can just cause the event myself(as opposed to something being clicked), like event()? Jan 06 23:29:25 p_l which other ones is ietf working on? Jan 06 23:29:47 * CocoStorm did a lot today :) Jan 06 23:30:02 g00s: IETF at the very least is involved with XDR Jan 06 23:30:11 http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/100000/90000/8000/800/198828/198828.strip.zoom.gif Jan 06 23:30:14 oops Jan 06 23:31:20 g00s: there's more than one case of involvement with ASN.1, too, with ASN.1 kinda being THE standard in many places, actually Jan 06 23:31:39 all the other bits like messagepack, protobufs etc have various externalities involved as well Jan 06 23:33:08 not really sure what asn.1 has to do with it; you can encode an asn.1 definition in BER Jan 06 23:34:32 g00s: BER is part of ASN.1 (as is DER, PER, XER - yuck! - and there's related standard ECN that pretty much converts to any serialization format) Jan 06 23:34:56 Hey guys, I asked here earlier but did not get an answer I could understand Jan 06 23:35:37 Well, I just read some more about them, but Handler and Looper are not quite clear Jan 06 23:36:04 wilornel: have you looked at the source code for them? Jan 06 23:36:07 Looper.prepare(); Handler handler = new Handler(); Looper.loop();. Now, handler can be assigned work to do through Handler.post() Jan 06 23:36:15 JesusFreke: Ah, this I did not Jan 06 23:36:18 where can I find it? Jan 06 23:36:48 p_l right, but i was tal,ing about *binary* encoding ;) Jan 06 23:37:28 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/Looper.java Jan 06 23:37:45 JesusFreke: Wow, thanks a lot Jan 06 23:37:50 g00s: out of those only XER isn't binary Jan 06 23:38:05 Alright, but before I go through it, just a couple of quick ones Jan 06 23:38:24 Handler can be given tasks to do through Handler.post() Jan 06 23:38:32 JesusFreke: Right? Jan 06 23:38:36 correct Jan 06 23:38:44 How does Looper contribute in that scenario? Jan 06 23:39:01 the messages are actually queued up in the looper Jan 06 23:39:48 JesusFreke: Alright so when one does Handler.post(), he pushes a message to the Looper Jan 06 23:39:53 yep Jan 06 23:40:23 JesusFreke: Oh! then the Looper needs some code to handle the data Jan 06 23:40:55 Although everyone is only talking about Looper.prepare() and Looper.loop(); Jan 06 23:41:05 afk (looong day of fixing hard drives and phone behind me) Jan 06 23:41:12 Final thing. SensorManager will be passing data to the Looper through the Handler Jan 06 23:41:27 p_l are you fixing HN website :) Jan 06 23:41:33 wilornel: e.g. "msg.target.dispatchMessage(msg);" (line 136 in Looper.java) Jan 06 23:42:35 JesusFreke: msg.target is the Handler? Jan 06 23:42:53 not sure offhand Jan 06 23:43:09 ? Jan 06 23:43:15 Well, what does that line mean, then? Jan 06 23:43:27 that's where the message gets handled, in the looper Jan 06 23:43:36 g00s: nope. recovery of a drive stuck in state that precluded SATA login, and managed to crash N4's power control chip... twice Jan 06 23:43:40 "Oh! then the Looper needs some code to handle the data" - that's the code :) Jan 06 23:43:45 JesusFreke: Oh!! Jan 06 23:44:03 p_l sounds like it should go in the garbage Jan 06 23:44:11 So when SensorManager gets passed a Handler to it, it will be sending the data to the Looper, and not the Handler Jan 06 23:44:43 JesusFreke: right? Jan 06 23:44:58 g00s: the drive or the phone? The drive had important data and was fixable, the phone was actually a software issue that I figured out when I crashed it second time Jan 06 23:45:22 more or less :) Jan 06 23:45:35 a handler has very little state itself, it's mostly just a reference to the looper Jan 06 23:45:45 JesusFreke: THERE Jan 06 23:46:15 alright, so how do I manage SensorManager's data if it's through a handler? Do I need a onSensorChange? Because that's how it worked in a class Jan 06 23:50:44 JesusFreke: ? Jan 06 23:53:16 So do you guys have any experiencre switching back and forth between 2 activities? Jan 06 23:55:22 "back and forth" ? sounds like you need fragments more than multiple activities Jan 06 23:57:53 * SpeedEvil whips his hair back and forth. Jan 06 23:58:28 hi, need a bit help about how database goes to mobile device when apk is installed? my avd shows me my database in data folder. when i copy the apk to my mobile , my app cant read rows. why is that so? Jan 06 23:59:11 jaami-win: if you haven't created it, there won't be any data ... Jan 07 00:00:11 bankai_: i created the datbase with sqlite3 and pushed it on avd, and the made apk and installed apk on device and there seems database is missing because app get no data Jan 07 00:00:56 i think i have created the database that way but i am not sure if something is more to look into Jan 07 00:01:01 the APK won't have a pre-populate db ( am i missing something here? ) Jan 07 00:01:09 so here is a question for you. I have an app that tracks the scores of players for a dice game, but I want it to also show the stats of each player. As of right now, I have the players listed in a ListView and they pull data from a PlayerInfo.java file. Jan 07 00:01:34 I want that same data (select parts) to be displayed in another Intent in a new ListView. What is the best way to do this? Jan 07 00:02:04 Or would I be better off using a DB to store information and just call information/update information to the DB? Jan 07 00:02:18 ^ yeah, do that Jan 07 00:02:24 bankai_: i created the db file with sqlite3 and pushed it onto avd and app runs fine on avd but when i make apk of my app and install it on mobile then app is unable to show any data Jan 07 00:02:50 Now, keep in mind, I don't want player names/info to be stored after app is exited, is there an easy way to clear db tables onQuit? Jan 07 00:04:25 i dont understand how avd cant pack my database in apk Jan 07 00:04:49 it's not mean to do that, if you want a populated db on install you have to write the code yourself Jan 07 00:05:25 you mean the insert into statements? Jan 07 00:05:33 that's one way, yes Jan 07 00:05:55 bankai_: did you see my last question? Jan 07 00:06:01 so, i should do file handling? Jan 07 00:06:23 azindiedev: yes, there is a way to do it Jan 07 00:06:50 i am sorry for intruppting azindiedev and really thanks for the help bankai_ Jan 07 00:07:12 jaami-win: i think it was actually me who interrupted you... Jan 07 00:07:27 uh no problem Jan 07 00:07:53 bankai_: well, looks like I get to start learning sqlite lol Jan 07 00:09:54 is the from bleech bankai_ ? Jan 07 00:10:14 that** Jan 07 00:10:49 nice series, i watched all of them Jan 07 00:17:26 bleach was good, but I haven't seen passed 76 Jan 07 00:18:15 now i have watched over 200 of One Piece :) Jan 07 00:18:38 jeez, I want to tackle Naruto from start to finish Jan 07 00:19:23 Any way I can tell the battery's Mah? Jan 07 00:20:14 what do you mean? Jan 07 00:20:38 milliamps/hours? Jan 07 00:20:44 azindiedev: I was wondering if there is anyway I can find the battery's MaH rating? Jan 07 00:20:45 yeah Jan 07 00:20:59 milliamps/hours Jan 07 00:21:01 do you mean like have your program check for the MaH? Jan 07 00:21:16 yes Jan 07 00:21:17 mAh surely Jan 07 00:21:21 ^^ Jan 07 00:21:24 there is your answer Jan 07 00:21:26 lol Jan 07 00:21:28 i'm not even sure what a-Henries are Jan 07 00:21:32 let me look into it Jan 07 00:22:00 there's battery info, use it Jan 07 00:22:10 but one has to imagine that a million of them is way too many Jan 07 00:22:14 pfn: nope. Its not included in the BatteryManager Jan 07 00:22:15 d.android.cm Jan 07 00:22:31 it's in there iirc Jan 07 00:23:02 thanks. I looked into it buy couldn't find any direct answer. The only solution I can think of is to see how much mAh is being used currently and measure it for some amount of time and use the current % to find what it would be when its full but that woud get the current mAh which could be higher/lower than what the battery was origionally Jan 07 00:23:06 http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone Jan 07 00:23:09 (its origional rating) Jan 07 00:23:09 best bet reading that Jan 07 00:23:36 doesn't appear to be possible, but that will give you your options Jan 07 00:23:44 AndreYonadam: seems a dead end here http://stackoverflow.com/questions/8511673/read-maximum-battery-charge-mah-on-android Jan 07 00:23:51 aarcane: thanks Jan 07 00:23:58 Will look into that Jan 07 00:24:11 hmm, voltage, not capacity, oh well Jan 07 00:24:24 jaami-win: Dang. Guess I can't then. Jan 07 00:24:32 It is in Android Setting By the way. Jan 07 00:24:53 voltage can provide an estimate of battery charge with LiIon batteries Jan 07 00:25:15 not a very good one, but most battery/charger circuitry has absolutely no way other than that to estimate remaining capacity. Jan 07 00:25:55 mind you, the lower level stuff tends to actually estimate a percentage remaining, seems odd that you'd be unable to access it Jan 07 00:26:11 maybe check the source for the thing in Settings Jan 07 00:26:27 zinx: Yeah I'm going to do that after I further look into the link azindiedev gave me. Jan 07 00:26:28 there's probably a broadcast for it or something too Jan 07 00:26:36 zinx: Err - no Jan 07 00:26:51 zinx: Todays phones have charge meter chips that count coulombs in and out of the battery Jan 07 00:27:03 Basically even cheap crap chinese tablets do now Jan 07 00:27:07 SpeedEvil: never seen that tbqh Jan 07 00:27:24 Yeah. I know there is a chip in the battery. Is there anyway you can read that data? Jan 07 00:27:33 It's not inside the battery usually Jan 07 00:28:04 the batteries tend to have chips at least Jan 07 00:28:25 if nothing else, to keep track of charge cycles to end them before they explode Jan 07 00:28:29 http://forum.xda-developers.com/showpost.php?p=39342994&postcount=11 Jan 07 00:29:08 ehm Jan 07 00:29:35 that sounds more like current feedback from a current regulator, which unfortunately has nothing to do with the capacity the battery is at. Jan 07 00:29:53 http://wiki.maemo.org/N900_Hardware_Charge_Meter Jan 07 00:29:56 It's not Jan 07 00:29:59 just a measurement that's required for the regulator to work properly Jan 07 00:30:03 It's a sensor which is measuring the sensor. Jan 07 00:30:14 And speaking as an EE - regulators don't work like that. Jan 07 00:30:24 It's a sensor which is measuring the current in and out of the battery - rather. Jan 07 00:31:02 Lets say I have 2 activities, MenuActivity and GameActivity. First MenuActivity runs and when I choose option 0 in the menu GameActivity is started. When the game is won, MenuActivity is started again. But will it then be created again? Will its constructor be caled again or what happnes? Because what happnes for me is that gameActivity is started again immediately. I do the switching of Jan 07 00:31:02 activities like so: Intent myIntent = new Intent( this, GameActivity.class ); startActivity( myIntent ); finish(); Jan 07 00:31:04 The above is something I wrote about the nokia n900 hardware charge meter. Essentially all new devices come with these. (where new is >8 years perhaps for western ones) Jan 07 00:31:43 That seems intresting Jan 07 00:31:49 See also the datasheet link which explains how the chip is designed to work. Jan 07 00:31:53 Houte: why are you starting the activity 'again' ? Jan 07 00:31:57 http://focus.ti.com/docs/prod/folders/print/bq27200.html Jan 07 00:32:12 SpeedEvil: so yeah it's sensing current in/out, but that's not actually accurate Jan 07 00:32:39 SpeedEvil: Do onboard chips like the SD card reader come detect their hardware failures. Jan 07 00:32:39 SpeedEvil: and it eats a small amount of power the way they're doing it (measuring drop across resistor) Jan 07 00:33:08 For example if the bluetooth burned (just hypothetical) can the android device tell that it is no longer working? Jan 07 00:33:21 AndreYonadam: charger circuitry tends to detect such things Jan 07 00:33:22 zinx: The sense resistor is .01 ohms or so The wattage lost at one amp is 10mW in 4000mW. Jan 07 00:33:36 SpeedEvil: uhm, no, it's not 0.01 Ohms Jan 07 00:33:41 AndreYonadam: not typically - they just eitehr work or don't. Jan 07 00:33:46 SpeedEvil: it's at least 3 Ohms, i guarantee you Jan 07 00:33:54 zinx: hahahhahhahahhhahahhhahahhahahhahha Jan 07 00:34:11 zinx: What would the voltage drop across that be at one amp? What is the voltage of the battery? Jan 07 00:34:45 SpeedEvil: I = V/R, the voltage is likely between 3 and 5 volts, probably closer to 3 Jan 07 00:35:12 SpeedEvil: but you have to keep in mind that the load has a much higher resistance Jan 07 00:35:27 zinx: Unfortuantely, you're wrong. Jan 07 00:35:56 SpeedEvil: You work for TI? Jan 07 00:36:05 zinx: I have personally drawn 1.2A from my n900. Admittedly I was recording a video while downloading over 3G, with speakers at full, while playing a video, with the vibrator on. Jan 07 00:36:34 SpeedEvil: ..... and? Jan 07 00:36:42 zinx: If the shunt resistor was three ohms - the remaining voltage after the shunt resistor would have been one volt. Jan 07 00:36:48 And the n900 hard shuts down at 3.45 Jan 07 00:37:04 SpeedEvil: .... i see you do not understand electricity :P Jan 07 00:37:06 anyone here done any random access reads on asset files? Jan 07 00:37:47 zinx: What would you say is incorrect about the above? Jan 07 00:38:19 zinx: Also - the sense resistor in the n900 has been verified as between .02 and .022 ohms. Jan 07 00:38:35 bankai_: well what is the better way? I started another activity and then called finish on the current. how do i switch back and forth after that? Jan 07 00:39:02 SpeedEvil: that's a really small amount Jan 07 00:39:10 yes, it is. Jan 07 00:39:12 SpeedEvil: you could get that much off a wire on the board Jan 07 00:39:17 erh, trace Jan 07 00:39:27 With a four lead meter. Jan 07 00:41:00 If you look at the above linked datasheet - you will find that the absolute worst case offset of voltage measurement across the sense resistor is 15 microvolts. Jan 07 00:41:11 (page 3) Jan 07 00:41:35 See also page 2 - with the nice circuit diagram, showing Rs (the sense resistor) as .02 ohms Jan 07 00:41:41 SpeedEvil: micro is much less than milli even Jan 07 00:41:56 Err? Jan 07 00:42:07 Sugarcubes are smaller than horses. Jan 07 00:42:33 SpeedEvil: assuming a 32 gauge equivilant trace, which is being extremely generous (that's huge), you get 5.38milliohm/cm Jan 07 00:42:54 Right. See above. Jan 07 00:43:30 shrug Jan 07 00:43:32 For further information http://www.youtube.com/watch?v=astISOttCQ0 Jan 07 00:43:46 still not sure i buy cheapshit having it now Jan 07 00:44:17 would have to be pre-integrated with the cheap china charger circuitry, including builtin resistor Jan 07 00:44:30 It's not. Jan 07 00:44:36 Can you read files in sys without root? Jan 07 00:44:36 It's in series with the battery. Jan 07 00:44:42 AndreYonadam: some files. Jan 07 00:44:43 ('cause china ain't going to pay for an accurately calibrated 0.02Ohm resistor) Jan 07 00:45:00 SpeedEvil: Like the ones used in that widget such as the power_supply/batter? Jan 07 00:45:02 zinx: you don't need a properly calibrated one. Such resistors are well, well under $.01 Jan 07 00:45:08 yes you do Jan 07 00:45:09 AndreYonadam: some of them do. Jan 07 00:45:17 it needs to have a pretty low temperature coefficient too Jan 07 00:45:24 SpeedEvil: Thanks I guess I'm going to try out of that works :D. Jan 07 00:45:26 zinx: +-10% will get you a +-10% accurate capacity reading. Jan 07 00:45:34 SpeedEvil: wrong Jan 07 00:45:48 <|0xD34D|> AndreYonadam: some stuff within /sys may be readable, just adb shell and check the perms Jan 07 00:45:48 SpeedEvil: you get a +/-10% accuracy of the DERIVATIVE Jan 07 00:45:54 ... Jan 07 00:45:55 SpeedEvil: that's fuckin huge when you integrate it Jan 07 00:46:05 And what happens when you integrate 1.1? Jan 07 00:46:14 Houte: yes, finsih the current and you'll go back.... what is this "back and forth" ? why are you going to be constantly switching ? Jan 07 00:46:14 to the slope of the function? Jan 07 00:46:21 |0xD34D|: Thanks. That saved me a lot of time instead of actually writing it out and then testing it on the app itself. Jan 07 00:46:30 by the way, do you guys have EE degress? I'm debating between CS and EE. Jan 07 00:46:44 academic CS is useless Jan 07 00:47:15 I'm a senior in HS and wanted to know where to go. I mean my parents want me to go to college so I might as well do something. Jan 07 00:47:28 I know I would probably learn much more from EE Jan 07 00:48:00 .02 ohm 5% resistors are 4 cents in volume - from a western supplier. China will get them way cheaper - or use a kelvin connected bit of track. Jan 07 00:48:13 AndreYonadam: I would suggest ##electronics. Jan 07 00:48:21 SpeedEvil: idk man i've always seen 1% or better used for current sensing Jan 07 00:48:36 http://www.digikey.com/product-detail/en/RU1608FR022CS/1276-6154-2-ND/3966461 - correction - 1% Jan 07 00:50:24 I have an Activity that uses an ArrayAdapter and that uses a ListView, but how do I gte the View of this activity when I have not declared an explicit one? Jan 07 00:50:55 Houte: ARe you trying to see which list item was clicked? Jan 07 00:51:18 Houte: Its based off position. Jan 07 00:51:39 SpeedEvil: considering there is not a mouse made that uses both poles of the two-pole microswitch already on the mouse, which would require nothing more than another trace routed to an unused GPIO, i don't think china's willing to spend 4 cents. Jan 07 00:52:04 SpeedEvil: note that using both would completely prevent the microswitch failure that's so common Jan 07 00:52:30 (latch on when NO is closed, latch off when NC is closed) Jan 07 00:53:06 That is four cents if you buy it from digikey. It is not four cents in volume in china. Jan 07 00:54:08 SpeedEvil: my point was, they aren't even willing to run a trace, which is essentially free. Jan 07 00:55:17 I am talking about what is actually built into hardware, not speculation. Every single recently manufactured device that is not bottom of the barrel has a charge meter. Jan 07 00:55:18 if finish() is called for an Activity will onCreate be called when it is started with an Intent again? Jan 07 00:55:41 SpeedEvil: i gotta take your word for it though as i don't have access to new devices Jan 07 00:55:53 no? Jan 07 00:56:06 onCreate is in the begging of the lifecycle Jan 07 00:56:13 onCreate will be called if you start a activity Jan 07 00:56:15 or the same one again Jan 07 00:56:15 lol Jan 07 00:57:10 * SpeedEvil arghs. Sorry - I shouldn't have started out so combattive. Jan 07 00:57:14 * SpeedEvil blames headache. Jan 07 00:57:39 Would I be asking a stupid question if I asked how to send a command to the cli? Jan 07 00:58:12 <|0xD34D|> adb shell some_command Jan 07 00:58:13 <|0xD34D|> :P Jan 07 00:58:17 Thonneve: yes Jan 07 00:58:25 I mean in the SDK Jan 07 00:58:30 Thonneve: more appropriately, you're probably asking the wrong question Jan 07 00:58:45 Quite possibly Jan 07 00:59:00 I wasn't quite sure how to word it Jan 07 00:59:16 so should you not use finish() when switching activities if you plan to use them again? Jan 07 00:59:39 Anyone here familiar with overriding the DefaultHandler class? Jan 07 00:59:45 Houte: generally you shouldn't finish() them unless the user did something that warranted that Jan 07 01:00:14 For some reach the char[] in the characters method always has \n in it despite me not putting it there in the XML being parsed. Jan 07 01:00:34 some reason* Jan 07 01:01:00 zinx: Do you have an answer to what I was trying to ask? Jan 07 01:01:26 Thonneve: i don't know what you actually want to do, i am unable to read minds :) Jan 07 01:01:47 I want to execute a command from within an app Jan 07 01:01:54 right, but why? Jan 07 01:02:00 what problem are you trying to solve Jan 07 01:02:22 None, going to have a bash at creating a root tweak app Jan 07 01:03:30 meh, i'd recommend against it but there's Runtime.exec() Jan 07 01:03:58 Recomend against creating a root tweak app or using Runetime.exec()? Jan 07 01:04:13 yes. :) Jan 07 01:04:20 ^^^ Jan 07 01:04:28 So both? :P Jan 07 01:05:49 Yes. Jan 07 01:06:34 I can't think of anything else interesting to make, it's the first thing that came to my head tbh Jan 07 01:06:59 If you guys have any safer and more interesting ideas I'd love to hear them Jan 07 01:07:20 make a flashlight app, i'm sure no one has made one of those before Jan 07 01:08:12 Theres like 12319014 of them, I wanna do something semi-unique but I'm struggling with idea Jan 07 01:09:00 make a fleshlight app that uses the gyroscope to know when to turn on the vibrator for utmost pleasure Jan 07 01:09:08 Thonneve: if you have a rooted device, and you have some terminal commands you want ran just go with your idea Jan 07 01:10:51 I might do actually, no tweak app on the play store will modify all of my kernels settings Jan 07 01:11:08 then get it done Jan 07 01:11:18 my phone usually has half charge at the end of the day Jan 07 01:11:27 zinx: cool story Jan 07 01:11:33 selinux really wants to make life difficult for users who want to run root commands Jan 07 01:11:34 assuming i've used it Jan 07 01:11:45 has anyone had issues w/ loadermanager? whenever I resume to my fragment, onLoadComplete gets triggered before onResume... it's a little strange Jan 07 01:11:52 32-32/? D/Zygote? Process 391 terminated by signal (6) Jan 07 01:12:01 anyone got any idea what signal 6 is? Jan 07 01:12:09 bet google does Jan 07 01:12:16 or man 7 signal Jan 07 01:12:33 abort() Jan 07 01:12:45 i.e., it hit a bug and bailed Jan 07 01:13:22 you're probably passing dodgy matrices to opengl Jan 07 01:13:28 Thonneeve: i had a rooted app on market for awhile that made me over $30k USD, so go with it :) Jan 07 01:13:48 or your stide is wrong... or you're reading more vertices than you have Jan 07 01:14:32 wasnt rading vertices but good guess :) Jan 07 01:14:57 I wouldn't want to sell it, too much hastle imo Jan 07 01:15:27 if you hate easy $ i guess :) Jan 07 01:15:27 Allough the extra money would come in handy haha Jan 07 01:15:41 it's available to the whole world basically Jan 07 01:16:36 The only thing I wouldn't like is when google decide to break it and I have to debug the thing to fix it Jan 07 01:16:54 welcome to selinux Jan 07 01:17:24 Thonneve: that's the fun part Jan 07 01:17:41 and selinux can be disabled Jan 07 01:17:46 Not if you couldn't debug your way out of a paper bag Jan 07 01:17:52 use fire! Jan 07 01:18:28 fire() is deprecated D: Jan 07 01:18:39 doh Jan 07 01:19:09 then just use logcat&problem solving skillz Jan 07 01:19:39 usb0 is ON FIRE!!! Jan 07 01:19:41 is a file of 42463 bytes too large to have resident for an extended length of time? Jan 07 01:19:46 or would that be considered minute Jan 07 01:19:53 that is huge! good god, man. Jan 07 01:19:54 Anyone know why my char[] in the characters method of my DefaultHandler subclass always has \n in it? I haven't put it there. Jan 07 01:19:58 Thats what I used to do, but i'd fix one thing, then come across another 20 problems Jan 07 01:20:10 i440r: your questions sometimes lack substance Jan 07 01:20:12 pagma srsly is it too big or normal ? Jan 07 01:20:43 and my string being parsed doesnt contain \n either Jan 07 01:20:47 canvs2321, its a file i need to keep resident for extended periods of time. its not exactly an image file Jan 07 01:20:51 but sort of Jan 07 01:21:03 is it too big to keep in ram for long? Jan 07 01:21:17 why would you need all 42463 bytes? and if it gets gc, why not just read again? Jan 07 01:21:18 or woudl it be normal to have files as big or larger resident? Jan 07 01:21:35 i440r: you need to add subtitles to your queries Jan 07 01:21:38 canvs2321, it WONT get garbage collected Jan 07 01:21:47 if not then what's the problem Jan 07 01:21:50 i just want to know if thats TOO BIG Jan 07 01:21:56 fucking test it! Jan 07 01:22:01 i am fucking testing it Jan 07 01:22:05 lies Jan 07 01:22:06 FUCK OFF Jan 07 01:22:06 hahaha Jan 07 01:22:07 sorry Jan 07 01:22:08 I had to Jan 07 01:22:09 its crapping out Jan 07 01:22:22 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:25 you should only ask questions once you've tested, and failed Jan 07 01:22:29 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:29 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:29 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:29 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:30 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:30 01-07 01:17:52.456 425-425/? A//system/bin/app_process? stack corruption detected: aborted Jan 07 01:22:32 tested Jan 07 01:22:34 wow that helps Jan 07 01:22:34 failed Jan 07 01:22:37 u failed Jan 07 01:22:43 your giving me a ration of fuciking shit Jan 07 01:22:49 after i ask3ed a stratight fucking question Jan 07 01:22:57 If it failed wouldn't that answer your question... Jan 07 01:22:57 eat it while you can cuz the radition won't clear for awhile Jan 07 01:23:23 Guys Jan 07 01:23:23 jerk Jan 07 01:23:25 Calm it Jan 07 01:23:28 SHHH Jan 07 01:23:33 not really cuz stack corruption doesn't mean a 42kB file is a problem Jan 07 01:23:40 Oh Jan 07 01:23:40 This isn't #handbagsatdawn Jan 07 01:24:18 who knows all the voodoo he has going on while everything else is going on Jan 07 01:24:36 he's going down a dark path without a flashlight, while on lsd Jan 07 01:25:22 i440r: how's the ndk development going? Jan 07 01:27:07 I440r: stack corruption detected means you're overwriting memory - i.e., overrunning a buffer or writing to free'd memory or etc Jan 07 01:27:13 I440r: if only you had used java instead. Jan 07 01:28:29 Does dx support arbitrary JVM bytecode or just a subset? Jan 07 01:28:52 zinx ty for giving a straight up answer instead of a holier than thou bullshit ration of shit Jan 07 01:29:48 Seriously. Jan 07 01:29:59 Are you guys not embarrassed? Jan 07 01:30:15 You'd think you were all 14. Jan 07 01:30:18 Not all Jan 07 01:30:21 but the people acting it... Jan 07 01:30:33 Anthaas: you'll get the hang of it Jan 07 01:30:41 I shouldn't have to. Jan 07 01:30:49 then /quit? this is IRC Jan 07 01:30:51 Anthaas: protip: /ignore the trolls and just move on :\ Jan 07 01:31:11 Its not trolls - its people who clearly havent managed to pick up on acceptable social skills whilst being dragged up. Jan 07 01:31:23 canvs2321: for you, don't be suck a confrontational jerk Jan 07 01:31:30 such* Jan 07 01:31:31 So what if it is IRC? Anonymity shouldn't mean you take the opportunity to be a dick. Jan 07 01:31:32 ^ Jan 07 01:31:39 evanc: kick me Jan 07 01:31:50 lol Jan 07 01:32:04 to be fair, he did ask for it. Jan 07 01:32:25 ! Jan 07 01:32:33 you guys backed me up lol Jan 07 01:32:34 <3 Jan 07 01:33:04 touche :P Jan 07 01:33:23 I didn't back anyone up. I just didn't think the way he acted was acceptable. You didnt react as appropriate as you could have either. You don't need to bite just because someone is upsetting you. Jan 07 01:33:26 * zinx ponders valgrind + android for a moment Jan 07 01:33:36 I know that might seem a bit hypocritical.. Jan 07 01:40:07 sqllite seems faster than i originally thought Jan 07 01:40:10 I cant decide if I should make a cup of tea or a pot of coffee. Jan 07 01:40:38 coffee every time. but only if it was roasted no more than one week ago Jan 07 01:40:56 it was roasted 3 days ago Jan 07 01:41:20 by you? Jan 07 01:41:21 maybe 4 Jan 07 01:41:31 no, not by me. Jan 07 01:41:36 I am not that badass. Jan 07 01:41:50 I wish I was that badass. Jan 07 01:41:55 lol its not really that badass, my coffee roaster broke so now im roasting mine in a toaster oven Jan 07 01:42:05 wut Jan 07 01:42:08 just out it inside some small iron skillet, then in a toaster oven at max heat Jan 07 01:42:12 where do you get unroasted beans even? Jan 07 01:42:19 and stir the beans every now and then Jan 07 01:42:24 hang on ill get a link Jan 07 01:42:26 ... do you grow them? Jan 07 01:43:06 I have a vision of a huge indoor hydroponic grow op Jan 07 01:43:09 of coffee Jan 07 01:43:35 www.burmancoffee.com/ Jan 07 01:43:54 nice, merci Jan 07 01:43:57 another place i used to use was ccmcoffee.com but they now require you have a LOGIN account in order to place orders Jan 07 01:44:23 so not only do they not get my email to sell to spammers now, they dont get my custom for their beans either Jan 07 01:44:42 my coffee gets roasted just down the street, Jan 07 01:44:50 its good. Jan 07 01:45:06 most coffee houses dont know their ass from a hole in the ground when it comes to roasting coffee Jan 07 01:45:15 I wonder where they get their beans Jan 07 01:45:16 they all just follow the way starbucks does it Jan 07 01:45:27 starbucks is horrible Jan 07 01:45:34 sarbucks is third crack coffee. liquid charcoal Jan 07 01:45:34 Ive never tasted worse coffee Jan 07 01:45:53 folgers instant is better Jan 07 01:46:11 i would NEVER roast even as far as the second crack, starbucks tries to hit the mythological third crack Jan 07 01:46:28 i dont even know what that means Jan 07 01:46:47 when you roast coffee it does something similar to popcorn but it doesnt puff up as much Jan 07 01:46:53 is one crack good? Jan 07 01:46:54 but it does grow in size when it happens Jan 07 01:46:58 2 cracks? Jan 07 01:47:10 yes. it will do it twice if you cook it long enough Jan 07 01:47:20 anywhere BETWEEN the first and second cracks is a good roast Jan 07 01:47:29 the closer you are the the second crack the darker the roast Jan 07 01:47:29 so why would they go for 3? Jan 07 01:47:34 OH Jan 07 01:47:53 because starbucks buys 2654923658942 tons of beans a year and they want every cup to taste as bad as every other Jan 07 01:48:02 see, I like a lighter roast Jan 07 01:48:02 so they get good beans they get CRAP beans Jan 07 01:48:15 only way to even that up is to utterly destroy both equally Jan 07 01:48:34 thats so wrong. Jan 07 01:48:45 *$ coffee is wrong Jan 07 01:48:57 they have a blonde roast now, that is almost ok if you have no other options Jan 07 01:49:05 no. thats an insult Jan 07 01:49:28 its better than the other coffee there Jan 07 01:49:30 imho Jan 07 01:49:37 "you must be totally stupidly blond to want to drink coffee like this" Jan 07 01:49:44 i cant even stand the SMELL of starbucks Jan 07 01:49:55 I'll go to mcdonalds for coffee beore starbuks Jan 07 01:50:10 look at their roasted beans. as soon as they come out of the roaster they are shiny wet with coffee oil Jan 07 01:50:25 thats a clear indication that the bean has been roasted into charcoal Jan 07 01:50:34 mcd coffee is good Jan 07 01:50:58 its not bad, yah Jan 07 01:51:13 so is dunkin donuts Jan 07 01:51:25 remember like 5 or so years ago, Tullys? Jan 07 01:51:29 tullys used to be really good coffee Jan 07 01:51:35 Im not sure what happene Jan 07 01:51:44 but once you start roasting your own you wont like much else :) Jan 07 01:51:46 got a bag of tullys the other day and... not so good anymore Jan 07 01:52:05 kinda tastes like starbucks now actually Jan 07 01:52:07 roast only enough to cover you for a week. only grind what you are about to use. do not grind it all in advance Jan 07 01:52:18 2 minutes after grinding you have lost 80% of the flavors Jan 07 01:52:20 I m well versed with the burr grinder. Jan 07 01:52:29 unless you brew it all right then and there Jan 07 01:52:41 i have a grindmaster 875 Jan 07 01:52:42 grind then brew. theres no pre grinding Jan 07 01:52:49 i dont care if I wake everyone in the house up Jan 07 01:52:49 the kind of coffee grinder you see in walmart Jan 07 01:53:39 i got one of those burly ones, cylindrical, with the clear lid you push down Jan 07 01:54:05 well Jan 07 01:54:06 not the best Jan 07 01:54:13 I think its time to make some coffee then. Jan 07 01:54:29 http://www.amazon.com/KitchenAid-Line-Series-Coffee-Black/dp/B003AM7KIK/ref=sr_1_10/185-4213387-5490627?s=kitchen&ie=UTF8&qid=1389059656&sr=1-10 Jan 07 01:54:39 i also have one of those. it is damned good Jan 07 01:54:50 needs particle sizes less than 40um or so, so you can load it in to an inkjet printer Jan 07 01:55:16 what does zinx? the coffee grinder? Jan 07 01:55:43 the ground coffee, obviously, what else would you put in an inkjet printer? Jan 07 02:07:55 amazon doesn't even carry my kitchenaid grinder anymore Jan 07 02:08:10 I think it's been decommissioned Jan 07 02:08:41 was it the one i just linked? Jan 07 02:09:22 nope Jan 07 02:10:18 test Jan 07 02:11:28 model # BCG1000B1 Jan 07 02:11:50 ebay has them but I'm not gonna paste the 16 lines of ebay link here Jan 07 02:12:37 oh, here: http://i.ebayimg.com/t/Kitchen-Aid-Coffee-Grinder-with-Instruction-Booklet-gently-used-/00/s/MTYwMFgxMDY2/z/-mQAAOxyLN9SfsMl/$_35.JPG Jan 07 02:15:39 grindmaster 875. just googled. Jan 07 02:16:12 you win so hard. Jan 07 02:28:46 Heyo! Jan 07 02:33:00 wow Jan 07 02:33:13 so I have this listview which doesn't really have re-usable items Jan 07 02:33:27 but it also won't have that many items regardless Jan 07 02:33:41 but the items are quite complex Jan 07 02:34:16 and each listview row has multiple buttons on it. So instead, I was keeping references to the views so that getview could simply return the view if it had already been generated Jan 07 02:34:40 this resulted in HUGE (many seconds) delays in the onClick listeners for the buttons Jan 07 02:34:55 if I don't keep references to the views around, it's fine Jan 07 02:35:27 I guess that was a dumb strategy, as listview would still try to re-use views Jan 07 02:44:09 what's the most popular developing language on android now? Java? c++? Jan 07 02:45:13 Hi! Could somebody help me out? I'm trying to create a button, so that when pressed, it'll called on function addPrime with an int parameter. Jan 07 02:45:29 AKA, when button is pressed, addPrime(2) should be executed Jan 07 02:45:43 (which will add the number 2 to an array list) Jan 07 02:46:03 But for buttons, all I can do is android:onClick="funcname" Jan 07 02:46:08 How do I carry parameters through Jan 07 02:47:10 Anyone> Jan 07 02:47:44 I need a Uri of a file stored in assets/ Jan 07 02:48:29 zhangxaochen: how could it be anything other than java? Jan 07 02:50:50 AlexGraal: where is this other parameter coming from? A textview text? Some other variable? Jan 07 02:51:30 wabz: Just the button - I have 10 buttons, numbered 0-9, and I'm creating an arraylist with the order that you pressed them Jan 07 02:51:57 I don't want to have a function for each button that'll add the number to the list - much eaiser if I have one function with an int Jan 07 02:52:19 nm figured it out Jan 07 02:52:42 So when you push the button labeled 3, it'll do addPrime(3), the body will be just add th enumber to the arraylist Jan 07 02:52:43 AlexGraal: you could use android:tag to associate an object with each button Jan 07 02:53:45 Also, I have this list of buttons, all in a single row - how do I break the row after 5 (Effectively making a row of 5, with another five underneath?) Jan 07 02:53:51 or if it's just the text you could do Integer.valueOf(b.getText()) or something Jan 07 02:55:28 tried file://android_asset/a.ogg Jan 07 02:57:29 AlexGraal: attach the same OnClickListener to all the buttons Jan 07 02:58:15 alexfu: Let me mention that I've basically just started - do you know where I can find a good OnClickListner tutorial Jan 07 02:58:40 http://developer.android.com/reference/android/widget/Button.html Jan 07 02:58:49 it has an example :p Jan 07 02:59:13 AlexGraal: uh, you don't really need a tutorial for that... All views have View#setOnClickListener() and just pass the same one to that function Jan 07 02:59:57 for all buttons **** ENDING LOGGING AT Tue Jan 07 02:59:58 2014