**** BEGIN LOGGING AT Sat May 10 03:00:00 2014 May 10 03:00:19 i'm researching the best way to invoke the camera, crop to a square (to a pre-determined xy) but its messy out there with camera documentation. anyone have any good resources for using the camera with api15+ ? May 10 03:03:19 the best way to crop is to use picasso May 10 03:04:27 as for the camera try this: https://github.com/Glamdring/EasyCamera May 10 03:05:51 Mango_Man: i use picasso for loading my images, didn't know they have cropping functionality May 10 03:06:20 tweeeaks: there's centerCrop() and centerInside() May 10 03:06:27 tweeeaks: and if you want, you can define custom transformations May 10 03:06:38 pwnedu46: err wrather it just aligns to top left... which makes sense. May 10 03:07:33 Mango_Man: the end goal is after they snap the photo i have a crop box overlay where they can zoom in out May 10 03:08:13 I was looking into this: https://github.com/edmodo/cropper -- but having a tough time getting it palying nicely with gradle May 10 03:08:40 Mango_Man: have you use EasyCamera? May 10 03:08:46 s/use/used May 10 03:08:47 oh that's kinda different May 10 03:08:56 the cropper, that is May 10 03:09:31 dont know if you've used it, but the instagram type of cropping May 10 03:10:19 what gradle issues are you having? May 10 03:14:01 heh, reading the docs on EasyCamera ^ the creator says: "So, the Camera API is crappy. If you haven’t seen it before, take a look for a minute. You can use it in a lot of wrong ways, you can forget many important things, you don’t easily find out what the problem is, even with stackoverflow, and it just doesn’t feel good." May 10 03:14:20 * tweeeaks my thoughts exactly, reason i'm here May 10 03:17:19 tweeeaks: though you can circumvent all that if you only need the basics. just send an intent to the built-in camera app May 10 03:18:09 tweeeaks camera and mediaplayer are crap May 10 03:20:42 Mango_Man: yea -- pretty basic... need to 1.) take photo as a square 2.) if selecting from gallery crop it to square --> and have both of those meet dimension requirements.. May 10 03:20:50 g00s: yea i'm realizing :/ May 10 03:22:06 figured there'd be a "goto solution" for that functionality -- but the more i research the more i feel like i'm chasing my tail May 10 03:23:17 ie: out of the box this: http://developer.android.com/training/camera/photobasics.html#TaskPhotoView --> Bundle extras = data.getExtras(); throws a null pointer...and so on May 10 04:11:03 hello all May 10 04:14:44 hallo comrad May 10 04:14:51 hey njcomsec May 10 04:48:03 Ugh, nearly 10pm May 10 04:48:03 * Nilium gets a cup of coffee May 10 04:48:52 nearly 6am here... May 10 04:50:13 How fortunate you are, that's when I go to sleep May 10 05:16:06 my brain wants to stay up and work but my body wants to sleep May 10 05:16:52 detach the interface from brain to body and allow your body to rest while your brain continues the work May 10 05:17:03 but alas, brain requires rest as well as body May 10 05:17:47 I need a cyborg body. May 10 05:21:14 alpha/beta testing is available for unpublished apps right? May 10 05:21:35 Yes, more or less. May 10 05:22:09 more or less sounds omnious :p May 10 05:26:04 If your app is paid, the testers have to pay for it if you go through the Play store's testing thing. May 10 05:26:12 They also need to join either a Google Groups thing or a Google+ community. May 10 05:28:16 It's kind of unpleasant, basically. May 10 05:28:46 Used it for the last app I published, just made me feel bad about subjecting my testers to it, so I won't be repeating that May 10 05:29:23 well it's not gonna be paid, and it'll probably be a close group May 10 05:29:53 and it's not gonna be my choice i don't think, just looking for options to put on the table :D May 10 05:29:56 thanks for the info :D May 10 05:35:17 serious question and no troll-ish intent May 10 05:35:25 which is better JSON or XML May 10 05:35:43 obviously asking from app programming perspective May 10 05:37:46 Looney: heavily depends on purpose May 10 05:38:18 "Configuration with name 'default' not found." in Gradle, I get this error all the time. Does anyone know what the main cause of this is? May 10 05:38:26 don't both have same purpose May 10 05:38:33 Looney: nope May 10 05:38:35 to get data from web May 10 05:39:02 Looney: JSON is a formalized reuse of JavaScript literals for describing tree-like data May 10 05:39:04 for processing in app May 10 05:39:12 ok May 10 05:39:42 And it's the one that actually started as something for quick download&parsing from web. May 10 05:40:36 XML otoh is an extensible format designed with assumption that you'll mix&match different specialized data in one document, and have it usable across different applications that might understand only a subset of the document May 10 05:41:10 but with json libraries May 10 05:41:15 For example, to process XML DSig to verify that the contents are authorized you do not need to understand the data being signed May 10 05:41:23 you can use it as well in android May 10 05:42:02 Looney: if all you need is to grab a piece of data from *your* server, and you *never* plan to share it with other places or anything like that, JSON is fine May 10 05:43:46 hello all May 10 05:43:47 my main concern is that from processing perspective May 10 05:44:13 from your argument, I conclude that json is more specialised/tailored May 10 05:44:23 simpler, definitely May 10 05:44:29 and would be better choice May 10 05:44:32 i am a begineer for android development and i would want to use an emulator to test applications from the playstore.. so i setup and analyzed to understand that the standard android emulator will not come with playstore May 10 05:44:35 a lot however depends on how you use it May 10 05:44:38 how do i come over this problem ? May 10 05:44:58 use parser ? ? May 10 05:45:02 or the format May 10 05:45:16 few people suggest to forcefully push the older play store source code into the emulator but i found that it does not have persistence that way May 10 05:45:19 Looney: @ me ? May 10 05:45:21 solofight: You don't. May 10 05:45:34 Nilium: you mean i cannot have play store in emulator ? May 10 05:45:41 nah May 10 05:45:49 not you solofight May 10 05:45:57 Give up and find a better thing to do. May 10 05:45:58 Looney: ok May 10 05:46:11 Nilium: why ? May 10 05:46:32 so how do you people test applications hosted in playstore ? only using a original device ? May 10 05:46:35 no emulators ? May 10 05:46:38 Yes. May 10 05:46:54 Nilium: But are there no ways to do this May 10 05:46:57 ? May 10 05:46:59 There's no point in using the emulator for anything other than checking whether a layout works with a given configuration. May 10 05:47:08 There are none, use a device. May 10 05:47:20 Nilium: what about Bluestack ? May 10 05:47:44 Answer's still no. May 10 05:48:13 I should brush up my skills for the dark side https://pay.reddit.com/r/Android/comments/253zxd/any_one_with_hacking_skills_htc_m8_bounty_1000_to/ May 10 05:53:49 Nilium: i want to enter mobile development, i have good experience in web development including cloud administration.... May 10 05:54:09 Use a device. May 10 05:54:11 but companies i apply for are not giving me a chance to try out mobile development May 10 05:54:19 how can i overcome this ? May 10 05:54:21 The emulator's mostly useless because it's not a real device. May 10 05:54:44 By doing it in your spare time? May 10 05:54:45 I want to build an app and showcase that in my profile, but what ever concept that i think of, there is an app already in playstore for that May 10 05:55:18 Nilium: yes am ready to do in spare time, but do what ? May 10 05:55:28 any idea that i think about is already there in play store May 10 05:55:47 Whatever you feel like making. May 10 05:55:50 is there any open source project or anything which requires mobile app development help which i can volunter for ? May 10 05:56:25 You'd have to look. May 10 05:56:52 any sites that you suggest to lookup ? May 10 05:57:01 No. May 10 05:57:17 ok thanks for your time May 10 05:57:27 Think of something you want to make and then make it. May 10 06:00:53 github or sourceforge for starters solofight May 10 06:01:24 Looney: oh they have projects which require mobile development help is it ? May 10 06:02:46 they have projects, do they need help; no idea May 10 06:03:00 oh May 10 06:03:03 ok thank you Looney May 10 06:05:33 solofight: make an existing app without ads May 10 06:06:21 shmooz: oh. May 10 06:06:50 but people who are already using that app should be expecting the same features - ads May 10 06:06:54 any examples ? May 10 06:08:03 you can add more features or modify it May 10 06:08:25 yes, thank you shmooz for the inputs May 10 06:08:39 will check out playstore for a popular app now May 10 06:09:05 how good is applock - i always wanted to make such an app, but its already there in playstore and widely used May 10 06:09:12 it has ads is it ? May 10 06:09:40 solofight: try it out yourself :) May 10 06:09:55 ananth123: yes, and thats why i want to enable playstore in emulator May 10 06:09:57 doesnt matter if it is already there in play store... it will be good learning experience for you May 10 06:10:05 i do not have an android device May 10 06:10:17 buy/borrow one May 10 06:10:54 :| May 10 06:11:04 solofight: check out genymotion, people said they can sideload playstore on it May 10 06:11:08 looks like thats the only way May 10 06:11:30 shmooz: i already checked it - its internet based and needs heck a lot of bandwidth May 10 06:13:19 but thanks for the suggestion shmooz May 10 06:14:02 yeah it's best to get a real device May 10 06:16:55 can someone help me out understand cherrypicking? May 10 08:27:42 hello people, i started an android emulator using command line and what ever i try to do from command line it says "error: more than one device and emulator".... when i list all active devices by using "adb devices" it whows two devices....but graphically there is only one emulator running May 10 08:28:22 using adb shekk kill devicename is not killing the emulator May 10 08:28:25 how to proceed ? May 10 08:28:57 i even restarted the system and the same error persists May 10 08:32:28 solofight: have you tried adb kill-server && adb start-server? May 10 08:34:48 danijoo: no, will try now May 10 08:35:41 you can also query one devices directly with adb -s deviceid May 10 08:35:42 danijoo: still the same effect May 10 08:36:02 you sure there arent 2 devices active? (like one emulator and one real connected phone) May 10 08:36:30 no no, i dont have a phone... only one emulator May 10 08:36:50 and adb is listing the same device 2 times? May 10 08:37:09 yes May 10 08:37:13 no no May 10 08:37:35 sorry, one says emulator-5554 and another says emulator-5556 May 10 08:37:47 adb devices gives me this ^ output May 10 08:38:37 tr closing all emulators, restart adb and then open the emulators again May 10 08:39:09 danijoo: already tried - still persists May 10 08:40:15 then i dont know. You can do adb -s emulator-5554 shell to get a specific devoce May 10 08:40:39 and one you find out which one is the correct just disconnect the other one with adb disconnect May 10 08:40:45 once* May 10 08:41:48 danijoo: after entering the device how do i shut down the device ? May 10 08:42:02 i did adb -s emulator-5554 shell and got into it May 10 08:42:06 you cant shutdown via adb May 10 08:42:16 just close the emulator if you wwant to shut it down May 10 08:47:04 If I use ORMLite, should I be loading objects into my Adapter asynchronously? May 10 08:47:23 autrilla: I would say depends on the size May 10 08:47:43 no need for asynchronous loading if its only 20 objects. May 10 09:42:21 Hi May 10 09:43:05 I need design idea. How to elegantly implement the ability to call the same popup window from any application fragment? May 10 09:51:24 hey, what is the right way to make a list with a custom arrayadapter clickable? google returned so many different and way too tedious solutions. May 10 09:52:09 i tried simply overriding my listactivity's onListItemClick method but that didn't work. I suppose the problem lies within my arrayadapter implementation. May 10 10:54:24 If you don't just display Strings, you shouldn't be using ArrayAdapter but extend BaseAdapter. May 10 10:55:10 Without seeing code, I cannot tell you why yourAdapter.setOnListItemClickListener didn't work. You can try setting a clicklistener on your converview or whatever should be clickable. May 10 10:55:20 in Adapter#getView May 10 11:16:42 Are fragments similar to just separate frames or windows? May 10 11:25:17 Does Android 4.4 use Roboto? May 10 11:46:11 Can an EventBus such as Otto handle the Activity sending a DatabaseHelper to a Fragment? May 10 11:55:17 Or maybe there's a better approach than moving the database helper around May 10 11:55:22 Creating one for each fragment? May 10 12:06:28 how about inject it? May 10 12:21:24 maicon, meh, creating a new one is easier. and I don't really understand injection, so.. May 10 12:22:58 For some reason my action bar items don't appear on the action bar, instead they're on the popup menu that you can enable using the left HW button on my phone May 10 12:23:00 What gives? May 10 12:24:56 @Bacta in order to have that behavior I had to set minsdk & target sdk both <= 11 May 10 12:27:30 or actually < 11 May 10 12:27:44 I don't want that behaviour ;) May 10 12:27:48 I want an action bar May 10 12:28:54 :D, then put any number 11-19 in either minsdk or targetsdk May 10 12:29:30 maybe that works? May 10 12:42:56 Or use AppCompat May 10 12:50:09 autrilla: ? May 10 12:50:17 maicon: I am using 11-19 May 10 12:50:20 This is so messed up :( May 10 12:55:51 Is there an easy way to create draggable ListView items, like on the Google Music app (playlist section)? May 10 13:14:46 Ok R cannot resolve anymore May 10 13:14:53 How do I track down my XML errors? May 10 14:19:07 I'm having a problem with a ListView adapter: When I hardcode in data and call setAdapter in onCreateView of the fragment, it works perfectly but when I try to use the actual data which I put into the same ArrayList and call setAdapter with a new instance of the adapter (Because using add + notifying data had changed wasn't working), it doesn't update May 10 14:19:17 I have checked that the data is indeed there, so that's not the problem May 10 14:19:28 any thoughts/common fails people make with adapters + listViews? May 10 14:26:13 no? May 10 14:26:31 If I pastebin code are people willing to look? May 10 14:30:35 maybe :) May 10 14:31:47 http://pastebin.com/Rd34xVn0 May 10 14:34:46 uhm.. May 10 14:34:54 static reference to views?? May 10 14:35:03 you should never do that.. May 10 14:35:33 why? May 10 14:35:38 because if you have two instances of that fragment then.. i dunno whats happening. apocalypse May 10 14:36:20 suppose :P May 10 14:37:32 beside that i dont know you sure you are setting different lists? May 10 14:38:16 Setting different lists? May 10 14:38:21 oh! May 10 14:38:27 usersList.setAdapter(new usersAdapter(mContext, usersListData)); May 10 14:38:32 I removed the static modifiers May 10 14:38:35 its always this line May 10 14:38:45 and what do you know, static views are, as you stated, stupid May 10 14:38:50 you sure usersListData is something different from before May 10 14:38:57 yeah :) May 10 14:39:15 because you never know if they are null, or some old values and stuff.. May 10 14:39:32 yeah May 10 14:39:34 thanks :D May 10 14:48:10 static is generally often bad in android :) May 10 14:48:28 same for your static mConstext and static auth_key ;) May 10 14:49:04 I guess you use them to set the data from the activity? May 10 14:50:59 What do you suggest to use, Android studio or Intellij 13.1? May 10 14:51:08 Android studio May 10 14:51:29 Why? May 10 14:52:10 based on intellij but all feattures and plugins you need are already there May 10 14:52:57 Android studio 0.58 is based on 13.1 or 13? May 10 14:53:57 have no idea May 10 14:54:27 Android Studio 0.5.0 Released May 10 14:54:32 New bundled version of IntelliJ 13.1 EAP build. May 10 14:59:15 I'm getting 404 from Android SDK repository May 10 14:59:30 hi guys, what is the best way to consume rest API? I'm looking for something that can parse and construct an object from a JSON/XML response May 10 14:59:45 both repository-9.xml and addon_list.xml are returning 404 not found May 10 15:01:12 WhatElse: You can use GSON to parse the json May 10 15:01:33 WhatElse: Retrofit May 10 15:03:15 It's really nice to use and it uses GSON behind the curtains. May 10 15:04:56 Hey guys. I'm creating an app that grabs images/videos from a server, and I was wondering what would be the best way approaching the actual fetching of data from the server + video/image download. Should I use a service for those tasks and then notify my activity somehow? Also, another question, once I do grab the files and metadata, I'm thinking how should I save the metadata. Do you May 10 15:04:57 recommend using GreenDAO or simply saving it in shared preferences? I'm going to have a lot of metadata as the user downloads more and more items. May 10 15:05:58 kakazza: what features offers additionally to GSON? May 10 15:07:16 Google it, read up on it. May 10 15:07:36 You never have to touch a JSONArray, JSONObject or w/e yourself in most cases. It Just Works™ May 10 15:07:59 kakazza: it sounds wonderful, thank you I will check :) May 10 15:32:02 anyone? May 10 15:55:42 Techdeck, well. May 10 15:56:11 1.) Large amounts of data should always go into SQLite databases, shared preferences are mostly just for preferences (rembember, those are just XML files that are always fully loaded) May 10 15:56:19 2.) Do you support downlading images in the background? May 10 15:57:12 1) Noted - do you suggest on using an ORM for this? if so, which? 2) I didn't build it yet, but I will need that functionality May 10 15:58:00 Techdeck, if you use ORM it's up to you. I had good experience with GreenDAO, but it makes updating databases kind of a hassle May 10 15:58:01 I'm at the stage of trying to understand what infrastructure do I need for this project. I'm also thinking about spring and maven May 10 15:58:12 please don't use Spring on mobile. May 10 15:58:25 as for service, yes, if you want download in the background make a service, certanly May 10 15:58:28 ah, why is that? May 10 15:58:46 use message bus design (Otto and EventBus are commonly used libraries) to pass information to activities May 10 15:58:59 Techdeck, it's a huge pile of bloat that should go near a mobile device :P May 10 15:58:59 also from activities? May 10 15:59:05 :D May 10 15:59:19 I'm a server guy, I need to stop thinking like one for this. I will not use Spring then. May 10 15:59:31 Techdeck, "from activities"? May 10 16:00:04 I'd like to send a message from the activity, to the service telling it to download images/video, and would like to receive a notification when done including the object that contains the path to the file + metadata May 10 16:00:11 yeah May 10 16:00:13 goes both ways May 10 16:00:21 and the service should of course run off the UI thread May 10 16:00:24 cool! May 10 16:00:34 note that services run on UI thread by default :) May 10 16:00:38 any specific Service type I should be using for this? May 10 16:00:41 Mavrik did you mean spring in general, or have issues with spring-android ? May 10 16:01:02 g00s, I tried spring-android and was just too big for what it offered. but it was some time ago May 10 16:01:04 ah, how do I run a service off UI thread? May 10 16:01:14 Techdeck, well create a thread right after startup :) May 10 16:01:24 Techdeck, IntentService looks like it's done just for your use-case May 10 16:01:40 if I remember correctly it also automatically processes passed intents on abckground thread May 10 16:01:49 so with IntentService I don't need to create a thread? May 10 16:02:00 also, if I use intents, does that mean I will not use Otto or any of those libraries? May 10 16:02:04 check the doc really :/ May 10 16:02:19 Techdeck, you can use both... I found intents to be a little bit heavy weight for in-app messaging May 10 16:02:41 Otto/EventBus are just simple classes that pass around objects May 10 16:03:10 so if I use Otto for instance, I'm using it instead of intents? May 10 16:03:27 sorry, it's just a little confusing May 10 16:03:42 Techdeck, thing is, Intents are Android OS thing May 10 16:03:54 made for passing stuff around different OS components (other apps, services, etc.) May 10 16:04:17 you'll have to use Intents because you need an intent to start a service ;) May 10 16:04:37 yes, but after I start the service, the communication will only be done through Otto? May 10 16:04:55 should I even use Otto when Android gives me that option with intents? May 10 16:05:09 [18:02:19] Techdeck, you can use both... I found intents to be a little bit heavy weight for in-app messaging May 10 16:05:30 sorry for repeating, got it! May 10 16:05:32 look at both docs May 10 16:05:37 ok, thank you, I'll read about it a little bit May 10 16:05:38 decide which fits you better. May 10 16:05:40 :) May 10 16:07:59 Is it possible to make my app respond to commands in google now? For example, "Ok Google" ... "Make breakfast" ... (triggers app to do something, sends card to google now, etc...) May 10 16:08:00 how can I fix ugly fonts in android studio? (archlinux) May 10 16:08:29 WhatElse 'how do i fix java swing fonts in linux' -> ubuntu :) May 10 16:08:37 oops. #archlinux May 10 16:09:13 Mavrik use lmdb by any chance ? May 10 16:09:13 g00s: ok thanks May 10 16:09:22 http://symas.com/mdb/ May 10 16:11:40 g00s, hmm, no, never heard of it May 10 16:11:52 g00s, the issue with most ORMs is that they get messed up by ProGuard May 10 16:12:08 this is just a k/v store like leveldb May 10 16:12:25 hm, need to ask hiram if the jni bindings work on android May 10 16:13:00 came across another neat project 'cdb' on HN May 10 16:13:09 that one has a java version May 10 16:14:17 next up I have adding a spatial extension to sqlite May 10 16:14:21 that'll be fun I guess May 10 16:14:29 Mavrik mrenouf did that a while ago May 10 16:14:36 don't see him here any more May 10 16:14:41 spatialite or something May 10 16:14:53 mhm May 10 16:14:57 that one yeah :) May 10 16:15:06 not really sure … how to access that from java May 10 16:15:21 i think there is no way to 'redirect; the java bindings to the .so you provide May 10 16:15:32 guess you'd have to write something yourself ? May 10 16:15:41 or are you accessing from c ? May 10 16:16:09 one of the most annoying things on android wrt sqlite is not being able to supply user defined functions May 10 16:16:10 gah May 10 16:16:17 I don't mind about that May 10 16:16:18 H2 lets you do that, but its another story and has issues May 10 16:16:23 but I have a location database with geoloc May 10 16:16:32 mvstore has r*trees May 10 16:16:33 and I want to use a cursor adapter for autocomplete population May 10 16:16:35 maybe that could work May 10 16:16:42 ah,k May 10 16:17:05 g00s, it looks like spatialite just uses it's own API May 10 16:17:11 and bundles sqlite with itself May 10 16:17:12 hmm May 10 16:17:33 Mavrik would this be useful? http://www.h2database.com/html/mvstore.html#pluggableMap May 10 16:17:46 "multi-version R-tree map implementation for spatial operations." May 10 16:17:58 in Java, works fine on android May 10 16:18:03 might be worth a try May 10 16:18:12 hmm, I'll see May 10 16:18:13 the dev is no slouch :) May 10 16:18:22 thing is I already have everyhing in a sqlite db format :) May 10 16:18:27 <--- lazy May 10 16:18:31 ;) May 10 16:18:36 hehe May 10 16:21:42 anyway, IntelliJ fixed IDEA bug from my bug report May 10 16:21:45 so all is well I guess May 10 16:24:46 Is there an easy way to create draggable ListView items, like on the Google Music app (playlist section)? May 10 16:25:34 http://dpaste.com/0238ZY0/ why doesnt that work> May 10 16:28:01 autrilla there is a devbytes video on how to do it May 10 16:28:18 g00s, yeah, I watched it May 10 16:28:26 surprisingly in 2014, or not surprisingly, its a PITA May 10 16:28:34 PITA? May 10 16:28:38 pain in the ass May 10 16:28:44 Correct May 10 16:28:55 im looking at the sqlite tutorial http://developer.android.com/training/basics/data-storage/databases.html May 10 16:28:55 Maybe something had come out since then May 10 16:29:14 devbytes is pretty recent May 10 16:30:03 g00s, almost a year old May 10 16:30:09 9 months May 10 16:31:10 g00s: \o/ http://www.cnet.com/news/mozilla-abandons-plan-for-ads-on-firefoxs-new-tab-page/ May 10 16:33:01 capella yeah, saw that \o/ May 10 16:34:03 at http://developer.android.com/training/basics/data-storage/databases.html where are you suppose to put al those classes and variables May 10 16:36:07 capella ads and privacy are at odds fundamentally May 10 16:37:01 anyone help with sqlite db May 10 16:37:04 but they need money, lots comes from google. they may have to try different things, like 'sponsor a feature' or something May 10 16:39:29 yah, they can't afford to hire good contributors :p May 10 16:40:41 Can I have buttons on the Actionbar? Like so: http://i.gyazo.com/85f5f4523ab6943ab1c8d56f5448dd02.png May 10 16:41:16 autrilla can YOU ? hmm, that depends May 10 16:41:37 this kinda looks like styled tabs used as buttons May 10 16:41:41 g00s, I should start asking how to do stuff instead of if I can do stuff May 10 16:41:47 autrilla https://plus.google.com/+RomanNurik/posts/R49wVvcDoEW May 10 16:41:56 danijoo, that's a design I made in PS, so.. May 10 16:42:02 depends, you took a screen shot so obviously its possible May 10 16:42:03 ah :) May 10 16:42:11 g00s, woooo! May 10 16:42:18 g00s, it's a PS design May 10 16:42:23 ah, k May 10 16:46:53 I hate asking how to do things ... I try to come up with at least one approach even if its sucky so others can then criticise :D May 10 16:50:36 capella maybe thats why you're not a paid contributor to ff! XD XD XD May 10 16:50:48 * g00s smacks capella with a large trout May 10 16:52:03 'this guys is always adding crazy code' May 10 16:56:27 http://developer.android.com/training/basics/data-storage/databases.html wher do I put all those classes at May 10 16:56:30 in MainActivity> May 10 16:56:53 like this http://dpaste.com/0238ZY0/ May 10 16:59:06 ayone help with sqlite db? May 10 17:00:34 g00s, http://i.gyazo.com/463f8bc8be7780dab81a7d9ba23740b9.png :9 May 10 17:00:38 ia9371, use Ormlite May 10 17:02:50 hi May 10 17:03:03 how should refreshDrawableState or drawableStateChanged trigger a draw ? May 10 17:08:51 Hey! I am trying to mesure user statistics for my app, mostly how long a user spends at each view, and how long in total he has the application open. May 10 17:08:58 Whats the best way to go about this? May 10 17:09:24 I was thinking about just sending to a databse a message each time the user opens and cloeses the app, as well as changes views May 10 17:09:33 but maybe there is a better way May 10 17:11:18 Is onBackstackChanged a good way to show a Toast when a Fragment is left? In this case a Fragment to edit something, with the done and cancel buttons on the actionbar. I'll suppose back means cancel May 10 17:11:32 gulli hm, i guess google analytics ? May 10 17:12:17 g00s, ahh thanks May 10 17:13:01 I'm just doing if(manager.getBackStackCount != 0) showmytoast; May 10 17:13:10 Doesn't look like a good way to do it though May 10 17:13:41 * capella realizes he's missing snark :P May 10 17:17:11 capella :) May 10 17:18:04 anyone of you tried amazon mobile ads? May 10 17:26:00 Is there a problem with synchronous querying? For example, just to query the name of something May 10 17:34:56 capella what do you think of the google vs oracle May 10 17:35:12 good time to have a phone based on js / html5 eh May 10 17:38:06 This is weird, getting an edittext is throwing a NPE even though the view in which it is in inflated, and I'm calling findViewById on that view May 10 17:39:16 autrilla: that means you are not inflating the correct view, do you have different layouts for different screen sizes or landscape mode? May 10 17:39:35 thepoosh, no, maybe Butterknife is being crazy May 10 17:40:08 Oh wait, or maybe the NPE is somewhere else on that line May 10 17:40:34 paste the line May 10 17:40:49 ((EditText) view.findViewById(R.id.store_edit_name)).setText(helper.getShoppingListDao().queryForId(listID).getName()); May 10 17:41:01 wtf?! May 10 17:41:08 Wtf May 10 17:41:15 why so many chained function calls?!?!?! May 10 17:41:23 g00s: me want this! http://www.geektime.co.il/wp-content/uploads/2014/05/sandisk-optimus-1-620x327.png May 10 17:41:49 what's wrong with chained function calls? May 10 17:42:06 NPE May 10 17:42:20 It's crashing on storeName.setText("Ag"); May 10 17:42:35 I did run ButterKnife.inject(view); after inflating the view May 10 17:42:45 hey guys...stupid question: Where can I find the 'build.gradle' file (specified here: https://developer.android.com/google/play-services/setup.html). If I don't see a 'build.gradle' file in the root, should I just creat eone? May 10 17:43:22 View view = inflater.inflate(R.layout.fragment_shopping_list_edit, container, false); and @InjectView(R.id.store_edit_name). store_edit_name does exist on fragment_shopping_list_edit May 10 17:43:32 thepoosh maybe 8TB next year :) May 10 17:43:40 ME WANT!!! May 10 17:45:17 what's a good rule of thumb for how big a class should be.. my main activity is about 1000 lines long is that a good limit May 10 17:45:34 CocoStorm go for balance May 10 17:45:55 Anyone that used python-gcm or gcm-client? Can these scripts register to a gcm-server so they can receive notifications? How? through what communication medium do they receive notifications? May 10 17:46:08 if you have i class 1000 lines long, maybe thats not right. but if you have 100 classes each 1000 lines long, maybe thats a good sitribution of complexity May 10 17:46:19 *distribution May 10 17:46:46 breaking things apart creates its own complexity; the optimal complexity is probably a relative metric May 10 17:47:10 look at the android framework and there are many classes 6k lines long May 10 17:47:15 g00s, yeah that makes sense. yeah my other classes are on average 150 lines long May 10 17:47:34 you shouldn't care about the lengths May 10 17:48:09 I'll try and balance it all up May 10 17:48:29 Any idea ?? May 10 17:51:03 This is my code: http://pastebin.com/SpBZS0LW , it throws the NPE at line 11 May 10 17:52:37 ButterKnife.inject(this, view) May 10 17:54:51 SimonVT, that fixed it.. so when it's not an Activity I need to specify what class it has to do it in? May 10 17:55:23 Activity has a findViewById method, so both the inject target and the place to find the views are the same May 10 17:55:35 Fragments doesn't, so the inject target and the place to find the views are different May 10 17:56:07 I see May 10 18:02:20 Does anyone know why a Linear Layout containing (a Relative Layout containing two TextViews) and (a TextView) would display incorrectly, while when I swap the RelativeLayout with the TextView in XML, they display properly May 10 18:02:30 Using the backstack to know when the back button is pushed on a Fragment does not seem to be like a good idea, when I first create the fragment it also throws a listener event May 10 18:03:06 Why Android studio doesn't recognize android.support.annotation.nullable and android.support.annotation.nonnull? May 10 18:05:09 It seems it's time to start using Otto! May 10 18:05:45 yoavst: did you add the annotation dependency? May 10 18:06:04 there is a diffrent dependency then v4 / v7? May 10 18:07:46 There's 4 or 5 more than those May 10 18:08:55 v4, v7 (3), v8, v13 May 10 18:09:30 And v7 is not a single dependency May 10 18:10:40 I know, so where is android.support.annotation.nullable? May 10 18:11:37 Check your sdk for the name of that support library May 10 18:12:18 it isn't 'com.google.android:annotations:4.1.1.4' May 10 18:13:03 I have jar called android-support-annotations May 10 18:13:41 On Otto, do Events need to extend or implement a specific class/interface? May 10 18:13:43 Go to sdk/extras/android/m2repository May 10 18:13:51 Follow the folder structure May 10 18:13:56 autrilla: no May 10 18:14:02 autrilla: any object May 10 18:14:11 JakeWharton, ok :) May 10 18:14:26 C:\Program Files (x86)\Android\android-studio\sdk\extras\android\m2repository\com\android\support\support-annotations\19.1.0 May 10 18:15:05 JakeWharton, do I need to pass the Bus around? May 10 18:15:06 The last is the version, before that is the artifact name, and before that the group May 10 18:15:12 and the file is "support-annotations-19.1.0" May 10 18:15:23 So com.android.support:support-annotations:19.1.0 May 10 18:15:32 I'll try. thanks :P May 10 18:16:14 And now you know how a maven repository looks :) May 10 18:16:26 " we recommend obtaining the instance through injection or another appropriate mechanism." If only I knew how to do so May 10 18:16:27 Alternatively, you could have opened the pom at that path and found that information as well May 10 18:17:19 there is no pom, but there is a xml May 10 18:17:23 with the info May 10 18:17:39 There's a .pom file May 10 18:17:52 (which just contains xml) May 10 18:19:44 g00s: "Deploracle" http://www.popehat.com/2014/05/10/who-the-what/ May 10 18:20:51 hehe May 10 18:21:13 Ah, so now I can inject my database helpers too May 10 18:21:30 * capella just got back from filing a copyright for shooting photos against a green background .... wanted to hurry before someone got my favorite color May 10 18:22:15 yeah saw that amazon thing May 10 18:22:17 maybe I should file for shooting photo indoors, then all the colors are mine May 10 18:22:18 O.o May 10 18:23:45 US legal system is nutz May 10 18:25:11 I think Shakespeare said ... ''The first thing we do, let's kill all the lawyers,'' May 10 18:26:35 this could benefit android though; if google winds up having to pay licensing to oracle maybe they also get more in return like access to test suites, etc May 10 18:27:12 i was looking at Java SE micro 8 and JME 8 May 10 18:27:38 JSE Micro has 3 flavors of jvms, which have different features May 10 18:27:46 i think one was missing hotspot May 10 18:28:42 maybe at this point the delta between that and dvm has closed … where back in 2006 or whatever it didn't make sense, but now dvm isn't so unique in its power / performance profile May 10 18:30:16 and if true, the only thing going for it was 'independence' from sun (now oracle) which is turning out not to be true either May 10 18:30:39 although this whole thing i gather has more to do with apis than vm May 10 18:31:20 What's wrong with @Singleton @Provides Bus provideBus() { return new Bus(ThreadEnforcer.ANY); }? it tells me that provider method is unused May 10 18:31:24 g00s: there was licensing cost involved in JME May 10 18:31:29 back when sun went after Microsoft - i remember most of us being relieved of the outcome, strangely enough May 10 18:31:48 p_l oh yeah, of course. sun was terrible at monetizing java May 10 18:31:49 g00s: MS tried to break compatibility in JVM applications May 10 18:31:52 whether asking too much, or too little May 10 18:31:59 g00s: that's what Sun went to court with them May 10 18:32:02 iirc May 10 18:32:38 essentially, MS JVM introduced a completely different FFI mechanism that wasn't compatible with others, and it was seen as attempt at locking down applications to their platform May 10 18:32:59 at the end of the day sun didn't want to see the java ecosystem fragmented May 10 18:33:26 p_l isn't it near graduation time? May 10 18:33:51 you are done right :) ? May 10 18:34:39 How do I get the actual message of a website from a get request? like response.getStatusLine().toString() gets me the status (200 OK). May 10 18:35:16 g00s: nearly May 10 18:35:27 assuming I don't fail my final project May 10 18:35:54 g00s: and Sun might have been bad at monetizing some stuff, but wasn't as bad as it could be May 10 18:38:50 çç* May 10 18:43:39 g00s, on the example Roman Nurik posted, he does something like this: https://android.googlesource.com/platform/developers/samples/android/+/master/ui/actionbar/DoneBar/DoneBarSample/src/main/java/com/example/android/donebar/DoneBarActivity.java . How can I revert the changes, for when I click either of the buttons or press back? May 10 18:44:28 autrilla did you see the github stuff he had? anyhow i think he applied it to an activity May 10 18:44:52 g00s, on github? May 10 18:44:59 I didn't see anything on github May 10 18:45:07 not sure what you are asking; if you only have one activity i guess you need to change the AB back - not sure how May 10 18:45:14 or wherever the source code repo was May 10 18:45:56 why is it android:paddingLeft and android:layout_marginLeft, it seems inconcistent? May 10 18:48:58 Hi all, if I want to be able to host some information in a PostgreSQL database online and have my app contact it, would it be better to just grab the whole database from the server and update when necessary, or make queries each time I need specific information? May 10 18:49:32 Based on the answer from above, what are some good technologies for implementation. I've seen that django-rest-framework is good, but I've also heard about using Node.js with Express. May 10 18:49:38 jdawes i think netflix had a video on how they mobile-optimized their apis May 10 18:49:48 originally it started out very fine graned ... May 10 18:50:06 g00s: OK, I'll check it out. May 10 18:50:07 but then became more course May 10 18:50:28 spoiler: and they use Rx too :D May 10 18:55:07 g00s: is this the one you were talking about? http://www.infoq.com/presentations/netflix-functional-rx Not sure if I'm allowed to post links. May 10 18:55:29 jdawes hm, i thought they had a video just on their apis May 10 18:55:41 didn't really seem like it had much Rx May 10 18:56:13 http://techblog.netflix.com/2012/07/embracing-differences-inside-netflix.html May 10 18:56:40 OK, I saw that one, I was looking for a video link specifically. Thanks. May 10 18:56:42 and some of this wound up in their Rx videos too May 10 18:59:49 Just having @Inject Bus bus; and a Module injecting my Activity will work? May 10 19:00:41 I don't really understand what I need to do with the ObjectGraph May 10 19:01:17 So what does this court case mean for Android development? May 10 19:01:24 Will Android have to create a new SDK? May 10 19:01:31 s/Android/Google/ May 10 19:05:04 hello May 10 19:08:44 guys how can i do this , i want something like when you want to search for someone on facebook ? i want the same thing May 10 19:08:44 you write the two first letter for exemple and then you have some results May 10 19:09:06 : May 10 19:09:22 Gradle throws the following error after adding dagger and dagger-compile: Error:Gradle: Execution failed for task ':ShoppingList:packageDebug'. > Duplicate files copied in APK META-INF/services/javax.annotation.processing.Processor File 1: D:\.gradle\caches\modules-2\files-2.1\com.jakewharton\butterknife\5.0.1\8b8b5dbb7246b579377790535b8063cdc324d341\butterknife-5.0.1.jar File 2: D:\.gradle\caches May 10 19:09:23 \modules-2\files-2.1\com.jakewharton\butterknife\5.0.1\8b8b5dbb7246b579377790535b8063cdc324d341\butterknife-5.0.1.jar May 10 19:10:50 I'm doing like this: compile 'com.squareup.dagger:dagger-compiler:1.2.1' compile 'com.squareup.dagger:dagger:1.2.1' May 10 19:19:29 autrilla: try http://stackoverflow.com/a/20675331/1431669 May 10 19:21:30 f2prateek, that seems to have fixed it May 10 19:21:44 When a Fragment is popped of the backstack, does it get destroyed? May 10 19:23:49 They do! they get stopped May 10 19:29:53 JakeWharton, do classes need a common ObjectGraph in order for singletons to work? May 10 19:30:27 is there anything particularly wrong with storing a reference to a menu in onCreateOptionsMenu () … so i can change it later? the timin of onPrepeareOptionsMenu is not convenient for me May 10 19:31:17 g00s, why would you want to store a reference to it? May 10 19:31:41 autrilla need to enable / disable stuff as events occur May 10 19:31:59 g00s: nothing wrong with that May 10 19:32:03 autrilla: yes May 10 19:32:10 ok, cool May 10 19:32:40 g00s, I don't think there's another way to do it May 10 19:33:16 Oh, Dagger is useful for Context too May 10 19:36:23 Is anybody worried about the Oracle thing? May 10 19:36:32 TacticalJoke, no May 10 19:36:51 i am , but i worry about everything ;) May 10 19:37:14 Is it possible that Google will change Android's API? May 10 19:37:27 too early to tell May 10 19:37:34 g00s, regarding the Actionbar buttons thing, I added a event call when the fragment that has the buttons gets destroyed, and then on my activity I reset the custom view of the Actionbar to the Spinner I had. Now, it shows the Spinner, but the icon doesnt show May 10 19:37:41 TacticalJoke, is is a possibility, yes May 10 19:38:20 autrilla i'm not really an expert on the actionbar. not sure May 10 19:38:54 Any actionbar experts around? :) What sets the icon for the ActionBar? May 10 19:40:11 http://arstechnica.com/tech-policy/2014/05/oracles-java-api-code-protected-by-copyright-appeals-court-rules/ ... one of the things that make me wish to stay in Poland May 10 19:41:29 autrilla: the theme, the style, or the API May 10 19:42:26 s/theme/manifest/ May 10 19:42:42 JakeWharton, within the activity lifecycle, when is it set? May 10 19:43:35 After doing what Roman Nurik posted for Actionbar Done/Discard buttons, and resetting the custom view on the Actionbar to the Spinner I want, the icon just disappears May 10 19:44:43 It's set when initActionBar is called which is triggered by a few things May 10 19:44:58 JakeWharton, is it possible to trigger it again? May 10 19:45:14 No May 10 19:45:39 Anything after the first initialization is your responsibility. May 10 19:47:16 JakeWharton, nurik could have explained in the code what to do if you want to remove the buttons... heh. May 10 19:49:35 p_l sooner or later we'll export our copyright laws to your neck of the woods :P May 10 19:49:52 along with our gmo corn May 10 19:52:11 g00s: the corn is mostly harmless May 10 19:52:29 The copyright of the corn isn't :) May 10 19:52:43 p_l but the glycophosphates aren't May 10 19:53:07 g00s: the corn is modified to absorb less of them May 10 19:53:25 but there using far more because of resistance May 10 19:53:48 big problems here in the US with crazy weeds resistant to all of these; farmers are freaking out May 10 19:54:09 anyhow, its more about some company strongarming their will May 10 20:00:17 JakeWharton have you ever seen in RxJava .. calling Subscription.unsubscribe() but the Observer still getting events? The design of things determines whether the Observable keeps working, but I thought the chain of communication would at least be broken May 10 20:18:44 p_l http://arstechnica.com/science/2014/05/scientific-computings-future-can-any-coding-language-top-a-1950s-behemoth/1/ May 10 20:19:28 short answer: NO May 10 20:19:40 the premise is ridiculous May 10 20:19:59 how can I do sound playback in c++ code? adding java code to my native app bloats the crap out of it, I just don't want java.. it shot up to 28MB debug May 10 20:20:24 g00s: it also appears to completely disregard the fact we are currently on fortran 2008 May 10 20:21:36 g00s: and f2003 even added OOP :P May 10 20:32:43 uhg it seems noone can get audio on linux working.. there's one sample code that's got bugs up the ass in the dev kit (using opensl) May 10 20:32:43 s/linux/android c++/ May 10 20:35:33 gtg May 10 20:38:01 Need help please! May 10 20:39:18 Zylinx, don't ask to ask May 10 20:39:20 i know that onCreateOptionsMenu() is called during onCreate() but does my code in the overriding onCreate() always get executed first ? May 10 20:39:31 sorry was typing May 10 20:42:24 "i know that onCreateOptionsMenu() is called during onCreate()" i doubt this May 10 20:42:40 oh May 10 20:42:48 thats what someone said on stackoverflow May 10 20:42:56 maybe il do some more research May 10 20:44:33 oy maybe fragment.onCreateOptionsMenu is called during Activity.oncreate? hm May 10 20:44:42 somehow doubt that too May 10 20:44:50 well i am using a fragment May 10 20:44:52 Zylinx, http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu) May 10 20:44:59 "This is only called once, the first time the options menu is displayed. " May 10 20:45:14 well, i for one doubt that May 10 20:45:31 maybe because my menu is displayed from the get go May 10 20:45:44 its in the actionbar May 10 20:45:47 just use the debugger and check the stack May 10 20:46:20 .... May 10 20:46:22 sigh May 10 20:47:20 lol what's wrong Zylinx ? May 10 20:49:22 Hello May 10 20:49:26 Morning buddy May 10 20:49:33 Morning? May 10 20:50:01 autrilla: It is 5:49AM in here May 10 20:50:21 That's very morning indeed May 10 20:50:49 autrilla: I am Japanese and I live in Japan May 10 20:51:43 adq, im not so familliar with the debbuger, also what if its some multi threaded story and it could possibly be called before OR after May 10 20:51:49 then my results wouldnt help May 10 20:55:43 well how about this, is it safe to call setHasOptionsMenu(true); knowing onCreateOptionsMenu() will be called after it?? May 10 20:55:44 lol May 10 20:56:04 sounds like a fool proof plan May 10 20:56:51 i meant, is it safe to presume that it will be called after not knowing May 10 20:57:44 Is there a display option to show the icon on the Actionbar? May 10 20:58:07 yes May 10 20:58:44 Zylinx, which is... May 10 20:58:49 SHOW_HOME? May 10 20:59:06 oh lol, nvm thaught u wer asking in aid of my question May 10 20:59:55 my icon is always in the actionbar May 10 20:59:56 Zylinx, what i meant with the debugger is just put a breakpoint at the start of the function you want to audit, so you will see the stacktrace and check which other(s) function(s) called it the first time. There is no issue of multithreaded thingy or whatever, and you will see it's very simple to do May 10 21:00:17 and if you plan to develop/code, a debugger is one of your friend May 10 21:00:21 yes, it was the HOME option May 10 21:00:54 adq, ok cool, il try it, its not the first time iv used the debugger im just normally happy to use Log.i's haha May 10 21:01:28 printing text is more than enough most of the time, but you want to verify if what the official documentation says is true or not May 10 21:02:40 How can I make it so that when I go back in the Fragment backstack, it retains the selected Actionbar Spinner item? May 10 21:03:14 adq, do i put the breakpoint on the signiture line ? May 10 21:04:12 it should work, or anywhere inside the function itself (assuming there is no branch above which would result in skipping your breakpoint) May 10 21:05:13 Zylinx, on stackoverflow they said the documentation is correct concerning the onCreateOptionsMenu() if there is no actionbar involved (which in your case, is involved) May 10 21:05:28 ahh May 10 21:06:56 autrilla, is it a spinner or a menu ? May 10 21:07:04 Zylinx, a Spinner May 10 21:07:35 just save it manually i would gues May 10 21:15:41 are there any good libraries for reducing sqlite boilerplate? getting bored of writing my own dao classes May 10 21:17:26 veeti, ormlite May 10 21:19:15 i remember trying that years ago, i'll take another look May 10 21:19:18 thanks May 10 21:27:34 Any well designed apps that use drop down navigation? I want to see if they animate it May 10 21:38:29 Hi, I just installed Android Studio for the first time, created a project, and got an error: Gradle 'ProjName' project refresh failed Error:Invalid byte 1 of 1-byte UTF-8 sequence. May 10 21:38:37 How can I find the source of the error? May 10 21:41:34 hello fine, i want to add a layout in a view, but i got this errro http://pastebin.com/ijxWfJtc , et voici le code http://pastebin.com/fxq14mDK May 10 21:41:48 this is the code May 10 21:41:58 thnx in advance May 10 21:45:26 i have check on the net , it chang it nothing , May 10 22:00:39 anyone help me with android sqlite db May 10 22:00:56 im looking at this tutorial http://developer.android.com/training/basics/data-storage/databases.html May 10 22:09:19 I'm new to Java. If I have a List and I want to check if particular entry is present, would this be okay: May 10 22:09:20 if (params.contains(new BasicNameValuePair("con", "api"))) May 10 22:09:20 ? May 10 22:26:33 hey folks, how can i remove a part of a bitmap so its transparent in relation to the background? May 10 22:27:32 It's code cleanup time! May 10 22:27:55 anybody? May 10 22:32:55 droidNub, set the pixel value of the corresponding part to 0x00000000 if encoded in ARGB8888 May 10 22:33:30 you obviously need transparency supported by your bitmap, then you just set the pixels you want with full transparency (so 00) May 10 22:56:24 For asynchronous Adapters, what should I extend? CursorAdapter? May 10 22:57:26 if I want a clock in my app, but I want the time xx:xx to be a separate item than the am/pm (so they can be in different locations) can i do this with a DigitalClock or should I do it in a more manual way? May 10 22:59:07 JakeWharton, are you around and do you have time to look into the Hugo issue? May 10 23:16:53 hm, good thing AS comes with Nav Drawer template - i don't think i would figure out all the nuances of the microinteractions May 10 23:22:04 where am i suppose to put all these classes http://developer.android.com/training/basics/data-storage/databases.html May 10 23:22:27 is mainactivity May 10 23:22:29 ? May 10 23:32:05 impossible to add holoeverywhere to my project May 10 23:32:10 why does this have to be so fking hard May 10 23:33:34 zala64 i doubt holoeverywhere is worth it May 10 23:33:51 after so many hours, i don't doubt anymore May 10 23:38:35 What could be the cause of shared preferences not saving correctly? May 10 23:39:11 I do preferences.edit().putInt(SELECTED_POSITION, position); then getSharedPreferences(APP_NAME, MODE_PRIVATE).getInt(SELECTED_POSITION, 0); and I get the default value May 10 23:39:25 And I run them one after another May 10 23:39:32 Not committing the changes May 10 23:40:30 I wonder why they add those commit methods, it's like the Toast.show(); May 10 23:44:19 Because they initially didn't think to write changes asynchronously May 10 23:44:53 So, when changing 10 values, they didn't want to write the file 10 times, but instead have you commit and write once when done May 10 23:45:27 hm, i still don't get this navigation drawer idiom - when its showing, only stuff related to 'global context' should be seen. so how do i hide options menu items from fragments that have hasOptionsMenus(true)? May 10 23:45:59 With Fragment#setMenuVisibility May 10 23:46:16 I don't understand, why this code doesn't remove "op" as well? May 10 23:46:16 ooh, thx May 10 23:46:17 http://pastebin.com/mx067Krr May 10 23:47:34 Because you're changing the list while you're looping through it May 10 23:47:43 And fail to account for changing indexes of items May 10 23:48:39 Oh, I see. But I've tried using "iterator" objects and output was similar. I think I will give it another try, thanks! May 10 23:49:14 If you looped from size-1 to 0 you wouldn't have that issue May 10 23:50:12 creitve uh why not define .equals() for NameValuePair and just use collection.remove(object) :) May 10 23:50:29 i mean, unless you are using different criterial for equals in different places May 10 23:51:37 are you suupose to put these classes http://developer.android.com/training/basics/data-storage/databases.html May 10 23:51:43 in manActivity May 10 23:51:50 mainActivity May 10 23:52:08 like this http://dpaste.com/0238ZY0/ May 10 23:52:41 g00s: does that involve overloading anything? May 10 23:54:06 .equals ? May 10 23:54:09 SimonVT: thank you, it worked? May 10 23:54:37 *! May 10 23:56:34 Yop, I have a not-strictly-android-development question, but rather an app building question May 10 23:56:42 Basically it wont build May 10 23:56:47 g00s: I'm just a bit sleepy, sorry. If I need to "define" anything in Java, what is already defined, I need to overload it in my new class, right? May 10 23:57:10 here's the error that I get, (I've downloaded java and installed the sdk) http://pastebin.com/d8xDy8fU May 10 23:57:13 creitve yes, you overload equals May 10 23:57:22 maybe its default behavior already works May 10 23:57:49 It does work, yes. May 10 23:58:07 However, I'm still curious, why iteration syntax didn't work out. May 10 23:58:31 probably, it also isn't suitable for situation with removing objects May 10 23:59:01 * g00s sleepy yoo May 11 00:02:56 does anyone know why, when you run a replace in a fragment transaction, it keeps the fragment being replaced on top of the fragment you're replacing it with when animating? I would think the z order should place the entering fragment on top, not underneath May 11 00:09:05 How do I prevent object from changing? Is there a way to make a deep copy of an object? May 11 00:09:22 I'm trying to make a Python analogy. May 11 00:09:53 Oh, sorry, I can google that. May 11 00:22:28 re i want to add a views in a parent layout , but i got this is error , but i added removeView , but it removes some of the views , how can i solve this problem? May 11 01:26:23 is it possible to use an emulator to develop wifi direct apps? I tried using genymotion and it doesn't work May 11 01:26:30 no option in the wireless menu for wifi direct May 11 01:34:09 anyone? May 11 01:53:56 hi i'm trying to understand how to add references to my project (which i understand have been re-thought as modules) May 11 01:54:38 seeing some guides that say right click on application->open module settings but.. where is this exactly? i'm not seeing any widget in this toy project i just made named 'application' May 11 01:56:10 probably should've mentioned - android studio May 11 02:41:20 is it me or is GitHub down? May 11 02:42:47 503 Service Unavailable May 11 02:42:51 yup May 11 02:42:59 man, github seems like a piece of crap May 11 02:43:07 second time this week its been down May 11 02:43:43 'we take your decentralized version control system and centralize it, then fail' May 11 02:44:50 seems to flake out for some projects and just all together May 11 02:45:03 like rxjava project was 500 several times over the past few weeks May 11 02:45:42 maybe they should stop working on their js editor and get their stuff running **** ENDING LOGGING AT Sun May 11 03:00:00 2014