**** BEGIN LOGGING AT Tue Feb 12 02:59:58 2013 Feb 12 03:00:04 Since the other Java project isn't Android, I don't see the option to mark as library in it's properties. Feb 12 03:00:53 is there android support for emacs? Feb 12 03:02:30 how can i copy one file and to put it on c:\ destopk computer Feb 12 03:04:53 I'm getting "Too many same ID alarm data" when I've set an alarmManager.setRepeating() inside onSetSharedPreferenceChanged() Feb 12 03:04:59 tona, what do you have on the Windows side? Feb 12 03:05:05 it works the first time when I first change the preference, but never again Feb 12 03:05:11 tona, ftp? Feb 12 03:05:54 i dont have anyting Feb 12 03:06:22 is necessary to have something i just want to cipy and paste Feb 12 03:07:45 can the dalvik vm directly interpret machine code? or does the NDK use jni (like?) code to work Feb 12 03:08:28 dxeh: jni Feb 12 03:08:34 tona, Yes, you mentioned WiFi. Your Android can put the data out to the network, but something on the PC must take it from there and put it on the PC's hard drive. Feb 12 03:08:49 tona, Like dropbox or http://www.techrepublic.com/blog/tablets/connect-android-to-windows-and-samba-shared-directories/1262 Feb 12 03:08:57 tona: ive used 'es file explorer' to manualy copy things over samba Feb 12 03:09:57 jda2000: ah, thats what your link is about :) Feb 12 03:10:12 tona, So I guess you need something like that. Or maybe something that is also script -e. Feb 12 03:11:40 tona, Oh, and you can email stuff from your android to your PC. Feb 12 03:12:51 ok Feb 12 03:12:53 thanks Feb 12 03:13:44 last question , ihave doenload bar code scanner but it doesnt detect any barcode yet, i have lge400 rooted cyangen Feb 12 03:14:39 tona, That's beyond my experience. Feb 12 03:15:25 let me ask other people Feb 12 03:15:40 tona, I think you just did. Feb 12 03:17:11 heh Feb 12 03:26:07 oi Feb 12 03:27:39 ron_frown: i have something for you, hold on Feb 12 03:27:50 uh oh Feb 12 03:28:16 p_l: might dig this too http://www.h-online.com/open/news/item/LCA-2013-videos-X-org-s-shortcomings-and-Wayland-1800135.html Feb 12 03:28:56 hha Feb 12 03:28:57 yeah Feb 12 03:29:01 the interesting thing about this, is that its from Daniel Strone, an X developer Feb 12 03:29:16 I like how linux dudes say stuff like linux is better Feb 12 03:29:20 btu they have no idea how bad x i Feb 12 03:29:21 is Feb 12 03:29:21 haha Feb 12 03:29:52 :) Feb 12 03:30:03 and its funny replacement projects have come and gone Feb 12 03:30:13 but people have finally built someting thats gaining momentum Feb 12 03:30:24 though not as fast sa I'd hoped Feb 12 03:32:07 meanwhile, desktop chrome still has the old flash :/ Feb 12 03:33:45 why any barcode scanner doesnnt work my camera is 3.2 megapixels Feb 12 03:35:15 g00s because nobody gives a crap about flash Feb 12 03:35:46 x11 is great, other than being a terrible bandwidth hog Feb 12 03:35:52 uhhh Feb 12 03:36:00 great at what Feb 12 03:36:01 haha Feb 12 03:36:22 providing windowing primitives that render across an discrete abstraction layer Feb 12 03:36:29 (that layer being the network) Feb 12 03:36:51 and thats more efficient than the way every windowing environment I've seen in modern os's do things why Feb 12 03:37:32 not even modern Feb 12 03:37:36 who said anything about more efficient, but in the day and age of vdi, x11 is something that caters well to it Feb 12 03:37:39 how windows does rdp shit is better Feb 12 03:38:08 have you used the remote desktop stuff in x11? I mean x server on windows and run x apps? Feb 12 03:38:17 yes Feb 12 03:38:20 although not anymore Feb 12 03:38:25 I use that currently at work Feb 12 03:38:28 and it runs like SHIET Feb 12 03:38:39 it does work Feb 12 03:38:45 and really honestly better than vnc Feb 12 03:38:48 the problem with rdp is that it doesn't do app remoting well Feb 12 03:38:53 but no where near rdp Feb 12 03:39:04 well, considering rdp is more than 20 years newer, that's not surprising Feb 12 03:39:06 pfn they recently released something for that Feb 12 03:39:22 but I dont know much abotu it, other than my work suggests it for some of our software Feb 12 03:39:24 there are no solutions to rdp-based app-remoting outside of proprietary solutions, such as citrix Feb 12 03:39:27 pfn agreed Feb 12 03:40:32 the problem I have with wayland and stuff is that it completely removes the capability of using the old, transparent method of remoting windows Feb 12 03:40:45 I say godo Feb 12 03:40:46 good Feb 12 03:40:51 and only allowing crap like vnc, or maybe xrdp Feb 12 03:41:10 well I think they should put stuff i place in wayland to make remoting a first class citizen Feb 12 03:41:12 but xrdp will also no longer be functional, and xvnc for that matter, heh Feb 12 03:41:24 that's the thing, wayland doesn't have remoting as a first-class objective Feb 12 03:41:30 as far as I understand Feb 12 03:42:11 oh, i'l take one of these ;) http://i.imgur.com/1JqrLVc.jpg Feb 12 03:42:14 thats actually one of the big beefs I've got with ubuntuphone Feb 12 03:42:23 I've heard rumors the intention is to use x Feb 12 03:42:41 I lost my key and I have to re-upload my app. The only problem is that it conflicts with the name of the app signed with the old key. How do I resolve this? Feb 12 03:42:59 rename/create new app Feb 12 03:43:04 release a new app under a new package Feb 12 03:43:08 I can't rename! Feb 12 03:43:09 losing key = losing ability to ever publish updates Feb 12 03:43:14 ik Feb 12 03:43:19 pfn: remoting is on the todo list Feb 12 03:43:34 Do I just have to rename just the package? Feb 12 03:43:43 yes Feb 12 03:43:48 great Feb 12 03:43:54 hope it was a free app Feb 12 03:44:00 you betcha Feb 12 03:44:04 only 54 users Feb 12 03:45:07 man, this ama on reddit with BG is pretty interesting. still programs in C/C# Feb 12 03:45:30 ama? Feb 12 03:45:38 ask me anything Feb 12 03:45:41 bill gates Feb 12 03:47:39 pfn looks lik they are in the process of adding remote wayland compositor shit Feb 12 03:47:44 to export windows to remote machines etc Feb 12 03:50:42 that would be good Feb 12 03:51:15 makes it sounds like wayland is the core, weston is the out of box compositor Feb 12 03:51:32 and you could plo[ remore compositor on top of wayland as well Feb 12 03:52:11 anyone worked on touch screen calibration problems? the system is reporting x=0,y=700 in the lower left corner instead of x=0,y=0. swipes are corded in the correct direction though Feb 12 03:52:50 looking at TSCalibrationView.java Feb 12 03:55:12 even nike think android is too fragmented: "Nike snubs Android users, says mobile FuelBand app to remain exclusive to Apple's iOS" Feb 12 03:55:22 "The initial tweet has sparked some indignation from a number of Android fans" Feb 12 03:55:32 well, thats what happens when you dont support BT Smart Feb 12 03:55:41 and iOS does, and android doesn't so , suh Feb 12 03:55:44 *duh Feb 12 03:56:17 * g00s is still very unhappy about the android / bt situation Feb 12 03:56:57 g00s: why are there so many questions about his foundation in the ama haha Feb 12 03:58:08 Do most people use content providers with cursors, or do they write there own that talks directly to the db? Feb 12 04:02:31 content provider Feb 12 04:02:39 works with loader manager Feb 12 04:04:20 g00s I could make that bt support happening Feb 12 04:04:38 but it wont make it into androids codebase Feb 12 04:05:08 ron_frown: there are a few phones that are BT Smart Ready, with their own APIs. Feb 12 04:05:27 also I honetly dont know but I'd be surprised if apple didnt just pay someone for their bt libs Feb 12 04:05:35 didnt google just change their bt libs Feb 12 04:05:46 to the broadcomm ones i think Feb 12 04:05:57 still bluez or whatever? Feb 12 04:05:59 well, the later impl, not the api from whati can tell Feb 12 04:06:16 i thought they moved away from bluez Feb 12 04:06:34 yeah I cant remember to what Feb 12 04:07:10 I know how opensource projects are going to be slow to implementation Feb 12 04:07:22 apple supports maybe 1-2 diff hardware setups Feb 12 04:07:33 they have had it since iOS 5 Feb 12 04:07:33 if that Feb 12 04:07:44 is it software or hardware Feb 12 04:07:47 its been there for a while, google is just dragging their feet Feb 12 04:08:08 well bluez has supported a ton of shit Feb 12 04:08:21 but last I looked they were like HUGE number of versions behind Feb 12 04:09:23 different bt vendors submit code to bluez, like marvell Feb 12 04:09:26 i bet TI has also Feb 12 04:09:45 g00s, well, thats what happens when you dont support BT Smart # What's BT? Feb 12 04:09:49 actually, i'm using the TI SensorTag on an iOS device now as the PoC Feb 12 04:10:04 jda2000: BlueTooth Feb 12 04:10:15 g00s, OK Feb 12 04:11:30 I'd also be willing to bet, a lot of hardware vendors would put minimal effort into going above and beyond supporting bt etc Feb 12 04:11:57 ron_frown: actually, quite a few phones have BT 4 hardware, but no effort to enable it Feb 12 04:12:01 eg, for my shit, I made sure bt hid devices worked, bt obex worked and that was about it Feb 12 04:19:19 guys i have two REALLY good ideas for apps Feb 12 04:19:32 u can take all the credit, all the revenue, everything. Feb 12 04:19:38 who wants to do it? Feb 12 04:19:56 i just want the apps available... Feb 12 04:20:20 Lieutenant: there are a few startups that help crowdsource mobile apps Feb 12 04:20:57 Lieutenant, So write them already. Feb 12 04:21:06 dont know how to code Feb 12 04:21:08 almost everything has been done :) except for the really hard stuff , which costs lots of money to build ;) Feb 12 04:21:15 dont have time to learn Feb 12 04:21:31 this isnt too hard which is why it's very clever Feb 12 04:21:32 your assumption is that the idea is valuable, and that construction is trivial Feb 12 04:21:39 but its the other way around often Feb 12 04:21:44 ideas are like rabbits Feb 12 04:21:57 these two are really good Feb 12 04:22:05 million dollar ideas Feb 12 04:22:29 as in "should be stock in android" type of ideas Feb 12 04:22:41 non-niche apps Feb 12 04:23:03 Lieutenant, Cool. Then it would certainly pay to buy a book on Android Programming and get cracking. Feb 12 04:23:48 Lieutenant, Notice how nobody is asking what the idea is? Feb 12 04:23:48 i don't want to make money off of it, just wanna use it. Feb 12 04:23:52 lol Feb 12 04:23:54 srsly. Feb 12 04:24:22 we'll see who has the last laugh when i become rich Feb 12 04:24:25 *sarcasm* Feb 12 04:25:20 Lieutenant, But it's not worth learning to code for? Feb 12 04:25:49 i just don't have the time Feb 12 04:25:53 Lieutenant: read the topic :) Feb 12 04:26:06 :( Feb 12 04:26:08 :) Feb 12 04:26:21 :| Feb 12 04:26:35 * g00s loves "idea people" Feb 12 04:26:38 Lieutenant, I'm sorry to hear that you don't have long to live. Feb 12 04:26:52 idea or gtfo Feb 12 04:27:09 cooldman224: that should be in the topic ! Feb 12 04:27:14 * novie prefers just skipping to gtfo Feb 12 04:28:05 I had a good idea - an Android app that could handle Excel 2013 Feb 12 04:28:11 g00s: agreed! i could care less about it tbh, so going to bed instead. But i hope you write it Feb 12 04:28:19 im sure it is a million $ idea Feb 12 04:28:21 Of course implementing it is another matter... Feb 12 04:28:37 shaddup :( Feb 12 04:28:40 makin me sad Feb 12 04:28:52 Lieutenant: this isn't the purpose of this channel. Feb 12 04:29:04 you might have better luck trolling some forums somewhere Feb 12 04:29:31 yeah i know, i stopped talking about it when you said not to Feb 12 04:30:26 Lieutenant, Oh, I thought you were in a private dialog with a desperate app dev... Feb 12 04:37:52 thats cute. Feb 12 04:41:20 Trinity: read about Raytheon Riot today ? Feb 12 04:42:09 is running linux in VM from windows a practical way to have a linux environment for android dev? for instance, is it fast enough? or is dual booting still the only good option? Feb 12 04:45:12 andkore: i code in a linux VM, works fine... not the fastest thing in the world, but definitely usable Feb 12 04:45:35 bankai_: ok thanks. what do you use, ubuntu? Feb 12 04:45:42 I used slackware back in the day when I used linux Feb 12 04:45:52 Ubuntu on FreeBSD Feb 12 04:46:05 i can not barcode scanner my camera is 3.2 fixed focus is there one program with this features Feb 12 04:46:25 tona: there is a stupid solution Feb 12 04:46:34 tona: reading glasses Feb 12 04:46:35 whoa, what. ubuntu on freebsd? I need to google that Feb 12 04:46:52 oooh Feb 12 04:46:54 ubuntu in vbox on freebsd Feb 12 04:46:55 haha Feb 12 04:47:09 I was trying to make sense of that. why do you use freebsd? Feb 12 04:47:23 coz i like it ( why else? ) Feb 12 04:47:45 I don't know, I'm not very familiar with it Feb 12 04:49:36 SpeedEvil i just asking Feb 12 04:49:52 I'm serious Feb 12 04:50:08 it works to make fixed focus cameras see close up Feb 12 04:50:40 there are stick on lenses for some devices that might work too Feb 12 04:51:10 do yuo know an application for it Feb 12 04:51:20 haha Feb 12 04:51:25 Application for what? Feb 12 04:51:30 barcode Feb 12 04:51:51 amazons app Feb 12 04:52:02 tesco asda Feb 12 05:10:30 anyone worked on touch screen calibration problems? the system is reporting x=0,y=700 in the lower left corner instead of x=0,y=0. swipes are corded in the correct direction though Feb 12 05:11:46 the code is in TSCalibrationView.java Feb 12 05:12:43 bankai_: which VM do you use? Feb 12 05:19:01 vbox Feb 12 05:22:33 wow, this is pretty cool (VirtualBox + Ubuntu) Feb 12 05:25:31 Georgeloak: i believe 0,0 is in the top left corner Feb 12 05:26:07 +x right to left, + y top to bottom Feb 12 05:42:54 GeorgeIoak__: the origin in the top left corner Feb 12 05:43:02 GeorgeIoak__: it's pretty common in UI toolkit/drawing APIs Feb 12 05:51:17 OK, so top left corner is supposed to 0,0 so the lower left corner is x=0, y=max? Feb 12 05:52:43 What I can't figure out is that if I physically touch the far left of the screen the system reports that as x=100 and not x=0 Feb 12 05:53:40 calibration should take care of that but i think my offset is too large for the java code to handle because it was probably written for small screens and the code doesn't scale nicely for ymy 15.6" Feb 12 05:54:40 i know that the calibration tools write a pointercal file and in my case it's at /data/pointercal. it's 7 values but they come from a linear algebra matrix calculation Feb 12 05:55:07 so you can't just edit the file for a simple x/y offset Feb 12 05:55:49 the hardware is is an Allwinner A10 based board and I haven't had any like finding other source code Feb 12 05:58:12 the meat of the calibration code is in TSCalibrationView.java, pasted at http://pastebin.com/at474FDD Feb 12 05:59:29 logcat gives me some clues such as: D/TSCalibration( 560): cal.mTargetPoints[3].caly = 522not locate between700 and 600also not locate between120and20 Feb 12 06:01:17 it's not just a simple offset because the right side touches are pretty close to where the physical touch happens but on the left side of the screen the system thinks the physical touch is x+100 to the right Feb 12 06:04:03 Or maybe there's a bug in that unreadable mess of calibration code :) Feb 12 06:04:19 a short snippet of the logcat while using the calibration is at http://pastebin.com/BikRchES Feb 12 06:04:58 i'm pretty sure the calibration code needs work but I'm more of a hardware guy, not software. Feb 12 06:05:40 i just thought this stuff would be standard, especially 4-wire resistive since it's the lowest cost solution Feb 12 06:07:28 i can mess with the values in pointercal manually and change things but not to close enough values to be usable Feb 12 06:08:30 i know there's the sun4i_ts.ko module that gets loaded and there's a sun4i-ts.idc Feb 12 06:14:25 i found this code which seems a little cleaner so i downloaded and compiled/installed it but it too doesn't let me complete the calibration. in fact that logcat i posted was when running this code Feb 12 06:16:09 brb Feb 12 06:23:00 can class extends Activity class be static? Feb 12 06:23:33 mikeyMike: a static class only makes sense inside another class Feb 12 07:01:28 i have LinearLayout and inside of it a have a lot of CheckBoxes with id checkBox1, checkBox2 etc. Feb 12 07:01:40 can i do findViewById in loop somehow? Feb 12 07:01:58 what's your goal? Feb 12 07:02:06 chk[i] = (CheckBox) findViewById(R.id.checkBox+i); Feb 12 07:02:09 i wanna Feb 12 07:02:13 no Feb 12 07:02:20 get to values of CheckBoxes Feb 12 07:02:29 (do they picked or not) Feb 12 07:02:35 the "checkBox" part is a variable name, you can't concatenate like that with variables Feb 12 07:02:52 can i do something like Feb 12 07:02:52 and once the resource is compiled, the string associated with its id goes away Feb 12 07:03:19 (int)(((String)R.id.checkBox)+i) Feb 12 07:03:20 ? Feb 12 07:03:26 lol Feb 12 07:03:26 no Feb 12 07:03:34 how well do you understand java? Feb 12 07:03:36 so i cannot do that in loop? Feb 12 07:03:54 what you can do is stick all of the views you want to enumerate through into one layout, and then loop through that layout's views Feb 12 07:04:14 how to loop throught that? Feb 12 07:04:33 Feb 12 07:05:12 LinearLayout blah = findViewById(R.id.blah); for (int i = 0; i < blah.getViewCount(); i++) { CheckBox cb = (CheckBox)blah.getView(i); ... } Feb 12 07:05:25 oh thanks Feb 12 07:05:32 i think it's actually getChildCount and getChild, but you get the idea Feb 12 07:07:32 yes, ofc, i wanted exactyl that Feb 12 07:08:27 getChildAt(int) to be precise. Feb 12 07:15:31 lol, error on for(int i =0; i ... what error? Feb 12 07:19:15 g00s: I'm not saying X11 is without fault. But at least one of the point, about WMs being like second X servers... sorry, but that's the fault of said WMs (read: Unity, Mutter) Feb 12 07:21:06 tophyr: waiting for execute :) Feb 12 07:21:10 i do not have Android Feb 12 07:21:19 and compiling takes a looooooooooooooooooooooooooooooooooooooooooooooong time. Feb 12 07:21:27 a bit longer than i wrote above Feb 12 07:21:48 on emulator. Feb 12 07:21:59 that it does Feb 12 07:22:12 i hope you're not actually *compiling* on your emulator however :p Feb 12 07:22:37 and, if you have the later libraries, the intel-accelerated x86 emulators really fly Feb 12 07:22:45 hmm Feb 12 07:22:49 you mean ... Feb 12 07:22:52 night and day difference Feb 12 07:22:52 HM... Feb 12 07:23:42 you mean HAXM? Feb 12 07:23:53 i barely do any dev work on devices anymore, except for tracking down some device-specific bug Feb 12 07:23:58 i think i Feb 12 07:24:01 yeah Feb 12 07:24:05 'm not compiling but installing. Feb 12 07:24:06 absolutely blazing fast Feb 12 07:24:19 yes i have HAXM, but bullet time's still turned on Feb 12 07:24:37 as much faster as a powerful device is than one of the arm emulators, the intel emulator is that much faster than the device :p Feb 12 07:25:32 the x86 emulator still derps on my i7 720QM Feb 12 07:26:08 do you have the hax stuff installed and working? mine sucked as well and i thought it was nothing special until i installed HAXM correctly Feb 12 07:26:25 hax + gpu = "holy bejesus" Feb 12 07:26:48 tophyr, what is your parameters of your 'programming device'? Feb 12 07:26:57 tophyr: I usually say that towards the blotchy grainy graphics I get from gpu acceleration :> Feb 12 07:27:03 wiping and cold-starting an emu for me is faster than booting one from a snapshot Feb 12 07:27:06 p_l: lulz Feb 12 07:27:13 how to check is that HAXM installed corrently? Feb 12 07:27:20 mikeyMike: i just use the nexus s presets Feb 12 07:27:26 but change the api Feb 12 07:27:52 oh, I think I missed that step about installing the HAXM driver :o Feb 12 07:28:04 if hax is installed correctly it should say something like "hardware acceleration active" when booting the mu Feb 12 07:28:35 and what's the fastets CPU/ABI on emu? arm or x86? Feb 12 07:28:42 x86 Feb 12 07:28:48 with the hax Feb 12 07:28:49 or mips maybe? Feb 12 07:29:00 arm, x86 and mips are chipset types Feb 12 07:29:09 yes i know Feb 12 07:29:17 i heard that intel atom Feb 12 07:29:20 is the fastest Feb 12 07:29:22 on devices. Feb 12 07:29:37 but let's change it. Feb 12 07:29:43 is it good practice Feb 12 07:29:54 ... that doesn't even really make sense Feb 12 07:29:57 depending on what chip you are running :) Feb 12 07:30:08 all of the software is the same, the only difference is what hardware it was compiled for Feb 12 07:30:20 arm/x86/mips use different instruction sets Feb 12 07:30:22 to close the emulator by 'X' button than power off button on controls of emulator? Feb 12 07:30:26 but the source code (c, java) is the same Feb 12 07:30:30 but if you run on an x86 cpu, the intel atom image can be virtualized what ofc is way faster then emulating, what would need to be done for the arm image Feb 12 07:31:13 I'm an idiot. Feb 12 07:31:21 virtualized, huh? let's check it. Feb 12 07:31:22 pierpark: you're not alone, don't worry Feb 12 07:31:23 HAX is working and emulator runs in fast virt mode Feb 12 07:31:32 HEY! Feb 12 07:31:36 mikeyMike: that's the ticket. super fast, huh :) Feb 12 07:31:37 that sh*t is so fast! Feb 12 07:31:40 yeah :D Feb 12 07:31:44 tophyr: haha. thanks Feb 12 07:31:46 DAMNN! Feb 12 07:31:50 i mean virtualization >> emulation Feb 12 07:31:50 thanks guys ;) Feb 12 07:32:03 so now it's virtualized not emulated. Feb 12 07:32:05 so as long as you have a cpu supporting intel virtualization you will be way faster running the intel image Feb 12 07:32:17 and with way faster I mean WAY faster :D Feb 12 07:32:23 as you might have just recognized Feb 12 07:32:29 I still have to use the arm and mips emulator images because my app has native code and I have to make sure it works on all the ABIs Feb 12 07:32:39 but take care if you code native, it makes a difference Feb 12 07:32:45 pragma-: sad days Feb 12 07:32:47 see above :) Feb 12 07:32:53 what device uses MIPS? Feb 12 07:32:57 was always curious about that Feb 12 07:33:21 i thought that died out with old macs years ago Feb 12 07:33:22 none as far as i can tell, but the MIPS consortium is making a lot of noise about breaking into the android market and unseating ARM Feb 12 07:33:24 Velocity Cruz Tablet :) Feb 12 07:33:38 http://www.linuxfordevices.com/c/a/News/MIPS-CES-showcase/ Feb 12 07:34:42 but Uploading still takes few seconds... :P Feb 12 07:34:54 yeah same as to your device i guess? Feb 12 07:35:32 so and a new day me vs. race conditions .. let it begin Feb 12 07:35:38 a lot of x86 and mips device users are going to be disappointed that a lot of apps with native code tend to target armeabi only Feb 12 07:36:23 i guess at the moment that does make sense Feb 12 07:36:32 looking at distribution of this architectures in market Feb 12 07:36:57 For 48 hours... I've been sitting here pounding my head trying get the logic in my head around fragments, and how they are all that different from the various mix & match 'mutt' stuff I've done before. I managed to implement Jake's ActionBarSherlock, and even someone's 'mated' ViewPageIndicator example that combined them together... So I've been here relatively thrilled that I'd be able Feb 12 07:36:57 to begin this proper coding that I've been hoping to achieve for a while now (after a dozen "activity" apps with no action bar), and my brain is like scrambled eggs because not one GD place on the internet can properly explain (in non-Android-documentation ENGLISH) the application of it all. So I've got a list view on one of my "pages" but it loves blowing out an error when I slide back Feb 12 07:36:57 to that page, and I'm about to pound my head into the wall. Feb 12 07:37:48 pierpark: in that case error stack trace and some code fragments are always usefull :) Feb 12 07:38:07 timroes: "me vs race conditions".. working on emulator? Feb 12 07:38:14 no working on real device Feb 12 07:38:27 oh, kk Feb 12 07:38:49 app code tho, not on why it takes as long to upload to an emu as to a device? Feb 12 07:38:58 timroes: give me a couple minutes and I'll try to pastebin some stuff and make sense of it for you. I kind of 'get' why it's happening but don't at the same time. Well, sort of. Feb 12 07:39:17 pierpark: hehe. again, don't worry. you are by far not alone. Feb 12 07:39:21 but i have some "complex" multitasking, one method excuted parallel very often as long as another doesnt run, as soon as the other method runs i have to block 3 other stuff, to assure thread-saftiy, then i have to make async network calls meanwhile, and in the end everything must be synchron at the outer api.. Feb 12 07:39:44 tophyr: because it uploads it the very same way? Feb 12 07:39:44 took me most of my project to reeeeally understand all the relationships Feb 12 07:39:48 tophyr: I'd have lost my effing mind without the help of everyone here. ha Feb 12 07:40:27 it does an adb install on the device/emu and since I guess most of the install time goes away for unpacking and installing and not for transfering data, it will be around the same speed Feb 12 07:40:31 timroes: it doesn't, actually. adb <-> device obviously goes over usb, adb <-> emu communicates via sockets Feb 12 07:40:46 pierpark: fragments can be considered logical units of ui Feb 12 07:41:01 possibly.. although i've always gotten very similar transfer rates emu/device Feb 12 07:41:07 tophyr: yeah and as i said, i guess transferin data is the very smallest part of that time it takes Feb 12 07:41:07 sometimes even worse on emu Feb 12 07:41:17 tophyr: I wish I would have learned the 'right way' from the beginning (about 4 months ago), but I just learned what I could where I could and that's better than nothing (in a sense).. but I'm definitely ready to really grasp this because I've been needing to implement the general 'idea' and actually HAVE implemented fragments in places, but can't quite see it clearly yet. brb Feb 12 07:41:21 yeah. anyway, just a curiousity Feb 12 07:41:38 unpacking and installing does take way longer, and that now depends again on the device speed (where a real device is most often fater then emulator) Feb 12 07:41:39 or an encapsulation of much of the functionality of an activity, so that instead of coding out entire activities, you can reuse fragments as logical divisions of activity Feb 12 07:41:42 lasserix: fair enough. they can be considered whores, too.. at first ;) Feb 12 07:42:01 yeah but at least you dont have to worry about stds :P Feb 12 07:42:07 excuse me, but... what the hell Feb 12 07:42:38 x86 doesn't support OpenGL ES or what? Feb 12 07:43:15 rofl. Feb 12 07:43:25 mikeyMike: why wouldn't it? Feb 12 07:44:13 because it works well (slow) on ARM and throws an exception on Atom :( Feb 12 07:44:25 opengl es 2.0? Feb 12 07:44:41 mikeyMike: ... what exception? these things are helpful when debugging ;) Feb 12 07:45:12 wait a while... Feb 12 07:45:25 mikeyMike: openGl ES 2.0? or 1.0/1 Feb 12 07:45:31 2.0 Feb 12 07:45:32 which one of you wizards know how to get the stacktrace from the logcat window to a copyable chunk of text? Feb 12 07:45:36 in Eclipse ^ Feb 12 07:46:28 might be that 2.0 isn't supported by intel image. Emulator in general support 2.0 since ~march last year. So perhaps intel image still doesn't? (I don't even know if they would need to fix anything to get it working in the emu, or if it was just an emu problem. SO this is just a wild guess) Feb 12 07:46:35 click on line, drag? Feb 12 07:46:42 or click, shift+click Feb 12 07:47:30 yeah, there we go. it didn't work at first but I went to Edit>Copy and it did. hmm Feb 12 07:47:30 copied text aint gonna be pretty, but it's copyable Feb 12 07:47:40 that's what python is good for. Feb 12 07:48:27 now it's just black screen. Feb 12 07:48:49 (good it's not blue, kheh kheh kheh) Feb 12 07:51:58 no errors Feb 12 07:52:01 at all Feb 12 07:52:05 not in LogCat Feb 12 07:52:07 not in Console Feb 12 07:52:08 no errors Feb 12 07:52:14 but not working. Feb 12 07:52:45 just menu working fast, that's the advantage. Feb 12 07:56:08 wanna hit enter just a few more times? Feb 12 07:59:17 bankai_: you'd get on great with pragma- :-) Feb 12 07:59:52 wall of mikeyMike Feb 12 08:00:56 timroes: almost done with pastebin Feb 12 08:02:16 oh gosh why did someone invent multithreading... Feb 12 08:02:30 sorry, pragma- Feb 12 08:02:50 and what the heck is happening now with app. all data is returned where it should be, every object is there, but nothing happen. and the famous one: yesterday before I left it still worked... Feb 12 08:04:19 computers invented multithreaded so one day they could be faster computational engines than the human mind and enslave humanity :) Feb 12 08:04:54 i think goos posted a while back ms was / is working on an api for multithreading Feb 12 08:06:34 hi all Feb 12 08:06:59 when using adb forward, if i have multiple devices are connected, which devices has its port forwarded? Feb 12 08:09:48 timroes: http://pastebin.com/7BvM4gce there it is... :) I've "commented" some stuff on the problem, as well as put a link to a picture (near bottom above errors) to see what's going on. Feb 12 08:10:13 Qualcomm MSM7227A like is in LG Swift L7 Feb 12 08:10:24 what is the processor? ARM, MIPS? Feb 12 08:10:44 ok, it's ARM. Feb 12 08:13:25 pierpark: your problem is in one of your xmls Feb 12 08:13:34 Caused by: java.lang.IllegalArgumentException: Binary XML file line #22: Duplicate id 0x7f06003e, tag null, or parent id 0x0 with another fragment for com.oneupcreativegroup.fights.CategoryListFrag Feb 12 08:13:44 you most surly use the same id in two fragments that are loaded at the same time? Feb 12 08:14:14 most surly, you say? Feb 12 08:14:20   at com.oneupcreativegroup.fights.TestFragment.onCreateView(TestFragment.java:44) in the xml you load in that line Feb 12 08:14:33 i would guess so? Feb 12 08:14:51 surely != surly, he's being pedantic. Feb 12 08:14:57 ah okay thanks :) Feb 12 08:15:00 np Feb 12 08:15:00 not a native speaker Feb 12 08:15:08 not an arsehole Feb 12 08:15:42 timroes: let me go take a look. thanks brb Feb 12 08:15:45 when speaking I would use propably (guess it sounds better) but I never remebre how to write that word :D Feb 12 08:16:38 (i just know its not written like I just wrote it :D) Feb 12 08:19:52 timroes: my guess is that this code is trying to inflate an already inflated thing and I don't know how to stop it? That line 44 is where it says: View view = inflater.inflate(viewTab, null); ... and it all works until navigating back to that 'page' again with the listview on it. It works 100% if I remove the pierpark: can you go to the gen-folder in yoru project and open R.java Feb 12 08:20:56 and search what has the id 0x7f06003e (and look if there are several items having that id) Feb 12 08:21:07 k brb Feb 12 08:21:22 (what in fact shouldn't be, but one item should be there) Feb 12 08:22:48 There is just one, and it's pointing to the "frag_category" which is the ID of the in the XML of activity_main.xml Feb 12 08:23:12 Upon first load, it inflates... but it keeps trying to inflate every time I slide back to that 'page' Feb 12 08:23:15 so it blows out Feb 12 08:24:20 what I'm thinking is that I have to prevent it from trying to inflate an already inflated view and I don't know how Feb 12 08:26:30 first, I should probably ask this: this is obviously a fragment being brought to life which inflates an XML that contains a that points to another .java file that inflates a ListView... is that a bad thing/no no? Feb 12 08:29:40 TestFragment.java is my problem... if it would stop trying to inflate the XML that it already inflated.. it does so every time I go from one 'page' to the next page. Any suggestions on stopping that? Feb 12 08:33:16 pierpark: try to change that line to View view = inflater.inflate(viewTab, container, false); Feb 12 08:33:23 k brb Feb 12 08:35:18 timroes: now the error is: Caused by: java.lang.IllegalArgumentException: Binary XML file line #22: Duplicate id 0x7f06003e, tag null, or parent id 0x0 with another fragment for com.oneupcreativegroup.fights.CategoryListFrag Feb 12 08:36:08 can you use a framelayout instead and then in category list fragment onactivitycreated re-add it / reasign it depending if it is null or not? Feb 12 08:37:20 weird thing is... I can page away from it and between the 3rd and 4th pages all day long.. but the second I try to access page 1 directly OR even page 2 (which doesn't have the list at all) .. that's when the error occurs. Feb 12 08:37:56 Anyone knows if nonce verification is still required for Google Play In-app Billing version 3? The sample application included in the SDK only does signature verification but no nonce verification... Feb 12 08:38:03 lasserix: I just want to do this the way I should be doing it... I just don't have that guidance.. this is definitely not a set-in-stone solution.. I'm merely looking to be able to add different stuff to the different 'pages' and don't know how to do that. Feb 12 08:39:21 instead of using a listfragment use a listview inside your fragment? Feb 12 08:40:19 you saying instead of putting inside the XML which is then going to put a ListView in there, that I should just put a ListView inside the XML? Feb 12 08:40:44 yeah Feb 12 08:41:00 depending on which fragment your fragment pager returns, just put the listview in the fragment's xml Feb 12 08:41:19 That sounds reasonable, as far as I know. I'll try to give that a shot. Feb 12 08:41:47 i think nested fragments are now supported, but if you move to tablets, you'll want to use listview instead of listfragment anyways since it gives you more flexibility in laying out the ui Feb 12 08:42:10 oooh Feb 12 08:42:13 definitely, then. Feb 12 08:42:57 hello! having an issue with my app, when it's hidden for a while (some random amount of time, not sure what causes it) when i go back to it it'll restart the application rather than continuing from where it left off. my manifest contains: android:alwaysRetainTaskState="true" which I thought should stop this happening. Feb 12 08:44:28 does anyone know what causes this, or how to stop it? Feb 12 08:46:24 Hello:) I need some help. How can i replace two fragments with one? I want to replace it like in standart Contact Application when u want to add or edit contact. How can i do this? Feb 12 08:47:47 I'll be happy to get links which describe the same problem:) Feb 12 08:52:40 timroes & lasserix: thanks for the help. going to try go to get to the bottom of this. Feb 12 09:04:17 smb please help, I am really upset:) Feb 12 09:04:54 can't you just hide the fragments and show the one you want? Feb 12 09:05:40 I have to containers for each fragment Feb 12 09:05:58 two* Feb 12 09:06:41 i think i can Feb 12 09:06:46 just hide them Feb 12 09:06:52 can't* Feb 12 09:09:59 How I see it. I have two fragments (each of them is placed in it's own container). Next - button clik. *there is a lot of magic* next - new fragment on full screen. Feb 12 09:31:11 hello Feb 12 09:31:24 just a quick question Feb 12 09:31:36 i want to develop only for android 4.1 api 16 Feb 12 09:31:49 do i need to install the previous apis? Feb 12 09:32:09 no Feb 12 09:32:14 or do i need to install all of them Feb 12 09:32:17 ahh ok Feb 12 09:37:38 I have a FragmentTabHost implemented inside a fragment. How can i get one of the tab fragments? Feb 12 09:50:28 hello guys, I have implemented EasyTracker ( in my android app -> google analytics ), but I can't get Real Time tracking Feb 12 09:50:34 anyone had the same issue Feb 12 10:00:01 well. It looks like I found thing which i was looking for. I change layouts with ViewSwitcher help. First layout contains 1 fragment, second contains t2 fragments. Looks like good way Feb 12 10:07:24 Bonjour mon amies Feb 12 10:10:01 hi Feb 12 10:13:47 Hello there spobat Feb 12 10:18:35 i search a good tutorial how to easy pimp my gui, Can anyone help me? Feb 12 10:20:43 pimp ? Feb 12 10:20:48 "pimp my gui"? Feb 12 10:20:54 :) Feb 12 10:21:02 you mean somethign other than the accepted UI guidelines? Feb 12 10:21:29 https://github.com/ChristopheVersieux/HoloEverywhere pimp our gui on pre honeycomb devices Feb 12 10:22:29 SirStean: have you made all your functionality near ideal? Feb 12 10:28:29 wow google maps is broken :D Feb 12 10:28:32 never had that Feb 12 10:29:42 timroes: i read the other day couple may have been murdered b/c their address was mixed with another person (who apparently received multiple death threats) Feb 12 10:30:00 "don't be evil" :) Feb 12 10:30:14 timroes: thats bs :) Feb 12 10:33:52 how does one get a listView to init scrolled to the last item ? Feb 12 10:34:06 i do a postDelay run Feb 12 10:34:21 and scrollTo, scrollBy etc Feb 12 10:34:39 but scrollTo dont seem to work Feb 12 10:35:18 what happens when you setposition last item #? Feb 12 10:35:33 StingRay_: out of curiosity, why do that ? Feb 12 10:35:40 thank u for the link...i will take a look :) Feb 12 10:35:42 if you are handling switching between things, you can save first visible and then set position to that Feb 12 10:36:37 hi i am making a game for android, it's nearly done but when the user pauses it and goes back to home screen for a while or runs other applications and returns my game sometimes (but not always) the state is gone and it starts from the beginning again. is there a way to ensure that the state is always restored? Feb 12 10:37:20 lasserix: setPosition ? Feb 12 10:37:25 that a new api thing ? Feb 12 10:37:44 err no, setposition ~ equiv method for settings the listview's position Feb 12 10:37:59 i can't remember what it's called but its something like that Feb 12 10:38:55 ftsf not enough information, but assuming you are making sdk why not save relevant state in outgoing bundle and check if activity instance is null? Feb 12 10:39:14 or for more complicated you can make a shared prefers or sqlite entry Feb 12 10:39:33 g00s: chat Feb 12 10:40:26 StingRay_: setSelection might work, if you are just in touch mode Feb 12 10:40:34 or have you tried that already? Feb 12 10:41:16 attempting now Feb 12 10:41:37 ah yeah, but that seems a bit of a odd way Feb 12 10:42:10 works, but seems odd I would have to set selectable off then set selection then on again if i was using a selectable list Feb 12 10:42:31 yeah :) Feb 12 10:42:39 StingRay_: cool, you're making a chat client ? Feb 12 10:42:56 of sorts Feb 12 10:43:13 StingRay_: in what way does scrollTo not seem to work? Feb 12 10:43:16 lasserix, hmm storing and restoring the state is quite difficult from my point of view (although i'm sure it's possible), as opposed to just keeping it in RAM as is, and it works most of the time, I can go to home screen and send a message, but if i leave it for too long, it'll be dead when i go back to it. Feb 12 10:43:37 ftsf that is totally unreliable Feb 12 10:43:49 for someone with lots of apps running, older phones etc etc w Feb 12 10:43:54 timroes: well I think the x has to be a vaild coord Feb 12 10:44:09 so that would mean me somehow measuring all views Feb 12 10:45:07 in a listView, where they haven't been drawn Feb 12 10:45:10 ftsf: figure out what data types you need to retrieve, then you can use the various schemes to do it. in order of difficulty: saving into instance state of activity, into shared prefs, into sqlite database / into temp file Feb 12 10:45:54 stingray: http://stackoverflow.com/questions/2537027/how-to-move-scroll-at-the-bottom-of-list-programmatically ? Feb 12 10:46:09 StingRay_: if you really try to make something like a chat client try also android:transcriptMode Feb 12 10:46:13 lasserix: yeah thats what I'm doing now Feb 12 10:46:13 http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:transcriptMode Feb 12 10:46:36 did you read second comment on first reply? Feb 12 10:47:00 described by Ribose is better for chat-like functionality. – Karol Gusak Feb 12 10:48:24 StingRay_: second answer on that stackoverflow link is, the transcript suggestion :) Feb 12 10:48:24 lasserix, okay thanks Feb 12 10:49:31 timroes: cheers, seems like exactly what I want, but does nothing :( Feb 12 10:49:40 oh Feb 12 10:49:43 crap Feb 12 10:49:45 forget that Feb 12 10:49:46 also with stackfrombottom? Feb 12 10:50:43 oh no...still dont work in transcript mode, Feb 12 10:54:03 stack from bottom works Feb 12 10:54:12 with transcript mode always Feb 12 10:54:15 cheers guys Feb 12 10:54:18 nice :) Feb 12 10:55:43 g00s: it's going to be an sms/gcm messenger with a few different things Feb 12 10:56:31 you making a competitor to that sextagram app that just got 13 mil in funding? ;p Feb 12 10:56:35 most notable visual one is throwing a fair few of the android design guides out, due to the large screen factor becoming too popular Feb 12 10:56:52 StingRay_: what ? Feb 12 10:57:43 how do the guidelines not apply to the large screen factor? Feb 12 10:57:48 well too many apps want you to perform actions (touches etc) Feb 12 10:58:13 90% of those actions either make the user cover the screen with their hand Feb 12 10:58:23 or are no good for 1 handed operation Feb 12 10:58:32 and I dont agree with that at all Feb 12 10:58:52 1000's of examples Feb 12 10:58:57 easy one Feb 12 10:59:09 you want to enter a www address from another page Feb 12 10:59:15 oh, so are you trying to keep the actionable bits in the lower right/left corner for thumbable use ? Feb 12 10:59:25 g00s: kinda Feb 12 10:59:29 but Feb 12 10:59:41 the other thing is I wanted an actionbar like entity Feb 12 10:59:52 that can expand and change size and look Feb 12 10:59:57 based on context Feb 12 11:00:04 oh no, i hope you aren't redoing that Feb 12 11:00:06 context of the user situation Feb 12 11:00:18 re-doing what ? Feb 12 11:00:22 the actionbar Feb 12 11:00:32 why not using minimal styled https://github.com/SimonVT/android-menudrawer ? Feb 12 11:00:37 well I'm not using it Feb 12 11:01:28 well I suppose my point is Feb 12 11:01:42 can the actionbar in any form be vertical ? Feb 12 11:01:51 not the one they give you Feb 12 11:01:55 but that's what i was saying Feb 12 11:02:18 use a small width sliding drawer that the thumb can pull out, perform action and it'll autoslide in Feb 12 11:02:25 can it have (not that i condone) multi popup menus with hierachy ? Feb 12 11:03:00 can it take up in horizontal mode only half the screen width if needed Feb 12 11:03:07 yeah Feb 12 11:03:17 oh ...cool did not know that Feb 12 11:03:26 ultimatly i would like to make all my apps that way since i like minimalism Feb 12 11:03:29 we taking actionbar here ? Feb 12 11:03:33 no https://github.com/SimonVT/android-menudrawer Feb 12 11:03:38 oh right Feb 12 11:03:40 lasserix: is that menu drawer thingy in android 4.x or is that only via simonvt ? Feb 12 11:04:02 uhh i'm not sure but afaik only via simonvt Feb 12 11:04:09 Guys: i have a question about the db tutorial (http://developer.android.com/training/basics/data-storage/databases.html), i see in feereaderdbhelper it references SQL_CREATE_ENTRIES, but i interprit it as a private field in the feedentry class. am i wrong? Feb 12 11:04:17 k, i'm still on 2.2 Feb 12 11:04:33 i just think the action bar is a legacy of desktop menu bars which really don't need to be on the phone in the same way Feb 12 11:04:46 lasserix: i agree completely Feb 12 11:05:04 esp on small phones takes up valuable screen estate :/ Feb 12 11:05:09 yup Feb 12 11:05:13 but it is an improvement on dashboards Feb 12 11:05:17 So what i guessed is there are two classes, FeedReaderContract (with internal FeedEntry) and FeedReaderDbHelper Feb 12 11:05:26 am i wrong? Feb 12 11:06:25 sql_create_entries should live with db helper since db helper will be using the sql statement Feb 12 11:07:03 usually i see dbhelpers as nested classes in online tutorials Feb 12 11:07:16 ok, so all the statements mentioned first in the Create Database using sqlhelper subtitle are to be in the dbhelper Feb 12 11:08:02 those statements are instructions for the sqlite database, so they should live with the dbhelper yeah :) Feb 12 11:08:23 ok, that was what i initially thought. got a little confused reading the docs :) Feb 12 11:08:52 you mentioned nesting, would it be normal to have the dbhelper inside the contract class? Feb 12 11:09:02 (im guessing no tho) Feb 12 11:09:15 that's how i have seen in a lot of tutorials, but it's really a matter of your taste and probably complexity of the helper class Feb 12 11:09:22 I could complicate things and mention a content provider :) Feb 12 11:09:34 I keep the queries int he content provider Feb 12 11:09:50 Anoia: me too :P Feb 12 11:10:32 Anoia: you have an example? Feb 12 11:10:39 excpet the actual database creation which I keep in sql scripts in raw assets and call in db healper Feb 12 11:10:44 why yes I do :) Feb 12 11:11:05 largely taken form the documentation though Feb 12 11:12:29 https://bitbucket.org/earlsoft/scout-group-manager/commits/9d85a865b518f18d0dc5b40019814e8dd5f7709d Feb 12 11:12:57 thanks :) Feb 12 11:13:47 sorry, raw resources rather than assets Feb 12 11:14:54 the next changeset adds a contract class Feb 12 11:15:18 lasserix: there are other things i dont like about the standard stuff, and thats cause sometimes it can be cluttered and most of the time it snaps, and dont transition (and for some reason as an artist that really pisses me off) Feb 12 11:16:12 the keyboard popping up in apps is just horribly annoying to me Feb 12 11:16:19 as in what happens and how Feb 12 11:16:20 StingRay_: android is rough around the edges ;) basically a desktop WIMP stuffed on a phone Feb 12 11:17:21 yeah Feb 12 11:17:23 but Feb 12 11:17:32 dont want any edges on it where i cut myself Feb 12 11:17:41 and thats what I feel i have at the moment Feb 12 11:17:43 :) Feb 12 11:18:29 and then everyone praises these guidelines when most of the time they are but duct tape covering those edges so people dont chop their own heads off by design Feb 12 11:18:50 oh man, you should have been here before those guidelines Feb 12 11:19:03 well makes little diff to me Feb 12 11:19:17 but yeah, i know the idea is to stop ppl attempting to copy ios Feb 12 11:19:19 there were so many fucking icon guidelines Feb 12 11:19:40 oh no, dont get me wrong Feb 12 11:19:43 icons are diff Feb 12 11:19:58 I really like any standardisation of fuction icons Feb 12 11:20:05 thats just design 101 on a system Feb 12 11:20:15 x = delete/close etc Feb 12 11:21:21 but I can see how the guidelines are not making most apps look/feel the same Feb 12 11:21:29 I just question if thats a good thing Feb 12 11:21:30 :) Feb 12 11:24:41 well, dont stray too far from the guidelines if you want people to use your app ;) one reason for the guidelines, not just visually, but interaction - is that /mobile apps are intermittent use apps/ … the data clearly shows users are spending less time in any one app (but they are spending the same amount of time between apps). so don't make yours too different ;) Feb 12 11:24:56 anyhow, best to try things with usability studies, grab 5 people Feb 12 11:26:21 well thats all subjective, if it works, is functional, look good, feels good Feb 12 11:27:16 g00s: while I'm ranting (cause i could be wrong on this) the other thing is most ppl follow these guides and end up with what is 1) a duplicate of function and 2) wasted space because of 1 Feb 12 11:27:22 and thats back Feb 12 11:27:41 most of the apps I download have 2 back UI elements visible Feb 12 11:27:45 why is that ? Feb 12 11:28:25 one is the standard back hard/soft, the other is their actionbar flow thingy Feb 12 11:28:51 I know one can be altered to manage state differently but 90% they are not Feb 12 11:29:12 the nav guidelines state how that should owrk Feb 12 11:29:14 *work Feb 12 11:29:17 neways, rant over, and I just realised why I'm #1 in that list Feb 12 11:29:24 ranting ! Feb 12 11:29:40 also, usability tests are not subjective. they are often qualitative, but not subjective Feb 12 11:30:14 is it possible to check if a View is currently attached to the WM? Feb 12 11:30:14 g00s: granted ..but.. Feb 12 11:30:24 what you think guidelines should be *is* subjective Feb 12 11:30:31 what users do is not Feb 12 11:30:52 when faced with a normal, over a different, I grant you yes Feb 12 11:31:02 but that doesn't mean normal is best Feb 12 11:31:07 :) Feb 12 11:32:07 sonOfRa: could you walk up the view hierarchy ? with get parent ? or getId and search the current attached view ? Feb 12 11:32:33 btw those are suggestions, I dont know Feb 12 11:34:04 Hi everyone!! Feb 12 11:34:04 could someone explain me the difference between TableLayout and GridLayout? Feb 12 11:34:40 What was the purpose behind introducing GridLayout? Feb 12 11:35:15 confusion Feb 12 11:35:22 hmmmm Feb 12 11:36:38 I've heard ppl here mention that tableLayout is old and dated and dont get updated, and grid layout more features and does ? Feb 12 11:36:52 never used tableLayout so dont know Feb 12 11:37:31 I've tried to understand these two layouts.. Feb 12 11:37:58 What I find is that in tablelayout you cannot span cells vertically.. Feb 12 11:38:02 but i'm not sure.. Feb 12 11:38:15 does GridLayout try to set this right? Feb 12 11:38:16 are you making a calculator? Feb 12 11:38:55 lasserix, no but I was going through layouts in the android documentation and stumbled upon it. Feb 12 11:39:19 and yes to understand it, I did try out the calculator.. Feb 12 11:39:53 i like thoroughness too, but unless you have a specific reason i dont know that its too important. usually i end up using a gridview & adapter Feb 12 11:46:21 new TimePickerDialog(this, mTimeSetListener, mHour, mMinute, true); fires the mTimeSetListener two times ? Feb 12 11:46:23 is there a way to get GSM phone number? Feb 12 11:46:36 and one time, if it was cancelled (by back button) Feb 12 11:47:09 squ: oh yeah, i think I had that Feb 12 11:47:21 fires twice on anything above 3.0 Feb 12 11:47:32 and only once on gingerbread Feb 12 11:47:51 same thing ? Feb 12 11:50:09 yep Feb 12 11:50:18 2 times setListener, 1 time onDismiss Feb 12 11:50:20 yeah I could not figure it out Feb 12 11:50:34 second time it calls it with previous time hour:minute values Feb 12 11:50:38 so just had to deal with it Feb 12 11:51:43 took 2 hours to figure out that bug Feb 12 11:52:00 I was wondering why time is wrong :) Feb 12 11:52:41 yeah, well if you look into it further and find anything, put me on the informant list ;) Feb 12 11:52:52 :) Feb 12 11:53:03 I'm writing to google group android-dev list Feb 12 11:53:34 From latitude and longitude how can i figure out the exact name of the location ? Feb 12 11:54:29 c_nick: what like if I'm in a field, and it comes back field ? Feb 12 11:54:31 :) Feb 12 11:54:40 sorry could not resist Feb 12 11:56:25 StingRay_: I should've read your name properly :P Feb 12 11:56:43 StingRay_: I got the lat and long.. wondering how i could convert that into a human readable location Feb 12 11:57:06 never played with map api or google location libs Feb 12 11:57:11 so no idea Feb 12 11:57:51 I DO however have an online database of 13mil postcode,location,lat/long, etc Feb 12 11:57:57 but only for uk Feb 12 11:59:11 oh ok. will keep looking Feb 12 12:00:12 guys, has anyone had a problem with a TabWidget disappearing? Feb 12 12:00:28 Somehow it just randomly disappears Feb 12 12:00:43 nevertheless it is not GC'ed, because the reference to TabWidget is not null Feb 12 12:03:09 google maps does a great job at figuring out the location name from a lat and lng Feb 12 12:04:15 https://developers.google.com/maps/documentation/geocoding/ Feb 12 12:05:03 "Reverse geocoding is the process of converting geographic coordinates into a human-readable address." Feb 12 12:11:20 Hi. How can I remove gen/ from version control (egit). where should .gitignore be located and what should it contain exactly? Feb 12 12:11:44 haqe17: .gitignore must be in the root directory of your git reposiroty Feb 12 12:12:44 timroes: ok, . I have it there already but gen/ is still under version control and im confused Feb 12 12:12:48 and a typically file could include at least "bin/", "gen/" and "local.properties" i guess the rest depends on your IDE Feb 12 12:13:07 haqe17: perhaps you added it already to version control? gitignore wont delete stuff from your version control Feb 12 12:13:18 if you want to have it removed, use git rm Feb 12 12:13:31 gitignore just will tell not to check that files in any further actions Feb 12 12:13:33 timroes: do you know how to do that from eclipse + egit? Feb 12 12:13:44 no idea, don't use eclipse or egit Feb 12 12:13:54 right click-> git -> remove :D Feb 12 12:13:55 no idea Feb 12 12:14:06 but since its eclipse I would doubt it's that easy Feb 12 12:14:34 ok, thanks anyway, ill google it Feb 12 12:16:55 damn Feb 12 12:18:56 guys, what does visibility 8 mean? Feb 12 12:19:06 I just got this after debugging my code Feb 12 12:20:45 haqe17, git rm --cached Feb 12 12:20:45 maybe it needs glasses? Feb 12 12:20:52 vlad__: http://developer.android.com/reference/android/view/View.html#GONE Feb 12 12:21:27 timroes, thanks, I just thought GONE meant 2, not 8 Feb 12 12:27:21 I'm using Amazon S3 SDK for Android to download files from a bucket. When the download is finished I print following output to check: Downloaded 16699 bytes (Content-Size: 16699) . However, the pictures it downloaded are all corrupt Feb 12 12:27:48 Any idea why the file might get corrupted (everytime) ? Feb 12 12:28:04 I tried it with 20-30 different files, no luck Feb 12 12:28:05 is the file really corrupted or might it be in another format you expected? Feb 12 12:28:19 don't know what format amazon uses to transfer bitmaps Feb 12 12:29:15 They are JPEGs which I can open and view, but they look corrupted Feb 12 12:29:28 let my try to show an example Feb 12 12:40:44 how to write "LinearLayout llay = (LinearLayout) findViewById(R.id.llayout);" in other words? Feb 12 12:42:21 "assign the view with the id R.id.llayout which I assume is a LinearLayout to the variable llay" Feb 12 12:42:51 i think i do not understand a View Feb 12 12:43:10 a view is an element of your UI Feb 12 12:43:20 e.g. a button, a text input, a slider, etc. Feb 12 12:43:44 and there is a subclass (and as such also a view) named viewgroup, that is a container for several views Feb 12 12:43:57 there are several view groups who place their children in different ways Feb 12 12:44:21 e.g. linearlayout places them just beside (android:orientation="horizontal") or below (android:orientation="vertical') to each other Feb 12 12:45:41 hey guys, I'm noticing a lag between the time I press the back button and the time onStop gets called on my FragmentActivity. This lag only occurs on my real device. on an emulator it's fine. I can't seem to figure out why this is happening. I've debugged the chain of events here: http://pastebin.com/rdUMC8T9. Any insight would be appreciated. Feb 12 12:47:07 timroes: findViewById(R.id.llayout) can be called only when in my xml file there is android:id="@+id/llayout" , rght? Feb 12 12:47:24 alexfu: wild guess without haveing seen any code: your canceling inside the doInBackground in your async task isn't implemented very well and as such it actually doesn't get canceled, but on emulator you are downloading pretty fast and real device downloads slower so you notice the lag>? Feb 12 12:47:32 timroes: That's the downloaded picture: https://www.dropbox.com/s/avd2jm1kx9xjr7j/vista_wallpapers%20%2818%29.JPG and that's the original one: https://www.dropbox.com/s/h9upr115ak8xjji/vista_wallpapers%2B%2818%29.jpeg Feb 12 12:48:08 mikeyMike: yeah, you set the xml layout with setContentView(id) and after that, you it laods the layout from xml and you can find the views with that method Feb 12 12:48:18 so will return null if a view doesn't exist Feb 12 12:48:48 memoryleak: hmm still waiting for the image to load.. Feb 12 12:48:52 (just kidding :D) Feb 12 12:49:20 how large is the actual image? is it exactly the amount of bytes large, that are downloaded (and amazon said in content-length)? Feb 12 12:49:41 timroes: Downloaded 453463 bytes (Content-Size: 453463) Feb 12 12:49:53 memoryleak: yeah is that the size of that image? Feb 12 12:50:04 timroes: it returns me a null Feb 12 12:50:06 Content-Size is what I via S3 SDK Feb 12 12:50:16 *what I get Feb 12 12:50:23 oh, setContentView ok Feb 12 12:50:24 timroes: http://pastie.org/6126414 Feb 12 12:50:26 timroes: I'm not canceling inside the doInBackground. Feb 12 12:50:56 alexfu: cancel actually only set a flag in the asynctask, that you can get via isCancelled (i guess it was that name) Feb 12 12:51:05 and for cancelling you must take care again yourself Feb 12 12:51:36 alexfu: see pasted code, there I'm using isCancelled Feb 12 12:51:39 memoryleak: and is that content-length right? is it the size of the ppicture? Feb 12 12:51:54 timroes: let me check that Feb 12 12:52:35 alexfu: yeah good example, look at his code, you need to somehow cancel yourself. And I guess, your emulator has better internet connection and as such is faster with the downloading (why you get no lag when waiting) Feb 12 12:53:28 timroes: 453'463 bytes (455 KB on disk) Feb 12 12:53:35 The original file Feb 12 12:53:36 memoryleak: you also have a small bug in your code, line 7 of what you pasted ( Feb 12 12:53:55 outputStream.write(buffer) should be outputStream.write(buffer, 0, bytesRead); Feb 12 12:54:07 ah Feb 12 12:54:10 otherwise you will wwrite too much over the end in your last loop Feb 12 12:54:20 but that shouldn't imho destroy the image like that Feb 12 12:54:21 that could be it Feb 12 12:54:39 oh yeah wait it could if your buffer is large :) Feb 12 12:54:55 it is large :) Feb 12 12:55:08 byte[] buffer = new byte[1024 * 5]; Feb 12 12:55:28 Alltough I don't know what buffer size is ok Feb 12 12:55:30 okay explanation what i guess now: you don't read always the full buffer, because your network isn't fast enough Feb 12 12:55:56 so you would always have some empty parts you actually write out to the picture file Feb 12 12:56:55 reason for that: emulator has an unbelievable high MTU on your tcp/ip packages, what might cause you in emulator you always get the buffer read fully, but on a real device you won't Feb 12 12:57:03 timroes: that was it. Feb 12 12:57:20 wouldn;t have expected the outcome to be soo worse for 1024*5 already Feb 12 12:58:38 timroes, memoryleak: interesting, thanks for the info. i'll give that a go and see what happens Feb 12 12:58:50 if you use network sockets always make sure to test it on real device :) It's one of the things that in my opinion is simulated too utopian in the emulator Feb 12 12:58:59 yes! Feb 12 12:59:11 setContent is the key (i think) timroes, thanks Feb 12 12:59:20 you're welcome :) Feb 12 12:59:53 timroes: thank you, I was using it on a real device anyway Feb 12 12:59:59 with 3G connectivity Feb 12 13:02:11 memoryleak: you're welcome :) Feb 12 13:02:55 network is always evil :) If I remeber right, someone here in the company is writing (extending) atm a testing framework to test loss of connection, and real life network with automated test cases Feb 12 13:11:28 hi, how can i check if I can enter a directory? Feb 12 13:11:55 does canExecute() do it? Feb 12 13:12:29 getting a file list and catching the exception may do it Feb 12 13:12:40 mm Feb 12 13:12:42 ok Feb 12 13:12:54 will be a not found or permission exception i think Feb 12 13:12:59 <-- guessing though Feb 12 13:13:06 StingRay_, I just hate exceptions Feb 12 13:13:17 I love'em Feb 12 13:13:22 with all my heart ! Feb 12 13:13:24 superlinux-hp: since its a linux based system, and there usually the execute flag for directories is if you can change into them, i would asume canExecute would do it Feb 12 13:13:54 does anyone know if google play is able to update an app even if deviceadmin is enabled? Feb 12 13:13:56 timroes: that work on a directory though ? Feb 12 13:14:07 hey StingRay_ ;) Feb 12 13:14:18 how to get root view from another activity? Feb 12 13:14:19 timroes, I know linux very well, but I am not sure if the SDK understands it as such Feb 12 13:14:20 i am not sure, i am also guessing :D but if it works i would expect it to return if you can chance into it :D Feb 12 13:14:37 :) this guessing game is fun! Feb 12 13:15:12 mikeyMike: for what purpose ? Feb 12 13:15:25 cause for all "intents" that activity may not be there Feb 12 13:15:27 :) Feb 12 13:15:41 i have to check if i checked a Checkbox in another activity. Feb 12 13:15:56 superlinux-hp: since the java file calls a native calls to check access levels I assume they return the readl file system stuff :) Feb 12 13:15:58 why not pass that info forward ? Feb 12 13:16:09 simplet would be, just trying :D Feb 12 13:16:10 what? how? Feb 12 13:16:12 via bundle ? Feb 12 13:16:17 putExtra Feb 12 13:16:18 oh, a Bundle class Feb 12 13:16:23 putExtra, let's read Feb 12 13:16:35 mikeyMike: http://developer.android.com/training/basics/firstapp/index.html Feb 12 13:16:50 and there is also a weird thing : no built-in choose file dialogue Feb 12 13:16:52 you should do at least the getting startet trainings, it will be explained everything in there Feb 12 13:17:23 i was trained but haven't done the code cause it seems too complicated, lol. :) Feb 12 13:17:35 sup jr Feb 12 13:18:15 superlinux-hp: file maagement sucks on mobile devices Feb 12 13:18:19 it sucks on desktops too Feb 12 13:18:25 :) Feb 12 13:18:44 mikeyMike: then it sounds like you weren't trained Feb 12 13:19:10 I was trained how to be a fighter pilot Feb 12 13:19:11 no, no, i was. Feb 12 13:19:14 I watched Top Gun a lot Feb 12 13:19:17 just little confused. Feb 12 13:19:33 ok, maybe it sounds like that. Feb 12 13:19:37 but i was :< Feb 12 13:19:43 k, reading Feb 12 13:23:37 you can do it Goose Feb 12 13:25:56 Hey Guys. is there a way to test if the mobile wifi connection is mobile? Feb 12 13:26:08 if the wifi connection is mobile** :D Feb 12 13:26:45 Styler2go: you have a bug Feb 12 13:26:47 what does that mean? Feb 12 13:26:56 StingRay_: Where? Feb 12 13:27:02 info screen > actionbar "back" Feb 12 13:27:09 ;) Feb 12 13:27:15 yes i know this, thank you :) Feb 12 13:27:20 to my question: Feb 12 13:27:59 Styler2go: how would it/you or the device know ? Feb 12 13:28:11 would the ap/router tell you ? Feb 12 13:28:11 Like my Nexus 4, it detects of the current wifi is a mobile tethered wifi connection and uses it like a mobile connection. i want to detect exactly if the wifi is a mobile wifi Feb 12 13:29:12 Styler2go: that seems odd, and maybe just an android thing Feb 12 13:29:51 so its not possible? maybe i could test if the phone is moving fast Feb 12 13:29:53 StingRay_: http://developer.android.com/reference/android/net/NetworkInfo.html Feb 12 13:30:01 eh Styler2go sorry Feb 12 13:30:02 http://developer.android.com/reference/android/net/ConnectivityManager.html#getActiveNetworkInfo%28%29 Feb 12 13:30:30 ni the newer versions of android you can tag a wifi to actually not be a wifi Feb 12 13:30:34 i think this will just detect if i am on wifi or mobile or? Feb 12 13:30:38 yeah Feb 12 13:30:44 ok so Feb 12 13:30:56 the only way would be to detect if the tablet is moving fast Feb 12 13:31:00 you will have a hard time detecting on older devices if you are at real wifi or tethered mobile Feb 12 13:31:04 aha and that says what? Feb 12 13:31:16 that i am not in wlan i am always running? Feb 12 13:31:21 to get back to a wlan hotspot Feb 12 13:31:37 just to know if the user is maybe on a mobile connection Feb 12 13:31:41 or an instable connection Feb 12 13:31:55 okay i guess we have different definitions of "moving fast" Feb 12 13:32:07 i thought you mean checking with gps or gyro if the device is physically moving fast Feb 12 13:32:08 car speed Feb 12 13:32:14 like 30mph Feb 12 13:32:17 and more Feb 12 13:32:18 ehm okay you mean that.. Feb 12 13:32:30 the speed of your device has absolutely nothing to say about its connection? :D Feb 12 13:32:45 Styler2go: what about LTE? Feb 12 13:32:49 naww Feb 12 13:32:54 lte is unstable Feb 12 13:32:55 so you would assume if i am not moving fast i am always on wlan? Feb 12 13:32:57 thats what i need to know Feb 12 13:33:17 no, it sjust a help Feb 12 13:33:39 i would go with the NetworkInfo to detect wifi or not Feb 12 13:33:55 pre 4.0 users will know that apps might start using bandwith when on wifi Feb 12 13:33:56 its a tablet. it just can have wifi Feb 12 13:34:00 so its useless Feb 12 13:34:41 okay I thought you are again coding your app, and not something you are using in private Feb 12 13:35:28 I can have a device going 70mph with constant wifi signel :) Feb 12 13:36:09 but I second checking the actual connection type to determien the connection type Feb 12 13:36:22 rather than checkign somethign entirely unrelated and incorrectly guessing Feb 12 13:36:34 yeah i will just dont check this Feb 12 13:36:38 but to give you some other crazy ideas: Feb 12 13:36:41 the tablet needs internet connection and thats it Feb 12 13:36:49 you can make a traceroute to google or so, and look at the nodes Feb 12 13:36:55 we love crazy ideas here at the office! Feb 12 13:37:06 try to create a list of all mobile networking backbones and if one is in the traceroute you are on a mobile :) Feb 12 13:37:09 what problem are you actually trying to solve? Feb 12 13:37:14 :D :D Feb 12 13:37:25 just ask the user if they are on mobile or not when you detect a new wifi point being used Feb 12 13:37:31 you can even shorten that approach by resolving to dns names Feb 12 13:37:38 and just collect a list of all carriers Feb 12 13:37:44 ah anyway Feb 12 13:37:52 and I assume most carriers have their name in the dns name of their ips Feb 12 13:37:53 we will tell the user on phone if he has problems Feb 12 13:37:58 are you trying to use less bandwidth on metered connections? Feb 12 13:38:04 no Feb 12 13:38:19 so whats the point? Feb 12 13:38:20 we are making an update progress which should ask on mobile connection to please dont start :D Feb 12 13:38:38 yeah and for that you for sure want to use the internal connection type :) Feb 12 13:38:53 if the user is on tethered wlan he knows that apps don't ask before downloading that kind of stuff Feb 12 13:39:18 and from android 4+ the user can mark a wlan as tethered so that method will return mobile network if user is on a tethered wifi Feb 12 13:40:47 hmm... the old version of tbalet we are using is an 3.0+ Feb 12 13:40:51 not 4.0+ Feb 12 13:40:57 damn samsung! Feb 12 13:41:08 just ask the user Feb 12 13:41:15 another crazy idea: Feb 12 13:41:47 you can get the mac adress of your Access Point, Mac adresses have hardware manufacturer information in it :) Feb 12 13:42:05 you can create a list of all android manufacturer and hope they dont produce any routers, and filter for them :D Feb 12 13:42:06 and this tells me what? Feb 12 13:42:13 xD Feb 12 13:42:20 still better then testing for speed imho :P Feb 12 13:42:21 nah i just wont do it Feb 12 13:42:28 i will just tell the user to care about the connection Feb 12 13:42:43 but as mikedg said, if this data is rally a lot, so you would worry about it ask the user anyway Feb 12 13:42:49 or if its acceptable just do it anyway Feb 12 13:43:23 the user of the tablets are very... bad at technology :D Feb 12 13:44:27 so hey guys, whats up? Feb 12 13:44:48 Any ideas why I get "Start called in state 64" and then "Error (-38,0)" and then "start called in state 0"? I get it when I try to stop the alarm by hitting OK in the AlertDialog here: http://pastebin.com/y5NrQZGx Feb 12 13:44:49 i just wonder what http://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype%28%29 does return Feb 12 13:45:13 yeah.. Feb 12 13:45:15 whats that :o Feb 12 13:45:33 most likely if it's Edge, 3G, HSDPA or something else Feb 12 13:45:42 regarding not syncing on mobile, why not tie into the "allow background sync" setting? Feb 12 13:45:46 http://stackoverflow.com/questions/5593049/how-to-know-current-internet-connection-run-on-device Feb 12 13:45:46 Styler2go: did you figure out the overlay video thingie? Feb 12 13:46:02 no i did not :( Feb 12 13:46:07 Styler2go: it's not just true ? Feb 12 13:46:32 Styler2go: a right i just wondered where that constants are Feb 12 13:46:38 I'm guessing no though Feb 12 13:47:53 yeah elts continue the checkmap! Feb 12 13:47:58 so much to do here! :D Feb 12 13:50:37 howdy Feb 12 13:51:15 I'm having some significant trouble figuring out how to get an OpenGL View to display in a Fragment... any tips for going about this? Feb 12 13:51:18 what happened to twidroid.com? Feb 12 13:51:28 what *was* it? Feb 12 13:53:00 it was a twitter app, it got renamed once or twice Feb 12 13:54:10 Leeds, thanks. What is the current name? Feb 12 13:54:29 ubersocial, by the looks of things Feb 12 13:54:29 this one? Feb 12 13:54:30 https://play.google.com/store/apps/details?id=com.twidroid&hl=en Feb 12 13:54:35 ok Feb 12 13:54:45 I think plume may also be related to it Feb 12 13:55:00 or maybe not... dunno Feb 12 13:55:09 the twitter client world is a bit mad Feb 12 13:55:32 mad bird Feb 12 13:56:06 My assumption so far has been that in the Fragment.onCreateView I would return the GLSurfaceView that I've created and set a renderer for... however, it's only displaying a black screen, where previously when doing this with just an Activity, I had my spinning cube Feb 12 13:57:52 are you sure your fraget is working as expected Feb 12 13:58:04 ie. did you text with stuff other than glsurfaceview as the content Feb 12 13:58:07 test Feb 12 13:59:25 No.. I'm not sure. I'm pretty new to Android dev and even newer to working with Fragments. I'm getting quite confused by the concept. Feb 12 14:00:34 but doesn't onCreateView return the View that will be inserted into the Activity layout? Feb 12 14:01:11 yes, if you do everything right Feb 12 14:07:46 Files and ndk , I see all the mame and glquake user data directories are actually in the sdcard folder on my device Feb 12 14:08:17 I have a question about Android 3.1, I have written an app that uses a custom .so library and I have placed this library in the libs/x86 folder; I have verified that the library got placed in the /data/data//lib folder however when my app starts it says that it can't find the lib. Feb 12 14:09:21 One of the other things I didn't understand was when attempting to set up my Fragments in main.xml. According to the guide, you just add them in there and voila. However, they never ended up being initialized when I did that. They are being initialized now when I add them to a FragmentTransaction and call commit() on it Feb 12 14:10:35 does somebody know androVM? Feb 12 14:11:01 tkooger_: and I'll ask again - do you really mean 3.1? Feb 12 14:11:56 yes I am making this to run on my google tv which is running 3.2 actually. Feb 12 14:12:09 oh right my onCreateView is being called but I'm getting an IllegalArgumentException No view found for id 0x7f040000 for fragment Feb 12 14:12:31 which i've attempted to google for a solution with little success Feb 12 14:13:45 whoa... someone developing for gtv 1 Feb 12 14:14:29 trying to add it to a FrameLayout via: transaction.add(R.id.mainLayout, new FudgeDiceFragment()); Feb 12 14:16:01 how can i set a button in a listview? Feb 12 14:16:27 i have to send 2 onclicklisneters for a custom listview, or? one for the button, one fir the list? Feb 12 14:18:40 a button in each row? Feb 12 14:19:09 what's the other listener for? Feb 12 14:19:43 mikedg: one listener is for the actual onclick of the list, and the other for that rriangle indicator left bottom to open the menu for that item (like google music app) Feb 12 14:19:58 one for the button and one for the actual list Feb 12 14:20:39 i think youll want an http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html Feb 12 14:20:43 for the list items Feb 12 14:20:44 so no one for my question? Feb 12 14:21:04 mikedg: if u use a button in a custom listview this is not working Feb 12 14:21:09 i have loads of clickable items in a list item and only use onClick and onLongClick for the sub clickable items Feb 12 14:21:14 tkooger_: google tv does not support the ndk Feb 12 14:21:42 so it won't load shared object files? Feb 12 14:22:50 i would imagine not Feb 12 14:22:59 thank you very much. Feb 12 14:23:01 i do not have experience trying though Feb 12 14:23:07 http://code.google.com/p/googletv-issues/issues/detail?id=12 Feb 12 14:27:11 note that the x86 gtv is pretty much EOLed anyway Feb 12 14:28:38 can anyone tell me how to improve the emulator preformance, (not talking start up time....) i am aware it meant to emulate the real device speed, but i refuse to believe that chosing eg nexus S means the system is running much slower than my real testing phone htc magic ... LOL ! Feb 12 14:29:27 fanno: use the intel AVD Feb 12 14:29:32 fanno: are you using intel image? Feb 12 14:29:38 tis blazing Feb 12 14:30:52 intel image ? how do i gell if that is the case ? Feb 12 14:33:06 does the youtube app have a playlist? Feb 12 14:33:46 Can anyone help me figure out why I can't get past this No view found for id 0x7f040000 for fragment Feb 12 14:35:21 dumptruckman well it cant find a view id and thats the id there Feb 12 14:35:43 but the view with that id exists.. Feb 12 14:35:53 transaction.add(R.id.fragmentContainer, new FudgeDiceFragment()); Feb 12 14:36:10 fragmentContainer is a FrameLayout within the top level RelativeLayout Feb 12 14:36:19 and is R.id.fragmentContainer in the current view ? Feb 12 14:36:34 as in the view set by setContent Feb 12 14:36:34 main.xml: http://pastie.org/6130283 Feb 12 14:36:59 eh? Feb 12 14:37:21 it claims it doesn't Feb 12 14:37:31 in your fragmentActivity Feb 12 14:37:41 setContent(R.layout.Main); Feb 12 14:37:44 durp Feb 12 14:37:54 setContentView(R.layout.main) Feb 12 14:37:59 yeah taht Feb 12 14:38:02 now i get a new error! seems like progress Feb 12 14:38:14 requestFeature() must be called before adding content Feb 12 14:38:15 ok now pass a dont attach flag Feb 12 14:38:22 ohh Feb 12 14:38:26 oh well thats easy Feb 12 14:38:31 you current error Feb 12 14:38:32 right Feb 12 14:38:34 i think i understand Feb 12 14:38:53 so set your windows flag features, then set content Feb 12 14:39:00 then add your fragment Feb 12 14:39:40 yay, it works! Feb 12 14:39:49 StingRay_: Can i replace placeholders in a translations string would you simply use the string replace function? Feb 12 14:39:59 i had read the setContentView thing but I didn't quite understand until you mentioned it again Feb 12 14:40:02 thanks StingRay_ Feb 12 14:40:16 glad I could help Feb 12 14:40:22 <-- noob so very glad Feb 12 14:40:24 now to learn openGL >.> Feb 12 14:40:24 timroes: StingRay_ think i founed it when i chose API level i have to chose one where i can change the CPU/ABI ? is this what you mean ? Feb 12 14:40:48 yeah Feb 12 14:40:51 could anyone suggest a good OpenGL tutorial (perhaps specifically tuned for Android?) Feb 12 14:41:00 you can choose intel atom image ther e(after downloading it via Android SDK manager) Feb 12 14:41:46 timroes: i have everything downloaded - a few things and the intel images are there. it just seems i cant always chose it as a CUP Feb 12 14:41:48 Styler2go: not sure I get what you mean Feb 12 14:41:50 *CPU Feb 12 14:42:03 you mean localisation ? Feb 12 14:42:12 fanno: you need to download it for every API level you need it Feb 12 14:42:42 Oh, another thing, when using the Support Lib, do I package that with my apk or is it already present or something? Feb 12 14:42:58 currently shading it in with maven but perhaps that is not necessary Feb 12 14:43:19 timroes: i did but it, just that none of the default images i tried uses the intel cpu ? assuming that is the thing i need to change Feb 12 14:43:38 fanno: in sdk manager, ENABLE the intel repo Feb 12 14:43:42 then the images show up Feb 12 14:43:54 then download them, and use :) Feb 12 14:44:15 If multiple MediaPlayers are started, how can I stop the right one? The way it is now, only the newest MediaPlayer will stop: http://pastebin.com/y5NrQZGx Feb 12 14:44:19 with my sdk the repo was not enabled by default Feb 12 14:47:40 StingRay_: we are talking about what is called intel x86 atom system image ??? right ? i had them all installed Feb 12 14:47:54 oh yeah right Feb 12 14:48:04 but they are not for ALL api levels Feb 12 14:48:28 look in sdk (installed) and you will see what they are for Feb 12 14:48:33 StingRay_: no default images using a intel CPU is there i have tried with also the api level where they should be but i dont see any Feb 12 14:49:15 what in the CPU/ABI dropdown ? Feb 12 14:49:45 no of my default images provided has a intel atom in the dropdown Feb 12 14:50:07 your choosing the google api ? Feb 12 14:50:34 if i change things around manually to chose a combo that has intel atom in the CPU/ABI it dont change the preformance Feb 12 14:51:05 should do, lots!!! Feb 12 14:51:19 if you have hardware Virt supported in host OS Feb 12 14:52:18 Virt ? Feb 12 14:52:35 hardware virtualization Feb 12 14:52:50 99% likely you have Feb 12 14:53:05 what OS you running ? Feb 12 14:53:29 win 7 Feb 12 14:53:34 did you install the HAxs thi? Feb 12 14:53:39 hax shit Feb 12 14:54:15 mikedg: was that question for me ? if it was i do not know what hax ..... you are talking about =P Feb 12 14:54:52 yeah Feb 12 14:54:57 google hax android install Feb 12 14:55:03 i think thatll give you instructions Feb 12 14:55:17 it's HAXM, not HAX Feb 12 14:55:25 HAX sounds better! Feb 12 14:55:30 hehe Feb 12 14:55:35 i will take a loog Feb 12 14:57:12 anybody speak a foreign language and want to provide a strings.xml translation for my app? Feb 12 14:57:34 pragma-: how long? Feb 12 14:57:38 pragma-: queens english any good ? Feb 12 14:57:39 or how many items Feb 12 14:57:56 I speak ebonics Feb 12 14:58:07 I just spent the last few hours hunting down every last hard-coded string and moving them all to strings.xml Feb 12 14:58:11 https://github.com/pragma-/networklog/commit/6ecc50f0e370e27087b8127a0db25ff2ec4dc5d5 Feb 12 14:58:18 hi, how can I disable the option "Keep awake when charging" programmatically? Feb 12 14:58:20 * pragma- exhausted. Feb 12 14:58:49 pragma-: *patpat* :D Feb 12 14:58:49 rcosta: you cant without being a system app Feb 12 14:58:53 why do you want to do that Feb 12 14:59:23 mikedg: I would like to do it to automatically send a command from my pc to the phone to change it, when its connected via usb Feb 12 14:59:24 timroes: looks like 165 items Feb 12 14:59:41 mikedg, it is a system app. Do you know how can I do it? Feb 12 14:59:42 but not to have it stay awake, when i just load it, or have it at someone else pc (loading it normally not developoing) Feb 12 14:59:50 most items are only a word or two long though Feb 12 14:59:55 mikedg, in fact, rooting/ using private APIs is not a problem Feb 12 15:00:11 is timroes ad rcosta the same? Feb 12 15:00:19 rcosta: look inside the settings APK Feb 12 15:00:24 mikedg: no i jus tlije to answer for other ppl ;D Feb 12 15:00:43 and he asked it already yesterday, and that idea came directly to my mind, how I would like to use it Feb 12 15:01:31 pragma-: i look if I have this evening some spare time, I could translate it to german for you, if you wish so Feb 12 15:01:43 timroes: that would be nice Feb 12 15:02:16 hmm perhaps I just take home my work laptop then I can do it in the train :) Feb 12 15:02:19 seormit, which settings APK? Feb 12 15:02:30 the one in the platform Feb 12 15:02:38 look at the source code for it Feb 12 15:02:44 hmm i see Feb 12 15:03:02 pragma-: I guess that app is meant to be for a bit more experienced users Feb 12 15:03:18 and not ppl like my little sister having no clue on how to use android Feb 12 15:03:53 how old is your little sister Feb 12 15:04:00 timroes: there are some screen shots at the bottom of https://github.com/pragma-/networklog -- yeah, it's for people who really want to know whats going on with their device's network Feb 12 15:04:04 doesn't matter she has no idea how to use android :D Feb 12 15:04:24 ill teach her Feb 12 15:04:41 eh believe me you wouldn't want to :D Feb 12 15:04:58 i think seormit's idea of teaching her involves getting her drunk Feb 12 15:05:03 mdigiovanniqHxG732PK Feb 12 15:05:04 and she is anyway not interested in how to use it, she just wanted to know where facebook is and where the kamera.. Feb 12 15:05:17 ill totally teach her where the camera is Feb 12 15:05:20 seormit: Which password is it? ;) Feb 12 15:05:30 seormit, should be something like this right? https://github.com/android/platform_frameworks_base/tree/master/packages/SettingsProvider Feb 12 15:05:39 rcosta: something like that Feb 12 15:05:59 if this was on stack overflow i'd look for the exact answer Feb 12 15:06:05 but i dont get points here Feb 12 15:06:20 But, did you just post one of your passwords here? :D Feb 12 15:06:30 kakazza: what do you mean? Feb 12 15:07:11 seormit: as far as i can tell from sdk manager haxm is installed, trying to get it direct from intel to see if it makes a differance Feb 12 15:07:23 you need to install it after downloading it from the sdk manager Feb 12 15:07:28 its still and not mentioned anywhere Feb 12 15:07:37 it installs in the same place i think the drivers install when downloaded Feb 12 15:08:12 ok Feb 12 15:09:23 seormit: i may ofcause be a noob. but i would assume "a lot" then has the same issue Feb 12 15:10:07 yeah a ton of people have this issue Feb 12 15:10:14 dont worry about it Feb 12 15:10:19 it's the sdk being stupid Feb 12 15:26:54 hi Feb 12 15:27:12 I'm looking for info about organizing activities Feb 12 15:27:33 for a serial data input Feb 12 15:31:37 hey, how to check the amount of memory some application is using? Feb 12 15:31:44 programmatically of course Feb 12 15:32:44 actually, it is not about "some" application, it is in fact about the currently running application Feb 12 15:32:55 this seem pretty desolate :) Feb 12 15:33:04 I mean, how can I know the amount of memory my app is using Feb 12 15:33:06 i dont know but im curious about why you care? Feb 12 15:33:33 mikedgsr, :-o?? Feb 12 15:33:57 mikedgsr, you really have no idea why I should know the amount of memory your app is using? Feb 12 15:34:09 i have no idea how Feb 12 15:34:12 i have an idea why Feb 12 15:34:24 but i want to know why for sure Feb 12 15:35:06 mikedgsr, performance and testing reasons. You would like to know if your app is using all the memory you have available... Feb 12 15:35:38 you would like to check if there are memory leaks going on Feb 12 15:36:02 while running on a random user device? Feb 12 15:36:09 so profiling tools are out of the question? Feb 12 15:36:25 profiling tools? Link Feb 12 15:37:29 mikedgsr, no that won't help, I neet to know inside the app Feb 12 15:37:34 need* Feb 12 15:37:44 gmag: what kind of memory? Feb 12 15:37:53 timroes, RAM Feb 12 15:38:02 what kind of that :) Feb 12 15:38:04 http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android Feb 12 15:38:12 it might be not that easy, as you imagined it Feb 12 15:38:22 timroes, I see Feb 12 15:39:56 timroes, that post seems filled with good information on this, thanks Feb 12 15:40:08 gmag: you're welcome Feb 12 15:43:23 GMAG STYLE Feb 12 15:44:43 mikedgsr: what's the SR stand for? Feb 12 15:46:30 is there a changelog for 4.2.2 btw? Feb 12 15:47:06 it supposedly fixes BT audio and some 3G issues Feb 12 15:47:17 Senor Feb 12 15:47:30 <-- Feb 12 15:48:28 mikedgsr, did I miss something? :) Feb 12 15:48:33 Is there a risk of shader attribute/uniform handles changing?, i.e, If I compile and link the shader programs in e.g. the constructor, can I put the uniform handle assignment code there too, or should that be redone every draw loop? Feb 12 15:48:35 señor, dos cervezas por favor ;) Feb 12 15:48:54 el perro es en la biblioteca blanca Feb 12 15:49:26 que sean dos Duvel >:) Feb 12 15:51:26 Duvel++, but that'll have to wait until Friday :) Feb 12 15:51:46 dos coors light por favor Feb 12 16:02:43 ahoi ahoi Feb 12 16:02:50 lots of green in here today, nice Feb 12 16:03:09 do bitmap operations (decoding files and streams) have to occur on the main thread to prevent libskia SIGSEGV? Feb 12 16:03:35 I'm just doing a noddy bitmap reuse system that loads in a separate thread and it's causing libskia to explode Feb 12 16:04:16 feesh: sure its the lib and not the threading that is exploding? Feb 12 16:04:39 belgianguy, fairly certain, the crash only occurs when I try to display the resultant bitmap in an ImageView Feb 12 16:05:04 hmm, did you use a Handler? Feb 12 16:05:10 AsyncTask Feb 12 16:05:14 so I guess, yes Feb 12 16:05:27 and where do you set the ImageView to its new content? Feb 12 16:05:34 belgianguy, it's not a threading issue Feb 12 16:05:45 I know not to alter views on any other thread than the UI thread / main thread Feb 12 16:06:05 I'm getting a stack trace with stack that points to libskia, the android application closes without any error message Feb 12 16:08:02 No, bitmap decoding doesn't have to (and really shouldn't) happen on the main thread Feb 12 16:14:33 weird Feb 12 16:14:39 I want to make a test app to replicate the issue ...... Feb 12 16:14:40 so I shall Feb 12 16:14:53 Where are you testing? Feb 12 16:15:01 A broken device, or reproducible everywhere? Feb 12 16:18:25 reproducible on emulator and device (4.0.4 on device 4.1.2 Feb 12 16:23:27 Some phones can output 1080p video ... Is this resolution available to ndk gl applications when they create surfaces Feb 12 16:23:29 i mean when connected to an hdtv via mhl cable of course Feb 12 16:25:04 Uhm. I am using the apache http client in my project. I use a baic handler to return a webpage's html source code Feb 12 16:26:06 But while it's fetching the data I'd like to be able to display the siza of the data fetched up till now Feb 12 16:26:26 And maybe throw in a progress bar while I am at it Feb 12 16:26:51 ok, confused now, when data on my list changes, and I call notify on it, even though transcript mode is set and stackFrom bottom is set and both are valid, the order reverts to the wrong way... this common or is this just me Feb 12 16:30:32 Currently the html source code is fetched with just four lines, no loops or ways to count the size of the data received up till now Feb 12 16:31:07 Nor display the speed per second at which it's fetched at Feb 12 16:33:20 diki: you could use a BufferedInputStream Feb 12 16:34:10 and maybe get the file length with getContentLength() on the connection Feb 12 16:34:22 then you have your info for progress bar Feb 12 16:34:36 <-- guessing, but I think I do that with images Feb 12 16:35:37 Hi$ Feb 12 16:35:53 Is it possible to optimise the marker on the googlemap Api2 ? Feb 12 16:36:14 it's too slow to add a marker with GoogleMap.addMarker Feb 12 16:36:15 Optimize? You can supply your own custom markers if that's what you want Feb 12 16:36:30 How many markers are you adding? Feb 12 16:36:40 1000 Feb 12 16:36:49 but I can see them appearing one after other Feb 12 16:36:56 but I add 1000 to test the speed Feb 12 16:37:11 it's like if he was redrawing all the map at each new marker Feb 12 16:40:40 is there a way from within the DefaultUncaughtExceptionHandler to determine what activity of the app was last active ? (sometimes a crash do not report where in the application the error has happened) Feb 12 16:41:15 do your own trace Feb 12 16:42:00 No there isn't. You could inspect the thread passed to you and see if it is a Looper. Feb 12 16:42:29 But the exception could be generated by a background thread, in which case you'd have no way of knowing what (if any) activity was running Feb 12 16:44:49 JosephPowa: truem but knowing the latest activity can often give a hint as to where the issue is Feb 12 16:45:52 fanno: catch the crash Feb 12 16:46:50 fanno: you misunderstood JosephPowa's point Feb 12 16:47:14 @fanno Indeed. Every time onResume is called in one of your activities store that activity name as the "active activity" somewhere Feb 12 16:47:47 JosephPowa: ca i was thinkign something like that, was just curious if there may be a smarter way Feb 12 16:47:53 ca = ya Feb 12 16:48:13 I don't believe there is unfortunately for you Feb 12 16:48:56 JosephPowa: hehe well, it would make it more easy to find my coding errors from time to time =P Feb 12 16:49:28 what's with everyone and their new names here? Feb 12 16:51:32 maybe it is a new trend ! Feb 12 16:51:41 lol Alicia Keys pulled an Oprah Feb 12 16:51:58 belgianguy: what do you mean? Feb 12 16:52:04 as Creative Director of BlackBerry, it's a bit bad form to tweet from your iPhone :) Feb 12 16:52:51 (Oprah pulled the same stunt, but with an iPad in which she declared her undying love for shill money/MS Surface) Feb 12 16:53:11 I declared my undieing love for windows 8 tablets Feb 12 16:53:21 and I plussed from a nexus 10 the other day Feb 12 16:53:43 now what does that make you Feb 12 16:53:58 my response to someone asking if we can set up CI to email the team when builds break "if we can just make sure we don't break builds, then we won't have to setup the CI to send us emails when the builds break Feb 12 16:54:30 mikeyd_: clever that Feb 12 16:54:57 reminds me of the "It hurts when I touch here" Feb 12 16:55:01 "Don't touch there then" Feb 12 16:59:44 Does anyone knows how to fix the issue with eclipse that says "emulator64-arm quit unexpectedly" permanently? I have been following this tutorial every time: http://timvoet.com/2013/01/04/avd-emulator-crashes-on-mac/ Is there a permanent solution for this? Feb 12 17:00:00 enettolima: :) Feb 12 17:00:08 happens everytime ? Feb 12 17:00:20 quits b4 starting ? Feb 12 17:00:28 you using more than one monitor ? Feb 12 17:00:50 2 solutions Feb 12 17:01:15 1. get osx to change coord system (maybe swap dvi's around Feb 12 17:01:16 ) Feb 12 17:01:24 No, it's sporadic, by the way I am on a macbook Feb 12 17:01:25 2. make the file read only Feb 12 17:01:38 I am using 2 monitors Feb 12 17:01:54 well it WILL only happen when you close the AVD on a monitor with negative coords Feb 12 17:02:02 Quickest solution is to remove the emulator-user.ini file for that emulator Feb 12 17:02:31 Look in ~/.android/avd Feb 12 17:02:55 Then the emulator should work again Feb 12 17:03:04 I have five monitors lined up in a row, using three different PCs sharing one keyboard and mouse through synergy Feb 12 17:03:19 anyone got intros to app deving with Android on Linux? Feb 12 17:03:23 That's just wasteful Feb 12 17:03:33 d.android.com Feb 12 17:03:34 pragma-: I have 4 24" ips's Feb 12 17:03:36 synergy is awesome, you can scroll the mouse off the side of a screen of one pc and it appears on the screen of another pc Feb 12 17:03:52 training is there somewhere, same way on linux as any other OS really Feb 12 17:04:06 StingRay_: Thank you for your help Feb 12 17:04:14 not a prob Feb 12 17:04:22 JosephPowa: Thank you Feb 12 17:04:26 I have the same problem :) Feb 12 17:04:56 Yeah, and it only began after I updated my ecplise :/ Feb 12 17:05:26 since it started storing "close" window position Feb 12 17:05:28 :) Feb 12 17:06:16 sonOfRa: thanksss! Feb 12 17:06:21 Do you have to close your ecplise to delete the file? Feb 12 17:06:36 No you should be able to delete it with Eclipse open Feb 12 17:07:00 you're welcome Feb 12 17:07:12 Ok, Thanks :) Feb 12 17:08:59 enettolima honest just close it on the posative monitor and set the ini file to read only Feb 12 17:09:13 lots quicker than deleting the file etc, and tis persistant Feb 12 17:09:17 jackyalcine: go with Eclipse until you got the basics down, then move to a better IDE (my pick: IntelliJ) Feb 12 17:09:19 persistant * Feb 12 17:10:29 Leeds, do you have a SO account? Feb 12 17:10:49 StingRay_: ok, will try that Feb 12 17:17:02 I hath the crashing program Feb 12 17:17:05 it wasn't easy Feb 12 17:17:09 it was kinda hard infact Feb 12 17:17:15 spobat: apparently Feb 12 17:17:25 yo Leeds Feb 12 17:17:39 heard they're having a festival in your honour Feb 12 17:18:10 Leeds, link? ;) Feb 12 17:18:20 spobat: I don't really use it Feb 12 17:18:46 but I'm vmlinuz there, for whatever it's worth - and in most other places Feb 12 17:19:29 hi Feb 12 17:19:45 if there was a tv show of this channel who would play you/ Feb 12 17:20:02 think something along the lines of 30 rock but IRC instead of TV Feb 12 17:20:06 me! Feb 12 17:20:35 Seth Rogen Feb 12 17:20:36 you arent on the show, because you Anoia me Feb 12 17:20:49 Hugh Laurie Feb 12 17:26:12 mikeyd_: and you? Feb 12 17:27:47 Tracey Morgan Feb 12 17:31:29 hmm, don't know him that well, seen him in 30 Rock though Feb 12 17:34:42 How can I set margins in a Feb 12 17:45:30 because he wants a title vs. a value view Feb 12 17:45:31 style Feb 12 17:45:32 StingRay_, because the padding of both of them will always be the same Feb 12 17:46:18 You can do