**** BEGIN LOGGING AT Fri May 10 02:59:58 2013 May 10 03:04:45 i think i found strange as it is: it's a phonegap app, the demo with the flashing div. I removed the div and probably the app could get killed to allow reinstallation May 10 03:05:51 i reinstall apks from eclipse all the time while the app is running. it takes care of killing the app (sometimes flickering to the previously used app for a little while) and then installs and relaunches May 10 03:07:26 kevinb, me too. but this was really strange. there are some messages like "the app may be doing to much work in the main thread" May 10 03:07:47 that's why i had the idea of removing the flashing div May 10 03:08:19 the "too much work in the main thread" warning is because of dropped frames, it's unrelated to installing May 10 03:08:54 what command is issued by eclipse to kill the app before reinstalling? May 10 03:09:35 i suspect eclipse just installs and lets the package manager kill the app, but i'm not sure on that May 10 03:10:11 adb shell am May 10 03:23:31 <_August_> does anyone know where a tutorial is for this type of menu? http://view.jquerymobile.com/1.3.1/dist/demos/widgets/panels/ May 10 03:23:55 <_August_> im finding everything for top tabs and the menu at the bottom of the screen but nothing with the push panels May 10 03:24:59 It appears that contrary to the reccomendation of having a separate proejct for tests, the way you run ui tests expects them to be in the same project as your code: http://developer.android.com/tools/testing/testing_ui.html#builddeploy May 10 03:32:38 Hi, anybody know how to download an app from Google Play directly to my PC? I just wanna study some of its icons. May 10 03:33:09 that would be in violation of the terms of service May 10 03:33:12 what app is it? May 10 03:33:29 Google I/O 2013 May 10 03:33:46 code.google.com/p/iosched or something like that May 10 03:33:58 pfn: Unfortunately that's only the 2012 version May 10 03:34:25 then wait for it to be updated May 10 03:34:33 or pull it off of a rooted phone May 10 03:35:14 you don't need root to pull an apk for a non-paid app May 10 03:35:16 hrm, the directories are usually readable May 10 03:35:30 adb pull /data/data/-1.apk usually, sometimes -2.apk May 10 03:35:33 the 2013 version won't be open sourced for months yet unfortunately May 10 03:35:33 just adb pull /data/app/com.google.ioschedwhatever.apk May 10 03:35:49 err yeah /data/app not /data/data. ignore me. May 10 03:38:03 hey so if my app sends an SMS, and during send the user turns off the screen, do I get the status back or is it lost? May 10 03:38:16 or if I get it back, how do I get it back? May 10 03:38:41 cool thanks May 10 03:59:37 anyone here have good experience w/ the google contacts api May 10 03:59:54 trying to grab all groups including system groups May 10 04:21:44 hey everyone, how are you doing? May 10 04:22:09 I was trying to build an N4, but I'm running into difficulties May 10 04:22:35 I'm getting stuck at the initial google logo and have no idea how could I check what's wrong May 10 04:22:53 the kernel builds without error using linaro gcc 4.8.1 with -O3 May 10 04:23:20 afterwards I've extracted the ramdisk from my current boot.img using abootimg May 10 04:23:47 whatnot: #android-root May 10 04:24:18 oh okay thank you May 10 04:24:26 I accidentally the topic :V May 10 04:24:54 what is library usually used to send emails in Android? May 10 04:42:39 In an activity with car info, I have a button for updating the info (another activity is executed here..). When I leave activity #2 (i.e. updateInfo activity), I must update values in the first activity. Where should I do it? I've tried to put the update method invocation after startActivity(activity #2), but didn't work, have also tried in onResume(). May 10 04:43:30 superlinux: can't you use a stock intent? May 10 04:43:56 mecko: i think you want to use startActivityForResult May 10 06:23:07 Hi all, I have an issue with javascript content on a browser, it's causing an ELASTIC effect when scrolling May 10 06:23:20 Also, can't scroll on document update. May 10 06:40:25 how is the R.style in the demo project of ActionBarSherlock generated? i looked into the res folder, yet don't see a folder named "style"... May 10 06:40:43 res/values/styles.xml May 10 06:41:07 and also res/values/themes.xml (themes are just special types of styles) May 10 06:43:58 then why there are so many vars in class style: http://codepad.org/H3RDdGsY, while the themes.xml is so simple: http://codepad.org/VrboVxDT ? May 10 06:44:12 JakeWharton, May 10 06:44:28 because styles.xml has a lot May 10 06:46:48 hey guys May 10 06:46:49 there is no styles.xml in the demo project May 10 06:46:58 I'm using an intent to make a http call to my server May 10 06:47:04 how do I add http params May 10 06:47:11 like an Accept: header May 10 06:47:14 zhangxaochen: they come from the library itself May 10 06:47:22 and an Authorization: OAuth May 10 06:47:27 resources are aggregated from all of the library projects that an app depends on May 10 06:49:33 thx JakeWharton May 10 07:07:38 Does anyone knows a good tutorial on ViewPager widget without fragments, just switching between views? May 10 07:08:59 please help me May 10 07:09:20 All the tutorials i could find were using fragments for pages May 10 07:09:31 I'm not sure if you can use it without fragments (?) May 10 07:12:57 that's not good :( May 10 07:13:30 you tried extending PagerAdapter and override its intantiateItem method? May 10 07:14:11 ^ nomo May 10 07:15:57 no May 10 07:16:11 could tell me more, i'm new May 10 07:19:43 why don't you want to use fragments? :) May 10 07:20:40 I'm using fragments and I need to use a viewpager inside of one of them. May 10 07:22:04 nomo: isn't that supported now that we have nested fragments? May 10 07:23:05 nomo: looks like it is possible at least https://github.com/marsucsb/nested-fragments May 10 07:23:14 nomo: no idea if it works in your situation though May 10 07:23:41 Ok, thank you. I will study. May 10 07:24:42 you should prefer views over fragments in that situation May 10 07:24:52 avoid child fragments at all costs May 10 07:25:56 JakeWharton: if it is that awful, why did they (google) bother to implement nested fragments? May 10 07:26:27 i haven't tried it myself either, but would be interested to know what gatchas await May 10 07:26:31 because they already committed to fragments and there was no other logical way to do it? May 10 07:26:58 you seriously think nesting three state machines that are extremely volatile is a good idea? May 10 07:27:40 using Views in a ViewPager isn't that difficult, it's much easier than using fragments or nested fragments May 10 07:27:41 how to use views in a viewpager? I couldn't find tutorials without fragments. May 10 07:27:52 Please help me. May 10 07:27:54 depends on how they are implemented. nothing wrong with nested state machines May 10 07:27:56 I'll write you one May 10 07:28:05 g00s: spoiler alert: poorly May 10 07:28:36 JakeWharton: ok, haven't really tried using the nested fragment stuff yet so I'll take your word for it =) May 10 07:29:05 appel1: it's fragile. you have to be doing something extremely simple for them to work May 10 07:29:58 JakeWharton: ouch, because you'd think it is when you're doing something complicated you'd want to use them May 10 07:32:38 my experience with android; and its just my experience; is that its best to minimize the API surface used and stick to very simple things May 10 07:32:54 JakeWharton: what do you think about swiping (left, right) listview May 10 07:34:00 i'm still trying to figure out why the old iosched 2012 code seems to do a lot of its UI updates as 'deferred runnables' May 10 07:34:01 https://gist.github.com/JakeWharton/4e9e51a367d529a984e9 May 10 07:34:13 nomo: ^^^ May 10 07:34:49 thanks :) May 10 07:35:00 g00s: because synchronous is slow May 10 07:35:39 ok, its not to get around some race condition ? May 10 07:36:38 i'll try to find it May 10 07:36:43 depends on how you define race condition May 10 07:36:59 the display is trying to refresh and you're trying to do slow things to update the UI May 10 07:37:08 the ultimate and ongoing race condition of all apps May 10 07:38:53 nomo: ViewPagers need IDs so you're probably better off inflating one than creating it programmatically May 10 07:38:59 forgot about that when I whipped up my sample May 10 07:39:36 this function, 'tryExecuteDeferredUiOperations()' at http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/SessionDetailFragment.java#414 May 10 07:39:59 is called in quite a few places, but its only this fragment and one other they do this May 10 07:40:07 anyone know if there's a day to import google io talks into my google calendar easily? May 10 07:40:28 ah, it seems like menu related code May 10 07:40:42 i wonder if its to get around that fragment not contributing menu items thing May 10 07:41:04 ...and you were asking about the quality of the state machines May 10 07:41:12 fragments == train wreck May 10 07:41:29 this is iosched 2012, no nested fragments :D May 10 07:41:39 i didn't say nested fragmnets May 10 07:43:09 the documentation on fragment workarounds would be longer than the documentation on fragments, if there were any that were useful May 10 07:43:42 ha May 10 07:44:07 not sure why they thought a giant, over-complicated state machine with zero introspection and ridiculous, under-documentation, non-compile-time enforced requierments were a good thing May 10 07:46:29 are square planning on forking android any time soon? since the stuff you guys make seems to be like at least half of my application code anyway May 10 07:49:40 stork: http://neugierig.org/content/unix/ May 10 07:51:01 heh May 10 07:51:46 our code makes up the boring half (hopefully) leaving you to be creative and innovative on the fun half May 10 07:52:31 so there are 15 sessions at io that i'm interested in May 10 07:53:05 I booked a conference room for two hours a day for the two weeks after I/O and am holding viewing parties May 10 07:53:57 the thing I'm most interested in is learning to do design, I think that's what's holding me back the most atm. I can more or less botch together half-decent solutions code-wise but I'd really like to be able to do design mockups as well. May 10 07:54:40 i think there is two or three sessions that will be all or partially focused on that, right? May 10 07:55:16 I think so yeah May 10 07:55:28 do you guys do many design mockups? May 10 07:56:23 yeah. our designers are usually ~6 weeks ahead of developers so they can design, prototype, and experiment long before we have to implement anything. this way things are relatively calm and not in flux May 10 07:56:53 though a lot of our designers are trained in iOS so there's still a bit of interpretation to be done on our part. and they're very receptive to what we feel is appropriate for the platform May 10 07:57:10 that sounds good. do you know what software they use to do mockups and things? May 10 07:57:33 JakeWharton: may I ask, how many dedicated iOS designers and android designers you have, and how many do both? May 10 07:58:17 i would think any good designer could do both May 10 07:58:42 it's split by product not platform. there's 4 or 5 on Register. two are exclusively for tablet and the others are do both. they're getting the hang of 9-patches and dps more and more every release May 10 07:58:43 same as any good developer can do iOS and android evelopment May 10 07:58:57 though from my experience you will mostly seperate devs for both systems May 10 07:59:19 timroes: things are certainly getting more complicated :P May 10 08:00:58 and even worse (from my experience), companies somehow expect that iOS and android dev can be done by the same ppl in the same time, they somehow expect it to be like webcoding and doing iOS and android is like doing a webpage for firefox and chrome. But they wouldn't expect the asp.net guys to do their JavaEE stuff.. May 10 08:02:05 and with companies i mean the companies, giving out projects as clients (hopefully not the one's really doing the work) May 10 08:02:33 timroes: even worse is that some require the apps to look and behave the same so you end up with ugly hacks and apps with really strange/unnecessary permission requirements on android May 10 08:04:02 okay luckily we do mainly android dev, and pretty less iOS dev (guess we have 1 iOS dev on 10 android devs) so the projects we get are normally not, doing iOS and android the same. And if I trust our head of the department enough to decline such projects :D May 10 08:05:02 speaking of iOS, i hope iOS 7 also sees Obj-c with namespaces May 10 08:05:20 hi everybody May 10 08:05:24 let's not speak of iOS May 10 08:05:25 oh oh ! May 10 08:05:42 JakeWharton: good idea :) May 10 08:05:46 have a slight problem here.. i think it has to do with the compatibility of fragments with 2.3.4… May 10 08:05:47 http://pastebin.com/x9eyXNK0 May 10 08:06:04 line 31 May 10 08:06:43 so should i code some sort of check to check the android version and code the maps section using a legacy layout? I.E. may view and overlay May 10 08:06:52 mapview* stupid autocorrect May 10 08:07:59 Tricknology: what class does Homing extend? May 10 08:08:13 activity May 10 08:08:18 it works on my S3 May 10 08:08:27 just not my roommates motorola that runs 2.3.4 May 10 08:08:43 Tricknology: you use the support lib? May 10 08:08:55 Tricknology: framents were added in api level 11, you need to use the support library May 10 08:08:58 fragments May 10 08:09:01 android.support.v4.app.FragmentActivity May 10 08:09:05 ? May 10 08:09:18 i commented it out because for some reason i couldn't get it to work.. ill try again though May 10 08:10:16 AndroidRuntime(19936): Caused by: java.lang.ClassCastException: com.google.android.gms.maps.MapFragment cannot be cast to android.support.v4.app.Fragment May 10 08:10:20 yeah, that's why i took it out May 10 08:11:22 Tricknology: you need to use the support library all the way, I guess you need to use SupportMapFragment May 10 08:11:46 in the xml? ok May 10 08:12:09 http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html May 10 08:13:10 err.. getting NPE here now "map = ((MapFragment) getFragmentManager().findFragmentById(R.id.the_map)).getMap();" May 10 08:15:05 Tricknology: probably because you're not using getSupportFragmentManager May 10 08:15:07 Tricknology: http://developer.android.com/tools/extras/support-library.html#Using May 10 08:15:42 thanks very much, i stopped the project for 6 months and everything has changed :/ May 10 08:15:46 how do i stay current? May 10 08:17:00 Tricknology: fragments are about two years old, so not exactly new =) May 10 08:17:29 hah maybe i passed it up because i thought "nah ill never need that" May 10 08:17:56 ;) May 10 08:18:39 wishful thinking May 10 08:24:25 SupportMapFragment cannot be resolved to a type :( May 10 08:27:17 nvm, got it.. needed import com.google.android.gms.maps.SupportMapFragment; May 10 08:34:52 looks like TestFlight is now out of beta May 10 08:50:53 hey fellas, how would I go about telling android to "chill out" for a bit while the location.getAccuracy() settles down? May 10 08:52:12 Tricknology: look for reto's blog on geolocation May 10 08:52:22 on the official android blog May 10 08:53:18 like.. i know i can have something that averages the change in accuracy, and once that is below a threshold then say "ok go" but I'm wondering what's an acceptable time to wait? should i do it form onLicationChanged? or a timed loop? May 10 09:24:55 I'm just starting to learn some java and it strikes me as very restrictive and old school... is it, or am I getting the wrong impression? May 10 09:25:11 how? May 10 09:27:07 you're not wrong on that, friend. May 10 09:27:19 explain?? May 10 09:27:28 no variable length strings? having to declare things and then also allocate memory before using them... rather than operators having to say things like java.util.Arrays.copyOfRange, etc. May 10 09:27:45 wait, no variable length strings? May 10 09:27:57 java strings are immutable May 10 09:28:12 right, what's up with that? May 10 09:28:16 immutability in strings is fine May 10 09:28:19 use stringbuilder or that other thing to append and stuff May 10 09:28:27 I didn't get up to that May 10 09:28:32 No unsigned integers, so restrictive, I can't handle it May 10 09:28:34 but it seems very clunky to have to do something like that May 10 09:28:52 just asking... you guys don't find it restrictive? May 10 09:28:58 nope May 10 09:29:03 * Sonicadvance1 hates Java May 10 09:29:11 what else do you program in Zharf? May 10 09:29:14 immutability of strings is probably least annoying element of Java May 10 09:29:32 for the record p_l|omoikane , what do you think is the most ? May 10 09:29:40 step up to the mike ! May 10 09:29:47 nesoi, various things, c++, c, python, groovy... May 10 09:29:50 after ruby this at least starts off seeming super inconvenient May 10 09:30:06 I find it pretty comforting in a way. I like java, for all it's faults, but I wish they'd hurry the fuck up and update it (closures, better syntactic support for oft-repeated patterns) May 10 09:30:07 so how about comparing this to python... you don't mind it? May 10 09:30:31 considering that python is utter crap... May 10 09:30:35 stork: yeah but … not like we're going to see that on android any time soon May 10 09:30:50 indeed May 10 09:30:58 g00s: single inheritance without any good way around it (like Ruby modules), lots of boilerplate that can't be abstracted without some really tangled shit, etc. May 10 09:31:13 jdk 8 is 2014; wouldn't be surprised if by 2016 android underwent spring cleaning XD May 10 09:31:14 stork, I agree May 10 09:31:38 lack of generalized booleans, the type system is annoying, etc. May 10 09:31:48 C/C++ > all May 10 09:32:15 * p_l|omoikane throws up on Sonicadvance1 for C++ May 10 09:32:15 I mean, even PL/I had variable length strings, and that was like 1972 or something May 10 09:32:17 g00s: one can only pray. Sick and tired of java6 by now :p May 10 09:32:24 the only really annoying thing I find about java is that generics use type erasure and are therefore useless May 10 09:32:28 p_l|omoikane, mmm, do it more May 10 09:32:39 nesoi: immutable strings actually make several things easier May 10 09:32:48 like what p_l|omoikane? May 10 09:32:53 I don't understand why you have a problem with java strings being immutable, this is a strange concept to me. May 10 09:33:14 aren't python strings immutable too ? May 10 09:33:15 nesoi: for example, immutable strings make it easier to support variable-length encoding May 10 09:33:27 how so? May 10 09:33:46 nesoi: consider the issue of editing in-place an unicode string May 10 09:34:10 (hint: consider combining codepoints and pairs) May 10 09:34:28 I'm not following it :( May 10 09:34:54 nesoi, just use StringBuilder/StringBuffer and don't make an issue out of it... immutability is a good thing :) May 10 09:35:16 nesoi: in 1970's, strings were simple. And limited. Today, we have to support much more complex stuff than what fits in 8 bits of a hollerith punched card May 10 09:35:41 I'm not making an issue of it... just wondering whether, when really familiar with java, it seems fun to work with, or if it is frustrating and restrictive even when you know it? May 10 09:36:03 nesoi: Due to other languages I know, it's annoying me a lot May 10 09:36:12 I wouldn't say either May 10 09:36:29 to me java's fine but it's not necessarily fun May 10 09:36:36 and I already mentioned my biggest annoyances May 10 09:36:37 it's too trivial to be fun May 10 09:37:07 Hi guys.. are there any tools that can show estimate of downloads per day for apps in play market? I mean not my apps May 10 09:37:16 but it's not about fun, it's about what tool gets your job done the best May 10 09:37:33 to me, it's fun if a took gets the job done easily without contortions May 10 09:37:52 easy is boring May 10 09:38:00 not to me. I'm lazy! May 10 09:38:43 java is easy though, and with the right ide really fast to develop in May 10 09:39:24 what's the right IDE? May 10 09:39:36 intellij idea :p May 10 09:39:51 ? May 10 09:42:23 i find android more painful than java, by far May 10 09:42:26 oh. much better than eclipse? does it support the debugging and logcat etc? What's better about it? May 10 09:43:43 when i consider the developer experience for android; java is far back there as a concern. although i wish they would work something out with oracle May 10 09:44:48 ok, it does support that stuff. what do you like better about it compared to eclipse Zharf? May 10 09:47:04 nesoi, pretty much everything May 10 09:47:11 although it's been years since I used eclipse :) May 10 09:47:32 Zharf: you're missing so much 9.9 May 10 09:47:40 so much clunkyness? May 10 09:48:02 you're missing the goodlulz of the ADT May 10 09:48:10 like what May 10 09:48:26 9.9 is sarcasm right ? :P May 10 09:48:36 no clue :p May 10 09:48:41 the ADT is a steaming pile of crap May 10 09:48:45 :) May 10 09:48:55 buggy and untested - like the rest of android May 10 09:48:58 then I understand why you think andriod dev is so painful ;) May 10 09:49:20 android's really the first platform that I find comfortable to develop for May 10 09:49:34 hmmm... interesting May 10 09:50:14 p_l|omoikane: do the android logs get written to flash ? or are they in memory buffers only ? May 10 09:50:32 written to disk, i guess May 10 09:52:19 Hey all looking at developing an app for a tablet however, on distribution not all locations may have a wifi connection is there a way i could save onto device memory and auto transmit on wifi connection? May 10 09:52:24 g00s: memory buffers, afaik May 10 09:53:01 Zharf : do you use community edition or ultimate edition of idea? May 10 09:53:08 likelihood is i will be transmitting to a server-side PHP file :) May 10 09:53:39 community edition May 10 09:53:43 it looks like they support android in community edition May 10 09:53:56 g00s : you also recommend it? May 10 09:54:14 i'm using eclipse and trying to get away from the ADT May 10 09:54:32 have you tried that inteillij idea ? May 10 09:54:42 just poked it May 10 09:54:56 not enough to have an opinion May 10 09:54:59 nesoi, ultimate May 10 09:55:10 Zharf : for android dev, what's the difference? May 10 09:55:15 nothing May 10 09:55:22 :) May 10 09:59:53 maybe I'll give it a try... thanks for the tip! May 10 10:09:18 arhhhhh my code is such a messy¨ May 10 10:09:20 -sy May 10 10:09:22 +s May 10 10:09:23 !! May 10 10:09:27 anybody? :D May 10 10:13:13 hirsty, the short answer is that yes, you can do that May 10 10:14:15 would they need to send it off manually? and obv if they close the prog fully id need to detect if the temp file exists andf then send it off first or prefill May 10 10:15:14 there are a number of ways you could go about it, but no, it could be fully automated May 10 10:15:36 my first thought would be a service that periodically checks for internet connection May 10 10:15:55 any way to click a button but open a spinner? May 10 10:16:00 but a broadcastreceiver might be able to detect that, i can't remember May 10 10:16:11 what would be the best way? :) basically they will be filling in Risk Assessments which will need to be posted to our db ASAP May 10 10:16:20 nevermind performclick May 10 10:17:07 probs wont be able to view it though as our pdf generator is based online :/ May 10 10:18:06 this might be a good place to start: http://developer.android.com/reference/android/net/ConnectivityManager.html May 10 10:22:51 well it hasnt started development atm so ill probs be back to ask :) May 10 10:23:02 just in prototyping stages atm May 10 10:26:17 WHY IS TIME PICKER SO FUCKING BIG May 10 10:26:19 excuse my language May 10 10:27:14 because now you're going BIG TIME ! May 10 10:28:20 its .. horrible May 10 10:28:25 awww it hurts the eyes its so ugly May 10 10:28:27 help me g00s May 10 10:30:44 g00s I need a user to pick date and time May 10 10:30:58 you're fucked May 10 10:30:58 and timepicker is probably so ugly and huge and annoyning that I refuse to use it May 10 10:31:01 come on! May 10 10:31:35 can I set timepick on datepicker? May 10 10:31:37 :( May 10 10:32:36 lol and if I force it smaller it doesn't change size it just removes half of it May 10 10:34:16 alright on a serious note.. g00s May 10 10:34:28 I'm making a table and inserting 1700 rows.. they have like 2 string values and one int each May 10 10:34:35 and its inserted with something like 3-4 a second May 10 10:34:44 that doesn't seem right May 10 10:41:38 probably slow. insert in batches of 100 (in one transaction) May 10 10:43:25 that should help performance ? May 10 10:49:37 my droid-1 can insert several thousand records/sec May 10 10:49:45 hey guys, i'm having this problem with my spinner. there is only 1 item in it. when i select it, i would like to system.out the value. i'm using onitemselectedlistener(). when the activity is created there is a system.out but it won't fire anymore when i reselect the item from the spinner.. any ideas as to what's going on? May 10 10:50:52 can't debug here because it's with a mapview, and it's horrendously slow May 10 10:57:10 hello guys May 10 10:57:33 I am C++ developer and I want to contribute to Android wireless dialog May 10 10:57:47 about adding some sorting and filtering options May 10 10:58:10 e.g. sort by name, power or access May 10 10:58:32 can anyone help me with that? I haven't contributed to Android yet May 10 10:58:56 sry i disconnected when you were describing it May 10 10:59:10 from hello guys to e.g.... May 10 11:12:06 mesh.. i figured out my little problem.. May 10 11:12:25 1) make a custom spinner and handle the callbacks for each item clicked.. no way May 10 11:14:16 2) make a default element in the spinner at position 0, when the spinner is clicked, spinner.setSelection(0); then in spinner.onItemSelected() if (position !=0){//code} May 10 11:14:22 @Tricknology May 10 11:14:34 yo tucnak May 10 11:14:41 hello guys May 10 11:14:41 I am C++/Python developer and I want to contribute to Android wireless dialog May 10 11:14:41 12:57 May 10 11:14:41 Tricknology left the room (quit: Read error: Connection reset by peer). May 10 11:14:42 12:57 May 10 11:14:42 tucnak May 10 11:14:43 about adding some sorting and filtering options May 10 11:14:43 12:57 May 10 11:14:44 Tricknology [~Tricknolo@66-215-183-201.static.rvsd.ca.charter.com] entered the room. May 10 11:14:44 12:58 May 10 11:14:45 MroiZo left the room (quit: Quit: Leaving). May 10 11:14:46 12:58 May 10 11:14:46 tucnak May 10 11:14:47 e.g. sort by name, power or access May 10 11:15:31 wireless signals? May 10 11:15:35 yup May 10 11:15:37 like 802 May 10 11:15:44 nope May 10 11:15:49 but possible May 10 11:16:00 wireless comm signals? i have no idea May 10 11:16:07 firstly, I am about None/WEP/WPA sort May 10 11:16:32 sometimes when I want to catch wifi I need to scroll the whole list to find it May 10 11:16:38 * free wifi May 10 11:17:22 look into this May 10 11:17:23 http://developer.android.com/reference/android/telephony/SignalStrength.html May 10 11:17:30 ooh you want wifi May 10 11:18:09 http://developer.android.com/reference/android/net/wifi/package-summary.html May 10 11:18:56 @Tricknology I would try May 10 11:18:59 thanks May 10 11:19:04 look up tutorials May 10 11:19:18 you should know how to use those methods first, how to get permissions and such' May 10 11:19:42 maybe a simple wifi signal strength app tutorial, there has to be one May 10 11:20:06 it will show you how to access android's built in methods, many of which will be helpful to you May 10 11:20:20 but if you want to get a password out of thin air, you cal almost forget about it ;-) May 10 11:20:58 no-no. I just want to improve user interface May 10 11:21:04 add another option May 10 11:24:49 ooh, i believe this is the amateur ice chanel May 10 11:24:51 irc May 10 11:25:59 are those android mini-pcs good for testing apps on? the hdmi ones you stick in the tv May 10 11:26:22 i suppose it depends how popular they are May 10 11:29:07 tucnak: familiarize yourself with building android from scratch, then make a patch and submit it to AOSP May 10 11:30:51 How can I access the progressbar that is in ActionBarSherlock May 10 11:31:06 the client says that the viewpager implementation isn't very user friendly and it needs to be more obvious that you can scroll from side to side. incidentally, the clients team are all iphone users :p May 10 11:32:11 stork: can you draw little arrows on the viewpager? May 10 11:32:29 I assume he has an indicator of some sort May 10 11:32:33 Otherwise they're right ;d May 10 11:32:46 there is a title indicator, yeah May 10 11:32:56 I might go with the arrows thing. May 10 11:33:13 hey reading tutorials on datePicker.. when I get currentDay month year.. May 10 11:33:22 how do I set that .. as a hint/selection on the date picker? May 10 11:33:26 can't find that May 10 11:33:26 SimonVT: well the next title is show automatically, so overlaying an arrow might be another idea May 10 11:33:48 I just thought it was interesting - presumably most android users are familiar with the viewpager paradigm by now? May 10 11:33:53 SimonVT: am I imagining that the actionbar has a built in progressbar? May 10 11:34:14 Ankhwatcher, it does May 10 11:34:26 p_l|omoikane: Tricknology: sorry, I thought that this is Android development channel May 10 11:34:39 Zharf: ah good, I haven't lost it May 10 11:34:42 but it's for apps, isn't it? May 10 11:34:43 it is, but not Google May 10 11:34:51 Zharf: now how do I get it so I can set values to it? May 10 11:34:53 this is amateur development, like for your own app May 10 11:34:59 and to learn how to code Android May 10 11:35:08 and I am going to contribute May 10 11:35:18 via git, gerrit and so on May 10 11:35:42 There are several android mailing lists May 10 11:35:43 oh I might have found it May 10 11:35:43 http://s.android.com/source/community/index.html May 10 11:35:53 setSupportProgress()? May 10 11:36:06 hang around and see what people are up to, I'm not very sure about how all this works. i just come to get help and contribute a little May 10 11:36:07 Ankhwatcher, http://developer.android.com/reference/android/app/Activity.html#setProgress(int) May 10 11:36:24 tucnak, see SimonVT's post May 10 11:36:39 thank you May 10 11:36:47 I am going there, thanks again May 10 11:38:15 Ankhwatcher, I guess it's setSupportProgress in ABS May 10 11:38:39 Zharf: seems to be, I'm still not seeing the bar though May 10 11:38:58 how can i contact google on whether they'd allow me to have this app or not on google play? i don't want to spend the time to create it if it would just be removed May 10 11:39:17 Ankhwatcher, requestWindowFeature(Window.FEATURE_PROGRESS); // I believe May 10 11:39:20 in onCreate of the activity May 10 11:39:51 Ankhwatcher, make sure to use the ABS Window :) May 10 11:40:35 Zharf: my hero May 10 11:44:10 I've only ever used the indeterminate progress thing :) May 10 11:44:44 Zharf: I've always wanted to use it, but this is the first time I've had any data to put in it May 10 11:46:39 argh I'm stuck in datePicker the guides are don't show what I need done May 10 11:48:36 Hello. I got a problem with accuracy in Proximity Alerts. I have spotted the problem in the android API source code. Can anybody help me how to either use modified android source code in an application or if there is a better solution to my problem (which I will explain better on request) May 10 11:49:45 Excuse me, I'm searching through all the headers in android-ndk-r8e/platforms/android-9/arch-x86/usr/include/ and I can't find the (confirmed) base type for time_t May 10 11:49:53 how do I implement a click listener on datePicker May 10 11:49:57 is it just onClickListener? May 10 11:50:08 why do some people make their app 100% free? there is no pro version to buy either May 10 11:50:08 datepicker.setOnClickListener(new OnClickListener) ? May 10 11:50:19 BullShark, why not? May 10 11:50:23 I found a "typedef int __time_t" but nothing that relates "__time_t to time_t" May 10 11:50:30 Zharf :: what do they gain from it? it's not money May 10 11:50:53 Zharf :: surely they took the time to create it for some type of gain May 10 11:50:58 Some just do it for fun May 10 11:51:07 (android-9 is changeable to android-14 and arch-x86 is changeable to arch-arm in my search results) May 10 11:51:11 BullShark, something to spend time on, fun, personal use but think others miht find it useful too May 10 11:51:21 BullShark, all my apps on the store are 100% free, no ads, no pro versions May 10 11:51:29 all by myseeeeeeeeeeeeeeeeeeel May 10 11:51:38 Zharf :: ALL???? May 10 11:51:41 yes May 10 11:51:51 O.O why? May 10 11:51:56 BullShark, I have a day job... all my apps on the store are done on my free time May 10 11:52:31 if I want to use a datepicker in a fragment am I forced to use an innerClass ? I can't find an example of datePicker doing what I want May 10 11:52:36 I don't see any reason to ask for money from them, it wouldn't be any significant amount ever and it'd just mean less people would be inclined to try it out May 10 11:52:48 Zharf :: don't you think you could have sold some if you didn't make them 100% free? May 10 11:52:58 nevermind May 10 11:53:03 maybe, but it's not the point :) May 10 11:53:11 I already don't know what to do with all my money May 10 11:53:27 Want my paypal? May 10 11:53:29 and I develop them for fun and the challenge May 10 11:53:34 SimonVT, :) May 10 11:53:44 haha May 10 11:53:45 Zharf :: i have an idea for an app but i am unsure whether google would allow it or remove it. how can i contact to ask them? May 10 11:54:03 it's not real clear yet whether they would or not May 10 11:54:09 It's easier to ask for forgiveness than permission. May 10 11:54:26 Eh, with google it's equally hard May 10 11:54:31 Customer service isn't really their strong point May 10 11:54:50 I find it hard to think of an app they would remove May 10 11:55:09 unless it's just disruptive, destructive, counter-productive, etc May 10 11:55:49 Malware, violates trademarks, uses other peoples content without consent May 10 11:55:50 Zharf :: actually i know of at least 2 that aren't on the market and one that has been removed. my app idea is none of which you just mentioned, but i wouldn't want to take the time to create it just to have it removed. May 10 11:55:50 Simon this is yours ? May 10 11:55:51 http://adf.ly/3103720/banner/http://rajeshvijayakumar.blogspot.dk/2013/01/ics-date-picker-example-in-android.html May 10 11:56:10 Yep May 10 11:56:28 k May 10 11:56:30 SimonVT :: no my app doesn't do that. id pretty much have to give my idea away to ask. May 10 11:56:35 my app idea* May 10 11:57:39 Have you read the terms? May 10 11:57:55 private DatePickerDialog.OnDateSetListener datePickerListener = May 10 11:57:55 new DatePickerDialog.OnDateSetListener() { May 10 11:58:09 this is all I need to run to listen on the datePicker right ? May 10 12:01:54 SimonVT :: it's a question of whether some snippets of something are a copyright problem or free domain. i don't think the terms would answer that question. May 10 12:02:42 SimonVT :: seeing that the same snippets information is online in many websites makes me think it could be free domain May 10 12:06:42 I doubt google is going to help you determine that May 10 12:07:12 If your app violates copyright, it might get removed from play store.. If anyone reports it May 10 12:07:24 If you want to be sure you don't violate copyright, you probably need a lawyer May 10 12:09:52 argh.. can nobody seriously help me with this May 10 12:10:37 I want to implement an onDatePicked/selected/onClick whatever its called on a datePicker May 10 12:10:42 this.datePicker.setOnClickListener(new OnClickListener() was doing something like that May 10 12:10:51 but its ofc not onClickListener May 10 12:10:53 its on date selected May 10 12:12:46 DatePicker has no listener since there's no way of "confirming" a date May 10 12:13:27 ... May 10 12:14:07 oh, I guess it does May 10 12:14:08 no selection listener May 10 12:14:09 So just use that May 10 12:14:10 or anything ? May 10 12:14:17 https://developer.android.com/reference/android/widget/DatePicker.html May 10 12:14:32 Right there at the top May 10 12:17:09 oh lol you use .init May 10 12:17:15 no wonder I've been searching in blind May 10 12:20:55 simon mind taking a look at this answer ? May 10 12:20:56 http://stackoverflow.com/questions/11933265/how-to-use-ondatechangedlistener May 10 12:21:27 nevermind May 10 12:21:29 made it work May 10 12:26:19 quick question May 10 12:26:31 my datepicker.. mmmm I get 2 of them. like a spinner and a calender May 10 12:26:36 how do I just pick the one ? May 10 12:27:00 is this String[][] cities = new String[arrayList.size()][] going to conver 2dArrayList into String array ? May 10 12:33:14 hey May 10 12:33:21 will anyone help me with passing ratingbar result from one activity to another? May 10 12:33:26 http://paste.debian.net/3359/ will this work? May 10 12:33:32 i have no syntax errors May 10 12:33:36 but the code in another activity doesnt display the result May 10 12:33:43 i barely know java :-/ May 10 12:36:27 what do u want to do with the intent exactly May 10 12:36:42 startActivity() is to start an activity.. May 10 12:38:03 ah didnt see ur declaration May 10 12:38:15 it should work May 10 12:38:38 yeah but textview in another activiti wont display it May 10 12:38:44 activity* May 10 12:38:56 besides u dont need the argument (View view) May 10 12:39:01 i'm gonna paste code from the next activity May 10 12:39:38 ok May 10 12:40:25 http://paste.debian.net/3369/ May 10 12:41:04 well May 10 12:41:17 the textview u create, is not bound to anything May 10 12:41:24 nor is it even inflated May 10 12:41:32 so how should i bind it? May 10 12:41:41 protip? May 10 12:41:43 I would create a in ur activity_question_two.xml May 10 12:41:50 give it an id May 10 12:42:03 then refer to it and set the text May 10 12:42:05 for instance May 10 12:42:18 i have text view in the xml file May 10 12:42:23 TextView textView=(TextView)findViewById(R.id.textviewID); May 10 12:42:29 textView.setText(message); May 10 12:42:33 ic May 10 12:43:13 also, not sure if that intent.getStringExtra works, but it might... I'd call String message=intent.getExtras().getString(QuestionOne.EXTRA_MESSAGE); May 10 12:43:55 I'm attempting to make a generic DialogFragment. I need to handle actions in this dialogfragment and ive chosen to do so by having the calling activity implement an interface. May 10 12:44:31 unfortunately I don't see how I can "force" developers to implement say "IDialogFragment" if they don't know that this is how they're supposed to handle actions May 10 12:45:31 13:42 < velocet> TextView textView=(TextView)findViewById(R.id.textviewID); May 10 12:45:31 13:42 < velocet> textView.setText(message); May 10 12:45:34 woops May 10 12:46:00 http://pastebin.com/W5iYTBtC - This will obviously cause a ClassCastException unless the parent activity implements PromptDialogListener. How do I make sure that whoever creates this dialog implements the interface as well ? May 10 12:46:29 how would you guys center something to fit the middle of e.g. a datepicker May 10 12:46:35 I have a datePicker and a textView next to each other May 10 12:46:55 P3nnyw1sedo you wnat the datepicker centered and the textView next to that?` May 10 12:47:03 Or do you want both of them "centered" ? May 10 12:47:16 they both use wrap content.. the textView is only 1/10th the size of the its like up in the right corner next to it May 10 12:47:21 I want it to be centered next to it May 10 12:47:33 velocet: running emu now May 10 12:47:35 the datepicker that is May 10 12:47:57 Oh. you want a textview to be centered on top of the datepicker? May 10 12:48:28 no next to... its like this .. LinearLayout -> textView -> datePicker /LinearLayout May 10 12:48:44 but since the datePicker is so big.. the textview is not next to it.. more like in the right corner of it May 10 12:49:01 ah May 10 12:49:44 tried android:layout_gravity="center"? May 10 12:50:09 so another question. is screen blinking in the android emu under windows normal? May 10 12:50:47 velocet: yeah, that worked, however i had to comment one line in the first activity i posted and use another May 10 12:51:18 did the trick thx May 10 12:51:30 http://pastebin.com/t5W1JAJg - This will obviously cause a ClassCastException unless the parent activity implements PromptDialogListener. How do I make sure that whoever creates this dialog implements the interface as well ? May 10 12:51:55 Tell them to, and crash if they don't May 10 12:52:37 really? May 10 12:52:57 If it's required, sure May 10 12:53:01 wsky: I saw. Both methods should work tho May 10 12:53:25 well the other one works as wlll but returns more data that i wonted May 10 12:53:30 i thought that sort of design was frowned upon May 10 12:53:41 velocet: and i just need the result May 10 12:53:49 You should fail earlier tho May 10 12:53:52 e.g. during onAttach May 10 12:54:57 wsky: you can also pass the float directly to the intent May 10 12:55:09 no need to convert it to a string May 10 12:55:13 all depends what u want to print May 10 12:55:17 yeah but i'd have to convert it to string to display it, init? May 10 12:55:27 to display in the textview May 10 12:55:32 yes May 10 12:56:25 you helped me alot. i'm like a littele girl lost in a forest. May 10 12:56:33 lol May 10 12:57:07 np May 10 12:57:22 can i ping you in case of other trouble? May 10 12:57:30 sure May 10 12:57:35 cool May 10 12:57:43 bbl May 10 13:04:29 has anyone noticed that android monkey won't tap web page area in the browser? i've got the problem with emulated nexus-s, 4.2.2 android, but i've seen it with real hw, too. May 10 13:27:53 Hey guys, I'm opening up Google maps using intent and navigating to a gps coordinate, but i want the user to be able to choose bus,bike,walk,transit.. it automatically selects driving.. any way to fix this? May 10 13:44:37 re :) May 10 13:45:13 qm May 10 13:46:15 what to use for an editText instead of onClickListener May 10 13:46:16 Q: Can i have POJO class that wil store K,V values ? May 10 13:46:18 since there is nothign to click :) May 10 13:46:26 If yest how to define setter/getter ? May 10 13:46:39 you talking generic hetii ? May 10 13:47:00 like Map.Entry? May 10 13:47:10 yes May 10 13:47:12 public P3nnyw1se May 10 13:47:35 "class" inserted :p May 10 13:47:52 Zharf May 10 13:47:57 P3nnyw1se May 10 13:48:13 hetii, I think you can just copy Map.Entry impl then :p May 10 13:48:13 but do i need define somehow setter/getter ? May 10 13:48:15 what do I add as a listener to an editText?.. so I can react on inputs May 10 13:48:25 hetii, what is this for? May 10 13:48:32 exercise no doubht :P May 10 13:48:47 you dont use getter and Setter when you pass it on to the class May 10 13:49:08 https://github.com/octo-online/robospice use POJOs to store data from json May 10 13:49:40 And i want to have one dynamic class instead creating each of that will reflect to my jsons May 10 13:49:44 P3nnyw1se, http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher) May 10 13:50:41 hmmm May 10 13:51:05 jesus May 10 13:51:09 all those methods May 10 13:51:30 yeah the UI class apis are really bloated... :p May 10 13:51:38 but that's the same with all UI frameworks May 10 13:51:52 hetii, with gson at least you don't need getters or setters, iirc May 10 13:52:04 jackson uses annotations... iirc May 10 13:53:04 zharf lol onTextChanged, and afterTextChanged May 10 13:53:07 isn't that the same ? May 10 13:53:07 hetii: have you used that library? it sounds like it could solve All My Problems(TM) May 10 13:53:19 P3nnyw1se, no? :) May 10 13:53:40 so ontextchanged is like every letter ? May 10 13:53:47 stork: you mean the robospice ? May 10 13:53:53 yeah May 10 13:55:12 P3nnyw1se, I'm not sure to be honest, I just use onTextChanged and left the others blank in my use cases :) May 10 13:55:17 stork: i try, get some positive result but i`m frustrating a lot about the way how this is done, i like to have one common class that will do all my stuff that i need here i need to duplicate a lot of code cause each request type or structure required different pojo class. May 10 13:55:21 hello! How can I check if the device has the notification led? I only found PackageManager.FEATURE_CAMERA_FLASH (which is for the camera flash, not the notification led)... thanks :) May 10 13:55:28 I felt a bit annoyed by having to implement 3 functions to use one May 10 13:55:29 And i really hate it. May 10 13:55:52 hetii: fair enough, sometimes the pojo pattern for serializing data just doesn't work very well May 10 13:55:55 I don`t know, maybe i wrote to much stuff in python and now i`m lazy... :/ May 10 13:58:39 public void onTextChanged(CharSequence s, int start, int before, int count) { May 10 13:58:39 String temp = (String) s; setTimeStatus(temp); May 10 13:58:39 ? May 10 13:59:15 just inline that cast? <.< May 10 13:59:26 I dont know man :P May 10 13:59:49 how do you usually do it ? May 10 14:01:25 hetii: whats your requirement? May 10 14:03:27 in most case i need exchange json data between android and my server. Structure can be like {'key1':'val', 'key2':'val2'} May 10 14:03:29 Am I the only one getting unexpected error 100003 on play store dev console? May 10 14:04:30 hey folks. the new google play does display the SUPER_USER permission. is it also possible to filter devices using it? i.e. only allow my app on rooted devices? May 10 14:05:27 hetii: have you tried just serializing them back and forth as Map objects? May 10 14:05:40 I found that worked quite nicely using Gson May 10 14:05:48 Play store displays all custom permissions, not just super user.. I doubt it lets you filter by them May 10 14:06:37 * Ge0rG needs his app to only be downloadable on 4.1+ devices if they are rooted... May 10 14:06:53 the permissions system is so fucked up May 10 14:07:13 SimonVT: I just wondered because the superuser permission is even i18nized... May 10 14:07:20 or is it courtesy of the app? May 10 14:07:32 or of my cyanogenmod installation? May 10 14:07:45 Zharf: it was right from the beginning. May 10 14:07:47 Ge0rG: i supose you'll have to check the rooting after installation May 10 14:08:01 but i'm new to android dev May 10 14:08:02 like if an application wants to use some permission that the system doesn't know about, it's just silently ignored, and when a service requiring it is installed afterwards, the first app needs to be reinstalled May 10 14:08:15 that made me make my exported service not require a permission May 10 14:08:16 wsky: it is a paid app, and I don't want to handle all the chargebacks / complaints May 10 14:08:23 Ge0rG: Courtesy of the superuser app May 10 14:08:37 If superuser isn't installed, the permission wouldn't be shown May 10 14:08:39 SimonVT: aah! what do I see there if superuser is not installed? just the raw string? May 10 14:08:41 Ge0rG: i can tell May 10 14:08:41 Your app just wouldn't be granted it May 10 14:08:55 SimonVT: thats even worse. May 10 14:08:59 SimonVT, yeah, which is my complaint May 10 14:09:34 Zharf: the permissions system was already fucked up before custom permissions came into play (sorry for the pun) May 10 14:09:48 not as sorry as we are May 10 14:09:49 Ge0rG, sure May 10 14:10:06 when a new permission enters the system, all apps should have their permissions re-examined, imo May 10 14:10:22 hmm, now I see my published apps, but when clicking them I still get the 100003 error May 10 14:11:05 Zharf: The issue being you'd have to click accept for every app that uses that permission May 10 14:11:19 stork not yet May 10 14:11:27 SimonVT, on the other hand, you'll have to install them in the correct order otherwise May 10 14:11:35 Yeah May 10 14:11:45 It's broken, I agree May 10 14:11:50 which is why I dropped permissions from my daemon :) May 10 14:17:47 after a fragmentActivity is sent to the background (and dies) does it remember the state of the fragment stack? i noticed that restarting activities that have been using the fragment stack crash with some inflation exception. May 10 14:18:21 i.e. in cases when the current fragment is no longer the first one that got inflated May 10 14:19:08 Yes, it remembers May 10 14:21:12 hy May 10 15:06:11 has anyone ever encountered issues with creating 9patch drawables at runtime using android api < 10? it works perfect on >= 10 it appears May 10 15:06:53 exit May 10 15:19:47 how to not make keyboard automatically popup in xml ? May 10 15:21:32 ound it'¨ May 10 15:21:34 f May 10 15:22:08 You might want to tell everyone in case somebody else is interested. May 10 15:23:41 In your AndroidManifest.xml: May 10 15:23:41 android:windowSoftInputMode="stateHidden" /> May 10 15:32:37 I am getting a picture from Camera and then passing to CROP (Gallery App). It works fine but after doing like 20 times CROP crash with a nullpointerexception creating decoder. Any idea May 10 15:34:41 hi, when doing an http request to http://live.mozillamessaging.com/autoconfig/v1.1/google.com I get the following exception "hostname in certificate didn't match: != OR OR " there is nothing wrong with the certificate, anyone knows howcome? May 10 15:43:09 Manavan: never rely on stock apps, they may not be in some ROMs, like HTC ones May 10 15:43:55 Manavan: instead use libraries that provide a crop activity, or build your own (or copy the code from the Gallery app) May 10 15:49:40 when using data that comes in from a webservice, how is sorting best handled May 10 15:50:03 atm I allow it on the client, but I don't know if that's really useful May 10 15:50:23 as I was planning to limit each call to 30 items max May 10 15:50:53 (but then allow for previous and next to call another 30) May 10 15:51:06 but would that make the sort option redundant? May 10 15:51:36 well, does it make sense to the user to be able to sort the data? May 10 15:52:14 gidlow: yeah, but the data comes in in another sort option (alphabetized) and the user can also sort by date f.e. May 10 15:52:54 and it makes sense, the by date would put the newest on top/bottom May 10 15:53:11 what kind of data is it? May 10 15:53:31 if it makes sense and helps the user I think it's ok the have an option for it May 10 15:53:47 gidlow: atm cars, but could be anything May 10 15:54:33 gidlow: the other option is to embed the sort option in the query, or store it server-side May 10 15:55:49 gidlow: eg if I have 1000 records, and they come in in batches of 30, I could arrange _per batch_ but overall the order wouldn't apply May 10 15:55:56 and I wonder if that would confuse people May 10 15:56:23 ah yeah, that could be confusing May 10 15:59:39 has anyone ever encountered issues with creating 9patch drawables at runtime using android api < 10? it works perfect on >= 10 it appears May 10 16:00:48 gidlow: I could requery if they change the sort option, but that might confuse as well May 10 16:01:05 I would send the sort order with the query May 10 16:01:11 wouldn't that fix the problem? May 10 16:01:11 or I could move the sort style to the Search screen, making it a choice before they see the results May 10 16:01:43 nah that's weird I think May 10 16:02:03 gidlow: yeah I could just requery when they change the sort options, back to the first batch in the new order May 10 16:02:35 yeah May 10 16:02:59 and server-side statefulness? is that a no-no? May 10 16:03:22 it'd be hard to manage May 10 16:05:48 why do you need the api to be stateful? May 10 16:06:20 gidlow: I don't, and am trying to avoid it, but was pondering on the best usability May 10 16:06:46 belgianguy: if the server sends the entire result-set, then you could just sort it client side when they change the sort May 10 16:08:08 clever: yeah, but it's that if I batch them (say, per 30) that the new batch will not necessarily start where the other ended May 10 16:08:25 clever: ah, the entire set May 10 16:08:55 yeah, if you only get the 1st page, and change sort, you would need to re-query and pass the sort as a param May 10 16:09:00 ?page=1&sort=popularity May 10 16:09:17 clever: that indeed seems the way to go :) May 10 16:26:16 Hey, has anyone ever seen an SSLException "pipe broken" when trying to post a large stream? May 10 16:32:27 jayd16: you better get a new pipe May 10 16:33:01 har har =p It works with http, just https is broken May 10 16:34:33 jayd16: your error description is missing way too much context May 10 16:35:59 HttpUrlConnection is throws that error when I open up an https connection and try to write a large stream to it. Funny enough I just fixed it by setting chunked streaming mode... May 10 16:37:16 very strange error to get though. May 10 16:37:24 jayd16: I suppose your server timed out before the whole bunch of data went through May 10 16:37:47 jayd16: you should set the timeouts way higher, to accomodiate mobile connections May 10 16:38:04 I doubt it. It errors out almost instantly May 10 16:40:41 oh well…Thanks for the help! May 10 16:43:22 stork: currently i have such code... http://pastebin.com/6d7ukkRc delete method return null, but SpringAndroidSpiceRequest required from me to implement some POJO class. thats why i return there new PojoStation(); May 10 16:43:46 Maybe someone of you use this robospice, cause i have feeling that i made that in wrong way.... May 10 17:26:59 When I test my code on my Nexus One (Running Android 2.3.7) onNewIntent does not get called, but it does on all of my Android 4.2 devices May 10 17:27:09 anyone know why this would happen? May 10 17:27:51 hey all - just starting trying to get an app on emulator, it's hanging on black screen with 'ANDROID'. just installed everything fresh from developer.android.com and followed instructions. May 10 17:28:06 how long should the emulator take to wake up? to get to home screen? May 10 17:28:38 chrislerum, depending on speed of your system May 10 17:28:43 first run coul be several minutes May 10 17:29:09 Mavrik: this is old - mbp from 2007 May 10 17:30:17 well, itll take its time :) May 10 17:30:42 maybe i've been giving up too early. time to go shopping i guess May 10 17:32:45 hmm May 10 17:32:54 ok, do all Android devices support recording in VGA resolution? :) May 10 17:37:25 do u guys suggest any free/cheap back-end servers? May 10 17:37:46 yes. you usually get the best quality for the least amount of money May 10 17:37:48 velocet, GAE is still pretty cheap I think May 10 17:38:00 alot of people use Heroku though May 10 17:38:24 and for push service? May 10 17:38:33 push service? May 10 17:38:42 sending push May 10 17:38:58 ahh the google app engine May 10 17:41:25 in the end sending a push notification has nothing to do with app engine May 10 17:41:38 you just send some data to the GCM server May 10 17:42:47 anyone here used Parse? May 10 17:52:01 Hi there! I'm trying to run this project https://github.com/svijee/taskwarrior-androidapp/blob/master/taskwarrior-androidapp/AndroidManifest.xml May 10 17:52:08 I have running 2.3.5 avd May 10 17:52:31 in manifest file, minimal sdk api level is 7 and that would be android 2.1 right? May 10 17:52:34 what could be wrong? May 10 17:55:35 Atlantic777 it might help if you say what's going wrong May 10 17:56:08 The message says: No compatible targets found. Do you wish to add new Android Virtual Device. May 10 17:56:17 this happens when I try tu run the app May 10 17:56:39 so you either need to make a proper AVD or use a real device May 10 17:56:49 avd being emulator May 10 17:57:05 I have two avds which I use for testing, one with 2.3.5 or 2.3.3 and I tryied to create one which runs 4.x (api level 17) but it didn't help. May 10 17:57:17 I'm not sure what would be the proper AVD. :/ May 10 17:57:33 so, about avd, it blinks the screen when i touch it with my mouse pointer a bit. i'm runing it on windows May 10 17:57:42 is this normal? May 10 18:07:26 xorgate: it seems that I have to have all targets from minimal to target. May 10 18:47:32 hey guys. I wan't to send a bulk of data from one application to another application. Which is the most convenient method of doing that ? serializable or parcelable and why ? May 10 18:50:34 sunny_slls: I would use sockets. May 10 18:50:52 what kind of data? May 10 18:51:03 play the data as modem sound from the speaker in one application, then use the mic to record it in the other application May 10 18:51:36 actually they are just text data. and these 2 appications are 2 different applications running May 10 18:52:05 i am saving these data in a single object and i have to send this object to another application May 10 18:52:35 if you speak about objects, you probably do need some serialization May 10 18:52:38 json or something May 10 18:53:14 JesusFreke: yup, he's good with fft and Nyquist–Shannon sampling theorem, he can go for it. May 10 18:54:05 Atlantic777, means sending this object in form of json string May 10 18:54:06 ?? May 10 18:54:32 sunny_slls: I would do that, if you need to send some data about an object. May 10 18:55:39 im ignorant to phonegap. does it allow you to take full advantage of the apis or are there limitations? May 10 18:56:11 Atlantic777, what about sending it as parcelable object ? because sending converting it to json string via objectmapper may be painful if your class contains some values without setters or getters May 10 18:58:07 sunny_slls: I think that sending objects in form of memory chunks isn't a good idea. I'm not sure why, but it seems ackward to me. And i can't think of a class or object which you can't reasemble easily from json. May 10 18:59:00 okay. Thanks Atlantic777 May 10 19:00:15 Atlantic777, one more question . i was looking at this application https://play.google.com/store/apps/details?id=com.sergiumuresan.smsnotification&hl=en at google play May 10 19:00:37 Hi, anyone here know if it's possible to change the keyboard language from within an app (for instance to use the French keyboard, when the main OS is set to use English)? May 10 19:00:49 Atlantic777, the message that it shows on the home screen. It is a activity in form of dialog ? May 10 19:01:45 sunny_slls: I don't know, sorry. I have some experience with programming and software design, but I'm pretty new with android dev. May 10 19:01:55 Activity that looks like a dialog? Theme.dialog May 10 19:01:57 ok no problem May 10 19:02:22 brx_, sorry for language . I meant that only :) May 10 19:02:48 Smashcat, i don't think you can do that . you can't at most prompt the user to change the language May 10 19:03:01 Smashcat, check this out http://stackoverflow.com/questions/6901097/change-input-method-of-android-device-programatically-android May 10 19:03:05 sunny_slls, May 10 19:03:21 thanks brx_ May 10 19:03:22 or setTheme() from your activity May 10 19:03:39 sunny_slls: Ah thanks, that should be enough! May 10 19:03:56 Smashcat, welcome May 10 20:08:31 hi; I have 2 relative layouts inside another relative layout. I want to put one below the other, but either it disappears or they are stacked on top of eachother. What am i doing wrong? May 10 20:08:53 I think that it could be solved by putting the two relative ones inside a lineair layout, but is there a way to avoid it? May 10 20:10:01 If you want to place them linearly, why are you avoiding linearlayout? May 10 20:11:49 I dont know, because it provides stuff to tell you where they should be positioned relatively and I want to know why i cant get it to work :/ May 10 20:14:47 and apparently changing it to a lineair layout doesnt solve it either, which must mean somethings wrong May 10 20:20:23 question May 10 20:20:27 I have an Intent May 10 20:20:40 intent.putExtra("host", "https://blah"); May 10 20:20:48 but my logcat has "http execute" May 10 20:20:55 is that https:// being ignored? May 10 20:21:17 I'm also getting an error back from the server (unable to tell what the error code is??) May 10 20:21:26 if I try to use http the server gives me a http 400 May 10 20:21:29 if I https it works fine May 10 20:21:40 so a piece of me thinks maybe that https:// is being ignored May 10 20:33:05 are there any other languages officially supported for Android development? May 10 20:35:45 Anything that compiles to Java 1.6-compliant byte code can be dexed May 10 20:38:32 How can I get android.jar source? May 10 20:38:43 I just want to see it in Eclipse while debuging May 10 20:39:04 crised: https://github.com/android/platform_frameworks_base but i'm not sure how to make eclipse see it May 10 20:39:15 and youll need to make sure you have the right version May 10 20:39:36 How can I get that as a JaR? May 10 20:39:43 no idea May 10 20:40:04 According to eclipse android.jar 4.2.2 May 10 20:40:15 in maven projects you can easily May 10 20:40:19 click on download sources May 10 20:40:44 Hey all, is there an interface to do DDL in GQL without using object models? May 10 20:41:09 I'm hoping to be able to do SQL-style stuff, like CREATE TABLE foo {...} May 10 20:42:01 (not sure if AppEngine questions are too far outside mainstream android dev to ask here or not) May 10 20:42:28 Can anybody use libPoco with android-ndk? May 10 20:42:36 Hey, I'm trying to made a solid shape with a bitmap on top of it as a background, how can I have a bitmap under a shape? May 10 20:42:49 I can compile libPoco with ndk itself but it fails when I use it in my app May 10 20:43:01 complaining about some missing references to std:: stuff May 10 20:43:09 In eclipse : Go to Window->Android SDK Manager and install "Sources for Android SDK". May 10 20:43:15 https://gist.github.com/KorvinSzanto/b0534ac86f1eb30b1d56 May 10 20:43:30 seeing "std::" makes me miss C++ May 10 20:44:16 ProgramMax, Does it? You throw "using namespace std;" all over the place in your program? :P May 10 20:44:29 has anyone else had issues with the latest action bar sherlock? May 10 20:44:30 ProgramMax: i never ever missed C++ May 10 20:44:36 "using namespace std;" is awful May 10 20:44:44 i updated to the latest release and have had nothing but problems May 10 20:44:46 ProgramMax: there is nothing in my mind that misses C++ May 10 20:44:46 yes it is May 10 20:45:05 Love me some C/C++ May 10 20:45:11 so...are Intents http only, not https? May 10 20:45:15 C# to java to C++ almost doubles the code that you have to write to archieve the same thing May 10 20:45:18 I'm more on the C side myself May 10 20:45:20 I'm struggling to debug my Intent problem here May 10 20:45:35 currently i'm getting java.lang.IllegalStateException: ActionBarView can only be used with android:layout_width="match_parent" (or fill_parent) May 10 20:46:55 for some reason, the sherlock dialog theme was removed, making it so that you can't make an activity look like a dialog anymore May 10 20:47:44 The reason is that dialogs don't have action bars May 10 20:47:51 why do you need to inherit a sherlock theme for you dialogs? They don't need an action bar May 10 20:47:59 you don't May 10 20:48:13 but you used to be able to make an activity look like a dialog by just giving it the dialog theme May 10 20:48:24 you still can May 10 20:48:29 and since our activities are sherlock activities, it just crashes because it doesn't extend the sherlock theme May 10 20:48:34 Call confirm is an awesome app May 10 20:48:43 so you can't if you're using action bar sherlock May 10 20:49:33 Sure you can May 10 20:49:37 Just create your own dialog theme May 10 20:49:52 are asynctasks usable in Fragments? seems there are some pittfalls May 10 20:50:23 belgianguy: sure, just need to be careful ;) May 10 20:50:29 You can even go view the abs source when the themes were still there to see how to do it May 10 20:50:36 the pitfalls are inherent to AsyncTask, not where you use them May 10 20:51:04 SimonVT: sure, but it seems ridiculous the dialog theme was removed May 10 20:51:14 I think I heard someone advise to use an Executor instead May 10 20:51:18 lagann: just make one yourself! May 10 20:51:23 or was that a Pokemon? May 10 20:51:23 belgianguy: funny you should bring that up; i was just digging through Calendar's AsyncQueryService ;) May 10 20:51:43 JakeWharton, thanks for your work with ActionBarSherlock :)) May 10 20:52:05 It's outside ABSs scope to style dialogs May 10 20:52:09 g00s: yeah, I've worked myself in quite a pickle with the AsyncTasks May 10 20:52:25 belgianguy: it's a digimon, not a pokemon, but yeah May 10 20:52:36 anyways, to fix the issue i moved the activity into a fragment, then threw a transparent activity to host the dialog fragment May 10 20:52:59 but the transparent activity is giving the IllegalStateException May 10 20:53:03 wut the hell is a Pokemon May 10 20:53:43 Does the activity ever have an action bar? May 10 20:53:49 it shouldn't May 10 20:53:53 If not, don't use Sherlock(Fragment)Activity May 10 20:54:58 well, the sherlock activities should be able to work fine with removing the action bar May 10 20:55:09 here's the theme that's applied to the activity: http://pastebin.com/WJNGaqSr May 10 20:57:15 Here's how to create a dialog theme for sherlock activities: https://github.com/JakeWharton/ActionBarSherlock/blob/4.2.0/library/res/values/abs__themes.xml#L187 May 10 20:57:18 Works perfectly May 10 20:58:10 SimonVT: thanks for that May 10 20:58:14 i'll give that a try May 10 20:58:27 do you have any ideas on our transparent theme causing the exception showing up? May 10 20:59:11 None at all May 10 20:59:18 with windowNoTitle, i thought the action bar shouldn't be added, yet the exception shows that the ActionBarView is still being attached May 10 21:00:09 It's windowActionBar May 10 21:00:26 let me give that a try May 10 21:00:32 Not android: pre-fixed May 10 21:00:43 For <14 May 10 21:00:47 android: prefixed for 14+ May 10 21:00:54 Like all other ABS attributes May 10 21:03:59 i'm sure google has heard most of these concerns, but of course i always find it reaffirming others want improvements in the same areas ;) http://www.fiercedeveloper.com/story/google-io-2013-what-developers-want/2013-05-10 May 10 21:04:43 SimonVT: i found it, android:windowNoTitle was being set, but not ABS windowNoTitle May 10 21:04:49 SimonVT: thanks for your help May 10 21:14:30 I wonder why apostrophes need to be escaped in the strings.xml file? May 10 21:14:54 Seems weird. Like it evaluates the content or something? May 10 21:17:57 i've always assumed it was a standard XML thing to escape apostrophes, but i'm not sure May 10 21:19:32 Don't think so. I know quotes need to be escaped or replaced, but not apostrophes. May 10 21:19:59 Could be wrong though, ho hum :) May 10 21:20:01 apostrophes have to be escaped May 10 21:20:17 at least i have to do that in strings in my project May 10 21:20:24 dunno, maybe i'm speciall May 10 21:20:41 yeah, in android strings.xml they do. we're just wondering if that's true for XML in general or just an android thing May 10 21:20:56 i think that it's a java thing May 10 21:21:08 in general May 10 21:21:18 apostrophes do the quoting job as well May 10 21:21:40 so when you put an apostrophe into a string it does open a new quote May 10 21:21:58 so you have to escape it to make it clear for the compiler May 10 21:22:09 anyone here have good experience w/ the google contacts api May 10 21:22:21 trying to pull system groups or better yet contacts of the system group 'my contacts' May 10 21:22:22 wsky: Wondering why the text is interpreted at all. i.e. everything between the > and < is a string, and doesn't need to be interpreted. May 10 21:23:33 dunno i'm actually new to java May 10 21:23:47 I suppose it could be serializing it... May 10 21:23:51 dunno about "> & <" quoting May 10 21:25:40 Doesn't really bother me generally, but I'm adding language translations to my app, and it just takes extra time escaping all the single quotes. Should really write a precompiler script to do it. May 10 21:26:03 general culture question: why the f@#% does Java/Android/Dalvik/whatever the f@#% it is, needs a @Override attribute? May 10 21:26:11 you could make one. a trivial bash script would do. May 10 21:26:15 s/attribute/annotation May 10 21:26:21 one script, less of work for ever May 10 21:26:25 sorry, got C# mixed in there May 10 21:26:56 wsky: Yeah, heh, I do mostly if I plan ahead, but I'm most of the way through now, so can't be bothered - heheh May 10 21:27:02 Smashcat: I use crowdin for translations and end up with weird formatting from translators. i can send you my script, it's a bit crude but works. it also just does a grep for messed up %1$s style things May 10 21:27:02 i use SSHDroid and found myself in ~/data/berserker.android.apps.sshdroid/home where are my files? May 10 21:27:03 Izhido, it doesn't need May 10 21:27:16 Izhido, it's for readability and static-checking May 10 21:27:22 then why does Eclipse yell at me for not including it? May 10 21:27:28 because eclipse is stupid May 10 21:27:37 kevinb: Thanks, that would be handy! May 10 21:27:45 Izhido, it's just a warning, not an error May 10 21:27:53 I know... May 10 21:27:57 https://gist.github.com/teslacoil/5557571 May 10 21:28:07 it just bothers me quite a bit May 10 21:28:08 if it's not a compile error, it's not yhelling May 10 21:28:13 then turn off that warning May 10 21:28:27 it's not default java behavior to warn on missing @Override May 10 21:28:47 but not having @Override means you don't know when you're properly overriding a parent method May 10 21:28:53 Smashcat: probably won't apply directly as it's tuned for the crowdin style zip download (hence the renaming of directories), but the perl -e part is key May 10 21:29:01 e.g., you might call your onCreate() without the Bundle, and then wonder wtf it doesn't get called on create May 10 21:29:21 kevinb: Yeah thanks, looking through it now.. May 10 21:30:39 kevinb: Worst thing is the different sizes of the text content, which messes up the design somewhat. I did tell the designer not to make stuff too tight, as it is multiligual, but as usual they don't listen... May 10 21:30:46 @Override is nice .. It tells me at compile time if my method signature is wrong, instead of just not picking up my changes at runtime May 10 21:31:35 The more you can get to fail at compile time the better May 10 21:32:13 ... ideally, nothing at all, but if something HAS TO fail, it's better at compile time May 10 21:32:16 Smashcat: if you're doing arabic or hebrew as well testing with left-to-right is crazy. Android does a reasonable job of automatically doing it, but things need tuning. It's also really hard to test because everything is in the wrong location and you can't read the text (unless you speak arabic or hebrew in which case you'll have an easier time than I) May 10 21:32:25 err right-to-left May 10 21:32:37 atm I have some ASyncTasks which are inner classes, and it makes it look rather messy May 10 21:32:49 is it okay to extract them and pass them a Context? May 10 21:32:55 or is that dangerous? May 10 21:33:03 i've set all the useful warnings as error in the eclipse build May 10 21:33:12 I just tried a test purchase and wanted to refund the money back to myself. The problem is everything is greyed out including 'Refund some money'? May 10 21:33:22 Right, and what is why the f@#% java has an @Override annotation May 10 21:33:22 kevinb: heh yeah, luckily I'm just using English, German, French and Spanish for this one, so it's not too bad, but the German translations use a lot more space than the others in some cases. So I have to move stuff about in the views May 10 21:33:55 I think C# is even more annoying with this where you have an actual override/virtual keyword for it May 10 21:34:10 I don't like that as much May 10 21:34:11 C# is extremely explicit May 10 21:34:37 which is why, when they *finally* introduced "var", suddenly nobody likes it :( May 10 21:35:02 people surely are crazy! May 10 21:35:14 no, i'm perfectly sane May 10 21:35:23 Don't call me Shirley May 10 21:36:19 anyways, i'm stuck with my project for today May 10 21:36:39 gonna continue working on it tomorow May 10 21:37:01 i got a nasty bug somewhere May 10 21:37:09 join the club, I have to work all weekend to get this thing finished for an event next week May 10 21:37:09 anyone know if passing a Context to an Asynctask can cause leaks? May 10 21:37:10 no syntax errors, not even warnings May 10 21:37:29 yes May 10 21:37:31 Smashcat: my condolences May 10 21:37:35 belgianguy: If the asynctask lives longer than the context May 10 21:37:44 Smashcat: google io? May 10 21:37:46 wsky: Not too bad, double time pay ;-) May 10 21:37:46 I'm trying to refactor some code, and I want to extract my 'inner class' asynctasks May 10 21:37:55 is that even possible? May 10 21:38:02 lagann: No, it's some event in Geneva for Stanley tools May 10 21:38:09 oh May 10 21:38:37 i'm in a similar boat, but for Google IO May 10 21:38:37 lagann: Well, it's starting in Geneva - it's the Moto GP tour, so going all over Europe, they're sponsoring a team or something May 10 21:38:54 lagann: Nice :) May 10 21:39:52 Smashcat: i wish i could go to europe May 10 21:40:01 SimonVT: would this prevent a Context to die before its tasks end? http://blog.callumtaylor.net/handlingasynctasksanddialogfragmentswithorientationchangingjava-android May 10 21:40:07 I'm still stuck on this intent https thing. Is there a better way to get errors? Can I get the http error code? May 10 21:40:23 I am providing an onError() that gets called May 10 21:40:31 but I get no parameters...no indication of what the error was May 10 21:40:35 they use a Singleton with weak references to attach/detach ASyncTasks from Activities/Fragments May 10 21:40:49 I don't get to go :( only the project managers, and other liggers who blag it. Got a bunch of events going on with Lucozade as well at the moment, there's a bug in it, but they refuse to download a new version, even though I told them about it weeks ago. Nightmare. May 10 21:42:06 lagann: Belgium's pretty wet atm May 10 21:42:31 belgianguy: If you keep a WeakReference, the Context can be gc'd yes May 10 21:42:36 ouch May 10 21:43:15 put a breakpoint on Looper.loop(), and it's great May 10 21:43:27 every time I touch the tablet it breaks May 10 21:43:47 Is this means that the OS fire an event to the thread? May 10 21:43:53 to the UI thread? May 10 21:43:55 i use SSHDroid and found myself in ~/data/berserker.android.apps.sshdroid/home where are my files? May 10 21:44:20 (samsnung galaxy 3, not rooted) May 10 21:45:03 SimonVT: so that would work with my refactoring strategy then? (Extract each Task to its separate file) May 10 21:45:52 Maybe? :f I don't know May 10 21:45:55 Just don't leak contexts May 10 21:46:12 I just tried a test purchase and wanted to refund the money back to myself. The problem is everything is greyed out including 'Refund some money'? May 10 21:46:13 ugh, leaking contexts May 10 21:46:25 Does 'cancel the entire order' do the same thing? May 10 21:46:26 we have like 3 ad companies whose sdk's leak our context May 10 22:01:02 does lint catch any 'potential context leaking' ? May 10 22:01:37 not even sure if its possible May 10 22:03:24 apple741: yes, cancel will refund May 10 22:03:55 lagann: can you give the SDKs your application context? May 10 22:04:41 Thanks kevinb , I thought as much but wasn't too sure :) May 10 22:04:44 kevinb: no, they require an activity May 10 22:13:37 g00s: yeah, I'd like to be able to detect leakage as well, seems it's pretty easy to cause one May 10 22:13:56 the code may have to be profiled May 10 22:18:53 are .apk's built for a specific android api version? May 10 22:19:13 or could I use the same apk on JellyBean and on ICS? May 10 22:19:57 The same apk for all versions May 10 22:21:42 Hi all! Have problems with intents after app has been activated through GCM message... what's wrong? May 10 22:25:33 what is the best way to dynamically get the size of a view at runtime? May 10 22:25:56 the one actually inflated n shown on the layout. i've seen a few answers on SO that are inconsistent and all pretty ugly May 10 22:26:09 Be the view parent May 10 22:26:41 Or if you don't need it until after the views has been drawn, just use getWidth/Height May 10 22:26:42 SimonVT: elaborate? May 10 22:27:13 Well, the views parent measures the view.. So it obviously knows the size May 10 22:27:19 what do i call getWidth or getHeight on? and does this work for getX and getY also? i tried View v = findViewById(R.id....) but getX() returns 0 May 10 22:27:57 can someone tell me why notifyDataSetChanged doesnt remove an item from the list until i navigate away from the current tab? May 10 22:27:59 The views aren't measured and laid out until some time after onCreate, onResume, etc May 10 22:28:10 SimonVT: right. this is long after on create May 10 22:28:31 Hey - when I use "mm" instead of "ndk-build" for a small test C code, my static int variable is no longer static, I get a dynamic address, not the one seen by 'nm' tool. The Android.mk is identical, any idea what might cause such behavior? I'm running Linaro Android 13.04 (Android 4.2.2). May 10 22:28:34 just seems like findViewById isn't giving the actual inflated object May 10 22:28:48 and it seems findViewById on the view's parent would behave the same May 10 22:28:56 Is the view visible on the screen when you call the methods? May 10 22:29:04 yeah May 10 22:29:10 Yes, findViewById will return the actual inflated object May 10 22:29:35 getX returns the views left position May 10 22:29:40 Is its left at 0? May 10 22:29:47 it's a grid view to the right of a map fragment. trying to offset a toast to be horizontally centered on the mapview vs the entire screen May 10 22:30:50 .. offset a toast? May 10 22:31:04 on setGravity on the toast you can pass an x and y offset May 10 22:31:50 works fine hard coded, just need to dynamically get the x position of the gridview so it works on various screen sizes/densities May 10 22:32:07 So, getX on the gridview is going to give you its left position within its parent May 10 22:32:15 ohhh May 10 22:32:18 You need its position on screen May 10 22:32:18 that's why then May 10 22:32:28 View#getLocationOnScreen or something like that May 10 22:32:40 Or, use my awesome library https://github.com/SimonVT/MessageBar May 10 22:32:47 Place your own toast layout on top of the gridview May 10 22:32:49 ^_^ May 10 22:32:54 k i'll check. coworker is writing it so i'll walk over to his screen May 10 22:32:57 All from the comfort of xml May 10 22:33:01 nice May 10 22:33:06 i'll check that out either way May 10 22:33:31 anyway, getX being relative to parent view makes sense as the gridview is within a linear layout and left-aligned from that May 10 22:36:53 yay May 10 22:36:55 eric loves me May 10 22:40:28 Why would my screen flash black really fast when I hand my ListFragment an adapter with some data? May 10 23:04:28 I'm trying to test an app out that I already had installed from developing (and then uninstalled) but when I try to download the app from the Play Store which is 100mb it downloads in about 2 seconds making me think thats its just using the 'uninstalled' version? May 10 23:09:55 hi May 10 23:11:59 if I compile an app with NDK can I open it with a bash shell inside of android? May 10 23:16:02 https://friendpaste.com/5MpyD23wGHJfxbwymNdbrE May 10 23:17:03 my serviceReceiver has a transform function that doesn't seem to be getting called May 10 23:17:39 instead, a fragment (I don't know how it got to that fragment) is getting its onError called May 10 23:17:53 I'm not sure why or how to add better error detection May 10 23:18:01 but more to the point: my logcat has "http execute" May 10 23:18:04 not httpS? May 10 23:18:20 can you create an Intent like that and specify a "host" extra with https? May 10 23:22:24 Where can I find a good example for concurrecncy? May 10 23:22:24 http://stackoverflow.com/questions/16492117/android-concurrent-example May 10 23:30:13 i use SSHDroid and found myself in ~/data/berserker.android.apps.sshdroid/home where are my files? May 10 23:30:14 (samsnung galaxy 3, not rooted) May 10 23:39:11 interesting, ContentProvider.call() … api 11. can't find any examples of its use, but seems simple enough May 10 23:40:12 goos: what time zone are you in btw? May 10 23:40:28 phx May 10 23:40:42 ahh okay May 10 23:40:50 you just never seem to sleep :P May 10 23:40:59 android keeps me up :| May 10 23:41:28 did you figure out how to adequatly handle the fragment mess? May 10 23:41:57 lasserix: which one was that? i have forgotten atm (maybe sleep deprivation :P ) May 10 23:42:28 oh last week or so you were trying to find the best method for handling fragments, activities for tablet versus phone etc May 10 23:42:39 i'm also kinda distracted because a storm is brewing and i may run out with my camera. i'd have to work my ass of for this picture tho, odds are i won't get it May 10 23:42:51 lasserix: oh, that … heh … no i haven't May 10 23:43:11 i think its a systemic flaw in android and its tooling May 10 23:43:20 ahh it's worth it! i spent like half an hour on my bike trying to get a picture of the bay around here (with the right motion blur) May 10 23:43:23 yeah May 10 23:43:52 this trail is too rugged for a bike … main thing is running (i trail run) and watching for snakes May 10 23:44:05 and of course, the best shots are sunset , so i come back in dark - snakes++ May 10 23:44:25 you need to train one of ron_frown's laser pigeons :) May 10 23:44:39 your damn right May 10 23:44:40 lasserix: he's probably training it to get me :P May 10 23:45:06 but i'm putting lasers on some of the more docile snakes i encounter May 10 23:45:25 jasta: have you ever found good use for ContentResolver.call() ? May 10 23:46:10 ron_frown: did one of your pigeons just kill jasta ? May 10 23:47:54 holy fuck, evernote cost $225 million to develop :| May 10 23:48:18 well, thats their cumulative financing May 10 23:48:25 i got chicken wings May 10 23:48:30 probably May 10 23:49:10 nearly a quarter of a billion dollars to develop evernote? May 10 23:49:21 it's virtual May 10 23:49:30 weird there is no ACTION_UPDATE - lack of symmetry with provider / insert / delete / update May 10 23:49:39 guess ACTION_EDIT is close enough :| May 10 23:50:18 i wanted to use evernote, but its cloud, and fuck all cloud things :D May 10 23:50:36 why May 10 23:50:45 cloud is relatively good. May 10 23:50:56 here in the US, you have no protections for government getting your information from a 3rd party May 10 23:51:05 encrypt your data May 10 23:51:07 you wont even be notified if its an NSL May 10 23:51:16 and don't watch cp May 10 23:51:42 i dont think evernote handles that scenario May 10 23:51:47 you put the note in the app. May 10 23:51:54 yeah May 10 23:51:59 then create another app May 10 23:52:11 that does the same but with encryption May 10 23:52:14 wsky: i am actually :D May 10 23:52:18 \o/ May 10 23:52:18 but not evernote May 10 23:52:29 lastpass sorta has that. although it's not a great UI May 10 23:52:43 you can store encrypted notes in your password store though May 10 23:52:55 my recent philosophy is, if your app requires backend service, allow the user to have / buy it so they can have control and secure it the way they see fit May 10 23:53:13 so im writing a communications app, they get the broker themselves and set up its encryption as fit May 10 23:54:14 canadiancow: hey, FB might buy waze :D next up, 23andme when somebody finds out you might by X if you have gene Y May 10 23:54:23 haha May 10 23:55:55 am i the only one here thats crazy :P May 10 23:56:05 i dont even have a tinfoil hat, i promise May 10 23:56:53 i guess so :( May 10 23:57:50 goos: some students at MIT showed tinfoils hats actually are counterproductive May 10 23:58:01 hehe May 10 23:58:19 its best to walk around in a faraday bubble May 10 23:59:13 it makes me laugh because the d o d has a subdepartment of counteracting "comprising emanations" May 11 00:00:10 they could be lying about the tinfoil hats :| May 11 00:00:13 goos: speaking of which, they actually do have faraday cage body suits: http://www.youtube.com/watch?v=_oYn1FXH-S4 May 11 00:00:28 i have seen them for phones May 11 00:00:39 i'm gonna get May 11 00:00:40 how do I make an intent use https? May 11 00:00:43 a xperia j May 11 00:00:54 * wsky runz May 11 00:00:57 hehe yeah i tried to use electrostatic bags but they are not strong enough May 11 00:02:03 ron_frown: you killed jasta ! May 11 00:04:14 i find this class intriguing https://android.googlesource.com/platform/packages/apps/Calendar/+/refs/heads/master/src/com/android/calendar/AsyncQueryService.java May 11 00:04:25 "This minimizes the chance of the call getting May 11 00:04:27 * lost because the caller ({@link android.app.Activity}) is killed." May 11 00:04:51 i guess one still needs to do these things in modern android May 11 00:05:00 i'm just getting caught up from 2.2 :D May 11 00:10:23 wtf just happened there May 11 00:10:51 reality. May 11 00:13:54 * jasta yawns May 11 00:14:14 jasta did you just have an out of body expirience? May 11 00:14:21 maybe May 11 00:14:40 g00s: i dunno if you got this message, but AndroidSQLiteServer does depend on ContentResolver#call May 11 00:14:58 its currently why the cp server mode doesnt support Gingerbread May 11 00:15:06 but i think i have a very hacky way around that May 11 00:15:06 aha May 11 00:15:51 if my very first interaction with the server is to execute a query for a custom (that is, extending) Cursor so both sides can track each other, then i think i can make it work May 11 00:16:12 im also considering a really goofy design where even in the CP server mode, you use a service as well May 11 00:16:21 but that just seems stupid and pointless ;0 May 11 00:17:33 i'll be interested in what you come up with :) May 11 00:17:49 right now i'm using something like AsyncQueryService in Calendar May 11 00:18:05 just waiting to be able to release it... May 11 00:18:10 and working on unit tests this weekend May 11 00:18:21 jasta: do you have to work with FB regarding IP / etc ? May 11 00:18:23 maybe some perf tests too. i did some unspeakable things to Caliper to make that work :) May 11 00:18:33 g00s: yes, i need their approval to open source it May 11 00:27:04 heh, so Contacts still uses the EmptyService technique May 11 00:31:26 should i remove an item from a list or the adapter of the list? May 11 00:32:46 if you use ArrayAdapter, you have to use the adapter May 11 00:32:57 but you're not using ArrayAdapter, because it sucks balls May 11 00:32:57 and notifyDataSetChanged May 11 00:36:53 wizbam: all data interactions go through the adapter. even things that affect UI still go through the adapter. May 11 00:39:42 this must be my problem because i was removing an item from the list itself but i wouldn't see the change until i navigated away from the tab my fragment was in. i called notifyDataSetChanged on the adapter inside runOnUiThread May 11 01:08:54 do you guys know if there's any library/method/solution or something out there for a listview/adapter scenario to update the contents of just one row, instead of refreshing the whole thing with .notifyDataSetChanged() May 11 01:09:01 (since someone was on the topic May 11 01:52:35 I wish there were a way to alias xml tags in layouts May 11 01:52:46 so we wouldn't have to fully qualify classes (or resort to custom inflaters) May 11 02:00:59 does this room have a chat log? May 11 02:06:04 ?? May 11 02:06:31 What's with those nick changes? Is that to do with the netsplit? May 11 02:14:14 hey people. I have a map that won't let me zoom, or move away from the target. It keeps snapping back to the target. Any way to change this behavior? May 11 02:15:29 * pfn headscratches May 11 02:15:45 wtf is typedarray.getString(R.styleable.MyView_myAttr) giving me the completely wrong thing... May 11 02:19:11 but only for stuff I have defined in styles May 11 02:19:30 e.g. May 11 02:19:40 I'ver tried prefixing myAttr with mypackage: as well May 11 02:19:56 but when I do a.getString(R.styleable...) I get something completely random (to me) May 11 02:24:49 anyone know if i can find some tutorials on good looking UIs on android May 11 02:29:21 weird, if I explicitly set style="@style/MyTheme" then it loads ok... May 11 02:31:34 ok people, I'm having mad troubles. I can;t soon the camera or view another quadrant of the google map, it keeps snapping to my location May 11 02:31:41 zoom **** ENDING LOGGING AT Sat May 11 02:59:58 2013