**** BEGIN LOGGING AT Tue Jul 01 03:00:01 2014 Jul 01 03:00:05 Hi, Anyone know if you can have people log in with an already signed on twitter app? Jul 01 03:00:16 Or does it always have to go to the website where people input their username and passowrd Jul 01 03:08:39 log into what ? Jul 01 03:17:04 most 'screen filter' appplications appear to use 'addition' color filters. are there any that use 'multiplication' color filters? Jul 01 03:17:15 or is this perhaps impossible to implement on the android platform? Jul 01 03:26:20 raboof: http://developer.android.com/reference/android/graphics/PorterDuffColorFilter.html Jul 01 03:26:51 set second parameter in constructor to PorterDuff.Mode.MULTIPLY Jul 01 03:32:01 Napalm: ok, so you can create a global overlay with a particular ColorFilter? That was unclear to me. Jul 01 03:41:40 ahead of time, i'm sorry Jul 01 03:47:38 raboof for the whole display + all apps ? Jul 01 03:48:26 Hi, How can I show 2 tcp client response on 1 activity? Jul 01 03:48:48 2 or more * Jul 01 03:51:01 g00s: yes Jul 01 03:51:46 raboof jeff sharkey did that a while back. its not something that can be done from an app Jul 01 03:52:39 http://jsharkey.org/blog/2010/07/01/android-surfaceflinger-tricks-for-fun-and-profit/ Jul 01 03:55:07 Anyone know any example that has an activity updates 2 or more TCP client responses? Jul 01 03:56:56 g00s: nice :) Jul 01 03:57:20 g00s: cool Jul 01 03:58:05 t4nk569 how is sending 2 different than sending one ? Jul 01 03:58:34 g00s sending to 2 different ip's Jul 01 03:58:54 i .. don't see the issue. send 2 requests :) Jul 01 04:00:11 For some reason when AsyncTask runs and I can't send to another IP Jul 01 04:00:36 use intentservice instead Jul 01 04:00:52 okay I will look into that thanks Jul 01 04:02:11 t4nk569 maybe you ran into the issue - well its by design - you can't reuse an AsyncTask instance. well anyhow, Asynctask sucks so don't stress about it Jul 01 04:07:09 squ raboof ya, jeff is a smart guy - wonder what he's doing these days …. Jul 01 04:07:17 Napalm there ? Jul 01 04:51:03 hi is anyone here? Jul 01 04:51:36 no Jul 01 04:51:59 i need help with my nexus5 it doesn't show up on my laptop Jul 01 04:52:13 doesn't show up what Jul 01 04:52:16 not that the drivers are not installed, it just will not recognise that somehting is plugged in Jul 01 04:52:24 at all Jul 01 04:52:27 when i plug it in Jul 01 04:52:29 try a different cable Jul 01 04:52:30 device manager Jul 01 04:53:10 the cable is fine, i try it on my linux computer and it recognises something is plugged in (ofc linux drivers aren't isntalled, but stuff shows up ) Jul 01 05:01:56 can anyone please help? Jul 01 05:02:02 i cant connect to my phone at all Jul 01 05:02:05 itrs getting annoying Jul 01 05:08:59 tried a different port ? Jul 01 05:12:50 bankai_au: yes Jul 01 05:13:01 bankai_au: same port same cable different phone=works Jul 01 05:13:42 so your phone just hates windows then ? Jul 01 05:17:57 nothing wrong with that ;) Jul 01 05:21:46 o look it does.. Jul 01 05:21:48 interesting Jul 01 05:22:05 if you plug a phone into mac Jul 01 05:22:11 would it just show up as a pop up or smthg? Jul 01 05:22:19 htinking of asking my boss to test it out on his macbook Jul 01 05:23:15 Tjh: what do you want to test Jul 01 05:23:37 if you connect iDevice iTunes will pop up Jul 01 05:24:05 aah ok Jul 01 05:24:13 squ: that my phone can do computers Jul 01 05:24:41 do them good Jul 01 05:28:41 MAN android-L is so many levels of alpha-bad Jul 01 05:28:48 i get that it's dev version, but GEEZ Jul 01 05:29:08 probably shouldn't install developer previews? Jul 01 05:29:24 well i get that...dev preview and so on Jul 01 05:29:33 but theres a MASSIVE difference between dev preview and alpha Jul 01 05:30:06 dev preview is: "basic stuff works, so you can start building ur apps, extra stuff probly broken"" Jul 01 05:30:20 alpha is: "everything broken, even basic stuff may not work well" Jul 01 05:31:01 Tjh: works great for my needs Jul 01 05:32:09 piperx: really? Jul 01 05:32:19 i don't use facebook, tb, whatsapp, xposed Jul 01 05:32:31 piperx: i get stuff like "i missed my alarm because it crashed at night while just sitting there DOING NOTHING" Jul 01 05:32:47 whatsapp works... Jul 01 05:33:02 to me those are crap apps, but my grandkids (20's) use sometime Jul 01 05:33:19 nab Jul 01 05:33:19 unfortunately ppl here insist on using whatsapp Jul 01 05:33:20 man* Jul 01 05:33:23 it is SO MANY LEVELS of bad Jul 01 05:33:24 piperx: grandpa? Jul 01 05:33:28 so very terrible Jul 01 05:33:39 what's wrong with whatsapp? Jul 01 05:33:58 whatsapp keeps giving me a free sub Jul 01 05:34:06 Haz: cant block, people are added to your list whether you like it or not Jul 01 05:34:11 Time2303: 5 grandkids one more on the way Jul 01 05:34:23 Haz: or..CAN block, but not as well as i wud like to, the dude is sitll there on my list Jul 01 05:34:26 Hi Jul 01 05:34:33 don't they have to be already added in your contacts to be on the list? Jul 01 05:34:35 piperx: cool! Jul 01 05:34:40 Haz: yes.. Jul 01 05:34:42 piperx: nice Jul 01 05:34:46 why would you want to block people that you have in your phone contacts? Jul 01 05:34:52 Haz: i have a bunch of "temp" contacts on my list, cable guy and such Jul 01 05:35:01 Haz: i really dont want him on my whatsapp list Jul 01 05:35:09 lol Jul 01 05:35:15 why do you have your cable guy in your contacts Jul 01 05:35:17 I just use Hangouts Jul 01 05:35:19 Haz: and one entire group: "this group is for people i block" Jul 01 05:35:21 how do you even get a cable guy's number Jul 01 05:35:33 just wanted to ask if mobile atlas creator is good option for offile maps Jul 01 05:35:38 Haz: oh..im in india....that's the only way to get things done here Jul 01 05:35:42 oh Jul 01 05:35:47 okay, I guess I'm in america Jul 01 05:35:49 so I don't get that Jul 01 05:35:53 i don't do social apps, just not me, but, i can understand people want them working, most think L is a release have no clue to what they are doing Jul 01 05:35:59 Haz: yea..its so bad here.. Jul 01 05:36:06 I want to have access to map and get my location updated in offline mode Jul 01 05:36:17 Next time my parents buy a new phone, if it's an Android, I'll set 'em up with Hangouts. That way I can do a lot of my texting from my computer :D without having to connect to anything (a la mightytext) Jul 01 05:36:18 any help will be really great Jul 01 05:36:24 piperx: no really, i get the difference, but a dev preview has no bussiness crashing whilst sitting there Jul 01 05:36:52 i haven't seen it crash ide Jul 01 05:37:15 hey i feel really dumb but i can't figure this out, "INSTALL_FAILED_OLDER_SDK" error on Android Studio usually means that the min sdk is higher than the device's api version you're trying to install on. But my minSDK (10) is less than the device's (19). Jul 01 05:38:05 been beating my head over this Jul 01 05:40:03 logcat may help Jul 01 05:40:19 one time i found out the issue was a leftover folder...android was just being weird about error messages Jul 01 05:42:49 Any good tutorial to implement basic Google Analytics in my app with single activity. The Google Analytics documentation isn't making any sense. Jul 01 05:48:37 yeah so the logcat just basically says requires L and then some stuff about TypedArray and then something about Binary XML file at line #7. This leads me to believe it's complaining about Material theme or something, but I have it defined in a custom theme so pre L its Holo. Jul 01 05:54:54 Jul 01 05:55:48 installs fine if I lower compileSDK to 19 and remove Material theme styles.xml Jul 01 05:58:14 Hi I have a question. I have a service class called DownloadHandler, with inner class ServiceHandler which extends Handler class. There are two functions, sendPath and makeReplyMethod, Jul 01 05:58:14 while sendPath(messenger, pathname) creates : Message message makeReplyMethod(pathname); messenger.send(message); makeReplyMethod(pathname): creates a bundle with pathname passed Jul 01 05:58:14 , calls Message message = message.obtain(), and then sets message.setData(Bundle); Jul 01 05:58:58 My question is, why do I have to call message.obtain() , can I just not create a new Message object ? Also, from where does it "obtain" the message from ? a message queue ? Jul 01 06:07:16 Ram_ obtain retrieved a message from a pool. messages are returned to the pool after they are handled Jul 01 06:08:43 g00s : so basically there are a "pool" of messages which are like empty, you add some stuffs to them, and once the HandleMessage consumes those msg, they are returned back to the pool? Jul 01 06:09:02 if i recall Jul 01 06:09:16 Is it possible for an android application to take a screen grab of the topmost application window while it is running in the background? Jul 01 06:11:00 ok. I c. I was just looking the the signature of messege class, it says " though theconstructor is public, its recommended to use Message.obtain() or the Handler.obtainMessage() Jul 01 06:11:01 Ram_ they are returned to the pool with Message.recycle() Jul 01 06:11:22 yeah, so if you don't use obtain, don't use recycle ;) Jul 01 06:11:46 wait, so I need to manually recycle them ? Jul 01 06:12:02 by calling msg.recycle() ? Jul 01 06:12:03 no , Handler does that Jul 01 06:12:09 ok. Jul 01 06:12:14 if you new a Message() just forget about it Jul 01 06:12:36 in that case the gc will take care of it right ? Jul 01 06:12:37 i think it will automatically get added to the pool though when handleMessage is finished Jul 01 06:12:53 I mean when I use new MEssage(), .. Jul 01 06:13:17 ok. that makes sense for handler to take care fo it. Jul 01 06:14:26 so if I understand correctly, if I am manually creating a message using new Message() , then I could use recycle to return it to the global pool, or just leave it (in which case gc willt aek care of it) Jul 01 06:14:52 If however, I use handler class, it takes care of recycle after invoking the overriden handleMessage Jul 01 06:15:11 does anyone use codename one? i have a question Jul 01 06:15:29 Ram_ technically looper recycles it, but yes Jul 01 06:17:46 or does anyone use netbeans? Jul 01 06:21:58 bankai_au there ? Jul 01 06:28:56 did you get my "en route" msg? Jul 01 06:29:20 bankai_au no :) Jul 01 06:29:34 bankai_au but check this out , i thought this was kinda shitty https://news.ycombinator.com/item?id=7968665 Jul 01 06:29:55 good blog, HN discussion Jul 01 06:30:09 bankai_au oh yeah and did you see https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 , was nice :) Jul 01 06:31:22 first link - wow Jul 01 06:35:19 g00s: first link is VERY shitty Jul 01 06:35:57 thepoosh do you think its true ? Jul 01 06:36:08 if its true, yeah seems very shitty Jul 01 06:36:21 from my experience of glide working with apple we haven't noticed it Jul 01 06:36:26 but I'll ask the execs Jul 01 06:41:56 I have 6 icons and want to display text under each icon Jul 01 06:42:01 where should I do that Jul 01 06:42:11 layout? or strings or in Manifest? Jul 01 06:42:37 g00s: we haven't had dog talk for a while ... wanna have some dog talk? :P Jul 01 06:42:55 niru: use TextView with attached drawables Jul 01 06:43:06 topDrawable Jul 01 06:43:06 an ok got it thepoosh Jul 01 06:43:30 thepoosh, ok you mean image will be at top and text will be at bottom? Jul 01 06:43:33 bankai_au still stressing out about which tick stuff to give jake :| Jul 01 06:44:14 niru: yes, if you take a TextView and set an image as it's topDrawable, it will look like you want Jul 01 06:44:30 thepoosh, thanks :) Jul 01 06:44:42 g00s, bankai_au: not another dog talk1 Jul 01 06:44:48 fats FTFW! Jul 01 06:44:52 *cats Jul 01 06:44:53 fats? Jul 01 06:44:58 yes bacon ftw Jul 01 06:45:03 mmmm bacon Jul 01 06:45:18 jewish here, no bacon for me Jul 01 06:45:31 i wonder how many cat pics thepoosh has on reddit Jul 01 06:45:40 bankai_au: nope Jul 01 06:45:47 I am not a crazed cat women Jul 01 06:46:52 thepoosh turkey bacon :) Jul 01 06:50:44 bacon on everything Jul 01 06:50:56 bacon should be our national / international fruit Jul 01 06:51:15 needs seeds to be called a fruit Jul 01 06:53:03 bankai_au there is a dog in the rxjava guide ^^^ Jul 01 06:53:20 g00s: turkey bacon == facon Jul 01 06:53:29 I don't do fake Jul 01 06:53:51 I keep it real! Jul 01 06:53:53 there's a veggie bacon created by sanitarium, it's not too bad Jul 01 06:59:59 bankai_au thepoosh i was reading from commonsware blog that actionbar tab and spinner navigation is being deprecated Jul 01 07:00:17 and the actionbar is being replaced or augmented by some more generic toolbar thingy Jul 01 07:00:17 link Jul 01 07:00:25 hmmmmm Jul 01 07:00:35 I read some opinions that actionbar is crappy Jul 01 07:00:40 but I'm not sure I agree Jul 01 07:00:45 http://commonsware.com/blog/2014/06/28/and-now-your-l-api-change-wtfs.html Jul 01 07:01:12 this is the way iosched seems to behave Jul 01 07:01:23 when you click on a session, the dialog pops up with an actionbar Jul 01 07:01:35 or maybe its an activity with dialog theme? Jul 01 07:01:44 still, has a toolbar / actionbar Jul 01 07:01:45 they can always do what amazon is doing with the Amazon Kindle Jul 01 07:01:56 what is that ? Jul 01 07:02:15 quick tilt right and quick tilt to open navigation drawers Jul 01 07:02:23 we have a prototype in the office Jul 01 07:02:35 ah, k Jul 01 07:02:54 it's quite cool and seems like it might be too many false positives Jul 01 07:04:16 yeah, i think the ab is kinda shitty Jul 01 07:04:34 idk, it looks ok to me Jul 01 07:04:34 for a couple of reasons, but things get out of control with a bunch of fragments wanting to do things to it Jul 01 07:04:59 i'd rather each fragment have its own actions in its space Jul 01 07:09:05 thepoosh, but I have gridview and does gridview support textview Jul 01 07:09:18 hey guys! quick question for you. Is it possible to create a button out of the app logo on the top action bar? Jul 01 07:09:25 I am not able to add anything inside gridview Jul 01 07:14:34 hey guys! quick question for you. Is it possible to create a button out of the app logo on the top action bar? Jul 01 07:14:48 PCPinjecti0n: isn't that default? Jul 01 07:15:36 you have to enable it Jul 01 07:15:38 squ: i would like it to be a refresh button, though i'm not sure how to do that Jul 01 07:15:47 Oh, as a refresh button, I'm not sure Jul 01 07:16:00 in general though, how would you enable it? Jul 01 07:16:20 niru: GridView has an adapter that will take care of the inner viewes in the getView Jul 01 07:16:32 i'm new to android studio ^^ Jul 01 07:16:39 ok thepoosh Jul 01 07:17:07 that's not going to be intuitive though - I don't know any apps that refresh like that. but getActionBar().setDisplayShowHomeEnable(true); makes it so you can click on the logo Jul 01 07:17:56 but for what you want, it's better to have a refresh button on the action bar. Jul 01 07:18:02 there is a method which receive all meny keypress events, put call to your refresh method there Jul 01 07:18:26 or pull down to refresh (unless that's patented) Jul 01 07:18:33 fair enough Jul 01 07:18:37 pull down would be easy Jul 01 07:18:57 though it seems that everyone has it, can't fathom its patented Jul 01 07:19:51 According to Google (and The Verge), Twitter holds the patent for it but "promises to only use it defensively" http://www.theverge.com/2013/5/21/4350826/twitter-pull-to-refresh-patent-innovators-patent-agreement-announced Jul 01 07:20:51 you have a pull-to-refresh helper as part of support-v4 lib Jul 01 07:20:57 But doesn't facebook and snapchat use that feature? Does that mean that they are paying twitter for it? Jul 01 07:20:58 use that. Jul 01 07:21:15 Means twitter won't sue them for using it unless they try to sue twitter first Jul 01 07:21:27 Mavrik: ill look into that. thank you! Jul 01 07:21:58 lawl true. Jul 01 07:22:35 means that i can use the exact same thing and it theoretically will not be a problem ^^ Jul 01 07:22:53 yup Jul 01 07:22:59 unless you plan on suing twitter Jul 01 07:25:14 lmao. that'll be the day Jul 01 07:29:55 Or, if you listen to Loren Brichter (the guy who "invented" pull to refresh), you shouldn't have to use PTR at all Jul 01 07:30:35 In this day and age of push notifications and smart background processing, ensure that the user always has the updated data Jul 01 07:30:37 :) Jul 01 07:32:36 that is true, but that is probably more complicated lawl Jul 01 07:34:05 Complicated to us, the developers, is irrelevant Jul 01 07:34:16 Simple and works great for the users, is important :) Jul 01 07:35:48 very true. that'll be in the beta version then xD Jul 01 08:12:34 Hi all, I wonder if there's a lib project which contains a time picker like this one: http://blog.iangclifton.com/wp-content/uploads/2014/01/android_new_time_picker_1-400x263.png Jul 01 08:14:28 Hi all I've make a test app with a single "Activity". Is not shown in foreground when the tablet resume after sleep, the tablet just show the "desk" and my activity is in background...how can I do ? Jul 01 08:15:44 Hi.. what is super.onCreate(savedInstanceState) ? Jul 01 08:15:49 napnap: is this on the emulator is on a real device? Jul 01 08:15:54 what is Bundle savedInstanceState ?? Jul 01 08:16:07 danijoo, real device Jul 01 08:16:38 napnap: test it on another one or the emulator. maybe its just a weird device settings from manufactor that you cant control.. Jul 01 08:17:26 Alfreda: When the activity pauses, it calls a method called onSaveInstanceState where you can save some values to a bundle Jul 01 08:17:49 ah ok... sotty i'm new on android.. and what is a BUNDLE? Jul 01 08:18:05 I search on the side of indent flag put in manifest file...but I don't find... Jul 01 08:18:12 if the activity gets destroyed by system to free memory and has to be recreated when the user resumes, you can get those values from the bundle in onCreate (it is passed back to you in onCreate) Jul 01 08:18:27 napnap: i dont think this is a setting you can control. Jul 01 08:18:46 Alfreda, If you don't know what a Bundle is, you should check this: http://developer.android.com/training/index.html Jul 01 08:18:52 Think of a Bundle like a Box where you can store key->value pairs Jul 01 08:19:12 FrancescoV: grazie Jul 01 08:19:22 in onSaveInstanceState you can throw some values in it, and pick them up in onCreate if neede Jul 01 08:19:24 d Jul 01 08:20:25 first understand what a Bundle is before looking for onSaveInstanceState Jul 01 08:20:31 Bundle is a box where i can store some value, variables and others? Jul 01 08:20:41 yes Jul 01 08:20:54 Used to pass objects between Activities / Fragments Jul 01 08:21:18 ah Jul 01 08:21:19 ok Jul 01 08:21:21 although "others" is very limited.. Jul 01 08:22:15 danijoo, with any installed app, when I push sleep/resume button, the last open is shown. Jul 01 08:22:17 First step: pass some date (String or something else) from ActivityA to ActivityB and show the data in ActivityB Jul 01 08:22:37 FrancescoV: i use intent for this Jul 01 08:22:59 ah ok is possible add an object on fragment_main.xml dinamically? for example i can add ImageViews in function of how file there are on a folder? Jul 01 08:23:12 Alfreda: Intents is for showing new Activies, You can set a bundle on an intent to pass data to the new Activity Jul 01 08:23:15 Alfreda: an Intent can holds a bundle :) Jul 01 08:23:44 napnap: Any logcat output? Maybe your app crashes onResume and throws you onto the homescreen.. Jul 01 08:23:47 iI would like to create a gallery based on the files that are on a remote folder type www.mysite.com / photo Jul 01 08:24:28 Big project for learning android.. Jul 01 08:24:53 FrancescoV: in my test i use: Intent intent=getActivity().getIntent(); String s=intent.getStringExtra("stringa"); Jul 01 08:25:03 and work correctly :) Jul 01 08:25:19 danijoo: is very hard? Jul 01 08:25:36 Alfreda: intent.getStringExtra(..) is just a shorthand for getting the bundle from the intent, and the string out of the bundle Jul 01 08:25:37 yes Jul 01 08:26:01 danijoo: i'm an expert of C/c++ Programming Jul 01 08:26:17 i programmed in C++ from 4 years in Qt Jul 01 08:26:20 look for some GridView + Adapter tutorial. Then have a look at Picasso Lib (caching images from web) Jul 01 08:26:29 to bad android is no c/c++, hm? :p Jul 01 08:26:44 c/c++ is many manu hard and more complete ;) Jul 01 08:27:22 please explain "more complete" ^^ Jul 01 08:27:32 haha "expert" at c++ Jul 01 08:27:52 you can create software for plane/tank/superpc with java? Jul 01 08:27:53 :) Jul 01 08:28:02 yes Jul 01 08:28:05 embedded is all in C Jul 01 08:28:08 ;) Jul 01 08:28:15 thats not true :) Jul 01 08:28:41 danijoo, no crash in logca Jul 01 08:28:50 show me a microcontroller with java :| Jul 01 08:29:02 yes i can create software for plane,tank and superpc in java (why shouldnt I)? Jul 01 08:29:14 why a little microcontroller Jul 01 08:29:18 it just needs a jvm Jul 01 08:29:27 well maybe not for a microcontroller Jul 01 08:29:29 not hava jvm Jul 01 08:29:42 are micro with 8 bit :P Jul 01 08:29:45 only C Jul 01 08:29:46 My plane would have one :p Jul 01 08:29:48 false :) Jul 01 08:29:56 Alfreda: Java Card and smart cards. Jul 01 08:29:56 and its not only C Jul 01 08:30:06 I much prefer doing stuff at that level in assembly Jul 01 08:30:13 JesusFreke: +1 Jul 01 08:30:19 yes but for this i must have a OS Jul 01 08:30:24 and after install JVM Jul 01 08:30:36 on SILAB 8051 for example Jul 01 08:30:46 you programm directly to CPI Jul 01 08:30:52 CPU in C/Assembly Jul 01 08:30:55 assembler Jul 01 08:30:58 no in java Jul 01 08:31:18 Yeah, good luck running java with 256 bytes of memory :) Jul 01 08:31:26 ^^' Jul 01 08:31:33 8051s are fun Jul 01 08:31:38 There is Java Card however, and it's quite widely used. Jul 01 08:31:54 btw what do you want to tell us with this in an android-channel? Telling that java is so bad? :p Jul 01 08:32:45 "The offering of Java for embedded devices is growing fast with companies that provide Embedded Java virtual machines for ARM Cortex-M serie. Only 50KB of flash is needed and a few KB of RAM." Jul 01 08:32:51 danijoo: is just for speak! Jul 01 08:33:05 ARM Cortex-M are super microcontroller ;) Jul 01 08:33:09 not small MCU Jul 01 08:33:28 yeah. thats simply not a usecase for java. I agree with you on that. Jul 01 08:33:40 :D Jul 01 08:33:45 howewer Jul 01 08:33:47 Java has its own, and C, has its own Jul 01 08:34:37 i have create an app for android that put on an imageview that put on an imageview from an url and work correclty Jul 01 08:35:06 now i want to have all image from a folder on server Jul 01 08:35:11 not just 1 Jul 01 08:35:13 like a gallery Jul 01 08:35:59 you should look into Picasso then Jul 01 08:36:17 will make your life a lot easier. Jul 01 08:36:43 what is Picasso? Jul 01 08:37:02 a library for image handling Jul 01 08:37:10 and where is? Jul 01 08:37:32 internet Jul 01 08:37:39 ""' Jul 01 08:38:01 but i must download it Jul 01 08:38:04 ? Jul 01 08:38:50 you can also open the raw files file by file and copy the source code if you like :) Jul 01 08:40:22 do you have a link pls? Jul 01 08:40:28 i dont find it Jul 01 08:40:29 :( Jul 01 08:41:30 ... Jul 01 08:41:38 http://lmgtfy.com/?q=picasso+android# Jul 01 08:42:20 danijoo: :| Jul 01 08:42:27 there is an official site? Jul 01 08:42:31 i must download it? Jul 01 08:42:38 or i have already? Jul 01 08:42:41 its the first link you get there.. Jul 01 08:42:51 it a library, written by another developer Jul 01 08:42:58 so yes, downloading is required Jul 01 08:43:05 ah ok thanks Jul 01 08:43:08 now i study it Jul 01 08:43:11 :) Jul 01 08:43:15 Its the same as using libraries for C ;) Jul 01 08:43:23 hey y`all, sorry this is a lil off topic: if i want to make a excel bill-table of/for persons and want a column for addressing male/female what is the best word: salutation,address,title,appellation, compellation, salutataory address? Jul 01 08:43:37 danijoo: but i must compile it ? Jul 01 08:43:41 how install it? Jul 01 08:44:33 if you dont use gradle, then like any other jar in android Jul 01 08:44:57 like the support-v4 you asked a couple of days back for example Jul 01 08:45:56 danijoo: i have download it .jar Jul 01 08:46:01 and now how to install? Jul 01 08:46:08 sorry I dont want to help you anymore Jul 01 08:46:32 because you or totally resistant to googling and finding somehting out on your own Jul 01 08:47:06 danijoo: thanks java expert Jul 01 08:48:16 Alfreda, i have been following this conversation and you are expecting to be spoon feed. i would have given up a long time ago Jul 01 08:53:48 lemonxah: (y) Jul 01 08:58:08 I want to use this libs https://github.com/CiTuX/datetimepicker but never used gradle, does somebody know a good tutorial for start using gradle? or is it possible to import the project in Eclipse and add it to my own project? Jul 01 08:58:38 FrancescoV: Is Your project gradle based? Jul 01 08:59:23 then you can simply add the line under "Usage" in the build.gradle under "dependencies" Jul 01 08:59:28 and you're done Jul 01 08:59:49 danijoo, currently not, never used gradle, I'm always creating project in Eclipse and adding Libs from Workspace to my projects Jul 01 09:00:19 im only using intellij sorry. Dont know how to convert a project :/ Jul 01 09:00:41 FrancescoV: that project is a library project, so you can just clone the repo or add it as a submodule Jul 01 09:00:53 since you will need everything anyway Jul 01 09:01:25 heinrisch: what is the submodule thing? Jul 01 09:01:46 eclipse dont has submodules. he means a library project Jul 01 09:01:48 morning Jul 01 09:02:13 FrancescoV: danijoo I mean submodule as a git submodule Jul 01 09:02:19 oh ok :) Jul 01 09:02:20 anyone using CardView on android < L ? I'm getting Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.CardView" Jul 01 09:02:52 gdrc: I don't think its available for pre-L versions yet Jul 01 09:03:26 why? it is in the appcompat Jul 01 09:03:40 don't know, that is what I heard Jul 01 09:04:29 you heard bad: The RecyclerView and CardView widgets are included in the Android L Developer Preview Support Library, so Jul 01 09:05:09 ok, then tell me if you get it working :) Jul 01 09:05:26 ok Jul 01 09:06:27 how much time should it take to start using Android Studio and get to know with it? 1 day / week Jul 01 09:06:56 does generating a key with keytool have anythign to do with my app itself, besides later using it to sign it? Jul 01 09:07:28 like for the example here, do i only need to change the alias? Jul 01 09:07:31 $ keytool -genkey -v -keystore my-release-key.keystore Jul 01 09:07:31 -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 Jul 01 09:07:32 FrancescoV: 1-2 days. worth it Jul 01 09:08:01 How can I move widgets on the activiy main form in ADT eclipse IDE? I cannot click and drag them Jul 01 09:08:20 FrancescoV: coming from eclipse i just started using AS immediately Jul 01 09:08:30 although my interface is all code, i’m not sure about UI tools Jul 01 09:09:16 and i only switched for better code completion… it’s bad in eclipse Jul 01 09:11:19 thanks, I gues it's easy to create gradle projects in AS, right? Jul 01 09:11:43 for my purposes that’s just what it does Jul 01 09:12:00 When I try to add widgets to a form it only allows me to put them in the top left corner. I sthere a way I can put them elsewhere on the form? (ADT/Eclipse) Jul 01 09:13:56 for keytool, should i just give my name as organizational unit? Jul 01 09:15:58 guys Jul 01 09:16:36 I posted a questions to stackoverflow and it's getting downvoted.. mind telling me if it's that dumb of a question Jul 01 09:18:06 Just as a matter of interest, was the question why does the ADT suck so bad? Jul 01 09:18:44 I'm trying to get ADB working over WiFi. I can ping my device and I can see that the port is open. USB debugging is enabled and so is ADB over network, but adb just says it's unable to connect: https://clbin.com/2HNxF Jul 01 09:18:57 No idea what could be wrong Jul 01 09:19:01 haha no Jul 01 09:19:06 I love adt <3 Jul 01 09:19:25 just since the last update you know how old libraries need to update their tools version Jul 01 09:20:11 I was wondering if there was a way through gradle to force a build tools version on a library without having to fork an have your own repo of it Jul 01 09:20:36 MarsMarsMars; I'm sorry I cannot help you, I'm only a newbie. I find this stuff totally frustrating. Jul 01 09:21:47 lol Jul 01 09:21:49 me too Jul 01 09:22:06 i just want to hit the “make it work” button Jul 01 09:22:26 yeah!, a big design oversight. Jul 01 09:23:11 do i put my .keystore file right in the root of my project? Jul 01 09:23:30 Im currently reading a guide about AndEngine. The guy says one should call System.exit(0) in activities onDestroy because "some devices tends to keep your activity alive" Jul 01 09:23:32 Wherever you want, you just point Gradle to it. Jul 01 09:23:40 o.O Jul 01 09:23:47 danijoo: oh boy... Jul 01 09:24:06 hi guys Jul 01 09:24:06 ok, so if it’s in the same folder as gradlew.bat, it’ll find it without adding a path Jul 01 09:24:08 when pressing down the row in my listview is colored, how is this done? Jul 01 09:24:20 I guess I should search myself another tutorial .. :D Jul 01 09:24:25 is it the listSelector? Jul 01 09:24:34 is it possible to load different individual layouts for the different items inside an adapter? Jul 01 09:24:45 Sicp: yes Jul 01 09:25:03 Sicp: override getViewTypeCount() in your adapter Jul 01 09:25:04 etc Jul 01 09:25:07 if (position == 2) convertView = etc...? Jul 01 09:25:23 oh I see, just like that tutorial Jul 01 09:25:24 one sec Jul 01 09:26:07 https://www.captechconsulting.com/blog/matt-serone/android-expandablelistview-magic Jul 01 09:26:15 first block of code Jul 01 09:26:18 it's not the one you want Jul 01 09:26:22 you still want a listview Jul 01 09:26:32 me, yes, in one of the menus Jul 01 09:26:38 I alreayd have that, but for all the menu groups Jul 01 09:26:45 I want each menu to do something differenct Jul 01 09:26:46 -c Jul 01 09:26:55 some to not expand at all Jul 01 09:27:55 is android.view.View.OnClickListener obselite? Jul 01 09:28:38 BWestOz: no? Jul 01 09:28:59 just gotta know how to set the type before getting it Jul 01 09:29:00 ! Jul 01 09:29:23 what's Type to begin with Jul 01 09:31:17 android sdk tools update v23 Jul 01 09:31:47 sicp, you override getitemviewtype and return an int Jul 01 09:32:02 0, 1, ... Jul 01 09:32:03 If you guys need to create a new project, will you develop it for Android L or wait with it? Jul 01 09:32:21 yes but I dont know what they mean by view type, all I have for creating the drawer menu is an expandablelistview adapter that loads the same layouts for each of the items Jul 01 09:32:44 how is it going to know which one I want to load X for and one I want to load Y for Jul 01 09:32:58 isnt Type the Position? Jul 01 09:33:10 if you have a header it could be 0, another item could be 1, another could be 2. Depending on this, you inflate a particylar layout xml Jul 01 09:33:36 sicp: that's what getitemviewtype() is for Jul 01 09:33:53 you already have position inside getView Jul 01 09:33:57 item at position 10? -> type = 0. item at 11? type 1 Jul 01 09:34:09 this is dumb… what directory do i have to be in when i type gradle assembleRelease? Jul 01 09:34:12 sicp, but the system needs to know what to use for convertview Jul 01 09:34:19 exactly Jul 01 09:34:30 ok Ill try it Jul 01 09:34:30 sicp, you you have to link it to an int Jul 01 09:35:12 FrancescoV: there is no sense to develop *new* project for android l Jul 01 09:35:14 ultra-: If your app is in ./MyApp then ./gradlew :MyApp:aD Jul 01 09:35:39 Otherwise, if you're already in MyApp/, then just ./gradlew aD Jul 01 09:35:41 so it’s gradlew and not gradle, i see instructions for gradle Jul 01 09:35:58 gdrc: why not? Jul 01 09:36:00 You should use the gradle wrapper and probably already have it. Jul 01 09:36:22 FrancescoV: because you cover 1% of market share Jul 01 09:36:23 It makes your project a bit more standalone, as different projects might depend on different gradle versions. Jul 01 09:36:28 yeah i have gradlew in the root of my project folder Jul 01 09:36:55 gdrc: Yeah, he should wait until it's out, then start developing and finish 6 months after it's out! Jul 01 09:36:58 Oh wait... Jul 01 09:37:24 6 months will be fine Jul 01 09:37:28 Some users might appreciate having their apps follow the new design quickly. Jul 01 09:37:49 6 months where others already targetted L Jul 01 09:37:52 kakazza: some users means 1% like said before Jul 01 09:37:56 weird… asks for a password when i run it, run it with sudo and command not found Jul 01 09:38:22 oh, wait Jul 01 09:38:28 gdrc: 1% of early adopters, I'd rather have those (as this group will grow) than support the 16% on Gingerbread (a shrinking group). Jul 01 09:38:30 will it take long time to change project targeting api 19 to android L? Jul 01 09:39:25 FrancescoV: Depends, it shouldn't, but it might, depending on how your app looks like now. You can always drop support for L while you're going. Jul 01 09:39:54 kakazza: ok, thanks! Jul 01 09:42:00 anyone got RecyclerView working? Jul 01 09:42:03 I get java.lang.ClassNotFoundException: android.view.RecyclerView Jul 01 09:44:49 how do you specify it in gradle? Jul 01 09:45:08 woah BUILD SUCCESSFUL Jul 01 09:45:49 ultra-: new update? :D Jul 01 09:46:00 first release build period Jul 01 09:46:09 gdrc compile 'com.android.support:recyclerview-v7:+' in build.gradle Jul 01 09:46:17 dependencies section Jul 01 09:47:41 did you update the sdk tools to rev 23? Jul 01 09:47:54 Yes, it compiles fine Jul 01 09:49:07 do you use in your manifest? Jul 01 09:49:37 no, should I? Jul 01 09:50:50 what do you have in project's build.gradle? Jul 01 09:51:47 uh, whatever it made Jul 01 09:51:49 http://pastebin.com/raw.php?i=vXiEJjyX Jul 01 09:52:23 is there a way to disable the notification drop down? or can i only make it so you have to swipe twice? Jul 01 09:52:44 immersive mode on 4.4+ Jul 01 09:53:02 i want to support 4+ :/ Jul 01 09:54:31 if that was only in 4.0 that’d be awesome… this is what i wanted in the first place Jul 01 09:54:41 ultra-: API level or version? Jul 01 09:55:11 i have minSdkVersion at 14 and targetSdkVersion at 19 Jul 01 09:55:18 Sigh, this is frustrating Jul 01 09:56:01 MohammadAG: I agree, now I'm getting Failure [INSTALL_FAILED_OLDER_SDK] I can't run my app Jul 01 09:56:15 google should fix this shit Jul 01 09:56:21 this shouldn't even happen Jul 01 09:56:26 and it doesn't on other platforms Jul 01 09:57:44 I know very well Jul 01 10:01:24 'dependencies' cannot be applied to '(groovy.lang.Closure)' Jul 01 10:01:46 accidental copy/pase pls ignore it lol Jul 01 10:01:53 i wish i knew the answers to all these questions Jul 01 10:02:07 MohammadAG, ffs Jul 01 10:02:16 there's a reason why that is marked as developer preview and alpha Jul 01 10:02:30 RecycleView and other "support" projects DO NOT work on below L as of yet Jul 01 10:02:34 Mavrik yeah, cause this has never happened to me before Jul 01 10:02:40 I KNOW Jul 01 10:03:22 Mavrik: DO NOT but THEY SHOULD Jul 01 10:03:39 yes. Jul 01 10:03:44 and they will by the final release. Jul 01 10:03:50 I'm on Android L Jul 01 10:03:56 and they don't work there Jul 01 10:03:58 *sigh* Jul 01 10:04:10 I guess Google giving out a preview version of OS will prove to be a mistake. Jul 01 10:04:17 Mavrik it won't Jul 01 10:04:24 their IDE has thrown issues on stable releases Jul 01 10:04:30 Because people seem to be to dumb to comprehend the concept of pre-release testing versions. Jul 01 10:04:34 it's not like Eclipse has been rock solid for 5 years Jul 01 10:05:08 which IDE? Jul 01 10:05:13 AS had no stable release until now. Jul 01 10:05:24 both Eclipse and Android Studio are buggy Jul 01 10:05:31 IDEA works well. Jul 01 10:05:36 Eclipse is a broken POS. Jul 01 10:05:42 and what's the official IDE? Jul 01 10:05:42 Mavrik: Also Microsoft and Apple distribute pre-release version. stop defending google Jul 01 10:05:45 not IDEA Jul 01 10:06:02 Xcode and Xcode beta 6 work much better than both AS and Eclipse Jul 01 10:06:06 MohammadAG, define "official"? Jul 01 10:06:15 the one that you're told to get Jul 01 10:06:23 I shouldn't be looking for a better IDE Jul 01 10:06:23 IIRC that's still Eclipse + ADT Jul 01 10:06:33 [13:05:36] Eclipse is a broken POS. Jul 01 10:06:43 gdrc, uh. Jul 01 10:06:56 Mavrik: At IO they said that ADT will receive updates, but they recommend switching AS as most of their effort will flow into that direction. Jul 01 10:07:03 gdrc, it seems there's just less morons using those OSes. Jul 01 10:07:17 :-) Jul 01 10:07:24 kakazza, mhm, that's what they said on I/O 2013 already Jul 01 10:07:26 actually, the IDEs are just better Jul 01 10:07:31 kakazza, sadly AS is still in pre-release state Jul 01 10:07:40 even tho the latest beta looks rather fine Jul 01 10:07:42 I use AS in production, can't complain. Jul 01 10:07:58 We had most issues with Gradle, not so much AS itself Jul 01 10:08:07 I honestly can't imagine how big companies with big apps develop for Android Jul 01 10:08:21 it kinda justifies apps being shit Jul 01 10:08:23 MohammadAG: The answer is: "Just fine". Jul 01 10:08:28 MohammadAG, we're doing just fine Jul 01 10:08:40 kakazza: I also do. And I like it. But god. how is possibile users need to customize android sdk to make it working? it's ridiculous Jul 01 10:08:44 but we are using our brains not "I don't wanna use better tools because Google didn't tell me to" mindset. Jul 01 10:09:11 You're new to this ecosystem, if I were to switch to iOS right now I'd probably also complain. Jul 01 10:09:12 that's not my mindset Jul 01 10:09:38 my mindset is that the IDE shouldn't be getting in your way Jul 01 10:09:41 or the tools Jul 01 10:10:09 I'd recommed you use the full IDEA instead of AS Jul 01 10:10:13 I only know AFNetworking as an FOSS library, on Android I know shitloads and probably use 7-10 in every project (7 coming just from JakeWharton and the guys at Square alone), saving me _weeks_ of development time. Jul 01 10:10:28 AS is a crippled version of IDEA Jul 01 10:10:50 Except for Android Support, where it excells. Jul 01 10:10:53 honestly Jul 01 10:11:07 I'd rather have something similar Eclipse, without Eclipse Jul 01 10:11:12 if that's what IDEA is, I'd switch Jul 01 10:11:15 I really don't like gradle Jul 01 10:11:25 What does the build system have to do with it? Jul 01 10:11:37 kakazza I find the directory structure a mess Jul 01 10:11:42 IDEA also uses Gradle for Android, it just supports more languages and platforms, not just Android. Jul 01 10:11:50 src/ res/ worked fine, why did it have to be java/src now? Jul 01 10:12:09 It's src/java src/res src/assets Jul 01 10:12:14 kakazza: What in terms of Android support does AS have that has not flowed back into IDEA? Jul 01 10:12:26 so, what was wrong with src/ and res/? Jul 01 10:12:36 loke: Cloud integration afaik. Not sure if IDEA 14 EAP is on par. Jul 01 10:12:44 so once i generate “app-release.apk” i can just rename it to what i want? Jul 01 10:12:46 browsing java code was already a mess with all the subdirs Jul 01 10:13:04 couldn't you do that with Eclipse? Jul 01 10:13:11 kakazza: I have never bothered much with cloud anything :-) I'm using IDEA 14, so I can easily check. Exactly what feature "cloud" are you referring to? Jul 01 10:13:20 MohammadAG, the IDE generates all these folders for you, I'm not sure what you're complaining about. You hardly ever have to interact with it directly. Jul 01 10:14:17 kakazza I find it a step backwards in terms of browsing code Jul 01 10:14:19 hi i'm using Picasso Library, but with Picasso.with(this).load(url).into(iv); i dont view nothing in my app.. my files are: http://pastebin.com/2GHA4Htp and http://pastebin.com/8Z5TagVx some tips? Jul 01 10:14:21 thanks Jul 01 10:14:25 but that's my opinion Jul 01 10:14:42 Hi guys. Could you pls help me out with the listview item click? http://pastebin.com/tDrNipMr Jul 01 10:15:30 override onListItemClick(ListView l, View v, int position, long id) instead of directly setting a listener Jul 01 10:15:53 also why are you overriding onCreateView Jul 01 10:16:00 it's a ListFragment, it already does everything for you Jul 01 10:16:35 MohammadAG: Wait for the "Android" view, it will make things easier. And it's only one nesting level more, one that you don't see. And if you're manually opening files instead of jumping to them You're Doing It Wrong™ Jul 01 10:16:37 i'll do custom layout later Jul 01 10:17:02 On OS X it's Cmd+O and if I want to open MainActivity.java, I go Cmd+O, "MA", Enter, and I'm there. Jul 01 10:17:07 custom layout of what Jul 01 10:17:10 I don't "browse" my own apps. Jul 01 10:17:22 of listview Jul 01 10:17:40 loke: Not at my workstation right now. It's something like easily dropping in Google App Engine Support Jul 01 10:17:43 you inflate custom list items in the ListAdapter, not the ListFragment Jul 01 10:17:58 kakazza I guess I'm just pissed at RecyclerView not working Jul 01 10:17:59 And I think the New Project dialog is a bit better, but I guess that will be merged back to IDEA. Jul 01 10:18:12 kakazza: I've done that years ago. I'm pretty sure I used the GAppengine plugin for IDEA long before AS was even available :-) Jul 01 10:18:13 MohammadAG: Guess so, haven't tried that one yet. :) Jul 01 10:18:17 I want to switch to AS, Eclipse is painfully slow, even on an SSD Jul 01 10:18:31 not the items. listview won't be the only element of a layout Jul 01 10:18:32 MohammadAG: Just download the IDEA 14 EAP Jul 01 10:18:34 It's good Jul 01 10:18:44 loke: It's what the IntelliJ blog said uh... a year ago, so take it with a grain of salt. Jul 01 10:19:00 MohammadAG: Seriously. If slowness if the biggest complaint you have of Eclipse you haven't used it enough. It's bad on so many levels... Jul 01 10:19:01 Is there a better way to get this code working with the support library in a support fragment? ((LivepageActivity)getActivity()).getSupportActionBar().hide(); Jul 01 10:19:13 loke well, it leaks files for me Jul 01 10:19:16 I cannot get the support action bar method, unless I do a cast to the concrete activity Jul 01 10:19:22 Too many files open Jul 01 10:19:32 kakazza: Yeah, The gappengine plugin was third-party back then Jul 01 10:19:45 i keep reading “kazaa” Jul 01 10:19:56 platzhirsch: Is your Activity an ActionBarActivity? Jul 01 10:20:10 kakazza: indeed Jul 01 10:20:11 MohammadAG: Again, doesn't surprise me. The entire system is broken to the core. I should know, I have had the misfortune of writing Eclipse plugins. Jul 01 10:20:15 ultra-: Hell yeah, let's download some 128kbps Britney Spears songs! Jul 01 10:20:23 MohammadAG: Just don't use it Jul 01 10:20:41 remember, an IP is the same as a person Jul 01 10:20:48 loke for new projects, sure, for older ones, I'd rather use Eclipse than go through migration :D Jul 01 10:20:48 even if it’s grandma or someone stealing your wifi Jul 01 10:21:24 MohammadAG: It's worth it to go through that. Besides, IDEA has a pretty good automatic clonvertor from Eclipse. Jul 01 10:21:35 Try to just open the roject. Chances are it'll just work. Jul 01 10:21:39 britney_spears_baby_hit_me_one_more_time.mp3.exe Jul 01 10:22:20 loke, that'd be interesting Jul 01 10:22:23 * MohammadAG downloads IDEA Jul 01 10:22:52 MohammadAG: Download here: http://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP Jul 01 10:23:05 MohammadAG, thanks Jul 01 10:23:10 hi i'm using Picasso Library, but with Picasso.with(this).load(url).into(iv); i dont view nothing in my app.. my files are: http://pastebin.com/2GHA4Htp and http://pastebin.com/8Z5TagVx some tips? thanks Jul 01 10:23:33 platzhirsch: Ok, v4.Fragment returns a FragmentActivity, but only ActionBarActivity (which inherits from FragmentActivity) has getSupportActionBar() Jul 01 10:23:39 loke I'm guessing that doesn't support L correct? Jul 01 10:23:54 kakazza: ah, so the most generic way would be to cast it to ActionBarActivity Jul 01 10:23:58 You can probably cast to (ActionBarActivity) if you're sure that getActivity() will in fact return one. Jul 01 10:23:59 but that's cool Jul 01 10:24:10 also, should I go with the community edition? Jul 01 10:24:16 kakazza: thanks man, haven't thought about this one Jul 01 10:24:28 You're welcome Jul 01 10:26:19 Alfreda: Not entirely sure, but I don't think it works like that with wrap_content Jul 01 10:26:35 kakazza: why? Jul 01 10:26:36 I'm not sure how onMeasure for ImageView works, since you load it asynchronously. Jul 01 10:27:21 The ImageView is there, there's no content, so wrap_content will probably shrink it to 0x0 (just my guess, I might be completely off), then you load a new picture into it, but it probably doesn't re-measure. Jul 01 10:27:22 guys, what is OS do u use? Jul 01 10:27:47 Try setting it to 150x150dp to check if my guess is right. Jul 01 10:27:49 mac, windows, android, ios Jul 01 10:28:15 Same as ultra-, OS X and Android being the ones where I do most of my work. Jul 01 10:28:18 MIOS, too, but that’s a pretty specific OS :) Jul 01 10:29:13 so, if i’m using ./gradlew assembleRelease, do i still need jarsigner? Jul 01 10:29:23 not sure if these instructions apply since they don’t include anything about android studio Jul 01 10:29:29 kakazza: dont work Jul 01 10:29:30 :( Jul 01 10:30:15 Does logcat output anything? Jul 01 10:30:21 kakazza: to me? Jul 01 10:30:27 Yes Jul 01 10:30:47 i run it and after look logcat? Jul 01 10:31:00 Or while you're running it, yes. Jul 01 10:31:18 noting in particular on logcat Jul 01 10:31:29 It could be easy things like you forgot to the the Internet permission etc Jul 01 10:31:54 But you could verify that the ImageView is indeed visible? Try setting a placeholder (anything, really), that should display something. Jul 01 10:32:00 I am having a fragment that the user selects some options and there is a list item that when he clicks, I take him to another fragment (by replacing) that he chooses from. The problem now when the user press back the first fragment loses all the user choices. How can preserve the UI state fo the fragment that got replaced ? Jul 01 10:32:18 Just add .placeholder() with an icon or something as a parameter. Jul 01 10:32:29 kakazza: http://codepaste.net/6ow25j Jul 01 10:32:51 kakazza: where? Jul 01 10:33:13 MohammadAG: you can use IDEA to develop in L, yes Jul 01 10:33:17 In your Picasso call Jul 01 10:34:19 ok Jul 01 10:36:35 kakazza: Picasso.with(this).load(url).placeholder(R.drawable.ic_launcher).into(iv); Jul 01 10:36:46 i view only the placeholder now! Jul 01 10:36:55 but no the url Jul 01 10:37:19 You do have the Internet permission in your manifest? Jul 01 10:37:41 no :D Jul 01 10:37:48 how i do for to add this permission? Jul 01 10:38:06 Please refer to the official documents for this. Jul 01 10:38:19 Learning where to look will aid you in your process. Jul 01 10:38:26 internet permission? Jul 01 10:39:05 https://developer.android.com/training/basics/network-ops/connecting.html Jul 01 10:39:24 First paragraph. (You only need the .INTERNET permission, not the .ACCESS_NETWORK_STATE for now) Jul 01 10:40:24 should zipalign be a command recognized by terminal? Jul 01 10:40:44 kakazza: i have add in manifest Jul 01 10:40:54 but dont show me image still Jul 01 10:41:01 kakazza: wait Jul 01 10:41:06 it work correctly! Jul 01 10:42:27 kakazza: thankssss! Jul 01 10:44:06 do you guys use zipAlign = true for your release in build.gradle? Jul 01 10:49:36 is there any JSON to Object lib? Jul 01 10:49:59 or do I have to do that manually? Jul 01 10:50:14 ultra-: zipAlign is true by default for the release buildType Jul 01 10:50:23 ok, thank you Jul 01 10:50:30 http://tools.android.com/tech-docs/new-build-system/user-guide Ctrl+F zipAlign Jul 01 10:50:37 i was starting to think that’s the case because i get an name.apk and a name-unaligned.apk Jul 01 10:50:47 MohammadAG: GSON, Jackson,... Jul 01 10:51:15 GSON is by Google and backs many libraries, Jackson is faster supposedly, but I never measured for myself and the JSON I handle is very small. Jul 01 10:52:58 http://material-design.storage.googleapis.com/images/layout-metrics-keylines-keylines-spacing-mobile-01ba_large_mdpi.png Jul 01 10:53:18 How do I make the textview to have ... in the end of the line? Jul 01 10:53:44 (So the textview will take 1 line only and show in the end ..) Jul 01 10:54:49 yoavst, set number of lines to 1 Jul 01 10:54:55 yoavst, set single line to true Jul 01 10:55:01 yoavst, and set ellipsize to "end" Jul 01 10:55:07 (all in XML) Jul 01 10:55:19 thanks, forget the name of the ellipsize attr Jul 01 10:57:21 how do i target tablet only? i don’t want this to show up on the play store from a phone Jul 01 10:57:29 or at least, i’d like it to say tablet only Jul 01 10:59:55 ultra-, AndroidManifest.xml and set proper supported displays. Jul 01 11:00:07 ok, thanks Jul 01 11:00:23 so the play store app reads the display type of a phone and warns that it’s not supported? Jul 01 11:01:22 it won't even list it Jul 01 11:01:32 if you set proper flag, see documentation for AndroidManifest.xml Jul 01 11:01:52 yeah i found the supports-screens tag Jul 01 11:02:14 and instructions for it… too bad you can’t visit from a phone and have it list the app, but tell you it’s only for tablets Jul 01 11:03:29 guys, which type of service I can implement to loop (i need to submit some information to server), while app is running? Jul 01 11:03:43 Only when app is running Jul 01 11:05:10 woozly: You do it from a service. Look up AsyncService Jul 01 11:05:19 loke: thank you Jul 01 11:05:34 Sorry. AsyncTask Jul 01 11:05:42 ultra-, um, if the user will open a direct link to an app that's exactly what will happen Jul 01 11:05:53 excellent Jul 01 11:13:17 i know i can use getPackageManager().getInstalledPackages() to get a list of installed packages, is it possible to fetch only the ones that were downloaded from Play Store? Jul 01 11:28:05 is it recommended that i edit out the nav buttons for my app screenshot on the play store? Jul 01 11:28:43 I usually leave them in Jul 01 11:29:05 ok Jul 01 11:30:18 otherwise it might stretch or distort the image to fit an area Jul 01 11:30:55 anyone running android L? Jul 01 11:31:09 Mark Murphy Jul 01 11:33:23 hello Jul 01 11:33:30 i've got a quick question Jul 01 11:33:36 ? Jul 01 11:33:50 i've published my app on the play store, but i can't download it on my tablet, only my phone Jul 01 11:33:56 any way to remove this restriction? Jul 01 11:34:02 i know the aoo is able to run on my tablet Jul 01 11:34:04 app* Jul 01 11:36:11 DanielHolst: do you have in the manifest requirements for the telephony service? Jul 01 11:36:49 i do... thanks for pointing that out =D Jul 01 11:37:09 DanielHolst: add required:false Jul 01 11:37:29 ok, i'll try that Jul 01 11:44:27 can anybody help trace this crash http://pastebin.com/RtE1AnTM Jul 01 11:55:06 hey =D Jul 01 11:55:49 Anyone here mind telling me what is Android L and what is Android W ? Jul 01 11:56:03 It broke my entire workspace and IDE settings. Jul 01 11:56:19 Depends the isScanAlwaysAvailable method of the WifiManager from the device or other factors? Jul 01 11:57:31 napster: Android L is the preview of next android version Jul 01 11:57:35 Android W is for android wear Jul 01 11:57:50 hey everyone is it Possible to bring autodesk files onto android phone to be viewed in 3d? using a converter to opengl or webgl Jul 01 12:03:13 In this tutorial: http://developer.android.com/guide/topics/ui/layout/gridview.html#example Jul 01 12:03:25 there is gridview.setAdapter(new ImageAdapter(this)); Jul 01 12:03:37 but i have error on ImageAdapter Jul 01 12:03:54 ImageAdapter cannot be resolved to a type Jul 01 12:03:56 has anyone had a play with cardboard yet? Jul 01 12:06:27 Alfreda: Read the whole things. Jul 01 12:06:42 "The ImageAdapter is created in the step." Jul 01 12:06:49 +next Jul 01 12:09:03 i want your ideas on how to implement one functionality in my app Jul 01 12:11:11 when the user presses a button a table will begin to appear in the user screen from the top of the screen. it will strart from the bottom item of the table Jul 01 12:11:31 i want this to be done with animation Jul 01 12:14:46 i founded it Jul 01 12:15:17 what is a Context? Jul 01 12:15:50 I want to update for eclipse but got this: http://pastebin.com/UWawDCWL how can I fix this? Jul 01 12:17:05 uninstall all Jul 01 12:17:08 and reinstall all Jul 01 12:32:24 guys, which is easiest way to get current location? Jul 01 12:32:51 If I just do: mLocationManager.getLastKnownLocation() will it return it well? Jul 01 12:36:40 How can I wait for an asyncrounous event like getting permission to access a USB device? Jul 01 12:37:35 woozly, do it properly, not "the easiest way" Jul 01 12:37:47 no, getLastKnownLocation will return you last known location. Jul 01 12:38:38 but when I setup listener to LocationManager... I've got 'Searching GPS....' forever :/ Jul 01 12:43:27 wobble wobble Jul 01 12:43:32 wobble wobble wobble Jul 01 12:43:37 wobble bubble wobble Jul 01 12:43:40 MarsMarsMars: nudge nudge wink wink Jul 01 12:43:50 wopp woop wooooosshhhh Jul 01 12:44:05 :D Jul 01 12:44:19 :boogiedown: Jul 01 12:45:45 i want to disable my android alarm by an external signal through an app. (e.g. use a bluetooth signal to indicate my phone to stop the alarm). is there an easy service in the Android API to switch of Alarm? Just found AlarmManager which is not what i want I think Jul 01 12:46:24 woo! Jul 01 12:51:14 Foxandxss: Thanks Mate. Jul 01 12:54:39 moritzs, check AlarmClock API Jul 01 12:54:46 it seems that you have to signal to each app separately Jul 01 12:57:18 Mavrik, ok thanks i'll check that out Jul 01 13:12:44 anyone remember the name of that github project which makes content providers not be a PITA? Jul 01 13:24:31 Hi all, is it possible to get the created date of a file from external storage? Jul 01 13:25:21 I have a webview, and i have implemented my own WebViewClient. I have a website, which links to .doc files. These links are completely ignored, regardless of what shouldOverrideUrlLoading() returns. I want to either download or start another app when the user clicks these links - i dont want to just ignore them and fail silently Jul 01 13:32:53 Mavrik, AlarmClock doesn't seem to provide anything to stop an alarm clock. Maybe I'm blind Jul 01 13:33:40 FrancescoV: http://stackoverflow.com/questions/2389225/android-how-to-get-a-files-creation-date Jul 01 13:37:04 you can send a cancel request to a alarm clock i believe Jul 01 13:37:16 or u can make it only run once and then reschedule it to run again Jul 01 13:37:26 the alarm will give an ID back that u need to keeptrack of Jul 01 13:37:54 am i right? Jul 01 13:38:26 davidcorrado: thanks! Jul 01 13:50:21 Is there some dropin Switch class with support for > 2 options somewhere? Jul 01 13:54:07 ScheduledThreadPoolExecutor seems to be the right framework for letting my looping threads run, so I don't have to start them manually Jul 01 13:54:28 does it make sense to instantiate my own in the UI thread context (Activity) or is there one which I can piggyback? Jul 01 13:55:06 platzhirsch, I usually use a singleton Jul 01 13:55:21 Mavrik: so instantiate one and use in the whole application? Jul 01 13:55:34 mhm Jul 01 13:55:36 that's the point of it Jul 01 13:55:55 indeed, I was just wondering if this way it's the most efficient :) Jul 01 13:58:22 also interesting, #scheduleWithFixedDelay ... should I rather use this to update for instance a clock periodically instead of relying on Thread.sleep? Jul 01 13:58:58 only use alarm manager if it's something you need to execute while your app is not running Jul 01 13:59:30 platzhirsch, yes :) Jul 01 13:59:31 oh, thread pool, carry on Jul 01 13:59:49 platzhirsch, ThreadPools are usually noticably more efficient than creating threads manually and running them Jul 01 13:59:54 you can also use Handlers which are Android construct Jul 01 13:59:57 if it's a singular task, I just use handler and post delayed Jul 01 14:00:00 on HandlerThreads for fixed time execution Jul 01 14:00:03 mhm. Jul 01 14:00:45 good, this is better... cannot believe I launched threads primitively with new Thread(Runnable).start() Jul 01 14:04:00 Is Android Studio better than Eclipse/ADT? Jul 01 14:04:08 yea Jul 01 14:04:46 I think that's one of these things were we have mutual agreement :D Jul 01 14:05:17 Hello, I am trying to set up eclipse to work with android, I've installed the SDK but when I press "run" in the toolbar I don't see "android application" in the options. However if I right click my project I see it in the "run as" menu, and when I click it I see the application launch on my phone. Any idea what I'm doing wrong? Jul 01 14:05:23 I'm having such a hard time getting exlipse to work and I'm not sure whether it's because I'm not familiar or whether it's deprecated and I should give up and go to studio Jul 01 14:05:49 I see someone else is having issues as well... Jul 01 14:05:57 So I should just use android studio? Jul 01 14:06:00 yes Jul 01 14:06:09 Ok, good, I fucking hate eclipse. Jul 01 14:06:36 I won't run into any bad issues since it's in beta? That's my only worry right now. Jul 01 14:06:42 I've installed it 5 times. I've learned, you have to install HAXM to get an android virtual device that is usable... Jul 01 14:06:47 nope, the rest of us were using it in alpha Jul 01 14:06:55 ive had 0 issues so far Jul 01 14:06:55 time to upgrade android studioz :D Jul 01 14:07:01 Nice, thank you. Jul 01 14:07:06 no problem Jul 01 14:07:16 Didn't event know that it was in Preview/Alpha Jul 01 14:07:23 Eclipse owes me the last hour of my life back. Jul 01 14:07:24 was a bit suprised when they announced Beta Jul 01 14:09:23 What I don't get is that after I install (unzip) the Eclipse/ADT zip, I then have to run the Android SDK manager and install a whole bunch of other staff and the options for what I can install have changed every time I'v installed the bundle, which I've had to do because the dependencies have got screwed up Jul 01 14:10:39 I find it a bit annoying that Android Studio generates getmFoo() if the field name is mFoo Jul 01 14:10:56 I am not very fond of the mFoo convention, I just started using it because,... well... it's a convntion? Jul 01 14:11:41 yes it's a convention for class level variables Jul 01 14:11:54 oh great, an update message recommend to close windoiw and reopen Jul 01 14:12:48 zmack_: class level variables? That sounds like static, but you mean instance variables, too, right? Jul 01 14:12:53 yes Jul 01 14:12:57 alright Jul 01 14:13:11 honesly I dont use them for static variables Jul 01 14:13:22 bad wording on my part Jul 01 14:13:58 platzhirsch: http://source.android.com/source/code-style.html#follow-field-naming-conventions Jul 01 14:14:39 daivyk: ooooh, here we go. Thanks man Jul 01 14:14:57 np Jul 01 14:17:30 if you have problems with Eclipse, you'll have similar with android studio, it is a matter if knowledge of tools Jul 01 14:18:19 pfn, I figured that was probably the case. I'll try and just download the lastest bundle Jul 01 14:19:19 if you're clueless about tools, you will remain having problems, but regardless, it's better to move to android studio sooner than later Jul 01 14:22:58 pfn: Then do you know what my issue is? Jul 01 14:25:20 learn the tool Jul 01 14:35:48 Is there a way to set a dynamic classpath in subprojects dependant on a main project? Jul 01 14:36:56 We've been using a few foreign projects (like facebook or adjust) for a while now and everytime there's a update to android studio or gradle we get problems with the dependency class path and the build tool version Jul 01 14:37:33 it seems like there finally is a fix for the build tool version (buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION rather than a number), but we still have issues with the classpath Jul 01 14:37:42 classpath 'com.android.tools.build:gradle:0.12.+' Jul 01 14:41:18 Syzygy: We have the same problem... where can I find more info on that fix? Jul 01 14:42:10 we still have that issues Jul 01 14:42:29 so for now we fork the repos and change it in our fork. but that's fairly stupid. Jul 01 14:43:11 exactly that... hope they come up with a fix soon... we can't keep doing this for every update... Jul 01 14:45:01 maybe there's a way to use something similar to project.ANDROID_BUILD_TOOLS_VERSION, but even if there is, we're still at the mercy of the developers of those libraries. Jul 01 14:48:24 Do I need to reinstall HAXM if I install a newer version of the SDK? Jul 01 14:48:24 why are libraries specifying ANDROID_BUILD_TOOLS_VERSION Jul 01 14:50:02 Hi guys Jul 01 14:51:06 pfn, so a project that uses those libraries can specify their own build tool version Jul 01 14:51:19 they shouldn't... Jul 01 14:51:34 BWestOz, only if there's a newer version of haxm Jul 01 14:51:53 Thanks Jul 01 14:51:55 so you're saying if i'm using a different version of the build tools I should just go fuck myself? Jul 01 14:52:11 no, I'm saying that the build-tools version should be irrelevant for library projects Jul 01 14:52:35 unfortunately it isn't. we can't build if it differs from the main project. Jul 01 14:52:47 I've uploaded 5 screenshots of my app at my app's Google Play description. Once for phone, once for 7" tablet (at its resolution) and once for 10"tablet (at its resolution). But if I go to my app store app, these screenshots are showed three times (at different resolutions) instead of showing once. What should I do? (here is the app: http://goo.gl/DERnG4 ) Jul 01 14:53:07 Build an aar, depend on that Jul 01 14:53:16 pfn: So that's a no, thanks. Jul 01 14:53:18 ^^ SimonVT Jul 01 14:55:17 MarsMarsMars, would building an AAR work for you? Jul 01 14:55:38 Sepho; I've wondered why they tell you to give screenshots for phone and various tablet sizes then display them all at the same size. This is my app https://play.google.com/store/apps/details?id=com.wozindie.hungryhopper&hl=en Jul 01 14:56:34 So what reolution should I use? Jul 01 14:56:49 oh Jul 01 14:56:53 sorry, I got it Jul 01 14:57:10 thanks! Jul 01 14:57:16 SimonVT, to quote another dev "fuck that, no fucking way I gonna use static linking, this isn't the 90's anymore" Jul 01 14:57:19 his words, not mine Jul 01 14:57:52 aars aren't static linking... Jul 01 14:59:26 Seems like a waste of compile time and build.gradle troubles to depend on the entire source, rather than just a zip file with resources and pre-compiled sources Jul 01 14:59:39 pretty much Jul 01 14:59:46 then again, facebook doesn't publish aars yet Jul 01 15:02:22 Can just build your own Jul 01 15:02:43 when i use "run as application" does this run maven stuff like "copy-resources"? Jul 01 15:03:42 no Jul 01 15:03:53 ide builds are not build system builds Jul 01 15:04:01 make your ide run maven Jul 01 15:05:22 fancy42: in ADT, no. in IntelliJ/AndroidStudio, it uses the build system of the project (or at least it's easy to setup) Jul 01 15:06:11 thanks Jul 01 15:07:21 (it's probably my main gripe with eclipse, the fact that it embeds building inside in IMO incomprehensible ways) Jul 01 15:08:02 i have a lot of trouble with stuff sometimes running in eclipse, but not in terminal and vice versa Jul 01 15:08:43 or having to "maven update project" and "clean project" very often Jul 01 15:09:11 hmmm.. my platforms folder contains an android-20 and an android-L folder... shouldn't have been only android-L ? is it the same? Jul 01 15:09:30 how stable is android-L ? Jul 01 15:09:30 fancy42: it's probably the main reason I ended up converting some people to intellij at previous workplace - setting up intellij to do exactly the same build as one started from console or attaching debugger to setup similar to server-run task was easy Jul 01 15:09:55 gottaGO: android-20 is for the 4.4W (wearable SDK), android-L is the preview Jul 01 15:09:59 fancy42: not at all Jul 01 15:10:26 so i shouldn't run it on my private phone? :D Jul 01 15:10:38 i currently don't have a spare developer version Jul 01 15:11:12 p_l, yeah, I like that vs. eclipse Jul 01 15:11:19 I run all my intellij builds with sbt, it's wonderful Jul 01 15:12:10 intelllij == androidStudio? Jul 01 15:12:51 android studio is a limited intellij Jul 01 15:12:54 ffs, so much time wasted before I realised isSelected != isChecked D: Jul 01 15:15:19 Why do I have to run the SDK Manager so many times to install basic packages? What a dog of a system Jul 01 15:16:38 so many times? Jul 01 15:16:42 you run it once, refresh -> install Jul 01 15:16:43 done Jul 01 15:16:47 what are you talking about Jul 01 15:17:14 ^ Jul 01 15:17:21 I guess he's referring to having to update the sdk manager before being able to install some packages Jul 01 15:18:04 Well I ran it after I installed the latest ADK bundle, it prompted saying the Android SDK Manager had been updated so I'd need to close it and open it again. I did this and it started downloading all the packages again, it's now done that for the thrid time Jul 01 15:18:44 I have to install the x86 images Jul 01 15:20:15 I went thru and ticked them for the various API levels, then it gave me the restart message, I restarted and it indicated I had to install the x86 images again, then again Jul 01 15:21:58 I'm using adt-bundle-windows-x86_64-20140624 Jul 01 15:29:52 it tells you to restart adb Jul 01 15:29:54 which it does automatically Jul 01 15:29:58 it doesn't restart the sdk manager Jul 01 15:30:42 I have an AsyncTask for downloading images by url and I would like to cache them on disk. I found the DiskLruCache but the example uses it in an activity while the AsyncTask is an inner class. I was wondering if there's another way to provide a sort of global disk cacher without resorting to a service Jul 01 15:31:10 trying to avoid static objects, too, heard they're a bad idea on android Jul 01 15:33:48 The Android SDK Manager indicates that I have API 20 Intel x86 Atom System Image installed but when I try to create a Galaxy Nexus Virtual Device I get "No system Images Insatlled for this target" what can I do Jul 01 15:46:44 what's up people Jul 01 15:57:55 what maven phase should i use to copy an image to the res/drawable file to overwrite one that the android build copied there? Jul 01 16:00:40 I am writing an application which operates on the android device's 3G adapter (eg. rmnet0) and the adapter used for usb reverse tethering (eg. rndis0). But as it may not always be rmnet0 and rndis0 ( possibly rmnet1 and rndis1), how can I dynamically detect in my script which is my 3G adapter and which is the usb adapter (I am taking into consideration the worst case where multiple adaptors may be up simultaneously ) Jul 01 16:04:41 anyone have problems debugging on the Nexus 7? it disconnects as soon as it hits a break point Jul 01 16:05:37 fancy42: I do not recommend running preview on your daily driver, as they call it Jul 01 16:06:14 When I create an Android App in the ADT there's nothing in src and nothing in res/layout. Is that how it's supposed to be now? Jul 01 16:07:37 Prevously I'd see MainActivity in src Jul 01 16:09:11 if I do packageManager.queryIntentActivities(intent, 0); Jul 01 16:09:11 and my own app does offer that specific intent the result will have a size of at least one right? Jul 01 16:10:57 any idea why this causes the layout to grow on the nexus 4, but not on the nexus 7? the click listener is definitely being hit (see the Log.d line) http://pastebin.com/NvWhTiwj Jul 01 16:11:47 Hello Jul 01 16:11:56 Friends. Help me :) Jul 01 16:12:05 I use fragments in my Activity Jul 01 16:12:13 with backstack Jul 01 16:13:04 If opened fragment B ( in stack A->B ) and I rotate device, fragment A cover fragment B Jul 01 16:13:11 Bwestoz if you created new android project and untick create activity then yes it should be empty Jul 01 16:13:27 I created a blank activity Jul 01 16:13:49 I know about saveState and etc. But not understant how save fragment stack Jul 01 16:13:55 I'm trying to create a hello world app as I have done previously, during one of the rare instatnces when the IDE worked Jul 01 16:14:05 but you need to have a tick on create activity Jul 01 16:14:11 yes Jul 01 16:14:24 Or why fragment A shows on fragment B Jul 01 16:15:19 ahh, it was because I wasn't defining an expanded_height/width in values-600dp, only values-320dp, and it just so happened that the expanded width I was using in 320dp was the starting width of the map in 600dp. Jul 01 16:15:20 rathodvikas10; thanks for responding. I'll try again Jul 01 16:16:22 BWestOz does it ask you to enter activity name and other stuff at the final step Jul 01 16:16:39 One of the things that's changed is it now has a default activity is Android TV Activity Jul 01 16:16:49 So I'll try leaving it as that Jul 01 16:17:40 Wow. Backstack saves before pause/rotate? Jul 01 16:20:18 rathodvikas10; it has a window with a checkbox "Create Activity" and a bunch of activity types to choose from. One of them is "Blank Activity" which in previous versions has created a hello world. In this one it doesn't create anything Jul 01 16:21:46 well that sad, it must create Activity Jul 01 16:21:54 Ah! "Empty Activity" Seems to be equivalent of Blank Activity Jul 01 16:22:04 in prevous versions Jul 01 16:23:21 Hoorah, I've got a hello world to work with HAXM in Virtual Device, ridiculously difficult Jul 01 16:23:36 good Jul 01 16:23:54 any android expert here Jul 01 16:24:06 Thanks Jul 01 16:24:14 np Jul 01 16:24:26 i'm copying resources from another folder to the bin/crunch/res folder in the process-resources phase. still .apk packs the wrong images. what may i have done wrong? Jul 01 16:24:48 It's a miracle there's any Android Apps out there if you have to use this thing to develop them Jul 01 16:25:28 you really suck Jul 01 16:25:31 that's why this is so difficult Jul 01 16:25:49 No fun when he already left Jul 01 16:27:14 What does L mean? :s Jul 01 16:27:53 lollipop Jul 01 16:28:39 hi any one knows any code generator tools Jul 01 16:31:26 Ty rathodvikas10 Jul 01 16:34:04 np Jul 01 16:38:52 hi Jul 01 16:40:33 was it actually said it will be lollipop? ;> Jul 01 16:40:38 I am having SecurityException inside my application when starting activity, because extra data in my intent is too big Jul 01 16:40:43 no Jul 01 16:40:58 how should I pass class instance to next activity? Jul 01 16:41:01 then I'd wait till official release to say what it will mean ;) Jul 01 16:41:07 L for love Jul 01 16:41:36 SimonVT: well, if they keep the naming scheme, we should check what snacks are available in mountain view campus that start with "L"... Jul 01 16:41:46 (desserts, specifically) Jul 01 16:42:46 packageManager.queryIntentActivities(intent, 0); this call gives me a list of all apps/activities that would accept the action of the intent, right? Jul 01 16:43:05 so is there a way I can execute the intent for each activity that accepts it? Jul 01 16:45:28 That sounds horrible.. What if it returns 30 activities, you want it to start all of them? Jul 01 16:46:08 yes. Jul 01 16:46:50 Wow. Jul 01 16:47:16 (the intent is supposed work with apps by us) Jul 01 16:47:58 specificially I'm trying to write a master/slave system for shared data access where any one app could be the master by itself. Jul 01 16:48:34 I'm not sure the user would expect multiple apps to be opened when clicking something Jul 01 16:49:14 I guess that's not what I want either, I thought I could access that in the background Jul 01 16:49:31 how do people generally handle database access over multiple activities? just use a singleton factory? Jul 01 16:49:50 If you just need stuff to happen in the background, use services Jul 01 16:50:03 yeah, I guess I'll need a content provider. Jul 01 16:51:19 any one have used acceleo Jul 01 16:55:15 has anyone here done any android animation work? Jul 01 16:58:32 mattblang: do you have a question? Jul 01 17:00:22 DallasG I think I figured it out. Trying to change the size of a layout with an animation. Wanted to slow it down, just saw setDuration Jul 01 17:00:35 sounds right Jul 01 17:01:36 When my screen rotate, my app loses state :( Jul 01 17:02:21 Sooo, have any of you guys had issues building existing projects using Android Studio 0.8.1? Jul 01 17:04:34 I'm not using any of the things available in the L-preview, just trying to build a project I had around already. Jul 01 17:04:47 I'm really confused about Context and the SQLiteOpenHelper class, can't seem to find a good explination Jul 01 17:06:03 does it reuse the current open connection when you pass it a context from an activity? Jul 01 17:06:36 is it something to do with how it serialises multiple access on the same open connection? I'm just really confused Jul 01 17:07:43 there is no "connection" to the DB Jul 01 17:07:47 you simply get an open .db file Jul 01 17:09:17 sure, but what does the context do Jul 01 17:09:56 I'm looking at the notesDbAdapter class in the sdk example Jul 01 17:10:17 context does what it does for everything else Jul 01 17:10:23 describes your app environment. Jul 01 17:11:50 obviously thread pool executor gives a framework to schedule the task, but how would you kill them? Jul 01 17:11:59 interrupt them? Jul 01 17:12:39 ah, #remove? :) Jul 01 17:13:32 platzhirsch, kill what? Jul 01 17:13:59 Mavrik: my task I schedule on the thread pool executor with scheduleWithFixedDelay Jul 01 17:14:31 Hello guys starting my first project where i wantt to start working with fragments here is my "navigation map" http://i59.tinypic.com/s5xp4i.png can you suggest me where should i use fragments and where activity ? Jul 01 17:14:56 platzhirsch, and what are you trying to kill? Jul 01 17:15:10 usually you don't really have to stop the executors Jul 01 17:15:17 Mavrik: my task which continuously increments my clock counter Jul 01 17:15:28 yeah, that's why I want to just remove the task again and not shut down the whole executor Jul 01 17:15:58 highcup, just change your gradle.build file or whatever to use buildtools 20 instead of 19.0.1 maybe Jul 01 17:16:04 oh I see, its me not being used to java, static classes are handled a bit differently to c# Jul 01 17:17:10 platzhirsch, .schedule returns ScheduledFuture which can be canceled. Jul 01 17:17:30 but I guess Handler on a HandlerThread would be probably a better choice for you sicne that one has cancelation API Jul 01 17:18:32 Mavrik: semantic-wise it's not so much about canceling the task again, but just preventing it from being executed again, since it's executed periodically Jul 01 17:18:54 well you can just set a flag :) Jul 01 17:19:08 Thanks smallfoot-, it looks like telling it to use these dependencies: https://gist.github.com/anonymous/b244e028e5df4389b853 and using buildToolsVersion: 19.1.0 worked. I also followed what this guy said on solution 2: http://stackoverflow.com/questions/24438170/manifest-merger-failed-uses-sdkminsdkversion-14#answer-24452251 Jul 01 17:20:11 So, limiting the dependencies to 20 like you said, rather than the latest. I saw some error reports online that talked about this sort of thing, but they didn't have working solutions, guess it might be a bug with the beta of AS. Jul 01 17:21:29 Mavrik: yeah, that's how I used to do it. The future cancelation works just fine Jul 01 17:21:42 thanks Jul 01 17:22:03 hello Jul 01 17:22:14 do you offer help here? Jul 01 17:22:58 highcup, I see. I build everything with buildtools 20 now. Also Android Studio can find issues and autofix them for you in many cases Jul 01 17:24:46 s1k3s: possibly... Jul 01 17:25:31 eclipse doesn't create activity.xml files Jul 01 17:25:46 when I create a new app or when I want to add new activities Jul 01 17:26:35 whats an effective method to store a password in my app? using shared prefs saves the info in plaintext to the phone (/data/data/appname/sharedpreferences.xml) Jul 01 17:26:54 Jesperhead, usually you don't store passwords at all Jul 01 17:26:58 what's your use-case? Jul 01 17:27:07 Jesperhead, if you must, use the AccountManager APIs Jul 01 17:27:08 Mavrik: I agree, I don't like it, but my bosses want it. Jul 01 17:27:27 Jesperhead, usually you do it so when user logs in, you just get an auth token which you store Jul 01 17:27:31 and never keep passwords around Jul 01 17:27:51 Jesperhead, also, Android 4.3+ has a HW-backed crypto API which can help in securing the passwords Jul 01 17:28:28 Mavrik: thanks I'll bring the auth token up. Quickest solution will probably be accountmanager apis. Appreciate the help. Jul 01 17:33:15 does anybody know how the overlayResourcesDirectory configuration of the android-maven-plugin works? Jul 01 17:33:24 should I use android studio rather than eclipse? Jul 01 17:33:43 i prefer android sutdio Jul 01 17:33:54 but that's juts me ^ Jul 01 17:34:13 eclipse is bugged for me Jul 01 17:34:14 :( Jul 01 17:34:24 doesnt create activity xmls Jul 01 17:36:13 does Android Studio come with everything needed to develop? Jul 01 17:36:18 yes Jul 01 17:36:23 it works out of the box Jul 01 17:36:29 you ofc need java Jul 01 17:36:48 yeah not quite "out of the box" but setup was muuuuch easier than eclipse Jul 01 17:37:11 ok i'll give it a try Jul 01 17:39:14 so I can delete this adt-bundle-whatever that contains sdk and eclipse, right? Jul 01 17:39:41 yes Jul 01 17:39:44 i would assume so Jul 01 17:39:59 adt-bundle is ADT (Eclipse-branded android ide) Jul 01 17:40:15 Aw, L is not available for the Nexus 4 Jul 01 17:40:22 and Android Studio is android-branded IDEA ide Jul 01 17:40:24 Meh, an emulator will have to do Jul 01 17:40:43 Hi all, I am trying to shift my bulk standard list to one that will group people based on their first names (similar to the people app). Would looking in the direction of getViewType be right? Jul 01 17:41:11 jjbrunton, there are samples for that in the sdk samples Jul 01 17:41:16 Oh really? Jul 01 17:41:19 jjbrunton, check the API demo app Jul 01 17:41:19 yes Jul 01 17:41:34 We are talking listview sections right? Jul 01 17:42:02 yeah Jul 01 17:42:08 Ah sweet Jul 01 17:42:26 in the API Demo app, go under "UI" and then under "Lists" Jul 01 17:42:39 wish i'd be able to use jquery/html/css for android :sigh: Jul 01 17:43:09 Cheers guys Jul 01 17:52:12 hi folks, i'm having trouble linking an NDK-built library into a project built with Gradle. is this unsupported? Should the jni folder be somewhere other than project root? Jul 01 17:52:19 s1k3s, use phonegap if your heart is set on it Jul 01 17:52:22 but that's dumb Jul 01 17:52:34 i did Jul 01 17:52:46 its nice but doesn't even get close to a real app Jul 01 17:55:58 s1k3s, you can. Just embed a WebView in your app then do all jQuery/HTML/CSS inside there. Also look at jQuery Mobile and Ratchet Jul 01 17:56:50 I would like to make storage class that stores heavy objects between activities. Should I use Singleton or static class? Jul 01 17:57:18 s1k3s, in Firefox OS, you code apps in HTML, CSS, JavaScript :) Jul 01 17:57:29 s1k3s, in Firefox the web is the native language Jul 01 17:57:42 smallfoot-, sadly no sane people uses firefox os Jul 01 17:58:11 smallfoot-, I tried those things but the feeling & user experience is bad Jul 01 17:58:31 a phone is not able to process web like a computer Jul 01 17:58:32 yet Jul 01 17:58:34 s1k3s, its used on real-world devices in Latin America. I tried it in an emulator, it still needs some work, but the development tools integrated perfectly, you used Firefox and its built-in developer console to live-update your mobile apps, it was cool Jul 01 17:59:24 s1k3s, yeah the UI could need some work. But imagine some Firefox OS apps written in Google's Polymer Jul 01 17:59:45 smallfoot-, let me see what polymer is Jul 01 18:00:01 s1k3s, http://www.polymer-project.org/ Jul 01 18:00:20 googles web app framework Jul 01 18:00:46 i have to leave, but would anybody mind checking out my SO question? http://stackoverflow.com/questions/24516569/usage-of-android-maven-plugin-resourceoverlaydirectory-configuration Jul 01 18:00:46 thanks Jul 01 18:01:28 smallfoot-: Which API version did you think the section list was in? I have grabbed android-18 but it only has CustomChoiceList Jul 01 18:01:52 smallfoot- oh that's really cool Jul 01 18:02:02 I am developing music app. Are there any sound engines on Android or should I just use MediaPlayer? Jul 01 18:02:52 I wonder if Google will release anything compatible with Java for material design Jul 01 18:03:48 yacek19, feel free to write an xmms2 client instead! ;) Jul 01 18:04:21 Zharf: I am far too stupid :) Jul 01 18:04:30 pft Jul 01 18:06:44 Hi, so I tried to add the new Material theme to my app, but even when I add it to the "values-v21" it crashes. No stacktrace, nothing. Any help? Jul 01 18:06:55 jjbrunton, I only looked in android-19, but I think its very old and been there a long time, so it should be in 18 and earlier Jul 01 18:08:02 Well shit, my logger was just actiing up on me... Jul 01 18:08:24 hey guys Jul 01 18:08:37 on this kit kat device it seems that i can't access the installed apk's Jul 01 18:08:40 is that normal? Jul 01 18:08:48 if so, is there a permission i can obtain to read them? Jul 01 18:08:59 if not, how do all the antivirus apps work then? Jul 01 18:09:51 jjbrunton, might be here https://code.google.com/p/android-source-browsing/source/browse/samples/ApiDemos/src/com/example/android/apis/view/?repo=platform--development&r=888ac28d79e6bcba43b200bc3d9ed971e0516c2b Jul 01 18:10:29 lagann, maybe with the PackageManager class Jul 01 18:10:32 Oh that's a lot of Listx.java :P Jul 01 18:10:45 lagann, http://developer.android.com/reference/android/content/pm/PackageManager.html Jul 01 18:10:48 It's weird that I don't have it in sdk\samples\android-19 Jul 01 18:11:08 jjbrunton, yes and list1.java is very simple normal list, then it gets more complicated with more features, some of them have what you want, i tihnk Jul 01 18:11:19 jjbrunton, i think its in sdk\samples\android-19\legacy\ Jul 01 18:12:08 anyone used L's makeSceneTransitionAnimation? Jul 01 18:15:58 Rendering Problems No Android SDK found. Please configure an Android SDK. :( Jul 01 18:21:29 s1k3s, download the Android SDK from the SDK Manager, and the x86 image, I suggest 4.4.2 (API 19) Jul 01 18:22:00 smallfoot- I checked and it has a sdk folder and already pointing to it Jul 01 18:22:13 hmm weir Jul 01 18:22:14 weird Jul 01 18:22:37 maybe your gradle build config is pointing to wrong API Jul 01 18:23:29 seems about right: sdk.dir=C\:\\Program Files\\AndroidStudio\\sdk Jul 01 18:23:30 check your build.gradle file, and make sure compileSdkVersion is set to same as the SDK you downloaded, e.g. 19 Jul 01 18:37:20 Hey can anyone help me out please? I am tryin to add a button at the end of listview, with addFooterView, but i get an exception can't cast FrameLayout to AbsListView. Here's the code http://pastebin.com/G37ePR3v Jul 01 18:41:31 justANickname, maybe its possible to have the