**** BEGIN LOGGING AT Fri Nov 29 02:59:58 2013 Nov 29 03:00:30 looks good Nov 29 03:01:27 where can i get a hat like that ? Nov 29 03:01:43 dude fuck if i know but its dope. Nov 29 03:18:33 Well that sucks. I have to make a selector that sets the drawable to two different card layerlists depending on click state Nov 29 03:38:30 If I want a listener for list item subviews like a button, where can these be assigned? In examples I've seen theyre doing it in an adapter Nov 29 04:00:33 l2tp vpn on kitkat seems flaky as hell Nov 29 04:08:40 anyone using the new NotificationListenerService? Nov 29 04:16:37 I can't figure out how to control when the service gets started Nov 29 04:16:55 Hi, can someone clarify for me about Google Play API v3? Do I have to change anything on my side? or am I already using this API v3? do I have to change the .aidl file or something? a bit confused here.. would appreciate if anyone could clarify for me.. thanks Nov 29 04:22:19 guh Nov 29 04:22:23 bugs bugs everywhere Nov 29 04:22:28 restart phone to clear out service bugs Nov 29 04:22:38 restart eclipse to refresh logcat Nov 29 04:22:39 what's next Nov 29 04:25:38 I want to play around with the GPS sensor Nov 29 04:25:48 which APIs/classes should I read about/ Nov 29 04:28:11 http://developer.android.com/guide/topics/location/index.html Nov 29 04:30:49 i saw that page Nov 29 04:31:07 http://developer.android.com/google/play-services/location.html Nov 29 04:31:13 perhaps thats what I want? Nov 29 04:31:30 if you want to get locked into play services, yeah Nov 29 04:31:43 which is what google wants :) Nov 29 04:34:21 heh, kind of a nice contrast, desmin88 working on a super-christian like app, and then saying "dude fuck if i know but its dope." in regards to christian headwear Nov 29 04:34:50 otiose: lol Nov 29 04:50:17 well if not the play services api, then I want to use the geomagnetic field sensor? Nov 29 05:08:53 ViewGroup.LayoutParams(width, height) Nov 29 05:08:57 are width and height in px or dp? Nov 29 05:09:03 px, kind of Nov 29 05:09:30 do elaborate :) Nov 29 05:09:51 could be MATCH_PARENT or WRAP_CONTENT constants Nov 29 05:10:01 sure Nov 29 05:10:03 and if not, px? Nov 29 05:10:10 kind of Nov 29 05:10:17 what if I actually wanted them to be dp Nov 29 05:10:23 actually maybe I can just do match parent Nov 29 05:10:26 then do the conversion yourself Nov 29 05:10:27 you can convert dp Nov 29 05:10:32 and read the docs next time Nov 29 05:11:18 durka42: what you want is to check android.os.Build.Model and do a big switch on there that contains this http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density Nov 29 05:11:36 haha Nov 29 05:12:51 uhhh Nov 29 05:12:55 that seems like the wrong approach Nov 29 05:13:19 no it's correct Nov 29 05:13:22 it would work Nov 29 05:13:33 it would... Nov 29 05:14:03 i guess you could make a custom APK for every device Nov 29 05:14:06 somebody should make that into a library :P Nov 29 05:15:00 nah, just pack it as a sqlite database and require consumers open it, run a query, and get the result via a Cursor Nov 29 05:15:21 no need to mess about with libraries Nov 29 05:15:51 and license it as GPL Nov 29 05:16:41 boom. ship it Nov 29 05:16:49 sometimes i am too smart Nov 29 05:18:06 … I set match_parent Nov 29 05:28:35 how well do android dev tools run on a Mac? Nov 29 05:28:50 (something like Eclipse, or just the ADT itself) Nov 29 05:28:51 <_genuser_> geez no more custom libraries. Nov 29 05:29:18 <_genuser_> jqueries and whatnots of he world are turning it into a resume skill just to do something using someone else's code Nov 29 05:30:50 sanitypassing: they run just fine Nov 29 05:32:10 okay Nov 29 05:33:02 sanitypassing: but for the emulator, definitely go for genymotion Nov 29 05:33:04 its amazing Nov 29 05:33:28 well I haven't started looking into software just yet. Nov 29 05:33:33 ohok Nov 29 05:33:50 I just need to know if there are any major problems with the dev tools before I buy a macbook Nov 29 05:34:00 well, genymotion will work on windows/mac/linux so Nov 29 05:34:05 alright Nov 29 05:34:22 the emulator being horrible is a dev-tool problem, not an os problem Nov 29 05:34:44 osx has other problems but dev tools work just fine on it Nov 29 05:35:00 gkatsev: what problems? ive been fine Nov 29 05:35:37 just being osx Nov 29 05:35:44 well that's specific Nov 29 05:35:55 one major pain I've seen is that it had horrible multimonitor support. Nov 29 05:36:01 though, I haven't used mavericks yet. Nov 29 05:36:03 as opposed to? Nov 29 05:36:07 ah thats true Nov 29 05:36:10 linux or windows Nov 29 05:36:29 well windows has the problem of...being windows Nov 29 05:36:41 yes, that it does :D Nov 29 05:36:43 granted, i havent used it since vista, but w/o common unix utilities, im lost lol Nov 29 05:36:52 personally, I run linux with windows for gaming Nov 29 05:36:53 cygwin feels hacky... Nov 29 05:37:07 that's because it is Nov 29 05:37:18 it's a huge hack Nov 29 05:37:22 hi Nov 29 05:37:33 it does certain things without OS support, which requires insane hacks that make baby cthulhu cry Nov 29 05:37:34 i use mac becuase ive been using it since i was like 5; and linux because its nice Nov 29 05:38:11 I use mac too. and I'm having because it cannot find my android device connecting via USB Nov 29 05:38:21 oh thats strange Nov 29 05:38:28 i found that easier on mac than linux Nov 29 05:38:51 I'm not sure if it's because my Galaxy Nexus phone is running 4.2.1 Nov 29 05:38:57 tholapz: try killing the adb server and starting it again? Nov 29 05:39:05 no, im running 4.3 and its ok Nov 29 05:39:12 but I tried upload the .apk file and install directly on the phone and the app works Nov 29 05:39:14 * p_l meanwhile looks at the task of writing C code for mainframe, all for a chance of getting a Galaxy Tab ;P Nov 29 05:44:52 ok, thank you for the instruction earlier. I ran 'adb kill-server' and then 'adb install myapp.apk' again still not work Nov 29 05:44:55 * daemon not running. starting it now on port 5037 * * daemon started successfully * error: device not found - waiting for device - Nov 29 05:45:00 this is what was shown Nov 29 05:46:57 is it possible to connect a device as a media device and USB debugging at the same time? Nov 29 05:49:21 hi, all, did someone have the TelephonyManager.getNeighboringCellInfo friendly device list? Nov 29 06:07:34 seriously, what the fuck genymotion. Nov 29 06:07:48 how hard is it to see that virtualbox has been installed. Nov 29 06:15:36 desmin88: did you intall vbox on its own, or with the bundled package? Nov 29 06:15:51 bundled package. Nov 29 06:16:20 hmm Nov 29 06:16:31 well, just fixed it Nov 29 06:16:33 oh Nov 29 06:16:36 nice Nov 29 06:16:43 found its registry entries Nov 29 06:17:00 it was looking for virtualbox in the wrong path, which is dumb as hell considering its installer installed it for me Nov 29 06:17:14 :D Nov 29 06:17:25 on mac it asks you for the path Nov 29 06:17:31 now i can enjoy all this goodness Nov 29 06:17:37 yeah its pretty awesome Nov 29 06:18:24 I was going to test my app on this old samsung moment i had so i didnt have to use an emulator, but apparently samsung drivers dont work on 8.1 Nov 29 06:21:32 i'm still having problems with Android Studio's logcat disconnecting from Genymotion vm; anyone know of a workaround? everything else seems to work; build pushes APK to vm just fine, i can browse processes - just logcat stops Nov 29 06:24:32 hi! I am looking for a mirror of the SDK files, I am on archlinux and use `sudo android` to download SDK stuff Nov 29 06:24:42 is there a mirror in China Nov 29 06:26:25 4 emulators running now, so glad i have 16gb atm Nov 29 06:55:10 YAY! http://gyazo.com/d62142abb4f5e62fd3383f850ac453d7 Nov 29 06:57:43 Definitely feels good to see your app be consistent from api 7 - to 19 and work on tablets :D Nov 29 07:13:42 i click that link and get redirected elsewhere without any of your screencaps Nov 29 07:13:44 just FYi Nov 29 07:14:37 not sure about all that space between the listview items on the left Nov 29 07:17:11 ak5: Works for me, must be on your end? Nov 29 07:17:20 bankai_: I can adjust space between items easily Nov 29 07:19:06 bankai_: knocked it from 25 - 18dp Nov 29 07:21:05 Ouch, look at this overdraw.. http://gyazo.com/b7227b1610243356d4946bd4c6a09a78 Nov 29 07:34:30 Is it possible to get a Drawble's size with the "dp" unit? Nov 29 07:57:03 Hey guys, to set onclick listeners for sub views in a list item, where should this be done? Nov 29 08:00:06 anyone know if there is a Toast like notification that kan have an action Nov 29 08:00:27 like the swipe on hangouts gets rid of the chat and then asks you to undo in a toast like manner Nov 29 08:02:13 Hi, are there any documentations on how to switch from Google Play Billing v2 to v3? or there's actually no migration need on the part of the app-side? Nov 29 08:08:33 I'm trying to reserve a game name I'm working on in the amazon store but when I tested by creating another app with the same name amazon allowed this? Nov 29 08:19:00 still the same question like every day.. what is the best push method (beside of gcm) to run in a background-service? it tried http(rest), xmpp, mqtt but they are all not very good. (Queueing for nMinutes, reconnceting, _Heartbeath, etc.). Now i could see Deacon but it seems not work work in a background service and require another webserver (Methor). Im already running nginx and i dont Nov 29 08:19:00 want to spawn another webserver on a different port. So any idea? Nov 29 08:20:32 is amazon ec2 worth the bang for app backend Nov 29 08:20:42 or there are cheap alternatives Nov 29 08:51:15 do i want to use Google Play Location Services in my app? Nov 29 08:51:46 how could I use the GPS otherwise? Nov 29 08:52:27 you can use location provider directly. Nov 29 08:52:33 but then you need to handle some things yourself Nov 29 08:53:17 I've read trhough some docs but I'm still pretty lost Nov 29 08:53:43 are there any downsides to used the Location Services API? Nov 29 08:54:07 do I have to pay google if I make lots of requests? Nov 29 08:54:15 nope Nov 29 08:54:23 downside is that user needs to have Google Play services installed Nov 29 08:54:43 that is, it won't work on Amazon devices or for people using Cyanogen without Google account Nov 29 08:55:01 hm, then maybe I'll just use googles api Nov 29 08:55:10 looks way simpler than the alternative Nov 29 08:55:20 RustyShackleford, using internal location provider is pretty straightforward tho: http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(long, float, android.location.Criteria, android.app.PendingIntent) Nov 29 08:55:36 just remember to unsubscribe from location updates in onPause or you'll kill peoples battery Nov 29 08:56:38 using Location Services is a lot easier than using the normal providers (there's a few snags) but indeed you require Play sevice to be installed. Unfortunately, there seem to be some weird issues with the Fused Location Provider (which would be the main reason to use this API) and there's no source to figure them out Nov 29 08:56:59 okay so this app I'm thinking of deals with driving and avoiding red light cameras and speed cameras Nov 29 08:57:10 unless your solution is hacky in nature I wouldn't worry about custom ROM users. Amazon maybe... Nov 29 08:57:12 ideally the user wouldn't have to start it every time they get in the car Nov 29 08:58:02 so it would detect when the user is driving, and then monitor their location more closely Nov 29 08:58:09 is that feasible? Nov 29 08:58:36 Possible - yes. But keep battery drain in mind. Nov 29 08:58:54 https://developer.android.com/reference/com/google/android/gms/location/ActivityRecognitionClient.html Nov 29 08:58:59 RustyShackleford, Nov 29 08:59:05 If you use activity detection (from Goole Play Service) or write your own (use sensors, not location for this) ... Nov 29 09:03:06 so I'm still confused. Should I use google's location api? yay or nay? Nov 29 09:04:29 I'm not concerned about custom roms or android devices Nov 29 09:08:26 Hi, I would like to port a linux C-programmed utility which uses alsa/asoundlib.h to access the mic. I'd like a suggestion since I am quite new to the Android's Universe: is NDK a possible way? I've read worrying stuff about ALSA Nov 29 09:08:32 RustyShackleford: with the new kitkat location stuff you might be able to make it really battery-efficient Nov 29 09:09:28 f843d0: I'm processing audio recordings from the mic in a native library in one of my apps, and I'm using JNI to pass byte arrays Nov 29 09:10:52 f843d0, no, you can't just use alsa to grab microphone recordings from NDK Nov 29 09:11:05 but yes, you can use NDK C libraries to process recorded sound buffers Nov 29 09:11:46 Ge0rG, Mavrik: thanks for your answers; so, should I use OpenSL ES instead of ALSA? Nov 29 09:12:16 no idea on that Nov 29 09:13:22 Besides, processing the recorded sound buffers isn't so C-efficient committed, I mean, in your opinion, should I struggle down with NDK or I'd do better in reimplementing the whole thing with ordinary Android APIs? Nov 29 09:13:24 f843d0, it seems OpenSL is capable of recording audio on Android... I'm not sure since which platform API it's supported Nov 29 09:13:50 implementing stuff in Java with Android API's is always easier and more pain-free than playing with NDK Nov 29 09:14:11 depends on what you do. Nov 29 09:14:22 Mavrik: I see, many thanks for the hints Nov 29 09:14:26 depends on your use-case though, if you have a performance requirement you might not have a choice :) Nov 29 09:14:38 aiming for 60 fps game in java might become a burden Nov 29 09:14:53 hokkaido, we're talking about recording audio. Nov 29 09:15:09 Mavrik: that's what I meant with "processing the recorded sound buffers isn't so C-efficient committed" :) Nov 29 09:15:36 has anyone used Tim Roes's Enhanced Listview? Nov 29 09:15:40 java.lang.NoClassDefFoundError: de.timroes.android.listview.EnhancedListView Nov 29 09:16:00 lemonxah, obviously for some reason the library isn't compiled into your apk :) Nov 29 09:16:08 i have no idea why though Nov 29 09:16:12 its a maven repo Nov 29 09:16:18 and it doesn't moan about it in the idea Nov 29 09:16:23 IDE ** Nov 29 09:16:28 hmm Nov 29 09:16:32 android studio **** BEGIN LOGGING AT Fri Nov 29 09:18:38 2013 Nov 29 09:18:39 cool ima test again Nov 29 09:18:49 if that doesn't, try to download the aar file and make a files dependency instead of maven Nov 29 09:19:12 * Ge0rG recently broke gradle builds from within AS, by working until the laptop battery went empty. Nov 29 09:19:13 is android studio ready yet? Nov 29 09:19:17 RustyShackleford: no Nov 29 09:19:18 i much rather try to get the maven working cause all my libs are in maven Nov 29 09:19:28 I tried maybe a few months ago but went back to eclipse Nov 29 09:19:42 why would you do that RustyShackleford ? Nov 29 09:19:44 oh and sometimes, it have problems correctly resolve traversive dependencies Nov 29 09:20:00 and it doesn't include the libs enhancedListView need Nov 29 09:20:29 and it helped in that cases to simply specify the libs in your dependencies. Unfortunatlly i was never able to reproduce any of these :( Nov 29 09:24:57 if you want an app to work on iOS and android, whats the best course of action? Nov 29 09:24:57 timroes, it builds fine Nov 29 09:25:10 even from cli Nov 29 09:25:16 but it doesn't have that class Nov 29 09:30:14 so i should rather use aar file dependency Nov 29 09:30:31 i am using 0.1.2 timroes is that the latest version? Nov 29 09:31:30 lemonxah: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22de.timroes.android%22%20AND%20a%3A%22EnhancedListView%22 it seems alike :) Nov 29 09:32:09 ok cool i will use a file depency to test it Nov 29 09:32:21 i know there are several waiting pull requests, but unfortunately I had very less spare time in the last months, due to work. Hopefully end of december it should be done and i can finally commit some new versions Nov 29 09:36:10 i wish it just worked Nov 29 09:36:52 meh Nov 29 09:37:10 lemonxah: just another idea: do you use proguard? Nov 29 09:37:56 not yet Nov 29 09:38:08 think we should put that into the proguard? Nov 29 09:38:32 not if you use the 'default' file Nov 29 09:38:41 it should exclude all views from obfuscating Nov 29 09:38:48 so the names in the xml files can be found Nov 29 09:48:32 and it just started working Nov 29 09:48:44 even went back tot he original setup Nov 29 09:48:51 to the .. Nov 29 09:49:01 i have no idea why it didn't work before Nov 29 09:49:51 its cool that its working but a bit concerning Nov 29 10:11:17 guys, how to change ActionBar's bottom line color? I see this: https://developer.android.com/images/training/basics/actionbar-theme-custom@2x.png Nov 29 10:11:23 in dev.android.com Nov 29 10:11:48 It is default way or I need to draw it by myself? Nov 29 10:11:48 In this project, there is a lot of classes that inherits from LinearLayoutEx, when each of them is constructed, it is inflating a view in the constructor using itself as root, will not add to the view nesting a lot? Nov 29 10:33:34 When creating a new android project, is it generally recommended to always use fragments for everything? Even if supporting different UI's for large screens is not an immediate concern? Nov 29 10:34:22 I follow that rule generally Nov 29 10:34:29 I also end up using large displays a lot Nov 29 10:34:34 Nexus 10, nexus 7, etc. Nov 29 10:34:58 so Nov 29 10:35:08 triggers on sqlite dbs on android Nov 29 10:35:16 good idea? Nov 29 10:36:00 It seems like a good idea, not too much extra work is needed to use fragments after all Nov 29 10:36:13 Yeah, I think Fragments are incredibly easy to work with Nov 29 10:36:16 maybe it's justme Nov 29 10:46:27 guys, I've created new package, for example: root package: com.example.myapp; But then I've added com.example.myapp.Adapters; Nov 29 10:46:40 but AS says 'Can't resolve R' Nov 29 10:46:48 what I can do? I don't want to import R Nov 29 10:47:14 woozly: import R. or flatten your hierarchy Nov 29 10:48:48 and don't name the package with capital letter, this violates java naming guidelines Nov 29 10:49:43 imports are also fact of life, don't resist them. We usually let IDEs manage that shit for us and just collapse the whole import list out of view Nov 29 10:50:04 the first time you use R, you have to select if it's your R or android's R you want, and then you can just use it and never care about the issue again in that file Nov 29 10:51:10 If I addView a view that was previously added to something else, what is the expected behavior? Nov 29 10:51:44 armageddon Nov 29 10:51:48 Dammit. Nov 29 10:52:02 I can't do Tree-like structure of my project? Nov 29 10:52:18 but I see that import R is bad practice Nov 29 10:52:21 of course you can, but you're just being kinda retarded about it. Nov 29 10:52:30 what is the problem with import R? Nov 29 10:53:20 woozly importing R isn't a bad practice if you're referencing things from it Nov 29 10:54:15 Okay guys. import com.example.app.R; isn't wrong way? Nov 29 10:54:37 and: why I don't name the package with capital letter, if Android does? Nov 29 10:54:56 I mean: android.app.Activity; android.os.Bundle etc. Nov 29 10:56:51 and Can I do it without importing R, but with configuration Gradle? Nov 29 10:57:02 woozly: eh. You mean a class, not a package? Nov 29 10:57:17 alankila: Oh... my fail Nov 29 10:57:50 alankila: you right. Nov 29 10:57:57 every file, I believe, must declare its imports locally if it wishes to use unqualified references Nov 29 10:58:03 unqualified meaning not a full path to the class Nov 29 10:58:27 hi guys, i'm trying to customise the position, background and text colour on an action bar spinner. the android documentation at https://developer.android.com/training/basics/actionbar/styling.html only discusses how to change the background colour of the entire action bar. could someone point me in the right direction of how to do this ? Thanks! Nov 29 10:59:24 Okay. Where I can get Android examples, I mean great projects with open source code. I want to learn about this niceties. Nov 29 10:59:30 and thank you guys! Nov 29 11:02:41 And last question: Can I add 'drawable' directory? When I created new project in AS, i've got only postfixed 'drawable-' forlder, but no 'drawable'. Nov 29 11:02:42 woozly: I guess you could try searching for android stuff in github or acquire AOSP's packages Nov 29 11:03:42 whether any of what you find is great code is a matter of taste. I guess not all is bad out there. Nov 29 11:04:32 alankila: great thank you! Nov 29 11:07:18 woozly: yes, you can have a "drawable" directory Nov 29 11:07:25 any ideas? Nov 29 11:07:27 usually you put xml drawable/selectors in there Nov 29 11:07:41 CallumTaylor: tu Nov 29 11:08:12 and.. I need auto-update mechanism for my Corp app. What you can advice to me? Nov 29 11:08:33 because we will use a tons of android devices. Nov 29 11:11:51 Should I use built-in Google Corp capabilities for it? Nov 29 11:14:07 timroes, hi :) Nov 29 11:14:16 its working with maven no idea why Nov 29 11:14:48 i have a quick question though i am using a cursor adapter as my backing adapter for that list but its causing a flicker Nov 29 11:15:12 like the item will go away and the animation will finnish then its back in my list and then it dissapears Nov 29 11:16:01 the setDismissCallback clears it from my cursor Nov 29 11:17:24 yeah the flicker is a problem :D Nov 29 11:17:30 unfortunately not a problem i can solve Nov 29 11:17:44 yeah its something i need to do was wondering if you had any ideas Nov 29 11:17:54 i described it in the javadoc, mom Nov 29 11:18:08 appologies :) Nov 29 11:18:32 https://github.com/timroes/EnhancedListView/blob/master/EnhancedListView/src/main/java/de/timroes/android/listview/EnhancedListView.java#L138 Nov 29 11:18:49 the problem is, I cannot know how long you will need to delete the item, if you do it in another thread (like CursorAdapter does) Nov 29 11:19:01 so I must assume it has been deleted when you return from the method Nov 29 11:19:27 meaning you must make sure, somehow through synchonization, that you won't return from the method before your item ahs been deleted Nov 29 11:19:48 unfortauntely CursorAdapter has no easy method to do so, a very very dirty workaround is, to let the thread sleep before returnin from onDimiss Nov 29 11:19:59 for some a mount of time to be a bit more save that the item has been deleted Nov 29 11:20:20 I wanted to have a look into cursor adapter if you can modify it (or build a wrapper to prevent that) .. and again the problem with the lack of spare time :D Nov 29 11:21:15 yeah no worries i will build it into my adapter Nov 29 11:21:41 like a temp deleted state before its actually deleted Nov 29 11:22:31 yeah that will be the best i guess :) Nov 29 11:22:40 someone somewhere posted some kind of snippet to do that :D Nov 29 11:22:47 if i remeber correctly it was on stackoverflow Nov 29 11:22:56 unfortunately i don't have a link right now :/ Nov 29 11:25:42 Hi, all! I need your advice about touchscreen: it has active area about 800x480, but my display has resolution 1280x800.. How can I set right are to the touchscreen? Nov 29 11:26:28 hi! I am looking for a mirror of the SDK files, I am on archlinux and use `sudo android` to download SDK stuff. Is there a mirror in china or a list of mirrors anywhere? Nov 29 11:32:24 ak5, does android tool really need sudo privileges atall? Nov 29 11:35:08 Hello guys, ##java pointed me here. Quick question: I am having a Bitmap I want to copy instead of referencing. Do I need to derivate from Bitmap and implement clonable or is there already a way? Nov 29 11:40:01 I'm trying to reserve a game name I'm working on in the amazon store but when I tested by creating another app with the same name amazon allowed this? Nov 29 11:40:22 Darkchaos: Does Bitmap#copy not work? Nov 29 11:41:13 Or even just Bitmap.createBitmap(Bitmap) Nov 29 11:44:51 Oh that's what I did not even see! :) Nov 29 11:45:00 Which would you prefer Nov 29 11:47:48 I'd prefer to just not copy a bitmap Nov 29 11:50:42 Well, let's say I load one Texture out of the Resources, and then I want to alterate it by e.g. applying some color-filters to it or to do whatever I want, I'd need a copy. However I could still re-read the one from resources. Nov 29 11:55:41 btw, I am starting openGLES Development right now/tomorrow, do I need to take care about double-buffering or will the Engine do it on it's own? (same with android.graphics, however I believe I will remove that part from my engine, since most devices will support openGL ES 2.0, right?) Nov 29 11:57:46 still the same question like every day.. what is the best push method (beside of gcm) to run in a background-service? it tried http(rest), xmpp, mqtt but they are all not very good. (Queueing for nMinutes, reconnceting, _Heartbeath, etc.). Now i could see Deacon but it seems not work work in a background service (subscription works, but as soon as a message sent to the "Channel" it Nov 29 11:57:46 disconncets). Im already running nginx and i dont want to spawn another webserver on a different port. So any idea? Nov 29 12:02:15 hey guys! Would you recommend any easy way to implement printing image via wifi printer in my app? I want something like simple dialog in standart gallery app. Nov 29 12:04:04 pahaloom: I think it needs to write to /opt/ on my system, so yeah but not sure Nov 29 12:43:47 never mind, i found that the android asset studio generates styles information along with graphics. Nov 29 12:44:34 timroes, thnx a lot for all the help i got it working and i got rid of the flicker aswell :) Nov 29 12:44:38 great lib Nov 29 12:47:39 lemonxah: i am glad i could help somehow :) Nov 29 12:52:42 timroes, just one more question how can i stop the side swiping while scrolling that list view? Nov 29 12:58:10 nvm Nov 29 12:58:12 i am stupid Nov 29 13:01:45 Which parent theme should I give a ProgressDialog? If I specify parent="@android/style/theme.Dialog", I get a secondary background color of a box that is wider than the progress dialog Nov 29 13:01:58 And theme.ProgressDialog is not existing Nov 29 13:02:07 -t+T Nov 29 14:25:03 I'm planning to apply test driven development to my Android projects. What are the advantages and which are the most popular frameworks used in the community? Nov 29 14:29:49 why are tab titles in android uppercased? Nov 29 14:31:15 microsoft made it standard in visual studio Nov 29 14:33:08 when I got back to main activity I get a null pointer exception when referencing a button (Button)findViewById(R.id.search_button); , that button comes from a sliding menu, that loads an xml containing the button. Why could that be? The findViewById is executed too fast before the content loads? It happens only when I go back Nov 29 14:36:06 tomasso: that is strange Nov 29 14:36:25 :S yessss i keep scratching my head} Nov 29 14:37:13 tomasso: I can share the scratch for a few minutes, if you share the code :) Nov 29 14:37:52 i also did a while (search_button==null){}; before calling it Nov 29 14:38:01 and waits foreverr Nov 29 14:39:14 its largeee let me make a smaller version Nov 29 14:46:44 hey all! X) Nov 29 14:47:29 anyone know a way you can identify whether you are running on the emulator or a real device?? Nov 29 14:47:44 what would be the best method to notify the UI of a change from a background thread running in a Service context? a Broadcast? Nov 29 14:49:17 <_biff> could i run an apk java parts on a webpage?of course it shuold work corretly... Nov 29 14:49:26 Ge0rg: bind to that service, use handlers? what kind of change? a simple on/off switch on a variable, update a view...etc Nov 29 14:50:01 canvs2321: toggle indeterminate progress, update a view with a status text Nov 29 14:50:24 canvs2321: binding to the service only allows calling from the ui to the service, not getting async results back Nov 29 14:50:36 canvs2321: unless I use message passing, which is not very structured Nov 29 14:50:41 ok, neither are broadcasts. Nov 29 14:51:21 broadcasts i think are a throw it out&someone catches it eventually. Binding you can send messages back to the UI Nov 29 14:51:36 canvs2321: using a Messenger? Nov 29 14:51:44 yea Nov 29 14:51:57 I don't really like that interface. you need a Handler, two Messengers and what not Nov 29 14:52:05 canvs2321, know whether you can identify a *real* vs emulated environment? Nov 29 14:52:24 so far I've failed to actually send a Message to a _background_ thread. the Message is always interpreted on the UI thread :( Nov 29 14:52:35 lacx: not off hand but my google is strong...? Nov 29 14:53:13 thought you wanted to send a message from the background thread, not to? Nov 29 14:53:32 hehe sorry canvs2321 being lazy I thought someone here might have a quick answer, im too impatient! X) Nov 29 14:53:42 canvs2321: correct. sorry for the confusion, I'm already sending messages _to_ the background thread (kind of), but I also need the reply Nov 29 14:54:08 lacx: can guarantee that's a common question already answered. check out stackoverflow or just google it then follow that link to stackoverflow Nov 29 14:55:19 I'm planning to apply test driven development to my Android projects. What are the advantages and which are the most popular frameworks used in the community? Nov 29 14:56:20 cool X) Nov 29 15:07:29 napster: but these presentations should get you started https://speakerdeck.com/jakewharton Nov 29 15:07:49 f2prateek1: cool, thanks mate. Nov 29 15:29:31 <^cheeky> ummm hii .. just wanted to say hope you guys had an awsome thanksgiving :) ok bye bye Nov 29 15:38:03 canvs2321, got it: isEmulator = Build.HARDWARE.equals("goldfish") Nov 29 15:41:06 Guys where can i promote my app Nov 29 15:41:09 for free? Nov 29 15:41:28 I'm poor and can't afford to pay for ads? Nov 29 15:41:47 twitter Nov 29 15:42:04 word of mouth is freww Nov 29 15:42:06 free* Nov 29 15:42:23 Yeah i can't twitter Nov 29 15:42:38 we are coders Nov 29 15:42:47 We are kind of shy Nov 29 15:42:53 get twitter Nov 29 15:42:55 follow other devs Nov 29 15:42:59 ??? Nov 29 15:43:00 profit Nov 29 15:43:15 Geographic restrictions Nov 29 15:43:56 i need effective alternatives Nov 29 16:14:33 DarkSlay3r, viral vids? X) Nov 29 16:57:01 how do i restart my app? Nov 29 16:59:43 kill it in the app switcher, or in settings -> manage apps Nov 29 17:00:13 hiDroids! Nov 29 17:00:44 is there a way to detect that the main menu is shown? (the menu with all the shortcuts to apps) Nov 29 17:01:30 durka42: i mean programmatically Nov 29 17:01:41 oh Nov 29 17:01:43 not sure about that Nov 29 17:02:04 why do you need to do that? is your app as buggy as eclipse? :p Nov 29 17:03:19 durka42: i'm providing a light and a dark theme, and the user can switch between them in preferences. usually apps like this will restart themselves when you switch Nov 29 17:03:33 good point Nov 29 17:03:36 maybe this? http://stackoverflow.com/questions/15564614/how-to-restart-an-android-application-programmatically Nov 29 17:03:43 thanks Nov 29 17:03:50 http://lmgtfy.com/?q=android+restart+application Nov 29 17:04:35 i found the answer a while ago CallumTaylor Nov 29 17:04:44 my exact search terms were "android restart app intent" actually Nov 29 17:04:51 :) Nov 29 17:10:00 good day everyone, has anyone tried to implement search with google maps v2? found this tutorial:http://tinyurl.com/meycnln but it seems like I am getting lots of errors while implementing it, not sure how to fix the errors ("getSupportLoaderManager().restartLoader(0, data, this);" error is on restartLoader if anyone have any suggestions or can just point me in a right dirrection, I would highly appretiate it Nov 29 17:14:03 Hi all, does anybody in here use Android Studio? Nov 29 17:18:42 I just completely removed Android Studio and installed from scratch to try and fix this problem but it keeps happning. I create a new project, give it min sdk version 11, and complete the wizard. When the interface comes up I have a Gradle Error claiming "Could not find any version that matches com.android.support:appcompat-v7:+ does anybody know what causes this error? Nov 29 17:31:56 found the reason it's looking for what it's looking for but not the reason it can't find what it's looking for Nov 29 17:31:59 hey just seen something wierd, instantiated a new class (which starts an AsyncTask) in my main activity onCreate() method, though now that seems to be blocking my android:onClick method.. Nov 29 17:32:19 so one of my buttons is no longer firing.. Nov 29 17:33:33 anyone know why that would happen? Nov 29 17:47:14 is there a way to detect that the main menu is shown? (the menu with all the shortcuts to apps) Nov 29 18:27:46 I keep getting force closes at "KeyCharacterMap.java line 334" Nov 29 18:27:48 Any ideas? Nov 29 18:27:52 Can't seem to track this one down Nov 29 18:28:07 And it's effecting quite a few users Nov 29 18:28:16 JoeTheGuest: see the link at the end of the topic? Nov 29 18:29:30 http://pastebin.com/r8LcLZ8h Nov 29 18:30:20 if you want an app to work on iOS and android, whats the best course of action? Nov 29 18:30:34 write two apps? Nov 29 18:30:45 or maybe if you use the NDK you can reuse alot of code? Nov 29 18:31:58 the best course of action is to write two apps... you may be able to share some code between them, you may not, depending on the app Nov 29 18:32:10 Ndk? Nov 29 18:33:00 sup peoples Nov 29 18:33:03 best: write two apps Nov 29 18:33:06 lnk-: bing it Nov 29 18:33:07 next best: use phonegap Nov 29 18:33:15 There are actually 2 versions of the same crash. http://pastebin.com/Dhr1nMEc http://pastebin.com/r8LcLZ8h Nov 29 18:33:25 JoeTheGuest: on a stock OS? Nov 29 18:33:49 how do i get every entry in my list view to have its own SharedPreference?? Nov 29 18:33:55 Somewhat. 11% and 33% ar rooted Nov 29 18:34:00 are Nov 29 18:35:51 I have no idea which screen the issue is being caused at so i'm not sure how to diagnose this one. Nov 29 18:43:19 I am getting following even though i do have "adb" present in the required directory? ->> Unexpected exception 'Cannot run program "/home/xx/Development/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/xx/Development/sdk/platform-tools/adb' Nov 29 18:45:33 what is the reason for the standardised usage of the "m" prefix for variable names? Nov 29 18:45:54 it stands for member, as in class member Nov 29 18:46:00 ovrflw0x: in a terminal, `ls /home/xx/Development/sdk/platform-tools/adb` Nov 29 18:46:11 durka42: to show that it's not a local var? Nov 29 18:46:15 right Nov 29 18:46:23 durka42: okay, thanks Nov 29 18:47:30 how do you do your backeds, AWS or good ol Nov 29 18:47:32 VPS Nov 29 18:49:26 Looney: I use the Hong Kong government as my backend Nov 29 18:49:50 I thought that backend and backup are different things Nov 29 18:50:12 yes? Nov 29 18:50:24 Hi. Nov 29 18:50:30 Hi. Nov 29 18:51:26 asked this question a few hours ago, seems like no one who was online knew the answer, going to repost it hope no one minds. Nov 29 18:51:27 good day everyone, has anyone tried to implement search with google maps v2? found this tutorial:http://tinyurl.com/meycnln but it seems like I am getting lots of errors while implementing it, not sure how to fix the errors ("getSupportLoaderManager().restartLoader(0, data, this);" error is on restartLoader if anyone have any suggestions or can just point me in a right dirrection, I would highly appretiate it Nov 29 18:51:59 Do I benefit somehow in my android application if I consue a HATEOAS conform REST service? Can my application use the provided links somehow without me coding the possible links to some actions? Nov 29 19:01:52 how do you feel about Java as a language? Nov 29 19:02:06 Java rules X) Nov 29 19:02:16 it's not my favorite, but it does work pretty well for Android Nov 29 19:02:31 I'm not sure what other language would be appropriate Nov 29 19:02:37 i like the higher level abstraction and excellent libraries X) Nov 29 19:02:51 C/C++ I guess Nov 29 19:03:07 I'm a fan of C++ but I'll admit it's super ghetto Nov 29 19:03:17 haha well said Nov 29 19:03:33 I don't know it well enough to be a fan or not Nov 29 19:03:46 But I love python Nov 29 19:05:21 Anyway RustyShackleford I'm having issues trying to bind to a local port on the Android device, every port i've tried seems to be in use, and ive tried quite a few! is there any reference of open ports/available ports in android? Nov 29 19:06:06 I'm afraid i don't know about that Nov 29 19:06:25 what do you want to use the port for? Nov 29 19:06:27 lacx: what is the exact exception you are getting? Nov 29 19:07:17 kroot, please fix the android fragmentation error Nov 29 19:07:31 please remove nosuchmethod and just return false or something Nov 29 19:07:39 this is really freaking freaking annoying that it crashes the app all the time Nov 29 19:07:51 RustyShackleford, sigv: bind failed: EADDRINUSE (Address already in use) Nov 29 19:09:04 im trying to create a local server for accepting a stream from the MediaRecorder and tidying it up before sending it elsewhere Nov 29 19:09:45 lacx: weird. what does netstat say on the device? Nov 29 19:10:21 umm how am i going to get console to do netstat? (this is on the emulator) Nov 29 19:10:28 sigv ^ Nov 29 19:10:38 lacx: oh, i have no experience in emulators. Nov 29 19:10:50 lacx: try a real device? Nov 29 19:10:58 fair enough thanks anyway sigv X) Nov 29 19:11:37 ive got one ill do that, but is there no reference for avaialable/used ports etc? Nov 29 19:11:55 if google can't help you with that, neither will i be able to. ;) Nov 29 19:11:57 sigv: Nov 29 19:11:59 $ ls /home/hp/Development/sdk/platform-tools/adb Nov 29 19:12:00 /home/hp/Development/sdk/platform-tools/adb Nov 29 19:12:13 hehe X) Nov 29 19:12:18 ovrflw0x: hmm, ls -l /home/hp/Development/sdk/platform-tools/adb Nov 29 19:13:23 sigv: $ ls -l /home/hp/Development/sdk/platform-tools/adb Nov 29 19:13:25 -rwxrwxr-x 1 hp hp 1231255 Oct 23 15:23 /home/hp/Development/sdk/platform-tools/adb Nov 29 19:13:33 looks good... Nov 29 19:13:33 ovrflw0x: also, in the error paste you said ~xx but now you are referring to ~hp. is that just random replacement from your part of actually messed up paths? Nov 29 19:13:38 hey RustyShackleford what's up man long time no see4 Nov 29 19:13:51 yeah it is hp i changed it :P Nov 29 19:14:47 ovrflw0x: and i assume running /home/hp/Development/sdk/platform-tools/adb will work Nov 29 19:14:57 how running? Nov 29 19:15:01 executing Nov 29 19:15:07 `/home/hp/Development/sdk/platform-tools/adb` Nov 29 19:15:47 sigv: Nov 29 19:15:49 $ ./adb Nov 29 19:15:50 bash: ./adb: No such file or directory Nov 29 19:16:12 ovrflw0x: cd /home/hp/Development/sdk/platform-tools/ Nov 29 19:16:28 put the platform-tools directory in your $PATH Nov 29 19:17:16 i cd'd into that dir and saw adb there and did ./adb Nov 29 19:17:21 alankila: eclipse is using a absolute path judging from the output so it should not have any diff Nov 29 19:17:35 Sure; but this guy is currently working on shell Nov 29 19:17:54 $ sh adb Nov 29 19:17:55 adb: 1: adb: Syntax error: "(" unexpected Nov 29 19:18:19 adb is not a shell script. Nov 29 19:18:40 i know bud alankila But, when i do ./adb it says no such file or dir Nov 29 19:19:14 hey RustyShackleford wtf you doing now bud Nov 29 19:19:59 sigv: ? Nov 29 19:20:52 also, how many times should onCreate() be called in a 'normal' app lifecycle? anyone? Nov 29 19:21:05 ovrflw0x: look, if you run `./adb` then that means you are executing the adb file in your pwd. Nov 29 19:21:19 cwd Nov 29 19:21:23 so? Nov 29 19:21:36 X) Nov 29 19:21:42 lacx: oops, yeah, pwd as in print working directory... n/m. Nov 29 19:21:51 hi, is there a intel-hardware-accelerated-execution-manager (haxm) for 4.4? Nov 29 19:21:58 hehe im just being pedantic sigv X) Nov 29 19:22:08 ovrflw0x: it is a 32-bit binary, and you have 64-bit OS, and you have not installed 32-bit compat libraries. Nov 29 19:22:15 <_biff> what is the best (free) server solution to streaming data between phones Nov 29 19:22:18 ovrflw0x: just a wild guess, but it is the most common reason for this error message Nov 29 19:22:31 * sigv has to wonder off for a moment Nov 29 19:22:32 at least once you're giving the right path to adb Nov 29 19:22:44 <_biff> for example for caht or video streaming etc Nov 29 19:22:50 Flaiker: Use genymotion, not haxm/sdk emulator Nov 29 19:22:52 sigv, im seeing evidence that onCreate() for my main activity is being called more than once, is that expected?? Nov 29 19:22:58 alankila: how to check if adb is 32bits? Nov 29 19:23:14 ovrflw0x: "file adb" Nov 29 19:23:23 desmin88: i tried genymotion but haxm was working way better for me back then. Guess ill try it again Nov 29 19:23:24 thanks Nov 29 19:23:26 and your OS Nov 29 19:23:32 adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped Nov 29 19:23:33 's 64-bitness can be determined by "uname -a" Nov 29 19:23:38 look for something like x86_64 in the output Nov 29 19:23:44 lacx: Sure, if your activity is destroyed for whatever reason it can be called again Nov 29 19:23:54 additional proof is if you write "ldd adb" and receive the error message "Not a dynamic executable" Nov 29 19:24:04 ohh thanks desmin88 Nov 29 19:24:16 adb is in reality a dynamic executable but until you have 32-bit support it can't tell Nov 29 19:24:17 yeah i got not dynamic executable Nov 29 19:24:27 lacx: http://i.imgur.com/4VPm4.png See this specifically, it is great. Nov 29 19:24:30 ovrflw0x: so if you have ubuntu-like or something, try "sudo apt-get install ia32-libs" Nov 29 19:24:40 or was it lib6/i386 these days, I forget Nov 29 19:24:49 desmin88, so is onCreate a safe place to do init *stuff*?? Nov 29 19:24:51 ... libc6:i386 maybe even Nov 29 19:24:53 thanks X) Nov 29 19:25:02 lacx: yes Nov 29 19:25:17 alankila: lib32z1 lib32ncurses5 lib32bz2-1.0 <-- which one? Nov 29 19:25:43 ... none of those. Well, they're all crucial part of 32-bit support but you really need a whole ton of them Nov 29 19:26:06 alankila: what's the package name? apt-get can't find it Nov 29 19:26:30 if "sudo apt-get install ia32-libs" can't do the trick, then try "sudo apt-get install libc6:i386" Nov 29 19:26:44 lacx: Also useful http://developer.android.com/images/fragment_lifecycle.png Nov 29 19:27:04 * alankila doesn't even use linux, that's how much I hate the piece of shit for reasons like this Nov 29 19:27:18 linux aint a piece of shit Nov 29 19:27:24 you are <3 Nov 29 19:27:48 linux users are the greatest neat freaks I know. they make a lot of problems for ordinary folks by always aggressively minimizing the installs so that e.g. 32-bit support is totally legacy and in fact not there out of the box Nov 29 19:28:14 based on what Nov 29 19:28:16 and then everyone has to spend half a day working out why "No such file or directory" is the error message for "I can't run this 32-bit executable" Nov 29 19:29:03 alankila: ./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Nov 29 19:29:21 ovrflw0x: better. So install lib32stdc++6 or some such elegantly named package Nov 29 19:29:37 lol Nov 29 19:29:49 guys i think alankila loves linux :P Nov 29 19:30:20 I used it for a decade. I sometimes miss it. But not enough to install it. Nov 29 19:30:27 ovrflw0x: you need the 32bit libraries for your distribution Nov 29 19:30:48 what's the whole package name Nov 29 19:30:55 appreciated desmin88 X) Nov 29 19:31:02 ovrflw0x: by the way what did you install to make progress before? Nov 29 19:31:08 since I dont' know what your distribution is, I don't know. Something with '32' in it. Nov 29 19:31:15 if it was libc6:i386 then you probably want libstdc++6:i386 now Nov 29 19:31:18 lacx: np Nov 29 19:31:36 one of them is ia32libs, there are others Nov 29 19:31:36 alankila: what OS are you using now? Nov 29 19:31:37 the lib32* stuff is older style Nov 29 19:32:09 ovrflw0x: OS X 10.9. All my servers run linux though. Have a laptop and gaming box with windows 7 too Nov 29 19:32:27 so I use all the OSes :-/ more or less. All that have any mainstream penetration that is. Except for iOS. Nov 29 19:32:50 alankila: you use linux on servers still call it crap? Nov 29 19:32:54 but my chief machine is OS X. I do all my development work on it Nov 29 19:33:27 ovrflw0x: my patience has run out of it. It could-should be so much better, that's all. Nov 29 19:33:58 alankila: patience in what part of linux distro? Nov 29 19:34:10 So happy. http://i.imgur.com/csJwqpb.png Finally lookin good Nov 29 19:34:42 desmin88: genymotion doesnt seem to have 4.4 either? Nov 29 19:34:48 I keep on running into ridiculous issues every time I use linux, whether it's incredibly low i/o performance until I change some random /proc/sys/vm variables, or poor behavior in video players until I change the cpu scheduler, or idiotically poor error messages that pepper *all* applications I seem to use Nov 29 19:34:54 Flaiker: nobodies got 4.4 Nov 29 19:35:01 :/ Nov 29 19:35:09 HAXM doesn't work on 4.4 either. Nov 29 19:35:20 * sigv returns Nov 29 19:35:21 So you're stuck with either justing user 4.3 or using the arm image Nov 29 19:35:21 well guess ill debug using my n4 again then Nov 29 19:35:40 alankila: so it's a linux kernel issue? Nov 29 19:36:14 ovrflw0x: kinda, I guess. I heard recently that linus torvalds discovered that linux has too much dirty buffer cache by default for modern ram sizes, so one of the problems go away Nov 29 19:36:33 and I heard they fixed the cpu scheduler crappiness in 3.12, which I'm running on one box, so I'm kinda hopeful that those odd issues gradually go away Nov 29 19:36:55 there's been talk of enhancing the process<->kernel error interface somehow so that kernel could tell applications meaningful error messages too Nov 29 19:37:07 but that last part is probably a decadal affair before it bears any fruit from the sound of it Nov 29 19:37:26 Hey guys, I've seen developers do this but I can't seem to figure it out for myself. How do I set the 4.4 color scheme in 4.3? Nov 29 19:37:36 alankila: which kernel do you like best linux, osx, bsd or windows? Nov 29 19:37:49 a typical linux error reporting story is such that application can say "OK" or "ERROR" via the return code, and you have to read some log file to discover the real reason Nov 29 19:37:57 The kernel alone is pretty worthless Nov 29 19:38:05 alankila: yeah there's far too little effort spent on X Nov 29 19:38:07 alankila: er UX Nov 29 19:38:11 ovrflw0x: I have no real preference in fact. I am too unqualified to say. Nov 29 19:38:19 alankila: and the people who DO seem to be spending time on UX are insane; ie, unity :P Nov 29 19:38:45 the best OS is the one that lets you get your work done, secondarily, the best one is the one that lets people I work with or am related to not hassle me to fix :P Nov 29 19:39:09 the best one is whatever isn't based so much on C. I had a lot of hopes for Android... Nov 29 19:39:17 alankila: why you keep OSX as chief machine? what qualities of OSX do you like Nov 29 19:39:44 ovrflw0x: full screen applications, kickass light hardware, fast suspend/wake, fast wireless connect, and the OS is really quiet and stays out of the way until I want to hear it Nov 29 19:39:58 hardware, heh. Nov 29 19:40:14 The small size and light weight of Air laptops is really the primary reason. Also, OS X has awesome touchpad. It allows using the system without a mouse without missing it one bit. Good riddance. Nov 29 19:40:33 I priorize portability above almost any concern in truth. Nov 29 19:40:50 alankila: you use laptop or a desktop? Nov 29 19:40:59 I just can't get into the OSX user experience. Drives me nuts. But I know I'm an outlier; I don't even run a desktop environment in linux. Nov 29 19:41:06 but I also like the ergonomics quite a bit. My main machine is 11" device. It is just about workable *if* you do everything with fullscreen apps. There's no screen estate to waste at all. Nov 29 19:41:26 ovrflw0x: I use laptops almost exclusively. Nov 29 19:41:35 wtf you do devel on 11 Nov 29 19:41:37 '? Nov 29 19:41:40 thata's crazy Nov 29 19:41:41 yep :-p Nov 29 19:41:50 I miss my sony picturebook :) Nov 29 19:41:51 it's fucking awesome. The device doesn't even weigh 1 kg Nov 29 19:41:53 (but not that much) Nov 29 19:41:55 * YuviPanda has a mbp and notes that it is super crazy fast *and* gives him 8-11 hours of battery Nov 29 19:41:55 lol 11 inches, how do you get anything done Nov 29 19:41:58 I can't imagine doing work on an 11 inch MBA Nov 29 19:42:06 I have a 13 inch for school and I can hardly use that Nov 29 19:42:06 * YuviPanda used a 10" netbook for a year :D Nov 29 19:42:50 I wrote ~200k lines of C on a picturebook before I finally slipped and spiked it into the floor. It was my primary/only system for years. Nov 29 19:43:02 Maybe this is why I need new glasses every 6 months. Nov 29 19:43:04 I just have different work habits. As I already mentioned, I use fullscreen apps exclusively. There is no OS chrome at all, it's just a single window on screen all the time. I have 4-finger gesture to switch to either left or right hand side application, so this e.g. allows me to switch between terminal and browser from IDE when developing web apps Nov 29 19:43:08 it's enough for me. Nov 29 19:43:27 also I really hate distractions so I've configured my OSes to absolutely shut up and do *nothing* to annoy me until I want to hear what they have to say Nov 29 19:43:27 alankila: basically how I run linux; i use i3; everything is full screen multi-desktop Nov 29 19:43:40 I only want to know if it's 5 minutes until they die out of battery Nov 29 19:43:45 alankila: if I ever am forced to osx, expect me to come bugging you for your config Nov 29 19:44:13 alankila: and if you ever have to leave osx for your laptop, check out the X1 carbon. It's a bit bigger than an air, but not by much Nov 29 19:46:18 I've been looking for high dpi but very portable machines... Nov 29 19:46:49 but I haven't found any one that would have the magical combo of light weight and long battery and affordable prize. Plus these laptops I already have are good for many more years Nov 29 19:46:50 yeah that's the one problem w/ the x1 Nov 29 19:46:54 alankila: so linux kernel is crappy code kernel? Nov 29 19:46:56 they haven't added a very high dpi screen yet Nov 29 19:47:16 Mine is 1600x900 which is fine, but not 300dpi fine Nov 29 19:47:17 ovrflw0x: nah. It's a great kernel but suffers from being kinda poorly tuned and always focused on server-like problems Nov 29 19:47:46 130dpi is nearly enough, but not quite. I can still see the pixels. Nov 29 19:48:01 the only real issue i have with this laptop is that it uses PWM on the LED backlight Nov 29 19:48:04 laptop view distance is longer than your average phone or tablet Nov 29 19:48:05 alankila: i thought bsd kernel was focused towards server... is linux too focused towards servers? Nov 29 19:48:15 dragorn: you can see or hear the flicker? Nov 29 19:48:21 and if I'm on a predominately white screen I can see it if I drop the brightness Nov 29 19:48:38 ovrflw0x: everything on linux is very much focused on backend processing type workloads. Nov 29 19:48:49 fortunately unless I'm in a browser, chances of my screen being all white are pretty slim Nov 29 19:49:04 ovrflw0x: there's a lot of very big players who have like hundreds of thousands of machines. They're very intent in making sure that linux does the best job it can for those workloads. Nov 29 19:49:04 beyond that the things a trooper, I can get ~7 hours out of it for doing code Nov 29 19:49:18 whatever it is they run, linux must ace Nov 29 19:49:21 it's got enough gpu to run most things I care about running, which surprised me Nov 29 19:50:02 alankila: so these players pay the linux kernel coders? Nov 29 19:50:12 Guys, I want to set click listeners for listview sub views (such as a button) where should this be done? Nov 29 19:50:37 ovrflw0x: pretty much. There's a whole bunch of big companies who hire the linux kernel developers. IIRC 75 % of them are paid by this or that company to work on some particular product or support function Nov 29 19:50:46 W000000p got myself printing off raw data from my socket and im happy! think thats enough for today!! Nov 29 19:51:32 alankila: and all these poor linux n00b users are using linux just so that they discover bugs in the kernel? Nov 29 19:52:14 I don't think that's a very accurate characterization. There's just a lack of concern for certain use cases because historically linux has had no non-server presence at all Nov 29 19:52:31 the 1-2 % of users that ran it on desktop were likely fanatical supporters and would put up with anything Nov 29 19:52:56 alankila: aww man good to know Nov 29 19:53:00 now we have things like android, though. I' not sure if that changes anything. Nov 29 19:53:07 time are a changin alankila! X) Nov 29 19:53:12 I don't think "linux is just for servers" has been true for 5+ years Nov 29 19:53:26 exactly Nov 29 19:53:31 There aren't a lot of issues in the kernel for workstation flow that can't be fixed by a distribution targetting desktops Nov 29 19:53:38 well, it hasn't been for desktop either, like ever. But it is a phone and embedded OS for sure. Nov 29 19:54:13 the bigger issue is the user experience is fragmented and balkanized and is generally ruled by people w/ no design experience Nov 29 19:54:16 alankila: so now i should run and get a OSX desktop? Nov 29 19:54:33 ovrflw0x: Just do a hackintosh setup Nov 29 19:54:37 ovrflw0x: feel free to run anything that works for you. I run OS X because I hate it the least at the present time. Nov 29 19:54:38 and is getting the creeping crud of needing a dozen components to do anything Nov 29 19:54:41 it's unbelievably easy Nov 29 19:55:18 pretty sure the android toolkit runs fine on any of the major OSes, use what you like to use. Nov 29 19:55:34 yes, I have experience on java+android on windows, os x and linux Nov 29 19:55:40 I've only had trouble on linux, all others just worked Nov 29 19:56:17 alankila: android is not linux, how android is supposed to change linux desktop presence Nov 29 19:56:19 like, on linux you have to fix some udev rules if you want adb to be able to chat with your phone. And there's been a long series of bugs between eclipse's SWT and GTK+ integration, because GTK+ people don't believe in stable APIs and don't care about anything but the latest version of GNOME, I guess Nov 29 19:56:39 icedp: we were talking about the kernel in that particular case. Nov 29 19:56:48 so, since android runs the linux kernel, it is a relevant topic. Nov 29 19:57:24 icedp: and since phones and desktops are both user-experience/interactive-workload centric, the scheduler improvements on either side are relevant for both Nov 29 19:57:41 now with android studio things might get better because IIRC java's swing doesn't actually depend on GTK+ all that much, so the GTK+-originated problems are likely history once android studio takes root Nov 29 19:58:09 the biggest thing in 3.12 kernel is that it has changes in ondemand scheduler to deal with partially idle workloads Nov 29 19:58:25 like video players that sleep part of the time, or game engines that also sleep until they wake up to draw the next frame Nov 29 19:58:28 I've never had gtk related issues with swt for what it's worth, under gentoo or ubuntu Nov 29 19:58:49 the ondemand scheduler generally forced cpu speed too low for these, which made these workloads to drop frames they could have drawn if the ondemand had only given them higher CPU frequency Nov 29 19:58:51 alankila: is OSX's mini PC worth buying? it has SSD along with Spinning disk for faster work Nov 29 19:59:19 dragorn: I have seen crashes in combo boxes and very low performance in completion lists at least... but these are 2-3 years ago Nov 29 19:59:31 dragorn: oh and one very annoying thing related to client side windows that made buttons unclickable in eclipse Nov 29 19:59:51 * alankila does rather hate GTK+ Nov 29 19:59:53 alankila: haven't seen it happen, but i don't run a gnome desktop, or even a gtk-aware window manager, so maybe that's bypassed some of the issues Nov 29 20:00:06 gtk is no gem to program for, thats for sure Nov 29 20:00:38 ovrflw0x: I don't really know, sorry. I haven't used those mini pc machines. I'm a full laptop dude because, as I said, I priorize portability. Nov 29 20:01:28 The mac mini is fine, just expect to pay a premium, especially if you don't plan to put your own RAM in after-market (depending how possible that still is, I haven't cared in years). Nov 29 20:01:49 It's a PC like any other. Read the specs. You probably want at least 8 gig of ram for doing android dev, more if you can get it. Nov 29 20:01:50 Apple is one greedy company for sure when it comes to pricing Nov 29 20:01:55 my devices run OWC's SSDs for instance Nov 29 20:02:23 they shipped the screwdrivers and stuff like that so I could swap out the low-end model's 64 GB for something spacier like 256 GB. I rather pay OWC than Apple who seems to have a 100% markup policy for upgrades Nov 29 20:03:14 8 GB is probably a good call. With 10.9, they have some form of compressed swapping or something like that, it's a real help Nov 29 20:03:29 alankila: so if i am running two desktops with 'same' hardware osx will give me better performance compared to linux? Nov 29 20:03:33 it seems to extend memory by about 50 % in actual usage, making 2 GB system seem like 3 GB system. Nov 29 20:03:59 these are promises Apple made and I actually use a 2 GB old macbook nowadays because 10.9 is memory efficient enough to make it usable again Nov 29 20:04:42 ovrflw0x: that's a dangerous question. I would almost certainly state that for many benchmark cases you'd find Linux beating OS X. But usage as a desktop system is not performance oriented, ergonomics matter too. Nov 29 20:04:47 linux desktops are not very well designed imho. Nov 29 20:05:24 I am especially appreciative of apple touchpads, and the pixel-precise 2-finger scrolling in x and y directions. I love it. Nov 29 20:05:56 On the other hand, I detest touchpads :P Nov 29 20:05:58 you can, by the way, get the same thing in GTK+3 today because it can do it, which is a huge victory for linux. Very few applications currently understand this, but there was some webkit-embedding browser called epiphany which was able to do it Nov 29 20:06:10 I played with it for a while and was very happy to see Linux catch up to OS X in one respect Nov 29 20:06:40 there's nothing comparable for windows as far as I can tell. scrolling in windows is chunky as ever. Nov 29 20:06:44 ovrflw0x: there is no absolute answer that you seem to be digging for. Pick whatever OS you use daily. Add more ram. Start doing work. What works for someone else will not necessarily work for you if you don't like that workflow. Nov 29 20:07:13 Which is why the android tools support the three major OS flavors people use instead of saying "X is the best everyone use it". Nov 29 20:07:53 alankila: I'm just too much of a keyboard monkey to get into the touchpad stuff. I hadn't noticed gtk3 had added that. Nov 29 20:09:04 one of the reasons to appreciate touchpad is that it's very accessible even to a keyboard user. It's not a long movement to do it, and for instance I hit 4 fingers of my right hand on touchpad all the time to switch apps. It's very natural Nov 29 20:09:44 there's also 3-finger back/forward in browser that I use a lot, and then 2-finger scroll in all apps, and of course the 1-finger movement of mouse cursor, which is slow and irritating whenever I have to do it, which is thankfully not often Nov 29 20:10:27 in place of painstakingly moving the mouse pointer, I rather learn the keystrokes like cmd+l to focus the location bar in browser Nov 29 20:12:00 not that browser's location bar is visible anyway in my system ;-) but I can bring it out by using cmd+l or, when feeling moronic, dragging the mouse pointer to the top of the screen Nov 29 20:12:06 even browser is perfectly fullscreen for me Nov 29 20:12:38 i've been playing with Shortcat (http://shortcatapp.com/) which is a pretty neat way of allowing much more keyboard control, though i'm not in the habit of using it enough Nov 29 20:13:05 alankila: Being on lenovo I've still got the old thinkpad keyboard nub + trackpad setup; i'd rather hit a meta key and use the nub than let go of the keyboard entirely and shift to the trackpad. Personal preference, of course. Nov 29 20:13:18 alankila: A friend went to the lenovo and was hugely disappointed in the trackpad and couldn't get used to the nub Nov 29 20:14:06 kevinb: neat; i'll keep that incase I get stuck on osx again Nov 29 20:14:16 kevinb: seems like a trick. I'd really hope for apple to innovate further. I really would like to see mouse pointer gone entirely and figure out ways to point or indicate things without having to move a cursor around Nov 29 20:14:32 these touch devices are great, but it will not work for a laptop like device Nov 29 20:14:49 maybe eye tracking would work, but it seems like it's probably not precise/good enough right now Nov 29 20:14:54 alankila: want to debate on linux kernel? #linux Nov 29 20:15:08 eye tracking would still essentially be a cursor Nov 29 20:15:29 yes, but it does't even have to be on the screen Nov 29 20:15:45 I look at a link and do some click to indicate I want to activate it. I'd prefer it if it worked well enough. Nov 29 20:17:17 ovrflw0x: I see how you're going about it. It will not produce a very good debate. Nov 29 20:18:12 alankila: why don't you put forth your concerns in #linux and see what answers you get Nov 29 20:18:26 notice how phogg basically stated that there's no bias/preference for servers but then right afterwards indicated that server admins make better bugreports. Basically 99 % of linux use cases have been on server historically. That's why server is so important. Nov 29 20:18:43 I already can predict how it goes. Nov 29 20:19:47 there's not a whole lot of difference between desktop and server use cases even. It's not that different. We have these wide CPU cores that have a lot of execution resources, and we have tons of RAM, and we have SSDs. These things mean that pretty much any algorithm will work just fine if it's even minimally fair. Nov 29 20:22:47 I need help regarding android XML layout with a ListAdapter I wrote. Here's code from my getView() method: http://pastie.org/8517605 Nov 29 20:23:55 The goal is to get a ListView containing multiple LinearLayouts which in turn have some fields I set in the code. The problem I get is that somehow the list grows and grows as I scroll up and down in the list Nov 29 20:24:25 sauerbraten: sounds like a problem in your adapter then? Nov 29 20:24:49 probably, that's why I posted the code. Does something jump out to you? Nov 29 20:26:33 sauerbraten: the reuse is the problem Nov 29 20:26:41 sauerbraten: I haven't seen it architected that way before, though that's not to say you're wrong in doing so. If I had to guess you're tripping up when it recycles the view - I'm assuing containers is some out-of-body list? Nov 29 20:26:44 sauerbraten: when you get a ViewGroup as an argument, it already has hild view Nov 29 20:26:52 you may want to just always inflate a fresh ViewGroup Nov 29 20:26:58 sauerbraten: I'd probably use the item and view passed in Nov 29 20:27:00 yeah; that. Nov 29 20:27:00 hild=child Nov 29 20:27:00 Boy thats an expensive getview Nov 29 20:27:31 Collections.sort() is the one thing that jumps out at me Nov 29 20:27:49 I hate views doing shit like that. Do that at a model time, or use a TreeSet/TreeMap or similar that is always in order. Nov 29 20:28:11 ^ Nov 29 20:28:18 alankila, would be cleaner yes. I'm currently trying to get something to work Nov 29 20:28:40 ok so what you are saying is to not use the convertView? Nov 29 20:28:40 Guys. How should I get click listeners for list items sub views i.e a button? Nov 29 20:28:56 sauerbraten: yes, because you are not "converting" it Nov 29 20:29:16 you are just adding more crap into it rather than reusing it properly Nov 29 20:29:22 lol Nov 29 20:29:32 alankila, how do I convert it properly? Nov 29 20:29:47 You are adding textviews to a linearlayout that you might have added already too Nov 29 20:29:53 sauerbraten: you need to check how many views you need in the linearlayout, then remove excess views or add new views Nov 29 20:29:57 desmin88: when you have the parent view item find the button and add an onclicklsitener Nov 29 20:29:58 then set all views to display the current row's data Nov 29 20:30:00 this is the proper conversion Nov 29 20:30:14 dragorn: But where? Nov 29 20:30:39 sauerbraten: it's probably easier right now to just ignore convertView and always just make new instances Nov 29 20:30:40 desmin88: if you're doing a listview? in oncreate. Otherwise whenever your code has whatever the parent view is; not sure what use case you're talking about Nov 29 20:30:56 alankila: yeah, that's what I took away from what you said ;) Nov 29 20:30:57 desmin88: er, in the on create view, i mean Nov 29 20:31:21 sauerbraten: the "convertView" is a spare instance not currently visible in the listview. Android gives it to you in hopes that you can reuse it. Nov 29 20:31:24 dragorn: Would that work though? Because its a bunch of items in my list, i cant just set one click listeer Nov 29 20:31:47 desmin88: So make a lambda onclick listener with the data in it that you need Nov 29 20:31:51 sauerbraten: it has been seen sometime in the past, so it has old data in it Nov 29 20:32:03 sauerbraten: You can also cache the layoutinflater in you constructor. Nov 29 20:32:06 desmin88: setOnClickListener(new OnClickListener() { ... } ); Nov 29 20:32:14 Where. Nov 29 20:32:28 desmin88: where I just said. In your view creation function. Nov 29 20:32:31 desmin88: good idea, thanks! Nov 29 20:32:43 so my list adapter? Nov 29 20:33:04 alankila: I see, that makes sense. Until I understood how to reuse views I'm just gonna inflate a new one each time Nov 29 20:33:06 * alankila suspects that getLaoyutInflater() is just fine Nov 29 20:33:07 if we're talking about lists, yes, in the function that populates the item view Nov 29 20:33:12 it's probably cahed by android for you Nov 29 20:33:52 sauerbraten: it's easy, really. You just have to adapt the view you got to the view you want. Your case is exceptionally difficult in that you have dynamic number of child views Nov 29 20:33:59 alankila: how did you learn android dev? any specific book or videos or websites? Nov 29 20:34:02 it's solvale, but that'll be irritating to deal with Nov 29 20:34:16 ovrflw0x: I read the source and bitch to random people here until I understand something Nov 29 20:34:25 alankila: It's still nice to cache the inflater so you're not getting it 100's of times. Nov 29 20:34:32 dragorn: Okay, thanks. I will try that. Nov 29 20:34:40 desmin88: can you show that getLayoutInflater from the context is slow? Nov 29 20:34:55 alankila: That wasn't even what I said? Nov 29 20:35:13 All I said is you can cut down on getting the inflater by caching it. Nov 29 20:35:19 alankila: read the source? what do you mean Nov 29 20:35:28 alankila: ok I see. re: getLayoutInflater(), where is that method? cause 'this' doesn't have it Nov 29 20:36:04 sauerbraten: Just have a variable in your class, layoutInflater or whatever, and set it in your constructor, then reuse it. Nov 29 20:36:28 there is no need to keep fetching it from the context Nov 29 20:36:40 desmin88: well you are suggesting caching, I just suspect that getContext().getLayoutInflater() is just as fast... Nov 29 20:36:58 or, just getLayoutInflater in case we are an inner class of a context Nov 29 20:37:09 alankila: why. Nov 29 20:37:23 desmin88: well no need to reinvent any wheels... Nov 29 20:37:26 wtf. Nov 29 20:37:29 never mind, doesn't matter, not worth arguing. Nov 29 20:37:35 lol. Nov 29 20:38:24 If for nothing more than just cleaner code, just cache a variable of the inflater. Nov 29 20:38:38 can someone explain to me what the root ViewGroup in the inflate() method is? I tried setting ll as root ViewGroup of the text views and it fucked up with a stackoverflow, so I went back to null Nov 29 20:39:36 thanks guys btw, the thing works now :) Nov 29 20:39:37 iirc it's always null. I don't know either :-) Nov 29 20:41:35 Depending on what you pass as the third parameter, the inflated layout is either added to the viewgroup or the inflated layouts layoutparams are inferred from the type of the viewgroup Nov 29 20:41:37 ok next question: I have to do several API requests via HTTP when loading the activity. can I somehow start those in the background on app startup and share the data across the views? Nov 29 20:41:51 And, getLayoutinflater is just a field lookup Nov 29 20:42:15 sauerbraten: you probably want a service Nov 29 20:42:31 SimonVT: ok thanks. sadly at this stage I don't understand much of what you said :) Nov 29 20:42:48 Runnable() yoo! Nov 29 20:42:48 sauerbraten: you MAYBE can get away with an asynctask, but only if everything is in the same activity and it doesn't matter if leaving the activity disrupts things Nov 29 20:43:10 dragorn: nah needs to be shared across activities Nov 29 20:43:15 sauerbraten: service time then Nov 29 20:43:20 or an asynctaskloader Nov 29 20:43:38 or rest client with callbacks Nov 29 20:43:43 thanks I'll google my way through services and come back when I have questions Nov 29 20:43:52 considering its http, a rest client could work nice Nov 29 20:43:56 desmin88: I use restlet's client for this Nov 29 20:44:04 <[Pi]> How much work is involved in getting the camera to take a photo every five seconds? Nov 29 20:44:23 <[Pi]> I've never touched android dev before, so I'm not sure how to go about it. Nov 29 20:44:57 <[Pi]> This answer http://stackoverflow.com/questions/11856993/android-method-for-automatically-capturing-photos-and-uploading-them-every-x-sec suggests a Python script that seems to be only a few lines Nov 29 20:45:27 <[Pi]> could I adapt that script, chmod a+x it, and load it onto the android device's filesystem? Nov 29 20:45:27 python? Nov 29 20:45:43 <[Pi]> can you run Python code on android devices? Nov 29 20:45:58 im not sure Nov 29 20:46:10 surely not without an interpreter..? Nov 29 20:46:53 <[Pi]> so that answer must be a script that locates an android device, and remotely gets it to take a photo... I don't get it Nov 29 20:47:10 [Pi]: look at ASE, Android Scripting Environment Nov 29 20:47:41 [Pi]: or rather, now, SL4a, which is referenced in that article Nov 29 20:48:04 sauerbraten: inflate() inflates the layout, as in parses the xml and turns it into java objects (views).. If you pass a viewgroup and true as the third parameter, the layoutinflater adds the inflated layout to the viewgroup (by calling ViewGroup#addView). In this case, inflate() will return the viewgroup.. If you pass false as the third parameter, the layout Nov 29 20:48:04 is inflated and has its layoutparams set (xml attributes pre-fixed with layout_). As most viewgroups have their own LayoutParams subclass, it needs to know the type of the viewgroup (if it's a LinearLayout, the layoutparams will be an instance of LinearLayout.LayoutParams). When passing false the inflated layout is returned. Nov 29 20:48:06 [Pi]: sl4a being a generic environment which supports several scripting languages, one of them being python, and provides a binding for the camera API. Nov 29 20:48:24 SimonVT: I almost pasted that exact paragraph I think :) Nov 29 20:48:36 If you pass null as the viewgroup, the root view in your inflated layout will not have layoutparams (all layout_ attributes are ignored) Nov 29 20:48:53 sauerbraten: define an API based on callbacks for your problem. Some common, static class if you like, say HTTPUtil, which has methods like doRequest(someUrl, someParameters, callback). You can then invoke the callback when you have the data. If you have made the request already, you can maybe retrieve result from a cache immediately and basically invoke the callback right away. Nov 29 20:49:04 [Pi], or if you dont mind Java, using the Intent system is pretty simple: http://developer.android.com/guide/topics/media/camera.html#intent-image Nov 29 20:49:20 <[Pi]> dragorn: thanks, looking on Wikipedia says SL4a is in alpha. Do you think that using SL4a is a sensible way to go about accomplishing the task? Nov 29 20:49:43 sauerbraten: you can then do HTTPUtil.doRequest("http://.../", somethingheremaybe, new Runnable() { ... }) or something such Nov 29 20:49:56 dragorn, I just wrote that :F Nov 29 20:50:01 SimonVT: nice Nov 29 20:50:08 SimonVT: someone said osmething similar on S.E. then :) Nov 29 20:50:15 this will work in any view and if you cache requests by URL/params/what-have-you during duration of the request, it doesn't have to request more than once. Nov 29 20:50:52 the implementantion would fire up asynctask and asynctask checks the cache, and if cached response exists returns that, otherwise does http request and then onPostExecute publishes it to callback. Nov 29 20:50:55 <[Pi]> lacx: thx Nov 29 20:51:06 dragorn, probably aren't many ways to explain it :p Nov 29 20:51:24 SimonVT: Well it means you managed to parse and comprehend it in about the timeline it took me to look on S.E. You win. :) Nov 29 20:51:25 [Pi], no worries X) Nov 29 20:51:42 And ugh, my nick autocomplete is broken.. You don't even show up in the user list Nov 29 20:51:53 SimonVT: I'm stealth like that. Nov 29 20:51:58 \o/ Nov 29 20:52:08 anyway cyall later! Nov 29 20:52:24 alankila is stealth as well Nov 29 20:52:31 alankila: sounds great, but I already decided on restlet. a friend of mine does that part, I'll ask him if he can do all this with restlet; if not I'll probably do a service to take care of caching and stuff Nov 29 20:52:44 [Pi]: if you just want to take a photo regularly there are some apps which do time lapse, too, and then you could just scrape off the SD card via mtp or even adb Nov 29 20:52:59 sauerbraten: there's no *real* reason to use android services except to display UI when user isn't directly interacting with your apps Nov 29 20:53:22 sauerbraten: don't use a service except when app is doing something in background and user is interacting with some other app Nov 29 20:53:48 SimonVT: thanks, that was a good explanation. so when I use the ViewGroup parameter it will automatically add the view I inflate? Nov 29 20:54:00 If you pass true :) Nov 29 20:54:00 alankila: mhm ok I'll have a look into that Nov 29 20:54:22 Or don't pass anything at all Nov 29 20:55:45 dragorn: thx pal, got it working Nov 29 20:55:58 desmin88: cool Nov 29 20:56:22 SimonVT: I didn't get the part about layout parameters though. I set some of those in my XML. when I now inflate them with null as second parameter, will it not use those? Nov 29 20:57:08 Nope Nov 29 20:57:18 https://developer.android.com/index.html#q=layoutparams Nov 29 20:57:25 Most viewgroups have their own layoutparams subclass Nov 29 20:57:42 e.g. LinearLayout has a weight attribute, relativelayout doesn't Nov 29 20:58:06 hello, if i pay 25 USD for being dev using credit card, then will this credit card be anyhow connected to my account? or can i use someone's credit card just to pay once this 25 USD for being dev? Nov 29 20:58:40 If it doesn't know when inflating that you're going to add it to a linearlayout (by passing a linearlayout as root), it can't use the proper layoutparams subclass Nov 29 20:59:56 oh ok that makes sense. so it would be a good idea to use the second and third parameter? Nov 29 21:00:08 Yep Nov 29 21:00:28 That's why e.g. Adapter#getView and Fragment#onCreateView pass a container Nov 29 21:00:43 So you can inflate your layout with the proper layoutparams Nov 29 21:00:44 hello Nov 29 21:01:52 SimonVT: so in my example I should user the parent parameter getView() gives me for my listview? and the listview as ViewGroup of my linear layouts? Nov 29 21:01:52 when I rebuild my project in Android Studio, I get the following error: "Gradle: A problem occurred evaluating project ':'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." Nov 29 21:02:17 I have Windows 8, and this is a project I exported from Eclipse Nov 29 21:02:38 MDTech-us_MAN: Did you define the location (sdk.dir) in your local.properties file? Nov 29 21:02:43 thatd be my first guess Nov 29 21:02:43 yea Nov 29 21:02:55 sauerbraten: Yep Nov 29 21:02:59 and I have the environment variablr too Nov 29 21:03:08 I added it Nov 29 21:03:17 And pass false as the third parameter, since listview handles adding views Nov 29 21:03:23 SimonVT: ok, and how do I then get my linear layout variable back? Nov 29 21:03:44 What do you mean? Nov 29 21:04:46 when I pass a root ViewGroup, it returns that ViewGroup. currently I get back the newly inflated View, which is what I need so I can put more things in there Nov 29 21:05:10 As I said, what it returns depends on the 3rd parameter Nov 29 21:05:32 desmin88: Google isn't of help, because Android Studio is still sort of new Nov 29 21:05:39 ooooh I see. thanks SimonVT Nov 29 21:06:19 MDTech-us_MAN: Have you synced project to gradle files Nov 29 21:06:31 desmin88: I dont know Nov 29 21:06:48 Tools > android >sync Nov 29 21:07:14 then rebuild Nov 29 21:07:14 ok, let me see... Nov 29 21:07:17 ok Nov 29 21:07:38 SimonVT: should I use the attachToRoot when I need to set texts of child text views? or should I disable automatic attaching and add the child views manually? Nov 29 21:08:51 Depends where and how you're using it Nov 29 21:09:34 well I use findViewById() on it to get the child views and use setText() on them, like my code example works Nov 29 21:09:54 Hey guys, I'm noticing a strange color difference here when working with selection colors. When I'm on my KitKat Emulator, theres a darker selection on the ListView elements when one is selected. However on my 4.3 phone, everything is just fine. Is there any reason why this should be? http://imgur.com/a/L4gcT Nov 29 21:10:34 ollienx: look the same to me, lol Nov 29 21:10:50 Look at the emulator, you can notice that theres a darker highlight around the list elements Nov 29 21:11:02 it's faint, but it's there Nov 29 21:11:10 dont see it Nov 29 21:11:17 hang on Nov 29 21:11:27 http://i.imgur.com/o5ZYrpc.png Nov 29 21:11:30 does that make it more clear? Nov 29 21:11:41 I haven't seen your code sample. But that's up to you. You can call findViewById on the parent if you want Nov 29 21:12:04 that picture doesnt even have anything selected Nov 29 21:12:10 As long as you know your viewhierarchy and are sure it'll find the right views Nov 29 21:12:11 I know Nov 29 21:12:16 but you can still see the problem Nov 29 21:12:34 it looks like the bottom text is fainter Nov 29 21:12:39 or lighter in color Nov 29 21:12:51 SimonVT: http://pastie.org/8517605 Nov 29 21:12:54 <[Pi]> dragorn: thanks, "timelapse" was the keyword I was missing Nov 29 21:13:05 Zoom is closely, you can see a slight shade of gray on the emulator Nov 29 21:13:07 *zoom in Nov 29 21:13:24 There's #EFEFEF Nov 29 21:13:34 desmin88: it still ain't working Nov 29 21:13:36 However the rest is #F9F4F9 Nov 29 21:13:41 the bottom is the emulator? Nov 29 21:13:44 top Nov 29 21:13:50 bottom is 4.3 phone Nov 29 21:13:54 ListView adds views for you Nov 29 21:14:04 I synced it AND rebuilt it Nov 29 21:14:39 weird Nov 29 21:14:55 show me your local.props Nov 29 21:15:02 its in the root dir of the project right? Nov 29 21:15:02 ok Nov 29 21:15:18 yea in the root of both projects Nov 29 21:15:28 sauerbraten: What is the sort for, jw Nov 29 21:15:52 Sidenote: one project builds successfully and I dont see any errors form the other one Nov 29 21:15:54 ollienx: I don't know sorry Nov 29 21:15:59 It's all good Nov 29 21:16:06 I probably made a styling mistake, just gonna find it... Nov 29 21:16:19 desmin88: I just put that there since it's the first time I actually have each Container on it's own. I don't loop over them before, I just fill them, and I don't want to sort on every add() Nov 29 21:16:23 What's curious is that it only happens on one android version Nov 29 21:16:25 not the other Nov 29 21:17:22 desmin88: http://pastebin.com/NDMsbnna Nov 29 21:17:45 SimonVT: I meant ll and cv. when I inflate R.layout.value to vView, I could set ll as parent, and attach it to ll using the third parameter Nov 29 21:18:09 MDTech-us_MAN: Try this: sdk.dir=C\:/Program Files (x86)/Android/android-studio/sdk Thats what mine looks like. Nov 29 21:18:10 SimonVT: and then I wouldn't have to do it at the end of the loop Nov 29 21:18:33 desmin88: ok Nov 29 21:18:34 but I'm wondering how I would then get to the vView variable I have now, so I can set the texts of it's text views Nov 29 21:18:52 Well, if you inflate your layout into the viewgroup 10 times.. What view is it going to find when calling findViewById? Nov 29 21:19:16 lol. Nov 29 21:20:16 desmin88: nope, still not working Nov 29 21:20:19 ;( Nov 29 21:20:28 ;'( Nov 29 21:20:51 no idea Nov 29 21:21:29 desmin88: Android Studio is such a PITA Nov 29 21:21:39 <[Pi]> so ... I have found a timelapse app, I get it to take some photos, it says it is storing them in / ]storage Nov 29 21:21:58 <[Pi]> sorry, /storage/sdcard0/... Nov 29 21:22:38 <[Pi]> how can I get at them? the only way I know of exposing the android device's filesystem to OSX is to go into the settings and enter " USB storage " mode Nov 29 21:22:45 <[Pi]> and I'm not sure if that even gives the complete file system Nov 29 21:23:07 <[Pi]> it isn't a great solution as I can't have the app running, and look at the files real-time as it were Nov 29 21:23:29 <[Pi]> I have to quit the app, faffle with settings, unplug the cable, plug it back in etc Nov 29 21:24:37 is there a good dark theme for eclipse adt? Nov 29 21:24:59 how could you use text to voice? Nov 29 21:25:08 I know it's not the answer that you're looking for Flaiker, but how about Android Studio? It has a nice dark theme Nov 29 21:25:14 desmin88: can you at least tell me how to remove a project from this thing? Nov 29 21:25:25 remove? Nov 29 21:25:30 at least? Nov 29 21:25:34 like how turn-by-turn directions will say the directions to you? Nov 29 21:25:51 well, I would like to remove the project that has the problem Nov 29 21:26:00 RustyShackleford: there's a TTS Library built in Nov 29 21:26:01 http://developer.android.com/reference/android/speech/tts/TextToSpeech.html Nov 29 21:26:12 ollienx: I tried it some months ago, i will try again now, thanks Nov 29 21:26:25 Flaiker: NP, it's not that bad Nov 29 21:26:30 Since it isn't so crusial Nov 29 21:26:51 ollienx: "It's not that bad" doesnt seem like a positive argument for anything :P Nov 29 21:26:52 I can continue developing it in ADT Nov 29 21:27:21 I say not that bad because I've had no problems with it, but I'm not a hardcore android dev, so I can't speak for everyone Nov 29 21:28:04 so, how do i remove this project? Nov 29 21:28:07 android studio is directly by google? Nov 29 21:28:11 Correct Nov 29 21:28:27 http://developer.android.com/sdk/installing/studio.html Nov 29 21:28:29 Flaiker: it is based on Intelli J Nov 29 21:28:43 intelli from intellisense? Nov 29 21:28:53 Flaiker: who knows Nov 29 21:28:56 from jetbrains Nov 29 21:28:58 google it Nov 29 21:29:00 http://www.jetbrains.com/idea/ Nov 29 21:29:35 im installing it atm Nov 29 21:30:33 problem is though im still very much so at the bginning of android development and from my expereience all tutorials are using adt, though i suppose the ide s shouldnt be all that different Nov 29 21:31:12 the only time it would be an issue is when changing settings and creating files Nov 29 21:31:18 but creating files is a lot better in Studio IMO Nov 29 21:35:09 ya know what, the heck with this new IDE. It sucks sooo bad. going back to Eclipse Nov 29 21:35:38 Lol, it doesn't suck at all compared to eclipse. Nov 29 21:36:46 oh yea!? then why did I have to take up half of yesterday and all of today to try get it set up Nov 29 21:36:57 probably did something wrong Nov 29 21:36:59 took me <5 min Nov 29 21:37:24 ok, lets start from the beginning. Nov 29 21:37:38 I'm a little confused about Target SDK and Compile With options in eclipse Nov 29 21:38:01 I will delete all the gradle crap and export again from Eclipse Nov 29 21:38:29 SUCH A PAIN IN THE A Nov 29 21:38:32 RustyShackleford: what are you confused about? Nov 29 21:39:04 <^cheeky> hey guisss ... kit kat native dialer <3 !!! Nov 29 21:39:54 Hi guys Nov 29 21:40:13 MDTech-us_MAN: moving to gradle is definitely a change. If you don't have any external libraries it should be a near-instant process; if you have library deps it gets a bit trickier. In my experience. Some people have it all working fine in AS now w/out having to edit gradle files. I haven't gotten to that point yet. Nov 29 21:40:33 having some code issues in 4.4 maybe someone can help ; http://pastebin.ca/2484763 and this is the code; http://pastebin.ca/2484764 for some of the issues... Nov 29 21:40:51 for the DisplayDevice.h that is... Nov 29 21:41:15 Xgates: unfortunately this is primarily an app-dev channel. You're not wildly off topic but I doubt anyone will be able to be of much use. Nov 29 21:41:38 oh apps only not the OS? Nov 29 21:41:41 <|0xD34D|> #android-root may be better for help Nov 29 21:41:47 ok thx Nov 29 21:41:50 <|0xD34D|> since you are building the OS from the looks of it Nov 29 21:41:52 or if xda has a dev channel Nov 29 21:42:25 thx Nov 29 21:44:15 desmin88: so android apps are backwards compatible, right? So I want to compile with the newest API level Nov 29 21:44:26 but what about target sdk Nov 29 21:44:45 RustyShackleford: yes, as long as the version you're running it on is above the minimum sdk version Nov 29 21:44:58 Some things may not work without a compat library, such as actionbar or fragments Nov 29 21:45:16 AFAIK, target means you have are using features from a higher level than your minsdk, but have ensured backwards compatiblity Nov 29 21:46:52 So if you set minsdk7, but target 18. Means you are using > api 7 features but are compatible. Nov 29 21:47:22 my minsdk is going to be 14 I think Nov 29 21:47:40 I don't want to dick around with compat libraries Nov 29 21:47:45 ok Nov 29 21:47:48 good on you Nov 29 21:47:53 Interesting styling problem. On 4.3, if I set a selector, the transparency comes up over the default selector, instead of the listview background Nov 29 21:47:58 is KitKat much different? Nov 29 21:48:06 on kitkat though it comes up fine Nov 29 21:48:12 there are some new features yes Nov 29 21:48:12 Kitkat isn't too much different, but it has some nice features Nov 29 21:48:20 namely in terms of colors Nov 29 21:48:25 Yep. Nov 29 21:48:31 HCE is what I want Nov 29 21:48:32 Holo isn't 'default' anymore Nov 29 21:48:41 I'm just waiting for my One GE to get the OTA... Nov 29 21:48:43 everything is just a shade of gray, kinda boring imo Nov 29 21:48:49 You can customize it though Nov 29 21:49:03 yes Nov 29 21:50:14 HCE though, that's gonna be great Nov 29 21:50:24 Google Wallet on all devices, even those without secure element Nov 29 21:55:04 ollienx: actually the SE thing is a bit more complex Nov 29 21:55:09 SE? Nov 29 21:55:13 Secure Element Nov 29 21:55:28 Well yeah, but you can still use wallet without it Nov 29 21:55:31 in kitkat Nov 29 21:55:42 but explain what you mean? Nov 29 21:55:48 ollienx: what was probably done was moving from dependency on one secure element to another Nov 29 21:56:04 Ah yeah Nov 29 21:56:41 for example, my N4 has 3 different SE, of which one implements CC protocol and another can download the necessary applet from Google Nov 29 21:56:55 and HCE is really... few lines of code, afaik Nov 29 21:57:09 But it's more secure than not having it at all, no? Nov 29 21:57:45 ollienx: Galaxy Nexus, Nexus 4, and probably all other Nexus devices after Galaxy Nexus have at least one Secure Element implemented in the CPU Nov 29 21:58:02 Ah ok Nov 29 21:58:07 that's how the 4.0 or 4.1 KeyStore was reimplemented, afaik Nov 29 21:58:21 The N4 has the S600 right? Nov 29 21:58:23 using Secure Boot and TrustZone Nov 29 21:58:34 S4, not S600 Nov 29 21:58:36 S4 pro, I stand corrector Nov 29 21:58:41 *corrected Nov 29 21:58:49 What's interesting then, is that the Sprint One has the secure element, but not any other One Nov 29 21:58:56 It's not a different CPU correct? Nov 29 21:58:59 I am created custom adapter to implement SectionIndexer, I use android.R.layout.simple_list_item_1 as a Layout, I implement it as ViewHolder, but single choice doesn't work? Nov 29 22:00:51 ollienx: there are different secure elements Nov 29 22:01:46 the NXP NFC chip has one builtin, many NFC chips have ability to route command to SIM card which is essentially a secure element too, another one is used in many phones through special hypervisor in trustzone extensions Nov 29 22:02:22 ah ok Nov 29 22:02:26 Thanks for the info Nov 29 22:06:09 ollienx: before, the Android NFC stack would only allow you (if you had the special permission in /system, too!) to at most route the data stream to one of the secure elements Nov 29 22:08:54 Is there a way to dump the laid out contents of a viewgroup into a bitmap? Nov 29 22:11:53 how to I use the TextToSpeech class? Nov 29 22:12:05 is it a member of my Activity? Nov 29 22:12:24 or do I subclass it somehow? Nov 29 22:12:35 http://www.androidhive.info/2012/01/android-text-to-speech-tutorial/ Nov 29 22:12:45 That should work Nov 29 22:13:10 specifically the speakOut() function Nov 29 22:13:21 http://www.techrepublic.com/blog/software-engineer/teach-your-next-android-app-to-speak/ Nov 29 22:13:35 sweet, thanks Nov 29 22:13:36 Looks like you treat it as a listener, like onclick, except Nov 29 22:13:42 you override it's own methods Nov 29 22:14:26 cool question! Nov 29 22:16:05 RustyShackleford: if your not nda'd what can i ask are you using it for? Nov 29 22:17:41 evening all Nov 29 22:18:03 gsteinert: good evening Nov 29 22:20:12 With a surface view, I have to draw the canvas in advance and then draw it on the surface view? Nov 29 22:21:34 you can just draw in onDraw? Nov 29 22:22:10 though it may be faster if you do it in canvas, especially if you are not needing realtime animation Nov 29 22:22:23 alankila: ohh. Yeah I'm trying to make a graphing library for android. Nov 29 22:23:43 alankila: Some of the current libraries automaticly graph and scale the graph. I wanted to make this one with a custom range for both axes. Nov 29 22:47:37 http://pastebin.com/Dhr1nMEc http://pastebin.com/r8LcLZ8h Nov 29 22:47:47 Anyone have any input on these two crashes? Nov 29 22:50:43 Hey guys, I'm a developer who has never touched mobile development--and I'm trying to get into Android dev, trying to mess around, but I'm completely lost, and most tutorials have yet to touch android studio, so should I head to eclipse instead? Nov 29 22:51:01 I kind of have a hate-hate relationship with eclipse, but I'll do what I need to do :-P Nov 29 22:51:47 Just use android studio. Nov 29 22:52:17 desmin88: Right, I'm using it, and I set it up, but I am kind of at a loss on how to develop for this. I don't really know what I'm doing :X Nov 29 22:52:33 Android your first app tutorial is nic Nov 29 22:52:36 nice* Nov 29 22:53:32 Hi Nov 29 22:53:35 hi Nov 29 22:55:21 Don't I need to set a canvas' width and height if its not from a bitmap? Nov 29 22:55:38 I am using Linux and fastboot ain't communication with my phone. Tried "fastboot -i 0x0fce getvar version" just tells me "waiting for device". I did a hard-reset on the phone and pressed on the volume up key. Nothing happens :/ Nov 29 22:59:05 b43156: interesting command :D Nov 29 23:00:39 <[Pi]> something is seriously wrong with android file transfer. I connect the USB cable from my Samsung Galaxy S2 into my MacBook. android file transfer appears. and I can transfer a few files across. but then the connection will just break. for no good reason that I can see! and I have to take the cable out and put it in again to get a few more seconds... Nov 29 23:00:45 valdur55: could you maybe help me bro? :) Nov 29 23:01:35 Novus: what output you wait? Nov 29 23:03:41 valdur55: it doesnt metter what I use it tells me waiting for device. But if i do fastboot devices I get an output with the serialnumber or something Nov 29 23:03:44 Novus: SORRY! Wrong person... Nov 29 23:06:42 So, I'm in android studio, I created an AVD, and a project, it appears to compile just fine, when I click run, it asks which AVD, I point it to the one I want, then nothing happens. Nov 29 23:06:56 b43156: -i specify a custom USB vendor id << it is taken from fastboot output. Nov 29 23:10:45 IT shows this on compilation: C:\Users\Sam\AppData\Local\Android\android-studio\sdk\tools\emulator.exe -avd TestDevice -netspeed full -netdelay none Nov 29 23:18:05 any advice? :( Nov 29 23:18:26 Moleboy: my advice, dont use the sdk emulator. get genymotion Nov 29 23:22:04 I'd like my application to run in the background, and then alert the user based on stuff it detects from GPS Nov 29 23:22:21 which documentation should I read? Services perhaps? Nov 29 23:24:17 the service can run in the background, make sure to offload any intensive operations into a thread as a service is not necessarily not run on the ui thread Nov 29 23:24:57 also check that whatever GPS check you do, you are not doing so often that it turns the device into a power vampire Nov 29 23:26:29 Is there anyway to make a small async task? Nov 29 23:26:37 I dont want to make an entire class just to convert some textt Nov 29 23:27:34 In a custom textview I process the text through the Html class, but with tons of these it can get expensive so I want to offload that in my customtextview to an async process then set it Nov 29 23:27:48 this app might not need any Activities except to set options Nov 29 23:28:01 how can I make it "live" in the notification bar Nov 29 23:28:17 Probably a sticky notification Nov 29 23:47:47 Wtf. I'm setting an onclicklistener in my adapter that just changes a color. If i click one item, as i scroll, another item gets updated too? Nov 29 23:48:26 Listview reuses views Nov 29 23:48:48 So then should I set my tag everytime no matter what? Nov 29 23:49:03 yes Nov 29 23:49:12 well then. Nov 29 23:49:17 that was quite simple realy Nov 29 23:50:00 wait a minute Nov 29 23:50:19 Anyway I get the width/height of a view in the onCreate? Maybe onGlobalLayout? Nov 29 23:51:32 SimonVT: I know what the issue is, and the solution is like on the tip of my tongue. http://pastebin.com/85nBRgYt Can you please take a look? Nov 29 23:52:42 You only need to set the viewholder when inflating the view Nov 29 23:52:47 You need to set the color every time Nov 29 23:53:45 Ok so move my tag set into the inflation part. Nov 29 23:54:18 bollocks Nov 29 23:55:24 so rather than set the color in the listener, i should just set a value to know whether or not what to set the color too? Nov 29 23:55:50 You can set the color in the listener if you want Nov 29 23:55:57 As long as it's set in getview Nov 29 23:56:08 as well Nov 29 23:56:21 it is. Nov 29 23:57:44 Here is the full class: http://pastebin.com/mxe8wiSX so you know what im working with Nov 29 23:58:15 I don't see you setting any color during getView Nov 29 23:58:38 Technically its just an imageview background: imageView.setBackgroundResource(R.drawable.ic_action_rating_important); Nov 29 23:59:18 That still doesn't happen in getview Nov 29 23:59:22 That happens later, if at all Nov 29 23:59:28 When the image is clicked Nov 29 23:59:44 oh Nov 30 00:01:17 I'm not sure how threading and services work. If I start a service in one activity, the service is run on the UI thread, right? Nov 30 00:01:42 if I'm monitoring GPS position, I probably want that on a separate thread Nov 30 00:31:00 Hey anyone want to help out a noob with figuring out how to architect an app including notifications, services, and alarms? Nov 30 00:48:01 can you buy radio scanner hardware that interfaces with a PC? Nov 30 00:53:02 woops, this isn't #hardware Nov 30 01:00:59 Hi guys, whats the best way to inform the User that in a ViewPager fragment are more View available. Nov 30 01:30:06 Indicators? Nov 30 01:42:12 what view would you reccomend for trying to plot graph points on? Nov 30 01:51:26 Has anyone in here used New Relic in their application? Nov 30 01:53:12 w9jds_, no. odd name though. Nov 30 02:05:41 Yea it is. I just keep getting an error about libcore is missing. Nov 30 02:07:23 Is there a way to initiate Android stock encryption through Terminal / adb? Nov 30 02:14:21 Hi, I meet some problem when I try to create two dialog in an activity, anyone can check this http://stackoverflow.com/questions/20283799/show-two-dialog-in-an-activity ? Nov 30 02:14:56 Hello guys, I was wondering wether you could help me : actually whenever I try to get a camera instance in my app, it fails and I get a null value instead Nov 30 02:15:13 in an android virtual device Nov 30 02:38:57 hello Nov 30 02:57:07 Hello, can someone walk me through the process of porting 2 projects from Eclipse to Android Studio **** ENDING LOGGING AT Sat Nov 30 02:59:59 2013