**** BEGIN LOGGING AT Thu Mar 21 02:59:58 2013 Mar 21 03:00:21 if the docs are right and the option is missing, or if the option is not available and the docs are wrong Mar 21 03:00:34 but again, not critical Mar 21 03:09:42 g00s ... I can file a bug report somewhere if that'll help / is the simplest answer Mar 21 03:12:24 capella: you could :) Mar 21 03:12:29 * g00s stares at his from 2010 Mar 21 03:13:09 capella: assign it to the swedish chef , or Animal Mar 21 03:13:23 mmm? same bug from 2010? Mar 21 03:13:34 no, different one Mar 21 03:14:29 ah ... well some issues are more important than others ... no real need to push this then Mar 21 03:15:13 if i had the tool repo i'd look at the code Mar 21 03:16:52 needent bother ... i stumbled into this minor thing and Im starting to feel like the tail wagging the dog so my work arounds will suffice Mar 21 03:27:56 If there's anyone here who helps to maintain developer.android.com documentation, there's a typo in Fig. 1 on http://developer.android.com/guide/topics/ui/dialogs.html Mar 21 03:29:19 missles…. nice Mar 21 03:29:49 fire all the missles, yeah dont sound right Mar 21 03:30:15 they set us up the bomb! Mar 21 03:30:50 missles inbound, release cuntermeters Mar 21 03:36:33 if i have a javascript/html5 game can it be used in an android browser? Mar 21 03:37:31 try it ??? Mar 21 03:38:30 no android. Mar 21 03:38:32 no game. Mar 21 03:38:33 lol! Mar 21 03:40:59 I have a linear layout (horiz) with 3 image views in it. I want to put a textview on top of the first image view. How ? Is it possible ? Mar 21 03:41:17 hello, all, I have a question. My activity flow is that A->B->C. However, when launching activity C, I would like to kill A and B as to make the C to be only activity on the stack. I have tried clear top and clear task flag but it doesn't work Mar 21 03:42:21 mobydev: wrap your first image view into frame layout or relative layout with a textview Mar 21 03:44:36 i will try that Mar 21 03:44:51 as for your question, multiple answers. Try your luck Mar 21 03:44:55 http://stackoverflow.com/questions/12266572/android-kill-all-activities-on-logout Mar 21 03:45:30 call finish for A And B activity ? Mar 21 03:45:57 http://stackoverflow.com/questions/6211444/finishing-all-activities-started-before-the-activity Mar 21 03:47:13 How can I regain focus on my parent custom view after calling requestfocus on one of my children? Mar 21 03:47:43 by doing the same on "it" ? Mar 21 03:48:23 what about firfox mobile? Mar 21 03:48:41 StingRay_, right but the problem is that i only know to regain focus on the parent when the event im interested in happens, which wont happen unless i have focus….if that makes any sense Mar 21 03:49:43 that makes little sense to me atm Mar 21 03:50:19 cause your wainting for an event to trigger requiring a view to have focus that it cant have until the eve……… and reapeat Mar 21 03:50:36 ol Mar 21 03:50:37 lol Mar 21 03:50:42 yeah i need to rethink this Mar 21 03:50:50 things just get tricky when im working with dpad only navigation Mar 21 03:50:55 working on some google tv stuff Mar 21 03:51:08 whats google tv ? Mar 21 03:51:12 :) Mar 21 03:51:24 do they have a website ? Mar 21 03:51:32 :) Mar 21 03:51:38 lol Mar 21 03:51:44 is that a big thing in the states ? Mar 21 03:51:55 not really, it kind of bombed completely Mar 21 03:51:56 cause there is 0% here in UK Mar 21 03:52:11 im actually working on a project for a new tv platform running android Mar 21 03:52:14 not google specifically Mar 21 03:52:31 but ive signed an NDA so cant discuss the deets :( Mar 21 03:52:55 hopefully not another logitech thingy Mar 21 03:52:57 ugh Mar 21 03:53:26 I actually hope ouya dies just as quick Mar 21 03:53:33 hehe me too Mar 21 03:53:37 when people realise it aint a games console Mar 21 03:53:39 not logitech Mar 21 03:53:45 it;s a phone in a box Mar 21 06:03:29 bleh Mar 21 06:48:54 does anyone know how to solve this error: "The method getChildFragmentManager() is undefined for the type FragmentTabsFragment"? Mar 21 06:49:41 I'm trying to run the sample \extras\android\support\samples\Support13Demos Mar 21 07:08:10 I have a question that I cannot find an answer too. In my project I set attributes for my buttons shape and color in the drawables folder. When would or should I use style.xml instead? Mar 21 07:08:21 in the values folder Mar 21 07:16:58 I'm having serious trouble using maven and AA together .. Without IDE dependency i mean then. Mar 21 07:20:36 Does anyone know why it's not releasing (on some devices?) http://stackoverflow.com/questions/15541608/takepicture-failed-in-some-cases Mar 21 07:44:12 I entered the wrong pattern too many times. It is now not accepting my login details. Am not connected to wifi, nor do I have a sim in it. Any tips? Mar 21 07:46:17 can m3u8 containers be read on android devices? Mar 21 07:49:36 trying that avconv -i http://127.0.0.1:8000:/event1.ogv -c:v libvpx -c:a libvorbis -b:v 92k -flags -global_header -map 0:0 -map 0:1 -hls_time 10 -hls_wrap 64000 -hls_list_size 999 wsot11.m3u8 Mar 21 07:49:39 makes sense? Mar 21 07:55:01 can i include webm files in a m3u8 ? Mar 21 08:00:00 Please, check this out and help .. http://stackoverflow.com/questions/15521639/maven-androidannotations-generated-but-n… Mar 21 08:01:47 how is it that a phone can resolve a phone number to a name that doesn't exist in the phone book? eg. service providers, company names, google etc. ? Mar 21 08:06:59 bankai_: some names are in public databases which are added to phone, it seems (mostly area codes) Mar 21 08:07:10 possibly caller id got some extra stuff, but that I don't know about Mar 21 08:07:27 it's not something just 'anyone' can do though, right ? Mar 21 08:10:33 depends which Mar 21 08:10:46 the area code database probably can be messed with in the ROM Mar 21 08:10:59 if it's something related to area code, then that's telco's side Mar 21 08:11:15 ahh ok thanks :) Mar 21 08:19:38 Does anyone know why it's not releasing (on some devices?) http://stackoverflow.com/questions/15541608/takepicture-failed-in-some-cases Mar 21 08:28:25 misterli: you should in general release camera and such in onPause Mar 21 08:28:40 it's the last callback guaranteed to be called before your activity gets destroyed Mar 21 08:28:45 onDestroy might never be called Mar 21 08:29:23 also see this training; http://developer.android.com/training/basics/activity-lifecycle/index.html Mar 21 08:29:40 timroes. Services dont have onPause. That's the Problem Mar 21 08:29:50 ah it was a service, sorry Mar 21 08:29:55 It works just fine in an Activity Mar 21 08:31:00 yeah because i don;t think its meant to use camera from a service Mar 21 08:32:05 When should I use style.xml in values and when should I create xmls in the drawables folder? Mar 21 08:32:43 timroes. Any idea? :) Mar 21 08:32:50 yeah, don't do it :D Mar 21 08:33:03 I cant use an Activity. There are several reason for that Mar 21 08:33:21 For example: finish() the CameraActivity popup the LauncherActivity (which shouldnt!) Mar 21 08:33:29 because it call onResume in the ParentActivity Mar 21 08:33:51 i jmean: don't use camera in background Mar 21 08:34:19 It's an AntiTheftapp. It's a bad idea to ask the Thief if he can press the RElease-Button :) Mar 21 08:36:04 have you ever tried running this, while the phone is beeing locked? Mar 21 08:36:40 Sure. This is one of the Reason why i'm using the Service. It's working fine Mar 21 08:36:50 or not as it seem :D Mar 21 08:37:07 I capture the ModulCamera Service as soon as a wrong keylock attempt (with DeviceAdmin) Mar 21 08:37:44 Camera works pretty. I've 4,80~ rating in Playstore with about 1000 Ratings. Just a few people have problems with the Camera. And Exception shows it's not released successfulls Mar 21 08:38:24 i am trying to find in the docs if onDestroy is guaranteed to be called Mar 21 08:38:40 since its not for activities, I wonder if its guaranteed for services. If it isn't that might be a problem Mar 21 08:39:59 I'm 99% sure that it's a problem with SurfaceDestroyed. If SurfaceDestroyed is called then im stopping the Service with stopself(). But SurfaceDestroyed is not called evrytime? oO Mar 21 08:40:42 surfaceDestroyed call stopService. SurfaceDestoryed should be called as soon as the async takePicture is ready, shouldnt it? Mar 21 09:15:38 sweet, the SGS4 for only $113 http://www.androidpolice.com/2013/03/20/lolwut-u-s-retailer-mobilefun-lists-the-samsung-galaxy-s4-game-pad-for-113/ Mar 21 09:16:00 no wonder why samsung is doing so well Mar 21 09:21:47 g00s, isn't that only a game pad? Mar 21 09:24:37 oh its legit, just the wrong price Mar 21 09:24:55 Is there some reliable way to detect status bar presence from a service? I tried OnSystemUiVisibilityChangeListener but it isn't always triggered. Currently, I'm using a thread and two system overlays (one normal, one with flag layout_in_screen) and I just check the difference of the overlays' heights periodically. Mar 21 09:27:29 that sounds like an awful kludge Mar 21 09:28:01 it is Mar 21 09:31:49 any idea why "getResources().getIdentifier("R.id.button1", null, getPackageName());" returns 0 but "findViewById(R.id.button1)" works? Mar 21 09:38:45 Quacked, getIdentifier("button1", "id", getPackageName()); Mar 21 09:42:26 how important is knowing/having iOS dev skills wrt the development of apps in general? Mar 21 09:42:46 I mean, do companies rather ask for both, or does "just Android" also compete? Mar 21 09:43:04 I guess it depends on the company size Mar 21 09:43:33 belgianguy: small companies typically can't afford multiple programmer instances. They need a singleton :-) Mar 21 09:43:59 well maybe they'll want an getInstance() from me then ;) Mar 21 09:44:16 fpillet: have you mastered both? Mar 21 09:44:20 yup Mar 21 09:44:39 I come from the other side though Mar 21 09:44:45 fpillet: what would you estimate the added cost would be? Mar 21 09:44:56 (I have an Ubuntu pc, no apple hw whatsoever) Mar 21 09:45:11 added cost in what? hardware? Mar 21 09:45:26 fpillet: hardware, license, software tools Mar 21 09:45:35 I work on Mac exclusively. Use VMs when I need other OSes but for iOS and Android development, a Mac is perfect Mar 21 09:45:58 alex_PP: oh Mar 21 09:46:38 You can start with free tools. Use Xcode for iOS dev, IntelliJ for Android (or Eclipse, or whatever you want that can drive the toolchain) Mar 21 09:47:19 fpillet: yeah, I'm quite proficient in Android, it's just that I wondered how much of a liability it was to not have iOS skills Mar 21 09:47:20 I use AppCode for iOS and OS X dev, and IntelliJ IDEA for Android dev. I paid licenses for both, although there is a Community Edition for IntelliJ that's free and perfect for Android dev Mar 21 09:47:29 alex_PP: I really had null set to "id", but I included R.id. So thanks, even though I found a better method for my issue :) Mar 21 09:47:54 fpillet: yeah, I use the CE of IntelliJ, a terrific program Mar 21 09:48:06 belgianguy: it depends on the company, really. In big structures you'll get away by being a single-platform guy Mar 21 09:48:21 But it's always good to develop a multiple platform skillset, if only from a cultural standpoint Mar 21 09:48:31 fpillet: yeah, I was pondering of starting my own business down the line Mar 21 09:48:44 so then it would be a must have Mar 21 09:49:00 Prior to what I'm doing, I had been a freelance dev for years, working exclusively on OS X then on iOS Mar 21 09:49:25 And I was doing quite well like this. I know freelancer who do only Android and have plenty work too Mar 21 09:49:34 s/freelancer/freelancers/ Mar 21 09:50:01 Should I do this differently? http://pastebin.com/pssGskMU Mar 21 09:50:39 Has anyone noticed the clock on the android emulator running very slowly? It seems to be gettting further out of sync with the actual time the longer the emulator is running. Mar 21 09:50:46 fpillet: ah, yeah, it's just that I had some possible leads, and they immedeatly mentioned both iOS and Android, and then it's hard to compete for one of those products if there are devs out there who have mastered both Mar 21 09:51:07 Devs who _master_ both platforms are not that many Mar 21 09:51:36 It was in the background for a good chunk of the time, which might be related. Mar 21 09:51:45 You'll have some competition, but certainly less than if you master a single platform Mar 21 09:54:04 fpillet: ah, good to know, maybe I'll find me an raggedy "just-good-enough" OS X box to get me started, and hopefully I can recoup the license fees of the tools Mar 21 09:54:23 Tools are fre Mar 21 09:54:25 free Mar 21 09:54:57 OSX certainly isn't free... Mar 21 09:55:01 unless you want to use AppCode, which is the best option IMHO for coding but doesn't have a UI editor built-in for iOS Mar 21 09:55:12 Leeds: if you buy a Mac, it comes bundled :-) Mar 21 09:55:24 oh, and Macs are free now? Mar 21 09:55:46 I'm only talking about license costs, not hardware costs. You're splitting hairs Mar 21 09:55:50 belgianguy: you can try a 'hackintosh' Mar 21 09:56:10 Does anyone know why it's not releasing (on some devices?) http://stackoverflow.com/questions/15541608/takepicture-failed-in-some-cases Mar 21 09:56:39 evertvdbruel: yeah, I've seen someone try that, and after weeks of fiddling even Newton wouldn't load Mar 21 09:57:06 you need some luck with your hardware Mar 21 09:57:20 but you can build a machine for a few 100euros Mar 21 09:57:54 I'm filling a dialog with text that comes from JSON and an image whose url is also retrieved from the JSON data, is there any way to pass both the String with the text and the downloaded bitmap from doInBackground to onPostExecute or do I need to make a new asynctask for the bitmap passing and update the imageview (actually icon) of the dialog from there (right now I'm creating the dialog in the code and not through xml, guess I will have to do it w Mar 21 09:57:54 ith xml in that case to update it from a second asynctask) Mar 21 09:58:31 azeam: put them in an object? Mar 21 09:58:39 that has a Bitmap and a String as members? Mar 21 09:58:46 belgianguy: Mid 2011 or Late 2012 Mac Mini with 16GB of RAM and SSD should do the trick ;) Mar 21 09:59:14 belgianguy: sounds logical :) Will have to look up how to do that, thanks Mar 21 09:59:20 fpillet: I've never seen a job ad for OS X devs. Maintainence and Administration yes, not dev. Mar 21 09:59:46 kakazza: thanks! that's an interesting combination Mar 21 09:59:51 kakazza: OS X dev jobs are very specialized, typically in companies producing commercial software Mar 21 09:59:57 'hackintosh' implies either paying full retail for OSX or using an unlicensed OS Mar 21 09:59:59 I see, fpillet. Mar 21 10:00:11 Whereas nowadays, every Joe wants his Android / iOS app Mar 21 10:00:26 heh Mar 21 10:00:26 So you logically see many more ads for mobile jobs Mar 21 10:00:44 Yeah, I'm freelancing for Android too, beginning with iOS now. Mar 21 10:01:11 I do like how easy Xcode makes it to develop simple Apps, but I'm a bit disappointed with the text editor when it comes to shortcuts. Mar 21 10:01:11 newbie here. Just downloaded ADT-eclipse bundle. Create test android project. Click 'Run'. Encountered pop-up dialog: 'Errors occured during the build' Errors running builder 'ANdroid package bulider on project 'Support4demos.' sun/security/x509/x500Name Mar 21 10:01:35 need help.. i want to build a 'hello world' android and copy it to my phone to see if it runs.. Mar 21 10:01:37 kakazza: I'm a loooong time OS X dev then iOS dev, and I totally switched to AppCode for coding Mar 21 10:01:43 I'm used to more options from vim and Eclipse. The sheer lack of 'Delete Line' and 'Duplicate' line struck me hard :\ Mar 21 10:01:54 And for the Storyboards? Mar 21 10:02:13 Ha I'm in a particular situation where we don't use xibs / storyboards at all Mar 21 10:02:24 library projects? Mar 21 10:02:25 So I don't miss anything from Xcode. But that's just me, most people still need it Mar 21 10:02:38 kakazza: I keep wanting to press ctrl-d in every text field anywhere Mar 21 10:02:57 'sun/security/x509/X500Name Mar 21 10:03:04 what is this error? Mar 21 10:03:11 Nah I work on a product that has it's own loadable UI, own UI file format etc. Nothing like your average app, so I'm really in a different situation than most devs Mar 21 10:03:34 True. But if you needed Storyboards? Mar 21 10:03:38 I don't. Mar 21 10:03:43 "if" Mar 21 10:03:47 But if you need then, use Xcode. Mar 21 10:04:06 There really is no way around it. Most people I know who are AppCode converts still have to use Xcode for XIB / Storyboard Mar 21 10:04:18 But that's fine, really. I still use Xcode too to produce release builds Mar 21 10:04:18 pythonicon: you get a few hits if you google that sun/security/x509/X500Name Mar 21 10:04:41 pythonicon: using SSL or something that needs a certificate? Mar 21 10:05:00 i elready downloaded oracle jdk Mar 21 10:05:09 Anyway this is an Android channel, so let's not pollute by talking iOS stuff here. You can check out #iphonedev for that Mar 21 10:05:33 fpillet: true, sorry for OT, thanks for all the info, back to Android Mar 21 10:09:51 belgianguy: i read a few recently that devs knowing more than one platform make quite a bit more Mar 21 10:10:19 trying to remember where i saw that though. anyhow, you don't do yourself any favors knowing a single platform Mar 21 10:10:48 g00s: ah, yeah it's why I left C# in the first place as I felt trapped (looong ago) :) Mar 21 10:11:36 but as I'm now totally geared towards mobile, broadening the scope is an option to consider Mar 21 10:11:52 also, depending on how you add the numbers, iOS can be cheaper to develop for Mar 21 10:12:00 belgianguy: Actually you may be able to come back to it. Check out Xamarin, it looks interesting. Mar 21 10:12:12 depends on the number of test devices you have. the more serious you are, the more devices you'll have :) much more for android Mar 21 10:12:40 fpillet: yeah I know about Xamarin and MonoDroid etc, but it's really long ago (thesis was in C# on an actual tabletop Surface) Mar 21 10:13:05 g00s: good point Mar 21 10:13:09 Looks like they made quite some progress lately (or so it seems) Mar 21 10:13:14 I don't have an iOS test device :/ Mar 21 10:13:28 simulator is fine Mar 21 10:13:35 I agree with the test device stuff. But you can perfectly do most of your dev with the Simulator for iOS. On Android, I just can't use the emulator at all Mar 21 10:13:40 belgianguy: a lot of data in here http://www.visionmobile.com/product/developer-economics-2013-the-tools-report/ Mar 21 10:13:48 fpillet: Why can't you use it? Mar 21 10:14:12 I would spend my DAY waiting for it, it's awful (and I'm developing on a 5 yo machine that's 64 bit BUT apparently the Intel acceleration thing just doesn't work on it for the emulator) Mar 21 10:14:18 kakazza: because it's way too slow Mar 21 10:14:31 It's not when you do it right. Mar 21 10:14:47 As mentioned above, the intel accelerator doesn't work on my machine Mar 21 10:14:52 It's faster or as fast as my hardware device. Mar 21 10:15:03 What machine is that? And did you install the Kernel Extensions? Mar 21 10:15:11 read what I wrote. Mar 21 10:15:32 I see nothing mentioning Kernel Extensions. Mar 21 10:15:42 No I said "intel accelerator" Mar 21 10:15:47 it's the same thing IMHO Mar 21 10:15:48 I just ask because 90% of the people here just try the x86 image without installing the extensions. Mar 21 10:15:57 at least on OS X Mar 21 10:16:00 fpillet: the x86 images are pretty decent; but as of now you can't use google apis or play services on them; so that limits their utility Mar 21 10:16:04 I _am_ on OS X. Mar 21 10:16:13 Well the kext works for you then Mar 21 10:16:17 It didn't for me Mar 21 10:16:28 But I run on a 2008 MacPro :-) Mar 21 10:16:31 I use HAXM 1.04 because the 1.01 you get through the SDK manager crashes OSX. Mar 21 10:16:34 fpillet: what processor? i have an old Cure 2 Duo in my machine Mar 21 10:16:47 kakazza: where did you get that ? Mar 21 10:17:14 g00s: 2008 MacPro with 2xquad-core Xeon Mar 21 10:17:15 I'm running a Mac Mini Late 2012. 4.2.2 x68 Emulator with GPU Host emulator. Emulator is flying. Mar 21 10:17:21 http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager Mar 21 10:17:27 ok, thanks Mar 21 10:17:32 known issues, reported on the Android Issue tracker, too. Mar 21 10:17:47 yeah - the first time i tried haxm (1.0) it brought down the whole machine; i thought my FS was corrupted too Mar 21 10:17:50 It's has 64 bit EFI, but it seems the processor doesn't have Intel VT support Mar 21 10:18:01 fpillet: YOu must make enough money to buy a new one, no? ;) Mar 21 10:18:27 kakazza: I get away with working on devices exclusively Mar 21 10:18:36 I recently replaces the Mid 2011 Mac Mini with the Late 2012 with only little extra money. (I do like the high resell value of Mac Hardware, I admit) Mar 21 10:18:53 And MacPros are VERY expensive nowadays. Mine still kicks ass (bumped it with SSD & 16GB ram) Mar 21 10:19:11 Are you talking about the Retinas? Mar 21 10:19:22 Do you know what a MacPro is? Mar 21 10:19:28 Not MacBookPro Mar 21 10:19:28 Ah, MacPro Mar 21 10:19:33 The lost child Mar 21 10:19:37 The beast Mar 21 10:19:44 The very slow, outdated beast. Mar 21 10:19:48 A very tame beast. Mar 21 10:20:03 That's what you think. Mine is not very slow (in day to day usage, I don't look at useless benchmarks) Mar 21 10:20:04 Ok, 'very slow' was harsh. Mar 21 10:20:05 i'd buy a Mini Pro :) Mar 21 10:20:37 fpillet: It's old and many people hope for an update. Did they receive one recently? Mar 21 10:20:39 Actually stuff it with a SSD and lots of RAM, and it flies. Maybe not as much as modern machines, but far enough for dev Mar 21 10:21:21 Only incremental updates, then they pulled it from market in Europe because they don't comply with green rules anymore, or something like that Mar 21 10:21:42 Supposedly going to release a new line this year but we'll see. Mine is going to give me good service for a couple more years. Mar 21 10:22:10 holy shit Mar 21 10:22:13 5 years of great service and counting, it's worth every single euro I put into it Mar 21 10:22:29 Google finally fixed the darned wrong url in refund requests, after only 18 months of nagging Mar 21 10:22:41 BTW there is a bug in the Emulator I can't live with Mar 21 10:22:50 Which? Mar 21 10:22:53 Webview Mar 21 10:23:07 Known and reported bug? Mar 21 10:23:07 Crashes hard, and i don't think it's ever been fixed Mar 21 10:23:15 Yeah known bug Mar 21 10:23:22 Certain WebViews or all of them? Mar 21 10:23:34 Only the Java <-> JS interface IIRC Mar 21 10:23:42 Ah, I see. Mar 21 10:23:46 Which is a fundamental part of the product I'm working on Mar 21 10:23:54 So, no hope for me on this front. Mar 21 10:24:42 I still compile my native code to all for proc targets, though. You never know, maybe one day x86 will be good to something :-) Mar 21 10:24:48 s/for/four/ Mar 21 10:26:22 JakeWharton: Hi! can I use the support-library v8 with ActionBarSherlock? Mar 21 10:27:19 guys, is there any good library that would provide a syncable persistent store? (to be used for "inbox", "friend list" etc. functionality)? Mar 21 10:27:59 Mavrik: dropbox? Mar 21 10:28:39 uh. Mar 21 10:29:03 Firebase, too Mar 21 10:29:10 didn't mean it that way - basically a lib that would ease accessing data stored on the device and being synced from server Mar 21 10:29:18 not a service for my users :P Mar 21 10:29:24 Well that's what dropbox does :-) Mar 21 10:29:38 Oh you need to have your own server? Mar 21 10:29:50 uh no Mar 21 10:29:58 I have a server which tracks inbox and friends list for my users Mar 21 10:30:06 and I want to cache that data locally in my app Mar 21 10:30:18 and I'm just wondering if there's a lib that would save me the pain of writing sync code :) Mar 21 10:30:40 Distributed key-value stores will do, I guess Mar 21 10:31:01 Like MongoDB Mar 21 10:31:55 or CouchDB Mar 21 10:32:25 dude. Mar 21 10:32:48 are you suggesting I run MongoDB on users Android devices? Mar 21 10:34:06 There are several distributed key-value stores out there. Pick the one that suits you, I'm not suggesting anything. Mar 21 10:35:49 Which of these should I use? Or is there maybe a better way? http://pastebin.com/Ug2sz38f Mar 21 10:37:52 Personally I'd go for the loop, because if you mess up, every button is messed up. In the lower version if you do a typo it's a searching game. Mar 21 10:40:54 when i open AndroidManifest.xml in Eclipse, it is saying AppName Manifest. I am wondering if this is related to the error I am having. Is this normal for eclipse to do? Mar 21 10:42:24 kakazza: I've read that the getResources().getIdentifier() could be a bit slow though Mar 21 10:43:00 its discouraged in javadocs Mar 21 10:43:06 You do that once, no? Mar 21 10:43:07 Hello everybody Mar 21 10:43:20 I'm using ActionBar and SearchView. I'm using android:logo instead of android:icon for the ActionBar, but when i open the SearchView it switches to the android:icon, any ideas as how to solve this? Mar 21 10:43:36 I have checked the Manifest. I have checked the source. I have googled this, but I am still getting this 03-21 04:39:30.748: E/AndroidRuntime(21020): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=ch.expectsafterlun.limo.Menu } Mar 21 10:43:43 any ideas? =( Mar 21 10:44:01 did anyone here ever experienced strange behaviour on listvie? e.g displayed listview as 1.2.3 to 9, when i scroll the listview. the position changed. like 1.9.3.5.2.... Mar 21 10:44:01 kakazza: for all the 20 buttons onCreate and onResume Mar 21 10:44:10 *listview Mar 21 10:46:20 Hello guys, I want to add my activity with a side menu based on a listview, or at least based on a list and not on menu. What's the best opensource library for such a task? I don't want to waste time in reinventing the wheel, while there are opensource solutions. Mar 21 10:48:15 So in short, I pass my custom adapter to a sidebar view, and when click on a button, show/hide the sidebar. Mar 21 10:48:36 when i open AndroidManifest.xml in Eclipse, it is saying AppName Manifest. I am wondering if this is related to the error I am having. Is this normal for eclipse to do? Mar 21 10:49:57 Hi guys Mar 21 10:51:59 Hi guys i am doing translate animation where i need to move my view( which is at the center of the screen ) upward so that it can fit to the container placed 9dp from top.I have figured it out that if i translate view from 0%p to 52%p it will exactly fit the in the container layout for XHDPI devices.which worked perfect on google galaxy nexus device ( 720 X 1280 ) but the same thing is not working on samsung s3.In S3 i need Mar 21 10:52:06 Well i'm trying to port AOSP Rom to I9070P there is an Device Tree and there are Kernel Sources for Samsung Stock Rom. How i can modify it to use it for AOSP? Mar 21 10:52:25 why is it so even both devices's resolution is same Mar 21 10:53:04 and how can i overcome with this problem Mar 21 11:01:26 lulz`: It's suppose to say the the folder name of your eclipse project... Mar 21 11:02:24 so it's probably not whats the problem, have you tried looking in the "problems" view? Mar 21 11:02:57 Number5: i think there's no need extra libs for thos stuff. Mar 21 11:09:51 weird, i can't get the emulator rot rotate Mar 21 11:11:37 ctrl+f12 ? Mar 21 11:11:44 nope, does nothing Mar 21 11:11:53 i do have it set as "hardware keyboard present" maybe that's it? Mar 21 11:12:22 it's not the problem, i guess. Mar 21 11:12:38 did you see keyboard in your emulator? Mar 21 11:12:45 yeah it works in the emulator Mar 21 11:12:55 MroiZo -> i found the problem. it was more involved than i thought. this keyword was referring to a different class than the Splash.java class, so i changed this to Splash.this Mar 21 11:13:05 so, what's the problem funkbox? Mar 21 11:13:10 xviv: it does not rotate Mar 21 11:13:25 what it does i do not know, but it does whatever it does in portrait Mar 21 11:13:33 lulz`: That's happend a couple of times for me too :) Mar 21 11:14:01 funkbox: try opening menu drawer before rotating, because it won't rotate at home screen Mar 21 11:14:02 I started always using namsspace when using "this" Mar 21 11:14:29 now i know. i won't make that mistake again. i have learned from it. Mar 21 11:14:44 xviv: nothing, using the nexus 7 emulator Mar 21 11:15:37 funkbox: did the F* key fully functional in your emulator? Mar 21 11:15:46 like F6 for disable internet Mar 21 11:16:14 nothing seems to be happening Mar 21 11:16:45 watch your 3G signal bar. does it change when you press F6 ? Mar 21 11:17:52 it does not Mar 21 11:18:12 well, try create new emulator then. Mar 21 11:18:21 with diffs spec Mar 21 11:18:24 and conf Mar 21 11:19:46 eh ill fsck with it later Mar 21 11:26:17 xviv: but thanks, i'll look into it Mar 21 11:51:05 I have a gridview that is filled with images and i've applied animations to the child views. the problem im having is when the app first loads the animation seems to slow down a bit and kind of stutter when there are lots of images/child items. animation is smooth when there is a smaller amount of child items to animate... any suggestions on improvements to make it more smooth under any condition? Mar 21 11:52:19 good evening :) I would like to draw a circle/elipse shape on the screen... it will change shape dynamically... any ideas how I can do this? Mar 21 11:55:25 Please help me on this guys weird issue : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3 Mar 21 12:06:04 ise really important? i mean.. i've lots of uses-permission and it works well without the uses-feature? Mar 21 12:07:45 I guess that depends if you use the feature or now misterli Mar 21 12:07:54 evidence would suggest you do not Mar 21 12:09:10 okay. Well.. does it mean if i uses-feature android.hardware.bluetooth and set it to required is false that it will be listed for all devices which dont have bluetooth too? (even if have uses-permission for bluetooth)? Mar 21 12:11:19 misterli: there's now way an android phone without bluetooth, cmiiw. Mar 21 12:11:54 Can my app somehow change preferences of some other app? Mar 21 12:12:14 Yea, this was just an example. then android:name="android.hardware.telephony" android:required="false" and Mar 21 12:12:14 for example Mar 21 12:13:14 xviv: assuming there is no phone without bluetooth is really the worst example you can do. you have no idea what stuff will be build, so always do it right and not ASSUME stuff Mar 21 12:13:27 that might be right now (and even that isn't necessary) but might be wrong in future Mar 21 12:15:13 timroes: i think you mispelled misterli name? :/ Mar 21 12:15:32 (13:11:19) xviv: misterli: there's now way an android phone without bluetooth, cmiiw. Mar 21 12:15:48 Yea. How about the other example? Mar 21 12:16:01 well.. okay i got it. Mar 21 12:18:22 yo timroes, i got strange behaviour from my listview. it changes it's own posisition whenever i scroll it up and/or down Mar 21 12:18:50 e.g my list displaying 1.2.3.4. but after scrolling it turns into 4.2.3.1 Mar 21 12:19:00 i have no idea what's wrong :| Mar 21 12:20:25 is there a way to disable logcat levels depending on whether the apk is signed or not? Mar 21 12:36:39 how to have one typeface for different styles? Mar 21 12:37:09 for example I'm showing a rich html text in textview via Html.fromHtml(String) Mar 21 12:37:29 now I can only set a regular type of the typeface from assets Mar 21 12:38:14 how can I create a complex typeface, that will contain regular bold italic styles in one? Mar 21 12:38:31 that should be possible Mar 21 12:41:33 Hey guys is translate animation in OS 4.1 buggy? Mar 21 12:42:28 I have a question on StackOverFlow where comments are translate animation in OS 4.1 is buggy . : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3/15547445?noredirect=1#comment22030031_15547445 Mar 21 13:13:49 Hi Mar 21 13:14:04 Where can I find how to do viewpager with the "native" fragment api (so no support classes) Mar 21 13:14:07 or is there no way? Mar 21 13:14:28 I want to use the preferencefragment and so on but that is only in the real fragment api and not the compatability api Mar 21 13:16:04 I don't know how I can google for Viewpager "NOT V4 compatability" Mar 21 13:16:33 Because the viewpager appears not to be compatible with the android.apps.fragment Mar 21 13:27:08 hello guys! Mar 21 13:27:23 I'm trying to add some jar's I've downloaded from teh net to my project Mar 21 13:28:04 place them into the libs folder in your project Mar 21 13:28:07 what I've done is use "Import" in Eclipse Mar 21 13:28:14 09:28:10 < timroes> place them into the libs folder in your project Mar 21 13:28:19 and then build path - add jar Mar 21 13:28:29 meh eclipse, i am out :D Mar 21 13:28:37 however, the process crashes on a call to one of those jar's Mar 21 13:29:10 I can;t debug it, since when I put a breakpoint on that call Mar 21 13:29:19 09:28:20 < lov> 09:28:10 < timroes> place them into the libs folder in your project Mar 21 13:29:23 the debugger basically stops, gives me an error about missing code Mar 21 13:29:29 hey, isemenov Mar 21 13:29:31 stop. Mar 21 13:29:32 lov: done that Mar 21 13:29:42 to no avail Mar 21 13:29:46 ok, you shouldn't need to mess with build properties in that case. Mar 21 13:29:51 ok Mar 21 13:30:00 stop! In the name of lov... Mar 21 13:30:03 It's possible that your libraries aren't actually getting exported because you messed with the build properties Mar 21 13:30:09 k Mar 21 13:30:15 lol Mar 21 13:30:15 so, uh, check that. Mar 21 13:30:18 they are not my libs, but rather exteranl Mar 21 13:30:22 no shit. Mar 21 13:30:27 k Mar 21 13:30:31 how can I cjeck that? Mar 21 13:30:37 if they are exported or not? Mar 21 13:30:48 lov: lolllllll Mar 21 13:30:55 Java build path -> order and export Mar 21 13:30:55 ok, I will remove the jars from the build path and from the project now, to start off clean Mar 21 13:31:00 yeah, just do that instead. Mar 21 13:31:05 thanks. Mar 21 13:31:17 i havent been paying attention, but adding something to your path TWICE is equally a bad idea Mar 21 13:31:48 true, but at least that's a compile error Mar 21 13:31:58 yah, one taht took me a minute to figure out last year Mar 21 13:32:01 the compiler gives you a verbose and quite excellent earful about it. Mar 21 13:32:16 erm, IIRC the compiler told me it was a classnotfoundexception Mar 21 13:32:18 lov: so, do I need to check those jar's in the order and export tab? Mar 21 13:32:45 lov: what I'v edone this time is use "add external jars" Mar 21 13:32:54 and then chekc them in the order and export tab Mar 21 13:32:58 should that be enough? Mar 21 13:33:17 no goddamnit. Mar 21 13:33:22 09:29:24 < lov> 09:28:20 < lov> 09:28:10 < timroes> place them into the libs folder in your project Mar 21 13:33:25 THE END. Mar 21 13:33:29 ok Mar 21 13:33:29 ahh :D Mar 21 13:33:32 lol Mar 21 13:33:34 why did I write this :D Mar 21 13:33:37 so many highlights Mar 21 13:33:38 lov: just mv them by hand right? Mar 21 13:33:41 Hello i would like to make an android application, what should i ask to a designer (which size/resolution) in order to cover all the screens resolutions ? Mar 21 13:33:43 timroes, timroes? timroes! Mar 21 13:33:48 just place them into the libs folder, refresh your project, and build. Mar 21 13:33:54 Is it possible to customize the layout of an ActionBar? Mar 21 13:33:59 isemenov, yes, flip those bits Mar 21 13:34:01 lov: and the buildpath and the order and export tab? Mar 21 13:34:02 LiohAu: that's going to take a while. There are literally hundreds of configurations. Don't try for pixelperfect. Mar 21 13:34:06 isemenov: DO NOT TOUCH THEM. Mar 21 13:34:08 LiohAu: Android uses dynamic UI stuff Mar 21 13:34:11 isemenov: DO NOT TOUCH THE BUILD PROPERTIES. Mar 21 13:34:29 isemenov: jars in the libs/ directory are automatically included in your project Mar 21 13:34:31 lov: and the ordertab? Mar 21 13:34:35 :| Mar 21 13:34:37 .... Mar 21 13:34:41 sure, but a graphist use photoshop, so what should be the size of its deliverables ? Mar 21 13:34:44 dude, isemenov, have you built java apps before? Mar 21 13:34:58 kaneda^: nope. I'm learning right now. Mar 21 13:34:58 there are certain libs that are on your classpath, others you need to add to your jar and export them Mar 21 13:35:02 LiohAu: whatever you want them to be, just make sure they make mdpi, hdpi, and xhdpi resources. Mar 21 13:35:03 ok Mar 21 13:35:14 if you put something in your lib folder it's BOTH on your classpath AND added to be exported Mar 21 13:35:17 LiohAu: you should composite your layouts out of multiple objects, which are going to be sized by relative values. Mar 21 13:35:18 lov, how do you explain that to a non-android dev ? Mar 21 13:35:34 LiohAu: "Pretend you are making a website and you need to support every screen size possible, including resizing the browser window" Mar 21 13:35:35 isemenov, this is only true for the lib folder in your ANDROID project Mar 21 13:35:53 lov, we do that here Mar 21 13:35:57 kaneda^: ok, so all I ned to do is physically copy the jars to the lib dir? Mar 21 13:36:05 isemenov, yessir Mar 21 13:36:10 no settings required at all? Mar 21 13:36:15 great, let's try Mar 21 13:36:23 TIAS (try it and see) Mar 21 13:36:25 LiohAu: send this to him: https://developer.android.com/design/style/devices-displays.html Mar 21 13:36:29 isemenov: I suggest using a shovel, pat them down well once you get them in there Mar 21 13:36:52 LiohAu: also, optionally, https://developer.android.com/training/multiscreen/index.html Mar 21 13:37:24 lov: anyway, when making a website, you graphist will start with a 1024 or a common resolution, this is the developer job to determine where there are repetition Mar 21 13:38:07 so should i ask a my graphist to use 2560x1600 which is the Extra high density (320), xhdpi for tablets ? Mar 21 13:38:13 kaneda^: anyway, my error was not in the build, but rather at runtime Mar 21 13:38:18 LiohAu: my point is that you don't make a website that looks ok in 1024x768 and then looks extremely tiny for anyone at 1920x1600 or whatever Mar 21 13:38:19 let's see of this approach solves it Mar 21 13:38:21 isemenov, classnotfoundexception? Mar 21 13:38:34 kaneda^: nope, IIRC invocaitontargetexception Mar 21 13:38:54 LiohAu: you can do that, but you might want different layouts for large screens vs large phone screens vs regular phone screens. Mar 21 13:39:00 kaneda^: nope, crashed again. Mar 21 13:39:03 lov yes Mar 21 13:39:10 kaneda^: worst thing is, I can't debug it Mar 21 13:39:12 e.g. worry about 2560x1600, 1600x1200, 856x400, 480x300 Mar 21 13:39:17 kaneda^: I put a breakpoint on the call Mar 21 13:39:20 these are ALL possible resolutions that your app will run on. Mar 21 13:39:29 then when I reach it, I get a "source not found" and the debugger stiops Mar 21 13:39:30 isemenov: pastebin your stacktrace plx Mar 21 13:39:31 stops Mar 21 13:39:46 lov: where can I obtain that? Mar 21 13:39:47 also, the dalvikvm statements in the logger which says exactly what wasn't found and why Mar 21 13:39:50 * lov sighs Mar 21 13:39:50 isemenov, invocationtargetexceptino is just a wrapper for a RUNTIME exception Mar 21 13:39:58 isemenov, for all you know that's a nullpointer Mar 21 13:40:04 http://developer.android.com/tools/debugging/index.html Mar 21 13:40:11 lov yes ok, but what do you ask to a designer that don't know the android platform ? Mar 21 13:40:22 in other words, there's probably more to that stack trace then you think isemenov Mar 21 13:40:41 LiohAu: you ask him to learn Mar 21 13:40:45 he will understand that there are areas that will be extended, and that he should do differents screens for small/big screen Mar 21 13:40:56 LiohAu: what do you ask a designer that's never used a mac? Mar 21 13:41:10 lov: which logger exatly? Mar 21 13:41:15 logcat? Mar 21 13:41:28 LiohAu: tell him that whatever he designs needs to be composited out of smaller elements, flat out, and that he must not make pixelperfect designs. Mar 21 13:41:29 isemenov, yes Mar 21 13:41:56 kaneda^: well logcat has a lot of red errors Mar 21 13:42:01 but I see nothing relevant there Mar 21 13:42:11 isemenov, just paste the stack trace Mar 21 13:42:21 into pastebin or whatever Mar 21 13:42:28 isemenov: and since you're an expert - more than people here with years of experience of Android - you can tell at a glance what is relevant and what isn't Mar 21 13:42:52 Leeds: I fail to get your irony Mar 21 13:42:59 "fix my problem without a log cause I dont see anything wrong there" ? Mar 21 13:43:03 wher's the irony in that? Mar 21 13:43:06 where is the stack trace ui located please? Mar 21 13:43:11 it's not irony, it's sarcasm Mar 21 13:43:14 it's in logcat Mar 21 13:43:16 ah anyway Mar 21 13:43:20 e.g., in your logcat view Mar 21 13:43:30 or if you go to console, adb logcat Mar 21 13:43:33 ok, which level do I need to set logact to? Mar 21 13:43:40 stack traces will always show up Mar 21 13:43:48 just get the complete stack trace and pastebin it Mar 21 13:43:51 seems we don't understand each other, so i'll talk with iOS as an example : when using iOS, there are 5 possibles resolutions, iPhone, iPhone retina (iPhone x2), iPad, iPad retina (iPad x2) and iPhone 5 (which is different). I know that the graphist has to deliver the 5 sizes resources, and that he has to make 2 different layout for tablet/phone, but when he stats photoshop he creates 2 documents one with 2 048 x 1 536 and one wi Mar 21 13:44:31 can any one help me too : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3/15547445?noredirect=1#comment22031180_15547445 Mar 21 13:44:36 LiohAu: this isn't #ios-dev - things don't work the same Mar 21 13:44:38 LiohAu, he needs to create assets for you in different PIXEL DENSITIES Mar 21 13:44:53 LiohAu, and then you place them as accurately as possible, but it will not look IDENTICAL on different densities/resolutions Mar 21 13:45:14 i know that, but which size should he use for its first document in photoshop Mar 21 13:45:31 i just want the size of its first document in photoshop Mar 21 13:45:36 ??? Mar 21 13:45:47 LiohAu, i'd guess the highest one, obviously Mar 21 13:45:49 kaneda^: ok got a tack trace Mar 21 13:45:51 LiohAu: My creative team does it at 1080p Mar 21 13:46:01 nseidm1, they arent doing it in 4k yet? Mar 21 13:46:08 lol Mar 21 13:46:27 kaneda: typically I ask for 720p for xhdpi and then tweak from there as a base Mar 21 13:46:37 kaneda^: http://paste.kde.org/701636/ Mar 21 13:46:49 lov: in case you're interested, http://paste.kde.org/701636/ Mar 21 13:47:03 nseidm1, fair enough, i just let the designers figure it out based on the target densities and sizes Mar 21 13:47:33 nseidm1: what the fsck do you think the p in 1080p means? Mar 21 13:47:54 the code I'm basing this off is Mar 21 13:47:56 http://stackoverflow.com/questions/9263530/accessing-emails-from-gmail-using-imap-javamail-api Mar 21 13:48:00 Leeds: Irrelevant, I'm just referring to 1920x1080 Mar 21 13:48:06 isemenov, that doesnt look like your stack trace Mar 21 13:48:19 and I like p better than i Mar 21 13:48:20 then call it 1920x1080 rather than using a measurement which only refers to moving images Mar 21 13:48:21 kaneda^: this si what was in logcat Mar 21 13:48:27 isemenov, that looks like something else, unless you wrote com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116 Mar 21 13:48:40 isemenov: what does the second line of that trace say? Mar 21 13:48:40 isemenov, i dont think you've captured the stacktrace from your app Mar 21 13:48:46 please filter by app first Mar 21 13:49:01 kaneda^: look. Mar 21 13:49:14 see com.example.boundservicetest? Mar 21 13:49:17 this si my app. Mar 21 13:49:18 nope Mar 21 13:49:18 isemenov: what does the second line of that trace say? Mar 21 13:49:22 Leeds: ^^ Mar 21 13:49:28 heh .... i saw it! Mar 21 13:49:33 the name of my app is in the log Mar 21 13:49:40 isemenov: what does the second line of that trace say? Mar 21 13:49:44 shall I keep asking? Mar 21 13:49:46 :P Mar 21 13:49:47 isemenov, com.example.boundservicetest.TestBoundService$IncomingMessageHandler.handleMessage(TestBoundService.java:43) Mar 21 13:49:52 Leeds: isnt' the name of mya ppa present enough?? Mar 21 13:49:55 isemenov: what does the second line of that trace say? Mar 21 13:49:58 ohdear Mar 21 13:49:59 Hey Mar 21 13:50:04 kaneda^: yes exactly Mar 21 13:50:07 that's my service Mar 21 13:50:10 answer the question, you blithering idiot Mar 21 13:50:13 .. Mar 21 13:50:15 can I use a simplelistadapter for showing prayer times? Mar 21 13:50:16 hahahahahahh Mar 21 13:50:18 isemenov, WHAT DOES THE 2ND LINE OF THE STACK TRACE SAY Mar 21 13:50:24 just in case you didn't understood, this is the way photoshop create documents : http://akvis.com/img/tips/document-preset/new.gif => 3 fields WIDTH / HEIGHT / RESOLUTION, => ok you resolution it's easy since it's given on android developer website, but which width/height do your crea team use ? Mar 21 13:50:24 put it all together Mar 21 13:50:25 03-21 13:44:21.918: E/AndroidRuntime(1778): android.os.NetworkOnMainThreadException Mar 21 13:50:41 network on MAIN THREAD exception Mar 21 13:50:47 isemenov: now, using your apparently limited knowledge of the English language, add some spaces, and see if you can tell what the problem is Mar 21 13:51:11 Leeds: no need to insult. sarcasm is ok, but not insults. Mar 21 13:51:17 nah, insults are fun Mar 21 13:51:20 nope. Mar 21 13:51:32 but, I wonder Mar 21 13:51:36 can I use a simplelistadapter for showing prayer times? Mar 21 13:51:39 kaneda^: I love that error, it breaks every piece of sample code on the net Mar 21 13:51:41 the guy what posted that code, and calimed it to work Mar 21 13:51:54 particularly when dealing with someone with the apparent comprehension of a pair of diseased dingo kidneys Mar 21 13:52:00 i'm sure it does work, when you arent doing network on the main thread! Mar 21 13:52:11 isemenov: it probably did on an earlier version of android. Not anymore. Mar 21 13:52:14 kaneda^: but his code does jsut that Mar 21 13:52:22 Ankhwatcher: aaaww ok thank you! Mar 21 13:52:24 yah, it's probably for an early version Mar 21 13:52:30 lots has changed since 1.x Mar 21 13:52:36 even more since 2.3.x Mar 21 13:52:51 oh my, now I need to figure out threads. Mar 21 13:52:57 -_- Mar 21 13:52:57 a couple more days Mar 21 13:53:00 god speed Mar 21 13:53:14 god speed? Mar 21 13:53:18 isemenov: doing network calls on the main thread could freeze up the application=> terrible experience for users Mar 21 13:53:29 dont use threads in android, use an asynctask or something Mar 21 13:53:31 Ankhwatcher: but it's a service in a sseparate process Mar 21 13:53:33 isemenov: a saying Mar 21 13:53:43 kaneda^: asynctasks are run on threads :) Mar 21 13:53:49 p_l, yes, but they're executors Mar 21 13:54:01 well anyway, I got some android docs here ;) Mar 21 13:54:06 thank you a lot for the help Mar 21 13:54:36 using debuggers correctly is my problem indeed Mar 21 13:54:59 well that was fun Mar 21 13:55:01 paying attention to advice is a problem... Mar 21 13:55:16 Leeds: excuse me? Mar 21 13:55:20 Can anyone answer my question? Mar 21 13:55:21 I suck at houmour really Mar 21 13:55:25 humour, darn Mar 21 13:55:41 Ilhami: your question doesn't really make sense, to be honest Mar 21 13:55:42 lol darn Mar 21 13:55:49 Why doesnt it make sense? Mar 21 13:55:53 or we could say humor, actually Mar 21 13:56:01 Ilhami, because prayer times are not an object Mar 21 13:56:02 Ilhami: well what is in a prayer time Mar 21 13:56:05 they aern't a list Mar 21 13:56:05 For showing prayer times which differ from day to day.. Can I use a simplelistadapter? Mar 21 13:56:07 they arent a set Mar 21 13:56:16 Ilhami: for convenience, let's say "yes" Mar 21 13:56:26 lol Mar 21 13:56:32 if they are in a List Mar 21 13:56:48 Prayer times: fajr .... 4.55 Mar 21 13:56:50 like this Mar 21 13:56:53 without the dots Mar 21 13:56:55 LOL Mar 21 13:56:59 ... Mar 21 13:57:00 its only this Mar 21 13:57:02 I suggest using a GLSurface Mar 21 13:57:05 Ilhami, are you familiar with java datatypes? Mar 21 13:57:07 because... why not? Mar 21 13:57:08 * kaneda^ slaps Leeds Mar 21 13:57:29 kaneda a bit Mar 21 13:57:39 but new to Android Mar 21 13:57:51 Ilhami, well, simplelistadapter would take a list, a list is an interface which is part of java collections Mar 21 13:58:13 Ilhami, there are implementations of lists that you would use to this end, that would hold perhaps the "Double" class Mar 21 13:58:18 someone told me about lazy loading yesterday Mar 21 13:58:22 or perhaps a Date class Mar 21 13:58:33 for instance, an arraylist Mar 21 13:58:34 Have any of you worked with gson deserializing? I'm getting an array of [long][float] and I'm not sure how to deserialize it. I can get it into a [float][float] array Mar 21 13:58:52 but I loose some of the accuracy of my longs if I convert from that Mar 21 13:59:15 a float has half the precision of a long, and is stored differently internally Mar 21 13:59:23 how am I going to retrieve the prayer times though? Thats also a challenge. Mar 21 13:59:28 half the bitwidth, i should say, FAR less precise Mar 21 13:59:43 Ilhami, you can store them in a database, or in a file somewhere Mar 21 13:59:47 Ilhami, that's entirely up to you Mar 21 14:00:10 whats the best practice? Mar 21 14:00:12 kaneda^: well I want to not use the floats at all, if I can feed GSON a map that would be perfect, but I'm not sure how Mar 21 14:00:34 Ilhami, depends on your need, with things that are constantly being updated and aggregated, a database is the best practice Mar 21 14:00:38 storing in a file is faster right? Mar 21 14:00:41 Ilhami: I'm not really sure how to answer that. Aren't prayer times fixed at certain times during the day? Can't you just determine sun-up and sun-down for the day and use that? Mar 21 14:00:49 Ilhami, depends if you're good with database Mar 21 14:00:57 i could do it in a database faster than in a flat file generally Mar 21 14:01:07 yeah, a database is probably quicker. Mar 21 14:01:12 because it would require writing some encoder if non-standard and some regex decoder Mar 21 14:01:24 yes they are fixed at certain times... Mar 21 14:01:29 or using, *shudder* xml Mar 21 14:01:32 or maybe json Mar 21 14:01:33 I know that the US Naval Obs. provides sun-up and sun-down times. You might want to just pre-package them into the app and do interpolations. Mar 21 14:01:37 but its 5 prayers a day. Mar 21 14:01:40 not only 2 hehe Mar 21 14:01:59 Ilhami: dawn, mid-morning, noon, mid-day, dusk, right? Mar 21 14:02:10 (Not muslim, don't actually know) Mar 21 14:02:12 Ilhami, the other thing is that you need to take into account time zones and the like on the logical end Mar 21 14:02:18 yes, this too. Mar 21 14:02:34 You also have to consider funny places like the arctic circle where the sun doesn't set for 6 months Mar 21 14:02:38 Maybe I should recruite someone who can help me. Mar 21 14:02:40 indeed Mar 21 14:02:54 Ilhami, look at the Java "Date" and "TimeZone" classes for localization Mar 21 14:02:55 that might be a good idea. It really depends on A) how rigorous you want to be and B) whether anyone else is going to use this. Mar 21 14:03:04 If it's just for you, you can put in the fixed times for your own location. Mar 21 14:03:14 you could route it all through a server Mar 21 14:03:20 that's not a terrible idea either. Mar 21 14:03:25 and have the server determine the locale Mar 21 14:03:32 No its not just for me.. It is something which should benefit all muslims.. Mar 21 14:03:43 your simple android app just became a startup Mar 21 14:03:45 Ilhami: that's fair, but I can't imagine that this hasn't already been done yet. Mar 21 14:03:57 i would imagine such a thing exists, indeed Mar 21 14:04:02 yeah, I'm pretty sure there are already prayer time apps Mar 21 14:04:09 lov I know it has been done but its not going to contain prayers times only Mar 21 14:04:36 * xviv agree with Leeds Mar 21 14:04:37 Maybe some books in the app would be nice.. Islamic knowledge. Mar 21 14:04:53 Ilhami, there's DEFINITELY multple koran apps Mar 21 14:05:00 yup Mar 21 14:05:03 anyone know of an app like bloomberg that has real-time financial alerts? Mar 21 14:05:30 funkbox: search for "real time financial alert" in google play Mar 21 14:05:31 not only Quran kaneda. I want it to become a study app where you can study several things regarding Islam Mar 21 14:06:05 but since prayer is the most important thing in Islam after the testimony of faith the prayer times have to be in there. Mar 21 14:06:08 Ilhami: I'd recommend scoping out your project before doing anything. List everything that you plan on doing, and if you're not going to do it all at once list what phases they'll hapen in. Mar 21 14:06:21 Ilhami, have you created an app before? not just for mobile, maybe for desktop or someting. Mar 21 14:06:30 yeah, that too. Mar 21 14:06:37 I have made some java apps before yes Mar 21 14:06:49 You may wish to walk before you run. Make some proof of concept apps. Mar 21 14:07:32 I think I have to do what lov recommended Mar 21 14:07:45 List everything I want in the app Mar 21 14:08:14 Ilhami: also, don't be afraid to consider whether you're being too ambitious with your goals. Start small and build from there if you're not confident. Mar 21 14:08:15 and don't reinvent the will, Ilhami. Mar 21 14:08:17 *wheel Mar 21 14:08:32 nothing is worse than a buggy half-finished mess you lose interest in Mar 21 14:08:57 remember to leave you buggy half-finished mess on github Mar 21 14:09:02 so it won't be lonely Mar 21 14:09:10 I will start small Mar 21 14:09:18 lov! you're answered my unspoken question! Mar 21 14:09:25 I will start with the prayer times I think. Mar 21 14:09:52 If I want some books in the app, how would I do that? Mar 21 14:10:35 Ilhami, that's a complicated question Mar 21 14:10:40 Ilhami: these are big vague questions... not really suitable for here Mar 21 14:10:58 Ilhami, it's akin to, "how can i build my app?" Mar 21 14:11:06 LOL... Mar 21 14:11:27 I want some books like where you can flip the page and so on. Mar 21 14:11:36 Ilhami, careful, apple might sue you! Mar 21 14:11:37 a study zone like Mar 21 14:11:50 your question goes beyond programming, it's a legal question as well Mar 21 14:12:30 I want an app which doesnt exist already... Mar 21 14:12:46 go make it then.. Mar 21 14:12:55 don't we all Mar 21 14:13:18 I'm happy with the existing apps, I just want to have made them. Mar 21 14:13:27 nice Mar 21 14:14:03 lol, i feel that way about a few of them Mar 21 14:15:16 i actually only want the profit the ppl made with them Mar 21 14:15:29 my listview item is inconsistent position. it'll change it's position whenever i scroll it. what's wrong? Mar 21 14:16:04 timroes, fair enough ;) Mar 21 14:16:15 timroes: would you like to prophet from an Islamic app? Mar 21 14:16:26 i want to form a company that just pays out exhorbitant paychecks to its developers Mar 21 14:16:36 Leeds: /me slows claps Mar 21 14:16:37 Leeds, so, so bad Mar 21 14:16:42 from an islamic - why not; from an islamistic - ofc not Mar 21 14:16:59 kaneda^: what is exhorbitant for you :) Mar 21 14:17:16 kaneda^: start a law firm and hire developers instead Mar 21 14:17:21 timroes, anything for doing nothing is exhorbitant Mar 21 14:17:44 hmm okay, sounds fair Mar 21 14:17:55 i didnt say i'd actually make them work Mar 21 14:18:06 oh ffs Mar 21 14:19:38 I was mis-declaring my TreeMap Mar 21 14:20:34 :| Mar 21 14:20:40 i'm generating if-statements to replace for-loops Mar 21 14:21:08 hey i'm running debian inside android as a chroot, all good.. but I need a way to execute android commands from within the chroot jail (specifically "system/bin/am") and ideas how? Mar 21 14:21:11 kaneda^: replace or spot when they are unnecissary? Mar 21 14:21:26 Ankhwatcher, replace, for-loops with set ranges are always unecessary Mar 21 14:21:41 samkuhn, you can symlink into the jail Mar 21 14:21:51 samkuhn, or you can copy the binaries in place and ensure there's a path to the libs/includes Mar 21 14:22:01 samkuhn: folks in #android-root might be able to help too. Mar 21 14:22:42 Leeds: you're literally the worst. Mar 21 14:22:52 lov: and you're simply the best... Mar 21 14:22:56 better than all the rest... Mar 21 14:23:03 Is there any way to pass a TreeMap or HashMap through a bundle or some other method to a Fragment? Mar 21 14:23:05 Is it worth keeping a copy of dump.txt from proguard output or can I delete it? Mar 21 14:23:13 SIMPLY THE BEST, doooo, doo, dooooooooooooooo doo Mar 21 14:23:24 kaneda: cool, yeah i could copy.. just wasn't sure how much i'd need to copy into the jail for "am" to work properly - thanks Mar 21 14:23:31 Ankhwatcher: serializable or parcelable Mar 21 14:23:33 np Mar 21 14:23:33 lov: will ask there too, ta Mar 21 14:24:21 nseidm1: I just deserialised this data. I think I'll just split it into two arrays. Mar 21 14:24:39 :D Mar 21 14:24:50 deweylewie: what's in it? Mar 21 14:25:44 lots of classnames and methods Mar 21 14:25:58 I just noticed that they are 10mb each and are being committed to my svn :/ Mar 21 14:26:31 crikey Mar 21 14:26:37 10mb is a huge txt file Mar 21 14:27:29 deweylewie: how much is there in the diff? Mar 21 14:27:53 android docs say it "Describes the internal structure of all the class files in the .apk file" which it seems to, in byte code but I haven't found a use for it yet even for retrace Mar 21 14:29:44 hello! how can I edit the "title bar" of a view? The one which has the app's icon and title... thanks :) Mar 21 14:29:59 doing a diff right now and it doesnt seem to be goingv very fast heh Mar 21 14:30:12 i think I will say goodbye to these files Mar 21 14:30:24 elegos: by looking into what an ActionBar is Mar 21 14:30:28 elegos: what android version are you working with? Mar 21 14:30:36 maybe picture could say better than words, here it is guys. --> http://i.imgbox.com/ackHCZLi.png Mar 21 14:30:47 Ankhwatcher: uses SDK from 8 to 17 Mar 21 14:30:56 nseidm1: may you please explain it beeter? Mar 21 14:30:57 i do not know why my list is getting random position. Mar 21 14:31:06 xviv: sweet papyrus bro Mar 21 14:31:23 xviv: the short version is "you're probably implementing Adapter wrong" Mar 21 14:31:48 lov: so the problem is in my adapter? Mar 21 14:31:59 elegos: are you using ActionBarSherlock? Mar 21 14:32:13 Ankhwatcher: no, standard Android layout (FragmentActivity) Mar 21 14:32:21 xviv: yes, very likely. Mar 21 14:32:25 view recycler Mar 21 14:32:38 xviv: in particular, you're probably not handling the position specifier, and you're probably not correctly recycling views. Mar 21 14:33:49 how to handle the pos specifier then? does doing customAdapter right can fix it? Mar 21 14:34:08 hi I have a custom android camera app that always should be in portrait mode aand I do: mCamera.setDisplayOrientation(90); - but when I save the image using this approach (http://goo.gl/3Zreg) the image is saved in horisontal mode - I have seen people suggesting to rotate the image manually using the Matrix class before saving but that feels a bit cumbersome because it invlvles creating a new bitmap - any hints ? Mar 21 14:35:26 Ankhwatcher: well actually I'm using SDK 11-17 Mar 21 14:36:12 elegos: in that case: getActionBar().setTitle("DerpDerp"); Mar 21 14:36:18 so ActionBar is always there - is that the one I want? I'd like to edit its layout, how can I achieve it adding a graphic element on the left of it? Mar 21 14:36:56 try that in your onCreate(), then try some of the other things you can do with getActionBar(). Mar 21 14:37:07 thanks Ankhwatcher :) Mar 21 14:37:12 btw, what is the meaning fo Mar 21 14:37:15 I'm going to go brush my teeth Mar 21 14:37:31 further overtures are impossible, please leave Mar 21 14:37:31 btw, what is the meaning for 'sweet papyrus' like lov said. is that an idiom? Mar 21 14:39:10 xviv: the font you used in that picture is papyrus, yes? Mar 21 14:39:20 papyrus has a.... negative connotation. Mar 21 14:39:24 I was being sarcastic. Mar 21 14:39:36 * kaneda^ switches EVERYTHING to comic sans Mar 21 14:39:45 reencode ALL the things! Mar 21 14:39:50 lol, i don't process sarcasm some time. Mar 21 14:39:55 * kaneda^ switches the internet to comic sans Mar 21 14:39:57 xviv: also, your question doesn't make sense. Mar 21 14:40:00 10:33:55 < xviv> how to handle the pos specifier then? does doing customAdapter right can fix it? Mar 21 14:40:03 which will be the best april fools joke ever Mar 21 14:40:14 the answer is "read the documentation for adapter and actually implement your subclass correctly" Mar 21 14:40:39 okay i'll do it. Mar 21 14:40:44 my bad. sorry. Mar 21 14:40:54 xviv: how to you store data in your adapter? Mar 21 14:41:19 by getting it from internet. it's json and i parse it. Mar 21 14:41:28 and then? Mar 21 14:41:37 where do you store it? Mar 21 14:42:05 i'm not storing it. just for displaying, i haven't tried sqlite before :| Mar 21 14:42:15 you do store it Mar 21 14:42:16 in a list? Mar 21 14:42:18 in a map Mar 21 14:42:28 you mean hashmap? Mar 21 14:42:30 you need to store it somewhere, wher eyou can get it in your onView call Mar 21 14:42:35 yeah any data strcture Mar 21 14:42:41 yeah Mar 21 14:43:01 should i use sqlite or just xml file? Mar 21 14:43:09 no in what datastructure do you store it :D Mar 21 14:43:17 String Mar 21 14:43:28 what? Mar 21 14:43:38 you store the json string, and decode it on runtime, when the adapter requests one view? Mar 21 14:43:46 yep Mar 21 14:43:47 ah just paste the code of your adapter//. Mar 21 14:44:14 * xviv pasteing... Mar 21 14:45:07 http://pastebin.com/ti1vukGq Mar 21 14:45:30 okay so next time if i ask, the answer is: " i store my data in an ArrayList> Mar 21 14:45:49 okay, i get it :D Mar 21 14:46:00 yuck @ a HashMap of String keys Mar 21 14:46:26 i've been focused on optimization techniques for weeks, makes me want to barf Mar 21 14:47:11 xviv: okay that won't work at all Mar 21 14:47:17 you don;t recycle your view right Mar 21 14:47:43 yep :| Mar 21 14:47:45 if(convertView == null) { vw = layoutInflater....; } Mar 21 14:47:53 thats all you want to do if the convertView is null Mar 21 14:48:06 because if the list gives you some convert view you shoudl recycle, you actually don't do anything to it Mar 21 14:48:11 but you should ofc fill it with new data Mar 21 14:48:24 so just make the closing bracket of the if(convertView==null) to line 34 Mar 21 14:48:40 so the only thing you want to do if the convertview is null is to inflate a new onew Mar 21 14:48:55 back Mar 21 14:49:07 and you want to change the inflate statement to: vw = layoutInflater.inflate(R.layout.list_items, parent, false); Mar 21 14:49:45 * xviv translating... Mar 21 14:49:49 haha just seen "ActivityManager.isUserAMonkey()" in the android sdk docs Mar 21 14:49:56 Returns "true" if the user interface is currently being messed with by a monkey. Mar 21 14:50:00 whats that for? Mar 21 14:50:38 samkuhn: http://developer.android.com/tools/help/monkey.html Mar 21 14:50:43 code: boolean isUserAMonkey() { return true; } Mar 21 14:50:56 FINAL Mar 21 14:51:15 ok its a testing thing Mar 21 14:51:32 thought it detected if someone had no skills on their phone Mar 21 14:51:33 samkuhn: i thought that was obvious heh Mar 21 14:51:37 how about isUserAGoat? Mar 21 14:51:55 though it seems counterproductive to have the tested code be able to detect it's being tested Mar 21 14:51:59 that only returns false right now IIRC Mar 21 14:52:06 that way lies heisenbugs Mar 21 14:52:38 it's related to goat teleportation in chrome Mar 21 14:52:45 hello once again Mar 21 14:53:02 oGMo: I can see things you really wouldn't want to test live - say an emergency app which called/texted 911 Mar 21 14:53:33 I'm looking for the preferred an correct way to run something in a separate thread and then retrieve the computation result Mar 21 14:53:33 Leeds: yeah but for that you want a mock dialer Mar 21 14:54:07 that is, I've had a look at asynctask and failed to see how it can post back a value Mar 21 14:54:08 you don't really need your tested code to change for that Mar 21 14:54:09 timroes/@all: just fixed the Camera Code and it works (on most devices). Just a very few still have the problem takePicture Runtime Exception.. Any idea? http://stackoverflow.com/questions/15541608/takepicture-failed-in-some-cases Mar 21 14:55:12 the exact problem I'm trying to solve is this: Mar 21 14:55:22 I need to prefrom a network operation and retrieve the result Mar 21 14:55:32 a network operation muyst be in its own thread Mar 21 14:55:47 isemenov, yes, asynctask away Mar 21 14:55:52 but otoh, I need to receive backa value Mar 21 14:56:01 kaneda^: yes, but how can I receive avalue back? Mar 21 14:56:03 +1 for asynctask Mar 21 14:56:07 isemenov, there's a lot of ways Mar 21 14:56:16 isemenov, i see a lot of inner classes that set a value in the outer class, for instance Mar 21 14:56:18 e.g imagine I have a service that starts the task Mar 21 14:56:23 i see startIntentForResult with intents Mar 21 14:56:29 or something Mar 21 14:56:35 timreos: thanks a million! it works. Mar 21 14:56:42 kaneda^: noes, intents are kind of a bit too much Mar 21 14:56:43 isemenov: you need to slow down and learn how Android works Mar 21 14:56:55 xviv: you're welcome Mar 21 14:56:55 Leeds: yeah.. if I had a month Mar 21 14:57:01 sure that's the preferred way.. Mar 21 14:57:09 i like asyntasks Mar 21 14:57:09 sorry for mispelling your nick.. Mar 21 14:57:14 they're easy and they work, nuff said Mar 21 14:57:15 yeah no prob :D Mar 21 14:57:25 just hit tab, it will save you typing time :D Mar 21 14:57:30 isemenov: if you don't have time to learn properly, you've already screwed up Mar 21 14:57:47 Leeds: once again, properly means a coupe months. Mar 21 14:57:50 *l Mar 21 14:58:02 i dunnow irc has autocomplete. it makes my life much easier. Mar 21 14:58:16 isemenov, depends, i learned to program in android a few years after i started java Mar 21 14:58:30 isemenov, i wrote my first app within a couple of months and it's had 20k+ downloads since then Mar 21 14:58:39 kaneda^: well for me this is just a task you see.. I'm not going to stay in android for long Mar 21 14:58:55 c++ / qt is my favorite Mar 21 14:58:57 :) Mar 21 14:59:09 so you want to do games or guis? Mar 21 14:59:23 kaneda^: currently, its KDE :) Mar 21 14:59:32 isemenov: so... you don't care to learn, you want us to do the work leading you by the hand? Mar 21 14:59:35 of which I have been a user for many years Mar 21 14:59:42 Leeds: nope, of course Mar 21 14:59:48 Leeds: I'm loking for direction Mar 21 14:59:50 *oo Mar 21 14:59:55 isemenov, honestly, if you dont take it seriously you cant expect us to take it seriously Mar 21 15:00:04 first direction is to work through the training docs on d.android.com Mar 21 15:00:07 which is the correct way ot returning a vlaue from a thread Mar 21 15:00:20 isemenov, again, not a THREAD, per-se, but a nice android wrapper, like an asynctask Mar 21 15:00:36 well, conceptually its' a thread, iosnt it? Mar 21 15:00:40 isemenov, and i think you'll find LOTS of answers out there, there's not ONE right way Mar 21 15:00:40 yeah use asynctask if you don't want to learn anything hard Mar 21 15:00:45 and next time don't do tasks you don't take serrious Mar 21 15:00:50 isemenov, it's a thraed taht you never have to manage, essnetially Mar 21 15:00:51 hmm. not one right smells bad :) Mar 21 15:00:57 ok, nice Mar 21 15:01:30 the problem I see is that the nly means of communicating back from an AsyncTask is the onPostExecute clalback, right? Mar 21 15:01:43 isemenov, not the only way, no Mar 21 15:01:49 so the code of that callback needs to know who gets the result Mar 21 15:01:55 which breaks encapsulation Mar 21 15:02:09 isemenov, erm, not really, what do you think threads are? Mar 21 15:02:12 isemenov: it doesn't either make it an inner class of the one needing that result Mar 21 15:02:19 or pass in some callback you can call Mar 21 15:02:30 there are again several oportunities that are right Mar 21 15:02:33 timroes, i had originally suggested that, but i'm not sure it's a good practice if you're going to be invoking this a lot Mar 21 15:02:37 and none of the two above breaks encapsulation Mar 21 15:02:50 ok, so a helper class is required? Mar 21 15:03:01 isemenov, an inner class si what timroes suggested, and it works most of the time Mar 21 15:03:20 kaneda^: its neithe ra good practise to use asynctask for longer running taska, and still i guess he hasn';t said how much time the task will be running :) Mar 21 15:03:25 create a class inside teh postexecute method, right? Mar 21 15:03:35 timroes, i never run long-running tasks Mar 21 15:03:37 timroes: for me, it's jsut a formality I need to fullfill Mar 21 15:03:49 timroes, the longest running task i'm willing to run is grabbing some json from a webservice, and that goes in async obviously Mar 21 15:03:53 it's a network operation, which wants to be run ina sep. thread Mar 21 15:04:08 else an exception is thrown Mar 21 15:04:14 network operation can also take pretty long depening on what you will download :) Mar 21 15:04:15 so I have to work around that somehow Mar 21 15:04:19 yes Mar 21 15:04:23 but I have a service, you see Mar 21 15:04:27 just for that purpose Mar 21 15:04:31 timroes, true, but one hopes that it wil be fast :D Mar 21 15:04:46 there is a service in a separate process Mar 21 15:04:52 which should fix interactivity Mar 21 15:05:02 but the rule is that network goes in a thread Mar 21 15:05:07 unfortunately Mar 21 15:05:13 not unfortunately, naturally Mar 21 15:05:26 well, for me it is ;) Mar 21 15:05:44 in C++ would you open network connections ont eh same thread as your GUI? Mar 21 15:05:50 ofc not Mar 21 15:05:59 kaneda^: yeah you do if you are a bad programmer :D Mar 21 15:06:06 timroes> kaneda^: yeah you do if you are a bad programmer :D <-- that Mar 21 15:06:31 i guess every toolkit should forbid network connection on main thread Mar 21 15:06:31 kaneda^: read above its a service Mar 21 15:06:43 damnit Mar 21 15:06:45 isemenov, do you understand what a service is in this context? Mar 21 15:06:47 i mean its bad behavior in every toolkit, but really forbidden by exception in not so much Mar 21 15:06:55 android 2.2 can't use this descending iterator Mar 21 15:06:58 kaneda^: I hope the service is a separate process Mar 21 15:07:05 since I've followed the docs Mar 21 15:07:15 and put an android:process in the manifest. Mar 21 15:08:06 isemenov, ok, let's put this in terms of *nix, when you run a daemon in the background and it needs to both process something AND do some sort of connectivity check, is that daemon running in one process or multiple? Mar 21 15:08:38 well I'd imagine it has two threads tehn Mar 21 15:08:48 although I've never coded daemons Mar 21 15:08:50 mmhmm, even though it's not running in the foreground necessarily Mar 21 15:13:11 kaneda^: is AsyncTask.get() ok? Mar 21 15:13:56 isemenov, why arent you using onPostExecute? Mar 21 15:14:16 kaneda^: but what Im going to call in that method? Mar 21 15:14:19 something liek this: http://stackoverflow.com/a/4196086 Mar 21 15:14:20 I dont really get it Mar 21 15:14:35 read more Mar 21 15:14:37 the AsyncTask has no ida about the consumer class object Mar 21 15:14:43 k Mar 21 15:14:45 ty Mar 21 15:14:47 isemenov, you have a choice Mar 21 15:15:19 isemenov, IMO it should know about the consumer class object reference variable Mar 21 15:15:38 as an inner class to the consumer class you can access its members via ConsumerClass.this.foo Mar 21 15:15:43 well, in that case I fail to see a ways of passing theat to the task :) Mar 21 15:15:49 you dont Mar 21 15:15:50 oh ok Mar 21 15:15:57 you make it accessible via the class structure Mar 21 15:15:57 AsyncTask seriously needs a method to shutdown the ThreadPoolExecutor Mar 21 15:15:58 I always forget about that method in Java :\ Mar 21 15:16:04 yeah sure Mar 21 15:16:10 lots of that in my code, in fact Mar 21 15:16:11 nseidm1, hmm? Mar 21 15:16:31 Otherwise there's no way to terminate the threads Mar 21 15:17:32 nseidm1, oh Mar 21 15:17:34 kaneda^: well.. you won't believe it, but the whole thing works now :) Mar 21 15:17:40 thank you a lot for the help Mar 21 15:17:41 isemenov, magic Mar 21 15:17:41 Also it defaults to a 128 pool, something always makes me like cachedThreadPoolExecutors better Mar 21 15:18:01 kaneda^: yeah, I'm generally afraid of network programming, so if this imap code works, God bless it Mar 21 15:18:17 mean if I had a couple month, I'd probably implement the RFC Mar 21 15:18:22 nseidm1, http://stackoverflow.com/a/3077508 <-- this make sense to you? Mar 21 15:19:41 kaneda^: one more question: did I understand correctly that in Java, there can only be one top-level class in a file, but inner and anonymous classes are unlimited? Mar 21 15:19:51 AsyncTask definitely doesn't use a CachedThreadPoolExecutor Mar 21 15:20:21 AsyncTask causes soo many issues, for example Mar 21 15:20:22 also I can see a lot of inner and anonymous classes in the sample android code, is that the Java Way? Mar 21 15:20:27 thank you! Mar 21 15:20:37 launching a task that results in a ui callback, and the ui is gone Mar 21 15:20:46 Hello guys, I try to get a pathname of a file, as follows: http://pastebin.com/1LDnM5Rt Mar 21 15:20:47 you really want to interrupt/shutdown the thread pool Mar 21 15:21:04 there's no hooks into the thread pool Mar 21 15:21:17 isemenov, there can only be one PUBLIC class Mar 21 15:21:23 ok Mar 21 15:21:29 in a file Mar 21 15:21:39 yes Mar 21 15:21:41 k Mar 21 15:21:43 However, for jpg files it works fine, but if I want a custom file like .map I get a weird dialog box from ESFile explorer that returns with an empty string. Mar 21 15:22:23 I set filetype: "file/*" Mar 21 15:25:59 Number5, http://stackoverflow.com/a/8252623 Mar 21 15:26:01 does that help you? Mar 21 15:26:31 http://stackoverflow.com/a/9569925 <-- that looks more like what you need Mar 21 15:26:44 which library is the better for charts on android ? androidplot, achartengine or chartdroid ? (or any other) Mar 21 15:26:55 kaneda^, thank you I'll read it Mar 21 15:27:12 np Mar 21 15:28:46 no charts user here? Mar 21 15:29:08 LiohAu: I'm sure some people use charts, but it's possible you could do some research yourself. Mar 21 15:29:20 uhm... still trying to edit my ActionBar. This is my code: http://pastebin.com/RycFea2s - it should display an image on the left of the ActionBar, but it seems to do nothing instead... Did I do something wrong? Mar 21 15:29:25 I thought the Java Way was a road running through the oracle campus. Mar 21 15:30:10 ofc res/drawable/indicator.png is present Mar 21 15:30:20 elegos: the image on the left of the app icon or logo Mar 21 15:30:34 nseidm1: exactly Mar 21 15:30:44 or a menu in some cases I've seen Mar 21 15:30:53 for slide out menus and whatnot Mar 21 15:31:24 the idea is that one Mar 21 15:31:38 to notify the user there's a sliding menu Mar 21 15:31:59 Is ur action bar even showing? Mar 21 15:32:15 if not then the target sdk is not 14+ Mar 21 15:32:24 yes it is, and it's showing the app logo and name, plus the "three dots" menu Mar 21 15:32:31 lov there is not a lot of people talking about pro and cons on these 3 charts library, i'm only finding post of people having issues with them Mar 21 15:32:52 in the application tag in the manifest do android:logo Mar 21 15:33:47 and then set the action bar to use the logo Mar 21 15:33:58 or you can just set all this stuff manually with getActionBar Mar 21 15:33:59 nseidm1: what should I do exactly? I don't have any logo tag, but only an android:icon property inside application tag Mar 21 15:34:21 I assume you don't want the app's icon to be the menu graphic :-P Mar 21 15:34:34 just do it manually using the ActionBar methods Mar 21 15:34:59 nseidm1: ok, so just substitute the logo with the other drawable? Mar 21 15:35:06 yup Mar 21 15:35:17 thanks :) Mar 21 15:35:30 the method namings are a bit behind the progress of what the up affordance is being used for Mar 21 15:36:36 nseidm1: uhm... setLogo method requires minimum API 14, I'd like to target HC (11) too Mar 21 15:37:03 ummm, ActionBarSherlock Mar 21 15:37:46 isn't it possible to avoid using it using the android:homeAsUpIndicator property? Mar 21 15:38:26 I don't think it will be clickable without it Mar 21 15:38:41 I don't need to click on it Mar 21 15:38:47 the sliding lib will do that for me Mar 21 15:39:02 elegos, if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { setLog(whatever) } Mar 21 15:39:18 canadiancow: what about API < 14 users? Mar 21 15:39:28 well if their device doesnt support something... Mar 21 15:39:31 and there is no <14 Mar 21 15:39:38 there is zero reason to support honeycomb at all Mar 21 15:40:01 yeah you may be right, but there are still 2.x devices, so why not HoneyComb ones? Mar 21 15:40:15 becuase there are more cupcake users than honeycomb users Mar 21 15:40:18 well maybe not Mar 21 15:40:22 but there are more eclair than honeycomb Mar 21 15:40:33 gmail has a 2.3 verison and a 4.0+ version Mar 21 15:40:42 there's no honeycomb version of gmail on google play Mar 21 15:40:49 thanks for the tip : Mar 21 15:40:50 :) Mar 21 15:42:10 uhm... setLogo sets the logo with some padding - is it possible to set logo's left padding to 0? Mar 21 15:42:36 there's no methods for that I'm aware of Mar 21 15:42:58 you're heading down the road of a custom action bar, which is a waste of time in most cases Mar 21 15:43:01 just use the framework Mar 21 15:43:13 sherlock? Mar 21 15:43:20 for <14 sure Mar 21 15:43:27 gonna support 14+ Mar 21 15:47:52 got it Mar 21 15:48:08 my XML files where right, I only had to enable the homeAsUpIndicator Mar 21 15:48:15 getActionBar().setDisplayHomeAsUpEnabled(true); Mar 21 15:49:51 were* Mar 21 15:51:00 next question :P I've programmed an activity to (1) start a service (if not already started), (2) register a broadcast receiver and (3) call a service method, which sends a broadcast message cought by the receiver Mar 21 15:51:27 the service is being started in the onCreate method, and the receiver is being registered onResume (and cancelled onPause) Mar 21 15:51:58 AFAIK the activity start cycle should be onCreate -> onStart -> onResume, but the last one is being executed after several seconds Mar 21 15:52:46 my question is: can I register the receiver onCreate and then check onResume if it's not registered, to register it? I haven't found any "is registered" method or anything similar Mar 21 15:53:20 How can I make a listview item clickable? Mar 21 15:53:26 I have two nested linear layouts in each row Mar 21 15:53:30 setOnItemClickListener Mar 21 15:53:33 It won't accept click no matter what I do Mar 21 15:53:42 well yeah that was my first idea Mar 21 15:53:49 and it's the answer Mar 21 15:53:55 and it doesn't work, hence the question Mar 21 15:54:01 debugger shows it doesn't enter the event at all Mar 21 15:54:08 so it's not being fired for one reason or another Mar 21 15:54:12 then your child views are intercepting the click event Mar 21 15:54:16 Woutifier: if you've got nested itemlists, you have to code both click listeners, the outer and t he inner Mar 21 15:54:17 wolfehr: reasons for that not to work : you have a view intercepting touch/focus Mar 21 15:54:32 I've set clickable="false" on all layout elements in the row Mar 21 15:55:31 clickable="false" and focusable="false" on all the elements in the "row" layout Mar 21 15:55:53 ? Mar 21 15:56:28 ? Mar 21 15:56:52 ok got it Mar 21 15:57:11 apparently I set v.setclickable(true) in the getView of the ListAdapter Mar 21 15:57:15 that kills it :P Mar 21 16:19:02 StingRay_: you approve now? http://pastebin.com/ctcqEe8C Mar 21 16:19:05 :) Mar 21 16:21:06 Wow.. Mar 21 16:21:38 That's never good, coming from you :P Mar 21 16:22:38 I know why you're doing it, it's just cringeworthy :p Mar 21 16:23:43 which part? Mar 21 16:24:11 int[] ids ... Mar 21 16:24:30 oh Mar 21 16:25:28 heya SimonVT Mar 21 16:25:28 Just did it to avoid 20 lines of listeners.. people were telling me yesterday to use loops and arrays :P Mar 21 16:26:00 You could also scan the container for all Buttons and attach the listener that way Mar 21 16:26:22 Hello Ankhwatcher Mar 21 16:29:45 i have a listview that's animated. calling notifyDataSetChanged or invalidate or anything else does not update it. the items are updated only after it's interacted with. any ideas? Mar 21 16:31:40 I have some data and I want to draw a chart with it. Should I draw the chart in a new fragment and replace the current one with it, or communicate the data to the fragment so it can redraw it's chart? Mar 21 16:32:02 my fragments are in a viewpager Mar 21 16:32:52 SimonVT: like the marked solution here? http://stackoverflow.com/questions/7048470/easy-way-to-setonclicklistener-on-all-activity-buttons Mar 21 16:34:39 Something like that Mar 21 16:34:55 I see Mar 21 16:35:00 so are asynctasks deprecated now or are they still in? Mar 21 16:35:22 hah Mar 21 16:36:58 I just use threads and a handler. Mar 21 16:37:47 i imagine that's the best way if you know what you're doing Mar 21 16:39:22 where's kaneda^? Mar 21 16:39:35 alo Mar 21 16:40:26 well regardless, I've stared using AsyncTaskLoader for asyncronous networking calls Mar 21 16:42:21 kaneda^: people are speaking ill of AsyncTask, I thought you would want to shout at them Mar 21 16:42:41 nseidm1 made valid points about not using asynctask, depending on your needs Mar 21 16:43:35 AsyncTask is not meant to be used every time you need a Thread Mar 21 16:43:44 AsyncTask isn't bad, it's just consistently misused Mar 21 16:44:05 tell me about it... Mar 21 16:44:21 personally I prefer to misuse runnables Mar 21 16:44:34 I'm happy to misuse anything, just point me in the right direction Mar 21 16:44:40 That's quite the feat Mar 21 16:45:21 p.s. romainguy your photography blog is awesome Mar 21 16:45:25 thanks Mar 21 16:46:42 stork: don't you mean 'just point me in the wrong direction'? Mar 21 16:48:34 Quacked: looks better than yesterdays 200 lines of stuff Mar 21 16:49:59 i think you should mod it now so there are no ids and no xml buttons :) Mar 21 16:50:44 there would be just a maxButton = 20 Mar 21 16:50:45 hehe Mar 21 16:50:46 :) Mar 21 16:50:56 and it creates them Mar 21 16:50:59 no! point me in the right direction so i can sully it with my masterful ignorance. Mar 21 16:51:46 stork: touché Mar 21 16:55:15 no but seriously, where should I be looking? my app is a fairly simple linear flow with RPC calls littered about.. asynctask, asyncloader, runnable&handler, something else? does it even matter? Mar 21 17:05:26 uhoh Mar 21 17:05:40 it looks like this chart can only display one series Mar 21 17:20:54 oh god Mar 21 17:20:58 I'm an idiot Mar 21 17:21:03 yea Mar 21 17:21:06 i wasn't gonna say anything Mar 21 17:21:08 but yea Mar 21 17:21:16 I set the second series to be completely transparent Mar 21 17:21:45 stork: your restraint is appreciated Mar 21 17:23:43 I'm filled with a sudden adoration for the beauty of the sine wave Mar 21 17:24:00 There's a sensor in the front to check if the device is closed to the ear (to disable the display). Where can i disable that? My Sensor is broken and i cannot hook the phonecall :> Mar 21 17:26:00 misterli: you'd best ask that in #android Mar 21 17:26:03 tis the proximity sensor Mar 21 17:26:17 or light sensor Mar 21 17:26:24 or combo of both Mar 21 17:26:36 No idea. The Display is broken on my new Galaxy S3 LTE.. and now it's fucked up Mar 21 17:31:08 Okay, that's enough playing with sine waves for now Mar 21 17:31:11 I'm going home Mar 21 17:41:50 can you specify a .zip as a lib's javadoc location? Mar 21 17:43:14 sure Mar 21 17:44:27 ahh cool, thanks Mar 21 17:54:11 Hi! I have a web-page that contains a form described by this code: http://pastebin.com/v9uKd9bM I have the url of that page, the message stored in a String variable and the file stored into a File variable. Can somebody tell me please how fill out the online form with the message and the file in Android by pasting some code please? Mar 21 17:57:09 Dv0rak: paste some code? Mar 21 17:59:00 well, I have found over a dozen methods that describe how to do it, and some not-working code. I just want to have an example of how to fill out a form that contains a text and file upload section. I'll figure out how it works from that code. Also, there shouldn't be more than 10 lines or so. Mar 21 18:02:33 how can I hide the ActionBar via XML layout, without passing through the code? (If I do, the ActionBar will appear for an instant). I tried applying a custom layout with android:windowActionBar set to false, it works halfly, i.e. the action bar becomes shorter in height and the app's name is still there, smaller in font size Mar 21 18:04:03 windowActionBar false windowNoTitle true Mar 21 18:05:38 thanks JakeWharton :) Mar 21 18:06:05 another solution is to derive the custom style from @android:style/Theme.NoTitleBar.Fullscreen setting the background color ^_^ Mar 21 18:06:19 (Fullscreen in case of a fullscreen activity) Mar 21 18:21:46 hi, I'm using MediaExtractor + MediaCodec to decode video. The thing is when I call .seekTo() from MediaExtractor object it doesn't move to specified position. It actually jumps to the begining of the stream. Any idea? I've tried seeking to different positions but always seek to position 0 seconds Mar 21 18:25:50 Android reference: "All selected tracks seek near the requested time according to the specified mode." Mar 21 18:25:54 what are the modes? Mar 21 18:27:10 gmag Mar 21 18:30:41 Hey guys, I'm writing a little app to allow me to deploy apps to devices without the marketplace or ADB. The whole thing is working apart from the installation intent, which is replacing my app with the app that gets installed. Here's the offending code:https://gist.github.com/johnhamelink/58b0e0d8146e5973a05e Any ideas on what the correct intent is and what I'm doing wrong? Mar 21 18:31:03 there are 3 modes: SEEK_TO_CLOSEST_SYNC, SEEK_TO_NEXT_SYNC and SEEK_TO_PREVIOUS_SYNC. Mar 21 18:31:21 elegos, Mar 21 18:31:41 gmag: have you tried all the possible modes? Mar 21 18:33:09 yup Mar 21 18:33:31 there isn't much description in the reference website sadly Mar 21 18:33:47 elegos, have you used these apis before Mar 21 18:33:56 nope Mar 21 18:34:10 elegos, thanks anyway mate Mar 21 18:34:34 in sql how would I see if the colum value is IN a search string ? such as column value = "zed" and search string is "zeds dead baby, zeds dead" would be a match Mar 21 18:34:50 LIKE = "%zed%" Mar 21 18:34:59 oops no Mar 21 18:35:04 that would be the other way round Mar 21 18:35:06 :) Mar 21 18:35:06 column LIKE "%zed%" Mar 21 18:35:17 LIKE wont do will it Mar 21 18:35:28 my search string is "zeds dead baby" Mar 21 18:35:51 the column val is "zed" Mar 21 18:35:56 @_@ Mar 21 18:36:29 column value contains "zed" Mar 21 18:36:44 search input is "zed is dead" Mar 21 18:36:47 well you could try select *zed* from Mar 21 18:36:56 but i dunno if that syntax is correct Mar 21 18:36:59 again thats inverse Mar 21 18:37:15 I have to see if the column value is IN the search string Mar 21 18:37:21 i think you'd have to split on " " and then do a bunch of OR LIKE ... Mar 21 18:37:23 uhuh Mar 21 18:37:26 so you do Mar 21 18:37:29 so the opposite of LIKE Mar 21 18:37:34 or masked = Mar 21 18:38:10 select (select * from where value = "zed") from
Mar 21 18:38:22 hrm actually i wonder if you could do some kind of "zed is dead" LIKE "%" + column + "%", it wouldn't work with the + but maybe with SQL's concat Mar 21 18:38:49 (i can't remember the syntax for SQL concat so i didn't include it, but probably something like concat("%", column, "%")) Mar 21 18:39:15 i just noticed something cray cray Mar 21 18:39:25 any vmware people in here? Mar 21 18:39:43 i read that as 'vampire' and i was about to volunteer Mar 21 18:39:57 stork, but it's day time Mar 21 18:41:13 i'm indoors! Mar 21 18:42:29 any ideas for my problem guys, it's really stumped me Mar 21 18:42:52 the problem exists on my emulator and my nexus 4 Mar 21 18:43:19 it /works/, just that I want to install a new apk, not do a "selfupdate" Mar 21 18:48:17 johnhamelink: added a comment Mar 21 18:48:36 that works for me Mar 21 18:48:41 and no real diff Mar 21 18:49:24 thanks StingRay_, lets see if that makes a difference Mar 21 18:49:36 well code is diff, but really it's not Mar 21 18:49:43 cept for your flag that you add Mar 21 18:50:38 oh cept you also prefix the uri parse string with file:// Mar 21 18:51:12 I open a file and get uri Mar 21 18:52:05 nope, still get the same thing, here's a pic: http://i.imgur.com/UthK58h.jpg Mar 21 18:52:27 oh your not wanting the prompt ? Mar 21 18:52:34 No I want the prompt Mar 21 18:52:46 but that prompt is updating "an existing application" Mar 21 18:53:02 what happens when I click install is it installs the apk and uninstalls my app Mar 21 18:53:12 i just want it to install the apk Mar 21 18:53:32 well if it's installed it will replace existing Mar 21 18:53:38 if it's not installed it wont ? Mar 21 18:53:43 * StingRay_ is lost Mar 21 18:53:49 its replacing my app with the APK which is not the same Mar 21 18:54:01 my app isn't xerotime, i've called my app apkpusher Mar 21 18:54:04 i want to keep both Mar 21 18:54:26 well no, it's gonna replace xerotime ? Mar 21 18:54:34 not apkpusher Mar 21 18:54:41 but that's what's happening Mar 21 18:54:46 it's replacing apkpusher with xerotime Mar 21 18:55:07 same package name ? Mar 21 18:55:22 ._. Mar 21 18:55:25 where is the packagename defined? Mar 21 18:55:38 (java newb, in case you haven't noticed) Mar 21 18:55:52 in the manifest Mar 21 18:55:56 AndroidManifest.xml Mar 21 18:55:58 awww wit Mar 21 18:56:00 yeah Mar 21 18:56:02 they are the same Mar 21 18:56:06 well then Mar 21 18:56:09 you have your answe Mar 21 18:56:11 r Mar 21 18:56:13 :) Mar 21 18:56:15 uber derp Mar 21 18:56:18 thanks StingRay_ ^^ Mar 21 18:56:57 hmm I still need the oppostie of LIKE in sql :( and no, not "NOT LIKE" Mar 21 18:56:58 :) Mar 21 18:57:04 HATE Mar 21 18:57:23 that would make grammatical sense Mar 21 18:59:09 Why not NOT LIKE Mar 21 18:59:20 'DISLIKE' Mar 21 18:59:41 cause i need to find if a COLUMN value is IN the search string Mar 21 19:00:15 Maybe you should try #sqlite or something Mar 21 19:02:14 can you use js/html5 apps in android? Mar 21 19:02:49 Android can browse websites, sure Mar 21 19:03:05 thats not my question. Mar 21 19:03:13 can it handle webgl? Mar 21 19:03:18 You can create a webview in an activity which can display HTML Mar 21 19:03:28 you're really asking for a world of hurt of you're planning on using any new HTML apis. Mar 21 19:04:02 StingRay_: 'DO NOT WANT >:(' Mar 21 19:04:07 the frownie is part of the syntax Mar 21 19:05:09 huh? Mar 21 19:05:11 :) Mar 21 19:12:29 Hey all. Using a basic Twitter Bootstrap Responsive template with no extra styling and nothing but a form inside, viewing it on my android device, the soft keyboard covers the lower text input fields rather than placing it above the keyboard. Mar 21 19:12:36 14:57:07 < StingRay_> hmm I still need the oppostie of LIKE in sql :( and no, not "NOT LIKE" Mar 21 19:12:43 Is this a problem with the particular keyboard I'm using or is there a common fix for a webpage that will resolve this? Mar 21 19:13:22 lov i mean the opposing function Mar 21 19:13:43 so I would have thought VALUE(columName) WITHIN "my searchString" Mar 21 19:14:10 test... Mar 21 19:14:27 but obviously that is not valid, thats just what I would have thought would be there Mar 21 19:15:05 StingRay: I dont think what you asking for exists in standard SQL Mar 21 19:15:10 Evening Mar 21 19:15:24 jeffb: does that not seem odd though ? Mar 21 19:15:26 Ash__: morning.. Mar 21 19:15:35 I mean like it should exist Mar 21 19:15:38 quick one peeps how do i add leading zeros to my time format? Mar 21 19:15:39 StingRay: well not really... Mar 21 19:16:17 StingRay: consider in your example you could match "my" or "searchstring" or "m" or "y" etc Mar 21 19:16:55 its just too open ended Mar 21 19:17:00 ok well if I have entries that have a colum keyword Mar 21 19:17:12 and the point is each record is a rule Mar 21 19:17:30 I want to know what rule/s are valid for a sentence Mar 21 19:17:46 as in do any of the rules keywords exists in sentence Mar 21 19:18:05 or am I thinking about that in a backwards / wrong way ? Mar 21 19:19:25 StingRay: ahh I see... let me think... Mar 21 19:20:37 StingRay: how many rules do you expect? tens, hundreds, thousands? Mar 21 19:20:45 1 or 2 Mar 21 19:20:56 99 % of the time 1 Mar 21 19:21:37 StingRay: then pull the rules from the db and use regular string functions Mar 21 19:21:58 oh you mean in the db Mar 21 19:22:03 I thought you ment matched Mar 21 19:22:10 well 10's Mar 21 19:22:14 and yeah I could do that Mar 21 19:22:22 10's still isnt bad Mar 21 19:22:29 just felt like I wanted something that my gut told me SQL could do Mar 21 19:22:29 My top app on the Play Store open only from a BroadcastReceiver, any suggestions on what to do if the app is killed and the BroadcastReceiver is blacklisted? There's no launcher icon to open the app, hence no way to unblacklist the BroadcastReceiver without a full uninstall and reinstall. Mar 21 19:24:37 nseidm1, can you have it start with an intent Mar 21 19:24:44 so it has an icon Mar 21 19:25:07 Actually, I just took out bootstrap and *all* styling and javascript from this test page, leaving nothing but form elements, and still the text inputs near the bottom do not move to make room for any keyboard. Is there some kind of CSS that I'm missing to make this happen? Mar 21 19:26:00 nseidm1: what kaneda^ said. I have an app that's basically the same thing; I gave it a "settings" activity. Mar 21 19:26:03 how can I get a resource from a generic object? Mar 21 19:26:13 elegos: that's kind of a vague question. Mar 21 19:26:28 lov: I'd like to access the string values from a singleton Mar 21 19:26:37 kaneda^: no launcher icon Mar 21 19:26:43 elegos: that singleton needs reference to the Application context. Mar 21 19:26:52 lov: interesting Mar 21 19:27:05 lov: so the getInstance should request the context? Mar 21 19:27:18 forever and always Mar 21 19:27:53 Since 4.0+ started blacklisting receivers I put a million warnings in the app not to kill it :-) Mar 21 19:28:08 Even named the app "Do not Kill Me" Mar 21 19:28:12 lol Mar 21 19:28:20 works for the most part Mar 21 19:28:20 do any of you program in flash? Mar 21 19:28:21 Your app is installed as stopped.. it's killed by default Mar 21 19:28:44 SimonVT: I disable the launcher activity on first run Mar 21 19:28:49 elegos: you should potentially pass the (APPLICATION!) context to getInstance. Mar 21 19:29:08 thanks lov :) Mar 21 19:29:39 someone said programers are worst developer, but i forget who said that. may i know why? because i think being programmers is hard enough :| Mar 21 19:29:55 Or pass any Context, and just call getApplicationContext on it in getInstance Mar 21 19:30:12 That's really the best way to ensure no fuckups Mar 21 19:32:23 Unless that fucks up if it's already the application context Mar 21 19:32:26 Try it out and see ;d Mar 21 19:33:07 well, yeah, do that Mar 21 19:33:13 just make sure you don't cache a non-application context. Mar 21 19:34:24 SimonVT: :P, being an app and not a lib, I can check it by myself :P Mar 21 19:34:28 thanks anyway :) Mar 21 19:35:04 Hm? Mar 21 19:35:19 Or pass any Context, and just call getApplicationContext on it in getInstance Mar 21 19:35:39 why does time of 0 when formatted return 1 hour? Mar 21 19:37:21 By doing it in your singleton you're ensuring in a simple way that only the application context is cached Mar 21 19:37:32 If you just cache whatever context is passed, you have many points of failure Mar 21 19:38:13 ^^ Mar 21 19:38:15 .. which could have been avoided with a single method call Mar 21 19:42:17 why does android.text.format.DateFormat.format("hh:mm:ss", 0).toString(); return 01:00:00 Mar 21 19:43:50 Maybe 0 UTC is 1 Mar 21 19:44:58 dont think im using it right Mar 21 19:45:08 i need to format milliseconds to hh:mm:ss Mar 21 19:49:14 you could just do it yourself... Mar 21 19:49:49 ? Mar 21 19:50:00 what's the amount of ram in a typical current android? Mar 21 19:50:10 1.21 gigawhats Mar 21 19:50:26 convert milliseconds to seconds Mar 21 19:50:31 great scottr Mar 21 19:50:33 divide by 60 to get minutes... Mar 21 19:50:39 divide by 60 to get hours... Mar 21 19:51:03 use the remainders as the seconds/minutes Mar 21 19:51:04 JakeWharton: how do I convert milliseconds to seconds? Mar 21 19:51:13 ... Mar 21 19:51:21 is that better then using build in functions Mar 21 19:51:29 how do i convert milliseconds to degrees fahrenheit Mar 21 19:51:37 Ash__: There's also https://developer.android.com/reference/java/util/concurrent/TimeUnit.html Mar 21 19:51:46 well, it will take you two minutes to write and you've already been spending two minutes to try and figure out how to do it using built-in functions Mar 21 19:52:01 TimeUnit.MILLISECONDS.toMinutes(millis) i.e. Mar 21 19:52:08 TimeUnit is useful... but i'm pretty sure the ratio of milliseconds to seconds isn't going to change anytime soon Mar 21 19:52:22 We'll never know! Mar 21 19:52:35 Depends if it's a leap year Mar 21 19:52:45 don't forget local time dilation Mar 21 19:52:53 Ash__: first Google result was http://stackoverflow.com/a/4142405/132047 Mar 21 19:53:04 im not formattign a date im using it to show ho wlong someone has spent in an activity Mar 21 19:53:17 jake ive google the shit out of it Mar 21 19:53:20 JakeWharton: You always join us when there's a chance for you to facepalm and hate this place more :x Mar 21 19:53:28 kakazza: yep Mar 21 19:54:11 To be fair, there's always a chance for you to facepalm Mar 21 19:54:22 * kaneda^ facedesks Mar 21 19:54:43 just so u know jake i already did the / 60 method but then u have to deal with no leading zeros Mar 21 19:54:52 %02d Mar 21 19:55:04 means nothing to me Mar 21 19:55:52 String.format("%02d:%02d:%02d", hours, minutes, seconds) Mar 21 19:56:09 .append(n < 10 ? "0" : "").append(n) Mar 21 19:56:10 oshit Mar 21 19:56:18 there's also DecimalFormat Mar 21 19:56:25 and locale based formats Mar 21 19:56:54 Spring probably has a TimeUnitFormatter.Builder.Factory as well Mar 21 19:57:45 Hi! I have a web-page that contains a form described by this code: http://pastebin.com/v9uKd9bM I have the url of that page, the message stored in a String variable and the file stored into a File variabnle. Can somebody please tell me how to fill out the online form with the message and the file? Or more precisely, can somebody tell me please the commands to do it, so I can do it myself? Mar 21 19:58:07 cheers jake Mar 21 19:59:09 http://ideone.com/qZMl1N Mar 21 19:59:11 that might work Mar 21 19:59:38 Dv0rak: this isn't really #android-spoon-feeding Mar 21 19:59:51 That's not even overengineered OOP. How's that supposed to work!!? Mar 21 20:00:00 i want to use pending intent (action_view intent for play/market) from appwidgetprovider but i get error: http://pastebin.com/0HxgbBbP Mar 21 20:00:06 JakeWharton: where are your test cases? Mar 21 20:00:16 um, I do Android Mar 21 20:00:24 good man Mar 21 20:00:25 That's not how TDD works Mar 21 20:00:25 not sure what these "test cases" you speak of are... Mar 21 20:00:31 * evanc give JakeWharton a bonus Mar 21 20:00:48 dam it Mar 21 20:00:49 brx_: it's not a service... Mar 21 20:01:25 ahhhh doh Mar 21 20:01:26 JakeWharton: String.format(Locale.ROOT, "%02d:%02d:%02d", hours, minutes, seconds) otherwise you will not get what you expect on Arabian locales Mar 21 20:01:27 ive been trying different methods for past hour and the issue was that im doing getInt on a long Mar 21 20:01:32 brx_: :) Mar 21 20:01:40 need to check logcat more often Mar 21 20:01:47 thanks evanc Mar 21 20:01:51 JakeWharton: Indentation messed up on line 9, can't merge Mar 21 20:01:55 brx_: no problem Mar 21 20:02:02 SimonVT: well played Mar 21 20:02:20 bubbleguuum: ha, nice. good call Mar 21 20:03:13 omitting to specify locale in format with numbers can be the source of weird bugs when formatted string is not for display purpose only Mar 21 20:03:36 i had to write a data converter that was meant to work internationally Mar 21 20:03:48 i ended up telling the user to choose the format of their choice, since an american could be processing french datasets Mar 21 20:04:52 evanc: I'm not trying to ask you for a whole android application. This thing can't take more than several lines of code, but I did not see any suggestions that worked. It was either filling text-only forms with a list of NameValuePairs, or they used classes that were not present in the standard Android libraries. However, I didn't find any indications of how to fill forms with files as well as texts in HTML from android. Mar 21 20:05:41 Dv0rak: "android java POST files" might be a helpful query Mar 21 20:05:58 you need an HttpClient, HttpPost, FormEncodingEntity, and a bunch of NameValuePairs Mar 21 20:06:00 extrapolate Mar 21 20:08:09 evanc: Well, some tutorial on how to post files and text involved using the PostMethod class, which couldn't be found under any of the Android packages. How do I make it present in Android? Mar 21 20:08:51 pick a different tutorial. Honestly, it's a more complicated problem than IRC will really help you with Mar 21 20:10:48 oh, it seemed really simple, but everyone seemed to get the answer wrong. Mar 21 20:11:26 Dv0rak: HttpURLConnection on the relevant URL, set the type as 'POST', write to the output stream, et viola. Mar 21 20:11:49 speaking of HttpClient, I'm trying to make it accept the default trusted certs + a custom self-signed cert....and all I've tried failed. I can either have it accept default trusted certs or my self signed cert but not both at the same time Mar 21 20:12:43 Anyone here know PHP? The people in PHP are taking a year to respond lol Mar 21 20:12:53 Simple question, Im just a noob when it comes to web php Mar 21 20:12:59 In fact, I think this is probably simple HTML hahaha Mar 21 20:13:09 I CANT DO WEB! Mar 21 20:13:53 * kaneda^ kicks Anthaas RESTfully Mar 21 20:13:58 Hahaha Mar 21 20:14:15 Basically, why won't
Mar 21 20:14:15 redirect? Mar 21 20:14:25 ignore the br Mar 21 20:14:37 ...., seriously? Mar 21 20:15:08
Mar 21 20:15:13 inputs without a form body make no sense Mar 21 20:15:32 oh fyi I really like https://addons.mozilla.org/en-us/firefox/addon/sqlite-manager/ as a ff addon for testing crap in android sqlite dbs Mar 21 20:16:49 what you should do is something like Change pass Mar 21 20:17:11 document.location.href maybe Mar 21 20:17:18 anyways, LEARN HTML AND JAVASCRIPT Mar 21 20:17:24 * kaneda^ boots Anthaas with a POST Mar 21 20:17:49 probably want to preventDefault as well, maybe do some other nifty stuff... Mar 21 20:18:15 kevinb: you here sir ? Mar 21 20:18:47 i like javascript and python because you can basically think in code Mar 21 20:18:50 16:13:20 < Anthaas> I CANT DO WEB! Mar 21 20:18:57 I'll be honest, this is all we needed to hear Mar 21 20:18:58 java is a bit clunkier for that, c/c++ even worse Mar 21 20:18:59 kevinb: concat is || in sqlite Mar 21 20:19:06 funky Mar 21 20:19:10 Anthaas: You've read http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ , yes? Mar 21 20:19:24 StingRay_, you mean, union? Mar 21 20:19:25 the tl;dr is that PHP actually makes you a worse developer for having used it, and you should use literally anything else Mar 21 20:19:34 lov, i couldnt agree more! Mar 21 20:19:55 But PHP has classes! It's OO! Mar 21 20:20:06 kaneda^: that what that is ? Mar 21 20:20:08 PHP might have classes, but it doesn't have class. Mar 21 20:20:30 can think in code? with javascript? Mar 21 20:20:31 StingRay_, think about it, if it's an || (an OR), then it's allowed to be in the left-hand or right-hand select, in other words a union of the two Mar 21 20:20:33 more like callback hell, but ok Mar 21 20:20:48 pfn, i find jquery to be very natural Mar 21 20:21:04 $(foo).live('click',function(e) { do shit; }); Mar 21 20:21:15 kaneda^: ah course Mar 21 20:21:19 arses Mar 21 20:21:19 $(foo).trigger('update'); Mar 21 20:21:47 it's rather unfortunate that most people that write stuff with jquery don't actually know javascript Mar 21 20:22:04 public static Drawable getPic(String pic) { Mar 21 20:22:15 pfn, i'm inclined to agree, it makes it TOO easy in some respects Mar 21 20:22:22 does anyone know how to make text bold in the play store app description? Mar 21 20:22:26 holder.tvPic = (ImageView) view.findViewById(R.id.tvpic); --- how do I get it inside there ? Mar 21 20:22:29 cketti, you don't Mar 21 20:23:38 spanglesontoast, first you make an xml file that contains an imageview with this id, then you inflate it at the beginning of your onCreate, then you can invoke findviewbyid in your activity without "view." Mar 21 20:24:45 pfn: how do you explain this: https://play.google.com/store/apps/details?id=com.onegravity.sudoku.sudoku10kfree Mar 21 20:24:58 kaneda^: oh I have that I just have issues getting the function to actually go into the holder loop Mar 21 20:25:58 toss in the tag, see what happens. Mar 21 20:26:24 lol Mar 21 20:27:33 is anyone using a ruby irb like console for android/java? Mar 21 20:28:24 evertvdbruel, you mean like a repl, or ruby specifically? Mar 21 20:28:40 yes thats what i mean Mar 21 20:29:10 but for java instead of ruby Mar 21 20:29:33 scrapbooks in eclipse aren't doing it for me Mar 21 20:29:54 can activities be in a tab? Mar 21 20:30:08 achmode: don't use tabs ._. Mar 21 20:30:13 use fragments, etc. Mar 21 20:30:19 tabhost + fragments Mar 21 20:30:20 tabs will bring only pain. Mar 21 20:30:23 cant escape tabhost Mar 21 20:30:26 evertvdbruel, I use terminal emulator, but it is not Java like Mar 21 20:30:55 evertvdbruel, there is also aide, which is more java-like, but less repl-like Mar 21 20:31:55 cketti, indeed, don't know Mar 21 20:32:35 lov: How is that even related Mar 21 20:41:21 I am trying to parse an XML file and store it in a SQLite database. What should I use for the _id when there is not one in the XML file? Mar 21 20:41:39 droiddev32: last id + 1? Mar 21 20:42:16 does anyone know if Miracast has gained any ground whatsoever? Mar 21 20:43:06 I have it auto incrementing as they are added in now, but i am wanting it to check if there are any new items each time the app starts. What would be the "right" way to do that? Mar 21 20:44:07 does your xml has unique elements? Mar 21 20:44:53 yea they should all be unique Mar 21 20:46:22 are you controlling the backend as well? Mar 21 20:46:26 that is sending the xml Mar 21 20:46:40 than you could send a timestamp with your request Mar 21 20:46:46 and only send the new items Mar 21 20:46:54 and maybe a list with modified/deleted Mar 21 20:48:43 No I am not controlling the backend as of now. Mar 21 20:49:34 Is there normally already an _id in each item? Mar 21 20:52:15 alright then since i shouldnt put an activity or fragmentactivity in a tab, how can i use getIntent() with the fragment? Mar 21 20:55:10 getActivity() saves the day Mar 21 21:05:22 "Eclipse is awesome!" exclaimed no developer, ever. Mar 21 21:05:56 thats wrong, there was someone who said it.. Mar 21 21:05:59 what was his name Mar 21 21:06:11 he was the guy who liked software, that installed additional browser toolbars Mar 21 21:06:34 ... Mar 21 21:09:48 if i'm on the ui thread (e.g. the onClick of a button) and i need to wait until a certain task has finished executing before handling the users button press, what's an elegant solution to this? I was thinking of just firing off a runnable with a wait() in it but it doesn't seem very neat Mar 21 21:13:02 come to think of it, is there implicit callback when executing a runnable using an Executor? so I could do like, Executor.execute(myTask).setOnFinishedListener(...) Mar 21 21:13:26 stork, i would just lock the button until the task completes with a bool or some such thing Mar 21 21:14:59 hmm wondering what this doesn't work now even if I specify the variable to go into it breaks Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(imageUrl).getUrl()); Mar 21 21:17:20 stork, you're on the right track... no matter how your async task is executing (AsyncTask, Excecutor, roll your own, etc.) it's common to have some sort of onComplete() or on Finished() entry point you can hook into to run that code Mar 21 21:17:44 and do like kaneda^ suggests and when the button is clicked simply put your UI in a wait state Mar 21 21:18:25 okay, so I'll just tweak my asynchronous task to chuck an "i've finished" callback in it.. was hoping to avoid that but no matter (: Mar 21 21:18:31 anyone here played around with VAST Ads? Mar 21 21:18:42 stork, you can put it in onPostExecute for instance Mar 21 21:18:55 it's not an AsyncTask, just a mere runnable Mar 21 21:19:14 stork refactor to use AsyncTask, it makes it easy on you Mar 21 21:19:15 stork, then you need some sort of callback i imagine -_- Mar 21 21:19:27 nothing wrong with runnable, but you'll be doing it yourself Mar 21 21:19:31 you wanted clean, AsyncTask is it :) Mar 21 21:20:02 cheers guys Mar 21 21:20:10 your background thread is going to have to interact with your UI, AsyncTask handles that for you too Mar 21 21:23:22 so any of you guys play with VAST for Video Ad, mid-roll and pre-roll Mar 21 21:25:36 IntelliJ should be a good standard on how a GUI should be done Mar 21 21:25:54 Eclipse has many options, but can get so confusing and cluttered Mar 21 21:26:31 but ... intelliJ has no "clean" button??? :p Mar 21 21:27:01 oh I forgot ... I doesn't seem to need one Mar 21 21:27:06 capella: rebuild project is clean+build Mar 21 21:27:08 lawl :D Mar 21 21:27:26 eclipse frequently coughs up errors Mar 21 21:27:30 heh - actually it has an invalidateCache option Mar 21 21:27:32 that you need to "clean" away Mar 21 21:27:45 capella: heh, yeah. I think I've used it once. Mar 21 21:27:48 that I've used once maybe Mar 21 21:27:50 to run eclipse and be productive you gotta like give it 2 gb or ram Mar 21 21:27:51 ++ Mar 21 21:27:52 haha, yea Mar 21 21:27:58 after which you still have to delete some errors manually Mar 21 21:28:02 modify the eclipse.ini file Mar 21 21:28:06 and restart every hour Mar 21 21:28:10 naw Mar 21 21:28:11 or it crashes anyway Mar 21 21:28:16 I leave mine running for DAYS Mar 21 21:28:21 Yah !! whats with cleaning errors manually ??????? Mar 21 21:28:31 of course I have 32gigs of ram on my dev machine Mar 21 21:28:47 when I saw eclipse do that I was like "whaaaaaaaaaaaaaaaaaaaaaat" ??? Mar 21 21:28:49 no, delete, as in error messages that are no longer applicable, but just don't dissappear Mar 21 21:29:02 you can also change the errors eclipse reports Mar 21 21:29:06 and they prevent a new build Mar 21 21:29:15 yep Mar 21 21:29:17 yeah you can degrade them to warnings Mar 21 21:29:25 yup Mar 21 21:29:32 but that's a rather fine line Mar 21 21:29:39 I made lint into warnings Mar 21 21:29:43 but still clear them out Mar 21 21:30:03 had to change my JNI stuff to not even try cause of issues with everything Mar 21 21:30:14 maven is a POS Mar 21 21:30:27 dantheman: yeah, the JNI stuff was troubling, it's a bit better now with the Native support Mar 21 21:30:30 and thinks all the cpp stuff are errors Mar 21 21:30:50 I normally don't build my JNI stuff in an IDE Mar 21 21:30:51 Eclipse always wants to index the source of my libraries, 10k + files Mar 21 21:31:05 heh - I wrestled with eclipse for three days ... bailed for intelliJ and never looked back :D Mar 21 21:31:06 which it can't fit into memory and boom there she goes again Mar 21 21:31:12 but for openFrameworks for Android we build from eclipse Mar 21 21:31:20 but we also don't use the Android.mk files Mar 21 21:31:54 dantheman: do you know any good resources on the NDK? Mar 21 21:32:02 a few Mar 21 21:32:06 last I tried I had to find obscure blogs to know what went where Mar 21 21:32:20 what are you trying to do? Mar 21 21:32:51 reading out the sensors in JNI, with a function rather than a poller Mar 21 21:33:14 like the only thing I've done in JNI are doing a DLNA UPnP lib for MIPS Android before it was in the mainline Mar 21 21:33:22 and openFrameworks for Android Mar 21 21:33:47 dantheman: I'm just trying to add something to my resume, and I thought the NDK was quite the challenge Mar 21 21:34:15 here is a sample project to get your feet wet Mar 21 21:34:16 https://github.com/commonsguy/cw-omnibus/tree/master/JNI/WeakBench Mar 21 21:34:18 NDK is cool, i've been living in the NDK for a couple of months Mar 21 21:34:24 you can also try and implement FFMPEG Mar 21 21:34:25 it does nothing useful, but it's fun to look at :) Mar 21 21:34:35 erm, it provides a tremendous increase in speed Mar 21 21:35:05 https://github.com/guardianproject/android-ffmpeg Mar 21 21:35:20 kaneda^: its the only way I do openGL Mar 21 21:35:24 for the droid Mar 21 21:35:34 and a few other things Mar 21 21:35:56 dantheman, taking a look Mar 21 21:36:00 belgianguy: the major thing you should know is there is no such thing as pthreads before some version of Android Mar 21 21:36:13 and there is no such thing as libc Mar 21 21:36:14 lol Mar 21 21:36:20 oh but my feet are wet, though :) Mar 21 21:36:26 its called bionic Mar 21 21:36:39 dantheman: yeah, it's a subset IIRC Mar 21 21:36:50 more of a bastard Mar 21 21:37:33 belgianguy: if you just want to play Mar 21 21:37:36 play with this http://www.openframeworks.cc/setup/android-eclipse/ Mar 21 21:37:57 so do you guys use idea for android devc? Mar 21 21:38:04 or just bitch about eclipse a lot Mar 21 21:38:19 <- netbeans Mar 21 21:38:38 well every java developers favorite thing to do it bitch about eclipse Mar 21 21:38:44 :D Mar 21 21:38:44 netbeans for WHhAT?? Mar 21 21:38:50 android development Mar 21 21:38:52 yuck Mar 21 21:38:55 I've got lots of IDE's setup Mar 21 21:38:56 * capella uses intelliJ and bitches about eclipse a lot Mar 21 21:38:56 yuck for anything, but yuck Mar 21 21:39:02 and also a lot of other languages :D Mar 21 21:39:05 dantheman: but I have played a little, a OpenGL ES 2.0 scene with physics and sensor input Mar 21 21:39:10 i have eclipse, visual studio express :D Mar 21 21:39:26 i've been using eclipse since i started android, i'm not a huge fan but it has half decent official support (the layout preview is quite nice) Mar 21 21:39:29 I can build in Emacs, SublimeText, Netbeans, vi+ant Mar 21 21:39:32 hard to gauge how much time silly tricks can cost Mar 21 21:39:46 SublimeText-2 ++ Mar 21 21:39:49 i build in eclipse, easy as pie Mar 21 21:40:00 me and Eclipse have a truce Mar 21 21:40:22 but now I installed another Eclipse for my PHP projects, the Android one lost its pretty loading screen Mar 21 21:40:26 if you know how to get eclipse up and running (by giving it more ram) its all good Mar 21 21:40:44 dantheman: it's a secret known only by 2 people Mar 21 21:40:52 pretty much Mar 21 21:40:58 one of them is deaf Mar 21 21:41:17 whenever I teach a class it is the first thing I do Mar 21 21:41:35 now students open up this file and change these values from these to these Mar 21 21:41:36 teach them to change the min/max heap sizes? Mar 21 21:41:42 yes Mar 21 21:41:57 didn't help here, Eclipse still poops itself Mar 21 21:42:03 i notice that ADT eclipse will dynamically grow the heap based on what's available and what it needs Mar 21 21:42:08 dantheman: have that in presentation form somewhere? Mar 21 21:42:15 no Mar 21 21:42:17 lol Mar 21 21:42:20 the ADT variant seems to be somewhat smarter Mar 21 21:42:26 ADT is smarter Mar 21 21:42:31 or less dumb Mar 21 21:42:37 but you can still set it up to init with a larger heap Mar 21 21:42:45 yeh Mar 21 21:42:59 dantheman: how? Mar 21 21:43:10 teach us Mar 21 21:43:20 free our souls Mar 21 21:43:35 * capella i cant hear you nah nah nah nah nah nah nah Mar 21 21:43:37 so what are you on? Linux/Winders/OSX? Mar 21 21:43:46 linux/windows Mar 21 21:43:52 OOboontoo Mar 21 21:44:04 the only way to fly Mar 21 21:44:23 dantheman, i think you're thinking of mescaline Mar 21 21:44:36 I always mix those 2 up as well Mar 21 21:44:38 so search for your eclipse.ini file Mar 21 21:45:03 kaneda^: I guess…never went down that rabbit hole...yet Mar 21 21:45:42 then open it in a text editor Mar 21 21:46:04 what happens if i have eclipse open ;) Mar 21 21:46:11 * kaneda^ divides by 0 Mar 21 21:46:11 so close it Mar 21 21:46:23 close the text editor? Mar 21 21:46:32 oh gawd Mar 21 21:46:38 dantheman: found it Mar 21 21:46:38 you guys are crazy Mar 21 21:46:43 HAHAHAHA Mar 21 21:46:49 yep Mar 21 21:46:53 capella: troll Mar 21 21:47:07 just a little ... hates eclipse :p Mar 21 21:47:22 capella: it's a necessary evil Mar 21 21:47:25 so edit your launcher.XXMaxPermSize Mar 21 21:47:30 to something reasonable Mar 21 21:47:33 makes you appreciate the good things in life Mar 21 21:47:43 it's 256m atm Mar 21 21:47:54 I have mine set to 1024 Mar 21 21:47:58 but I have lots of ram Mar 21 21:48:05 dantheman: I only have 4 GB in total Mar 21 21:48:11 mine's at ~250MB, max or 460MB Mar 21 21:48:18 yah ... mozilla just got mobile browser building under eclipse .... Mar 21 21:48:28 and a mysql server and nginx webserver running in th bg Mar 21 21:48:33 so then make it 512mb Mar 21 21:48:50 then make the -XX:MaxPermSize=1024m Mar 21 21:49:05 then set -Xms512m and -Xmx1024m Mar 21 21:49:22 I have those doubled on my system Mar 21 21:49:39 save it, close it, reboot Mar 21 21:49:45 eclipse not your system Mar 21 21:49:54 good, just on time :p Mar 21 21:50:04 should improve things a bit Mar 21 21:50:22 you won't get the eclipse ran out of heap when you try to build big stuff Mar 21 21:50:57 I need a VAST xml parser Mar 21 21:51:16 and I don't want to write one Mar 21 21:53:25 what's VAST? Mar 21 21:53:48 http://www.iab.net/vast Mar 21 21:54:26 it is what double-click and dart use for Ads Mar 21 21:54:57 ahh, interesting Mar 21 21:55:10 I was reading about Dart earlier today Mar 21 21:55:24 is it worth learning? Mar 21 21:55:46 from the plethora of languages and frameworks, Dart seemed useful and fast Mar 21 21:56:47 hi Mar 21 21:56:53 dart is supposed to replace javascript Mar 21 21:56:56 no clue if it's going anywhere though Mar 21 21:57:30 kaneda^: yeah, that's what I asked myself as well Mar 21 21:57:49 but anything that can improve quality and readability of JS is good in my book Mar 21 21:58:44 belgianguy: yeah I mean you implement it once and keep the code around Mar 21 21:59:03 belgianguy: I've had to do every version from 3.1 to 6.3.1 Mar 21 21:59:13 bbl Mar 21 21:59:19 same with rhythm Mar 21 21:59:23 same with all the other ads Mar 21 21:59:24 YOC Mar 21 21:59:41 same with reporting tools Mar 21 21:59:57 dantheman: ouch, I thought Dart to be easy set up Mar 21 22:00:12 it is Mar 21 22:00:15 it is super easy Mar 21 22:00:31 I've just been doing this a while Mar 21 22:00:58 you can probably build the code for a banner ad view in like 30min from the DartAPI Mar 21 22:01:07 then fiddle with it Mar 21 22:01:14 and modify it for what your client wants Mar 21 22:03:37 dantheman: ah, I never deal with ads, I was hoping it would give me some sort of layer of JS Mar 21 22:03:46 which ultimately compiles into JS :) Mar 21 22:04:10 I mean they are just custom web views you add to your layout Mar 21 22:04:20 dantheman: ah, I see :) Mar 21 22:04:21 that is all the banner ad stuff is Mar 21 22:04:39 you don't have to do anything special but follow the API Mar 21 22:06:02 Tomorrow, I'm going to tell someone Al Gore invented the word algorithm Mar 21 22:06:29 oops, wrong window for that Mar 21 22:06:36 hahahahahahaahhahah Mar 21 22:06:46 belgianguy: did you mean to send that to mikedg? Mar 21 22:07:14 evanc: well, I should have, looking back now Mar 21 22:08:11 "Well he invented the Internet, so why not a word?" Mar 21 22:08:34 people believe anything the IT guy says Mar 21 22:10:47 I'm off, see you all later Mar 21 22:18:18 someone described the UI of the new Play Store 4.0 as card-ified; what does this mean? i see things are in squares :/ Mar 21 22:19:10 so what is the significance of the card idiom; i still don't get it Mar 21 22:19:30 cards == tiles? Mar 21 22:20:48 g00s: I think whenever anyone talks about cards, they're talking about Google Now's design Mar 21 22:20:50 Take all that computing and graphics power, and dumbdown to 2d squares? Mar 21 22:21:06 for example, here http://phandroid.com/2013/03/20/first-look-at-the-all-new-google-play-store-4-0-with-revamped-card-ified-ui-video/ Mar 21 22:21:19 the 3rd pic, with the green actionbar Mar 21 22:21:26 why is each listview item in a square / card Mar 21 22:21:48 evanc: ok, I haven't used Now. i'll have to check it out Mar 21 22:23:50 Why doesnt eclipse find the standard library (c++), and why wont it let me specify an include path in the properties window? Mar 21 22:24:17 I have the ndk setup correctly, and my program compiles, but eclipse has question marks everywhere because it cant find stuff like Mar 21 22:24:41 ive googled and none of the solutions work for me simply because my properties window seems to lack the functionality to add include paths Mar 21 22:25:36 Pyuruku: it sounds like your eclipse is missing C/C++ capabilities or something Mar 21 22:26:14 i have the cdt installed :/ Mar 21 22:26:22 syntax highlighting works and everything Mar 21 22:26:41 it just doesnt know anything about the stl files Mar 21 22:26:50 g++ is installed too Mar 21 22:29:11 heres a screenshot of my properties window where youre supposed to be able to add include paths http://i.imgur.com/Owo18IW.png Mar 21 22:29:21 its supposed to look like http://mhandroid.files.wordpress.com/2011/01/7.png?w=640&h=322 Mar 21 22:42:52 i'm trying to set up a touch panel on my android device. i've got the kernel module loaded, and dmesg shows that it finds the device. i can cat the dev and see data coming in from it…. but it's not passing touch input to the UI. any ideas on how to bridge this gap? Mar 21 22:44:47 any google analytics wizards present? Mar 21 22:50:00 whats the easiest way getting an app to send e-mails ? Mar 21 23:03:32 hi all Mar 21 23:04:40 i have problem with custom listview Mar 21 23:04:44 http://stackoverflow.com/questions/15534125/custom-listview-not-showing-on-listfragment Mar 21 23:06:14 evening Mar 21 23:06:51 Is there a trick to seeing events in Google Analytics? I have my dispatch time set to 0 (for testing), and I'm sending an event but not seeing it show up Mar 21 23:09:28 ok nevermind Mar 21 23:09:33 I had the wrong date range showing :( Mar 21 23:10:50 whats the easiest way getting an app to send e-mails ? Mar 21 23:11:20 I'm thinking of sending like a message from the app to a webserver and the webserver then sends a mail using the app author as reference Mar 21 23:11:34 or else I'm gonna have to use their own private e-mail logins on their androids right ? Mar 21 23:11:41 P3nnyw1se: http://lmgtfy.com/?q=android+send+email Mar 21 23:13:09 ... Mar 21 23:13:33 I will read up on how to do it when I decide on which way Mar 21 23:13:42 I was kinda hoping that someone would say 'oh this is by far the easiest and best solution' Mar 21 23:13:47 other than just sending me to google Mar 21 23:13:54 P3nnyw1se: Intent.ACTION_SEND Mar 21 23:14:17 that's by far the easiest way Mar 21 23:14:26 if that won't work for you, then hit up google Mar 21 23:15:08 mmmmm I'm reading about it now Mar 21 23:15:15 but dont the app owner need some form of provider ? Mar 21 23:15:20 or phone owner Mar 21 23:17:38 any help? Mar 21 23:25:30 sorry JakeWharton, too busy to come tonight Mar 21 23:27:38 mooooooooooo Mar 21 23:32:06 when youre replacing fragments, the field that the new fragment occupies has to be in the same layout tree/xml file but for me, this field is covering the other items in the tree. how can i stop that? Mar 21 23:32:29 the field is a framelayout Mar 21 23:40:21 Hi, I don't understand the difference between the style.xml file in folder value, and when to use xml files in the drawables folder Mar 21 23:43:31 Purilla: if you ask a question, there maybe an answer Mar 21 23:43:50 but stating that you haven't learned something, not sure anyone will reply Mar 21 23:44:24 I want to color the background of my Relative layout. Should I create an xml in drawables or style it in values? Mar 21 23:44:27 achmode: not sure your explination is all that clear or easy to visualize Mar 21 23:45:24 I was hoping someone could clarify when I would use style.xml instead of just creating xmls for everything in drawables Mar 21 23:45:24 or just set a color Mar 21 23:46:00 or reference a color from ones you may/may not have defined in values Mar 21 23:46:08 but you can set color directly Mar 21 23:46:18 no need for style or drawable etc Mar 21 23:46:35 ok Mar 21 23:47:09 StingRay_, http://pastebin.com/Y79Zc53M this framelayout must fill the screen with this content http://pastebin.com/BmUHfGGg Mar 21 23:47:46 Thanks StingRay_ Mar 21 23:48:04 but i can still see the listview that was replaced at the bottom Mar 21 23:49:06 achmode: well you have a linear layout with 3 items stacked verical Mar 21 23:49:16 if you put something in frameLayout Mar 21 23:49:21 id/rep Mar 21 23:49:40 isnt the framelayout supposed to overlap the other two items? Mar 21 23:49:46 no Mar 21 23:49:55 not when it's in a lin layout Mar 21 23:50:07 tis that parent that controls placement Mar 21 23:50:10 not a child Mar 21 23:50:25 think about when you have kids and picking schools Mar 21 23:50:27 :) Mar 21 23:50:42 so i should give the parent an id and replace that? Mar 21 23:50:54 well yeah, if you want the whole thing gone Mar 21 23:51:09 but sounds like you may just want to setContent(your new layout); Mar 21 23:51:17 depends what you wanting Mar 21 23:51:36 i just want them to overlap till i pop the backstack Mar 21 23:51:50 overlap ? Mar 21 23:51:59 you mean "be on top of" Mar 21 23:52:04 yes Mar 21 23:52:44 and id/rep has a fragment in it ? Mar 21 23:52:53 that your doing a transaction on ? Mar 21 23:52:56 and replacing ? Mar 21 23:53:14 yes doing replace before but i changed it to add() Mar 21 23:54:41 still a bit hard for me to think about what your attempting, but I have just taken many codine/paracetamols…… major headache Mar 21 23:54:53 well no headache now, just feel a bit drunk Mar 22 00:00:03 StingRay_, when i do a replace/add on the parent, the button gets pushed to the top. it shouldnt be visible at all :s Mar 22 00:06:03 achmode: why are you removing it ? Mar 22 00:06:56 StingRay_, because i clicked on an item in the list and i want the new fragment to take up all the space available Mar 22 00:07:29 i mean your not doing anything with the view that has a button in Mar 22 00:07:34 hello. ViewPager doesn't seem to work if its not xml root. is it its behaviour or did i make a mistake somewhere else ? Mar 22 00:07:40 the button being there puts a part of the fragment off the screen Mar 22 00:08:14 i mean... i don't want to swipe the entire page but only a part Mar 22 00:08:17 Im not using the button, but Im using the list Mar 22 00:09:02 so why is the button there ? Mar 22 00:09:07 i could remove the button but i wanted to know why its still visible for my benefit Mar 22 00:09:20 cuase your not doing anything to it Mar 22 00:09:22 remove Mar 22 00:09:24 hide Mar 22 00:09:25 etc Mar 22 00:09:40 you doing something to the view above it in a "linear" list Mar 22 00:10:38 in a linear layout, with items a,b and c, if you swap contents in b, then you should expect a and c to stay the same Mar 22 00:10:55 or at least contain the same things Mar 22 00:12:35 well its showing properly now but i expected the button to be hidden since its a child of LinearLayout which i added the rep id to Mar 22 00:13:07 no it isnt Mar 22 00:13:26 rep id is for the frame layout that is in position[0] in the linear layout Mar 22 00:13:38 the button is in position [2] of the linear layout Mar 22 00:13:51 besides sharing a parent they have nothing to do with one another Mar 22 00:15:51 i think you may be seeing the hierarchy wrong Mar 22 00:17:38 as in your layout is