**** BEGIN LOGGING AT Mon Feb 25 02:59:57 2013 Feb 25 03:00:03 are we talking desktop or mobile browsers :| Feb 25 03:00:08 android Feb 25 03:00:13 oh, sorry, nm Feb 25 03:00:22 on PC, it's Chrome Feb 25 03:00:25 Always Feb 25 03:00:32 Firefox Feb 25 03:00:36 :) Feb 25 03:00:37 Been using it with the Hatsune Miku skin since the very first time I started using it Feb 25 03:00:48 diki, i recently went back to ff on pc, FF is faster in loading bookmarks and has a sidebar Feb 25 03:01:12 diki, so for android it's opera regular? Feb 25 03:01:14 And reading mode ... I love reading mode Feb 25 03:01:24 reading mode? Feb 25 03:01:51 Yah... switches to text only, drops all ads,a dn flash and such so you can read distractipon free Feb 25 03:03:13 (but keeps links of course so you can still navigate) Feb 25 03:04:06 and Private browsing mode ... Feb 25 03:04:53 And if you want something special, you modify and build your own version - open source Feb 25 03:05:47 I enabled Google's GPS location, it feels so violating Feb 25 03:06:26 guys... why can't I !#)!@(* ls /data ? this is so annoying Feb 25 03:06:29 What is everyone's Top 5 Apps? Feb 25 03:06:51 got root? :p Feb 25 03:06:56 capella why don't I? Feb 25 03:07:07 I paid the full price for this !@*@ thing for development Feb 25 03:07:10 greader, osmand, goggles, myfitnesspal and all the coupon apps Feb 25 03:07:15 oh dear Feb 25 03:07:38 top 5 includes SuperSU, Titanium Backup, Terminal Emulator Feb 25 03:08:01 ES File Explorer Feb 25 03:08:08 ESphynx:you wanna create a soft link? Feb 25 03:08:09 Woot. My program works! <3 Feb 25 03:08:31 Soft links fail when the filysystem is not remounted as read/write Feb 25 03:08:51 diki: I just want to check where that file gets installed from my APK Feb 25 03:09:04 I want a proper shell :| Feb 25 03:09:09 ESphynx hasnt answered if he has rooted his phone, or have you? Feb 25 03:09:09 ESphynx:I think in /data/data/com.XXXXX Feb 25 03:09:12 I don't want to install untrusted somftware in there Feb 25 03:09:26 diki: Yes , but my dlopen fails... so I wanna see what's up! Feb 25 03:09:26 No root == No /data Feb 25 03:09:28 all software goes there Feb 25 03:09:28 i can't even list these files Feb 25 03:09:30 why no root Feb 25 03:09:36 why don't I have root? it's my !@)*( device Feb 25 03:09:41 ESphynx:You need root for that. Can't you find a guide? Feb 25 03:09:43 Android comes w/no root Feb 25 03:09:54 diki: I don't want to have to install some random exploit for script kiddie Feb 25 03:09:56 ESphynx:whats with the censoring??? Feb 25 03:10:01 diki: i want a proper developer solution from Google Feb 25 03:10:16 this is so insulting Feb 25 03:10:28 Get root, its easy, and required for developers, learn the ropes Feb 25 03:10:29 you need to root your phone manually Feb 25 03:10:40 so diki are you the only one voting for opera Feb 25 03:10:48 Firefox :D Feb 25 03:11:04 capella: if it's required for developers, why can't I get a proper search results from Google bringing me to a Android Developers page? Feb 25 03:11:16 google xda-developers Feb 25 03:11:18 capella, Firefox has poor reviews on play Feb 25 03:11:31 blognewb:I never knew there was a vote Feb 25 03:11:34 ESphynx: Normally you will. Feb 25 03:11:49 could you guys please point me to a trusted rooting instructions? I'm on Windows bw Feb 25 03:11:50 btw* Feb 25 03:11:53 meh - not all reviews are created equal Feb 25 03:12:00 ODIN Feb 25 03:12:05 ESphynx:every phone has a different method Feb 25 03:12:08 ESphynx: If you google for "android String" you'll get the Android developers page for the String object. Feb 25 03:12:08 diki: Nexus 10 Feb 25 03:12:31 google xda-developers nexus 10 Feb 25 03:13:09 http://nexus10root.com/category/nexus-10-root/ Feb 25 03:13:10 capella, well.. 220,599 votes, 4 out 5 stars, must amount to something Feb 25 03:13:23 also I don't have wi-fi Feb 25 03:13:30 so i can't update the phone or what not Feb 25 03:13:35 but beware Feb 25 03:13:41 it apparently resets everything Feb 25 03:13:42 Got USB and a laptop? Feb 25 03:13:56 like factory reset, full data wipe. Feb 25 03:14:03 Firefox Beta has better reviews capella Feb 25 03:14:33 I use Firefox Beta; been pretty happy with it. Feb 25 03:14:38 Yah... we put out new updates every 6 weeks and new reviews start fresh I thing in google play Feb 25 03:15:24 ESphynx:beware on the full data wipe Feb 25 03:15:35 diki: Yeah WTF man ! Feb 25 03:15:36 and also note, that using odin increases the flash counters. Feb 25 03:15:36 seriously Feb 25 03:15:47 why can't google give a solution for developers to root hteir phone? Feb 25 03:15:48 Triangle Away fixes that Feb 25 03:15:58 ESphynx: It's phone-specific. Feb 25 03:16:00 i'm just going to test this in the emulator. Feb 25 03:16:01 capella:I wouldn't trust an app that says it could brick your phone Feb 25 03:16:07 Improv: Google makes the Nexus 10 Feb 25 03:16:18 root is absolutely not in any way required for app development Feb 25 03:16:28 Leeds: when you can't even ls the content of where your app goes? Feb 25 03:16:29 All good pages say theres that possibility if you dont know what you';re doing Feb 25 03:16:30 Leeds:It is actually Feb 25 03:16:34 Leeds: it's certainly useful! Feb 25 03:16:36 it's insulting Feb 25 03:16:42 ESphynx: Lol Feb 25 03:16:42 an unlocked/unlockable bootloader is required for OS development, and that's what a Nexus gives you Feb 25 03:16:43 Even BusyBox says that Feb 25 03:16:46 diki: it really isn't Feb 25 03:16:57 Was trying to port the gnu toolchains, but without root it wont work Feb 25 03:17:02 Leeds: it might not be *required*, but it's certainly often *useful* Feb 25 03:17:18 diki: and that's typical Android app development, is it? Feb 25 03:17:37 ESphynx: do you know of the run-as command? Feb 25 03:17:39 Well...no Feb 25 03:18:08 in fact, there's an argument which says you're better developing in a non-root environment, since that's what most of your users will have Feb 25 03:18:14 heh - get 'em Leeds :D Feb 25 03:18:25 Cool, but we arent most users. Feb 25 03:18:27 Leeds : in this case, I just wanna inspect what's going on... my dlopen is failing, I want to know where the .so's got intalled Feb 25 03:18:52 Leeds: what's the run-as command? Feb 25 03:19:01 ESphynx: it's something you should be googling for Feb 25 03:19:02 ESphynx:you cant read / man Feb 25 03:19:08 ouch Feb 25 03:19:17 especially /data on the root filesystem Feb 25 03:19:29 OsmAnd for offline GPS mapping Feb 25 03:19:34 you need to root the phone, then install busybox, then remount as rw capable Feb 25 03:19:56 diki: except you don't need to do any of that to develop dalvik apps Feb 25 03:20:06 you guys ever use Obi or CSIPSimple? Feb 25 03:20:21 diki: yeah I'm just gonna stick to my virtual device. Feb 25 03:20:43 Leeds:Well, you need root to port GCC,make,gnu autotools Feb 25 03:21:04 diki: and none of that fucking matters to the vast majority of app developers, who aren't trying to port a fucking toolchain to a phone Feb 25 03:21:06 meh Feb 25 03:21:07 cause either will look for folders like /usr/bin which dont exist on android Feb 25 03:21:24 Woah, stop beeing butthurt Feb 25 03:22:23 stop confusing a simple issue with your personal complicated requirements Feb 25 03:22:41 it is absolutely 100% not necessary to be root in order to develop normal Android apps Feb 25 03:22:53 Leeds who said anything about developing normal apps Feb 25 03:23:07 ESphynx: the bell curve Feb 25 03:23:09 Android is an open system... why can't we have root Feb 25 03:23:16 as developers? Feb 25 03:23:26 ESphynx: If you're trying to do something weird, don't be upset if you have to do the legwork. Feb 25 03:23:29 Leeds:I need root to develop non-normal applications. Feb 25 03:23:39 I almost got tricked into installing this silly software going on that xda-thing because they have this big deceptive download buttons there Feb 25 03:23:51 * capella (porting the toolchain? that's new... I mean creative :P ) Feb 25 03:24:06 capella:gcc,make and perl have been ported already Feb 25 03:24:11 Improv legwork i have no trouble with. having to hack my own tablet to have root no. Feb 25 03:24:13 ESphynx: If all it takes to trick you is a big button, you may want to fix that before coding too much lest you waste time debugging comments. Feb 25 03:24:31 Improv: comments do confuse me. I usually strip them off :P Feb 25 03:24:49 ESphynx Just now hearing of XDA-developers? Feb 25 03:24:59 capella yes what is XDA-developers anyways? Feb 25 03:25:01 could Build.SERIAL be spoofed? Feb 25 03:25:04 omi Feb 25 03:25:06 this is #android-dev, not #android-root, if you want to argue over evil Google blocking your phone, go there Feb 25 03:25:06 if you want to ask about app development and debug tools, go here Feb 25 03:25:06 and since you now know about the run-as command, you know you can "run-as YOURPACKAGE sh" to get a shell which runs as your package's uid, which means you can see your package's private directories Feb 25 03:25:39 Leeds oh thanks Leeds, that might be useful :P Feb 25 03:26:21 \o/ Touchdown Feb 25 03:26:34 package is not debuggable :P Feb 25 03:28:51 diki: I meant why develop on the device vs your laptop? Feb 25 03:30:37 capella: we're getting to the point where the *hardware* is perfectly capable of running a full development stack - unfortunately, the mobile interface isn't really capable Feb 25 03:31:11 capella:I don't have a laptop Feb 25 03:31:16 well yah ... I cant type a lot of code on my tiny touch keyboard I agree Feb 25 03:31:18 is this thing about com.bla.pack.age still true that 3 words packages won't debug properly? Feb 25 03:31:30 But now, thanks to the nice people who provide us with root Feb 25 03:31:39 I now have a fully working monitor mode on my phone. Feb 25 03:32:27 no laptop? and you srsly develop on the device? wow! Feb 25 03:32:34 I have done it Feb 25 03:32:44 I am on PC right now, but I've coded a few Android apps using AIDE. Feb 25 03:33:10 capella: martyrs gotta mart Feb 25 03:33:35 I understand what Leeds said ... my GS3 is a fantastic machine ... but I gotta touch type lots and fast Feb 25 03:33:56 (and see what Im doing :P ) Feb 25 03:34:16 I *really* want the 'webtop' thing to come back, done right Feb 25 03:34:17 yah - heh - martyrs to me Feb 25 03:34:35 Leeds:I can respond to that as well Feb 25 03:34:57 butthurt(s) gonna hurt Feb 25 03:35:07 Anyway, I am off to bed. Feb 25 03:35:09 when I'm carrying a multi-core, multi-GHz, multi-GB RAM, etc. device around, I want to be able to dock it and use it as a computer Feb 25 03:36:08 keyboard, mouse, big screen Feb 25 03:37:50 seriously, why is it saying the package is not debuggable? I got android:debuggable="true" in my manifest Feb 25 03:38:51 Hey guys, I am working through some things on the Android platform. Always done notifications using a service, but now I am reading about GCM. I am wondering what the general thoughts are on it Feb 25 03:39:23 ESphynx: are you signing it with your release key, or a debug key? Feb 25 03:40:28 How can I make my App not make my phone run hot? Feb 25 03:40:48 hosler: don't do while (1) { } Feb 25 03:40:58 have it turn it off? Feb 25 03:41:07 dont use the radio unless you have to Feb 25 03:41:13 delay processing and make your routines efficient Feb 25 03:42:22 don't wakelock Feb 25 03:42:43 Leeds: just my regular key Feb 25 03:42:54 Has anyone used GCM? I am wondering what the general thoughts on it are? Feb 25 03:43:02 so, not a debug key then? Feb 25 03:43:04 anything special I need to make it a debug key? Feb 25 03:43:06 apparently it is the successor to C2DM Feb 25 03:43:09 G2DM rather Feb 25 03:43:43 the debug key is generated by the SDK tools/Eclipse - and it seems that's now used to determine if it's a debug build, not the android:debuggable attribute Feb 25 03:44:10 Leeds: I don't use eclipse Feb 25 03:44:14 I know with ant - which is what I use, not Eclipse - you can "ant debug" or "ant release" to choose what sort of built Feb 25 03:44:17 build... Feb 25 03:44:17 looking @ http://developer.android.com/tools/publishing/app-signing.html Feb 25 03:44:20 i dont' use ant either Feb 25 03:44:26 what do you use? Feb 25 03:44:31 the raw SDK Feb 25 03:44:43 erm... what does that mean? Feb 25 03:44:50 The Android SDK Feb 25 03:45:08 Those Surface commercials with all the dancing and hijinks is really annoying to me. Feb 25 03:45:21 so, you avoid using any tools which might help you? wtf? Feb 25 03:45:35 pragma- how do you think us Microsoft programmers feel? Feb 25 03:45:38 Leeds: I avoid using any tools I don't need Feb 25 03:45:52 do you write code with a hex editor? Feb 25 03:45:56 Microsoft cant make a good commerical that actually shows what the device does, and they just keep getting crushed by Apple and Google Feb 25 03:45:57 meh... more martyr crap Feb 25 03:45:58 heh Feb 25 03:46:01 predetermined names/passwords: , I see. Feb 25 03:46:20 Leeds: no I enter it with an on/off switch Feb 25 03:46:24 * capella hits his head against the wall cause it feels good when I stop Feb 25 03:46:43 pragma-, its worse than the phones, but they have no freaking clue how to market their products. No wonder Google and Apple are dominating them in the consumer space Feb 25 03:46:49 Leeds: I have my own SDK so I have no use for these Java tools Feb 25 03:46:53 xximjasonxx: they were playing a commercial here a while back that i've seen about three times and i still can't figure out what they are doing in the ad :S Feb 25 03:47:14 xximjasonxx: for what it's worth, I haven't heard of any real issues with GCM - but then I haven't heard too many people actually using it either... I think it takes a little work to get your head around it, but once that's done, you'll be fine Feb 25 03:47:35 AFAIK there are plenty of apps using it at large scale, millions of messages or more Feb 25 03:47:43 bankai_, first I love the name. Go Bleach. second, I was at a client site the other day, the CEO say my Surface and asked me about it. When he found out you get Office for free he immediately wanted one Feb 25 03:48:38 I cannot, for the life of me, why Microsoft hasnt just made a commerical showing a business person playing angry birds and then going right into Word Feb 25 03:48:42 xximjasonxx: they seem more interested in showing behind-the-scenes of how they made the dancing videos instead of showing how useful the device might be Feb 25 03:49:18 pragma-, I personally wonder if there is a belief held by the Microsoft executive board (Ballmer included) that this is still the 90s. That people will buy their stuff caues they are Microsoft Feb 25 03:49:28 *cause Feb 25 03:50:17 I use a Windows Phone and I have a Surface. They are solid devices and the platform is nice. I cant understand why they dont talk about the features instead of showing kids dancing Feb 25 03:50:41 I mean I have had people ask if I am going to start break dancing when they see me with my Surface Feb 25 03:50:50 I have a Windows phone, given to me by HTC, and I've failed consistently to find a single reason to turn it on Feb 25 03:50:52 do you break dance ? Feb 25 03:51:03 anyway, this isn't #mobile-platform-debate Feb 25 03:51:33 bankai_, I dance and people's hearts break with mortification. Does that count? Feb 25 03:51:37 Leeds: I feel the same way about my Nexus 7. I find using my SGS3 to be more than sufficient. Feb 25 03:51:55 GS3++ Feb 25 03:52:11 returning to the matter at hand, it doesnt sound like GCM is bad, but it seems like many people arent using it Feb 25 03:52:14 pragma-: that's different - they're not direct substitutions Feb 25 03:52:22 I should at least mention it in this presentaton I am giving on Push Notifications Feb 25 03:52:42 bankai_, actually reading the Bleach Manga right now. Good stuff. Wish the series had kept going Feb 25 03:52:54 ;) Feb 25 03:53:33 I might have slightly, and only slightly, more motiviation to turn on my Nexus 7 if more of the games sorted the game data in the cloud. It's horrible being in a high stage on one device and having to replay those levels on another device. Feb 25 03:53:47 s/sorted/stored/ Feb 25 03:53:59 pragma- I use my Nexus 7 on the El here in Chicago, trains get packed and full size tablet would be unweildy Feb 25 03:54:38 I don't find my Galaxy S3 to be too small for any purpose Feb 25 03:55:39 at home, I mainly use my N7 - out and about, I'm perfectly happy to use my One Feb 25 03:55:48 all the devices do the same things these days, it doesnt really matter the platform for most things. I just like the feel of a 7" when I am reading as opposed to doing anything else Feb 25 03:56:02 argh... OneX, which is the same size as the S3... I do mostly work at home, so I am mostly at home. Feb 25 03:56:31 Its also nice when you are traveling to have two tablets :) double the fun Feb 25 03:57:23 with doublemint gum Feb 25 03:57:37 :) Feb 25 03:57:54 * xximjasonxx has his Carribean Family Cruise which starts at the end of this week on his mind Feb 25 03:57:55 2 android tablets is double the bugs though Feb 25 03:58:04 g00s: Nexus 7 and Surface RT Feb 25 03:58:39 Though my 8x is large enough to be a small tablet Feb 25 03:59:13 oh yeah, i guess MWC is going on Feb 25 03:59:25 mwc? Feb 25 03:59:27 why HP, why :) Feb 25 03:59:48 Yep Feb 25 04:00:03 Over now though I think Feb 25 04:00:16 g00s: presumably to show they're still alive, and to *suggest* that when they actually spend some time and effort on something, it might be worth buying Feb 25 04:00:32 capella: nah, it's this coming week - the stuff which has already come out is pre-show Feb 25 04:00:48 Leeds: it looked under-spec'd compared to the N7, which was long ago :) Feb 25 04:01:15 ok I am off to bed Feb 25 04:01:18 Ah... thought my buddy was returning ... turns out he was flying in Feb 25 04:01:33 g00s: I like the fact that people are praising it for being vanilla - all it means is that HP only decided to build/release it a couple of months ago, and don't have the expertise to skin it... yet. Feb 25 04:01:56 we need more vanilla Feb 25 04:02:07 and usabilkiy pushed into aosp Feb 25 04:02:09 * Leeds prefers chocolate Feb 25 04:02:24 yeah, i liked when the Verge dude interviewed the HTC CEO about how they were going to come back, and their android strategy was more Sense Feb 25 04:03:13 they are doing a costume drama skinned phone. Feb 25 04:03:22 sense and sensibility. Feb 25 04:03:59 is there one wat to set always visible scroll bar in one listboxview Feb 25 04:04:22 g00s: I thought it was "more marketing" Feb 25 04:04:33 wabz: oh, that too Feb 25 04:04:47 sony devices are lookign good these days I reckon Feb 25 04:05:33 I'd like a pixel qi device Feb 25 04:05:47 - the low power one, not the chrome book Feb 25 04:07:52 Leeds: arrg.. I followed everything @ http://developer.android.com/tools/publishing/app-signing.html , and I still get that not debuggable message ! debug.keystore, password android, keyname androiddebugkey CN=Android Debug, OU=Unknown, O=Android, L=Unknown, ST=Unknown, C=US Feb 25 04:12:48 ESphynx: if you don't want to use the tools that are actually provided or recommended for you, you're going to need to be prepared to do a bunch more work than everyone else, without any help - because most of us don't choose to waste time like that Feb 25 04:17:22 i am trying to apply the dark theme to a preference screen. i followed settings guide, while the activity that has its content swapped with the preferencefragment has the dark theme, the preference screen itself does not inherit the theme. Feb 25 04:17:39 how can i control one listview into another lisview , when i click inner listview outside litview move too , how can i can avoit it Feb 25 04:18:05 lol what Feb 25 04:18:10 you have a listview inside a listview? Feb 25 04:19:03 yes Feb 25 04:19:21 when i move inner listview outside listview move too Feb 25 04:19:44 seems like you're doing something wrong if you're putting a listview in a listview Feb 25 04:21:01 dang ... so listview inna scrollview's probably out of the question too? :p Feb 25 04:21:36 yes Feb 25 04:21:59 me Feb 25 04:22:22 didn't even realise it wasn't tona saying that :p Feb 25 04:22:45 :D Feb 25 04:38:09 I have a pending intent question, it seem the 4 options of FLAG_* don't allow for any kind of sequential use, only cancelling or updating ? How is this supposed to work if I have a pending intent to send and sms ? Am I going about this wrong or simply reading it wrong ? Feb 25 04:56:24 is there a way to wait/block until a Handler's queue is empty? Feb 25 05:10:52 Hi, for my project I will need some custom adjustments in webkit.. so to proof it's possible I spend last weekend with trying to compile webkit from source but without success :( Can anyone help me with it? Currently I am trying to compile this source https://android.googlesource.com/platform/external/webkit/ with NDK but It's saying that webcore is already defined and something is trying to redefine it Feb 25 05:27:08 --So post your LogCat equivalent in a pastebin or something. (Never used the NDK to my knowledge, maybe it has a LogCat.) Feb 25 05:27:52 dominikm: do you have two things defining your webcore? Feb 25 05:28:39 ZeroBeholder: I don't think so.. It's original source without any customization Feb 25 05:30:23 ZeroBeholder: It says exactly Android NDK: Trying to define local module 'webcore' in jni/Source/WebKit/Android.mk. Android NDK: But this module was already defined by jni/Source/WebKit/Android.mk. /root/android-ndk-r8d/build/core/build-module.mk:34: *** Android NDK: Aborting. . Stop. Feb 25 05:33:56 dominikm: Good news! Your problem seems to live in one file-- worth taking a look at. Feb 25 05:34:19 Open jni/Source/Webkit/Android.mk and poke around. Feb 25 05:36:50 ZeroBeholder: I have already tried it but I really don't know what is causing it.. anyway I'm suprised that original source doesn't work.. I'm supposing that I do something wrong in base Feb 25 05:38:18 dominikm: Found this: http://stackoverflow.com/questions/6799051/building-webkit-in-android Feb 25 05:41:26 dominikm is gone, it needs built outside of the ADT/SDK/NDK environment. Too bad he left. Feb 25 05:41:47 ZeroBeholder: What does it mean "platform build system"? .. Hmm.. He didn't write how he did it Feb 25 05:42:27 dominikm: He built it using make and a different target system. Feb 25 05:43:26 You can do that with the proper tool chain and the -march 'modifier' Feb 25 05:43:43 The right word is not coming to me. Feb 25 05:45:50 ZeroBeholder: Do you know how to do it this way from scratch? I have no idea.. This all is new for me, I know how to programm but nothing about cross-compiling etc. Feb 25 05:46:06 http://mobile.tutsplus.com/tutorials/android/android-sdk-embed-a-webview-with-the-webkit-engine/ Feb 25 05:46:30 This looks like the normal way to do it. You just want to integrate a 'web view' correct? Feb 25 05:47:29 ZeroBeholder: Unfortunately no, I need to customize webkit in source and use my own version of webkit Feb 25 05:48:06 ZeroBeholder: I know about webview, which use webkit builded in android but i can't use it because of mine customization Feb 25 05:50:27 I have cross-compiled a kernel when I needed to for UCLinux in an embedded system. Feb 25 05:51:10 But, the stuff included by default for webkit stuff was built outside of the android environment. Feb 25 05:51:26 And for your custom changes, it seems you may have to do the same. Feb 25 05:52:27 ZeroBeholder: Maybe yes, I'm really not sure Feb 25 05:52:44 ZeroBeholder: Do you think that this source https://android.googlesource.com/platform/external/webkit/ is usable for it? Feb 25 05:54:51 Let me fire up Eclipse Feb 25 05:59:36 It'd be so nice if we could programmatically draw bitmaps/drawables for the notification icon at run-time Feb 25 06:03:22 we have setLargeIcon(Bitmap icon) but setSmallIcon(int resourceId) :( Feb 25 06:03:32 I demand a setSmallIcon(Bitmap icon)! Feb 25 06:07:55 Forgot I made my PHP configured Eclipse the one that opens from my KDE start menu... Feb 25 06:17:17 gone again. where did you put the webkit in your project? Feb 25 06:27:43 ZeroBeholder: I'm back.. I have run android emulator in my ubuntu virtual machine and my computer got completelly stucked Feb 25 06:37:38 ZeroBeholder: Are you there? Any progress? Feb 25 06:45:16 Not really, I was trying to duplicate your error. This seems like it should go in the libs folder. Is that where you put it? Feb 25 06:50:19 ZeroBeholder: I do exactly this: 1) I have downloaded NDK form here http://developer.android.com/tools/sdk/ndk/index.html and I have unpacked it 2) I have clone this repository https://android.googlesource.com/platform/external/webkit/ into "jni" directory next to files from 1 step.. then when I run ndk-build it says something about stlport is missing.. so I do 3) I cloned this repository https://android.googlesource.com/platfor Feb 25 06:50:20 m/external/stlport/ into external/stlport next to "jni" directory from step 2 .. and It returns to me error I wrote before about webcore, now Feb 25 06:54:39 I get 0 errors importing the whole library into the 'SDK' which is preconfigured for the 'ADT' bundle. Feb 25 06:55:04 --Clearly not the NDK, but that is what it is. Feb 25 06:55:47 ZeroBeholder: What does it mean? Do you have compiled it successfully? Feb 25 06:56:05 Maybe import into ADT. Close your project and open it in the NDK. Feb 25 06:56:32 My builds are happening fine. Feb 25 06:57:08 ZeroBeholder: That's nice to hear.. I have spent whole weekend by trying it.. Feb 25 06:58:05 ZeroBeholder: May I ask you for some details how to do it? Unfortunatelly I have no idea, how to do what you wrote : Feb 25 06:58:08 What does your dev environment look like? I run linux, Kubuntu specifically. I don't do any C programming if I can help it so the ADT bundle is what I have been using. Feb 25 06:58:33 Any particular reason you are using the NDK? Feb 25 06:59:02 It is not the preferred environment for development. Do you have libraries that you have to use that are not Java? Feb 25 07:00:11 ZeroBeholder: No, I just don't know how to compile it, so I tried this way.. Currently I have few days old ubuntu, downloaded ndk and sdk with eclipse and installed java6 Feb 25 07:00:26 http://developer.android.com/sdk/index.html Feb 25 07:00:52 There you can find the ADT bundle-- It is the SDK already configured for Eclipse. Feb 25 07:01:12 ZeroBeholder: Okay, I have already downloaded that Feb 25 07:01:25 Install java 7. How did you even put 6 in? Feb 25 07:02:06 I've messed with my /etc/sources.list file so that may be why I don't even have the option of installing java 6. Feb 25 07:02:39 I see, okay I will reinstall it to 7.. I have just installed in through Package manager and it works Feb 25 07:03:04 Yes it could be Feb 25 07:07:14 Okay, I'm uninstalling java6 now Feb 25 07:08:00 I have to head to bed, but this is what I used to get my lib files. http://www.mail-archive.com/webkit-help@lists.webkit.org/msg01519.html Feb 25 07:09:02 I already have qt setup (kubuntu is heavy in qt tasks) but the qmake stuff is what you should look at. Feb 25 07:09:02 ZeroBeholder: Okay, thank's.. Is tehere anything I need to know to successfully build it? Feb 25 07:15:26 http://trac.webkit.org/wiki/BuildingQtOnLinux#BuildingtheQtportonLinux Feb 25 07:16:32 Use the android make file. Feb 25 07:17:00 ZeroBeholder: Where can I found it? Feb 25 07:17:36 ZeroBeholder: I have installed java 7 and cloned repository from page you sent me Feb 25 07:17:48 ZeroBeholder: Now I'm trying to follow that instructions :) Feb 25 07:18:41 I see, I didn't cloned that repository I has about 2GB and its server is really slow Feb 25 07:22:49 Why is it compiled by qt? Feb 25 08:09:31 how can I return format like 01/02/2013 from a DatePicker now if the day/month is < 10 it returns 1/2/2013 Feb 25 08:12:23 SimpleDateFormatter Feb 25 08:12:35 you can then have input masks Feb 25 08:12:38 egg Feb 25 08:12:41 eg Feb 25 08:12:48 mm-dd-yyyy Feb 25 08:13:11 rather than what you have m-d-yyyy Feb 25 08:15:09 SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy/M/d"); Feb 25 08:15:09 System.out.println(dateFormat.format(new Date(System.currentTimeMillis()))); Feb 25 08:15:48 tagrudev: this will print 2013/2/25 Feb 25 08:16:04 tagrudev: reorder the string to show as you like Feb 25 08:16:28 tagrudev: d/M/yyyy Feb 25 08:16:30 generally, you should obey the preferences the user has set for that , though ;) Feb 25 08:16:51 if they have mm.dd.YYYY , then - for the love of all that is beautiful, use that Feb 25 08:18:06 I've lost count of the number of tickets about date format I've closed as "using locale's default date format" Feb 25 08:18:09 "wont fix" Feb 25 08:18:23 ;) Feb 25 08:18:46 alex_PP: please add option for non-locale one? ;P Feb 25 08:19:05 well, there is a pref is Settings - which may be the locale default :P Feb 25 08:19:18 what i meant was, respect wut the user had in Settings Feb 25 08:19:48 and now seriously, what people complain the most about date format? :D Feb 25 08:19:56 p_l, I've had that request Feb 25 08:20:45 yeah, just wondering what groups would annoy about their format :) Feb 25 08:20:46 http://stackoverflow.com/questions/15045952/open-my-android-program-after-update Feb 25 08:20:49 open my android program after update Feb 25 08:23:25 huh, a new android book http://shop.oreilly.com/product/9781118394151.do Feb 25 08:24:29 is Mr Nudelman here ? Feb 25 08:24:58 irc to Nudelman, over Feb 25 08:36:31 I use http://stackoverflow.com/a/14353076/1327384 to update my android program , but after updating my program it will be closed so I want to reopen it after completing the update process , how can I do that ? Feb 25 08:37:45 I want do display a list of projects in a viewpager (all projects, active projects ...). When I inflate the same layout for each fragment in the viewpager the listfragment gets randomly shown in just one of the pages. It only works using different layouts for each fragment. Is it possible to use only one layout? Feb 25 08:51:15 is there a built in way to prevent a listView from scrolling yet still respond to touch events? Feb 25 08:55:30 im confused >_> how come even after i leave the views rectangle it still responds to touch evetns? arent touch event called only withing the bounds of each view Feb 25 08:55:37 hello all Feb 25 08:56:10 Im trying to send a key button over a USB to the machine using a android app Feb 25 08:56:23 balls2thewall because it might be in focus Feb 25 08:56:27 but can't seems to find a good tutorial how to do that or even close Feb 25 08:56:31 looking for some help Feb 25 08:57:31 Amorgos views in focus respond to events regardless of their bounds? Feb 25 08:57:38 anyone for me ? Feb 25 08:58:49 well, i don't have an exact definition of how its designed. Feb 25 08:59:15 :/ Feb 25 08:59:26 balls2thewall: what is it your wanting ? Feb 25 09:00:39 a listView that doesnt respond to touch events ? or just so user cant scroll it ? Feb 25 09:01:10 well i was trying to create a click/drag option to a listview. i ended up rendering the selected item to a bitmap->imageview and then dragging around the imageview Feb 25 09:01:26 what confused me is that the touch listener attached to the list view still keeps responding even though ive left its bounds Feb 25 09:01:58 responds and scrolls.... would be nice to disable the scroll while dragging the selected view Feb 25 09:02:08 if you ACTION_DOWN over a view, the view will continue getting touch events until the ACTION_UP Feb 25 09:03:25 the scrolling actually is done by an onInterceptTouchEvent rather than onTouch directly. because the ListView gets the events even if they also go to the child. You can use http://developer.android.com/reference/android/view/ViewGroup.html#requestDisallowInterceptTouchEvent(boolean) to stop that when you start handling the movement yourself Feb 25 09:04:39 balls2thewall: have you looked at existing implementation of drag sortable listviews? like https://github.com/bauerca/drag-sort-listview Feb 25 09:05:17 * becom33 anyone for me ? Is it possible for the android device to act like a keyboard trough USB ? Feb 25 09:06:13 I want do display a list of projects in a viewpager (all projects, active projects ...). When I inflate the same layout for each fragment in the viewpager the listfragment gets randomly shown in just one of the pages. It only works using different layouts for each fragment. Is it possible to use only one layout? This is the fragment that gets added to each page in the viewpager: Feb 25 09:06:13 http://pastebin.com/bJ2V2nZk Feb 25 09:12:52 * becom33 anyone for me ? Is it possible for the android device to act like a keyboard trough USB ? Feb 25 09:21:34 hey, I got an ExpandableListView and I want to change the group indicators color depending on some enum in my model, is there some easy way to do this? Feb 25 09:24:38 I was hoping for something like this in the adapter: parent.getChildIndicatorFor(groupPosition).getBackground().setColorFilter(color, Mode.MULTIPLY); Feb 25 09:33:57 Hello! I use in my project more than one open-source libraries. As i understand add NOTICE and LICENSE file. LICENSE file is always one. But NOTICE file different in each library. Should I append all NOTICES files in one and leave LICENSE file as is? Feb 25 09:35:02 hey ppl Feb 25 09:36:23 i'm just going through the docs, it says that your manifest must define ALL components (activities, services etc) before they can be started... i was under the impression you could create a component dynamically with code (ie. without a manifest entry), is this incorrect? Feb 25 09:37:28 if by component you mean an activity, service etc the no Feb 25 09:37:53 if by component you mean a UI widget, then yes Feb 25 09:37:56 if you mean something like, dynamically register a broadcast receiver then yeah Feb 25 09:38:31 ok! Feb 25 09:38:33 erdos: you'll probably get a better answer if you explain what it is you want to accomplish. Feb 25 09:38:36 thanks for the clarification :) Feb 25 09:39:18 so yeah, what *do* you mean? :) Feb 25 09:39:37 nothing, i'm reading the api guides from start to finish, i have a general idea about the sdk, i just want to be 100% on the specifics, i kind of thought it was possible to define an activity dynamically without it being in the manifest Feb 25 09:40:14 good idea on the reading, but nope, you can't define an activity dynamically Feb 25 09:40:24 Hello! I use in my project more than one open-source libraries. As i understand add NOTICE and LICENSE file. LICENSE file is always one. But NOTICE file different in each library. Should I append all NOTICES files in one and leave LICENSE file as is? (acra and zxing) Feb 25 09:40:55 * becom33 anyone for me ? Is it possible for the android device to act like a keyboard trough USB ? Feb 25 09:41:32 xgear, my guess is that you should use the license that fits all Feb 25 09:41:34 becom33: i think there would probably be a way to achieve that... how i have no idea though! Feb 25 09:41:36 becom33: probably not with a regular app Feb 25 09:42:16 you'd need the phone to present the right USB IDs to the computer to make it look like a HID rather than a storage device Feb 25 09:42:19 becom33: can you do hardware drivers in host os ? like windows/osx etc ? cause I think you would need a new HID driver that conforms to some spec of whatever you were going to do as a service Feb 25 09:42:34 rohdef: LICENSE file fits all. but NOTICE files different Feb 25 09:43:26 xgear, oh misunderstood, just use links to the notices, it's not like anyone cares anyway Feb 25 09:45:08 Leeds, I was just thinking for a barcode scanner after the code is scanned we can push the value to the machine with USB Feb 25 09:46:29 becom33: I think StingRay_ is right, you'd need a driver on the PC to do that Feb 25 09:47:36 rohdef: NOTICE file should be like this: http://pastebin.com/xWmdkP89 ? Feb 25 09:49:32 becom33: i think that would be quite a useful application though if you could write the usb drivers... because i'm pretty sure most barcode scanners just work by transmitting the numbers as a keyboard Feb 25 09:49:43 Trying to emulate -sw600dp in code is giving me trouble (Nexus7). All the methods I can find that return screen size will subtract the softkey bar size in landscape mode, making it less than 600dp in height, while values-sw600dp still works. Anyone know a method that returns actual screen size ? Feb 25 09:49:54 plus you've already got zxing which has done all the tricky stuff for barcode processing Feb 25 09:50:09 erdos, thats what I was thinking it would be great if I just connect the android as a keyboard Feb 25 09:50:20 xgear, either that or I'd make a static page having: Contributions, see here: link.to/page and on that page have the links. Only person who'd ever care about those anyway is a developer, and a developer would most likely look on your github for what you use anyway, so the whole point of including a notice is essentially stupid. So have them so you don't piss people of, but hide them as much as possible, because 99.99% of your users is likel Feb 25 09:50:20 y to not care at all Feb 25 09:53:35 Chainfire: getWindowManager().getDefaultDisplay().getMetrics(DisplayMetrics) <--- does that not return actual res ? Feb 25 09:54:01 cause I use that to get res and then work out based of dpi the actual inches of the screen Feb 25 09:54:07 so I hope it does !!!! Feb 25 09:54:11 Chainfire: does only work with a workaround Feb 25 09:54:43 from api 17+ you can use: http://developer.android.com/reference/android/view/Display.html#getRealSize(android.graphics.Point) Feb 25 09:55:14 yeah I just found that API 17 method myself Feb 25 09:55:16 below you only can get the real size via private itnernal methods by reflection Feb 25 09:55:18 but thats aPI 17 Feb 25 09:55:28 trying to find what methods exactly it was :D Feb 25 09:56:49 StingRay_ it does not ... N7 will give in portrait mode: 1205x800, landscape 1280x736 (in pixels, not dp), due to the softkey bar Feb 25 09:56:59 yeah I just tried it :) Feb 25 09:57:09 Chainfire: yeah because you shouldn't need to know the real screen size in the very most use cases :) Feb 25 09:57:15 you can work out the bar height and add it Feb 25 09:57:25 because you will only have the part of the screen that you get by displaymetrics to make anything with it Feb 25 09:57:35 I don't really mind having to change the calculation to 550dp, but what I do mind is that values-sw600dp does work Feb 25 09:57:40 rohdef: "on your github for what you use anyway" my project is not open-source and i haven't posted it on github. I just want to use work of other developers right way :( Feb 25 09:57:43 this creates a disconnect between code and xml Feb 25 09:58:27 there is also no method to return softkey bar height, which makes it especially dirty Feb 25 09:58:48 Math.ceil(25 * density) will get you the height of the bar no ? Feb 25 09:58:51 xgear, ah, I'd still link it like that to keep it so it can be found (as it should) but without bothering your users more than absolutely needed Feb 25 09:59:09 StingRay_: that is assuming a lot Feb 25 09:59:17 StingRay_ in what ? pixels ? dp ? where does the 25 come from ? Feb 25 09:59:31 what's the best practice to deal with dates and timezones? Feb 25 09:59:41 i currently use old Date classes Feb 25 09:59:42 the 25 is a hardcoded number, which is evil Feb 25 09:59:48 should i convert them to calender? Feb 25 09:59:56 xgear, be aware that if any libraries you use is using pure GPL then you have to license under GPL compatible, meaning that you have to supply the source to your users/customers Feb 25 10:00:00 Chainfire: finally found it :D http://stackoverflow.com/questions/7213771/how-to-get-screen-resolution-in-android-honeycomb Feb 25 10:00:22 so you need three solutions; Feb 25 10:00:40 much appreciated, timroes Feb 25 10:00:50 till api 13 the width is said to return the real screen width (what i am not sure about), 13-16 reflection and 17+ getRealSize Feb 25 10:00:59 rohdef: as i understand acra and zxing have apache license. Feb 25 10:01:21 but ofc be sure relying on internel private methods is nearly as bad as assuming 25 :) Feb 25 10:01:31 nearly Feb 25 10:01:33 but not quite Feb 25 10:01:36 except it either works or breaks, but won't return wrong results :D Feb 25 10:01:50 in this case, we have an official method in new SDK Feb 25 10:01:58 which takes a lot of the wrongness away Feb 25 10:02:02 because we know it'll work 13-16 Feb 25 10:02:09 and you should test that till api 13 the real screen size is returned, i am not sure about that (the other two methods i am sure about) Feb 25 10:03:03 myeah Feb 25 10:03:03 hi all Feb 25 10:03:54 Chainfire: i don't know what you are exactly doing, but as it sounded you just want to keep it synchronous Feb 25 10:03:58 with the resource system Feb 25 10:04:06 yup Feb 25 10:04:11 so you might also look at getResources().getConfiguration().screenWidthDp Feb 25 10:04:15 http://developer.android.com/reference/android/content/res/Configuration.html#screenWidthDp Feb 25 10:04:17 xgear, ok then it shouldn't be a problem, if it's only those two libraries you could include it as you suggested in the pastebin, but if you use a lot of things I would create an external page keeping that updated and keeping the "boring" development things away from the users Feb 25 10:04:46 nice one, I'll see what that one returns Feb 25 10:05:16 tell me if you tested, never used it so would be interested myself too :) Feb 25 10:06:04 rohdef: ok, thanks a lot for help. Feb 25 10:06:19 xgear, yw :) Feb 25 10:07:47 hi Feb 25 10:08:32 is there in Android API any helper class to write xml files or shal I write as I would write html? Feb 25 10:08:36 thanks you Feb 25 10:11:17 nep1x: you can use XmlSerializer Feb 25 10:11:21 http://developer.android.com/reference/org/xmlpull/v1/XmlSerializer.html Feb 25 10:11:42 So, there's this sony phone I'm interested in C210*. Supposed to be released as the Xperia L. It's got a 480*854 screen with onscreen buttons leaving an usable area of 480*791. If I'm not mistaken, a lot of apps are designed for a minimum of 480*800 hdpi or 320*533dp. Will a resolution of 480*791 cause compatibility issues? Feb 25 10:11:53 nep1x: example: http://www.ibm.com/developerworks/opensource/library/x-android/#N102B3 Feb 25 10:12:10 timroes, many thanks! Feb 25 10:12:31 reference + example: great! Feb 25 10:13:18 I'm asking here as developers will probably have a better idea about this kind of thing Feb 25 10:14:31 BlitzHere: do you mean with "designed for" really 'designed' or do you mean coded for that being a minimum. Cause I wouldn't know why I would put 480*800 dpo as a minimum resolution? Feb 25 10:16:19 nep1x: you can also use simple if you have an object graph http://simple.sourceforge.net/ Feb 25 10:16:21 timroes, yes, as a minimum. It shouldn't cause a problem as far as google's instructions go...but I do know a lot of apps, usually games that are glitchy on a HVGA screen Feb 25 10:16:50 timroes screenWidthDp has the same issue, unfortunately. But the reflection solution seems to work Feb 25 10:17:13 BlitzHere: yeah for normal apps ppl should anyway make layouts not depending on screen sizes, so that wouldn't be problem. but games is ofc another story always :D Feb 25 10:17:19 I will take into account to. thanks g00s Feb 25 10:17:27 Chainfire: so they do return the screen width in dp without the nvigation bar? Feb 25 10:17:31 yup Feb 25 10:17:48 thats sad Feb 25 10:17:54 and doesn't make much sense :) Feb 25 10:18:19 actually, what doesn't make sense IMHO is that sw600dp works Feb 25 10:18:26 because in fact the configuration object of the resources returns something else, than the actual configuration of resource :D Feb 25 10:18:27 that is the one that should be wrong ;) Feb 25 10:19:03 LG acquires webOS from HP O.o Feb 25 10:19:07 methods returning without the softbar is logical enough, that resources include the softbar in the solution is not, as you can't actually disable it. Feb 25 10:20:23 yeah thats true, one of these should change and I would also agree it should be the resource folder Feb 25 10:20:25 selection Feb 25 10:21:24 just looked into the code, resources configuration updates with DisplayMetrics.heightPixel, so ofc it will get the same Feb 25 10:21:28 Chainfire: you can, like youtube does, but only until the user touches the screen.. Feb 25 10:21:56 appel1 ah yes, forgot about that Feb 25 10:22:12 anyway, problem solved, back to coding ;) Feb 25 10:22:21 but in most cases you shouldn't do it, and in most cases the screen width you want IS the one without nav bar... Feb 25 10:22:27 so resource system shouldn't break with it Feb 25 10:22:38 true Feb 25 10:23:46 what would be the best array type to use if i want to store an id (int) and a coordinate set (float x, float y) ..and i should be able to get the id by putting in the coordinates? Feb 25 10:24:13 ..oh, and hi :) Feb 25 10:24:58 the coordinate are unique? Feb 25 10:25:08 yeah Feb 25 10:25:14 or can be multiple ids at one coordinate Feb 25 10:25:26 nope, one coordinate set pr id Feb 25 10:25:32 why then not use a Map ? Feb 25 10:25:44 yeah one coordinate for one id Feb 25 10:25:50 but i asked if the coordinates are unique Feb 25 10:25:50 timroes, I'm just asking because, apart from the incompatibilities and general glitchyness I've had with apps on qVGA and hVGA screens that I've owned, I've read a support thread where one of the humble indie devs didn't support games on screens with less than 500k pixels(!). I'd like to avoid that kind of stuff on my next phone. Going by google's pages, that screen is medium screen bucket or sw320dp - which should by okay but I was just wondering Feb 25 10:25:57 so can two ids have the same coordinate? Feb 25 10:25:58 well, that sounds like a great idea :D Feb 25 10:26:13 Chainfire: timroes: something I do with a menupopupy thingy, maybe a hack but I getDecorView and then find R.id.content and getGlobalVisibleRect Feb 25 10:26:13 nope, it's all unique Feb 25 10:26:25 okay go with the map :D Feb 25 10:26:26 so i think i can use the map Feb 25 10:26:28 yeah, thanks Feb 25 10:26:45 if you have not unique ids, and want fast finding i recommend binary space partitioning :D (but if you are not coding games i geuss u won't need it) Feb 25 10:27:09 StingRay_: but isn't the decorview also without the navigation bar? Feb 25 10:27:15 i am actually working on a game now :) Feb 25 10:27:17 ya Feb 25 10:27:18 but Feb 25 10:27:36 globalVisRect returns absolute screen pixel if you pass rect and point Feb 25 10:27:38 I think Feb 25 10:27:46 looking at this crap I wrote ages ago Feb 25 10:28:03 "ages ago" also the pixelHeight would return the real screen size :D Feb 25 10:28:03 hmm dunno Feb 25 10:28:20 only since api13 it doesn't return full screen size anymore Feb 25 10:28:29 (because since then we have softkey nav bar) Feb 25 10:28:36 ages ago in my androiding dev time Feb 25 10:28:41 so like 4 months Feb 25 10:28:43 :) Feb 25 10:28:54 ah right :D Feb 25 10:28:57 i can remember that time Feb 25 10:29:00 good old times! Feb 25 10:29:03 :) Feb 25 10:29:09 I'm creating a custom view and using that view inside a LinearLayout (vertical) but it seems that the views don't get the proper width from the parent ViewGroup when being "measured". Any ideas/pointer I could follow to find out what I'm doing wrong? Feb 25 10:30:04 you calling onMeasure? Feb 25 10:30:39 btw Chainfire if you find time, you should open a bug for that behavior afaik Feb 25 10:30:44 (and gimme the link so I can like it :D) Feb 25 10:30:49 lasserix: yes Feb 25 10:31:15 lasserix: and then checking the mode of the measures Feb 25 10:33:32 for each view it goes more or less like this: atmost(0),unspecified(0); exactly(123), exactly(123); atmost(123),unspecified(123); exactly(123),exactly(123) Feb 25 10:34:39 hi everyone! I am a total newbie in developing apps for Android and have an elementary question Feb 25 10:34:48 anyone willing to help? Feb 25 10:35:08 tryfonaration: no meta questions! Feb 25 10:38:02 Ok. I want to fork Android's core app contacts manager. I have setup a working eclipse installation for android development. I downloaded the code from Android Open Source Project but when I create a new android project from existing code it is full of references to missing classes. Why? Feb 25 10:38:49 you can't do that Feb 25 10:38:57 why? explain please Feb 25 10:39:06 the contat manager uses a lot of stuff that isn't available in the public api Feb 25 10:39:27 monsti: he already said he downloaded AOSP source Feb 25 10:39:37 he can build the stock contact manager :) Feb 25 10:39:50 yeah :) but that's like printing your own playboy Feb 25 10:40:00 i guess he can't as far as i understood he has forked only the contacts manager Feb 25 10:40:05 tryfonaration: I suspect some errors in prepping the system Feb 25 10:40:07 and is trying to build it inside a regular app dev eclipse Feb 25 10:40:10 ahhh Feb 25 10:40:14 would happen, yeah Feb 25 10:41:02 tryfonaration: you need to grab a whole AOSP source (well, I recommend grabbing the whole, at least for starters) and get to the point where you can do a build of everything (so you know that you don't miss anything) Feb 25 10:41:29 tryfonaration: http://source.android.com/source/initializing.html Feb 25 10:42:55 thanks, I will look into that Feb 25 10:43:08 timroes I'm not sure if its bug worthy, really Feb 25 10:46:38 timroes: I'm reading here that a 64bit environment is required for a build. Mine is Ubuntu 12.10 32bit. Would that be a problem? I am not interested into building the whole ROM but just the app. Feb 25 10:46:49 Hi, I will need some source code customizations in webkit and compile it as standalone version.. To proof it's possible I'm trying to compile original version of webkit from https://android.googlesource.com/platform/external/webkit/ with NDK but without any success. :( It retuns to me this: Android NDK: Trying to define local module 'webcore' in jni/JavaScriptCore/Android.mk. Android NDK: But this module was already defined b Feb 25 10:46:49 y jni/WebKit/Android.mk. /root/android-ndk-r8d/build/core/build-module.mk:34: *** Android NDK: Aborting. . Stop. .. It's pretty weird because it's original source without any modification. Can anyone help me, please? Feb 25 10:48:09 tryfonaration: don't know about 32 bit, haven't seen a 32bit system for a long time :D but as already mentioned the apps require several internal api, i guess they also depend on other system apps, so the build environment has all that set up, you might also be able to set all this up by hand somehow, but I would assume it will take you a lot of longer than just downloading the whole build environment, and you will have less h Feb 25 10:48:38 dominikm: you need AOSP source Feb 25 10:48:59 p_l: What is it? Where can I take it? Feb 25 10:49:05 but yeah the docs are pretty clear on that, you need 64bit environment for gingerbread above, BUT i assume for building the rom. I guess you can build the apps with a 32 bit system too) Feb 25 10:49:11 http://source.android.com/source/initializing.html Feb 25 10:49:26 tryfonaration: you might run out of memory when building some stuff Feb 25 10:49:31 and since you decide what you want to build ( you don't need to build everything but can just build the apps) that could also work on a 32bit system Feb 25 10:49:58 if exported=false on a content provider, is it possible to open up permissions otherwise? Feb 25 10:50:23 "Set android:exported="false" to limit access to the provider to your applications. Only applications that have the same user ID (UID) as the provider will have access to it. " Feb 25 10:50:31 but then ... Feb 25 10:50:34 g00s: I think you can change that from PackageManager Feb 25 10:50:50 You can set android:exported="false" and still limit access to your provider by setting permissions with the permission attribute. Feb 25 10:51:03 these 2 statements seem contradictory Feb 25 10:51:58 the android docs on all the provider permission stuff is so bad, i'm betting there are tons of apps with security holes exposing data without even realizing it Feb 25 10:53:23 why would an app implement a content provider if it is not for exporting data ? Feb 25 10:54:53 internal abstraction Feb 25 10:54:55 well, i only want to export a single uri; i tried export=false and and can't get that to work Feb 25 10:55:38 g00s: it just says permission is allowed, but it still wont change the fact that with exported=false only apps with the same uid can access it afaik Feb 25 10:55:46 ContentProvider doesn't seem exactly trivial to implement so that's a lot of work fort just internal abstraction Feb 25 10:56:05 What's wrong with this source? https://android.googlesource.com/platform/external/webkit/ Feb 25 10:56:41 dominikm: you lack all the rest of the platform to compile it against Feb 25 10:56:53 NDK can't do that (same problem is with OpenSSL, for example) Feb 25 10:56:57 one does not simple 'compile webkit' Feb 25 10:57:00 *simply Feb 25 10:57:06 p_l: I see Feb 25 10:57:13 timroes: I'v been reading instructions in the link you provided but can't find any about loading everything up in Eclipse. Before I had followed the instructions here http://source.android.com/source/downloading.html and have downloaded the full source code already. Feb 25 10:57:51 tryfonaration: I recommend considering building everything from command line, and just adding the sources as reference Feb 25 10:58:28 tryfonaration: i don't use eclipse so don't know about loading into it, but if i make changes at the sources i usually do it from command line Feb 25 10:58:44 appel1: so i'm left wondering, what is the best way to disallow access to the provider except for on uri. i tried grantUriPermission=false and then opened up one uri with Feb 25 10:59:20 p_l: Will it be possible to compile webkit only as a standalone app after getting all sources? Feb 25 11:00:23 dominikm: afaik yes Feb 25 11:00:29 dominikm: webkit is a library, wtf are you trying to do Feb 25 11:01:45 g00s: path-permission ? Feb 25 11:01:50 It'd be so nice if we could programmatically draw bitmaps/drawables for the notification icon at run-time Feb 25 11:01:52 we have setLargeIcon(Bitmap icon) but setSmallIcon(int resourceId) :( Feb 25 11:01:54 I demand a setSmallIcon(Bitmap icon)! Feb 25 11:01:57 * pragma- types fast Feb 25 11:02:55 can't you make a custom notification layout and do exactly that? Feb 25 11:02:59 appel1: well, the only app i want access to a single URI is email; how would I do that ? Feb 25 11:03:08 MDijkstra: no, that doesn't affect the icon in the status bar Feb 25 11:03:14 ah, ok Feb 25 11:03:49 I want to be able to programmatically render text in the notification icon in the status bar Feb 25 11:04:03 not have to create 9000 icons to represent 9000 different possible text values Feb 25 11:04:19 good use case e.g. showing number of unread emails in icon? Feb 25 11:04:34 g00s: just Email, but no other e-mail apps? Feb 25 11:04:36 there's setNumber() or such for that, actually Feb 25 11:04:49 my use case is for showing current network upload/download speed in Kbps Feb 25 11:05:11 I want to see that at a glance in my status bar Feb 25 11:05:30 appel1: well, technically the receiver of ACTON_SEND … so the permission should be temporarily given to whoever handles the implicit intent. Feb 25 11:05:45 it would usually be vanilla email, or gmail Feb 25 11:05:54 (with the mime type I have specified) Feb 25 11:06:12 another use case might be for a weather app showing current temperature in the status bar without having to create 200 or so icons to represent the different degrees Feb 25 11:06:19 g00s: path-permission combined with FLAG_GRANT_READ_URI_PERMISSION then I guess Feb 25 11:06:30 yeah, tried that :/ Feb 25 11:06:41 god damn it Feb 25 11:06:55 g00s: https://plus.google.com/105051985738280261832/posts/LpL9ieJZ7tg Feb 25 11:06:58 but in my case for all the various possible upload/download speeds in one notification icon, there's over 9000 icons needed to represent them Feb 25 11:07:08 I am outraged! Feb 25 11:07:10 g00s: works best on Android 2.3 and newer Feb 25 11:07:35 is it really necessary to show the temperature as an icon when you have a lot of ways to show this to the user already? Feb 25 11:07:43 yes! Feb 25 11:07:52 i hate when this stuff winds up in G+. all my google-fu did not find dianne's post Feb 25 11:07:59 die G+ die Feb 25 11:08:12 well, personally I don't really see the point Feb 25 11:08:13 but sure Feb 25 11:08:16 a lot of hate is in the air today :) Feb 25 11:08:20 I am a power-user! Feb 25 11:08:41 Check out the new supercool app from Cyberkrewe at http://goo.gl/EqkvZ Feb 25 11:08:55 lol Feb 25 11:09:05 why leave so soon? Feb 25 11:09:05 p_l: I have found also this http://trac.webkit.org/wiki/Chromium isn't it what I need? A standalone browser with webkit with possibility to cusromize source code? Feb 25 11:09:09 I must see the current weather temperature at all times from the status bar! (and nearly every weather app has already figured out how to create 200 icons or so to do this, there's not that many different temperature values) Feb 25 11:09:11 as am I, I just don't require to know the exact temperature at all times, and google now already tells me when it changes significantly Feb 25 11:09:14 pragma-: open a bug for it, its actually not so hard to change :) Feb 25 11:09:38 but sure, differing requirements Feb 25 11:09:53 timroes: google likely has a pet peeve against custom notification icons, they must be black and white and have specific styling Feb 25 11:10:01 probably caused by dianne hackborn, no doubt Feb 25 11:10:20 only samsung is allowed to have colorful notification icons Feb 25 11:10:24 pragma-: they can also convert a bitmap to their stye? Feb 25 11:10:29 because samsung is too big for google to affect Feb 25 11:10:38 and does anyway shitty UI :) Feb 25 11:10:41 so it doesn't matter anymore Feb 25 11:10:59 okay i am also using a samsung device but happily galaxy nexus :D Feb 25 11:11:12 I ordered the N4 Feb 25 11:11:14 my samsung device has cyanogenmod on it Feb 25 11:11:24 hope it's any good Feb 25 11:11:48 MDijkstra: you haven't been paying attention to this channel or watching any of the android blogs Feb 25 11:11:53 the N4 is crap Feb 25 11:12:01 MDijkstra: it is, except for the fragile glass back.. seems LG didn't learn from the iphone 4 disaster :) Feb 25 11:12:20 pragma-: one user already begs to differ :) Feb 25 11:12:27 pragma-: in which areas is it crap Feb 25 11:12:34 one user probably doesn't use it for anything more than angry birds Feb 25 11:12:42 the gnex was also crap in some regards Feb 25 11:13:30 it overheats and slows down, it reboots randomly, it has sound issues, it has only 13gb of storage (and only 5gb if you, lol, got the 8gb variant), no usb otg, fragile glass front and back (back even more fragile because speaker and camera cut-outs), and more Feb 25 11:14:18 the first two I'll assume are going to be fixed Feb 25 11:14:38 no usb otg is kind of annoying, but meh Feb 25 11:14:54 no deal breakers for me Feb 25 11:15:05 * pragma- pats his removable 64gb sdcard Feb 25 11:15:10 install all the apps! Feb 25 11:15:36 meh, the only thing I'd use it for is music storage Feb 25 11:15:38 plus unlimited ps2 roms, snes/gba/mame/nes/genesis too Feb 25 11:15:46 er, ps1 roms Feb 25 11:16:16 pragma-: not very useful if you don't have unlimited time to play all of them ;) Feb 25 11:16:35 i find excuses to poop frequently Feb 25 11:16:56 appel1: quick q - how did you find that link ? Feb 25 11:16:57 the only thing I've been genuinely worried about is the touch screen response Feb 25 11:17:03 which I've heard is a bit crap Feb 25 11:17:12 g00s: I follow Dianne on g+ :\ Feb 25 11:17:19 heeey again, question: the docs say if an activity is in the paused state, it may be killed by the system in extremely low memory situations... do they mean it is killed but it still goes through the onStop and onDestroy callbacks? Feb 25 11:17:41 erdos: nope, it disappears without a trace Feb 25 11:17:45 erdos: nope its killed means its killed! Feb 25 11:17:45 kill -9 Feb 25 11:17:45 erdos: no, not necessarily Feb 25 11:17:52 eek! Feb 25 11:18:09 ok thanks for the clarification, this is probably an important one to know! Feb 25 11:18:14 thats why onPause is the last relyable called exit callback Feb 25 11:18:27 erdos: if you want some guarantee of data persistence you'll probably have to do periodic saving Feb 25 11:18:33 si si Feb 25 11:18:36 appel1: well crap, i still have to deal with 2.2. anyhow, i tried what she suggested and … it /does not fucking work/ if the uri is in EXTRA_STREAM Feb 25 11:18:49 i only have 2 users still on 2.2 Feb 25 11:18:58 * pragma- fist-pumps Feb 25 11:19:13 upgrade all the things! Feb 25 11:19:13 i have 2.2 :/ Feb 25 11:19:24 sooo, onDestroy would kind of be for elegantly releasing resources? instead of saving state? Feb 25 11:19:26 how do you have 0.2 of a user? Feb 25 11:19:54 wouldn't the vm clean up my resources for me tho? isn't this java? Feb 25 11:19:55 wah don't :D erdos release shared resrouces (e.g. camera) in onPause Feb 25 11:20:25 oh ok i meant more database connections Feb 25 11:20:41 but yeah that makes sense to release the camera in onPause Feb 25 11:21:05 not necessarily -- you might want the camera to secretly record things while you're pretending to play angry birds Feb 25 11:21:10 * pragma- nods knowingly Feb 25 11:21:15 hehehe Feb 25 11:21:26 if its no harm for the system or database if they won't be closed properly, you can disconnect in onDestroy Feb 25 11:21:37 (or onstop if its preferable not to keep the connection open so long) Feb 25 11:21:59 is there anything wrong with keeping an sqlite connection for the life of my app? Feb 25 11:22:08 if not closing your database connection properly will break your system do it in onPause, since its the only one guaranteed to be called Feb 25 11:22:26 nah i don't think it breaks anything Feb 25 11:22:33 coz it's transactional Feb 25 11:23:01 ok back to my study Feb 25 11:23:09 thanks guys <3 you all! Feb 25 11:23:16 btw that training has several examples what do do when: http://developer.android.com/training/basics/activity-lifecycle/index.html Feb 25 11:27:42 is it normal behaviour for an activity to call onCreate when it was navigate to via the back button? Feb 25 11:28:35 think so Feb 25 11:29:05 wait really? Feb 25 11:29:21 i thought activities were only onCreated once Feb 25 11:29:28 unless they were destroyed Feb 25 11:30:03 thats what i thought Feb 25 11:30:05 they are Feb 25 11:30:18 but the system destroys them to free up memory if it needs to Feb 25 11:30:27 i tried my app on a galaxy s2 on noticed it keeps calling onCreate Feb 25 11:30:28 but not commonly though right? Feb 25 11:30:36 which does mess with my logc >_> Feb 25 11:30:40 erdos: android destroys activities all the time Feb 25 11:30:46 erdos: depending on the device, it may do so regularly Feb 25 11:30:50 that dirty bastad Feb 25 11:31:02 it's always something you need to take into account Feb 25 11:31:09 i was just wondering if this is for all s2 devices or maybe something else is happening here Feb 25 11:31:22 no, this is a common occurance Feb 25 11:31:25 well, i'm using a s2, and my little app doesn't do it Feb 25 11:31:38 but my app does very little so i doubt it's chugging memory Feb 25 11:31:53 erdos: it might not do it predictably, but you can't predict memory pressure Feb 25 11:31:54 im testing on a galaxy s, a nexus 7 and some lg device from the cold war. never encountered this >_> Feb 25 11:32:09 lol cold war Feb 25 11:32:29 balls2thewall: well, it shouldn't be a problem in any case Feb 25 11:32:50 unless you're doing dodgy stuff like having activities communicate with eachother other than by intent Feb 25 11:33:27 * balls2thewall coughs Feb 25 11:33:52 hehe, just read past the bit where they say "don't do that Feb 25 11:34:10 but see http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Feb 25 11:34:18 the diagram shows exactly when this can happen Feb 25 11:35:00 that is very handy thankyou (even though it wasn't directed at me) Feb 25 11:35:34 so i can open db connection in onCreate and onRestart, and kill in onStop Feb 25 11:35:36 perfect :) Feb 25 11:35:46 ugh, ive got a lot of fixing to do >_> i just hope this isnt the case for all s2 devices Feb 25 11:37:12 it's the case for all devices... Feb 25 11:37:34 if they have a lot of background services running or just don't have a lot of memory Feb 25 11:37:39 why does this break your logic? Feb 25 11:38:24 the more i wrap my head around the activity/lifecycle the more elegant it seems Feb 25 11:38:47 my onCreate does certain things that cant be done twice >_> Feb 25 11:39:06 balls2thewall: easy fix Feb 25 11:39:12 * balls2thewall coughs Feb 25 11:39:18 balls2thewall: check if savedInstanceState is null Feb 25 11:39:27 when its recreated that won't be null Feb 25 11:39:35 and if it is initially created it will be Feb 25 11:39:48 but you should really fix your logic Feb 25 11:39:56 wait, if it's killed though isn't all its data gone? would it NEED to be done again in onCreate? Feb 25 11:40:22 unless it's doing something outside the activity itself i guess Feb 25 11:40:26 erdos: yeah, unless you're doing things which you should really do in a background service Feb 25 11:40:33 si si si Feb 25 11:40:34 balls2thewall: you can use a nonui fragment that will hold state for you if you want Feb 25 11:42:38 hey what book would you guys recommend for going from a pretty good java guy to a pro java guy? Feb 25 11:43:04 i've been recommended "effective java" but they're expensive and i want to make sure i make the right choice Feb 25 11:44:31 erdos: sometimes you can find the pdf online and preview it before you invest Feb 25 11:44:31 by pro java guy you mean familiar with the available libraries or familiar with under the hood things Feb 25 11:45:12 nah like, architecting my programs elegantly Feb 25 11:45:28 having a huge program that isn't a pile of spaghetti Feb 25 11:46:03 goos mentioned the other day investing in a rubbber duck is not a bad way to do that :p Feb 25 11:46:24 i have one!! my brother bought it for me for xmas, he's sitting on top of my tower Feb 25 11:46:29 quack Feb 25 11:47:10 hmm, well this is interesting. http://www.peachpit.com/store/building-touch-interfaces-with-html5-develop-and-design-9780321887658 Feb 25 11:47:13 i read the langauge and jvm specs. wont increase available library knowledge but def. gives you a better perspective on certain actions Feb 25 11:47:24 and makes you more impressive to java ladies Feb 25 11:47:34 ;_; if they existed that is Feb 25 11:47:43 hehe i have never met a java lady Feb 25 11:49:58 oh cool, looks like it will be easy to boot linux on the Pixel http://www.h-online.com/open/news/item/Booting-desktop-Linux-on-the-Chromebook-Pixel-1809912.html Feb 25 11:50:17 i thought the previous chromebooks were pretty locked down Feb 25 11:50:34 if i got one, i'd put ubuntu on it straight away :D Feb 25 11:54:28 g00s: please try mint Feb 25 11:54:39 :) Feb 25 11:54:48 but i dont use any multimedia :) Feb 25 11:55:06 mint != multimedia Feb 25 11:55:12 oh boy linux users, herewego.gif Feb 25 11:55:33 mint is like ubuntu b4 amazon and commercial influence Feb 25 11:55:50 and it works on macbook pro Feb 25 11:55:53 have it on mine Feb 25 11:55:58 :| Feb 25 11:56:02 i mean :) Feb 25 12:10:28 g00s: I put Ubuntu on my Chromebook right away Feb 25 12:10:40 I've had the Chromebook for just under 3 months Feb 25 12:10:52 it's great, but a bit underpowered and limiting for Android dev Feb 25 12:11:12 even when I used an EC2 instance to do all the grunt work Feb 25 12:11:23 anyway, I picked up a rMBP, and I've been really happy Feb 25 12:11:37 except when the Chromebook Pixel came out 4 days after I bought it Feb 25 12:11:43 now I'm thinking about returning the rMBP. Feb 25 12:12:03 since the Pixel address all of my qualms with the Samsung Chromebook Feb 25 12:16:24 ugh Feb 25 12:16:27 HorizonXP: cool Feb 25 12:16:46 that s2 had in the developer options enabled "destroy activites" >_> Feb 25 12:30:28 I am having an issue displaying maps in 4.1.2 on a stock Galaxy Nexus. Same app works fine on stock Nexus 4 @4.2.2. No error messages given. Grey tiles on the Gnex, fully functional map on the N4. I am using the Google Android dev tutorial for getting android maps to work in an app. My key is working as the N4 displays maps. Anybody have similar issues? Feb 25 12:36:44 how does android deal with static fields? do i have any guarantee at all they wont be set to null at some point? Feb 25 12:38:18 ? Feb 25 12:38:31 balls2thewall: you have crazy questions Feb 25 12:38:48 balls2thewall: a static field one initialized won't be `nulled` before the whole vm terminates Feb 25 12:39:07 so its not like GC looks oh what static field we haven't used a lot and clear these Feb 25 12:39:13 if thats what you worry about Feb 25 12:40:18 but ofc if you keep a lot of data in static fields not able to be garbage colelcted, when perhaps not needed anymore, your app will likely use more ram and perhap sbe killed sooner (don't know exactly in what order android kills apps in backgruond, but i guess its part of last recently used and ram consumption/requirement) Feb 25 12:40:19 instinctively thats what id gather if not for these weird null pointer crashes on static fields Feb 25 12:41:03 balls2thewall: so you use them without initializing them first Feb 25 12:46:22 balls2thewall: perhaps you've missed some aspect of how processes are managed and the life cycles of the different components like activities Feb 25 12:59:45 may you help me, am still searching for a good horizontal listView Feb 25 13:02:20 MoshDev: i have one but you can't scroll to a position Feb 25 13:02:42 what i did a linear layout + horizontal scroll view Feb 25 13:03:19 monsti: i have it Feb 25 13:03:28 monsti: am searching for another one Feb 25 13:03:41 monsti: because am supporting RTL Feb 25 13:03:50 try this https://github.com/dinocore1/DevsmartLib-Android Feb 25 13:04:15 monsti: the same lib am using right now Feb 25 13:04:20 this isn't 100% complete Feb 25 13:04:38 monsti: the only thing i need is setCurrent method Feb 25 13:04:50 yeah and this is //not implemented xDDDD Feb 25 13:05:00 you might steal this from android sources? Feb 25 13:05:07 and please commit xDDDDD Feb 25 13:31:24 what's up guys? Feb 25 13:31:32 anything interesting you wanna share today? Feb 25 13:32:37 astronauts cant burp Feb 25 13:32:55 if i remember correctly anyways Feb 25 13:33:40 that sounds like it's not true Feb 25 13:33:51 it is! Feb 25 13:34:11 burping requires gravity because the gas won't seperate in your stomach :) Feb 25 13:34:26 riight Feb 25 13:34:32 im serious: Feb 25 13:35:02 astronauts do! it's gas from the food that they digest Feb 25 13:35:11 doesn't matter if there's gravity or not Feb 25 13:35:20 without gravity the gas in your stomach won't seperate from the fluid and won't become a pocket of gas towards the top of your stomach and you will not burp in zero g Feb 25 13:35:44 or you burp little bits of food Feb 25 13:35:57 that would be up chucking Feb 25 13:36:10 but you can't burp because there is no reason for the gas to escape Feb 25 13:36:33 nooo!! gas is separated from the food through digestion, not gravity Feb 25 13:36:48 i hope not Feb 25 13:36:49 plus, the stomach has its own air pressure Feb 25 13:36:58 monsti: i dont have enough time to implement it now xD Feb 25 13:37:03 equalized to atmosphere! Feb 25 13:37:41 oh you're right they do seperate Feb 25 13:37:46 but they don't float to the top of the stomach Feb 25 13:38:03 http://quest.arc.nasa.gov/people/journals/space/kloeris/05-01-01.html Feb 25 13:38:17 http://www.omg-facts.com/Celebs/Astronauts-Can-Burp-In-Space/25666 Feb 25 13:38:45 oh i stand corrected Feb 25 13:38:50 yeah you're right as well, it says here it's wet burp cuz of gravity or something Feb 25 13:38:51 lol Feb 25 13:39:17 now i am definatly not going to feel stupid speaking in public spaces, "well, astronauts do and do not burp in outerspace!" Feb 25 13:39:21 ;p Feb 25 13:41:15 Anyone know why when using HttpPost request = new HttpPost( Feb 25 13:41:16 myUrl); i end up with a connection saying "http://10.8.0.36:8080 refused"? and if i use wifi it says that the domain is not associated with anything Feb 25 13:41:36 the ip isn't even correct Feb 25 13:42:56 off-topic: anyone got or tried one of the ARM chromebooks? Feb 25 13:43:12 Bear10: whats the ip supposed to be ? Feb 25 13:43:22 StingRay_, it's an actual domain name Feb 25 13:43:34 then it resolved to that ip Feb 25 13:43:45 Bear10: do you have internet permission? Feb 25 13:43:52 Leeds, there you go thats probably it :$ Feb 25 13:43:56 wow Feb 25 13:43:59 lol Feb 25 13:44:07 that slipped my mind completely Feb 25 13:44:28 if you were looking at your logcat - as you *always* should be - it would have told you, I think... Feb 25 13:44:41 i have been Feb 25 13:44:43 doesn't tell you Feb 25 13:44:52 I thought it did nowadays Feb 25 13:45:23 but that fixed it :) Feb 25 13:45:23 ty Feb 25 14:00:33 i would like to start an application automatically from the console/adb, is there any way to do so ? (inspecting the AndroidManifest file w/ aapt, someother method ? ) can anyone hint me ? Feb 25 14:01:04 link___: use am to send an intent manually. Feb 25 14:01:32 Android doesn't start applications, it sends intents. The distinction is important. Feb 25 14:01:45 (well yes it starts the application but only to recieve/handle the intent) Feb 25 14:04:19 wait what? Feb 25 14:04:32 lov, where can i read more about intents ? Feb 25 14:04:36 oh cool Feb 25 14:04:45 have you visited d.android.com yet? Feb 25 14:04:49 no Feb 25 14:04:51 let me click Feb 25 14:04:55 * link___ *click* Feb 25 14:04:59 seriously? Feb 25 14:05:15 lov: why read documentation when you can ask on irc? ;D Feb 25 14:05:20 Go here: https://developer.android.com/tools/index.html then go here: https://developer.android.com/training/index.html Feb 25 14:05:29 then peruse here: https://developer.android.com/guide/components/index.html Feb 25 14:05:45 oh this is handy Feb 25 14:06:00 prob attach a script that'll automatically login shell and run am Feb 25 14:06:06 or is there a way to inject directly? Feb 25 14:06:19 http://developer.android.com/tools/testing/testing_otheride.html Feb 25 14:06:23 link___ ^^ Feb 25 14:06:26 you can "adb shell am foo bar baz" Feb 25 14:08:09 like this? http://stackoverflow.com/questions/4567904/how-to-start-an-application-using-android-adb-tools Feb 25 14:08:54 oh cool! Feb 25 14:08:55 got it Feb 25 14:08:58 thanks guys! Feb 25 14:09:52 hey guys Feb 25 14:10:15 lov, how can I get the MainAcitivity package name ? Feb 25 14:10:22 do you know any other useful sites such as http://www.androidviews.net/, or the android asset studio, or the android design patterns app in the play store? Feb 25 14:10:33 link___, it's in your AndroidManifest.xml Feb 25 14:10:49 i used "adb shell am start -n com.lopefied.pepemon/com.lopefied.pepemon.MainActivity" Feb 25 14:23:17 Hello! I want to implement picker like in phonebook (with right bar with capitals) Feb 25 14:23:35 someone know about ready solutions? Feb 25 14:23:48 If i recall it's just an XML tag for the listview Feb 25 14:23:51 read the listview documentation Feb 25 14:23:57 s/tag/attribute Feb 25 14:24:08 hm Feb 25 14:24:12 ok Feb 25 14:24:30 it should be called "fastscroll" or something similar, but I don't remember Feb 25 14:25:15 Hello, i lock the app into portrait display using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT); but when i try to release into whatever the sensor picks up using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); it stays locked into portrait Feb 25 14:25:21 what am i doing wrong? Feb 25 14:36:58 I am trying Google Cloud Messaging, using PHP. The code works fine when i run it on my PC. Feb 25 14:37:11 But on two different hostings, it's returning "Unauthorized 401 Error" Feb 25 14:37:29 I did add the IPs of those servers to the whitelist Feb 25 14:39:01 hello, how can I search for a word in a package (eclipse/android) Feb 25 14:42:06 hi all Feb 25 14:42:31 anyone using samsung galaxy tab2 or samsung galaxy note 10.1 with fedorar ? i can't mount them :( Feb 25 14:43:26 ohmy: May be you should try, #android. Feb 25 14:47:05 hrmm, the Speech Recognition API Demo crashes on the emulator along with voice recorder, is that normal? Feb 25 14:47:52 define normal Feb 25 14:48:09 not me ! Feb 25 14:48:15 does that happen for everyone in the emulator? Feb 25 14:48:25 define everyone Feb 25 14:48:56 all ones who run the emulator and try to run the speech recognition API demo? Feb 25 14:49:17 win/osx/linux/android on windows foo/android x86/... Feb 25 14:49:23 I'd think someone would fix that :) Feb 25 14:49:41 win64, as configured through the gui Feb 25 14:49:45 (but I always use a physical device) Feb 25 14:49:48 emulated camera, didn't ask me about a snd input Feb 25 14:49:51 man, the official docs for the sdk are so good, this is so refreshing coming from reading the drupal documentation Feb 25 14:51:34 Does no one use GCM/ Feb 25 14:51:35 ? Feb 25 14:51:45 Stuck on this problem since 2 days now :x Feb 25 14:53:43 i use gcm via app engine, works fine Feb 25 14:53:50 hey guys i have an idea for an app. it would create a special personalized version of the same app to send to friends. do you guys think its possible to do somethink like that. i would basically just switch out some resource files and keep the binaries as a resource so i can pack an app from it. Feb 25 14:55:44 xorgate: Did you face "Unauthorized 401 Error" ? Feb 25 14:55:53 no :) Feb 25 14:56:33 but i just grabbed some python lib for handling gcm and it worked Feb 25 14:57:18 oh.. Feb 25 15:00:26 how can android not be mounted on linux .... Feb 25 15:02:44 ohmy: lsusb, do you even see the hardware? Feb 25 15:02:56 ohmy: adb devices; do you see ???????????????????? or just no device? Feb 25 15:02:58 lov: yes Feb 25 15:03:07 You might need to add the hardware to .android/adb_usb.ini Feb 25 15:03:13 ~/.android/adb_usb.ini that is Feb 25 15:03:15 lov: Bus 002 Device 014: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1] Feb 25 15:03:18 yeah Feb 25 15:03:26 I'm assuming ADB is enabled? Feb 25 15:03:37 you MAY wish to pop over to #android-root for quicker/better advice Feb 25 15:03:48 Onixs: dmesg http://pastebin.com/WhtVmmVy Feb 25 15:03:52 Onixs: oops Feb 25 15:03:56 lov: http://pastebin.com/WhtVmmVy Feb 25 15:05:56 ohmy: ok, so, USB sees the device at least. Feb 25 15:06:02 but adb devices shows nothing, not even ????? Feb 25 15:06:09 again, have you modified ~/.android/adb_usb.ini ? Feb 25 15:06:40 have you read http://developer.android.com/tools/device.html ? Feb 25 15:06:55 lov: no i havent modified it Feb 25 15:07:22 lov: i knew the link Feb 25 15:07:31 hmm Feb 25 15:07:48 yeah, try adding 0x04e8 to that file on its own line Feb 25 15:07:58 then adb kill-server; adb devices Feb 25 15:08:01 see whether it pops up Feb 25 15:08:05 if not, head to #android-root and ask there Feb 25 15:08:25 lov: trying, thank you Feb 25 15:11:29 morning Feb 25 15:12:37 lov: c08082914fcb0cf device from adb devices Feb 25 15:12:55 lov, baby don't hurt me, don't hurt me, no more Feb 25 15:13:47 ohmy: there we go, that did it Feb 25 15:22:19 lov: i would only like to copy files from PC-> tablet, this wont be possible if i cant mount the SD card :( Feb 25 15:24:59 oh, you're not trying to get ADB working? Feb 25 15:25:06 Definitely head over to #android-root then. Feb 25 15:25:19 Also, make sure that Fedora supports MTP/PTP/etc correctly Feb 25 15:25:41 lov: thats done thanks to you, adb works now. I would like to have tablet's SD card mounted in FC18 now Feb 25 15:25:52 lov: ok, thank you Feb 25 15:27:20 Note that you can still transfer files via adb, it's just slower and more awkward. Feb 25 15:29:34 lov: i will not root the device, i have the same problem with galaxy note 10.1 and also htc one. Feb 25 15:29:40 hey folks, i have a dialog fragment with a yes/no buttons. i need something to happen when the user hits yes. but only after the fragment has been closed and the activity the opened it is in control. so setPositiveButton() isnt doing the job, it performs the task when the dialog is still open. any idea how can i do it? Feb 25 15:30:01 ohmy: I know that, but the folks in -root are generally better at getting recalcitrant devices into a working state, because that's usually a precondition to rooting. Feb 25 15:30:06 lov: i do not care if it will take time since my files are small, but how to achieve this Feb 25 15:30:25 if you're ok with just using adb, look up adb push and adb pull Feb 25 15:30:40 it has the advantage of being able to pull/push things from the command line, and in bulk. Feb 25 15:30:57 lov: great thank you Feb 25 15:40:25 lov: i love you ! it works Feb 25 15:40:34 lov: thank you so much Feb 25 15:44:21 you're welcom Feb 25 16:17:14 i need some help with YUV on android Feb 25 16:17:37 i've used/modified two different formula to unrap the YUV into YUV triplets, unfortunately both formulas end up with Y and V being 0 and U being a large number Feb 25 16:19:16 http://stackoverflow.com/questions/5272388/extract-black-and-white-image-from-android-cameras-nv21-format/12702836#12702836 <-- this looked to be the most promising Feb 25 16:19:22 but after unwrapping this i get the same thing :| Feb 25 16:20:15 http://stackoverflow.com/questions/9192982/displaying-yuv-image-in-android <-- this ends up being the same thing Feb 25 16:21:23 Long shot, but does anyone know of an icon set that is very similar to bootstrap glyphs, with an android logo icon (and possibly an apple logo as well)? Feb 25 16:21:33 https://code.ros.org/trac/opencv/browser/trunk/opencv/android/android-opencv/jni/yuv420rgb888.s?rev=4859 <-- reading this too Feb 25 16:27:07 https://github.com/manishpathak99/YUV-to-RGB-in-Android-NDK/blob/master/jni/hello-jni.c <-- reading this now Feb 25 16:35:58 hi! how can i change the color of a radio button? Feb 25 16:36:22 to be exact the color of the circle around the button Feb 25 16:37:46 it is hardly visible on a black background. there must be a standard way of doing that Feb 25 16:42:20 When I start up the android SDK, I get this prompt saying that the Android Dev Toolkit is out of date, and an option to check for updates. When I check for updates, it tells me it is already up to date. Feb 25 16:43:18 and when I close the prompt, all the Android packages are not availible (the have the red line under the "import" lines). Feb 25 16:44:08 everything worked perfectly fine when I closed the ADT a few days ago. Feb 25 16:44:20 i am looking at the code generated automatically by the adt plugin for eclipse in main.xml. it does not have android:orientation http://vpaste.net/qfTfs Feb 25 16:44:54 Neither does RelativeLayout Feb 25 16:47:04 the sdk has changed since these my study material was created. is android:orientation not used anymore? Feb 25 16:47:17 On LinearLayout it is Feb 25 16:47:58 SimonVT -> how can i know my layout? it only says match_parent for all Feb 25 16:48:12 The very first line in your paste Feb 25 16:48:58 ok thanks Feb 25 16:54:52 connected devices are not showing up in ADB, though emulators do show up....common problem? Feb 25 16:56:29 though looks like i might just have to add a vendor id to the .ini Feb 25 16:59:42 do you guys know if pull to refresh can be used for contents in fragments ? Feb 25 17:03:56 Rob|boR, why couldn't it? Feb 25 17:04:09 it's not like "pull to refresh" is some platform feature. you can put it anywhere you want Feb 25 17:04:24 personally, i think it's stupid and undiscoverable though Feb 25 17:06:25 Can always use it as a secondary way to refresh the content Feb 25 17:06:29 If it makes sense for your content Feb 25 17:19:37 Hey there Feb 25 17:25:22 canadiancow, the thing is from what I've read Feb 25 17:25:26 pull to refresh works with listview Feb 25 17:25:47 what if I have a picture in the fragment that changes every now and then Feb 25 17:29:20 hei! In the method "setFixedLengthStreamingMode" from HttoURLConnection, the input parameter lenght is intended to be the lenght in bytes isn't it? Feb 25 17:33:22 I would assume so? Feb 25 17:53:49 how fast did google IO sell out last year? were there people on at opening time that were unable to buy a ticket or was it just the late comers that missed out? Feb 25 17:55:27 preds, 20 minutes Feb 25 17:56:52 preds: people at opening were unable to buy tickets Feb 25 17:56:57 the server crapped out immediately Feb 25 17:57:01 and it was a total shitshow Feb 25 17:57:11 tickets were available for up to a half hour though Feb 25 17:57:32 why oh why does java not have usigned data types Feb 25 17:58:56 hosler, incoming copy-pasta Feb 25 17:59:04 Gosling: For me as a language designer, which I don't really count myself as these days, what "simple" really ended up meaning was could I expect J. Random Developer to hold the spec in his head. That definition says that, for instance, Java isn't -- and in fact a lot of these languages end up with a lot of corner cases, things that nobody really understands. Feb 25 17:59:09 Quiz any C developer about unsigned, and pretty soon you discover that almost no C developers actually understand what goes on with unsigned, what unsigned arithmetic is. Things like that made C complex. The language part of Java is, I think, pretty simple. The libraries you have to look up. Feb 25 17:59:38 tl;dr: Java language designer made it for the lowest common denominator - "people are stupid so we made the language stupid" Feb 25 18:00:09 for him to claim C developers don't know what an unsigned int is is fucking ridiculous Feb 25 18:00:29 of course, if you were talking about something else entirely let me know :P Feb 25 18:00:30 oh good, it's language argument time in #android-dev Feb 25 18:01:15 lov, python is the best, it makes the hair smooth and shiny Feb 25 18:01:41 that is because you are being digested by a snake. Feb 25 18:02:37 preds, i was going nuts doing bit manipulation for my android app. everything was signed and i was getting very very confused Feb 25 18:04:08 Maybe read a few chapters of the Java Tutoria Feb 25 18:04:10 l Feb 25 18:04:14 i figured it out Feb 25 18:04:40 you have to change it into a larger data type Feb 25 18:04:44 like from byte to int Feb 25 18:04:47 yeah, bit twiddling is definitely a pain in java Feb 25 18:04:55 otoh java is really meant to avoid bit twiddling in the first place when possible Feb 25 18:05:52 twiddle my bits Feb 25 18:05:53 why does android used java if bluetooth and wifi is involved and bit manipulation is expected with that stuff? Feb 25 18:06:10 I was refering to the fact that you are writing in Java without even knowing the primitive types. Feb 25 18:06:18 note that I said avoid, not remove. Feb 25 18:08:26 kakazza, i know about primitive types. that's all i use. Feb 25 18:08:32 for the most part Feb 25 18:08:59 Yet it puzzled you, that everything was signed. Feb 25 18:09:11 because java reads them as signed Feb 25 18:09:30 you have to put the byte in a large datatype or else a signed bit will be read Feb 25 18:09:40 I know. Feb 25 18:09:43 k Feb 25 18:10:06 just drop the last bit off Feb 25 18:10:14 well Feb 25 18:10:16 in 90% of cases it won't matter Feb 25 18:10:17 that will change the number Feb 25 18:10:23 mikedg_: lol Feb 25 18:10:26 and the other 10% a tester isnt going to catch Feb 25 18:10:33 I like the cut of your jib Feb 25 18:10:44 i cant add another 10% error for my readings Feb 25 18:10:55 and if you have to write your own unit tests, then you just avoid testing this case Feb 25 18:12:36 what else can i use to create android apps Feb 25 18:12:44 im learning about android dev as i go Feb 25 18:13:50 HTML4+css Feb 25 18:14:13 i need bluetooth though Feb 25 18:14:16 hosler: bit manip in java works fine Feb 25 18:14:37 there is an API for accessing the bluetooth stuff in android. It's more or less "what you get" Feb 25 18:14:53 It's not excessively low level. You can make a rfcomm/spp channel, that's about it Feb 25 18:15:04 im talking about with HTML app Feb 25 18:15:25 but whatever. it's too late to change now. i already have a working prototype. Feb 25 18:15:27 afaik you'd have to write the java side stuff and then hook it to the webview Feb 25 18:17:03 android compiler machine is dvm..while the jvm has stack based architecture ..DVM has Register based architecture.. i don't get how DVM has register based architecture Feb 25 18:17:47 anyone please?? Feb 25 18:18:12 you dont understand registers? Feb 25 18:18:45 http://en.wikipedia.org/wiki/Dalvik_(software) ... includes links to register vs stack based discussions Feb 25 18:19:41 can libgdx work in emulator? Feb 25 18:20:34 i think using registers allows for path forwarding and stuff like that for the internal ALU Feb 25 18:21:50 anddam: answer from a colluege just, who just wrote a paper about 2d graphic libs on android: "it should" Feb 25 18:22:16 anddam: #libgdx should be a reliable source :) Feb 25 18:22:45 hello_world: I don't understand what the question is here. Feb 25 18:23:06 anddam: it... probably can, but the entire point of libgdx is that you don't need an emulator because you have a desktop... Feb 25 18:24:36 android architecture is register based ..how.. thanks for the reply Feb 25 18:25:04 what do you mean "how" Feb 25 18:25:41 hello_world, are you talking about ARM architecture? Feb 25 18:27:30 hosler: yes Feb 25 18:27:34 hello_world: the bytecode that is used in dvm is closer to a register based cpu architecture than the jvm bytecode. Since most processors running android are register based its easier (and faster) to transfer that bytecode at runtime to the actual machine code Feb 25 18:27:59 hello_world: so you want to know how java can run on ARM? Feb 25 18:28:44 how= how to do you implement register..i mean stack architecture is push in pop out..what are the method/qualities of registered based architecture. Feb 25 18:29:13 you can access them the data in registers very fast Feb 25 18:30:14 on machine code level, registers can forward their values right into the ALU rather than wait around until a command directly acesses them Feb 25 18:30:55 now i am getting close to concept.. Feb 25 18:31:00 hello_world: http://markfaction.wordpress.com/2012/07/15/stack-based-vs-register-based-virtual-machine-architecture-and-the-dalvik-vm/ Feb 25 18:31:02 but i still have no idea what you are asking for Feb 25 18:31:18 i guess he just want to understand difference between a stack based and register based architecture Feb 25 18:31:38 One step back. Why does this matter? Are you working on an app or the android OS itself? We could help you better if you explained what your end goal is and how we can help you get there. Feb 25 18:32:09 Welcome to the right place BTW. Feb 25 18:32:18 ZeroBeholder: still no hard feelings Feb 25 18:32:50 I have no use for feelings. Happy to help. Feb 25 18:32:59 timroes, lov: let me put this more in context Feb 25 18:33:02 I'm getting this error https://gist.github.com/anddam/5025858 when trying https://github.com/dozingcat/Vector-Pinball , I thought it was due to missing libgdx but the debug apk I built correctly runs on my device while it crashes on emulator, L24 says E/AndroidRuntime( 1164): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx: findLibrary returned null but gdx.jar is in libs/ and libgdx Feb 25 18:33:04 is in the assembled apk, I just checked it with apktool Feb 25 18:33:28 that a paste from my lines several hours ago Feb 25 18:33:30 timroes: hosler: thanks for help Feb 25 18:33:32 any hint? Feb 25 18:33:32 timroes: i know nothing about stack based architectures Feb 25 18:33:39 so this is new Feb 25 18:34:13 timroes: you just killed my doubt..thanks. Feb 25 18:34:21 and i never was a fan of technical computer science, but ofc still had to do a lot of them, to learn all that differences, and calculate stuff in pipelines and stuff like that :) Feb 25 18:34:37 anddam: it's probably unable to find the .so file Feb 25 18:34:45 double check the installation instructions for libgdx Feb 25 18:34:49 I honestly forget how this is supposed to work Feb 25 18:34:53 timroes: pipelining. that was the word i was trying to remember Feb 25 18:34:56 also, #libgdx or whatever it is Feb 25 18:34:58 bllllllllllllllllllllllllllllllllllllllllllllllllll, so i've tried several methods to unwrap the YUV in NV21, and each time i get Y is 0, U is some large value, and V is 0, what am i doing wrong? Feb 25 18:35:03 I will Feb 25 18:35:08 hosler: its the word I am trying to forget :D Feb 25 18:35:17 ha Feb 25 18:35:22 lol Feb 25 18:35:28 we got some assembler code and had to write the pipeline of it down and tell where it blocks Feb 25 18:35:37 yup Feb 25 18:35:40 lov: I somehow thought this was more android-related due to the apk packaging, or something in manifest or so Feb 25 18:35:44 and then rewrite the assembler to have it best fitting into the pipeline Feb 25 18:35:44 i had a school project just for that stufff Feb 25 18:35:50 has anyone done YUV conversion in android ndk? Feb 25 18:35:54 hi guys. I've got an xml layout I want to instantiate in an activity. How do I properly instantiate the activity layout with this xml file? Feb 25 18:36:40 timroes: we messed up by choosing what commands our uProcessor would do before writing our ASM. we could have made it so much easier for ourselves. Feb 25 18:36:50 the_jeebster: setContentView(R.layout.my_layout_file); Feb 25 18:37:48 timroes: i would love to see your project Feb 25 18:37:49 timroes: I also have a webView that I want to add as a view of the contentView. will this function properly if I append the webview to the content view? Feb 25 18:38:24 if you only have the webview you can just add it with setContentView(myWebView) if it should be inside some other view, just add it to the xml layout Feb 25 18:38:52 http://developer.android.com/guide/topics/ui/index.html Feb 25 18:39:45 anddam: well, libgdx is kind of tied to android by definition. regardless, there's only so much help I can give. Feb 25 18:40:45 hello_world: what project? :D Feb 25 18:41:12 I mean your school project on pipelining.. Feb 25 18:41:55 you mixed something up, i don't have a school project about pipelining :) Feb 25 18:42:14 just talked about my regular technical computer science lectures in university and that examns, Feb 25 18:42:35 pipelining project was hosler :) Feb 25 18:43:08 ohh soryy...my bad.. Feb 25 18:43:26 anyone here tried to unwrap the YUV encoding in android? specifically in the NDK? Feb 25 18:43:32 seems my memory bits got shifted in my head and pointed to wrong reference.. Feb 25 18:43:45 * kaneda^ uses a butterfly to destroy hello_world Feb 25 18:43:57 im in ur head, flippin ur bitz Feb 25 18:44:04 hosler: would love to see your project Feb 25 18:44:17 yeah flipping bits not burgers Feb 25 18:44:28 seriously frustrated though guys, if anyone is familiar with YUV encoding please let me know Feb 25 18:45:21 timroes: can I call methods directly on ContentView (i.e. ContentView.addView) ? Feb 25 18:45:22 kaneda^: i have no idea, but your nick is disturbing me :D Feb 25 18:45:30 timroes, por que? Feb 25 18:45:33 i always think you are pointing to the message about you :D Feb 25 18:45:36 hello_world: http://www.ece.msstate.edu/wiki/index.php/DRT none of the dropbox files are there. this was before we cared enough to use svn. Feb 25 18:45:48 due to the ^ Feb 25 18:45:50 timroes, well, some asshat took kaneda after i went inactive Feb 25 18:45:54 so, you have them to blame Feb 25 18:46:01 :D Feb 25 18:46:11 if they don't use it you can get it from freenode Feb 25 18:46:19 timroes, he's on right now, i check every day Feb 25 18:46:24 ah god damn Feb 25 18:46:31 then you have to hack his account :) Feb 25 18:46:34 for the record, i am the original Feb 25 18:46:42 i've been kaneda in one form or another for 12 years Feb 25 18:47:06 the_jeebster: no Feb 25 18:47:18 and i also think you should step through some basic java tutorials before heading into android Feb 25 18:47:32 because all the trainigns and such on the android page still requires java knowledge Feb 25 18:47:33 you sound similar to cannada Feb 25 18:47:48 hosler: thanks Feb 25 18:47:52 timroes: understandable. This is my first foray into java, definitely trial-by-fire learning Feb 25 18:48:02 hello_world, i do live in canada now, but it is not the origin of the nick Feb 25 18:48:05 but how can I access the content view instance? Feb 25 18:48:18 hosler: "There is no 'I' in DRT." :D i love stupid slogans like that :D Feb 25 18:48:21 the_jeebster: call setContentView, then call findViewById. Feb 25 18:48:35 timroes: wasnt my idea. can't take credit. Feb 25 18:48:36 timroes: there is no "i" in team, but there is an "m" and "e" Feb 25 18:49:05 lov, there's no I in drunk either Feb 25 18:49:11 there is a "u" however Feb 25 18:49:15 ;) Feb 25 18:49:15 go home kaneda^ you are drunk Feb 25 18:49:21 <_genuser_> my android make is frozen. working hard. Feb 25 18:49:24 lov, i wish Feb 25 18:49:31 <_genuser_> man, it takes long Feb 25 18:49:35 lov: reminds me always at the simpsons: " you cannot spell dishonourable without honorouable" Feb 25 18:49:41 i think they meant DIRT Feb 25 18:50:04 lol Feb 25 18:50:05 timroes, yuo cant spell slaughter without laughter Feb 25 18:50:51 so, crickets, who knows about NV21 and why my unwrapping is failing? Feb 25 18:54:30 is this channel logged btw. Feb 25 18:54:42 <_genuser_> they all are. Feb 25 18:55:03 hello_world, yes, we're watching you Feb 25 18:55:10 but where Feb 25 18:55:25 secret Feb 25 18:55:29 <_genuser_> in the ..... "google drive!" da da daaaaa!!!! Feb 25 18:56:08 i mean there is logrepository..i don't remember the url Feb 25 18:56:29 thanks Feb 25 18:57:09 <_genuser_> don't worry if something surfaces that you don't like, just say it wasn't you.... Feb 25 18:58:19 FBI don't take excuses..(pun intended) Feb 25 18:59:22 <_genuser_> lol, fbi is another story. but if your'e at a job interview and they say, "here's a log from one hello_world saying online that he doesn't like honeybees." You can say you were framed. Feb 25 19:01:00 this is what i meant..http://ibot.rikers.org/ Feb 25 19:01:27 wow this is rather frustrating. my layout id is "android:id='@+id/my_layout' and getting eclipse erros when calling LinearLayout layout = (LinearLayout) findViewById(R.layout.my_layout) Feb 25 19:01:35 with a semicolon Feb 25 19:01:37 wtf Feb 25 19:02:14 <_genuser_> hello_world: I have just found random irc logs online when searching for errors. So I know it's all logged. Just don't know where and how. and who does in what format. Feb 25 19:02:36 hi Feb 25 19:03:22 the_jeebster: did you import the wrong R? Feb 25 19:03:22 #quassel Feb 25 19:03:25 woops Feb 25 19:03:30 loool Feb 25 19:03:37 the_jeebster: doesnt eclipse generate that part for you on new project? Feb 25 19:03:39 _genuser_ searching for errors..it never happens to me btw..i always get stackoverflow webpages. Feb 25 19:03:39 evanc: android.R and android.R.layout Feb 25 19:03:50 the_jeebster: so, "yes", in other words Feb 25 19:04:02 how's that the wrong R? Feb 25 19:04:04 _genuser_: searching for errors?it never happens to me btw..i always get stackoverflow webpages. Feb 25 19:04:06 eclipse suggested those Feb 25 19:04:09 I hate eclipse Feb 25 19:04:18 <_genuser_> hello_world: yeah has to be some real odd bugs. Feb 25 19:04:19 the_jeebster: just because eclipse suggested it, doesn't make it right :) Feb 25 19:04:30 <_genuser_> the_jeebster: everyone hates eclipse Feb 25 19:04:33 evanc: so can you point me in the direction of the proper 'R' to import? Feb 25 19:04:37 the_jeebster: you need your package's R. com.whatever.the_jeebster.app.R Feb 25 19:04:45 _genuser_: yes, this is so very true Feb 25 19:04:49 _genuser_: i use eclipse. what should i be using instead? Feb 25 19:05:03 are there any decent eclipse alternatives? Feb 25 19:05:08 <_genuser_> hosler: well, hating it doesn't mean there's a better solution out there lol. Feb 25 19:05:12 there has to be a better Java IDE Feb 25 19:05:16 eclipse is a fucking joke Feb 25 19:05:21 intellij Feb 25 19:05:22 <_genuser_> eclipse is still the easiest of all java dev envs. Feb 25 19:05:41 remember that a poor worksman blames his tools Feb 25 19:05:43 <_genuser_> some prefer netbeans ide, etc. eclipse is bit of a resource hog too. Feb 25 19:05:56 _genuser_ : give me some examples for odd bugs.. Feb 25 19:06:12 does netbeans give good gui layout stuff? Feb 25 19:06:16 for android Feb 25 19:06:24 Nvidia releases their config of the environment and NDK of sorts. Feb 25 19:06:29 <_genuser_> well, you could hand a shoemaker a guitar and say a poor workman blames his tools. But it doesn't mean much. Old sayings are just catchy one liners, nothing more. Feb 25 19:06:32 *an NDK of sorts. Feb 25 19:06:37 Never used it. Feb 25 19:06:44 Hi all Feb 25 19:07:07 <_genuser_> hello_world: touch to thing think one up. When running gentoo with many packages, if you're configuring some odd thing, you might run into one. Feb 25 19:07:29 _genuser_: revdep rebuild Feb 25 19:07:33 or depclean Feb 25 19:07:57 ok...thanks and gn everyone. Feb 25 19:08:05 _genuser_: this is true, but I really can't think of too many positives to warrant eclipse as an efficient and friendly IDE. I try to be as impartial as possible Feb 25 19:08:32 sooooooooooooo how about that YUV Feb 25 19:08:37 every IDE has its flaws but I'm convinced eclipse will never improve seeing how long it's been in existence Feb 25 19:10:23 adt bundle is quite good though for development Feb 25 19:11:27 :| Feb 25 19:11:54 I use the ADT bundle. It also has the most users so googling problems will usually return at least a few usable nuggets. Feb 25 19:11:56 why is it that my Y values seem AOK and my U value is int_max and my V value is 0 always Feb 25 19:13:34 Guys, I want to compile my own CWM Recovery (the one from CM10 source tree). I'm a Linux system guy but still fairly new to Android. I already hacked and rebuilt firmwares and have a x-compile chain set up already. May I ask a few questions here? Feb 25 19:14:42 Oops... just read the channel's title ... *application* development Feb 25 19:14:43 Sorry Feb 25 19:14:46 <_genuser_> the_jeebster: having said that, that's what's on my computer. Feb 25 19:15:19 <_genuser_> so I use eclipse for android app dev. It's too slow. But it's the choice I made because it will be easier to learn android dev using a platform most people use. Feb 25 19:16:18 <_genuser_> Lannig: #android-root might be able to help. Feb 25 19:16:31 Thanks _genuser_, will try Feb 25 19:16:43 Lannig: or #cyanogenmod-dev or #clockworkmod Feb 25 19:17:54 Thanks for the tips, off for now. Bye folks. Feb 25 19:25:52 Hi. what is the sanest way to obtain the visible range from an mapview? I know there is getZoomLevel(), but i want to know, how much kilometers the user can see Feb 25 19:28:41 http://code.globalkeith.com/2012/05/convert-google-maps-zoom-level-to.html Feb 25 19:28:50 he has a scale on that page Feb 25 19:29:28 lol at his comment "It was calculated using information from Google" Feb 25 19:29:57 http://pastie.org/private/8hq7buewpz50iyp6kdqk1g<-- any ideas why this is giving me bad U and V values? Feb 25 19:30:04 woulda been nice had he pointed out where that data came from, at leasst a bit more specific than 'google' Feb 25 19:30:18 Th0th, yeah, i already thought about just convertig the width and height in pixels, but i was not sure if this is the best way Feb 25 19:31:22 oups Feb 25 19:31:37 Th0th, there is getLongitudeSpan() and getLatitudeSpan() in mapview :) Feb 25 19:32:42 ah sweet that'll do nicely Feb 25 19:32:45 http://pastie.org/private/8hq7buewpz50iyp6kdqk1g <-- anyone know why this is giving me bad U and V values, but good Y values? Feb 25 19:35:44 _genuser: even though I use eclipse for overall project management alot of the time, I still use vim as my primary text editor, just hit F5 in eclipse when you're done Feb 25 19:43:41 http://pastie.org/private/8hq7buewpz50iyp6kdqk1g<-- anyone know why my Y vals are good, but U and V make no sense? Feb 25 19:48:10 Th0th, i can think of so manny reasons why that wont work Feb 25 19:48:23 a 256x256 tile can appear as different sizes on different devices Feb 25 19:48:29 mooooooooooooooooo Feb 25 19:48:38 isnt there a method in the maps api that lets you get the distance between two points? Feb 25 19:48:45 so you could pass in the left/right bounds, and ... Feb 25 19:50:20 canadiancow, you ever done YUV conversions/unwrapping? Feb 25 19:50:27 no Feb 25 19:50:29 canadiancow: perhaps list a few before I do something bad to myself (been working so far) Feb 25 19:50:31 ;_; Feb 25 19:50:36 canadiancow, wanna do some? Feb 25 19:50:43 and please stop bugging me :P Feb 25 19:50:48 canadiancow, never :| Feb 25 19:50:50 i read stuff in here every now and then Feb 25 19:50:57 if i knwo the answer, i will tell you Feb 25 19:51:04 canadiancow, moooooooooooooo Feb 25 19:51:06 Th0th, i did give one reason Feb 25 19:51:28 any ideas why I can't adb to my device? tried "adb devices", it doesn't find any, adb start-server adb kill-server doesn't change anything. I'm using Windows 7 with a USB cable that came with a phone to charge it. do you think the usb cable is somehow cripped and only useful for a power cable? when I plug it in, W7 says it didn't successfully install a driver for it, so it must work somewhat Feb 25 19:51:46 have you tried installing the driver? Feb 25 19:52:09 I don't think there is a driver Feb 25 19:52:17 ok, so you thought I was talking about editing tiles in vim. fair enough, vim is not well suited for that purpose Feb 25 19:52:37 canadiancow, one day you're going to interview me, and the only thing i'll say is "mooooooooooooo" so you know it's me Feb 25 19:52:45 but there have been reports of other people able to adb into this device, so they must have done it somehow Feb 25 19:53:43 kaneda^... Feb 25 19:53:54 lemonade`, there is a driver for adb on windows Feb 25 19:54:09 canadiancow, get excited, it's happening Feb 25 19:54:26 when Feb 25 19:54:40 canadiancow, i dunno, didnt mean to get you excited Feb 25 19:54:44 canadiancow: I didn't know adb needed a driver. wouldn't it've been installed with adb and the rest? Feb 25 19:55:23 hey guys i wrote an android app that dynamically adds views but when i flip the orientation, the layout.xml is loaded and the dynamically added views disappear Feb 25 19:55:27 how do i deal with that? Feb 25 19:55:46 you'll have to recreate your state. Feb 25 19:55:59 Alternately, consider not dynamically adding views, and instead just having them hidden by default and unhiding them, etc. Feb 25 19:56:06 is anyone familiar with any bugs that might lead to only getting good Y values from a YUV jbytearray? Feb 25 19:56:17 alternately, use MVC or something so that the state of your activity is really just driven by internals Feb 25 19:57:09 mvc? Feb 25 19:57:16 model view controller? Feb 25 19:59:23 kaneda, what are all the variable values before you execute this line u = (yuv420sp[Globals::FRAMESIZE+k ]&0xff) - 128; Feb 25 19:59:41 are any of them out of bounds or silly in some way? Feb 25 19:59:55 Th0th, if they were OOB i'd be getting a segfault or in the least garbage Feb 25 20:00:03 this isn't garbage, it's very regular, it's just wrong Feb 25 20:00:12 Th0th, btw, the globalkeith link seems to be wrong acording the docs, afaict. MapView.getZoomLevel() says "at zoom level 1 (fully zoomed out), the equator of the earth is 256 pixels long". 40075017 / 256 is 156543. So i think on pixel has to be 156km on zoomlevel 1. Or did i made an mistake here? Feb 25 20:01:31 oh, wait. He tells about tiles, not pixels. Sorry for bothering :) Feb 25 20:01:40 no i think his scale had to do with some arbitrary unit of 1 that wasn't a pixel Feb 25 20:02:10 that's why it irked me he didn't give a source Feb 25 20:02:23 but back to your uv issue what values are you getting? Feb 25 20:02:57 uv? Feb 25 20:03:16 ya he's getting sun burnt from his monitor Feb 25 20:03:23 Th0th, i'm just unwrapping it into an int * for use in the app Feb 25 20:03:34 Th0th, so at the moment i'm just looking at the values i'm given Feb 25 20:04:03 lol @stummi, uv I assume its a skinning image task Feb 25 20:04:45 Th0th, no, I work with an api which returns locations and where i have to provide an geo-locations and radius :) Feb 25 20:04:53 *geo-location Feb 25 20:05:48 in any case what values are going into that equation, what values are we expecting, and what is really being returned, given that I think the problem would become more evident Feb 25 20:16:02 I came here in the morning and I was having a talk about making a android device work like a keyboard and send some type of a key value into a machine using USB device . I've been told it cannot be done unless there is some kind of client application is installed in the computer Feb 25 20:16:19 I get a popup when starting up the Android SDK telling me I need Android Developer Toolkit version 21.1.0 (and that the current version is 21.0.1), but when I click "check for updates", it just tells me no updates were found. Feb 25 20:16:49 becom33: it can work if you modify your android device to show up as a HID for USB. Feb 25 20:16:52 but I saw this video which does the prtty much samething but its the overway around . but I think could work the way I was talking before Feb 25 20:16:53 https://www.youtube.com/watch?feature=player_embedded&v=i060ly2T8wc Feb 25 20:17:05 outside of that, not so much. Feb 25 20:17:24 lov, yes yes thats what I wanted to know . I'v been looking for a tutorial or a document which would help me this whole week Feb 25 20:17:31 right, and you probably won't find one Feb 25 20:17:40 because it requires either a client application on your desktop, or significant hardware hacking. Feb 25 20:17:59 and the Android SDK manager is showing that the 21.1 version is installed. Feb 25 20:18:02 note that the way that the desktop -> device works is that the device basically opens a little server which your computer types into. Feb 25 20:18:10 i.e. client software. Feb 25 20:18:38 well, maybe not hardware, maybe just firmware. It's possible you could do this via some strange kernel module. Feb 25 20:18:46 However, that still requires you root your device, etc. Feb 25 20:18:50 hey Feb 25 20:18:55 lov, I have root Feb 25 20:19:24 becom33: ok, neat. Are you prepared to compile and install custom kernels? Feb 25 20:19:32 also, learn about kernel hacking Feb 25 20:19:33 please just give me some type of instructions. I can change some kernel module cannot install anything on the client machine Feb 25 20:19:35 sure Feb 25 20:19:42 becom33: I don't have instructions for you because I haven't done this before Feb 25 20:19:49 Step 1. Download the android source, or CM or something Feb 25 20:19:52 Step 2. Hack on the kernel Feb 25 20:19:54 Step 3. Push to device Feb 25 20:20:03 this is not a trivial problem. Feb 25 20:20:07 Mooo, canadiancow Feb 25 20:20:13 this is not something where someone wrote a little wiki on how to do something Feb 25 20:20:23 I want you to understand this Feb 25 20:20:28 What's the best practice regarding "sprites" with Andengine? With "sprites", I mean like the "hero" and his foes. :-) Feb 25 20:20:42 if you want to do this thing, great, but you get to learn how to do it all by yourself because no one else has Feb 25 20:21:12 becom33: is this not what you are talking about https://play.google.com/store/apps/details?id=berserker.android.apps.blueputdroid Feb 25 20:21:51 yeah, that's a way to do it via bluetooth Feb 25 20:22:02 basically, you have to trick the desktop into thinking that you're a hardware HID Feb 25 20:22:25 lov, woah Feb 25 20:22:47 Does onDestroy/onCreate happen right after eachother during runtime changes (as in, other handler messages can't be processed in between)? Feb 25 20:23:08 Is there anyone here who has experience creating themes for poweramp? Feb 25 20:23:29 umm what if I used a bluetooth reciver to the machine and transmit key value trough the android Feb 25 20:23:32 would it work ? Feb 25 20:23:38 becom33: I DON'T KNOW. Feb 25 20:23:52 interesting Feb 25 20:24:03 Th0th, and yes thats what Im looking for Feb 25 20:24:46 good deal, now that I found it I'll probably do the same with my tablet to ps3 Feb 25 20:25:02 lov: Answer my question, damnit Feb 25 20:25:04 The other day Everything was fine within my project. Today I start the ADT, and I get a prompt telling me that Android Dev toolkit is out of date. I open the SDK manager, and that is telling me the Android Dev toolkit is in fact installed and up to date. Feb 25 20:25:31 Also, everything in the Android library is showing up with a red error line under it Feb 25 20:25:39 SimonVT: I actually don't know tbqh, there's good arguments for both Feb 25 20:25:46 SimonVT: This is probably a good ctate question though Feb 25 20:25:55 nug700: I downloaded a new copy from developer.android.com, and all is good now Feb 25 20:26:14 lov: Alright Feb 25 20:26:19 redownloaded the whole sdk? Feb 25 20:26:21 SimonVT: at the very least, an interesting stackoverflow question to nudge android devs towards Feb 25 20:27:39 nug700: yep, its only 400mb, and includes alot of new stuff Feb 25 20:28:12 nug700: and it didn't skip a beat on reading my workspace or anything Feb 25 20:29:50 I gotta say the adt is possibly the best eclipse 'distro' I've got another at work that is a major pita Feb 25 20:35:37 eclipse + ADT is fantastic, best IDE i've ever used Feb 25 20:37:02 I like the IDE. Don't like Java. Feb 25 20:37:10 or at least how it is implemented Feb 25 20:37:10 seriously it's integration with the debugger is stellar, I still use vim primarily for text editing, but there are many great tools in eclipse that I am using more and more Feb 25 20:37:40 eclipse does other languages pretty well too Feb 25 20:38:06 tbh, I'm gana finish this app I'm making then go back to unity. Feb 25 20:38:09 I miss unity Feb 25 20:39:15 well, http://unity-linux.org/ looks like I might have to give it a spin Feb 25 20:39:46 if only I found that sooner. Feb 25 20:40:07 I thought there wasn't a linux build, lol. Feb 25 20:40:10 you mean mono, or you mean unity? Feb 25 20:40:11 bah Feb 25 20:40:18 unity3D Feb 25 20:40:19 lol thats a desktop Feb 25 20:40:25 unity3d uses mono for development nug700 Feb 25 20:40:39 mono is OK, not as nice as eclipse Feb 25 20:41:20 woot what are we comparing now? eclipse vs mono? Feb 25 20:41:31 an ide with a .net runtime environment? Feb 25 20:41:50 any of you using ormlite? i'm trying to come up with a way to have a field not be reset if it's null Feb 25 20:41:55 ok here's what u must have been talking about http://unity3d.com/unity/download/ mac and windows only Feb 25 20:41:56 basically specify which fields are to be updated Feb 25 20:42:42 ye Feb 25 20:43:00 Th0th, he wants mono deveop Feb 25 20:43:05 it's for .NET though Feb 25 20:43:14 nug700, go talk to jonp in #C# for more info Feb 25 20:43:28 i'm that well known? Feb 25 20:43:32 yikes Feb 25 20:43:34 * kaneda^ hides Feb 25 20:43:38 * jonp hides Feb 25 20:43:46 jonp, well *I* know you Feb 25 20:43:53 lol. I was just making a comment that I will be going back to unity after I finish this app. Feb 25 20:44:01 nug700: C# dev talk should be on ##csharp/freenode or #monodroid/irc.gnome.org or chat.xamarin.com Feb 25 20:44:06 oh Feb 25 20:44:07 nm Feb 25 20:44:23 jonp, but he's referring to mono, as he's comparign with eclipse ;p Feb 25 20:44:34 jonp, and i wasnt dissing mono Feb 25 20:44:34 I wasn't comparing it :P Feb 25 20:44:36 i just saw my name hilight, i haven't read the backlog :-) Feb 25 20:44:44 kaneda^: i didn't think you had Feb 25 20:45:45 has anyone got any of the NDK stuff going from nvidia? https://developer.nvidia.com/ Feb 25 20:45:53 when I said "tbh, I'm gana finish this app I'm making then go back to unity." earlier, I meant I was going to go back to developing games instead of mobile apps Feb 25 20:45:59 Does anybody have a recommended read for dealing with multi threaded sqlite access on android? Feb 25 20:47:20 hmm, most of my problems turned out to be double -> int conversions Feb 25 20:47:22 exactly why I ask about the NDK stuff from nvidia, I'm looking to develop games as well, and at some point C starts looking the way to go Feb 25 20:47:36 it is Feb 25 20:47:44 and you should go use their SDK etc Feb 25 20:47:46 preds: I'd recommend ReadWriteLocks Feb 25 20:48:00 Th0th: Feb 25 20:48:24 lov, is that specifically a name of something or you mean the practice of keeping some read/write semaphores or something Feb 25 20:48:40 Th0th, ESphynx has been working on Ecere, which is a cross-platform C lang that includes graphics, and is now starting to work for android Feb 25 20:48:59 Th0th, another option is what nug700 is doing, and write C#/JS/Boo in Unity3D and let it compile to native code (objective-c, java android, etc) Feb 25 20:49:09 Yeah, sorry, I was suggesting that you use the ReadWriteLock class to guard your critical areas Feb 25 20:49:13 I've implemented a singleton that keeps one openhelper to itself, then each method calls opener.getWritableDatabase() and ensures it doesn't close when it's done Feb 25 20:49:20 SQLite doesn't have a problem with multiple people reading, just people reading while writing or multiple writes Feb 25 20:49:21 TheBunnyZ0S: ya you bet, got all the nvidia stuff, kaneda: got any links I can follow up on? Feb 25 20:49:40 also, it's interesting to note that getWriteableDatabase and getReadableDatabase return a singleton for that particular database Feb 25 20:49:49 in particular, they return the same object for readable and writeable Feb 25 20:50:01 Th0th, http://www.ecere.com/ and http://unity3d.com/ Feb 25 20:50:09 yeah.. I found that out when threads would close each others database handles Feb 25 20:50:15 heh Feb 25 20:50:25 kaneda: gracias! Feb 25 20:50:45 so now I never call database.close() until the activity finishes which seems a bit dodgy to keep unused handles open Feb 25 20:51:00 Th0th, i've done C#/java/c/c++ interop in Unity3D, it's a bit clunky, you probably want a full native implementation Feb 25 20:52:39 Hello, am facing weird issue Feb 25 20:52:51 i have multiple webviews Feb 25 20:52:55 in viewpager Feb 25 20:53:25 but some of webviews content have horizontal scrollable content Feb 25 20:54:10 but i cant override the scroll of the webview in case the content is horizontal srollable Feb 25 20:54:51 any thoughts? Feb 25 20:55:03 So don't put your webviews in a horizontally scrollable container Feb 25 20:55:28 MoshDev: yeah don't nest in the same direction scrollabel containers inside of each other Feb 25 20:55:30 If you do that, your users are gonna have a bad time Feb 25 20:55:31 or you will have a bad time Feb 25 20:55:36 :D Feb 25 20:55:38 hah Feb 25 20:55:41 haha Feb 25 20:56:28 but the requirements is the books showed as in viewpager Feb 25 20:56:51 kaneda: ya, and I've got an ouya coming and a tegra phone right now, so that chipset is where I'll be focusing on so the nvidia sdk is the obvious choice for me at least Feb 25 20:57:24 if the user scroll in scrollable area in the webview it should consume the touch event Feb 25 20:57:31 but this doesn't happen Feb 25 20:59:43 can I switch from branches in repo? Like do repo init -b gingerbread; repo sync and after repo init -b jellybean ; repo sync? Feb 25 21:00:23 sorry, disconnected Feb 25 21:00:42 is there a way to discover if touch event happend on scrollable area? Feb 25 21:02:54 ? :( Feb 25 21:03:23 i need at least official answer to tell my company that not doable Feb 25 21:05:37 ontouchlistener ? Feb 25 21:08:00 wo, i guess the new developer dashboard went live today Feb 25 21:08:02 MoshDev: You realize that we're not with google, right? Feb 25 21:08:31 MoshDev: also, you should read the docs more. Feb 25 21:08:46 lov, well, not you in particular ;) Feb 25 21:10:18 nothing in the document about this ... Feb 25 21:12:38 I am porting one of my iOS apps to Android. The original iOS app has a Tab Bar with a Navigation Controller inside of it. This does obviously not translate well to Android since if I put implemented tabs as fragment switched with an action bar I would need a separate backstack for each tab and it would lead to bad UX. What's the Android pattern for doing this right? Feb 25 21:13:35 sprite--, tabs/tabhost Feb 25 21:13:40 whcih can use fragments Feb 25 21:13:59 you can even set each click to reset the stack Feb 25 21:14:03 kaneda^: It's deprecated though right? Still recommended for use? Feb 25 21:14:07 is it? Feb 25 21:14:21 I saw somewhere on SO that it was, maybe I'm wrong. Feb 25 21:14:30 it may be...i havent implemented it in a while Feb 25 21:15:49 Ahh nm seems it's TabActivity that's deprecated. Feb 25 21:18:29 btw guys, the content matches the webview size, but the content it self have scrollable area (like frame) Feb 25 21:21:00 sprite--, right, tabhost + fragmentactivity i believe Feb 25 21:21:13 and it works quite well IMO Feb 25 21:21:52 Thanks. What's the behavior of the back button in that case? Each Tab has its own back stack? Feb 25 21:22:56 sprite--, i actually overrode it so taht back would take you away from the view that has tabs, and then you'd only use the tabs for navigation Feb 25 21:24:10 Ahh ok. The app I'm porting actually only has nested views for the first Tab. So I think I will just make that the main view and use an action bar and create an activity for the other 'tabs'. Thanks for all the help. Feb 25 21:30:15 http://stackoverflow.com/questions/15076534/webview-and-viewpager-and-horizontal-scrollable-content Feb 25 21:30:16 :C Feb 25 21:31:40 lov, you're guaranteed that no messages are delivered between Activity#onDestroy and Activity#onCreate Feb 25 21:31:53 The docs for onRetainNonConfigurationInstance says so Feb 25 21:32:13 Also, stackoverflow question: http://stackoverflow.com/questions/15076339/posting-messages-to-the-main-looper-during-configuration-changes Feb 25 21:32:39 cause so has never been wrong ;-) Feb 25 21:33:04 but +1 messages will not be delivered while activity is restarting Feb 25 21:34:52 Does anyone know a good resource on best practices for writing Android XML? Besides from just mimicing stray example code. Feb 25 21:35:10 I opened the question to find some reliable sources :p Feb 25 21:35:25 I assumed this was the behavior, I was just not aware if it was in any way guaranteed Feb 25 21:37:24 SimonVT: interesting Feb 25 21:39:26 are there any docs for the emulator keybindings for *mac* ? Feb 25 21:39:50 like, Home = Fn+Left Cursor Feb 25 21:39:54 where the f is that ? Feb 25 21:41:20 get a real keyboard Feb 25 21:41:31 s/keyboard/computer Feb 25 21:41:43 f is what Feb 25 21:42:02 home is the home button... Feb 25 21:42:17 the home bottom happens to be fn+left on a default mac keyboard Feb 25 21:42:17 is http://rootzwiki.com/topic/37420-list-sch-i535-d2vzw-all-active-romkernel-development/ updated regularly ? Feb 25 21:45:16 birbeck: i'll bite, what real computer do you recommend ? Feb 25 21:46:14 i use dell xps13 with ubuntu, but there are plenty of good non-mac computers Feb 25 21:46:24 dell, lol Feb 25 21:46:27 hi all Feb 25 21:47:05 wasnt my first choice, but my company will only buy apple and dell Feb 25 21:47:06 mikedg_: ok, so i just need to look at the PC equiv key for the mac in each case - thanks. i thought it was more difficult Feb 25 21:47:12 but its a great little computer Feb 25 21:47:28 i have problem with jsoup ... when i allways run application got error .... i add jsoup in lib and add premission on internet Feb 25 21:50:44 code is here http://pastebin.com/n1JqEX2t Feb 25 21:52:06 how should I size an activity if I'd like the container to span the same dimensions across different screen sizes? Feb 25 21:52:47 right now I'm hardcoding dp and the dimensions don't seem to translate from a smartphone device to a tablet Feb 25 21:53:41 dp is a physical size Feb 25 21:53:41 the_jeebster: you are running jsoup on UI thread Feb 25 21:54:19 MoshDev: ? what is jsoup Feb 25 21:54:29 SimonVT: so is there a relative size in the android ecosystem? Feb 25 21:54:29 You can supply a fixed height or width to parts of your ui (like, the action bar is a fixed height), but your content should fill the rest Feb 25 21:54:39 the_jeebster: sorry, not you :D Feb 25 21:54:49 yeah that's some html5 shtuff Feb 25 21:54:54 yes Feb 25 21:54:58 Nemanjaa: : you are running jsoup on UI thread, run it in separate thread or on AsyncTask Feb 25 21:55:18 SimonVT: I have a scenario where I need a new activity box to pop-up and I don't want it to fill the entire parent container Feb 25 21:55:33 ok i will try Feb 25 21:56:05 Like a Dialog? Feb 25 21:56:57 SimonVT: I've got a linear layout activity with an embedded webview Feb 25 21:57:12 is the proper way to support multiple devices/screen-sizes in android to use different layouts? Feb 25 21:57:50 Yes, layouts rarely work well on both phones and tablets Feb 25 22:00:53 SimonVT: ok, thanks for the heads up Feb 25 22:02:11 Hi :), I wonder what the best approach is when using a viewpager filled with multiple listviews, which in turn use data from sqlite. I would like to use a single CursorLoader to fetch the data once, then send that to a single CursorAdapter, which fills the listviews based on their position in the viewpager. Long task, I know :P Feb 25 22:05:10 does anyone know if it is possible to get or calculate the exposure time of individual video frames? Feb 25 22:05:23 I'm currently using a SurfaceTexture to preview and record the video, which is working wonderfully Feb 25 22:05:32 trying to figure out where to look to get the data I need. Feb 25 22:18:25 exit Feb 25 22:34:33 Solved my problem using an Array of Adapters. Not sure if it is the best solution but it will work for now. Feb 25 22:35:32 Retarded news sites report new devices by announcing only the screen size and the camera megapixels, not the cpu, gpu, storage or anything Feb 25 22:41:21 I think I'm subtly missing backward compatibility with my menu - it works on 4.x but not on 2.3. The code came from one of the built-in samples (onCreateOptionsMenu() inflates an XML; handleClick(MenuItem) deals with clicks) Feb 25 22:41:38 it seems that handleClick() isn't happening on 2.3 Feb 25 22:41:46 the menu does come up when I push the menu button Feb 25 22:46:11 pragma-: at first blush, that seems retarded … but maybe its not. if the phone runs nicely, who cares what the cpu specs are? does it matter if its tegra4 vs exynos? most don't care. second, considering that taking pictures is one of the most common uses for phones, its understandable that megapixels - even as a bogus #, is given Feb 25 22:46:44 lastly, seems UX correlates to screen size; better UX at better screen sizes, so another # that seems a good predictor of what people may want Feb 25 22:50:54 given that some archetictures are not as open as others, it matters to me as a power user that prefers to run a custom rom rather than the manufacturer's bloated spyware carrieriq infested insecure half-assware Feb 25 22:51:56 is it possible to grant an app (androidlost) admin via ADB? Feb 25 22:52:24 my phone's touchscreen won't resond, so i can't unlock it Feb 25 22:52:36 g00s: the only problem I generally have with vendor roms is the gimmicky features and terrible styling Feb 25 22:53:08 respond* Feb 25 22:53:21 HTC was content to sit on their device's many insecure bugs until the FCC fined them into taking action Feb 25 22:54:04 yazdmich: connect a mouse to it over USB OTG Feb 25 22:54:13 and control the interface that way Feb 25 22:54:23 har har Feb 25 22:54:30 no, that will actually work... Feb 25 22:54:51 i don't have a female-micro male adapter Feb 25 22:55:01 ah, ok Feb 25 22:55:11 don't know about adb, just thought I'd share a possible solution Feb 25 22:55:23 would all phones support it? Feb 25 22:55:33 most recent ones do Feb 25 22:55:50 galaxy 551 on froyo Feb 25 22:56:50 ah, probably not Feb 25 23:00:00 does anyone know how I can get android AOSP to build 64-bit tools? Feb 25 23:00:13 I notice that it is building only 32-bit on my 64-bit platform Feb 25 23:00:16 HOST_ARCH=x86 Feb 25 23:00:51 so all my tools are being built here: out/host/linux-x86/bin/... instead of out/host/linux-x86_64/bin where they should be Feb 25 23:04:24 i'm having an issue trying to define a BroadcastReceiver in the manifest that listens for SCREEN_ON/OFF Feb 25 23:04:38 is this like a special case for broadcast receivers? Feb 25 23:06:27 yes, there is a flag for broadcasts to not send them to manifest receivers, only actively registered receivers Feb 25 23:06:49 (and SCREEN_ON/SCREEN_OFF use such a flag) Feb 25 23:07:36 http://developer.android.com/reference/android/content/Intent.html#FLAG_RECEIVER_REGISTERED_ONLY Feb 25 23:08:12 do you really need off and on? Feb 25 23:08:18 do you guys know if it will be possible to decompile an app, modify somthing and recompile Feb 25 23:08:30 I'm looking at this link http://forum.xda-developers.com/showthread.php?t=1860115 Feb 25 23:08:31 user_present is valuable if you dont need to know the screen state and just if a user unlocked their screen Feb 25 23:08:44 bbut I don't know to what degree it lets you modify an app Feb 25 23:10:23 Rob|boR: it's not Feb 25 23:10:46 even if you were the original auther to be able to re sign it, not everythign is decompilable Feb 25 23:11:08 I see, because what I wanted to do was Feb 25 23:11:19 add my app in this apps menu. Feb 25 23:11:45 the original app has links to stuff, I wanted to add a shortcut to my app as well Feb 25 23:11:49 to showcase how it would look like Feb 25 23:11:54 unless it exposes an option or method to do that, not a chance Feb 25 23:12:11 at least not an make it the same app Feb 25 23:12:50 thanks guys, and mikedg_ I don't know exactly Feb 25 23:13:24 I see, well thank you Feb 25 23:13:31 i'm thinking I can solve it another way, just with onPause/onResume instead of the stuff I need to do with the receiver Feb 25 23:15:10 mikedg_: what is this "user_present" you speak of? Feb 25 23:15:20 oh i see, its an action Feb 25 23:15:43 yeah Feb 25 23:18:41 is there a way to create an avd for AOSP Feb 25 23:19:01 ? Feb 25 23:23:44 Is there a method that changes a Textview objects text to bold? Feb 25 23:24:15 setTypeface(null, Typeface.BOLD) if I remember right Feb 25 23:25:19 whats the correct way to capture and image and get the orientation? I'm trying to use the media store and query for the orientation but then I have to add it to the gallery and as far as I can tell theres no way to do that synchronously. Feb 25 23:27:10 tnzr: thanks Feb 25 23:29:26 getResources().getDimension() returns a float, wonder if I should ceil or floor that when I need an int Feb 25 23:31:15 you could just cast it to int and that will floor it, if I remember correctly Feb 25 23:35:58 zhobbs: neither Feb 25 23:36:25 evanc: by floor, I meant cast via (int) Feb 25 23:36:29 zhobbs: you should use getDimensionPixelSize() Feb 25 23:36:35 I see Feb 25 23:36:40 oooo Feb 25 23:36:45 i learned something today Feb 25 23:36:52 this is better than learning about birds and bees Feb 25 23:36:52 or the one for layout (MarginSize() or something)? Feb 25 23:36:56 evanc: thanks :) Feb 25 23:37:01 which does ceil or floor appropriately Feb 25 23:51:49 do people here prefer slide-in navigations / footers that are black (iphone style) or dark grey (android style)? Feb 25 23:54:25 wut? Feb 25 23:54:54 I prefer bright orange Feb 25 23:55:29 android style Feb 25 23:55:32 duh Feb 25 23:55:42 hehe Feb 25 23:55:46 taupe Feb 25 23:55:51 how can I set a custom title bar directly within an activity dialog box? right now I'm using getWindow().setFeatureInt and that's setting the application's title bar Feb 25 23:55:51 tq dawgs Feb 26 00:03:21 in a fragment - should i setup my onkeylistener etc. in onCreate or onCreateView? Feb 26 00:03:54 or onStart()? Feb 26 00:04:23 i would do it in onCreateView Feb 26 00:04:35 clever: thanks Feb 26 00:04:38 the view wont exist yet in onCreate, and onStart may get ran several times Feb 26 00:04:57 onCreateView is exactly when the view gets made, so you know it will exist Feb 26 00:05:06 and if the view ever has to be remade, you can re-connect the listener Feb 26 00:11:39 * boytoy dances around like he's had too much pcp Feb 26 00:12:32 Has anyone of you tried utter! yet? Feb 26 00:13:47 no what is it! Feb 26 00:13:54 i went to reboot my phone with adb reboot recovery Feb 26 00:14:10 the recovery image had nothing to help Feb 26 00:14:54 so i selected "reboot system now" and its stuck at an image of a warning triangle and the android logo Feb 26 00:15:13 since when is #java invite only? and why am i not invited? Feb 26 00:15:41 is it safe to take out the battery? Feb 26 00:16:24 mikedg_, like siri for android but better Feb 26 00:16:33 oh sounds lame Feb 26 00:16:40 kaneda^: java is exclusive Feb 26 00:16:44 is onCreate the only place an activity will use the savedInstanceState bundle? Feb 26 00:16:45 hello? Feb 26 00:16:48 mikedg_, what do you use for voice recognition then Feb 26 00:16:53 voice commands Feb 26 00:16:57 Google Glass suckah Feb 26 00:17:01 mikedg_, well, i'm an exclusive kind of guy Feb 26 00:17:07 mikedg_, thats not a phone Feb 26 00:17:14 is mikedg_ a troll Feb 26 00:17:20 well then I use my wife Feb 26 00:17:22 sometimes Feb 26 00:17:23 I call her on my phone Feb 26 00:17:29 and i voice control her Feb 26 00:18:17 mikedg_ knock it off Feb 26 00:18:19 hello? Feb 26 00:18:21 cool a troll and doesn't respect his mother Feb 26 00:18:24 anyone? Feb 26 00:18:43 blognewb this is more for development questions. Not what you use questions. Feb 26 00:19:09 #android is for what you use questions Feb 26 00:19:15 but it's a cesspool of debauchery Feb 26 00:19:28 novie, we've been talking here since 3 days ago without you about apps, they seemed perfectly ok with it Feb 26 00:19:48 blognewb that's great. It is off topic. Feb 26 00:19:48 anything goes on the weekend Feb 26 00:20:01 it's like the song Willie sang in The Temple of Doom Feb 26 00:20:43 novie, romainguy was ok with it? so it's not ok today? i will respect that Feb 26 00:20:52 hi all Feb 26 00:20:59 how i can solve it: this android sdk requires android developer toolkit version 21.0.0 or above Feb 26 00:21:14 blognewb what? Feb 26 00:22:00 busy87: open the sdk manager and update everyting that needs updates Feb 26 00:22:27 mikedg_ it don't find update Feb 26 00:22:34 i think i fixed it Feb 26 00:22:39 do you have multiple sdk's installed Feb 26 00:22:43 no Feb 26 00:22:45 one Feb 26 00:23:35 if i upgrade android sdk tools to rev 21.0.1 i get this error Feb 26 00:23:47 your mother would be proud of you and your one liner wife jokes mikedg_ Feb 26 00:23:54 blognewb: thanks Feb 26 00:23:59 it works with the rev 20 Feb 26 00:27:21 Is there anyway to program my Galaxy S to continue sending display through TV out while the screen is off? Feb 26 00:43:19 antitau, not without root or kernel mods probably Feb 26 00:43:43 maybe if you keep the cpu on Feb 26 00:43:49 i.e. wakelock Feb 26 00:49:19 What does "SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length" mean? Feb 26 00:51:21 nug700, i think its something with the autocompletion from the keyboard Feb 26 00:52:04 oh, ok. Feb 26 00:57:14 dark3n, wat Feb 26 00:57:33 canadiancow, wut Feb 26 00:57:46 why do you think that's from autocompletion? Feb 26 00:58:11 a 30sec google search lead me to that conclusion Feb 26 00:58:19 true it doesn't explain the errors, its a possible cause Feb 26 00:58:27 what Feb 26 00:58:50 so yeah didn't really answer the "what does it mean question" Feb 26 00:59:18 Just want to know if it's normal, or if it's something I need to fix. Feb 26 00:59:29 exclusive spans are exclusive, that's quit a tautology you have there Feb 26 00:59:32 is it causing your app to crash? Feb 26 00:59:37 kaneda^, what? Feb 26 00:59:38 no Feb 26 00:59:47 just showing up in catlog Feb 26 00:59:51 SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length Feb 26 00:59:56 span exclusive exclusive spans Feb 26 01:00:11 that means it's exclusive at the start and end Feb 26 01:00:26 nug700, is your app causing those messages? Feb 26 01:00:47 They show up occasionally while the app is running Feb 26 01:00:54 what app are they from Feb 26 01:02:31 they are from com.buxvilleMobileApp.Jon, which is the app I'm making Feb 26 01:03:31 But they only show up after I start a specific activity. Feb 26 01:05:39 are you adding any EXCLUSIVE_EXCLUSIVE spans there? Feb 26 01:06:07 what are those? Feb 26 01:09:34 that means it's exclusive at the start and end Feb 26 01:10:02 but what is exclusive? Feb 26 01:12:05 it wont expand Feb 26 01:12:14 just google it Feb 26 01:18:45 canadiancow: hey, quick q. i am wondering about the last paragraph here https://plus.google.com/105051985738280261832/posts/LpL9ieJZ7tg Feb 26 01:19:03 "Granting permissions like this only applies to the data field of an Intent, so if you are using it with ACTION_SEND you will need to put your URI in the Intent data as well as the extras field specified by the send protocol." Feb 26 01:19:29 but what is the contract if you supply both data and EXTRA_STREAM? Feb 26 01:20:44 for example, i need to send an attachment - using something like gmail, and its a private file of my content provider. so i use EXTRA_STREAM Feb 26 01:21:11 actually, it seems like no matter what i try, i can't get this to work from 2.2 - 4.2. Feb 26 01:28:15 hey is it true admob has a higher clickthrough rate than regular adsense? Feb 26 01:33:24 boytoy: isn't adsense web only? Feb 26 01:33:34 yup Feb 26 01:33:46 as in, you can't use it in a native app right? Feb 26 01:34:00 i guess my question is - is it true that mobile ads convert better than desktop ads? Feb 26 01:34:04 zhobbs: i think so yeah Feb 26 01:34:12 ah, ctr on mobile vs desktop Feb 26 01:35:39 boytoy: eCPM is higher on desktop in my experience Feb 26 01:36:01 but, there are a lot of factors of course Feb 26 01:39:49 zhobbs: cool Feb 26 01:45:27 the amazon kindle downloads -- bigger or smaller compared to android Feb 26 01:45:30 err play store Feb 26 01:45:43 it suspicious to see apps with very few ratings in the top lists Feb 26 02:16:07 How can I prompt a user to select a file to read when a button is pressed? Feb 26 02:17:54 Konst: a dialog? Feb 26 02:18:38 Konst: http://developer.android.com/guide/topics/ui/dialogs.html Feb 26 02:22:37 I figure you guys have some experience with ADB so I'll ask here, tell me to ge tlost if this isn't the right place to ask. Feb 26 02:22:51 Why is it that, in Windows, the folder structure isn't the same as in ADB? Feb 26 02:22:53 shell Feb 26 02:24:18 I tried to move a folder to a newly create folder in Windows explorer but it wouldn't go through, so I changed the folders in ADB shell but Windows exlporer does not show the changes. Feb 26 02:24:21 Thoughts? Feb 26 02:27:38 No. I am looking for a way to let the user access a file from their SD card. Feb 26 02:28:38 how does a dialog not let you do that ? Feb 26 02:34:28 jdawes: you probably need to unmount and remount in windows Feb 26 02:35:07 what you see in windows is an "emulated" view of the sdcard. It's likely that when you change it in adb shell, the daemon that's providing the MTP view doesn't immediately notice/pick up the changes Feb 26 02:35:57 note though, that I haven't actually used MTP :) Feb 26 02:42:08 JesusFreke: I'll give it a try, sorry I'm not exactly looking at this chat window with a watchful eye. Feb 26 02:42:23 jdawes: such is IRC :) Feb 26 02:42:24 hey, there is a new android support lib (rev 12) Feb 26 02:43:23 hmm, just some bug fixes in ViewPager Feb 26 02:55:25 what are some 3d libraries you guys recommend? Feb 26 02:55:51 g00s, i was excited when i saw that Feb 26 02:55:54 now you've let me down Feb 26 02:55:55 :( Feb 26 02:56:11 canadiancow: :( Feb 26 02:56:32 SearchViewCompat fix too! Feb 26 02:56:42 i'm seeing a crash in ActivityManager on a GB nexus S. i'm curious if there's anything i can do to get more information about why it's crashing. Feb 26 02:56:43 well, rev 2 of the api 17 ARM System Image ;) Feb 26 02:57:09 have a stacktrace but not sure if pasting in irc is kosher. :) Feb 26 02:57:26 ttung, on a device that supports JB, im not sure it's worth your effort Feb 26 02:57:46 pastebin :| Feb 26 02:57:47 do not paste Feb 26 02:58:03 http://pastebin.com/k7sctFUv Feb 26 02:58:22 i'm seeing this on ICS (in crash reports) but it manifests differently. Feb 26 02:59:07 ok and what is your app doing to cause this crash :P Feb 26 02:59:28 i can't seem to repro with ICS but i managed to do so with GB. Feb 26 02:59:37 i'm just starting my app. Feb 26 02:59:42 insta crash :( **** ENDING LOGGING AT Tue Feb 26 02:59:58 2013