**** BEGIN LOGGING AT Tue Jan 08 02:59:58 2013 Jan 08 03:11:51 Afternoon gang! Jan 08 03:21:04 * JamesWestlawn waves hello and tips his hat Jan 08 03:22:16 hey barque Jan 08 03:22:17 Anyone know a s-off method for the Evita? Jan 08 03:22:30 are you pressing multiple abc keycodes? Jan 08 03:23:41 JamesWestlawn: probaby have better luck in #android-root, it's all appdev here. Or if XDA has a channel; don't know if they do Jan 08 03:23:48 Or maybe point me to the proper channel...? Jan 08 03:24:04 Thanks for the heads up Jan 08 03:24:38 * JamesWestlawn waves goodbye and tips his hat Jan 08 03:26:38 i have a kyocera hydro phone. when i am in the browser. it won't let me open more then 3 tabs. is there a way to disable that limit Jan 08 03:36:27 I'm working on a contract class to go with my database. It will contain constants for all table names and columns Jan 08 03:36:35 how should I declare this class? Jan 08 03:36:55 https://developer.android.com/training/basics/data-storage/databases.html here an inner class is declared public static abstract Jan 08 03:37:16 but what about the outer class? Jan 08 04:18:47 really corner-case question: assume /system/lib/libz.so exists, and further assume that I've bundled libz.so with my app (so it's in /data/data/@PACKAGE_NAME@/lib/libz.so) Jan 08 04:19:11 which will System.loadLibrary("z") attempt to load? the /data/data one? or the /system/lib one? or is this even defined at all? Jan 08 04:23:50 omg android is soooo coooool Jan 08 04:25:21 linuxuz3r in what way ? Jan 08 04:25:32 :) Jan 08 04:25:45 the way that it drops most/all of user-space Linux and replaces it with Java? Jan 08 04:25:48 wait, i don't like that part Jan 08 04:28:21 how am i gonna remember all the apis android has Jan 08 04:29:22 linuxuz3r: by RTFM and keeping it handy? But no, continue trolling, you'll be much happier with the pacifier Jan 08 04:29:25 if only they were available online or integrated some how in a development environment .... Jan 08 04:29:32 linuxuz3r, you won't Jan 08 04:29:49 you just save code templates Jan 08 04:30:05 and use them as building blocks Jan 08 04:30:20 codes you understand Jan 08 04:30:25 yeah just copy/paste from stackoverflow Jan 08 04:30:26 now.. Jan 08 04:30:32 true Jan 08 04:30:40 like wabz says Jan 08 04:30:40 wabz: how's the fires? Jan 08 04:30:54 haha pretty good Jan 08 04:30:58 reached 41.9 here Jan 08 04:30:58 wabz, your in Taz? Jan 08 04:31:04 superlinux-hp: so you're suggesting cargo cult programming? :-) Jan 08 04:31:20 "i saw it on so! it must be good!" Jan 08 04:31:22 no, sydney Jan 08 04:31:23 only 30 here :P ;) Jan 08 04:31:26 https://play.google.com/store/apps/details?id=au.gov.rfs.fnm.nsw Jan 08 04:31:28 "how's this work again?" Jan 08 04:31:56 jonp: black magick and child sacrafices, mostly Jan 08 04:32:06 well ... i won't recommend it.. but i use it Jan 08 04:32:08 i know now how to navigate through apis Jan 08 04:32:17 its cool google made cool apis Jan 08 04:32:23 i wish opengl is like this Jan 08 04:33:54 wabz, i was in Australia beteen 2006 and 2009 as a James Cook university masters student. and I lived in Arncliffe in Sydney Jan 08 04:34:10 i lived there for one year Jan 08 04:34:27 the rest was in Cairns Jan 08 04:35:57 w00t QLD :) BNE here :) Jan 08 04:36:00 now.. back to my question... how can I make my application sign automatically to youtube? i have some videos there, and i want them on private access.. Jan 08 04:36:57 superlinux-hp, you mean load youtube app form within your app? Jan 08 04:37:09 i want my videos accessible only from my videos Jan 08 04:37:21 my app is published.. Jan 08 04:37:46 but I want only one user to be able to access my videos Jan 08 04:38:31 just curious,why do you want to do that? Jan 08 04:38:46 boomrx, i just want to hide the links from people. but the watching is still free with Admob Jan 08 04:39:32 boomrx, it's the TCL/Tk tutorials English series , i want to make money from it. Jan 08 04:39:35 I compiled a arm program on my computer, everything compiled successfully. How do I get this program to run on my android device? Jan 08 04:39:42 they are mine, Jan 08 04:41:34 hmm Jan 08 04:41:35 When implementing a SearchView with a custom adapter for suggestions in ActionBarSherlock, how can you get the resulting ACTION_SEARCH intent to return a query when the adapter was not some Content Provider. Has anyone run into this? I find the query is always null and the getColumnString on SearchManager.SUGGEST_COLUMN_QUERY is from what I take it, pointing to a predefined table column from the provider and not one defined in the Adapter that you provid Jan 08 04:41:36 with seachView.setSuggestionsAdapter() Jan 08 04:41:54 superlinux-hp, not sure, can you just use the embed code for that vid with a webview? Jan 08 04:43:00 boomrx, it won't let the user see the description of the video Jan 08 04:43:14 i know this way of web embedding Jan 08 04:43:34 Hi all... I go a quick question: I am trying to debug my app on my Sony Xperia Play, and I have downloaded the drivers from Sony's website. How do I install them? Jan 08 04:44:30 got a quick question* Jan 08 04:44:33 ahh isee superlinux-hp Jan 08 04:45:08 boomrx, repeating the description is cumbersome Jan 08 04:45:32 repeating it in the code i mean Jan 08 04:45:48 i have over 30 videos Jan 08 04:46:32 can you scrape/parse the description and then add this to the webview perhaps? Jan 08 04:46:36 roly against tandc Jan 08 04:51:25 I have another question... I'm mainly a FreeBASIC/C programmer, and I'm not too keen on using Java. Is there a way I can code strictly in C for Android? Jan 08 04:55:42 anyone here ever popup a listView in another view ? Jan 08 04:56:13 getView seems to be called in sequence 0-8 like 40 times Jan 08 04:56:38 9 items displayed in view at that time and me not scrolling touching anything Jan 08 04:56:46 that just seems odd to me Jan 08 04:56:48 superlinux-hp, scrape the description using urlconnection and related classes,use jsoup to parse it, and then add it to the webview Jan 08 04:57:07 ok. got you Jan 08 05:01:38 Okay... quick question. For a fragment, where's the correct place to define the callbacks for UI elements? In the fragment class, or in the places it will be used? Jan 08 05:07:20 Utoxin i would guess wherever you want that has access to it Jan 08 05:07:21 :) Jan 08 05:07:48 StingRay_: Hmmm. Okay. Heh. I guess I'll try the Fragment class itself first, so I don't have to re-define it in multiple places. Jan 08 05:09:27 Is it taboo to use C on Android? Jan 08 05:10:22 PROGRAMMING TIME! TRANCE MUSIC ON! Jan 08 05:10:58 hmm trance Jan 08 05:12:23 Da_Rhyno: I'm not an expert, but I'm pretty sure the answer to your question is yes. Jan 08 05:12:59 Yes to which question, Utoxin? That I can or that it's considered taboo? Jan 08 05:13:10 That it's considered Taboo. Jan 08 05:14:01 SHIT... just waiting for my caffeine pill to kick in Jan 08 05:14:04 But again... I'm not an expert. Jan 08 05:14:59 Okay... Thanks. I guess back to google, then. I'm not rewriting my code from scratch just to fit it to Java's paradigms. Jan 08 05:15:02 :0 Jan 08 05:15:10 :)* Jan 08 05:15:41 * Utoxin goes back to working on porting his app to use fragments. :) Jan 08 05:16:13 nothing wrong with writing c Jan 08 05:16:36 How difficult is it to do so on android though? Jan 08 05:17:08 I mean, with regards to touch-screen input (multitouch), and audio output/graphical output? Jan 08 05:18:37 fingers flyx5 Jan 08 05:19:08 Da_Rhyno generally you do that in java, with cpu intense stuff in c Jan 08 05:20:46 Ah, I see. Jan 08 05:21:15 So I'm guessing I'd have to make an native interface between IO and my C code? Jan 08 05:21:59 Where IO is in Java, and it would use a JNI object in C to get that info/send that info out... Jan 08 05:22:06 Sounds like a bottleneck xD Jan 08 05:22:33 Woo, Okay, just putting the callbacks into the onCreateView is working. Jan 08 05:22:58 Da_Rhyno depends on what you want to do Jan 08 05:24:40 time to mov ip, [sleep] eh eh Jan 08 05:24:56 Well, I'm making a real-time adventure game, using a state machine for the engine (handling the player, AI, and output), and one for the player (what touch does what), and one for each baddie. Jan 08 05:25:18 So each of the player states will accept some form of input Jan 08 05:25:22 * Zharf would do all that in java :p Jan 08 05:25:52 da_rhyno: #android-dev :) Jan 08 05:25:56 unless there's some really big code base you can use or that performance can be significantly improved for some operations, I wouldn't use NDK Jan 08 05:25:57 #android-games* Jan 08 05:26:00 I wouldn't mind it all in Java if it weren't for the fact that I already have it coded in FreeBASIC which is a frontend for C. :) Jan 08 05:26:36 Trinity - I didn't know /that/ chat existed either. xD Jan 08 05:26:40 Da_Rhyno, I see, well, I have written a couple of games using mostly native stuff and user input and audio output are in java, and those are definitely not the bottle necks Jan 08 05:26:56 but it's a lot more work imo Jan 08 05:27:06 i just started it 2 days ago have a couple of people on there now and a couple of regulars haha Jan 08 05:27:18 Well, not if I keep things nicely modularized in the C code. Jan 08 05:27:28 Trinity - I see =P Jan 08 05:27:57 Da_Rhyno, still, the power of java imo is the massive library :) Jan 08 05:28:07 has anyone here used the TrafficStats class ? Jan 08 05:28:10 Yeah, that's true. Jan 08 05:28:26 I use different sized images in a single listView. But when scrolling, there is jaggy effect since the getView method reuses the imageview for another image with a different resolution. Is there any way to fix this other than using fixed sized image views? Jan 08 05:32:57 basic java question, i'm pretty sure these two are different but would someone care to elaborate? I have a String x, is if (x == null) the same as if (x.isEmpty())? i'm pretty sure they arnt but just making sure Jan 08 05:33:07 wait nvmd lol stupid question Jan 08 05:33:12 figured it out after asking Jan 08 05:33:46 no they are not Jan 08 05:33:58 napster: you might want to look at getViewTypeCount and getItemViewType for your adapter Jan 08 05:33:59 x.isEmpty() will throw a null pointer exception Jan 08 05:34:37 wabz: Actually getItemViewType() is not usable since all the images have different sizes and we can't predict in advance. Jan 08 05:36:40 I don't know anything about listview, but why is an imageview trying to hold more than one image? Jan 08 05:36:45 napster: so you're saying if it is null it'll through a null pointer exception, thats good to know. I'm guessing the same applies for x.length(). so i guess I should test for null first then. thanks napster Jan 08 05:37:21 has anyone here used the TrafficStats class ? Jan 08 05:37:32 x is null, so after x is looked up, it will try null.length() Jan 08 05:38:12 So just check for x == null if its not final Jan 08 05:38:32 right, but i have different methods to call if x is null vs x is empty. so i guess ill jsut have to test for null first. thanks :) Jan 08 05:38:43 greatjustice: I think you should watch romainguy's the famous listviews video :) Jan 08 05:39:26 http://www.youtube.com/watch?v=wDBM6wVEO70 Jan 08 05:39:30 Maybe some other time. Must code game... Jan 08 05:44:18 how do i get the value that is stored in Settings->Data Usage ? Jan 08 05:45:50 anyone ever use a listView within a view that they animate "popup type anim" ? Jan 08 05:46:10 getView seems to be called for all views 60+ times Jan 08 05:46:19 puzzles the hell outta me now Jan 08 05:50:05 when capturing a video the resultant mp4 always has a slight pause at the end of the video, but the sound will continue for that split second Jan 08 05:51:00 i think its because when encoding the h264 mp4 it is taking the closest keyframe at the end of the file and so if the audio doint end on that exact time when the keyframe sdoes in the video stream, you get a nasty little pause in video Jan 08 05:51:17 can i workaround this? Jan 08 05:56:06 devslash: http://stackoverflow.com/questions/4812032/how-to-go-about-detecting-data-usage-in-the-android-env Jan 08 05:56:19 I'm using that Jan 08 05:56:22 its not accurate Jan 08 05:56:40 it doesn't match what i see when i go to settings,data usage Jan 08 05:58:55 try the 2nd answer Jan 08 06:01:11 so, if I have a null variable and I try to log it will I get a crash for nullpointer? Jan 08 06:05:39 Trinity: do you know which network interface is used for mobile data ? Jan 08 06:06:10 Trinity: I'm looking into the 2nd answer... Jan 08 06:06:57 * linuxuz3r wish creating dialogs in android is as simple as creating dialogs in javascript Jan 08 06:07:41 no idea sorry devslash Jan 08 06:10:11 * squ wish java is replaced Jan 08 06:11:42 * Da_Rhyno ^this Jan 08 06:15:40 squ, by what Jan 08 06:16:45 damn, that netsplit yo Jan 08 06:19:16 Zharf, at least objc Jan 08 06:19:36 ... Jan 08 06:19:47 and why Jan 08 06:19:55 why objc? Jan 08 06:19:57 O_o Jan 08 06:20:07 Just c with the current Android libraries Jan 08 06:20:18 that'd be horrible Jan 08 06:20:21 both of those Jan 08 06:20:23 Not really. Jan 08 06:20:52 What's horrible is the fact that I have to write tons of lines of code for something as simple as touch input. Jan 08 06:21:06 you're doing it wrong Jan 08 06:21:30 I must be. =P Jan 08 06:21:37 I'm doing multitouch the old way Jan 08 06:21:53 the amount of code is not the problem really, most of that is done by IDEs anyway Jan 08 06:22:16 the biggest problem is the speed on these slow processors Jan 08 06:22:30 the language itself is ok but the VMs just suck Jan 08 06:26:56 <[1]Trinity> so it turns out Log.d will crash your app if you give it a nullpointer Jan 08 06:27:20 <[1]Trinity> Logger.log for the win! Jan 08 06:29:48 is it ok for a fragment to register a broadcastreceiver? Jan 08 06:30:08 or is that considered not kosher? Jan 08 06:30:52 hmm, nm, SO is on it already. Jan 08 06:31:00 i do it Jan 08 06:31:17 kosher certificate should be issued on that Jan 08 06:31:37 Trinity, well duh Jan 08 06:31:40 hey JakeWharton Jan 08 06:31:56 hi Jan 08 06:32:07 do you know how to center text in ABS? Jan 08 06:32:09 says getActivity().getApplicationContext() is the way to do it http://stackoverflow.com/questions/8737457/dynamic-broadcast-receiver-in-fragment Jan 08 06:32:15 without custom view Jan 08 06:32:25 you can't Jan 08 06:32:27 see the official docs Jan 08 06:32:33 I still dont get why my adapter getView is called 50x on each item, but in sequence... Jan 08 06:32:38 g2g thanks all! Jan 08 06:33:20 JakeWharton, how do I get that default pressed/focused border around items when using custom view? Jan 08 06:33:44 use the style for action items Jan 08 06:34:02 have example anywhere? Jan 08 06:34:24