**** BEGIN LOGGING AT Thu Apr 24 02:59:58 2014 Apr 24 03:05:58 alex_PP: i tried this, and it isn't crashing anymore: intent.putParcelableArrayListExtra("myList", (ArrayList) myList); Apr 24 03:06:08 so casting it works fine i guess... Apr 24 03:10:19 Mantazer, are the objects within your ArrayList objects where the class implements Parcelable? Apr 24 03:10:37 Have anyone here use beanFactory from Spring in Android project? or are it not possible? Apr 24 03:10:44 no, these objects come from google app engine, and that backend is written in python Apr 24 03:10:53 Anthaas: it returns a List Apr 24 03:11:08 Of any specific type? Apr 24 03:11:21 Oh wait you said there is no java implementation? Apr 24 03:11:43 Anthaas: It returns a List of CustomObjects Apr 24 03:11:54 Ahh there is a Java implementation? Apr 24 03:12:19 Anthaas: sorry about that Apr 24 03:12:22 disconnected. Apr 24 03:12:26 No worries Apr 24 03:12:28 Ahh there is a Java implementation? Apr 24 03:12:48 Anthaas: Yes, I generated a client library thats written in java Apr 24 03:12:55 but the backend itself is written in python Apr 24 03:13:04 Cool - Im assuming you have access to the source code for CustomObject ? Apr 24 03:13:23 when you say source, do you mean the python source? Apr 24 03:13:26 Java Apr 24 03:13:34 i think i do yes Apr 24 03:13:38 within the library right> Apr 24 03:13:39 ? Apr 24 03:13:47 Check the code for "CustomObject" and see if it implements Parcelable Apr 24 03:14:07 i.e public/private/protected/default class CustomObject implements Parcelable Apr 24 03:14:22 public final class CustomObject extends com.google.api.client.json.GenericJson { Apr 24 03:14:27 Ahhh Apr 24 03:14:38 add "implements Parcelable" Apr 24 03:14:43 and add the code necessary for that Apr 24 03:15:03 and within your intent, change the "ArrayList" cast to "ArrayList" Apr 24 03:15:35 when i implement parcelable, do i have to implement its methods as well? Apr 24 03:15:50 Yes, but before you do that Apr 24 03:15:56 Might I ask what you are doing with the objects/intent? Apr 24 03:16:19 Anthaas: sure, let me explain Apr 24 03:16:25 I only need it brief. Apr 24 03:16:33 i.e. are you passing it to another activity to display its contents? Apr 24 03:16:37 through a service? Apr 24 03:16:37 yes! Apr 24 03:16:39 ahh ok Apr 24 03:16:41 yes! Apr 24 03:16:42 another activity? Apr 24 03:16:55 or service? Apr 24 03:17:37 so im making the request to the api via a service. and then im using a bundle to send the response (which is a list) to another activity Apr 24 03:17:47 Ahhh ok, how big will this list be? Apr 24 03:17:50 roughly? Apr 24 03:18:13 umm Apr 24 03:18:48 one sec Apr 24 03:18:56 Only need a rough number, big or small? Apr 24 03:18:58 :-) Apr 24 03:19:59 around 100+ elements Apr 24 03:20:04 Ok Apr 24 03:20:09 Go with my previous suggestion. Apr 24 03:20:19 make your class "implements Parcelable" Apr 24 03:20:26 and yes, implement the unimplemented functions. Apr 24 03:20:35 and then change the cast to ArrayList Apr 24 03:20:56 ok, i viewed that code within the libs folder, and its read only, it shouldnt be a problem editing it manually right? Apr 24 03:21:08 Oh hang on. Its not your code? Apr 24 03:21:42 Anthaas: no, its code that I generated from the backend api Apr 24 03:21:51 Are you not reading the JSON and parsing it into your own objects? Apr 24 03:21:51 its a client library :) Apr 24 03:22:10 no, the library is making objects for me Apr 24 03:22:15 im using google endpoints Apr 24 03:22:23 i think? Apr 24 03:22:28 or am i mistaken Apr 24 03:22:38 It might just me being picky or whatever, and someone else can feel free to step in here, but I didn't like the look of casting your array list to hold Parcelable elements rather than CustomObject elements Apr 24 03:23:08 Anthaas: yea, i didnt really feel comfortable doing that either Apr 24 03:23:13 is there a better way? Apr 24 03:23:32 Do you parse the JSON at any point? Apr 24 03:23:47 Oh wait, thats what that class does for you Apr 24 03:24:17 CustomObjectList response = service.user().newUser(uID).execute(); CustomObjects = response.getItems(); Apr 24 03:24:37 where CustomObjects is a list of CustomObjects Apr 24 03:25:47 Hmmm Apr 24 03:31:42 Sorry mate, I cant think. Its half 4 in the morning here haha Apr 24 03:31:54 Google about - hopefully someone else here might be able to offer a suggestion. Apr 24 03:33:08 Anthaas: k thanks! I appreciate all your help Apr 24 03:33:19 I might try and serialize data Apr 24 03:33:28 Anthaas: get some rest mate Apr 24 03:35:07 I was thinking about serializable, but you don't really want to change the interface of the CustomObject if it is generated for you Apr 24 03:35:19 Also, parcelable is a lot faster than serializable Apr 24 03:35:30 Which is why with a list as big as yours I didnt suggest serializable. Apr 24 03:36:01 Will do, thanks mantazer: Apr 24 03:36:12 Anthaas: ok gotchya Apr 24 03:36:18 goodnight Apr 24 03:36:22 Night! Apr 24 03:44:13 anyone know about spannablestring with foregroundcolorspan? Apr 24 03:45:22 is it possible to create patch between two branches in intellij / android studio ? Apr 24 03:52:46 Hey, when adding a paid version app, do I as the owner need to buy it too ? Apr 24 03:52:56 If I want to download it Apr 24 03:54:48 Yes Apr 24 03:55:05 gordon_, do it using your scm tool Apr 24 03:59:34 thanks pfn Apr 24 03:59:57 hey you mfs Apr 24 04:00:09 heh Apr 24 04:00:16 g00s oi Apr 24 04:00:21 oi :) Apr 24 04:00:50 tomorrow I get to fuck with augmented reality in google glass tomorrow... in an application I actually think google glass makes a lot of sense Apr 24 04:01:30 yes Apr 24 04:01:40 glasshole, cept I dont wear it out of the office =) Apr 24 04:01:53 ronny_fro_ new oidroid u3 http://hardkernel.com/main/products/prdt_info.php?g_code=G138733896281 Apr 24 04:02:06 son of a bitch Apr 24 04:02:11 didn't you say these guys are a hack though ? Apr 24 04:02:12 oh the u3 is 4412 Apr 24 04:02:15 nope Apr 24 04:02:17 they are cool Apr 24 04:02:40 we basically take something kinda like that Apr 24 04:02:51 reference implementation and make heavy engineering changes Apr 24 04:03:00 and then manufacture the crap out of them Apr 24 04:03:08 these guys wanted orders of lik 100k Apr 24 04:03:11 which is a fair requirement Apr 24 04:03:18 we just werent ready for those kinda numbers Apr 24 04:04:22 I played with some cutting edge ti boards that did some impression shit Apr 24 04:04:26 impressive shit Apr 24 04:06:12 ronny_fro_ catch mikedg? Apr 24 04:06:26 I think it was jacinto5 stuff Apr 24 04:06:29 mikedg? Apr 24 04:06:57 resident glasshole Apr 24 04:07:31 ronny_fro_ you asked this morning if anyone was doing glass. mikedg does a bit Apr 24 04:08:00 oh ok Apr 24 04:08:05 I will say Apr 24 04:08:06 i guess the latest glass update bricks some of the units Apr 24 04:08:27 google seems like they are all over the fucking place with the software Apr 24 04:08:41 my units upgraded to xe16.1 without incident Apr 24 04:22:58 Hi! Is there a way to have ormlite send a message to an object after having loaded it? (Like -awakeFromNib in Cocoa) Apr 24 04:31:24 maybe rxjava is something you might like, pjb ... Apr 24 04:43:38 I need to pop the backstack when the screen goes dark... how do I do that? Or I should not even think about that... Apr 24 04:44:17 Yeah, I won't... :) Apr 24 04:53:08 how do i find out what's making my app run slow? i'm getting skipped frames and it thinks something's running in my ui thread, but i'm pretty sure i'm running it in the background Apr 24 04:53:35 easy traceview Apr 24 05:54:19 how do i find out why my app isn't compatible (via play store download) with a particular device? Apr 24 05:56:32 You could always read the requirements. Apr 24 05:56:39 The min version supported. Apr 24 05:57:39 well, i don't have his device and he says that it just tells him it' snot supported. Although I think I'v ejust figured out he's too old of android...but for future reference, is there any way to figure out what google rejects a device for? Apr 24 06:00:19 do you have native code ? Apr 24 06:00:21 in ap Apr 24 06:00:23 *app Apr 24 06:04:24 no Apr 24 07:00:54 I have a user complaining that text in their Motorola Droid Razr phone is too big. I'm using dp to set text size to make sure the user cannot change it. Anyone ever hear of this issue? Apr 24 07:01:49 well you should use sp firstly Apr 24 07:02:48 I was thinking of switching to sp as well, but then that may allow other users who have set their font too large to start complaining as well Apr 24 07:05:22 Hey guys! Can anyone help me avoid this NetworkOnMainThreadException? I'm not sure how to take it out the main thread :/ Apr 24 07:06:07 use asynctask: http://www.vogella.com/tutorials/AndroidBackgroundProcessing/article.html Apr 24 07:06:51 imnotcreative, but sp allows the user to make the text smaller and not complain Apr 24 07:07:05 good point Apr 24 07:07:43 i doubt a user would make their text bigger and then write to every single app's creator and complain about the text size Apr 24 07:07:59 but you never know Apr 24 07:09:38 Thanks @imnotcreative , that's a much better explanation than the one I found. I'll give it a read Apr 24 07:10:00 true, never know. I'll try using sp instead of dp and see how it goes. thanks for the suggestions! Apr 24 07:10:14 imnotcreative you could run it on the genymotion droid razr image to test Apr 24 07:15:09 thanks g00s. looking into that. don't want to buy a hot razr off craigslist anyways Apr 24 07:16:35 g00s: sup? Apr 24 07:17:05 hey thepoosh .not much. you ? Apr 24 07:17:10 ok Apr 24 07:17:25 google told us that we need to get rid of our READ_LOGS permission Apr 24 07:17:36 so I'm looking into crash reporting libraries Apr 24 07:17:41 that don't use that Apr 24 07:17:59 have you heard of crashlytics? Apr 24 07:20:08 yeah, i signed up with them a while back Apr 24 07:20:15 have you tried it? Apr 24 07:20:21 they pestered me about not using the invite yet Apr 24 07:20:40 so no install? Apr 24 07:20:43 no, haven't yet. need to know more about the privacy implications since they are owned by twitter Apr 24 07:21:18 oh Apr 24 07:21:23 that might be an issue Apr 24 07:21:31 I'll get our CTO to call them Apr 24 07:21:53 I hope the buzz we're having will make things move faster Apr 24 07:22:13 there should be a privacy policy somewhere - i just haven't read it yet Apr 24 07:22:19 this is the last article written about us: http://gigaom.com/2014/04/17/after-big-payday-for-whatsapp-more-app-makers-resort-to-growth-hacking/ Apr 24 07:22:29 it ain't that good Apr 24 07:22:47 thepoosh you on whatsapp ? Apr 24 07:22:54 Glide Apr 24 07:22:58 go down just a bit Apr 24 07:23:22 I wish, I have stock options, if we go the same route as whatsapp I'll be a millionair Apr 24 07:26:10 g00s: our founder's reaction to the graph there was: "the graph is interesting, the Y axis is stating that we send about 10x invites per new user as whatsapp does. this is not a shock, our android app sends about 10x as many invites as our iOS app, it makes sense that our iOS app gets about as many invites as whatsapp gets on a per user basis" Apr 24 07:36:54 g00s: did I miss anything? Apr 24 07:37:16 waaaaaaaat Apr 24 07:38:00 "our android app sends about 10x as many invites as our iOS app, it makes sense that our iOS app gets about as many invites as whatsapp gets on a per user basis" Apr 24 07:38:07 literary landmark Apr 24 07:39:41 what do you do, thepoosh? Apr 24 07:39:52 Sicp: Android Apr 24 07:39:58 with whom I mean Apr 24 07:40:01 mostly networking and db Apr 24 07:40:04 glide Apr 24 07:40:47 very cool Apr 24 07:40:50 yep Apr 24 07:40:52 thanks Apr 24 07:43:30 thepoosh "FIX for T-MOBILE USERS!!!!!" what bug did tmobile inflict ? Apr 24 07:52:35 they had some issues with IPv6 Apr 24 07:53:03 that caused black videos because it had a proxy on our video servers Apr 24 07:59:20 Hey, when dealing with Asynctracks, what is the use of Void/params in this line: protected char doInBackground(Void... params) { Apr 24 08:01:15 this is what you can optionally pass to the AsyncTask as you are about to execute it Apr 24 08:01:18 like a URL maybe Apr 24 08:01:37 is there a performance penalty to the observer pattern? Apr 24 08:02:35 @Sicp Thanks, so Void in this case because it's not being passed anything, but what is params? Apr 24 08:03:10 the name of the parameter of type void Apr 24 08:03:12 arphen: Depends. And I wouldn't worry about it if you haven't validated that this is your bottleneck or a problem at all. Apr 24 08:03:49 thanks sicp! Apr 24 08:04:15 I've already read my SICP today! Apr 24 08:04:23 so if I am not passing it any parameters is it safe to just use doInBackground(Void... Void) ? Apr 24 08:04:29 I haven't :( not ever Apr 24 08:04:40 heh Apr 24 08:04:44 why would you touch that area if there is no use for it Apr 24 08:05:06 just leave it params and ...do whatever you want inside, then call new myAsyncTask.execute(); Apr 24 08:05:52 brb Apr 24 08:08:08 kakazza thank you, I'm trying to figure out the right way to lay out my app in terms of which objects should be exposed and which should be capsulated Apr 24 08:10:22 Okay, I solved my problem by just using a runnable. Thanks anyways Sicp! Apr 24 08:13:37 you have postExecute and preExecute and other functions inside AsyncTask that make life easier Apr 24 08:13:45 learn it now and you'll be thankful later Apr 24 08:18:12 kakazza I have a few UI components in my app, one displays words from a book and the other displays and controls the progress in the current chapter Apr 24 08:18:54 right now i've gotthem coupled with a "onseekbarchange {textview.setPositionInChapter()} Apr 24 08:19:03 should i change that to an observer pattern? Apr 24 08:19:09 or am i overcomplicating things? Apr 24 08:20:57 is there any idea why resize buttons or widgets in adt is very hard ? Apr 24 08:25:23 arphen: what do you mean when you say performance penalty? Apr 24 08:26:56 thepoosh I'm changing words on my text view every 0.05 seconds, i imagine posting a new runnable every time i want to change the text is more expensive than just polling and calling the method directly Apr 24 08:27:15 hmmm Apr 24 08:27:21 is it a timer? Apr 24 08:27:52 the moment you need to manage more than one object, observer pattern has meaning Apr 24 08:28:05 but I'm not sure how you will implement an observer pattern here Apr 24 08:28:18 since you observe time Apr 24 08:28:31 you can just schedule at fixed rate or something like that Apr 24 08:28:43 yeah thats what im doing right now Apr 24 08:29:11 Hi, Anyone know why MediaStore.Images.Thumbnails.MINI_KIND , returns null on Android 4.0 and above? Apr 24 08:29:15 than you are already implementing observer pattern, since the system clock is notifying you every 0.05 seconds Apr 24 08:30:13 ah Apr 24 08:30:15 oh well Apr 24 08:30:39 i just coupled my progress bar to my text view with a custom event and i'm all proud of myself and rethinking my structure Apr 24 08:30:40 androidnewb: there is no way it returns null, it's a primitive int Apr 24 08:30:44 it returns 1 Apr 24 08:30:57 arphen: :) Apr 24 08:31:13 androidnewb: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.4.2_r1/android/provider/MediaStore.java#MediaStore.Images.Thumbnails.0MINI_KIND Apr 24 08:31:21 thepoosh: I mean this returns null ThumbnailUtils.createVideoThumbnail(fileUrl, MediaStore.Images.Thumbnails.MINI_KIND) Apr 24 08:31:34 thanks for the link Apr 24 08:31:49 androidnewb: "May return null if the video is corrupt or the format is not supported" Apr 24 08:31:59 http://developer.android.com/reference/android/media/ThumbnailUtils.html#createVideoThumbnail(java.lang.String, int) Apr 24 08:32:35 thepoosh: But I was able to play the video and it works on below Android 4.0 Apr 24 08:32:53 my code works on Android 4.0 below Apr 24 08:32:57 could it be that the file format was deprecated? Apr 24 08:33:04 what format are you using? Apr 24 08:33:32 thepoosh: I google it says that Android 4.0 there is no more MediaStore Apr 24 08:33:35 the video is .mp4 Apr 24 08:34:38 androidnewb: it works on my 4.4.2 Nexus 7 2013 Apr 24 08:34:48 yeah, it was NOT deprecated Apr 24 08:35:06 androidnewb: that means your file is corrupt Apr 24 08:35:17 shmooz: can you paste your code on pastebin? the createvideothumbnail part Apr 24 08:36:12 thepoosh: heres my code at line 104 http://pastebin.com/Ee3L5Juz Apr 24 08:36:52 androidnewb: not going to go over it, the documentation is pretty clear Apr 24 08:37:06 your file is corrupt, you don't have access to it or anything else Apr 24 08:37:38 thepoosh: ok, let me read it, thanks thought. Apr 24 08:38:57 androidnewb: I'm not on the machine where the code is atm Apr 24 08:40:20 but basically bImage.setImageBitmap(MediaStore.Video.Thumbnails.getThumbnail(cr, id, MediaStore.Video.Thumbnails.MINI_KIND, null)); Apr 24 08:42:02 and its Bitmap bImage; ContentResolver cr = getContentResolver(); and id is from another projection extracted from BaseColumns._ID Apr 24 08:50:08 thepoosh, wanna take a look at my app? I think it's quite cool Apr 24 08:50:49 ah damn, you'd need an ebook on your device to use it Apr 24 08:53:52 hmmm Apr 24 08:53:56 arphen: don't have any Apr 24 08:53:58 sorry Apr 24 08:54:22 Think I should ship a sample ebook with the app? Apr 24 08:54:25 a small one? Apr 24 08:55:08 yes Apr 24 08:55:32 I submitted my app 24 hours ago but it doesn't seem to be visible on Google Play? Apr 24 08:55:47 arphen maybe instructions ebook :) Apr 24 08:55:56 apple741 hmmmm Apr 24 08:56:13 apple741: which formats does it read ? Apr 24 08:56:27 Morning All Apr 24 08:56:33 Ankhwatcher: morning Apr 24 08:57:11 instructions seem good enough, added a todo Apr 24 08:57:23 How are we all? Apr 24 08:57:26 thepoosh: yo! Apr 24 08:57:28 oops I meant arphen Apr 24 08:57:55 whatevs Apr 24 08:57:59 I'm not insulted Apr 24 08:58:40 shmooz .epub for now Apr 24 08:58:58 shmooz: no problem, I wasn't sure what you meant :) Apr 24 08:59:12 it's a openspritz clone, but the damn best i've ever used Apr 24 09:00:32 arphen: you should add the functionality to reverse to black bacground and white text Apr 24 09:01:16 g00s: I read it should only take a few hours? Apr 24 09:01:34 apple741 yeah, i've been hearing a few rumblings lately though Apr 24 09:01:55 i'm only doing white on black Apr 24 09:02:07 maybe ill add reverse sometime Apr 24 09:02:31 but ihave stuff like preview text, seekbar and numberpicker for wpm adjustment Apr 24 09:02:38 one of the worst ebook readers of all time is Kindle, i hate that damn thing because it keeps getting fucked up and showing a blank screen when entering the app Apr 24 09:02:54 see, all your books hostage to a shitty kindle app Apr 24 09:02:55 g00s: Cool in that case I'll try again few hours Apr 24 09:03:30 g00s: I guess they didn't know how to run the loading in a thread ;) Apr 24 09:04:46 arphen maybe just me, but one very cool feature i would like to have in an ebook reader is a 'focus bar'. which slightly highlights either the current line, sentence, or paragraph the reader is on. i bet that will be a killer feature once eye tracking becomes more widespread Apr 24 09:05:15 since i keep getting distracted, and reading the same shit all over again :) Apr 24 09:05:27 g00s: Theres nothing I might have done to cause this issue is there? It's mostly likely something going on with Google? Apr 24 09:05:42 apple741 takes some time to verify its not malware Apr 24 09:05:54 but … 24 hours is around what i would expect, no longer Apr 24 09:06:19 not that they do a good job of catching malware Apr 24 09:06:36 Cool I think its been around 22 to be exact so fingers crossed g00s Apr 24 09:06:55 i remember back in the day it used to be almost instant Apr 24 09:07:36 Yeah thats why I was a little confused but I did read they were trying to crack down on malware so makes sense now I guess Apr 24 09:08:52 What would be the best channel for smali/dex questions ? Apr 24 09:11:25 JeroenDL you could catch JesusFreke here once in a while Apr 24 09:11:44 g00s Apr 24 09:11:46 Damn it Apr 24 09:11:53 g00s I'll keep an eye out for him Apr 24 09:12:00 Or #smali Apr 24 09:12:05 oh ;) Apr 24 09:12:16 Aha, there's a smali channel. Thanks Apr 24 09:13:56 Although this one can probably be answered here. Are these two short functions equivalent? http://pastebin.com/Rfax9hPQ Apr 24 09:15:45 it probably can't be answered here :D Apr 24 09:16:05 (It's not dex/smali, it's regular java) Apr 24 09:19:46 is there native AES 128-bit encryption for Android? Apr 24 09:20:02 why might AndroidStudio not find my R.layout. Apr 24 09:21:11 check R.java Apr 24 09:21:59 canadiancow will like this http://www.nytimes.com/2014/04/23/nyregion/with-farm-robotics-the-cows-decide-when-its-milking-time.html Apr 24 09:22:24 Hi guys. I've defined in my strings.xml all my exceptions messages (the one that aren't visible on the screen thus). I've defined my own exception class which actually throws error codes, in the printBackTrace override, I check if a strings exists from the error code. But how can I deserialize the XML since I'm not in a context, I cannot call the getResources().getString() method :-/ Apr 24 09:23:57 hm, donno if thats all such a good idea Apr 24 09:27:46 g00s: Yes actually only devs speaking English will read the logs anyways, but I'm keen to know of this deserialization could be made. Does this mean deserialize xml manually and writing a whole class to do so? O_O Apr 24 09:28:57 i can't think of an elegant way. you could have some singleton reachable from anywhere that has access to it Apr 24 09:29:16 you could give your exception ctor a context, but maybe you don't have one where its thrown Apr 24 09:29:28 maybe you just give it the ID of the error message Apr 24 09:29:37 (resource string id) in the ctor Apr 24 09:29:50 and then when it gets time to log it, take the context and getString Apr 24 09:30:12 i generally don't like putting program constants in resources, just my pref Apr 24 09:33:27 g00s: Actually, the errors code are NOT in my strings.xml, they are in an enum like any other Java app ;-) But the detailed error messages are indeed in my string.xml. Apr 24 09:33:35 shmooz do i have to sign my app so you can install it? or can i just send you the debug one? Apr 24 09:34:32 g00s: Yep, you're right, I've sometimes no context in the class where the exceptions are thrown. Maybe use a statis getApplicationContext in my Application object. Yet, I don't like that C-like global variable approach. Apr 24 09:34:33 But maybe the simplest way to have that feature. Apr 24 09:35:19 my ebook reader ;) there's fyodor dostoyewski the idiot in the settings as a sample https://drive.google.com/file/d/0BzjPnHKC_sBhLXBWZkVMY0dzTUU/edit?usp=sharing Apr 24 09:36:32 :D i've always wanted to read The Brothers Karamazov Apr 24 09:36:50 i could switch it ;) Apr 24 09:37:01 i'd pick something small Apr 24 09:37:11 it's just for now so you can have a look Apr 24 09:37:23 Hey, can anybody help me with understanding how to parse RSS Feed XML in Parse.com Cloud Code. I have searched a lot and found some things but couldnt move ahead. details - http://pastebin.com/sRfNvYZT Apr 24 09:37:46 … CloudCode Apr 24 09:40:41 @g00s can you help please? Apr 24 09:41:00 i have no idea about Parse Apr 24 09:41:13 and i'm sure there are about 100 rss xml parsers out there Apr 24 09:41:43 I wanted to parse it all online so that there is no load on the mobile device Apr 24 09:42:12 seems like a premature optimization of the highest order Apr 24 09:42:13 WantToCode: parse on server side and send it back in JSON on the device via a webservice? :D Apr 24 09:42:43 why convert xml to json Apr 24 09:42:57 wget: Yes I am trying to do this. but couldnt really do the first parst Apr 24 09:43:10 * g00s is lost. wonders off Apr 24 09:43:12 Btw, I don't see the interest by converting it to json since you can parse XML on the device as well... Apr 24 09:43:53 I would like to save the articles and title on parse server Apr 24 09:44:06 saving it periodically say after 1 hour Apr 24 09:44:30 and when the user opens the app, only the article and title is downloaded Apr 24 09:46:30 If the XML parsing is done on the server, then it's pure Java, nothing to do with Android then. Apr 24 09:48:04 AFAIK parsing on Parse.com CloudCode can be done in JavaScript. infact anything on Parse.com Cloud Code can be done in JS. isnt it? Apr 24 09:52:10 WantToCode: I don't know I don't use third arty tool like Parse.com. I usually do all by myself, in this case, even the backed. Apr 24 09:52:29 *third party tools Apr 24 09:52:29 *backend Apr 24 09:52:53 So much typo today. Seems like I need to coffee Apr 24 09:53:48 wget: Ok Thanks. Do you have any experience with any of these javascript files? I have spent more than 2 days searching for this. Apr 24 09:54:03 WantToCode: Nope neither. Apr 24 09:54:24 damn :( Apr 24 09:56:05 arphen: its not bad Apr 24 09:57:49 arphen: I like the wpm adjuster on the right Apr 24 10:00:56 is there a common solution people use to show the device name? Apr 24 10:01:16 i see answers that say i have to make up my own list of manufacturer models, seems ridiculous Apr 24 10:02:15 shmooz thanks Apr 24 10:02:22 any pointers? Apr 24 10:02:30 thanks for testing it Apr 24 10:02:57 arphen: it popped up the keyboard which I had to hit the 'Done' key to make go away at first Apr 24 10:03:18 didn't realize it was one of them speed reader apps Apr 24 10:04:05 it works for what it is, and is already black background so I like it :) Apr 24 10:04:27 can't stand white backgrounds, plus they waste battery ;) Apr 24 10:06:06 thanks shmooz, that shouldn't happen because i set keyboard hidden in androidmanifest Apr 24 10:06:31 it happends every time I launch it on my Nexus 7 2013 Apr 24 10:06:41 Do you think I should display the author and title of the current book somewhere? I can't think of a good place to put it Apr 24 10:06:50 I'll look into it. Apr 24 10:07:29 yeah you should make them browsable perhaps with the cover images Apr 24 10:08:31 and make categories that users can browse or even make Apr 24 10:08:51 like Thriller, Romance, Science Fiction Apr 24 10:09:32 who knows Apr 24 10:11:05 a gridview with the books user can swipe through, or search through Apr 24 10:14:16 and maybe be able to bookmark and resume multiple books Apr 24 10:15:54 have an option so it uses a voice engine to just read it to you and you can speed up the audio Apr 24 10:16:23 or go into normal ebook reader mode Apr 24 11:08:29 hello, anyone here? Apr 24 11:13:34 hello, is anyone alive here? Apr 24 11:14:09 nope, all dead Apr 24 11:14:10 rest in peace Apr 24 11:15:39 is there a way to use custom attributes on existing views? Apr 24 11:16:49 obviously, you will have to extend the view to read the custom attributes Apr 24 11:17:26 actually there is a way to read custom attributes without extending a view Apr 24 11:17:44 how can I give focus to a Edit text? Apr 24 11:18:06 ...with custom LayoutInflater.Factory Apr 24 11:18:29 it's declaring custom attribute I have problem with Apr 24 11:18:55 it doesn't allow to put custom namespace in xml Apr 24 11:19:38 for example "Unexpected namespace prefix "namespace" found for tag TextView" Apr 24 11:21:37 you made the declare-styleable ? Apr 24 11:22:14 yes Apr 24 11:22:28 it works with custom view Apr 24 11:23:23 and you created some namespace and assigned the uri to the res-auto thing ? Apr 24 11:23:30 yep Apr 24 11:23:50 hm, dunno . should work - but never used that factory thng Apr 24 11:24:47 or maybe using the wrong kind of context Apr 24 11:33:45 hi. small question. I implemented android.app.backup.BackupManager. How can I verify what has been backuped? Apr 24 11:34:36 hmm, Fire TV appears to have a temperature sensor... interesting Apr 24 11:40:13 has anyone seen this? Apr 24 11:40:14 https://github.com/egirault/googleplay-api/ Apr 24 12:19:22 is there a way to populate a combo box when a user clicks on the combobox? Apr 24 12:20:02 if i delete bin folder, no errors? Apr 24 12:23:07 errant_rider: how do you mean? Apr 24 12:24:27 thepoosh: so lets say I have 5 combo boxes. All start with a default value of "blank". When a user clicks on a combo box, I'd like to get the current value of the other 4 combo boxes, and based on those 4 values, get the available values from a DB for the 5th combo. Apr 24 12:25:29 well, sounds to me like creating a state-machine and populating the next fragment (dialog box) with info according to what was chosen previously Apr 24 12:25:39 thepoosh yes Apr 24 12:25:57 you need to do that from the root of the process Apr 24 12:26:00 like the activity Apr 24 12:28:03 gotcha Apr 24 12:28:55 [2014-04-24 15:27:45 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/thoughtworks/selenium/CommandProcessor; Apr 24 12:28:55 [2014-04-24 15:27:45 - NoorMosaned] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/thoughtworks/selenium/CommandProcessor; Apr 24 12:29:51 Can anybody help me with Parsing XML from RSS Feed in Cloud Code? details - http://pastebin.com/8kXJGuLD Apr 24 12:33:52 anyone know where i can find the "filter" icon everyone seems to be using in their apps when they want to have a filter option? Apr 24 12:45:33 is there anyway to automate web pages in android? Apr 24 12:45:41 android-dev362: http://www.ibm.com/developerworks/xml/library/x-android/ Apr 24 12:45:50 MalekAlrwily: how do you mean? Apr 24 12:46:14 serrghi: http://androiddrawables.com/ Apr 24 12:46:16 Login, get the captcha from page, etc>>> Apr 24 12:46:47 not understanding exactly what you're trying to do Apr 24 12:47:05 thepoosh: Thanks for the link but I have already tried parsing locally. I want to do this on Parse.com server where it takes JavaScript only, not Java. Apr 24 12:47:21 not following Apr 24 12:47:24 there are a web page, and i want to automate the login process Apr 24 12:47:39 that is not going to happen Apr 24 12:47:47 if there is a captcha it's supposed to stop automation Apr 24 12:48:10 i want to show the captcha to user Apr 24 12:48:14 and he enter it Apr 24 12:49:05 thepoosh: Locally I used XMLPullParser to get the links from RSS feeds. Whereas now, I need to do this computation on a backend server. I am using Parse.com where I can only use JavaScript to code this whole operation. Apr 24 12:49:39 I can't use Java in the cloud code. Apr 24 12:49:40 are you asking on how to do this in the backend or how to parse the response? Apr 24 12:49:56 the former. how to do this in the backend. Apr 24 12:50:06 android-dev36l: try JSOUP Apr 24 12:50:18 ~google JSOUP Apr 24 12:50:31 shit Apr 24 12:50:32 android-dev362: so basically, you need a JS XML parser? Apr 24 12:50:41 what framework are you using in the cloud? Apr 24 12:50:57 ~~ Apr 24 12:52:04 I am a little bit new to development. but AFAIK it runs on JavaScript SDK. I dont know the "framework" per se. You can see here https://parse.com/docs/cloud_code_guide Apr 24 12:53:32 android-dev362: it seems like it returns json objects, you need to parse them Apr 24 12:53:51 I suggest using in the app GSON for parsing the response from the server Apr 24 12:54:59 ok but the problem of parsing the xml still remains? I am not able to parse the xml feed in the first place itself. Parsing the response from the server comes second, isnt it? Apr 24 12:55:30 well, yes and no Apr 24 12:56:23 android-dev362: look at this for references http://stackoverflow.com/a/10943610/1056359 Apr 24 12:56:36 but your question is a JS question, not an Android-dev one Apr 24 12:56:39 Hey guys, I have a quick question that I can't seem to find an answer to. I've been working on an app that I've been testing primarily on a phone but I just started doing some testing on a tablet and everything seems fine but when I am watching the logs my App is bombarding the logs with the message, "skia - Flag is not 10"...how would I resolve this? Apr 24 12:57:19 goodcodeguy: is that log from your process? Apr 24 12:57:21 this only happens on the tablet (could be due to it being a newer version of android and/or it being a different form factor, but I can't seem to find anything via google on it) Apr 24 12:57:22 what is the tag? Apr 24 12:57:23 yes Apr 24 12:57:31 the tag is skia Apr 24 12:57:36 the text is Flag is not 10 Apr 24 12:58:18 it's a lenovo tablet with android version 4.2.2 Apr 24 12:58:24 it's a bug in the tablet's implementation of something Apr 24 12:58:32 I wouldn't care that much Apr 24 12:58:46 probably issues due to 0x86 implementations Apr 24 12:59:29 try asking the Intel folk Apr 24 13:00:16 thepoosh: Thanks. I hope it works because Parse.com have some weird restrictions, like they do not have support for DOM. Will this have any effect? Apr 24 13:00:34 nope Apr 24 13:00:41 DOM is web pages, not RSS Apr 24 13:00:57 ok Thanks. I'll try this out. Thanks again. :) Apr 24 13:01:08 cools Apr 24 13:03:29 where do I get XE16.11? Apr 24 13:04:25 Does anyone knowhow xhdpi resources (like .PNGs) are scaled down for hdpi and mdpi. I'm seeing "OutOfMemoryError: bitmap size exceeds VM budget" and I believe it's because Android reads the whole image and then downscales instead of doing subsampling when decoding. Apr 24 13:05:03 snowpong: android doesn't auto sub sample. if you want that you have to do it explicitly. Apr 24 13:06:14 jaynewstrom: I am doing it for any image I load dynamically in the app - but when inflating layouts with an ImageView where the src is set I don't have control over it Apr 24 13:06:45 snowpong: try this: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Apr 24 13:06:49 true. you don't have to load resource images in xml though Apr 24 13:07:28 or you can do what jaynewstrom is saying and use BitmapFactory to downscale before setting the bitmap to the imageview Apr 24 13:07:36 jaynewstrom: true - I just wanted to know for certain that Android doesn't subsample when inflating layouts (so that me spending time on fixing this actually made sense) Apr 24 13:08:19 i've always had it so that my resource images are the size that i will be using them in the app. Apr 24 13:08:53 how do you know the size all your users will need without making all the different resources folders? Apr 24 13:09:54 "all" the different resource folders? I just have them for xxxxxxxxxxxhdpi. haha. however many seems reasonable Apr 24 13:10:26 thepoosh: thanks, this was for larger splash / background images though Apr 24 13:10:37 i just have the designer make one image and i use this script to resize them https://gist.github.com/jaynewstrom/8788846 Apr 24 13:11:23 lol Apr 24 13:11:47 :) Apr 24 13:25:03 jaynewstrom did someone mention xxxxxxxxxxxhdpi http://bgr.com/2014/02/14/largest-android-tablet-ever/ Apr 24 13:26:54 :) that's awesome! Apr 24 13:27:35 how do linearlayouts handle tab events? do they set the focus on each of the elements in it? Apr 24 14:33:04 Do you folks ever test your app with the "Don't keep activities" developer setting turned on? Apr 24 14:33:26 Things breaking left right and center for me Apr 24 14:33:30 -_- Apr 24 14:33:43 rarely but it is a good idea to do so Apr 24 14:34:00 Okay Apr 24 14:43:17 anyone know if a GoogleMap has a listener for network access? Right now if a user comes into a googlemap without an internet connection it just shows a blank. So I was hoping I could get a response from google that it failed to look up the map tiles Apr 24 14:50:09 Mentos, listen for network connectivity yourself and present that messaging Apr 24 14:50:55 pfn: Yea I appreciate I can always do that but hoping there was something more directly correlated Apr 24 14:53:11 it is directly correlated... Apr 24 14:53:14 you have a network listener Apr 24 14:53:18 why should gmaps duplicate it Apr 24 14:54:44 well gmaps service could go down? Apr 24 14:55:58 there's probably an exception/error event somewhere then Apr 24 15:15:07 Is it possible to write text to the a pdf using the pdfdocument class? I can get views to be drawn but I haven't been able to write text to the pdf Apr 24 15:15:23 To a* Apr 24 15:15:33 Using 4.4 Apr 24 15:20:22 Hey, I got a question about android's bluetooth implementation. Was it made to be blocking on purpose or it didn't get enough attention to make it non-blocking? Apr 24 15:25:40 Anyone published an app on the Play store recently? Its been 24 hours and its still not available for me. Apr 24 15:27:32 I hate the java.lang.NoClassDefFoundError bug Apr 24 15:31:38 apple741: have you only tried to search or also directlink with package name? Apr 24 15:32:09 I tried the direct link but I just get a 'We're sorry, the requested URL was not found on this server.' Apr 24 15:32:47 24hours is quite unusual. Apr 24 15:33:47 Thats what a lot of sites say but I also read some people had to wait a few days Apr 24 15:36:40 good website to buy bicycle online Apr 24 15:37:02 sorry, wrong tab Apr 24 15:37:18 but answers are welcoe nonetheless :-P Apr 24 15:49:26 Hey, I've got a few questions, but I'll start off by asking why is it that most tutorials seem concerned about having ContentProvider queries not being done on the UI thread (via Loaders), but say nothing about having inserts, updates, or deletes not being done on the UI thread? Apr 24 15:51:20 hei there Apr 24 15:55:22 Shadow6363, it could be that once you get to the point of doing your own queries like that they assume you should know not to do things on the ui thread? Apr 24 15:58:06 jonc-1: That's what I was kind of wondering, if there's something about those three that makes it alright to do on the UI thread or if it's just assumed you'd do it elsewhere. I was leaning toward the former since there doesn't seem to be any specialized way to not do the operations on the UI thread like there is Loader for querying. Apr 24 16:10:16 <_|Nix|_> Hi! Is it possible to set up an Android 4.4 AVD? I need to try to reproduce a bug, but it doesn't seem to be happening in 4.4.2 anymore, whereas I'm getting reports that it's happening on 4.4. Apr 24 16:10:29 <_|Nix|_> I grabbed the SDK, but the 4.4 SDK is no longer available. Apr 24 16:12:47 is it normal for a view that uses a 9-patch for the background to completely ignore margins? Apr 24 16:13:47 i know padding can be set with the controls lines on the right and bottom of the 9 patch, but is that the only way to add/subtract padding when using 9-patches? Apr 24 16:15:01 _|Nix|_ unfortunately, seems like genymotion also only has 4.4.2 Apr 24 16:17:22 anyone use Koush's AndroidAsync to do websocket stuff? Apr 24 16:19:03 mattblang cool, never heard of it. although i've heard of ION Apr 24 16:21:10 g00s yeah, it is super cool. if you go make a new node.js project on cloud9, you can essentially get a sample working straight out of the box. the problem is, I can see my emitted messages in my log, but I can't actually set anything in my activity since it isn't on the main thread, and hasn't called looper.prepare, etc. Apr 24 16:21:35 Hi there. I have a quick question. I am trying to check if a particular file exists in my sdcard, even though I know it exists, file.exists() returns that its not. I checked the permission of the file, and it says user is root and group is sdcard Apr 24 16:21:51 <_|Nix|_> g00s: I've seen a place where you can get old versions of the adt, but I suspect they still download the same information as the latest adt when it comes to things like the SDK version. Apr 24 16:21:53 with rw access to both user and group but none to others. Apr 24 16:22:29 hello i need help! My problem is that i tryied to root my phone and it fucked up. I'm power on my phone and ' Samsung ' appears but with a red line left-top. I am trying to recovery the phone but no luck. It's appears the same message with the line. The only way it's to fix this problem via Odin i think. Any fix? Apr 24 16:22:42 souksou read the topic, thanks Apr 24 16:24:46 Another question I have is that many examples have things like /posts/# and then getting the last part of the Uri to query. At the same time, you could pass the value through the selectionArgs. Is it better to get it through the Uri or pass it through selectionArgs or both or what? Apr 24 16:25:45 If the user sets the device gps to "Device Only" how can you get location updates using the LocationClient framework? Apr 24 16:26:03 Shadow6363 ideally all that should be off the UI thread Apr 24 16:26:29 you can sometimes get away doing a small read query, like a single row, on the UI thread. Apr 24 16:27:05 g00s: Any opinion on how, just AsyncTasks or AsyncQueryHandlers or another way I'm not aware of? Apr 24 16:27:19 AsyncQueryHandler is kinda old school Apr 24 16:27:47 for queries, its usually Loader … you can grab AsyncQueryService from i think email or calendar Apr 24 16:28:12 Loader is what I was intending for querying, I meant for inserting, updating, or deleting though? Apr 24 16:28:52 yeah, for that see AsyncQueryService Apr 24 16:29:15 even though it has Query in the name ;) Apr 24 16:31:03 you have to pay attention if you want to do transactions with providers; i think that machinery is in there too Apr 24 16:32:36 if it seems like a big ball of shit, it is. one of those areas where the easy stuff is stupid hard Apr 24 16:33:25 i'm hoping at i/o google announces a complete and total replacement for the java framework :D Apr 24 16:34:00 why Apr 24 16:34:28 most of it sucks. loaders, fragments, component lifecycles ... Apr 24 16:34:35 content providers, its all crap Apr 24 16:34:57 how can I download cacert root certificate without installing it to firefox? I want to install it as system trusted certificate Apr 24 16:35:15 parmegv through the settings app Apr 24 16:35:28 install your cert there - but that isn't a programming question Apr 24 16:35:41 not even sure if FF uses that Apr 24 16:35:54 true, it's not a programming question, sorry Apr 24 16:36:01 g00s, is a complicated architecture but I java is ok, what do you wished for android developing? for "hot staff" there's ndk Apr 24 16:36:17 how can you change UI elements from another thread, not using AsyncTask? Apr 24 16:36:34 mattblang i use rxjava, you can use other things Apr 24 16:37:02 still use plenty of handlerthreads, etc Apr 24 16:37:19 mattblang, a receiver? Apr 24 16:37:28 the actual touching of the view has to be on the UI thread thoough Apr 24 16:38:39 g00s, blues-man well, I implemented a callback to receive websocket messages from my server. this isn't happening in the main thread though, of course, so I can see it in the log but can't figure out how to do anything with the new data, lol Apr 24 16:38:41 it's all about observer pattern, diy or use prebuilt dedicated components Apr 24 16:38:48 Well, regardless of how much crap it is, youve been a great help g00s. Wish I had time for more questions, but I've got to head out. Thanks again. Apr 24 16:39:30 blues-man not sure what i would wish for. i don't mind java at all. i don't like that we're on some divergent version of java. i think the jvm is an isolationist ecosystem and i find that frustrating (jni just sucks) Apr 24 16:41:08 apple and MS are pretty lucky they have invested all this effort in their languages and stacks; for android we're off the path a bit with this home grown jvm Apr 24 16:41:24 g00s, maybe Qt could be an answer Apr 24 16:41:27 tim bray wrote an article in the beginning of the year about how mobile sucks Apr 24 16:41:39 javascript - everyone still trying to replace it, etc Apr 24 16:42:31 Qt would just be shit on a stick Apr 24 16:42:45 I shudder remembering the total utter awfulness that was Qt dev for Nokias Apr 24 16:42:56 i hated moc Apr 24 16:42:59 Android... is OK. Apr 24 16:43:05 and far from shit really. Apr 24 16:43:06 Mavrik, for sailfishOS works like a charm Apr 24 16:43:33 blues-man, I'll believe it when I see it Apr 24 16:43:51 I've been burned by utter horseshit Nokia fans were spewing more than enough times, thank you :) Apr 24 16:44:02 eheh Apr 24 16:44:11 Enough to make me never look at Qt again :) Apr 24 16:46:03 g00s, I think Android got many benefits from java compatibility and its success is all about a registered based virtual machine, and the java language as well. But yes, maybe an explicit C++ programming framework for GUI etc would be very interesting. Apr 24 16:47:07 my beef with android is still that google never figured out a way to update core parts of the OS without oem / carriers. if they want to evolve things, it has to be done at a glacial place - like over years Apr 24 16:47:18 and the app permission model sucks ass too Apr 24 16:47:28 yeah Apr 24 16:47:52 I heard rumor of C# being considered, since it's an open spec, similar in style to Java, and distances G from one of the devil's henchmen (read: Oracle) Apr 24 16:48:24 actually it was considered originally, before Java, but for some reason Java won Apr 24 16:48:40 Hey all. I've taken a look at stackoverflow questions related to my issue with no working solution so far. I'm receiving a java.lang.VerifyError exception that's pointing to my main activity. Anyone know why this may be the case? Apr 24 16:48:56 i bet they would use kotlin first; with the synergy of intellij + jetbrainz and leveraging their java bits Apr 24 16:48:59 why not directly C++ so? is not so far and some programming framework have their own garbage collector Apr 24 16:49:49 I don't mind C++ but prefer C# - it just feels easier and more fun to use Apr 24 16:49:49 (I can pastebin the entire stack if you need it) Apr 24 16:50:02 yeah, c++ is a pita Apr 24 16:50:15 g00s, blues-man, Mavrik what makes me so jealous about iOS dev is the simulator they have. my coworker makes a change and gets to see it instantly Apr 24 16:50:17 yes, it's more high level, maybe not as fast, but it's easy to pick up and powerful (lambdas, etc) Apr 24 16:50:34 mattblang dude.. Genymotion Apr 24 16:50:37 almost zero lag Apr 24 16:50:42 runs opengl games, etc Apr 24 16:50:55 if you're still using regular Android emu, you're crazy Apr 24 16:51:14 ninjavanish MS is also working on something called M# Apr 24 16:51:17 and if you're stuck with the regular one, at least get Intel's HAXM Apr 24 16:51:41 yea? what's the M for Apr 24 16:51:44 Matlab? lol Apr 24 16:52:04 http://www.drdobbs.com/windows/microsoft-m-an-extension-of-c/240165199 Apr 24 16:52:51 i love how c++98 is at the bottom of productivity XD Apr 24 16:52:58 haha Apr 24 16:53:12 oh, the days of 300 line gcc template instantiation errors Apr 24 16:54:27 speaking of errors.. I imported a project into AS, but it's saying "Configuration with name 'default' not found." - anyone see this before? I'm on the latest build AS, and gradle 1.10 Apr 24 16:54:52 I went through all the configs, it looks like every other gradle build script I've written/used Apr 24 16:56:11 mattblang, yes over here if not KVM/HAXM present is all about slow Apr 24 16:57:22 mattblang, but can you coworker do massive automation tests? ;) Apr 24 17:00:09 it's all about..Context :D Apr 24 17:00:58 Hey guys, new learner here. Im confused about the src attribute of things like an ImageView http://developer.android.com/reference/android/widget/ImageView.html#attr_android:src Apr 24 17:01:15 I added a new image to /Resources/Drawable/logo.png Apr 24 17:01:45 But I dont know how to point the src tag at it, and I feel like I was not supposed to add my image to that folder Apr 24 17:02:12 /res/Drawable/logo.png, then you reference it as @drawable/logo Apr 24 17:02:45 does @drawable == "Look in the folder Resources for a folder name drawable" Apr 24 17:03:06 https://developer.android.com/guide/topics/resources/providing-resources.html Apr 24 17:03:13 but you're right, you shouldnt put images in Drawable, they should go in drawable-xxhdpi, drawable-xhdpi, drawable-hdpi, drawable-mdpi or drawable-nodpi Apr 24 17:04:22 Ownix: look at SimonVT's link, but yes, @drawable says give me a drawable resource with this name... it will give you the most appropriate drawable from any of the folders where it exists Apr 24 17:04:42 I see. the default project created by my IDE didnt auto gen those, but when I played with Android dev a long time ago Eclipse and IntelliJ created a much different structure Apr 24 17:05:01 Do you guys have animosity towards Xamarin? Apr 24 17:05:34 Im hesitant to mention it because I know you guys are all Java devs and I know the best tools for the job are ones officially supported by Google Apr 24 17:05:48 the 'drawable' folder without any classification ({xx,x,h,m,no}dpi) is for drawables defined in xml, and default to mdpi but should be dpi independent Apr 24 17:06:20 birbeck: I see. Maybe I should restructure then. Apr 24 17:10:02 hm, i wonder if my app can integrate with IFTTT Apr 24 17:11:17 xamarin is neat, but just like CoffeeScript is to JavaScript, it's dangerous to stray into these hybrid platforms... ultimately, every team I've been on, has resorted back to vanilla js Apr 24 17:16:05 ninjavanish did you see this ? https://www.tbray.org/ongoing/When/201x/2014/01/01/Software-in-2014 Apr 24 17:16:17 "The client-side mess · Things are bad. " Apr 24 17:16:28 does tbray still work on the android team ? Apr 24 17:19:32 hah, no, but I've heard those same sentiments before, and agree Apr 24 17:19:58 Google is working on making "faster" html5 apps using Chromium engine on Android, but we'll see if that actually brings anything to market Apr 24 17:20:14 personally I thought webOS was awesome - just ahead of it's time, and didn't have proper support Apr 24 17:20:22 their apps were all 'web' based Apr 24 17:20:36 yeah, i've heard that from a few people Apr 24 17:21:25 ninjavanish duarte gave an interview with the verge the other day; he mentioned neither web or apps are the way forward Apr 24 17:21:35 or, whatever is next combines both Apr 24 17:21:40 the positives of both Apr 24 17:21:46 he didn't go into it much Apr 24 17:22:08 that makes me thing G is gunna try pushing Dart or something Apr 24 17:22:09 but when an android designer says apps aren't the way forward, how do you take that ? Apr 24 17:22:24 which I guess I'd be OK with, though it's not really a portable language, career wise Apr 24 17:22:30 Dart or Go Apr 24 17:22:55 Dart never seemed to take off really Apr 24 17:23:12 wouldn't be surprised if its 2014 spring cleaning :) Apr 24 17:32:00 Does anyone have any experience with cross platform (android + iOS) development? I'm trying to plan a project and want it to be easily compiled for both platforms or easily ported in the future. Apr 24 17:32:33 what kind of project and whats your budget? Apr 24 17:33:21 Currently it's just a personal project - mostly just exploring mobile development, but I'd like to do it in a way that is expandable if anything comes from it. Apr 24 17:34:01 The project is a game, and the budget is a lot of my time. Apr 24 17:35:54 I'd prefer to do this without necessitating a specific IDE, so I'm looking at SDL2 + C++, but everything I've read seems to urge people to avoid the android NDK Apr 24 17:36:28 Howdy guys; quick question: anyone know how to return to my app after I open up the dial/e-mail intent? Apr 24 17:36:39 I don't actually send any messages - just populate the dialer or populate the e-mail Apr 24 17:36:49 And let the user make any relevant changes/decide to quit Apr 24 17:37:19 I know for MMS I could use ("exit_on_send",true) as an extra and it worked, is there something similar for e-mail/dialer? Apr 24 17:37:43 (ACTION_SENDTO) and (ACTION_DIAL) respectively Apr 24 17:39:58 well, duarte was one of the original guys behind webos Apr 24 17:40:08 of course he's gonna be biased toward the "web" Apr 24 17:40:13 rather, the "webos" Apr 24 17:40:15 oh wait Apr 24 17:45:49 looks like builder 0.9.2 is pretty stable, no update in a month Apr 24 17:45:57 I should look at updating my code to use it Apr 24 17:46:10 new_dev, for games, the tool of choice, is pretty much Unity Apr 24 17:46:14 but it can get expensive Apr 24 17:46:18 new_dev, look also at libGDX Apr 24 17:46:36 also Corona and Adobe Air are popular for cross-platform game development Apr 24 17:46:41 Mavrik - alright, I'll check them out. Apr 24 17:46:54 but I think only libGDX is actually free for all uses :) Apr 24 17:46:57 Anyone that could give me a hand with TCP ports and connecting my android app to a java server? Apr 24 17:48:04 you'll have to be specific if you want an answer here :) Apr 24 17:48:34 Well, I would rather not cluster the IRC with tons of information Apr 24 17:49:51 I have made a java server/client system that works perfectly fine on my localhost, just running on a single pc, but they will not connect to eachother on different computer. Same IP, client is connecting to the IPv4 address of the server. Apr 24 17:50:03 Mavrik - I generally enjoy writing things from scratch for my own edification. So I was leaning toward solutions that don't abstract away too much of the development. Does libGDX allow this sort of bare-bones development? Apr 24 17:50:35 I've never used LibGX Apr 24 17:50:43 just how low-level do you want to go? Apr 24 17:51:01 because at some point you won't be doing cross platform dev anymore, because each platform has it's own hardware and APIs Apr 24 17:51:05 Mavrik - I'd also like top lay around with sensor data such as the Camera or accelerometers. Do any of these platforms allow access to these sensors? Apr 24 17:51:25 yes, I think pretty much all of those platforms let you use sensors Apr 24 17:51:34 even camera, even though camera tends do be more problematic Apr 24 17:52:00 Mavrik - yeah, fare point. I've done cross platform work using C++ and SDL2 in the past and generally liked that level of depth. Apr 24 17:52:31 Mavrik - But it's unclear whether I'd be able to use the sensors with SDL2 Apr 24 17:52:36 I think libgdx would be a rather nice fit then Apr 24 17:52:47 at least looking at the features :) Apr 24 17:52:51 it seems more low-level than the others Apr 24 17:52:57 but it's java based :) Apr 24 17:55:35 might get a few more glassholes wandering in, now it's apparently available to everyone in the US without needing an invite... Apr 24 17:55:54 <3 glass :) Apr 24 17:57:02 also, Vic's leaving Google, if anyone cares... Apr 24 17:57:02 How do I report offensive reviews on Google play? Apr 24 17:57:19 Mavrik - after readin gup it sounds like libGDX should work well for me. I found a good article documenting some of the features critical to the project I have planned. Thanks for the help! Apr 24 17:58:01 Mavrik - Also, the documentation for libGDX seems a lot more thorough than the documentation for other solutions I've found, so that's a huge bonus Apr 24 17:58:17 mhm :) Apr 24 18:02:21 I would have thought there would be some sort of flag on the Google Play console next to reviews to report them? Apr 24 18:02:40 apple741: use the app on your device Apr 24 18:03:33 Thanks Leeds, I'll try that. Its strange they don't have a more direct way. Apr 24 18:05:47 Leeds: I can't seem to find the latest review this way even if I set it to 'Newest first' on my device? Apr 24 18:06:04 um, you can also flag on the play website Apr 24 18:08:14 I think the reason I can't see the reviews is because I'm in the UK and the review was in French? Apr 24 18:08:30 Which explains why is was visible from the console but not my device? Apr 24 18:09:44 ah, c'est possible Apr 24 18:10:46 Yeah I think thats whats happening, any ideas on how I could report it? Apr 24 18:11:46 try adding hl=fr on the website Apr 24 18:13:07 has anybody used google place autocomplete API in android? Apr 24 18:13:23 can we restrict results using bounds Apr 24 18:13:33 like with the javascript library? Apr 24 18:13:38 Leeds: At the very end of the url? Apr 24 18:14:03 the is option for country based restrictions Apr 24 18:14:26 but haven`t found anything related to lat lng bounds in docs Apr 24 18:28:49 hello 1 question. Apr 24 18:29:42 Im using Samsung Galaxy Grand Neo GT-I9060. I rooted the phone ( i use root checker basic and say's it's rooted ) but when i'm trying to run dSploit it says that program can run only in rooted devices Apr 24 18:29:55 #android-root Apr 24 18:30:46 oh yes sorry wrong channel lolZ Apr 24 18:32:00 need help with google place autocomplete for android Apr 24 18:32:11 anybody used it? Apr 24 18:36:12 Anyone looking to take on a student so to speak? Apr 24 18:38:36 To iterate through a list, is it more efficient (less overhead) to just access each element using indices via a for loop or a list iterator? Apr 24 18:43:53 mantazer: http://stackoverflow.com/questions/256859/is-there-a-performance-difference-between-a-for-loop-and-a-for-each-loop Apr 24 18:44:37 jaynewstrom: thanks! Apr 24 19:00:28 Downloading Android SDK Tools, revision 22.6.2 Apr 24 19:00:28 Download interrupted: peer not authenticated Apr 24 19:00:35 what do I do? Apr 24 19:13:30 do it again until it works Apr 24 19:19:21 I have an x86-based AVD, and when I try to reload its snapshot in the Android Emulator, I get an error saying KO: Error -22 while loading VM state. Any clue why? Also, just before that I get: qemu: warning: error while loading state for instance 0x0 of device ram. Apr 24 19:22:57 I need to consume a Web API that utilizes Basic Authentication, which means my client app needs to have a session of sorts. Apr 24 19:23:14 What is the best way to do this? Id imagine there has to be a secure way to store the users login credentials too Apr 24 19:23:43 is there a way to limit my app to phones and stop tablets using it? Apr 24 19:26:43 Why is there a red ! on my project in eclipse? Apr 24 19:31:07 wecalc: hover your mouse over it Apr 24 19:32:56 Is here someone familiar with using XmlReader.js for parsing XML in Parse.com Cloud Code? Apr 24 19:48:31 Is here someone familiar with using XmlReader.js for parsing XML in Parse.com Cloud Code? Apr 24 19:48:51 UI have no errors in my xml but still get R cannot be resolved to a variable. Any ideas? Apr 24 19:56:33 trying to implement a design with 2 text views in a horizontal linearlayout Apr 24 19:56:52 I'm supposed to hide one child if the texts are too long for both views to fit in the parent Apr 24 19:57:03 is there a way to do that without implementing a custom layout? Apr 24 19:58:11 jobi_: that doesn't sound like good design Apr 24 19:58:37 you should indicate theres more text with a ... or something instead of hiding Apr 24 19:58:42 heh I won't comment on that Apr 24 20:04:59 howdie Apr 24 20:05:53 anyone use Koush's AndroidAsync? Apr 24 20:10:02 mattblang whats that? Apr 24 20:10:47 whatsonot a github library I'm using to implement websockets Apr 24 20:11:12 mattblang oh, no idea Apr 24 20:19:39 is there a way to limit my app to phones and stop tablets using it? Apr 24 20:22:15 GEEGEEGEE Be more specific. Apr 24 20:22:41 I dont want my app to be installed on tablets, only smartphones like the Nexus 4 Apr 24 20:23:10 It begs the question "Why" Apr 24 20:23:53 Because racecar. When adding a account, there is a tickbox "Back my google account to this phone". Untick it, install needed apps manually. Apr 24 20:24:25 genii, I cant be bothered doing another layout for larger screens Apr 24 20:24:55 Is it usable on tablets? Apr 24 20:25:01 Or does it just look ugly? Apr 24 20:25:02 yeah it just looks bad Apr 24 20:25:55 its got no adverts or paid features, so i dont lose anything by limiting it to a smaller audience Apr 24 20:26:00 https://developer.android.com/guide/practices/screens-distribution.html#FilteringHansetApps Apr 24 20:26:08 Well, tablet users "lose" your app. Apr 24 20:26:11 Needlessly Apr 24 20:28:05 alright thanks Apr 24 20:28:41 Hey ppl. Im using the com.sothree.slidinguppanel.SlidingUpPanelLayout. Dont know if anyone ever used it. But Im facing a problem. When I slide my pannel on top of a list view, for example, the user can interact with the list view that is below even when the events are inside the sliding pannel. There is a way to avoid this? Apr 24 20:29:34 If I click a button inside the slide pannel, the event goes to the button normally. The problem is when I click an empty space in the sliding pannel. Apr 24 20:30:32 is the adb running the sdk manager? Apr 24 20:30:39 Birk: make the "empty space" clickable in xml? Apr 24 20:32:23 wecalc: The SDK Manager is a normal Java program afaik, it's started (from shell) via the 'android' shell script. You can look at its source. Apr 24 20:33:17 frankdoyle: great! It worked perfectly. Thanks! Apr 24 20:33:40 nice Apr 24 20:38:06 is it possible to debug an obfuscated app? Apr 24 20:38:14 like, not just decode a stack trace, but DEBUG Apr 24 20:38:20 yes Apr 24 20:38:30 but the line numbers won't match Apr 24 20:38:34 and the symbols won't match Apr 24 20:38:41 the line numbers match Apr 24 20:38:49 but the class/method names don't, which makes it useless Apr 24 20:38:57 it works well enough Apr 24 20:39:14 define "debug" do you mean find the problem or fix it? Apr 24 20:39:18 the debugger can't tell what symbol's what, though Apr 24 20:39:26 if you use jdb, it works a little bit better Apr 24 20:39:35 even setting a breakpoint is a pita then, because you cant just do it from the ide Apr 24 20:39:38 since you can javap and inspect members/variables manually Apr 24 20:39:45 stop/break in Class:Function Apr 24 20:39:48 is how I do it with jdb... Apr 24 20:41:10 Has anyone released any apps recently to the play store? Just asking as I've had an app published for over 24hrs but its still not showing? Apr 24 20:41:43 rejected! Apr 24 20:42:04 Pragma: Do you think thats whats happened? Apr 24 20:42:20 I am not Pragma. Apr 24 20:42:27 And I have no idea. Apr 24 20:42:46 #pragma Apr 24 20:49:52 Could anyone pm me on how I can set up button's that send a signal to my TCP server? Obv I can give more details haha Apr 24 20:50:48 if i want to have access to google play from my app while debugging and after release, i have to add both keys in webinterface. do i need to have the app appear two times under "Google Play"->"game services"->"linked apps"? or should it appear only once under "Google Play"->"game services"->"linked apps" but twice under "Google Developers Console"->"APIs & auth"->"Credentials"->"OAuth"? Apr 24 20:53:15 DexS24: opening a connection to a webserver? Apr 24 20:53:51 briefchain - No, I have a TCP server Im hosting on my laptop, then trying to send data to, through the app, whenever a certain button it pushed Apr 24 20:54:25 like a port listener? Apr 24 20:54:47 On my laptop yes, trying to send data to it through the app Apr 24 20:57:14 sockets? Apr 24 20:57:55 Yes, sockets Apr 24 20:58:46 there there is an android calss named Socket Apr 24 20:58:56 or java Apr 24 21:00:58 Yeah, Im just not 100% sure on how to set it all up, Apr 24 21:01:28 me neither, but whats the problem Apr 24 21:03:53 Ive tried running the client code that I have in the OnStart method, just to see if it will work and I havent had any luck. I'm not sure what the second best way to test it is Apr 24 21:06:29 DexS24: onstart of activity? Apr 24 21:10:37 briefchain - Sorry, Yes Apr 24 21:11:20 i would try it as asynctask or runnable Apr 24 21:11:41 since it could block the ui Apr 24 21:12:24 Well, I would link it to a button press, but not sure how to Apr 24 21:12:39 the problem remains Apr 24 21:13:18 you have to send it and then do the processing in the background and listen for the finish event Apr 24 21:13:33 How so? Apr 24 21:14:00 with asynctask or runnable or perhaps volley Apr 24 21:14:31 Im extremely unexperianced with android development, which would you recommend would be the easiest Apr 24 21:19:55 Is it possible to have an ImageViews height match_parent that has it's height defined by a RelativeLayout with layout_weight="0.33" and layout_height="0dp" inside of a ListView? Apr 24 21:20:14 I'm really just curious if what I am attempting is possible or not so I can quit wasting my time Apr 24 21:22:12 DexS24 try coronalabs.com Apr 24 21:22:46 Should be. But instead of 0.33, why not use 1? 0.33 and 0.67 vs 1 and 2 for example. Apr 24 21:23:14 Hi, I was wondering how I can make a MediaPlayer object send me an event when it's done playing a media resource. Is that possible? Apr 24 21:23:55 Aljammal: https://developer.android.com/reference/android/media/MediaPlayer.html#Callbacks Apr 24 21:24:12 kakazza: I am using 1 and 2, I just changed it in here because I know a lot of people like it to add up to 1 which is the default sum Apr 24 21:24:40 kakazza: Anyways that's a minor detail :P Apr 24 21:24:45 Im having trouble finding a website that has statistics about android devices other than the screen size and android version. I want to know things like the ammoutn of storage, and the hardware sensors that are on the devices Apr 24 21:25:12 Thanks kakazza!!! That's exactly what I was looking for. Apr 24 21:29:08 This is the fenny tag Apr 24 21:31:49 GEEGEEGEE this wasn't enough? http://en.wikipedia.org/wiki/Comparison_of_Android_devices Apr 24 21:42:40 What is the best audio format with the smallest file sizes that Android can run ? Apr 24 21:43:08 So I have one phone and my game needs 2 users. So how would you solve that? Use chrome as another client i guess is the only option? Apr 24 21:43:24 If someone here has experiance with TCP Socket and Android dev, PM me please Apr 24 21:43:36 i cant use a python script somehow I assume since i cant receive a notification with it? Apr 24 21:43:48 How does one call the action when the user dismisses an activity after long-pressing the home button? Apr 24 21:51:57 So if I want both the server and client to send data back and forth I should use XMPP, not http? i first thought there was only http so I had to notify the client so it would make a http request. I am making a game a turnbased puzzle game for 2 people. Apr 24 21:55:56 If someone here has experiance with TCP Socket and Android dev, PM me please Apr 24 21:56:21 wecalc: if you need to send data to the server using GCM, XMPP is your only option. Though you can use the HTTP implementation of GCM and just send data to your server manually over HTTP. Apr 24 21:56:57 I'm trying to figure out how to report a review to Google but there is no 'flag' option. I can't report it via the Google Play site as its a French review and I can only see reviews from the UK store that way. Apr 24 21:57:29 birbeck: yes, which option do you think is better? I will send very little data, very few times. Apr 24 21:58:02 stdim, if the user kills your app (through any means) then your app is dead, you don't get notified... you need to design your app and activities so that it can be killed at any time. Apr 24 21:58:54 wecalc: if you don't need persistent two way communication, use http Apr 24 21:59:15 i assume you just want to notify the other player when its their turn or something Apr 24 21:59:35 birbeck: yeah and send the results. Apr 24 21:59:41 thank you for the advice Apr 24 22:00:17 player 1 plays, send the play using http to your service, the service then sends gcm notification to player 2, rinse and repeat Apr 24 22:03:31 birbeck: I understand. Is there any way I can get the savedInstanceState back after the user dismisses the activity as described? Apr 24 22:04:30 don't use savedInstanceState Apr 24 22:04:40 birbeck: My tests show that the system does not save instance state then. Apr 24 22:04:41 that's only for transient destruction Apr 24 22:05:42 pfn: And this: android:alwaysRetainTaskState="true" ? Apr 24 22:05:57 dunno, what do the docs say it does Apr 24 22:06:18 pfn: keeps saved instance states beyond 'transient' destruction Apr 24 22:06:28 I doubt it, but ok Apr 24 22:07:12 pfn: "However, when this attribute is "true", users will always return to the task in its last state, regardless of how they get there. This is useful, for example, in an application like the web browser where there is a lot of state (such as multiple open tabs) that users would not like to lose." Apr 24 22:07:31 doesn't work for situations where you finish/back out of the activity Apr 24 22:07:40 that's what back/finish does Apr 24 22:09:15 pfn: OK, so how would you advise I keep track of the state such that things will always return the way they were? This activity must remain in a state for quite a while, regardless of what the user does to it. Apr 24 22:09:34 then you're ignoring android behavior Apr 24 22:09:35 which is wrong Apr 24 22:09:39 save it somewhere on disk Apr 24 22:09:43 or in sqlite Apr 24 22:10:08 If someone here has experiance with TCP Socket and Android dev, PM me please Apr 24 22:13:23 pfn: The idea is that this activity at certain points of user interaction is not supposed to be finishable... Apr 24 22:15:15 I've found that exception messages (of exceptions that bubble up to the top) aren't shown to the user. What's the best way to get the user to see what's gone wrong? Apr 24 22:16:34 TacticalJoke: Exception messages are not supposed to be shown to the user. Apr 24 22:17:24 Hmm. I feel like showing a message is better than "X has stopped", though. Apr 24 22:17:24 Cant you use python for Google cloud messaging application servers? Apr 24 22:17:27 Regarding bug reports and such. Apr 24 22:18:50 What if my app throws an exception signifying a bug? How is my user gonna report that to me? Apr 24 22:19:40 TacticalJoke: See ACRA it's a very popular reporter alternative to the one that comes with Play Store... Apr 24 22:20:14 TacticalJoke: http://acra.ch/ Apr 24 22:21:06 Ooh, they get a "Report" button. Apr 24 22:21:09 When the app crashes. Apr 24 22:21:18 I don't get that in my debug version. Apr 24 22:21:27 I guess that's only when it was installed via Google Play. Apr 24 22:21:34 K, I'll look at that. Thanks. Apr 24 22:28:02 I'm trying to figure out how to report a review to Google but there is no 'flag' option. I can't report it via the Google Play site as its a French review and I can only see reviews from the UK store that way. Apr 24 22:28:39 apple741: Is this of no use: https://support.google.com/googleplay/answer/2853570?hl=en ? Apr 24 22:28:49 Under "Comments and reviews" Apr 24 22:30:13 askhader: Thanks askhader that would usually work but that method only allows me to see reviews from the UK and the one I'm trying to report is from France. Apr 24 22:30:29 That's problematic indeed. Apr 24 22:33:13 stdim, then don't allow finishing Apr 24 22:33:16 stdim, block the back button Apr 24 22:33:27 Its quite offensive so I was hoping to report it tonight but I might have to find an email for Google instead. Apr 24 22:34:11 apple741: A thought, but this is speculation, you'll need an account that can access the french version of the google play store? Apr 24 22:36:10 hello. im trying to get gps co-ordinates from a service thread. the first location is getting sent repeatidly. its a big project that is due in 10 hours which makes testing troublesome because i have to keep leaving the library to test it...can someone take a look please? http://pastebin.com/03XAa2n5 not looking for comment on the rest of the poor code... Apr 24 22:37:35 askhader: How could I do that? Apr 24 22:38:16 More speculation: perhaps a gmail account registered in France? Apr 24 22:40:03 askhader: Its worth a try :) Apr 24 22:47:16 umug: I dont know the answer, but next time when pasting code to an IRC channel, you may wish to hide IP addresses. Apr 24 23:05:56 If someone here has experiance with TCP Socket and Android dev, PM me please. I really need helllpp Apr 24 23:15:12 I've a quick question. If set an ImageView's source statically, the view is sized correctly relative to it's parent (I.E.: it's parent is child of a LinearLayout with a certain weight, and the ImageView has "match_parent" in both it's width and height properties), however, if I set the ImageView's source dynamically, it breaks teh sizing of the parent. What could cause this? It looks like the LayoutParams stay the same. Apr 24 23:18:49 anybody know how to rotate the background of an ImageButton by some certain degrees? Apr 24 23:20:01 not with an animation though Apr 24 23:20:23 I wan't to do it in the onDraw of my customImageButton for speed cause it's going to change often Apr 24 23:23:09 shit I just found out ImageButton has a setRotation method :P Nevermind, I'll go jump of a window. Wasted an hour on this one. Apr 24 23:28:16 Anyone here have experiance with TCP Socket and Android dev? Apr 24 23:28:27 nope Apr 24 23:29:19 pfn - glad you can't help Apr 24 23:29:30 well, stupid questions get stupid answers Apr 24 23:30:56 pft - stupid question? Ive been asking for help for quite a while now, People on this IRC haven't been very.... active Apr 24 23:31:45 that's because you're asking a stupid questio Apr 24 23:31:46 n Apr 24 23:31:55 google esr smart questions Apr 24 23:32:01 come back when you're able to formulate a proper query Apr 24 23:32:12 I have been googling for the past 6 hours Apr 24 23:32:23 You want a specific question, I can give it to you Apr 24 23:32:36 Nobody responded when I gave a specific question Apr 24 23:35:10 no one's going to pm you Apr 24 23:43:24 So I have an object that implements Parcelable. I store these objects in an ArrayList. Does that mean the type of the arraylist is ArrayList ? Apr 24 23:53:52 That can be the type, yes. Apr 24 23:54:03 It could also be ArrayList Apr 24 23:57:32 Question: I've got this activity, in which I use setTheme(android.R.style.Theme_NoTitleBar_Fullscreen); All is well, no title bar or status bar in sight. But, when I add a YoutubeFragment the statusbar re-appears. No other themes are set in the fragment's code, nor anywhere else. Apr 24 23:57:37 What could cause this behaviour? Apr 25 00:04:48 Sooo....I'm coloring some text in a textview, but there's a lot of colors very fast and i'm parsing ansi escape codes to get them. Currently I'm creating SpannableString objects and appending them to my textview but this is far too slow. Is there a way to color text other than spannables? Apr 25 00:04:55 Something faster, perhaps Apr 25 00:09:06 I asked this earlier, but does anyone know if it is possible to write text to a pdf with the PdfDocument class introduced in Android 4.4? So far all I can write are views with the draw function. I simply want to be able to write "test" to a pdf. Ultimately I'm trying to turn a .csv into a .pdf Apr 25 00:11:22 Evening, g00s Apr 25 00:11:31 hello :) Apr 25 00:11:51 oh wow, Vic Gundotra is leaving google Apr 25 00:12:04 Really? Apr 25 00:15:32 new Google+ head is Dave Besbris Apr 25 00:16:15 Just read his G+ post Apr 25 00:17:57 Deep way to start such a post. Apr 25 00:18:08 linky? Apr 25 00:18:23 https://plus.google.com/+VicGundotra/posts/MFrDF3W4RJL Apr 25 00:18:32 cheers Apr 25 00:18:35 np Apr 25 00:18:48 alex_PP http://recode.net/2014/04/24/exclusive-google-head-vic-gundotra-leaving-company/ Apr 25 00:20:18 grrr "built social at google" Apr 25 00:20:28 heh Apr 25 00:20:38 Development related question - how do you guys work the back-ends of your apps? To have dynamic content and content updated on a server database etc? Apr 25 00:20:38 hm, android studio update Apr 25 00:20:52 Like, what do you use/implement? Apr 25 00:21:25 spring and app engine i think Apr 25 00:21:29 not my depertment Apr 25 00:21:34 *department Apr 25 00:21:38 Ok, but is there a method that doesn't cost anything? Apr 25 00:22:07 there's a free tier for app engine Apr 25 00:22:11 and parse.com Apr 25 00:22:21 and perhaps more Apr 25 00:22:28 loads of free PHP hosts Apr 25 00:22:38 but then you need to use PHP Apr 25 00:22:43 * alex_PP would rather pay Apr 25 00:22:46 Anthaas you should write your own server Apr 25 00:22:51 using rails Apr 25 00:22:55 or node or something Apr 25 00:23:08 jchutko: I normally do have my own scripts using PHP, I was just wondering if there was a preferable alternative. Apr 25 00:23:20 nothing compares to having a custom backend Apr 25 00:23:25 i like to use java/spring Apr 25 00:23:42 alex_PP: I normally just write my own PHP scripts, create a feed of some sort for sending information, such as RSS, and then use a parser/handler on a new thread in the app. Apr 25 00:23:47 parse will limit growth Apr 25 00:24:00 you can share your domain objects between projects and just serialise them between the two for the exact same thing on both ends Apr 25 00:24:06 Anthaas you should be using a REST interface sending JSON, not using RSS :\ Apr 25 00:24:07 which i find kinda cool Apr 25 00:24:21 jchutko: RSS is faster than JSON at larger element sizes. Apr 25 00:24:43 how much data are you passing around? Apr 25 00:25:03 doubt it Apr 25 00:25:07 Please dont make me back that up with a citation, I did it as part of my research in my degree haha (a few months ago) Apr 25 00:25:26 alex_PP: Well, Im wanting it to scale. Apr 25 00:25:29 you are doing something flawed Apr 25 00:25:34 if RSS is faster. Apr 25 00:25:40 jchutko: This was from a white paper, not my benchmarking Apr 25 00:26:01 plus parsing takes much less time then the actual processing Apr 25 00:26:06 It showed that, at least for their dataset which wasn't particularly complex, that JSON starts off quicker, but RSS soon becomes a lot faster. Apr 25 00:26:12 to use a sane data format. Apr 25 00:26:18 its worth it even if slower Apr 25 00:26:38 jchutko is correct Apr 25 00:26:42 anyone know how to color textview text parts without spannables? Apr 25 00:26:51 specifically in a faster way Apr 25 00:27:10 Whats not sane about RSS/XML? Apr 25 00:27:10 how do you serialise things that aren't articles with RSS? Apr 25 00:27:15 Its easy to read and write. Apr 25 00:27:20 or am i being dim? Apr 25 00:27:33 By article you mean single simple elements? Apr 25 00:27:41 well im just assuming he means RSS == XML Apr 25 00:27:49 jchutko: Yes. Apr 25 00:27:53 which is false Apr 25 00:27:55 is there not a fairly limited set of tags that are valid Apr 25 00:27:58 ? Apr 25 00:28:02 i see Apr 25 00:28:04 so XML Apr 25 00:28:04 yes Apr 25 00:28:05 XML doesnt define tags. Apr 25 00:28:14 RSS does though. Apr 25 00:28:19 Oh, my bad. Apr 25 00:28:25 XML* Apr 25 00:28:40 Ok, so replace what I said before about RSS with XML haha Apr 25 00:28:52 that's slightly less bonkers Apr 25 00:29:02 Ill try and find that white paper, bear with me. Apr 25 00:29:09 lol my current work used SyncML for their background Apr 25 00:29:11 i don't care enough Apr 25 00:29:12 backend8 Apr 25 00:29:20 they are currently reaaaaally regretting it. Apr 25 00:29:24 i ignore the transport totally Apr 25 00:29:29 and work with objects Apr 25 00:29:40 wrote all this stuff once ages ago Apr 25 00:29:46 alex_PP that unfortunately lacks type safety, etc Apr 25 00:29:52 now i don't need to think about it Apr 25 00:30:01 How do you send objects? Apr 25 00:30:07 I wouldnt know how to even go about doing that? Apr 25 00:30:13 you create a mapping Apr 25 00:30:18 from object -> json Apr 25 00:30:24 POJOs go into jackson Apr 25 00:30:31 json goes over the wire Apr 25 00:30:38 gson or jackson makes objects Apr 25 00:30:39 yep Apr 25 00:30:54 parse should be able to do that in its library? Apr 25 00:31:08 i think that's exactly what it does Apr 25 00:31:12 yeah Apr 25 00:31:22 i just wanted to make sure you werent doing it yourself Apr 25 00:31:34 Anthaas, have you looked at retrofit? Apr 25 00:31:38 alex_PP i just noticed there was jackson-jr Apr 25 00:31:39 Nope? Apr 25 00:31:50 it's pretty cool Apr 25 00:31:59 g00s, jackson jr? Apr 25 00:32:10 Im fairly....new to this part of Android, in that I have no experience and am trying to look new things up. Apr 25 00:32:18 Previously, I have just done everything myself in a way that worked. Apr 25 00:32:27 "worked" Apr 25 00:32:27 seems like they made jackson-jr for mobile Apr 25 00:32:52 I used to work at an app development company (placement year) that had 0 interest in allowing developers to look at new technologies and keep up with things, didnt want them to develop at all because in their eyes it meant that other people might want them. Apr 25 00:33:05 gross Apr 25 00:33:14 Yep. Told them so on the way out. Apr 25 00:33:16 I was a student. Apr 25 00:33:19 First year of experience. Apr 25 00:33:39 5 months in they sacked the 2 developers around me and made me pretty much run the department because I was cheap. Apr 25 00:34:10 awesome growth strategy Apr 25 00:34:10 hmm Apr 25 00:34:16 I was doing Android apps, PHP scripts for Android and iOS, as well as the client interface, I was running and management all app databases for both iOS and Android, as well as running the database which ran the canteen! Apr 25 00:34:18 you've got to save money to make money! Apr 25 00:34:29 gross Apr 25 00:34:31 However, I learnt a fair amount that I wouldnt have learnt in a good place. Apr 25 00:34:42 They also gave stupid deadlines Apr 25 00:34:49 Whole apps had to be out and done within 3 weeks. Apr 25 00:34:49 startups are tough Apr 25 00:34:54 A bollocking if you werent on time. Apr 25 00:34:58 yep Apr 25 00:34:59 Hahahahah, start up. Cute. Apr 25 00:35:05 This company isn't a start up haha Apr 25 00:35:17 seems its your fault for working there then Apr 25 00:35:23 It was a student placement. Apr 25 00:35:28 I had no choice. Apr 25 00:35:28 I've a quick question. If set an ImageView's source statically, the view is sized correctly relative to it's parent (I.E.: it's parent is child of a LinearLayout with a certain weight, and the ImageView has "match_parent" in both it's width and height properties), however, if I set the ImageView's source dynamically, it breaks teh sizing of the parent. What could cause this? It looks like the LayoutParams stay the same. Apr 25 00:35:34 In order to complete my course I had to complete the placement. Apr 25 00:35:49 you dont get choices? Apr 25 00:36:14 Very few. This was the only company that did mobile development which I was interested in at the time. They also sold themselves to the placement department really well. Apr 25 00:37:13 So yeah, in short, I am asking about app backends because Im wanting to learn/grow. Apr 25 00:37:19 yeah Apr 25 00:37:34 Ill look at RetroFit - I'm assuming you mean the one by Square? Can someone give me a quick rundown as to what it does? Apr 25 00:37:35 the best way in general is to create custom backend using a rails stack probably Apr 25 00:37:46 if you want to grow fast, use parse Apr 25 00:37:54 Anthaas: it maps an API to an interface and model Apr 25 00:38:06 it hides the awful of HTTP and serialization behind Java Apr 25 00:38:27 JakeWharton: you are some sort of expert programmer...do you know how i can do partial text coloring in android really fast? Apr 25 00:38:45 JakeWharton: Cool, thanks! When you say maps an API to an interface and model, would this be in a similar way to an IDL in CORBA? Apr 25 00:39:43 damccull, fast as in runtime or write time? the latter is Html.fromHtml("") Apr 25 00:40:00 i'm sure that's not the best way if the former's your goal Apr 25 00:40:16 alex_PP: fast as in...not creating a new object for every single different colo Apr 25 00:40:18 r Apr 25 00:40:30 then ignore me Apr 25 00:40:36 oh sad ;( Apr 25 00:42:02 alex_PP: erm...to rephrase: A new object per string portion. Each color created once is fine. Apr 25 00:42:21 i've no idea how fromHtml works Apr 25 00:42:25 but i bet it ain't pretty Apr 25 00:42:42 Anthaas: i don't know what that is Apr 25 00:42:48 damccull: you can use a ForegroundSpan Apr 25 00:43:28 JakeWharton: i am currently using spannablestring with a foregroundspan, but to create the spannablestring over and over for each new section is taking too long, and slowing down parsing Apr 25 00:43:44 and i must be doing something on the ui thread cause it blocks taht too, but i'll figure that out later Apr 25 00:43:49 JakeWharton: Ok thanks anyway. I'm reading the stuff on Square's Github website. The examples given. I'm also learning about what annotations actually do! I've never encountered them beyond @SuppressWarnings and @Override. Thank you again. Apr 25 00:44:03 there's a spannable string builder which lets you build up a long block of text as you go (with spans) Apr 25 00:44:31 oh...with different colors? That might be very useful Apr 25 00:45:11 with anything Apr 25 00:45:18 it's like string builder + spannables Apr 25 00:45:29 the API is super gross. i wrote a tiny wrapper around it to make things easier Apr 25 00:47:51 https://gist.github.com/JakeWharton/11274467 Apr 25 00:48:53 it could be a lot smarter around pooling Span objects on heavy use, but it was fine for a few one-offs Apr 25 00:49:21 * damccull reads JakeWharton's code. Thanks profusely. Will learn something and try it. Apr 25 00:49:45 Will the stringbuilder technique work for receiving lines of text containing different formatting from a network socket at high speed? Apr 25 00:49:53 like 30+ lines per second or more? Apr 25 00:50:22 are you displaying at 30 lines per second? Apr 25 00:50:37 would sometimes Apr 25 00:50:48 it's a MUSH server sending lots of ansi codes Apr 25 00:50:54 My eyes hurt at the thought of it. Apr 25 00:51:03 it's full of ansi art :D Apr 25 00:51:14 yeah you'll need to be much more smart about object allocation and re-using objects Apr 25 00:51:32 ok. Can stringbuilder be reused? Apr 25 00:51:35 :checks Apr 25 00:52:22 StringBuilder can be reused Apr 25 00:52:30 damccull, setLength(0) will empty it Apr 25 00:52:36 yes Apr 25 00:52:57 well that will prevent about hundreds of new objects created by my parser :D Apr 25 00:53:08 Why would changing the source of an ImageView cause it to resize? Apr 25 00:53:17 Difference size image? Apr 25 00:53:21 different* Apr 25 00:53:27 Sorry, poorly phrased Apr 25 00:53:32 Keytap: is it wrap_content? Apr 25 00:53:43 The ImageView itself has it's width and height set to "match_parent" Apr 25 00:53:59 And scaleType is "centerCrop" if that matters. Apr 25 00:54:02 is the parent wrap_content? :) Apr 25 00:54:08 Negative Apr 25 00:54:29 It is embedded within a linearlayout and all the children of that layout have weight=1 Apr 25 00:54:31 I've decided I need a github account. Apr 25 00:54:38 And height="0dp" Apr 25 00:54:52 damccull depending on your parser, you may want to look at interning or using some string pool for repeating tokens Apr 25 00:54:55 Keytap, can you pastebin the whole thing? Apr 25 00:54:59 Of course Apr 25 00:55:24 interning is probably a bit dangerous Apr 25 00:55:37 hm, didn't 8 move interns out of permgen ? Apr 25 00:55:41 *java 8 Apr 25 00:55:48 g00s: i'll google interning ...but what do you mean about repeating tokens and string pools? Apr 25 00:55:51 alex_pp, here you are: http://pastebin.com/dsQcA6we Apr 25 00:56:27 which imageview's the issue? Apr 25 00:56:38 although, that second lienarlayout is wrap_content Apr 25 00:56:46 The ImageViews in question are those whose id is "quiz_item_x" Apr 25 00:57:27 i really dont get how google charges 1500 for glass... the hardware is kinda shitty Apr 25 00:57:41 TableRow allows for teh layout_weight parameter, right? Apr 25 00:57:55 Im on GitHub trying to set things up."Skip the guide. Download our native app instead". Do I want to press that or "Download and install the latest version of Git" below. Or Both? Apr 25 00:58:02 there's one on a classified add here for 2500 Apr 25 00:58:04 IS Apr 25 00:58:04 I want to make sure I'm not going crazy and misread something somewhere Apr 25 00:58:06 *US Apr 25 00:58:41 it extends linearlayout, so it should do Apr 25 00:58:47 i cant believe how bad the camera interaction is Apr 25 00:58:53 That's what I thought. Apr 25 00:59:09 So off the top of your head do you see anything just crazy going on there? Apr 25 00:59:11 Anthaas, both Apr 25 00:59:12 maybe Apr 25 00:59:21 learn how to use hit and that transfers to other things Apr 25 00:59:21 Thanks....maybe :P Apr 25 00:59:29 the UI client is dead simple though Apr 25 00:59:49 learning git has more value, the client will get you up and running sooner Apr 25 01:00:04 Seeing as I will be using it mainly on a Linux machine soon, I will use Git Apr 25 01:00:49 Keytap, what's the dimesions of these images? Apr 25 01:01:01 are the heights different Apr 25 01:01:05 Yes Apr 25 01:01:14 hm, i just started having a problem with as 0.5.6; changes to a sub-project don't reflect in other sub-projects that use that. added a method, its not seen by the others Apr 25 01:01:18 But shouldn't the centerCrop scaling take care of that issue? Apr 25 01:01:48 And the images all have different (potentially unpredicatable) heights Apr 25 01:03:12 have you considered this Apr 25 01:03:13 https://developer.android.com/reference/android/widget/GridView.html Apr 25 01:03:30 it will make your life easier Apr 25 01:03:42 I had not, but I'll certainly give it a shot. Apr 25 01:04:09 JakeWharton: on this class you linked me, what reason would you want to make an immutable copy in the build() method? Apr 25 01:11:39 WOAH Apr 25 01:11:44 I just had a penny drop moment. Apr 25 01:12:28 SimonVT is the Simon Vig Therkildsen guy on GitHub. I've used one of this projects before. Apr 25 01:13:06 Anthaas no, he' simon from VT :P Apr 25 01:13:20 damccull: so you can re-use the builder Apr 25 01:13:34 and because immutability should always be sought after Apr 25 01:13:44 Haha :P I don't remember which one thoguh. Apr 25 01:13:52 can i add an edittext to a linearlayout programatically and have the edittext NOT request focus? Apr 25 01:13:54 oic. ok thanks. Apr 25 01:14:36 JakeWharton: I know that you are busy and it isn't your job to be a lecturer, but can you explain briefly why immutability should be sought after? Apr 25 01:14:55 how do you get the final charsequence out of spanaablestringbuilder anyways? You were right about crappy api Apr 25 01:15:01 damccull: it is one already Apr 25 01:15:48 Anthaas: because it allows you to treat complex objects as values Apr 25 01:15:50 brx_: can't you set the text and then clearfocus of the edit text? Apr 25 01:16:02 oh. so i just append it to the textview as is? or copy it to a spannedstring and append that? Apr 25 01:16:33 Infra`, the edit text isnt editable, when it gets focus it opens a datepicker dialog Apr 25 01:16:43 then the datepicker callback sets the text Apr 25 01:16:48 JakeWharton: So the entirety of all values have one definitive state for that exact instance of an object, and changing it would be a new value (object), rather than changing the value within the object which would be more like a state? Apr 25 01:17:19 (so i used onChangedListener on the editext instead of onCLickListener, so that the edittext doesnt need to be clicked twice to open the datepicker) Apr 25 01:17:32 but it fires as soon as i add the edittext to the Linear Layout Apr 25 01:18:01 on Focus Chaned* Apr 25 01:18:20 onfocuschanged listener? Apr 25 01:18:20 OnFocusChangeListener Apr 25 01:18:25 roger :) Apr 25 01:18:28 :) Apr 25 01:18:35 how can i stop it firt=ing when i addView() Apr 25 01:19:10 Anthaas: precisely. there's a ton of online resources for reading why immutability makes you write better software Apr 25 01:19:37 performance Apr 25 01:19:41 JakeWharton: Thanks. I am currently reading javapractices.com about immutability and why it should be used liberally. Apr 25 01:20:45 Anthaas: you there? remember how we were talking about sending data between intents using Parcelable? Apr 25 01:20:55 mantazer: I am indeed and I do indeed. Apr 25 01:21:39 Anthaas: I implemented a class that implements Parcelable. One quick question though, I don't explicitly touch those methods that pertain to Parcelable's implementation right? Apr 25 01:21:54 It's all implicit? Apr 25 01:22:05 mantazer: Absolutely. Once you've set them up that is. Apr 25 01:22:37 kewl! btw, thanks again for suggesting that I do that. I have a feeling that it'll work. i'll let you know if/when it does if you Apr 25 01:22:42 re're still online Apr 25 01:22:53 Cool. Apr 25 01:25:47 man changing data types should be as easy as changin variable names :( Apr 25 01:26:28 apple741 did your app appear yet ? Apr 25 01:27:23 Anthaas: got it working! Apr 25 01:27:29 mantazer: Nice :-) Apr 25 01:27:50 mantazer: Sorry I sort of drifted in terms of how helpful I was the other night - I was quite tired! Apr 25 01:28:36 Anthaas: no need to apologize. all i needed was some direction and you were able to give me some! Apr 25 01:29:45 I was I was a good enough programmer to be able to fork something or contribute to something on GitHub haha Apr 25 01:29:54 For now, I shall just read. Apr 25 01:30:13 Anthaas, learn by doing Apr 25 01:30:21 just go for it Apr 25 01:30:29 worst case, they don't merge your change Apr 25 01:30:36 alex_PP: Over the summer I will be - Im just finishing my dissertation and my Machine Learning assignment hahaha Apr 25 01:30:47 alex_PP: There is also the fact I'd have no idea what to contribute. Apr 25 01:30:51 but they'll teach you a lot in the process Apr 25 01:31:12 you'll find something Apr 25 01:31:32 9/10 times you'll find a library you want to use that's broken in some weird way Apr 25 01:31:43 I wonder if Jake will let me add a comment to his stuff hahaha. Credit right there. Whack it on a CV...etc. Apr 25 01:32:04 documentation PRs encouraged so long as it adds value Apr 25 01:32:55 Oh cool! I probably won't be able to add anything to yours (not blowing smoke - I just am nowhere near the level of people like you, g00s, and SimonVT), but I will definitely be using your code as a guide to help my learning. Thanks. Apr 25 01:39:51 Well JakeWharton, the builder is making it much faster so far, but still slower than I need it. Thanks. I'll keep looking for options. Apr 25 01:40:05 for those speeds you'll have to do ugly things Apr 25 01:40:33 like make my own view that takes different kinds of objects? Apr 25 01:47:29 how can i find out which parst of my code are running on main thread? Apr 25 01:47:42 damccull you should know that :| Apr 25 01:47:49 ^ lol Apr 25 01:48:08 Unless you specify to run it on a separate thread, or use a class which threads sections, then you should know. Apr 25 01:48:16 anyhow, Log.v(TAG, Thread.currentThread.getName()) or something like that Apr 25 01:48:31 heh Apr 25 01:48:38 I should! You're right! But I'm getting delays that don't make sense, so I think part of the stuff updating my ui is forcing backgorund stuff onto main :( Apr 25 01:48:40 If you are talking about whether or not the spanning is done on another thread within the Builder class you are using, then check out the AOSP source? Apr 25 01:49:18 Anthaas: i'm building them in another thread and using greenrobot eventBus to append them to my textview on mainthread Apr 25 01:50:14 that will be very slow Apr 25 01:50:32 you're basically hammering two queues inside two handlers Apr 25 01:50:41 two loopers, rather Apr 25 01:50:43 hmm. how can i make it faster? Apr 25 01:51:01 batch or do the work on the main thread and optimize it to be really fast Apr 25 01:51:30 the overhead of thread switching is going to be far too high for 30fps Apr 25 01:51:39 i'm kind of batching already. it does a whole line and sends the line with all formatting to the view, but you're right. it is slow Apr 25 01:52:00 That might be why. One line at a time with the thread switching overheads. Apr 25 01:52:07 i see Apr 25 01:52:30 Or, to quote you average Call of Duty player: "LAAAAGGGG!!!!" Apr 25 01:52:35 heh Apr 25 01:52:36 one line does not qualify as a batch Apr 25 01:52:45 oh :( Apr 25 01:53:58 hello Apr 25 01:54:19 I am trying to get a TabWidget to look the same from GingerBread to KitKat Apr 25 01:55:26 wonder if i have another lag problem to, tbh, in addition. I'm watching a log.d in my logcat that's in the translation method. It's displaying one ansi sequence per second or so. Therefore it takes many seconds to translate lines wiht many of them Apr 25 01:55:34 on GingerBread, tabs occupy the whole width of the screen, but are very tall and have a dark background Apr 25 01:55:35 does log.d slow it down? Apr 25 01:55:43 damccull: yes Apr 25 01:56:02 on Honeycomb, tabs are much narrower than the screen and text appears in white (same as the background) Apr 25 01:56:19 on ICS and newer they take the style of Action bar tabs, which is what I want to get Apr 25 01:57:25 I tried assigning some Widget.AppCompat.Light.ActionBar.TabBar to the TabHost, but there is no change Apr 25 01:58:14 do I have to clone all the style stuff (attribute definitions, tab indicator layouts...) from the android resources? Apr 25 01:59:42 pretty much, yes Apr 25 02:02:21 JakeWharton: is there a way to limit this to say, pre-ICS? Apr 25 02:03:21 Yeah, you can check the API level of the device at run time. Apr 25 02:18:59 thank you guys; it looks like I will be paid for some weeks more Apr 25 02:27:31 Is there a name for the type of application that grabs data from a web service? Apr 25 02:27:36 like a specific term for that kind of app Apr 25 02:27:51 a client? Apr 25 02:28:08 Anyone know how I could add images to list items in a listview if I have the url's for the images? Apr 25 02:28:15 Hmm, there are times where I can press a button twice quickly (such as submit) which runs its related operation twice. What is a good way around that besides setting the onClickListener to null? Apr 25 02:28:18 A boolean flag? Apr 25 02:28:41 SlashTag, perhaps downlaoad the file using HTTTP client and then load it from the disk? Apr 25 02:28:43 SlashTag, look up Piccasso Apr 25 02:28:54 99% of the works done for you then Apr 25 02:29:35 Anthaas, disable the button until the operation's done? Apr 25 02:29:48 change the button to a spinner Apr 25 02:29:49 ? Apr 25 02:30:34 hmm, the disabled thing will probably work. ta Apr 25 02:30:39 Is there a straightforward way of displaying an ArrayList of objects in a ListView? Specifically, each listitem would be composed of fields of the objects in the arraylist... Apr 25 02:31:03 mantazer, not automatically Apr 25 02:31:15 mantazer: Create an Adapter for the ListView, pass the ArrayList into the Adapter, and customise getView to set up the convertView to contain the data for each item. Apr 25 02:31:20 arrayadapter will get you most of the way though Apr 25 02:31:31 alex_PP: public class MyListViewAdapter extends BaseAdapter { .... } Apr 25 02:31:38 oops that was for mantazer Apr 25 02:32:21 alex_PP: Im taking a look at Picasso now. i'm thinking on how I would do this since I am currently using a listview adapter to populate text in Apr 25 02:32:25 Anthaas: thanks, do you know of any examples handy? Apr 25 02:32:38 mantazer: One sec, Ill paste bin something for you Apr 25 02:33:12 Anthaas: i appreciate it! Apr 25 02:37:02 SlashTag, https://github.com/square/picasso/blob/master/picasso-sample/src/main/java/com/example/picasso/SampleListDetailActivity.java Apr 25 02:37:06 mantazer: http://pastebin.com/kLSCn68F Apr 25 02:37:19 mantazer: Ignore the "implements Filterable" - it relates to code that I removed for brevity. Apr 25 02:37:34 Just forgot to delete it haha Apr 25 02:37:51 Anthaas: gotchya. thanks a lot! Apr 25 02:38:06 Anthaas: Are you a full time android-dev? Apr 25 02:38:14 mantazer: Student. Apr 25 02:38:16 alexPP: Thing is I am doing this in onPostExecute Apr 25 02:38:29 mantazer: I did Android dev for a year on my industrial placement though Apr 25 02:38:30 Anthaas: you are very skilled Apr 25 02:38:30 ! Apr 25 02:38:43 Nah, I've just done it enough to pick things up. Being in here helps a lot. Apr 25 02:39:09 90% of people in here are better than I am. Apr 25 02:39:41 You either know the answer or don't. I have had g00s pulling his hair out at me in pure frustration a number of times. Apr 25 02:39:57 Android is really daunting at first but once you make a few simple apps you get the hang of it quick. Apr 25 02:40:04 SlashTag, is that a problem? Apr 25 02:40:27 Exactly. I have made quite a number of simple apps. None really big and complex, which is what I want to do over the Summer. Apr 25 02:40:32 I want to create an app like Whisk Apr 25 02:40:41 cool. I'm working on my first large application. This is very fun Apr 25 02:41:14 Im starting a PhD next year though so probably won't be able to do too much on it sadly. Apr 25 02:41:24 alex_PP: For me yes xD. Since each imageView doesnt have a unique id IDK how I can set the picture for each listitem Apr 25 02:41:40 Got my official acceptance letter through today :D Apr 25 02:41:57 I suppose I can just loop through each item and add the picture one by one Apr 25 02:42:09 it's a list view Apr 25 02:42:17 do it in createView Apr 25 02:42:29 or do you have more than one imageview pre list item Apr 25 02:42:31 *per Apr 25 02:43:03 Im getting the url for the images from a JSON response, then in onPostExecute, I'm setting the text/picture for each item Apr 25 02:43:10 Each list item is using the same layout Apr 25 02:43:48 so you're not using an adapter? Apr 25 02:44:15 Im using a SimpleAdapter Apr 25 02:44:46 and a viewbinder? Apr 25 02:44:53 no Apr 25 02:45:35 pastebin? Apr 25 02:47:01 1 sec lemme try something and if that doesnt work Ill pastebin it Apr 25 02:47:37 face Apr 25 02:47:40 whoops Apr 25 02:47:43 wrong window Apr 25 02:48:32 HTC Android phone don't return keyCode 13 for keypress in javascript? my code works fine in firefox-linux, firefox-android but not firefox-htc-android Apr 25 02:49:12 has android design shifted to fragments over activities when possible? is it better practice to keep my listview in a fragment rather than a new activity? Apr 25 02:49:22 if it makes sense within the context of the app? Apr 25 02:49:28 No, it has shifted where necessary. Apr 25 02:49:44 i see Apr 25 02:49:47 Fragments are there for reused aspects of UI, where merge is not appropriate. **** ENDING LOGGING AT Fri Apr 25 02:59:58 2014