**** BEGIN LOGGING AT Sun Apr 27 03:00:01 2014 Apr 27 03:23:18 I thought a macchiato was a latte with less espresso? Apr 27 03:30:20 No, macchiato means marked with milk Apr 27 03:30:36 Ahh, my mistake then! Apr 27 03:30:49 latte is coffee flavored milk Apr 27 03:31:20 Starbucks fucked it all up Apr 27 03:31:26 Don't go there. Apr 27 03:31:30 Ever. haha Apr 27 03:31:43 More calories in a coffee than most of my main meals! Apr 27 03:52:38 slow night Apr 27 03:53:57 Very. It was last night too Apr 27 03:54:02 Well, when I was on anyway. Apr 27 04:08:18 hey hey hey Apr 27 04:08:21 its faaaat albert Apr 27 04:45:08 ok Apr 27 04:49:29 Hi, is it possible to develop for android under linux? *In the android SDK, it says that the emulator is not Linux compatible* Apr 27 04:49:45 or is it just simplier and better to dev under Windows environment? Apr 27 04:49:58 I believe it is, but a pain in the arse to get working right. Just plug a device in and use that. Apr 27 04:49:58 Toordog: where does it say that? Apr 27 04:50:14 Android SDK Manager Apr 27 04:50:28 the emulator has worked under Linux since at least Android 1.0 days, and presumably before Apr 27 04:50:33 what *exactly* does it say? Apr 27 04:51:43 I have the the checkbox to install it from the android sdk manager and status column it says : Not compatible with Linux Apr 27 04:51:50 should be HAXM. Apr 27 04:52:09 Intel x86 Emulator Accelerator (haxm install Apr 27 04:52:19 installer Apr 27 04:52:35 that would only be the accelerator probably that is not linux compatible Apr 27 04:52:37 right, that's not the emulator, that's a driver for virtualising the emulator Apr 27 04:52:43 ok Apr 27 04:52:59 ok Apr 27 04:56:37 looks like it could be enabled on Ubuntu with KVM. https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator Apr 27 04:56:51 Toordog: and it's only for running the x86 images. Which are accelerated anyway if you have KVM Apr 27 04:56:54 yes, but that's not haxm Apr 27 04:57:02 and haxm isn't the emulator Apr 27 04:57:04 So there is no built in theme for a dark actionbar fullscreen :/ Apr 27 04:57:13 api 14+ Apr 27 04:57:15 the emulator is just QEMU with specific hardware emulated Apr 27 04:57:27 waht about running inside a vmware linux guess? Apr 27 04:57:31 guest Apr 27 04:58:11 My dev environment is actually a Linux running in VMWare. Apr 27 04:58:14 ... if your hw can do nested virtualization Apr 27 04:58:19 ok Apr 27 04:58:25 never tried Apr 27 04:58:30 quite recent hardware Apr 27 04:58:31 why would you do that? Apr 27 04:59:22 Leeds i'm not a programmer by profession, i'm a sysadmin with some programming hobby. I prefer to keep my main workstation clean Apr 27 04:59:33 and dev can add a lot of funny stuff in a workstation Apr 27 04:59:48 honestly I ran my dev environment in a vm for like 2yr Apr 27 04:59:52 after thats said and done Apr 27 04:59:53 EFF that Apr 27 05:00:10 slow Apr 27 05:00:16 Toordog: still, at some point you'll have to use a real device Apr 27 05:00:19 all the weird problems with networking etc Apr 27 05:00:21 ok Apr 27 05:00:29 especially since x86 devices are rare Apr 27 05:00:36 Anybody ? Apr 27 05:00:57 I guess at some point after the apps compiled, I could run the emulator on the native os Apr 27 05:01:25 droidbuster: Set the dark action bar not full screen theme, and then set it to full screen programmatically? Apr 27 05:02:04 Anthaas: I figured that was an option but will is cause problems with a NavDrawer Apr 27 05:02:46 Toordog: build yourself a separate dev box Apr 27 05:03:22 and yeah its best to avoid emulators and virtual machines if you can Apr 27 05:03:27 ok Apr 27 05:03:55 i'm probably good to change cellphone anyway, so the current one could become the test device Apr 27 05:47:43 what does it mean ? @android:id/list Apr 27 06:32:31 Is there some out of the box way of having a scrollview fade the content at top and bottom ? default behaviour is quite harshand looks ugly (just disappears) Apr 27 06:42:54 ktwo: you can always have a view that has semi-transparent opacity on top of the scrollview Apr 27 07:14:18 google plus' UI is so confusing to me, how do you people use it? Apr 27 07:14:38 i can't read the #androiddev section without some fancy javascript widget popping in and out Apr 27 07:14:53 would you rather a never ending changing UI like Facebook's? Apr 27 07:15:46 no, but something like reddit would be perfect Apr 27 07:16:04 though reddit was confusing too when i first started using it Apr 27 07:17:25 whats google plus? Apr 27 07:17:52 it's only the most sexy awesome social networking site Apr 27 07:17:55 in all seriousness though, i hate that UI too Apr 27 07:18:12 i also hate 'comments' Apr 27 07:18:14 it's another of Google's EOLed random services Apr 27 07:18:21 thepoosh: are there people on it Apr 27 07:18:29 at least that's what I read on techcrunch Apr 27 07:18:33 i'd like G+ if it didn't show anyone's comments :D Apr 27 07:18:47 Looney: dunno, it was sarcastic Apr 27 07:19:05 I like the service to be hones Apr 27 07:19:15 hangouts is awesome Apr 27 07:19:23 it has better parts Apr 27 07:19:28 but sometimes it sucks Apr 27 07:19:30 g+ isn't going away, its probably just going deeper Apr 27 07:19:37 you won't know you are using it Apr 27 07:19:38 I mean, back in the day Skype would allow only multi-user free voice call only Apr 27 07:20:06 I have the integration of G+ with YouTube Apr 27 07:20:17 cannot say if others share the notion Apr 27 07:20:39 why do I need to comment with my G+ to a YouTube video Apr 27 07:22:43 google earth for mac is so terrible, i expect them to shitcan that also Apr 27 07:23:21 i mean, a geospatial tool with no full screen support? srsly? Apr 27 07:23:30 ^ LMAO so true Apr 27 07:23:40 Google earth - along with pretty much all desktop client applications - is dying a more-or-less slow death Apr 27 07:23:57 Leeds but the chome plugin is gimped Apr 27 07:24:40 ah... except chrome, which is a platform, not a simple client... Apr 27 07:24:46 but yeah, you are probably right Apr 27 07:24:58 but to be fair, is also mobile, hence sexy Apr 27 07:26:00 but I only use https://maps.google.com to navigate/route planning Apr 27 07:26:11 no earth thingy Apr 27 07:26:20 why burden desktop with an icon Apr 27 07:26:39 when you can get the thing done without it Apr 27 07:27:13 i'm just hoping at this next i/o the changes coming to android are not difficult for an individual dev for me to handle; presumably new apis and such, but i hope its not a GB/ICS divide again, except ICS/4.5 or 5.0 or whatever Apr 27 07:27:45 as long as stuff is in the support library for reasonable fallback, thats good Apr 27 07:28:02 but if they come out with all new design guidelines, i'm going to struggle again Apr 27 07:28:14 i find the current guidelines pretty easy Apr 27 07:28:18 I hope that they make api/doc so good for ndk that I can get my app written with all the neat ui using C++ only Apr 27 07:28:24 the old froyo icons were such a PITA Apr 27 07:28:53 and then when GB they made things slightly darker, just to fuck with everybody Apr 27 07:37:32 I have 6 NDK C++ apps that I unpublished Apr 27 07:37:39 Some of them are on Github Apr 27 07:37:58 Ologn unpublished ? Apr 27 07:38:10 Published to Play then unpublished Apr 27 07:38:24 why unpublish O.o ? Apr 27 07:39:28 I don't want to get support e-mails for something I won't be working on...and I put it on Github so anyone can compile or publish them Apr 27 07:40:15 Who knows how the ratings etc. of one app affect your other app rankings any how...maybe it would harm them... etc. Apr 27 07:45:58 somewhere wrote @android:id/list will use the ID "list" from the package android so @android:id/list is static and we can not use any name instead of list ? Apr 27 07:47:29 mintux: you're talking about a ListActivity? Apr 27 07:47:53 yes Apr 27 07:48:34 Leeds: it's unique when we use @android:id/list and we should not change list here ? Apr 27 07:48:56 then I'm pretty sure you have to use the IDs as defined Apr 27 07:49:08 Leeds: and when we extends ListActivity we should use @android:id/list Apr 27 07:49:13 ? Apr 27 07:49:15 yes Apr 27 07:49:18 ah Apr 27 07:49:39 what does that mean ? because my array-list has different name Apr 27 07:50:09 and maybe i have two list view in my stage Apr 27 07:51:03 I don't think you can use a ListActivity if you want anything except one ListView Apr 27 07:51:28 hmm Apr 27 07:52:19 Leeds: so we don't put two listview same time in same stage Apr 27 07:52:36 all the world may be a stage, but I don't know what you mean by it here Apr 27 07:54:12 i mean only main.xml layout Apr 27 07:54:24 I don't think you can use a ListActivity if you want anything except one ListView Apr 27 07:54:25 it's not normal i put to list view there Apr 27 07:54:32 **two Apr 27 07:55:04 do you want exactly one ListView and nothing else? Apr 27 07:56:10 Leeds: now im learning and in this example put one ListView then put @android:id/list for id . so it made a question for me... if we want to have two listview then how should we put id for it Apr 27 07:56:32 if you want one ListView, and nothing else, you can use ListActivity Apr 27 07:56:53 if you want anything other than one ListView - say, two ListViews - you can't use ListActivity, just use a regular Activity Apr 27 07:57:02 ah Apr 27 07:57:06 thanks Apr 27 07:58:16 and if you're not using ListActivity, don't use @android:id/list Apr 27 08:16:35 need good materials on how android maintains creens Apr 27 08:20:11 I'm not an android developer myself, but I'm looking into trying to eventually get someone to port some Windows applications to Android. I was wondering if there was any suggested steps I could take to understand the amount of work necessary when evaluating a potential application and the amount of work needed for the port? Apr 27 08:22:33 DynamicFail only the person doing the work can estimate it Apr 27 08:23:35 i can't estimate how long it should take my car mechanic to change the starter for a mercedes, based on what some guy on irc told me about difficulty of changing the starter on a dogdge Apr 27 08:37:49 Hey guys! Wondering if you could take a minute to answer some questions about Android development. I'm going to be using this information for a school project. Apr 27 08:37:55 1. What is your process when developing an Android application from start to finish? Apr 27 08:38:01 2. How can you design the GUI to get the user more involved and more interested? Apr 27 08:38:09 3. How do your plan you ideas for your application? Apr 27 08:38:16 4. Which is the best way to distribute your application? Is there other options? Apr 27 08:38:26 Thank you :) Apr 27 08:41:16 MrCrayfish each of those topics is worth a book Apr 27 08:41:40 I know I can read a book. Apr 27 08:41:50 but Apr 27 08:42:07 a requirement of my school project is to get first hand information Apr 27 08:42:27 from someone that works in the field Apr 27 08:43:16 Can anyone tell me how to import this into my project using Eclipse? https://github.com/emilsjolander/StickyScrollViewItems Apr 27 08:43:41 MrCrayfish you're probably better off then locating a mobile dev co in your area and asking if they could give you an interview Apr 27 08:44:52 if this is a school project, like uni, then you could maybe do ethnographic research Apr 27 08:48:26 Yeah, that was my problem. We don't really have any companies where I live that develop mobile apps Apr 27 08:57:49 Is that a no? xP Apr 27 09:16:14 i have continues.xml file with this content: http://codepad.org/VfmheF7y i want to access it in getResources().getStringArray(R.array.) but it's not in autocomplete where should i add it? Apr 27 09:17:00 this file is here: http://axgig.com/images/74006429547059946317.jpg Apr 27 09:19:43 minutyou need to import the correct R-class.. sometimes the IDEs gonna import the wrong R Apr 27 09:20:05 i drag this file into adt and this folder Apr 27 09:20:12 how should import it ? Apr 27 09:21:41 mintux: check your import statements.... your R-class lives in your apps package... androids systems R lives in another package. if you did not put your activity in another subpackage there should be no R-import at all Apr 27 09:22:16 is an application have at least on real start/create fonction that is called only once by launch ? Apr 27 09:22:22 i use import and now it visible Apr 27 09:26:26 If anyone with a talent for tracking down unanimous bugs on weird devices is here and willing to help, could they see http://hastebin.com/iqoxavewik.txt which applies to the Huawei Ascend P6, this bug happens when switching between the actvities described here https://gist.github.com/boxmein/45e4c17b79340b6f3a19 Apr 27 09:38:31 is it crashing your app ? Apr 27 09:39:12 if i upload apk to Alpha Testing area, will it be visible in google play already? Apr 27 09:39:16 or only with the link Apr 27 09:39:34 only via a link Apr 27 09:39:39 ah ok thx Apr 27 09:40:17 have they changed how alphas are done now, you used to have to create a google group Apr 27 09:41:24 bankai_au: it's crashing my app in that the app stops working instantly while switching between Activities Apr 27 09:42:24 when you say 'switching between activities', what do you mean ? Apr 27 09:42:29 on clicking the play button, an alert dialog with only an OK button saying "Unfortunately, has crashed." is shown and the app below it dies Apr 27 09:43:41 bankai_au: on startActivity(intent), precisely inside https://gist.github.com/boxmein/45e4c17b79340b6f3a19#file-mainactivity-java-L61 Apr 27 09:44:58 it only happens on some crappy huawei device ? Apr 27 09:45:16 sadly, yes Apr 27 09:45:24 and that crappy huawei device is my only device Apr 27 09:45:45 which will obviously pose an error for my trying to debug that application Apr 27 09:46:14 I should however note that I am unsure what caused this enoent as I've debugged my app on that phone earlier Apr 27 09:46:33 I've however installed a new launcher and a few apps since, none of them with root permission Apr 27 09:49:06 what's this GameActivity class do ? Apr 27 09:49:45 GameActivity class launches a libgdx game object and all it requires from the level-selection menu is a level number Apr 27 09:50:55 i'm not sold that this log has anything to do with your app Apr 27 09:52:08 me neither... Apr 27 09:52:22 I see Apr 27 09:52:59 the project used to use a carbon copy of R.layout.simple_list_item_1 for an ArrayAdapter but I swapped it out for the android.R.layout default one, which apparently might be an issue Apr 27 09:53:03 I am going to investigate further Apr 27 10:01:21 * boxmein hides Apr 27 10:17:03 well, apparently that warning is something that happens all the time on the phone. Apr 27 10:17:16 aaand what the actual issue was is two lines down, a single line saying unhandled exception Apr 27 10:17:18 thus i handled it Apr 27 10:17:29 ;) Apr 27 10:17:30 and it was a null pointer, which I got hold of Apr 27 10:17:32 blech Apr 27 10:17:55 thanks for your moral support anyway, lol Apr 27 10:18:15 just the existence of someone to talk through with is useful Apr 27 10:18:22 rubber duck debugging! Apr 27 10:28:49 hello all! does anyone know the "Intent Intercept" app? This app doesn't do anything but showing the welcome menu. What do I have to do to make it work? Apr 27 10:30:42 get the source, compile, run Apr 27 10:38:40 Is there any advantage to storing images as blobs in an sqlite db versus having the images under drawable? The images relate to the data stored in the sqlite database and I'm tracking > 60 items Apr 27 10:39:51 um Apr 27 10:39:55 don't store blobs in sqlite Apr 27 10:39:56 PLEASE. Apr 27 10:39:58 ever. Apr 27 10:40:16 sqlite doesn't handle large data well and you'll have ton of performance issues Apr 27 10:40:19 aww he said please ... Apr 27 10:40:43 while drawable interfaces are cached and optimized for fast loading Apr 27 10:40:49 Ok Apr 27 10:40:57 How could I link items in the db to drawables? Apr 27 10:41:26 ie resolving R.drawable.something based on the db row Apr 27 10:42:00 you don't. Apr 27 10:42:14 if you want to do that, you put your images in assets directory Apr 27 10:42:28 and use assets accessor for them, and you store paths in the DB Apr 27 10:42:56 Will I still get the caching benefits you mention above? Apr 27 10:42:57 (which is what you should do for pretty much MOST of DB engines no matter what the use case) Apr 27 10:44:08 if you have a lot of items use picasso or implement your own bitmap caching Apr 27 10:45:48 Another question following a similar line. I'm drawing some pretty complex polygons onto a GoogleMap which I'm loading from a GeoJSON file. Would I see much benefit in moving that into an SQLite database? Apr 27 10:47:42 why do you think there would be any benefit? are you doing queries? Apr 27 10:48:29 I've currently got both a GeoJSON file describing polygons and an SQLite db with data relating to the areas covered in the polygons Apr 27 10:48:59 From an architectural standpoint it may be cleaner to have a single data source Apr 27 10:50:06 um. Apr 27 10:50:11 stuffing random data into tons of tables Apr 27 10:50:25 is rarely something that anyone would want you to do from architectural standpoint\ Apr 27 10:51:02 Define random data Apr 27 10:51:42 how could i ensure an apk does not run anymore if the class files were modified? Apr 27 10:51:58 Bacta, images, location data, stuff etc. Apr 27 10:52:12 Bacta, storing data that doesn't change into a sqlite is rarely a good idea Apr 27 10:52:18 unless you have to do queries Apr 27 10:52:34 it just adds pointless complexity and lookups to your system Apr 27 10:52:57 ktwo, short answer: you probably can't with 100% reliability Apr 27 10:53:04 ktwo, but you can check hash Apr 27 10:54:04 Would likely require hacking up the class loader too Apr 27 10:54:19 where should the hash check be done? basically if i would check it in my classfiles it would be possible to disable this check too Apr 27 10:54:45 ktwo, yes, that's why I said: you cannot do this with 100% reliability Apr 27 10:55:06 any check you add can be overriden by just modifying your code anyway Apr 27 10:55:28 Mavrik: So where would you store this data? Application xml resources? Apr 27 10:56:09 would using the NDK make it a little harder ? or is it quite easy to reverse that too? Apr 27 10:59:20 Bacta, what data? Apr 27 10:59:26 you didn't say anything what that data is Apr 27 10:59:37 is it static? is it read once? is it searched? when does it change? do you want to push updates? Apr 27 10:59:51 how big is it? do you always load it in one piece? Apr 27 11:00:07 ktwo, define "easier" Apr 27 11:00:21 NDK won't help you when you can stub out the NDK call ;) Apr 27 11:03:02 mh true, maybe i could write a file on the native code, which is modified on each call, and if the program detencts.. oh darn.. IF...:D Apr 27 11:10:19 hey, is there an intent to show the keyguard, i have disabled it and would like to go back to it after an event Apr 27 11:10:28 im doing this but its not working this.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); Apr 27 11:46:26 Anyone able to help me understand Google Play iconography requirements? Apr 27 11:46:53 Not if you don't ask a question. Apr 27 11:48:03 Well it says Launcher Icons on a mobile device must be 48 px * 48px and Launcher Icons for display on Google Play must be 512 * 512. Can this be two different images? Apr 27 11:48:41 It's pretty difficult to have one image look good at these two sizes Apr 27 11:50:27 You'll supply it in 4-5 different sizes on the device anyway. Apr 27 11:51:04 They shouldn't be completely different icons, but I guess you mean that for something that's 48x48 pixels (mdpi) some detail would have to be removed. Apr 27 11:51:24 So can I just start with a 512 by 512 and reduce it to the other required sizes? Apr 27 11:51:49 Try to keep the icon simple with little detail. It should mainly work on the device, I don't think it's actually displayed in 512x512 anywhere. Apr 27 11:51:52 Sure Apr 27 11:51:58 https://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/ has teh sizes Apr 27 11:52:18 thanks, I'll have a look at that Apr 27 11:52:57 kakazza, on google play website probably it is Apr 27 11:53:08 elsewhere? not likely Apr 27 11:53:19 Yeah, but I wonder if they actually display it in its full glory Apr 27 11:53:21 Let's see Apr 27 11:54:28 Seems they resize it to 300x300 (at least here), but sure, it's good that they have it in 512x512 just in case. Apr 27 11:54:38 I would have thought that the image I'd use to represent my app on the google play site would be different to the icon used in the launcher Apr 27 11:54:42 But the priority (for me) would be that it looks good on the device. Apr 27 11:55:01 Why would you do that? Apr 27 11:55:15 User installs, expects icon A, gets icon B instead? Apr 27 11:56:36 I guess you could add some detail to the web image, but I wouldn't make them completely different. Apr 27 11:57:25 Well it's easy enough to use one image but I just feel that an image that's going to look ok at 64 * 64, will look sparse at 512 by 512, and an image that looks ok at 512 will be too clutered at 64 Apr 27 11:58:29 https://lh4.ggpht.com/Ebn-CW55BnkwG7ng5nuGpijVpJeabTa-uPijd4keKbHpedz29SvDj3EZkfr20ZZzznE=w512-rw Apr 27 11:58:30 For example, I have an animated character that has eye detail at 512 but at 64, it isn't visible and would look better just having a dot where the eye is Apr 27 11:58:33 Works for Google. Apr 27 11:59:26 Sure, you can do that. That's a good idea even, I'm just saying that it shouldn't be a red square in the web version and a green triangle on the device. Apr 27 12:00:27 This article goes into that, even http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html Apr 27 12:01:12 Even if not directly regarding launcher icons. Basically says what you said, scaling often doesn't cut it. Apr 27 12:03:11 i'm trying to run this example: http://www.techotopia.com/index.php/Detecting_Common_Gestures_using_the_Android_Gesture_Detector_Class Apr 27 12:03:20 why might i be getting NullPointerException at `this.gDetector.onTouchEvent(event);` Apr 27 12:03:25 In my application, i create a sqlite file, and i want to send it via a httppost request, but i don't know where is the file how to access to it, any idea please ? Apr 27 12:03:26 http://www.vogella.com/tutorials/AndroidSQLite/article.html Apr 27 12:03:44 Kane: why are you sending a whole file? Apr 27 12:04:09 http://www.vogella.com/tutorials/AndroidSQLite/article.html safe to say article needs update, as it states sqlite doesnt support data types other than integer, real and string Apr 27 12:04:34 Kane: if you insist to access it, use DDMS tool Apr 27 12:05:33 mostly because i don't know how much line it have inside, and since it will contain only few, it's not really a probleme i think Apr 27 12:05:47 line 29: java.lang.NullPointerException at com.example.commongestures.CommonGesturesActivity.onTouchEvent(CommonGesturesActivity.java:29) Apr 27 12:05:55 http://bpaste.net/show/239931/ Apr 27 12:07:50 Our application is non-free. Is there a way to have it free for just beta testing? It seems silly to force our testers to pay for the application. Apr 27 12:17:51 how to set Button on right of a horizontal LinearLayout? layoutGravity and gravity = right isn’t working. Anything else? Apr 27 12:18:15 here’s the snippet: http://hastebin.com/diyogegepo.xml Apr 27 12:18:42 davo: what is null? Apr 27 12:23:07 Leeds, i can't tell what is null, logcat shows http://bpaste.net/show/6l6EFkswZwNRhMrnWhGv/ Apr 27 12:24:10 davo: of course you can tell what is null Apr 27 12:25:01 the Activity? Apr 27 12:25:17 line 29: this.gDetector.onTouchEvent(event); Apr 27 12:25:43 either "this" is null or "gDetector" is null, or onTouchEvent throws an exception Apr 27 12:25:45 the event is null Apr 27 12:25:50 oh Apr 27 12:25:59 which of these is the most likely one Apr 27 12:26:14 (hint: gDetector) Apr 27 12:26:34 heh oh Apr 27 12:28:20 bad question? how would i make it not null? Apr 27 12:28:38 do you know java? Apr 27 12:29:07 you need to initialize the variable somewhere Apr 27 12:29:21 ah yes i think i found that missing in the onCreate Apr 27 12:29:33 this.gDetector = new GestureDetectorCompat(this,this); Apr 27 12:29:42 good Apr 27 12:29:48 instantiating perhaps Apr 27 12:29:57 thank you :) Apr 27 13:58:43 how to make the android title icon clickable? Apr 27 14:10:21 what exactly can I do with "Intent Intercept" app at all? Apr 27 14:36:13 did i miss something to send a file via httppost ? http://pastebin.com/7CN0VmXe Apr 27 14:54:22 Why alarmManager.setRepeating in kitkat being make the alarmReceiver to be called immediately? Apr 27 15:00:00 http://pastebin.com/7ks25Adh << alarm receiver is being called immediatlly Apr 27 15:01:12 One of the parameters is the first invocation time, you set it to current time. Apr 27 15:02:11 nexsoftware: but then i changed the hours and minutes Apr 27 15:05:15 Ah, I see. I've always used Calendar.getInstance(), not sure if that makes a difference. Apr 27 15:11:08 android devs Apr 27 15:11:26 can i store special calls to get settings info in Application class? Apr 27 15:12:13 nexsoftware: so do you have an idea why it run the second i call the alarm? Apr 27 15:12:40 checked in kitkat and in gingerbread, and it called in the second i call setRepeating Apr 27 15:21:46 anyone mind critiquing my launcher icon? Apr 27 15:21:50 http://imgur.com/GVtYrrM Apr 27 15:21:57 (the mustache doesn't look like sperm anymore :D) Apr 27 15:22:44 kissing whales :) it have something to do with locking/protecting info? Apr 27 15:24:00 nope. haha, what's your first impression of what the white object should be? Apr 27 15:24:22 it seems like a key hole for a lock Apr 27 15:24:38 or almost skull'ish Apr 27 15:24:42 :| Apr 27 15:24:49 it should be a chef hat Apr 27 15:25:04 didn't see that :) Apr 27 15:25:24 Mango_Man: I'd give it some "bulbs" at the top, maybe 3 Apr 27 15:25:26 figured key hole, plus fake mustache = security, anonymous Apr 27 15:25:30 argh, it's a bad silhouette...back to the drawing board Apr 27 15:25:38 that way the chef hat get's more clear, and it looks less like a keyhole Apr 27 15:26:12 yeah definitely, thanks for the feedback guys Apr 27 15:27:46 Mango_Man: put the pleats in the hat Apr 27 15:27:57 Mango_Man: and I bet it'll look more like a chefs hat. And the band around the bottom. Apr 27 15:28:09 Mango_Man: plus, having the context of knowing it's a chef-related app name will probably help Apr 27 15:42:42 Greetings. Apr 27 15:43:15 Determining ambient light lux value using back camera: is that possible ? Apr 27 15:43:25 ( if the device does not have a light sensor ) Apr 27 15:46:18 It should be. Apr 27 15:46:40 Anyone awake ? Apr 27 15:47:30 yes Apr 27 15:47:37 i don't know what that means though Apr 27 15:48:42 hehe Apr 27 15:48:45 funny Apr 27 15:49:00 Great that you are awake. Apr 27 15:49:03 :) Apr 27 15:49:24 Its rather technical. Apr 27 15:52:04 what day is it ? Apr 27 15:52:11 :) Apr 27 15:53:11 On mars ? Apr 27 15:57:27 On mars its a sol ? Apr 27 15:58:31 hey, how would you get a motion "ACTION_UP" from inside a viewpager fragment Apr 27 16:02:44 hi guys Apr 27 16:03:11 what is suggested way to share data across android activities? e.g something you want to load from db once and access? Apr 27 16:08:17 topriddy1, singleton? Apr 27 16:31:52 Can anyont help? I'm moving my project to IDEA and I get package R does not exist Apr 27 16:34:03 find out why, make sure all resources are legit Apr 27 16:39:56 canvs2321, they are legit, it compiled on Android Studio Apr 27 16:42:25 It is also weird that I added robototextview via maven and it's telling me Error:(24, 42) java: package com.devspark.robototextview.widget does not exist Apr 27 16:46:39 mm, if you apply a shadow to something in photoshop, then run it through an vector tracing program, you can get this really pretty painted effect Apr 27 16:48:14 yo Mango_Man Apr 27 16:48:19 you disappeared last night Apr 27 16:48:25 did you get the link to the logo? Apr 27 16:48:42 i did not Apr 27 16:48:48 :( Apr 27 16:48:50 Mango_Man: http://i.imgur.com/AVl7Wol.png Apr 27 16:49:11 dang that's really good Apr 27 16:49:32 https://drive.google.com/file/d/0BxaaQ-XiIcHAY1dBT1pHYzVkYUk/edit?usp=sharing Apr 27 16:49:34 here you go Apr 27 16:50:24 thanks Napalm, you're the best Apr 27 16:50:29 i know :D Apr 27 16:50:31 lol Apr 27 16:50:40 i wanna see this app published now Apr 27 16:50:41 :D Apr 27 16:51:07 :D will definitely paste a link here when it's done Apr 27 17:17:42 heyo eveyone. so i’m building an app that utilizing a custom listadapter and each item in the list can be “liked”. now, i’m going to try and build this in today but i feel like my head is all over the place. hopefully somone here can give me some ideas Apr 27 17:19:17 where i’m stuck is determining whether or not the user has already “liked” an item in the list. I would have to run a background thread to pull this data in getView() without the item getting all whacky if the user scrolls or something Apr 27 17:20:11 so it would have to work: getView -> create view -> trigger background process to see if user has already liked (pass in the view as an argument to be updated) Apr 27 17:20:17 this should hypothetically work, correct? Apr 27 17:21:21 burmat: I'd imagine you'd want to trigger it on an element of your data store, not an item in the list Apr 27 17:21:30 burmat: then do a notifydatasetchanged on your adapter Apr 27 17:22:11 burmat: which will update the listview. This assumes data in your backend store is consistent however; if additional threads are changing that you'll need to synchronize that Apr 27 17:22:45 burmat: for instance do the lookup on favorite by key, then have a synchronized method which finds whereever that key might be in the list once the lookup completes, updates the record, then does notifydatasetchanged Apr 27 17:23:05 dragorn: Apr 27 17:23:11 (instead of doing the lookup on the object or index directly, if you think your backend is mutable data) Apr 27 17:24:38 dragorn: so populating the list, grabbing the most recent “likes”, and then checking to see if they are contained in the list would be a better method (taking what you said and reversing it a little) you think? Apr 27 17:24:59 has anyone used the AudioManager class that much? Apr 27 17:25:01 i'm not getting the setparameters method to work... Apr 27 17:25:30 i guess where i am having trouble is, I don’t want to have to run: didThisUserLIkeThisThing() for EVERY item in the list Apr 27 17:26:14 dragorn: so yeah, I guess running one query and iterating through the items makes a little more sense.. Apr 27 17:26:48 you could do tht too. If it's a really long query you could even experiment with notifying after each item is cleared Apr 27 17:27:43 dragorn: it’s a really *short* query. all of the user likes are stored in a seperate data store and are just tied to an object by an id Apr 27 17:27:48 if you want to be really clever have a work thread w/ an array of identifiers that acts like a LIFO, and prepend new items to it from your listadapter conversion Apr 27 17:28:01 that way it looks up the items the user is currently viewing first Apr 27 17:28:32 dragorn: ah so as the items are loading append them to the query to pull them first? Apr 27 17:28:42 yeah Apr 27 17:28:44 if you wanted Apr 27 17:28:49 you might also just run a query on them all Apr 27 17:28:49 yeah, i like that idea the most Apr 27 17:28:50 first Apr 27 17:28:53 and see if it matters Apr 27 17:28:57 yeah, for sure Apr 27 17:28:59 do some timing tests Apr 27 17:29:04 hey thanks man, that helps Apr 27 17:29:15 i was stuck there when it came to ideas Apr 27 17:29:15 cool. good luck w/ it Apr 27 17:29:34 if the query is TRULY SUPER short, you could maybe do it on the onviewcreate in your adapter Apr 27 17:29:36 but that's a little sketchy Apr 27 17:30:15 yeah that doesn’t sound like a good idea haha Apr 27 17:30:18 I've also played w/ spawning runnables to update a row in the listview. As I recall, it worked, but it's kind of dumb Apr 27 17:30:31 and there was lots of bookkeeping to make sure the row was what I thought it was Apr 27 17:30:34 that’s exactly what i did in my last app Apr 27 17:30:37 and somehow it worked Apr 27 17:31:08 but every once in a while everything got whacky if you scrolled to fast and the runnables fell out of order with the views and they were in correct Apr 27 17:31:17 yeah, views get recycled Apr 27 17:31:19 and that can be a bitch Apr 27 17:31:23 that’s why i wanted to avoid that altogether and figure out what other people were doing Apr 27 17:31:28 yeah, it really can be Apr 27 17:31:54 set tags, then in your runnables check that tag to make sure what you are updating is still a valid resource Apr 27 17:31:54 i mean, i know people have done this right (fb, instagram, etc) Apr 27 17:31:58 i just want to see their source so i know exactly how to do it that way Apr 27 17:32:20 canvs2321: i beleive that’s what i start implementing before the project got trashed Apr 27 17:32:57 burmat: the exact method probably depends how much data you end up having in there. It's possible doing an update for each item will also be slow and you'll end up wanting to chunk it into X items at an update or something Apr 27 17:33:03 i just want to avoid having 50 runnables to see if someone happened to like a specific thing in the list Apr 27 17:33:17 exactly Apr 27 17:33:26 burmat: yeah; I'd probably do one fixed work thread that takes a lifo or similar Apr 27 17:33:38 rather than a runnable per Apr 27 17:33:45 just syncronize them&clean fifo upon new entries if updated sync queue Apr 27 17:33:48 well plus, if the list is loaded it is running the most current stuff. just find the most current likes Apr 27 17:34:11 canvs2321: yeah that’s what i’ll have to do Apr 27 17:34:26 bla. alright, back to the pencil and paper for this Apr 27 17:34:59 you could probabyl do some simple heuristic in the workthread Apr 27 17:35:20 on complete of finding data on current item, if queue is > 10, do 10 then notifydatasetchanged Apr 27 17:35:25 otherwise update immediately Apr 27 17:35:56 that way it doesn't hammer the listview on 1000 items scrolling quickly, but also responds fast when the user is just looking at the current list Apr 27 17:35:57 ah, that’s really interesting too. hadn’t considered that. Apr 27 17:47:24 hi guys Apr 27 17:47:39 what do you guys use in place of jackson's objectmapper on android? Apr 27 17:48:05 anyone using the latest version of google play services api? im following the docs at https://developers.google.com/+/mobile/android/sign-in but there is no such method ConnectionResult.getIntentSender() Apr 27 17:48:12 have not had to add the jackson dependency yet, but hope there is an equivalent first Apr 27 17:51:45 How can I add the equivalent to compile 'com.github.johnkil.android-robototextview:robototextview:2.0.0' on IntelliJ IDEA (not Android Studio)? Apr 27 18:05:00 check out my launcher icon progression: http://imgur.com/a/6ektz#0 :) Apr 27 18:05:10 going with napalm's logo Apr 27 18:13:28 autrilla: Same, they both use gradle. Apr 27 18:13:55 kakazza, nope, IDEA doesn't use gradle, it uses something else (not maven either) Apr 27 18:14:19 Yes it does. Apr 27 18:14:50 New ones do, anyway. Apr 27 18:15:04 Is it a legacy project that's not on Gradle yet? Apr 27 18:16:29 If it's a gradle project, IDAE uses gradle Apr 27 18:19:14 kakazza, SimonVT, I just went to new project ... Android Application Apr 27 18:19:37 IDEA 13.1.1, Ultimate Apr 27 18:20:22 what do you guys use in place of jackson's objectmapper on android? Apr 27 18:20:25 have not had to add the jackson dependency yet, but hope there is an equivalent first Apr 27 18:26:41 topriddy: for json? Apr 27 18:27:01 autrilla: Well, if you're not creating a gradle project, it wont use gradle of course Apr 27 18:27:26 I'm having troubl accessing developer.android.com, anyone else? Apr 27 18:27:42 SimonVT, I know. That's why I asked what the equivalent to that was Apr 27 18:27:48 teksal: no problems here Apr 27 18:28:00 Here's what CE looks like http://cl.ly/image/2R2S0n3I0P3O Apr 27 18:33:06 SimonVT, And I picked Application Module Apr 27 18:34:05 So there's your problem Apr 27 18:34:31 Well then.. My statement stands Apr 27 18:34:39 IDEA uses gradle if you tell it to Apr 27 18:36:05 "error: package R does not exist" rats! stupid android studio :/ Apr 27 18:37:34 it works in all other source files, but not this one now.. Apr 27 18:37:44 was going to switch to eclipse anyways Apr 27 18:40:26 Thorbear: yeah. json. need to convert a Pojo and a Map class to json Apr 27 18:43:21 topriddy: I haven't actually used jackson, so I don't know what features you might be missing, but for android you have a few classes like JsonReader/JsonWriter, otherwise a lot of people go with the GSON library Apr 27 18:52:28 hey guys, quick question: where's the best place to determine if you should send a notification in your app? Apr 27 18:52:32 i realize that was a stupidly worded question Apr 27 18:53:04 lemme try again: i'm managing a list of items, and each of them has an "expiration date". i want to send a notification say, at noon, on a given day if the item is set to expire the next day Apr 27 18:53:36 where would be the best place to perform my for(fooditem f : fooddbadapter.getallfoods()) {if f.getExpirationDate() == blah blah blah } Apr 27 18:53:39 ? Apr 27 18:55:40 hi Apr 27 18:56:20 hi Apr 27 18:58:10 RedDunce: you want this to trigger even if the application is not open? And the items are in a list in a database or something? You could use an intentservice that is launched once per day or something Apr 27 18:59:32 Thorbear: yup, i don't want the app to have to be open. and yup, they're all in a database Apr 27 18:59:52 so i can get them whenever, i have a method in that DBAdapter to get all foods Apr 27 19:00:15 intentservice (or some other form of service that best fits your situation) it is then Apr 27 19:01:07 Do you know whwere I could find some documentation about using one of those? Apr 27 19:01:54 http://developer.android.com/guide/components/services.html Apr 27 19:02:13 haha, should've checked the developer docs first :P Apr 27 19:03:20 when i fire following code my event doesnt get synced to google (it's only available on my android). Code: Uri uri = contentResolver.insert(CalendarContract.Events.CONTENT_URI, values); Apr 27 19:03:45 any ideas how i can get it to sync? or just push the event to google? Apr 27 19:04:30 i've bene having soooo many headaches trying to implement a calendar-type thing lol Apr 27 19:05:01 XD jep same here Apr 27 19:07:27 i wish i could help but i just gave up on my calendar implementation and make a toast saying "feature coming soon!" for now lol Apr 27 19:08:08 Thorbear: do you know how to make one of these badboys that could run 1x a day? Apr 27 19:13:43 RedDunce: extend the intentservice and implement it to check your list of items and do whatever with the results. At the end of onHandleIntent, use AlarmManager to schedule your intentservice to be ran again at a time of your specification. And have your application launch it once when opened. Apr 27 19:14:24 got it Apr 27 19:14:27 i'll try that Apr 27 19:14:27 thanks Apr 27 19:19:08 Thorbear: any ideas for me? :) Apr 27 19:19:32 when i fire following code my event doesnt get synced to google (it's only available on my android). Code: Uri uri = contentResolver.insert(CalendarContract.Events.CONTENT_URI, values); Apr 27 19:20:37 d3saroxx: nope, never played around with the calendar Apr 27 19:21:12 ok. but thx Apr 27 19:25:57 hey Thor, do you have any experience with adapters & lifecycle shit? Apr 27 19:26:23 i have declared the configchanges so my code still works fine, but i'd like to know what i did fundamentally wrong Apr 27 19:26:37 the thing is, my fragments each contain a FoodItemWrapper Apr 27 19:26:53 which extends arrayadapter Apr 27 19:27:09 but when i rotate (before i turned the configchanges off), that fooditemwrapper becomes null Apr 27 19:27:13 and i have no idea how to fix it Apr 27 19:27:40 and i can't reinitialize that wrapper, because the fragment's getActivity() also returns null and i need a context for the wrapper :/ Apr 27 19:35:13 RedDunce: I haven't played much around with rotation either, but I'd guess you just need to initialize your things in the correct places (like using onResume instead of onCreate for certain things) Apr 27 19:38:59 i actually initialize everything in onCreateView cuz it's a fragment; is that bad practice? Apr 27 19:39:36 i need a context & container for my adapter (although i guess i don't NEED one..) any ideas how i could do it differently? Apr 27 19:41:12 you're having problems because probably your state management is a mess Apr 27 19:41:30 your getActivity is null because the fragment isn't attached to any activity at the moment Apr 27 19:42:04 and your whatever wrapper is probably null because your fragment gets recreated and you're not using instance saving Apr 27 19:49:34 All is lost /o\ Apr 27 19:50:27 Mavrik: all completely reasonable. how should i save the instance if it's a custom wrapper though? Apr 27 19:50:36 (i know i'm very noobish at this, but we all had to start somewhere, no?) Apr 27 19:51:22 Hello!!! Apr 27 19:52:04 How check previously set alarm (with alarm manager) Apr 27 19:52:09 ??? Apr 27 19:52:28 I try something like this boolean alarmUp = (PendingIntent.getBroadcast(context, 1, intent, PendingIntent.FLAG_NO_CREATE) != null); Apr 27 19:52:47 but alarmUp is always = true Apr 27 19:54:31 if somebody want to play with an "almost done" project/game/gps work: http://www.ludumdare.com/compo/2014/04/27/this-time-i-give-up/ Apr 27 19:58:34 Kane: need pics Apr 27 19:59:32 good point, but there is no real design yet Mango_Man, just some text (in french) to explain the goal in the app, and for the web part, same thing Apr 27 20:17:40 when i fire following code my event doesnt get synced to google (it's only available on my android). Code: Uri uri = contentResolver.insert(CalendarContract.Events.CONTENT_URI, values); Apr 27 20:17:43 any ideas? Apr 27 20:21:03 Is there any ready-made element or combination of elements that would allow me to build something like this: http://gyazo.com/3d7a76407a9d9de97a63463daa6fd908 Apr 27 20:21:22 The user will be able to scroll through different images to select one that they want. Apr 27 20:24:16 how much memory should allocate for haxm driver on windows 8.1 with 8G ram? Apr 27 21:40:54 hi.. i am a bit puzzled ... is locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) meant to return true when the provider is enabled in the settings or when the gps-function is turned on? (or both?) Apr 27 21:54:46 Hello Apr 27 21:55:17 I'm making a portrait app, but would like it if the user could turn the phone to enter text with a full screen text. Is that possible? Apr 27 21:56:35 that shold work Apr 27 21:59:09 yes, but how? Apr 27 22:04:21 RedDunce, if you don't let activity rotate, user won't be able to turn the screen Apr 27 22:04:31 please stop making portrait-only apps -_- Apr 27 22:08:07 That was RedWraith, not RedDunce :P Apr 27 22:08:41 Mavrik, this app doesn't really make sense in landscape because it's based on portrait only pictures. Apr 27 22:09:16 but all I'd like to do is give the keyboard the ability to rotate while keeping the app stationary Apr 27 22:09:24 well you cant Apr 27 22:09:27 and let it go fullscreen keyboard on landscape Apr 27 22:09:28 and make some landscape pictures then Apr 27 22:09:56 also, rotation pingpong you can get on such crappy apps on tablets is one of the most horrible UXes you can get Apr 27 22:10:10 (app pingponging between landscape and portrait for each activity) Apr 27 22:58:38 i'm getting NullPointerException on line 40: gestureText.setText ("onDown");, not sure what to check: http://bpaste.net/show/241295/ Apr 27 23:00:06 Has anyone had any luck with using a BroadcastReceiver? I've tried following 3 different tutorials and still haven't gotten anything to hit my onReceive() Apr 27 23:00:19 davo, layout...? Apr 27 23:02:26 Zharf, thanks, i've got two layouts activity_common_gestures.xml and fragment_common_gestures.xml Apr 27 23:02:55 pastebin the first one... Apr 27 23:03:25 Hello. I'm experienced web developer, very new in android. Spent some time googling for a showcase application for android. I need a android app skeleton which shows how shit should work, with unit (and other) tests, deployment / building scripts, proper division between ui and domain logic. Is there something available for this? Apr 27 23:04:03 Zharf, yeah that file looks to be missing something: http://bpaste.net/show/241303/ Apr 27 23:04:36 zeliboba, shit should work bro Apr 27 23:04:56 if small, normal, large, xlarge qualifiers stands each for its relative screen size then layout *without* any qualifier stands for... ? Apr 27 23:05:04 davo, yep, there's no textview named gestureStatusText there Apr 27 23:05:08 hence the NPE Apr 27 23:05:30 Zharf, ah that's what it needs, i'll try giving it that. Thank you :) Apr 27 23:05:47 Zylinx, I know, right. But Hoooow? Apr 27 23:08:05 Zylinx, basically I'm about to start pretty important project, with no experience in android dev, but some java background and lots of web background. I can feel that most of tutorials don't cover important aspects. So I supposed there's a showcase example of how shit should be organized to work better :) Apr 27 23:09:15 teo123, whatever is not yet defined Apr 27 23:09:22 teo123, default Apr 27 23:10:46 Zharf, if I have a grid_item xml to each of these folders then there isn't a need for the non-qualifier layout ... Apr 27 23:11:26 yeah... but I haven't yet found a reason to write so many different layouts :) Apr 27 23:11:37 :) Apr 27 23:18:27 zeliboba, just go through tutorials online Apr 27 23:19:08 well, tutorials don't cover everything I've listed, but I'll start from this, thanks. Apr 28 00:06:20 Hey. How can I make a custom indetermionate R.anim for the loader for a progress dialoge Apr 28 00:11:40 Hello, I have android studio installed, it runs, but it consumes all system resources. Is this common, how can I reduce android studio's consumption of system resources? Apr 28 00:41:36 the easiest way is by simply not using pieces of crap like android studio or eclipse. Apr 28 00:42:24 pragma-: would you suggest using IntelliJ? Apr 28 00:42:40 I'd suggest using bash and vim. Apr 28 00:43:24 lol Apr 28 00:56:16 pragma-: Please elaborate. Apr 28 00:56:25 they should have written those IDE's in C/C++ , then they wouldn't be such hogs Apr 28 01:05:49 I like emacs for Android development Apr 28 01:06:06 You can get semi-automatic import imports and so forth Apr 28 01:11:14 Ologn: How do you have it set up? I am new to android programming, and it I am finding it feels like there is a steep learning curve. I can't even setup a development environment that is stable enough for me to figure out how to do anything meaningful other than to learn what doesn't work. Apr 28 01:11:44 Technicus, if you're new you should probably start with Eclipse or Android Studio Apr 28 01:12:47 Ologn: Eclipse crashes, and Android Studio consumes all my system resources. Apr 28 01:13:09 get more resources :) Apr 28 01:13:21 sure. Apr 28 01:13:22 i'm writing a simple learning app with two activities that responds to gestures left and right swipe, however when a swipe occurs the first activity swipes to the second activity, but the second activity doesnt swipe back to the first activity. where might i check for missing logic? Apr 28 01:14:17 Technicus, pragma uses bash and vim, I use bash and emacs and ant, and they are all stable, but Eclipse and Studio have all the scaffolding there for people new to Android Apr 28 01:14:35 davo: why don't you use a viewpager ? Apr 28 01:14:46 i've got correspondng setContentView(R.layout.secondDisplay); and setContentView(R.layout.firstDisplay); in each of the respective classes Apr 28 01:15:37 bankai_au, i'm not sure, i'm just using resources from references that I've successfully been able to implement Apr 28 01:16:25 is there a way to determine how long a fragment is visible for? Apr 28 01:16:50 Toast responds to all swipes, but the content only stays on the second view Apr 28 01:17:07 Ologn: I see that there are many support files required which I know nothing about. Without an IDE to hold my hand I automaticaly generateverything for me, I'll definatly not be able to make anything. Where can I go to learn about the framework and all the necessary structure that the IDE is automatically generating? Apr 28 01:17:38 Technicus, http://developer.android.com/tools/projects/projects-cmdline.html Apr 28 01:18:09 right now, i have a button that starts a new activity, and i start a timer there, and whenever the activity is destroyed i stop the timer. can we do a similar thing with fragments? Apr 28 01:18:35 Ologn: AWESOME! Apr 28 01:18:54 Technicus, create a project for a new one (I think it does a basic hello world app), and update project for existing code (although sometimes it needs a little more tweaking) Apr 28 01:22:10 What are you running such that Eclipse crashes? Apr 28 01:22:16 Seems like it'd be easier just to fix that? Apr 28 01:22:50 mantazer: there is something like getUserVisibleHint() I believe. Apr 28 01:24:12 Anthaas: can I ask you more of a design question? I'm not sure if fragments are for me in my situation Apr 28 01:24:23 Are you reusing a certain aspect of the UI? Apr 28 01:24:42 Anthaas: no Apr 28 01:24:50 What makes you think you need them? Apr 28 01:24:54 Anthaas: I have not been able to figure out why Eclipse crashes. I like Android Studio more any way. But I would rather figure out how to consturct a project without an IDE. Apr 28 01:25:12 Technicus: Fair enough Apr 28 01:25:15 Technicus: Fair enough Apr 28 01:25:43 Technicus: All the power to you :-) Just though that perhaps whilst learning the framework, you might be doing yourself a favour by not giving yourself too much to learn. Apr 28 01:25:53 Anthaas: Well, I guess fragments to make sense in my situation. So basically, I have a listview, and when i click on an item (url), it is supposed to display the page Apr 28 01:26:04 fragments dont* make sense in my situation Apr 28 01:26:08 No Apr 28 01:26:17 What you have described is the master detail design pattern Apr 28 01:26:20 and Fragments DO make sense Apr 28 01:26:22 IF Apr 28 01:26:29 You are designing for tablets too! Apr 28 01:26:35 what i was thinking of doing is just overlaying the page on top of the listview Apr 28 01:26:45 ohhh Apr 28 01:27:28 Anthaas: my primary focus is phone rather than tablet Apr 28 01:27:35 Although someone on SO says that Google advices to ALWAYS use Fragments Apr 28 01:27:39 I'd like to see where? Apr 28 01:27:43 but i do want users to use my app on the tablet Apr 28 01:27:49 Seems an unnecessary addition if the functionality isnt required. Apr 28 01:28:02 I avoid fragments Apr 28 01:28:04 If you want people to use it on a tablet you should also design for tablet. Apr 28 01:28:07 Anthaas: I definatly don't want to add to the already huge load of work it takes to learn Android, but I don't want to rely on an IDE that crashes or eats all my resources. To me, those flaws trump their bennefits. Apr 28 01:28:34 Technicus: Ive never had a problem with Eclipse, even when running on a crappy computer - seems that there is something else up there. Apr 28 01:28:43 i was told that optimising for tablets helps the visibility of your ap in search results Apr 28 01:28:48 I was still able to do portrait to landscape with a listview and other views by showing and hiding stuff Apr 28 01:29:03 shmooz: Yeah, I've just started looking into them - they seem a pain. Apr 28 01:29:18 Theres no problem with going from MasterActivity to DetailActivity. Apr 28 01:29:36 Especially if you do something like overridePendingTransition or whatever its called Apr 28 01:29:46 So you can make it feel as if it is a fragment Apr 28 01:30:50 Anthaas: That is what a few have said, but if it was working for me, I wouldn't be whinning about it. Apr 28 01:31:21 Honestly, if it was me, I'd look into why it is misbehaving and then use that. You are adding unnecessary work to your work load. Apr 28 01:31:36 Anthaas: Thanks for the encouragement :) Apr 28 01:32:00 Haha Apr 28 01:32:04 I like doing things with plain text editors anyway. Apr 28 01:33:01 If you want a plain text editor then use something like Sublime Text - a decent number of plug ins might make your work easier. Apr 28 01:40:55 use whatever works for you :). I like Vim, but I find it's lacking a lot of features that Android Studio has, so I use the latter with a plugin for Vim keybindings :) Apr 28 01:41:03 Anthaas: WOW! This Sublime Text is beautiful! Apr 28 01:42:18 It really is, I use it for quick Java/C++ editing, full PHP/JS/HTML/TXT development/creation, and XML too. Apr 28 01:42:20 Its great. Apr 28 01:42:41 are there any android development related podcasts? I'm sick of watching mainstream stuff Apr 28 01:43:42 if i'm trying to swipe between two views, i should only need two layouts correct/ Apr 28 01:57:05 best dependency injection for android? Apr 28 01:57:16 dagger Apr 28 01:57:36 if you say it a few times JakeWharton will come online :) Apr 28 01:57:40 Im so tempted to ask what dependency injection even is, risking sounding like a complete tool. Apr 28 01:57:40 tks Apr 28 01:58:35 Essentially runtime adding of libraries? Apr 28 01:58:49 google it :) Apr 28 01:58:54 I am Apr 28 01:58:57 Hense how I know that hahah Apr 28 01:58:59 Or think I do Apr 28 02:01:00 then google the word 'hence' Apr 28 02:01:07 oops Apr 28 02:01:11 Indeed. Apr 28 02:01:12 Three times. In the mirror. Apr 28 02:01:21 you took longer than i'd thought :P Apr 28 02:01:22 Hahaha Apr 28 02:01:32 I'm driving. Apr 28 02:01:54 As you do. "Hmm, red light. Fuck it wonder whats going on in IRC..." Apr 28 02:02:24 I got a push notification someone mentioned dagger. It's like my bat signal. Apr 28 02:02:49 So your spidey sense is in fact your front pocket? Apr 28 02:02:52 you saw it was me and you STILL checked? awww thanks man Apr 28 02:03:02 When it tingles, you know someone said something :D Apr 28 02:04:53 dunno how he does it, I'd hate to have leash that anyone from the channel can yank Apr 28 02:05:12 I'll yank your leash ;-) Apr 28 02:05:17 haha Im not even gay Apr 28 02:06:05 i think you need to suffix the obligatory "not that there's anything wrong with that" Apr 28 02:06:17 similar to the "no offence, but...." Apr 28 02:06:23 or prefix with "im not homophobic, but..." Apr 28 02:06:25 Yes hahaha Apr 28 02:06:38 shmooz: People in here have a lot of misinformation. Left unchecked nobody would use libraries I care about Apr 28 02:07:01 JakeWharton: I plan on using at least 1 of your libraries in my next app. Picasso. Apr 28 02:07:16 JakeWharton: we appreciate you being on guard ;) Apr 28 02:08:13 anyone got any clues on how to create an off-screen SurfaceTexture Apr 28 02:19:03 boa noite Apr 28 02:19:13 boa noite Apr 28 02:20:05 acabei de instalar o ADT bundle no Ubuntu 14.04 64bits e ele reclama a falta de um diretório (vou colar aqui) Apr 28 02:21:24 Starting emulator for AVD 'teste' Failed to start emulator: Cannot run program "/home/emanoel/adt-bundle-linux-x86_64-20140321/sdk//tools/emulator": error=2, Arquivo ou diretório não encontrado] Apr 28 02:22:19 vim diretamente pra câ e pedir uma orientação Apr 28 02:22:56 Someone tell him about the accelerator. Apr 28 02:23:06 It seems like he is on Linux and the emulator isnt working. Apr 28 02:26:28 well I did find this android developers podcast, gonna check it out in a minute , https://player.fm/series/android-developers-live-podcasts Apr 28 02:27:23 Hi general mentors, I recently started android development in hopes of moving forward from installing Microsoft Windows on computers. Apr 28 02:27:49 ^ lolled Apr 28 02:27:51 can anyone point me in a good direction or give advice on: the order which I should learn topics? Apr 28 02:28:18 apelsoczi: Best tip I ever got. I still use it. Think of a project. Make it. Research at each bit how to do what you need to do. Apr 28 02:28:24 shmooz, those are nice Apr 28 02:28:30 Do not stop until you can honestly answer "Would I put this on the market..." Apr 28 02:28:35 some are pretty funny too, i like chet a lot Apr 28 02:28:43 I started off from the training.developer site and realized thats more so generalized info. I had 100% 3 semesters in a row in Java so im not worried about that component Apr 28 02:29:08 for fucks sake.. why is Androids media playback system so borked Apr 28 02:29:31 apelsoczi: you need some basic programming and java and xml experience but you can do all that while dealing with android as well Apr 28 02:30:12 Anthaas, that's good advice, writing 'an app' is far too abstract to help you learn anything Apr 28 02:30:14 alex_PP: good to hear, now I'm excited :) Apr 28 02:30:18 you need a goal Apr 28 02:30:22 yeah I know over 15 languages, or have used. So im not worried about the technical component of doing. I just know from previous languages, some are meant to be learned in a certain order Apr 28 02:30:25 Agreed Apr 28 02:31:04 my goal is for women to suck my dick because I make so much money Apr 28 02:31:19 Napalm:Choose from the following options: 1) Always 2)Just once Apr 28 02:31:31 When I first started learning Android, my "mentor" at the time, a guy who I worked with and had to learn Android for, told me to make an Augmented Reality app. Apr 28 02:31:35 firelegend: ? Apr 28 02:31:42 At the time I just about knew how to link 2 activities. Apr 28 02:32:53 Anthaas:Your mentor had a sense of humor. Apr 28 02:33:05 He did, but by god didn't I learn a lot. Apr 28 02:33:22 He said he a goal he knew I couldn't complete there and then, but knew I'd have to learn a lot in order to get anywhere near it. Apr 28 02:33:37 what kind of goal? Apr 28 02:33:40 A lot beyond development, it taught research skills, good practices etc. Apr 28 02:33:51 An Augmented Reality app. Apr 28 02:34:20 Well I would've been surprised if you could turn a phone into a Oculus VR Apr 28 02:35:04 For the sake of ease to start with, he made it just so that I could walk around town with the company logo always showing when I am looking at the building. So if i turned to the left, it would move off to the right of the screen. Further away = smaller icon, etc. Apr 28 02:35:13 Then to start adding more in. Apr 28 02:35:44 Yeah he sounds like a good mentor lmao Apr 28 02:35:55 How not? Apr 28 02:36:06 I learnt a lot and fast, I had a goal, he helped me at points where I needed it. Apr 28 02:36:08 that's what you need i mean Apr 28 02:36:17 He mentored me, he didn't wipe my ass. Apr 28 02:36:17 someone who isnt lament with you Apr 28 02:36:34 am I to assume you are an appdeveloper then ? Apr 28 02:36:39 Nope Apr 28 02:36:43 lol Apr 28 02:36:44 Well, I was for a year Apr 28 02:36:48 I do it in my own time. Apr 28 02:36:55 freelance ? Apr 28 02:37:00 PhD student. Apr 28 02:37:06 very nice Apr 28 02:37:22 where did you move onto ? back to studies ? Apr 28 02:37:34 Anyone know what causes this lag in Android? https://www.youtube.com/watch?v=_MyfkypkNWk Apr 28 02:37:35 It was my industrial placement whilst I was a student. Apr 28 02:37:52 It's present in every Android version and device, including my Nexus 7 2013... Apr 28 02:39:14 The avg lag is 100+ms, whereas on iOS it's nearly non-existant. Apr 28 02:39:39 s5 has less lag than ios Apr 28 02:39:45 m8 as well Apr 28 02:39:53 touchscreen hardware Apr 28 02:40:13 is that all there is to it? Apr 28 02:40:38 I've always thought it was an Android problem, within the source code. Apr 28 02:52:59 pfn:For HTC, I wouldn't doubt that. Apr 28 02:53:22 Their phones have always had the least input lag. Apr 28 02:54:14 But Sammy... Apr 28 02:55:54 Yes, look at input lag graphs Apr 28 02:55:55 Just saw a video, I think you might be right. It does seem to be lower. Apr 28 02:56:19 Too bad it's one device from 100. Apr 28 02:59:03 if I had 100gb of free space, I'd download stock android and dig right in. **** ENDING LOGGING AT Mon Apr 28 02:59:59 2014