**** BEGIN LOGGING AT Tue Oct 29 02:59:58 2013 Oct 29 03:10:08 hi android-dev, i'm having an issue where my android sdk doesn't seem to want to start my emulator any more. Oct 29 03:11:29 i get (null)/system/build.prop: no such file or directory in the output of emulator when i try to start an avd Oct 29 03:17:26 create avd again Oct 29 03:17:37 seems like you lost the system image somehow Oct 29 03:17:39 StingRay: same thing with new avd. Oct 29 03:17:59 seems like you have no system image for that platform then :) Oct 29 03:18:07 StringRay_: I agree. Oct 29 03:19:25 StingRay_ strang thing is that when i run 'android' and look at the installed packages, sorting by api looks like i have all packages for lev 18 and 17. however sorting by repository shows that 'android system images' is not finding any packages to download. i think i need to refresh something but am not sure what. Oct 29 03:19:52 Oh yeah, I finished that blog post I was writing. Oct 29 03:22:38 Nilium: want a reader ? Oct 29 03:23:07 Like an RSS reader? 'Cause I could use one of those for Android. Oct 29 03:23:17 haha Oct 29 03:23:26 you blog link ? Oct 29 03:23:29 your* Oct 29 03:23:31 Oh, that. Oct 29 03:23:35 http://spifftastic.net Oct 29 03:24:06 Hm, I should check out the current RSS readers on the play store and see if I can do better. Oct 29 03:24:46 I guess i may just try to reinstall the sdk, kinda a large download tho. Oct 29 03:25:44 jcrowgey: no it isn't Oct 29 03:25:52 50gb is a large download Oct 29 03:26:00 200mb … not so much Oct 29 03:26:20 I don't like that tapping the back button in the corner of the play store from an app's page discards search results, but tapping the back button at the bottom of the screen doesn't Oct 29 03:26:30 And I can never remember which does which Oct 29 03:26:50 I dont like any of the UI flow inconsistency or design of android Oct 29 03:26:51 well, it's taking me some time. i suppose i just need to refresh something in my environment but i'm not sure what. so i feel a little dumb about the download when it may do nothing. Oct 29 03:26:55 and I think it's getting worse Oct 29 03:27:11 Possibly. Oct 29 03:27:21 there are duplicate functions etc Oct 29 03:27:29 It's gotten no less convoluted, at any rate. Oct 29 03:27:46 oh and best of all, I had a quite savy farmer friend of mine complain that he cant get to his "my apps" no more in play Oct 29 03:28:29 You have to tap the tab-key-on-its-side button for that, right? Oct 29 03:28:52 the menu key on his s3 does not show my apps no more Oct 29 03:29:00 just settings and help Oct 29 03:29:02 O_o Oct 29 03:29:13 since now it has that slider Oct 29 03:29:33 I must not have that update. Oct 29 03:29:45 neways, getting more messy everyday Oct 29 03:29:56 from a clear simple design standpoint imho Oct 29 03:30:02 I have the version with the tab-key-on-its-side button in the actionbar Oct 29 03:30:02 oh well Oct 29 03:30:30 People like to tell me it's a downloads button, but it's clearly a tab key button. Oct 29 03:30:43 isn't it strange for 'android system images' to show 'no packages found'.? Oct 29 03:31:06 http://www.clickykeyboard.com/2005/keycaps/keys-031.jpg ← For anyone who doesn't know what the symbol on a tab key is. Oct 29 03:31:18 :) Oct 29 03:35:27 Oh, I forgot to mention, the blog post is about 4,900 words. So, yeah. Oct 29 03:37:08 that's not a blog post dude...that's a wikipedia entry Oct 29 03:37:26 space station Oct 29 03:44:29 tnzr: There's a reason I don't write many blog posts- I usually stop myself and then stash them away to edit and submit to journals later. >_> Oct 29 03:44:39 Literary journals, that is. Oct 29 03:50:37 im pretty amazed that almost 50% of devices are jellybean, according to dashboards Oct 29 03:52:10 osxorgate: if there are 40-45 million device activations per month, and around 1 billion total activated devices, then almost half of the total were activated this year Oct 29 03:52:53 screen sizes are a bit odd Oct 29 03:53:11 seems like the average is your lesser phones with smaller screens ? Oct 29 03:53:33 m/hdpi Oct 29 03:54:23 I suppose the xxhdpi sets are kind of exponential though Oct 29 03:54:34 another month or two Oct 29 04:12:56 g00s: this apple maps in mavericks is quite funny Oct 29 04:16:04 i haven't updated yet Oct 29 04:16:28 if all you use is mbp and no multi monitors then I can see it being worth it Oct 29 04:16:32 this nexus 7 case by google is totally lame Oct 29 04:17:06 StingRay_ i'll wait for .1 Oct 29 04:17:12 no rush Oct 29 04:18:13 tbh all I used the mbp for is xbmc, skype, ft Oct 29 04:18:29 so I didn't care all that much, was more curious Oct 29 04:18:35 its the only machine i have, so i use it for everything ;) Oct 29 04:20:06 I pludged on day one 'cause I'm a ma.. a mav... a m.. I CAN'T DO IT. Oct 29 04:20:33 pludged? :) Oct 29 04:21:00 Right, I keep forgetting that's not a thing outside of ars technica.. Oct 29 04:21:25 it's not a thing in 'English' Oct 29 04:21:48 http://www.urbandictionary.com/define.php?term=pludge ← That might help. Oct 29 04:21:50 Ignore #3. Oct 29 04:23:26 okay, so it specifically refers to sloppy ass sex with OSX Oct 29 04:23:46 which would be why I've never come across (as it were) the word before :P Oct 29 04:30:05 adb never seems to survive my mac going to sleep Oct 29 04:30:28 wish i knew how to write a little script that caught the wake up event and did adb kill-server && adb start Oct 29 04:32:57 I wish I had vanilla ice cream with chocolate syrup. Oct 29 04:33:12 For some reason I have plenty of the former but none of the latter. Oct 29 04:33:22 Wonder if I can buy white chocolate syrup.. Oct 29 04:34:08 racist Oct 29 04:34:17 I'M ONLY ASKING QUESTIONS. Oct 29 04:34:41 Glenn Beck joke: ✔︎ Oct 29 04:39:35 once i hear somebody listens to glenn beck, i write them off as crazy and not trustworthy for anything :) Oct 29 04:40:35 This is why I stopped listening to my grandmother. Oct 29 04:41:11 Love her even though she now hates my branch of the family, but her political opinions are just horrifying Oct 29 04:42:01 Nilium did she by any silver from him ? :D Oct 29 04:42:10 No, but she did buy his books. Oct 29 04:42:18 And gave one of them to my dad as a gift Oct 29 04:49:39 trying to compile in android studio and getting error http://pastie.org/8439131 ... ideas? Oct 29 04:55:05 Yay, I acquired ice cream Oct 29 04:56:24 nownot huh Oct 29 04:59:57 is there a source somewhere that keeps track of the market share of 4.1, 4.2 4.3 etc Oct 29 05:00:17 yes Oct 29 05:00:20 searching google yields old-ish news sources Oct 29 05:00:23 android webste Oct 29 05:00:32 forgot specific site though Oct 29 05:00:37 hm, thhttp://developer.android.com/about/dashboards/index.html Oct 29 05:00:54 thanks, that's what I was looking for Oct 29 05:00:54 https://developer.android.com/about/dashboards/index.html Oct 29 05:01:04 hey my link should work better ;) Oct 29 05:01:14 hmm.. 4.3 is 1.5%.. Oct 29 05:01:20 thhtp is faster ! Oct 29 05:01:21 not surpised Oct 29 05:01:26 hyper hyper Oct 29 05:01:33 most devices support die in year or 2 Oct 29 05:01:38 and opeople dont move that fast Oct 29 05:01:55 if I used orginial version for my epic it'd be gingerbread Oct 29 05:05:56 i check into Play every day with my froto phone :) Oct 29 05:06:02 *froyo Oct 29 05:06:07 why? Oct 29 05:06:16 hehe Oct 29 05:08:12 froto phone has some strange google results Oct 29 05:09:14 expecially if you add -froyo lol Oct 29 05:09:54 hm, the anchient shitty Android Junit 3.7 crap doesn't have asserArrayEquals Oct 29 05:09:59 gah Oct 29 05:10:20 ah development device eh Oct 29 05:10:33 *assertArrayEquals Oct 29 05:11:12 I wonder if you can feed in normal TestNG... Oct 29 05:12:37 i dont think so, all the android instrumentation inherits from hunit stuff Oct 29 05:12:41 *junit Oct 29 05:12:55 the TestNG guy works on the android team Oct 29 05:13:24 tried roboelectric ? Oct 29 05:13:39 i think i need assertTrue(Arrays.equals(expected, actual)); Oct 29 05:13:51 no, i won't use that. always test on the device Oct 29 05:13:58 how come ? Oct 29 05:14:03 because i have seen differences Oct 29 05:15:26 as the delta between android java and oracle java increases (version, etc) it makes even less sense to me Oct 29 05:17:06 out of curiosity, i need to see if harmony causes the runtime to bork when converting 2.2250738585072012e-308 Oct 29 05:17:17 a classic Oct 29 05:17:26 PHP hangs on that too Oct 29 05:19:26 wow, harmony did that correctly Oct 29 05:22:23 a few years ago, javac would hang on : double d = 2.2250738585072012e-308; Oct 29 05:22:38 something to do with atypical numbers, iirc Oct 29 05:22:43 and the runtime would hang if you tried something like Double.parseDouble("2.2250738585072012e-308"); Oct 29 05:22:58 yeah, their strod implementation didn't converge on a solution Oct 29 05:24:28 in 2011 oracle fixed it; so my froyo phone predates that and never had the issue; just saying - an example of where behavior is different Oct 29 05:25:50 https://twitter.com/rasmus/status/32365768603602944 Oct 29 05:27:05 hello android people. i'm on 64bit debian wheezy, i can't seem to get around the error 'too many emulator instances are running on this machine". i don't think i actually have any other emulator instances running. how can i find out more about this error? Oct 29 05:27:06 i can't recall any more, and they were probably fixed, but i remember harmony differing in areas of Calendar and regex Oct 29 05:27:36 i remember one awesose difference, where harmony threw different exceptions than the official method Oct 29 05:27:42 *awesome Oct 29 05:27:47 i need to make my screen font bigger Oct 29 05:29:42 has anyone ever encountered this where the emulator won't start up? Oct 29 05:33:38 fixed it, i had to have lo interface up, and for some reason that wasn't the case Oct 29 05:34:11 You didn't have a loopback somehow? O_o Oct 29 05:34:32 well shit, i can't use assertTrue(Arrays.equals() on a double[] because i can't specify epsilon, fuck Oct 29 05:34:40 what a pile of shit Oct 29 05:35:01 fucking junit 3.7 is like, 10 years old ? Oct 29 05:35:05 g00s: well, asserting equals on floating point means you are going to have bad time Oct 29 05:35:14 So write your own with an epsilon? Oct 29 05:35:32 yeah, i guess Oct 29 05:39:16 Nilium i'm reading about some 10.9 issue draining the battery Oct 29 05:39:38 I haven't noticed anything. Oct 29 05:41:37 Overall, the 10.9 transition's been surprisingly smooth for an OS X update. Oct 29 05:42:37 The only downside is that the new iWork lost some features, so I'm miffed about that, but really I wasn't using them since I've replaced a lot of my writing apps Oct 29 05:43:30 did iWork lose features because it was a rewrite ? Oct 29 05:45:18 apparently it's been rebased on the iOS version Oct 29 05:45:39 g00s, cbeust *worked* on the Android team Oct 29 05:45:46 long long ago Oct 29 05:45:55 oh, thought he was still there Oct 29 05:46:11 he subsequently left to go to LinkedIn and then color Oct 29 05:46:17 dunno where he is now Oct 29 05:46:39 pfn did you get a case / sleeve for your n7 ? Oct 29 05:47:18 no Oct 29 05:48:07 Best Buy had lots of options for iPads, Kindles, and Samsung Android Tablets Oct 29 05:48:19 i could only find the official google sleeve Oct 29 05:48:55 they had a few cases instore last time I look - in Osaka Oct 29 05:49:06 since i throw it in my pack i wanted something more rigid to protect, but also closed to keep dust out Oct 29 05:57:10 * p_l ponders how to respond to GitHub finally calling back about a support job -_- Oct 29 05:58:34 p_l: "So you came crawlin' back after all, eh?" Oct 29 05:59:19 lol Oct 29 06:00:16 a support job? that sounds not fun Oct 29 06:00:51 pfn: well, depends. In this case, it would be doing engineering support for clients of their deployable github variant Oct 29 06:01:08 How to convert a Bitmap object to Bitset in Android? Oct 29 06:02:27 p_l: So, "enterprise" clients.. Oct 29 06:02:30 AKA the worst kind. Oct 29 06:02:48 napster: Also, what? Oct 29 06:03:14 Nilium: meh. Could be worse. Like dealing with an enterprise private contractor that sells to government... as a vendor of a product you use Oct 29 06:03:17 Are you doing a mass xor on the pixel data or something? O_o Oct 29 06:03:34 :) Just some experiments. Oct 29 06:03:52 Is it possible to convert a bitmap to bitset at all? Oct 29 06:03:54 Well, with enterprise, you can always say there's something worse. The downside is that it's still in enterprise. Oct 29 06:04:38 Nilium: enterprise can be not so bad, depending on the clients. I worked for few places I wouldn't mind supporting later Oct 29 06:04:59 OTOH, if you make me use something signed off by Lockheed, I'm going to eviscerate you. Slowly Oct 29 06:05:02 napster: It's possible, but you'll have to grab the pixel data for the bitmap without changing its format and then set each bit in the bitset yourself Oct 29 06:05:20 (well, something that isn't a passenger plane) Oct 29 06:05:26 Nilium: alright Oct 29 06:05:29 thanks for the pointer Oct 29 06:05:30 In other words, it's possible by just doing it yourself. Oct 29 06:06:20 Nilium: as for my gripes with contractors... I'm having quite a laugh at how people talk about healthcare.gov. As if it was anyone in government that wrote it :> Oct 29 06:06:56 even NSA works with private companies nowadays Oct 29 06:07:05 I'm just ignoring all of it because there are now politicians trying to talk about code and it causes me physical pain Oct 29 06:07:54 ouch Oct 29 06:08:08 I'd love it if the site just worked, it doesn't, fine, fix it, I don't care if it costs more money, it's not like government contracts aren't already ridiculously expensive already anyway. Oct 29 06:08:15 It's just another drop in the bucket compared to anything military. Oct 29 06:08:16 I know the feel. We had quite a joke about politician "inspecting" a team working on a code once Oct 29 06:08:42 I hope all the coders just stared at him until he died of hatred. Oct 29 06:08:51 Nilium: was too high-ranking Oct 29 06:09:12 Drat. Rank apparently makes you immune to death-by-glare. Oct 29 06:09:16 he bought the farm some time later, in a way that really pissed me personally, and continues to do so for 3 years now Oct 29 06:09:44 Bought a pyramid and had the mummy replaced with himself? Oct 29 06:09:45 how can i make my ListView take the 50% height? i got only one listview inside linearlayout, tried layout_weight="0.5" but no luck… Oct 29 06:09:58 I'm honestly amazed I haven't heard of anyone trying that Oct 29 06:10:17 rabbi1: Is there another view in the LinearLayout? Oct 29 06:10:47 Nilium: crashed in an airplane trip he insisted on, as part of (unofficial) reelection campaign, and his party doesn't like the findings of the investigation into how it went Oct 29 06:10:55 Nilium: nope, just listview Oct 29 06:11:21 rabbi1: Weights don't apply unless there are multiple views. Oct 29 06:11:22 And those views also have weights. Oct 29 06:11:23 Nilium: to make it funnier, outside of our jurisdiction, which brings a lot more issues which many people don't or do not want to understand Oct 29 06:11:26 And there's free space after all the fixed-size views. Oct 29 06:11:53 I'm in the do-not-want category. Oct 29 06:12:00 I'm well past the point of caring. >_> Oct 29 06:12:03 Nilium: http://en.wikipedia.org/wiki/Smolensk_air_crash <--- have a summary if you want. Oct 29 06:12:37 http://pastebin.com/bUWHUFaJ Nilium Oct 29 06:12:41 Nilium: I kinda have a hard time not caring, mess to close to home :| Oct 29 06:13:10 I have tried 0.5 and 1 but those has no effect at all. Oct 29 06:13:29 * Nilium already told you how to fix it. Oct 29 06:14:36 Nilium: so, i have to create another listview? and apply data with odd and even ? Oct 29 06:14:44 .. Oct 29 06:14:51 isn't there a way i can do with a single listview ? Oct 29 06:15:06 Yeah, I'm just going to let you work this one out on your own Oct 29 06:16:57 oops, got disconnected Oct 29 06:30:02 Nilium: my need is different, i am getting the list view item data from database, can't have to separate list views,, if so i need to get odd data and even data seperately.. instead, i need the list view item height will 50% always Oct 29 06:31:02 * Nilium is waiting for rabbi1 to realize something. Oct 29 07:29:34 hmm, I wonder how to make a circular list view Oct 29 07:29:46 that is endless scrolling up and down Oct 29 07:30:27 kinda tempted to just set max int count and start in the middle Oct 29 07:33:37 <^cheeky> circular list view .. Oct 29 07:33:40 <^cheeky> hmmm Oct 29 07:34:45 <^cheeky> ohh Oct 29 07:34:51 <^cheeky> had to google it Oct 29 07:34:52 <^cheeky> niiice Oct 29 07:36:38 hi Oct 29 07:38:27 If i use fileoutputStream to savve a file, how do I get the Uri of that saved file? Oct 29 07:42:14 what do you pass to the fileOutputStream? Oct 29 07:42:20 a bitmap Oct 29 07:42:39 so how does it know where to write the file ? Oct 29 07:42:48 what do you pass to the fileOutputStream wgeb create it? Oct 29 07:43:02 arrgh... when you create it.? Oct 29 07:43:16 procton: is that not what I just asked ? Oct 29 07:43:20 :) Oct 29 07:43:34 it seems like it was misunderstood. :) Oct 29 07:43:38 procton: here's what I'm doing http://pastebin.ws/9intxw Oct 29 07:44:06 erm Oct 29 07:44:13 procton: all yours Oct 29 07:45:24 :/ Oct 29 07:45:36 Jonno_FTW: well you have the path there Oct 29 07:45:45 Uri.parse is a good start Oct 29 07:45:54 but normally I would pass a file object to an stream Oct 29 07:46:02 then it would be just file.getUri Oct 29 07:46:29 is the new activity within the same app? Oct 29 07:46:36 so I don't need to append file:/ to the filepath? Oct 29 07:46:45 yeah it's in the same app Oct 29 07:46:58 I want to pass a bitmap between activities Oct 29 07:47:09 and putExtra didn't work Oct 29 07:47:46 why not just pass the location as a string ? Oct 29 07:48:10 just open int as a fileInputStream then, I suppose. The "private path" won't change wihin the app. Oct 29 07:48:21 int->it Oct 29 07:48:33 beacuse DecodeActivity uses the Uri, it might not come from the 1 activity Oct 29 07:48:49 sorry.... use openFileInput(), I mean. Oct 29 07:49:17 You could not pass it with put/get extra? I know I have passed a bitmap this way before why could you not get it to work? Oct 29 07:49:38 I got a null pointer exception Oct 29 07:49:45 I'll check Oct 29 07:50:55 You do not need "new URI", even. Just pass the filename as a string. Oct 29 07:51:04 my app is a steganography one, you can hide your message in the LSB of the pixel data of an image, and decode such images Oct 29 07:54:51 Hi, new to the android development scene but with an app idea. Would anyone be willing to assist me? Oct 29 07:56:02 DVnity: start with the android tutorials Oct 29 07:57:08 is Android Studio free software? Oct 29 07:57:14 Jonno_FTW: I guess I will. Oct 29 07:57:18 the idea is not that complicated Oct 29 07:57:53 Yes Android Studio is free Oct 29 07:59:35 free as in free speech or free beer? Oct 29 08:02:39 both, Android Studio is under the Apache License Oct 29 08:02:43 so it's free software Oct 29 08:02:57 really? i can't find ot on tools.android.com Oct 29 08:03:19 http://en.wikipedia.org/wiki/Android_Studio Oct 29 08:05:52 http://developer.android.com/sdk/installing/studio.html Oct 29 08:07:23 there's nothing about the license there Oct 29 08:09:47 how about clicking the big blue download button Oct 29 08:09:54 and reading the terms Oct 29 08:14:52 +I already thought you knew it was apache 2.0 given you mentioned as much earlier (it was built on intellij which was Apache 2.0 thus by the content of that liscence also had to use apache 2.0) Oct 29 08:24:51 How do I add the jar for google cloud messaging to my app? Oct 29 08:24:54 By putting a jar in libs? Oct 29 08:25:18 Yes. Pretty much. Unless it's an Android library project. Oct 29 08:27:35 It has been moved to google play services, I can read, when using the sdk manager Oct 29 08:27:50 So I will use an alternative method of getting gcm.jar? Oct 29 08:29:44 Seems like I need to prompt the user to install an apk that enables gcm, now how do I use the class in my project anyway? Oct 29 08:29:50 Are there stubs that I can use? Oct 29 08:30:16 That will make it transaparent for my app if gcm.jar is only forwarding to another app Oct 29 08:32:23 hi all Oct 29 08:36:14 I am to web scrap. the same code that works on my PC is throwing null pointer exception on android device, any similar experience? Oct 29 08:37:27 this is my code : http://pastebin.com/cTqbNCzx Oct 29 08:40:21 did you just copy and paste ? Oct 29 08:40:26 do you know what is null ? Oct 29 08:40:34 have you read the stackTrace ? Oct 29 08:43:47 I have a list view with two textview, each textview with is 100%, i need to hide the 2ndtext and show on swipe. What is the better way to do? another activity or use some other layout ? Oct 29 08:44:00 shadej: permission issue? Oct 29 08:44:36 rabbi1: fragments, perhaps? Oct 29 08:44:52 procton: no I have a permission Oct 29 08:45:15 shadej: As StingRay_ said. What is the stacktrace? Oct 29 08:46:19 procton: thanks, that's tabs ? Oct 29 08:46:53 rabbi1: could be. It is sort of sub-activities. Oct 29 08:47:12 procton: got it, thanks a lot …. have a nice day guys Oct 29 08:47:17 rabbi1: wait Oct 29 08:47:33 StingRay_: yeap Oct 29 08:47:40 you want a single item of a listView to be able to swipe and show "other" content ? Oct 29 08:47:58 in the same listView item Oct 29 08:48:00 ? Oct 29 08:48:22 StingRay_: but i tested the code on my PC and it does not have any error. Oct 29 08:48:45 shadej: your pc is not a phone, and probably doesn't have security restrictions android does Oct 29 08:48:55 shadej: so, about that stack trace? Oct 29 08:49:00 shadej: but learn to not copy paste, and learn to read stackTrace Oct 29 08:49:10 it will tell you whats wrong! Oct 29 08:49:13 StingRay_: nope, its more like a tableview….. Oct 29 08:49:42 rabbi1: whats this "100%" figure / Oct 29 08:49:43 ? Oct 29 08:49:50 StingRay_: it is not copy paste Oct 29 08:49:51 i need all item, swipe and show all item in other content Oct 29 08:49:59 ah ok Oct 29 08:50:08 well I would and do use a pagerAdapter Oct 29 08:50:29 StingRay_: i don want to show the other content until user swipes it. so Oct 29 08:50:35 indeed Oct 29 08:51:13 Can you change the IMEI number of an Android device? Oct 29 08:51:17 shadej: have you checked the link in the channel topic? http://imgur.com/jacoj Oct 29 08:51:40 StingRay_: that would be ListFragment ? Oct 29 08:51:55 or ViewPager ? Oct 29 08:52:31 yes Oct 29 08:53:08 StingRay_: yes for whom ? Oct 29 08:53:15 rabbi1: Oct 29 08:53:18 there is no or Oct 29 08:53:36 pagerAdapter powering a viewPager Oct 29 08:53:47 o ok ,,, Oct 29 08:53:49 or xAdapter powering a viewPager Oct 29 08:54:01 same as listView is powered by adapter Oct 29 08:58:59 is there any way for a view to recalculate its bounds after it is finished with an animation, it is set to fill parent, but after rotation it. It has the screen width as height Oct 29 08:59:58 StingRay_: http://developer.android.com/training/animation/screen-slide.html is this what i am looking for ? Oct 29 09:04:44 I am rotating an imageview 90 degrees btw Oct 29 09:06:12 rabbi1: well, only you know that Oct 29 09:06:30 but from what you described… imho yes Oct 29 09:06:47 StingRay_: Thanks ! Oct 29 09:14:36 <^cheeky> using Parcable instead of Serializable is waaaay faster on screen rotations !!! Oct 29 09:16:25 <^cheeky> surprises along the way!! Oct 29 09:16:48 <^cheeky> can anyone please point me out to why when i swipe back in state manager i get the wrong item :/ Oct 29 09:17:36 <^cheeky> is there something i am missing ? Oct 29 09:31:27 If i rotate a view by animation 90 degrees, is then LayoutParams height, now the width? Oct 29 09:31:49 no Oct 29 09:31:53 or rather Oct 29 09:31:58 maybe :) Oct 29 09:32:12 I think it depends on how you do it and platform version Oct 29 09:35:13 view.startAnimation(rotateAnim); Oct 29 09:35:20 any other way of doing it? Oct 29 09:35:35 yeah Oct 29 09:35:36 where rotateAnim isa RotateAnimation Oct 29 09:35:42 a few ways Oct 29 09:35:45 like i said Oct 29 09:36:08 that way the layout params dont change, and even the view is defined as being in the same place Oct 29 09:36:10 I think Oct 29 09:36:13 try it Oct 29 09:37:39 i tried creating a new LayoutParams with height and width swapped, but it still wont fill parent Oct 29 09:38:08 let me try something that doesnt fill the screen width Oct 29 09:46:04 It might seem that I am not allowed to set a width(now height) that is wider than the screen Oct 29 09:46:56 well yes you can Oct 29 09:47:09 you can set it to watever value you want Oct 29 09:48:55 what's the best way to detect when the keyboard has been dismissed? Oct 29 09:49:52 StingRay_: doesnt mean its applied Oct 29 09:50:36 if i set the view to 1000dp in each direction, it still has the screen width as width on the view Oct 29 09:50:37 it means it's set Oct 29 09:50:48 no Oct 29 09:50:53 that depends on parent Oct 29 09:52:00 ok so .. how can i detect when an actionview in the actionbar is closing? Oct 29 09:52:14 like a search textview Oct 29 09:52:31 parent is a RelativeLayout which is the top container, it has match_parent Oct 29 09:53:33 set that to 1000dp too then Oct 29 09:54:01 well no Oct 29 09:54:15 just make the child not respect the bounds of the parent Oct 29 09:54:19 maybe easier Oct 29 09:54:20 :) Oct 29 09:54:22 ah Oct 29 09:54:44 set????bounds???? boolean Oct 29 09:54:50 dont remember Oct 29 09:54:54 and cant look atm Oct 29 09:55:06 i'll find it :) thanks for the tip Oct 29 09:58:39 android:clipChildren="false" Oct 29 09:58:41 :) Oct 29 09:59:14 haha yeah Oct 29 09:59:22 so totally not like my hints Oct 29 09:59:52 led me in the right direction :P Oct 29 10:00:30 <^cheeky> how do i use, setPrimaryItem on PageStateAdapter Oct 29 10:02:19 http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html#setPrimaryItem(android.view.ViewGroup, int, java.lang.Object) Oct 29 10:03:14 <^cheeky> blllahhh ... Oct 29 10:03:19 <^cheeky> yeah .. Oct 29 10:03:30 <^cheeky> been googling this ... Oct 29 10:03:35 <^cheeky> and i can't find the answer .. Oct 29 10:04:19 is it not there in the docs ? Oct 29 10:04:24 on that link ? Oct 29 10:04:37 haha, discovered another problem with rotating a imageview(with touch control), pan directions dont match after rotation haha Oct 29 10:04:44 <^cheeky> you mean the description and !example >? Oct 29 10:05:02 I get an OutOfMemoryError when doing int[] pixels = new int[bm.getHeight() * bm.getWidth()]; bm.getPixels(pixels, 0, bm.getWidth(), 0, 0, bm.getWidth(), bm.getHeight()); Oct 29 10:06:50 Jonno_FTW: It is possible to load only bounds of a bitmap if you want to preserve memory Oct 29 10:07:18 but it seems you are getting the pixes itself Oct 29 10:07:47 hm Oct 29 10:07:52 I guess I can make the image smaller Oct 29 10:08:03 I have been working some with bitmaps in android now and untill 4.0 you have about 16MB ram for your application Oct 29 10:08:10 :\ Oct 29 10:08:19 these images are straight from the camera Oct 29 10:08:22 after 4.0 i think it is expanded to 32 or 64, not sure Oct 29 10:08:49 containerBitmap.compress(Bitmap.CompressFormat.PNG, 100, fos); Oct 29 10:09:08 only one image should be fine though Oct 29 10:09:16 yeah I'm only using 1 image Oct 29 10:09:26 hey everybody Oct 29 10:09:33 unless you have a bunch of other resources loaded Oct 29 10:09:38 hm Oct 29 10:09:46 there might be other intermediate bitmaps Oct 29 10:09:52 I want to add a textview after the ellipsis added by textview itself Oct 29 10:10:01 how can i do that ? Oct 29 10:11:22 any idea ? Oct 29 10:11:30 <^cheeky> how would i use SetPrimaryAdapter ? Oct 29 10:11:39 textview automatically takes care of the ellipsis Oct 29 10:11:51 but i wan't to add some text after the ellipsis Oct 29 10:13:28 what style do i have to override for the searchview? Oct 29 10:13:38 <^cheeky> i have to read chin ease to check out how to use this function :/ Oct 29 10:14:28 today i learned, dont do allocations in ondraw Oct 29 10:33:57 I am using GooglePlayServicesUtil.isGooglePlayServicesAvailable which compiles, but I cannot run it on my phone, the method is not existing Oct 29 10:34:06 I bet this is a sdk version issue... Oct 29 10:37:33 is there any way to get degrees rotated from a RotateAnimation Oct 29 10:37:39 i am editing a custom View Oct 29 10:37:44 to handle it beeing rotated Oct 29 10:40:44 Is there a way to see which sdk version that is required for this?: http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable%28android.content.Context%29 Oct 29 10:40:52 Both the class and separate methods Oct 29 10:44:17 Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable... this is not even googlable Oct 29 10:50:30 Seems like the code that is included in a lib project will not be included in the apk Oct 29 10:50:41 The builder fails to include it Oct 29 10:55:23 getting NetworkOnMainThreadException while web scarping on android Oct 29 11:03:13 i took me a whole week to write 10.000 lines of code for android :( Oct 29 11:03:24 i am slow Oct 29 11:07:07 I get messages about not finding apk:s for library projects, should it be like that? Oct 29 11:08:03 where/ Oct 29 11:09:37 In the console in red text Oct 29 11:09:42 when running Oct 29 11:10:02 wonder if that is why I am getting problems using the google cloud messaging lib project Oct 29 11:10:32 When I right click that project and try to export an unsigned apk file, I get error messages about some messages not translated in be Oct 29 11:10:36 Whatever that means... Oct 29 11:11:22 They are commented out in values-be/strings.xml Oct 29 11:11:37 Wonder if I can just delete belgian Oct 29 11:12:41 I removed the values-be directory and get less errors Oct 29 12:08:43 <^cheeky> \0/ , \0---, \0/ finally wow Oct 29 12:09:04 <^cheeky> wow thats so freakking annoying !!!! ! Oct 29 12:09:16 <^cheeky> at least it works !! Oct 29 12:09:23 <^cheeky> but now it looks ugly ahahahahaahahahaha Oct 29 12:21:57 hi guys Oct 29 12:22:00 I am using Timer... Oct 29 12:22:15 anybody familiar with it ? as I have a clarification question Oct 29 12:24:39 I am working on fragment and i get this error "cannot be cast to import android.support.v4.app.Fragment" but my import is suppor.v4.app.Fragment which is suggested in forums …. Oct 29 12:37:47 Is there any good way to rotate the byte array from onPictureTaken from camera without converting it to bitmap or if converting to bitmap, convert it back to bytearray without using bitmap compress Oct 29 12:38:17 compress is horrible slow and is causing image to become worse in quality Oct 29 12:39:06 <^cheeky> Onack: d000d, get .. i am not sure about the answer lol to you question, but did you ever figure out your loading image ??? Oct 29 12:39:07 i tried a couple of other ways to convert it back to bytearray for saving, but getting corrupt image only Oct 29 12:39:44 yea my gallery is working great now Oct 29 12:39:58 even caching views Oct 29 12:40:00 <^cheeky> what did you mean by that Oct 29 12:40:25 <^cheeky> loading the view, before it comes to the screen Oct 29 12:41:08 i have yet to implement the pre-loader, but it is keeping views now that is already loaded 2 images behind what you see, so if you scroll back, they are pre-loaded Oct 29 12:42:10 <^cheeky> yeah ... meaning they are caches.... Oct 29 12:42:14 <^cheeky> *cached Oct 29 12:42:21 yep Oct 29 12:42:38 <^cheeky> ohh ok Oct 29 12:42:39 <^cheeky> yeah .. Oct 29 12:42:51 <^cheeky> i was confused earlier by what you meant lol Oct 29 12:42:55 hehe Oct 29 12:42:58 <^cheeky> but then again i had very lil sleep Oct 29 12:43:09 2 images in front is still not cached/pre-loaded thogh Oct 29 12:43:12 *though Oct 29 12:44:04 prioritized auto-rotating of image taken compared to sensor directon Oct 29 12:44:15 got it working, but its slow Oct 29 12:44:24 and worsens image quality Oct 29 12:44:59 and i blame bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); Oct 29 12:47:19 <^cheeky> yeah you loaded them detecting the on scroll yeah Oct 29 12:48:21 well, the adapter gets position and i keep a cache of views in a list in the adapter Oct 29 12:48:35 so asking the list if it has the view before creating it Oct 29 12:48:43 <^cheeky> yeah ..... Oct 29 12:49:24 and on every request remove views that is futher away than 2 in each direction Oct 29 12:52:06 <^cheeky> LRU Oct 29 12:56:50 Hello. I have a broadcast receiver that is executed on device reboot. Instead of rebooting the device every time I want to test it, I tried to execute the following form the command line: Oct 29 12:57:02 "adb shell am broadcast -a android.internal.action.BOOT_COMPLETED" Oct 29 12:57:16 but it doesn't cause my receiver to run any code Oct 29 12:57:50 I also tried it with the -c and -n flag with the same result Oct 29 13:08:22 camera.setDisplayOrientation only sets preview orientation, any way to set the actual image taken orientation? Oct 29 13:08:32 sulaiman: try android.intent.action.BOOT_COMPLETED Oct 29 13:09:02 and make sure you have permission android.permission.RECEIVE_BOOT_COMPLETED Oct 29 13:14:21 thanks bubbleguuum, I had made a typo with "internal" Oct 29 13:25:26 What is SharedPreferences used for? Can I use it for only one app and that no other apps can access the data Oct 29 13:25:27 ? Oct 29 13:25:43 theres a site that sells all kinds of phones, i think it starts with a D I can't remember what it is though, I think they do UK and US sales Oct 29 13:25:46 any thoughts? Oct 29 13:28:42 expansys-usa nevermind Oct 29 13:35:37 I have implemented 2 ListFragments which both has list view…. if i scrollup in the fragment 1, does fragment2 also scroll ? Oct 29 13:35:48 by default, or should i make some changes ? Oct 29 13:41:11 I am looking for something relative fragments so both scrolls to gether Oct 29 13:42:42 i think you should populate a single listfragment with two columns, instead of trying to tie two listfragments together Oct 29 13:45:44 is fragments pretty much required to work with multi-devices ? Oct 29 13:45:54 i can do that with 2 columns, but i want to show/ hide on swipe the other column . Oct 29 13:46:39 why doesnt my connect thread in bluetooth connection initiate the connection properly.. ? Oct 29 13:47:02 It says socket already in closing state and then changes the state to not connected. Oct 29 13:48:14 here's the traceback: http://dpaste.com/1433855/ Oct 29 13:48:30 Can anyone help? Am stuck with it from a long time. :( Oct 29 14:03:21 as guessed, both fragment won't scroll at the same time :( Oct 29 14:10:29 pkp, sorry never did bluetooth, try posting some snippet of code maybe someone can help Oct 29 14:13:02 anyone here used both mac and linux for android development? Oct 29 14:13:28 and if so, do you feel one was inherently better than the other? Oct 29 14:15:40 <^cheeky> ashooby: i used both, mac just looks nicer, with fonts and what not ... but both have been stable, it depends on the IDE you use Oct 29 14:16:18 ashooby, didn't notice a huge difference Oct 29 14:16:34 Linux played better with some phones but that's minor stuff Oct 29 14:16:54 mastro, I am just running the code from bluetooth chat example itself.. Oct 29 14:17:03 <^cheeky> whats the thing called, say when i press menu item on the action bar such as info icon, i want to have a listView be created, whats the mechanism called so i can google Oct 29 14:19:54 <^cheeky> or if the name, for it Oct 29 14:22:28 my company is trying to decide if we're going to get macs or not Oct 29 14:24:48 <^cheeky> its not expandable listView.. when i click on an item on the action bar, i want it to create a list fragment Oct 29 14:25:02 <^cheeky> i have seen it in the flilr app but i can't see its code Oct 29 14:29:18 ashooby, doesn't matter really Oct 29 14:29:43 I figured as much Oct 29 14:29:52 I just don't like getting apple computers on principle Oct 29 14:29:54 too expensive :x Oct 29 14:30:22 hackintosh ftw Oct 29 14:30:52 ashooby, well honestly, I doubt you'd ever want to have cheap machine at your company Oct 29 14:31:12 that's the thing though Oct 29 14:31:16 macs are expensive but they are cheap Oct 29 14:31:24 because they aren't worth it imo Oct 29 14:31:34 a thinkpad will be less expensive, but it won't be cheap Oct 29 14:31:38 and will have better value Oct 29 14:32:04 and since macs are made of the same things as any other laptop nowadays Oct 29 14:32:05 and much tougher Oct 29 14:32:14 (the thinkpads) Oct 29 14:32:28 you can compare the prices even easier Oct 29 14:32:40 though, it doesn't matter too much to me I guess Oct 29 14:32:51 even if the mac is more expensive, I won't be buying it Oct 29 14:48:18 I get a slight delay before splash screen is shown, aka. the empty background is displayed before splash screen.. what could be the problem ? Oct 29 14:48:53 takes time to load splash screen from storage ? Oct 29 14:49:49 or.. maybe your splash screen isnt the first thing in oncreate for your activity Oct 29 14:49:55 wmealing: yeap Oct 29 14:50:00 to which one Oct 29 14:50:07 wmealing: nope, it is the first one Oct 29 14:50:16 ok Oct 29 14:50:34 you could profile that, i imagine Oct 29 14:50:42 for 1 second the white background comes and then the splash screen…. Oct 29 14:50:49 first thought about new motorola phone concept - imagine fragmentation! Oct 29 14:51:02 link ? Oct 29 14:51:14 wmealing: me? Oct 29 14:51:44 yeah Oct 29 14:51:59 wmealing: http://www.gsmarena.com/motorola_announces_ara_a_new_modular_phone_concept-news-7078.php Oct 29 14:52:20 didnt i see this on kickstarter.. last month ? Oct 29 14:52:28 ah yes Oct 29 14:53:20 not kickstarter - the phonebloks concept video was floating around for a while, but it really was just a concept video Oct 29 14:53:56 icedp: that sound amazing… but again…. any os vendor will not give option to uninstall just the unwanted app from the device Oct 29 14:54:37 they won't give that option for all the apps/ modules. for true Oct 29 14:57:36 very much depends on the actual design.. anyway seems like fun Oct 29 14:58:27 anyone there to help me out with the lockscreen clock? Oct 29 14:58:37 also, I love the fact that nobody is actually reading the real Motorola blog post, since that explicitly calls out Phonebloks and says they're working with the guy Oct 29 15:03:12 any of you have one of these ? http://devicelab.vanamco.com/collections/frontpage/products/devicelab Oct 29 15:04:15 you could get a nice pelican with pick and pluck phone for half the cost, and it would be waterproof to boot Oct 29 15:04:23 *pick and pluck foam Oct 29 15:04:40 a shallow one meant for laptops, for example Oct 29 15:05:21 g00s: what's that Oct 29 15:05:27 undeadd: I read it Oct 29 15:05:57 http://www.pelican.com/ Oct 29 15:06:31 g00s: oh nvm Oct 29 15:07:42 <^cheeky> whats the name or function to call or create .. if i have a menu item , once clicked created a list > Oct 29 15:08:51 icedp ? Oct 29 15:09:05 <^cheeky> icedp ? Oct 29 15:09:11 undeadd: sorry wrong nick Oct 29 15:09:20 kk np icedp Oct 29 15:09:51 undeadd: you are bold cyan and Leeds is dark brown Oct 29 15:09:54 :) Oct 29 15:10:17 excuse me, I'm sort of pinkish-white, verging on light brown when I've had some sun, and bright red when I've had too much sun Oct 29 15:10:39 icedp xD Oct 29 15:10:41 <^cheeky> oh sorry i thought it was for, me , y bad Oct 29 15:10:46 <^cheeky> *my Oct 29 15:11:23 <^cheeky> i can't find out the name of it, could some one please point me to whats the function, mechanis, how to , views used, or something to implement it Oct 29 15:12:25 Leeds: I have only 16 colors so you are approximated to brown, sorry Oct 29 15:13:48 If my Android device doesn't have sqlite3 installed, is there any way I can still see the sqlite database for my app? Oct 29 15:14:18 copy it to a host that can ? Oct 29 15:15:17 you can push an sqlite3 binary to /data/local/tmp and chmod 755 . i've compiled my own before, but maybe you could grab one from an emulator image Oct 29 15:15:27 (or like wmealing said, pull the database and use sqlite3 on your computer) Oct 29 15:15:47 wmealing: how do I copy it? Oct 29 15:15:58 ^cheeky: are you referring to something like this? http://developer.android.com/images/ui/actionbar-shareaction@2x.png Oct 29 15:16:07 when I do `cp ` I get a 'cp not found' message :/ Oct 29 15:16:28 cat foo > /tmp/foo Oct 29 15:18:53 Leeds: now why didn't I think of that? Thanks! Oct 29 15:19:19 spinningarrow: because you're not used to a limited shell environment which isn't really meant to be used interactively Oct 29 15:20:07 it was awesome in the android 2.x days when instead of "cp not found" it'd just say "Permission denied" Oct 29 15:20:47 one more thing: I also have a nexus 7 in which the 'run-as' command in the adb shell doesn't work Oct 29 15:21:01 is that normal? Oct 29 15:21:19 run-as is broken on some 4.3 installs Oct 29 15:21:21 <^cheeky> ashooby: isn't that for the sharing Action, but i don't want it to have the spinner thingy Oct 29 15:21:26 kevinb seriously ? Oct 29 15:21:33 <^cheeky> ashooby: is that even possible or .. i have to use it like that Oct 29 15:21:34 yeah Oct 29 15:21:39 uhgh Oct 29 15:21:51 i think it works on my 2013 nexus 7 but not my 2012 nexus 7 (or maybe vice versa) and works on one of my phones but not another Oct 29 15:22:15 https://code.google.com/p/android/issues/detail?id=58373 Oct 29 15:22:46 hey guys i have a question for you all Oct 29 15:23:00 our app has an ndk compiled library in it, which we compiled for armeabi Oct 29 15:23:15 yet the app installs on an x86 android device with no problems, and the library seems to run fine Oct 29 15:23:21 can you explain this Oct 29 15:24:59 kevinb: is there an easy fix? or a workaround that'll let me access my app's database without run-as? Oct 29 15:25:27 spinningarrow see comment #32 in the link above Oct 29 15:25:32 basically have to reflash Oct 29 15:25:52 or root (but that likely requires unlocking the bootloader which requires wiping) Oct 29 15:26:07 <^cheeky> http://i.imgur.com/7OeKcGp.png Oct 29 15:26:25 does anybody know if there are legacy devices with android 2.3.3 for genymotion? Oct 29 15:26:33 <^cheeky> the information icon , when i click that how do i get it to create a list ... Oct 29 15:28:12 <^cheeky> or if anyone can tell me if i am doing anything wrong with my app from the screen show :/ Oct 29 15:28:46 a drop down list ? Oct 29 15:28:50 anyone have a clue? Oct 29 15:29:00 lagann: either you didnt really compile arm Oct 29 15:29:04 you can create submenus in xml. Oct 29 15:29:11 or your app really doesn't require the ndk Oct 29 15:30:07 <^cheeky> wmealing: yeah , i mean i thought it would use a list fragment coz i from the list i want to create a expandable list as well Oct 29 15:30:19 Hi I have a question about how I should go about branching my android project. I have an android app that shows images of cats, I want to branch it to make another app that shows images of dogs. Should I create three projects? a base project, a cat project, and a dog project? Or should I have a base package, and each branch has their own package that extends the base package? Oct 29 15:30:42 <_< Oct 29 15:31:01 wmealing: i double checked, and the library is definitely compiled for arm, and it is definitely using the library Oct 29 15:31:14 navetz, 3 projects usually works best, which have the common package as a library Oct 29 15:31:34 don't forget the branch for Bunnies Oct 29 15:31:34 so your emulator is definitely _not_ x86 then Oct 29 15:31:41 yes Oct 29 15:31:42 it's not an emulator Oct 29 15:31:47 lagann: wmealing: i don't really know what this means, but there's http://developer.android.com/reference/android/os/Build.html#CPU_ABI2 in addition to CPU_ABI, and x86 devices i've seen have that set to arm something Oct 29 15:31:49 it's the new samsung tablet with an intel atom processor Oct 29 15:32:41 kevinb: wmealing: there was something interesting printed in logcat Oct 29 15:32:42 10-29 11:23:56.199: I/PackageManager(2296): Package installed with second ABI Library: 10150com.metago.astro Oct 29 15:32:42 10-29 11:23:56.199: I/PackageManager(2296): Data written into /data/data/.appwithABI2 Oct 29 15:33:10 second abi , implies there is another abi included Oct 29 15:33:32 in the apk? Oct 29 15:33:36 <^cheeky> wmealing: so i can't just create sub menu , if i want to use expandable list view Oct 29 15:33:37 so x86 devices can emulate arm? and compiling for x86 is for performance reasons rather than compatibility? Oct 29 15:34:09 no... who said that.. Oct 29 15:34:49 if you mean me, no one, hence the question marks. i'm just trying to understand why CPU_ABI2 would be set to armeabi-v7a or armeabi for x86 devices Oct 29 15:35:31 Kegsay: okay cool, so I need to make one library and two apps Oct 29 15:37:28 wmealing: i just pulled the apk from the tablet, and there's only one library in it, under lib/armeabi Oct 29 15:38:25 kevinb, ah, apparently there's something called libhoudini that translates arm to x86 Oct 29 15:38:54 interesting Oct 29 15:38:57 Zharf: i just found htat Oct 29 15:39:03 iiiiiiiiiiinteresting Oct 29 15:39:06 funnily enough, i did too Oct 29 15:39:37 thats pretty neat Oct 29 15:39:42 I bet it's super slow Oct 29 15:39:43 :) Oct 29 15:40:08 dont rely on it Oct 29 15:40:10 * Intel's libhoudini.so - a file Intel has said distribution of which is prohibited outside of licensed devices Oct 29 15:40:34 yeah well, I'm not... but I haven't built x86 version of my app yet either... Oct 29 15:40:44 * wmealing nods Oct 29 15:40:48 there really isn't any x86 devices to bother for Oct 29 15:41:02 i just checked my analytics (completely unscientific as my users aren't your users) and i see one x86 device that lists CPU_ABI2 as "unknown" rather than arm something Oct 29 15:41:06 the "wetab" Oct 29 15:41:25 http://wetab.mobi/en/ Oct 29 15:41:47 one user sounds like a rounded-up sales figure for that Oct 29 15:42:20 https://gist.github.com/anonymous/78a3fa06b776044af381 Oct 29 15:42:35 * Zharf doesn't have analytics in his apps Oct 29 15:44:06 one of my greatest regrest Oct 29 15:44:16 *regrets - not having analytics in my app Oct 29 15:44:21 why? Oct 29 15:44:30 well, in one version i was using sqlite Oct 29 15:44:40 i had a function to export sqlite, for import into R Oct 29 15:44:57 now, i wanted to migrate over from sqlite to mvstore, which isn't importable into R as is Oct 29 15:45:08 R? Oct 29 15:45:09 just yesterday i got an email from someone at intel saying they're working on a portfolio of intel compatible apps as "Leading Tablet/ mobile device manufactueres have plans to introduce devices running the Android operating system on Intel Architecture" for the upcoming holiday season Oct 29 15:45:14 if i had analytics, i would have known how popular that feature was Oct 29 15:45:26 it would have helped me decide, keep sqlite or not Oct 29 15:45:31 how ? Oct 29 15:45:52 Anyone use AIDE? Oct 29 15:45:58 g00s, uhhuh, undertstandable... what's R in this context? Oct 29 15:45:59 i mean, doesn't just analytics report on what is, not what could be Oct 29 15:45:59 Zharf http://www.r-project.org/ Oct 29 15:46:21 even with analytics, when implementing them you don't necessarily know what to measure Oct 29 15:46:48 I'm however not developing my apps for the users out there, but for myself and I'll just let anyone use them if they want to :p Oct 29 15:47:08 hey, me too Oct 29 15:47:12 Zharf things have a way of growing past ourselves if they are good ideas ;) Oct 29 15:48:08 R also has a nice IDE http://www.rstudio.com/ide/ Oct 29 15:48:48 Zharf: what is your app ? Oct 29 15:48:52 kevinb what is an intel compatible app ? Oct 29 15:49:04 i mean, all java android apps would apply right ? Oct 29 15:49:21 yeah i think so, my apps don't use the ndk at all Oct 29 15:49:24 so i guess, x86 native libs when native libs are used ? Oct 29 15:49:24 wmealing, xmms2, it's not really "my" app, but xmms2 team app... I just made the android stuff Oct 29 15:49:37 i do have some extra root features, and compile an x86 binary for that, but i highly doubt that's why intel emailed me Oct 29 15:50:46 r-project.org isn't loading Oct 29 15:50:54 you guys killed it :| Oct 29 15:51:00 it loads the frame and then shows three times "connection was reset" :) Oct 29 15:51:29 FF25 is here ! Oct 29 15:51:32 woohoo Oct 29 15:55:33 i think ff25 has that memory optimization with pages & lots of graphics Oct 29 15:55:47 g00s, I would guess if your users used R export a lot, they would've whined about it Oct 29 15:56:02 Zharf oh, i haven't shipped it yet Oct 29 15:56:05 ah Oct 29 15:56:11 kinda nervous :| Oct 29 15:56:13 well cross your fingers then Oct 29 15:56:17 :) Oct 29 15:56:27 or maybe sneak a quick analytics update and let it run for a while Oct 29 15:56:45 maybe Oct 29 16:05:47 does someone know where the method MediaStore.Images.Media.insertImage put the image by default? (using the Bitmap version) Oct 29 16:07:32 Hello everyone. I am having some dificult in implementing a service in php for conecting android to mysql, also in implementig the jsonParser on android. Do you guys recomend a tutorial or a book on internet? Oct 29 16:09:10 mxslnx_, I raccomand not to use php, nor to try to connect android on mysql (I'm not even sure what that means) and I don't see how a json parser could be an issue at all Oct 29 16:09:24 s/raccomand/recommended/ Oct 29 16:09:30 Leeds i notice one thing with all people having problems connecting android to their web service : they use PHP Oct 29 16:09:40 what a surprise Oct 29 16:09:44 g00s, *grin* Oct 29 16:10:06 you dont find any scala or clojure devs having these issues ;) Oct 29 16:10:12 mxslnx_: also, jsonParser? there is one already Oct 29 16:10:12 or python, ruby, etc Oct 29 16:10:13 actually, it would probably be quite a useful project to build a plug-in HTTP database driver Oct 29 16:11:00 g00s: why is that? :D Oct 29 16:11:26 icedp, cause php is the blind leaded by the blind (that's my opinion) Oct 29 16:11:28 mastro, i have a mysql db and need to implement crud operations on it from android. (sorry my english, i am not sure if i am making myself clear). Oct 29 16:11:39 What do you recomend me to read? Oct 29 16:12:31 mxslnx_, that doesn't sound like an Android issue Oct 29 16:12:37 icedp, yeah. My dought is in using its methods. Oct 29 16:14:45 I sse mastro. Please let me put in other words. How would you implement a conector for android talk to mysql db? Oct 29 16:15:48 Activity not found!!! my app is com.x.y, the entry in the manifest is android:name=".social.activity.ProfileActivity" (which is correct and there are no typos) ;; Other activities in this namespace work correctly… Am I missing something? Oct 29 16:15:58 mxslnx_, you can replace "android" with anything in your sentence.. or you can just replace it with "my client" which could be anything. I can only say you use REST services. I would probably use django or ruby on rails or maybe even java to build the REST service. And that has nothing to do with Android Oct 29 16:16:20 Doh, nevermind :S Oct 29 16:18:06 oK mastro. Thank you. Oct 29 16:24:07 mxslnx_, by the way, you CAN use PHP, but to me that's a bad idea (and this also has nothing to do with Android) Oct 29 16:26:52 Yeah, i got it mastro . I'll try a service in python. Looking for some tutorial now. Oct 29 16:36:47 How to make android app to fit for all screen sizes? What kind of tutorial I need to study? like fragments or something? Oct 29 16:37:08 Hi bdw :) Oct 29 16:42:55 only happens to me that android studio likes to show errors (red underscore in the file) when there is no error? Oct 29 16:47:00 <|Agent_> Is there a standard invalid resource ID? Something I can use as a sentinel value rather than having a separate boolean to say whether it is valid or not? Something like R.INVALID would be ideal. Oct 29 16:48:21 <|Agent_> Ah, 0 is documented. Oct 29 17:01:45 Hello everyone, I was doing the first app tutorial, faced a problem which made my application crash, it was a view not found thing, so I tried a solution that said to change the android:name of the activity from "com.example.whatever.whatever_activity" to ".whatever_activity".. I just wanted to know if someone can tell me why that was necessary to make it work? :) Thank you very much :) Oct 29 17:11:26 I was seeing today that both Amazon and Google take 30% cut on app hosting/brokering Oct 29 17:12:00 but imho, I think that Play Store is better idea as more people access it as compared to Amazon Market Oct 29 17:12:25 feedback/opinion regarding correctness of my inference Oct 29 17:12:57 guys, how long do views stay in the heap before being garbage collected ? Oct 29 17:13:03 Looney: Why not both? Oct 29 17:13:05 once onDestroy is called ? Oct 29 17:13:31 hmm Oct 29 17:13:59 well, Amazon does not charge 25$ fee for account registration Oct 29 17:14:19 no harm going with both TheTrash Oct 29 17:15:17 depending on the app, it can be hard to do both Oct 29 17:15:34 google locks you in with google services'; you wont have that on amazon store Oct 29 17:15:55 likewise, there are libraries from amazon that won't work on PLay-distributed app Oct 29 17:16:07 for example, mapping ;) Oct 29 17:16:26 * Looney sees what in the name of Holy is Google Services Oct 29 17:16:55 Play Services, or whatever they call it Oct 29 17:17:13 but if I have only Android SDK libraries then, I think they none of them would have any qualms Oct 29 17:17:28 that should be ok Oct 29 17:17:28 I am thinking of doing app for rooted phones Oct 29 17:17:43 gotta see if CM has some statistics available Oct 29 17:23:52 * Looney won't tell anyone about his half-taken idea Oct 29 17:24:55 is there any possibility that someone who is running CM has not rooted his/her phone Oct 29 17:26:24 CM has an option to not have root, i think it might be set by default. also CM is going to ship on an Oppo phone and likely won't have root (by default at least) Oct 29 17:26:44 there are also lots of users on stock rooted roms Oct 29 17:27:49 latter is encouraging kevinb Oct 29 17:31:07 I think that I will make the app and put it on Amazon Oct 29 17:31:10 its free Oct 29 17:31:30 if it works out, then no harm in taking it to Play Store Oct 29 17:32:05 it's hard to get noticed on amazon if you don't support the kindle devices (and i doubt they'll allow a root app on the kindle) Oct 29 17:32:59 for a root app you could post an APK to XDA forums to gauge interest Oct 29 17:33:23 (or a non root app even, just root tends to fit well with the XDA crowds interests) Oct 29 17:34:32 <__red__> Greetings - I'm trying to build a microprocessor toolchain for android. So, I need to build a graphical IDE (simple). Is it possible to dump compilers and access android's serial port in order to compile code and upload to the board? Oct 29 17:35:05 <__red__> (I can do it easily if I chroot into a linux chroot() env) Oct 29 17:35:30 wouldn't you upload to the board with adb ? Oct 29 17:36:15 HI Oct 29 17:36:20 <__red__> No, uploading FROM the android device (chromebook) to the microcontroller dev board Oct 29 17:36:34 <__red__> so using the chromebook as a cheap and portable development laptop Oct 29 17:36:39 Need help with bluetooth uuids. Where can I read more about it? Oct 29 17:36:53 <__red__> so think Chromebook -> Arduino Oct 29 17:37:27 kevinb: does xda offer paid app service Oct 29 17:37:43 <__red__> wait a second Oct 29 17:37:46 <__red__> I'm an idiot Oct 29 17:37:52 <__red__> ChromeOS != Android Oct 29 17:38:07 pkp: see the UUID class in the Android API Oct 29 17:38:11 no, they're just a forum. you'd have to do a free version or something to post/get interest there Oct 29 17:38:22 I am quite sure that if I do a decent job, people at xda would like it Oct 29 17:38:39 hmm, like some demo/partial functionality app Oct 29 17:38:43 nice idea kevinb Oct 29 17:38:53 I owe you one Oct 29 17:38:53 coderroadie, thats for api level 15 and above. For lower apis? Oct 29 17:39:35 see the wiki page entry on uuids. Oct 29 17:40:02 A uuid is just a hex representation of two long values. Oct 29 17:41:03 coderroadie, but doesnt the uuid also represent different kinds of services.. like sdp or rfcomm Oct 29 17:41:05 the dashes are just for display. Oct 29 17:41:20 pkp ... yes. each service will have its own uuid. Oct 29 17:42:02 coderroadie, the uuid for sdp is given as 0x0001 - http://bluetooth-pentest.narod.ru/doc/assigned_numbers_-_service_discovery.html Oct 29 17:42:16 coderroadie, how exactly do i add it in my code.. Oct 29 17:42:54 http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createRfcommSocketToServiceRecord%28java.util.UUID%29 Oct 29 17:43:03 pkp not sure what you mean. Oct 29 17:43:25 what are you trying to do? Oct 29 17:44:03 coderroadie, I am basically using something like this to generate my uuid right now: UUID MY_UUID_INSECURE = UUID.fromString("8ce255c0-200a-11e0-ac64-0800200c9a66"); Oct 29 17:44:21 coderroadie, but this isn't working properly.. Oct 29 17:44:44 if i want to change the uuid to that of sdp uuid, how do i go about hat? Oct 29 17:44:46 that* Oct 29 17:46:16 pkp see http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#fetchUuidsWithSdp() Oct 29 17:46:32 you'll get the UUID from the intents that are broadcast. Oct 29 17:46:51 you don't create a UUID ... you read one from a device that is connected. Oct 29 17:46:57 so you discover what those are. Oct 29 17:47:35 it only makes sense to generate your own uuid, usually, when you're testing against a known device, or looking for a device you connected to before. Oct 29 17:48:38 coderroadie, but dont we need a uuid to actually connect to a device? http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createRfcommSocketToServiceRecord%28java.util.UUID%29 Oct 29 17:51:12 coderroadie, or am I terribly wrong here? Oct 29 17:51:48 did you see the i/o 2013 thingy about Bluetooth ? Oct 29 17:59:31 coderroadie, sorry missed message due to network :( would you mind repeating if any? Oct 29 18:06:28 pkp: [FYI] g00s wrote => did you see the i/o 2013 thingy about Bluetooth ? Oct 29 18:08:43 g00s: Ya. I did. It talks more about bluetooth gatt. Oct 29 18:10:36 advice if following is incorrect Oct 29 18:11:13 It would not be factually incorrect if we were to call subroutines, functions of the assembly language Oct 29 18:11:18 Oct 29 18:23:07 i'm a bit confused with animations in android. I want to add a simple animation for when i replace a fragment in an activity and when i start and finish a new activity Oct 29 18:23:28 i have the res/anim/xml files that describe the transitions Oct 29 18:23:33 how do I apply them Oct 29 18:23:34 ? Oct 29 18:24:08 can I do it in the layout file of each fragment? it would be more convenient Oct 29 18:35:27 <|Agent_> What's the "duration" argument of a Toast? LENGTH_SHORT and LENGTH_LONG are 0 or 1 respectively. Does this mean that I can't set a custom duration without subclassing Toast? Oct 29 18:36:08 <|Agent_> Like, it doesn't use milliseconds or something sane? Oct 29 18:37:39 <|Agent_> LENGTH_LONG looks to be about 1 second. Does that match what you guys see? Oct 29 18:49:21 |Agent_: you can't set other values, this is two default options Oct 29 18:49:31 |Agent_: you can overcome it but you don't need to Oct 29 18:51:40 <|Agent_> I do need to overcome it. LENGTH_LONG isn't long enough. Oct 29 18:53:13 <|Agent_> Or maybe I should use an alert that they have to explicitly dismiss. Oct 29 18:53:22 |Agent_: use notifications or if you really need - system alert window Oct 29 18:53:30 (like facebook bubble heads) Oct 29 18:53:35 but that's bad Oct 29 18:59:04 <|0xD34D|> |Agent_: FYI subclassing Toast won't help because the NotificationManagerService takes care of queuing the toast and displaying it Oct 29 18:59:41 |Agent_: use a PopupWindow if you need a custom Toast Oct 29 18:59:44 <|Agent_> Do toasts go in a notification list somewhere? Oct 29 18:59:49 no Oct 29 18:59:50 <|0xD34D|> no Oct 29 18:59:56 <|Agent_> good Oct 29 19:00:12 <|0xD34D|> I'm just telling you where they are handled when it comes to displaying them Oct 29 19:01:09 |Agent_: wait, no. Toast t = Toast.makeText(...); t.setDuration(1000 /* ms, I assume */); t.show() Oct 29 19:01:26 * evanc has never bothered trying to customize a toast Oct 29 19:02:12 Toasts suck Oct 29 19:02:15 <|Agent_> evanc, I'm not sure if that is a valid assumption, given LENGTH_SHORT = 0 and LENGTH_LONG = 1. That was the point of my question. Oct 29 19:02:23 <|0xD34D|> looking at the NotificationManagerService, even f you put a custom value it ends up using the short duration Oct 29 19:02:33 <|0xD34D|> long delay = immediate ? 0 : (r.duration == Toast.LENGTH_LONG ? LONG_DELAY : SHORT_DELAY); Oct 29 19:03:05 <|Agent_> jeez Oct 29 19:03:25 Amen SimonVT Oct 29 19:03:34 * |Agent_ concurs. Oct 29 19:04:20 Last time I had taost was when I was guest at someone's breakfast :-D Oct 29 19:06:21 *toast Oct 29 19:06:24 has google removed toasts from their apps ? Oct 29 19:06:38 what do they do instead ? Oct 29 19:07:23 They do something like this: https://github.com/SimonVT/MessageBar Oct 29 19:07:33 |Agent_: oh, gross. Someone should update the docs. Oct 29 19:07:40 Alpha animations on a textview Oct 29 19:10:41 hm, see this irks me. its one thing for a project to make some custom widget / view; but something entirely different when the owner of the platform abandons supplied functionality, makes their own, and then doesn't share the implementation Oct 29 19:10:58 They have shared the implementation Oct 29 19:11:12 I just changed it for my usecase Oct 29 19:11:26 "They" being Roman Nurik Oct 29 19:12:38 Or well, I completely reimplemented it since theirs used the new animation framework Oct 29 19:13:00 https://code.google.com/p/romannurik-code/source/browse/misc/undobar/src/com/example/android/undobar/UndoBarController.java Oct 29 19:13:11 they should put that in the support library to elevate its status / look / feel / behavior to something more official Oct 29 19:13:28 It's really simple to do anyway Oct 29 19:13:30 nice of roman though, great guy Oct 29 19:14:23 i have to see if the design guidelines say anything about toasts (like don't use them) Oct 29 19:14:51 it's always said that Oct 29 19:15:04 Hi guys, I have a webview loading an iframe, but the javascript doesnt seem to be executed Oct 29 19:15:06 https://gist.github.com/jrm2k6/d1a3fad683a6b433dc64 Oct 29 19:15:11 How can I debug or fix it? Oct 29 19:15:47 jrm2k6: don't you have to call .setJavascriptEnabled(true) or something? Oct 29 19:15:55 yes I did Oct 29 19:16:08 oh, I missed it in my skim; sorry Oct 29 19:16:31 np. I just dont even know how to debug to know what could be the issue. Oct 29 19:16:32 so, googling "design guidelines toast" lands me here first http://developer.android.com/guide/topics/ui/notifiers/toasts.html Oct 29 19:16:39 which says nothing about deprecation at all Oct 29 19:16:45 g00s: http://developer.android.com/design/patterns/notifications.html Oct 29 19:16:53 they're not deprecated Oct 29 19:17:01 That's a strange url Oct 29 19:17:13 Ah, loadData Oct 29 19:17:16 My skimming sucks as well Oct 29 19:17:17 it's just always basically implied "don't bother." Oct 29 19:17:37 SimonVT: Are you talking about my snippet? Oct 29 19:17:39 Why would toasts be deprecated? Oct 29 19:17:45 oh ok i guess not. Oct 29 19:18:23 SimonVT: they aren't Oct 29 19:18:38 they're just not recommended for basically any situations Oct 29 19:18:47 oh, I know that Oct 29 19:18:58 Wondering why g00s would think they were deprecated Oct 29 19:19:03 so when is roman's approach warranted ? Oct 29 19:19:20 g00s: when you want to provide an undo? Oct 29 19:19:43 hm , ok Oct 29 19:20:07 so lets say my app will take a few seconds to export something, and the UI is stil up. is a toast still O K? Oct 29 19:20:19 (toast to say, export has finished) Oct 29 19:20:23 Could it come from the async property of the javascript script in the iframe code? Oct 29 19:21:32 jrm2k6: I guess I'm confused about why you're loading an iframe instead of the url directly Oct 29 19:22:06 evanc: because this is the way vine embed videos Oct 29 19:22:07 but the async is plausible; sorry, I haven't used a webview in an android app Oct 29 19:22:20 those videos will not have good performance Oct 29 19:22:25 If I load the url directly, I will have the entire page as I want only the videos. Oct 29 19:23:20 evanc: performance is not my main issue for now. Oct 29 19:24:38 unless, you are learning/practicing for lolz, performance must be your first and last issue jrm2k6 Oct 29 19:24:49 Looney: it is for lolz yes. Oct 29 19:25:02 I understand performance is a big deal. Oct 29 19:25:08 it is the similar mindset which has taken Google+ app away from my phone :-( Oct 29 19:25:23 I just would like to undestand why my video is not playing :( Oct 29 19:25:32 what is OS version Oct 29 19:25:39 do you have flash installed Oct 29 19:25:44 do you have it enabled Oct 29 19:26:15 I m trying to run this activity in an emulator Oct 29 19:26:34 try it on phone which has flash Oct 29 19:26:48 or install flash on emulator, I guess Oct 29 19:27:05 How is it linked? it is using an iframe, and afaik vine is using html5 no? Oct 29 19:27:08 ok i check Oct 29 19:28:25 what is the video link you are interested in ? ? Oct 29 19:29:04 https://gist.github.com/jrm2k6/d1a3fad683a6b433dc64 Oct 29 19:32:18 hey Oct 29 19:32:37 Looney: Any idea? Oct 29 19:33:56 sup nappy bitch Oct 29 19:33:57 :p Oct 29 19:34:06 hey buddy Oct 29 19:35:37 on my pc, I see no video on the link jrm2k6 Oct 29 19:35:48 hm Oct 29 19:36:13 what do you mean? I see it in my webview, when i click, i just have a spinner running forever. No video is played Oct 29 19:37:07 Hello! I use ActionBar compat library. In styles i have my AppTheme. I want to apply custom style on checkbox. So i added @android:drawable/btn_check to my AppTheme. But this checkbox attribute changed only on ICS and JB. On gingerbread checkbox looks as usual. How i can style checkbox on all platforms? Oct 29 19:37:50 i've got an ndk question - is it possible to link against the android system libraries (in /system/lib)? i'm trying to build something against openssl (libcrypto.so) and i know it's on the device, but i can't figure out how to tell the linker. Oct 29 19:38:18 xgear: implement both Oct 29 19:38:41 please explain Oct 29 19:38:55 Both what? Oct 29 19:39:11 xgear: oh wait, listChoiceIndicatorMultiple is since Api Level 1 Oct 29 19:39:20 xgear: you want the same look on all platforms? Oct 29 19:39:20 yes Oct 29 19:39:25 yes Oct 29 19:39:30 @android:drawable/btn_check Oct 29 19:39:31 you want that Oct 29 19:39:51 i use my custom instead of @android:drawable/btn_check Oct 29 19:40:00 yes then use your custom one Oct 29 19:40:09 the point is you miss the android: prefix Oct 29 19:40:13 but i want to apply it in theme Oct 29 19:40:27 so do that Oct 29 19:41:02 but it don works in GB Oct 29 19:41:56 i use android: prefix Oct 29 19:42:06 xgear: it probably works, its probably your parent theme that is set incorrectly Oct 29 19:43:04 i added this attribute in theme in values/styles Oct 29 19:43:27 this theme affect on GB because i can see Actionbar Oct 29 19:50:36 Now i created sample aplication which have just checkbox and attribute in android:listChoiceIndicatorMultiple apptheme. And behaviour is similar: on 4.1.2 everything is ok, on 2.2 emulator - checkbox looks native Oct 29 20:01:50 Ok, I cannot fix this gridview to save my life Oct 29 20:02:57 I am using an array adapter subclass, one with a method getImageUrlForItem(T item) and the View getView(…) method returns an ImageView with that URL loaded in (using picasso) Oct 29 20:03:47 Hello world! Oct 29 20:04:01 It is instantiated with an empty array, when data arrives from an async process (ParseQuery findInBackground) the array used in instantiation gets those items added in. Then I call, mAdapter.notifyDataSetChanged() Oct 29 20:04:15 I get no views in my grid at all, the getView(…) function is never even called Oct 29 20:04:26 I'm noticing that my FragmentManager instance is pointing towards a null activity upon rotating my device (toString-->): FragmentManager{427c6080 in null}} Oct 29 20:04:48 Instead of (pre rotation): FragmentManager{427c6080 in MainActivity{427c5f78}}} Oct 29 20:06:26 Anyone seen this? I'm getting that "IllegalStateException: Can not perform this action after onSaveInstanceState" as well (Due to this). Oct 29 20:10:40 You're probably keeping a reference to the fragmentmanager from the old activity instance or something Oct 29 20:12:40 evanc you snowboard right? this is cool :P http://www.gizmag.com/ungoverned-powered-all-terrain-skateboard/29574/ Oct 29 20:13:02 technically a skateboard i guess Oct 29 20:13:07 g00s: I cannot imagine that working well, haha Oct 29 20:13:14 :D Oct 29 20:13:17 it's like those mountainboards from the early 2000s Oct 29 20:13:39 http://shop.mbs.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/9/1/91418_-_mbs_pro_95_mountainboard_-_retaliation_2.jpg Oct 29 20:14:01 yeah, not strapping my foot into that :P Oct 29 20:26:34 Hello Oct 29 20:26:52 i have a littel problem with my ListView Oct 29 20:27:22 my entry er white an the background it was white too. Oct 29 20:28:21 The text of the entries should be black. Oct 29 20:34:18 anoyne?? Oct 29 20:34:22 have anyone rooted their s4 with heimdall? Oct 29 20:35:05 Ok my Activity is here: http://pastie.org/8440977 My custom ArrayAdapter is here: http://pastie.org/8440981 What the hell is this not working, I've been looking at it for two hours. I need a second pair of eyes. Oct 29 20:35:17 (GridView not loading its views with custom adapter) Oct 29 20:36:06 is there ever a time where a scheduled Alarm does not fire? Oct 29 20:36:35 when it gets cancelled? Oct 29 20:36:43 explodes, besides that Oct 29 20:36:47 Any quick and easy way to tell if a device is connected to a secure wifi connection? Oct 29 20:36:52 https://gist.github.com/jrm2k6/cd35246efc1fb13d90f9 I have trouble to display a fragment in my framelayout Oct 29 20:36:59 Any idea what could be wrong here? Oct 29 20:37:34 I've got a layout in which I want to display some text, and underneath a list of items (specifically a result set from a database). I'm already showing a similar list of itmes with another view as a fragment. Should I use a fragment view in the layout to accomplish this? Oct 29 20:38:02 jrm2k6, where's mFragment initialized at? Oct 29 20:38:19 better yet, what is it referring to Oct 29 20:39:07 ScottishPig: i think you'd have to have access to wifi settings, and scan android.net.wifi.WifiConfiguration.AuthAlgorithm for the connected WifiConfiguration Oct 29 20:39:25 alexfu: I pass it around Oct 29 20:39:45 alexfu: let me update the gist Oct 29 20:42:14 alexfu: https://gist.github.com/jrm2k6/cd35246efc1fb13d90f9 Oct 29 20:42:22 I remove some code to keep only what is needed Oct 29 20:42:57 i just compiled asterisk 12 certified and all went well on raspbian Oct 29 20:43:39 then i realized that i didnt have openssl-dev installed so no sip_chan, so i installed it ran make menuselect and make again but this time i ran into an error i couldnt quite figure out Oct 29 20:44:37 Omg. Oct 29 20:44:49 no one? Oct 29 20:44:58 one moment Oct 29 20:44:58 I forgot to assign the adapter to the view. Oct 29 20:45:06 That's what cost me 1-2 hrs Oct 29 20:46:10 http://pastebin.com/ifc7LWK6 Oct 29 20:46:35 i installed pjproject but that didnt help Oct 29 20:46:44 jrm2k6_, is displayVideo a method of a Fragment or Activity? Oct 29 20:46:55 alexfu: to answer your second question, it refers to a fragment from where an adapter is created Oct 29 20:47:05 none of those Oct 29 20:47:26 the class where this method is defined extends relative layout Oct 29 20:48:05 jrm2k6_, what's this layout part of? Oct 29 20:48:43 we create instance of this layout (TweetView) in a BaseAdapter Oct 29 20:49:41 And this adapter is used in a fragment, from where we get the mFragment I pass around. Oct 29 20:51:34 Hey, when create an intent that goes to http://twitter.com/... it opens the twitter app on the device (which is good) is there a way to do the same with facebook? some URL it will make the facebook app launcu if it's installed? Oct 29 20:51:41 Wow it sounds too complex just by saying that alexfu Oct 29 20:51:57 jrm2k6_, so you have an Activity with a FrameLayout (container_youtube_video) and you want to add a YoutubeVideoFragment to the FrameLayout? Oct 29 20:52:04 Yes! Oct 29 20:52:12 no wait Oct 29 20:52:22 I was a class extending RelativeLayout, not Activity Oct 29 20:52:53 so where does that RelativeLayout live inside? Oct 29 20:52:55 this relative layout contains a frameLayout in which I want to add this YoutubeVideoFragment Oct 29 20:53:00 the Activity or a Fragment Oct 29 20:53:03 Fragment Oct 29 20:53:08 two levels above Oct 29 20:53:24 Fragment declared an adapter which instanciates this RelativeLayout instance. Oct 29 20:53:45 So you want a nested fragment yes? Oct 29 20:53:49 yes Oct 29 20:53:58 then use getChildFragmentManager Oct 29 20:54:26 not getFragmentManager Oct 29 20:54:33 hm ok Oct 29 20:54:40 I will check what the difference is Oct 29 20:55:01 difference is, getChildFragmentManager is for managing Fragments inside of a Fragment Oct 29 20:55:19 whereas getFragmentManager is for managing Fragments inside an Activity Oct 29 20:56:24 Alright Oct 29 20:56:26 Thanks a lot Oct 29 20:56:29 I m gonna check that Oct 29 20:56:30 :) Oct 29 20:56:46 any idea what this error could be? Oct 29 20:57:07 http://pastebin.com/ifc7LWK6 Oct 29 20:57:20 compiling 11.2 on raspbian Oct 29 20:58:24 Blashyrkh are you in the right channel ? O.o Oct 29 20:58:35 i guess so? Oct 29 20:58:43 almost as confusing as that iOS q we got yesterday lol Oct 29 20:58:51 asterix ? raspbian? uh, android ? Oct 29 20:59:06 debian compiled for raspberry pi Oct 29 20:59:20 ups Oct 29 20:59:22 this is #android-dev ... Oct 29 20:59:27 sry wrong channel Oct 29 20:59:27 this is an Android dev channel Oct 29 20:59:56 bankai_ start to doubt when they thing they really are in the right channel :) Oct 29 21:00:01 *think Oct 29 21:09:04 oh man i was having such huge dramas last night getting junit to play happy with my project in IJ. I get to work and do the same thing with a different project and it works first time *sighs* Oct 29 21:19:50 Anybody have seen this before? http://pastebin.com/ypSFThKe Especially in the context of google youtube data API Oct 29 21:20:04 I m not explicitely using any of the classes mentionned Oct 29 21:23:07 Howdy, what's considers a good uninstall ratio? I have about 35% uninstall/installs ratio... Oct 29 21:24:53 jellybee: meaning 65% have it installed or 65% have uninstalled it? Oct 29 21:25:22 evanc: 35% uninstalled Oct 29 21:32:09 hmm? Oct 29 21:40:21 no idea Oct 29 21:40:30 but at least is more than 50% Oct 29 21:40:32 that is good Oct 29 21:45:43 hey everyone, when designing an app for Android API 14 (4.0) and above, I'm transitioning from one fragment, which comprises of a EditText and a picture. The value of the EditText (the text inside) determines the content of a new `screen` I will push, which comprises of a scrollable tabs view with a different fragment for each tab. My question is, should this `screen` be an Activity, or am I... Oct 29 21:45:45 ...better off using it as a Fragment? Oct 29 21:47:27 sorry not using it as a Fragment, creating it as a Fragment. Oct 29 21:48:08 When back is pressed on this new screen, I want to return to the original view, with the EditText and picture, so maybe an Activity would be a better idea? Oct 29 21:48:22 fragments have backstacks too Oct 29 21:48:31 personally thats a design choice Oct 29 21:48:35 most would say fragments Oct 29 21:48:50 StingRay_: Yes! It is exactly a design choice. Oct 29 21:48:54 and I would just ".replace()" + transition a fragment for that Oct 29 21:49:06 depends on the rest of the UI Oct 29 21:49:21 StingRay_: Is there any lit on backstacks for Fragments? Oct 29 21:49:43 I didn't know they had them, so maybe I will use a Fragment Oct 29 22:00:03 i think the n7 sleeve is too tight; its too easy to turn the device on even in its sleeve Oct 29 22:08:09 How can I get a handle to a fragment which is one of my layouts? Oct 29 22:08:32 give it an id Oct 29 22:08:39 findFragmentById(R.id.whatever) Oct 29 22:08:45 canadiancow: thank you Oct 29 22:08:49 g00s, sleeve? Oct 29 22:08:55 i dont have a sleeve D: Oct 29 22:09:49 canadiancow only wears tank tops Oct 29 22:09:50 Yeah, what sleeve? Oct 29 22:18:13 canadiancow this thing : https://play.google.com/store/devices/details/Nexus_7_Sleeve_Black_Gray?id=nexus_7_sleeve_gray_2013 Oct 29 22:20:36 The N7 power button is not in a helpful location - cant push it on a flat surface :( otherwise it's pretty awesome Oct 29 22:21:09 hey capella :) i guess one of the first apps i should install is firefox mobile :) Oct 29 22:21:28 heh There's a convenient new one out :) Oct 29 22:21:39 :D Oct 29 22:21:58 (Mozilla gives me cool toys in lieu of salary ;) ) Oct 29 22:23:41 capella your n7 usb port ok ? Oct 29 22:24:03 Yah - kinda stiff - but functional Oct 29 22:24:25 i have newfound appreciation for my droid-1 usb port, which seems fastened to the exterior metallic enclosure somehow Oct 29 22:25:11 i hate to give motorola credit there, my droid-1 has been through quite a bit; it was a tank, but ugly tank :) Oct 29 22:25:46 motorola makes reasonable hardware Oct 29 22:25:50 but I still hated the droid1 Oct 29 22:25:55 volume and camera keys are stupid... Oct 29 22:26:02 who decided to cheap out by 5c on those parts.... Oct 29 22:29:54 i think the worst about the droid-1 was 256mb ram and touchscreen wildly inaccurate Oct 29 22:30:04 but it was high drp :) Oct 29 22:30:08 *dpi :D Oct 29 22:30:30 now this Ara concept looks pretty cool Oct 29 22:30:39 lets see what moto does with it Oct 29 22:34:01 g00s: gimmicky and not all that realistic without extreme advances and extreme costs Oct 29 22:34:34 I would think something like that is realistic in about 10 years Oct 29 22:34:37 not really now Oct 29 22:34:50 hi Oct 29 22:35:41 i know it's convention to name packages com.example.package, but if i am in australia i should use au.com.example.package? or is this not really required? Oct 29 22:36:20 jasabella, not really required Oct 29 22:36:27 but it'll help prevent conflicts if ever Oct 29 22:37:36 what do the guidelines say? :> Oct 29 22:37:47 standard java conventions Oct 29 22:37:47 Still just your URL, don't add random .com's Oct 29 22:37:59 if you don't own the domain, don't use it Oct 29 22:38:07 come up with some unique crap Oct 29 22:38:36 ahhh so i should use the au prefix then Oct 29 22:38:52 you don't use au. just because you're in australia Oct 29 22:39:00 unless it's some uri you control Oct 29 22:39:10 mmhmm Oct 29 22:40:51 canadiancow only wears tank tops Oct 29 22:40:54 i like to show off my sexy arms Oct 29 22:41:13 g00s, you spent $30 on that? Oct 29 22:41:13 why do you have to own the domain? Oct 29 22:41:18 i bought a case on amazon for like $5 Oct 29 22:41:43 seand, read java coding conventions to understand Oct 29 22:41:54 package naming Oct 29 22:42:13 i'm not going to use com.google or anything, but i'm not buying a domain just to use the package Oct 29 22:42:49 canadiancow which one ? Oct 29 22:42:50 then expect all sorts of takedowns should you collide with an owner of said domain Oct 29 22:43:38 in that case, said owner of said domain can expect to suck my balls Oct 29 22:44:12 yeah, that won't work Oct 29 22:44:15 but you can dream all you want Oct 29 22:44:36 lol seand, you will have headaches if you dont follow the convention, you might end up having to support your users with package comflict Oct 29 22:44:46 costing you time and resources :) Oct 29 22:45:09 There can't be package name conflicts in play store Oct 29 22:45:26 playstore doesnt allow it i suppose :) Oct 29 22:49:13 An app I am porting uses a TabHost for multiple 'screens'. is it wise to replace this with ActionBar + fragments, the AB would be across the bottom of the screen (I read that is looked down upon) Oct 29 22:49:58 brx_: I really think thats silly Oct 29 22:50:09 looked down on, it's at the bottom, obviously it is Oct 29 22:50:31 hi NivenHuH :) i think i know you? Oct 29 22:50:35 and where it is and what it is should be a design decision, not "what they/someone says" Oct 29 22:51:33 when you say design you mean just in terms of aethetics? Oct 29 22:51:49 design is not just look Oct 29 22:51:52 but yes Oct 29 22:52:17 I mean implementation aside, and tech out of the way, what is it, whats it do, where does it fit best Oct 29 22:53:54 e.g. if you were to follow google guidelines for complex apps, using a phone becomes a 2 handed operation, or at the least a very awkward dance with a single hand :) Oct 29 22:53:54 don't get StingRay_ going on design Oct 29 22:54:15 seand, keep it clean please Oct 29 22:54:29 but yeah, if i see a com.canadiancow.* app, i'm sending a takedown request Oct 29 22:54:32 i own that domain Oct 29 22:57:35 if where it is and what it is IS a design decision then I guess by your rational its usually the designer/ux guy that would decide whether AB or TabHost is chosen? Oct 29 22:57:40 cuz thats what i deduce from what you say Oct 29 22:57:56 hell yes thats true Oct 29 22:57:58 100% Oct 29 22:58:09 well not the name of specifics Oct 29 22:58:18 as a designer I may not know the difference Oct 29 22:58:30 but when I explain to you what I want and where etc Oct 29 22:58:32 you would Oct 29 22:58:42 ...right Oct 29 22:58:48 and thats where i am now Oct 29 23:00:12 that's not very nice canadiancow Oct 29 23:00:44 canadiancow, you usually know the deal. Oct 29 23:00:47 what's not very nice? Oct 29 23:00:53 protecting my name? Oct 29 23:01:50 seand you can link to the play store by author (via package name). if you start using somebody else's package prefix, that gets screwed up Oct 29 23:02:03 i think Oct 29 23:02:04 :) Oct 29 23:02:11 are you sure? what's an example link Oct 29 23:02:24 ExpandableListView everybody - if I know the group/child position, how can I then get the "flat position"? I've tried some really weird stuff based on the internet. :-) Oct 29 23:02:50 n20: isn't there a getPackedPosition() or somesuch function? Oct 29 23:03:02 g00s, http://www.amazon.com/gp/product/B00E3ZYWUM/ref=oh_details_o09_s00_i00?ie=UTF8&psc=1 Oct 29 23:03:07 it was $5 when i got mine :P Oct 29 23:03:15 its a crappy case, but it protects it Oct 29 23:03:53 cheers stingray once again you take a massive shit on my question with some half arse monologue that contributes sweet F A \o/ Oct 29 23:04:01 Ge0rG: Yup, not sure what to feed it. I don't seem to get the correct value, as I end up getting 0 all the time (even though I might've selected #3 for example, or #6) Oct 29 23:04:06 looks kinda cool. i only saw one n7 vase at best buy Oct 29 23:04:53 brx_: thats not very nice, I just offered you an opinion from a designer… I will make efforts not to bother in future Oct 29 23:05:34 canadiancow: i don't see how it's in need of protection if you're an independent dev Oct 29 23:05:52 hm, i thought you could link to the store by id=com.foo, guess not. it has to be the whole package name Oct 29 23:06:05 yea and that would just link to the app Oct 29 23:06:06 n20: I'm only getting the packed position from the context menu handler, sorry Oct 29 23:10:46 guys, how do I handle an image that have different versions to each language? Oct 29 23:11:12 what are the locale elements of the image ? Oct 29 23:12:23 but anyways, look at this http://developer.android.com/training/basics/supporting-devices/languages.html Oct 29 23:15:07 i got off lightly there, i was expecting the full cry wanking ex vfx/designer monologue Oct 29 23:16:27 StingRay_: a very styled text Oct 29 23:17:38 Read: WoraArt Oct 29 23:17:41 WordArt* Oct 29 23:18:12 If you can reproduce it in Android, style a String and supply that for every locale or provide a drawable for each locale. Oct 29 23:18:36 The link StingRay_ provided gives you the answers (or rather, one link on that page). Oct 29 23:19:30 kakazza: I can't find the standard for drawables Oct 29 23:19:45 Did you search for "drawable" on the page he linked? Oct 29 23:20:00 Then clicked on the link that said "Go to Y for more information"? Oct 29 23:20:07 Then searched for "drawable" there? Oct 29 23:20:11 seem that was a problem in my project Oct 29 23:20:24 I had no yyy.pnh file in the general drawables folder :-/ Oct 29 23:21:13 brx_: not at all, and not really sure what your wanting to acheive by your comments. not really all that nice Oct 29 23:21:49 Let's discuss this over a pint, mates. Oct 29 23:22:06 Your place in 30? Oct 29 23:23:15 well, why would you even consider tabhost... Oct 29 23:23:27 as for top vs. bottom actionbar, that should be removed from a designers hands Oct 29 23:23:38 aye Oct 29 23:26:00 if the designer is requesting the actionbar go across the bottom, you push back Oct 29 23:26:53 If the designer is requesting that, you point to the design guidelines and tell them to hang themselves. Oct 29 23:27:16 Maybe keep a length of rope around just so you can hand it to them as you explain this. Oct 29 23:37:37 Nilium: pfn you really belive that the google design guidlines are the start middle and end of all things in app design ? and no part of them is "totally wrong ? " btw this is a question not an intent of an argument … I'm just interested to know Oct 29 23:37:56 No. I believe an actionbar at the bottom is just bad, though. Oct 29 23:38:22 they're guidelines, not rules. If you want to deviate from them, I'd like to hear your (very compelling) reasons. Oct 29 23:38:26 that's it Oct 29 23:39:01 well yeah many of them to me make no sense at all Oct 29 23:39:04 Also, Google doesn't do a great job of following them, so I can't make an argument for them being the be-all-end-all. Oct 29 23:39:12 they are not pruduct related design rules/guides Oct 29 23:39:22 they are more like blanked ideals Oct 29 23:39:33 there are plenty of gorgeous apps which deviate from them. There are also plenty of shitty and ugly apps which adhere to them. Oct 29 23:39:35 However, I think it pays to stick to some of the consistent parts (location of elements and colors and such) Oct 29 23:40:03 Also font choice, but I don't think a lot of people every change the font. I hope. Oct 29 23:40:08 Nilium: well I dont agree with that, see if the aim was to be a system application sure Oct 29 23:40:18 or a very integrated platform app yes Oct 29 23:40:24 Or something familiar. Oct 29 23:40:40 Go your own way to the point that it makes something your own, but don't deviate just to deviate. Oct 29 23:41:19 well to me, there is no "this way to do soemthing", thats not design, thats blind following opinions of others Oct 29 23:41:51 a design process is formed from solving a problem in the best way for the user .. thats what I try to do Oct 29 23:41:54 That's why they're guidelines. Oct 29 23:42:14 I know, but people think that they are the start or center of what should be considered Oct 29 23:42:29 On a side note, why the hell do people continue to use DialogPreference as their go-to thing to subclass when adding a new Preference type? Oct 29 23:42:31 now if you have no designer, and no design experience then hell yes Oct 29 23:42:51 I need to really throttle a fair number of people for their use of DialogPreference. Oct 29 23:45:23 question about anylitics api, is it supposed to be realtime ? Oct 29 23:45:49 or only session/screens are realtime ? thinks like events take a while ? Oct 29 23:51:50 jasabella how do you know me? Oct 30 00:15:09 StingRay_, no, but platform look and feel is important Oct 30 00:15:18 there is no reason to deviate unless you have some exceptional reason Oct 30 00:15:22 which is usually not the case Oct 30 00:15:43 in the wild west of android design when everything looked like shit, well, you could do whatever you want and still be considered ok Oct 30 00:16:37 pfn: that wild west was with either programmers doing design, or sht designers Oct 30 00:16:45 In the wild west of Android, when everything looked like shit and copied iOS layouts. Oct 30 00:16:47 and if either are true then yes Oct 30 00:16:50 not following guidelines, imo, is an excuse designers use to make android apps look like ios apps Oct 30 00:16:58 follow the guides, will be better for the users Oct 30 00:17:08 designers are mostly shit Oct 30 00:17:17 no they are not Oct 30 00:17:24 I have seen some amazing designers Oct 30 00:17:43 and in all honesty, most apps lack design Oct 30 00:17:51 those that do follow the guides etc Oct 30 00:18:32 and example is that if you have 1000 apps that do the same thing, follow the visual/usage guides, there is no point to 999 of them :) Oct 30 00:19:41 but besides all that, there are just some very odd choices in both visual and function of the design guides by google anyways Oct 30 00:21:19 usually the main reason im using an app is usually because it accomplishes some goal, not because it has some unique design Oct 30 00:21:48 indeed, but there are other apps that make that goal easier Oct 30 00:21:57 and more attractive to accomplish Oct 30 00:21:57 humm is PreferenceFragment really not in v4? :-/ Oct 30 00:21:59 my current project, 13 tickets, the iOS version 40+. I still get ticket, please make this like the iOS version. "but it's broken!" Oct 30 00:22:04 is my response Oct 30 00:22:45 a lot of our customers still think mobile apps == iOS apps Oct 30 00:22:52 deviation is cool if its actually innovative/makes something easier Oct 30 00:24:36 I just think that this odd blanket "follow the guidelines" is wrong, but thats an opinion, it's just like saying, well copy this exactly and you dont have to design anything, but you can choose a few colors Oct 30 00:24:38 :) Oct 30 00:25:18 there is no way to win this argument; either side can appeal to nebulous ideals, and make qualifications, and counter assertions Oct 30 00:25:38 g00s: hence why I said opinion Oct 30 00:25:58 all I know now, is that following design guidlines … google just fked up play Store app Oct 30 00:26:00 in many ways Oct 30 00:26:10 ways that a proper designer would just cry at Oct 30 00:26:41 well this new playstore app, not sure if it is everywhere yet Oct 30 00:26:48 I only got it yesterday Oct 30 00:28:58 its also confusing, what a designer even is. i see a designer as a graphics designer; but there are a number of roles which overlap - and some require a systematic approach with quantitative analysis of UI / UX, microinteraction, and information architecture. the visible architecture of something has many layers, like the invisible part of software Oct 30 00:30:00 usually UX fails are the result of usability issues, not necessarily choosing the wrong design language Oct 30 00:30:24 i just want the design language to fit with the rest of the platform Oct 30 00:30:27 when in rome, do as the romans Oct 30 00:30:47 g00s: thank god that is not true in the rest of the world Oct 30 00:30:58 or in this case, other platforms Oct 30 00:31:06 the world would be static and boring Oct 30 00:31:55 g00s: that crashlytics is wicked, bugsense wants a premium accounts for proguard stuff, crashlytics dont Oct 30 00:32:11 so it's very very good… really glad you pointed it out Oct 30 00:32:30 * JuiceSSH has been using Crashylitics for a while - it rocks Oct 30 00:32:41 ;) i only have one concern about these libraries - what information is Twitter getting (from my app) from my users Oct 30 00:33:05 i think my users deserve to know that, but i have to dig further Oct 30 00:33:13 JuiceSSH: if only they had some small analytics part, I could ditch bugsense and not have to look at google anylitics Oct 30 00:35:07 Hi, anybody meet this problem? the main activity show the up icon(the left-facing caret) Oct 30 00:36:03 alguien aca habla espaol? Oct 30 00:36:11 hi Oct 30 00:36:15 say is there any possibility to fake "ActiveNetworkInfo" in android, so that it isn't "null"? Oct 30 00:36:28 because of this bug: http://code.google.com/p/android/issues/detail?id=33666 Oct 30 00:40:40 hello Oct 30 00:40:51 listview post() method what should be put inside? Oct 30 00:41:30 Baluse: Nobody here Oct 30 00:41:57 Baluse: a runnable ? Oct 30 00:42:02 like it says in the docs Oct 30 00:42:21 ugh, i just had to ask the library to turn the music off again Oct 30 00:42:24 :) Oct 30 00:42:39 you have music in libraries ? Oct 30 00:42:50 thats odd Oct 30 00:42:53 the library director has decreed all phoenix libraries to have music Oct 30 00:43:05 wow Oct 30 00:43:27 i just want a quiet space, its so damn hard to find Oct 30 00:43:34 yes but what operations should be done with post ? Oct 30 00:43:52 Baluse: erm, anything inside the runnalbe ? Oct 30 00:43:54 i know that scrollto etc but notifing adapter? Oct 30 00:44:00 what makes sense Oct 30 00:44:42 Baluse: sorry not sure what you are asking Oct 30 00:48:01 Ok pals, this really sucks, but what is a better way to do it? https://raw.github.com/desmin88/uCatholicProject/master/uCatholic/src/main/java/com/ucatholic/android/adapter/endless/SaintEndlessAdapter.java Oct 30 00:51:06 Basically the issue is whats the best way to get the pagecount variable before i run the task so its not guesswork Oct 30 00:55:36 :( nobody have met the same problem with me? Oct 30 00:57:16 maven_: what is the prob Oct 30 00:58:52 the main activity show the up icon(the left-facing caret) Oct 30 01:02:27 paste your code please Oct 30 01:05:10 I have a little problem. My fragment has retain mode true. Oct 30 01:05:39 And I scroll to bottom when a new item is added. How can I scroll to bottom at orientation change ? Oct 30 01:05:51 but only if it was at bottom Oct 30 01:06:38 maven_, ? Oct 30 01:10:42 I am sorry , my boss call me just now , this is the androidmnifest.xml https://gist.github.com/7225619.git Oct 30 01:15:46 how about your activity code? Oct 30 01:18:17 https://gist.github.com/apachemaven/7225702 Oct 30 01:18:32 getSupportActionBar().setDisplayHomeAsUpEnabled(true); Oct 30 01:18:36 :/ Oct 30 01:18:37 The activity is rather simple, I just call the getSupportActionBar().setDisplayHomeAsUpEnabled(true); Oct 30 01:19:03 why do you do that?> Oct 30 01:21:02 http://developer.android.com/training/implementing-navigation/temporal.html follow this guide Oct 30 01:21:30 I want to provide the `up` feature for my app Oct 30 01:21:37 remove that in your main activity Oct 30 01:21:43 add it in the 'child' activities Oct 30 01:21:44 so to speak Oct 30 01:22:23 you mean remove `xxx.setDisplay.....(true)`? Oct 30 01:22:35 oui Oct 30 01:22:43 just try that out Oct 30 01:24:16 When you set homeasup to true in your 'main' activity Oct 30 01:24:22 where do you expect that up to go to? Oct 30 01:24:30 OMG, it worked. Why?? This guide says I have to add the line :http://developer.android.com/training/implementing-navigation/ancestral.html#up Oct 30 01:24:55 I just explained. Oct 30 01:25:14 Your 'main' activity has no parents. Where do you expect the up caret to go to? Oct 30 01:25:30 Your 'child' activities can make use of it, returning to your 'main' activity Oct 30 01:26:00 You mean that the line 'setDisxxx(true)' is used for the child activity to go back to the home? and just for the child? Oct 30 01:26:21 in your case yes Oct 30 01:26:27 Ok, I misunderstand it before, thank you very much. :) Oct 30 01:26:40 Just think about it logically rather than copy pasting from a guide Oct 30 01:27:35 That's right. :( One more question , Oct 30 01:30:17 I have to add this for each child activity, any way to avoid this kind of re-configuration? Oct 30 01:34:04 no Oct 30 01:35:52 Got it, thanks. :) Oct 30 01:43:47 http://www.usatoday.com/story/tech/2013/10/29/blackberry-bid-facebook/3303271/ Oct 30 01:49:34 hummm interesting Oct 30 01:50:26 StingRay_ ""Android failed for a long time to define a design aesthetic, and so apps are often inconsistent with the OS and with one another in a way that iOS is not. [Google] is now improving on that, but it may be too late," he said. "Ubuntu has defined a strong design direction and consistency from the start, and that will follow through into applications." Oct 30 01:50:34 http://www.fiercedeveloper.com/story/what-ubuntu-opportunity-looks-mobile-app-developers/2013-10-29 Oct 30 01:50:54 so we see, how important this is ;) Oct 30 01:53:25 after all, i believe thats one of the reasons they brought Matthias on board Oct 30 01:54:19 *Matias Oct 30 01:55:14 g00s: again that just like mine is an "opinion" Oct 30 01:56:11 there is a relevance factor I think Oct 30 01:56:25 of the function and how close that function or functions are to the OS standard Oct 30 01:56:56 and example is, if I were to do an app that alters lets say the LED notification, so for sms/calls then yes Oct 30 01:57:12 my goal would be to associate it as much as possible with what the user sees in the OS Oct 30 01:57:49 on the flip side, and app that may replicate but sit apart for the standard OS (replacement of function in a unit) Oct 30 01:58:12 does not benefit in any way from following the OS in some cases Oct 30 01:58:51 but the whole point is not 1 or the other, it's about employing design principals rather than just blind following guides Oct 30 01:59:36 after using ubintu mobile/touch I actually really dislike it Oct 30 01:59:41 on a whole Oct 30 01:59:59 although from an artist point of view it looks good Oct 30 02:01:10 hi guys. i'm sending 12 megs of data a second to my nexus 7 tablet over both a TCP socket or UDP (i've tried both). after about a second, the socket hangs for a long time, up to half a minute. no more messages come through (still being sent by the desktop program sending them). after 30 seconds or so it starts to recieve more messages, then it eventually hangs again. rinse and repeat. anything i'm doing obviously wrong? Oct 30 02:11:59 Hey pals. Whats a better way to do this rather than just setting postcount to 1000 until we get the actual number? https://raw.github.com/desmin88/uCatholicProject/master/uCatholic/src/main/java/com/ucatholic/android/adapter/endless/SaintEndlessAdapter.java Oct 30 02:15:57 is there a customary name for the first activity? main? or the appname? Oct 30 02:19:10 something ending in Activity :) ie: MainActivity or SplashActivity or AppnameActivity Oct 30 02:20:17 i'd say go with what makes the most sense. If that activity is just some kind of gateway to different areas of the app, then maybe MainActivity... if its the first thing you see that you use to login, perhaps LoginActivity, etc Oct 30 02:20:31 and the laytout is activity_name Oct 30 02:20:41 same situation as before Oct 30 02:20:44 oh Oct 30 02:20:52 I like to relate the layout to what it belongs to Oct 30 02:20:53 why is adt suggesting weirdness? :) Oct 30 02:21:10 well..I'd probably listen to ADT over me Oct 30 02:21:26 it's suggesting MainActivity for activity name and activity_main Oct 30 02:21:46 it helps if you have a big project to start each layout with what it belongs to, ie: activity_login.xml or fragment_gallery_browser.xml Oct 30 02:21:47 whatever Oct 30 02:21:49 i know i can name it anything i want, just wanna know if there are conventions, like the .net naming conventions Oct 30 02:22:09 ok Oct 30 02:22:35 personally I think a lot of that goes out the window once you get onto a team and you have to start talking about conventions... there may be an android convention for this but I havent seen it (my own fault, if that's the case) Oct 30 02:23:04 teams I have been on have come to an agreement of how things are going to be named and we just stick to it and that seems fine Oct 30 02:24:36 what I said earlier, about having "activity_login.xml" or "fragment_gallery.xml" etc, helps because it keeps the fragment layous and activity layous situated in the project heirarchy so you can find things very easily Oct 30 02:24:53 cant belive I spelled it "layous" 2 times in a row Oct 30 02:24:56 * tnzr stops talking Oct 30 02:33:47 Anybody meet that android does not return the latest activity if I use the singleMode for an activity? like described at this post: http://stackoverflow.com/questions/2417468/android-bug-in-launchmode-singletask-activity-stack-not-preserved/3002890#comment29217180_3002890 Oct 30 02:47:37 i realise this is subjective but are the nexus devices better for developing with than other devices? or does it make no difference? Oct 30 02:47:52 uhh Oct 30 02:47:56 not really better Oct 30 02:47:57 no Oct 30 02:48:22 I would say they are for 1 factor Oct 30 02:48:36 almost day 1 android version update, time to test and prep no ? Oct 30 02:49:32 ehh Oct 30 02:49:39 for that i would say yes Oct 30 02:50:01 I guess get a nexus if you need almost day 1 android updates Oct 30 02:50:31 or indeed longer term support than most devices Oct 30 02:50:54 I'm on a galaxy nexus on latest version of android :) s3 not doing so well on that front Oct 30 02:51:02 but my phone is much older I think Oct 30 02:51:09 i've only got experience of a nexus 7 and an old samsung galaxy and i found there were loads of developer options and functionality on my nexus. but maybe that's the case for all new android devices Oct 30 02:51:13 s4 has a google edition hmmm Oct 30 02:51:18 will there be more google edition phones? Oct 30 02:51:46 htc one has one too Oct 30 02:51:56 ye Oct 30 02:51:56 a Oct 30 02:52:16 but yeah I want the Nexus 5 more than anything else Oct 30 02:53:00 wait for the Nexus 5 Oct 30 02:53:10 Whats a better way to do this rather than just setting postcount to 1000 until we get the actual number? https://raw.github.com/desmin88/uCatholicProject/master/uCatholic/src/main/java/com/ucatholic/android/adapter/endless/SaintEndlessAdapter.java Oct 30 02:53:15 don't get anything else Oct 30 02:59:29 You can also just shell out for the developer models of phones and wedge whatever you want/need to in there Oct 30 02:59:38 (which is more or less the same as the nexus stuff, I'll admit) **** ENDING LOGGING AT Wed Oct 30 02:59:58 2013