**** BEGIN LOGGING AT Fri Mar 14 02:59:59 2014 Mar 14 03:17:48 how do i speed up my app without rewriting the floating point stuff in C ? Mar 14 03:18:43 because it is slow as mole-asses going uphill', i tell you what Mar 14 03:19:50 nick prove it Mar 14 03:20:15 as in, race them ? Mar 14 03:21:44 as in show something other than irc theory. are you just venting, or you have a problem? if venting, then join #android-dev-chat, if problem, pastebin some code for someone that can give you a second look at what you are wanting to accomplish, and maybe even collaborate a more efficent solution? Mar 14 03:22:03 #android-dev, you mean Mar 14 03:22:17 &that someone may not be me, i'm just saying if you are wanting to see if your code is correct as correct can be and still falling short they maybe able to help Mar 14 03:22:57 JesusFreke: no i meant if he has no code and is just venting then goto #android-dev-chat, cuz they may chat there, but i don't think it exist, but we can make it exist to stay on topic Mar 14 03:23:03 i've been drinking..... Mar 14 03:23:46 sure i'll put some code Mar 14 03:23:50 onto pastebin Mar 14 03:25:23 well, i ported this to openGL ES: https://github.com/danfuzz/xscreensaver/blob/master/hacks/glx/lavalite.c Mar 14 03:26:13 well that's in C, you said you didn't wanna rewrite in C. where's the java? Mar 14 03:26:25 i wrote it in java Mar 14 03:26:28 or more, where's your ported code that you are working on Mar 14 03:26:42 i know i'm saying, you are posting code that isn't the non ported Mar 14 03:27:01 where's the code that is sluggish Mar 14 03:27:28 are you using packed index buffers? Mar 14 03:27:50 or VBOs? Mar 14 03:27:52 i'm using FloatBuffer and allocateDirect() Mar 14 03:28:08 also calling loadtexture is slow Mar 14 03:28:34 nick9998: that sounds like a client side buffer? Mar 14 03:29:06 arcode: what do you mean? Mar 14 03:30:03 a client side buffer is loaded into main memory versus loading a buffer directly into video memory Mar 14 03:31:00 nick9998: you might consider rewriting it to use fixed-point arithmetic, if possible Mar 14 03:31:03 i made my first opengl app a couple of days ago so i am no expert...but i'll dig up a couple resources that helped me Mar 14 03:31:36 ok here is my LavaLamp.java, please take alook http://pastebin.com/X0LEPypG Mar 14 03:32:38 arcode: thanks, i didn't know about the non-client side buffer way... Mar 14 03:34:13 sup guys Mar 14 03:35:10 yo Mar 14 03:38:28 nick9998: i listened to this talk where he gives optimization tips: http://www.youtube.com/watch?v=7-62tRHLcHk Mar 14 03:39:19 also i followed all the lessons from here (lesson 7 and 8 are relevant to your question): http://www.learnopengles.com/android-lesson-eight-an-introduction-to-index-buffer-objects-ibos/ Mar 14 03:39:23 http://developer.android.com/design/downloads/index.html Where do I extract these downloads to? Mar 14 03:40:36 If possible, I'm really in a hurry: can anyone answer? Mar 14 03:41:07 thanks for the links! Mar 14 03:41:34 np, the last link has source code and a sample app to go with it :) Mar 14 03:45:01 is it faster to use TRIANGLE_STRIPS than TRIANGLES ? Mar 14 03:45:04 or doesnt really matter Mar 14 03:47:07 i'm not sure, perhaps make a frame counter and find out? Mar 14 03:49:16 cool i'l try that Mar 14 03:50:18 nick9998: hope everything works out. see it's nice to give details :) Mar 14 03:51:12 thanks yo, should be fine! Mar 14 04:00:55 I'm trying to build a score table in my game. Each number is an image (0-9), but how do I assign integers to these images? Mar 14 04:02:25 RetroDude: images like ImageViews? Mar 14 04:02:49 no like actually .png images, assets. Mar 14 04:03:47 what do you mean by "assign integers to these images"? like shove them in an array? Mar 14 04:04:16 yea id say use an array, u can stash objects by number Mar 14 04:04:50 hey guys how do i get a custom icon on the navbar? Mar 14 04:05:03 you can either stash the Image (Bitmap?) variables in an array, or you could create an array for the drawable IDs Mar 14 04:05:20 jareddlc: per activity? or just for the app Mar 14 04:05:38 sounds like an array is the way to go, thanks. Mar 14 04:05:41 per app i suppose Mar 14 04:05:44 i want to make a server Mar 14 04:05:50 and when the service is running show the icon? Mar 14 04:06:01 service* Mar 14 04:06:04 notbryant: Mar 14 04:06:25 jareddlc: do you mean the notification bar? Mar 14 04:06:53 navbar yes Mar 14 04:07:01 ohh Mar 14 04:07:05 yes Mar 14 04:07:10 what is navbar then xD Mar 14 04:07:39 lol nvm yes notification bar Mar 14 04:07:55 ok, so you want to create a notification Mar 14 04:08:04 jareddlc: http://i.stack.imgur.com/YSiGf.jpg Mar 14 04:08:15 thx sensen Mar 14 04:08:40 I believe the standard way is to the Notification Builder in the support library Mar 14 04:09:05 k Mar 14 04:09:18 "NotificationCompat.Builder" Mar 14 04:09:19 thx notbryant i'll do the googles Mar 14 04:09:26 np :) Mar 14 04:10:05 jareddlc: http://developer.android.com/training/notify-user/build-notification.html and http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html Mar 14 04:10:32 with that Mar 14 04:10:46 it should show on the notification bar after a service has been started and will remain? Mar 14 04:12:03 jareddlc: You'll need to call startForeground in your service. Mar 14 04:12:12 yes, you just want to make sure to set "setOngoing" to true Mar 14 04:12:23 (note: I have never done notifications inside of a service, just inside an app) Mar 14 04:13:02 thx guys im sure i'll pop in a few Mar 14 04:13:08 I think there's a documentation for that already. I'll look it up, very straight-forward. Mar 14 04:13:11 np Mar 14 04:32:06 does anyone know if u can style a switch botton? Mar 14 04:32:14 i dont like that it puts the text right next to it Mar 14 04:32:33 if so where can i find properties for swtch buttons Mar 14 04:37:20 you can style just about anything if you work hard enough Mar 14 04:39:41 whats the proper syntax if I want to draw one of the array indexes to a place on the screen. Something like: g.drawImage(imageArray[0]), 50, Mar 14 04:39:41 25); Mar 14 04:40:45 where imageArray is the name of my array Mar 14 04:40:51 hey guys Mar 14 04:40:53 quick question Mar 14 04:40:59 when i hibernate my laptop Mar 14 04:41:02 and i come back to it Mar 14 04:41:13 logcat doesnt work, how do i fix this without restarting eclipse? Mar 14 04:42:11 can I move google map zoom controls ? Mar 14 04:42:18 a little bit more up Mar 14 04:50:06 hmmm Mar 14 04:50:17 how should I get map from SupportMapFragment/ Mar 14 04:50:59 jareddlc: you could try restarting adb Mar 14 04:51:07 getMap() i believe Mar 14 04:51:38 bankai_: it returns null Mar 14 04:51:46 you're doing it too early then Mar 14 04:52:30 well after transaction.replace() Mar 14 04:52:37 and commit Mar 14 04:52:47 seems like those two takes some time Mar 14 04:55:13 the SupportMapFragment takes a while to generate the map, you can really only get an instance of the map in the latter states of a Fragment - onStart or onResume Mar 14 04:55:47 if you're doing the SupportMapFragment programmatically, then i don't know. iwas told not to do it Mar 14 04:57:35 I've found different place Mar 14 04:57:58 well in some places I need to dothat Mar 14 04:58:03 i.e nested fragment Mar 14 06:22:53 Why doesn't android-ndk-r9d/docs/ANDROID-MK.html document BUILD_EXECUTABLE? Mar 14 06:47:15 yuck, the PreferenceActivity onBuildHeader() stuff is such a hack Mar 14 06:47:25 its like the dev just gave up Mar 14 06:48:01 calendar app sets a fragment like so accountHeader.fragment = "com.android.calendar.selectcalendars.SelectCalendarsSyncFragment"; Mar 14 06:48:09 wth Mar 14 07:04:15 lol Mar 14 07:47:40 hm, doesn't seem to be a way to simply disable a PreferenceActivity Header Mar 14 08:04:39 Hi. Is writing android apps with js possible and worth it? Mar 14 08:06:00 phao: yes-no and no Mar 14 08:06:08 Hehe. Mar 14 08:06:12 it is possible but far away from productive or professional Mar 14 08:06:18 and worth it: absolutely not Mar 14 08:06:37 I see. Why isn't it worth it? Mar 14 08:07:08 because even if you pput a lot of time in it (you will need more then with native android to get around the same quality) you won't get the same quality in fact Mar 14 08:07:21 its slower, it doesn't feel native on ios Mar 14 08:07:25 ehh ios.. Mar 14 08:07:29 hehehe Mar 14 08:07:31 it won't feel nativfe on any platform Mar 14 08:07:50 you will get an app that feels alienating on all platforms Mar 14 08:07:53 instead of really good on one Mar 14 08:08:31 i am working in an IT service company, doing native ios/android and crossplattform js development, and clients often want cross plattform, even though we tell them about all the drawbacks you have with them Mar 14 08:08:51 because to be honest its often just salesman seeing ahh we don't need to develop 2 apps, we only need one Mar 14 08:09:10 (even if especially for short to medium app sizes, from my experience, the time won't be so much different) Mar 14 08:09:21 and you see a lot of clients afterwards beeing totally disappointed about the result Mar 14 08:09:46 or saying.. ahh now we don't want that standard usecases, we want the fancy animatin use-case shiny pony Mar 14 08:09:50 TICKET-1234: Some widget doesn't behave exactly the same as in iOS Mar 14 08:09:53 and you only can say.. ehh yeah.. but not in JS :) Mar 14 08:10:02 my favourite :( Mar 14 08:10:10 alex_PP: which framework? Mar 14 08:10:21 every project i work on Mar 14 08:10:36 someone always opens a ticket along those lines Mar 14 08:10:57 yeah, i stumbled about lots of bugs in cordova and for fun looked through their bugtracker Mar 14 08:11:12 some of my favorites: No mechanism to change the app icon Mar 14 08:11:30 and: You disabling overscroll on iOS doesn't work in the general config Mar 14 08:11:53 or: open an link in the external browser :D Mar 14 08:11:55 native by the way Mar 14 08:12:02 totally bleeding edge case, no need to have that in a framework :) Mar 14 08:12:04 it's an expectations bug Mar 14 08:12:18 ha! Mar 14 08:12:21 Hi all Mar 14 08:12:45 Hey, I'm having trouble writing to my avd's sd card. When I try adb push, I get "Read-only file system". Mar 14 08:12:57 so phao, I guess that was enough wall of text. If you understand german and are around munich next week, you can listen to me bashing more around cross plattform crap on MobileTechCon :D Mar 14 08:13:16 heheh Mar 14 08:13:20 I can't understand german. Mar 14 08:13:37 I found a StackOverflow post suggesting I do "adb shell" and then "mount -o remount rw /sdcard", but that gives "mount: Invalid argument" Mar 14 08:13:40 no matter, you would get the frustration and bitterness I got from these frameworks :D Mar 14 08:13:57 But when I asked for js on android, it's wasn't really about cross platform. Mar 14 08:13:57 adnap: mount -o remount,rw /sdcard Mar 14 08:14:02 I'd be ok with an android specific framework. Mar 14 08:14:04 comma between the options Mar 14 08:14:14 I was just curious, anyway. Mar 14 08:14:27 phao: all the JS frameworks I know, are made because you want to have somethign cross palttform Mar 14 08:14:34 I see. Mar 14 08:14:38 timroes: That gives "Usage: mount [-r] [-w] [-o options] [-t type] device directory" Mar 14 08:14:40 ofc you can use them to work only on a single platform Mar 14 08:15:23 advantage: you can code in a languague you nmight now, disadvantage: you dno't even use the 'positive sides' (cross paltform'ness) of the framework and only have the drawbacks Mar 14 08:16:08 phao also, some really just need a mobile website, not an "App" Mar 14 08:16:23 I see. Mar 14 08:16:48 adnap: yeah you are missing one parameter Mar 14 08:16:51 native is best UX, but at a cost. especially if you have to do 3: WP also Mar 14 08:17:05 but if its content heavy, mobile web app is probably best Mar 14 08:17:31 yeah second g00s totally: most of the companies only need a mobile webpage and not an app Mar 14 08:17:39 phao you mey enjoy reading 'mobile usability' by jacobson Mar 14 08:17:49 ok Mar 14 08:18:11 oh man, i confused him with Ivar Mar 14 08:18:13 http://www.amazon.com/Mobile-Usability-Jakob-Nielsen/dp/0321884485 Mar 14 08:18:27 Jakob Nielsen. most of this is common sense now, but still good Mar 14 08:18:39 =D Mar 14 08:18:41 i like reading about their internal studies Mar 14 08:18:47 phao: also end users often have a clear oppinion about html5 crap: https://play.google.com/store/apps/details?id=de.swm.mobile.kitchensink Mar 14 08:18:49 timroes: Well, I have the link sdcard -> /storage/sdcard. I tried "mount -o remount,rw /storage/sdcard /sdcard", but I got "mount: Invalid argument" I don't know what I'm doing Mar 14 08:19:18 adnap: first parameter -> which device, second -> where to mount it Mar 14 08:19:23 timroes: Yeah, I know Mar 14 08:19:27 timroes: It's not working. Mar 14 08:19:31 if you just type mount yhou should get a list of what device it is Mar 14 08:19:52 infortunately someone stole my microusb cable as it seem, otherwise I would have looked... Mar 14 08:19:58 un* Mar 14 08:20:03 heheheh Mar 14 08:20:09 timroes: Actually, it's not listed Mar 14 08:20:09 13 1 start... that's tough Mar 14 08:20:25 phao: https://play.google.com/store/apps/details?id=com.appcelerator.titanium Mar 14 08:20:36 hi guys/girls I have to cache some information (json response and images) and I wonder if there is a known way to do so ? any advices ? Mar 14 08:20:39 na that was the wrong link Mar 14 08:20:55 https://play.google.com/store/apps/details?id=com.ikmultimediaus.android.irigrecorder&hl=en <-- also read the 3rd and 4th voted comments Mar 14 08:21:37 i could go on with examples how html5 also will effect your income besides your rating, but I will stop here now, and go search my microusb cables :) Mar 14 08:22:09 yeah.. it's pretty bad Mar 14 08:22:11 I'm using here. Mar 14 08:23:29 I think my avd doesn't have an sdcard. I just found the relevant docs though https://developer.android.com/tools/devices/emulator.html#sdcard Mar 14 08:25:08 tagrudev square has a disklrucache thingy Mar 14 08:25:32 https://github.com/JakeWharton/DiskLruCache Mar 14 08:25:35 tagrudev: use HTTP cache semantics and an HTTP client that does it for you Mar 14 08:26:11 I am currently using loopj implementation but it doesn't support http cache Mar 14 08:26:58 No surprises there, I suppose. Mar 14 08:29:39 that's going to be fixed in the future I think, but it currently doesn't solve my problem Mar 14 08:30:07 I would have used the okhttp, but I like the loopj approach with the response handlers Mar 14 08:30:28 i would argue that you shouldn't even be doing things at that level Mar 14 08:30:41 Hi all, I have this in my HttpPost: httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); but is that key-value in the header or where does it put these keyvalues? (need to do the same for ios but don't know how) Mar 14 08:31:07 FrancescoV: that's a form URL-encoded body Mar 14 08:31:18 JakeWharton, then on what level ? I haven't done this before so I am open for ideas Mar 14 08:31:30 interacting with an http client directly Mar 14 08:31:36 dealing with serialization and stuff Mar 14 08:31:57 ah you're talking about the handlers Mar 14 08:32:31 JakeWharton: thanks, do you have experience with ios too? Have an idea how I can do the same for the ios platform? Mar 14 08:33:25 maybe some garbage like this: http://stackoverflow.com/a/22064061/132047 Mar 14 08:33:28 * JakeWharton barfs Mar 14 08:33:54 tagrudev: is loopj and actual HTTP client or does it just wrap apache and/or httpurlconnection? Mar 14 08:34:06 *an actual Mar 14 08:34:47 I think it wraps the apache client Mar 14 08:35:17 https://github.com/loopj/android-async-http/issues/103 Mar 14 08:35:25 This will be provided by using OkHttp instead of DefaultHttpClient, using HttpUrlConnection has it's perks, such as HttpResponseCache. Mar 14 08:36:25 FYI the forthcoming OkHttp v2 will have a high-level API for requests and responses and sync/async behavior Mar 14 08:36:57 the convenience of simple requests (like Apache but without 5000 classes) but with the performance of HttpUrlConnection Mar 14 08:37:09 more performance, actually. we're already faster. Mar 14 08:37:57 anyways, we're way off topic. DiskLruCache is a decent solution to having your own cache but its API isn't targeted for application-level use Mar 14 08:37:58 when I started coding the app I am on, that one got my eye on Mar 14 08:38:03 it's made for libraries to be built on top of Mar 14 08:38:20 hence, HttpResponseCache is built on DiskLruCache Mar 14 08:38:37 even HttpResponseCache has an API only a library could love Mar 14 08:39:33 doesnt it just save the info to files Mar 14 08:39:42 is there an option to keep it in the memory Mar 14 08:40:03 I guess I would just save the data in the database Mar 14 08:40:10 and locally cache the images Mar 14 08:40:37 it's a journal + files on disk Mar 14 08:41:46 JakeWharton, btw offtopic you're coding in picasso too ? Mar 14 08:41:57 yes. picasso is my baby Mar 14 08:42:18 I recently switched to it but https://github.com/square/picasso/issues/305#issuecomment-37575833 Mar 14 08:42:28 that one is a problematic issue Mar 14 08:42:35 for you specifically? Mar 14 08:42:46 nope I didn't open the issue Mar 14 08:43:23 Many thousands of apps across tens of millions of devices are using Picasso to download images just fine. Mar 14 08:43:41 One person who likely is misconfiguring a custom instance shoudn't worry you Mar 14 08:44:01 I got the OOM too Mar 14 08:44:09 I managed to fix that on the server side though Mar 14 08:44:15 making images smaller Mar 14 08:44:49 yeah OOM usually indicates a problem with either the app or images Mar 14 08:47:01 JakeWharton by any chance, do you know if its possible to 'adb shell am startservice ' when exported=false? i tried, i think every permutation of --user XXX and 'run-as', no dice Mar 14 08:47:25 ctate was good with this stuff Mar 14 08:48:59 Whether these imports (v4 and standard) interfere with each other? http://pastebin.com/z4QdUKP7 Mar 14 08:49:46 Flank_Y320-U30: no Mar 14 08:49:48 g00s: nope, sorry Mar 14 08:49:58 JakeWharton allright, thx Mar 14 08:55:39 JakeWharton, but I have crash of my app when I using this import android.support.v4.preference.PreferenceFragment; Mar 14 08:55:58 logcat http://pastebin.com/7Bm8y04S Mar 14 09:10:04 what is the best way to validate password in edittext? Mar 14 09:10:14 I set onkeytextlistener Mar 14 09:10:23 but got stackoverflow Mar 14 09:10:31 when invoking method on keypressed Mar 14 09:13:37 gordon_ why not just validate it when you use/persist it by reading the text from the view? Mar 14 09:14:07 it's done like that Mar 14 09:14:18 but I've got drawables Mar 14 09:14:26 which are changing Mar 14 09:14:26 Question : http://stackoverflow.com/questions/22400530/how-to-check-whether-two-image-are-similar-in-android Mar 14 09:14:40 Guys share your views if you can Mar 14 09:16:28 How are the drawables relevant to the password validation? Mar 14 09:18:29 If you want to validate for every change you could use a TextWatcher. Mar 14 09:42:13 is it possible for android to limit the numbers to which child can call to Mar 14 09:47:06 Is build v22.3.0-887826 and Eclipse Platform 4.2.1 the latest ones shipped with ADT Bundle? Mar 14 09:47:38 should I upload also the project.properties to github if i publish my open source app? Mar 14 09:47:42 guys what you suggest instead of testflight for beta testing? Mar 14 09:48:35 Dudi_: play store beta testing? Mar 14 09:49:21 yoavst I'm not going to use Play store for my app Mar 14 09:50:20 Dudi_: You mean that your app won't be on playe store? Mar 14 09:50:40 yoavst not my call, but yea Mar 14 09:51:37 http://bit.ly/OpDcIl Mar 14 10:14:55 when do you rebuild as against to re-make? Mar 14 10:25:07 can someone recommend good proguard tutorial for android ? Mar 14 10:37:34 the android dev docs have a pretty comprehensive documentation for it. Mar 14 10:40:13 the decision to disallow camelcase file names for resource file names is strange. In order to support case insensitive file systems surely better to simply disallow two resource files having the same main name (eg X.png, x.xml) in the same directory. Java resource IDs are case sensitive anyways and it kind of breaks the code consistency to see camelCase everywhere and the the horrific underscore naming trend for resources. Mar 14 10:48:23 ugh Mar 14 10:48:36 I didnt found many resources there Mar 14 10:49:12 already have a nexus 7 (first version) for development... can someone recommend a larger tablet for cheap? i'm not going to use it for anything but testing. Mar 14 10:49:41 Nexus 10? Mar 14 10:49:52 oh i suppose they're probably cheap Mar 14 10:50:00 gordon_: I think you'd want to start here: http://proguard.sourceforge.net/#manual/introduction.html Mar 14 10:50:01 ultra-: not a real device but way better than the stock emulator: genymotion Mar 14 10:50:54 gordon_: And there's a section for Android at http://proguard.sourceforge.net/#manual/examples.html Mar 14 10:50:58 ohcibi: has genymotion solved the issues with google play services yet? Mar 14 10:51:11 sensen: thanks! Mar 14 10:51:16 cezium: what issues? I managed to install that stuff on a 4.3 device Mar 14 10:51:21 or 4.2 *notsure* Mar 14 10:51:22 oh cool ohcibi, thanks... hadn't heard of it Mar 14 10:51:24 any know a good alternate for android adv? like gerymotion or so Mar 14 10:51:32 i have a bad cpu no haxm no vt :D Mar 14 10:52:00 cezium: was able to test a bit around with the adID (our sdk uses it), seemed to work the same way as on my real devices Mar 14 10:52:26 looks like i can get by with the free version, too Mar 14 10:52:27 ohcibi: they dropped the support for it at some point which made me go back to real devices Mar 14 10:53:26 cezium: ah I believe this was even before me installing it.. so I guess the answer is no, the ydidnt solve it but you can setup a device with gps kinda easy Mar 14 10:53:46 maybe thats why they dropped the support Mar 14 10:54:33 ultra-: yes you can.. you only need pro for some additional fancy features like manipulating some sensors (some are even included in free) and recording videos of an app session Mar 14 10:54:40 gordon_: Im no expert but if you ask a specific Q maybe someone can help you. https://developer.android.com/tools/help/proguard.html Mar 14 10:55:17 ultra-: i'm not sure how that "free for personal use" goes if you use the devices in your company for testing, but who knows, right? Mar 14 10:55:22 I try to release app and shirnk size Mar 14 10:55:50 wait a sec I will paste stacktrace Mar 14 10:55:53 ohcibi: I guess I'll have to see I can get a license then. Mar 14 10:56:29 Warning: dagger.internal.Binding: can't find superclass or interface javax.inject.Provider Mar 14 10:56:40 the default emulator is slow as hell Mar 14 10:56:43 funny fact is I'm using butterknfie Mar 14 10:56:59 and added butterknife things to proguard.properties Mar 14 10:57:02 from it's site Mar 14 10:57:10 ultra-: as one said inhere before when he points _me_ to it: i pretty much stopped using real devices except for final testing Mar 14 10:57:37 awesome, i'm gonna dl it Mar 14 10:57:41 its awesome and thus even worth some money I think Mar 14 10:57:41 thanks for the tip Mar 14 10:57:54 perhaps once i'm making money on android Mar 14 10:57:58 muahah Mar 14 10:58:01 8-) Mar 14 10:58:27 i custom write all the touch stuff though, so i need a real device during development... but i also custom write all the on-screen stuff, and this will still be handy for testing all of that out Mar 14 10:59:42 stock emulator just sucks... period Mar 14 11:00:14 it does doesnt it. unbelievably useless. Mar 14 11:00:19 meh, on my linux box it runs smoothly Mar 14 11:00:22 it really doesn't Mar 14 11:00:27 runs for shit on my mac Mar 14 11:00:32 it's just slow Mar 14 11:00:37 runs like a dog on this debian box too. Mar 14 11:00:54 your boxes suck or you're doing it wrong ;) Mar 14 11:01:02 if you get the accelerated x86 image working right, it's fine Mar 14 11:01:20 ah damn, it requires virtualbox and i'm not installing that :/ Mar 14 11:01:31 i guess i'll stick with real devices Mar 14 11:01:42 real device is always better anyway Mar 14 11:01:47 i dual boot for windows but don't use virtualbox Mar 14 11:02:04 hey folks Mar 14 11:02:06 keep it real Mar 14 11:02:09 it doesn't require virtualbox at all Mar 14 11:02:16 it requires virtualisation support Mar 14 11:02:34 oh wait, i see Mar 14 11:02:55 I can't wait until I understand openGl better. Mar 14 11:03:10 i just automatically thought of windows or other desktop OS when i saw virtualbox Mar 14 11:03:31 genymotion doesnt require virtualbox? Mar 14 11:03:43 and whats the big deal about it?, you never see it, when using genymotion Mar 14 11:03:57 except if your computer crashes you might have to manually kill the device within vbox Mar 14 11:04:18 no no no... when i saw virtualbox, i thought it was windows only, so i'd need virtualbox... i'm just tired this morning Mar 14 11:04:33 no.. vbox runs on any platform 8-)) Mar 14 11:04:39 running any platform Mar 14 11:04:42 8-) Mar 14 11:05:27 <7JTAABRMY> does it run on symbian Mar 14 11:05:36 well.. its java.. so why not? Mar 14 11:05:57 java claims to run on any platform, not sure about symbian though Mar 14 11:06:31 genymotion requires vbox; and its way faster than the x86 images + hacm Mar 14 11:06:45 that's not even it... i thought ganymede was windows only, and that it was detecting my mac so it was telling me i had to virtualize windows first... that's how off i am this morning Mar 14 11:07:09 i'm using it on a POS MBP from 2009 Mar 14 11:07:17 excellent Mar 14 11:07:23 2011 MBA should work fine then Mar 14 11:07:23 i'm using it on a macbook late 2009 Mar 14 11:07:30 and on linux Mar 14 11:07:38 i dont work on windows.. windows is for play Mar 14 11:07:57 wintendo :) Mar 14 11:08:09 linux is for solving puzzles :) Mar 14 11:08:18 keep the mind sharp! Mar 14 11:09:36 buy mac Mar 14 11:09:39 install linux on it Mar 14 11:09:42 ??? Mar 14 11:09:43 profit Mar 14 11:10:41 buy mac, keep OS X on it, profit + FTW ! Mar 14 11:10:54 and let anyone see your data Mar 14 11:10:56 not profil Mar 14 11:10:58 *profit Mar 14 11:11:19 not sure i understand :) Mar 14 11:11:37 you probably didnt hear about latest ssl issue :) Mar 14 11:12:22 *yawn* Mar 14 11:12:35 hi all, it is possible to have a number near the notification in the notification bar? Mar 14 11:12:36 solaris ftw Mar 14 11:12:58 arcode :D Mar 14 11:13:25 xD Mar 14 11:14:37 gordon_ but this will help me some, right ? https://supporters.eff.org/shop/laptop-camera-cover-set Mar 14 11:17:16 android has its own issues http://www.informationsecuritybuzz.com/android-vpn-flaw-closer-look-means-secure-remote-access/ Mar 14 11:17:47 everybody screws things up Mar 14 11:18:10 yeah that's just it Mar 14 11:18:13 they all have their problems Mar 14 11:19:28 gordon_ and you guys have that awesome GnuTLS bug! http://readwrite.com/2014/03/05/gnutls-bug-linux-security-flaw-leaves-users-vulnerable-hacks Mar 14 11:22:02 but that apple one … i dunno, maybe i'm weird, but that extra break; seemed malicious; when you look at your code, don't you look and strive for symmetry and balance? its like a piece of art Mar 14 11:22:04 heh. if you listen to the linux fanatics that are always in denial (I'm a more realistic Linux user!) that gnuttls bug "isnt really a problem"... lol... Mar 14 11:22:24 sw gets bugs. people screw up. admit it. move on. Mar 14 11:22:27 i can't imagine gaving an extra break; i'd pick that up just scanning the code Mar 14 11:22:37 solved my question by importing backwarp prefs library as existing code Mar 14 11:22:44 backward Mar 14 11:23:30 My app has currently one Activity and one Fragment (added when app starts), but wen I push the back button, the app closes, that's good, but when I reopen the app, the Fragment is null and create it again, how can the first fragment stay visible? Mar 14 11:26:09 gordon_ i'm still trying to parse this one though http://redmine.replicant.us/projects/replicant/wiki/SamsungGalaxyBackdoor Mar 14 11:26:15 this is interesting Mar 14 11:26:24 g00s: thanks Mar 14 11:26:41 wonder if I got that bug too Mar 14 11:26:44 will check at home Mar 14 11:26:54 I dont have radio app ;) Mar 14 11:27:23 if i am especially paranoid about a piece of software, i'd compile it myself with statically linked openssl Mar 14 11:27:49 this is what i did with my mosquitto servers Mar 14 11:28:31 of course, there are hundreds of ways just to screw up configuring the server and client for ssl Mar 14 11:28:31 I dont have anything to OS X Mar 14 11:28:33 rather apple Mar 14 11:28:44 and I like kde ;) Mar 14 11:28:51 but at work I got a mac Mar 14 11:29:00 and I it has many good points Mar 14 11:29:03 but also bad points Mar 14 11:29:05 like everything Mar 14 11:29:25 only real issue is that Linux still doesn't handle hidpi screens Mar 14 11:29:34 most software is totally unusable Mar 14 11:29:52 Mavrik: maybe gnome ? :) Mar 14 11:30:10 gnome is just a DE Mar 14 11:30:24 I'm not spending my time on a system dealing with a DE :P Mar 14 11:30:32 Chrome has 0 support, GIMP etc. as well Mar 14 11:30:34 IDEA as well Mar 14 11:30:38 well, i guess the point i was indirectly making, is something bruce schneier said in https://www.schneier.com/blog/archives/2012/12/feudal_sec.html Mar 14 11:30:53 we're all relying on these big companies for security :) Mar 14 11:31:57 damn you apple and your sales figure lateness some mornings Mar 14 11:32:02 Mavrik: so I got good area to fix something ;D Mar 14 11:32:11 i don't know why it's so hard to get them out at 5:30, or why we can't see it in realtime Mar 14 11:33:52 ultra-: what's your app if you don't mind saying? Mar 14 11:34:15 https://itunes.apple.com/us/app/neural-for-ipad/id690041550?ls=1&mt=8 Mar 14 11:34:34 ultra-: real time is hard as payments may not get approved immediatley.. so this is actually a banking issue Mar 14 11:34:38 since i got a working network midi library and an arrangement to use it commercially, i've started android Mar 14 11:34:49 i did android first, then realize it doesn't support RTP MIDI :/ Mar 14 11:34:58 google and windows don't care about audio :/ Mar 14 11:35:08 oh i see Mar 14 11:35:32 e.g. if someone steels my credit card, charges an app on it and I then tell my bank to make this transaction invalid as my cc got stolen Mar 14 11:35:40 ah that makes sense Mar 14 11:35:53 still, i would think the release of figures at 5:30 am would be the same every day Mar 14 11:36:05 it's not a huge deal, i just like to see it before i go to work... not that i'm selling a lot Mar 14 11:36:05 yes, thats a point.. Mar 14 11:36:19 gonna start advertising on a subreddit after my android release Mar 14 11:36:27 they could report those transaction under "not confirmed" or anything.. Mar 14 11:36:50 looks cool, one of my first ideas was making a MIDI generator thing but the market is flooded with them Mar 14 11:37:44 yeah this uses midi but a proprietary "protocol" over MIDI, it's a python script on the back end controlling ableton live (live's got a built in interpreter) Mar 14 11:38:03 general use stuff is pretty flooded but niche within niche can snag you some sales, i think Mar 14 11:38:23 good luck :) Mar 14 11:38:52 thanks :) Mar 14 11:42:04 ultra-: speaking of apples and androids way to distribute apps: http://www.businessinsider.com/facebooks-app-revenues-v-apple-and-google-2014-3 Mar 14 11:45:15 how to get the main class name for a package, so as to run the application via intent? Mar 14 11:45:43 theApplicationInfo.className always return null for me. am i using the wrong call? Mar 14 11:45:54 err, accessing the wrong member? Mar 14 12:07:07 hi all, I'm having an issue very similar to this, any advice? http://stackoverflow.com/questions/9489075/android-service-activity-2-way-communication Mar 14 12:14:35 Heya, does anyone what the default background for holo dialog's is called? Mar 14 12:14:52 I need to copy it into my project for pre-ics devices Mar 14 12:22:44 hello, i have a fragment based app. when button is clicked (on the fragment), onClick(View button) is received , i want to know is how to find root of the fragment so that then i can later do root.findViewById(R.id.my_label). (i dont want to find the relative path from button to label.) (shall i do recursively ().getParent() till not null) Mar 14 12:32:43 hi guys .. need help with this http://stackoverflow.com/questions/22402941/up-navigation-to-parent-goes-always-to-main-activity Mar 14 12:40:08 Guys need help http://stackoverflow.com/questions/22405129/how-to-detect-the-hand-gesture-in-android Mar 14 12:40:29 Share your ideas how can this possible Mar 14 12:41:51 Willams, http://opencv.org/platforms/android.html Mar 14 12:41:54 have fun Mar 14 12:42:01 Computer Vision isn't exactly easy Mar 14 12:42:38 hello guys i am new to android development and i was searching for the place where i could share the app with other people and share theirs too Mar 14 12:42:46 is there some place like this Mar 14 12:43:02 github probably has a lot of FOSS applications you can look at Mar 14 12:43:18 guys I am looking for library which extract speech from audio and turn it into text Mar 14 12:46:22 sonOfRa : I did not find that thing in open cv Mar 14 12:46:35 Big surprise there Mar 14 12:46:40 You'll have to write it yourself Mar 14 12:46:53 really ? Mar 14 12:46:56 It's not like you can do OpenCV.isCurrentImageClenchingAFist() Mar 14 12:46:58 no library exist ? Mar 14 12:47:13 I don't think you have any idea what you're diving into with video processing Mar 14 12:47:52 No Mar 14 12:50:26 sonOfRa: What do you mean of you have any idea what you're diving into with video processing Mar 14 12:51:15 here is a pretty rad book that walks through some tutorials that sound kinda similar to what you're trying to do: Mar 14 12:51:18 http://goo.gl/q7spTa Mar 14 12:51:51 I mean exactly what I said. You have no idea how video processing work, and you can't just put an API in it, call a method and be done Mar 14 12:52:12 ok Mar 14 12:52:26 pmarino : that thing I did not find in the opencv Mar 14 12:55:58 hmm, so you're trying to detect hand gestures using the cam? ... i found this vid, and looks like something kinda similar was done using opencv: http://www.youtube.com/watch?v=QrXwJIco4w8 Mar 14 12:56:18 okay I will see Mar 14 12:56:24 thnx Mar 14 13:01:20 hi! Question: What is the class of an inflated view? Mar 14 13:01:44 I'm trying to implement an ArrayAdapter and in getView() I want to check whether the convertView is of the right type... Mar 14 13:03:34 or, class is wrong. Can I somehow check what XML has been inflated into a view? Mar 14 13:08:54 Morning Mar 14 13:12:06 will java 8 jdk make any difference to adt or android studio? Mar 14 13:27:26 tinloaf: the BaseAdapter handles that for you using getItemViewType(int position) and getViewTypeCount(). Mar 14 13:27:53 handles that as in -> you have to override these methods. Mar 14 13:36:06 cezium: oh ok, it makes sure it only sets a convertView if it's of the same type? Mar 14 13:37:35 It only hands you back convertViews for the same itemViewType as you state is needed for the position. So yes. Mar 14 13:41:42 hey y`all, i`m trying to start several apps from my app with intents. It seems to work correct but not with "phone" and "contact" activity. in the phone case this line: test= getPackageManager().getLaunchIntentForPackage(packageName_selectedapp); returns null. why does it work for any app but this? Mar 14 13:42:33 packageName_selectedapp is the string i store the package name in**** Mar 14 13:45:02 In intellij how can I see which attributes are supported for a particular android xml namespace? Mar 14 13:45:41 JakeWharton, Hi, I built a java app to communicate with my server using REST and retrofit. When I moved the source over to android I get an error saying "E/AndroidRuntime(544): java.lang.NoClassDefFoundError: retrofit.RestAdapter$Builder" I have 'import retrofit.RestAdapter;' and the retrofit and gson jars in my build path. Mar 14 13:46:01 arghj ignore that. normal smart completion of course. Mar 14 13:46:02 JakeWharton, The app worked fine before I moved the source over to android. Mar 14 13:48:50 why are you asking JakeWharton specifically? Mar 14 13:48:54 symptom, have you tried cleaning and rebuilding? Mar 14 13:49:06 Sicp, JakeWharton made retrofit iirc Mar 14 13:49:24 ah Mar 14 13:49:26 still.. Mar 14 13:52:20 anyone have issues with menu buttons not using the android:enabled property? Mar 14 13:52:30 I have a mobile phone that disables my menu buttons correctly Mar 14 13:52:43 but then I have a tablet which is not working properly Mar 14 13:52:51 the buttons still appear enabled Mar 14 13:53:00 'and' the icon in th etop left corner is missing Mar 14 13:58:40 Sicp, Yes he has helped me in the past when I've been stuck. I am of course open to help from others. And for the record I tried a few things over the past few days, as well as google. Mar 14 13:58:48 jonc-1, yes, clean didnt help Mar 14 13:59:05 :/ Mar 14 13:59:29 adt seems to run fairly well on an atom :) Mar 14 14:00:57 yea sure, was just curious Mar 14 14:01:12 symptom: you did right to tag him. others can help if they feel they can and if not he will see you've directed a Q in his realm next time he's back assuming a half decent irc client. Mar 14 14:05:05 what's the minimum i need from a sdk? Mar 14 14:05:45 SDK Platform, Google APIs and a System Image? Mar 14 14:12:22 ugh, why do all of the observer examples I find inherit from the observer class... I 'd rather just compose like a sane person Mar 14 14:12:25 symptom, are you able to show your gradle config? Mar 14 14:12:45 DallasG, not using gradle Mar 14 14:13:09 if I have a fragment FooFragment that contains a supportMapFragment, how can I get that fragment in code from within the Foo fragment? Mar 14 14:15:34 symptom, but you're sure retrofit is being compiled into the build? Mar 14 14:16:13 the jar is in my .classpath as a classpath entry, why wouldnt it be? Mar 14 14:16:21 classpathentry* Mar 14 14:18:28 DallasG, JakeWharton, http://pastebin.com/QrVqeZZf Mar 14 14:20:35 and these are my classpathentry's http://pastebin.com/jKGXxkSm Mar 14 14:31:21 cant see how to open/edit a resource png from within intellij. must be there. Mar 14 14:31:53 rgr actually if you reference the PNG in your java code Mar 14 14:32:12 in the gutter there will be a mini iconish thingie you can click on Mar 14 14:32:28 i see mini version of my 9 patch where the png is referenced in code Mar 14 14:32:33 click on it and it shows the ful png Mar 14 14:33:00 show yes. open editor no. (I dont see it in the java code - they are only referenced in the res files but same thing) Mar 14 14:33:18 but there must be an open override I would have though. Mar 14 14:33:20 thought. Mar 14 14:33:40 maybe not sure lol Mar 14 14:34:08 anyway gotta go rearrange my bedroom while tidying up the bomb site it has become Mar 14 14:34:14 afl Mar 14 14:34:16 err Mar 14 14:34:17 afk Mar 14 14:34:51 intellij is generally so well thought out one has to assume "user error" when something so obviously needed is missing... ;) Mar 14 14:42:51 Hi guys. I have an app where the name must be X in the app drawer. X text is defined in the label of Mar 14 14:42:51 When I define the title of the first activity of that app "Welcome to X", defined in the label of the , I have "Welcome to X" in my activity title, but also in the app drawer! Mar 14 14:42:51 How can I avoid that? This behavior is non sense. Mar 14 14:45:49 is there anything I need to do besides LoaderManager.initLoader() to have a loader run? Somehow, my onLoadInBackground is never called :( Mar 14 14:46:07 (I'm directly subclassing AsyncTaskLoader...) Mar 14 14:52:57 Ok the same seems to be determined by the intent filter android.intent.category.LAUNCHER Mar 14 14:54:39 Need to do it grammatically then. Mar 14 14:55:32 Question: Why does onCreate fire twice upon starting an app? Mar 14 14:56:21 I always forget, this is the main channel for Java android dev yes? Mar 14 14:56:28 i hope so :) Mar 14 14:59:03 it does fire twice? You're sure its not the super call too? Mar 14 15:09:08 Quick retrofit question... how do I prevent Retrofit from HTML encoding a comma in a query parameter? Mar 14 15:13:56 wait, cancel that... that's not the problem Mar 14 15:16:16 https://gist.github.com/anonymous/9549665 : this "boilerplate code" is generated by androidannotations. My naive Q is : why is the super class being checked for handling a resource menu being clicked before the user class? Mar 14 15:17:03 You'd have to ask androidannotations Mar 14 15:18:32 well, yes.... Same as any question here could be answered with "Ask google". anyway I figured it. Mar 14 15:18:56 its because its an injected class and needs to call back to my activity class. Mar 14 15:20:19 Generally you'd try and handle it in the subclass first, then pass to parent if not handled Mar 14 15:22:20 hi everyone ! Mar 14 15:22:44 Anyone here ever worked on Robolectric ? Mar 14 15:28:58 hello Mar 14 15:30:59 Hi freddy Mar 14 15:33:58 Hey, I'm wrapping up my first android program (hurray), but I'm struggling a bit trying to create an image array, can anyone help me? Mar 14 15:41:21 what is the difference between making private vs not Mar 14 15:42:27 trying to understand if I make everything private as oppose to just String text; for example if it will crash my app Mar 14 15:44:07 LoneSoldier728, take a java class/tutorial Mar 14 15:44:20 start android development once you actually have a grasp of the language you're programming in Mar 14 15:44:22 ya found it but I should explain Mar 14 15:44:36 I meant in terms of fragments and activities Mar 14 15:44:56 if I make something private can a fragment still access it if it is based off the activity Mar 14 15:45:08 since it is bound to the class Mar 14 15:45:42 http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Mar 14 15:46:04 ok I know the java deal I am asking in terms of activities and fragment Mar 14 15:46:15 since fragments are on top of activities Mar 14 15:46:20 you would just have to prefix the variable or whatever with the name of the class if your calling it from another class. Classone.variableABC = 1; Mar 14 15:46:25 .. it's still classes Mar 14 15:46:30 oh ok Mar 14 15:46:46 wasnt sure if fragment class extended did something special in that regards thanks Mar 14 15:47:28 If I call setOnClickListener(...) on a view I'll overwrite the previous listener, right? Mar 14 15:52:17 and also, when an android connection is established in devBytes I know they discuss 1-2mb is peak performance for sending at once... is that including what gets sent out, besides what just comes in, or each way is considered a separate 1-2mb Mar 14 15:57:22 Assuming I already have images stored in my project called image1, image2, and image3, could I create an image array like this: Mar 14 15:57:22 private Image[] images; Mar 14 15:57:22 images = new Image[3]; Mar 14 15:57:22 images[0] = image1; Mar 14 15:57:22 images[1] = image2; Mar 14 15:57:22 images[2] = image3; Mar 14 15:58:48 Guys I am looking for some libr which is able to extract text from audio Mar 14 15:58:48 I am developing an android app and I was wondering how much does it cost to put it on app store? Mar 14 15:59:06 like $25 or something the first time Mar 14 15:59:13 aha Mar 14 15:59:14 tnx Mar 14 16:11:49 25$ exact Mar 14 16:11:56 just put one out the other week Mar 14 16:11:59 no Mar 14 16:12:19 it costs $25 to register as a published on the Play Store - one-off payment, unlimited apps, no renewal fee Mar 14 16:12:44 right im assuming if he did not know how to put it up Mar 14 16:12:52 then he has to pay the 25 Mar 14 16:21:20 How do I get the log of a crash on a phone that wasn't connected to my computer, but now I connected it. Can I grab the logs through adb somehow? Mar 14 16:24:37 logcat Mar 14 16:24:42 logcat -s AndroidRuntime Mar 14 16:55:44 How do I get the log of a crash on a phone that wasn't connected to my computer, but now I connected it. Can I grab the logs through adb somehow? Mar 14 16:58:26 First you need to learn to read. Mar 14 16:58:30 eghdk_, adb logcat Mar 14 17:07:13 eghdk_: use monitor.bat in your android-sdk/tools directory, it formats logcat much better than windows command prompt Mar 14 17:08:28 anyone know how i could use a preprocessor with eclipse and java? Mar 14 17:08:36 EPG: and rops The crash already happened though. I don't need the logcat feed, but more of "give me the logcat for the last 10 minutes" Mar 14 17:08:42 i dont mind if i have to forfeit syntax highlighting Mar 14 17:09:01 eghdk_: logcat is cached on your phone Mar 14 17:10:18 eghdk_: your phone stores logcat and the PC reads it, but obviously it only goes back a short length (a few thousand lines?) Mar 14 17:10:39 if you didn't do much on your phone since the crash, it will still be in logcat Mar 14 17:10:49 hey folks. how do you set a single item in a listview to have gravity to the right? Mar 14 17:11:05 think like, a message in Google Hangouts, which may show up on the right side or the left side Mar 14 17:11:43 rops: That's awesome. How would I pull that logcat that is stored on the phone? Mar 14 17:12:42 eghdk_: every time you run adb logcat or use DDMS/monitor it reads back Mar 14 17:12:46 at least, it does for me Mar 14 17:12:50 s1gmab3ta, maybe in getView Mar 14 17:13:13 eghdk_: open monitor.bat and scroll to the top of the logcat window Mar 14 17:13:20 EPG, right, I get that it is something I should do to the view I return in getView(), but I just don't know what method to call to make it happen Mar 14 17:13:48 hm, could be setLayoutParams or similar Mar 14 17:14:11 In AVD how can I change target to an older version of android? Using SDK manager I have downloaded 2.3.3 but for some reason only the default option of 4.4.2 is present. Mar 14 17:14:18 I tried doing adb logcat > myfile but it seems to "hang" in terminal Mar 14 17:18:06 eghdk_ do logcat -d > myfile Mar 14 17:20:11 hm. ViewGroup.LayoutParams doesn't contain a member or setter that appears to relate to gravity, though Mar 14 17:20:25 canvs2321-: THANK YOU SO MUCH. There was a crash that is crazy hard to reproduce and I never have my computer hooked up to save the log. Thanks man. saved me on this one. Mar 14 17:21:48 hmm needed to close the eclipse for some reason, now it works.. Mar 14 17:27:23 s1gmab3ta, there's also setGravity Mar 14 17:30:38 in regards to in app billing V3, is there a known bug when testing with android.test.purchased as the SKU? Mar 14 17:31:40 i was assuming that by using this as my SKU i could purchase it more than once, to test multiple times of course. as it stands now, i purchase it one time and then get the error that the item is already owned Mar 14 17:33:43 in Android.mk what is @mkdir -p $(dir $@) -- specifically the $(dir) part Mar 14 17:34:15 i can not find a comprehensive guide to android.mk build system anywhere... so a pointer to a manual for it would be appreciated as well Mar 14 17:41:30 Hello, any know of where i can find the blue tinted overlays for how to perform certain things on tutorials? Mar 14 17:41:40 eg https://support.google.com/gmm/answer/1079041?hl=en Mar 14 17:43:02 g'day lads Mar 14 17:51:24 EPG: setGravity is only a valid method for ViewGroup, so if I call setGravity on the view I'm returning, won't that actually affect the contents of the view (and not the view itself?) Mar 14 17:52:33 hi guys Mar 14 17:52:35 s1gmab3ta, dunno, might depend on the width of the list item View, I'd just test it Mar 14 17:52:46 i have a problem with Linux Deploy on Android 4.3 Mar 14 17:53:27 when i try to install linux, this happends updating environment ... fail Mar 14 17:55:50 hey guys.. quick question about app design. If you were to write an app with navigation drawer with say 4 items, and multiple sub levels on each item, would you use 1 activity, multiple fragments, or multiple activities (1 per item) with multiple fragmets (for sub items) ? Mar 14 17:57:27 I am trying to find an example or best practice from google about this with no luck Mar 14 18:00:11 is their any method to reset usb device in android.hardware.usb.* ? Mar 14 18:05:07 i have a problem with Linux Deploy on Android 4.3 Mar 14 18:05:10 when i try to install linux, this happends updating environment ... fail Mar 14 18:06:04 brandy_m: are we expected to have a clue what Linux Deploy is? Mar 14 18:06:46 yes Mar 14 18:06:53 oh good Mar 14 18:07:01 is it part of the SDK? Mar 14 18:07:35 fmento what's the functional use of the end of the breadcrumb? Mar 14 18:07:48 if the functional use is self contained within one fragment, might as well differentiatie Mar 14 18:08:33 if it's not, eg you're manipulating a list wherein each result doesn't need "full focus" don't differentiate Mar 14 18:11:03 Can you not set textSize of a table? Mar 14 18:11:09 only in xml? Mar 14 18:19:35 anybody here have experience with in app billing? Mar 14 18:22:21 will 35sp be different size on different phones? Mar 14 18:23:28 It can be, depending on the users settings Mar 14 18:25:41 Is there a way to crossfade from one imageMatrix to another? Mar 14 18:29:28 aloha people :-) Mar 14 18:29:50 hey Mar 14 18:30:28 I set OnKeyListener to catch back presses on a dialog fragment, everytime I press back it's calling back twice. Anyone with idea why? Mar 14 18:32:09 hmm.. I don't know why that is happening.. I had the same problem with an alert dialog using support library Mar 14 18:32:11 lasserix: probably once for down and once for up Mar 14 18:32:13 lasserix: maybe try just listening to "OnKeyDown"? Mar 14 18:32:19 and what I did was remove the listener the first time it was called Mar 14 18:32:26 ahh yeah that's it Mar 14 18:32:30 hwrdprkns: thanks Mar 14 18:33:04 when I'm done with a bitmap, should I bitmap.recycle or bitmap = null. Or both? and in what order if both? Mar 14 18:33:25 Is there an alternative to using EditText for getting numerical input from users? Mar 14 18:33:46 right now my fields display a "0" at startup Mar 14 18:33:52 pretty annoying Mar 14 18:33:58 eghdk calling the recycle is explitly telling the GC to do what it will normally do after some time after you set it null assuming that's the only reference to the bitmap Mar 14 18:34:33 vanryss pretty sure you can subclass edit text and set on init to change the value or change the hint (without subclassing) Mar 14 18:34:58 eghdk_ typically you want to call recycle ONLY when you know that a small hiccup in your app responsiveness is okay Mar 14 18:34:59 one question, i how do i call image by using edittext form? Mar 14 18:35:24 what i want to do is user types into form and submits it, and gets the image related to the input made.. Mar 14 18:35:39 the input will have exact name as image name Mar 14 18:35:46 eghdk_: ie, if the user completes the level and you've shown the SCORE stats screen, that's a good time since the user is busy and won't notice 50 ms of delay Mar 14 18:35:47 lasserix: thanks, yeah I just want it to display the hint on init Mar 14 18:36:10 vanrysss edittext.setHint("User you are a fool, enter input!"); Mar 14 18:36:43 right, I have the hint set in the xml Mar 14 18:36:54 should I change it to the controller? Mar 14 18:39:20 vanryss should be fine in the xml, just depends on how dynamic you want it to be Mar 14 18:39:51 for instance, unbeknownest to my superiors i added a dynamic hint such that if the user repeatdly types and clears types and clears like they are trying to emulate monkey Mar 14 18:40:01 the hint becomes "Ahh come on, you can do better than this" ;p Mar 14 18:40:16 mCOGDistance.setText(Double.toString(mCalculation.getVehicle().getCg())); Mar 14 18:40:24 I think it's overwriting my hints Mar 14 18:40:37 lasserix: got it. thanks Mar 14 18:40:43 hints are only displayed when there is no text Mar 14 18:40:58 right Mar 14 18:41:41 I'll have to do if statements I guess Mar 14 18:41:54 i have a list of objects whose fields are filled in a form Mar 14 18:42:08 but... I initialize an object on hiting the form Mar 14 18:42:22 why do you need hints then? Mar 14 18:43:00 users might not know what the field means Mar 14 18:43:24 how do I download android api 10, 11 and 16? Mar 14 18:44:13 from the SDK Manager, Felishia Mar 14 18:44:32 if you have the android SDK in your $PATH, you can go to the terminal and type "android" to bring up the SDK Manager Mar 14 18:45:14 otherwise, open Eclipse and press on the little Android icon that has a white downward pointing arrow on it Mar 14 18:45:14 Hi Guys, I need help on Camera.release(), every time I use it , it doesn't work, when I launch the camera again my App crash because of not properly releasing camera. Mar 14 18:45:32 Sicp, I need the API to download like a Zip, I don't have the SDK here Mar 14 18:45:48 why? Mar 14 18:45:56 Because I don't have internet at home Mar 14 18:46:00 you can even get the source (what you're asking for) from the SDK manager Mar 14 18:46:09 aside from the binaries Mar 14 18:46:09 Felishia: Download the ADT Bundle Mar 14 18:46:12 "binaries" Mar 14 18:46:14 there's no SDK manager installed on this computer Mar 14 18:46:23 androidnewb, that's like 500mb Mar 14 18:46:29 for each API Mar 14 18:46:33 I need just the API Mar 14 18:46:45 what for? Mar 14 18:46:55 Felishia: get a fast internet Mar 14 18:47:06 vanrysss: instead of hints, use subtitles Mar 14 18:47:18 take a seat androidnewb :P Mar 14 18:47:34 Sicp: ok :) Mar 14 18:47:56 try this Felishia , http://stackoverflow.com/questions/2766713/android-download-the-android-sdk-components-for-offline-install Mar 14 18:48:30 * Felishia has one hour max... to donwload a lot of things to build source code stuff :c Mar 14 18:48:38 not going to make it Mar 14 18:48:42 lasserix: do you have a link for that? Mar 14 18:48:52 or just doing it manually? Mar 14 18:48:58 because that's nowt how it's done, but you can try the link I checked the answer and I think it has what you're looking for Mar 14 18:49:14 just manually Mar 14 18:49:19 you can either make a compound control Mar 14 18:49:20 mmk Mar 14 18:49:26 Felishia, http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html Mar 14 18:49:38 Fuuuuuuuuuuuuuu https://community.kde.org/Necessitas/InstallSDK Mar 14 18:50:11 is there any p2p video streaming library or thereof for android that we know about Mar 14 18:50:25 okay I found an ADT-Bundle here!!! Mar 14 18:50:26 vanrysss: logic is that since it is form, what each input field means should always be explitly defined and obvious to user. a hint is more of an indicator as to what the input might be like, not what it is supposed to define exactly Mar 14 18:50:33 well it's my own one seems it's not been deleted Mar 14 18:50:38 hope it works Mar 14 18:50:50 how do I download like "ALL THE DAMMED APIS" Mar 14 18:50:59 lasserix: ah ok, makes sense Mar 14 18:51:41 vanrysss: heh i just say that because it's something i'd have to convince my superiors of, they'd be like wtf y u no like pre-existing layout!? Mar 14 18:52:26 Sicp, :c Mar 14 18:52:40 I found a adt here, I'm downloading a jre to make it work Mar 14 18:52:56 but how do I donwload the apis... I'm so short of time that I won't even google it Mar 14 18:57:04 I have been using a httpclient which worked fine Mar 14 18:57:26 but now I am getting 401 :-( Mar 14 19:01:28 How do I quitSafely pre APi 18? Mar 14 19:01:39 thread.quitSafely() that is Mar 14 19:04:05 kluy: Thread.interrupt() and have the Thread handle the InterruptException, and properly release all of its locks and stop doing meaningful work. Mar 14 19:06:00 hi :) what's the minimum required from a SDK to use it? Mar 14 19:06:11 SDK Platform, Google APIs and a System Image? Mar 14 19:06:43 jasabella: SDK platform and system image. Google APIs are ubiquitous, but not strictly required. Mar 14 19:07:01 jasabella: You can also do without the system image if you don't need an emulator and you don't need to compile for native. Mar 14 19:07:05 what's inGoogle APIs? Mar 14 19:07:23 jasabella: SpeechRecognizer, TextToSpeech, Maps, Places, Navigation, ... Mar 14 19:07:31 ahhh Mar 14 19:08:01 does the ACTION_MOVE action in a motion event contain the id of the pointer that is moving? Mar 14 19:08:26 is there alist somewhere i can find comparing te two apis? Mar 14 19:08:43 the system image is forthe virtual device i gather Mar 14 19:09:07 so im trying to use google play services for maps in android studio. I installed the Google Play Services and the Google play repository. How do I add it to my project? Mar 14 19:10:35 jasabella: http://developer.android.com/google/play-services/index.html is the major part of the APIs. Mar 14 19:11:43 wow thanks Mar 14 19:14:26 one question, i how do i call image by using edittext form? Mar 14 19:14:34 what i want to do is user types into form and submits it, and gets the image related to the input made.. Mar 14 19:14:42 the input will have exact name as image name Mar 14 19:19:00 anyone can help on adding google play services to my android studio project? All these tutorials im finding wants me to manually edit the build.gradle, I cant imagine that being the way to do it Mar 14 19:19:29 That's the easiest way to do it Mar 14 19:19:40 really? Mar 14 19:20:01 You just have to add a single line to your dependencies declaration Mar 14 19:21:05 elb0w_: Android Studio builds based on gradle.build. gradle.build is not generated, YourProject.iml is. Mar 14 19:21:38 freeone3000: ok Mar 14 19:21:47 SimonVT / freeone3000 so I would add something like this then? compile ('com.google.android.gms:play-services:3.2.25') Mar 14 19:21:57 where do I find my version if its 3.2.25 Mar 14 19:22:15 talking about that, is anyone using android studio exclusively? is it stable enough or should we still wait a bit? Mar 14 19:22:44 fmontano: Ive been using it for about a month, not that im great with it. But in ubuntu it hasnt crashed that I can recall Mar 14 19:22:50 You can see which versions are available in sdk/extras/google/m2repository Mar 14 19:23:01 fmontano: However I did a ubuntu update and now it wont detect my smartphone, which seems to be a small problem Mar 14 19:23:02 Then follow the folders until you see numbers Mar 14 19:23:16 how do i call image by using edittext form? Mar 14 19:23:16 what i want to do is user types into form and submits it, and gets the image related to the input made.. Mar 14 19:23:36 SimonVT: do you suggest a specific version? Mar 14 19:23:53 elb0w_: I am asking because I do use IntelliJ a lot and would be nice to switch entirely, but google say it is still in beta so, wasn't sure. Mar 14 19:24:00 I don't use it Mar 14 19:24:06 I'd assume you'd want to use the latest Mar 14 19:24:15 elb0w_: thanks for your input :) Mar 14 19:25:51 what minsdk version do you guys use Mar 14 19:25:54 im using 7 Mar 14 19:25:56 currently Mar 14 19:25:58 is that too low? Mar 14 19:26:12 Use 15 Mar 14 19:26:24 really? Mar 14 19:26:27 why is default 7 Mar 14 19:26:28 thats nuts Mar 14 19:27:46 we are using 10 right now Mar 14 19:28:02 i just installed 15 heh Mar 14 19:28:54 Hello world! Mar 14 19:29:08 hey there Mar 14 19:29:36 seems rather strange to have a new API version but the OS version number was just a "debug" increment Mar 14 19:29:42 How should I approach Volley if I'm currently using Loaders? Can they co-exist for, say, my JSON retrieval, or are they to be seen as two ways to accomplish that task? Mar 14 19:30:15 Both can fetch me the data off the UI thread, and both can populate the UI with that same data. Mar 14 19:30:53 hmm still getting @integer/google_play_services_version not found Mar 14 19:31:00 anyone see this issue before? my Google Android Purchase Status API response is missing the developerPayload. http://stackoverflow.com/questions/22412612/google-android-purchase-status-api-response-missing-developerpayload Mar 14 19:33:11 freeone3000: but cant i remove the thread? rather than just stop doing things in it? it seems bad that it hold keep running doing nothing. Mar 14 19:36:44 kluy: A Thread will terminate itself if its start() method returns, which will happen if your Runnable's run() method returns. Mar 14 19:37:21 elb0w_: Default is 7 because that's what 23% of android users use. Mar 14 19:37:37 "Users" being defined loosely, and it's probable a good number of them are using Kindle Fires. Mar 14 19:37:58 What is best ORM for Android? Mar 14 19:38:10 SneakerXZ: No. Mar 14 19:38:14 no? Mar 14 19:38:24 this message in Arabic for arabs her sorry guys: Mar 14 19:38:24 freeone3000: What do you mean? Mar 14 19:38:30 SneakerXZ: You should check out Cupboard or Sprinkles. :) Mar 14 19:38:40 SneakerXZ: Do NOT do an ORM in Android. You do not have the memory. You do not have the permgen space. You cannot generate classes on the fly; it's expensive (computationally AND memory-wise). Mar 14 19:38:47 اذا انت عربي ادخل دردش معنا في ##arabic Mar 14 19:39:04 SneakerXZ: I would, in fact, reccomend against any sort of heavy DB mapping. Mar 14 19:39:12 freeone3000: I don't want classic ORM as Hibernate but something lightweight Mar 14 19:39:43 So far I have found Sugar, OrmLite and ActiveAndroid Mar 14 19:39:44 SneakerXZ: You get how "lightweight" and "comprehensive mapping between the relational domain and a set of java objects" are pretty much mutually exclusive? Mar 14 19:39:49 ORM is by definition never lightweight Mar 14 19:39:54 SneakerXZ: Cupboard OR Sprinkles damnit. :-) Mar 14 19:39:56 n20: I will check them, thanks. Mar 14 19:39:59 SneakerXZ: :) Mar 14 19:40:25 SneakerXZ: I'm going to a talk regarding Sprinkles next week, it's a guy living around here. Mar 14 19:40:25 freeone3000: i dont have a Runnable. I extend handlerThread and implement Handler.Callback. So my accelerometer calls onSensorChanged and then I post a message and handle the message and to things. Mar 14 19:41:10 freeone3000: I just want library that will ease accessing database, it doesn't have to me ORM in true sense. Mar 14 19:41:17 How do i make a dialog fragment call its createView method? Mar 14 19:41:36 problem is on config change i have to resize the dialog fragment, but can't dismiss it due to saveinstantstate Mar 14 19:41:38 lasserix: It is called automatically. Mar 14 19:42:01 lasserix: onCreateView is called on orientation change if you setRetainState to true Mar 14 19:42:37 Does anybody here have 5mins to help me test something? There's a free copy of JuiceSSH Pro in it for you if you can help. Mar 14 19:42:42 ok, so I am having an issue that I don't understand.. I have an edit text that will cause a list to be populated (autocomplete style) making a rest request.. it works all fine, but, whenever I clear the edit text, the method mResultset.clear() causes the edit text not be editable anymore. I type and nothing happens Mar 14 19:43:08 n20: Where do you mean "here"? Mar 14 19:43:25 what is the problem juiceSSH? Mar 14 19:43:56 SneakerXZ: Mid-northern parts of Sweden (Umeå) Mar 14 19:44:08 JuiceSSH: FYI: You guys are awesome Mar 14 19:44:09 fmontano: We're about to run a promo giving away free upgrades, and i want to make sure the process works. Can I PM you? Mar 14 19:44:10 n20: Well, too far from my place (Czech) Mar 14 19:44:44 SneakerXZ: have you looked into GreenDAO Mar 14 19:45:10 jaynewstrom: I haven't, at this moment I am doing research of options Mar 14 19:45:16 SneakerXZ: Here's the link to Sprinkles: https://github.com/emilsjolander/sprinkles Mar 14 19:46:05 i see. I haven't used sprinkles yet. but i've been following it. and seems like a viable option as well. I've used GreenDAO quite extensively thought and it works really well Mar 14 19:46:07 n20: Do you have any experience with ActiveDroid? Mar 14 19:46:18 *ActiveAndroid Mar 14 19:46:21 http://www.activeandroid.com/ Mar 14 19:46:45 n20: Thanks :) Mar 14 19:46:57 SneakerXZ: Unfortunately none. I started off without an ~"ORM", then I went to use some sort of sqliteprovider (by Novoda) and now I'm on Cupboard (but prepared to be amazed by Sprinkles soon lol). Mar 14 19:48:23 * n20 heads out Mar 14 19:51:07 I pushed an alpha release to Play over an hour ago and the alpha testers aren't getting updates yet. How long does this usually take? Mar 14 19:51:28 give it a couple of hours Mar 14 19:51:36 fmontano: cool, thanks Mar 14 19:55:27 no prob bricker Mar 14 20:05:16 I am writing my first Android app, and would like to customize (or remove) the bar at the bottom of the screen. The back arrow button is fine, but the home (?) and window buttons need to go. Is this possible? Mar 14 20:05:38 not really. you can go full screen which reduces them to smaller dots Mar 14 20:05:51 but those are core functions of the android system ui so you can't just get rid of it Mar 14 20:05:53 you can also hide them completely on 4.0 up Mar 14 20:05:57 dragorn: Then how do games do it? Mar 14 20:06:03 Napalm: Can you help me find out how? Mar 14 20:06:08 how what Mar 14 20:06:17 ...to hide them completely. Mar 14 20:06:25 "android full screen api" or developer.android.com Mar 14 20:06:46 I'm already using the full screen API. Mar 14 20:07:08 Hey Napalm! sup Mar 14 20:07:18 howdy Mar 14 20:07:26 all good man.. how about you Mar 14 20:07:53 kesroesw1yth: View.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); Mar 14 20:08:06 yea, not bad Mar 14 20:08:08 long week Mar 14 20:08:12 Thanks. I'll read up more on that option and similar ones. Mar 14 20:08:12 afk Mar 14 20:12:31 same here.. I am working on a app that some other guy started.. omg.. the code is such a disaster man Mar 14 20:12:43 lol Mar 14 20:12:53 I get headaches whenever I try to find where the heck the guy is doing something Mar 14 20:12:59 lol.. so frustrating.. Mar 14 20:20:01 SneakerXZ that is not happening Mar 14 20:20:28 lasserix: Do you have android:configChange in manfiest? Mar 14 20:20:35 yeah Mar 14 20:20:37 for orientation? Mar 14 20:20:40 yeah Mar 14 20:20:41 well that is why Mar 14 20:20:50 in that case you need override onConfigurationChanged Mar 14 20:20:57 with what? Mar 14 20:20:58 and do orientation handling that Mar 14 20:21:14 yeah that was my question: how do I dismiss the dialog or make it call it's create view? Mar 14 20:21:26 remove android:configChange Mar 14 20:21:32 if i try to dismiss it/ show it again gives me illegalstate since can't call that after saveinstance has been called Mar 14 20:21:37 and use setRetainState to true Mar 14 20:21:41 it will then call createView Mar 14 20:21:43 kesroesw1yth: you need to check if it is honeycomb or higher and also if it has soft buttons before hiding the menubar Mar 14 20:21:45 and recreate activity Mar 14 20:21:47 i need to do resize Mar 14 20:21:55 no Mar 14 20:22:00 i can't remove config changes Mar 14 20:22:05 why? Mar 14 20:22:12 fundemental to the rest of the app Mar 14 20:22:29 ok Mar 14 20:22:32 then use this method Mar 14 20:22:33 http://developer.android.com/reference/android/support/v4/app/Fragment.html#onConfigurationChanged(android.content.res.Configuration) Mar 14 20:22:33 this is just for a dialog fragment that hosts a tutorial Mar 14 20:22:45 Configuration contains information about current orientation Mar 14 20:23:03 you can override and do appropriate changes like resizing Mar 14 20:23:40 do you always make sure all locking is 100% in your threads or do you test and see ok i have tested on a lot of devices and it is never a problem? if a crash/error is not terrible? Mar 14 20:26:16 If you're only relying on testing to verify your threading/locking, you're doing it wrong :) Mar 14 20:26:57 You should be able to convince yourself that the threading/locking is correct. And then use testing to verify that (but not to convince yourself of it in the first place) Mar 14 20:27:21 How to make a pager adapter call it's instatiateItemmethods again? Mar 14 20:28:32 can I set environment variables with gradle? Mar 14 20:28:40 lasserix: you remove the item) Mar 14 20:28:50 shigeru: you can set build config variables Mar 14 20:29:09 SmeakerXZ, yeah seems flawed tho ;p Mar 14 20:29:24 yeah i know how to do that, just tyring to migrate a buidl system to gradle and theres a bunch of things relying on environment variables Mar 14 20:31:06 lasserix: why would you need replace item in first place? Mar 14 20:31:16 resizing bitmaps Mar 14 20:31:32 you can retrieve the item and get bitmaps and resize them Mar 14 20:31:46 just put your logic outside instatiateitem... Mar 14 20:32:33 yeah i really don't want to spend any time refactoring this since i am being forced to revert a week of work because of one comment by a reviewer Mar 14 20:32:34 lo Mar 14 20:32:36 ;p Mar 14 20:32:58 but thanks got it working Mar 14 20:36:34 Sensor.TYPE_MAGNETIC_FIELD <- which hardware sensor is that? Mar 14 20:36:42 android:name="android.hardware.magnetometer" Mar 14 20:36:43 android:required="true" Mar 14 20:37:04 why is it possible to write gibberish as hardware? android.hardware.gibberishblag Mar 14 20:37:10 and no error? Mar 14 20:41:06 gibberish? Mar 14 20:42:09 maybe there is a magnometer that goat and monkey users use Mar 14 20:42:20 kluy: because its a string? Mar 14 20:42:20 or it was deprecated? Mar 14 20:43:05 Sensor.TYPE_MAGNETIC_FIELD <- which hardware sensor is that? Mar 14 20:44:19 kluy: the stuff that goes into the xml-files are not necessarily been checked before compiling... you can also specify activities that don't exist and your app will still compile, you will get classnotfoundexceptions whenever your app tries to actually use (and thus instantiate) them Mar 14 20:45:23 same goes for layouts, attributes are queried at run time Mar 14 20:49:24 Anyone ever get a retrofit error... It is saying expected an object but got a string... but I am sending a json object back... so confused... Mar 14 20:54:54 LoneSoldier728: Yeah, I think I've had an error sort of like that. I would recommend cranking up the logging so you can see what the result object actually contains. The #1 error most people make with Retrofit is expecting a JSON object returned when Retrofit passes the result through Gson and return POJOs. Mar 14 20:55:45 LoneSoldier728: restAdapter.setLogLevel(RestAdapter.LogLevel.FULL) Mar 14 20:56:05 yeah I see it Mar 14 20:56:27 POJO = Plain Old Java Object... The response object should be the actual result, not JSON Mar 14 20:57:11 I am sending this http://pastebin.com/3NYiMsGr Mar 14 20:58:11 LoneSoldier728: Don't. Create a Java object to represent that. It'll make your life MUCH easier. Mar 14 20:58:41 what do you mean Mar 14 20:58:45 I am sending it from my server Mar 14 20:58:47 as json back Mar 14 20:58:57 LoneSoldier728: Oh, I thought that was what the client was sending. Mar 14 20:59:03 nope Mar 14 20:59:16 I am getting the error on the callback Mar 14 20:59:23 maybe I am using the callback wrong Mar 14 20:59:25 let me paste it Mar 14 20:59:31 LoneSoldier728: You should create a Java "Response" object Mar 14 21:00:47 http://pastebin.com/6pqXZUP7 Mar 14 21:00:49 does that help? Mar 14 21:00:56 what do you mean create, where? Mar 14 21:03:29 on my backend? Mar 14 21:03:40 @colintheshots Mar 14 21:03:55 Something like this http://pastebin.com/cWSshid5 Mar 14 21:04:13 I'm just not sure what type corresponds to that _id variable Mar 14 21:04:29 Hi all, could someone help troubleshoot a repo problem? I have changed the repo local_manifest to leave out a project, and replace it with one of my own in github. repo sync now fetches my code fine, but I wind up in a detached head state. I have done a repo start . from the top level of the project, which gets me onto a branch, but it doesn't know about the remote, and doesn't seem to be tracking properly... is this normal? Mar 14 21:04:51 ya not a problem, but where does that go exactly Mar 14 21:05:02 LoneSoldier728: You need to create an Object to encapsulate the results of the JsonQuery... ignore the fact that it's Json because Gson will be parsing it Mar 14 21:05:11 wait is it a problem if I have key: values sent back that are not defined in my response Mar 14 21:05:34 the UserResponse in the Callback Mar 14 21:05:36 looks like this Mar 14 21:05:47 no Mar 14 21:06:17 http://pastebin.com/E9hhVg2t Mar 14 21:07:08 LoneSoldier728: The field variable names should be the same as the names in the Json response Mar 14 21:07:36 so if one variable i.e. v__0 is not included it will break it? Mar 14 21:07:55 ok, I was just sending the db results back but I will create the object on my server side then of the values necessary Mar 14 21:08:03 never mind, repo set up my remote names differently than i had thought... git push works Mar 14 21:08:05 thx anyway Mar 14 21:08:54 LoneSoldier728: Gson needs to know what to do to parse it. If you don't cover a given name, I believe Gson will treat that as a null by default. It's configurable. Mar 14 21:09:20 ok let me try to create an object specified without the v Mar 14 21:10:14 LoneSoldier728: If you're only using part of the result object, you should only Expose the fields you need for now... excludeFieldsWithoutExposeAnnotation() on your GsonBuilder Mar 14 21:11:17 can I not re-use a response class Mar 14 21:11:26 I am using it for every user call Mar 14 21:11:53 I am saying if something is not passed back that is in the response class would that have an effect Mar 14 21:12:03 or only the other way around Mar 14 21:12:47 LoneSoldier728: You should have a data object that encompasses the response. It can be anything you want. If you use the Expose annotation and the option I mentioned, you can have optional fields in the response. Mar 14 21:13:54 oh ok, let me see if this works Mar 14 21:14:26 LoneSoldier728: Let me take that back.. By default, Gson will return nulls if you don't include a field in the response... the Expose mechanic is for ignoring fields you don't need yet. Mar 14 21:19:19 LoneSoldier728: I think your problem is that userId does not correspond to anything in the response object. Mar 14 21:19:24 hm, well I edited my code and it is now not even showing the object... Mar 14 21:19:36 yeah I set the values in a new object I created server side Mar 14 21:20:04 but getting an error for some reason same one retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2 Mar 14 21:21:16 ok nvm Mar 14 21:21:16 LoneSoldier728: The names have to match up. Maybe focus on just getting a couple fields to parse at first and expand until it all works. KISS principle. Keep it simple. Mar 14 21:21:17 i know why Mar 14 21:21:24 It works now for the most part Mar 14 21:21:47 it is crashing but that might be because of something else... it was error-ing this time because I was trying to make a duplicate account Mar 14 21:22:51 LoneSoldier728: Also, keep in mind the Gson SerializedName annotation if the names cannot match for any reason Mar 14 21:23:18 well thanks for clarifying that, I am going to head out but now it is working thanks Mar 14 21:23:26 LoneSoldier728: np Mar 14 21:25:07 This post says "[FrameLayouts are] much faster than RelativeLayouts" Mar 14 21:25:14 http://www.vogella.com/tutorials/AndroidTools/article.html#exercise_tracewiew3 Mar 14 21:25:28 I was wondering A) why and B) which layouts are the fastest? Mar 14 21:25:32 i think that probably largely depends Mar 14 21:25:37 depends++ Mar 14 21:25:56 Mar 14 21:25:57 fastest Mar 14 21:25:59 framelayout just pins, no collisions to check Mar 14 21:26:15 no view is the fastest view Mar 14 21:26:17 fastest, your own layout Mar 14 21:26:27 ^^ Mar 14 21:26:41 JakeWharton: Space is pretty damn fast Mar 14 21:26:51 do everything in OpenGL Mar 14 21:26:53 fastest Mar 14 21:27:01 won't that drain the battery though? Mar 14 21:27:17 explodes: in most cases, RelativeLayout requires multiple passes which makes it slow Mar 14 21:27:17 i guess you could only render when dirty Mar 14 21:27:19 he said fastest, not optimal Mar 14 21:27:28 What is it we used to say in supercomputing? If you really want FAST, we can get wrong answers even faster than right ones. Mar 14 21:27:37 hehe Mar 14 21:53:19 hey guys...got an interesting android:fitsSystemWindows question Mar 14 21:53:26 I have two elements stacks on top of each other Mar 14 21:53:32 one is a video player, the other is a sort of system bar Mar 14 21:54:14 the video player has fitsSystemWindows="false" so it can be fullscreen. The system bar is ="true" so that when I press the screen and reveal the system bar and my custom system bar, they don't overlap each other, but rather stack Mar 14 21:54:18 so far, so good Mar 14 21:54:26 but then I've got a chat widget, too Mar 14 21:55:09 I want it to have fitsSystemWindows="true" so that when I show/hide the navigation it still has the chat input box visible Mar 14 21:55:26 but that seems to but a white area on the top of my chat, as if the top system bar might cover it Mar 14 21:56:17 any idea why that would be? This bar isn't where that system bar is. It's just at the top of the widget Mar 14 22:01:05 maxxxxxxx :) Mar 14 22:01:12 hey jazz Mar 14 22:01:13 what's up? Mar 14 22:01:19 haven't seen you in a long time :D Mar 14 22:01:22 How have you been? Mar 14 22:01:45 yea, been ok, yourself? :) Mar 14 22:02:18 not too bad Mar 14 22:03:07 great Mar 14 22:53:01 Hello! Mar 14 22:55:28 codeguru, o/ Mar 14 22:55:38 How's it going? Mar 14 22:56:03 codeguru, doing well. Mar 14 22:56:19 good to hear. Is this room very active? Mar 14 22:56:42 codeguru, im still new here maybe 3rd time Mar 14 22:56:43 I'm was just browsing freenode channels and this caught my eye Mar 14 22:56:51 ah Mar 14 22:57:00 oic. power to the noobs! Mar 14 22:57:35 codeguru, goda go buddy bye (sorry) Mar 14 22:57:47 no prob. thanks for saying hi Mar 14 22:59:11 codeguru: This room/channel is quite active, although it might vary depending on your timezone. Mar 14 23:02:46 hi guys, i have a problem with Linux Deploy on Android 4.3 Mar 14 23:03:01 Updating environment .. fail Mar 14 23:03:16 can you help me ? Mar 14 23:11:37 anybody here ? Mar 14 23:12:09 This channel is for app development, not app support Mar 14 23:12:18 Try #android or #android-root Mar 14 23:24:33 well, I'll start hanging out here and will chat any time someone wants to chat with me ;-) Mar 14 23:28:33 codeguru, can you help me ? Mar 14 23:28:56 nope Mar 14 23:29:13 did you try Simon's suggestion? Mar 14 23:29:16 How do i get an image from the folder when i use edittext Mar 14 23:29:47 Basicallyci want to output image which is called the value of editText form Mar 14 23:29:54 yes Mar 14 23:30:04 nobody can help me Mar 14 23:31:02 Any ideas on how do it? Mar 14 23:31:46 DarkChaoz: I didn't get what you're trying to do Mar 14 23:32:20 For example an img called a is in the res mdpi folder Mar 14 23:32:44 When i submit a through the input form Mar 14 23:32:55 I want it to show the img Mar 14 23:33:00 Which is called a Mar 14 23:35:37 Any ideas on how to do that? Mar 14 23:36:30 What are your reasons to do this? Mar 14 23:37:39 For learning purposes and an app i made. Mar 14 23:38:00 Just need to do that then its all done. Mar 14 23:39:48 Hello? :l Mar 14 23:45:21 Just sounds like a strange thing to do. How is the user supposed to know the names of the resources that are available? Mar 14 23:47:05 lol its a pokemon app Mar 14 23:47:09 Well pokedex Mar 14 23:47:22 Name of images will be pokemon names Mar 14 23:57:32 mmmmmmmmmmm banana split ;P Mar 15 00:10:43 Dem ping timeouts Mar 15 00:11:09 DOS again? Mar 15 00:21:57 I am stuck :( Mar 15 00:23:04 using SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION seems to work for the most part, and I have some elements with android:fitsSystemWindows="true" Mar 15 00:23:35 and other with ="false". So far so good. But this one element, when I give it ="true"...it is adding padding to its top, even though its top isn't on the top of the screen, where it would be effected Mar 15 00:33:07 do you have multiple elements set to true? Mar 15 00:33:51 fitsSystemWindows is a BFS that stops on the first match Mar 15 00:34:12 it's also only single-pass Mar 15 00:40:07 nice, interesting insight. Mar 15 00:53:49 hm, in AS, xml auto format organizes the attributes alphabetically, this puts 'defaultValue' before 'key', but its customary to have key first. is there any way to change this, or do we have to wait for AS to get that heuristic. Mar 15 00:54:00 this is for preferences.xml Mar 15 00:54:57 g00s: do we really care? :) Mar 15 00:55:17 i do. i like stuff being formatted consistently :) Mar 15 00:55:55 well, at least prefs -> code style -> xml -> arrangement would need qualifiers for file type i gues Mar 15 00:56:02 otherwise it works great Mar 15 00:57:02 anyone know a good tutorial on setting up a task list app with google tasks? Mar 15 01:02:01 nice, i made my own rule :) Mar 15 01:02:31 g00s: so, IntelliJ's awesome engine saves the day again? :) Mar 15 01:02:39 XD Mar 15 01:03:07 its global to all files, i can't say 'for preferences.xml' use this tule, afaik. … but good enough Mar 15 02:34:49 Hi, I am learning Android right now and I have a question. If I were to have two activites go back and forth between each other, how would I make sure to close one Activity after a button is pressed to go to another Activity? Does Android take care of that for me? Thanks. Mar 15 02:47:08 if you call finish() Mar 15 02:47:10 actiity is closed Mar 15 02:47:14 and destroyed Mar 15 02:50:15 http://www.itcuties.com/android/how-to-write-android-rss-parser/ Mar 15 02:50:17 hahhaa Mar 15 02:50:20 yeah 'parser' Mar 15 02:52:42 thanks gordon_ Mar 15 02:56:17 how do i either: vertically center the text in a textview, or set the textview's height to be the size of the text? Mar 15 02:57:55 How do I run python on android? Mar 15 02:58:28 http://stackoverflow.com/questions/101754/is-there-any-way-to-run-python-on-android Mar 15 02:59:28 neato Mar 15 02:59:34 i love python **** ENDING LOGGING AT Sat Mar 15 02:59:58 2014