**** BEGIN LOGGING AT Thu Oct 10 02:59:58 2013 Oct 10 03:00:53 is there a way to tell the main thread to wait for an async task to complete? Oct 10 03:01:06 if the app is opening for the first time there is some information I need to download Oct 10 03:01:09 navetz: do you know what "async" means? Oct 10 03:01:36 Leeds: yes, but I to get some data from the web the first time the app is opened Oct 10 03:01:51 Then make it synchronous instead of async Oct 10 03:02:29 you show a progress bar - possibly indeterminate - while you're loading data Oct 10 03:02:36 but it has to be an async task if you're downloaded data Oct 10 03:02:56 Says whom, exactly? Oct 10 03:03:08 it has to not be on the main UI thread Oct 10 03:04:00 I see, gotcha Oct 10 03:04:03 thanks guys Oct 10 03:09:02 what exactly is View? Oct 10 03:10:18 view is just some thing you have to have in button handlers Oct 10 03:10:54 (unless they are action bar buttons) Oct 10 03:11:24 what does it do? Oct 10 03:12:06 sorry I don't know either other than I have to have them for buttons Oct 10 03:14:19 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/View.java Oct 10 03:14:28 ok Oct 10 03:14:46 that should help you figure out what "View" is! 18000 loc later 8) Oct 10 03:15:03 I just wrote a whole app with no idea what views are Oct 10 03:15:27 zmuser3: that's impressive :p literally the core of android UI Oct 10 03:16:11 I learned some oop while writing it. void foo(View v) {foo();} void foo() { ... } Oct 10 03:16:24 for the different kinds of buttons Oct 10 03:16:27 so If i have intents to one class, I need to extend it from the other class? Oct 10 03:16:32 what exactly does extend do? Oct 10 03:19:35 I just got an icon so I am almost ready to go. should I just make my testers buy from the app store or should I put a download of the apk on my site for volunteer testers? Oct 10 03:20:19 whats the app?> Oct 10 03:20:24 check out testflight Oct 10 03:20:34 https://testflightapp.com/ Oct 10 03:21:05 cool Oct 10 03:22:02 They even have an api to get crashes and log information from the testers. Oct 10 03:22:09 it's optional though Oct 10 03:23:25 i just uploaded a new apk to the app store for alpha testing. How long does it usually take before the new apk takes effect? Oct 10 03:23:33 how do you solicit feedback from users? should I have a link to a website in the app? Oct 10 03:24:02 rednovae: it says 2 hours right there... Oct 10 03:24:22 testflight offers user feedback Oct 10 03:24:29 awesome Oct 10 03:24:32 jaynewstorm ok, two hours, thanks Oct 10 03:24:38 btw where does it say that? Oct 10 04:09:02 <^cheeky> elooo , using Picasso.. library, is there a way to clear the cache manually? Oct 10 04:11:08 Why do you want to? Oct 10 04:11:17 <^cheeky> hiiiiiii Oct 10 04:11:18 <^cheeky> heh Oct 10 04:12:10 <^cheeky> oh ummm.. well, see when i click the clear or let the user do a new search, i empty out my arraylist, so i am assuming .. at this point that the cache for the images and its keys still exist ? Oct 10 04:12:48 They do. Oct 10 04:13:25 Why not let them work their way out through regular use? Oct 10 04:14:27 hello everybody Oct 10 04:14:52 hey i was a part of my text to show in different color in the textview Oct 10 04:15:42 i tried using Html.fromHtml("") but its not working out Oct 10 04:15:55 ForegroundColorSpan Oct 10 04:16:13 <^cheeky> when i check the heap, after couple of images . my heap goes up to 18 MB ish .. this is after say 300 pics .. in 2 x 2 grid view, and also when i run adb shell proc , i see 2570k .. USS Oct 10 04:17:01 <^cheeky> JakeWharton: btw, thank you for this :) Oct 10 04:25:59 Html.fromHtml is crappy and slow Oct 10 04:29:19 pfn: can you please explain how Html.fromHtml is slow ? Oct 10 04:29:54 how? run through traceview and see Oct 10 04:30:24 it's maybe a hundred times slower than using spannables directly Oct 10 04:31:20 if you're processing lots of text to style, it's not an efficient method Oct 10 04:39:24 https://scontent-a-sjc.xx.fbcdn.net/hphotos-prn2/q71/1375883_10202158124534128_1175448209_n.jpg Oct 10 04:39:26 so there! Oct 10 04:45:57 that's so.... hilarious... really... Oct 10 04:46:20 I dont know if hyou are being sarcastic Oct 10 04:46:28 but I laughed my ass off about it at work Oct 10 04:51:52 you need to get out more Oct 10 04:52:24 that I do Oct 10 05:13:16 <^cheeky> so much to do with so lil time , srsly why no matriX!!!! Oct 10 05:30:45 can i use touch listener in a custom keyboard / ime? Oct 10 05:55:20 hey is it a good practice to make the context as a global member in an adapter ? I need the context in an adapter to retrieve some images Oct 10 05:55:51 <^cheeky> i am wondering the same issue, kinda Oct 10 05:56:24 <^cheeky> sunny_slls: you padd the context into the adapter and have the adapters member variable hold the reference . Oct 10 05:56:24 <^cheeky> ? Oct 10 05:57:15 ^cheeky: anyhow you have to pass the context in the adapter to inflate the view through layoutInflater Oct 10 05:57:59 ^cheeky: till the layoutInflater is alive anyhow context will be alive. so i am thinking that its no harm to assign the context to global variable Oct 10 05:58:03 <^cheeky> well from what i have been mucking about , i would just call get activity, Oct 10 05:58:03 what do you say ? Oct 10 05:58:38 ^cheeky: call getActivity() from adapter ? Oct 10 05:58:48 <^cheeky> but i switched to passing in the context into it .. that being a a get activity in my fragment class, but i also read that you should use getApplicationContect Oct 10 05:58:59 sunny_slls, from the adapter it depends if your adapter is in inner class or not Oct 10 05:59:08 i dont use inner classes for my adapters Oct 10 05:59:18 so context needs to be passed in if i need it Oct 10 05:59:20 <^cheeky> ^^ yeah sorry , like what lemonxah mine was an inner class Oct 10 05:59:24 its not bad practice :) Oct 10 05:59:26 I wouldn't use it as a global variable Oct 10 05:59:36 not global var Oct 10 05:59:40 lemonxah: mine too is an inner class Oct 10 05:59:46 well, you mean public static? Oct 10 05:59:51 hey anyhow we can get context from the LayoutInflater Oct 10 05:59:55 but a local var in the adapter is fine if you dont mind if the context becomes stale Oct 10 06:00:29 you should never have static vars with context in it EVAR Oct 10 06:00:30 heh Oct 10 06:00:34 that is bad Oct 10 06:00:57 lemonxah: thats not static so i don't think I have to worry about memory leak Oct 10 06:01:00 anr Oct 10 06:01:22 i can just do mLayoutInflater.getContext() which will give me the context Oct 10 06:01:31 What are the best android libraries to download images, and for general HTTP requests? Oct 10 06:01:33 <^cheeky> sunny_slls: check out memory analyzer its an eclipse plugin Oct 10 06:01:55 g00s, thnx for the info about the bug fix for 0.3.0 Oct 10 06:02:00 Gavilan3 i guess volley is ? Oct 10 06:02:06 lemonxah ;) Oct 10 06:03:23 sunny_slls, why do you need context in your adapter? Oct 10 06:04:06 lemonxah: i need some images to be retrieved based some conditions Oct 10 06:04:11 my adapter is a generic adapter Oct 10 06:04:23 g00s: have you used it? Oct 10 06:04:34 so for images usually i send an array of drawables but this is a special case Oct 10 06:04:45 so i need context for that Oct 10 06:05:04 Gavilan3 no; i just listen to what people say about it. seems people like it Oct 10 06:07:21 lemonxah: how do you work with adapters ? do you send the drawables or just the rid and retrieve it in adapter Oct 10 06:07:22 ?? Oct 10 06:07:38 retrieve it in the adapter Oct 10 06:07:50 but i only use cursor adapters Oct 10 06:08:00 and reed ids from the sqlite db Oct 10 06:08:22 then fetch them from my cache or download and cache and then get it from the cache Oct 10 06:09:04 lemonxah: still you need context for that Oct 10 06:09:23 yeah i know :) like i said i pass in context when creating the adapter Oct 10 06:09:29 in the constructor Oct 10 06:09:49 was just wondering what you doing with it cause i have seem some messed up backwards adapters :) Oct 10 06:10:46 lemonxah: ofcourse you have to pass the context to inflate the view for LayoutInflater or else you won't be able to do it Oct 10 06:11:24 yes but more than that though Oct 10 06:11:35 lemonxah: but then that happens in the constructor and after that you don't have the context. are you assigning it to a global context member ? Oct 10 06:11:48 and then using it ? Oct 10 06:11:52 like ppl using the context to mutate data in fragments Oct 10 06:12:03 instead of using the context for disk io or network io Oct 10 06:12:25 not global sunny_slls but local to the adapter Oct 10 06:12:31 sunny you can store it in the adapter field Oct 10 06:12:50 lemonxah: ya i mean the adapter's member variable Oct 10 06:12:51 just with private Context mContext; Oct 10 06:12:54 yeah that is fine Oct 10 06:12:57 lemonxah: correct Oct 10 06:13:26 lemonxah: i do the same way. but usually i send an array of user-defined class with drawables in it Oct 10 06:13:32 you might not have the latest context so keep that in mind but if you are nto trying to mutate data on the context you passed in like activity or some such then its perfectly fine Oct 10 06:14:02 sunny_slls, it all depends on the data you have before creating the adapter Oct 10 06:14:25 in our setup all data is in the ContentProvider and we dont do any data related work in the fragments or activities Oct 10 06:14:38 save for adding a chat to the db Oct 10 06:14:52 ok Oct 10 06:15:04 but for displaying purposes the adapter is supposed to do the heavy lifting Oct 10 06:26:15 um not too heavy adapter runs off ui thread so too heavy and you'll get anr Oct 10 06:58:04 anybody know of a good online site that will show me everything in a video tutorial to become android certified Oct 10 06:58:13 i dont mind paying Oct 10 06:58:15 for it Oct 10 06:59:23 android certified ? Oct 10 07:00:25 Zeppelin: there are no official certifications for android programmers, afaik Oct 10 07:00:43 oh really Oct 10 07:00:47 i thought there was one Oct 10 07:01:01 how do you get a android programming job then Oct 10 07:01:11 if you don't have a degree or experience Oct 10 07:01:32 how needs degree or experience in mobile ? Oct 10 07:01:37 *who Oct 10 07:01:59 all the jobs in australia Oct 10 07:02:05 say you need experience Oct 10 07:02:09 get a job in support or QA Oct 10 07:02:11 Zeppelin: github Oct 10 07:02:11 and a degree Oct 10 07:02:13 usually Oct 10 07:02:21 make your github awesome Oct 10 07:02:23 that's all you need Oct 10 07:02:25 whats github? Oct 10 07:02:38 your resume Oct 10 07:02:39 http://github.com/ Oct 10 07:03:09 actually, i dont buy into the github == resume ; plenty of people can't put their stuff online Oct 10 07:03:20 but you should have a portfolio Oct 10 07:03:29 at least 2 apps in the market Oct 10 07:03:45 at least thats what most of the jobs here ask for Oct 10 07:04:33 oh right Oct 10 07:04:39 but i worry about people who ask how to get certified; its putting the cart before the horse Oct 10 07:04:43 i dont have any apps Oct 10 07:04:46 in the market Oct 10 07:04:52 i need to learn android programming first Oct 10 07:04:52 if you do it because you like it; then it will be obvious Oct 10 07:05:21 so hard work and things to show X talkig to people about said things = results Oct 10 07:05:45 i love being around computers Oct 10 07:05:52 but how do you know if you love programming Oct 10 07:06:09 i never want to sit down and learn anything because it seems to long and hard Oct 10 07:06:24 write an irc client. that will give you some gui, some net, some parsing, some protocol understanding, some everything. can't have too many irc clients Oct 10 07:06:45 yer i thought about doing that Oct 10 07:06:55 make an irc client for android? Oct 10 07:07:01 sure Oct 10 07:07:26 how longs it take to write something like that Oct 10 07:09:52 java http://www.drdobbs.com/jvm/if-java-is-dying-it-sure-looks-awfully-h/240162390/ Oct 10 07:10:26 interesting that orace is actually doing a better job than sun at actually releasing versions Oct 10 07:13:48 I have my github commits link in my actual resume ... and Java is healthy ... but Javascript keeps trying to suck me in Oct 10 07:14:06 capella do you like js ? Oct 10 07:14:41 Well, I like it more as I use it and have gotten familiar, but I still dont like runtime interpreted langs Oct 10 07:15:14 but Im old school like that Oct 10 07:16:04 capella hey, wasn't thete a FFOS update today ? Oct 10 07:16:55 Today / yesterday / forget which ... real recent, yah .... I saw some stuff on hackernews and the techCrunch Oct 10 07:22:50 g00s: http://m.techcrunch.com/tag/mozilla/ Oct 10 07:23:38 * capella just got back from a mozilla summit in Toronto ... thinks I'll hack into FFOS for fun and to get chicks Oct 10 07:32:51 capella what do you think of the Shumway thing Oct 10 07:33:21 i kinda wish they would let that crap die Oct 10 07:33:41 We love it ! It's real fast ! And we've needed a replacement player like everyone else Oct 10 07:33:56 Die? Why? Oct 10 07:34:04 flash ? Oct 10 07:34:08 yah Oct 10 07:34:11 g00s: regarding oracle and versions... When you consider that they started by dropping features? Oct 10 07:34:55 capella well, i guess if it doesn't suffer from the same security fiasco as the real flash player Oct 10 07:34:56 ... jesus christ shumway Oct 10 07:35:09 yeah, screw that let flash die Oct 10 07:35:10 g00s: probably worse ;) Oct 10 07:35:14 ouch - critics Oct 10 07:35:18 "So, why are you in FOSS?" - capella: "For the girls, really." Oct 10 07:35:18 :P Oct 10 07:35:33 Chicks dig it XD Oct 10 07:35:44 man we were so close, steve almost did it Oct 10 07:35:48 actually Flash VM was one of the more interesting platforms. And anything that lets you run code and interact with local OS is giant attack surface anyway :> Oct 10 07:35:53 and then you guys bring this crap back Oct 10 07:36:42 kakazza: doesn't sound like a way to pick up people of apropriate orientation/sex ;) Oct 10 07:36:51 hehe Oct 10 07:37:22 well, i bet girls like the cute fox logos :) Oct 10 07:37:45 more like a way to end up in a minefield (ha!) and in soul-sucking industry ;) Oct 10 07:37:46 And the guy in the suit gets major hugs at events Oct 10 07:37:55 haha Oct 10 07:38:09 brilliant; get the fox suit job Oct 10 07:38:44 g00s: according to photo evidence, networking hw gets more action ;) Oct 10 07:39:40 capella the FF feature i want is : which of my 300 tabs is eating my cpu :D Oct 10 07:43:06 Im told we have no such thing :( Oct 10 07:43:43 i know, lots of people ask for it. i don't know how it could be done, really because of the architecture Oct 10 07:44:15 g00s: I think more easily than it was to limit resource usage in Chrome ;) Oct 10 07:44:52 i have this unloadTab extension, it /seems/ to work, but still my ff starts gobbling more and more over time Oct 10 07:45:00 memory and cpu Oct 10 07:45:09 We have this in nightly but its very rough https://wiki.mozilla.org/Electrolysis#Enabling_Electrolysis Oct 10 07:45:55 And memory is way more under control than it used to be .... just saw some charts at the summit Oct 10 07:45:57 Hey guys, is this channel appropraite for a chat about how android devices map the bluetooth radio? I'm looking to capture some packets using tcpdump. Oct 10 07:46:25 And my Nexus 4 doesn't appear to have a bluetooth network device, which is causing problems. Oct 10 07:46:55 capella i saw some stuff in aurora about large graphics bitmaps in pages Oct 10 07:47:44 Yah - sounds familiar ... they hit me with a lot of info in 4 days Oct 10 07:48:18 :) I learned we reeeeeally dont like eme Oct 10 07:48:23 https://blog.mozilla.org/nnethercote/2013/10/01/memshrink-progress-week-117-120/ Oct 10 07:48:34 capella eme ? Oct 10 07:48:48 media encryption W3C standards etc Oct 10 07:48:54 oooh yeah Oct 10 07:49:00 g00s that's the link I saw ! 3d charts Oct 10 07:49:52 Someone actually openned a bugzilla bug for people to agree never to work on patches supporting the standards :P Oct 10 07:50:00 yeah, saw that Oct 10 07:50:04 There's like 150 comments in 4 days Oct 10 07:50:29 i like mozilla; one of the tech companies i really respect ;) Oct 10 07:50:56 capella i might give the fox a hug … hope its not you ;) Oct 10 07:51:20 XD They asked meto sign up to wear it for a shift and I declined Oct 10 07:52:36 g00s! Spent 1800$ on a Thinkpad W530 that bricked after 9 days .... went back for repairs three weeks ago and counting .... :( Oct 10 07:53:20 does anyone have a proguard-android.txt example that adds libraries from gradle's dependency? Oct 10 07:53:25 oh man, what happened ? Oct 10 07:53:41 capella ^^^ Oct 10 07:54:03 well, brick i guess its totally x.x Oct 10 07:54:04 it just froze up .... would turn back on ... parts were backordered now mother board / palm rest they said Oct 10 07:54:06 They actually called this a.m. and said they'd be mad if they were me so they're over nighting a new one Oct 10 07:54:19 wow Oct 10 07:54:32 generally hear good things about lenovo Oct 10 07:54:43 at least their better ones Oct 10 07:54:43 I'm impressed ! And I told them! Oct 10 07:55:19 3-year gauranteed warrantee so I wasnt tooworried but still ... in the shop for that long sucked Oct 10 07:56:01 if this comment on HN is correct (i guess i could really go through the commit history) google stopped optimizing dvm around 2.3 wrt GC and JIT (around the time oracle started the sue them) Oct 10 07:56:13 hi, i use ActionBar .. ActionBarCompact, i put in Mainifest this code android:logo="@drawable/iconebar" Oct 10 07:56:36 I know Cory Doctorow swears by thinkpads on the basis of their global on-site warranty - basically that a guy will come to you within a few hours anywhere in the world they have cover Oct 10 07:56:50 :O Oct 10 07:56:52 on Android 4.3 Nexus 4 it works but on Nexus One android 2.3 don't work i don't see custom logo in ActionBar Oct 10 07:57:05 Wow ! Oct 10 07:57:48 Yeah, that's why I bought my first Thinkpad. Oct 10 07:57:57 3 years warranty, guy comes and repairs or leaves a replacement. Oct 10 07:57:58 All i know is the quadcore with SSD would build FF from ground up in 12 mins vs my last Win machine taking ~3 hours Oct 10 07:58:14 capella windows 8 ? Oct 10 07:58:32 ok, "the next day, or sometimes the day after" http://www.theguardian.com/technology/2011/may/17/computing-opensource Oct 10 07:58:33 linux ? Oct 10 07:58:34 No - I threw out the Win 7 it camewith and finally went native (linux) Oct 10 07:58:47 capella no driver issues ? Oct 10 07:58:49 native, heh Oct 10 07:59:16 Only driver issue was I switch the NVIDIA to the open source but both were working Oct 10 07:59:27 hibernate / sleep works ok ? Oct 10 07:59:33 no ndis wrapper bs ? Oct 10 08:00:01 I need to get a new laptop very soon... I'm not sure if I'll get something slightly blocky and business-y, or a cheap ultrabook-style one Oct 10 08:02:16 the non-apple ultrabooks with high dpi displays seem to get pretty poor battery life Oct 10 08:02:45 Leeds: Dell offers the same. Both ThinkPads and Dells were covered like that with premium support :) Oct 10 08:04:34 Leeds i had this bookmarked from a while ago, probably out of date http://www.codinghorror.com/blog/2012/09/the-last-pc-laptop.html Oct 10 08:04:41 i dont really keep up :) Oct 10 08:05:07 got meh reviews on amazon though :( Oct 10 08:05:11 if you travel a lot, the IBM global service is likely to beat anyone else - 8 years ago I spent some time working in a clothing factory outside Sri Lanka's main international airport - where they used all IBM (as was) kit because IBM were the only people able to give a proper service aroudn there Oct 10 08:05:56 also, AS/400, but it's better not to talk about that... the HK head office of the same company was all Dell, because Dell have proper local service in HK Oct 10 08:06:09 Leeds: well, my experience with IBM maxed out premium support was also rather... interesting Oct 10 08:06:30 As in "they had an engineer assigned to sit in our office, so that we didn't even have to call" Oct 10 08:07:03 we had HP support like that Oct 10 08:07:28 When I worked for Ryder at their Miami HQ we were a big IBM partner and they located onsite staff just for the account support also Oct 10 08:08:11 before I was in Sri Lanka... I was with Sun in the UK... strangely enough, we mainly used Sun kit, and if we had issues we just swapped something out :) Oct 10 08:11:05 if i am to translate a matrix, for instance matrix.preTranslate(10,10) would this move the matrix's upper left corner to (10,10), or move its current position by (10,10)= Oct 10 08:11:15 Leeds: I talked with a guy who worked with "top end" support staff at Sun. They had this lab with all kind of parts, located at an airfield, and if no one could figure what was happening they would build a copy of customer's system and progressively try to break it Oct 10 08:11:27 Leeds: then they would ship people and parts on direct flights :) Oct 10 08:12:26 I think the point is that there are/were *proper* support services around, of the "we guarantee your computer will be working within X hours, regardless of what it costs us" type Oct 10 08:18:52 making bt-lan game - sometimes there are delays sometimes not. api 14+. im wondering if this is normal behavior in BT? Oct 10 08:20:52 delays are more common if nothing is sent over rfcomm for some time Oct 10 08:21:03 as if the BT-baseband goes to some sleep Oct 10 08:21:11 if i am to translate a matrix, for instance matrix.preTranslate(10,10) would this move the matrix's upper left corner to (10,10), or move its current position by (10,10)= Oct 10 08:24:04 tortal there is no normal bt behavior ;) Oct 10 08:24:50 hah! Oct 10 08:29:15 Hey guys, I'm trying to work with a GridView of ImageViews. I've got it working to the point where my ImageViews show up and everything, but the GridView doesn't seem to make a new row or scroll Oct 10 08:29:59 I thought maybe the fact the GridView is within a ScrollView may be interfering, but when I moved it out of the ScrollView the ImageViews wouldn't even appear Oct 10 08:31:07 I'm kind of at a loss as to what's going on with it; I even tried setting numColumns to a low number and no luck :/ Oct 10 08:31:46 tortal, don't make it sleep then! Oct 10 08:36:07 Zharf: im talking about no transmissions for only abt 5 seconds. it's a real-time game, but spamming "pings" seems just like a ugly hack Oct 10 08:36:27 computertechie, you can have scrollviews in scrollviews Oct 10 08:36:44 cause which one should take the scroll event Oct 10 08:36:54 its like putting a listview in a scroll view Oct 10 08:37:30 tortal, guess how IRC works :D Oct 10 08:38:06 the listview will scroll so you wont see anything below the listview that is also in the scrollview Oct 10 08:38:12 so the scrollview is redundant Oct 10 08:38:30 There's elements other than the GridView in the ScrollView Oct 10 08:39:00 And like I said, I tried moving the GridView out of the ScrollView, but then nothing appeared at all when I added the ImageViews Oct 10 08:39:54 computertechie, the reason nothing shows up could be completely unrelated and i wouldn't know i cant see the code Oct 10 08:41:39 computertechie, also if you want to use a gridview inside a scrollview why not change it to gridlayout inside the scrollview Oct 10 08:41:53 that way you will get the desired scrolling Oct 10 08:42:17 or you have to dispatchTouchEvents to child vies Oct 10 08:42:22 views** Oct 10 08:43:40 guys anyone who can explain matrix.translate / canvas.translate for me ? i know it moves the image or whatever - but if i call translate(10,10) would it move the upper left corner towards those coordinates or just move the current position by the new coordinates Oct 10 08:48:02 troloyolo: it would mean any consecutive operations will be relative to 10,10 Oct 10 08:48:31 if I do something.translate(10,10); something.drawRect(10,10,10,10); Oct 10 08:48:52 the drawRect will draw the rectangle at 20,20 Oct 10 08:49:32 nb-ben is there any other way i can change the position of a canvas ? because my bounds dont function that well Oct 10 08:50:52 lemonxah, I had a GridLayout previously; if I remember right I switched to GridView based on GL not working well with dynamic data/varying number of views Oct 10 08:56:23 Anyone know any problems with using rawQuery in adnroid 4.0.3 and 4.0.4, getting java.lang.NoSuchMethodError: android.database.sqlite.SQLiteDatabase.rawQuery even in the emulator... Oct 10 08:56:55 either the two or three parameter query i get the same result Oct 10 09:04:07 hi, how can i make apps install location to external sd card through modify android source code ? which part ? i am using ics 4.0.4 Oct 10 09:04:56 I have String password = txtPassword.getText().toString().trim(); and want to determine if the string is empty, so I did password.equals( "" ) but this is not working. How do I check for an empty string? Oct 10 09:06:15 why not just check the length? Oct 10 09:06:43 zquad textUtils.isEmpty() Oct 10 09:06:58 .isEmpty() is only available at api 9+ Oct 10 09:07:08 then you won't have to check for nulls either Oct 10 09:07:13 checking the length must be too hard. oh well. Oct 10 09:07:13 my current minimum is 7 Oct 10 09:07:14 ? Oct 10 09:07:21 TextUtils Oct 10 09:08:02 api 1 Oct 10 09:08:27 one sec let me chekc the documentation again Oct 10 09:08:30 someone can tell me how i can use a landscape layout in pixel perfect? on the device the layout is landscape but in the pp view pane it is portrait show, thats makes it hard to optimize. thanks Oct 10 09:10:20 aaah thanks g00s Oct 10 09:12:15 Hey, google analytics SDK zip is 2.8MB, any idea what's the added size on the APK ? Oct 10 09:14:22 does anyone know what the most efficient map data structure in android? Oct 10 09:14:22 viran, ~200k Oct 10 09:14:35 for what Oct 10 09:14:37 someone can tell me how i can use a landscape layout in pixel perfect? on the device the layout is landscape but in the pp view pane it is portrait show, thats makes it hard to optimize. thanks Oct 10 09:14:39 purpose Oct 10 09:15:45 i just want to make it easier to lookup pairs of floatbuffer objects from a given string Oct 10 09:15:58 thanks drindt Oct 10 09:39:20 I am a secure web URL and is getting an error No peer certificate. You need a special procedure for... anyone familiar with this issue? Oct 10 09:39:43 aw man, i got my first bad review "Plain Sucks It just plain sucks" Oct 10 09:40:01 job review? Oct 10 09:40:08 app review Oct 10 09:40:16 OMG Oct 10 09:40:25 sorry I should stop drink this hour Oct 10 09:40:46 well, at least they were descriptive Oct 10 09:54:23 what's the app g00s Oct 10 09:54:24 ? Oct 10 10:00:13 g00s: Yeah, had that recently too. Oct 10 10:00:45 Very foul language, but basically boiled down to "Disappointed it didn't have all the features it explicitly said it didn't have" Oct 10 10:01:12 its disheartening Oct 10 10:01:15 "What, vim doesn't play 4K video? FUCKING PIECE OF SHIT EDITOR" Oct 10 10:01:24 heh Oct 10 10:01:27 inb4 emacs can do that Oct 10 10:02:05 He actually went into great detail, listing all the things he missed, asking for the app to be removed from the app store, heh. Oct 10 10:02:28 asking for the app to be removed ? O.o Oct 10 10:02:32 Gladly, the other reviews are 5 and some 4 stars. Oct 10 10:03:04 Yeah, it seems the app made him really angry. Like it's his personal nemesis. Oct 10 10:03:13 * kakazza shrugs Oct 10 10:03:50 Not sure what to answer. Currently I'm very much in favor of "pls troll somewhere else". But I'll let it slip and come up with a nice reply ;) Oct 10 10:03:53 Heh - I get that ... "I rate this 2 out of 5 stars cause the FF addon restores functionality that my version of FF hasn't removed yet so I dont see why anyone else would need this" Oct 10 10:04:13 hah! Oct 10 10:04:15 There is people in the play/app store that seriously need to find something else to do than publish irrelevant comments in app pages Oct 10 10:04:25 Which addons do you develop/maintain, capella? Oct 10 10:04:27 What options are there to update an app which won't be on the app store (business reasons)? For example the original Humble Bundle ran a check for updated version then downloaded to the device ready for install. Is there a need for a service? Oct 10 10:04:53 I got a 1 star review because the user couldnt download the app from playstore e.e Oct 10 10:04:56 Firefox Mobile addon called QuitNow ... just a stupid little vanity addon Oct 10 10:06:00 Ah Oct 10 10:06:10 Is there really a need for that? Oct 10 10:06:16 Then I get "The addon is supposed to quit the application but I can see it listed in the most recent apps page so its still running - no soup for you!" Oct 10 10:06:18 Do people feel the need to quit FF? Oct 10 10:06:29 ... Oct 10 10:06:40 Yah - we used to have that as a main mennu option but we removed it and people complained Oct 10 10:06:42 Tell him to "adb shell top" ;p Oct 10 10:06:58 It's a fast way to bail the app Oct 10 10:07:06 Heh, people get used to things too quickly. Even if it's probably their only app that had a Quit button. Oct 10 10:07:18 other ways is to hit back like 1000 times or use the Android app killer Oct 10 10:07:41 The Android App killer is my favourite way of doing it. Very comfortable to do with your thumb. Oct 10 10:07:54 At least on phones with soft keys. Oct 10 10:07:58 Like the N4 Oct 10 10:08:19 it would be good to close it by long pressing the back key :/ Oct 10 10:08:31 Yah byt people freke when they see "if you force stop and app it may kill your grandma and rape your cat' Oct 10 10:08:43 type messages Oct 10 10:11:51 I bet there's anecdotal evidence! Oct 10 10:14:07 Heh - I finally put a disclaimer on the addon that I change from time to time ... says stuff like QuitNow does not contribute to global climate change, is not a net producer of galactic neutralinos, has not been shown to create magnetic monopoles, etc.... Oct 10 10:14:57 g00s what is your app? Oct 10 10:15:21 I bet a lot of smokers gave 1 star reviews. "Did not help me quit" Oct 10 10:16:30 Google search for QuitNow turns up a Playstore app for smokers to quit by that name Oct 10 10:16:57 But yah - Im ewaiting for the first one of those XD Oct 10 10:17:30 700,000 downloads and 84,000 avg daily users :D Oct 10 10:17:44 I made a whole bunch of no money ;) Oct 10 10:18:25 i like your icon Oct 10 10:18:51 reminds of the meme "talk to the hand" Oct 10 10:18:58 It's the actual Moz icon from before ... the UI guys asked meto use it Oct 10 10:19:54 how are guys incentivised to keep making apps when they offer them for free? Oct 10 10:20:23 "this app actually compelled me to smoke more than ever!" Oct 10 10:20:34 :) Oct 10 10:20:36 Well Im a moz contributor in the FF android app ... I supplied that in case of user push back ... which we received Oct 10 10:20:48 when we removed the original Oct 10 10:25:36 did the social network aspect really make a signifigant difference to the downloads? Oct 10 10:26:26 *i mean do you know if Oct 10 10:30:15 Hello. By Default executeOnExecutor will process the tasks from the first to the last, right? When i add one task it will be executed as LAST task, isnt it? Oct 10 11:15:24 hi people! Oct 10 11:16:22 I want to create some Fragments that are not visible yet and just register them to the FragmentManager. I do it but when I want to retrieve the Fragments, with findFragmentByTag, it always returns null. Do you have any idea why? Oct 10 11:18:59 define "register them to fm"? Oct 10 11:19:27 tx.add(frgmt, TAG_LIST); Oct 10 11:19:33 tx is a FragmentTransaction Oct 10 11:24:07 Hey everyone Oct 10 11:24:18 your are commiting the transaction? Oct 10 11:24:41 http://pastebin.com/W2yccpNF how can line 12 be NULL? Oct 10 11:24:58 i get a null pointer exception.. Oct 10 11:25:11 db is null Oct 10 11:25:20 believe prefs returns null for string if key not found Oct 10 11:26:15 yes but.. before its checked with != null AND new File(db).exists ... Oct 10 11:26:46 oh yeah tunnel vision setting in ;p Oct 10 11:26:52 wa.decryptDB(new File(db)); Oct 10 11:26:54 wa null? Oct 10 11:27:07 yes I commited the transaction Oct 10 11:27:22 oh lol Oct 10 11:27:26 im an idiot. Oct 10 11:27:29 ;) Oct 10 11:27:29 Thank you hokkaido. :) Oct 10 11:27:44 I didn't see in the snippet setting wa Oct 10 11:27:45 are you casting your findfragmentbyid as your fragment object type? Oct 10 11:28:00 yes, I am doing the cast Oct 10 11:28:30 i create the fragments in the onCreate of the activity Oct 10 11:29:01 code? Oct 10 11:31:20 hop: http://pastebin.com/tQ6EeyZk Oct 10 11:32:04 i show only one of these fragments at a time Oct 10 11:39:05 i dont understand why it returns null for the fragments Oct 10 11:40:49 i am tired but does the fragment manager lose reference to the fragment when the method goes out of scope because it is non-static method member? Oct 10 11:43:17 hum good point Oct 10 11:43:33 will check that Oct 10 11:43:37 thx Oct 10 11:45:03 shibakaneki, are you using the getFragmentManager().BeginTransaction().replace? Oct 10 11:45:06 or only add? Oct 10 11:45:13 cause add does not display the fragment Oct 10 11:46:17 sry i only came in at the end of the conversation :) Oct 10 11:47:07 replace also replaces the fragments meaning it removes the previous fragment Oct 10 11:47:43 i want to register the fragments to the fragmentmanager, without showing them. so i use add. later i want to show them with replace but the problem is that i cannot find them in the manager with findfragmentbytag Oct 10 11:48:14 but i will try using static variables Oct 10 11:48:21 no no Oct 10 11:48:27 never use static variables Oct 10 11:49:01 static variables have their uses Oct 10 11:49:07 yeah wtf kind of advice is that Oct 10 11:49:20 lemonxah lots of people use singelton fragment pattern Oct 10 11:49:31 lasserix i use that aswell Oct 10 11:49:41 but you have to let the fragmentmanager manange them Oct 10 11:49:50 cause else you will leak it Oct 10 11:50:06 shinakaneki you dont need to use static, but you could try instancing each in the activity scope and just use those as your reference Oct 10 11:50:10 singletons are evil Oct 10 11:50:11 dont try to fix the fragment manager issues by using static Oct 10 11:50:15 i also retain the fragment instance Oct 10 11:50:21 rather just fix the fragment manager Oct 10 11:50:33 anyways i got to talk the cat out before he jumps me good luck! Oct 10 11:50:38 singletons are stateful and dependency on singletons means untestable code Oct 10 11:51:10 too bad alot of resources on a mobile device are singletons Oct 10 11:51:14 yes nb-ben that is why i dont create a singleton as such but use the fragment manager to keep "singleton like fragment" Oct 10 11:51:22 For those that saw me coming past the last few days; thankfully i've solved my compile and signing errors :) Though i'm running into another something i can't find an answer for. Oct 10 11:51:33 and recreate it if the fragment manager decides to clean itself and drop it Oct 10 11:51:42 that's because a lot of the APIs were written by the people who were developing the VM Oct 10 11:51:43 I'm trying to Deserialize a JSON String again, this time of another structure. Oct 10 11:51:51 those people are not Java develoeprs by profession Oct 10 11:51:57 rather they are C++ developers Oct 10 11:52:18 that develop a platform that interprets not java, but the bytecode produced by the JVM Oct 10 11:52:30 and static variables do have a place .. but a static fragment or activity is not such a use Oct 10 11:52:48 place** Oct 10 11:52:56 and then interprets not bytecode, but the binary format that was generated based on the bytecode that was generated by the JVM Oct 10 11:53:03 Though i can't seem to get GSON to parse Objects contained in the JSON, it seems to try to handle it as an Array (as i get Expected BEGIN_ARRAY but was BEGIN_OBJECT). though since im having issues finding answers on its; it should be perfectly possible for GSON to parse custom objects, right? Oct 10 11:53:12 is there reason why the fragmentmanager returns null for a fragment that has been added with add and the proper tag? Oct 10 11:54:42 shibakaneki, i am looking at your code now Oct 10 11:54:52 will loose wifi am entering the underground of tokyo... my poor wifi,,. Oct 10 11:54:58 thx! Oct 10 11:55:40 Annihlator, that usually just means you either have broken JSON or you're trying to parse an object as an array Oct 10 11:56:42 Yeah it's definately that im trying to parse an object as an array, though i can't seem to find working examples of how to parse it as an object instead. Oct 10 12:03:10 I'm trying to deserialize it as a complete class "ParsedJSON" from the current JSON string: {"success":1,"response":{"dvds":{"IronMan":{"rating":"awesome"},"BatMan":{"rating":"awesome"},"Smurfs":{"rating":"childish"}}}} Its purely for debugging right now haha. but i made also a class Dvd that holds a String value rating. How do i get GSON to recognize the object children of "dvds" correctly a Dvd class? Oct 10 12:04:25 back Oct 10 12:22:41 guys, is there a way to get the mac address of a device without having a Context?? Oct 10 12:24:13 zquad: http://stackoverflow.com/questions/11705906/how-to-get-mac-address-device-in-android Oct 10 12:24:43 :) I saw that link and several others from google, but they all require the Context object Oct 10 12:25:06 zquad, the context describes your device environment Oct 10 12:25:19 so you need it to get device data from OS Oct 10 12:25:19 the context there is a static context not a referenced one Oct 10 12:25:41 zquad, so you need to get at least the global context Oct 10 12:25:58 sorry, you're right. I do not have getSystemService Oct 10 12:27:15 This is my first app. I have a separate class that pulls device information, called DeviceProperties and it doesn't have an injection method. Oct 10 12:27:55 Mavrik is there really a global context that all my classes can access? Oct 10 12:29:09 Mavrik. could you perhaps look at my problem oncemore? I'm parsing this string: {"success":1,"response":{"dvds":{"IronMan":{"rating":"awesome"},"BatMan":{"rating":"awesome"},"Smurfs":{"rating":"childish"}}}} but my issue is that i dont know how to have children of dvds be recognized as a Dvd-class objects Oct 10 12:29:41 zquad: due to memory leak errors sadly no. Though it's quite common to have context helpers throughout an app. (usually called mContext in other people's code ;) ) Oct 10 12:30:22 Annihlator one sec, the json problem seems like you want to include child DVDs within the json object? Am I right? Oct 10 12:31:13 zquad, you have an application context you should use in those cases Oct 10 12:31:25 yeah basically every child should instance a Dvd-class object which only has a String called title and a String called rating Oct 10 12:31:28 but you will have to inject it one way or another from another object Oct 10 12:31:40 Annihlator, sorry, never used GSON seriously, so I wouldn't know :/ Oct 10 12:32:33 so Mavrik, I have no choice but to pass the main Context to every single class I write and inject the context after each class instance? Oct 10 12:33:01 that's a wierd question Oct 10 12:33:07 what is a "main context"? Oct 10 12:33:10 and inject after instance? Oct 10 12:35:20 zquad: example in an Activity: object.myMethod(getApplicationContext()); in class; myMethod(Context context){ // context.whateverAction();} Oct 10 12:35:31 when I create a new layout/form I am extending Activity. Often in several other classes of my code I would need AN Activity to reference. Are you saying I have no choice but to have an inject method in every class and after every instantiation of a new class, inject the Activity from the calling class? Oct 10 12:43:08 I know that the ant.properties file gets added to the version control system for a project. You can put your key.store and key.alias into this file. Oct 10 12:44:10 zquad, sorta. You need an activity because it contains a context, but you reference context.getApplicationContext() and pass -that- to whatever class needs a context Oct 10 12:44:36 why would this file be in the control system, becasue they keystore won't be in the same path if a person uses multiple computers for development Oct 10 12:45:45 you can also keep the relevant keystore in the project folder, thus allowing to sync that too ;) Oct 10 12:46:02 i don't htink thats a good idea Oct 10 12:46:38 I use it myself when i hand over projects or for quick mobility when switching alot between desktop and laptop using usb Oct 10 12:46:49 but it brings along security issues otherwise yes Oct 10 12:49:59 letting ant do all the work may not be the best idea. Oct 10 12:50:31 So guys this will explain: http://pastebin.com/mp72Hm5x In my class libraries I will have to inject the Activity in every single class. Is this good practice because it seems like this is what I am forced to do. In my calls I have 4 functions, passing Activity in each case. Oct 10 12:54:36 zquad ; the paste is set to private Oct 10 12:55:14 try again, sorry about that :) Oct 10 13:00:56 hello, I am adding an API to my android project, it has a jar file and a shared library .so , I added the .jar file, configured the build path and placed the .so file in the corresponding libs folder under armeabi but for some reason I am getting the error INSTALL_FAILED_MISSING_SHARED_LIBRARY.. Oct 10 13:01:09 what else is needed to add the shared lib ?? Oct 10 13:04:38 Zquad : I haven't checked the code on errors, but in general this should work quite well: http://pastebin.com/WpZbtjWn I use such methods so i only have to create a util reference once when creating or returning to the activity. Oct 10 13:05:50 then i can use my other functions by first referencing the util :) Oct 10 13:07:15 awesome, thanks Annihlator Oct 10 13:07:56 in Annihlator you created a factory :) Oct 10 13:09:13 I believe so yes. I really love how it simplifies having to update the mContext only when it could have potentially changed (so also onResume i.e.) Oct 10 13:10:06 sometimes to prevent having to fill the util object again, i also provide a setContext(Context context) method in the Util class. i guess the use of that is obvious :) Oct 10 13:10:28 so if(util != null) util.setContext(getApplicationContext); Oct 10 13:11:04 yup Oct 10 13:12:48 I still find it hard to believe i still have so much issues in getting GSON to behave itself like i want it to :p recognizes my collections dangit :p Oct 10 13:12:59 recognize* Oct 10 13:14:14 Hey guys, i need an advice Oct 10 13:14:28 what is the best way to schedule night-mode in my application Oct 10 13:14:56 in settings i can set NIGHT MODE option, that will disable all notifications, vibration, and ring tones Oct 10 13:15:22 and this night mode works in given period of time eg. 22:00 PM - 08:00 AM Oct 10 13:17:09 how do you mean best way to schedule, as in how to actually toggle it within the application? or additional input on other ways of measuring wether it's night? Oct 10 13:18:57 ok, never mind, i found an idea to use alarm manager Oct 10 13:23:12 if i have an image file in my drawable folders - how would i retrieve its path ? Oct 10 13:23:39 getResources().getDrawable(R.drawable.imagename); Oct 10 13:24:27 (MUST be called from an activity or context) Oct 10 13:24:55 Annihlator - i need the path so that i can load the image in a webview Oct 10 13:25:11 * Zharf sighs Oct 10 13:26:39 Hi, i would like to implement my own softkeyboard. what do i need to do that it will be chooseable in system settings? Oct 10 13:27:06 any advice would be great Oct 10 13:27:45 troloyolo should not (normally?) be possible as the resources are packed into the APK and cannot be accessed outside of it for security. you can however export the image you want to show to a (semi-)static location and use THAT path to view it :) Oct 10 13:28:26 (i.e. writing to external sd card in a directory) Oct 10 13:28:44 Annihlator - great, thanks Oct 10 13:50:06 sigh Oct 10 13:50:08 mediacodec sucks Oct 10 13:50:48 yes, mediacodec sucks Oct 10 13:51:36 mediacodec sucks Oct 10 13:57:13 mediaanything sucks on Android sadly : - Oct 10 14:03:33 mediayourmom sucks Oct 10 14:04:05 use ffmpeg Oct 10 14:05:08 shmoooz, that's not really an alternative for alot of usecases Oct 10 14:07:22 Mavrik: is that because of licencing ? Oct 10 14:07:51 no, it's because it doesn't use HW encoders and decoders Oct 10 14:07:59 plus you need to get frames to it which it very expensive Oct 10 14:08:36 runs smooth on my old htc phone Oct 10 14:09:18 smooth what? Oct 10 14:09:21 720p encoding? Oct 10 14:09:33 playback on players that use ffmpeg Oct 10 14:10:00 MediaCodec is used for encoding mostly Oct 10 14:10:09 client wanted to get rid of ffmpeg in this project... -.- Oct 10 14:10:18 oh Oct 10 14:10:38 then you have to invent something I guess Oct 10 14:10:39 decoding as well, but most people just skip to MediaPlayer for that Oct 10 14:10:39 I'm having trouble decoding AAC Oct 10 14:11:18 Zharf, hmm, what kind of trouble? Oct 10 14:12:20 10-10 17:12:09.142: WARN/SoftAAC2(2579): AAC decoder returned error 16388, substituting silence Oct 10 14:12:23 10-10 17:12:09.142: ERROR/SoftAAC2(2579): Not enough audio data for the complete frame. Got 805 bytes, frame size according to the ADTS header is 2121 bytes. Oct 10 14:12:26 kind Oct 10 14:12:42 I'm just giving mediacodec data from mediaextractor like I did with video Oct 10 14:13:41 hmm Oct 10 14:13:50 yeah, AAC decoders like if you give them full frames Oct 10 14:13:58 maybe you'll have to join them in a buffer beforehand Oct 10 14:14:36 how :) Oct 10 14:14:44 Does anyone of you know a good tutorial on how to use tabs in an android app? Oct 10 14:16:02 hello Oct 10 14:16:09 so I'm trying to make a streaming app on android (AAC + H264) and I have sync issues. What channel could I go to for help ? Oct 10 14:16:42 I'd ask here but this is more of a Audio/Video problem Oct 10 14:18:42 Mavrik, hm, apparently if I don't switch between mediaextractor tracks it won't crash Oct 10 14:19:09 @V oicu be sure to check if it's cause Oct 10 14:19:17 Zharf, hmm, that makes wierd kind of sense Oct 10 14:19:26 Voicu be sure to check if it's cause of the stream itself with another app ;)\ Oct 10 14:19:27 what is the minimum amount of devices i should have to test apps on? is 5 enough, eg a 480p phone, a 720p phone, a 1080p phone, a 720p tablet(7 inch), a 1080p tablet(10 inch) Oct 10 14:19:29 I'm probably doing it wrong(tm) Oct 10 14:19:47 Zharf, usually when doing decoding on most decoders you just real all packets and discard the ones you're not interested in Oct 10 14:19:54 I guess demuxer on Android could be buggy :P Oct 10 14:20:04 occ, get some Samsung crap as well Oct 10 14:20:07 Annihlator: no, what I'm trying is to stream FROM the phone (to a wowza server) Oct 10 14:20:18 occ, they're usually broken in very creative ways and are very popular Oct 10 14:20:33 I guess I should have clarified that Oct 10 14:20:43 yeh i think the 1080p phone on that list will be a samsung s4, the rest nexus devices Oct 10 14:20:48 will that be enough? Oct 10 14:20:51 Voicu no problem makes me feel glad i posed that obvious point haha :p Oct 10 14:21:01 occ, depends on how complicated your app is Oct 10 14:21:10 so I'm trying an android app that lets me stream *from* the phone to a server (AAC + H264) and I have sync issues. What channel could I go to for help ? Oct 10 14:21:21 so I'm trying to make an android app that lets me stream *from* the phone to a server (AAC + H264) and I have sync issues. What channel could I go to for help ? Oct 10 14:21:47 or if anyone here can help I'd gladly accept it :D Oct 10 14:22:15 Is there any way to check which Activity the user is in from an AsyncTask? Oct 10 14:24:05 Voicu: just tell us where you are stuck Oct 10 14:24:34 Wuppy21_: you could pass context to your async task class Oct 10 14:24:50 can you check which activity you are in from context? Oct 10 14:25:11 i should think that context is always the activity Oct 10 14:25:22 (I need to know if the user is still in the same activity from when he/she started the async) Oct 10 14:25:27 and it's a pretty long asyn Oct 10 14:25:42 shmoooz: well, as I see it now I have 2 options: MediaRecorder (works with old API) and MediaCodec (works with API 16+). I found this library https://github.com/fyhertz/libstreaming that implements everything with MediaRecorder Oct 10 14:25:50 Wuppy21_, uhm, there's no good way of checking that directly Oct 10 14:25:56 Wuppy21_, I suggest you rethink your design Oct 10 14:26:08 since the question itself implies you have something strange going on :) Oct 10 14:26:23 Mavrik what would be better design... Oct 10 14:26:31 now, my problem is that the library has sync issues and AFAICT from searching that is an unavoidable problem when using MediaRecorder Oct 10 14:26:42 right now I'm using an Async to download quite a few things from the internet. When that is done it should go to the next activity Oct 10 14:26:52 and I enter the next activity from the last line of code in the async Oct 10 14:27:03 the whole point of doing things asyc Oct 10 14:27:12 is to make sure that you aren't stuck waiting Oct 10 14:27:40 DarkSlay3r the app requires all the info before going to the next screen and you can't use network code in the main thread (activity) Oct 10 14:27:43 if the user is required to wait, slap on a loading dialog Oct 10 14:27:49 anyone who has a guide on how one would use an external database - sql or sqlite in an android application ? Oct 10 14:29:53 DarkSlay3r then how am I supposed to download things from the internet? Oct 10 14:30:21 anyway, what I want to ask is if I want to make a stream be properly synced (audio/video) what do I have to do? do I need to update the timestamps that MediaRecorder only writes at the end Oct 10 14:30:49 Think of this Oct 10 14:30:51 or do I just need to tweak the buffering and RTCP part of the stream Oct 10 14:31:19 you click a button and load the dialog, start the async task and update the dialog with progress Oct 10 14:31:32 when it's finished dismiss and open the next activity Oct 10 14:31:44 hi Oct 10 14:33:40 i'm using ActionBar, ActionBarCompact. i delete logo and put Title. When i used logo User can click and go back Oct 10 14:33:55 with title... click don't work Oct 10 14:37:41 In my app I have a table with all the subjects and a table with note title and link, I am using a content provider that loads all the subject and when the user clicks on one subject it should display all the notes of that specific subject. How can I obtain this behavior with a content provider? When do I need to join the tables? Oct 10 14:43:02 <_kas> Is there a way to get a list of all URIs listeners registered by apps on your phone? I need to figure out what URIs certain apps are listening for. Oct 10 14:54:21 hello Oct 10 14:54:32 how do I create a view Oct 10 14:59:05 is there a way to tee off a file output? Oct 10 15:00:01 actually, nvm, it wouldn't work Oct 10 15:02:00 what does tee off even mean? i thought that was a golf term Oct 10 15:03:50 man tee Oct 10 15:04:28 Does anyone by any chance know where can I find any tutorial for decoding h264 bitstream (over the network) using MediaCodec? Oct 10 15:05:30 wow learning android is so hard Oct 10 15:05:42 I am only at the beginning fo the d.android.com tutorial and I am lost Oct 10 15:06:03 beaky: well, you're ahead of me....:) Oct 10 15:06:05 where can I get a high-level explanation for how android apps are typically architected? Oct 10 15:06:15 ahead? Oct 10 15:06:30 still downloading eclipse? :D Oct 10 15:06:35 I'm behind you.... Oct 10 15:06:50 beaky, if you're lost, then you probably need a better grounding in basic java programming Oct 10 15:07:19 I have the android app development environment running (using eclipse), but I haven't written a single line of code yet Oct 10 15:07:29 ah Oct 10 15:07:37 beaky, because d.android.com is the canonical place for all documentation and it's all pretty well organized and written Oct 10 15:07:50 right Oct 10 15:08:05 I came here to ask: does anyone have links related to writing software for my lg 850g cell phone Oct 10 15:09:10 it is quite detailed and well-written with every line documented, but the tutorials are written with a lot of handholding and generating scaffolding with little explanation of the bigger picture Oct 10 15:09:49 rosco_y isn't that the prada? Oct 10 15:09:49 are they MVC? MVVM? simple Model-UI? Client-Server? Oct 10 15:10:16 Annihlator: I refuse to answer until I know what a prada is ;) Oct 10 15:10:29 beaky, simple model UI Oct 10 15:10:35 aha Oct 10 15:10:47 http://www.gsmarena.com/lg_ke850_prada-1828.php <- it's the only thing google would return when i tried looking what device an LG 850G is :p Oct 10 15:10:53 you kinda gather that by looking at the code examples :p Oct 10 15:11:25 right I should've read further Oct 10 15:11:27 It's is a very basic gui on the phone, I was surprised to learn that it's android--although it makes sense in that android is open source Oct 10 15:11:58 but I really don't know what I'm talking about--I'm looking for some beginner tutorials Oct 10 15:14:18 hello android, is a decent beginner book Oct 10 15:14:30 occ, thank you Oct 10 15:15:30 "Dinner's Ready"--the other way to pronounce my name..... Oct 10 15:15:55 thank you, Annihlator, beaky, pfn, occ et. al. Oct 10 15:17:19 oh dear, build tools is up to 0.6.1 Oct 10 15:20:59 when will gradle replace ant? Oct 10 15:22:08 * pfn shrugs Oct 10 15:22:16 when it actually works right for all configurations? Oct 10 15:22:18 why is gradle better than ant? Oct 10 15:24:33 because it manages dependencies and a better library build process Oct 10 15:24:58 <^cheeky> i am kinda stuck on how to move on forward this is my second take on, this app i am working so i refactored and using a cacheing library and all, but i am not sure, how to go about to displaying images in a view pager, if the user clicks on an image, it will take them to a view pager where they can start swiping the pics and gain more info about the pic. Whats worrying me is the fact that i am using, a gridView thats bottom is endle Oct 10 15:24:59 ah cool i love gradle Oct 10 15:24:59 <^cheeky> thinking when the user clicks on an image. i will extract all the items url links for each item in the grid view in a array and pass it to the viewpager activity and from there each page will download the image. please any insight would be really really helpful... Oct 10 15:25:15 <^cheeky> beaky: having fun being in the droid verse :P Oct 10 15:25:35 how can you love gradle if you don't know how it's better than ant? :p Oct 10 15:28:34 hey guys, i got a question ... if i got a port number is there a function that returns me the protocol name ... for example if i got port 80 it should return http (or www) and for 21 ftp, etc ... Oct 10 15:29:09 is there an equivalent of /etc/services on android? if not, no Oct 10 15:30:17 ok, hm i don't know, i will look into that. .. thx ;) Oct 10 15:32:04 otherwise, bundle /etc/services as an asset and write your own simple parser Oct 10 15:35:13 where is com.android.vending.INSTALL_REFERRER documented? Oct 10 15:35:17 <^cheeky> would it be benificial if i write the gallery items, i download into a json file and store it in singleton object, and share the item info between the viewpager and the grid view ? Oct 10 15:41:21 <^cheeky> blah, i dont think that would work, because, i would have two different sets of arrays, one for the adapters and one for the singelton class, and when i clear and reset them i would have to keep an eye out for for both. might cause more bugs than what i have to deal with Oct 10 15:47:16 wow, there's not a single canonical reference for com.android.vending.INSTALL_REFERRER anywhere? Oct 10 15:47:21 what kinda crap is that Oct 10 15:47:35 xd Oct 10 15:58:01 help, how can I setOnItemLongClickListener for WebView? It seems the WebView does not have this interface. Oct 10 16:00:06 WebViews aren't adapterviews Oct 10 16:00:09 and thus don't have 'items' Oct 10 16:00:55 <^cheeky> SeanWangDream: i havent messed around with this, googley gave me this Oct 10 16:00:56 <^cheeky> http://stackoverflow.com/questions/5116909/how-i-can-get-onclick-event-on-webview-in-android Oct 10 16:01:09 what I want is to response text selection in webview Oct 10 16:01:43 then look through the various webview and webviewclient apidocs Oct 10 16:01:50 to find the interface you're looking for Oct 10 16:01:55 not applying random api calls Oct 10 16:19:26 i reckon if i see stuff about " Oct 10 16:19:28 uses unchecked or unsafe operations. Oct 10 16:19:29 [javac] Note: Recompile with -Xlint:unchecked for details. Oct 10 16:19:40 I probably should fix stuff like that Oct 10 16:23:59 hi, anyone using paypal sdk and getting java.lang.NoClassDefFoundError: com.paypal.android.sdk.payments.PayPalService? Oct 10 16:24:51 vydd, did you add it to your buildpath? did you clean and build? did you download the newest SDK? Oct 10 16:26:12 romainguy, what are doing now that you're not in the Android team? Oct 10 16:27:14 lots of cool shit, I imagine :p Oct 10 16:28:33 heres some code, http://paste.fedoraproject.org/45817/81422480/ line 54 is the warning about unchecked generic array creation Oct 10 16:29:19 thepoosh: oh, it was in the buildpath, but after a bit of tinkering I found out that source attachment field was empty...setting that to point to .jar made it work (well, I guess, now I'll have to test the API, but the activity is showing up, no errors) thanks! Oct 10 16:29:28 did I not create the arraylist the right way back on line 49 or something? Oct 10 16:30:07 kc8hfi, add the execute method Oct 10 16:32:56 thepoosh: http://paste.fedoraproject.org/45822/14227561/ Oct 10 16:37:43 kc8hfi, you got an AsyncTask warning Oct 10 16:39:15 so its probably something with lines 40 and 41 in the asynctask. Oct 10 16:39:31 nope Oct 10 16:39:46 since the AsyncTask is expecting a generic collection Oct 10 16:39:53 you got a warning Oct 10 16:40:04 <[twisti]> i dont understand all this jibber jabber about layouts and different quality images and stuff Oct 10 16:40:27 <[twisti]> so basically im supposed to prove 3 or 4 versions of every image Oct 10 16:40:31 <[twisti]> in different resolutions Oct 10 16:40:40 <[twisti]> but all i do is resize them in photoshop Oct 10 16:40:47 <[twisti]> why doesnt android just do that for me ? Oct 10 16:40:58 <[twisti]> then i could just provide the best resolution one Oct 10 16:42:16 <|0xD34D|> [twisti]: android will scale images to other densities if you don't provide them Oct 10 16:42:36 <[twisti]> then why would anyone ever provide them ? Oct 10 16:42:47 <|0xD34D|> some people use vector graphics for the originals Oct 10 16:42:58 thepoosh: hmm ok. i guess I could turn that arraylist into a generic? Oct 10 16:42:59 <|0xD34D|> and scaling those look better than some .png scaled Oct 10 16:43:12 kc8hfi, i wouldn't worry about it Oct 10 16:43:15 wait Oct 10 16:43:19 let me look again Oct 10 16:44:02 kc8hfi, it's expecting an array of ArrayList objects Oct 10 16:44:46 and its only getting an arraylist. A dumb question - the three dots in the doInBackground function, what do they mean? Oct 10 16:45:11 is android.R.layout.simple_list_item_1 a predefined layout? Oct 10 16:45:14 Generic array Oct 10 16:45:32 what are the practcal differences between a jfet and a mosfet? Oct 10 16:45:35 meaning it can get an unknown number of the same object as parameters Oct 10 16:45:35 oops wrong channel Oct 10 16:46:19 beaky: no. Oct 10 16:46:38 so it is Oct 10 16:46:55 no? Oct 10 16:47:20 no! Oct 10 16:47:39 :( Oct 10 16:48:42 thepoosh: ok so. an asynctask takes Params. I'm gonna be giving it 4 strings, so i could put String in for Params, and then in doInBackground, change the Arraylist... to be String... Oct 10 16:49:06 i'm giving it an arraylist with 4 strings in it, would that make sense though? Oct 10 16:49:12 kc8hfi, yes Oct 10 16:49:33 but you're never sure about the size(length) of params Oct 10 16:49:45 so you need to check that first thing in diInBackground Oct 10 16:50:22 are android views developed in photoshop Oct 10 16:50:31 or are they developed by handcrafting css or xml? Oct 10 16:50:35 or both? Oct 10 16:50:38 thepoosh: since i know it needs 4, i need to make sure that params has 4 Oct 10 16:50:51 you should always be on the safe side! Oct 10 16:52:49 thepoosh: ok. I think i see now.... Oct 10 16:53:15 cool Oct 10 16:53:18 thepoosh: so now that doinbackground has a generic STring... params, if i want to access the elements, i would do that like its an array? Oct 10 16:53:40 yes Oct 10 16:53:41 i need ot go look up generics and read about them Oct 10 16:53:49 int size = params.length Oct 10 16:55:17 anyone there Oct 10 16:55:21 expert with modding ? Oct 10 16:56:07 undeadd, ask a real question Oct 10 16:57:17 well, i am new to this but i could mix 2 different and buggy roms into a single and fixed one. it just looks now the way i want but i need to mod the stock mms app (android 4.2.1). i start with it but now i'm stuck when trying to get an animation-list to play properly (getting app to fc...) Oct 10 16:57:27 <|0xD34D|> undeadd: are you actually writing source code or still hacking smali? Oct 10 16:57:47 unfortunately, hacking. no need to develop my own app Oct 10 16:57:58 <|0xD34D|> then you may want #smali Oct 10 16:58:08 if it would be the same as the stock mms app with a few mods Oct 10 16:58:14 i went there Oct 10 16:58:17 they can't help me Oct 10 16:59:01 they just understand smali ! i need help with layouts and stuff like that. getting a nullpointerexception when finding an item by view id. how is dat possible if it doesn't fail for any other ? :| Oct 10 16:59:27 <|0xD34D|> you changed something you shouldn't have Oct 10 16:59:33 thepoosh i just did it xD Oct 10 16:59:42 yeah, that's why i am here Oct 10 16:59:51 actually i didn't change.. just added some new items Oct 10 17:00:09 all of them working but not this one dunno why :( Oct 10 17:00:14 <|0xD34D|> adding stuff into a decompiled apk is not exactly the same as adding it to the original source though Oct 10 17:00:43 <|0xD34D|> and debugging it is much more complicated since you can't really step through it and set break points Oct 10 17:00:55 yeah, i know.. but i always generate its own respective java code and it's all fine.. it seems.. Oct 10 17:01:14 i know.. that's why i am here.. i just need what am i missing there Oct 10 17:01:23 i added an ImageView Oct 10 17:01:29 to play an animation-list xml file.. Oct 10 17:01:36 <|0xD34D|> the thing is people in here don't work off of decompiled apks Oct 10 17:01:55 pasted the images into the proper drawable folder.. referencing them with android:src="@drawable/filename" Oct 10 17:02:09 then set ImageView with android:visibility="gone" Oct 10 17:02:22 and i just need to set it visible and to start its animation when invoking a method Oct 10 17:02:47 already coded it but getting null pointer when all the similar code is equals to my own code :x Oct 10 17:02:56 <|0xD34D|> your imageview needs an id Oct 10 17:03:23 <|0xD34D|> that id needs to be referenced in ids.xml and public.xml Oct 10 17:09:30 is there some way to implement preference profiles, which can be switched within an app and configured using the regular Preference* classes? Oct 10 17:10:44 i have this list adapter new ArrayAdapter(getActivity(), R.layout.simple_icon_list, android.R.id.text1, DummyContent.ITEMS); but in the layout i have not only text1 but also icon1 and in DummyContent.ITEMS i have not only id, content but icon now too Oct 10 17:10:53 how do i get the adapter to incorporate the icon Oct 10 17:11:19 from DummyContent Oct 10 17:13:25 |0xD34D| it does... Oct 10 17:14:55 When I set SYSTEM_UI_FLAG_HIDE_NAVIGATION and my windows/views resize can that be animated to make it smooth? Oct 10 17:15:05 Right now it just pops into place Oct 10 17:15:43 Use a view tree observer to detect layout changes and then animate them yourself Oct 10 17:16:02 JakeWharton: Thanks, will look into that now. Oct 10 17:16:10 there will still be a pop for the window size, but you can animate the content inside of the window Oct 10 17:17:10 Is there anyone able to help me with an application MOD ? Just don't keep me redirecting all over the channels I am already in. I just need help from someone that really understands a little of SMALI, XML and their relationship to add a new animation-list to an app (getting senseless nullpointerexception) ! TY Oct 10 17:17:40 What is the name of those small text notifications that appear shortly horizontally centered and fade away after a couple of seconds? Oct 10 17:18:29 <|0xD34D|> alshain: Toast Oct 10 17:18:55 Wow..... Oct 10 17:19:03 |0xD34D|: thanks! Oct 10 17:19:06 <|0xD34D|> np Oct 10 17:20:10 anyone? Oct 10 17:20:18 everyone! Oct 10 17:20:35 eish Oct 10 17:22:09 JakeWharton, so, my friend looked at MAT today Oct 10 17:22:22 and saw that Loopj caused memory leaks Oct 10 17:22:44 I remembered you tried to convince me to use OkHttp Oct 10 17:22:45 what's loopj? Oct 10 17:23:01 LoopJ == AsyncHttpClient Oct 10 17:23:22 he said it's awesome Oct 10 17:23:32 can anyone help me with my ArrayAdapter question ? Oct 10 17:23:59 Zylinx, ? Oct 10 17:24:50 thepoosh . i just asked but no one answered (once again. day after day.. buh) Oct 10 17:24:55 nice. it's currently mostly another impl of HttpUrlConnection but there's a sweet new fully-async API in the works unlike any other HTTP client. Oct 10 17:25:44 we need somethiing to run the syncAda[ter for our account manager Oct 10 17:26:22 undeadd, unfotunatly, I'm not expirienced in under the Android hood Oct 10 17:26:24 soory Oct 10 17:26:29 sorry Oct 10 17:26:49 np np Oct 10 17:27:35 JakeWharton, is it also running the callbacks only on the main thread? Oct 10 17:27:48 it's not an Android library so, no Oct 10 17:28:05 thank god Oct 10 17:28:19 why would you want the callbacks not on the main thread? Oct 10 17:28:23 it's too low-level anyways. you wouldn't want these callbacks on the main thread because you'd still have to deserialize the response data Oct 10 17:28:35 ah, those callbacks; yeah Oct 10 17:28:45 yaeh it's basically byte[] Oct 10 17:28:54 mmmkay Oct 10 17:29:07 well, I think we'll get the pther one out Oct 10 17:29:11 and replace Oct 10 17:29:32 does it stay in memory or get deallocated when all the callbacks are finished? Oct 10 17:29:43 do you recomend using it in a manager? Oct 10 17:30:06 i don't know what you mean by manager Oct 10 17:30:11 no one to help me ? :( Oct 10 17:30:15 in a singleton Oct 10 17:30:18 of some sort Oct 10 17:30:35 should I worry about de refrencing everything in the end of the run? Oct 10 17:30:47 after calling our server and making the request Oct 10 17:31:15 you shouldn't really have to do anything Oct 10 17:31:41 hmmm Oct 10 17:31:47 that's the way I like it Oct 10 17:37:33 Suppose a write an IntentService ABC, is an instance of ABC always created anew unless a previous intent is still in being handled? https://developer.android.com/reference/android/app/IntentService.html#onDestroy() Isn't really clear on whether the object is subject to garbage collection after the shutdown of the thread Oct 10 17:38:02 s/a/I Oct 10 17:39:40 I'm trying to go from using Eclipse/ADT to Android Studio.. but the import of my project is failing, and according to the known issues this is due to "Importing a project using the Android Gradle plug-in 0.6.1 and Gradle 1.6 or 1.7 will show the error: "Cannot create directory .idea". The real cause of the project import failure is that this version of the Android Gradle plug-in only supports Oct 10 17:39:42 Gradle 1.8 or later." Oct 10 17:39:53 How do I get the correct Gradle version? Oct 10 17:42:26 If I have this layout: http://paste.fedoraproject.org/45841/42690113/ , what can I do to make the tablelayout in there zoom to fit the whole screen? The rows are being added dynamically Oct 10 17:46:27 AdapterView parent. What's the significance of the ? Oct 10 17:46:41 <[twisti]> thats java generics Oct 10 17:46:53 it represents "whatever class the user of that class wants" Oct 10 17:47:03 thanks Oct 10 17:47:16 at its simplest explanation anyway Oct 10 17:47:24 it was sufficient enough Oct 10 17:47:33 generics is the term for it, but i'd look it up to get the gist of it in a more detailed way Oct 10 17:48:13 Does it just mean that whatever class it is has to be a subclass of AdapterView? Oct 10 17:49:36 well, I'll read about it now, thanks Oct 10 17:49:39 https://en.wikipedia.org/wiki/Generics_in_Java Oct 10 17:49:56 eydaimon, usualy it means that the data source needs to implement some sort of interface Oct 10 17:50:06 no no Oct 10 17:50:22 it's an adapter that holds data of a ? type Oct 10 17:50:30 and it's determined in runtime Oct 10 17:50:37 if I recall crrectly Oct 10 17:50:47 (at least that's how ot is in CPP) Oct 10 17:51:00 the wiki page uses the term "wildcard" Oct 10 17:51:20 :S Oct 10 17:51:27 there are no generics at runtime Oct 10 17:51:39 <[twisti]> no eydaimon, then it would be something like Oct 10 17:51:46 <[twisti]> ? means anything Oct 10 17:52:12 <[twisti]> like JakeWharton said, generics are 100% compile time Oct 10 17:52:28 <[twisti]> that info isnt even available to reflection at runtime due to type erasure Oct 10 17:52:41 hmm Oct 10 17:52:55 sadly Oct 10 17:53:13 JakeWharton, well, from what i recall from college, the templates are determined in runtime Oct 10 17:53:19 <[twisti]> as i recall that was the price to pay for backwards compatibility Oct 10 17:53:23 so I assumed it's the same in Java Oct 10 17:53:32 at runtime it's all Object Oct 10 17:53:34 <[twisti]> yeah, generics only look like templating Oct 10 17:53:44 <[twisti]> under the hood its plenty different Oct 10 17:55:59 Java makes me dissy Oct 10 17:56:12 here's more Oct 10 17:56:14 https://en.wikipedia.org/wiki/Wildcard_(Java) Oct 10 17:57:35 Can someone help me with this? Thank you ( http://pastebin.com/MdAPGdYb ) Oct 10 17:57:55 [twisti]: thanks for the extends point Oct 10 18:01:46 Hm. I think I bought effective java by joshua bloch. I wonder where it is Oct 10 18:03:32 i should get rid of some books. An old book on delphi will never get used :/ Oct 10 18:04:48 I bought effective java on May 6, 2008 ( according to amazon. ). Now to find it. Oct 10 18:08:04 better get rid of your foxpro, interbase, sybase, and informix books too while you are at it Oct 10 18:08:49 i don't have those, but I Have a book on postscript and one on XSLT (aweful thing that) Oct 10 18:14:30 any idea for developing two apk's out of a single source? Each api will have own icons, and some own code (some kind of switch - similar to C/C++ preprocessor #define) Oct 10 18:14:43 found it! Oct 10 18:16:52 tofi9: Gradle and flavors Oct 10 18:17:53 SimonVT: is there any tutorial or ready scripts? Oct 10 18:18:12 I wish amazon would make kindle editions cheaper for peple who have purchased the hardcopy Oct 10 18:18:49 There's http://tools.android.com/tech-docs/new-build-system/user-guide Oct 10 18:21:39 SimonVT: exactly what I need (Section Build Variants). Thanks. I'm reading it now Oct 10 18:23:02 Updated: http://pastebin.com/M6J5jz0w | Any help? Thank you. Oct 10 18:28:57 undeadd: #android-root Oct 10 18:29:19 already on it SimonVT, ty. Oct 10 18:29:53 Messing up roms and their apps is not a topic for this channel. Oct 10 18:29:54 ty Oct 10 18:32:17 just wondering for help. it seems everybody wants me to be redirected to this channels Oct 10 18:32:20 what can i do.. Oct 10 18:34:15 Tell them they're wrong and find another channel Oct 10 18:36:17 kk Oct 10 18:38:58 SimonVT: does Gradle integrate with Eclipse? Can't find a way to replace Eclipse's build-system with Gradle's. Oct 10 18:39:10 Uh, no idea Oct 10 18:39:14 Works with Android Studio Oct 10 18:39:39 I've got some NDK, and can't move to Studio yet :( Oct 10 18:40:24 Then you're on your own :) Oct 10 18:40:24 you can use native code with studio Oct 10 18:40:29 you can't use native code with gradle Oct 10 18:40:40 tofi9, so I think you mixed some stuff up >( Oct 10 18:43:47 Mavrik: I thought Android Studio is missing c/c++ editor+debugger as well as gradle is missing the build step to run the ndk compiler and include the compiled .so into the apk? Oct 10 18:46:02 hi Oct 10 18:46:16 hi quackgyver Oct 10 18:47:26 I'm considering porting my HTML5-based game to one or more Android platforms, but I'm not familiar with Android outside of having tested Android-based smartphones and devices in stores. Do Android builds differ greatly, or would I be safe to virtualize Android on a PC for general testing, and perhaps buy or borrow specific Android devices at a later point for specific testing? Oct 10 18:47:33 Or is there another way to test on PC? Oct 10 18:52:42 quackgyver: to my knowledge the native android browser behaves slightly different to chrome, but is not far off. If you foresee only compatibility issues, and no performance issues: you could build using chrome on the desktop, and then test on an android emulator (http://developer.android.com/sdk/index.html & http://www.bluestacks.com/) Oct 10 18:52:43 "We are aware than building projects in Studio is slower than using the command line. We want to fix as soon as possible and we will working on this soon." Oct 10 18:52:47 woohoo \o/ Oct 10 18:53:22 tofi9: I'm actually wrapping the HTML5 source as a native application, so I'm interested in native application testing. Oct 10 18:53:24 Sorry if that wasn't clear. Oct 10 18:54:05 quackgyver: have you checked http://phonegap.com/ ? Oct 10 18:54:17 Yes, but I still need to be able to test my Android binary. Oct 10 18:54:23 :-) Oct 10 18:55:15 quackgyver: build .html -> phonegap -> produces .apk -> install .apk file on emulator or real device, to test Oct 10 18:55:50 Yes, and I'm asking: "I'm not familiar with Android outside of having tested Android-based smartphones and devices in stores. Do Android builds differ greatly, or would I be safe to virtualize Android on a PC for general testing, and perhaps buy or borrow specific Android devices at a later point for specific testing?" Oct 10 18:57:09 the emulator runs a pure android version, similar to ones can be found on Google Nexus series. If it works in the emulator's browser, it will work on the Google Nexus phones Oct 10 18:57:43 tofi9: Except new Nexus phones don't use the Android browser. Oct 10 18:57:48 They use Chrome. Oct 10 18:57:54 So that's not necessarily true. Oct 10 18:58:07 SimonVT it would be nice if they continued to flesh out the gradle plugin documentation :/ Oct 10 18:58:44 tofi9 / RyanM: I already said that I'm not going to run my application in a browser, but as a native application that utilizes its own browser engine. Oct 10 18:58:56 there was one hook added in 0.6.1 for running tasks before everything, mentioned somewhere - now i can't find it at all Oct 10 18:59:14 So I'm wondering to which extent Android devices differ, and how I sould approach testing. Oct 10 18:59:30 RyanM: Phonegap uses WebView, which is based on android's stock engine. The engine is also available on Nexus series, it's just the browser.apk which is missing. Oct 10 19:00:10 "the emulator" = Android's official SDK, I have no idea about bluestacks Oct 10 19:00:44 g00s: I'd rather have them finish it Oct 10 19:01:02 it shouldn't be either / or O.o Oct 10 19:01:16 would take like 5 minutes to add the paragraph for the hook Oct 10 19:01:22 Both take time Oct 10 19:01:45 Imo their time is better spent fixing bugs and adding missing features at this point Oct 10 19:02:03 how will we use the features if they aren't documented ? Oct 10 19:02:06 :D Oct 10 19:10:34 SimonVT do you remember which anchor task they added in 0.6.0 ; looked thought all the AS / gralde-plugin changelogs and could not find it. now i don't remember where i read it; maybe adt-dev Oct 10 19:10:48 it was for code generation step Oct 10 19:13:06 shit, maybe it was on google+ Oct 10 19:14:48 g00s: from my logs "g00s: JesusFreke did you see they added a new hook for preBuild or something, to add your ragel task to" Oct 10 19:14:55 You didn't mention any specific details though :) Oct 10 19:15:06 JesusFreke thanks! now i can't find it *anywhere* Oct 10 19:15:16 where the fff did i read about it :/ Oct 10 19:16:37 The changelog mentions preBuild Oct 10 19:16:49 On 0.5.7.. Figured it was something else since you said 0.6 Oct 10 19:18:02 SimonVT thanks! for some reason i thought it was 0.6 and stopped looking earlier Oct 10 19:18:11 thanks again Oct 10 19:19:26 bummer, no matches in gradle-example Oct 10 19:19:37 * g00s rolls up sleeves Oct 10 19:19:55 I have a file path string: "/storage/emulated/0/0/0/0/0/0/Download/Shrines/08 Saltkin.mp3". Whenever I try to pass it as the parameter to MediaPlayer.setDataSource("/storage/emulated/0/0/0/0/0/0/Download/Shrines/08 Saltkin.mp3") I get an error. Why so? Oct 10 19:20:47 how many 0s lol Oct 10 19:21:01 tab1293: how did you obtain that path? via adb shell? Oct 10 19:21:14 or did you get it from within your application? Oct 10 19:21:38 It's possible/likely that the application has a different view of the file system than what adb sees Oct 10 19:21:40 btw tab1293 you must hardcode paths like that Oct 10 19:21:45 *must not Oct 10 19:21:47 JesusFreke, within the app from AudioColumns.DATA Oct 10 19:22:04 so how should I get the valid path from MediaStore? Oct 10 19:22:08 hmm Oct 10 19:22:24 not sure :) Oct 10 19:22:38 but I still suspect some sort of path mapping issue Oct 10 19:22:46 hopefully someone else will have a better idea :) Oct 10 19:22:49 well with that path how should I get the right one? Oct 10 19:22:59 gdrc, you have any ideas? Oct 10 19:23:28 tab1293: also, does your app have external storage permission? Oct 10 19:23:43 no I don't think so Oct 10 19:23:45 that could be it Oct 10 19:23:45 guys I was thinking, would it be possible to compile little android projects using gradle from some free laas like heroku? I still not tried gradle but I will as son as I finish what I'm doing Oct 10 19:24:15 well JesusFreke woudlnt I not be able to read the path if i didnt have permission to the external sd? Oct 10 19:24:55 tab1293: nevermind, it looks like the read permission isn't enforced yet. Oct 10 19:25:00 (http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE) Oct 10 19:25:42 also, what error are you getting? Oct 10 19:25:42 Does anyone here use Android Studio? I seem to be having trouble even getting it to work properly. Oct 10 19:26:02 isnt studio still in beta or something Oct 10 19:26:44 JesusFreke, java.io.IOException: setDataSourceFD failed.: status=0x80000000 Oct 10 19:28:53 tab1293: actually, on second thought, I find the repeated "0"s somewhat suspicious. Oct 10 19:28:59 occ: alpha, yes. Oct 10 19:29:08 I would expect a path like "/storage/emulated/0/Download/..." Oct 10 19:29:12 But lots of people use it, and ADT is laggy for me now. Oct 10 19:29:17 which would be the emulated external storage for user 0 Oct 10 19:29:28 i just use notepadd++ and terminal Oct 10 19:29:38 JesusFreke, I mean thats the path to the file so Oct 10 19:29:41 can you confirm if your external storage has a series of 0/0/0/... directories? Oct 10 19:30:03 ok, so the file does actually exist at that path? weird, but ok :) Oct 10 19:30:14 given an app on device, how can I determine which apk corresponds with it? Oct 10 19:30:16 in /system/app Oct 10 19:31:10 * pfn tries variations of pm list Oct 10 19:32:53 pfn: manually? If you have the uid of the app, you can probably look in /data/dalvik-cache and find the odex with that uid Oct 10 19:33:03 and the name of the odex has the apk it was generated from Oct 10 19:33:14 although, I guess that wouldn't work for a pre-odexed build, so nevermind. Oct 10 19:33:53 stupid rom I installed has a bad sig on play movies/tv I want to nuke it Oct 10 19:34:37 pfn: oh, duh Oct 10 19:34:42 just look in /data/system/packages.xml Oct 10 19:34:46 thanks Oct 10 19:35:17 at least, assuming you have root access Oct 10 19:35:19 <^cheeky> hiiii, just wondering, could i hook up and usb device to read signals from android ? Oct 10 19:35:25 I do Oct 10 19:36:35 pfn: I found a bug in your irc client Oct 10 19:36:44 gdrc, thanks, details? Oct 10 19:37:22 I should clean up the code and publish it on github someday Oct 10 19:37:28 so many projects taking up time Oct 10 19:37:43 JesusFreke, and yeah, nuked it, works great, thanks Oct 10 19:37:54 at first run, after setting up a server, I enter in a channel and what I type is not displayed (I think the client doesn't send any message) Oct 10 19:38:11 gdrc, you have focus on the input field? Oct 10 19:38:43 you mean the bar where I type text? yes Oct 10 19:38:51 I tried 2-3 times Oct 10 19:39:10 what do you mean in enter in a channel? Oct 10 19:39:17 what exactly have you done? Oct 10 19:40:18 give me a second to remember Oct 10 19:44:25 I am using soundpool to play a 6-7 sec long OGG (looped). I am only able to successfully play the sound half of the time (specifically, every even number of calls. First play works, second doesnt (audioflinger -12 err), third works, fourth doesn't ect) Was wondering if anyone can look at my code and tell me what mistake I may be making? Oct 10 19:44:42 JesusFreke, okay now I am getting a file not found exception with that file path Oct 10 19:45:11 pfn: oh yes, I did not rember how I joined the channel, I manually did not. I connected to my bnc user who was already in a channel Oct 10 19:45:48 well, I haven't heard of any of these kinds of problems from anyone else... so I have to assume you did it wrong :p Oct 10 19:46:15 pfn: I'm gonna try again Oct 10 19:54:54 so how do you guys respond to 1-star reviews "It sucks, it simply sucks" (1) ignore (2) try to get a hold of the user via email (3) respond on Play for more info, etc Oct 10 19:55:17 pfn: dunno, now works properly, if happens again, i will contact you again Oct 10 19:55:41 g00s: 2+3 Oct 10 19:55:46 i do see a crash report in a minor function in the app, i think this user had problems so its probably not a troll Oct 10 19:56:07 kinda harsh though :( Oct 10 19:57:27 JesusFreke, okay so that file didnt actually exist yet the MediaStore still has it listed Oct 10 19:57:52 ok, so in my merchant account i can see his email, it says "no marketing" … but it should be OK to send an email for inquiry, right ? Oct 10 19:57:55 I get a AudioFlinger -12 Error everyother .play() call. Does anyone know why this may be happening? I am only trying to play a ogg of about 6-7 seconds on touch event ACTION_DOWN but it only works exactly half the time. Oct 10 19:58:56 hi Oct 10 19:59:19 can anyone give me a simple project for an android newb to attempt at a 24 hour hackathon? Oct 10 19:59:25 Im looking for ideas and Im lost Oct 10 20:00:45 snippet of the problem code if anyone later on reads this, http://pastebin.com/Q24nKGCU Oct 10 20:03:52 shaun413: an alarm clock Oct 10 20:04:13 well android has an alarm clock... Oct 10 20:04:18 why would I make that? Oct 10 20:04:19 shaun413: so? Oct 10 20:04:23 shaun413: to make it Oct 10 20:04:36 it is supposed to be something new Oct 10 20:04:40 come up with some unique features Oct 10 20:04:44 there is nothing new under the sun Oct 10 20:05:04 hmm Oct 10 20:05:44 shaun413: start with writing an alarm clock and ending with an answer to the question "what would make this better (for me) than every other alarm clock out there?" Oct 10 20:06:05 A LIGHT SHOW Oct 10 20:06:27 maybe it syncs alarms between devices, maybe it syncs the snooze/dismiss between devices, maybe it has a unique way of entering the time, or a better algorithm for determining snooze length or picking alarm tones, or ... Oct 10 20:06:29 shaun413: A "smart alarm clock" that turns off the alarm if you used your phone in the last 30 mins (turns off because you are awake), OR a captcha alarm clock that makes the user solve a captcha to prove they are awake Oct 10 20:06:56 hmm Oct 10 20:07:05 shaun413: if you can't come up with an answer to that, then you need a more rigorous schedule that will make you use alarm clocks more Oct 10 20:07:05 my wife's lg can require a math puzzle to turn off Oct 10 20:07:09 its 24 hours though; shaun413 how experienced are you at android Oct 10 20:07:19 ummm Oct 10 20:07:28 I did the first tutorial yesterday Oct 10 20:07:29 g00s: great point. Oct 10 20:07:30 :) Oct 10 20:07:33 g00s: that's why I suggested he start with something that can, at worst, be simply cloned Oct 10 20:08:03 usually hackathons are original code, right ? Oct 10 20:08:24 you can use libraries Oct 10 20:08:27 yes Oct 10 20:08:41 g00s: I'm not talking about git clone Oct 10 20:08:49 guys do someone know what is this shit all about? www.pastebin.com/GfVJvWtp I just closed eclipse and restarted it but just closes itself a while after the splash screen appears Oct 10 20:09:01 evanc: oh, you mean a cvs clone? Oct 10 20:09:09 JesusFreke: I prefer RCS Oct 10 20:09:24 a new version of RCS was released last week i think :) Oct 10 20:10:01 hahaha wow Oct 10 20:10:05 2013-10-04 Oct 10 20:10:06 surely no Oct 10 20:10:10 that cant be Oct 10 20:10:11 http://www.gnu.org/software/rcs/ Oct 10 20:10:34 *stunned* Oct 10 20:10:37 same Oct 10 20:10:55 DwordKnight: You may want to also ask in #eclipse. Oct 10 20:11:15 shaun413: make an app for HotShots, that warms your hands by overclocking your device ;) Oct 10 20:11:38 hmm Oct 10 20:11:41 seems dangerous Oct 10 20:11:47 skywell good idea Oct 10 20:11:49 I keep saying it could save many lives Oct 10 20:12:00 how Oct 10 20:12:17 if you're stuck in an avalanche bubble Oct 10 20:12:43 melt your way out Oct 10 20:15:29 tempted to overclock my phone so it acts like personal heater lol Oct 10 20:15:37 jk Oct 10 20:15:41 pretty darn cold here Oct 10 20:22:07 I think I understand why people are leaving eclipse for AS while still being beta. I just can't understand why eclipse is so unstable Oct 10 20:22:40 because they're silly and want the newest shiny Oct 10 20:22:41 of course Oct 10 20:24:15 I've rebooted my pc, having killed java process without results, booted eclipse but then every plugin window printed a stacktrace so it could not load jdt Oct 10 20:24:48 then again closed it reopened eclipse and it just worked....wtf? Oct 10 20:27:27 DwordKnight you can use plain intellij :P Oct 10 20:27:59 i would use AS if you want gradle; i wanted that so i'm using it ;) Oct 10 20:28:26 solution: im going to learn about gradle just now and use some vim/sublime edit until AS gets ready. And i'm going to call my pre-alpha releases "eclipse" lol Oct 10 20:29:12 when As was really bad, yeah i would use vim … and then load into AS for 'code anaylze' and 'optimize imports' before checkin. Oct 10 20:31:05 if you have a pending intent with a requestcode of 0 and an intent of MainActivity.class, will creating another pending intent with a requestcode of 0 and an intent of SecondActivity.class overwrite the first pending intent? Oct 10 20:32:14 no Oct 10 20:32:30 can someone help me out here Oct 10 20:33:16 alright thanks Oct 10 20:33:17 navetz: "The parts of the Intent that are used for matching are the same ones defined by Intent.filterEquals."... "That is, if their action, data, type, class, and categories are the same." Oct 10 20:33:29 i have this list adapter new ArrayAdapter(getActivity(), R.layout.simple_icon_list, android.R.id.text1, DummyContent.ITEMS); but in the layout i have not only text1 but also icon1 and in DummyContent.ITEMS i have not only id, content but icon now too how do i get the adapter to incorporate the icon from DummyContent Oct 10 20:33:31 in this case, the class would be different Oct 10 20:33:33 please Oct 10 20:34:34 do i need to use a different adapter ? Oct 10 20:34:46 JesusFreke: I see, so unless it is the same intent it will not overwrite the previous intent with the same requestcode Oct 10 20:35:06 navetz: not the same intent. only if all those fields are the same Oct 10 20:35:15 for example, it doesn't check if the extras are the same Oct 10 20:35:29 what would an extra be? Oct 10 20:35:49 http://developer.android.com/reference/android/content/Intent.html#getExtras() Oct 10 20:36:22 They're "extra" pieces of information associated with the intent Oct 10 20:36:39 but not used for intent resolution or matching for pending intents Oct 10 20:37:44 JesusFreke: thanks this is really helpful Oct 10 20:38:16 whats a good game engine for android? Oct 10 20:38:26 unity? Oct 10 20:38:38 hmm Oct 10 20:38:42 (I haven't actually done any game dev, and have no experience with any game engines) Oct 10 20:38:47 meh unity Oct 10 20:38:57 I wonder if its newer eclipse. mine works just fine but then its 2011 edition I think Oct 10 20:39:00 <|0xD34D|> libgdx Oct 10 20:39:44 I kinda want to try to write an oculus rift game... for android. Oct 10 20:39:58 should be possible, if you've got hdmi and usb host Oct 10 20:41:46 libgdx is java? Oct 10 20:42:25 <|0xD34D|> yes Oct 10 20:42:30 I dont like unity Oct 10 20:43:12 Ok ill look at it Oct 10 20:43:21 <|0xD34D|> and open source Oct 10 20:43:25 <|0xD34D|> for what its worth Oct 10 20:43:29 Ah Oct 10 20:44:38 so if I isue libgdx, Do I need to know alot of android dev stuff? Oct 10 20:44:59 <|0xD34D|> don't think so Oct 10 20:45:04 ok Oct 10 20:45:09 but need to learn libgdx Oct 10 20:45:21 Now is a decent platform doable in 24 hours? Oct 10 20:45:22 <|0xD34D|> it helps but libgdx is cross platform and has some tools to get projects started for the various platforms Oct 10 20:46:07 <|0xD34D|> I guess that would depend on your skillset Oct 10 20:46:13 not very good? Oct 10 20:46:34 anyone ? Oct 10 20:46:49 yes/ Oct 10 20:47:11 anyone have any advice ? Oct 10 20:47:22 <|0xD34D|> buy low, sell high Oct 10 20:48:00 hello Oct 10 20:48:08 <|0xD34D|> konichiwa Oct 10 20:48:40 what kinds of apps are better written as native apps than webaps Oct 10 20:48:54 all the apps! Oct 10 20:49:03 <|0xD34D|> everything Oct 10 20:49:41 but native apps tend to be quite platform specific Oct 10 20:49:41 I tried doing some app that used google maps via html and js. DONT DO IT that way xD Oct 10 20:49:46 ah Oct 10 20:50:05 It worked in my dual core tablet, but was painfuly slow in my modest sgs Oct 10 20:50:12 why restrict a perfectly good app to a single platform when it can run on the web and be accessible to all Oct 10 20:51:39 <|0xD34D|> then just design it on the web and point people to the url Oct 10 20:52:04 <|0xD34D|> personally, I hate downloading an app just to find it's a webview that goes to a site Oct 10 20:52:12 ditto Oct 10 20:52:14 right I hate those too Oct 10 20:52:51 I appreciate the native performance and look-and-feel of well-written apps Oct 10 20:52:58 A web app I really hate is ingress.com/intel. Horribly slow. Oct 10 21:01:34 Hm, admob's site is doing a very good job of crashing and burning for me. Oct 10 21:03:22 I think I'll give up on that for now. Its site is just broken. Oct 10 21:07:58 I since last month tried to upgrade to the new admob, but their link doesnt work and seems they dont fix it lol Oct 10 21:08:33 i have this list adapter new ArrayAdapter(getActivity(), R.layout.simple_icon_list, android.R.id.text1, DummyContent.ITEMS); but in the layout i have not only text1 but also icon1 and in DummyContent.ITEMS i have not only id, content but icon now too how do i get the adapter to incorporate the icon from DummyContent Oct 10 21:08:40 is there any way to do the equivalent of an   in a textview? Oct 10 21:08:50 I don't want a textview to wrap my string on a certain space Oct 10 21:09:31 pfn try the unicode for nbsp maybe ? Oct 10 21:09:48 \u00a0, I guess I can try Oct 10 21:10:11 http://stackoverflow.com/questions/6564794/android-and-nbsp-in-textview Oct 10 21:10:16 the answer there is it doesn't work, as well Oct 10 21:10:54 but, it seems to work in my test, excellent Oct 10 21:11:19 :) Oct 10 21:19:58 wow, the twitter app still isn't tablet optimized? i don't feel so bad now :) Oct 10 21:21:57 So apparently if I want to report an issue with admob, I need a "publisher ID" that's supposed to be in my account info but isn't Oct 10 21:22:06 Google has come up with very clever ways to avoid bug reports. Oct 10 21:23:02 Is there a way to upload a byte array as a file (HTTP POST)? Oct 10 21:23:26 I've been stuck trying to get it to work for hours now Oct 10 21:23:30 http://pastebin.com/XvJyWZq6 Oct 10 21:24:55 Do you have an error? Oct 10 21:25:12 Not really Oct 10 21:25:13 Maybe something to go off of other than "this doesn't work here's 70 lines of code fix it" Oct 10 21:25:17 it just doesn't work :/ Oct 10 21:25:39 Hello! Just started a new project in Android Studio, my "Project" tab only shows the contents of the gradle folder instead of what this looks like: http://i.stack.imgur.com/A6M7G.jpg Oct 10 21:25:42 Well, you have a giant catch-all for exceptions there. How about you not ignore them or log them? Oct 10 21:26:09 yea mean in the hash function? Oct 10 21:26:15 Yes. Oct 10 21:26:15 That's supposed to be like that Oct 10 21:26:28 So you just don't want to know about any exception whatsoever in that method? Oct 10 21:26:31 s is also a valid var Oct 10 21:26:41 You just want to ignore it, not log it or anything? Oct 10 21:27:13 That has been debugged a ton and it works without fail due to the way both tokens are constructed Oct 10 21:27:19 Are you stupid? Oct 10 21:27:44 Let's just get to the point about this. You are catching everything that is an Exception. You aren't logging the exception at all. That is stupid. Oct 10 21:28:04 You don't have to deal with it, but 1) that's a huge catch-all and 2) your lack of logging for an exception is stupid. Oct 10 21:28:14 Anyway, not the actual issue, but I figured you should know. Oct 10 21:28:22 I meant to copy another function instead of the has function wich works and has been working for a while now... Oct 10 21:29:11 http://pastebin.com/FF4hFYWW Oct 10 21:29:11 Don't argue with me about this. There is no excuse for catching almost every exception and _not_ at least logging it. Oct 10 21:29:25 If you want to be stupid, that's your call. Don't defend it. Oct 10 21:29:27 Well that was dumb, I just closed the project and then used "Open Existing Project" Oct 10 21:29:36 I log all other exceptions Oct 10 21:30:25 Victory. Oct 10 21:37:43 Does anyone know why soundpool.play works reliably every-other call in my code? http://pastebin.com/Q24nKGCU I can't figure out how to get around my AudioFlinger -12 error. Oct 10 21:38:28 I am new to android development so I am guessing it may be one of those noob mistakes that may be obvious to some more intelligent developers out there. Oct 10 21:40:59 wow, this mac app is pretty killer; choose any song in your iTunes library and it will show you the chords and tablature Oct 10 21:41:14 hm, i have doubts about accuracy though Oct 10 21:46:17 hm Oct 10 21:46:29 g00s: hah. I would love to try it on some of my music. Oct 10 21:46:58 See what it does with some solo table, or solo dideridoo Oct 10 21:47:01 tabla* Oct 10 21:47:07 didgeridoo* (sigh) Oct 10 21:47:21 i wonder what the state of the art is in this area; i've seen some scientific books from springer verlag on automatic transcription Oct 10 21:55:09 i think this might be it http://www.amazon.com/Signal-Processing-Methods-Music-Transcription/dp/0387306676 Oct 10 21:57:33 sounds like an interesting read. I've done some reading about instrumental acoustics, but haven't looked at that side of things Oct 10 21:59:34 does the web appstore default to showing tablet images? i want to show the images I have for phone. is this possible? Oct 10 22:00:15 You can customize almost nothing, so it's probably not possible. Oct 10 22:00:34 Google wants to make Android look tablet friendly, so it's probably going to prioritize tablet screenshots. Oct 10 22:00:43 i figured Oct 10 22:00:52 i want my damn promo graphics back Oct 10 22:01:25 I finally managed to get admob working. Now I get to wait for it to process a payment. Oct 10 22:01:38 Going to give it $10 and see what happens. Oct 10 22:01:44 * Nilium is cheap. Oct 10 22:02:19 well, allright. i'm almost about ready to spring for a N7. i just wish i had a better idea how well the BLE is working on it, i've "heard" some rumblings Oct 10 22:02:36 since thats pretty much the whole reason for getting it ;) Oct 10 22:03:45 BLE? Oct 10 22:03:54 bluetooth smart Oct 10 22:03:57 low energy Oct 10 22:04:08 Well, I was hoping it was something something elephant, but ok. Oct 10 22:04:50 well, android's lack of support for BLE was an elephant in the room for some time; so yes, elephants are peripherally involved here Oct 10 22:05:10 hey guys, I've got a notification created that I want to launch my main activity when it is clicked but it just closes the app drawer and does nothing Oct 10 22:05:21 can someone take a look and tell me what i've done wrong? http://pastebin.com/y8yhk3mT Oct 10 22:11:48 hello Oct 10 22:11:56 do mobile borwsers have deveoper mode Oct 10 22:12:01 i want to debug my mobile layout Oct 10 22:14:43 does anyone here have a powerschool student account? Oct 10 22:15:03 What's a powerschool and does it involve drilling teeth? Oct 10 22:19:04 maybe its for power rangers - to - be Oct 10 22:20:53 When you create a new broadcast receiver does it call onRecieve ? Oct 10 22:21:26 only when it receives a broadcast Oct 10 22:24:17 when you "create a new ..." why would it call onReceive? Oct 10 22:24:29 so that's a no then on the powerschool account Oct 10 22:24:32 well, when you register a receiver for a sticky broadcast, then yes, it gets called immediately Oct 10 22:24:39 normal broadcasts, no Oct 10 22:29:35 hum, what makes a broadcast sticky? Oct 10 22:29:56 sticky? Oct 10 22:30:21 One that is sent with http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent) Oct 10 22:30:43 These are typically used for boot-up related state changes Oct 10 22:30:57 i.e. the sticky broadcast is sent once a certain event has happened Oct 10 22:31:41 and then, if a receiver is registered for that intent later, it will immediately receive the sticky broadcast Oct 10 22:32:04 I am trying to register an alarm to a broadcast receiver. The broadcast receiver sends a notification when onRecieve is called. Whenever the receiver is registered to the alarm the onReceiver method is called. I'll keep debugging Oct 10 22:36:29 JesusFreke: by any chance, have you used libsodium with the NDK? [cue "Help Obi-Wan Kenobi, you're my only hope" music] Oct 10 22:36:50 kbs: .... Oct 10 22:36:59 My nickname used to be obi-wan in high school Oct 10 22:37:01 i have this list adapter new ArrayAdapter(getActivity(), R.layout.simple_icon_list, android.R.id.text1, DummyContent.ITEMS); but in the layout i have not only text1 but also icon1 and in DummyContent.ITEMS i have not only id, content but icon now too how do i get the adapter to incorporate the icon from DummyContent Oct 10 22:37:02 :p Oct 10 22:37:04 but no. Oct 10 22:37:36 JesusFreke: oh, what a coincidence :-) [and, oh well on the libsodium quest.] Oct 10 22:37:47 never heard of it, in fact :) Oct 10 22:38:49 JesusFreke: gotcha. [libsodium is some sort of a less crazy package of crypto code from dan bernstein.] Oct 10 22:53:06 why do you need a crypto package? isn't libssl already available as part of the platform? Oct 10 22:58:21 pfn: partly out of curiosity, partly because I trust djb's code more than libssl / bouncycastle etc. Oct 10 22:59:00 pfn: the nacl api is very narrow [and in principle at least, lets me make fewer mistakes] Oct 10 23:34:26 so, the thing is, whatsapp for iphone supports disabling 'last seen status', this feature is NOT present in android version ( I bet this is related to something in the config file, however) any tips? someone ever digged it? Oct 10 23:55:07 kbs, trusting it more isn't going to gain you anything Oct 10 23:55:14 when the rest of the platform heavily use libssl and bc Oct 10 23:55:19 unless you aren't doing this on android... Oct 10 23:56:32 pfn: You around? Oct 10 23:56:55 no Oct 10 23:57:00 Aww, well then... Oct 10 23:57:09 stupid question => stupid answer Oct 10 23:57:09 :p Oct 10 23:57:20 lol thanks xD Oct 10 23:58:34 Question: I am using SYSTEM_UI_FLAG_HIDE_NAVIGATION to hide the nav bar but when I do that the view seems to pop, is there a means of animating things smoothly? Oct 10 23:58:36 pfn: you may be right; though having used bc quite heavily and knowing how, um, interesting it is vis-a-vis things like openpgp (not to mention the recent PRNG kerfuffle) I've become far less trusting even of "platform" things I guess. Oct 11 00:00:07 the prng kerfuffle has nothing to do with bc Oct 11 00:00:31 never heard of anything about openpgp/gpg vs bc Oct 11 00:01:27 and bugs are bugs, they happen regardless of how trustworthy something may appear to be Oct 11 00:01:50 e.g. openbsd and its backdoor that existed for 10 years, where openbsd prides itself on being the premiere secure platform Oct 11 00:04:47 yes, I'm sure there's no monopoly on bugs :) however, small code + narrow api is appealing to me at least; but c'est la vie. Mostly wondering if someone else has traversed this path, regardless of motivations Oct 11 00:09:44 lol reminds me when my grandma used to ask my mom if she's sleeping Oct 11 00:11:03 she wouldn't stop asking until she got a yelling answer back Oct 11 00:11:22 og brother Oct 11 00:11:46 I'd invented auto answer that yells "yes i'm asleep" Oct 11 00:13:09 I remember all grandparents when they first tried the Sony Walkman, yelling at the top of their lungs "OOOH I SEE ITS LIKE MAGIC!" Oct 11 00:14:26 then again, occasionally useful answers come from people annoyed with you; there's some analogy here adversarial algorithms :-) Oct 11 00:16:55 Im using a viewpager inside a fragment, I open a new fragment and add to backstack but when I press back the viewpager has dissapeared in the original fragment..pastebin.com/JMEQdWGM Oct 11 00:51:11 perhaps a silly question this, but a client wants an app that takes over the phone completely, so only that app can be used, is this possible in anyway? Oct 11 00:53:13 whats the best wayu to create a multi line string Oct 11 00:55:35 Gaz`, probably a lot of hard work and root access would be an absolute must. Oct 11 00:56:45 kc8hfi: google "android multiline string" Oct 11 00:58:48 desmin88 yes ithought Oct 11 01:06:07 Hi everyone, I have a problem with one small app that i'm trying to develop here..someone can help me ? Oct 11 01:06:19 i dont know how to ask for help here...if i'm doing wrong just say it Oct 11 01:06:54 you get 1 question only here and you already used it, sorry. Oct 11 01:06:55 i've already asked on stackoverflow but no luck over there Oct 11 01:09:13 iregados__: i kid, i kid. just ask your question Oct 11 01:09:40 hi Oct 11 01:09:50 so, i start my app with a class that extend fragmentactivity Oct 11 01:09:58 can anyone recommend a tutorial other than the adroid.com ones? Oct 11 01:10:03 in that class i call another to create a new fragment Oct 11 01:10:15 this new class extend android.support.v4.app.Fragment Oct 11 01:10:52 in this new class i call another that is called when a event happens to inflate that fragment Oct 11 01:11:00 that last class extend framelayout Oct 11 01:11:26 but everytime i try to inflate it..my app force closes Oct 11 01:11:41 Gaz`, custom launcher Oct 11 01:11:59 Gaz`, won't block settings, but close Oct 11 01:12:14 if someone cal help, please do so =)...thanks for your attention Oct 11 01:13:07 iregados__, #1,learn how to read logs and stack traces Oct 11 01:13:13 Google for instructions Oct 11 01:22:58 is app title text in the actionbar supposed to be black for the holo light theme? Oct 11 01:24:02 Hi. I'm trying the official android emu for the first time, and it's terribly slow. Oct 11 01:24:14 Am I doing something wrong or is this just a joke of a development tool Oct 11 01:24:33 quackgyver: yes it is slow Oct 11 01:24:37 how is it a joke Oct 11 01:25:23 Because in this state it'll be useless for testing applications with live visual feedback. Oct 11 01:25:25 Such as a game. Oct 11 01:25:28 pfn, taking a look at the logcat i can see the line that error occurs Oct 11 01:25:41 And because an application isn't supposed to be slow. Oct 11 01:26:10 quackgyver: Get a real phone for testing that, emulating ARM isn't gonna be super speed. Oct 11 01:26:27 Didn't have any problems emulating ARM with qemu tho Oct 11 01:26:34 so that's a poor excuse. Oct 11 01:27:01 not really Oct 11 01:27:57 Well, I just wanted to check if I could possibly port my game to Android and I already don't like what I'm seeing, and since I don't feel like buying 10 devices just to confirm whether my build works or not, I think I'll skip Android completely. Oct 11 01:28:01 two answers; for a game, you need to test on hardware... for most other things, you can test using the virtualised x86 image rather than an emulated ARM image - which is much faster Oct 11 01:28:10 But I appreciate the feedback/info Oct 11 01:28:11 so thanks. Oct 11 01:28:32 Aight Leeds, I understand. Oct 11 01:28:33 Cheers. :-) Oct 11 01:29:00 10 devices is kind of an exaggeration Oct 11 01:29:19 not for a commercially-funded team Oct 11 01:29:31 is he commercially funded? Oct 11 01:29:38 presumably not Oct 11 01:29:46 well there you go Oct 11 01:29:59 he could also find plenty of willing people to test it for him i bet Oct 11 01:30:11 I mean, I guess Rovio test Angry Birds releases on more than 10 devices Oct 11 01:30:25 no doubt, but its different for them Oct 11 01:31:35 so I figured out why my sound clip wouldn't load reliably :) Oct 11 01:31:42 for a small team, 1 device to test on is fine to start Oct 11 01:31:48 skywell: do tell Oct 11 01:32:48 The clip was either too long (7 sec) or it was too high a sample rate (or both) and the soundpool was unable to handle it well. Oct 11 01:33:33 too large a file to load into memory and loop reliably. Oct 11 01:33:51 glad u got it fixed Oct 11 01:34:50 really quick question, is app title text in the actionbar supposed to be black for the holo light theme? Oct 11 01:35:57 sure, why not Oct 11 01:38:08 another thing that i noticed taking a look in the log is that my findviewbyid is returning null Oct 11 01:38:55 but i'm passing my context through the classes, this should prevent it shouldn't it? Oct 11 01:39:34 pfn: but by default? Oct 11 01:41:56 TheTrash: you there? Oct 11 01:43:30 Does anyone here have a powerschool student account? Oct 11 01:43:32 for their school? Oct 11 01:45:58 So I just learned about intel HAXM Oct 11 01:46:16 holy crap does it sure make a difference. Oct 11 01:48:11 is it possible to modify an image view for a specific row in a list after the adapter has been created ? Oct 11 01:48:38 desmin88, yes Oct 11 01:48:48 thanks Oct 11 01:48:51 Zylinx, why not Oct 11 01:49:23 i think im just not sure how but the app crashes every time i try Oct 11 01:50:08 pfn, http://pastebin.com/umt5W9mB Oct 11 01:50:50 where 1 is the row Oct 11 01:50:58 fix the crash Oct 11 01:51:00 obviously im doing it wrong :/ Oct 11 01:51:15 ? Oct 11 01:51:31 read the stack and address the issue Oct 11 01:51:52 hello… does anyone know where the "Advanced Segment" for Google Analytics went? Oct 11 01:52:07 im not sure what the issue is though Oct 11 01:53:09 pfn the crash is caused by View v = adapter.getView(1, getView(), getListView()); as far as i can tell Oct 11 01:53:19 am i using it wrong ? Oct 11 01:53:33 I dunno, what does the crash say? Oct 11 01:54:05 I can't seem to get the adt bundle on my Windows XP computer to recognize my Android phone Oct 11 01:54:18 android.view.InflateException: Binary XML file line #23: Error inflating class fragment Oct 11 01:54:19 Zylinx: always provide dem stacktraces boy. Oct 11 01:54:25 BenMcLean: Have you consulted google? Oct 11 01:54:43 I have a Kyocera Hydro. The web site from my phone's manufacturer doesn't seem to prove a relevant driver. The driver they provide is for using the phone as a USB modem Oct 11 01:54:54 not for development Oct 11 01:55:08 i tried to look for a refference to my code but i cant find one, but adding that line (View v = adapter.getView(1, getView(), getListView());) causes it Oct 11 01:55:12 BenMcLean: Windows XP? Oct 11 01:55:23 desmin, that's what I said yep Oct 11 01:55:32 My laptop died. I'm broke Oct 11 01:55:55 use the license from your laptop? Oct 11 01:56:09 desmin88, it's not a question of license Oct 11 01:56:16 ? Oct 11 01:56:32 desmin88, you can't teach an old dog too many new tricks. This desktop is ancient. Oct 11 01:56:39 ahh i see Oct 11 01:56:40 well Oct 11 01:56:47 you can try the Universal ADB Driver Oct 11 01:57:33 I didn't know there was one Oct 11 01:57:47 found it just now thanks. i will try that next Oct 11 01:57:52 yw Oct 11 01:59:04 Hey, I've got a socket opened and handled in a seperate thread. when data is received, how can I notify the main activity that it got somehting of interest? Oct 11 01:59:10 Zylinx, if you can't read the entire stack you cannot be helped Oct 11 01:59:52 NZSmartie, a handler attached to the main thread is the easiest approach Oct 11 01:59:53 pfn, iv read it, its just a bit lengthy to paste Oct 11 02:00:15 Zylinx, there are things called pastebins Oct 11 02:00:24 maybe you've heard of them Oct 11 02:00:45 http://pastebin.com/AGfqaj5R Oct 11 02:00:48 sorry Oct 11 02:01:39 Caused by: java.lang.ClassCastException: com.bikalabs.debortoli.dummy.DummyContent$DummyItem cannot be cast to android.view.View Oct 11 02:01:44 reading OP Oct 11 02:02:05 ell o ell Oct 11 02:02:43 oh, i posted the wrong trace my bad :| Oct 11 02:03:42 http://pastebin.com/YKeXUpLz Oct 11 02:04:16 "Content view not yet created" Oct 11 02:04:35 what am i doing wrong ? Oct 11 02:04:45 calling it too early Oct 11 02:04:49 you're doing anything with the UI before calling setContentView Oct 11 02:04:55 * pfn hates list fragment Oct 11 02:05:50 Im new to this but that sounds right according to this line Caused by: java.lang.IllegalStateException: Content view not yet created Oct 11 02:08:43 hey guys! Oct 11 02:09:08 i need help with assets..i cannot read files from a subdir inside assets Oct 11 02:10:10 can anyone help me with that? i keep getting filenotfound exception but the files are there.. Oct 11 02:10:54 installing the univeral adb drive didn't get eclipse to recognize my phone Oct 11 02:11:06 "subfolder/assetfile" Oct 11 02:11:08 eclipse has a built in web browser :o Oct 11 02:11:10 BenMcLean: its not completely universal, heh Oct 11 02:11:49 skywell yes but i keep getting file not found exception Oct 11 02:12:08 on Windows, you need to hax0r the inf file for the driver Oct 11 02:12:37 easiest way to get devices recognized for adb without going mad searching for drivers Oct 11 02:12:56 BenMcLean: Somebody made a version from the milano drivers on xda: http://forum.xda-developers.com/attachment.php?attachmentid=1259564&d=1344898940 Oct 11 02:12:57 Rajni: Try removing the spaces/capitital letters/symbols and verifying the file name and folder name Oct 11 02:13:16 2 minutes to look up vendor and product ID and put it into the inf Oct 11 02:14:41 desmin88, I had that before I asked on the channel, it has no installer and windows doesn't seem to recognize it when i choose it through "Update Driver..." for the "Android Composite ADB Interface" Oct 11 02:14:58 BenMcLean, see above 2 lines Oct 11 02:14:58 skywell i removed capital and it kinda worked better now Oct 11 02:15:00 thanks Oct 11 02:15:46 Rajni: no problem Oct 11 02:15:59 BenMcLean: You tried the drivers from this page yet http://www.kyocera-wireless.com/support/phone_drivers.htm ? Oct 11 02:16:24 skywell, yes no effect Oct 11 02:16:55 BenMcLean: Win XP? What does it say in device manager? does it still have question marks? Oct 11 02:17:04 No Oct 11 02:17:20 It says "Android Composite ADB Device" Oct 11 02:17:37 but when i try to run in ADT eclipse, it says there's no android device target Oct 11 02:17:52 BenMcLean: try adb directly from the command line Oct 11 02:17:56 does adb devices show anything? Oct 11 02:18:04 Hello Oct 11 02:18:23 can anyone recommend a good tutorial for android? Oct 11 02:18:55 d.android.com Oct 11 02:19:12 meh Oct 11 02:19:19 a good book? Oct 11 02:19:20 I tried that and it confused the heck out of me Oct 11 02:19:26 and if you can't hack it, you're not ready Oct 11 02:19:33 hmm Oct 11 02:19:37 how can i get ready? Oct 11 02:19:37 start by learning java thoroughly first Oct 11 02:19:42 I know java Oct 11 02:19:47 no, you don't Oct 11 02:19:55 adb devices does not show any devices Oct 11 02:20:07 if android confuses you, you most certainly do not know java Oct 11 02:20:10 i feel like i am in digital hell right now lol Oct 11 02:20:15 pfn: hint: he's gone :) Oct 11 02:20:23 woops Oct 11 02:20:24 annnd back Oct 11 02:20:32 I have join/part/quit squelched Oct 11 02:20:32 :) Oct 11 02:20:39 figured :) Oct 11 02:20:39 ? Oct 11 02:20:47 abd devices shows nothing, but windows device manager does show the android abd device Oct 11 02:20:49 did you do that? Oct 11 02:21:13 so pfn what do you recommend? Oct 11 02:21:26 BenMcLean: usb debugging is enabled on your phone? Oct 11 02:21:31 yes Oct 11 02:21:39 learn java til you can speak it without thinking, shaun413 Oct 11 02:21:46 it says "USB debugging connected" Oct 11 02:21:49 I can Oct 11 02:21:51 I know java Oct 11 02:22:00 shaun413, prove it Oct 11 02:22:03 BenMcLean: try adb kill-server Oct 11 02:22:06 and then adb devices Oct 11 02:22:25 if you haven't written at least 20k lines of it, you dont Oct 11 02:22:28 shaun413: I honestly recommend a good book. Oct 11 02:22:31 pfn: how can I prove it? Oct 11 02:22:38 Jesus Freke -- that did it! Like magic! What did it do?? Oct 11 02:22:49 BenMcLean, no question or exclamation mark on it in device manager? Oct 11 02:22:50 Im trying to hack out an app or something on saturday for a hackathon Oct 11 02:22:55 BenMcLean: when adb first runs, it spawns a process in the background Oct 11 02:23:11 pfn, no, but JesusFreke solved it, i think Oct 11 02:23:15 jesusfreke, yes please continue :) Oct 11 02:23:52 BenMcLean: Either it was the wrong version of adb (maybe eclipse is using an older adb), or it was just bugged or something Oct 11 02:24:02 OK well thanks JesusFreke :D Oct 11 02:24:08 in any case adb kill-server just kills off that process, and it's restarted when you ran adb devices again Oct 11 02:24:26 basically the classic "turn if off and back on again" :) Oct 11 02:24:35 Part of the challenge I am facing is that since my laptop died, I need to be able to make my android development tools portable, running them off a USB flash drive Oct 11 02:24:38 any ideas for that pfn? Oct 11 02:24:46 and that means I need to make all paths relative for the most part Oct 11 02:24:58 shaun413, pick anything at all Oct 11 02:25:07 write a tvm calculator Oct 11 02:25:42 I dunno, any random thing Oct 11 02:25:49 I have 24 hours Oct 11 02:25:58 I think fart soundboards are still popular Oct 11 02:26:09 Does anyone here have a PowerSchool account for their school? Oct 11 02:26:21 make sure to eat some some beans now, so you have time to record Oct 11 02:26:59 Q48VW: is this question in any way related to Android? Oct 11 02:27:12 JesusFreke, quite Oct 11 02:27:55 is it anything to do with Android app development? Oct 11 02:28:19 Leeds, quite Oct 11 02:28:23 heh Oct 11 02:28:39 I'm guessing that's a no then Oct 11 02:28:45 It does, actually Oct 11 02:29:13 I think he means "no, no-one has a PowerSchool account" Oct 11 02:29:25 I didn't think so Oct 11 02:30:06 congratulations on the success of your survey of Android app developers who happen to be on IRC right now and have a "PowerSchool account", whatever that is Oct 11 02:30:17 lol Oct 11 02:30:43 Well that was unnecessarily sassy Oct 11 02:31:16 Q48VW, quite Oct 11 02:31:43 woops Oct 11 02:31:46 sorry pfn Oct 11 02:32:19 hi Oct 11 02:33:07 shaun413: you've been saying ' I have 24 hours ' for 3 days now Oct 11 02:33:16 24 hours on saturday Oct 11 02:33:49 http://www.youtube.com/watch?v=zugy2rkSM7g Oct 11 02:35:12 shaun413: then you have time to get a head start, hurry up Oct 11 02:35:22 yes Oct 11 02:35:27 Idk what to head start on1 Oct 11 02:35:29 pick something Oct 11 02:36:21 i wish there was a way to "freeze / hibernate" an app; skype is slaughtering the battery, killing the service doesn't do crap Oct 11 02:36:32 but i dont want to completely uninstall it Oct 11 02:37:04 skype made my blacklist some time ago for it's antics Oct 11 02:37:08 that ans facebook Oct 11 02:37:13 *and Oct 11 02:37:58 i understand why :/ Oct 11 02:38:04 g00s: titaniumbackup allows you to freeze an app Oct 11 02:38:07 iirc Oct 11 02:38:47 like han solo ? Oct 11 02:39:14 see OI dont want to be overwhemed with something I cant finish! Oct 11 02:39:44 ok, emergency flashlight that comes on when you shake your phone Oct 11 02:39:54 <|0xD34D|> g00s: greenify freezes apps too I believe https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en Oct 11 02:40:02 <|0xD34D|> or "hibernate" as they call it there Oct 11 02:40:14 |0xD34D| thanks Oct 11 02:40:15 <|0xD34D|> of course root required but it does the job Oct 11 02:40:21 oh :( Oct 11 02:40:24 <|0xD34D|> yeah Oct 11 02:40:29 <|0xD34D|> minor caveat Oct 11 02:41:43 g00s: you can disable the app... Oct 11 02:41:44 shmooz: do the tvm calc. Doesn't seem too overwhelming Oct 11 02:41:51 yay i got it running!!! :D Oct 11 02:42:11 JesusFreke really? in Settings ? i didn't see anything there Oct 11 02:42:19 skywell: its shaun413 who wants the simple 24 hour app Oct 11 02:42:42 you can only disable system apps in settings, AFAIK Oct 11 02:42:47 shmooz: thanks. Sorry, I did "sh" + tab and didn't check recipient. Oct 11 02:42:50 a fahrenheit celcius converter Oct 11 02:43:11 shmooz: 24 hours or 24 minutes? :) Oct 11 02:43:25 Does anybody know a way to tell AS the default AVD? Oct 11 02:43:51 goodbye world app Oct 11 02:44:23 NOOOOOOOOO Oct 11 02:44:27 speak of the devil Oct 11 02:44:30 the netsplit has struck Oct 11 02:45:44 shaun413: you could write an app to cancel the swipe from bottom that launches google now Oct 11 02:45:53 I'd use it Oct 11 02:46:28 <|0xD34D|> good luck since that's in systemui Oct 11 02:47:20 cancel the swipe? Oct 11 02:47:23 what do you mean? Oct 11 02:47:36 <|0xD34D|> the search assistant view that comes up form the navigation bar Oct 11 02:47:41 <|0xD34D|> *from Oct 11 02:47:41 yes Oct 11 02:47:46 I keep accidently bringing up google now when I'm just trying to swipe up sometimes Oct 11 02:47:51 <|0xD34D|> long press home or you can press home and swipe upward Oct 11 02:48:00 ah Oct 11 02:48:05 hmm Oct 11 02:48:11 Im trying to find a cool idea Oct 11 02:48:25 maybe android is nto the way to go? Oct 11 02:48:29 maybe just a java app? Oct 11 02:49:53 yeah you seem clueless Oct 11 02:49:57 shaun413 we don't know your interests, or abilities -- its not really a question anyone can answer Oct 11 02:50:04 hmm Oct 11 02:50:38 <|0xD34D|> make a video player that uses openCV to determine if the viewer has their eyes on the screen and pause playback when they are not looking at it Oct 11 02:50:41 <|0xD34D|> like samsung did Oct 11 02:51:00 <|0xD34D|> but seriously, there's tons that can be done just keep it within your comfort zone Oct 11 02:51:12 I have an awesome idea for a video player pretty sure hasn't been done Oct 11 02:51:15 Write an Android program that prints its source code on the screen :) Oct 11 02:51:48 Quines! Oct 11 02:51:52 :) Oct 11 02:52:00 it makes the video played the background wallpaper and allows the semi transparent ui to still be used in the foreground Oct 11 02:52:43 fragments seem overly complicated Oct 11 02:57:49 shaun413 cool ideas aren't found staring into the soul crushing void of IRC Oct 11 02:57:55 ! Oct 11 02:58:02 I dont know whats possible Oct 11 02:58:04 thats the issue Oct 11 02:59:21 everything is possible Oct 11 02:59:32 ? **** ENDING LOGGING AT Fri Oct 11 02:59:58 2013