**** BEGIN LOGGING AT Thu Aug 16 02:59:58 2012 Aug 16 03:00:08 which ones do you support in your apps? Aug 16 03:00:16 personally, I'd say 8+ right now, or 9/10+ if there was something specific in 9/10 which I needed for my app to work Aug 16 03:00:46 hmm okay.. Aug 16 03:00:50 going lower than 8 is going to mean a lot more work for little return, and there's no point going higher than 10 unless you're tablet-only or something Aug 16 03:02:30 hey, when writing androind apps you guys stick just to unit tests (junit, test-ng level) or also integration tests (selenium etc) ? Aug 16 03:02:37 can one explain me, what the difference beween ldpi, mdpi, hdpi, xhdpi and "50dp" ? Aug 16 03:02:59 Sri, look at this: http://developer.android.com/about/dashboards/index.html ... depends who your audience is? Aug 16 03:03:04 if so, are there any recomended libs that can ease the testing? Aug 16 03:03:22 i would say 9 up is fine. Aug 16 03:03:59 boing, thanks .. i'm aware of the dashboard (google does a good job updating it frequently) Aug 16 03:04:05 capa: well, "50dp" is completely different from the others :) it's a measure of virtual/logical (as opposed to physical) screen distance Aug 16 03:04:19 9 .. hmm .. i'm trying to gather what the average min version is Aug 16 03:04:20 yeah, the dashboards used to be a bit hit and miss, but they're on a good monthly cycle now Aug 16 03:04:57 I think at one point the OpenGL dashboard hadn't been updated for something like 9 months :) Aug 16 03:05:19 is it normal to use the same key to sign different apps? Aug 16 03:05:26 or am i being retarded.. Aug 16 03:05:28 hello hello Aug 16 03:05:41 capa: have you had a good read of http://developer.android.com/guide/practices/screens_support.html Aug 16 03:05:45 Leeds: So if I set "50dp" for an app, it will be different in ldpi and mdpi for example ? Aug 16 03:06:25 boing: we had a bit of a chat about this the other day... the main reason for using different keys would be if you think you might want to hand off the app in future without giving your key away - say, if you sold an app to a different developer Aug 16 03:06:52 ah cool Aug 16 03:06:53 on the other hand, there are things you can do - which you might never want or need to, but still - if your apps all live under the same key... Aug 16 03:07:10 capa: correct Aug 16 03:07:25 i love the way samsung is going about trying to show apple's patents are invalid; lets hope they all get invalidated because of prior art Aug 16 03:07:27 i'm loading html content from a zip file into a webview, and I'm trying to override resource requests to extract them from the zip on the fly. I've set up shouldInterceptRequest and shouldOverrideUrlLoading WebViewClient callbacks but the request strings don't look right. I'm expecting to find paths to images, css, etc and instead i'm just getting dumps of html Aug 16 03:07:35 g00s: ++ Aug 16 03:08:16 i'd love to see Samsung shoot down the bullshit magsafe patent while they're at it Aug 16 03:08:26 thebishop: the "url" param is html? Aug 16 03:08:42 thebishop, on a slightly tangent note, did you manage to get the "up" and "back" navigations correctly working in a webview app? Aug 16 03:08:55 boing: it's a bit obscure, but... http://developer.android.com/guide/topics/manifest/manifest-element.html#uid Aug 16 03:09:04 boing, yes, i'm actually not doing anything with them now except logging them. and yeah they're just html crap Aug 16 03:09:11 Sri19, nah, haven't tried yet Aug 16 03:09:33 thebishop: i just completed a project doing something very similar to what you did, with no problems. i am overriding both those methods too... Aug 16 03:09:55 Leeds: thx Aug 16 03:10:51 which of you make a living thru selling your apps alone? :P Aug 16 03:10:52 yeah. Aug 16 03:11:05 not me...havent tried tho. Aug 16 03:12:32 boing, so which callback is right, then? shouldInterceptRequest is the only one that can return an InputStream, so that seems like the ticket Aug 16 03:13:00 ohh sorry Aug 16 03:13:07 i didnt totally read what you said correctly. Aug 16 03:13:55 let me just explain how webview works...you give webview something to load...im giving it html...and a base for it to work off. for example: Aug 16 03:14:45 mWebView.loadDataWithBaseURL("file:///android_asset/somefolder, actualHTMLInaString, "text/html", "utf-8", null); Aug 16 03:15:00 i'm using a string, but so far so good. i've got that much working Aug 16 03:15:32 then as the webview processes the html in actualHTMLInaString, just like a browser does, it tries to "get" any images, JS, css, references in the page... **** BEGIN LOGGING AT Thu Aug 16 03:18:28 2012 Aug 16 03:19:05 for each one of those references, if you have overridden it correctly, you should get it in: public WebResourceResponse shouldInterceptRequest(WebView view, String url) {} Aug 16 03:19:06 boing, so far, that's what i'm expecting Aug 16 03:19:06 and url should be the path to the css/js/whatever request from the html, right? Aug 16 03:19:06 so for example, the contents of src="" in an tag Aug 16 03:19:06 hi Aug 16 03:19:06 thebishop: what did you last get from me? Aug 16 03:19:06 terramex, "hi" Aug 16 03:19:06 haha, before that? Aug 16 03:19:06 ok here's what i said: Aug 16 03:19:06 then as the webview processes the html in actualHTMLInaString, just like a browser does, it tries to "get" any images, JS, css, references in the page... Aug 16 03:19:06 ah you're boing Aug 16 03:19:06 i responded Aug 16 03:19:07 oh sorry yeah Aug 16 03:19:07 terramex, boing, so far, that's what i'm expecting Aug 16 03:19:07 and url should be the path to the css/js/whatever request from the html, right? Aug 16 03:19:07 so for example, the contents of src="" in an tag Aug 16 03:19:07 got disdonnected for some reason. Aug 16 03:19:07 yes.. Aug 16 03:19:07 so u dunno how you're getting HTML...unless there's a bug in the HTML? Aug 16 03:19:12 maybe Aug 16 03:19:14 it's xhtml Aug 16 03:19:17 if that matters Aug 16 03:19:23 webview could be getting confused? Aug 16 03:19:32 make a really dumb simple version Aug 16 03:19:33 and see? Aug 16 03:19:37 i guess i can't rule it out Aug 16 03:19:37 ok Aug 16 03:20:09 the html you're reading from a zip...you defo have it extracted correctly as HTML, yeah? Aug 16 03:21:35 terramex, yeah i can view it just fine in a default webview Aug 16 03:27:47 my dumb html is showing the same crap Aug 16 03:27:48 i'm passing in this html: awesome Aug 16 03:27:48 wanna show me some code? Aug 16 03:27:48 here's my log of url: 08-15 23:20:39.882: E/Framework(9724): Override Request Callback for data:application/xhtml+xml,awesome Aug 16 03:27:48 pastebin.com? Aug 16 03:27:48 show me the line Aug 16 03:27:48 where you hand webview the html? Aug 16 03:27:48 try making the mime type "text/html" for now Aug 16 03:27:48 terramex, http://pastebin.com/EeM5FjtE Aug 16 03:27:49 what is mime? Aug 16 03:27:49 boing, it's the mimetype of the file Aug 16 03:27:49 i know Aug 16 03:27:49 but what is it Aug 16 03:27:49 but i've hardcoded to "text/html" as you recommended Aug 16 03:27:49 oh Aug 16 03:27:49 since the paste Aug 16 03:27:49 and no joy? Aug 16 03:27:49 nope Aug 16 03:27:49 what are you getting Aug 16 03:27:49 what is the html? Aug 16 03:28:11 boing, this is the log output i'm seeing from the Log.e in shouldInterceptRequest: Aug 16 03:28:12 08-15 23:26:20.092: E/Framework(10350): Override Resource Callback for data:text/html,awesome Aug 16 03:28:35 so url is starting with "data:" Aug 16 03:28:36 thebishop: this may be a stupid question, but it couldn't be that the webviewclient is being passed the whole string first, and will then parse and load the image second? Aug 16 03:29:06 Leeds, shouldn't I see that request 2nd then? Aug 16 03:29:12 or to put it another way, the first resource which is loaded is the HTML, then the image referenced from that HTML is second Aug 16 03:29:14 you dont? Aug 16 03:29:39 the log output i pasted is the only log i'm seeing Aug 16 03:30:10 thebishop: testing this now. Aug 16 03:30:24 try returning a WebResourseResponse containing the HTML? Aug 16 03:30:25 dunno Aug 16 03:35:55 i see an example online that returns "return super.shouldInterceptRequest(view, url);" if there's no special handling, but the documentation says to return null. Aug 16 03:36:01 no no Aug 16 03:36:03 i have it. Aug 16 03:36:11 and at any rate, url should be right coming in Aug 16 03:36:20 i did something wrong? Aug 16 03:37:49 yes Aug 16 03:38:09 sweet Aug 16 03:38:41 loadData doesnt expect html, it expects a URL. Aug 16 03:39:05 this works: webview.loadDataWithBaseURL("file:///android_asset/", "awesome", "text/html", "utf-8", null); Aug 16 03:39:30 um, except that loadData takes html Aug 16 03:39:33 well actually im not sure why loadData doesnt work. Aug 16 03:39:34 right Aug 16 03:39:36 but try mine Aug 16 03:39:47 itll work ;) ... while i figure this out. Aug 16 03:39:49 loadData as i have it looks right according to the documentation Aug 16 03:39:56 and works fine in webview Aug 16 03:41:01 the doc for shouldInterceptRequest says "This method is called by the network thread so clients should exercise caution when accessing private data.", does it matter that i'm using all local content? Aug 16 03:41:57 nah Aug 16 03:42:17 boing, did you see the same log output using my code? Aug 16 03:42:40 yes Aug 16 03:42:43 ok Aug 16 03:42:44 with my code tho, it worked fine. Aug 16 03:42:53 using loadDataWithBaseUrl Aug 16 03:43:02 maybe it's fine for me to use that function Aug 16 03:43:36 why do u have html in a zip? throw em in ur assets folder if you can. it is find for you to use that function. doesnt explain what's going on tho. Aug 16 03:43:42 fine* Aug 16 03:44:19 boing, i can't throw them in my assets folder. might be able to unzip to a temp folder, but i was hoping to be slick Aug 16 03:46:20 hmm, using loadDataWithBaseURL with null for baseurl and null for history i don't get an intercept request callback Aug 16 03:46:26 not sure if that's progress Aug 16 03:47:25 i noticed that too. Aug 16 03:48:08 doesn't seem like progress, seems like a bug Aug 16 03:48:28 well you have a workaround...im very curious as to what is going on but there might be a reason for it. Aug 16 03:48:43 workaround being to use a dummy baseurl? Aug 16 03:49:13 yah Aug 16 03:49:31 im an android noob btw Aug 16 03:49:48 ok, yes that does seem to work Aug 16 03:49:55 ;) but WebView worked fine for me...but i may have just been lucky that i did everything the right way. Aug 16 03:50:23 i'm fairly noobish. started working with android about 6 weeks ago Aug 16 03:51:28 ok, that definitely seems like a bug Aug 16 03:51:38 is there a decent place to report? Aug 16 03:52:00 thebishop: you can report it at b.android.com - it will get read, but don't expect any response Aug 16 03:52:49 you *might* get a response, but I'm told that not getting one doesn't mean you've been ignored... Aug 16 03:52:55 alright Aug 16 03:53:41 Note that JavaScript's same origin policy means that script running in a Aug 16 03:53:42 * page loaded using this method will be unable to access content loaded Aug 16 03:53:42 * using any scheme other than 'data', including 'http(s)'. To avoid this Aug 16 03:53:42 * restriction, use {@link Aug 16 03:53:42 * #loadDataWithBaseURL(String,String,String,String,String) Aug 16 03:53:42 * loadDataWithBaseURL()} with an appropriate base URL. Aug 16 03:54:00 that's loadData() doc...possibly the reason. Aug 16 03:54:40 boing: careful with the pasting, please Aug 16 03:54:55 apologies Aug 16 03:56:11 hmm, that does sound like a similar symptom, but javascript is not really my concern Aug 16 03:56:18 more worried about css and images Aug 16 03:56:42 i wonder if disabling javascript in the webview makes a difference Aug 16 03:57:05 er javascript is disabled by default Aug 16 03:57:09 well i'll be... Aug 16 03:57:14 seems like a bug. Aug 16 03:57:50 it does. Aug 16 03:58:24 sort of...but seems like such a massive bug that im pretty surprised if it is one. theres nothing on stackoverflow related really. Aug 16 03:58:50 Can the overlays in google maps be put there by address? Aug 16 04:04:38 boing, i had the same reaction. maybe use of shouldInterceptRequest is uncommon Aug 16 04:48:08 anyone playing around with SL4A? or on{x}? Aug 16 04:48:51 wow, on{x} - haven't heard anyone mention that since about 2 days after it was released :) Aug 16 04:49:09 Leeds, :D that's why I'm asking here Aug 16 04:49:38 Leeds, shocking stuff : 0. it's from M4 1. It's open source! 2. It works! Aug 16 04:50:09 it's open source? Aug 16 04:51:08 anyway, lunch Aug 16 04:52:33 Leeds, it's all js; Aug 16 04:52:50 the app isn't Aug 16 04:54:51 Leeds, yes you are right. Aug 16 04:55:34 Leeds, https://www.onx.ms/#termsOfUsePage but seems to promising for automation Aug 16 04:55:48 MICROSOFT LIMITED PUBLIC LICENSE :D Aug 16 05:03:01 how can I trace a null pointer exception in eclipse? logcat doesn't seem to be giving me enough info Aug 16 05:03:29 you can run your app in debug Aug 16 05:04:03 stick in some brakepoints and what not Aug 16 05:12:57 it says VM does not provide monitor information Aug 16 05:13:13 as far as I can tell Aug 16 05:23:51 Hi. I am testing an IntentService and I want to test that it throws a certain Exception from handleIntent(). The problem is that somehow, the exception is not being caught in the test code. Any insight? Aug 16 05:33:30 Wanna build a simple chat application. My solution right now is to just update the feed from the database every two seconds. Of course... not practical. Is google GCM the best way to go about this? Aug 16 05:43:22 Does Dalvik support Java 7 features? Aug 16 05:46:47 i imagine so Aug 16 05:46:54 I don't think so Aug 16 05:47:28 but I'm really not sure Aug 16 05:49:18 Actually it might Aug 16 05:49:29 I'm changing my answer to "I have no idea" Aug 16 05:52:36 haha Aug 16 05:52:55 java 7 code is compatible with older JDKs... Aug 16 05:52:59 AFAIK Aug 16 05:53:06 same bytecode really. Aug 16 05:53:25 so im guessing it's ok. google is your friend though. Aug 16 05:53:32 I guess there are new language features, but if they end up at the same bytecode, it should work? Aug 16 05:53:37 I assume by "code" you mean "bytecode" and by "JDKs" you mean "JREs"? Aug 16 05:54:17 yeah if it compiles to the same bytecode there's no reason it shouldn't Aug 16 06:01:38 so i have sshed into my android, but there are no compile tools. Aug 16 06:01:48 is there an apt-get build-tools or some such available? Aug 16 06:03:01 bjorkintosh: you've...what? Aug 16 06:03:06 how have you done this? Aug 16 06:03:21 Android doesn't have an SSH daemon Aug 16 06:03:48 but it has apps, does it not? :) Aug 16 06:03:54 SSHDroid is running. Aug 16 06:04:25 it would be neat to play directly on there. Aug 16 06:04:32 the text editor ed is of course installed. Aug 16 06:04:37 all i need are build tools. Aug 16 06:05:53 in any case, there's no apt-get for android. I'm not sure if anyone has made a third-party on-device compiler of any sort. Aug 16 06:07:36 why not? Aug 16 06:07:51 oh, i guess everyone is trying to use the marketplace or something. Aug 16 06:09:05 i have a gigaware usb headset Aug 16 06:09:13 i plug it in, the vol up / down does control volume Aug 16 06:09:26 but im unable to get sound through its speakers or even am ic? Aug 16 06:11:45 anyone? Aug 16 06:11:51 not i. Aug 16 06:11:53 sorry. Aug 16 06:13:09 alas, I've only used 3.5mm headsets Aug 16 06:14:32 theres no way to get a usb one to work? Aug 16 06:14:35 i paid $40 :( Aug 16 06:14:55 bitgod, i am pretty sure there has to be a way. Aug 16 06:15:27 it was a bit of a PITA to get my usbheadset to work on my laptop. but it is because, it treats the usb as a second sound card. Aug 16 06:15:51 so what you have to do might involve finding what it is calling the second sound card, and then convincing it to use that. Aug 16 06:16:04 hm Aug 16 06:16:11 i dont think android offers that flexabilty Aug 16 06:16:12 linux. go figure. Aug 16 06:16:47 is there no app for that, Bitgod? Aug 16 06:17:21 i highly doubt that Aug 16 06:17:27 ive been a android guy for 2yrs Aug 16 06:18:24 ah. and you still bought a usb headset? Aug 16 06:18:27 for android? Aug 16 06:18:46 bluetooth, i can see. Aug 16 06:19:14 no its not bluetooth Aug 16 06:19:20 its for pc Aug 16 06:19:39 yeah. precisely what i am saying. bluetooth, i can see. but usb? not so sure. Aug 16 06:19:49 however, it has to have happened before. let us consult the google. Aug 16 06:20:39 i see a few apps. Aug 16 06:20:46 two of which are called plug in launcher. Aug 16 06:20:50 have you tried any of them? Aug 16 06:20:58 hmmmm Aug 16 06:21:00 what names Aug 16 06:21:24 two of which are called plug in launcher. Aug 16 06:21:40 in market? Aug 16 06:21:45 no. Aug 16 06:21:46 play. Aug 16 06:21:58 trying it now Aug 16 06:22:01 same thing :P Aug 16 06:22:15 no. i understand there are several markets, but only one play. Aug 16 06:22:16 love u Aug 16 06:22:20 if this works, ill hug yuou Aug 16 06:22:28 *shrug* google. Aug 16 06:23:46 installing Aug 16 06:28:11 k Aug 16 06:28:15 that didnt do shit :/ Aug 16 06:28:33 This app is a true "plug and play" app. It will launch a specified app (or the ability to choose from multiple via dialog) when the Power, USB, or Headset cables are connected to the device. Aug 16 06:29:12 so you no love me no more? :( Aug 16 06:31:07 i do but its nto working :( Aug 16 06:31:39 Bitgod: USB Audio support is one of the listed new features in JB Aug 16 06:32:19 http://code.google.com/p/android/issues/detail?id=24614 Aug 16 06:32:24 great Aug 16 06:32:36 my Thrive wont get Jellybean probably til 20415 Aug 16 06:32:37 :/ Aug 16 06:32:44 it took a year for ics Aug 16 06:33:07 ah. well. what inspired you to get a usb headset? Aug 16 06:33:26 skype, etc Aug 16 06:33:32 at least, USB audio docks. Aug 16 06:33:53 yeah, but you can use the regular old jacks just fine. Aug 16 06:33:58 or bluetooth Aug 16 06:34:11 Or bluetooth :) Aug 16 06:34:44 Bitgod: I don't think ICS has been out for a year even Aug 16 06:34:48 unforutnately, I can't find a 3.5mm to USB adapter. Aug 16 06:35:02 i have one right here, ryanm. Aug 16 06:35:08 it is an ugly little thing. Aug 16 06:35:20 ryanm: it would have to be an active adapter - we're not talking about the old HTC method of running audio through the USB port Aug 16 06:35:35 yeah, I know Aug 16 06:35:49 ok\ Aug 16 06:35:55 how do i make a custom kernel Aug 16 06:35:57 or modifiy mine Aug 16 06:35:59 I figure that's why it doesn't exist, as you'd have to plug it into something Aug 16 06:36:09 Bitgod: nothing personal, but "I bought hardware which Android doesn't support, and now I'm pissed off that Android doesn't support it!" Aug 16 06:36:28 android isnt special Aug 16 06:36:29 Bitgod, #android-root Aug 16 06:36:33 its linux w/ a cute ui Aug 16 06:36:36 ok Aug 16 06:36:38 android is *very* special Aug 16 06:36:40 no one's awake there. Aug 16 06:36:43 leed: its linux Aug 16 06:36:46 its not unique Aug 16 06:36:50 it uses a 2.6 kernel Aug 16 06:37:03 actually it uses a 3.X kernel mostly nowadays Aug 16 06:37:49 Linux localhost 2.6.32.9 #101 PREEMPT Thu Jan 12 18:15:17 PST 2012 armv7l GNU/Linux Aug 16 06:38:02 mine is most definitely running a 2.6 for ics Aug 16 06:38:51 GNU/Linux, really? Aug 16 06:39:05 i have sshed into my machine. that is what it tells me. Aug 16 06:39:13 With google maps api is everything in geopoints? Aug 16 06:39:17 so it's not running Android... Aug 16 06:39:18 meh Aug 16 06:39:37 it IS running android, Leeds. Aug 16 06:39:51 android is simpler a layer above linux. Aug 16 06:40:10 so is GNU, in this context... but I said 'meh' and I meant it Aug 16 06:40:13 nothing more. so it is entirely possible (not practical) to replace that entire layer. Aug 16 06:40:45 it is a former nook color which got itself rooted. Aug 16 06:40:53 it shouldn't have been so damned boring. Aug 16 06:40:53 ive seen one guy install ubuntu on a tablet Aug 16 06:40:54 ]LOL Aug 16 06:41:01 and touch worked fine Aug 16 06:41:02 Bitgod, entirely possible. Aug 16 06:41:50 it's still a bloody nook color... anyway, enough Aug 16 06:42:31 what should it be, Leeds? Aug 16 06:42:43 there is not a shred of nook anything inside of it left. Aug 16 06:42:50 stop now Aug 16 06:42:52 pure cyanogen-mod9. Aug 16 06:43:09 stop what? did i trip a silent alarm of some sort? Aug 16 06:43:20 are you actually an android app developer? Aug 16 06:43:33 why not? Aug 16 06:43:33 oh well, id have to change code in the kernel in android Aug 16 06:43:39 and i dunno how yet to compile Aug 16 06:44:14 because you haven't actually said anything about app development yet? Aug 16 06:44:51 hahaha. Aug 16 06:45:05 my current interest is finding a nice compiler to run directly on my android. Aug 16 06:45:12 AIDE Aug 16 06:45:12 for entertainment purposes. Aug 16 06:45:34 lets you build apps onboard Aug 16 06:45:39 hmm. Aug 16 06:45:41 thanks. Aug 16 06:46:41 aha. this is definitely a start. Aug 16 06:46:52 its a shame android cant do mono .net apps Aug 16 06:46:53 lol Aug 16 06:46:57 i know jack about java Aug 16 06:47:07 mono? eww, so gross. Aug 16 06:47:27 Bitgod: there's monodroid, or there was before Miguel got spun off Aug 16 06:47:40 not cheap, and I've not actually heard of anyone actually using it Aug 16 06:48:00 I think spacechem does Aug 16 06:48:01 hmm Aug 16 06:48:12 <[emil]> Hi, I have two adapter's adapter1 and adapter2. Adapter1 runs first and inflate a textview contained in a.xml which is returned from getView() which is later displayed as a listview of textviews. Adapter2 runs next. Is there a way to change an ImageView (also contained in a.xml) which was already inflated by adapter1? Aug 16 06:48:24 ryanm: might explain why - interesting game, looks... odd Aug 16 06:48:31 which results in it occasionally crashing in ways that are best described as "interesting" Aug 16 06:50:32 woot Aug 16 06:50:34 thx leeds Aug 16 06:52:22 pleasure Aug 16 07:09:19 is there some list of sytem-wide icons for action bar and menu? like, the standard reload with two arrows in circle. Aug 16 07:14:15 Pitel_laptop: http://developer.android.com/design/downloads/index.html Aug 16 07:19:27 codegasm_: is there similar pack for foryo and gingerbread? Aug 16 07:51:32 I need to make a EditText in between a line of text, e.g.: Start from [EditText here] to [EditText here] ..., is there a clean way to do that? Aug 16 08:07:16 Guys what thinking in app development has lifecycles in android Aug 16 08:07:18 ? Aug 16 08:07:25 I need to make a EditText in between a line of text, e.g.: Start from [EditText here] to [EditText here] ..., is there a clean way to do that? Aug 16 08:07:37 yes Aug 16 08:08:00 Guys what thinking in app development has lifecycles in android Aug 16 08:08:05 *things Aug 16 08:09:03 Guys what features in app development has lifecycles? like activities And fragments? Aug 16 08:10:10 services Aug 16 08:11:46 so just those 3? Aug 16 08:12:14 Ivru: Just those 3? Aug 16 08:15:22 Brent___: to be exact, every objects has a lifecycle Aug 16 08:15:34 lo Aug 16 08:15:36 lol Aug 16 08:16:10 Ivru: i want the list of ones who have distinct life cycle commands like fragments and activities do Aug 16 08:16:53 Brent___: i do not see any others. But I'm maybe missing something Aug 16 08:33:02 is there some app for wiriting nfc tag with custom mime? Aug 16 08:33:42 I am starting my IntentService from an Activity. The service spawns an AsyncTask and while the network operation the service does is successful, when the time comes to notify the caller, using ResultReceiver#send(), I get this "Handler sending message to a Handler on a dead thread" Aug 16 08:33:58 RuntimeException Aug 16 08:34:25 I have NO idea what's happening. Anyone encountered the same problem ever? Aug 16 08:35:12 yati: why would an IntentService be starting an asyntask :P Aug 16 08:35:43 g00s: to perform a DB + network task. Why isn't that recommended? Aug 16 08:36:00 the IntentService already has its own thread Aug 16 08:36:50 does it? I think I read somewhere that the service by default starts in the same process and same thread as the main application? Aug 16 08:37:11 a regular Service yes, but you said IntentService Aug 16 08:39:46 yes IntentService Aug 16 08:39:59 so it always has its own thread? Aug 16 08:40:50 I mean no configuration required, right? Aug 16 08:41:48 correct Aug 16 08:42:01 make sure you override the correct function Aug 16 08:43:03 onHandleIntent() is the only one I currently override Aug 16 08:43:08 is there a way to access the strings in my strings.xml? I want to check if a certain string equals something, but due to localization, i can't use a hardcoded String, as it differs in my localization Aug 16 08:43:44 sonOfRa: From an Activity/Service, use getString(R.string.) Aug 16 08:43:55 *facepalm* Aug 16 08:44:13 ?? Aug 16 08:44:15 too used to find and autocompleting on F and there was nothing Aug 16 08:44:30 was looking for findStringByID but didn't find anything Aug 16 08:44:37 :P Aug 16 08:44:54 that's pretty inconsistent, they should stick to get or find for everything :D Aug 16 08:45:52 sonOfRa: naw these Java designers take their gets and finds seriously. They say they're "semantically different" though I wouldn't care :P Aug 16 09:01:08 why the fuck is there still no PreferenceFragment compatibility shit Aug 16 09:02:18 I'm having a little problem wrapping my head around ActionBars.. Are you supposed to only have one (main) Activity that swaps out fragments where you before had different Activities? Aug 16 09:02:18 Hey all... Aug 16 09:02:55 I have a dialog, that uses it's owner activity to run an Intent, but I need to update the dialog's content after the called activity completes. I am using showDialog(...) to handle. Aug 16 09:03:54 frode: You can still have multiple activities, but if some are interconnected you rework them as fragments of a single activity. Aug 16 09:04:30 frode: The classic example is a List-Details activity, that has a list of objects and a detailed view of a single object. Aug 16 09:06:15 Thanks, Lachezar. But if you assume that I have one List-Details activity (already using fragments) and another sort related Activity which shows e.g. some About info. Aug 16 09:06:26 I still want the actionbar showing in the About activity, since it has the logo etc. Aug 16 09:06:52 So do I keep them as two activities, or make the About activity into a fragment in the first Activity. Aug 16 09:07:03 *sort of related Aug 16 09:08:01 frode: Does'nt strike me as related, no... probably AboutActivity can still be an activity. Aug 16 09:10:55 hey guys Aug 16 09:11:08 wait wrong channel Aug 16 09:12:09 Lachezar: Hmm, okay. That means I have to create another ActionBar in the About Activity and that the ActionBars will "slide" away when the Activity changes, no? It seems at odds with the idea that an ActionBar should be a fixed, consistent thing across the whole application. Aug 16 09:12:50 Thanks for the input though, good to hear that I haven't completely misunderstood things :) Aug 16 09:15:11 I want my main activity to be launched both from launcher, and also when scanning NFC tag. But when I add to intent filter filter my NFC tag, the app disappears from launcher. How to do that? Aug 16 09:16:16 maybe... can activity has multiple intent filters? Aug 16 09:18:58 Has anyone had any problems with XML Layouts repeating themselves when they're not supposed to? If so, how did you fix it? Aug 16 09:19:48 Pitel_laptop: Multiple filters is the way to go. Aug 16 09:21:22 Hi! Please help. I could not find this on google. I have unicode characters in the phonebook contact names, but when I use getContentResolver().query, they come as '???????'. Help! Aug 16 09:21:25 Pitel_laptop: One intent-filter to start from the launcher, and one for the android.nfc.action.NDEF_DISCOVERED Aug 16 09:22:06 Lachezar: yup, this seems to work. also, do you know any app which can write tag with my custom mime? or do I have to write my own app for that? Aug 16 09:23:26 Pitel_laptop: Ughhh... Maybe you should ask the tag supplier... Aug 16 09:24:07 Pitel_laptop: But I suppose you could something by yourself. Aug 16 09:25:10 Pitel_laptop: look at the com.nxp.nfc.tagwriter in the Market... I suppose you'll be able to test if this works easily. Aug 16 09:25:54 Lachezar: it can't :( it can write contact, url, sms and whatnot, but not completely custom ndef data Aug 16 09:26:11 but I will probably want to make custom writer anyway Aug 16 09:26:21 Can I prevent the OS from putting my app to sleep/pause? Aug 16 09:26:22 so Users won't need another app Aug 16 09:30:53 johanhar: Yes, you can: you can set any view to setKeepScreenOn(boolean). Also available in the xml layout as attribute Aug 16 09:31:52 johanhar: Also: you can use the PowerManager to request a WakeLock (needs permission to do so). Aug 16 09:36:54 Thanks Lachezar Aug 16 09:37:06 Pitel_laptop: If you expect your users to regularly write tags you should make this part of your application. Aug 16 09:47:13 hmm, let's say i have a requirement where i need to reuse a fragment: once as part of an activity and once as a dialog.. Aug 16 09:47:16 is that possible Aug 16 09:48:26 ah ok, dialogfragment :D Aug 16 09:49:24 alankila: Would ray tracing be another one of these cases where one would want to call rsForEach() from within a kernel called by rsForEeach(), then? Aug 16 09:49:38 How many threads would you typically spawn at that point? Aug 16 09:51:25 ok, I got biggish images and layouts use wrap_content on all of it. Was aimed at 10" tablets. But I try running my app on my Galaxy S3 that has the same resolution, but the images still display Huge and out of proportion. How do I use the same images on my GS3 ? Aug 16 09:52:45 Blou_Aap: http://developer.android.com/guide/practices/screens_support.html Aug 16 09:53:13 hmm, ok, a dialog fragment cannot be added to an activity via the xml file it seems.. i can live with that though Aug 16 09:53:21 :/ Aug 16 09:54:36 not to be an ass, but I hardly ask here for advice if I havent looked at the developer site or tried google... Aug 16 09:55:09 Blou_Aap: not being funny, but your question is basically saying "I don't understand DPI", that page explains it Aug 16 09:55:51 -_- Aug 16 09:56:06 thanks for making up shit what i did not say Aug 16 09:56:14 doc_savage: Evidently that page doesn't explain it. Aug 16 09:56:14 np Aug 16 09:56:32 "The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots per inch). For example, a "low" density screen has fewer pixels within a given physical area, compared to a "normal" or "high" density screen. " Aug 16 09:56:36 evidently, it does Aug 16 09:56:47 I followed the right ways, but it still displays wrong Aug 16 09:57:12 doc_savage: Well, it explains _something_, but that's not the same thing. Aug 16 09:57:28 it doesnt give me a solution to my problem Aug 16 09:57:56 like for e.g. the section on "Scaling Bitmap objects created at runtime"? Aug 16 09:58:10 but I'm done, it's there if you want it Aug 16 09:58:29 oh, now grabbing random stuff is really gna help… sigh Aug 16 09:59:26 I'm not here to waste time arguing, if your images are coming from R.drawable, they're scaled for you if your using the right folders -hdpi etc. (probably also explained on that page), if not, you're loading them manually and that is exactly what you want Aug 16 09:59:47 i feel stupid: he method show(FragmentManager, String) in the type DialogFragment is not applicable for the arguments (FragmentManager, String) Aug 16 09:59:48 -_- Aug 16 10:02:55 Blou_Aap: In which res/drawable-??? directory did you put the images? Aug 16 10:03:27 aaagh, getSupportFragmentManager Aug 16 10:04:16 xhdpi, I also tried hdpi and mdpi. Tried the normal, large, etc as well and also just plain ole "drawable" Aug 16 10:04:27 Blou_Aap: You probably need to put the image into res/drawable-nodpi Aug 16 10:04:57 Blou_Aap: Of course that's BIG MISTAKE, but will make the image no-scale at any resolution. It will be used as PX-per-PX Aug 16 10:05:34 mmm Aug 16 10:05:40 havent tried that one yet, Aug 16 10:05:49 hope it works on both will try and report Aug 16 10:05:55 ty;) Aug 16 10:06:05 Blou_Aap: i would suggest creating images for different resolutions, and then put them in res/drawable-sw240dp, res/drawable-sw480dp, etc. Aug 16 10:06:33 Blou_Aap: That however will make the app bigger :( Aug 16 10:06:54 the app is not mandatory for phones, it's meant for tablets, I jsut want to see if I can actually use the exact same images Aug 16 10:07:23 because both the sam tab 10.1 and gs3 got about the same resolution Aug 16 10:07:40 the app is only gna be for the tab 10.1 for clients Aug 16 10:07:52 i just want to test it on my gs3 and see Aug 16 10:08:23 Blou_Aap: is not . The aspect ration can be quite different, so the image may be stretched ugly. Aug 16 10:09:22 Blou_Aap: If it does not work you may have to create a XML Drawable in res/drawable, that will apply manual scaling of the underlying image. Done that. Actually works fine. Aug 16 10:16:41 mmh Aug 16 10:17:04 I have this large pile of c++ code that causes a crash before it even reaches JNI_OnLoad... :E Aug 16 10:20:54 Hi all Aug 16 10:20:57 ok i have a List of objects of a class that implements Serializable Aug 16 10:21:07 now i try: args.putSerializable(CRITERIA_KEY, criteria); Aug 16 10:21:42 where args is a bundle and CRITERIA_KEY is a static string to reduce the probabiltiy of errors due to typos :D Aug 16 10:22:21 i get an error that putSerializable is not applicable to String, List, where Criterion implements Serializable Aug 16 10:23:09 oh i get it. Aug 16 10:23:26 List is only and interface.. ArrayList would for example implement serializabw Aug 16 10:23:30 Serializable.. Aug 16 10:36:57 what is the correct english term to "put tag near phone"? attach? enclose? Aug 16 10:37:59 why does d.android.com say that xhdpi actionbar icons should be 48x48 but the ones in platforms/android-15/data/res/ are 64x64? Aug 16 10:38:04 Can anybody recommend frameworks for Android app development? (I'm not interested in frameworks for web app bundling as mobile) Aug 16 10:38:26 stork, xhdpi in API 16 are 96x96 minimum Aug 16 10:38:44 o.O Aug 16 10:39:37 those are the dimensions of the generation ic_launcher Aug 16 10:39:52 xhdpi 96, hpdi 72, mdpi 48, ldpi 32 Aug 16 10:40:01 generated ic_launched ** Aug 16 10:40:13 those are launcher icons Aug 16 10:41:04 ah okay Aug 16 10:41:07 i misread :D Aug 16 10:41:26 anybody tried out ignition: https://github.com/kaeppler/ignition Aug 16 10:41:27 ?? Aug 16 10:57:17 btw how long does it take after publishing the app on dev console to showing up on a play store search? Aug 16 11:10:31 Guys, I've a question on listview Aug 16 11:10:39 it took me first time like 12 hours Aug 16 11:10:53 and next publish took only 10 mins, so it depends Aug 16 11:11:34 I want to load my listivew with a particular position item visible Aug 16 11:11:46 irrespective of where it occur it in the list Aug 16 11:12:19 hemanshu: first, have your adapters getItemId return unique ids that are not the based on the position then Aug 16 11:14:34 Napalm: ok.. what next.. Can I ask adapter to load certain itemId Aug 16 11:15:27 well you can then add a method to your adapter to find a position from an itemId Aug 16 11:15:31 then you call setSelection Aug 16 11:15:56 hmm.. Napalm thanks would give it a shot Aug 16 11:16:25 as long as your adapter impelements hasStableIds() and returns true then the listView will track the selection based on id not position Aug 16 11:16:35 but you still have to set the selection from a position Aug 16 11:25:07 vavirta, i guess someone manually approves it the first time? Aug 16 11:28:54 anyone here have experience of working on fetching facebook feeds in android? Aug 16 11:32:21 Fire-_-Fly: just display a progress bar it will be enough Aug 16 11:40:56 Ivru, sarcasm? Aug 16 11:41:39 I am trying to show the http://www.facebook.com/TheSimpsons posts in my app Aug 16 11:41:54 since this is public, it shouldn't be a problem Aug 16 11:42:53 I do get results from https://graph.facebook.com/TheSimpsons/feed Aug 16 11:43:45 but I need to restrict to posts that are by the page owner only (as shown in their time line) Aug 16 11:43:55 Sri19: or maybe it just take some time to propagate Aug 16 11:43:55 dunno Aug 16 11:44:16 hey guys Aug 16 11:44:17 instead the api is giving me posts people make on the page Aug 16 11:44:27 Fire-_-Fly: yeah it was. Sorry, i cannot help you. Aug 16 11:44:27 I hate this thing Aug 16 11:45:12 anyone know a channel about facebook app dev? Aug 16 11:45:16 just installed appolo music player and i d on t know what this app will tell me;) if its startet it shows tabs for albums, song and stuff, but no where you can set the paths for your music. so everything is empty Aug 16 11:45:31 and slowly i get angry about this app Aug 16 11:45:38 how can i set path to music? Aug 16 11:49:10 also no information found on the net. this are the things i hate so much! now i must spend hours for research only that that player is working, if it works Aug 16 11:49:10 [13:49] its not nice Aug 16 11:51:27 mrweed: this is not an app support channel. Also, that particular app seems to have topics on some popular forums, maybe you can find an answer there, or you can contact the maker if there is contact info. Aug 16 11:52:48 HDroid: thx a lot for this very usefull answer. this really helps me. now i know that this is no support channel or you are not willing to help and must contact the devs from this apps what brings exactly nothing Aug 16 11:53:07 stay on with such usefull hints. many people will be very thankfull Aug 16 11:53:49 now i push my head against the next wall, maybe the stupidy is goeing out. apoligize me, that i am not such a wise man then you Aug 16 11:53:51 mrweed: we are not your personal support resource, I'm sorry we disappoint yuo. Aug 16 11:54:07 no, you start start to make me slowly angry Aug 16 11:54:12 i hate this arrogance Aug 16 11:54:14 but whatever Aug 16 11:54:16 have a nice day Aug 16 11:55:39 We're arrogant? You're the one expecting customer service from people who a) are not customer service and b) know nothing about this app you're talking about and most importantly c) don't owe you anything at all. Aug 16 11:55:46 I'd say that's pretty arrogant. Aug 16 11:56:18 were are you living man? on the moin? i just asked a question about an app Aug 16 11:56:33 this has nothing to do that i would think that you are my personal support team Aug 16 11:56:42 what an arrogant bullshit Aug 16 11:56:49 mrweed: well you asked for support, right? Aug 16 11:56:55 becouse such people, no one uses linux on the desktop Aug 16 11:57:06 i akesd how i can configure this damn player Aug 16 11:57:08 not more Aug 16 11:57:13 and if you don t know it is ok Aug 16 11:57:20 but don t come to me on this way Aug 16 11:57:22 i hate this Aug 16 11:57:48 mrweed: and I told you that 1) this is not the place to ask and 2) this is not an app support channel, so you probably won't get an answer, I even directed you to some sources that do have answers. Aug 16 11:57:57 mrweed: why dont you contact/email the developer Aug 16 11:58:20 Are you the kind of person who brings his car to the grocery store when it breaks down? Aug 16 11:58:21 for me all this linux-idiots with this mind, are arrogant idiots. i am an enduser. i am no dev. i can t spend hours to get shit work. if it don t work, i buy another solution. but i don t let offend me by arrogant linux-nerds Aug 16 11:58:23 forget it! Aug 16 11:58:42 "i am no dev", #android-dev... Aug 16 11:58:48 lol Aug 16 11:58:57 Napalm: sure, i have nothing better to do then contact the devs of this apps what brings exactly nothing Aug 16 11:59:07 no problem, i love to waste my time Aug 16 11:59:11 mrweed: this is not a channel for end users, go rant in a place for end users. Aug 16 11:59:24 i life forever, so lifetime has no value Aug 16 11:59:32 w/e Aug 16 11:59:33 you have complete convinct me Aug 16 11:59:33 lol Aug 16 11:59:58 damn. Aug 16 12:00:00 end of story Aug 16 12:00:05 Yes Aug 16 12:00:06 Goodbye Aug 16 12:00:12 i must try to come down Aug 16 12:00:51 HDroid: i meant end of communication with arrogant, enduser offending linux-nerds. so bye, bye to you Aug 16 12:00:56 Don't project your own sorrow on us. Deal with it. Aug 16 12:01:09 I just don't think we want you on board as an end user. Aug 16 12:01:14 i have no sorrows exept this don t working player Aug 16 12:01:27 i think you don t want enduser at all Aug 16 12:01:32 this is the truth Aug 16 12:01:38 Look, no one knows about your stupid player. Go ask the dev. Aug 16 12:01:41 you are the typical arrogant linux-geek Aug 16 12:01:58 We don't want arrogant endusers from apps we haven't even made. You're right about that. Aug 16 12:02:15 what you not say. i am just in dev and root and asking parallel, becouse i know that i must wait and hope for answer Aug 16 12:02:24 i am not and never was arrogant Aug 16 12:02:25 You may get better help in #android. Aug 16 12:02:33 therefore i can judge arrogant people like you Aug 16 12:02:37 I don't know how they are with support requests Aug 16 12:02:42 http://www.the-digital-reader.com/2012/08/15/amazons-next-tablet-clears-the-fcc/ Aug 16 12:03:15 why is my nfc foreground dispatch fired only once? on the second tag, the browser is launched. Aug 16 12:03:28 mrweed: the fact alone that you come to a _development channel_ and expect _end user support_ and get mad when you don't get it, is prettya arrogant in itself. Aug 16 12:04:11 And asking in root, that is just completely wrong :D Aug 16 12:05:40 HDroid: i expectet nothing, exepting get offendet by arrogant nerds like you Aug 16 12:05:46 such things i hate Aug 16 12:05:48 Pitel_laptop: sounds like it could be broadcast ordering issue Aug 16 12:05:48 hate, hate, hate Aug 16 12:06:04 wheres the OPs when you need them Aug 16 12:06:10 mrweed: you seem like an angry person. Aug 16 12:06:32 Napalm: hmm, can I do something with that? Aug 16 12:06:33 you figure with a nick like mrweed, he'd be pretty mellow Aug 16 12:06:37 HDroid: stop winding him up, lol Aug 16 12:06:56 Yeah I'm sorry. Aug 16 12:07:06 Pitel_laptop: adjust the priority of your broadcast reciever Aug 16 12:07:20 Pitel_laptop: something like that, think its a attribute in manifest Aug 16 12:07:36 Pitel_laptop: which browser? Aug 16 12:08:10 Pitel_laptop: wait, does your nfc tag hold a url block? Aug 16 12:08:12 Napalm: https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html#foreground-dispatch I am doing it like this... the onNewIntent metgod is fired only once Aug 16 12:08:20 Napalm: opera mobile Aug 16 12:08:54 sorry, but such things make me angry. i wasn t angry bevor asking. but such reactions means war for me. it shows the full arrogance of some linux-nerds. look where you are with this! the linux ussage on the consumer desktop are under 1%! do you think this is a coinsident? i don t think so. its becouse like such arrogant nerds like you, HDroid. Aug 16 12:09:15 but is sensless to bring arguments to such people, as the life in their own world Aug 16 12:09:15 Pitel_laptop: sounds to me like it could be a problem in opera, but dont quote me on that Aug 16 12:09:25 Yes, so go away and leave us alone. Aug 16 12:09:25 so, i don t waste my timer longer with such people Aug 16 12:09:39 HDroid: i don t talk longer with you Aug 16 12:09:44 this should be enough Aug 16 12:09:56 secound time: bye, bye HDroid Aug 16 12:10:03 No Aug 16 12:10:20 Pitel_laptop: one would assume you receive the NFC (URL) request, if you dont handle it, it gets through to the default android handler which creates a view intent with the url and therefore launches your browser Aug 16 12:10:35 then talk with people they like you, if souch people exists, but not with me anymore, HDroid! Aug 16 12:11:06 Napalm: okay, I wont bother with that, I just want to rewrite the tag anyway :) Aug 16 12:11:18 mrweed: Seriously, enough. Aug 16 12:11:50 MR WEED Aug 16 12:11:56 Any more on this subject is just wasting all of our time Aug 16 12:12:10 NAH Aug 16 12:12:12 lets keep going Aug 16 12:12:29 sounds to me like he's been smoking too much pot and has paranoia Aug 16 12:12:31 lol Aug 16 12:13:17 i always feel like, somebody's watchiiinnnn meeeeeee Aug 16 12:13:22 * wongk sings Aug 16 12:13:25 lol Aug 16 12:13:40 'ello 'ello 'ello, what's all this then? Aug 16 12:13:48 arg, these fragments are killing me Aug 16 12:15:11 so my first ever android app got published .. its a very simple open source app, does anybody want to do a code review and help me get better? http://srirangan.net/2012-08-zone-out-everyday-audio-clutter Aug 16 12:15:13 well, no paranoia and no weed. wrong time:) i just felt offendet by HDroid and this was my reaction. thats all Aug 16 12:15:53 perks include you getting to criticize someone elses code :-) Aug 16 12:16:04 downside is i might not get offended :P Aug 16 12:16:29 (i can fake offence if that makes u happy) Aug 16 12:17:06 Sri19: nice, i would have put your 3 checkboxes as action buttons with icons like "Om" for the first two rain drops one larger than the other for the second and a tree for the last, you could then add some nice animations and imagery to go with each selection Aug 16 12:17:09 mrweed: outside of who offended who and whatever, this is the wrong place for your question Aug 16 12:17:42 well, this acting of nerds, make me already since many years angre. i can have it. normal people with understandings are allways welcome. thats not the point. and atm, i am also in a very sensitive state and if i must also face such thing, then this is to much Aug 16 12:17:45 nothing personal Aug 16 12:17:56 thanks Napalm .. i'll have to google actionbuttons and hunt of icons,.. but good UI ideas Aug 16 12:17:58 Sri19: i mean, animate the entire main view Aug 16 12:18:19 Leeds: Nerd power! Aug 16 12:18:22 Leeds is gonna feel the rage now Aug 16 12:18:32 SimonVT: Oh, I do hope so! Aug 16 12:18:38 lol Aug 16 12:18:41 Didnt know you could op. Gonna have to actually listen to you now, huh Aug 16 12:18:44 finally a OP Aug 16 12:18:45 :D Aug 16 12:18:45 :D Aug 16 12:18:48 Haha Aug 16 12:18:54 Ops in this channel are sneaky Aug 16 12:19:06 i didn't know that either, another oper reveals himself! Aug 16 12:19:15 ofc, who wants to be branded an OP for these people that come and go Aug 16 12:19:23 Knossos: It's generally a good thing you don't know that..:P Aug 16 12:19:28 hey, I'm having a nice relaxing evening eating ice cream in a typhoon and moving terabytes of data around my home server... Aug 16 12:20:07 Leeds: i have the same thing to do at some point, need to move 3 terabytes to new disks Aug 16 12:20:16 you must be somewhere asian or australian Aug 16 12:20:54 when's the last time you heard of a typhoon hitting Australia? Aug 16 12:21:13 whens the last time i checked :P Aug 16 12:21:45 Napalm, by action buttons you mean action bar buttons on top? can they be toggle buttons Aug 16 12:22:12 Sri19: yes and yes Aug 16 12:22:29 tapasya lets you combine sounds of om, rain and forests .. imagery selection will be interesting when you have combinations selected Aug 16 12:22:50 okay good idea about the action bar.. i need to figure out how to lay it for 2.2 Aug 16 12:22:50 exactly my thought Aug 16 12:23:46 Sri19: see ActionBarCompat sample, or you can simple inherit your app theme as NoTitleBar and then stick a layout with textview and 3 buttons in at the top Aug 16 12:24:15 okie will do.. Aug 16 12:24:29 ActionBarCompat is wack... that's not how we roll around here ;) Aug 16 12:24:37 yea i know Aug 16 12:24:45 thats why i suggested the alternative Aug 16 12:25:04 the one and only alternative is abs.io! Aug 16 12:25:24 ugh, heavy weight though Aug 16 12:25:54 yay, GitHub has taken on board my feature request Aug 16 12:26:21 to rename themselves GoatHub? Aug 16 12:26:26 lulz Aug 16 12:26:43 that's a product i could get behind Aug 16 12:26:51 no, when directories have a single directory inside they fold them Aug 16 12:27:02 wongk, please translate "is wack" and "is abs.io" Aug 16 12:27:06 so browsing the source online, is like src/com/android/blah/ Aug 16 12:27:22 are these recommended or not :P Aug 16 12:27:28 Sri19: the former means, is not good, type the latter in your favorite browser Aug 16 12:27:34 is one directory in the browser rather than having to navigate through the hierarchy for no good reason Aug 16 12:27:56 hmm http://actionbarsherlock.com/ Aug 16 12:28:15 looks good thanks! :D Aug 16 12:28:34 Sri19: i would not suggest it, your app is way to simple to to require that Aug 16 12:28:42 hmm .. okay Aug 16 12:29:05 true .. my next iteration for the UI was center align them horizontally Aug 16 12:29:06 lol Aug 16 12:29:38 oh it's only 1 screen, yeah an action bar would be pointless Aug 16 12:29:41 and i need to compress the mp3's if possible .. 20mb is kinda large Aug 16 12:29:48 na Aug 16 12:29:56 Sri19: pull them down as a seperate package Aug 16 12:29:59 use the attach feature Aug 16 12:30:17 Sri19: its what games use for large data Aug 16 12:30:26 hmm yeah.. good time to learn using that as well. Aug 16 12:31:30 actually i dont mind trying out action bar as well.. this is just a "practice" prject for me.. Aug 16 12:31:45 but, you don't have any actions Aug 16 12:31:46 helps me zen meditate >:D Aug 16 12:31:58 so you wouldn't really have anything to try :P Aug 16 12:32:02 yeah, the other app for which I am practicing does have Aug 16 12:33:24 wongk, ill think of something Aug 16 12:33:27 :-O Aug 16 12:49:35 Hi. I have an acitivity which should just start a fragment. I created a layout just containing the fragment (the fragment itself works in my two pane layout) but it looks like as if getView().findViewByID(R…) is null if I inflate the fragement in my activitries layout … any ideas why? Aug 16 12:50:15 dont the fragments have onInflate Aug 16 12:50:15 ? Aug 16 12:50:31 onViewCreated Aug 16 12:54:41 SimonVT: I used onStart() Aug 16 12:55:49 Hi Aug 16 12:56:24 hi, i have one activity for searching a contact. on select a contact from the search result it will be displayed in the details activity. in the details activity the user can delete the contact. then the activity is finish()ed and the user gets back the the search view with the previous search result which has the just deleted search entry in it. a deleted contact should not be in the search result as it is not available any more. any good idea/concept Aug 16 12:56:26 how to handle that? Aug 16 12:58:10 m1hael: Maybe using a Bundle instructing the Activity to remove the contact? Aug 16 12:58:34 m1hael: startActivityForResult Aug 16 12:59:05 or this, yeah :) Aug 16 12:59:29 thanx. will try that Aug 16 13:01:35 anyone know how to disable a long pres son a webview? Aug 16 13:02:12 zap the user when their finger i on the creen for more than .2 seconds Aug 16 13:02:23 if only Aug 16 13:02:28 lol Aug 16 13:06:15 gaz`: does it have a setOnLongClick... method you can pass an empty listener that just returns true to say it's handled it? Aug 16 13:06:29 (I haven't looked at the docs, not sure any of that exists) Aug 16 13:07:49 actually i managed it by setting a webchromeclient Aug 16 13:08:09 weirdly when i zoom on my webview tho it sort of jumps a fwew pixels to the right Aug 16 13:08:17 not sure why that is, i have to manually scroll it backk Aug 16 13:08:41 doesnt happen if i use the build in zoom just if i pinch Aug 16 13:08:59 oh it does on both Aug 16 13:11:49 SimonVT: here? Aug 16 13:11:56 yes Aug 16 13:12:06 i followed what u told me to do yesterday Aug 16 13:12:07 SimonVT: i added the themes attribute, but still calendar didnt work, even when i add it to the xml file, all i get in the graphical layout is something like "NULL" and "SSMTWTF" below it Aug 16 13:12:40 does the style.xml have any role in that? Aug 16 13:12:52 No, just add the attribute to your theme Aug 16 13:13:04 Works fine in the datepicker Aug 16 13:13:12 did that, just a min ill paste Aug 16 13:14:13 SimonVT: http://www.fpaste.org/CoAd/ Aug 16 13:14:25 anyone know how not to use curioer when u use
Aug 16 13:14:50  Looks fine
Aug 16 13:14:52  SimonVT: oh, i made a mistake, its not that
Aug 16 13:15:20  I imagine you can set a font-family tag on pre just like on any other tag?
Aug 16 13:15:36  hmm
Aug 16 13:15:37  maybe
Aug 16 13:15:40  SimonVT: http://www.fpaste.org/xzOB/
Aug 16 13:15:45  im using abs btw
Aug 16 13:15:54  Still looks fine
Aug 16 13:16:25  SimonVT: could it be because i built on 14?
Aug 16 13:17:18  No, that's not why
Aug 16 13:17:29  Build target doesn't affect how it looks on the device
Aug 16 13:20:51  hi
Aug 16 13:23:10  does anyone know how I can create a popup menu that is global throughout my application and can be accessed with the android's hardware menu button?
Aug 16 13:23:54  popup in activity?
Aug 16 13:24:00  Lamium: do you know how to create a popup menu?
Aug 16 13:24:11  Lamium: create an Activity subclass and use it as the base for all your activities
Aug 16 13:24:46  I know how to create one using an actionbar yes but I want it to spawn from the hardware menu button
Aug 16 13:25:06  Lamium: keep in mind that the hardware menu button isn't present on a lot of newer devices
Aug 16 13:25:34  so how do you access preferences on newer devices?
Aug 16 13:25:38  taljurf: Look at how it's used in datepicker.. do the same
Aug 16 13:25:47  Lamium: it uses the ActionBar's overflow
Aug 16 13:25:48  Lamium: actionbar
Aug 16 13:25:48  All I can say is that it works fine
Aug 16 13:25:58  SimonVT: gr8, ill check it out
Aug 16 13:26:01  (the 3 vertical dots)
Aug 16 13:26:10  so you must have an actionbar present at all times?
Aug 16 13:26:16  Alternatively, use the native CalendarView.. Make it work.. Then tell me how it breaks when substituted with my library
Aug 16 13:26:19  SimonVT: and u used api15?
Aug 16 13:26:32  it doesn't matter
Aug 16 13:26:39  ok
Aug 16 13:26:44  You just need the APIs to be available.. And they are on 14
Aug 16 13:26:57  gr8 , i'll update u
Aug 16 13:27:02  does anyone have experience FMOD ex api or know it? I'm considering about buying its license now
Aug 16 13:27:14  Lamium: I'm not sure where you'd be if you didn't want an actionbar to be honest, I'm just coming back to Android myself
Aug 16 13:27:58  doc_savage: ah jesus, I'm targeting API8+ and it seems that ActionBars are only API11+
Aug 16 13:28:13  so I would have to make 2 distros?
Aug 16 13:28:15  there is the compatibility library that extends action bars back to 1.6
Aug 16 13:28:32  http://developer.android.com/tools/extras/support-library.html
Aug 16 13:28:40  that's not entirely true
Aug 16 13:28:48  the support library does not provide an action bar
Aug 16 13:28:54  does it not?
Aug 16 13:28:57  no
Aug 16 13:29:00  oh god no... it's fragments
Aug 16 13:29:00  abs.io
Aug 16 13:29:03  why doesn't the keyboard automatically show up when i pop up a dialog with an input box?
Aug 16 13:29:06  sorry, my bad, like I said, returning to android
Aug 16 13:29:24  cause itll obscure the dialog on most devices
Aug 16 13:29:41  I'm already having to provide conditional code that's dependent on API for handling navigation within tabhosts -.-
Aug 16 13:29:51  stork : in EditText?
Aug 16 13:30:15  API 8-10 I have to use ActivityGroups and 11+ I have to use Fragments :(
Aug 16 13:30:17  yea
Aug 16 13:30:33  Or, support package and fragments everywhere
Aug 16 13:30:52  stork : it maybe is depend on phone's native code
Aug 16 13:31:13  can I just use the compatibility library and just utilise the fragment way? I'd rather only code something once
Aug 16 13:31:27  stork : you had better using manual code for showing keyboard
Aug 16 13:31:53  Lamium: if you're using onCreateMenu in your Activity, then it'll show with the menu key on devices that have it and the ActionBar on devices that don't
Aug 16 13:32:17  the only thing I'm not sure of, is what happens if the ActionBar is not visible on those devices, or if you get a choice
Aug 16 13:32:37  umm, where to get the Draw 9-patch tool?
Aug 16 13:32:46  doc_savage: but surely my app would need to have an action bar created if it detects API 11+
Aug 16 13:32:46  In the sdk
Aug 16 13:32:47  google says it's in SDK\tools but it's not there
Aug 16 13:33:00  it is here
Aug 16 13:33:07  Lamium: I think the platform will create it for you in place of the "title bar" you normally get
Aug 16 13:33:25  doc_savage: how sure are you on that one?
Aug 16 13:33:37  does anyone hear about FMOD EX api?
Aug 16 13:33:40  Pretty sure
Aug 16 13:34:00  Lamium: yeah, pretty sure, but I'm not sure where you stand if you're for e.g. using Window.FEATURE_NO_TITLE
Aug 16 13:34:13  Unless you do something strange like use Theme instead of Theme.Holo or set your target lower than 11
Aug 16 13:34:14  whether that removes the actionbar, and what happens to your menu if it does
Aug 16 13:34:58  doc_savage: I'm not using that so it should be okay. The only thing I'm concerned about is once I finish the program side of things I'm going to be skinning a UI over the top, not sure how that would affect things after
Aug 16 13:35:17  Hi everybody
Aug 16 13:35:19  hi
Aug 16 13:35:57  Hi Dr. Nick!
Aug 16 13:36:05  Lamium: probably the best thing is to fire up a few different emulators and try it
Aug 16 13:36:19  but the menu key is definitely on the way out, so don't be dependant on it
Aug 16 13:36:26  (hardware key)^
Aug 16 13:36:30  Andek1980 : hi
Aug 16 13:36:36  doc_savage: Yeah I hear ya
Aug 16 13:36:47  Andek1980 : have you heard FMOD api?
Aug 16 13:37:04  doc_savage: It's literally for our customers that are running older API's
Aug 16 13:37:40  FMOD ... no
Aug 16 13:37:52  Lamium: well, if you know that the devices it'll be run on will *always* have a menu key, that is a something to factor into your design
Aug 16 13:38:05  choijuho: I've not heard of FMOD either buddy :(
Aug 16 13:38:49  Lamimum : I c
Aug 16 13:39:10  doc_savage: Well we have such a large target audience that it's VERY difficult to gauge where to target. I've chosen API 8 as the minimum because there are some API 8 stuff that I couldn't do without in the code
Aug 16 13:39:31  Lamimum : do you know android audio api doesn't support 10 band equalizer for other audio apps?
Aug 16 13:39:54  FMODE is popular game audio development system .. O'Reilly has book ...
Aug 16 13:39:58  Lamium : even we can't extend AudoEffect class
Aug 16 13:40:04  I'm trying to create a list view in which I have viewPagers as list item. But When I create my adapter and inflate the XML containing the item list layout, nothing appears on the screen. What's wrong with my code. thanks in advance. http://pastebin.com/czq2RqBq
Aug 16 13:40:05  FMOD .. sorry
Aug 16 13:40:19  choijuho: I don't develop audio apps but I will certainly keep that in mind for when I come across something like that
Aug 16 13:40:24  Lamium: yeah, this is what I'm still reading up about at the moment, I stopped Android dev around version 2.1 and I'm just getting back into it now, trying to get my head around tablet support etc.
Aug 16 13:42:35  doc_savage: Well this is the first time I've developed for Android and I've not coded Java for about 5 years prior to this, but I think I'm handling it pretty well considering :D
Aug 16 13:42:44  Andek1980 : I'm considering about buying FMOD license. because, of couse I have installed NDK, I'm not suer if FMOD api for android is easy to use or not
Aug 16 13:43:13  Any ideas about my problem plz ?
Aug 16 13:43:20  Andek1980 : license fee is 500$
Aug 16 13:43:25  NDK is not easy too :]
Aug 16 13:43:50  ndk easy as cake
Aug 16 13:43:53  cake is pretty easy
Aug 16 13:44:01 * Jug6ernaut never got that saying
Aug 16 13:44:07  fd: I've had a look, but as I said, I'm fairly new at Android, when I used the inflator it was in a totally different context to yours so I can't help I'm afraid :(
Aug 16 13:44:33  Andek1980 : because they give to us full source based on c, I just compile it through NDK-build on cygwin
Aug 16 13:45:03  fd: So far, wongk and SimonVT have helped me solve problems in the past and have been very good to me :)
Aug 16 13:45:09  Andek1980 : of course I have to use native method in Java like Android inner class
Aug 16 13:45:42  Lamium: thanks anyway ;-)
Aug 16 13:45:43  Lamium: cool, I think the key to getting on with Android dev is just read, read, read d.android.com, but if you do want to use action bars back to 1.6 etc, http://actionbarsherlock.com/
Aug 16 13:45:56  Are the logs from logcat stored anywhere on the phone or just piped to the abyss?
Aug 16 13:46:14  they are stored
Aug 16 13:46:15  Lamium: then you suggest me to ask them though ?
Aug 16 13:46:19  Andek1980 : problem or key point is time to develop with using the library. if it is easy to use, it's worthful to buy for me
Aug 16 13:46:28  I haven't used it personally (yet) but my understanding is it'll provide it's own (compatible) ActionBar for older APIs and wrap the native one where available
Aug 16 13:46:35  porten: You have the option to save them at the time they are made before clearing by clicking the Disk icon
Aug 16 13:47:00  ok I quit .. bye
Aug 16 13:47:12  Need help please ;-)
Aug 16 13:47:19  fd: I never asked them specifically when I had my problem, they were just the first to reply to me
Aug 16 13:47:22  I'm trying to create a list view in which I have viewPagers as list item. But When I create my adapter and inflate the XML containing the item list layout, nothing appears on the screen. What's wrong with my code. thanks in advance. http://pastebin.com/czq2RqBq
Aug 16 13:47:34  Lamium: ha ok
Aug 16 13:48:51  Lamium: anyway good luck with your learning :)
Aug 16 13:49:50  I probably wouldn't put viewpagers in a listview
Aug 16 13:49:53  fd: Thanks man :)
Aug 16 13:50:05  fd: Speak of the devil ;)
Aug 16 13:50:08  Try the other way around
Aug 16 13:50:18  SimonVT: right? ha ok
Aug 16 13:50:34  Hmmm... no matter what I set in paint.setColor(), my drawLine still draws black :/
Aug 16 13:50:38  SimonVT: I'm really ashamed to tell you the reason which I found out
Aug 16 13:51:01  What on earth is happening.
Aug 16 13:52:17  fd: It's bound to mess up when you have 3 viewpagers containing fragments (tag conflicts, attaching to the right pager, etc)..
Aug 16 13:52:33  fd : I can't undertand why you used ViewPager, I have never experienced it. :) hehe
Aug 16 13:52:42  SimonVT: Before I was using a listView and a gallery as Child. But the Gallery is going to be deprecated and it has a lot of problem with the 'convertView' params of getView(…)
Aug 16 13:52:47  SimonVT: calenderview h_layout and w were set to wrap content , feel free to punch me in the face -_-
Aug 16 13:53:01  taljurf: At least you figured it out
Aug 16 13:53:15  CalendarView uses a ListView, and wrap_content on a ListView is not a good idea
Aug 16 13:53:44  choijuho: Indeed, I need a list view with an image slider as child. But I don't have any idea of how to do it the right way
Aug 16 13:53:47  SimonVT: obviously :/
Aug 16 13:54:11  choijuho: any idea dude ;-)
Aug 16 13:54:29  taljurf: Making stupid mistakes is all part of learning ;)
Aug 16 13:54:38  fd: You can still use Gallery
Aug 16 13:54:39  I see, also, if the GPS unit is running are the waypoints stored anywhere? I noticed logcat has updates of GPS in them
Aug 16 13:54:52  not waypoints, but GPS positions
Aug 16 13:55:12  It's not bad to use a Gallery (it's bad to use some of the other deprecated classes, tho)
Aug 16 13:55:23  It just wont receive any more updates
Aug 16 13:55:31  porten: You can use android.utils.Log to log any pieces of info you want to LogCat
Aug 16 13:55:34  So if you experience issues, you'll have to copy the source to your project and fix it yourself
Aug 16 13:55:48  porten: Including any location info
Aug 16 13:56:10  Lamium: I know ;) , most important things i know in dev are consequences of previous mistakes :)
Aug 16 13:56:37  fd : scroll view?
Aug 16 13:56:53  fd : If you mean scroll view with listview?
Aug 16 13:56:56  taljurf: Same here, I've made some really stupid mistakes developing in PHP. I now know mysql_real_escape_string() is my friend :P
Aug 16 13:57:06  porten: they're not supposed to be cached anywhere. It's possible that if you opt into google collecting your location info, they'll cache it before sending it.
Aug 16 13:57:19  Regardless, the logs emitting your location info is due to shitty, shitty oem implementations
Aug 16 13:57:19  fd : I've implement scroll end with listview in my app
Aug 16 13:57:20  Lamium: that's how it works :)
Aug 16 13:57:49  choijuho: not really, because, I need the view Listview recycle view
Aug 16 13:58:09  Lamium: what - mysql_real_escape_string is not your friend :P
Aug 16 13:58:36  SimonVT: ok! but do you please, have other cleaver idea to achieve what i want to do ?
Aug 16 13:58:48  hrnt: it is when your trying to prevent SQL injections :P
Aug 16 13:58:58  Lamium: no, you should be using prepared statements
Aug 16 13:59:03  Not really :p
Aug 16 13:59:24  SimonVT : ok thanks anyway ;-)
Aug 16 13:59:53  SimonVT: I have an additional question, now I wanna display events from google calendar on the calendar view, there seems no direct way to do that, so im going for google calendar api, does that sound logical?
Aug 16 14:00:15  i mean parse the events and then display them
Aug 16 14:00:19  CalendarView has nothing to do with Google Calendar, so yeah, you'll have to do that yourself
Aug 16 14:00:28  choijuho: Using a scroolView could works but I will probably get something like 'Out of Memory' one day :)
Aug 16 14:00:36  about recycle view, do you wanna make to disappear and release view during view is hidden?
Aug 16 14:00:54  SimonVT: gr8, thanks for all ur help :)
Aug 16 14:01:10  fd : I didn't use scrollview for that
Aug 16 14:01:28  fd : I've used only listview for scroll end event
Aug 16 14:02:17  		mHelpList.setOnScrollListener(new AbsListView.OnScrollListener()
Aug 16 14:02:22  this is it
Aug 16 14:02:29  			public void onScrollStateChanged(AbsListView view, int scrollState) {
Aug 16 14:03:00  choijuho: can you send me a pastein verson ;-)
Aug 16 14:03:05  ok
Aug 16 14:03:05  choijuho: please
Aug 16 14:03:23  let me know how to use pastebin
Aug 16 14:03:30  I forgot how to use the site
Aug 16 14:03:34  ok
Aug 16 14:03:57  IT'S BETTER TO USE THE CHROME EXTENSION
Aug 16 14:04:43  http://pastebin.com/iGXnNqhq
Aug 16 14:05:25  https://chrome.google.com/webstore/detail/ghipmampnddcpdlppkkamoankmkmcbmh?utm_source=chrome-ntp-icon
Aug 16 14:05:36  ok thanks you're fast ;)
Aug 16 14:06:25  choijuho: again thanks dude for your help ;-)
Aug 16 14:06:38  but It's a slice of my code. I'm not sure that it helps you or not :)
Aug 16 14:07:19  I implemented  help page with using the code
Aug 16 14:08:07  choijuho: good idea :D
Aug 16 14:09:18  fd : I'm happy to help you :)
Aug 16 14:20:08  Hi! Do you prefer to write an about text of the app as a string resource or is it preferred to instead read in a txt/html file?
Aug 16 14:24:40  SimonVT: tested the calendarview , ones i run it , only the month and days show up , the program jams for 2-3 seconds and exits, http://www.fpaste.org/Vq7P/
Aug 16 14:25:19  Um what android component have lifecycle methods like activities?
Aug 16 14:25:43  fragments, services
Aug 16 14:26:03  JaJa: next interview question please
Aug 16 14:26:17  :P
Aug 16 14:26:22  lov: looool
Aug 16 14:26:31  JaJa: didn't you already ask that earlier today?
Aug 16 14:26:51  Yeah but I couldn't find any info on services
Aug 16 14:26:58  .... seriously?
Aug 16 14:27:00  JaJa: google?
Aug 16 14:27:04  Did you try searching for "services" at d.android.com ?
Aug 16 14:27:10  or rather "service"
Aug 16 14:27:38  if you couldn't find any info on services then you didn't try
Aug 16 14:28:29  seriously
Aug 16 14:28:31  Im a ass -__- I search stackoverflow and not d.android. I feel stupid :/
Aug 16 14:28:45  Thanks
Aug 16 14:28:48  -___-
Aug 16 14:28:56  i also recommend google
Aug 16 14:29:04  it's fairly nice for searching
Aug 16 14:30:18  wongk: http://lmgtfy.com
Aug 16 14:30:40  wongk: best tool ever
Aug 16 14:31:22  http://lmgtfy.com/?q=robots
Aug 16 14:31:56  lov : have you heard FMOD api?
Aug 16 14:33:35  choijuho: no
Aug 16 14:34:20  Is there a way to get the current height of a widget ?
Aug 16 14:34:24  lov : i c
Aug 16 14:35:47  durp: http://stackoverflow.com/questions/2864331/how-to-get-an-android-widgets-size-after-layout-is-calculated
Aug 16 14:36:08  Nop that doesn't work
Aug 16 14:39:22  what do you guys use for an in-memory db with unit tests?
Aug 16 14:39:32  i'm using ormlite
Aug 16 14:40:47  was thinking of using H2
Aug 16 14:40:53  durp: when do you need the size? is it immediate? or can you afford to call it from a callback? Is it inherited from a View? If so you can call getMeasuredHeight() on it. To do this though the view must have been measured first
Aug 16 14:41:01  unit tests are kinda lame
Aug 16 14:41:28  mikedg_: they make me feel all warm and fuzzy
Aug 16 14:41:36  my end goal is to have CI running
Aug 16 14:41:36  bdd == bug driven development
Aug 16 14:41:45  don't have a good one for tdd yet :p
Aug 16 14:43:16  C0deMaver1ck: hi 5
Aug 16 14:43:18  Lamium: I can't usa a View, they don't work with remoteViews
Aug 16 14:43:27  mikedg_: \o
Aug 16 14:43:42  Lamium: I need to check the current size of the resizeable widget, so I can put more items on it depending on its size
Aug 16 14:45:01  For future reference, it's called app widgets.. Just to avoid confusion
Aug 16 14:45:14  And sounds like you should be using a listview or something instead
Aug 16 14:46:06  Why would getView/newView/bindView of a SimpleCustomAdapter not get called if I see that the adapter.getCount() = 5 ?
Aug 16 14:47:18  SimonVT: was that for me?
Aug 16 14:47:22  No
Aug 16 14:47:34  To the guy who wrote right before it
Aug 16 14:47:55  ok then
Aug 16 14:47:57  SimonVT: tested the calendarview , ones i run it , only the month and days show up , the program jams for 2-3 seconds and exits, http://www.fpaste.org/Vq7P/
Aug 16 14:47:58  frankbro|work: It would not be called if it's not attached to any of the adapter views
Aug 16 14:48:07  once*
Aug 16 14:49:20  That line is a drawable, fetched from the theme
Aug 16 14:49:35  Sounds like your theme isn't properly set up
Aug 16 14:49:49  SimonVT: look so
Aug 16 14:50:01  SimonVT: ill check it
Aug 16 14:50:21  Or the device has a broken resource system, since I'm using the new attrs
Aug 16 14:52:03  ugh i flashed an experimental CM10 build to my galaxy tab 10.1 and now it wont boot
Aug 16 14:52:06  ~_~
Aug 16 14:52:28  SimonVT: i tried it on a device(2.3.5) and 2 emulators (2.2, 4.1)
Aug 16 14:52:39  Then it's your theme
Aug 16 14:53:10  SimonVT: about the styles.xml file
Aug 16 14:53:18  SimonVT: is it important
Aug 16 14:53:18  ?
Aug 16 14:53:43  Just reference the styles in the library
Aug 16 14:54:01  Which library?
Aug 16 14:54:06  calendar?
Aug 16 14:54:16  Yes
Aug 16 14:54:28  off to work, have fun guys
Aug 16 14:54:28  oh that explains it
Aug 16 14:54:39  im using abs custom themes
Aug 16 14:55:00  Eh, that doesn't matter
Aug 16 14:55:15  In the calendar style attribute, reference the style I already defined in the library
Aug 16 14:55:26  I don't care what you put in your own styles.xml
Aug 16 14:55:48  CalendarView only cares about that one attribute
Aug 16 14:56:53  Has anyone started the OpenCV samples on jelly bean yet? It's not working here and it looks like that it doesn't work at all right now …
Aug 16 14:57:25  SimonVT: I can confirm that an adapter is attached to the list. Doing a getAdapter returns it.
Aug 16 14:57:46  SimonVT: "calendar style attribute" you mean in the layout where im deploying it right?
Aug 16 14:58:31  No, I mean ...
Aug 16 14:58:47  SimonVT: yea that's what i meant
Aug 16 14:59:00  Make sure it references one of the styles defined in the library (as the sample themes show), or an extension of one of these
Aug 16 14:59:08  SimonVT: i found it's style set to calendarViewStyle
Aug 16 14:59:21  ok ill do now
Aug 16 15:00:56  canadiancow: working 4.1 Kindle Fire for bricked Galaxy Tab ;)
Aug 16 15:01:01  trade?
Aug 16 15:01:28  wat
Aug 16 15:01:36  its not bricked
Aug 16 15:02:36 * C0deMaver1ck goes back to scouring ebay
Aug 16 15:02:38  canadiancow: did you wipe your user data? (common cause of CM ROM reboots)
Aug 16 15:02:58  seriously though, I'm looking for either a xoom or a gtab if anybody has one for sale
Aug 16 15:03:27  C0deMaver1ck: ebau
Aug 16 15:03:29  *ebay
Aug 16 15:03:29  btw: is there a way to influence the way a spannable text gets rendered/
Aug 16 15:03:30  ?
Aug 16 15:03:41   would like to disable for example indentation for paragraphs :D
Aug 16 15:03:42  lov: I am ebayin
Aug 16 15:06:01  i'm using a Light theme for my app, but I want to use some dark components - specifically a progressbar - what's the best way of doing this?
Aug 16 15:07:13   or maybe is there a way to get just the plain text from a Spannable?
Aug 16 15:07:15  set the theme when you instantiate it
Aug 16 15:07:44  SimonVT: you are such a legend!! :)
Aug 16 15:08:03  C0deMaver1ck: was that for me? :D
Aug 16 15:08:07  i'm instantiating it from xml
Aug 16 15:08:40  SimonVT: Everything working fine now , thanks for your help and patience :)
Aug 16 15:08:45  and sorry, it's spanned i get from Html.fromHtml()
Aug 16 15:09:12  :)
Aug 16 15:09:18  SimonVT: OMG :D !! It's you who created the 'android date picker' widget ?
Aug 16 15:09:36  internet fame \o/
Aug 16 15:09:53  SimonVT: You definitely rocks dude ;-)
Aug 16 15:09:58  man, just spent the last 6 hours getting weather tiles working on map view
Aug 16 15:10:02  holy shit its hard
Aug 16 15:10:24  http://img.ly/m5Xn but got there in the end :D
Aug 16 15:12:38  fd: i made the date raper widget
Aug 16 15:13:40  mikedg_: That's just a pez dispenser with roffies
Aug 16 15:13:53  now with even more Rohypnol!
Aug 16 15:14:10  hahhahahhaha :D :D
Aug 16 15:15:43  CallumTaylor: That's pretty fricking awesome
Aug 16 15:16:39  ya took me AGES, we're using the weather channel's private api, you have to like, convert the x and y to binary and interleave them, then create a quad key from that which gives you the url for the tile
Aug 16 15:17:12  then i had to subclass overlay to load the image and draw it on the map based on the specific tile coordinate relative to the map's coords
Aug 16 15:17:16  god it was a nightmare
Aug 16 15:17:52  galaxy nexus $300 up here now :)
Aug 16 15:17:57  not that i plan on buying another one
Aug 16 15:18:54  maybe ill pick one up for my mom for christmas
Aug 16 15:18:58  i gave her a g2 last year
Aug 16 15:19:00  Hey guys, I'm getting a problem trying to Import the ActionBarSherlock into my Android Project, I've upgraded to JRE1.6 moved up my API to 14 but I'm still getting a JAR mismatch error, If I remove one of them it just totally shafts the other :/ suggestions? I've googled it with people saying "Hey just take one of them out!" but it just ends up breaking my android.R namespace when I do
Aug 16 15:19:00  that
Aug 16 15:19:21  JAR in question is android-support-v4
Aug 16 15:19:38  ABS includes an old version of the support lib
Aug 16 15:19:47  Replace it with whatever version you're using elsewhere
Aug 16 15:19:52  Or upgrade them all to the newest
Aug 16 15:20:58  SimonVT: Copy pasting the one from my project to the ABS library seemed to work.....that's just plain stupid
Aug 16 15:22:21  You just can't have two jars with the same name but different content
Aug 16 15:22:26  They have to be exact matches
Aug 16 15:22:51  http://tools.android.com/recent/dealingwithdependenciesinandroidprojects
Aug 16 15:23:08  Before you would get a dex error, no matter if they were the same
Aug 16 15:23:26  SimonVT: now that sounds horrible
Aug 16 15:23:35  its not
Aug 16 15:23:39  it just keeps the noobs out
Aug 16 15:28:52  why can't I implicitly specify Widget.Holo.Dark?
Aug 16 15:29:19  Cus there is no Widget.Holo.Dark, it's just Widget.Holo
Aug 16 15:29:51  but if I'm using the Holo.Light profile it automatically becomes the dark thing
Aug 16 15:30:09  No, Holo.Light is light..
Aug 16 15:30:13  i mean uhh
Aug 16 15:30:15  Holo is dark
Aug 16 15:30:36  I'm using the Light theme, if I specify just Widget.Holo, it resolves in using Widget.Holo.Light
Aug 16 15:31:38  Each style might reference theme attributes
Aug 16 15:31:58  ... fuck
Aug 16 15:32:17  So even tho you use the dark variant, it cna e.g. reference the text color defined in your theme
Aug 16 15:32:50  well it's a radio button I'm trying to use, which is just a set of graphical resources
Aug 16 15:35:26  Drawables should work fine
Aug 16 15:35:37  not what I'm experiencing here :/
Aug 16 15:35:48  Then you're probably doing it wrong :p
Aug 16 15:36:17  referencing Widget.Holo.Light.CompoundButton.RadioButton is exactly the same as referencing Widget.Holo.CompoundButton.RadioButton
Aug 16 15:37:00  i have two apps, one that is implementing a content provider and one that is consuming from that content provider. the appropriate uses-permissions is specified in the manifest.xml file and the two apk files are signed with the same key. the two applications can communicate with each other without any issues on some devices but on other devices I am notified that access to the content provider is denied because I didn't request the appropriate 
Aug 16 15:37:06  Both are empty styles
Aug 16 15:37:27  how do I add an onclick listener to a button to a dialog? I keep getting a null pointer because the button isn't created until I open the dialog and if I put the code inside the block that creates it I get a null pointer
Aug 16 15:37:30  ?android:attr/listChoiceIndicatorSingle
Aug 16 15:37:36  ah
Aug 16 15:37:38  Their parent references this
Aug 16 15:37:43  so I just need to set that attribute
Aug 16 15:37:56  but I can't because it's private isn't it?
Aug 16 15:38:19  Dunno, check docs for R.attr
Aug 16 15:39:33  fuck it, I'll just copy the resources
Aug 16 15:41:12  pfft, quitter
Aug 16 15:43:46  platform is broken, ttly not my fault
Aug 16 15:44:48  can someone point me in the right direction: i want to startActionMode from a listfragment but its a method of the activity class... how should one do this?
Aug 16 15:45:16  getActivity().startActionMode
Aug 16 15:45:27  SimonVT, thx
Aug 16 15:47:03  does every device have a search key?
Aug 16 15:47:52  no
Aug 16 15:48:06  oh
Aug 16 15:48:17  btn_radio_holo.xml is a private resource
Aug 16 15:48:31  silly
Aug 16 15:49:17  stupid android
Aug 16 15:50:36  JakeWharton: i put your FragmentBreadCrumbs compat class into a horizontal scroll view that automatically scrolls to the right as you accumulate more breadcrumbs is this cool y/n
Aug 16 15:50:46  SimonVT: getActivity() is deprecated no?
Aug 16 15:50:52  stork: nice
Aug 16 15:50:53  y
Aug 16 15:50:54  no
Aug 16 15:51:04  yeah that's awesome
Aug 16 15:51:23  they also recommend you use it inside the action bar but i'm not a huge fan of that
Aug 16 15:51:26  must be getIntent() I'm thinking of
Aug 16 15:51:49  Not that one either
Aug 16 15:51:54  2 strikes
Aug 16 15:51:57  i hadn't tried that, I'm just using it as a seperate component under the action bar - my app isn't limited by screen space
Aug 16 15:54:14  SimonVT: I coulda swore there was a method I used in my latest project that was deprecated...
Aug 16 15:54:48  There probably is, but neither of those :p
Aug 16 15:55:06  -.-
Aug 16 16:03:40  how do I add a onclicklistener to a button on a layout that's for a dialog? I keep getting null pointers
Aug 16 16:09:59  Anyone tried ADT with eclipse 3.8?
Aug 16 16:10:19  I'm thinking about switching to ubuntu 12.10 dev, but it comes with eclipse 3.8
Aug 16 16:12:15  hmm if i have a tabhost activity with a button in, and i press that, how do i call methods in the activities on the tabs?
Aug 16 16:12:50  ironhalik: is there anything stopping you installing a different version of eclipse?
Aug 16 16:13:58  tricky one
Aug 16 16:14:28  i could make a public static activity to call the methods on but im sure thats prob memory leak time
Aug 16 16:14:49  and prob not the way heh
Aug 16 16:15:23  You've already chosen a bad approach, might as well continue
Aug 16 16:15:30  in what way
Aug 16 16:15:47  Putting activities in tabs
Aug 16 16:15:52  maybe using call back function
Aug 16 16:16:02  i thought that was the correct way
Aug 16 16:16:26  Putting fragments in tabs is the correct way
Aug 16 16:16:31  ah yeh
Aug 16 16:16:34  Activities is the deprecated way
Aug 16 16:16:36  not moved onto fragments yet
Aug 16 16:16:40  aha
Aug 16 16:16:48  next app i will def use fragments :)
Aug 16 16:16:59  presuming they dont break on older phones
Aug 16 16:17:22  i went to the google dev lab on fragments but spent 2 hrs trying to get eclipse to work
Aug 16 16:20:17  Fragments work back to API4
Aug 16 16:20:41  yeh im ready to use em
Aug 16 16:20:47  was just new to android til about now
Aug 16 16:28:35  so, at uni we were told today that instead of using many activities and passing our objects around with Intents/Singleton classes, we should use a viewAnimator so we don't have to toss our objects around. This seems like an odd concept to me, any opinions?!
Aug 16 16:29:22  i might add, it seemed like they said it because it would save time in development, as time for this course is a little limited. however the concept just seemed wrong to me
Aug 16 16:32:04  They haven't heard of fragments?
Aug 16 16:33:33  haven't told us about them, so i guess no.
Aug 16 16:33:54  developing from their point, i would put everything in my MainActivity
Aug 16 16:34:11  and use buttons or similar to switch to the next view in the viewAnimator
Aug 16 16:34:23  Yeeah.. They haven't heard of fragments.
Aug 16 16:34:57  oh, hang on, fragments require >=api11
Aug 16 16:35:07  we're using min-sdk 8
Aug 16 16:35:08  Not with the support library
Aug 16 16:35:10  or using a compat library
Aug 16 16:35:11  There a support package
Aug 16 16:35:17  alright
Aug 16 16:35:25  Fragments down to api4
Aug 16 16:35:36  When you mention passing objects around, what sort of objects?
Aug 16 16:35:49  well, in the case of a game, players or similar
Aug 16 16:36:56  how can I declare a setOnClickListener for a button on a different layout than the one my main activity is running?
Aug 16 16:37:17  Call findViewById on yourOtherLayout, and get a reference to the button
Aug 16 16:37:42  sonOfRa: passing a reference to an object, or serialising it?
Aug 16 16:37:51  sonOfRa: "just use a viewanimator instead of multiple activities" is definitely bad advice
Aug 16 16:38:33  i would have gone with serialising the object, considering there is also client/server communication that will most likely be using gson
Aug 16 16:38:39  I keep getting a java null pointer
Aug 16 16:38:55  that means some object you are referencing is null/not initialised
Aug 16 16:40:11  but shouldn't it be initialized after I make the button in the layout GUI maker in eclipse?
Aug 16 16:40:48  how are we supposed to tell with any source code?
Aug 16 16:41:43  You have to inflate the layout before you can get a reference to the button
Aug 16 16:42:09  what do you need? I have 2 xml layouts and 1 activity, 1 of the xml is a layout for a dialog which is where I'm trying to set the onclicklistener of the button
Aug 16 16:42:15  all 3?
Aug 16 16:42:32  you're trying to set an onclicklistener for a button that is predefined in your xml?
Aug 16 16:42:41  why not just use the android:onclick attribute in xml?
Aug 16 16:43:30  what should i pass from activity if i want to run code on ui thread in a child object? i could pass the whole activity and then call activity.runOnUiThread, but that seems a bit overkill
Aug 16 16:44:24  let me try to look up your solution sonOfRa, that might actually be better for me, thanks
Aug 16 16:51:38  well that worked
Aug 16 16:52:00  but when I tried to use the method to pick a contact and add their number, it said no number found
Aug 16 16:52:27  I had a similar problem when I didn't add the "uses permission" in the android manifest but I do have it for my java class
Aug 16 16:52:38  maybe lacking permission to access contacts?
Aug 16 16:52:41  oh
Aug 16 16:52:44  do I also have to add the permission for my xml too?
Aug 16 16:52:49  yea that's what I first though
Aug 16 16:52:56  *thought
Aug 16 16:52:56  i think the manifest needs to define it
Aug 16 16:53:15  for the xml?
Aug 16 16:53:16  i have never needed permissions though, so i might be wrong here
Aug 16 16:53:24  oh, I see
Aug 16 16:55:16  how do i run something on uithread without having a reference to an activity?
Aug 16 16:56:24  why are you doing that
Aug 16 16:56:35  yuizy: unless that function is actually called from UI thread you can't - you need an activity context to get the activity's UI thread
Aug 16 16:56:56  ie asynctask doesn't have any relevant references, but it still runs onpostexecute on ui thread
Aug 16 16:57:01  oh, i see
Aug 16 16:57:09  it's probably not ui thread, it's just the current thread
Aug 16 16:57:13  nvm then
Aug 16 16:57:23  current thread is the UI thread unless you start a new one ;)
Aug 16 16:57:28  yup
Aug 16 16:57:40  asynctask runs on current thread yeah
Aug 16 16:58:48  so now, my question is how do I add permissions to my xml layouts? if that makes sense
Aug 16 16:59:11  ill brb, so I might be afk for a while
Aug 16 17:06:44  yuizy: Looper.getMainLooper()
Aug 16 17:06:57  extrapolate
Aug 16 17:09:11  except that's illegal in twelve continents
Aug 16 17:09:14  how can I disable/delay the screen lock? KeyguardManager is depreciated/doesn't work consistently, FLAG_DISMISS_KEYGUARD is not an option because this will run in the background and I don't want to use a WakeLock for battery reasons.
Aug 16 17:09:42  seems like a lot o continents
Aug 16 17:09:42  Bink: what are you trying to do
Aug 16 17:10:27  I want to disable the pattern lock when I connect to my SSID at home.
Aug 16 17:11:30  i hope that's not possible
Aug 16 17:11:39  Use Tasker
Aug 16 17:11:44  Pretty sure tasker can do that :/
Aug 16 17:12:20  Though I don't know how, unless it's using root
Aug 16 17:13:05  Estel: I understand Tasker has some issues doing this due to the changes in ICS and JB.
Aug 16 17:13:41  but I have zero issues writing my own program to handle this (and I think I prefer this)
Aug 16 17:20:39  hi
Aug 16 17:21:00  having an issue with keyboard
Aug 16 17:21:47  if i'm on a screen where keyboard is showing and my display turns off, and then i turn the display on, the keyboard is no longer there
Aug 16 17:22:22  ok.
Aug 16 17:28:38  never mind, it appears to be an Android thing
Aug 16 17:28:45  happens in every app, not just mine
Aug 16 17:30:04  would anyone care to recommend a resource that covers some basic concepts well? how to display text, how to create buttons, things like that.
Aug 16 17:30:21  @Override protected onResume() { super.onResume(); showSoftKeyboard(); }
Aug 16 17:30:22  :)
Aug 16 17:31:03  karakuri, ^
Aug 16 17:31:20  gbw_: d.android.com
Aug 16 17:32:32  ah, a guide. thanks.
Aug 16 17:32:32  yeah, that's basically what i'm doing
Aug 16 17:34:26  probably better to store the focused element id in onSaveInstanceState(), do requestFocusFromTouch() in onRestoreInstanceState()
Aug 16 17:34:28  http://www.wired.com/threatlevel/2012/03/fbi-android-phone-lock/
Aug 16 17:34:52  that, of course, was linked from an article explaining how cimply it can be defeated :P
Aug 16 17:34:53  wongk, wow thats old
Aug 16 17:35:02  yeah, that's how i roll
Aug 16 17:36:05  whoa
Aug 16 17:36:16  the google maps launcher icon changed
Aug 16 17:36:51  !
Aug 16 17:37:39  Hi, so I recently begun learning to develop for android and have tried some basic 2D graphics. I was wondering what the best course of action is for developing a simple game.
Aug 16 17:37:48  faillauncher2, doesn't update the icon in a folder
Aug 16 17:40:24  Spyderco: see if any of these suit your fancy: http://www.javacodegeeks.com/2011/06/android-game-development-tutorials.html
Aug 16 17:43:22  Thank you wongk
Aug 16 17:43:36  I will look into them.
Aug 16 17:45:47  is there a quick way to detect if the application has been started as part of a unit test?
Aug 16 17:47:13  Got to the part that mentions viewgroups. Said 'ew, XML.'  Does XML actually make things easier for you guys, or do you like doing this in real code?
Aug 16 17:47:34  xml makes it a lot easier
Aug 16 17:47:43  Because of androids resource handling
Aug 16 17:47:46  to do what?
Aug 16 17:48:55  It was hinted that doing it with XML would work better on a variety of devices, so I guess that's true
Aug 16 17:49:05  Say you want to provide 2 different layouts. One for phone, one for tablet
Aug 16 17:49:13  Instead of if(phone) else
Aug 16 17:49:25  You put one layout in layout/, and one in layout-sw600dp for example
Aug 16 17:49:27  With the same name
Aug 16 17:49:32  It'll select the right one
Aug 16 17:49:53  do you do raw XML, or do you use something that handles it for you?
Aug 16 17:49:57  You might even want to supply a slightly different layout for 10" tablets, that's just an extra xml in layout-sw800dp
Aug 16 17:50:09  i don't look forward to wearing out my <>bracket keys
Aug 16 17:50:15  And then maybe another layout for landscape, for each configuration
Aug 16 17:50:23  layout-land, etc ...
Aug 16 17:50:31  in theory the SDK comes with a graphic designer for layouts
Aug 16 17:50:47  in practice though at least in my experience the tool is pretty useless
Aug 16 17:51:08  "an extra xml in layout-sw800dp" - i don't understand
Aug 16 17:51:12  it either keeps crashing or produces insane layouts
Aug 16 17:51:25  Those are resource qualifiers
Aug 16 17:51:26  http://developer.android.com/guide/topics/resources/providing-resources.html
Aug 16 17:51:34  gbw: have you done mobile development for any other platform?
Aug 16 17:51:36  Android will select the best match
Aug 16 17:51:40  hrnt: no
Aug 16 17:52:14  Instead of 600 lines of if's, you have them neatly divided into folders
Aug 16 17:52:23  i dislike web design/html in general, so i'm trying to get through this unscathed
Aug 16 17:52:40  gbw: have you done GUI development?
Aug 16 17:52:47  Doing it in xml also lets you easily re-use layouts
Aug 16 17:52:57  not quite, hrnt
Aug 16 17:53:08  Hello. I'm querying filesystem for MediaStore.Audio.IS_MUSIC (audo files that is). Now the thing returns everything - from ringtones to....well, everything. Is there a built-in way of limiting this or should I programatically exclude things?
Aug 16 17:53:18  ok
Aug 16 17:53:39  having the GUI definitions as data is very common nowadays, android is not the only platform that does something like this
Aug 16 17:54:20  i can see that having some kind of layout definition is useful, even BEFORE considering different screen sizes
Aug 16 17:54:55  (i want an editor that autotabs and autobrackets, though, dang)
Aug 16 17:55:20  the eclipse XML editor does some of that
Aug 16 17:55:23  heh, when you start doing android layouts you want an editor with auto-android:layout_ ;)
Aug 16 17:55:41  that went over my head, hrnt
Aug 16 17:55:47  i know
Aug 16 17:55:50  but you'll know what i mean
Aug 16 17:55:55  when you start developing
Aug 16 17:56:01  wongk: sounds cool, but i'm not using eclipse
Aug 16 17:56:13  gbw: uhm, what are you using?
Aug 16 17:56:19  haxe actually
Aug 16 17:56:25  with flashdevelop
Aug 16 17:56:51  someone else asked about those the other day, i've never heard of them
Aug 16 17:57:46  haxe+nme compiles to .swf and .apk (and several others) fairly painlessly
Aug 16 17:58:09  is it one of those app generators
Aug 16 17:59:16  hmm, not sure. in this case, it converts to .cpp and then compiles to .apk
Aug 16 17:59:34  meh, these kinds of things typically lead to bad applications on all platforms
Aug 16 17:59:43  uhm, are you sure it supports android layouts at all then?
Aug 16 17:59:54  if you are using a crossplatform tool then you probably won't be doing layouts at all
Aug 16 17:59:59  I used haxe once
Aug 16 18:00:02  not for Android though
Aug 16 18:00:04  i've had a heck of a time figuring out how all the pieces fit together
Aug 16 18:00:05  dat shit cray
Aug 16 18:00:38  i'll look into that, hrnt
Aug 16 18:01:44  JakeWharton: did it actually do anything useful?
Aug 16 18:02:26  I used it for web about 3 years ago
Aug 16 18:02:41  don't really remember anything about it
Aug 16 18:03:25  that sounds like an endorsement if i've ever heard one
Aug 16 18:31:55  with ormlite is it possible to update foreign references by id?
Aug 16 18:32:10  i basically want to have  a foreign User and also be able to update the user_id column
Aug 16 18:47:56  hmm, can the _ID field used by content providers be text?
Aug 16 19:11:24  ok im having issues playing videos in videoview with a libgdx project
Aug 16 19:12:15  my android project plays a video and upon completion starts libgdx project
Aug 16 19:19:39  ive got this edittext but it seems when i first touch it the keyboard doesnt pop up, i have to sort of focus on somethign else first, like clicka button then try, any ideas?
Aug 16 19:20:44  any of you have CI running with android?
Aug 16 19:26:54  depends on what you  mean by "running with android"
Aug 16 19:27:43  http://stackoverflow.com/questions/11975575/determine-when-random-notification-is-dismissed-or-when-a-pendingintent-is-fire
Aug 16 19:35:04  JakeWharton: i'd like to have the unit test suite run on every merge
Aug 16 19:35:16  JakeWharton: also, thanks for the libraries! really really saved us a lot of time
Aug 16 19:35:29  but basically i think i can setup a VM running with an emulator and run the tests that way
Aug 16 19:36:31  instrumentation tests?
Aug 16 19:36:42  unit and integration tests
Aug 16 19:36:58  the Android Jenkins plugin has tasks for starting and stopping and emulator
Aug 16 19:37:33  guys, im using tabs with abs, whenever the phone is in landscape position those tabs become a spinner, is that normal?
Aug 16 19:37:56  i have 7 tabs and yes they do exceede the screen margin
Aug 16 19:38:06  JakeWharton: ooh! this is awesome, thanks!
Aug 16 19:38:15 * ctate . o O ( "running with android" sounds like "running with scissors" )
Aug 16 19:38:45  haha
Aug 16 19:38:59  taljurf: http://developer.android.com/guide/topics/ui/actionbar.html#Tabs
Aug 16 19:39:10  taljurf: scroll all the way to the bottom of that section and read the last "Note"
Aug 16 19:39:40  Jug6ernaut: wtf re snooping on other apps' notifications / pendingintents
Aug 16 19:39:45  i'm pretty sure the answer is "you can't."
Aug 16 19:39:49  JakeWharton: ill check that
Aug 16 19:40:40  JakeWharton: thx i get it now :)
Aug 16 19:41:02  ctate, notification app, all i really wanna know is when they are dismissed :\, and yea im pretty sure its impossible also
Aug 16 19:41:19  JakeWharton: is there a way to force it to show them as tabs and fade out the exceeding limits?
Aug 16 19:41:29  no
Aug 16 19:41:34  you cannot control the behavior
Aug 16 19:41:51  there is already a notification app.  it is called the status bar. ;)
Aug 16 19:41:59  JakeWharton: clear, thx :)
Aug 16 19:42:08  why are they called spinners, i wonder..
Aug 16 19:42:34  ctate lol, my app uses the camera LED as a notification led, so flashes it with notifications, pretty sure the status bar cant do that :P
Aug 16 19:42:55  Jug6ernaut: sounds tedious
Aug 16 19:43:10  sounds high-power :)
Aug 16 19:44:01  ctate thats at the users discretion lol
Aug 16 19:44:23  funktronic:  naa
Aug 16 19:48:36  gbw: when i first started designing layouts, i was looking for a spinner, but i thought it would be called something like drop-down... , and i couldnt find it although i went over the name a couple of times
Aug 16 19:49:46  Haha
Aug 16 19:50:09  gbw: spinner should be the one for loading :)
Aug 16 20:24:57  Hello. I'm working with Bluetooth and these pointers:http://developer.android.com/guide/topics/connectivity/bluetooth.html -> I can't call function startActivityForResult though - it is completly unavaliable. Why is that so?
Aug 16 20:25:50  biggi_mat: that method exists on Context
Aug 16 20:25:50  Yeah, because my class wasn't extending Activity for example.
Aug 16 20:25:55  and classes that extend context like Activity
Aug 16 20:26:10  Huptidup, yeah. Thank you lov
Aug 16 20:50:28  what happens if multiple Views on a screen override onInterceptTouchEvent?
Aug 16 20:50:31  which gets preferred first?
Aug 16 20:50:36  parent or child?
Aug 16 20:50:45  i assume child...
Aug 16 20:52:00  parent
Aug 16 20:52:35  Other way around for onTouchEvent
Aug 16 20:54:18  yup
Aug 16 20:54:19  derp
Aug 16 21:07:27  How do I find out which C++ compiler has been shipped with each Android version?
Aug 16 21:09:10  (compiler version)
Aug 16 21:09:46  I know its GCC but I'm interested in knowing that language features I can leverage on each Android version
Aug 16 21:09:53  *that = what
Aug 16 21:11:34  BadDesign, all that's explained in the docs of the ndk
Aug 16 21:18:59  is there anyone who used their android app to fetch posts from a public page without having to log in facebook?
Aug 16 21:19:36  http://www.androidpolice.com/2012/08/16/google-flips-the-switch-on-smart-app-updates-in-the-play-store-video/
Aug 16 21:20:03  so, weird thing's happening to me right now, i have myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in the *second* activity of three (so 1 -> 2 -> 3), when i use the back button firing myIntent from the 2nd activity it works only if i have been to the third
Aug 16 21:20:15  so, two parter, why is this happening, and how do i fix it?
Aug 16 21:20:21  Fire-_-Fly: sure, you just have to do an HTTP GET request and Facebook's Graph API will return some JSON
Aug 16 21:21:12  if i DONT have this line when i go back to activity 1, pressing the back button here yields activity 2!
Aug 16 21:21:21  BadDesign, I tried that, with an access token provided by graph api. but that token survives for 2 hours I think
Aug 16 21:21:21  am i taking crazy pills?
Aug 16 21:21:25  i feel like i'm taking crazy pills
Aug 16 21:21:32  canadiancow, what say you man!
Aug 16 21:21:38  so, how do I get it dynamically?
Aug 16 21:21:48  huh
Aug 16 21:22:05  the lifecycle of an activity scares and saddens me :(
Aug 16 21:22:15  BadDesign, I tried the following: http://stackoverflow.com/questions/6589748/is-there-any-way-i-can-get-public-feed-of-some-user-or-application-without-loggi
Aug 16 21:22:39  the second method only works on browser!
Aug 16 21:23:28  and the first one does get an access token but then when requested with that access token, facebook says it's not a valid access token
Aug 16 21:23:37  this is really frustrating
Aug 16 21:23:44  Fire-_-Fly: if the Facebook objects are public you don't need an OAuth acess token if I remember correctly; If you need access to private data you need to make an app on Facebook Developers page and then do the steps required for OAuth authentication&authorization
Aug 16 21:24:58  (there's a Facebook Android API for that)
Aug 16 21:25:17  BadDesign, the page is public. But, what I found is from sometime after july 2011 they require access tokens for everything
Aug 16 21:25:49  Fire-_-Fly: err, your own app is perfectly capable of opening a socket and doing the HTTP request directly to read a page from the web
Aug 16 21:25:59  a page such as, say, someone's public facebook page.
Aug 16 21:26:05  no browser app required.
Aug 16 21:26:12  Trying to make a custom alertdialog. I can't change the TextView though. What do I have to do to ensure it don't crash when I setText()?
Aug 16 21:26:28  Fire-_-Fly: public info is accessible without access token see: https://graph.facebook.com/19292868552
Aug 16 21:26:32  I am supposed to get JSON response
Aug 16 21:26:36  you just need to find the ID of the Facebook object
Aug 16 21:27:06  canadiancow, i have associated error: http://pastie.org/private/kky0mgk9qvl8y2qrw8gzq
Aug 16 21:27:07  (i.e. timeline, event, photo, user, etc..., see https://developers.facebook.com/docs/reference/api/)
Aug 16 21:27:34  why did my app die?
Aug 16 21:27:43  it doesnt die if i go to activity 3 and then go back to activity 1 :(
Aug 16 21:28:07  Screw this, they get the cheap alert dialog I am sick of this garbage
Aug 16 21:28:28  http://www.facebook.com/feeds/page.php?format=JSON&id=29534858696
Aug 16 21:28:57  If I open the above link in browser, I get a nice JSON that I can parse
Aug 16 21:29:17  In that case I can eliminate the whole layout. I am sick of fighting it. It will remain a mystery
Aug 16 21:29:19  mmmm, JSON
Aug 16 21:29:27  kaneda^ wat u talkin about
Aug 16 21:29:29  o hai ctate :)
Aug 16 21:29:30  but, when I try it with a client other than a browser it sends different stuff
Aug 16 21:29:37  canadiancow, i dunno
Aug 16 21:29:42  I need to get onto Server Communication
Aug 16 21:29:59  kaneda^, is being Homer simpson
Aug 16 21:30:25  that link brings posts from thesimpsons page
Aug 16 21:31:08  Fire-_-Fly: Maybe the HTTP request you are sending doesn't have by default all the necessary HTTP headers that a browser adds... in any case I recommend using the https://github.com/facebook/facebook-android-sdk/
Aug 16 21:31:09  canadiancow, why does my app die when i use myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); ?
Aug 16 21:31:33  why are you aksing me :(
Aug 16 21:31:37  im tired and hungry
Aug 16 21:31:40  you're the expert ;_;
Aug 16 21:31:43  :)
Aug 16 21:31:46  ohai canadiancow
Aug 16 21:31:52  moo, eh?  etc.
Aug 16 21:32:00  BadDesign, I have that included in my project, and that asks permissions. But that also allows me to post to my wall
Aug 16 21:32:32  ctate when i finally meet you, im just going to say "moo, eh?"
Aug 16 21:32:35  has anyone ever had a problem with twitter4j constructing the oauthrequesttoken url incorrectly?  Mine is currently omitting the ?callback_url= part of the url and just slapping in my callback_url without the parameter
Aug 16 21:32:45  canadiancow:  and thus i will recognize you!
Aug 16 21:32:48  and you still owe me a nexus s!
Aug 16 21:33:10  pffff so two years ago
Aug 16 21:33:25  zambo: what Twitter4j library version are you using ?
Aug 16 21:33:36  zambo: the android one or the general one?
Aug 16 21:33:38  this is what I get in android or while it called through the json viewer page: http://jsonviewer.stack.hu/#http://www.facebook.com/feeds/page.php?format=JSON&id=29534858696
Aug 16 21:34:17  Has anyone every changed the text in a TextView in an AlertDialog?
Aug 16 21:34:28  the android version
Aug 16 21:34:52  BadDesign: twitter4j-core-android-2.2.3
Aug 16 21:35:07  Fire-_-Fly: are you making an HTTP or HTTPS request?
Aug 16 21:36:14  http request
Aug 16 21:38:24  about the play store smart updates, i still have to wonder, when all things are considered, what amount of bandwidth is going to updating apps vs everything else
Aug 16 21:38:32  and if its even wirth it
Aug 16 21:38:38  *worth
Aug 16 21:39:26  im sure if google can cut down 70% of their traffic, it's worth it to them
Aug 16 21:39:29  and it speeds it up
Aug 16 21:39:35  have you ever turned on an old device, and found it has liek 10 updates
Aug 16 21:39:39  and it takes forever to download them all
Aug 16 21:40:25  Fire-_-Fly: make sure the Accept: HTTP request header has the right value when you make the request... this is what Google Chrome shows from its Developer Console -> Network http://i.imgur.com/RZNF2.png
Aug 16 21:41:48  ok, let me try
Aug 16 21:44:04  Hi, Reading on line no build target exists for the pantech crossover my question is how can I recompile android for this phone?
Aug 16 21:44:55  Fire-_-Fly: for a JSON file request you have to put application/json after a ; if you want to add others too
Aug 16 21:50:58  any one her who is using opencv on 4.1 devices? Can't get the samples to  work in jally beans.... too bad
Aug 16 21:52:04  /S/JALLY/JELLY
Aug 16 21:54:09  mmm, jelly
Aug 16 22:02:57  Hm, startActivityforResult (sdk16) fails with nullpointerexception and I just can't figure out why. Were there any special changes or something?
Aug 16 22:04:53  How do you use overridePendingTransition in onBackPressed correctly? Now what it does is it immediately changes the current activity to the next and animates that.
Aug 16 22:05:18  I want the current activity slide out and the next one slide in. But it is the next activity both sliding out and sliding in again.
Aug 16 22:07:03  biggi_mat: what's printed in the log when you call it?
Aug 16 22:07:16  also, what are you passing as arguments?
Aug 16 22:07:46  ctate, well, nullpointerexception. First argument is intent, which is BluetoothAdapter.ACTION_REQUEST_ENABLE and second argument is just my constant of course.
Aug 16 22:08:21  no, i mean pastebin what's in the log.  the stack crawl and probably a few lines beforehand might be relevant.
Aug 16 22:08:32  Note the imgur link in the channel topic :)
Aug 16 22:11:42  ctate, haha, stacktrace it is! ctate, http://pastie.org/4523864
Aug 16 22:12:01  "and probably a few lines beforehand"
Aug 16 22:12:11  Gah.
Aug 16 22:12:33  If I was only able to read+think
Aug 16 22:13:39  also please your code where you set up the intent and other arguments, and call startActivityForResult
Aug 16 22:13:49  also, y'know, you could set a breakpoint and step through and so on :)
Aug 16 22:14:27  ctate, I did try that somewhat. Though, in whole honesty, I wasn't all that theral
Aug 16 22:15:00  Anyhoo, http://pastie.org/4523881  aaaaaand http://pastie.org/4523886
Aug 16 22:17:16  that's ... wow.
Aug 16 22:17:28  this is on a real device, or on the emulator?
Aug 16 22:17:36  ctate, real device
Aug 16 22:17:43  w, as they say, tf
Aug 16 22:18:23  exactly what version of the OS is running on this device?
Aug 16 22:18:53  ctate, 4.0.3
Aug 16 22:19:17  Which kind of conflicts with my statement of sdk16 but hey...sdk15 is min requirement!
Aug 16 22:20:06  Thing is, I only want to pop that confirmation thing up. I can enable/disable BT as I wish - tested that already. Just this confirmation thing bugs me
Aug 16 22:20:54  oh, hmmmmmm
Aug 16 22:21:14  i wonder ... what context are you running in / invoking startActivityForResult() on?
Aug 16 22:21:42  ListLocal is your activity class?
Aug 16 22:21:48  I unfortunately don't know how to answer that.
Aug 16 22:22:09  ...
Aug 16 22:22:13  Listlocal is my listactivity, yeah. I call that btconnect thing from it
Aug 16 22:22:35  and this is happening while yoru ListLocal activity is being created, i.e. during the course of its onCreate() method...?
Aug 16 22:22:58  ctate, yes
Aug 16 22:23:34  did you remember to call super.onCreate(...) ?
Aug 16 22:24:31  ctate, in this listlocal activity? Yeah, I did
Aug 16 22:24:39  first?  hm.
Aug 16 22:24:45  okay, i got nothin.
Aug 16 22:24:48  :)
Aug 16 22:24:58  Thank you for trying :)
Aug 16 22:25:14  it's probably crashing on the line of code that looks liek this:
Aug 16 22:25:15 * ctate |              Instrumentation.ActivityResult ar =
Aug 16 22:25:16                  mInstrumentation.execStartActivity(
Aug 16 22:25:17                      this, mMainThread.getApplicationThread(), mToken, this,
Aug 16 22:25:17                      intent, requestCode);
Aug 16 22:25:18  aguh sorry
Aug 16 22:25:30  which suggests that either mInstrumentation or mMainThread are null
Aug 16 22:25:58  but *that* should not be the case if the first thing your onCreate() method did was to call super.onCreate() before doing anything else
Aug 16 22:26:08  :<
Aug 16 22:27:16  sorry, that's as far as i can get offhand :(
Aug 16 22:28:14  Sure, nothing to be sorry about. Thank you for trying :)
Aug 16 22:29:43  (what model of phone, btw?)
Aug 16 22:30:44  Samsung Galaxy Note, ctate
Aug 16 22:32:19  fwiw, you could try writing an app that does nothing but try to start the bluetooth-enable activity
Aug 16 22:32:21  see if that works
Aug 16 22:32:22  :)
Aug 16 22:56:52  Even though "Sale" has implemented parcable interface, eclipse is complaining. "The method putParcelableArrayList(String, ArrayList) in the type Bundle is not applicable for the arguments  (String, List) "
Aug 16 22:57:16  whle doing "putParcelableArrayList("", responses);"
Aug 16 22:57:20  any idea?
Aug 16 22:57:45  pretty sure you can't do that, but I need to look up the reason...
Aug 16 22:57:55  List
Aug 16 22:57:58  Make it an ArrayList
Aug 16 22:58:16  oops :)
Aug 16 22:58:18  errr. yeah. that.
Aug 16 22:58:39  why does putParcelableArrayList needs ArrayList?
Aug 16 22:58:57  any specific reason?
Aug 16 22:59:44  Thanks for help.
Aug 16 22:59:47  it worked.
Aug 16 23:00:14  They named it putParcelableArrayList, and then it was too late to rename it to putParcelableList
Aug 16 23:04:40  so, FragmentStatePagerAdapter offers no way of accessing the fragments it's managing. Has anyone figured out a good way to find out which fragment is currently the primary?
Aug 16 23:06:54  hmmm, I guess I could probably do it all the way up at the activity level, with the page change listener, but that's further up than I'd like to go
Aug 16 23:09:07  actually, no, that's still not a solution
Aug 16 23:10:02  Back it by an arraylist, fetch fragment from list based on current position
Aug 16 23:11:22  so, that would mean that I'll essentially duplicate the fragment cache
Aug 16 23:11:37  FragmentStatePagerAdapter will have it's cache and so will my subclass
Aug 16 23:12:03  I'm looking into sharing cookies between HttpClient and WebView. Each app has it's own cookie store in it's sandbox as i understand it, so why does calling CookieSyncManager.sync() not share cookies between WebView and HttpClient?
Aug 16 23:12:27  but then, the problem is, I'm not guaranteed to have all of my fragments in memory (I realize I can use FragmentPagerAdapter, but I don't wanna!) so if I all of a sudden want to jump around I'm going to be out of bounds
Aug 16 23:12:37  it's possible that I'll be out of bounds, rather
Aug 16 23:13:40  Wavesonics: HttpClient and WebView are completely separate things
Aug 16 23:13:48  it just sucks that if I want an efficient solution to this problem, I probably need to duplicate the FragmentStatePagerAdapter code in my own codebase
Aug 16 23:13:51  The CookieSyncManager is used to synchronize the browser cookie store between RAM and permanent storage.
Aug 16 23:14:02  or maybe not? I would hope :)
Aug 16 23:14:13  ryanm, so they have 2 seperate on-disk cookie stores?
Aug 16 23:15:28  Wavesonics: I'm not sure, but I don't think HttpClient has a built-in on-disk cookie store.
Aug 16 23:15:37  It would of course be possible to create one.
Aug 16 23:15:56  what does "primary" fragment even mean?
Aug 16 23:16:14  (when you have more htan one on screen at once)
Aug 16 23:16:28  ryanm, it has a httpclient.getCookieStore() method so i beleive it does
Aug 16 23:16:56  ctate: I don't have more than one on screen, I'm using the adapter inside a viewpager
Aug 16 23:17:06  Wavesonics: What makes you think it's on disk?
Aug 16 23:17:26  ctate: it's what they call it in the code as well -> http://grepcode.com/file/repo1.maven.org/maven2/com.google.android/support-v4/r7/android/support/v4/app/FragmentStatePagerAdapter.java#73
Aug 16 23:17:34  currentPrimary
Aug 16 23:17:35  heh
Aug 16 23:17:38  hi everyone
Aug 16 23:17:57  ryanm, ah.... hhmm....
Aug 16 23:18:29  I have an activity with an inner class that extends a fragment for the sake of retaining data
Aug 16 23:18:54  in the fragment class, there is a final thread that monitor data from a service
Aug 16 23:19:16  when the activity is destroyed and recreated, I do a thread.start()
Aug 16 23:19:36  but, the while loop in the thread isn't reinitialized
Aug 16 23:19:43  what am I missing here?
Aug 16 23:21:02  ah i see; it's pager terminology.  makes sense.
Aug 16 23:21:21 * S3nsat10n beeps
Aug 16 23:21:38  pager terminology, get it!
Aug 16 23:21:39  ryanm, so, ya, it looks like HttpClient doesn't ever save it's cookies to disk. It doesn't even share it's cookies with other HttpClients infact...
Aug 16 23:21:46 * S3nsat10n is tired
Aug 16 23:21:49  ... i got it.  :-/
Aug 16 23:21:56  iguay!
Aug 16 23:29:30  can anyone help me with my thread issue?
Aug 16 23:30:50  lou_: could you pastebin the code in question?
Aug 16 23:32:06  sure thing, hang on. FYI, i am polishing the code now that I proved the concept of my app; so, it may look a bit messy.
Aug 16 23:33:30  has there been any news on the nexus dock?
Aug 16 23:33:44  here you go ryanm- http://pastebin.com/uk4cVpQk
Aug 16 23:34:00  can I pm u, ryanm?
Aug 16 23:34:10  I'd rather you just discussed it in channel
Aug 16 23:34:27  ok, ryan. thanks
Aug 16 23:34:33  I'm working, so my attention to the channel is sporadic
Aug 16 23:34:37  polishing  a turd
Aug 16 23:34:43  fyi, i I put a breakpoint in the while loop, t hits it
Aug 16 23:35:27  but, without a breakpoint in the while of the thread, it doesn't seem to be getting executed. It may be a timing issue
Aug 16 23:35:41  lou_: that internall class is a poltergeist
Aug 16 23:35:59  try putting a log in the thread instead
Aug 16 23:36:02  I suggest reworking the design
Aug 16 23:36:26  thanks for the generic input groth. as I said, am polishing it now
Aug 16 23:36:51  true, ryanm. I will do that instead
Aug 16 23:36:56  http://www.antipatterns.com/dev_cat.htm
Aug 16 23:41:11  lou_: having an object simply to retain state information is a bad design, it is in fact an anti-pattern
Aug 16 23:41:50  if you delegated the responsibility of preserving state to a more persistent object then the problem will solve itself
Aug 16 23:42:25  what problem? which object?
Aug 16 23:42:27  you can "polish" the code all you want, but my criticism is not that it looks bad
Aug 16 23:42:33  my criticism is that the design is flawed
Aug 16 23:42:43  ohcibi, the purpose of the fragment?
Aug 16 23:42:46  the internal class that, as you say, extends fragment just to retain data
Aug 16 23:43:11  there is probably a more robust way to do it
Aug 16 23:43:12  that was an example from the sdk, actually
Aug 16 23:43:20  really?
Aug 16 23:43:28  yeah, really.
Aug 16 23:43:39  I just extended the example
Aug 16 23:43:40  well, it would not be the first time Java was used to teach bad programming habits ;)
Aug 16 23:44:47  grothendieck: err, i disagree
Aug 16 23:45:03  anyways, I will take your suggestion into consideration. I actually thought of not needing this Fragment class if I can use static variables and classes
Aug 16 23:45:07  using the fragment mechanisms is the official replacement for going through stuff like onRetainNonConfigurationInstance()
Aug 16 23:45:35  exactly my thought, ctate; that was the purpose of the sdk example that I adopeted
Aug 16 23:45:35  lou_: what is the problem though? the thread dies when the fragment goes away?
Aug 16 23:45:46  which SDK example, by the way?
Aug 16 23:46:30  grothendieck, the issue is that when the activity is recreated, the thread.start() is called; but, it doesn't seem to restart the while loop
Aug 16 23:46:37  I try to touch Java and the SDK as little as possible, so maybe there is something I am not seeing here
Aug 16 23:47:00  that's thread.start on a new thread instance
Aug 16 23:47:14  there's no "restart"; there's just a new thread being started
Aug 16 23:47:44  (it's just a member of your activity class, so you get a new one for hte new Activity instance)
Aug 16 23:47:55  that's what i pointed out on my previous line
Aug 16 23:48:09  oh i see, it's a member of the fragment not of the actiity
Aug 16 23:48:33  here it is: android-sdk-linux/samples/android-15/ApiDemos/src/com/example/android/apis/app/FragmentRetainInstance.java
Aug 16 23:49:00  but if the instance is being retained, then the thread is already started, no?
Aug 16 23:49:53  lou_: you could use a boolean value to check if the activity is being recreated and call thread.start() depending on this value
Aug 16 23:50:23  If the thread is managed by a retained fragment, who cares if the activity is restarted
Aug 16 23:50:29  if (activity is being restarted) { # do nothing } else { thread.start() }
Aug 16 23:50:37  oh, i see
Aug 16 23:50:39  god I hate Java :P
Aug 16 23:50:50  you're setting bIsUIActive to false during the teardown / recreate, right?
Aug 16 23:51:04  you're sure that is not happening during activity recreation?
Aug 16 23:51:28  my fault guys, I hope we understand that my issue is after coming back to the activity after it is destroyed
Aug 16 23:51:44  I will add logging messages around the code to get more info
Aug 16 23:51:45  destroyed how?
Aug 16 23:51:53  configuration change, or outright quit / relaunch?
Aug 16 23:52:01  s/quit/finish/
Aug 16 23:52:01  back button on main activity
Aug 16 23:52:05  aHA
Aug 16 23:52:09  what?
Aug 16 23:52:10  also you have some bugs
Aug 16 23:52:14  bIsUIActive is not declared volatile
Aug 16 23:52:15  tsk tsk :)
Aug 16 23:52:22  [and all theo ther state you manipulate from both threads]
Aug 16 23:52:24  lol. ok, am working on the polishing
Aug 16 23:52:52  okay so yeah, wheh you hit back and the activity is finished, this whole thing should be going away
Aug 16 23:52:59  because it isn't a 'retain' situation
Aug 16 23:53:04  exactly
Aug 16 23:53:12  then the next time it's launched you should get new instances etc of everything
Aug 16 23:53:16  theneb, on coming back, the while in the thread isn't executing
Aug 16 23:53:42  there is no "back"
Aug 16 23:53:50  if you quit an app
Aug 16 23:53:53  and then launch it
Aug 16 23:54:03  it's just a new launch; the app was *gone* in the interval.
Aug 16 23:54:37  sorry if i'm confusing
Aug 16 23:54:59  step through your setup code when you're relaunching the activity
Aug 16 23:55:06  see if it all looks correct as it goes
Aug 16 23:56:02  I will.
Aug 16 23:56:13  bb with more info later, if I need to. thx
Aug 16 23:56:18  and make sure to declare the shared vars as volatile :)
Aug 16 23:56:36  yeah, about that. why not static?
Aug 16 23:56:54  I would consider the stage of development where you are taking out excessive writes to the log as polishing your code, not when you are just starting to write debug info to log ;)
Aug 16 23:58:03  anyway good luck
Aug 16 23:58:50  static and volatile are unrelated
Aug 16 23:58:55  idk what you mean groth; but, believe me, I am working on doing some clean up
Aug 16 23:59:09  you need to declare them 'volatile' so that e.g. when you change the value from one thread, the other thread will actually see that value as you expect.
Aug 16 23:59:18  ok, which shared vars are you referring to?
Aug 16 23:59:38  ahmedammar, you mean the queue objects
Aug 16 23:59:40  everything that you set in one thread and read in the other.  bIsUIActive is the big one i noticed.
Aug 16 23:59:45  i hope the proguard guys don't do something dumb like make it incompatible with dex and force you to get dexguard
Aug 17 00:00:10  g00s:  afaik the proguard people are fully aware of Android and its importance there, and are into keeping it useful
Aug 17 00:00:17  proguard is run before it's dexed
Aug 17 00:00:24  lou_: ?
Aug 17 00:00:33  Oh, not what you meant
Aug 17 00:00:35  my bad, damn auto completion
Aug 17 00:00:48  ctate, I will read up on using volatile, thanks
Aug 17 00:01:01  SimonVT: there have been proguard bugs in the past which caused dex trouble
Aug 17 00:01:15  yah
Aug 17 00:07:17  found my issue guys
Aug 17 00:07:28  very good, wanna know what the cause was?
Aug 17 00:07:49  sure
Aug 17 00:07:58  so we can kick ourselves for not seeing it?  :)
Aug 17 00:08:46  reference the code in pastebin - else if(bIsActivityDestroyed)
Aug 17 00:08:46  	                		break;
Aug 17 00:09:23  I am having an issue when using HorizontalScrollView, I have a LinearLayout that has several  buttons placed in it, the LinearLayout is placed within the HorizontalScrollView, i can swipe and scroll as expected,  however when i touch on the buttons inside the LinearLayout, i cannot focus on them (when i am not using horizontalscrollview, when i touch the buttons, they turn blue, however when using the scrollview, they don't turn blue when touche
Aug 17 00:09:43  hey ctate, am curious to learn about volatile declaration, I will read up on it. Am trying to get rid of useless static declarations as well, all part of the polishing :-D
Aug 17 00:11:19  'static' and 'volatile' are unrelated, really
Aug 17 00:11:26  they affect very different aspects of the data semantics
Aug 17 00:11:41  'static' is about whether there's a copy of the field for every instance of hte object, or just one globally
Aug 17 00:11:49  'volatile' tells the compiler how to manage reads/writes of the field
Aug 17 00:12:02  I know; but, aside from that fact, I need to relook at the many static declarations that I have in that class
Aug 17 00:20:10  did anyone read my question?
Aug 17 00:20:19  I am having an issue when using HorizontalScrollView, I have a LinearLayout that has several  buttons placed in it, the LinearLayout is placed within the HorizontalScrollView, i can swipe and scroll as expected,  however when i touch on the buttons inside the LinearLayout, i cannot focus on them (when i am not using horizontalscrollview, when i touch the buttons, they turn blue, however when using the scrollview, they don't turn blue when touche
Aug 17 00:27:24  How do you initialize a Button.onClickListener properly? If I reference it in the xml file, the listener will only receive a View. It is very difficult to find the piece of data that was associated with that view.
Aug 17 00:27:52  It's like displaying the picture of the 26th item on a list, and you only get back a Bitmap when someone clicks it.
Aug 17 00:27:56  put a reference in the tag
Aug 17 00:28:22  or find the position by checking the adapter
Aug 17 00:28:32  jayd16, can you elaborate either?
Aug 17 00:28:49  Okay, lets say I have the View and the Adapter. How do you find the position?
Aug 17 00:29:11  I couldn't find Adapter.getPosition(View) or anything like this.
Aug 17 00:29:31  View.setTag
Aug 17 00:30:16  listview.getPositionForView() is useful
Aug 17 00:30:36  Okay, both seems good, thanks
Aug 17 00:31:09  i guess using the tag is faster
Aug 17 00:31:58  SimonVT: googling shows that android:descendantFocusability might help
Aug 17 00:32:16  Anyone know if there a bug in addContentView in SherlockPreferenceActivity?  I get a runtime exception "Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'"
Aug 17 00:32:53  does your view contain a ListView with that id?
Aug 17 00:33:05  no
Aug 17 00:33:16  at a guess thats the problem
Aug 17 00:33:22  but I am not sure where to set this property, on the HorizontalScrollView or in the LinearLayout
Aug 17 00:33:53  the same code called the same way works in other SherlockActivity types
Aug 17 00:35:56  It's not a bug
Aug 17 00:36:01  It's how PreferenceActivity works
Aug 17 00:36:11  Doesn't matter that you're using the Sherlock variant
Aug 17 00:37:22  So addContentView is useless in PreferenceActivity?
Aug 17 00:38:45  Why are you even adding your own layout
Aug 17 00:38:51  PreferenceActivity handles it all for you
Aug 17 00:40:12  when a fragment is loaded into an activity by being defined in an layout that is loaded with Activity.setContentView(), that fragment is not added to the back stack right?
Aug 17 00:40:22  how do I load up one of these sample apps into eclipse?
Aug 17 00:41:25  Right
Aug 17 00:41:33  SimonVT, well I'm implementing a kind of in app notification type thing.  Views drop down.  I can't use a toast because they're supposed to stick until they're dismissed.
Aug 17 00:42:08  SimonVT: well my fragment state is not being retained
Aug 17 00:42:24  They aren't retained
Aug 17 00:42:24  i have setRetainInstance(true) in onCreate() for my fragment
Aug 17 00:42:47  I'm not actually sure that'll work
Aug 17 00:43:00  Did you remember to give it a tag?
Aug 17 00:43:20  well if i add the fragment in oncreate() for the activity, then it will add a NEW fragment in oncreate()
Aug 17 00:43:27  bah
Aug 17 00:43:30  fucking tags
Aug 17 00:43:33  jayd16: So do what it tells you to do
Aug 17 00:43:55  It doesn't have to add a new fragment every time if you add it in onCreate
Aug 17 00:43:58  if fragments have a unique id, why the fuck do they need tags
Aug 17 00:43:58  findFragmentByTag
Aug 17 00:44:02  So yeah, fucking tags
Aug 17 00:45:38  So, I know a phone is just a phone, and is not worth doing CPU intensive tasks, but what I plan to do just does that. Unfortunately, the task is sucking all the CPU that the UI thread is, while not blocked, it does not respond. If I put a sleep, that fixes things, but reduces performance of the task.
Aug 17 00:45:43  hi SimonVT <3
Aug 17 00:45:47  ok, adding a tag to the xml layout didnt work, ill try adding the fragment with a tag in oncreate
Aug 17 00:45:57  Is there a more efficient way to create an object that holds status of something that is shared between multiple fragments?  Currently I am creating a Parecelable status object and passing it to each fragment through Bundle properties.  Besides Singletons, is there a better way for this in anyones opinion
Aug 17 00:45:57  canadiancow: oO
Aug 17 00:47:02  wat
Aug 17 00:47:07  no bromance for me?
Aug 17 00:48:21  no :F
Aug 17 00:48:33   SimonVT: no dice
Aug 17 00:50:31  diki: do it on a different thread, so it doesn't block the ui thread
Aug 17 00:50:47  JesusFreke:I do it via new Thread(new runnable) etc
Aug 17 00:50:51  SimonVT, aha!  So the trick was to call addContent after PreferenceActivity() does its onCreate() because I guess it does a check for the list everytime the content changes.  Thanks for the help!
Aug 17 00:51:03  but the task is so intensive, it blocks the UI thread by...starving it?
Aug 17 00:51:17  birbeck: no dice?
Aug 17 00:51:34  In what way
Aug 17 00:51:40  s/startving/using up cycles
Aug 17 00:51:42  diki: do you have any synchronized methods or anything like that, that might be blocking the ui thread?
Aug 17 00:51:58  no.
Aug 17 00:52:07  try replacing your background thread with a simple infinite loop, and see if you get the same behavior
Aug 17 00:52:22  No, I would likely not get it.
Aug 17 00:52:30  My task is very intensive.
Aug 17 00:52:48  diki: it can't be more intensive than an infinite loop with no wait
Aug 17 00:53:08  It can, because it is an infinite loop, but actually doing things.
Aug 17 00:53:12  SimonVT: http://pastebin.com/iwGkWTpw
Aug 17 00:53:56  diki: the infinite loop will use as much cpu cycles as are available
Aug 17 00:54:15  JesusFreke:yes, I understand that, but if I sleep the thread, I lose performance.
Aug 17 00:54:27  diki: this has nothing to do with sleeping
Aug 17 00:54:42  birbeck: And it's null on orientation change, or?
Aug 17 00:54:44  In fact, sleeping the thread at a minimum of 23 milliseconds fixes my problem, but I lose a lot of performance.
Aug 17 00:54:44  diki: this is to determine if you really are cpu starving your ui thread, or if something else is causing it to block for some reason
Aug 17 00:54:47  What method do you guys tend to use when sharing an object between various fragments (for those that do)??
Aug 17 00:54:51  SimonVT: yeah
Aug 17 00:54:58  That's.. strange
Aug 17 00:55:18  oh the fragments not null, but mPricing is
Aug 17 00:55:46  if a simple infinite loop running in a background doesn't cause the same problem, then your problem isn't that you're starving the ui thread (which I think is unlikely)
Aug 17 00:56:01  and that would mean you need to look deeper at what is causing the problem
Aug 17 00:56:04  oh, twitter
Aug 17 00:56:27  epsilonorion: depends if the fragments live in the same activity or not
Aug 17 00:57:00  birbeck: So it isn't retained?
Aug 17 00:57:13  we need something like Betteridge's law, maybe Worseridge's Law: When a headline asks if the lawyers are on crack, the answer is always "yes"
Aug 17 00:57:25  birbeck: all fragments are started from the MainActivity.  Currently I create the object in the MainActivity (while making sure it is parcelable) and then pass it to each through bundles.
Aug 17 00:58:37  epsilonorion: why not just use an abstract class with static members?
Aug 17 00:59:03  assuming something about that model won't work?
Aug 17 00:59:53  or why not just keep that data on the activity if they're all started from the same one?
Aug 17 01:00:03  and just make sure you retain it through config changes
Aug 17 01:00:57  SimonVT: the fragment is being retained
Aug 17 01:01:45  http://pastebin.com/74ZbrtRY
Aug 17 01:02:31  S3nsat10n: Specifically, the object is a waypoint class object that holds a list of waypoints.  This object is being shared between a MapFragment, ListFragment, and various other components.  I did not feel that this fit the Abstract class idea
Aug 17 01:02:34  so there is something else going on here
Aug 17 01:02:39  Not sure what the issue is then :p
Aug 17 01:03:23  epsilonorion: I guess I don't understand why not
Aug 17 01:04:00  I guess more so I do not know why I would use it instead (or how I would)
Aug 17 01:04:35  damnit, tethering isn't working on this rom I installed, pos
Aug 17 01:04:45  well, packing and unpacking it everytime you want to hand it to a fragment is certainly more work than just accessing it from the same class everytime
Aug 17 01:05:31  JesusFreke:Ok, appears you were right. My second .post was causing the UI slowdown
Aug 17 01:05:31  more work == less efficient
Aug 17 01:06:27  S3nsat10n: I agree, but how else am I supposed to share a copy of an object between multiple Fragments.
Aug 17 01:07:05  create a public abstract class and have hte list as a public static member
Aug 17 01:08:12  guys, is there a way to add events to a calendarview?
Aug 17 01:09:10  epsilonorion: something like this -> http://pastebin.com/DiKG1Lwr
Aug 17 01:09:30  although if it can be accessed by multiple threads, you'll probably want to synchronize access or make it a CopyOnWrite type list
Aug 17 01:10:01  I follow what you are saying.  Thought I tried that earlier and it didn't work for me.  Must have been trying something incorrectly.  I will try again.
Aug 17 01:10:35  that's the spirit
Aug 17 01:11:37  guys, is there a way to add events to a calendarview?
Aug 17 01:12:25  S3nsat10n: Ah, probably see what my problem was.  I actually tried using a method where I just extended ArrayList of the type Waypoint, then used the built in functions for ArrayLists.  This would then not treat the List as static
Aug 17 01:12:46  well, you can use methods
Aug 17 01:12:50  The Waypoint List works great, but not Static
Aug 17 01:12:51  they just have to be static
Aug 17 01:13:30  WaypointListHolder.getList()...where the method is public static ArrayList getList() {...}
Aug 17 01:14:24  methods will help you synchronize access if the list will be modified by multiple threads...if not, you can just stick with direct access if that's your style
Aug 17 01:16:28  S3nsat10n: I follow you, however since I am overriding methods, static just gives me a bunch of errors
Aug 17 01:16:53  how are you overriding methods on a pojo?
Aug 17 01:17:06  I will definitely be accessing the list from multiple threads, which is why I stuck with the methods like this as well as synchronized
Aug 17 01:17:58  ah, I see
Aug 17 01:18:04  you extended ArrayList
Aug 17 01:18:12  do you really need that?
Aug 17 01:18:12  S3nsat10n: My WaypointList is extending ArrayList, so I have the add, remove, etc.
Aug 17 01:18:17  not really
Aug 17 01:18:24  that is what I was saying
Aug 17 01:18:30  that is why it probably didn't work the first time
Aug 17 01:18:40  just create a pojo and put your list on it
Aug 17 01:18:43  I will pull it from extending and use static
Aug 17 01:18:44  yep
Aug 17 01:18:52  acess the arraylist methods directly on the list, not the class
Aug 17 01:18:58  there you go
Aug 17 01:36:50  guys, is there a way to add events to a calendarview?
Aug 17 01:51:06  my dad just called. he's going to the UK in a couple weeks. he needs a phone that will work there.  he asked me abotu the galaxy nexus :)
Aug 17 01:51:10  never have i been so proud
Aug 17 01:52:48  canadiancow haha awesome
Aug 17 01:53:17  doesnt hurt that it's $30 on a contract, and he has credit with his provider to make $30 == $0
Aug 17 01:53:18  i got my dad a wp, figured its simpler interface would be good for him, he loves it, might give him my note when note2 comes out
Aug 17 01:53:28  niceee
Aug 17 01:53:40  he's a gmail user too
Aug 17 01:53:47  so the nice google integration is good
Aug 17 01:53:55  1+
Aug 17 01:53:58  and maybe one day i can work on an app that will directly affect him :)
Aug 17 01:54:06  hehe
Aug 17 01:54:10  that would be awesome :D
Aug 17 01:54:34  i know if i made an app that my family actually used would be amazing, but then i might have to deal with them complaining xD
Aug 17 01:54:36  more*
Aug 17 01:55:17  he said he'd use the two apps i've written/published: )
Aug 17 01:55:26  s/d: )/d :)/
Aug 17 01:55:40  two?
Aug 17 01:55:45 * Jug6ernaut has only seen one of urs
Aug 17 01:56:01  https://play.google.com/store/apps/developer?id=Scott+Kennedy
Aug 17 01:56:14  did you click the "more by developer" link? :P
Aug 17 01:56:34  maybe one day i will be as awesome as ctate, working on stuff that is the awesome
Aug 17 01:56:53  ahh
Aug 17 01:57:04  im pretty sure nav launcher wasnt there last time i checked
Aug 17 01:57:11  canadiancow we cant all be so awesome lol
Aug 17 01:57:21  nav launcher... fuck
Aug 17 01:57:29  that was there before google had the "Navigation" activity
Aug 17 01:57:30  !!!
Aug 17 01:57:35  then they copied all the features
Aug 17 01:57:39  and suspended nav launcher from the market
Aug 17 01:57:39  :o
Aug 17 01:57:44  wtf lol
Aug 17 01:57:46  how rude
Aug 17 01:57:50  so i hcanged the package name and relaunched, and it's all good now
Aug 17 01:57:51  i know right
Aug 17 01:57:56  they did it right AFTER google i/o 2010
Aug 17 01:58:02  o
Aug 17 01:58:10  so its probably been there since last time i checked xD
Aug 17 01:58:13  if they had done it before, iw ould have like fucked with all their shit
Aug 17 01:58:22  at least google took urs down and not EA xD
Aug 17 01:58:23  i dont remember when i relaunched
Aug 17 01:58:28  EA?
Aug 17 01:58:43  if i'm modifying an app from the old 2.x model of activities to the new 3.0+ model of fragments, what exactly should i do? do i just change all the activity classes to fragment classes, then create handler activities that add/remove fragments?
Aug 17 01:58:48  nav launcher was "last updated" fab 2 2012
Aug 17 01:58:50  aparently EA doesnt like it when ppl include "Tetris" in there app names...who knew?
Aug 17 01:58:50  feb*
Aug 17 01:58:54  oh
Aug 17 01:58:55  hah
Aug 17 01:59:05 * canadiancow tries to stay out of gaming industry legal talk
Aug 17 01:59:25  it was my first app...
Aug 17 01:59:29  i was young and naive...
Aug 17 01:59:36  (this was like 1.5 years ago xD)
Aug 17 02:00:03 * Jug6ernaut needs to update that app...still...
Aug 17 02:00:07  hah
Aug 17 02:00:18  but other priorites...
Aug 17 02:00:38  canadiancow https://play.google.com/store/apps/details?id=jug6ernaut.utl.flnotifier, ur dad might find it useful :P
Aug 17 02:00:59  lol
Aug 17 02:01:08  oh
Aug 17 02:01:08  no
Aug 17 02:01:09  fuck you
Aug 17 02:01:15  :o
Aug 17 02:01:19  CURRENT VERSION:
Aug 17 02:01:19  Varies with device
Aug 17 02:01:19  REQUIRES ANDROID:
Aug 17 02:01:19  Varies with device
Aug 17 02:01:29  SON, I AM DISAPPOINT
Aug 17 02:01:34  ctate, around?
Aug 17 02:01:37 * Jug6ernaut dies a little in side
Aug 17 02:01:38  and wanna comment on multi apk?
Aug 17 02:01:47  hey guys, anyone use phonegap / android / couchdb?
Aug 17 02:02:29  canadiancow i did that yesterday xD, and only bc i changed minimum api level, so i didnt want to forget about lower levels
Aug 17 02:02:30  2.3: adb backup. 4.1: adb restore (ok i know that's technically not possible, but think about a year from now)
Aug 17 02:02:32  multi-apk dies
Aug 17 02:02:37  oh
Aug 17 02:02:48  so you have like 2.1 as one apk and 2.2+ as another?
Aug 17 02:03:01  yep
Aug 17 02:03:04  ok
Aug 17 02:03:05  i apologize
Aug 17 02:03:13  you are using it in the only way i find acceptable
Aug 17 02:03:14  lol
Aug 17 02:03:23  what is the unacceptable way?
Aug 17 02:03:31  xhdpi, hdpi, mdpi
Aug 17 02:03:35  xlarge, large, normal
Aug 17 02:03:36  that
Aug 17 02:03:37  is stupid
Aug 17 02:03:54  aapt includes a flag to spit out 4 apks: xhdpi, hdpi, mdpi, ldpi
Aug 17 02:03:57  i mean...u could...but that would be more trouble then its worth imo
Aug 17 02:04:06  yea, asus padphone
Aug 17 02:04:17  one device with normal-hdpi and xlarge-mdpi
Aug 17 02:04:26  lol
Aug 17 02:04:31 * Jug6ernaut never thought about that
Aug 17 02:04:41  adb backup/restore
Aug 17 02:04:57  4.1 nexus s to 4.1 galaxy nexus
Aug 17 02:05:02  normal-hdpi to normal-xhdpi
Aug 17 02:05:07  you get the wrong apk
Aug 17 02:05:35  ah
Aug 17 02:07:03  i turned in my formal resignation today :)
Aug 17 02:07:31  when using an abstract class, do you have to extend that class name to be able to use it?
Aug 17 02:07:39  o.)
Aug 17 02:07:41  o.O **
Aug 17 02:07:43  uh
Aug 17 02:07:47  "that class name" ??
Aug 17 02:07:56  s/name// and the answer is "yes"
Aug 17 02:08:03  with the word "name" in there i dont know what you men
Aug 17 02:08:04  lol, thats what I figured
Aug 17 02:08:05  lol
Aug 17 02:08:08  canadiancow woho :)
Aug 17 02:09:04  one of the guys earlier was suggesting me to use an abstract object instead of my current method and I completely forgot about the extending.  I need a MapFragment to use the object, but if it is extending fragment it can't extend the abstract class
Aug 17 02:09:30  MapFragment extends  Fragment
Aug 17 02:09:35  rather
Aug 17 02:09:42  abstract class MapFragment extends Fragment
Aug 17 02:09:55  class SomeClass extends MapFragment
Aug 17 02:10:32  Heres the deal.  Have a waypoint object that holds a list of waypoints.  It is used between the MapFragment and a ListFragment.
Aug 17 02:11:05  Currently using the method of creating a parselable object and passing it to each fragment using bundles, but this is messy
Aug 17 02:11:23  was suggested that I make the object an abstract class
Aug 17 02:12:43  explain to me what a waypoint is
Aug 17 02:12:48  I have not heard that term before
Aug 17 02:13:06  You mean like an IPC mechanism?
Aug 17 02:13:17  :|
Aug 17 02:13:20  waypoint
Aug 17 02:13:28  liuke im driving from toronto to vancouver
Aug 17 02:13:37  but winnipeg is a waypoint
Aug 17 02:13:39  yeah, gps point, as well as other possible data
Aug 17 02:13:40  like... a point on the way
Aug 17 02:14:08  oh
Aug 17 02:14:28  I have a list of these waypoints that can be added, deleted, etc.  The MapFragment and ListFragment have need to view and edit this list.  I need to create an object that can be accessed in this way between them
Aug 17 02:14:33  okay so you have an object with a list of whatevers
Aug 17 02:14:42  lol
Aug 17 02:15:14  yes
Aug 17 02:15:31  so the suggestion was to use an abstract class taht extends fragment?
Aug 17 02:16:01  and presumably that this abstract class contains an instance of your class with the list
Aug 17 02:16:03  no, actually he didn't suggest anything about extending.  I just went blank and forgot I would need to extend.  I can't in this case so I won't be able to use an abstract class now
Aug 17 02:16:21  he just suggested using the abstract class
Aug 17 02:16:22  okay
Aug 17 02:16:33  so now I need to figure out the best way to handle my situation
Aug 17 02:17:20  currently I create an object (waypointlist object) that is parcelable and pass it using a bundle, but I know this probably isn't the best way
Aug 17 02:17:44  my main question was whether anyone had any thoughts as to a better way to do this
Aug 17 02:17:50  yeah
Aug 17 02:17:51  For the first time I'm trying to make a project with some sample code from the android sdk... I'm using the AccelerometerPlay src.  I made a new project and copied the res and src into place (leaving MainActivity.java untouched)...
Aug 17 02:18:10  epsilonorion: so you have your class with the list you need the fragments to access
Aug 17 02:18:11  now I'm getting, "R cannot be resolved to a variable" on the line             Bitmap ball = BitmapFactory.decodeResource(getResources(), R.drawable.ball);
Aug 17 02:18:34  say you want a listadapter to bind to it
Aug 17 02:18:47  I don't see where R is actually declared either..
Aug 17 02:19:02  I mean listfragment
Aug 17 02:19:10  grothendieck: yes.  I create the class (holding the list), put it in a bundle, and then pass that bundle to a MapFragment and ListFragment
Aug 17 02:19:26  actually, this is an easy web search..  please disregard my question for now :)
Aug 17 02:19:36  then each fragment has the ability to add and get items to the list and it is synchronized between the two
Aug 17 02:20:23  I am looking at the API documentation to see what we can do to be clever
Aug 17 02:20:45  okay that is what I was worried about is how you are going to have the list synchronized between two accessors
Aug 17 02:20:49  that is usually a recipe for disaster
Aug 17 02:21:15  I actually already have it working now
Aug 17 02:21:22  with no issues
Aug 17 02:22:06  I am just seeing if there is a more elegant or efficient way to do it than using bundles and parcelable
Aug 17 02:22:43  Currently, when the map overlay adds an item, it actually adds it to the WaypointList object, then callbacks are triggered that tell the map and list to add item to their own lists
Aug 17 02:22:50  same for other controls
Aug 17 02:22:54  works just fine
Aug 17 02:22:59  right
Aug 17 02:23:25  I think in general the answer is yes, use a strict MVC design pattern and this is a non-issue
Aug 17 02:23:37  android does not make MVC at all easy to implement
Aug 17 02:23:50  so in the confines of Android I don't think there is a substantially easier way to do it
Aug 17 02:24:14  in the sense that the time and effort you put into it will probably not be worth it
Aug 17 02:24:24  are you using a listadapter object?
Aug 17 02:24:49  grothendieck: agreed, which is why I first chose to use the bundle method to get it working.
Aug 17 02:24:50  I was trying to look it up but apparently developer.android.com is down
Aug 17 02:25:08  I will be using a listadapter in the ListFragment soon, but haven't yet
Aug 17 02:25:20  I would say this sounds like the job for a listadapter
Aug 17 02:25:31  how do resources work?  If I have R.drawable.wood   .. what lets the compiler/linker (?) know to look in drawable-hdpi/wood.jpg .. and if it's .png, etc.  How is that all handled?
Aug 17 02:25:48  Jaggz-: absolutely nothing
Aug 17 02:25:49  I'm coming from many years in plain C console coding
Aug 17 02:25:52  the compiler/linker is dumb
Aug 17 02:26:11  compile some binary with the android toolchain
Aug 17 02:26:25  stick it into an APK as raw resources with a .png extension
Aug 17 02:26:26  grothendieck: It probably will be in the end, but I guess then the consensus is to stick with the bundle/parcelable method I am using right now?
Aug 17 02:26:34  so, if eclipse can't find "wood", but it's there in those drawable-* directories..
Aug 17 02:26:52  then when the app launches have it extract the raw resoruces and strip off the png extension
Aug 17 02:26:59  now you have a binary executable ready to run inside your app
Aug 17 02:27:06  this is actually a vector for some exploits I have seen
Aug 17 02:27:24  google search for "pictures of celebrities malware android" might yield results
Aug 17 02:27:38  Jaggz-: I have no idea about eclipse
Aug 17 02:27:58  but the NDK/SDK tools have no idea what you are putting in there, they just check extensions
Aug 17 02:28:11  if you try to include a .sh script it won't let you do that
Aug 17 02:28:16  but you name it .sh.png and it will
Aug 17 02:28:23  at least it used to I haven't tried that recently
Aug 17 02:29:00  This is how I port C programs and shell scripts to work in my android apps ;)
Aug 17 02:29:26  epsilonorion: yeah stick with what works for you and refactor your code carefully
Aug 17 02:29:53  I'm really trying to make sense of what you're saying.  :)
Aug 17 02:29:58  grothendieck: yeah, I just don't feel that it is very elegant and that there should be a better way.
Aug 17 02:30:18  I hear you can make .so files using the NDK and do some native code stuff.  Perhaps if I have to, in the future, I can do that
Aug 17 02:30:35  epsilonorion: http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ar01s06.html
Aug 17 02:30:44  for now I am trying to get the basics of app development though, and in this case understand how resources are referenced, because this one from their sample code isn't working
Aug 17 02:30:44  Jaggz-: yes it is actually pretty easy
Aug 17 02:31:18  grothendieck: lol
Aug 17 02:31:32  the NDK I mean is actually pretty easy
Aug 17 02:31:40  how do you execute the binary once you strip the .png?
Aug 17 02:31:40  If you have done
Aug 17 02:31:58  heh, are we assume you have root or you don't have root?
Aug 17 02:32:16  if you have root, then you have a shell script that runs it
Aug 17 02:32:26  #!/system/bin/sh
Aug 17 02:32:46  then do whatever you want
Aug 17 02:33:44  if you don't have root, then you will have to write some clumbsy Java code to do it
Aug 17 02:33:56  actually, I take that back...
Aug 17 02:34:26  I should just write a blog post on this and include exmaples
Aug 17 02:34:28  I have not rooted my htc amaze.  I did root my old g1 originally
Aug 17 02:34:33  right
Aug 17 02:35:00  well actually you will only need root if the C program you compiled to an executable OR your shell script that runs it needs root
Aug 17 02:35:23  otherwise (if I recall correctly) you can still run a shell script (invoke /system/bin/sh) without root
Aug 17 02:35:37  intressin'
Aug 17 02:35:46  and you invoke the shell script from a JNI function (a function in a native .so library that Java app can load and run like it is a method)
Aug 17 02:35:50  but what handles finding R.drawable.ball ?
Aug 17 02:35:57  Jaggz-, it is an abstraction, you don't need to dig down into it unless you're interested
Aug 17 02:36:01  I honestly have no ideae
Aug 17 02:36:14  Do you mean at compile time or at runtime?
Aug 17 02:36:27  this IS in eclipse by the way, so it might be some automated eclipse functionality .. but I am new to all of this.  never used resource files and such with my C and perl coding
Aug 17 02:36:35  at compile time, my guess would be their ant scripts do it
Aug 17 02:36:56  Jaggz-, it is an abstraction.  because you can have res/drawable, res/drawable-hdpi, res/drawable-large-mdpi etc.
Aug 17 02:37:15  on the command line you build with 'ant debug' so it is invoking some script that puts everything together and bundles it to the APK
Aug 17 02:37:22  Ologn, interested because I ran into it as an error :)  R.drawable.ball is not found ... those files (ball.png and wood.jpg) are in the res/drawable-* directories
Aug 17 02:37:43  Jaggz-, your device goes through all the res/drawables, sees which one fits it, and hits that one.  But you can have one res/drawable for every device if you want.
Aug 17 02:38:03  at run-time it pulls the R.foo.bar objects off the heap and pushes them onto the stack when they are needed, just like any other JVM implementation
Aug 17 02:38:21  the runtime objects are stored on a heap and it finds the objects by trasversing the heap
Aug 17 02:38:24  Jaggz-, yes.  If you are on an hdpi device and it is in drawable-mdpi, you won't find it.
Aug 17 02:38:53  Er
Aug 17 02:38:54  ah, hmm.. let me find out how to go check the mode (which I did not explicitly choose this time)
Aug 17 02:38:55  Yes it will
Aug 17 02:39:08  And he's talking compile time
Aug 17 02:40:14  Continuing from earlier, if I wrote an app that has a permission to mount/unmount the file system
Aug 17 02:40:24  it doesn't get to the point of running it in the emulator.. I don't think.. it says I have to fix these errors.  This one is:
Aug 17 02:40:24  ball cannot be resolved or is not a field AccelerometerPlayActivity.java /Bubbles/src/com/test/bubbles
Aug 17 02:40:27  package in with it a cross-compiled 'su' binary
Aug 17 02:40:40  Jaggz-: Check which R you're importing
Aug 17 02:41:09  I did import android.R;
Aug 17 02:41:11  then when the app runs, it unmounts the file system and sets write permisions, copies over the su binary to /system/bin, then remounts the file system read only
Aug 17 02:41:16  Well, there you go
Aug 17 02:41:18  does that work? ;)
Aug 17 02:41:21  You need to import your own R
Aug 17 02:41:41  grothendieck: If only rooting was that easy
Aug 17 02:41:42  does that work to root the phone, I mean (obviously)
Aug 17 02:42:19  I know the exploit I used to root my droid4 relies on some buffer overflow in the linux kernel
Aug 17 02:42:20  ListFragment::onActivityCreated is getting called twice on screen rotation, The first call the "saveInstanceState" is not null, the second time it is.
Aug 17 02:42:32  SimonVT: why is it so difficult?
Aug 17 02:42:40  my own R...
Aug 17 02:42:55  grothendieck: For security
Aug 17 02:42:59  any idea  why is that method called twice?
Aug 17 02:43:12  Hi all.
Aug 17 02:43:17  I've been trying to follow http://developer.android.com/training/basics/firstapp/index.html
Aug 17 02:43:18  SimonVT: I mean what security is put in place to prevent that from happening?
Aug 17 02:43:23  when you copy the su binary, will it maintain suid bit?
Aug 17 02:43:31  Jaggz-: good question
Aug 17 02:43:35  I've installed everything, and now I'm at this point: http://developer.android.com/training/basics/firstapp/running-app.html
Aug 17 02:43:38  sacdroid: You're creating a new instance of the fragment on activity creation, ending up with two instances
Aug 17 02:43:48  When I try to run the app in eclipse it says:
Aug 17 02:43:50  grothendieck: I don't know the specifics on how it's done
Aug 17 02:43:52  grothendieck: this isn't #android-root
Aug 17 02:43:58  android-root sucks
Aug 17 02:44:00  :P
Aug 17 02:44:23  so do people who know they're off-topic and don't care
Aug 17 02:44:23   /windows/workspace/My First App/AndroidManifest.xml:4: Unexpected element "{}manifest" {antlib:org.apache.tools.ant}manifest
Aug 17 02:44:32  I think I've contributed enough useful information to ask a security question about the design of Android
Aug 17 02:44:48  Simon, you'll have to pardon me while I get my feet wet here in android.  Once wet I might run around in the shallows without assistance, but for now I'm nearly completely ignorant of how this works.
Aug 17 02:44:51  Etale: /windows? :)
Aug 17 02:44:53  Hey grothendieck, I thought you speak French!
Aug 17 02:45:01  Etale: can you pastebin your manifest?
Aug 17 02:45:03  I mean, pardon me, if you will.  :)
Aug 17 02:45:04  heh ;)
Aug 17 02:45:09  Leeds, yeah that's where my shared partition with Windows is mounted.
Aug 17 02:45:12  Where do I get my own R to import?  :)
Aug 17 02:45:28  It's generated on compile
Aug 17 02:45:39  your.manifest.package.R
Aug 17 02:45:51  I'll try, SimonVT
Aug 17 02:46:07  Leeds patrols #android-dev like her majesty's armed forces patrols Derry
Aug 17 02:46:14  Etale: please at least say it's ntfs?
Aug 17 02:46:22  I don't understand how I was at all off topic
Aug 17 02:46:30  Oh, of course, Leeds!
Aug 17 02:46:41  android-root is full of 15 year olds who don't know how to root their phones
Aug 17 02:47:04  is it possible to refer to a file inside a ZIP file with a URI?
Aug 17 02:47:05  SimonVT: what is right place to create Fragements in Activity?
Aug 17 02:47:08  I was discussing the security features of Android's design that would prevent my idea from working
Aug 17 02:47:21  sacdroid: You don't create the fragment if it exists
Aug 17 02:47:24  SimonVT, where do I find .manifest.package.R?
Aug 17 02:47:26  I'm new at this.
Aug 17 02:47:29  find it with findFragmentByTag
Aug 17 02:47:51  Etale: I wasn't answering you
Aug 17 02:48:04  SimonVT: will try it. thx
Aug 17 02:48:05  Oh...
Aug 17 02:48:13  Etale: I was answering you... can you pastebin your manifest, please
Aug 17 02:48:41  sacdroid did you know how to root a phone in the cradle? People asking where the docs are, or how to do something just off the standard are learning, not incompetent
Aug 17 02:48:47  Okay, Leeds. Just tell me what precise you mean. The contents of the xml?
Aug 17 02:49:14  GNUsDude: read the bloody channel topic, this isn't bloody #android-root
Aug 17 02:49:22  Etale: erm, yes - that is what your manifest is
Aug 17 02:49:41  Okay. As I said. Am *very* new at this.
Aug 17 02:49:55  ok
Aug 17 02:50:12  http://pastebin.com/jAC79AAj
Aug 17 02:50:26  GNUsDude: xda-developrs forum has good howto on rooting phone.
Aug 17 02:50:44  grothendieck, are you a mathematician?
Aug 17 02:50:53  hm, that looks fine - in which case I'd start looking for Eclipse problems, which I can't help with, since I just work with vim :)
Aug 17 02:50:54  Yes
Aug 17 02:51:01  Not as good as Grothendieck :P
Aug 17 02:51:12  Well I am a student in mathematics and computer science
Aug 17 02:51:37  Are you, my dear Etale?
Aug 17 02:51:46  Ahh... Still a student of computer science, or just math now?
Aug 17 02:52:14  I am working on computational algebraic geometry at the moment
Aug 17 02:52:54  Computational? Grothendieck would not approve!
Aug 17 02:52:57  heh
Aug 17 02:53:13  can I just change the "package com.example.android.accelerometerplay;" to "package .com.mytest.bubbles;" ?
Aug 17 02:53:17  So Leeds, do you have any guesses? I'm a bit baffled...
Aug 17 02:54:30  I've been hearing some stories popping up recently about him calling libraries, or people trying to find him, and him responding to them. I wonder if it's all urban myth or if there's something to it.
Aug 17 02:54:49  Etale: as I just said, I don't use eclipse, which is where I'd guess the problem might be - someone else will have to help you, sorry
Aug 17 02:54:51  The whole story seems fantastical. There's isn't even a video of the guy. Not even a piece of audio.
Aug 17 02:55:02  Okay, thanks anyways, Leeds.
Aug 17 02:56:25  Anyways, grothendieck. I've never met the guy, but I know for a fact that he has read my name. So that should tell you something. I'm junior at what I do, but I've at least gotten that far in my career.
Aug 17 02:57:18  Etale: Heh. I'm working on a problem related to the classification of singular qutinic hypersurfaces, working on the algorithms ( == working on construcive proofs) to do this is pure math, and the motivation to do this is because actually constructing the sheaves without a computer is instractible by hand
Aug 17 02:57:56  Singular! Classification in what way?
**** ENDING LOGGING AT Fri Aug 17 02:59:58 2012