**** BEGIN LOGGING AT Tue May 15 02:59:59 2012 May 15 03:02:28 does anyone know how to get rid of the holo-themed default layout if I'm trying to use a GLSurfaceView? I deleted main.xml (mimicking the BasicGLSurfaceView sample) and it's still there when I run it May 15 03:10:46 anyone awake want to do me a quick off-topic favour? send me a test email so I can see if my filters are working? May 15 03:11:08 Leeds: where to ? May 15 03:14:49 tnzr: what are you trying to remove exactly? May 15 03:17:20 hey i have a visualizer in a tabhost and when i run the app and go to tht tab i get: setCaptureSize() called in wrong state: 2 May 15 03:20:01 why the ndk smaples don't contain the c header files, and i use javah to generate the c headers. May 15 03:23:26 hi, anyone can answer my questions? much appreciate, i'm a newbie on ndk May 15 03:30:46 hrm May 15 03:30:55 with gpu emulation on... the graphics look more pixelated May 15 03:35:41 * Leeds contemplates listening for undocumented broadcast intent... hmm... May 15 03:49:10 you can detect unicorns May 15 03:49:15 just register for the unicorn receiver May 15 03:53:32 charlie … come on charlie, come to candy mountain ! May 15 03:54:41 so, a general question... if you were trying to build an alert/alarm which was as obnoxious as possible, really trying to get the user's attention... May 15 03:55:14 huh.. what... grumble... candy mountain... May 15 03:55:17 loud noise, brightly-coloured dialog, maybe flash the screen brightness to 100% and back? May 15 03:55:35 sounds about right. I'd change the color for maximum effect. May 15 03:55:41 #000 to #fff May 15 03:55:52 maybe turn on the LED too May 15 03:55:53 ;P May 15 03:56:01 right, LED - that'll help :) May 15 03:56:09 hehe, use the flash :D May 15 03:56:20 this will *really* make sure they see my ads - never mind pansy notification-bar crap May 15 03:56:28 yeah, the flash is the LED i had in mind :) May 15 03:56:51 (this is not for ads, it's for an alarm the user *must* have manually enabled) May 15 03:57:03 you can play hypnotic patterns with the flash, for mind control. May 15 03:57:35 but don't induce a seizure :/ May 15 03:57:43 just deleting some old donut and cupcake AVDs... May 15 04:03:53 leeds, dont bother asking that on any email threads May 15 04:04:03 dianne will whip your ASS May 15 04:05:03 yeah, Dianne scares me May 15 04:07:16 http://stackoverflow.com/questions/3588093/button-and-glsurfaceview <-- does anyone know which LayoutParams to import for this? May 15 04:09:35 Toggle buttons.. do I have to approach them like normal buttons and give them onclicklisteners and make my own toggle logic inside? Or is there some other method? May 15 04:10:20 hi all May 15 04:10:41 running into a bit of an issue with a listview i'm hoping someone can help me out with... May 15 04:11:40 rather with an ArrayList, i have an arraylist element called "hasChildren". in a listview.onClick override, i'm trying to do a simple compare. if (list.get(position).get("hasChildren") == "1") { ...do stuff } May 15 04:12:16 now, if I Log.i(TAG, list.get(position).get("hasChildren")); LogCat shows me "1" May 15 04:12:29 but the code inside the if {} block never executes May 15 04:12:56 i'm thinking maybe there's something missing/different about one of the strings. either some underlying data type, a non printable string terminator, etc. May 15 04:13:13 something Log.i isn't showing me... May 15 04:13:36 anyway, that's the issue i'm having. any suggestions? May 15 04:17:44 b1n0ry is hasChildren a string? May 15 04:17:54 yes May 15 04:18:12 try "1".equals(list.get(position).get("hasChildren") May 15 04:18:17 and why aren't you using a boolean? May 15 04:18:43 the value is being returned from JSON output on a web service May 15 04:18:50 ahh May 15 04:19:01 and you can't get it as an integer? May 15 04:19:24 for some stupid reason, my JSON library quotes everything as either strings or arrays May 15 04:19:34 ... May 15 04:19:39 read the json spec on json.org. May 15 04:19:41 why not use the built in json that isn't stupid then? May 15 04:19:49 lol, it's php's simple json_encode() May 15 04:20:05 right... you can pull that as an int May 15 04:20:17 when you parse it on the android side May 15 04:20:24 or even set it as a boolean when you parse it May 15 04:20:33 if it's either 0 or 1, why? int = 4 bytes. 1 character string = 1 byte. May 15 04:21:05 not that 3 bytes makes a huge difference with today's memory and buffers... May 15 04:21:22 well try with .equals() instead May 15 04:21:54 giving it a shot May 15 04:22:09 launching my emu now May 15 04:22:29 btw, i've been 'programming' in the android sdk for all of about 4 days now, lol. May 15 04:22:46 so i apologize in advance for my naivety May 15 04:23:36 .equals() seems to work :) any indication as to why == doesn't work consistently for string compares? May 15 04:23:47 (just trying to understand) May 15 04:27:03 hello all, I'm in the process of developing my first android app and need a graphing packages for me to pipe in realtime data every 30 sec or so. Doesn't have to be anything fancy, the vertical axis will only have four or five values.Developing obviously with android sdk. May 15 04:28:29 I've been looking at chartdroid, androidplot, achartengine, and others May 15 04:36:08 if i have two layouts each with a textview, what is the 'scope' of the textview ID? could i call them both textView1 since they're both on different layouts or should every control/element have a unique ID? May 15 04:36:40 you can name them the same May 15 04:37:08 thanks, jeppy. if i alter one of them dynamically, is the target based on which layout is set at the moment? May 15 04:54:36 What triggers "onPageFinished" in the WebViewClient class? I've being trying to look around the source code but can't seem to find what it is May 15 05:28:07 I wish the dev-account would update more often :( May 15 05:28:13 What triggers "onPageFinished" in the WebViewClient class? I've being trying to look around the source code but can't seem to find what it is May 15 05:29:35 keep digging May 15 05:31:03 DallaRosa, repo grep onPageFinished May 15 05:35:06 anyone familiar with adding buttons to a GLSurfaceView? May 15 05:36:32 you can't "add a button to a GLSurfaceView" but you can: implement your own button in opengl, or overlay a button over the view, using a RelativeLayout. May 15 05:37:30 i'm overlaying buttons on one using a LinearLayout May 15 05:37:43 but I just don't know how to have some at the top and some at the bottom May 15 05:38:24 jake sure as hell has been mia since getting his new job May 15 05:38:32 He's around May 15 05:38:44 he flew somewhere a few days ago May 15 05:38:48 I can do layout.setGravity(Gravity.CENTER | Gravity.TOP); then add the button for the top, then use layout.setGravity(Gravity.CENTER | Gravity.BOTTOM); and add the bottom ones but i don't seem to understand how it works because the Gravity.TOP seems to be ignored May 15 05:39:03 basically one button isn't fitting on the screen so I want to reposition one from the bottom to the top to make some room May 15 05:51:08 ron_frown: have you played with SourceTree for git ? May 15 05:51:24 http://www.sourcetreeapp.com/ May 15 05:51:42 i think the other day you mentioned tower; the is free though : May 15 05:58:03 tnzr: relative layout would be easier. May 15 05:58:20 infact, you can't overlay something with a linear layout. it doesn't stack elements on top of each other May 15 05:58:38 you need to use either FrameLayout or RelativeLayout in some capacity if you want overlay. May 15 05:58:53 a LinearLayout can indeed be overlayed itself, but only by using one of the previously mentioned layouts. May 15 06:01:41 readme: ok cool, I will read up and experiment :) May 15 06:01:49 Okay, now I really hate Wifi. And pidgeon's irc lol May 15 06:02:03 pidgin's irc is not very good May 15 06:03:21 not at all May 15 06:03:53 pfn: CallbackProxy.java May 15 06:04:08 I was looking the grepcode (online) but that was taking crazy long May 15 06:04:43 just remembered I had the source code in a server May 15 06:10:00 Anyone know how to mimic a lockscreen? there are many apps out there.. I don't know how it is done. May 15 06:10:36 PowerInside: What do you mean? Like, make a custom lock screen thats an application? May 15 06:11:02 Exano1: Exactly.. custom lockscreen like that fake fingerprint scanner.. May 15 06:19:04 PowerInside not really the topic to be discussed here May 15 06:19:13 but lockscreen is not separate from rest of android May 15 06:19:17 you can simulate it May 15 06:19:21 or you can replace it May 15 06:19:42 PowerInside: googling never hurts. May 15 06:19:42 http://stackoverflow.com/questions/2140964/android-lock-screen-source-code May 15 06:20:12 or "stackoverflowing" May 15 06:20:23 soing :) May 15 06:20:28 pl May 15 06:20:30 oops May 15 06:20:31 ok May 15 06:20:35 that sounds better ^^ May 15 06:21:31 DallaRosa: I did find that link. Honestly, I am not looking for modifying the original lockscreen.. just finding out a way to make/mimic one May 15 06:21:46 Like the ones on the market May 15 06:22:37 1. you learn how to make a lock screen (looking at the original is a good start) 2. you create your own app that does what the original lockscreen does + what you want it do May 15 06:22:40 what about that? May 15 06:22:41 : May 15 06:22:42 :p May 15 06:24:10 Why would I need to look at the original source code of the lockscreen? that would show way too much internals.. Basically I figured it out now.. I'd just need to make a simple app, and then disable the home and back key. That's good for starters like me I suppose :) May 15 06:27:16 PowerInside: except you can't 'just' disable the home key May 15 06:27:29 i have two webviews in my activity. if i set cache settings using something like view.getSettings().setAppCacheMaxSize(8 * 1024 * 1024); is the cache shared b/w the two webviews or each has its own cache? May 15 06:28:19 Leeds: elaborate if you may? I haven't been there.. I just heard the home key can be overridden. May 15 06:28:32 PowerInside: feel free to try May 15 06:58:28 does someone know if is possible to make a clickable logo (with a little arrow on the left when it do something) in the ActionBar without using Window.FEATURE_CUSTOM_TITLE? Like in google play May 15 06:59:20 mastroWork: the clickable logo is part of the default actionbar, actually May 15 06:59:57 for ABS it would be actionBar.setHomeButtonEnabled(true); I'm sure its the same for the default AB May 15 07:00:19 Ge0rG, let me see.. May 15 07:00:32 mastroWork: but you should be using actionbarsherlock anyway May 15 07:03:48 bbl May 15 07:04:32 Ge0rG, why ActionBarSherlock? anyway I don't see how to add the arrow on the left of the logo and how to handle the click :) but thanks you gave me some direction May 15 07:19:39 I have applied this : http://developer.android.com/reference/android/content/res/ColorStateList.html to a textView in my listview item. But it does not work at all. The color of the text does not change on click. How to fix it through xml itself? May 15 07:20:06 maybe you messed up the logic May 15 07:20:10 paste your code May 15 07:20:49 another thing is about whether the textview is focusable when inside the listview item May 15 07:20:59 not sure about that, you might have to set it May 15 07:23:05 readme: sure May 15 07:24:25 readme: https://gist.github.com/2699734 here it is May 15 07:24:55 I applied this drawable to android:textColor attribute of the textview in the ListItem layout May 15 07:24:55 kamehameha May 15 07:25:02 napster: that last one might be messing it up May 15 07:25:04 May 15 07:25:33 I believe you need to explicitly specify colors in relation to what state something is in May 15 07:25:44 readme: I see, let check that May 15 07:26:19 also if your state_enabled is false, I don't know how you're going to press it May 15 07:26:27 so the second item is not going to ever be hit May 15 07:26:46 so that cuts it down to only possible: light grey on disabled, and yellow on focus. May 15 07:27:12 readme: It is not getting focused either May 15 07:27:23 it's probably not focusable May 15 07:27:32 try testing it outside of the listview first May 15 07:27:53 and I think you want the second one (light blue) to be state_enabled=true May 15 07:27:56 readme: sure May 15 07:27:59 ok May 15 07:29:48 readme: just changed state_enabled=false to state_enabled=true and it works May 15 07:30:14 but not focusable yet. Since it is a list item, should I do something else to make it focusable? May 15 07:30:31 interesting, i wonder what educational software they plan on using http://phandroid.com/2012/05/13/thai-govt-signs-32-8-million-deal-to-purchase-android-tablets-for-education/ May 15 07:30:58 probably oregon trail May 15 07:31:08 lol May 15 07:34:12 napster: you can try setFocusable() and setFocusableInTouchMode() May 15 07:34:20 I'm not sure if that's the appropriate solution, though. May 15 07:34:38 readme: I did that through xml but no change May 15 07:34:43 let me digg on it May 15 07:36:38 http://blog.jelastic.com/2012/05/14/how-fast-are-jvm-based-languages-growing-among-developers/ May 15 07:37:57 napster: also maybe try drawSelectorOnTop; i always get that thing confused May 15 07:38:42 g00s: ok, let me try that May 15 07:38:50 i have a hard time believing groovy is so high up there. it was popular in like 2009 May 15 07:41:25 Hi all May 15 07:43:53 g00s: yeah, it's false positives May 15 07:44:04 it matches phrases like "Looking for a groovy waitress" May 15 07:44:18 * readme just left that as a comment, but it's pending moderation. May 15 07:45:10 :) May 15 07:46:08 scala and clojure are probably less noisy signals, though. May 15 07:46:15 I doubt those would have many false positives. May 15 07:47:46 I use fragments, but for the life of me I do not understand when the activity restarts because of orientation change why the fragment gets added back? May 15 07:48:02 it works on 3.2 but not 3.1 android May 15 07:48:42 been at this for 28 hours straight now and still can't find a solution.sigh May 15 07:51:36 Blou_Aap: its probably best to pretend 3.x doesn't exist ;) May 15 07:52:05 i wish in my manifest i could say … api 8 and up except HC :) May 15 07:53:38 i want to trust me May 15 07:53:49 but my company wants support for that for the clients May 15 07:53:59 because they are fucking morons May 15 07:54:01 why would you ignore Honeycomb? May 15 07:54:04 if you support ICS? May 15 07:54:13 i consider all of HC beta May 15 07:54:21 me too May 15 07:54:22 it was buggy shit May 15 07:54:23 that's not an answer May 15 07:54:28 omg i hate honeycomb May 15 07:55:20 how can the same code work in 3.0.0, 3.0.1, 3.2 and 3.2.1 but not on 3.1 ?!?!?!?!? May 15 07:55:38 WHAT the actual fffffffffffff#$%@#$% May 15 07:55:47 also, all HC has 3.2% share, which is not likely to increase because of ICS, but it left a trail of bugs to deal woth May 15 07:55:56 like what? May 15 07:55:56 *with May 15 07:56:11 Blou_Aap: you provide no context to your question therefore will never receive an answer May 15 07:56:28 i did earlier May 15 07:56:34 and yesterday a few times May 15 07:56:59 * JakeWharton jumps in his time machine May 15 07:57:19 JakeWharton arrives in 2014 and realizes everyone is using windows phone 8 May 15 07:57:24 bwahahaha May 15 07:57:29 its like biff won after all May 15 07:57:42 i have an activity that restarts because of orientation changeexactly what I want. BUT I have fragments, but I update the layout with layout-port, etc May 15 07:57:47 things will change but that will never happen May 15 07:57:51 but bring me back one of those cool levitating skateboards May 15 07:58:13 but when i change orientation, the fragment doesn't get added back, just all my other views are there May 15 07:58:30 "I update the layout with layout-port" May 15 07:58:31 explain May 15 07:58:50 :/ May 15 07:58:56 my xml views May 15 07:59:10 I have different ones for portrait and landscape May 15 07:59:18 Blou_Aap: layout xml, code … you have some splanin to do May 15 07:59:21 layout and layout-port May 15 07:59:29 * JakeWharton shudders May 15 07:59:30 -_- May 15 07:59:47 so you use layout/ for landscape and layout-port/ for portrait? May 15 07:59:57 how… unconventional May 15 08:00:08 i don't know how to explain common android stuff May 15 08:00:17 ye because it's for tablets only May 15 08:00:32 and landscape is default for honeycomb . . . -_- May 15 08:00:55 there is no default orientation for a platform version May 15 08:01:05 anyways May 15 08:01:13 nvm then May 15 08:01:16 ... May 15 08:01:39 I wanted you to explain what "I update the layout" meant but what you meant was that you provide different layouts based on resource qualifiers and let the platform switch them for you May 15 08:01:58 JakeWharton: have you ever seen this? any thoughts? http://www.sourcetreeapp.com/ May 15 08:02:29 g00s: I have seen it before, yes. Used it, no. Atlassian makes amazing tools so I'm sure it's great. May 15 08:02:51 I learned on the command line so that's where I'm most comfortable May 15 08:03:01 :) May 15 08:03:10 I also use IntelliJ IDEAs integration with git sometimes for trivial tasks May 15 08:03:17 ok May 15 08:03:19 It's free so I might as well install May 15 08:05:21 trying to quickly write coding demos for my talk tomorrow May 15 08:05:27 I shouldn't have procrastinated this May 15 08:05:37 JakeWharton: what topic did you decide ? May 15 08:07:01 it's broad: writing APKs that work on every device properly May 15 08:07:14 it's about abstraction techniques, design patterns that scale, and (of course) my libraries May 15 08:07:18 hmm, sounds good May 15 08:07:40 I classified the talk as "intermediate" when I signed up so I can't go too crazy May 15 08:08:46 I also have to publish a blog post and cut a new ABS release before then too May 15 08:08:53 and it's already after 1am May 15 08:09:02 :O May 15 08:09:28 I want to finish my demos and submit the pull request for the blog post. May 15 08:09:47 I can deal with any feedback on it tomorrow and do the release in like 5 min at the conference May 15 08:09:56 I should do it as part of my talk, actually May 15 08:11:05 all of my code demos are written using ICS APIs and then I'm going to back port them while talking May 15 08:11:18 I've never tested back porting them though so it will be a very real-world experience May 15 08:13:05 LOL May 15 08:13:15 I strongly advise you to test before you get embarassed. May 15 08:13:21 Always know the answers beforehand. May 15 08:13:55 I know they'll eventually work as I picked examples that are already ported in the sample of each library May 15 08:14:21 JakeWharton: i was reading about that system installed in a bunch of bars in SF called SceneTap, have you heard of it? May 15 08:14:28 yeah you linked it earlier May 15 08:14:29 it might be a good idea not to risk it May 15 08:14:37 maybe, backport it before hand May 15 08:14:42 and save some steps May 15 08:14:56 I'm risking it May 15 08:15:04 no balls no glory ! May 15 08:15:11 I'm not tricking my people into using my libraries under the guise of simple conversions May 15 08:15:23 I want the conversions to actually BE simple and straightforward enough that I can do them without ever having done them before May 15 08:15:53 ABS is probably the most steps, switch the theme, switch the base class, switch getActionBar to getSupportActionBar, change menu imports May 15 08:16:02 but that's it May 15 08:16:14 yeah but things happen in programming sometimes, like a stray character here and there, and when you are in front of a crowd you may be too nervous to detect the problem May 15 08:16:30 then you will be up there for 5 minutes trying to figure out where you missed the semicolon May 15 08:16:56 well I'll let you know where I crash and burn or not :) May 15 08:17:05 oh, i'm sure it will be on the internet to watch May 15 08:17:09 haha May 15 08:17:13 i don't think they allow filming May 15 08:17:17 =O May 15 08:17:23 I know right May 15 08:17:34 I might give the talk here at work and we can film it and post it online May 15 08:17:47 but that'll be a second runthrough May 15 08:20:42 hi May 15 08:30:21 Working with 'Google's AutoComplete Places Api' which connects to server and retrives a json file. Following a tutorial but I seem to be getting "filenotfoundexception" can any spot anything wrong? - http://pastebin.com/a2gpwM2E May 15 08:33:07 29 hours and I got it it. Google stick this up your ass Im finally gnu get some sleep!!!!! :D/-< :D\-< :DZ-< May 15 08:37:24 Blou_Aap: good gnu sleep :) May 15 08:37:37 gna* :D May 15 08:37:46 :D May 15 08:37:48 not the license May 15 08:37:52 lol May 15 08:37:57 glp'ed sleep May 15 08:38:12 :) May 15 08:40:23 Blou_Aap: what was it? May 15 08:46:18 t432, I cannot pre-inflate a fragment for some reason on api 12 May 15 08:46:47 I have to recreate it for the orientation, well more to it but something like that May 15 09:01:21 * alankila hands stupidest poem award posthumously to speedyghost May 15 09:13:01 hi, what is needed to run the iptables command on my android phone? May 15 09:15:20 is there any easy way to make a vanilla looking toast with centered text? I've tried google and they're all custom toasts May 15 09:16:41 isn't toast centered by default? May 15 09:16:47 the toast itself is May 15 09:16:50 but the text is left aligned. May 15 09:16:57 at least when there's two lines. May 15 09:16:59 uh. what a pity. May 15 09:17:11 so, um, I'd like to center align the text. May 15 09:17:17 you know, professional looking apps and whatnot. May 15 09:17:58 yeah, the devil is in the details May 15 09:19:04 I've tried using t.setView() on a TextView with gravity.center, but there's no background to the toast. May 15 09:19:13 chrizc: Toast.makeText(...).getView().setGravity(); May 15 09:19:30 of course, you'll need to save references to it May 15 09:19:35 those aren't chained methods. May 15 09:21:51 readme; .getView() returns a LinearLayout, which has no .setGravity() May 15 09:22:31 Well, it returns a View, but when I tried to cast to TextView I got a CCE. May 15 09:23:08 hm May 15 09:23:18 lets see what kind of view it actually has. May 15 09:23:37 readme; disregard, cast to LinearLayout, then .setGravity(Gravity.CENTER_HORIZONTAL), and it moved the toast slightly up, and the text was still left aligned. May 15 09:24:05 probably cause the width of the view isn't taking up the whole toast May 15 09:24:17 try setting the layout_width to fill_parent May 15 09:24:19 setLayoutParams May 15 09:24:24 Hi all, is there a way to know if an ImageView has an image attached to it? May 15 09:24:47 I have an image and i'm setting the image from the web May 15 09:24:53 there must be a textview in there somewhere, too May 15 09:24:59 and I need to know if it's set or not May 15 09:26:32 View v = inflate.inflate(com.android.internal.R.layout.transient_notification, null); May 15 09:26:36 bingo May 15 09:26:47 ooh. May 15 09:27:41 TextView text = getView().findViewById(android.R.id.message); May 15 09:27:56 ah. May 15 09:28:00 text.setGravity(Gravity.CENTER_HORIZONTAL); May 15 09:28:17 text.setLayoutParams(layout_width = fill_parent) May 15 09:28:19 should do it. May 15 09:28:52 http://pastie.org/3914241 May 15 09:29:10 readme; .setLayoutParams wasn't needed May 15 09:29:13 but the rest did the trick May 15 09:29:25 cool May 15 09:29:41 http://pastie.org/3914248 <- that's how it all wound up May 15 09:33:33 should create a static factory for it now May 15 09:34:08 hm? May 15 09:34:15 ohh. May 15 09:34:19 take that code and stick it somewhere :) May 15 09:34:27 like, ToastHelper May 15 09:34:41 Yarr. May 15 09:34:49 "take that X and stick it somewhere" usually means something different May 15 09:44:32 can anyone give me any clues to a rendering issue I am having with GridView, been at it 3 days with same results :S List Selector paints over other cells, cells initially had a view which was wrap content but I have since made them specified height and width based on reading May 15 09:45:13 When I scroll through the grid with a trackball/keyboard eventually it stops painting some elements May 15 09:45:14 hi, i want to display a list of items. i want to add the items in blocks to the list. at the bottom of the list should be a button "show more". how would i do that? May 15 09:46:26 m1hael: you could make the adapter report 1 more in count May 15 09:46:46 and when last element requested by view return your custom Show More view May 15 09:48:18 lab: but doesn't listview only supports listadapter and listadapter only supports one kind of entry!? May 15 09:48:49 you have to extend an adapter May 15 09:48:55 so you will have a custom adapter May 15 09:50:29 m1hael: http://jnastase.alner.net/archive/2010/12/19/custom-android-listadapter.aspx May 15 09:50:31 lab: oh. sounds like much work May 15 09:50:47 m1hael make a class and extend BaseAdapter May 15 09:50:47 it's very small amount of work May 15 09:50:58 Eclipse will automatically put in most of the override stuff for you. May 15 09:51:01 lab: just looking at the article. thanx May 15 10:04:48 nobody seen abnormal painting issues with GridView? May 15 10:05:06 Android 2.3.3 May 15 10:05:27 wheee May 15 10:05:33 xmms2d now plays music on android \o/ May 15 10:06:00 * Zharf happy May 15 10:09:18 idk what that is May 15 10:09:36 what what is May 15 10:09:59 that May 15 10:10:06 http://xmms2.org/wiki/Main_Page that? May 15 10:15:31 is it normal, that an SSL handshake takes a few seconds on android? May 15 10:37:10 hi, I have a service that needs to make an http request when onPositionChanged is triggered, but given that this cannot be executed from main thread, and I don't want to create a new thread every time it gets triggered, what would be the proper way to do this? May 15 10:38:37 betim: AsyncTask. May 15 10:44:33 hmm, interesting http://www.apress.com/9781430242482 May 15 10:44:43 i wonder if JesusFreke wrote it :| May 15 10:46:01 not exactly cheap... May 15 10:46:25 "How to download an Android app and decompile it into its original Java source and HTML5 and CSS code" May 15 10:46:36 yeah, right. my app's HTML5 and CSS code. May 15 10:54:44 * hackkitten waves at g00s o/ May 15 10:55:16 hi hackkitten :) siri said the lumia 900 was the best phone, and what it says is trueright ? :D May 15 10:55:46 apparently someone had a stiff word with siri and she doesn't say that now May 15 10:57:22 g00s > yup, the Lumia 900 is a nice phone indeed :3 May 15 10:57:28 far better than those silly iPhones May 15 10:57:39 :) May 15 10:57:50 Leeds > threats of removing Siri's memory modules? May 15 10:58:09 I'm sorry, Steve, I can't do that May 15 10:58:18 :D May 15 10:58:28 * hackkitten giggles~ May 15 10:58:40 * g00s sticks hackkitten 's tail in siri's memory port May 15 10:58:48 * hackkitten hacks into Siri May 15 10:59:04 * hackkitten starts the Kittehnet revolution~ May 15 10:59:23 * g00s remembers the scenes in stars wars where r2d2 accessed the deathstar through its port May 15 11:01:08 I had to cover my eyes for that. Too hot to handle. May 15 11:02:43 :| May 15 11:29:45 I'm trying to create a file in my app's cache directory (getCacheDir()), but it doesn't seem to be creating the file as I can't find it on the file system. or are they hidden files? May 15 11:34:41 also, no exceptions thrown when I write to the file, or use .createNewFile()... it just doesn't appear. May 15 11:39:54 hi guys, i am creating an app where i have a button.On clicking the button i need to show one dialog saying " you have not confirmed the link in your mail ".The dialog has a button ( check mail ),on clicking the button i want to open a dialog having list of email apps and when user chooses one out the list ,it has to direct him to inbox.How can i do this? May 15 11:41:17 interesting fact.. the unix timestamp at the moment starts with 1337 and will continue to do so for the next 11 days.. make the msot ofi t May 15 11:42:44 mapas offiline, alguem ja conseguiu? May 15 11:42:47 is there a document how to build .apk from command line? May 15 11:42:57 offiline maps, someone already got? May 15 11:43:33 anyone familiar with xml shapes? May 15 11:43:48 i want to draw a line at the bottom of a textview May 15 11:44:06 but i don't see how to set where the line is drawn May 15 11:46:23 JEPPY - want to draw into the TextView? May 15 11:46:40 yes, in xml May 15 11:47:46 by default setting the textview's background to the shape (a line) draws that line vertically centered. I want it at the bottom. May 15 11:48:15 jeppy: drawableBottom might do what you want May 15 11:49:24 HDroid, looks promising May 15 11:53:31 Hi all May 15 11:53:57 is there a way to force one layout on top of another in a RelativeLayout? May 15 11:54:22 like having a popup image on top of a different view? May 15 11:55:10 AFAIK, the order in which they're added decides the Z. May 15 11:55:24 appel1: any thoughts? May 15 11:55:34 you were much help yesterday May 15 11:57:29 I have a crazy memory leak that I need help finding the cause. It's when the phone detects a contactless card through the NFC interface. Logcat goes crazy with GC_CONCURRENT or GC_MALLOC and the app hangs. Prob if I wait long enough it kills everything I guess. How do I track down the cause May 15 11:57:49 looking at http://developer.android.com/guide/developing/building/building-cmdline.html May 15 11:57:56 but ant says no build.xml May 15 11:58:56 I'm using async task to read the contactless card and process May 15 11:59:25 and using commonsware guys way of linking and delinking with the activity to handle rotations May 15 12:00:32 miha, try "android update project -p ." May 15 12:01:49 oh ok, thx May 15 12:02:48 any thoughts? May 15 12:03:28 thepoosh: z-order is determined by index of the child views in the parent view group May 15 12:03:42 thepoosh: but I see that HDroid already wrote that May 15 12:03:45 can I set it? May 15 12:04:28 btw, yesterday, I saved an array with all the activities for the app May 15 12:04:29 is there a way to run iptables on a device without requiring root? May 15 12:04:33 and closed them all May 15 12:04:46 mango-: trying to automatically modify source and build custom apk :) May 15 12:05:01 for (Activity a : Globals.activities) May 15 12:05:05 a.finish(); May 15 12:05:05 so i guess http://developer.android.com/guide/publishing/app-signing.html is next May 15 12:05:17 do i need to look into how animation is done if i want to show playing cards on screen? May 15 12:05:43 i have 13 cards to show May 15 12:05:47 thepoosh: not sure how well bringToFront and friends work with relative layout. If nothing else you can control the order in which you add the child views May 15 12:06:17 appel1: but there's a View.setZindex() ? May 15 12:06:31 jaami: if you.. want to animate them :P May 15 12:08:03 MDroid: just want to place them in 2,3 lines , ltaer will animate whn user touch any card May 15 12:08:20 thepoosh: there is? May 15 12:08:35 no but there is a View.bringToFront() May 15 12:08:40 testing it now May 15 12:08:41 trying to use SdkController Multitouch. there's usually just a blank screen on my phone other than "Waiting for connection", but i did get it to show updates of the emulator screen once. but not touch response in the emulator. help. May 15 12:09:00 appel1: worked perfectly!!! May 15 12:09:07 thepoosh: great May 15 12:09:12 yep May 15 12:10:31 is is possible to make a game without looking into how animation is done in Android. asking because i no nothing about animation and its first time i will be working on it. just want to avoid wasting time if there is other option. not sure what will be the right way May 15 12:12:01 lets make the question real simple. is it possible to make a cards game in android without expolring animation libraries? May 15 12:12:10 jaami: there are many types of games, not all of them need more than the simplest animations May 15 12:12:24 jaami: yes, but it'll suck May 15 12:12:48 /msg nickserv identify iloveapple123 May 15 12:12:59 so, there is animation the right way to go. May 15 12:13:43 try looking at thenewbostons tutorial video on animation May 15 12:13:57 they hae some stuff that will help with card games May 15 12:14:03 oh yeh, i have 150 vids of him already May 15 12:14:04 jaami: if you are satistified with 2D, https://developer.android.com/guide/topics/ui/custom-components.html might do, for rest http://developer.android.com/guide/topics/graphics/opengl.html ? May 15 12:14:28 also marakana is good but havent found any animation related vid of marakana May 15 12:15:09 jaami: he has the video about surfaceView it has the basics for a card game May 15 12:15:18 dragging images from place to place May 15 12:15:35 miha: Thanks for the link. i really dont want to read books. watching vids is much easier and save a lot of time May 15 12:15:46 hardly May 15 12:15:55 jaami: oh sorry. i rarely watch videos. want to copypaste sample code :D May 15 12:16:03 guys.. where should I place the code for options menu? I am getting errors like Menu cannot be resolved to type etc May 15 12:16:12 thepoosh: i will check that in 5 minutes. May 15 12:16:20 cool May 15 12:18:01 thepoosh: may i ask how long have you been in android development? and if you like to tell me what kind of app you like to develope? May 15 12:18:17 I'm kinda new to this May 15 12:18:36 been working natively for about two and a half months May 15 12:19:21 it was big question for me , where to start (what kind of development do i like) May 15 12:20:22 I'm not sure that games are the right place to start at May 15 12:21:19 thepoosh: right, i have the same feeling. but developing financial apps is not the answer either. May 15 12:21:32 ארט ךןכקדאטךק May 15 12:21:35 :S May 15 12:21:37 oops May 15 12:21:42 try lifestyle May 15 12:21:53 maybe an RSS feeder May 15 12:22:02 thepoosh: infact small screen is no good for entry forms May 15 12:22:15 what?! May 15 12:22:19 thepoosh: lifestyle? what is that? May 15 12:22:29 hmmm May 15 12:22:57 https://play.google.com/store/apps/category/LIFESTYLE May 15 12:23:02 jaami: ^ May 15 12:24:14 hi, i have read the article "Custom Android ListAdapter" from John Nastase and implemented a BaseAdapter on my own. The adapter is filled but somehow it doesn't work. No items are shown. How does the adapter notifies the view that new items have been added? May 15 12:24:25 thepoosh: for example registration form may include 10 fields and without scrolling there is no way to fill all of them. tablet may be good for financial apps May 15 12:24:35 article: http://jnastase.alner.net/archive/2010/12/19/custom-android-listadapter.aspx May 15 12:24:36 thepoosh: im checking lifestyle May 15 12:26:11 m1hael: you do it by calling .notifyDataSetChanged() or (Invalidated) May 15 12:26:24 thepoosh: is there a sample programe based on just intents? May 15 12:26:38 איקרק ןד מם דובי איןמע May 15 12:26:43 there is no such thing May 15 12:26:47 anyone point me in the direction of a site where I can post a logcat and then link on here? May 15 12:26:50 hrnt: thanx May 15 12:26:53 is linking allowed? May 15 12:27:01 Intents are the way to communicate between Activities May 15 12:27:14 tbellenger: pastebin.com May 15 12:28:04 thepoosh: yeh, you can use intents to use existing activities instead of creating them from scratch May 15 12:28:29 i think you're not understanding what intent means May 15 12:29:34 thepoosh: hmm, may be i am not understanding actual purpose of intents. for example i need a dialer and i just use intent and invoke the activity May 15 12:30:00 that activity is in another process May 15 12:30:02 thanks wongk_ May 15 12:30:32 once you've invoked the dialer, you're out of the picture until the user comes back to your app May 15 12:30:41 here is the memory leak I was talking about. Something around line 25 or 26 I guess. Can anyone help? http://pastebin.com/QefJbqMk May 15 12:31:42 scared myself :/ May 15 12:31:54 boo!! May 15 12:32:03 tbellenger, you're probably keeping a reference to a context May 15 12:32:36 vnc'ed into a laptop at home May 15 12:32:36 and accidentally clicked facetime May 15 12:32:36 then saw weird metal bars May 15 12:32:36 and then realized this was a laptop in my a/v room of my basement May 15 12:32:36 :| May 15 12:32:37 Hello guys, I have a function for writing logging messages on the screen. I add a timestamp to it, I do that by making a new Time object everytime and call .setToNow(). But I don't think it's a clean way to create a Time object each time I have to log. What do you think? May 15 12:33:20 I'm trying to create a file in my app's cache directory (getCacheDir()), but it doesn't seem to be creating the file as I can't find it on the file system. or are they hidden files? May 15 12:33:31 wongk: and thats the case with all activities, only one stay current does not matter if i use existing or made my own. plz correct me if im wrong May 15 12:33:43 you are wrong May 15 12:34:21 there's a very big difference between an activity you created that lives in your process and sending a broadcast intent and hoping another process handles it May 15 12:34:37 chrizc, did added permission to access filesystem in AndroidManifest.xml May 15 12:34:48 oh. May 15 12:34:49 derp May 15 12:34:50 did you ? May 15 12:34:55 jeppy: yeah I guess. Do you know any way to track down where this might be? I'm guessing I've done the asynctask wrong by holding a reference to the activity that launched it May 15 12:35:27 tbellenger, that is a problem May 15 12:35:30 There's no permission for accessing internal storage May 15 12:36:03 but without that I can't handle configuration changes. I was trying to follow the commonsware model where he links and unlinks to the asynctask May 15 12:36:06 jaami: there's also not some "repository" of activities for you to repurpose w/o having to create your own May 15 12:36:33 Number5 which permission is that? May 15 12:36:53 SimonVT, really? Ok, as you're the most experienced here. May 15 12:37:10 Only for external May 15 12:37:12 chrizc, check out android manifest and permission May 15 12:37:15 tbellenger, when the configuration changes, your activity (and context) are leaking May 15 12:37:24 SimonVT, thnx, now I also know it :P May 15 12:37:28 Number5 but as SimonVT just said... there's no permission for it May 15 12:37:31 so why isn't it doing anything? May 15 12:38:00 Are you root, and where are you looking? May 15 12:38:08 wongk: just thinking if a created service work more like a sofisticated app by using just intents. May 15 12:38:16 http://pastie.org/private/k7um4kqrnilm0xtqviza <- that doesn't do anything May 15 12:38:40 tbellenger, a workaround could be to save the data to persistent storage in the asynctask and retrieve it May 15 12:39:12 wongk: also i know that activities return data back to where intent was fired from May 15 12:39:30 jaami: they can, that doesn't theay always do May 15 12:40:09 SimonVT; I'm using ADT's File Explorer, and looking in /data/data/ May 15 12:40:14 I only want the activity in the async task so that I can still access it to do the onProgressUpdate stuff May 15 12:40:26 On the emulator? May 15 12:40:37 SimonVT; on my phone, which I'm using remote debugging on. May 15 12:40:51 but I think I'm on the right direction now. Never seen a memory leak like that though. May 15 12:40:55 So it's rooted May 15 12:41:05 nope? May 15 12:41:06 jeppy: thanks for the pointer May 15 12:41:38 Can you see any files at all in data/ ? May 15 12:41:42 yes May 15 12:41:57 I see my shared prefs. May 15 12:42:04 tbellenger, you want the activity in an async task?? May 15 12:42:07 Strange, that should be private May 15 12:42:21 Anyway, double check the path May 15 12:42:32 And why don't you just try and read the file from your app May 15 12:42:53 /data/data/uk.co.chrizc.android/shared_prefs/ May 15 12:42:56 I can see that May 15 12:43:00 but I can't see May 15 12:43:07 /data/data/uk.co.chrizc.android/cache/myfile.dat May 15 12:43:24 Can you see your prefs file in shared_prefs May 15 12:43:30 yes May 15 12:43:32 Number5: yeah - something like this https://github.com/commonsguy/cw-android/tree/master/Rotation/RotationAsync/ to handle configuration changes May 15 12:43:39 Well, anyway.. Try reading it from your app May 15 12:43:41 hey guys, when a feature from a malware is "Check the phone's current state.", which states are meant ? Like "CALL_STATE_IDLE", "CALL_STATE_RINGING" etc. ? May 15 12:43:49 Unless you're rooted, those files should be private May 15 12:44:00 oh wait, hang on. the file explorer was for my emulator, not my device May 15 12:44:01 >_< May 15 12:48:16 if an activity starts another activity and calls finish() immediately May 15 12:48:31 is the former still on the stack below the latter? May 15 12:49:06 no May 15 13:13:56 What is the proper way to build a matrix ? graphics.matrix or float[] ? May 15 13:14:24 take the red pill May 15 13:14:26 or the blue one May 15 13:14:28 i can never remember May 15 13:14:51 canadiancow|work: lol May 15 13:17:00 hello May 15 13:17:13 do i need permission to write to the internal storage? May 15 13:17:32 hey there! May 15 13:18:01 If I try findViewById in onStart, but it returns null, what can I do? May 15 13:18:25 UnbertKant: don't call it until you've setContentView May 15 13:19:42 D'oh, somebody changed the activity names, I was trying this in the wrong onStart. May 15 13:19:44 Never mind. May 15 13:20:15 Donpedro, no, you dont May 15 13:20:26 UnbertKant, why would you do it in onStart anyway? May 15 13:20:43 do it in oncreate right after you inflate the layout, and save a reference to the view if you need it again May 15 13:21:34 Yes, I actually meant that. It's in onCreate of the right activity now and it works. May 15 13:21:45 Guess my brain is broken today. May 15 13:22:41 hmm, i have an SQLite database located in the following path: "/data/data/hu.pedro.m3/databases/m3_db" May 15 13:22:56 using the adb shell, i can access it, run queries, etc. May 15 13:23:31 but when i try to open it in the code, i get this exception: E/Database(279): sqlite3_open_v2("/data/data/hu.pedro.m3/databases/m3_db", &handle, 1, NULL) failed May 15 13:26:25 if the file itself does not have a .db extension, that can't be a problem, right? May 15 13:34:34 i would like to know what is the default android filesystem setup is, (for example i would like to know whare is the contacts file/s supposed to be by default), is anybody know ? May 15 13:34:56 you can't access them on non rooted phones May 15 13:36:02 monsti: probably i can access the content of them through the API, isn't an idea to copy the content of them through the API to a new file ? May 15 13:36:19 you can access them via content provider May 15 13:36:36 for the contacts there is a nice example in the API demos May 15 13:37:14 also, don't announce that you intend to copy the user's contents to your own file... May 15 13:37:24 :) May 15 13:37:30 Leeds: Backup May 15 13:37:56 not much of a backup copying to a local file May 15 13:38:30 Leeds: then sends the local file to a server somewere May 15 13:38:48 :-P May 15 13:39:06 if you insist :) May 15 13:39:29 Leeds: monsti: THX May 15 13:44:35 https://plus.google.com/116031914637788986927/posts/gywBUe8JK8g May 15 13:54:06 mikedg: 12 May 15 13:58:16 wongk it was 1337 May 15 13:58:26 drat! May 15 13:59:41 * monsti is 1337, too May 15 14:00:42 wow. I'm only 34. May 15 14:01:27 the unix timestamp will start with 1337 for the next 11 days May 15 14:01:31 make the most of it people May 15 14:01:44 storkme: seriously? May 15 14:02:13 it is already 1337 for me. May 15 14:02:41 ah... I still remember our billennium party... me and one other nerd, sitting together in the basement in the middle of the night... May 15 14:03:20 seriously May 15 14:03:29 * Ge0rG is always serious. May 15 14:03:55 billennium was a big event! the next one of that magnitude only expected in 2038... May 15 14:04:15 surely you can't be serious May 15 14:04:58 Jug6ernaut: in a time without prevalent digital cameras, smartphones, facebook and twitter, how can I prove? May 15 14:05:16 Ge0rG May 15 14:05:17 http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0CHsQtwIwBQ&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0A5t5_O8hdA&ei=VGKyT6_1Lery2QW73-HpCA&usg=AFQjCNFrYw1oDtxCPIbHsf1QAN6NizwxyA&sig2=9OLd6k4Csi_fX9IsKd3sLQ May 15 14:06:16 "At 01:46:40 UTC on 9 September 2001, the Unix billennium (Unix time number 1,000,000,000) was celebrated." - its even on wikipedia, http://en.wikipedia.org/wiki/Unix_time May 15 14:07:19 good thing time_t is 64bit :) May 15 14:07:22 "At 13:37:04 UTC on 10 January 2004, the Unix time number reached 230", damn; missed that one May 15 14:07:27 9/9, 9/11.. it all makes sense now May 15 14:07:33 p_l: there are always legacy systems May 15 14:07:40 Ge0rG: not enough of them May 15 14:07:52 p_l: enough for making a fortune in IT consulting May 15 14:07:56 Ge0rG: nope May 15 14:08:02 is the Unix billennium like y2k xD May 15 14:08:15 Jug6ernaut: yeah, y2k for nerds :) May 15 14:08:19 hehe May 15 14:08:34 Ge0rG: the fortune involved with Y2K was at least partially due to scaremongering, partially due to the fact that people with necessary skills are rare May 15 14:08:44 and most of it was modifying databases May 15 14:08:51 * Ge0rG already sees his business card punshline: "Fixing Y2K38 bugs since 2002" May 15 14:09:19 these days you don't get such big problems because databases changed May 15 14:12:00 so when does System.currentTimeMillis() ..long .. expire? :) May 15 14:13:04 2038? later? May 15 14:13:09 miha: probably, the unix timestamp will not be used any more at that time. May 15 14:13:18 what are some really well design android tablet apps? May 15 14:13:36 "At 15:30:08 UTC on Sun, 4 December 292,277,026,596[15][16] 64-bit versions of the Unix time stamp will cease to work, as it will overflow the largest value that can be held in a signed 64-bit number." May 15 14:13:37 miha: sometime long past the use of binary computers, I suspect May 15 14:13:57 Ge0rG: thx :D May 15 14:13:59 canadiancow|work: I'm looking for them too May 15 14:14:22 miha: http://stackoverflow.com/questions/2978452/when-will-system-currenttimemillis-overflow May 15 14:14:51 mcescher: thx May 15 14:29:58 anyone have a link to that post where a guy talked about the design decisions in the tablet version of the market? May 15 14:31:09 http://127.0.0.1/null.html May 15 14:34:31 hello May 15 14:37:41 mikedg: i get a 404 when i visit that page. help! May 15 14:44:02 how to create a drawable from a java awt color? May 15 14:51:44 canadiancow|work: http://www.pushing-pixels.org/ <-- he's got a bunch of posts on the design of market/play store May 15 14:52:14 thats it :) May 15 14:53:37 IIRC, he's giving a talk at AnDevCon today May 15 14:58:19 grr ctate needs to come on irc May 15 14:59:09 ctate is here with me May 15 14:59:16 :o May 15 14:59:16 i kidnapped him May 15 14:59:27 he's in my suitcase May 15 15:00:19 hi ctate! May 15 15:04:14 which Intent flag should I use if I essentially want to wipe the stack and have the newly started activity be the only activity in the stack? May 15 15:09:56 luxurymode: CLEAR_* May 15 15:10:15 clear_task? May 15 15:10:29 also nothing like that pre 11 May 15 15:11:44 maybe new_task May 15 15:11:48 i guess clear_top works since the activity wont be in the stack so the others will just all be closed May 15 15:18:22 evancharlton, hmm yeah gonna try that. no dice with clear_top May 15 15:26:28 http://www.rtvslo.si/znanost-in-tehnologija/lani-v-sloveniji-za-51-milijonov-evrov-piratsko-pridobljene-programske-opreme/283143 May 15 15:26:46 oops :( sorry May 15 15:33:13 am i need to implement onResume() and onPause() methods on every activity of my app ? (since there is a chance that at each activity the user click the Home button) May 15 15:33:20 is anyone here who is familiar with AsyncTask and has time to expain it in detail? May 15 15:33:55 no Hanan....what? May 15 15:34:02 i dont even know what you're talking about May 15 15:34:17 so view inside of a relative layout with alignParentBottom=true -- is it the intended behavior that marginBottom does absolutely nothing? May 15 15:34:25 Hanan: that depends, do you have a reason to implement them on every activity May 15 15:34:40 Hanan: activity usually just gets into background when you switch using home key May 15 15:37:48 Does In-App billing work if a user has pirated an app? May 15 15:39:11 theneb, define "pirated" May 15 15:39:19 IAB requires it to be signed properly May 15 15:40:39 canadiancow|work: If a user has installed the APK from another source than downloading through Google Play May 15 15:40:49 Ie when market_licensing will fail as NOT_LICENSED May 15 15:41:30 yes it will May 15 15:41:33 how else would you test IAB May 15 15:41:49 Cool, good to know May 15 15:56:20 If I have an Activity, which holds a fragment (swapped by actionbar tabs), and I press a button on the action bar, how to I run a specific method inside the current active fragment? May 15 15:57:17 all possible Fragments implement the same interface, and I'd want to run a specific method which isn't defined in Fragment, but is defined in my interface. May 15 15:57:44 there now i have stupid tablet support. May 15 15:58:40 what about smart tablets? May 15 15:59:06 it supports any screen size :) May 15 15:59:10 good old math :) May 15 15:59:16 ah. :) May 15 15:59:43 any screen size at any orientation :) gigity May 15 15:59:51 ugh, I hate screen sizes right now.. trying to make a web page look good on both phone and tablet.. May 15 16:00:12 I wish I knew java better so I could make a proper app May 15 16:00:38 Zider: it's not a particularly complicated language May 15 16:01:27 Leeds: well I'm stuck in php thinking :/ May 15 16:01:28 Zider: just keep playing with it :) May 15 16:01:42 Zider: lol be greatful you dont do objective-c May 15 16:01:51 EvilPenguin: is that bad? May 15 16:02:36 Zider: well a big difference is memory management. Could you handle your own heap? May 15 16:02:50 EvilPenguin: if I knew what that was.. uh.. no. May 15 16:02:53 :P May 15 16:02:56 :P May 15 16:02:57 exactly. May 15 16:03:10 I have heaps of ideas, but I doubt that's relevant ;) May 15 16:03:20 chrizc: looks like you'd get the current fragment from the PagerAdapter and cast it to your interface May 15 16:03:20 heap and stack for memory allocations. May 15 16:03:37 wongk yep, managed to get it, but I'm not using a Pager? May 15 16:03:41 s/?/. May 15 16:03:46 EvilPenguin: I thought memory allocations were something you only needed to do in asm May 15 16:03:47 chrizc: you're not using ViewPager? May 15 16:03:51 no. May 15 16:03:55 Zider: lol no.... May 15 16:04:05 or maybe rather, I was HOPING so. :) May 15 16:04:06 chrizc: what are you using for tabs? May 15 16:04:06 my thoughts on ViewPager are quite well known May 15 16:04:12 mostly to the effect of "fuuuuuck viewpager." May 15 16:04:20 wongk; ActionBar tabs, like I said in my question. May 15 16:04:42 Zider: java deals with memory, you just have a garbage collector :) May 15 16:04:52 (meaning you dont need to handle your objects) May 15 16:05:11 oh god objective-c May 15 16:05:18 or c or c++ :) May 15 16:05:22 the amount of times I've forgot to bin an object May 15 16:05:24 ): May 15 16:05:42 i <3 objc/++ May 15 16:11:53 if I have a public class test that extends AsyncTask and the doInBackground method, I start the aysnctask with test().execute(); May 15 16:12:30 i have 2 questions - 1st if I start it with test.execute("my string"); how can i get the "my string" in the doInBackground method? May 15 16:13:14 and if my doInBackground method returns String output; how can i get the output after calling test().execute("my string"); May 15 16:13:17 vorwaerts: it's passed in as a parameter ... May 15 16:13:31 evancharlton and how is the parameter called by default? May 15 16:13:35 vorwaerts: you get the output in onPostExecute; override as necessary May 15 16:13:49 vorwaerts: I don't know; look at your method signature May 15 16:14:24 do i have to type: AsyncTask May 15 16:14:37 where is android's dns cache stored? May 15 16:14:50 so id have input in doInBackground? May 15 16:15:12 vorwaerts: what? no? May 15 16:15:27 yes i see its wrong May 15 16:15:33 very May 15 16:15:59 ...extends AsyncTask - first String is the input - last String is the output right? May 15 16:16:14 those are the types of the outputs, yes... May 15 16:16:24 both? May 15 16:16:27 they're not the inputs or outputs themselves, though May 15 16:16:40 vorwaerts: I suspect you need to go learn java 101 May 15 16:17:07 1st params, 2nd progress, 3rd result May 15 16:17:28 lol. May 15 16:17:33 Params, the type of the parameters sent to the task upon execution. May 15 16:17:37 vorwaerts: ... they're just types. May 15 16:17:53 yes May 15 16:18:20 so i have type String so i call test().execute("String here"); May 15 16:18:28 right May 15 16:18:45 and this "String here" goes to the doInBackground method May 15 16:18:53 yes May 15 16:19:02 right May 15 16:19:03 vorwaerts: you really need programming 101 May 15 16:19:05 and how can i use it there? May 15 16:19:11 maybe computers 101 May 15 16:19:22 e.g. textview.setText("STRING HERE"); May 15 16:19:23 vorwaerts: String url = params[0]; May 15 16:19:27 ah!! May 15 16:19:34 it's any array passed in May 15 16:19:47 doInBackground(String.... params) { } May 15 16:20:20 i see May 15 16:20:22 thank you May 15 16:20:42 :) May 15 16:21:23 doInBackground is normaly void everytime, right? May 15 16:21:36 what? May 15 16:21:52 that question doesn't make sense May 15 16:22:05 vorwaerts: it's return type is void yes. May 15 16:22:09 wait no May 15 16:22:12 type void May 15 16:22:13 is your AsynTask type a string? May 15 16:22:14 no it's not May 15 16:22:27 protected String doInBackground(String... params) { } May 15 16:22:38 AsyncTask May 15 16:22:59 AsyncTask would be protected Bitmap doInBackground(String... params) { } May 15 16:24:27 vorwaerts: i have the weirdest feeling you haven May 15 16:24:31 't read this: http://developer.android.com/reference/android/os/AsyncTask.html May 15 16:24:39 im about to read it May 15 16:24:41 maybe you should read it clearly before asking questions... May 15 16:24:45 :) May 15 16:24:54 because every question you have is answered with great detail in that doc :) May 15 16:25:05 * EvilPenguin <3s API docs May 15 16:25:37 vorwaerts: if you dont like AsyncTask you could make a Thread with Handlers :) May 15 16:25:44 (harder way, but more control over your threads) May 15 16:25:49 AsyncTasky if the doinbackground returns some string for example... how can i use this string in the onpostexecute method? May 15 16:26:06 better not ^^ May 15 16:26:20 vorwaerts: your doInBackground returns to the onPostRexecute... May 15 16:26:42 String doInBackground() { } would hav a void onPostExecute(String result) { } May 15 16:26:59 so if i return string; i can use string in onPostExecute directly? May 15 16:27:00 onPostExecute gets the return of the doInBackground :/ May 15 16:27:52 its like { void *something = doInBackground(string); onPostExecute(something); } May 15 16:28:06 that's not the code, but a simple example. May 15 16:28:52 I finally got actionbarsherlock working with my app. Now I have been reading on Google on how to set onClickListeners to each of the menu items. Since they aren't referenced in an xml file how do you accomplish this? I would like the refresh menuItem to execute FeedTask() and the Add Post menuItem to start a different activity http://pastebin.com/uZrSg2H9 May 15 16:29:28 have your Activity implement OnMenuItemSelectedListener May 15 16:29:36 then override onMenuItemSelected(int pos, MenuItem item) May 15 16:29:58 doogan: what is the int pos? May 15 16:30:58 the position that was selected May 15 16:31:03 or you can do item.getItemId() May 15 16:31:14 or even item.getTitle().toString() May 15 16:31:55 EvilPenguin if i return a string output (return output;) there is no output in the onPostExecuteMethod May 15 16:32:55 ah its result i see - now its clear May 15 16:32:59 doogan, so how do the positions work? And as far as getting the id, do i then have to somehow add a reference/id to my xml file? or how does that work (sorry, i'm very much a newb) May 15 16:34:34 http://pastebin.com/vKcPNUEb May 15 16:34:40 can launch a new activity like that May 15 16:36:01 doogan: why not try it and see? May 15 16:36:16 what? i'm answering dschuett's question May 15 16:36:31 doogan, how does it know what android.R.id.home is if it isn't referenced anywhere? May 15 16:36:38 that is static May 15 16:36:48 dschuett, have a look at the /demos project in ABS, should be helpful May 15 16:37:27 plenty of samples to give you ideas May 15 16:38:43 doogan, yeah... that's what i've been looking at. I guess the only thing i don't understand is persay i have a menuItem how to i set an id to it? - like android.R.id.home (so i can reference that) May 15 16:39:16 hello, in the processing of debugging a possible configuration problem on a phone, I'd like to somehow extract the configuration of specific apps or even some android internals.  Is this possible? To say, get an xml file of configuration names and values for example? To verify someone has the same configuration I think they do? May 15 16:40:10 mandric: not on a stock phone, no May 15 16:40:19 vorwaerts: lol man you need a basic run down of functions. May 15 16:40:25 doogan, for example on line 35, how do i set an id to that? - http://pastebin.com/uZrSg2H9 May 15 16:40:26 dragorn ok it would need to be rooted or something? May 15 16:40:29 mandric: if you root it you can rip open an apps data directory and manually process out their settings May 15 16:40:31 mandric: it's probably best to just add logging to your own application May 15 16:40:33 can i return 3 arrays from asynctask= May 15 16:40:46 you can return anything you want.. May 15 16:40:47 wongk yea but these are other 3rd party apps May 15 16:40:51 mandric: but otherwise, no, you can't read data that doesn't belong to you May 15 16:40:57 dragorn gotcha May 15 16:41:08 vorwaerts: you just have to tell the template what you want as an input and output May 15 16:41:08 mandric: do they affect the behavior of your own app? May 15 16:41:17 wongk it does... May 15 16:41:21 basically wifi sleep May 15 16:41:22 AsyncTask(input, forgot this, output) May 15 16:41:28 EvilPenguin so AsyncTask May 15 16:41:35 EvilPenguin: progress May 15 16:41:42 vorwaerts: that would take an int and return an array. May 15 16:41:46 mandric: so you could at least log about that? May 15 16:41:50 wongk we are using a nexus s that we can't seem to configure to not wifi sleep. May 15 16:42:00 well, the remote client can't configure ... May 15 16:42:12 dschuett, the android.R.id.home is just for when getSupportActionBar().setDisplayHomeAsUpEnabled(true) May 15 16:42:37 EvilPenguin and how do i return 3 arrays in doInBackground? return arrayone; return array2; return array3? May 15 16:43:04 you could do something like May 15 16:43:05 http://pastebin.com/EE5Gj0LJ May 15 16:43:13 vorwaerts: someMethod() { return true; return false; reutnr true; } May 15 16:43:18 vorwaerts: is the return false hit? May 15 16:43:37 return is true May 15 16:43:39 Hey, I'm developing for the Xoom which has the demensions of 249.1 mm in height and 167.8 mm in weight....in eclipse at the XML graphical layout screen in the xml how do I set up that screen so that it is those demensions? May 15 16:43:52 vorwaerts: which return true? May 15 16:43:56 first or last. May 15 16:43:59 i dont think mm is a measurement of weight May 15 16:44:00 or both. May 15 16:44:04 also john_doe_jr, you're doing it wrong May 15 16:44:16 EvilPenguin: what the hell is that? May 15 16:44:19 doogan, ok perfect. I just didn't know if setting an id to each menuItem was better... i just don't know how to accomplish that May 15 16:44:27 evancharlton: if you read the conversation you'll understand :) May 15 16:44:27 thanks for your help though! May 15 16:44:54 vorwaerts: you would return an array that contains those three arrays. May 15 16:44:58 EvilPenguin when this is all about, then the last May 15 16:45:18 vorwaerts: no.. when you return in a function anything and EVERYTHING after that return statement is not executed. May 15 16:45:43 so the issue is we have an app installed that does an sms sync via http to a local web service on the wif. the phone wifi is going to sleep and the conn gets severed so smssync stops working. the workaround was to add wifikeepawake and keepscreen to keep the wifi alive. this works in testing but not at the client site. so we are doing some remote debugging which is proving difficult. May 15 16:45:48 void method() { int i = 0; return; int j = 0; i = 10; } everything after return is no executed vorwaerts May 15 16:45:55 and in onPostExecute i would seperate them? May 15 16:45:58 s/no/not May 15 16:46:11 vorwaerts: you would pull the array you want based on the index of that array, yes. May 15 16:46:27 vorwaerts: please take a programming 101 class.. May 15 16:46:31 ok i try it May 15 16:46:33 vorwaerts: this is indeed in PHP as well. May 15 16:46:57 my thought is to get a "snapshot" of the config on the phone to verify it is what they say it is. but as dragorn pointed out that's only possible with rooting the phone and even then hard. May 15 16:47:47 EvilPenguin so the type of the combained array is array then? May 15 16:48:15 vorwaerts: lol yes. May 15 16:48:22 vorwaerts: should i walk you though everything? May 15 16:48:29 vorwaerts: you should do some trail and error :) May 15 16:48:30 np dschuett May 15 16:48:43 you can only set an itemId when you add the MenuItem to the ActionBar May 15 16:48:46 like so, add(int groupId, int itemId, int order, int titleRes) May 15 16:48:49 what is good program to edit a xml file? May 15 16:49:10 no but arrays are hard to understand for me, coming from php where i can say $array = array("no matter how long i am and what type i have"); May 15 16:49:17 i'm pretty sure at least, i'm new to ABS as well May 15 16:50:03 vorwaerts: arrays are the same everywhere May 15 16:50:11 vorwaerts: you have a zero based container for objects. May 15 16:50:26 vorwaerts: you just need teh syntax to handle that array. May 15 16:51:24 EvilPenguin i would try Array[][] myarray = new Array[3][1]; to save 3 arrays in an array to return it May 15 16:51:35 php arrays are more like java lists tbh. May 15 16:51:48 hello all May 15 16:51:54 they're more like hashmaps, leslie May 15 16:52:02 oh. I was close May 15 16:52:06 I need some opinions on "designer 4 android"...I'm sure nobody has used it but check it out and tell me what you think. my concern is id be less employable if I don't learn the standard way? May 15 16:52:09 http://www.basic4ppc.com/android/designer4android.html May 15 16:52:23 vorwaerts: you can use a Hashmap too May 15 16:52:31 in any case they are easier to handle FOR ME May 15 16:52:57 GeeksOnHugs: with UIs like this, who wouldn't want to hire you? http://www.basic4ppc.com/basic4android/images/SS-2012-04-17_10.15.50.png May 15 16:53:04 ArrayList> arrayOfEditTexts = new ArrayList>(); May 15 16:53:11 while I'm at it I'm curious about basic4android...I'm sure that would def make me unemployable May 15 16:53:27 GeeksOnHugs: that is horrific May 15 16:53:36 lol...that's the tutorial May 15 16:54:03 EvilPenguin and to fill it? :D (to walk me through everything ^^) May 15 16:54:05 vorwaerts: ArrayList> arrayOfArrayStrings = new ArrayList>(); May 15 16:54:08 wait look at the showcase...lemme find a link May 15 16:54:41 vorwaerts: ArrayList strings = new ArrayList(); arrayOfArrayStrings.add(strings); May 15 16:54:51 http://www.basic4ppc.com/android/screenshots.html#showcase May 15 16:54:53 so this would create an arraylist with an arraylist that has strings? May 15 16:54:56 GeeksOnHugs: the showcase is also horrific May 15 16:55:06 vorwaerts: yes May 15 16:55:13 you should probably just cast the references to List rather than ArrayList May 15 16:55:16 vorwaerts: an ArrayList of ArraysList May 15 16:55:22 yes May 15 16:55:23 so List whatever = new ArrayList(); May 15 16:55:40 GeeksOnHugs: stick to writing the XML (and programatically where appropriate) May 15 16:55:44 how do u guys do ur uis? hand code xml? so far my uis are horrific May 15 16:55:45 all these UI builders suck May 15 16:55:46 vorwaerts: or you can use a HashMap, or many other ways. May 15 16:55:54 and when i would use a "simple" array that i would fill with the arrays? May 15 16:56:12 GeeksOnHugs: spoken like a true developer :) May 15 16:56:15 GeeksOnHugs: you first few UI's will be horrible then you'll get better -- if you rely on tools like this whatever its called, you'll limit yourself and your learning May 15 16:56:19 vorwaerts: String strings[][] = new String[1][1]; May 15 16:56:23 well beautiful uis are required for apps...how to get good? May 15 16:56:35 GeeksOnHugs: practice May 15 16:57:00 vorwaerts: go to google and search "android multidimensional array" and pick what fits you best. May 15 16:57:15 ok...I'm glad I checked here first...I was about to buy it May 15 16:58:14 String strings[][] = new String[1][1]; creats Array => Array => String? May 15 16:59:04 but here i can add only 1 Array, with one String, right? May 15 17:00:18 what about droiddraw? it outputs real xml...designer4android puts out java code and requires a library May 15 17:01:05 lol, anything that puts out java code is definitely rubbish May 15 17:01:28 Android's XML puts out java code. May 15 17:01:38 I don't see what's wrong if the abstraction is complete. May 15 17:02:31 EuroTrash: um, it doesn't. Not the layout stuff, at least May 15 17:02:42 kk yah that was my biggest dissapointment with it b4 I asked...cause once you go down that dark path 4ever will it dominate ur destiny May 15 17:03:02 p_l: what do you think Android does with that in the background? May 15 17:03:06 go on euro May 15 17:03:24 EuroTrash: the layouts are stored in binary form, but not as java code May 15 17:03:52 but what about the employability concern if I don't learn xml layouts May 15 17:03:52 EuroTrash: All the Java code involved is written by you when you write handlers etc. May 15 17:03:58 p_l: and then interpreted and then it's still instantiated from code. May 15 17:04:15 GeeksOnHugs: why don't you want to learn them? May 15 17:04:25 EuroTrash: there's no java code generation involved, though May 15 17:04:27 GeeksOnHugs: learn them May 15 17:04:27 It's much like HTML and not that hard if you get the hang of it. May 15 17:04:31 lazy lol May 15 17:04:39 oh boy May 15 17:04:45 GeeksOnHugs: then your employability is already low :P May 15 17:04:49 p_l: not pregenerated, I guess. May 15 17:04:59 zzzzz May 15 17:05:19 GeeksOnHugs: generally, the lazy ones live in their parents' basement for most of their lives. May 15 17:05:52 GeeksOnHugs: the technical side of this is, you're going to run into problems you can't solve with a layout editor. May 15 17:06:02 And it's not necessarily faster than doing xml. May 15 17:06:14 ok heh...well I'm good lazy...I want to b productive May 15 17:06:27 writing XML's isn't that bad May 15 17:06:45 It's a fairly nice system. May 15 17:06:53 Better than HTML in some regards. May 15 17:07:08 I've programmed for 17 years...but windows guis...so the xml feels foreign May 15 17:07:25 Cool, a challenge. May 15 17:07:55 compared to win32/MFC, nothing is a challenge ;) May 15 17:08:20 ok I think ur right...that's why I came so I could get talked out of it...ill be better off learning xml in the long run...so last question... May 15 17:09:26 what about droid draw and the like that outputs xml...while I learn? or probably it would be a crutch that keeps me weak? May 15 17:10:05 it will slow your learning May 15 17:10:16 GeeksOnHugs: come up with a layout of an activity and try to build it in XML -- you will fail many times but learning happens through failure May 15 17:10:16 7+9 May 15 17:10:48 with no realy benefit, i might add May 15 17:10:51 real May 15 17:10:53 beauty of the XML is, you can write it and then switch tabs to see what it looks like May 15 17:10:58 then keep tweaking it May 15 17:11:08 yah yah...I guess I knew that was the right answer...just gotta dive into xml May 15 17:11:54 you'll see that its not really that bad... there are only a handful of layout containers than not too many views to deal with within that (depending on what you need of course) May 15 17:12:33 I build my app in XML by hand and still didn't touch everything because I only needed a subset. That is why its best to learn using a project based approach. Come up with a project, draw sketches then try to produce in XML. May 15 17:12:43 *built May 15 17:13:07 is there a rule of thumb on which layout to start with as a noob? it defaults to linear but table seems more useful May 15 17:13:24 so the lookup key value for contacts queries... i'm guessing the keys are tied to the phone itself and will change between devices? May 15 17:13:28 http://developer.android.com/resources/tutorials/views/index.html May 15 17:13:29 GeeksOnHugs: one is not better than another, its use depends on your needs May 15 17:13:46 Table is for.. tables. May 15 17:13:56 LinearLayout is what I use the most. May 15 17:13:57 so a key for a contact on one device would be different from that same contact on another phone, right? May 15 17:14:00 With layout_weight May 15 17:14:16 kk...rtfm.. no probs ;) May 15 17:14:22 hehe May 15 17:14:40 ok...I c May 15 17:15:17 ok I'm off to it...thx again May 15 17:17:22 anyone? May 15 17:21:42 hi i got this error while making : target arm C++: libmedia <= frameworks/base/media/libmedia/fixedfft.cpp arm-linux-androideabi-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. May 15 17:21:51 seems i dont have cc1plus program May 15 17:34:21 anyone here worked with NDK May 15 17:34:40 can you compile and run NDK apps on the simulator May 15 17:35:16 yes May 15 17:36:05 so, a user reported that his actual emails leak into his "contacts" screen May 15 17:36:21 ceti331_: no May 15 17:36:23 there is no simulator May 15 17:37:48 anyone see anything wrong with this? this is the code I wrote to read some contacts. I cut it down to just emails, because it ran pretty slow on my phone with my google account May 15 17:37:52 http://pastie.org/3916297 May 15 17:38:22 hi guys. i'm looking for some resources on android tablet audio capabilities. my understanding is that android doesn't currently support any USB audio interface. is that still the case? May 15 17:38:28 the user can actually read the bodies of his email by reading the results of this code =O May 15 17:41:41 simulator… emulator … ? May 15 17:41:57 so the PC development 'emulator' only runs java i guess? May 15 17:43:01 er, no May 15 17:43:05 no, it runs instructions May 15 17:43:15 the emulator is a full emulated ARM machine May 15 17:43:23 ceti331_: it's an emulator for a full ARM machine May 15 17:43:24 that's why it's an emulator and not a simulator May 15 17:43:26 ceti331_: the emulator can run ndk software as well. ndk code gets compiled to dalvik bytecode just like the java code you use. May 15 17:43:48 technically, iOS Simulator *isn't* a simulator, but userland virtualization or runtime May 15 17:43:54 akoustik: I'm not sure you know what "native" means if you think it winds up in dalvik bytecode...? May 15 17:44:07 evancharlton: derp didn't mean to say that. May 15 17:44:11 akoustik: ndk doesn't get compiled to dalvik May 15 17:44:52 ndk -> arm binary ? or is it a way of running c++ on dalvik May 15 17:45:12 of course, my mistake. you would just say machine code, then? May 15 17:45:20 akoustik: yeah May 15 17:45:58 does anyone have information on my question about usage of USB audio interfaces with android? May 15 17:46:20 i read that 4.0 still doesn't support USB audio input. confirm? disconfirm? May 15 17:46:48 I thought I saw some 3.x devices with usb host May 15 17:48:17 so can someone confirm that: NDK really does mean compiling propper ARM machine code May 15 17:48:29 ceti331_: *yes* May 15 17:48:39 to whatever is the native platform May 15 17:48:48 ok. i need to know that before I buy a phone as a programming toy May 15 17:48:55 (armv5te, armv7a, x86, mips) May 15 17:49:16 if you're getting a device, I recommend something with armv7 May 15 17:49:20 so I presume one can compile NDK for X86 with the development environment May 15 17:49:31 the current NDK added x86 target, iirc May 15 17:49:44 I dont know all the ARM names.. is armv7 the one in the vita and top end iOS devices.. with OOOE May 15 17:49:45 you can port it further by compiling from sources May 15 17:49:47 Zharf: hm, yes, but it looks like there's no way to just have a usb interface behave as an audio input. any suggestions for an approach to solving the problem of audio input with the stuff in the sdk already? May 15 17:49:59 ceti331_: ARMv7 is the instruction set version May 15 17:50:01 'coretex a9' May 15 17:50:04 ok May 15 17:50:10 akoustik, no experience in the matter here, sorry May 15 17:50:11 cortext a8+ all have v7a May 15 17:50:29 though NEON (vector extensions) are optional May 15 17:50:32 Zharf: thanks. May 15 17:50:38 SIMD unit .. i know there's float, legacy VectorFloat, then Neon replacing VectorFloat? May 15 17:50:48 anyone have resources for dealing with general usb interfaces in android? May 15 17:50:53 neon being in the PS Vita, and presumably Tegra3? May 15 17:51:11 I'm tempted by a tegra3 phone May 15 17:51:27 oh here's a question, if my package contains armeabi and armeabiv7a libs, do both of them still get installed on all devices when installed from play store? (effectively wasting space) May 15 17:51:41 ability to write NEON code (intrinsics and ASM) is a must May 15 17:51:55 Tegra3 is nice May 15 17:51:56 (write, and run) May 15 17:52:19 and after seeing GCC intrinsics for NEON... damn, but I want it :D May 15 17:53:18 i am dealing with PS Vita for work, have a hobby project on iOS, but no quadcore iOS devices.. i want to move my hobby project to NDK; developping neon optimized code is useful all round for me May 15 17:54:14 video resizing is a pain in the ass on android May 15 17:54:49 ceti331_: you can also bypass android, which can be sometimes useful when you just want to test some ARM code but not make it into Android app May 15 17:55:08 thats' like "REALLY" native ? May 15 17:55:48 NDK code is already "REALLY" native May 15 17:56:24 ok. but 'bypass android' .. i presume you mean running os-less on the device? May 15 17:56:25 whats the best toolkit for writing an app that works on iphone and android with minimal change? May 15 17:56:35 hahhaha May 15 17:56:51 i'm just talking to other coders about how to do apps between windows and ios May 15 17:56:54 ceti331_: what, no May 15 17:57:07 mynameisdeleted2: what kind of app? May 15 17:57:47 I guess office productivity or game apps May 15 17:57:52 mostely office productivity May 15 17:57:57 buttons, sliders, forms etc May 15 17:58:01 can be done in html5+js May 15 17:58:09 opengl requires native code May 15 17:58:09 try cordova May 15 17:58:11 I stumbled across some HTML5/javascript/css framework for creating cross-platform mobile apps across android/ios/windows phone/blackberry May 15 17:58:13 can objective-C compile in the NDK compiler May 15 17:58:16 Forgot the name of it. May 15 17:58:27 just don't write like an idiot, because it's easy to screw up a html5 js app since it's already going to be slow, even if you do it right May 15 17:58:46 There's probably at least 3 HTML5/javascript/css frameworks now May 15 17:58:49 And they probably all suck May 15 17:58:50 seems like a C++ framework is safer for cross-platform than ObjectiveC and java based apis May 15 17:58:51 someone asked me to fix a bug in one the other day but I couldn't, because it was so slow it wouldn't run on my dual core phone fast enough to reproduce the bug. May 15 17:58:57 I'd think objective-C can compile on NDK since thats both based on gcc May 15 17:59:09 i thought so but have also read otherwise May 15 17:59:22 i am trying to compile NDK samples now but i've only just downloaded the sdk May 15 17:59:24 there is qt for ios and qt for android already May 15 17:59:31 maybe kde/qt libraries are the way to go May 15 17:59:38 Qt sounds good May 15 17:59:45 hahaa, good luck with that. May 15 17:59:50 and works in linux, mac and windows May 15 17:59:52 my friend is burdened with doing a productivity app on windows+iOS May 15 18:00:05 ceti331_: no, "Android" is technically a runtime running on top of Linux. Bypassing it would mean not using Android services etc. May 15 18:00:07 'burdened' May 15 18:00:13 I think Qt may have some future in it... it has java bindings too May 15 18:00:23 he is a c-sharp developper, deskilled himself in c++. so now he faces developping c-sharp for dotNet and objectiveC for iOS May 15 18:00:25 so you can make a portion of your app writable by java developers May 15 18:00:33 ceti331_: Objective-C can be compiled with NDK, but you'd need to provide apropriate Obj-C runtime May 15 18:00:45 ceti331_: you say it like it is a horrible thing. some of us here like writing apps in managed languages, believe it or not. May 15 18:00:59 it seems like C++ is the way to go for a true multiplatform app… a C++ wrapper over all UI ,system... May 15 18:00:59 infact, i'd wager most do May 15 18:01:06 C++ is awsome... can almost run within java, can run within objective-C and can run within C# May 15 18:01:24 you could say the same about C May 15 18:01:25 most open source c/c++ apps run on tons of cpu-types May 15 18:01:34 from arm to mips to sparc May 15 18:01:35 ceti331_: C++ is the one way to guarantee issues with code portability. So far I haven't encountered a language harder to make cooperate with other stuff May 15 18:01:35 "run within" May 15 18:01:44 C++ was longwinded but C++11 helps May 15 18:02:03 it does require care but its doable May 15 18:02:12 my last inter-platform c++ app used ntohl a lot May 15 18:02:18 to convert network endian to host endian May 15 18:02:19 or back May 15 18:02:24 Objective-C *would* be better if not for the case of lacking a good runtime that doesn't add weird stuff (GNUstep doesn't count) May 15 18:02:31 my hobby project compiles with about 3% differences between iOS and windows May 15 18:02:32 1 #define file to determind endian and word size etc May 15 18:02:35 so it removing your own kidney May 15 18:03:13 "is" .. and nearly as painful! May 15 18:03:14 I'm thinking a validator similiar to xhtml validator but for c++ May 15 18:03:21 could verify no use of functions that arent cross-platform May 15 18:03:31 readign from disk must use host-endian conversion May 15 18:03:34 reading from nework must as well May 15 18:03:36 can you get the managed languages to sit on top of iOS objective C api's May 15 18:03:57 and force a valgrind test on it as well May 15 18:05:08 mynameisdeleted2: http://cdn.memegenerator.net/instances/400x/12215635.jpg May 15 18:05:27 i'm just running the android SDK updater.. its asking me to make a motorola dev account, didn't expect that, is that normal May 15 18:05:48 ceti331_: for you? probably. May 15 18:05:58 If you download motorola packages it could be expected May 15 18:06:00 Ask motorola May 15 18:06:04 I'm sure these sorts of situations are completely normal for you. May 15 18:06:25 am i going to have to make loads of accounts May 15 18:06:34 Probably. Seems to be your skillset. May 15 18:06:46 for various vendors May 15 18:07:06 hehe ok. May 15 18:07:07 how do i create an array like this $array = array("id" => array("name", "date"));? May 15 18:07:19 what language is that May 15 18:07:31 PHP? May 15 18:07:35 yes May 15 18:07:44 but i need this in java and i dont understand May 15 18:07:55 perhaps learn java? May 15 18:07:56 An ArrayList may be the simplest approach for you. May 15 18:08:11 you want an array of arrays of strings May 15 18:08:26 Or maybe a hashtable of arraylists May 15 18:08:29 hell i wonder if downloading the android sdk is going to end up with me learning java… yikes May 15 18:08:31 String[][] array = String[1][2]; array[id] = .... i dont know May 15 18:08:34 you want a HashMap> May 15 18:08:49 w/out starting a langauge war, you're going to find that PHP plays fast and loose and is pretty messy May 15 18:08:51 must not deskill myself with managed languages May 15 18:09:01 and you may have to work to adjust your data formats for java May 15 18:09:09 or some would say reskill. ,some say c++ is dying.. May 15 18:09:17 ceti331_: Objective-C has the advantage that it has basically C api May 15 18:09:30 * pragma- assumed there could be more than two elements for some entries. May 15 18:09:41 which means you can easily put anything on top of it, because C has, by design, a simple interface May 15 18:09:48 got no problem with objective C since it can play nice with c++, objective-C++.. 2 differnt types of object model May 15 18:09:50 C++ doesn't May 15 18:09:55 Objective C is really a great language. May 15 18:10:02 I think a bulletproof way of verifying endianness compatibility with c++ would make it an ideal choce May 15 18:10:13 i like named parameters May 15 18:10:18 i wish plain c had that May 15 18:10:29 mynameisdeleted2: just pick one endian and do everything in it May 15 18:10:34 objective c May 15 18:10:35 bleh May 15 18:10:37 this conversation is sad May 15 18:10:38 i miss generics May 15 18:10:56 templates? May 15 18:10:56 ffs. I'm just going to pick little endian and do everything in binary May 15 18:11:16 ceti331_ sure, but obj-c doesnt have em, does it? May 15 18:11:30 not generics, but Objective-C++ has templates for sure May 15 18:11:33 canadiancow|work Map> = new HashMap>; ? May 15 18:11:36 I feel, like if you have Java, C, Python, and JS in your ammo bag you can't lose as a programmer May 15 18:11:45 I'm used to Common Lisp. I feel really constrained in Java or C++ :> May 15 18:11:54 vorwaerts, yes May 15 18:11:57 one question I have is what is best to add to C++ to complement that May 15 18:12:17 canadiancow|work syntax error on token ">>" May 15 18:12:25 ^ lol May 15 18:12:36 there is no name ^^ May 15 18:12:37 nope May 15 18:12:39 missing () May 15 18:12:50 vorwaerts: this is not a #teach-me-java channel May 15 18:12:56 Common Lisp vs JScript… i heard JScript/javascript described as very lisp-like? May 15 18:13:00 ok May 15 18:13:10 thanks May 15 18:13:14 pragma- sorry May 15 18:13:21 but common lisp has a better object model? and elegent ancient syntax :) May 15 18:13:29 ceti331_: javascript came from scheme May 15 18:13:40 ok May 15 18:13:46 hwrd|work: s/Python/Perl/ May 15 18:14:14 ceti331_: except it got some truly broken shit that wouldn't go through in scheme (infamous "NaNNaNNaNNaNNaNNaNNaNNaNNaN, Batman" example...) May 15 18:14:32 i've heard javascript derrided for inconsistencies May 15 18:14:54 still a better language than python May 15 18:14:56 it has some annoying issues May 15 18:15:00 but i like the idea of a curly-brace dynamic language May 15 18:15:10 for me as a C/C++ coder May 15 18:15:23 i know the braces aren't that much of an issue compared to everythign else May 15 18:15:47 but from the outset it tells me someone is sympathetic to my mindset May 15 18:15:50 canadiancow|work is there something instead of pair to use String, String, String? May 15 18:15:58 I knew it. May 15 18:16:04 sure? May 15 18:16:13 most solaris-code I get runs fine on intel without endianness problems May 15 18:16:16 you can make your own object May 15 18:16:17 vorwaerts: as I've been saying all morning, you need to learn to program first. May 15 18:16:25 NameDataPair { public String name; public String pair; } May 15 18:16:29 NameDatePair* May 15 18:16:34 err im typing too fsat May 15 18:16:41 but it really depends on how you wnat to represent the data May 15 18:17:07 * pragma- reports all the |work people for slacking. May 15 18:17:11 * pragma- points at hwrd|work May 15 18:19:40 * pragma- writes a stiff letter to his congressman to complain about all the working people wasting away the economy by spending work-hours on IRC. May 15 18:19:56 lol May 15 18:20:17 and if youre storing a date, String probably isnt the best May 15 18:20:20 inb4, WOPA -- a law to ban IRC during work-hours. May 15 18:20:21 long, Date, something like that May 15 18:21:16 pragma-: I'm not working. May 15 18:21:33 Work is for dronez. I'm having fun. May 15 18:21:55 hwrd|fun May 15 18:22:09 ^ +1 May 15 18:22:11 ffs May 15 18:22:12 wtf May 15 18:22:13 amg May 15 18:22:17 bs May 15 18:22:18 my gnex just restarted out of nowhere May 15 18:22:27 bbq May 15 18:24:14 well, here is the solution I'm going to implement, because the contacts content provider is dumping the bodies of emails when I only asked for the address May 15 18:24:20 email = email.split(" ")[0]; May 15 18:24:52 hopefully there's a space there. I haven't been able to see the actual bug, or reproduce it on any of my own devices :| May 15 18:25:02 maybe i should use \\s, to get all whitespace. May 15 18:25:18 maybe you should get more information May 15 18:25:34 yeah. May 15 18:25:42 I'll write some code to send me back what's actually happening May 15 18:25:43 good idea. May 15 18:26:15 http://pastebin.com/ZTZAhhw8 May 15 18:26:16 heh May 15 18:26:21 too bad can't see the text from so far away May 15 18:26:55 pfn: something is wrong with your link May 15 18:27:14 oops May 15 18:27:15 wrong link May 15 18:27:45 how the hell do I copy a link from plus May 15 18:28:13 just some dude standing outside of google holding a sign that says "hiremeok.com" and "ivyleagueneedsjobs" May 15 18:28:37 http://hiremeok.com/ May 15 18:28:50 https://plus.google.com/111751695436781052143/posts/8ksWYivrwbs May 15 18:29:39 guys anybody have some experience with simple image processing(finding out the colors) May 15 18:29:55 pfn: : May 15 18:29:57 :| May 15 18:30:12 if I was that guy I'd be at home doing something valuable that makes people want to hire me, like coding May 15 18:30:51 when someone is going to hire a programmer, i'm sure the first thing they think is "are they desperate enough to stand on the side of the road and beg?" May 15 18:31:01 actually, that probably does come to mind May 15 18:31:12 explains a lot of software, anyway. May 15 18:31:31 heh, in sf after the .bomb there were lots of hipsters standing on corners with signs like "will do html for food" or something May 15 18:31:41 readme: yeah .. spent time complaining they don't have a job and not enough coding May 15 18:31:59 hmm, has anyone used OrientDB on android? it looks like you can use it in an embedded configuration, not so sure May 15 18:32:10 "will code html for food" yeah i remember the images May 15 18:32:40 these days people will code html just for water May 15 18:32:48 haha May 15 18:33:09 people who think writing html is coding should probably be denied it May 15 18:33:22 pnf readme do you mind if I join the discussion? I came late but it sounds interesteing what you are talking about May 15 18:33:35 nothing particularly interesting May 15 18:33:41 Trudko: smooth move, exlax May 15 18:33:45 I just took a picture of a guy standing on the corner of the google campus May 15 18:34:09 ah, so it is an original :) May 15 18:35:00 anyone know if there is there a synergy client for android May 15 18:35:21 i was just saying how that'd be awesome May 15 18:35:25 a couple weeks ago May 15 18:35:33 no more moving your hand :) May 15 18:35:44 is there a resource for standard widget nameing convention...i.e. textfield named txtMyTextField1 checkbox named chkMyCheck ...that's the convention I followed before, not sure about java May 15 18:35:46 i'm battling an urge to buy an android phone May 15 18:36:03 and then also XML versus java May 15 18:36:09 you need one. trying to develop for android without any device is just a bad idea. May 15 18:36:18 one of the voices is telling me the phone can be plugged into a mounted monitor in my Command Centre May 15 18:36:32 @readme: this is hobby project May 15 18:36:45 so, some people spend fortunes on their hobbies May 15 18:36:54 an android phone is a few hundred bucks :) May 15 18:37:03 it's also useful as a communications device. May 15 18:37:07 win/win May 15 18:37:23 readme: what, you can make calls with it too? awesome! ;) May 15 18:37:38 I even send text messages May 15 18:37:44 I know...magic! May 15 18:37:47 yeah i can get a communication device for <£100. or i can get the latest quadcore device as a programming target, distracting me from other PC bits like SSD's , bigger monitors etc May 15 18:38:04 oh man, my PC is a pile of garbage. May 15 18:38:14 it's probably worth less than $100 May 15 18:38:22 and it's plenty fast. May 15 18:38:45 seems silly to call an android a "phone" these days - its very misleading May 15 18:38:59 that's why it's called a SMARTphone ;P May 15 18:39:01 i have friends who still talk with confusion about these things May 15 18:39:39 "why would i want to plug it into a keyboard-dock.. what happens i f someone calls me .. am i missing something?" YES, SKYPE May 15 18:39:52 "but the screens are small" NO THEY HAVE HDMI OUT May 15 18:40:32 there's android tv boxes, right? anyone messed with them ? May 15 18:40:56 the screens ARE small, regardless of outputs May 15 18:40:58 google tv? May 15 18:41:10 like the logitech revue? May 15 18:41:18 can you get 1920x1080p out of any android *phones* May 15 18:41:27 i'm assuming google-tv does May 15 18:41:34 google tv does May 15 18:41:43 im never used hdmi out on a phone May 15 18:41:48 i cant think of a use case where i'd want to May 15 18:41:53 i can May 15 18:41:53 maybe demoing an app May 15 18:42:15 "Look at the anti-aliasing on this text view, huh, huh, HUH?" May 15 18:42:22 i can: it would make me feel better about splashing out on a tegra3 phone if i could basically plug IO in to make it more like a pc May 15 18:42:34 (toy / hobby value) May 15 18:42:45 real computer that is pocketable May 15 18:43:05 my defiition of real computer is one that can compile its own native applications - so linux would have to be there somewher May 15 18:44:00 I think most of the hdmi outs on phones are only 720p max May 15 18:44:08 ceti331_: have you seen ubuntu for android May 15 18:44:16 but I haven't messed with those, only tablet hdmi out May 15 18:44:23 in screenshots. now thats the sort of thing that would make me feel really good about a quadcore phone May 15 18:44:29 you can use your android as full fledged PC May 15 18:44:53 my ipod touch was a 5min wonder May 15 18:45:01 its done the job of an ipod mostly May 15 18:45:18 I liked my ipod touch May 15 18:45:27 let me play iphone games May 15 18:45:34 but once I got my android device May 15 18:45:42 nice idea but i can't enjoy touchsceren controls so much May 15 18:45:45 that thing went dead and not charged again May 15 18:45:53 r-type was playable though May 15 18:46:28 i bought an iPad2 as a dev target aswell, figured the big screen was more inspiring May 15 18:46:54 i like "air-display" May 15 18:47:05 i gather there is an android version too? May 15 18:47:13 I still use my ipod touch, but much less often May 15 18:47:16 mostly when I want music May 15 18:47:17 Guys I am thinking about camera app which would allow me to select area of picture and crop the picture so only that area would be left May 15 18:47:17 not sure what air display is May 15 18:47:22 since ipods offer a better music experience for me May 15 18:47:36 what easy way how to select part of image?(maybe even whilke taking the picture it self) May 15 18:47:39 Trudko pretty sure the stock one does that May 15 18:47:39 air display = use iOS device as 2nd monitor (via RDP trickery) May 15 18:48:16 that would be a small monitor -_- May 15 18:48:16 t0mless what do u mean by stock? its some app? May 15 18:48:28 Trudko yea... the stock gallery app I think can crop May 15 18:48:39 ok but I need to add that to my own app May 15 18:48:48 yeah but think of a macbook + wired monitor + ipad May 15 18:49:01 and think of the retina display… 2048x1536 May 15 18:49:54 a small extra monitor in the right place can be usefull - e.g. sat above or below one's main screen May 15 18:50:33 I think i'd rather have a synergy client May 15 18:50:44 to be able to just go control the device with my mouse/keyboard May 15 18:51:03 maybe just because I already have 2 22" monitors May 15 18:51:42 attach it to your neck on a pole and angle the screen at about 45 degrees about a foot from your face. May 15 18:51:54 YES I've done this May 15 18:51:59 oh. May 15 18:52:01 i have to admit May 15 18:52:06 a coathanger May 15 18:52:14 you're serious... May 15 18:52:17 i used it for about 30 minutes admitedly.. but i have done this :) May 15 18:52:25 omg... May 15 18:52:27 :) May 15 18:52:40 i taped it to a cycling helmet, yes, really May 15 18:52:44 come on samsung, where's ics for the gtab10.1 already May 15 18:52:59 still waiting for Thunderbolt too :/ May 15 18:53:03 that still isn't out? May 15 18:53:09 nope May 15 18:53:10 thunderbolt is, devices aren't May 15 18:53:39 I thought gtab would be released before or around the same time as the Acer A500 May 15 18:53:47 a500 got ics already? May 15 18:53:50 yea May 15 18:53:51 last month May 15 18:53:55 samsung is terrible after post-sales support May 15 18:53:56 pfn: http://get.cm May 15 18:53:58 how do I make the emulator think I'm in Russia? testing a geo feature, but with telnet and the geo fix long lat command it wouldn't really set a country location when used with the admob+locationmanager apis May 15 18:53:59 s/after/at May 15 18:54:04 I had the leaked version in march May 15 18:54:06 canadiancow|work, I'm not getting it 'til it becomes an rc May 15 18:54:21 it's more stable than whatever samscum will release May 15 18:54:35 anyone here got any opinions on HTC one X vs samsung galaxy S3. do i wait 2 weeks o rmake an impulse purchase for the tegra3 htc one May 15 18:54:45 why not get the htc one May 15 18:55:25 yes thats what i'm thinking, i just want to make sure i'm not missing out May 15 18:55:26 ceti331_: you're already past the "impulse" of an "impulse purchase". :) May 15 18:55:44 nothing seems compelling about the sgs3 May 15 18:55:58 except sgs3 has softbuttons vs. htc's physical? May 15 18:55:58 ok good. see i dont have a strong opinion either way. May 15 18:56:10 and I have no android device direct experience. May 15 18:56:12 http://download.cyanogenmod.com/?type=stable&device=glacier May 15 18:56:17 lol none of those links work. May 15 18:56:41 how can i use a custom dns server in one of my apps? May 15 18:56:43 i told myself I'll buy May 15 18:56:58 one if i can compile my code for it.. May 15 18:57:39 hence questions about NDK 'emulator'/simulator whatever May 15 18:58:35 anyone here installed android on an x86 machine ? May 15 18:59:06 ain't we all May 15 19:01:55 anyone seen any dual screen apps. might sound crazy but, for the sort of person who ends up with 2 devices.. May 15 19:02:08 and a folding case to connect them May 15 19:02:18 as per 'sony tablet p' May 15 19:02:25 no May 15 19:03:13 i guess most sane people just trade their last device in or bin it May 15 19:03:25 they dont obsess that much May 15 19:04:48 i ain't gonna be upgrading till the Galaxy S4 or 5 May 15 19:05:04 ceti331_: dual screen apps? May 15 19:05:14 yes i'm being crazy May 15 19:05:22 Ravenheart: then you'll be waiting for S6 or S7 ;) May 15 19:05:28 naaa May 15 19:05:37 i got the S2 like 6 months ago May 15 19:05:45 am reallllllllyyy happy with it so far May 15 19:05:54 S3 looks pale for me May 15 19:06:13 although sony were crazy enough to make a folding format tablet. of course i ask, couldn't you recycle old devices to improvise :) May 15 19:06:40 no May 15 19:07:14 i've an ipad2 so i wont upgrade to ipad3. but my pocket device is singlecore, so upgrading that to quadcore now is probably ok May 15 19:08:14 feature wise s3 looks nice, design wise htc one looks nice May 15 19:09:20 can csharp compile to dalvik May 15 19:09:43 ceti331_: currently not. You're welcome to try and make DVM's equivalent of IKVM, just for .NET instead of Java May 15 19:09:46 Hi guys, does anyone know how to display reviews for ALL languages in google play? Atm it is showing me only in a single language, even from dev console May 15 19:10:04 while I can see that there are more reviews than displayed May 15 19:10:21 @p_l - i have no experience in this field but i would certainly like to look into this sort of thing if i was to try and get into csharp/mono ? May 15 19:10:29 I'm pretty sure I've heard of C# android apps, but I never bothered to investigate the technology. May 15 19:10:58 presumably its the sort of thign that the opensource community can do quite happily May 15 19:11:00 ceti331_: there's a commercial port of mono which has Mono runtime as NDK library May 15 19:11:07 hey, I want to have an Android May 15 19:11:18 ceti331_: it's however pretty expensive (from my pov) May 15 19:11:21 oops. ignore that. sorry. :) May 15 19:11:35 i should look into mono May 15 19:12:06 although it might be worth the investment (Afterall, I consider spending >1200 EUR on compiler to sensible...) May 15 19:12:19 so I guess I shouldn't complain so much about MonoDroid prices May 15 19:12:40 I have an edit text that I want to be read only...I set editable to false, but get a warning that says editable is deprecated...what to do here? I want to keep no warnings if I can May 15 19:12:50 this is in the XML May 15 19:13:18 Hrm, I have 3 months of credit on my electric bill because one month my bill came in wrapped with parens and I didn't interpret that as meaning that I had credit, so I paid the amount in the parens and ended up doubling my credit. May 15 19:13:26 GeeksOnHugs: enabled="false"? May 15 19:13:38 kk...lemme try... May 15 19:13:58 I'm not sure whether to be excited or not. May 15 19:14:09 Hi, I'm creating a bound service that acts as similar to content provider - retrieves data over the network. With the way activities bind/unbind to the service, the service might be created/destroyed often. I want to have a short term cache of the fetched data ~1minute for some data, longer for other more dynamic data. My questions: Is a bound service the best type of service to use in this... May 15 19:14:11 ...case - would it be better to persist the service? How should I persist the data? In memory, database, file - currently the data might be a few KB? May 15 19:15:07 I like having other companies owe me money. May 15 19:15:23 I can pretend that I could go out and break their legs. May 15 19:16:43 @evancharlton that makes it greyed out and also a warning that says deprecated hehe...it says use "stateenabled" instead but I find no such property May 15 19:17:27 GeeksOnHugs: editable says to use inputType May 15 19:17:54 What inputtype would I select? May 15 19:17:54 GeeksOnHugs: use inputType="none" May 15 19:17:59 ah kk May 15 19:18:00 ty :) May 15 19:18:04 http://developer.android.com/reference/android/R.attr.html#inputType May 15 19:18:27 is there an object inspector, rather than going through these menues? I'm using an eclipse derivative Motodev Studio for Android (by Motorola) May 15 19:19:31 yep that does the trick, thank you :) @evancharlton any idea about an object inspector May 15 19:19:40 like the properties in a grid May 15 19:19:56 like... the docs? May 15 19:20:06 docs? May 15 19:20:23 http://developer.android.com/reference/android/package-summary.html May 15 19:20:27 GeeksOnHugs: by the way, this isn't Twitter. May 15 19:20:50 what do you mean? Ive never used twitter May 15 19:21:12 he's just giving you crap for using @ in front of peoples nicks May 15 19:21:38 oh sorry lol May 15 19:21:52 t0mless not the documentation, I meant something that would...oh wait...I think I know May 15 19:22:07 I think what you're looking for May 15 19:22:10 is in the documentation May 15 19:22:19 nope, it's probably in youtbue May 15 19:22:27 OK, I meant something where I could change it in a window and it changes the XML May 15 19:22:57 needs video tutorial May 15 19:23:08 but it's prolly better just to keep with straight XML so I learn it better May 15 19:23:09 well... that's in eclipse May 15 19:23:15 but it's stupid May 15 19:23:31 you can list all the properties of a widget in the layout editor May 15 19:23:41 but I greatly dislike the XML it generates May 15 19:23:49 i c May 15 19:24:25 but knock yourself out May 15 19:24:31 I think you just have to add the properties view somewhere May 15 19:24:35 and you can go nuts May 15 19:24:57 gotta shutdown for a HD swap to get info off a drive off my dead server that I need to fix my dead server May 15 19:24:58 Im basically using eclipse but it's been somewhat modified so not sure what is stock or not...I don't see it but it's OK, I'm gonna stick to hard core...I wanna be able to do this front to back in notepad lol May 15 19:25:14 it's part of ADT plugin May 15 19:25:21 so doesn't matter if you're using motodev May 15 19:25:40 how would I change the background of a textview in an arrayAdapter? like if some items should be a left balloon and the rest should be a right balloon May 15 19:25:43 but if you read the docs it lists all the properties May 15 19:25:55 sweet, thank you bro May 15 19:26:09 DigitalKiwi you'd have to use your own adapter May 15 19:26:14 custom adapter that is May 15 19:26:28 oh May 15 19:26:30 extend base adapter and override getView to return the appropriate textview May 15 19:27:01 okayy, who can help me to write an android application May 15 19:27:08 d.android.com May 15 19:27:18 how would i tell it when to use which balloon? May 15 19:27:46 Check to see whatever conditions need to be met, and then return the appropriate textview May 15 19:28:14 Are you making an i May 15 19:28:18 iOS style chat? May 15 19:28:56 inb4, sued by apple May 15 19:28:57 hah i wondered how many hoops i'd have to jump through before I can compile "hello world" on android May 15 19:29:06 its still downloading May 15 19:29:25 i think handcent and even the default ones these days use balloons May 15 19:29:38 Hopsy you could try freelancer.com or rentacoder.com May 15 19:29:44 the emulator won't mock a coordinate when using geo fix over telnet -- am I missing something? May 15 19:29:58 use ddms? May 15 19:30:10 xertoz: will too! May 15 19:30:17 t0mless: why? May 15 19:30:25 Note that it is geo fix lon lat and not geo fix lat lon May 15 19:30:35 I would to make by my self May 15 19:30:44 but the sdk doesnt work May 15 19:30:46 then why did you ask who would do it for you May 15 19:30:54 pretty sure the sdk works May 15 19:31:10 pretty sure it isnt May 15 19:31:24 atleast for me May 15 19:31:26 it isnt May 15 19:31:44 user error May 15 19:31:49 indeed May 15 19:35:16 t0mless: seems I can't get it to work through ddms either May 15 19:35:43 EuroTrash: the problem is that the last known location is always NULL; regardless of what I've told it to be. May 15 19:36:18 wtf, why does my laptop want that nick so bad May 15 19:36:23 I wasn't aware you could tell the device where to be. Did we invent teleportation yet? May 15 19:36:57 you can mock locations to it May 15 19:37:06 i've never done it May 15 19:37:08 but I hear you can May 15 19:37:34 iirc, you have to enable that in the debug/development settings May 15 19:37:43 pragma-: thanks for the common sense earlier. I wrote code to read the sqlite database and email it back to me May 15 19:37:46 I believe you're right May 15 19:37:49 this should shed some light on it May 15 19:42:00 anyways, using http://nrby.eu/c/92 with the fine location permission & the location variable won't be non-null on the emulator wether or not I'm telling it to fix a coordinate.. works just fine on my physical device :/ May 15 19:42:43 I've enabled apps to recieve all location info in the emulator as well May 15 19:42:49 (4.0) May 15 19:43:31 did you go into the dev options and enable mock locations? May 15 19:46:48 here it is, copy a sqlite database and email it :) https://github.com/tom-dignan/android-debug-helpers/blob/master/src/com/tomdignan/android/debughelper/DebugHelper.java May 15 19:46:53 mock locations are enabled May 15 19:49:18 readme: you should pull a JakeWharton and rename it from android-debug-helpers to tomdignan-android-debug-helpers and put your name in as many place as possible May 15 19:50:13 * pragma- wishes Jake were here to hear that zing. May 15 19:53:53 my name is already my github :) May 15 19:54:15 readme: so you don't delete the database from the sdcard after you send it? May 15 19:54:32 nah, because if it doesn't send or they have trouble with it, i'd prefer them to be able to go get it manually May 15 19:55:06 * pragma- nods May 15 19:58:01 ghkgkj May 15 19:58:51 vekexasia: you mispelled that May 15 19:59:00 nope :) May 15 19:59:49 eclipse is building workspace. I need to wait... What do you suggest I can do in the meanwhile ? May 15 19:59:56 learn to spell May 15 20:00:02 watch some porn May 15 20:00:19 lol May 15 20:00:21 vekexasia: earn money for a ram upgrade. Or go buy it already May 15 20:00:54 I already have 16Gig ... the problem seems to be Eclipse Indigo .... It also crashes quite often lol May 15 20:01:03 heh heh May 15 20:01:14 vekexasia: document your code May 15 20:01:14 * Exano has 1 gig on his netbook atm :( May 15 20:01:42 * p_l has 4G. It's not enough to run Chrome ;) May 15 20:01:44 readme: good hint. The problem was that Eclipse frooze for 3 mins :P LOL May 15 20:02:08 better keep a text editor open somewhere then May 15 20:02:40 noone is experiencing crashes with indigo ? on Win64 ? .... Just curiosity May 15 20:02:51 s/eclipse/vim/ and s/chrome/firefox/ for a happier life May 15 20:04:24 arghhh sdk still downloading May 15 20:04:41 \me thinks he's the only one experiencing issues with eclipse indigo + win64 May 15 20:04:47 FAIL! May 15 20:05:00 works fine here May 15 20:05:21 everyone has crashes with eclipse May 15 20:05:30 ^ May 15 20:05:37 it decides when you havent saved in the longest point May 15 20:05:41 and then it'll crash May 15 20:06:02 its got AI May 15 20:06:32 well I'm CTRL+S addicted so it's not a pain in the ass in that way. The main problem is I get a crash very often... lets say once every hour at least May 15 20:06:47 adt has made eclipse crash, but i almost never have problems with eclipse / jdt May 15 20:07:14 increase the memory for eclipse May 15 20:07:19 eclipse is a pig May 15 20:07:21 dex is a pic May 15 20:07:23 aapt is a pig May 15 20:07:29 s/pic/pig/ May 15 20:07:37 i have never had a problem with eclipse May 15 20:07:43 other than using it May 15 20:07:44 :) May 15 20:08:34 lol oGMo :) ... Btw, I just discovered that if my fragment is empty it shows an indefinite progressbar instead of the fragment content ( Which is nice ) May 15 20:08:42 all my eclipse stuff runs in 450 mb of memory :) May 15 20:08:57 i dont know what every is complaining about, except that it sucks :D May 15 20:09:07 oGMo: how much memory size do you "recommend" ? May 15 20:10:07 vekexasia: for what? May 15 20:10:24 can you develop for android using xcode on a mac May 15 20:10:35 or is eclipse the weapon of choice May 15 20:10:43 for compiling.. most apps May 15 20:10:46 can you build ok from the command line May 15 20:11:03 vekexasia: oh, i dunno, but isn't ram cheap? May 15 20:11:09 this is a cool visualization on android http://news.ycombinator.com/item?id=3978304 May 15 20:11:09 ah developers bitching about Eclipse, a classic. May 15 20:11:25 in my ideal world everything works from the commandline and IDE's are an optional ui over the top May 15 20:11:26 i'm sadly down to 12GB in this box, but one of my sticks went bad May 15 20:11:26 bubbleguuum: an ide by developers, against developers May 15 20:11:33 Eclipse isn't a bad idea but man, does it have some annoying qualities. May 15 20:11:52 Like mine... throws an error about a missing tooltip like 20x a day. May 15 20:11:56 heh May 15 20:11:59 I don't care if you can't display the tooltip!!!! May 15 20:12:01 dude it has some quirks May 15 20:12:14 but whats better :\ May 15 20:12:23 LOL EuroTrash May 15 20:12:38 for a change: Eclipse is awesome May 15 20:12:40 I don't even know how to set the memory size for eclipse May 15 20:13:00 will google it in the next Eclipse freeze May 15 20:13:12 vekexasia: you edit -Xmx in the ini file. May 15 20:13:23 Man it sure is strange they didn't just add that to a preferences pane. May 15 20:13:25 Anyboyd worked with jsonobjects? getting exception "org.json.exception expected : after match substrings" May 15 20:13:31 what does that mean? May 15 20:13:36 so the lookup key value for contacts queries... i'm guessing the keys are tied to the phone itself and will change between devices? May 15 20:13:38 matched* May 15 20:13:40 t432: use Google Gson May 15 20:13:43 saved my life once! May 15 20:13:44 so a key for a contact on one device would be different from that same contact on another phone, right? May 15 20:13:54 vekexasia: what were you dying from? May 15 20:14:08 ContactsContract.Contacts.LOOKUP_KEY that is. May 15 20:14:10 Gson isn't bad but I much prefer Jackson. May 15 20:14:10 vekexasia: I have May 15 20:14:29 not much info to gone May 15 20:14:32 go on* May 15 20:14:52 pragma-: ? , t432: seems like your json is not well formed. Try to use jsonlint.com to see if that's the case May 15 20:16:07 EuroTrash: whats your value for -Xmx ? May 15 20:16:57 vekexasia: here is the actual json content ... http://pastebin.com/hndSntS6 May 15 20:17:07 vekexasia: 1024 May 15 20:17:11 On 8GB of RAM May 15 20:17:25 1024M that is May 15 20:18:05 vekexasia: JSON is valid May 15 20:18:34 its a shame JSON doens't allow unquoted keys May 15 20:18:55 ceti331_: I think it does. May 15 20:19:11 officially it really doesnt, but i imagine many parsers would relax that - i would May 15 20:19:20 t432: are you sure you're not receiving some null characters? May 15 20:19:58 ceti331_: we just need to test if it works on IE. If it does then it's wrong! May 15 20:20:03 i've seen people complain about calling the format with unquoted keys "JSON" May 15 20:20:35 vekexasia: What does the exception mean? May 15 20:20:36 well I always suppoused that was a "bad practice" .... May 15 20:20:39 when I read "GSON", i wondered if google had decided to allow unquoted keys and specified "GSON" :) May 15 20:21:15 i would be curious, who here has used JSON reading libraries, and do they allow unquoted keys? May 15 20:21:20 did you get the exact point where the parser fails ? May 15 20:21:49 ceti331_: well I work mainly as a webdev and I believe that unquoted keys works almost everywhere May 15 20:22:12 ceti331_: I'm not really aware, as I serialize and deserialize programmatically pretty much all the time. May 15 20:22:19 I.e. map May 15 20:22:23 thats reassuring to hear. i guess most implementers think , "its much nicer!!" and support it anyway May 15 20:23:20 anyone know of any JSON formats for 3d model data? May 15 20:23:41 ceti331_: ... that is a terrible idea. May 15 20:23:44 why May 15 20:23:49 i mean for interchange May 15 20:23:58 not compiled May 15 20:24:29 here is the actual code... http://pastebin.com/Y8esB4D6 May 15 20:24:54 [1] many 3d packages allow a dynamic langauge to walk the scenes and [2] dynamic languages usually support JSON [1]&[2] make me think it would be nice to have an interchange format in JSON May 15 20:25:11 can't be as bad an idea as XML May 15 20:25:33 haha t432 May 15 20:25:35 thats why May 15 20:25:41 FOA: you're not using GSON May 15 20:25:54 I told you I'm using JSON May 15 20:26:11 2nd: the bugged line is JSONArray jsonVals = new JSONArray(predictions.getString("predictions")); May 15 20:26:14 on line 30 May 15 20:26:25 you should use predictions.getJSONArray May 15 20:26:32 or something similar. Let me google that for oyu May 15 20:27:08 http://developer.android.com/reference/org/json/JSONObject.html#getJSONArray(java.lang.String) May 15 20:29:07 t432: does my suggestion work for you ? May 15 20:32:24 vekexasia: Nope, changed the offending line to JSONArray jsonVals = predictions.getJSONArray("predictions"); May 15 20:32:30 but same exception May 15 20:32:55 t432: which line? May 15 20:33:20 EuroTrash: how much megabytes do you have for Xms ? May 15 20:33:23 line 30 May 15 20:33:37 vekexasia: dunno, mostly don't care :P May 15 20:33:51 I.e. default May 15 20:33:56 do you know what does that parameter do? May 15 20:34:15 It sets the minimum heap size, i.e. the amount of memory it starts with. May 15 20:34:31 ok so useless :P May 15 20:34:31 lol May 15 20:34:48 Eclipse being Eclipse, it'll probably use that for a nanosecond or 2 and then start binging :P May 15 20:35:01 t432: May 15 20:35:07 can you nopaste the whole code? May 15 20:35:13 sure May 15 20:36:40 vekexasia: http://pastebin.com/ea7QY981 May 15 20:37:02 line 30 looks like this to me JSONObject predictions = new JSONObject(bos.toString()); May 15 20:38:18 your while is wrong May 15 20:38:27 from line 21 to line 27 May 15 20:38:46 use EntityUtils.toString(httpGet); May 15 20:38:55 should give the result in string. May 15 20:39:30 I don't believe EntityUtils is available in Android May 15 20:39:43 Sleepybear: i'm using it ... May 15 20:39:50 built in? May 15 20:39:56 I believe so.... May 15 20:40:09 or including the java.commons or whatever it is May 15 20:40:20 Looks like its there since api 1 http://developer.android.com/reference/org/apache/http/util/EntityUtils.html May 15 20:40:22 http://developer.android.com/reference/org/apache/http/util/EntityUtils.html May 15 20:40:36 its line 32 in new pastebin May 15 20:40:52 hrm, must be thinking of something else May 15 20:41:21 vekexasia: HttpGet is fine May 15 20:41:25 t432: use getJSONObject instead of get May 15 20:41:27 is it the case that any device with android 3.1+ can run as a USB host, at least with an OTG adapter? i'm having a hard time determining this for most devices i see. May 15 20:42:02 vekexasia: what line are you refering to? May 15 20:42:18 34 May 15 20:42:24 plus i believe you should replace May 15 20:42:32 from line 19 to line 27 May 15 20:42:53 with String responseData = EntityUtils.toString(httpGet); May 15 20:43:07 than use new JSONObject(responseData) May 15 20:43:26 and how can i determine if a given device's audio jack supports both input and output? May 15 20:43:41 akoustik: i'd be interested in that too May 15 20:44:31 yeah, it seems like some specs list the jack as being in/out, while some devices that (i think) support in/out list only output capability. May 15 20:44:35 are there any android devices with a 3.5mm jack that isn't a 3pin stereo out and mic in? May 15 20:44:51 that's what i'm asking. i'm pretty sure there are... May 15 20:44:58 I've never seen one May 15 20:45:02 like, isn't the kindle fire audio jack output only? May 15 20:45:17 never even touched one of those, so dunno about that May 15 20:45:20 kindle fire isn't evene Android :P May 15 20:45:27 uhh May 15 20:45:29 yea it is May 15 20:45:36 vekexasia: well... actually it is. a forked version of 2.2 May 15 20:45:36 yes but very limited May 15 20:45:40 basically it's not May 15 20:45:59 but that's only an example May 15 20:46:11 maybe some of the newer 90$ tablets coming out May 15 20:46:13 won't be using i/o jacks May 15 20:46:23 yeah see that's kinda what i'm thinking. May 15 20:46:50 basically, for my project, i need some tablet that's capable of external audio input in some form. May 15 20:47:17 well, even if it's not an i/o jack, don't they all have a built in mic somewhere? May 15 20:47:19 whether through usb host or aux input, doesn't really matter, but i'm having a hard time figuring it out for most devices... blurgh May 15 20:47:49 yeah, and i'm looking for those devices separately. for our application, we strongly prefer a higher quality audio input than most onboard mics are going to provide. May 15 20:47:49 and even then, it shouldn't matter, except with like usb or bluetooth May 15 20:50:17 so yeah, we need a device that has either usb host capability, or external audio input. i have the asus slider as top choice, but it's a little costly for us. anyone have better suggestions? May 15 20:52:31 Hi, Can anybody help me with a issue that I have with the webview on Android ICS? I'm trying to load an url with https but it has a certificate that is untrusted for the browser, so it doesn't load the page even doesn't show to the user an alert if he wants to continue like a normal browser May 15 20:52:58 how do i set drawableTop of an imagebutton programatically? May 15 20:53:27 am i missing something? is there not a google tv emulator for os x? May 15 20:55:11 lol I love people asking help and when you actually help them they don't even thank May 15 20:55:37 such is life vekexasia :) May 15 20:55:56 thats why you shouldnt help people who dont seem like they at least put some effort into their question May 15 20:56:08 right EvilPenguin .... May 15 20:56:12 I can thank if anyone help me with my issue :P May 15 20:56:33 i dont understand why im not seeing the google-tv addon :( May 15 20:56:35 stupid eclipse. May 15 20:56:40 hello , i have a doubt. Exist a rtree to index game objects May 15 20:56:46 anelrh26: hm, I'm not sure about whether you can trust certs in webview like that. May 15 20:56:56 anelrh26: you *can* with HttpClient, though. May 15 20:57:08 Hi guys. Anyone doing android dev with scala? I have a hard time to make the android Logger shows anything. I just do a Log.e("activity", "test"), and nothing appears on the logcat. I suppose it's because I need a debug flag at compil time but I'm not sure. Any ideas? May 15 20:57:29 canadiancow|work: ping May 15 20:57:32 anelrh26: I'll suggest to buy a trusted certificate. On my blog here http://www.andreabaccega.com/blog/2010/09/23/android-root-certification-authorities-list/ you'll be able t o find the command list to issue on your terminal in order to get the whole list as I did May 15 20:57:35 in 2010 May 15 20:57:36 you don't need debug flag to send to logcat May 15 20:57:42 readme: I can load with a HttpClient but no in a webview May 15 20:57:52 Sleepybear: That's what I wanted to know. May 15 20:58:03 Ok, so you have an idea where the problem is? May 15 20:58:11 anelrh26: depending on the complexity of the page you're accessing, you might just use HttpClient and then load the data into the webview. May 15 20:58:25 you don't have to use webview to make the requests. that's optional. May 15 20:58:27 you sure you're not filtering your logcat May 15 20:58:42 readme: that would be a pain in the ass... more pain if the page has some subpages May 15 20:58:42 Sleepybear: Nope. Just doing "adb logcat" in a term. May 15 20:58:47 http://stackoverflow.com/questions/6511434/android-webview-setcertificate-issues-ssl-problems May 15 20:58:50 try this code May 15 20:58:59 not sure why it's not showing up then May 15 20:59:01 at least, try to base your idea off it. it seems broken. May 15 20:59:03 let me check May 15 20:59:10 pfn might know, he uses scala May 15 20:59:22 pfn: ping May 15 21:00:04 what? May 15 21:00:34 pfn: Why my logging is not appearing in the logcat? I'm using Logcat.e("activity", "message") in my scala code and it doesn't show up. May 15 21:00:42 I'm sure I'm passing in this code. May 15 21:00:45 then your code isn't executing May 15 21:00:54 pcboy_: um, isn't it Log.e May 15 21:00:56 Nope, my code is doing an http request, and I can see it. May 15 21:01:07 readme: Uh yeah Log.e my mistake. May 15 21:01:18 often you don't see stuff in logcat just because you need to restart eclipse May 15 21:01:22 or because the screen lock is on May 15 21:01:25 I'm not using eclipse. May 15 21:01:29 or the usb cable isn't plugged in tightly May 15 21:01:33 are you using adb logcat? May 15 21:01:36 Yeah May 15 21:01:43 do you see other messages? May 15 21:01:45 Yeah May 15 21:01:53 that code isn't executing, all there is to it May 15 21:01:54 oh, then it sounds like you may have a bonafide problem. May 15 21:01:59 readme: yes the think is that I'm doing a hybrid application so definitely I have to use an webView for the entire app, so the HttpClient is no a good idea. But let my try your link thanks May 15 21:02:02 pfn: I can see the requests on my server.. May 15 21:02:05 using scala doesn't mean your logcat will stop working May 15 21:02:13 then you're not running the code you think you're running May 15 21:02:14 anelrh26: fix the ssl cert on the server side May 15 21:02:17 don't use crappy ssl certs May 15 21:02:23 it is an important part of infrastructure. May 15 21:02:28 pfn: I know. I was just wondering if there is a compilation issue (like a debug flag to add otherwise Log doesn't show anything) May 15 21:02:45 no, there isn't May 15 21:03:12 what do you mean with crappy ssl certs? May 15 21:03:29 anelrh26: i mean certs that aren't trusted by modern browsers May 15 21:03:48 if your stuff isn't being trusted by the webview, you are probably using a third rate CA May 15 21:05:00 * readme spent a week trying to get a certificate to validate once, and it only did on certain android versions even though I provided my own with the bouncy castle jar. May 15 21:05:02 yes you're right. But why the webview doesnt have the option to continue even if it doest trust? May 15 21:05:15 I don't know, ask the developers May 15 21:05:26 maybe it does May 15 21:05:28 afaik it doesn't May 15 21:05:36 why use a webview anyway May 15 21:05:50 and installing your own ssl trust manager is easy May 15 21:05:51 pfn: I've put the Log.e() at the first line of the onCreate(). Doesn't work. May 15 21:06:00 In a webview, pfn? May 15 21:06:09 I know how to do it with httpclient, but not with a webview. May 15 21:06:31 no, for arbitrary ssl May 15 21:06:33 vekexasia: voila! May 15 21:06:39 vekexasia: Thanks May 15 21:06:43 for a webview, it seems like a pain, maybe if you setCertificate to something signed by the same ca May 15 21:06:43 pfn: like, global? May 15 21:06:43 t432: lol May 15 21:06:55 i was just talking about you didn't thank me :P May 15 21:06:57 readme, no May 15 21:07:09 sorry got disconnected May 15 21:07:10 anyway, ignore my statement, about being easy, it's inapplicable to webview May 15 21:07:26 try setCertificate in the webview to a client cert signed by the CA that signs the server cert May 15 21:07:39 that may be ok to make webview trust the server May 15 21:07:49 Thats all for today. May 15 21:07:52 I'm out May 15 21:07:55 https://github.com/tom-dignan/Android-OpenCNAM-Library/tree/master/android-opencnam-library/src/com/tomdignan/android/opencnam/library/ssl May 15 21:08:02 that about covers it for httpclient ssl strategies May 15 21:08:03 vekexasia: Thanks again May 15 21:08:11 hope thats clear :) May 15 21:08:11 turns out, most of them don't work on all devices. May 15 21:08:17 lol no need. Glad to know you solved May 15 21:08:19 at least for the crap cert I was using. May 15 21:08:34 readme, sounds like a pain, couldn't you just specify your own sslsocketfactory for httpclient? May 15 21:08:47 thats what i do May 15 21:08:56 there are few different ways to write the factory May 15 21:09:00 readme, that generally works across all devices May 15 21:09:12 I have no issues with setting an sslsocketfactory and making it work across all devices so far May 15 21:09:14 I love it when my system restore points totally disappear May 15 21:09:16 at least no user reported errors May 15 21:09:17 the only solution I found that worked across all my test devices was trusting the SSL blindly May 15 21:09:27 any time I tried to validate the cert, it only worked on some devices. May 15 21:09:33 ah, I see May 15 21:09:41 that's interesting, what was the failure mode? May 15 21:09:54 so I've got basically 3 versions: trust the ssl in addition to the existing certs, trust only the self provided cert, or trust all May 15 21:10:14 I don't remember exactly, it was probably a untrusted exception May 15 21:10:19 it was like 5 weeks ago now May 15 21:10:40 anyway, i only went down this road because I was working with a cert that was out of my hands, and they've since upgraded it :) May 15 21:10:40 that's what I need!! that the webview trust all the certificates May 15 21:10:59 my solution: trust all in HttpClient then load data into webview. May 15 21:11:00 readme, shoulda just hosted your webservice on appengine, then you wouldn't need to go through this pita May 15 21:11:14 anelrh26: you can override url loading with WebView client May 15 21:11:14 I tried that readme May 15 21:11:16 yeah it wasn't my service. May 15 21:11:20 indeed May 15 21:11:31 and it loads perfect May 15 21:12:03 but when I click on an url on the webview, I have the same error problem May 15 21:12:21 anelrh26: _override_ _url_ _loading_ May 15 21:12:26 how many times have I said that now May 15 21:12:43 see WebViewClient May 15 21:13:34 I got it! what you are saying readme. Thanks a lot!!! :P May 15 21:13:39 :) May 15 21:13:53 I'm going to try this again May 15 21:14:13 THANKS ANYBODY THAT HELP ME WITH THIS May 15 21:21:24 I notice that some apps, upon handling an intent for an activity, will replace any existing instances of that activity with the new one. how does one do that? May 15 21:22:24 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP May 15 21:22:27 orospakr: ^ May 15 21:22:50 Hey readme I tried the HTTPClient and load the content with webview.loadData... It trust the certificate perfectly but it seems that the CSS of the page are turn off. Do you know something about this? May 15 21:24:10 because it doesn't know where to find assets May 15 21:25:22 anelrh26: get jsoup, use it to parse the dom May 15 21:25:28 traverse all the link tags and download the CSS yourself May 15 21:25:55 I know this is getting ridiculous huh :) May 15 21:26:12 mmm that sounds pretty wild :S May 15 21:26:17 jsoup is easy May 15 21:27:02 mm ok, let me search for it, thanks May 15 21:30:04 readme, aha, thank you. That got me pointed in just the right direction. :D May 15 21:30:06 cheers. May 15 21:34:48 anelrh26: buy a certificate! :p May 15 21:36:25 can anyone tell me if theres an android gui component like this http://www.youtube.com/watch?v=sWNpZhAccrM&feature=youtu.be? May 15 21:36:42 a viewpager? May 15 21:36:46 its like a gui at the bottom shows current position and u can skip left and right May 15 21:36:49 oh yeh? May 15 21:36:58 havent used one yet does it have the indicator? May 15 21:37:13 ill look into it thanks May 15 21:37:13 i doubt it May 15 21:37:36 guess its easy to make my own May 15 21:37:40 you can add one easily May 15 21:38:16 how would u add one evancharlton ? just use imageviews and change the image according to an index? May 15 21:38:29 hmm... can you load your own chosen certificate for HTTPS calls? And *only* that certificate as trusted? May 15 21:41:53 hmm... appears it works, but I have to manually connect and pass the socket to HTTP class May 15 21:42:14 to vekexasia I can buy one, because it's not my certificate is for my client that has a self-signed certificate and it's not trusted by the browser May 15 21:42:26 well it's normal May 15 21:42:42 do you need a list of trusted ca's? May 15 21:43:00 gaz`: spend five seconds looking at docs, please May 15 21:43:15 that will be helpful, yes May 15 21:43:35 k May 15 21:44:23 http://www.andreabaccega.com/blog/2010/09/23/android-root-certification-authorities-list/ May 15 21:44:58 In that blog post I also wrote the commands to get that list May 15 21:46:27 and sorry to ask, but I'm not very familar with ssl. But how can help me this list? May 15 21:46:45 with the certificates sorry May 15 21:47:05 anelrh26: May 15 21:47:15 HTTPS works basically this way. May 15 21:47:26 - your browser ask for the certificate May 15 21:48:04 - The server gives a fingerprint ( I think ) and it tells your browser which "CA" ( Certification Authority ) issued that Certificate May 15 21:48:19 - Your browser goes to the CA and asks them to validate the certificate May 15 21:48:28 but May 15 21:48:44 If the server answers with an unknown CA for the browser May 15 21:49:01 the browser will stop the process immediately May 15 21:49:13 self signed ceritificates uses a custom CA May 15 21:49:34 so you need a CA which is present in android ( Android knows it ) May 15 21:49:45 then you go to them and you buy a certificate May 15 21:49:53 i recommend GoDaddy May 15 21:50:00 really May 15 21:50:18 They issue https certificates and they don't cost too much May 15 21:50:25 startssl.com May 15 21:50:26 would you really trust someone calling themselves "godaddy" May 15 21:50:27 free ssl certificates May 15 21:50:35 the whole CA business is just flawed May 15 21:50:38 pfn lol ? May 15 21:51:00 well sorry guys I didn't know I always used Godaddy :( May 15 21:51:14 anelrh26: basically, the browser needs to know if it can *trust* the certificate to state the truth. It has access to a list of trusted certificates, and has to backtrack using signatures to one of them, or consider the certificate untrusted May 15 21:52:03 each certificate can be signed by another certificate, which means that the holder of the signing certificate is a "witness" to validity of signed cert May 15 21:52:52 SSL is probably one of the dumbest wide-scale systems I've ever seen May 15 21:52:59 pfn: is startssl ca availabel in android? May 15 21:53:03 yes May 15 21:53:09 iirc May 15 21:53:17 startssl is available on most everything now May 15 21:53:31 http://www.andreabaccega.com/blog/2010/09/23/android-root-certification-authorities-list/ May 15 21:53:35 on 2010 May 15 21:53:36 evancharlton: all systems are broken May 15 21:53:39 bbl May 15 21:53:41 it was not May 15 21:54:09 hmm maybe startcom = startssl? May 15 21:54:15 yes, startcom is startssl May 15 21:54:28 lol so i'm the only dumb to buy ssl certificates? May 15 21:54:44 no, you should buy ssl certs if you're doing something beyond basic encryption May 15 21:54:55 e.g. any commerce should be protected over a stronger, identified cert May 15 21:55:35 jumm!! thanks guys for your help I really appreciate it. May 15 21:55:59 lol well.. that's a nice one thanks pfn... May 15 21:56:14 hey, if my app contains only a single activity, and it has added (using fragment transactions) a bunch of back stack entries, and then it fires off startActivity() with an Intent handled by itself with the FLAG_ACTIVITY_CLEAR_TOP flag, will my fragment transaction backstack entries be lost or kept? May 15 21:56:34 it would be awesome if they were kept. :) May 15 21:57:58 is there a way to do this in java: $array = array("string1" => array("string2", "string3", "string4"));? maybe with a map? May 15 21:59:18 Map> May 15 21:59:34 vorwaerts: I'm going to remind you once more that this is not #how-do-i-java May 15 21:59:51 is there a channel? May 15 21:59:55 ##java May 15 22:01:50 thank you May 15 22:03:40 vorwaerts: with me helping you today you are still stuck on that. May 15 22:03:46 i smell you know nothing about java or programming :/ May 15 22:08:05 anyone got an idea what GradientDrawable()s need to play nicely in terms of .setColor() and .setStroke() ? May 15 22:08:34 It seemed relatively simple when I started implementing, but now I'm crashing and/or just plain not seeing color changes May 15 22:11:02 EvilPenguin im about to learn it :) May 15 22:13:55 Hey all, am I in the right place to talk about kernel issues? May 15 22:15:35 I'm attempting to see what I can do with a Toshiba Thrive and an updated kernel - but I don't have any info on the Tegra2 chip, because Nvidia is an asshole. May 15 22:16:06 Was wondering if anyone knows of any devices based on the same/similar Tegra2 chip? Google is not yielding results. May 15 22:16:47 Stamp on the chip ID's it as A09B350 May 15 22:16:59 you want #android-root May 15 22:17:14 Ah. Thanks :-) May 15 22:19:54 hello. i have a coded layout (no xml, since i have to build it runtime) and i need to persist it on screen rotation. i tryed putSparseParcelableArray/restoreHierarchyState in onSaveInstanceState/onRestoreInstanceState but it doesnt work with this layout. any help please ? May 15 22:22:08 i have set an id (setId) on all the views but it's still not working May 15 22:22:18 vorwaerts: about to learn it and your taking on hard tasks. May 15 22:22:26 vorwaerts: a hello world might be easier. May 15 22:22:27 :P May 15 22:33:47 Hi, I've got a question: how do you make a layout a child of another layout? May 15 22:36:25 Just upgraded to Ubuntu 12.04 May 15 22:37:00 i find the whole idea of upgrading an ubuntu system rather quaint May 15 22:38:31 why May 15 22:38:59 i assume you mean that sarcastically.. i use ubuntu as my primary email server and it rocks. May 15 22:39:16 Ologn: im installing 11.10 right now ;/ May 15 22:39:24 lol slowly getting there for the stupid GoogleTV... May 15 22:39:33 i haven't used ubuntu server for a while, th edesktop version seems to have gotten progressively worse May 15 22:39:38 i only aosp would build on 12.04 May 15 22:39:44 yeah, the desktop version is lol May 15 22:39:45 :) May 15 22:39:47 I use mint May 15 22:39:50 s/i/if May 15 22:39:57 I run gnome-shell on ubuntu. May 15 22:40:02 i use gentoo when forced to use linux :/ May 15 22:40:50 i'd probably use arch if i had the time to play with it May 15 22:41:03 yeah arch is good if your lazy :P May 15 22:41:18 wanna try out this xmonad thing May 15 22:41:21 i like messing with my flags :) May 15 22:41:33 regarding my earlier setColor and setStroke issue, does anyone know of a workaround for the bug that causes drawables to be cast to ColorDrawable for no apparent reason? May 15 22:42:03 i don't; i have a job :p May 15 22:42:21 so do i :) here right now installing ubuntu :( May 15 22:42:27 stupid googletv. May 15 22:42:47 arch is a pain. you have to mess with the pacnew/pacold stuff in etc. May 15 22:42:59 One problem with Ubuntu is their upstreams hate them...first they pissed off the Debian guys, then the Gnome guys...so who is going to fix those tough Gnome or fd.o problems when Ubuntu runs into them. Because everyone at Canonical working in those departments is clueless. May 15 22:43:01 pacdiffs May 15 22:43:04 no thanks May 15 22:43:29 I used it for a year or so. not for me. May 15 22:43:45 ill stick with my os x :) May 15 22:44:02 linux is a pain all round May 15 22:44:18 i dont get why google wont update the emulator for os x or winblows. May 15 22:44:25 a lot of it is just the blind leading the blind May 15 22:45:57 I've been using Unix since 1989, on the desktop since 1994 or so...it's gotten a lot better in many ways. No more LILO, messing with the X11 config file, making the kernel with make mrlinux etc. May 15 22:46:19 Linux is a pain, just slightly less so than OSX or Windows. May 15 22:47:09 my non technical girlfriend was able to install linux mint and use it without problems May 15 22:47:30 minty fresh May 15 22:47:35 even noobs can do it May 15 22:47:43 disagree; windows 'just works' as a development, gaming, andweb browsing machine for me. No messing around with awful packaging systems, dodgy drivers, etc. you just install it and it works May 15 22:47:57 i hate windows :) May 15 22:47:59 it requires almost no effort in setup and configuration May 15 22:48:05 Windows kills my workflow. May 15 22:48:32 storkme: sounds like osx to me and i get icloud. May 15 22:48:37 i couldn't live without the window management in windows, the whole windows key + arrow stuff May 15 22:48:40 yeah, windows has a great packaging system May 15 22:48:41 Poor shell, poor window management, stupid update policies May 15 22:48:53 just install random exe, msi, zip, or other bullshit in a global namespace May 15 22:49:33 evancharlton: andit just works! no fucking around with dependencies, no hunting down missing files, it'sjust done May 15 22:49:53 storkme: until you need to upgrade and every silly app has its own mechanism. May 15 22:50:20 what size of wallpaper should be on qhd? May 15 22:50:23 anyone May 15 22:50:25 still beats the hell out of compiling from source :p May 15 22:50:25 please May 15 22:50:39 storkme: I rarely do that, but when I have to, at least I have the option :) May 15 22:50:54 It's not 1998 anymore. May 15 22:51:14 storkme: yeah, it just works to install a trojan and add your computer to a botnet. May 15 22:51:22 linux has peer review going for it May 15 22:51:32 you know that if your package is in the repos, others would raise a red flag if it was malicious May 15 22:51:36 peer review by other idiots May 15 22:51:54 Linux kernel really hasn't had many driver issues for a while...nowadays they're even ahead of the curve on stuff that hasn't come out in the mainstream, or at all...the distribution packaging can be a problem. The last real hiccup was 802.11 stuff a few years ago. May 15 22:52:06 storkme: uh, no. May 15 22:52:20 If a driver exists, it's often much easier to "install" it in Linux. May 15 22:52:29 I.e. load May 15 22:52:44 I actually find getting hardware to work easier on linux, provided it has a driver available, which is more hardware older than 6 months. May 15 22:52:59 i have had enough trouble with badly maintained packages in various linux flavours; the open source dream has been shatteredfor me May 15 22:53:15 you must not be using the popular ones May 15 22:53:30 the less used packages sure might have issues, i'll admit that May 15 22:53:34 storkme: It depends what the project is. Some projects are run by really sharp people. Some projects - well, the poppler library (PDF rendering) is run by nice guys, but the code base it runs on is garbage, and the maintainers don't have a lot of time May 15 22:53:35 ubuntu and arch were the two i had problems with May 15 22:53:37 but as a linux user May 15 22:53:44 Open source isn't a dream for me, maybe that makes me more realistic :D May 15 22:53:46 it's your duty to report the bug, or try to fix it. May 15 22:53:54 readme: exactly May 15 22:54:34 but that doesn't justify an argument against the security of a peer reviewed and centralized repository for preventing malware installation. May 15 22:54:35 Then on the other hand, poppler depends on cairo, a 2D graphics library which is well done, and is just getting better and better May 15 22:54:41 it just justifies your personal distastes with GNU/Linux May 15 22:55:19 when did i ever talk about malware? it's never been a problem for me; I use a virus scanner and onl install peer reviewed software May 15 22:56:20 now you're going to tell me "how is it peer reviewed if it isn't open source?" to which i'll reply "when was the last time you read the source code of something before you installed it" May 15 22:56:22 I mean Windows - does it come with a CD/DVD you can wipe and reinstall the system with? It did in 1995 and before, then they started putting out these OEM reinstall CDs...what garbage May 15 22:56:42 I can't even wipe and reinstall my own system...garbage, garbage OS May 15 22:56:48 storkme: 18:51 < storkme> peer review by other idiots May 15 22:56:48 Don't get me started on optical media. May 15 22:56:56 that's what I was referring to. May 15 22:56:59 They're just so awkward. May 15 22:57:17 you're discrediting an entire community of competent developers who put a lot of effort into this stuff. May 15 22:57:44 i wasn't talking about malicious softwar but broken software - packages with missing files, config files that don't work, no documentation, that sort of thing May 15 22:57:48 and also putting words in my mouth, at the same time. asserting that you know what I will say next. May 15 22:58:01 Maybe what storkme meant by that is the Ruby on Rails community May 15 22:58:05 storkme: the question I have is not "how is it peer reviewed if it isn't open source?" but "do you really think your Binary Package Inspectors aren't idiots?" :D May 15 22:58:08 well that is what you were gonnna say isn't it :p ? May 15 22:58:14 no May 15 22:58:28 well in that case we have no problem here May 15 22:58:31 a binary can be peer reviewed just as fine. if a cpu can read it, a human can read it. May 15 22:58:59 my copy of Windows 7 came with a wipe-and-reinstall recovery DVD. May 15 22:59:00 infact, the android market is a good example of peer review without necessarily looking at source code. May 15 22:59:20 readme: well, no pre-release external review May 15 22:59:26 windows 8 is adopting a market model, isnit it? May 15 22:59:28 isn't* May 15 22:59:29 * pfn pokes ctate May 15 22:59:47 it's not like (a) the source code isn't published post-release, or (b) there isn't ongoing peer review within Google during development May 15 22:59:51 ctate: personally, i like debian's model :) May 15 23:00:04 pfn: i BEG your pardon May 15 23:00:19 you are pardoned May 15 23:00:37 ctate: i was referring more to apps on the market and their user reviews May 15 23:00:46 i think it's a solid system of quality assurance. May 15 23:01:25 it is okay May 15 23:01:27 http://www.theverge.com/2012/5/15/3022682/google-direct-sales-multiple-device-OEMs May 15 23:02:19 ctate: I guess it has some caveats: uncritical reviewers who 5-star everything, and grumpy reviewers who 1-star everything. May 15 23:02:30 but statistics generally help May 15 23:02:34 * May 15 23:02:41 * ctate = grumpy May 15 23:03:07 ctate: why did you just assign grumpiness to yourself :( May 15 23:03:17 interestingly, in the new Portal2 fan-created map infrastructure, the only rating you can give a map is thumbs up or down May 15 23:03:23 g00s: let me correct myself May 15 23:03:28 * ctate === grumpy May 15 23:03:29 :) May 15 23:03:30 g00s: ctate is gone now, he got garbage collected May 15 23:03:31 :D May 15 23:03:34 we had no more refs after that May 15 23:03:44 just grumpy is here May 15 23:03:47 java is like basketball May 15 23:03:48 Hi I'm trying to install the support package for android, but I can't seem to find it on the SDK manager. Where can I find it? May 15 23:03:50 it's all about working the refs May 15 23:04:29 Hello, can someone help me? May 15 23:04:40 I'm trying to find a way to sent to emulator incompleted SMS to check this case May 15 23:05:06 but non find any info how to do this May 15 23:05:06 twitter app update - still looks like iOS app; idiots May 15 23:05:20 kg020, it may have been renamed the compatibiltiy package - not support May 15 23:05:35 chrome 19 has tab syncing with android devices; cool May 15 23:05:45 kg020: compatibility rather May 15 23:05:50 Ologn, should it be under Android 4.? May 15 23:06:05 kg020, it should be at the bottom, under extras May 15 23:06:05 the browsers and their major version number incrementations :( May 15 23:06:28 soon we are going to be using chrome 99999 May 15 23:06:51 Ologn, found 'android support' I guess it would be that, right? May 15 23:07:14 kg020, yes. May 15 23:07:22 I think they keep changing the name of it May 15 23:07:31 hmm no one? May 15 23:07:50 thanks, confusing heh May 15 23:08:25 I thought chrome already did tab sync with android May 15 23:08:31 if you go to the new tab page, you could see your tabs from pc May 15 23:08:46 :( May 15 23:09:46 is a compatibility library the same as a support library? May 15 23:11:11 ayami_nc: relax, a lot of people just idle in here :) You may want to try rewording your question also May 15 23:11:55 Anyone here have experience installing custom kernels and roms from a linux computer? May 15 23:12:14 KaiSforza, On #android-root they do May 15 23:12:35 crap, used wifi at the public library with my mac laptop - and forgot to have the firewall turned on. wonder if i should wipe this machine. May 15 23:12:42 Exano: I'm have app which read sms from inbox, but sometimes OP sent incomplete sms or cutted sms, which in most ways later gets completed(in a few min), so i'm need test case to do this on emulator to make logic for it May 15 23:13:21 Exano: And i'm just cant find any way or info to sent incompleted SMS to emulator May 15 23:13:21 g00s: firewalls are more to do with preventing things from communicating, not preventing things from getting installed... May 15 23:13:45 e.g., if you accidentally type your bank password on an insecure site, you don't wipe your machine to correct the issue May 15 23:13:55 i got you May 15 23:13:58 check pm May 15 23:14:18 you just need to telnet it May 15 23:14:49 i'm more worried about someone accessing the machine May 15 23:15:40 Ologn, installed it and now nothing is compiling O.o May 15 23:15:46 Conversion to Dalvik format failed with error 1 May 15 23:16:51 hey g00s I think a few weeks back you posted an article from some guy saying that fragmentation isn't a problem, engineers just being lazy, app developers have always had to deal with it etc, do you remember what article that was? May 15 23:17:06 wabz: hmm May 15 23:17:09 kg020, http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar May 15 23:17:23 I'm not 100% sure it was even you :p May 15 23:17:40 wabz: there was one from today May 15 23:18:04 ah got a meeting back in a sec May 15 23:18:58 kg020, the support/compatibility library changes the build target somewhat. You have to target one API to build to, and clean out what's left from previous builds, and rebuild May 15 23:19:08 like that link says May 15 23:22:11 wabz: well, can't remember which one you are referring to, but here is todays. http://news.ycombinator.com/item?id=3978304 … presumably you don't mean the one with the shop having 400 devices May 15 23:22:23 bbiab May 15 23:24:10 I started my first not main activity and nothing happens...the console says starting intent and then "ActivityManager: Warning: Activity not started, its current task has been brought to the front May 15 23:24:10 " May 15 23:26:19 GeeksOnHugs, did you declare the new Activity in the manifest? May 15 23:27:16 doh May 15 23:27:31 thats it thx May 15 23:27:45 GeeksOnHugs, http://developer.android.com/guide/topics/manifest/activity-element.html "All activities must be represented by elements in the manifest file." May 15 23:28:11 sweet thank you May 15 23:28:55 Ologn, I can't understand why following api instructions step by steps gives such errors. May 15 23:29:49 kg020, do you still get an error? May 15 23:29:59 Ologn, yes. May 15 23:30:24 just restarted eclipse as a last resort... May 15 23:30:35 and still the same thing, damn it. May 15 23:30:49 kg020, do you only have one Android library in your build path? And did you clean the project? May 15 23:31:03 Ologn well the activity is there, but no properties, I guess it needs something? like an intent? May 15 23:31:19 managed to download the SDK, trying to run samples.. May 15 23:31:51 Ologn, yes... the support.jar made its way to android dependencies now, I guess I can remove it form /lib right? is that what causes the jar conflict? May 15 23:31:53 is the emulator generally flaky for higher spec devices ? May 15 23:32:13 it's slow May 15 23:32:14 very slow May 15 23:32:19 i have an emulator onscreen - its been working but now from the commandline i do "adb devices" and see nothing May 15 23:33:06 ceti331_, I generally leave the emulator open. If it makes it any faster. BB emulator used to be much slower for me, so I appreciate android. May 15 23:33:18 better than nothing :) May 15 23:34:01 GeeksOnHugs, yes, in the main class create an Intent, with one of the parameters being the new class. Then run the startActivity() [or startActivityforResult() ] method on that object May 15 23:34:06 any hints if i have "adb devices" showing nothing, but there's an emulator running showing 5554:EmuPhone in the titlebar (thats' the avd name i assigned) May 15 23:34:43 kg020, how many libraries do you have there? You are not using ActionBarSherlock by chance? May 15 23:34:44 Ologn, removed the jar file and it ran. May 15 23:34:47 ok just tried 'adb kill-server adb start-server' May 15 23:34:55 No, I wasn't May 15 23:35:04 I removed lib/support_.jar May 15 23:35:08 ah that worked , nice May 15 23:35:53 Does this always happen to people? it kind of ticks me off that following the api step by step sets up errors. May 15 23:37:05 flakyness… i get the impression the emulator isn't displaying frames fully , e.g. i've got torn images showing when navigating May 15 23:37:17 i wonder if there's a 'force redraw' May 15 23:38:56 is there a way to launch an app from the adb command line - i'm finding the emulator too flaky to reliably navigate and launch.. :( May 15 23:39:47 When launching an app and the window where you can choose what to launch on pops up, what would cause a red cross under target instead of something green? May 15 23:40:35 My main activity is a fragment activity, should I update the manifest? May 15 23:42:16 ceti331_, by launch you mean install? May 15 23:42:40 I've got as far as installing (i think) and i've clcked and run things inthe emulator... May 15 23:43:10 … but its very flaky - the app browser isn't always redrawing properly and displaying.. i can't always see and click thigns :( May 15 23:43:26 so really i'd like to be able to say adb install MyProject.apk --RUN May 15 23:43:33 ceti331_, yes you can launch an intent from shell May 15 23:43:47 ok … whats an 'intent' (i'm new to android) May 15 23:43:55 ceti331_, adb shell am start -n com.package.name/com.package.name.ActivityName May 15 23:44:19 adb shell , right i have that.. May 15 23:44:35 ok i'll give that a go , thanks. (i've seen similar via google) May 15 23:45:21 just a quick opinion - do you think the command line tools are up to automatically building and running an app May 15 23:45:41 my ideal would be to have a build and run script triggered when i push some code May 15 23:45:47 kg020, since the fa extends activity, yes May 15 23:46:13 let me rephrase taht May 15 23:46:17 ceti331_, plenty of major applications downloaded by millions are all by command line May 15 23:47:15 i'm doing an openGL|ES project - simple use of platform really, more use of GL; runs on windows/mac/iOS at the minute May 15 23:47:50 would be nice to compile and run all simultaneously May 15 23:48:40 Ologn, I'm asking because I'm getting this: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.ff/com.android.ff.FitFrayActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class fragment May 15 23:52:20 in the adb shell , can i list the installed apks May 15 23:52:46 kg020, subclasses of Activity have to be declared in the Manifest. The error you posted could mean a number of things - it depends what the code is, and what is in the xml file, and what is on line 6 of the xml file May 15 23:53:45 how do i get from a project name to an intent name May 15 23:54:12 i see 'bin\MyProj-debug.apk-debug.apk' which i 'installed May 15 23:55:32 ceti331_, don't think there's an easy way to list all installed apks from adb shell. "ls /system/app/*apk" will show some. May 15 23:55:38 hey, I'm having trouble with android browsers automatically scaling/resizing images I dont want scaled (making them blurry), I dont know if this is the place to ask about browser development or you just do app stuff here May 15 23:55:42 thanks May 15 23:56:46 ceti331_, /data/app should have other apk's, if you have permission to access them, which you quite possibly might not have May 15 23:56:56 hehe the emulator is stalling me… I am deciding here if i want to buy an android device to program May 15 23:57:21 ceti331_, Sony is lending free Android devices to some Android developers May 15 23:57:58 on my own i dont have content to deploy yet; i'd have to take contracting work porting something i guess May 15 23:58:25 coincidently i'm doing vita work for sony via another path May 15 23:58:52 i had heard about sony looking for contractors to move projects over to PS Suite.. May 15 23:59:36 this is a toy purchase mostly. dont have a smartphone yet, thought i'd treat myself to an android, but only if i'll *enjoy* coding for it :) May 15 23:59:45 got my code running on ios so far May 15 23:59:50 (iOS/pc) May 16 00:00:21 i'm hoping a small stub (couple of interface source files) and a batch file to compile-deploy and it will be a pleasurable experience May 16 00:00:22 ceti331_, is it your code, or someone else's code you're porting? May 16 00:00:33 hobby/personal project May 16 00:00:40 vita stuff is someone elses May 16 00:04:50 anyone know how to get a facebook style ui kinda bar on the top in every activity? May 16 00:05:58 anyone know how to get a facebook style ui kinda bar on the top in every activity? May 16 00:11:02 bah, he left. http://developer.android.com/guide/topics/ui/actionbar.html May 16 00:13:18 Ologn, would you have a look? Log: http://pastebin.com/TbnEMpPQ main.xml: http://pastebin.com/CMMLDCr2 mainactivity: http://pastebin.com/JDXUR31z Can't seem to find the problem. May 16 00:14:47 hmm May 16 00:15:20 the xml seems fine to me. May 16 00:17:22 kg020, hmm May 16 00:17:38 kg020, line 7 http://pastebin.com/CMMLDCr2 May 16 00:17:38 hmm indeed... May 16 00:17:47 try removing everything after fragment May 16 00:18:06 ctate: you look weird without the @ next to your name May 16 00:18:17 so just ? May 16 00:18:25 like a freshly shaven man who previously had a large beard or goatee May 16 00:19:11 Ologn, NPC. May 16 00:19:13 kg020, no just remove the xmlns stuff on that line May 16 00:19:46 pragma-: http://www.youtube.com/watch?v=wYi24D9lHqc May 16 00:20:17 hello gents May 16 00:20:34 Ologn, Caused by: java.lang.ClassCastException: com.android.ff.fragments.BTFragment cannot be cast to android.support.v4.app.Fragment May 16 00:20:37 so you've got a number picker. how do you make it smaller to fit happily and prettily in your list item? ;) May 16 00:23:32 ctate: http://www.methodshop.com/2009/11/1991-beard-competition-video.shtml claims it was faked May 16 00:23:44 and zero websites have his name May 16 00:24:36 Ologn, is it a case of just not being allowed to use a fragment? May 16 00:24:44 I'm really stumped. May 16 00:24:50 ha May 16 00:24:58 pragma- I know someone who won that compition May 16 00:25:00 http://jackpassion.com/ May 16 00:25:03 went to college with him May 16 00:25:07 so how can I shrink a NumberPicker to make it smaller without making it look derp? May 16 00:25:58 kg020: make sure BTFragment inherits from android.support.v4.app.Fragment May 16 00:26:22 pragma-: DONT RAIN ON MY PARADE May 16 00:26:50 * ctate | , the beard cage is most likely a fake. May 16 00:26:56 "most likely" -> there is still hope! May 16 00:27:25 cketti, it uses ListFragment. May 16 00:28:50 also, he didn't drink the tea with his pinky out May 16 00:29:07 NEEDS MORE PINKY! May 16 00:29:08 kg020: the support lib's ListFragment? May 16 00:29:19 cketti, yes. May 16 00:29:57 and your activity extends FragmentActivity? May 16 00:30:07 cketti, yes. May 16 00:30:15 you're fucked ;) May 16 00:30:23 but now that you're mentioning it. the Fragment was declared as 'Fragment' May 16 00:30:36 not 'ListFragment', which I tried too but it doesn't let me add May 16 00:30:46 to a fragmenttransaction. May 16 00:31:20 cketti, been fucked for around 3 hours now... () <- that close to giving up. May 16 00:34:25 Just a question - how is bluetooth usually implemented in your apps? May 16 00:34:47 on the android samples, it shows an activity... but I want bluetooth to run throughout the app so I was going to use a fragment which launches a BT service. May 16 00:36:02 you should almost definitely do your bluetooth communication from a service. May 16 00:36:39 seeing as I can't get my ListFragment to work, is it bad practice to launch it from an activity which then destroys? May 16 00:37:00 huh? May 16 00:37:30 I was previously attempting to launch it from a ListFragment window. But I can't get it to work. May 16 00:37:48 Would it be bad practice to create an activity simply dedicated to BT? May 16 00:38:01 why would you want your bluetooth connection to be glued to the UI? May 16 00:38:41 I'd like some UI to come up to show paired devices... when user selects the device it launches a service and the activity terminates. May 16 00:38:54 that is about right. May 16 00:39:26 When launching an app and the window where you can choose what to launch on pops up, what would cause a red cross under target instead of something green? May 16 00:39:57 not compatibile? May 16 00:40:11 i.e. the api of the device is lower than your minSdk in your manifest May 16 00:40:15 it is a red cross when your targetSdk is higher than the api level May 16 00:40:26 nah, it's not min that gets the red cross May 16 00:40:37 well that's stupid May 16 00:40:41 yeah, it is May 16 00:41:14 so how do i make it go away? i change the project settings? i can still luanch so it doesnt matter? May 16 00:41:24 you don't May 16 00:41:25 how can I shrink a NumberPicker to make it smaller without making it look derp? May 16 00:41:29 just let it be a red x May 16 00:43:11 Will writing an app in the NDK get better performance? May 16 00:43:51 think of it as the Game Porting Kit May 16 00:43:58 because basically that's the only reason to use it May 16 00:44:41 ctate was that to me? May 16 00:44:52 ctate: or "whenever you need a lot of raw number crunching" May 16 00:44:54 yes, you can get somewhat better performance in some cases May 16 00:45:12 p_l: if you target 3.0+ Renderscript is a good way to do this May 16 00:45:31 it makes it significantlyharder to get great performance on all hardware May 16 00:45:32 and ensures that your apks will be much larger than the equivalent app written in Java May 16 00:45:35 romainguy: depends on actual operations involved May 16 00:45:39 JoeTheGuest: yes May 16 00:45:44 p_l: even then May 16 00:45:46 p_l: of course May 16 00:45:47 romainguy: in my case, it was crypto May 16 00:45:55 (that wasn't covered by OS) May 16 00:46:05 because if you write it in the NDK then you have to do all the fancy cpu-family-specific work yourself the hard way May 16 00:46:24 instead of letting renderscript generate the NEON code for you when appropriate, etc May 16 00:47:03 that said, some familiies of algorithm benefit hugely from being written directly in asm, for example, because neither C nor Java give you rotate operations as intrinsics May 16 00:47:08 so YMMV May 16 00:48:25 and Renderscript is still available on less than 10% of devices. So... in a 1.5 year, yeah May 16 00:48:53 like I said May 16 00:48:55 if you target 3.0+ May 16 00:48:58 :) May 16 00:49:29 * g00s is trying to figure out if its possible to use orientdb on android May 16 00:49:37 * p_l managed to land a project where we can target 4.0. We also barely touch any android API. -_-; May 16 00:49:51 the less apis you touch, the better ;) May 16 00:50:29 "Half of Americans think Facebook is a fad", yey there really is a god ! May 16 00:50:52 What social networks was I on before Facebook May 16 00:50:57 First sixdegrees May 16 00:51:03 g00s: in our case, it's the "less Java we touch". And we would have to kick out some of the nicer parts of APIs anyway (no xml layouts...) May 16 00:51:04 What was the next one...Orkut? May 16 00:51:15 eWorld May 16 00:51:17 ;) May 16 00:51:18 using ActionBarSherlock, how can I use a tabbed actionbar but remove the title bar section? May 16 00:51:57 Ologn: USENET! :P May 16 00:52:07 (or netnews, if you are old enough ;)) May 16 00:52:18 i do kinda wonder what dispora is doing tho May 16 00:53:00 if i owned my data, had total control what was shrared with 3rd parties, and was able to store it on my own devices; thats different May 16 00:53:02 g00s: they're http://goo.gl/Bn4p2 May 16 00:53:23 :O May 16 00:53:42 is that real? May 16 00:53:48 g00s: so... crypto-powered social network running over freenet? ;P May 16 00:53:53 if so I wanna go in, it looks fun May 16 00:54:31 andTHAT's why you never divide by zero! May 16 00:54:42 romainguy: you might find this interesting; interesting to see this could apply to landscape photography also http://tech.slashdot.org/story/12/05/15/1433211/photographers-youre-being-replaced-by-software May 16 00:55:06 i'm not so sure i agree with the conclusion, but it was an interesting read May 16 00:55:55 readme: that looks like the drain for a damn May 16 00:56:00 *dam May 16 00:56:01 :) May 16 00:57:07 ctate: http://sheerinvestigations.com/wp-content/uploads/tunnel_house10.jpg May 16 01:00:00 someone hit it with graffiti: http://www.kulfoto.com/pic/0001/0021/l25Ek20394.jpg May 16 01:00:15 ctate: that could apply to g+ as well http://www.bgr.com/2012/05/15/google-plus-social-usage-study/ May 16 01:00:30 g00s: what would be interesting would be to know how long it took to create and render that scene May 16 01:00:37 g00s: because it's probably more than taking a picture :p May 16 01:04:04 evancharlton ive looked thoroughly at docs but i see now way to add that indicator to a ViewPager May 16 01:04:10 *no way May 16 01:04:55 gaz`: i think you have to look at the source file for ViewPage indicator May 16 01:05:08 has anybody managed to get