**** BEGIN LOGGING AT Tue Sep 17 02:59:58 2013 Sep 17 03:13:54 anyone ever experienced this? http://android.stackexchange.com/questions/53244/why-does-a-syncme-shortcut-run-only-once Sep 17 03:14:10 doesn't matter if with another app Sep 17 03:15:21 developer mentioned FLAG_ACTIVITY_SINGLE_TOP seems to fix it, but it's just crazy if you read its description: "If set, the activity will not be launched if it is already running at the top of the history stack". Sep 17 03:15:51 I believe docs have been written by drunk people Sep 17 03:18:29 I suspect the problem is that syncme does *not* expose an Intent to force a sync - it just runs a sync when a certain activity is started, which isn't the same thing Sep 17 03:20:42 scrypt, very interesting concept Sep 17 03:20:47 :\ :) Sep 17 03:21:05 p.s. noobs are boring to experts :) Sep 17 03:23:10 Leeds: any ideas about scrypt for android, any compatibe java libs ? Sep 17 03:23:20 nam3l3zz: no idea whatsoever Sep 17 03:23:55 what is scrypts? Sep 17 03:25:45 hash function better then bcrypt & pbkdf2 Sep 17 03:25:53 of kdf type Sep 17 04:01:26 mark06: docs are definitely lacking.. Sep 17 04:11:04 dcow: well I'd say it's not lacking Sep 17 04:11:45 http://developer.android.com/reference/android/R.styleable.html Sep 17 04:13:06 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_SINGLE_TOP Sep 17 04:13:21 >> it seems to do pretty the opposite :-/ Sep 17 04:13:39 better? according to whom? Sep 17 04:13:55 developer is just testing it before releasing the fix :-/ Sep 17 04:21:37 hm, what do you do if you have cleanup to perform in Service.onDestroy() which is async Sep 17 04:21:47 hey all Sep 17 04:21:59 lame thing would be , start another service for the cleanup. ack Sep 17 04:22:11 i get somr 1 to help me figure out why my app is crashing Sep 17 04:22:28 http://pastebin.com/tgUA6iDg Sep 17 04:22:37 thare is my logcat Sep 17 04:23:27 com.axel.mysqlphpjson.MainActivity not found Sep 17 04:23:30 Any ever done service mocking for activity unit test cases? Sep 17 04:23:34 check your manifest for spelling maybe Sep 17 04:23:39 ok Sep 17 04:25:05 thanks Sep 17 04:25:12 im lerning mysql Sep 17 04:25:20 and android Sep 17 04:25:22 XD Sep 17 04:26:11 why not sqlite? Sep 17 04:29:55 because you don't build a largish website on sqlite Sep 17 04:31:18 there's also not really much to learn about sqlite Sep 17 04:33:53 I know there's a header view for ListViews, but is it possible to just have a standalone textview maybe 20 pixels above a listview that's separate? Sep 17 04:34:58 spike021 just put a textview above the listview ? Sep 17 04:35:04 >.> Sep 17 04:35:59 just checking g00s_ :P I know it's a dumb question but I'm not used to working with the XML Sep 17 04:36:14 plus i'm not sure exactly what can or cannot be done with android yet Sep 17 04:48:54 How would one start a service not in the manifest for testing purposes? Sep 17 04:49:29 Since test applications don't have a manifest.. Sep 17 05:00:59 Made a SO question so youalls can get shiny points: http://stackoverflow.com/questions/18841578/mock-service-for-activityunittestcase Sep 17 05:04:14 im just starting out Sep 17 05:04:44 ? Sep 17 05:13:14 why not sqlite? Sep 17 05:13:22 :) Sep 17 05:14:13 i wish i had a working copy of this tutoreal i found Sep 17 05:14:59 http://codeoncloud.blogspot.com/2013/07/android-mysql-php-json-tutorial.html Sep 17 05:15:02 :) Sep 17 05:15:16 ugh, php Sep 17 05:17:04 well php is what i need if im going to intarate a websight service with android Sep 17 05:17:12 intagrate Sep 17 05:26:11 wanna hit enter a few more times ? Sep 17 05:30:22 edwardthefma do you know PHP already? if not, you can safely skip that part Sep 17 05:30:28 :D Sep 17 05:35:02 g00s_ for president Sep 17 05:37:26 \o/ Sep 17 05:38:21 yawn **** BEGIN LOGGING AT Tue Sep 17 06:12:43 2013 Sep 17 06:17:13 Hi guys. Sep 17 06:17:35 what is the limit of the number of open threads for an app? Sep 17 06:18:05 I'm implementing my own AsyncTask to support lower APIs using the excecuteOnExecuter Sep 17 06:18:20 and looking to optimize the limit of threads there Sep 17 06:18:21 thepoosh: there probably isn't one, but having more than the number of CPU doesn't make a lot of sense in general Sep 17 06:19:37 thepoosh: what the hell is excecuteOnExecuter? Sep 17 06:19:37 gavilan2: specifying that the task will run on a serial executor or a parallel onr Sep 17 06:19:56 thepoosh: and in which situation do you need each of those? Sep 17 06:20:12 gavilan2: http://goo.gl/oXbhzt Sep 17 06:20:37 gavilan2: since I make all sorts of web requests and then update a DB with the result, concurrency is a big deal Sep 17 06:21:42 thepoosh: but why do you need the serial executor? Sep 17 06:27:12 what sort of network APIs are available? I am thinking about developing an nmap type app, which means it would be handy to be able to not fully open TCP connections etc Sep 17 06:30:56 gavilan2: to ensure I know what is happening when Sep 17 06:39:59 hi all Sep 17 07:03:09 Android studio log cat doesn't allow me to stop the scrolling, does anyone know how to do it? Sep 17 07:03:20 Also: app filter doesn't work apparently Sep 17 07:04:30 mastro, click on the point you want to stop it Sep 17 07:04:38 so the cursor moves and it'll stop scrolling :) Sep 17 07:06:39 Mavrik, ok.. I see thanks... what about filtering? Sep 17 07:06:44 Hello Sep 17 07:06:49 the filter show up on the left but clicking it produce no effect Sep 17 07:06:55 May I ask a question? Sep 17 07:08:07 What section of the cyanogenmod/aosp source would I modify to add power menu options? Sep 17 07:16:14 how can I get a transparent textview at the bottom overlapping with a listview? Sep 17 07:26:34 Hi I've been trying to setup javadoc on my android library project. Sep 17 07:26:37 following this: http://stackoverflow.com/questions/17033878/generate-javadocs-with-android-gradle-plugin Sep 17 07:26:53 but my android.libraryVariants is basically empty. any idea how can i get to work? Sep 17 07:48:52 Hey, where do you get icon design services, and how much do you pay for it? Sep 17 07:49:22 try reddit.com/r/forhire - usually very cheap services Sep 17 07:49:39 it's not photos specific, but many grafics people there too Sep 17 07:49:56 graphics* Sep 17 07:52:39 Hey. Sep 17 07:53:04 http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks(int) Sep 17 07:53:20 Here it says that this shouldn't be used in an app's core logic. Sep 17 07:55:14 Can an alternative that can be used for such purposes and that gives accurate and reliable data be achieved or is it part of Android's philosophy that such a thing be forbidden for security reasons? Sep 17 07:55:33 Some guy here mentioned that it is: http://comments.gmane.org/gmane.comp.handhelds.android.devel/216754 Sep 17 07:55:58 "Android apps should neither know nor care what happens to be in the foreground, if it is not their own stuff." Sep 17 07:59:52 Rashad: why do you think you should be able to find out about other running apps? Sep 17 08:00:02 and what would you do with that information? Sep 17 08:00:28 also, any restrictions on user might mean restrictions on being able to see other apps Sep 17 08:01:14 oh, and Mark Murphy isn't really "some guy" :) Sep 17 08:01:27 I don't think I can tell you but it is not for malware. Sep 17 08:01:38 *ding* Sep 17 08:02:07 Who is Mark Murphy? I tried googling and the first results were for a sports guy and a singer.. Sep 17 08:02:21 Rashad: anyway, a lot of such interfaces are slowly getting closed Sep 17 08:02:34 I recall a time when you could list Services :D Sep 17 08:02:42 You mean the ActivityManager interface? Sep 17 08:03:16 Rashad: so, why can't you tell us what you're trying to do? Sep 17 08:03:31 Can one develop their own interface? Isn't Android open-source and one can view the implementation of the interface and re-make it himself? Sep 17 08:03:40 Rashad, http://commonsware.com/mmurphy Sep 17 08:04:15 Leeds: because that would give you the idea of the app I am trying to make. Sep 17 08:04:29 ah, and then I would steal your idea - very good point Sep 17 08:04:33 yup. Sep 17 08:05:03 1 million d idea Sep 17 08:05:08 Kegsay: thanks. Sep 17 08:06:10 can i steal it too? Sep 17 08:07:13 where do you guys get your app icons from? i need an illustrator that would get the job then for about 30$ ... any suggestions? Sep 17 08:08:15 viran: I can try doing it for you. Sep 17 08:10:37 anyone have a good/reliable way to determine if the current runtime is in an amazon app vs a play store app? Sep 17 08:11:02 it seems every strategy i google has a caveat Sep 17 08:12:28 use different apk's ? Sep 17 08:13:04 i guess i do, but i end up just commenting in and out lines of code for the different builds of an app and its messy/errorprone Sep 17 08:13:34 it'd be neat if #define were possible Sep 17 08:14:41 sqpat: It's the sort of thing that Gradle makes easy to automate if you've made the jump to AndroidStudio/gradle Sep 17 08:21:03 hm ok, thanks Sep 17 08:23:16 sqpat: Gradle calls them build flavors Sep 17 08:25:38 morning ppls Sep 17 08:29:39 Hey guys ! Any of you know an open source project compatible wit android 4+ to lock access to apps and settings ? Sep 17 08:35:11 I am trying to implement a pinch zoom functionality to an application - it is somewhat working, however the anchorpoint is the top left corner. I have tried looking for ways to set the anchorpoint to the point between the two indexes when pinching without success tho. Any ideas ? Sep 17 08:41:48 troloyolo, I believe WebViews implement pinch and zoom, so you could either just use that or look at the source for it for some guidance Sep 17 08:42:16 Excellent - thanks alot ;) Sep 17 08:44:26 Kegsay, the pinch zoom does work tho. only problem is that the anchor point is set in the top left corner, so no matter where/how i pinch it will zoom in/out towards that corner Sep 17 08:45:48 I would imagine you'd need to set the zoom to be in the middle between the two co-ords, e.g. midx = (x1+x2)/2 ; midy = (y1+y2)/2 where x1,y1 is finger pos 1 and x2,y2 is finger pos 2 Sep 17 08:48:24 yea, and i have a method that located the point between the fingers. However, i am unsure what method to call in order to actually set that anchorpoint Sep 17 08:48:33 because i think that is only something you can do on ios Sep 17 08:49:50 how exactly are you implementing this? Completely from scratch or using a 3rd party helper library of some description? Sep 17 08:51:08 well i am using Titanium - the native code is primarily from scratch however i do use quite alot of titanium objects etc Sep 17 08:53:04 oh I see. I'm not very familiar with Titanium I'm afraid, so I don't think I'll be much help there Sep 17 08:53:23 alright well thanks anyways ;) Sep 17 09:00:22 when I query using facebook graph api from java code using url connection I do not quite latest data its seems Sep 17 09:00:45 I have post here for graph api usage. http://stackoverflow.com/questions/18843569/facebook-graph-rest-api-from-android-native-app Sep 17 09:06:42 actually I'm having trouble with testing IAB on android Sep 17 09:06:51 is the idea that i upload an alpha .apk Sep 17 09:07:04 then i can test it in the sandbox (which i have no idea how to find/add accounts to) Sep 17 09:23:02 Hi. Ive a question. Ive one fragment and one framelayout which is replaced with a fragment in runtime. after i clicked the first time in fragment a stuff is shown in fragment b but i cannot click in fragment a anymore. http://pastebin.com/N87SHCsv Any idea? Sep 17 09:44:04 <^cheeky> morning/evening can some one have a discussion with me please if your guys dont mind about using messages and handlers .. to update list view which renders Bitmaps, I i know that i would have to scale down the image and alot implement a cacheing mechanism and performance tuning, but i wanna kinda comprehend the nuts and bolts, and kinda wanna know a lil more, Now my list and parsing and all that work fine, buuut i think out of the l Sep 17 09:44:04 <^cheeky> images get refreshed, other when i scroll down or flick my finger the images stay the same or display in the wrong box .. now i am thinking it might have to do with the image not been scaled down using bitmapFactory Options nor have implemented weak reference variables or a cacheing mechanism, So i want to know is my assumption right .. that the images arent been updated coz by the time the bachground thread gets the images it too la Sep 17 09:56:07 ^cheeky, so you're getting images appearing in the wrong boxes in your listview? Sep 17 10:02:39 <^cheeky> Kegsay: hi hi , well then it switches back .. to it, i am about start puting log statements , and i guess try to debug it, .. i guess i am a lil confused, since i am using handler and message between the handlerThread class i have and the fragment that the background thread that it spawned off, because i was just reading that i might have to recycle the bitmaps as well in a listview, but since my app is 3.0 and higher the GC is more Sep 17 10:02:39 <^cheeky> i dont need to really implement it. Sep 17 10:03:08 are you using the ViewHolder pattern? Sep 17 10:03:20 <^cheeky> Kegsay: is it possible is i could show you the code for the HandleThreader class and the fragment ? Sep 17 10:03:24 <^cheeky> ahhh no Sep 17 10:03:29 <^cheeky> i was about to use that .. Sep 17 10:04:00 <^cheeky> coz the constant look up for R.ids .. and traversing down the heriarchy view does slow things down Sep 17 10:04:07 well, the ViewHolder pattern would actually potentially cause this (asyncly getting images and setting them onto recycled views) Sep 17 10:04:24 new Android tools. update your tools. Sep 17 10:04:57 I assume what you're aiming for is some list with some images and you can asyncly set them from some resource (e.g. a website?) Sep 17 10:05:08 <^cheeky> Kegsay: hmm so i would have to use syncrosnize references Sep 17 10:05:22 <^cheeky> yup flkr service Sep 17 10:05:47 <^cheeky> gimme a min i need to grab code from machine,if you dont mind taking a peek Sep 17 10:06:25 presumably though you'll have problems with loading the images if you're just using a single message passing thread. Presumably you're loading the images only when they're on screen as well Sep 17 10:06:48 which then leads to problems if say, image 1 takes 10 secs to download, it can block images 2,3,4 from even starting Sep 17 10:10:13 <^cheeky> yeah coz i only see one image .. when i first load the list view .. only the bottom image on the list gets loaded .. then after i scroll up and down the other images get placed on the screen, i was thinking it would have to with the asyn download of the image and also the delay since its umm.. not scaled down Sep 17 10:12:53 is it practicable to set default variable values in objects in android? because if i don't i have to check for many NPE. I read somewhere that I should set the value when it has to be, to save memory. But here it can often happen that I cant set the value, because I get an empty response of a network call. In that case the value would be null. Now I thought I give them a default value to prevent them from beeing nu Sep 17 10:12:59 <^cheeky> Kegsay: http://pastie.org/private/kwtxth3b5oezfri2n3tiya <------- The downloader class Sep 17 10:13:02 If I were you, I would setup a mock class which 'downloads' images (read: sleeps a bit then loads a placeholder resource) and invokes your callbacks with these bitmaps. Once you get that working, it will be a piece of cake to slot in the real class instead Sep 17 10:13:25 <^cheeky> http://pastie.org/private/jkghnkwcqijbfc6gwcf77g <---- Image downloader class which is the HandlerThread class Sep 17 10:14:06 <^cheeky> http://pastie.org/private/uqcrsa73jszsteycfiqnxa <---- ListFragment Sep 17 10:14:18 of course i use more memory with that, but the default value is used, if it is not overwritten. is that a "common style"? Sep 17 10:19:00 ^cheeky, immediately you should be excluding the downloader class from your search for a solution to this. After all, it is just downloading an image right? Your threading model shouldn't care how long it takes, and if time is an issue, it's a problem with the threading instead Sep 17 10:20:52 I notice in PixeListFragment you just do galleryPhoto.setImageBitmap(bitmap); without ever looking at ImageView imageView passed in from onImageDownloaded, is there a reason for this? Sep 17 10:20:53 <^cheeky> i thought it was considered better practice to have seperate class that would do the handling or stuff .. coz i am gonna build up on it.. and also .. time i think might be an issue coz i wanna come up with download couple of images prior the current item.. also Sep 17 10:22:43 I personally wouldn't be using a Handler/Message model for this, since I find an ArrayBlockingQueue significantly easier for this kind of producer/consumer pattern Sep 17 10:23:10 that's not to say it won't work using handlers, you'll just need to think about *which* HandlerThread you offload the download onto Sep 17 10:23:46 since currently you just have one poor thread trying its best to download everything you're throwing at it on queImageDownload Sep 17 10:24:19 which then just queues it up, so they are processed one at a time. It would be better if you had a pool of threads and they can all just take from the same queue Sep 17 10:25:07 this can be done relatively easily with an ArrayBlockingQueue coupled with an ExecutorService (e.g. cached thread pool) Sep 17 10:26:12 <^cheeky> oh nice.. ok soo .. my understanding please bear with me ... when i create a handler .. its has its on message queue .. right .. Sep 17 10:27:17 Heya guys, quick question - I call the browser from my activity, causing a call to onSaveInstanceState Sep 17 10:27:18 <^cheeky> so everytime invoke another background thread .. wouldnt i be adding it to the queue of messages already.. or ill be spawing off differnt message queues for each handler i create for the image Sep 17 10:27:20 I save the needed values Sep 17 10:27:23 but when I come back Sep 17 10:27:31 neither onCreate nor onRestoreInstanceState are called Sep 17 10:27:33 leaving my value null Sep 17 10:27:55 not really. The message queue is actually tied to the looper which is hooked into a thread (e.g. the ui thread). Making more handlers are still ultimately executed in series on the thread it is linked up to Sep 17 10:28:25 so "adding it to the queue of messages already" Sep 17 10:28:47 <^cheeky> Tee_Pee: did you add a bundle and did you override the savedInstanceState().. coz i dunno about webviews still but i am assuming that the pressing back would destroy your activity .. Sep 17 10:29:02 it's not a webview Sep 17 10:29:07 I navigator out, to the browser Sep 17 10:29:12 and yeah, overriden onSaveInstanceState Sep 17 10:29:16 override onRestoreInstanceState Sep 17 10:29:18 and onCreate Sep 17 10:29:24 the value is never restored Sep 17 10:29:46 <^cheeky> Tee_Pee: make your values class variables Sep 17 10:29:55 They are. Sep 17 10:30:19 Hi folks, in org.apache.http 4.1 MultipartEntity is deprecated. Anyone knows what replaces it in order to post a file? Sep 17 10:31:23 <^cheeky> Kegsay: hmmm ok .. so yeah when i getlooper() .. all the messages are on that looper as Queue of messages .. so since Queue use FIFO .. shouldnt the all be processed in the order they were added to the message Queue Sep 17 10:31:38 ^cheeky, have a look at http://javarevisited.blogspot.co.uk/2012/02/producer-consumer-design-pattern-with.html if you decide to go down the blockingqueue route Sep 17 10:31:56 yes they will be Sep 17 10:32:04 which is less than ideal Sep 17 10:32:11 for a list being scrolled by the user Sep 17 10:34:18 <^cheeky> Kegsay: ok see the strange thing is .. that .. when i implement this same structure of coding for a GridView .. it works fine actually .. only thing i did there was that i scaled down the options .. and also allocated LRU memory Cache Sep 17 10:35:01 This is stupid... onSaveInstanceState gets called, but onCreate isn't Sep 17 10:35:10 that is misleading though. You may find that there was a bug in it, but the act of scaling down and implementing a memory cache improved the callback speed Sep 17 10:35:47 in other words, you may have a race condition with the code which only manifests itself using the new listview implementation because it is taking longer without the cache/sampling Sep 17 10:36:45 (which is also why I advocate having a dummy test rig which just pretends to download stuff so you can see how well your code works with wide ranges of delays) Sep 17 10:38:18 <^cheeky> Kengsay Sep 17 10:38:49 hello everyone! I have a pure architecture question. I read the documentation but this is not clear for me, so I need some advices Sep 17 10:38:51 <^cheeky> Kegsay: yes i should def do this dumy test thing .. coz i mean i get it .. kinda .. but i still am not sure how all this works .. Sep 17 10:39:57 <^cheeky> Tee_Pee: did you mention during your onCreateActivity that ..setRestainInstance... to true ? Sep 17 10:40:01 is the guava well usable on android? Sep 17 10:40:09 if you're not sure how it works, I would immediately step away, have a small break, then do a toy project from scratch. It takes a bit of time sure, and it can seem like wasted time sometimes, but you'll thank yourself later for it I think Sep 17 10:40:38 I have an activity using the DrawerLayout. This Activity shows a Fragment and I can change the current Fragment by touching the related entry in the Drawer list ( this is the very standard navigation ). It works quite well Sep 17 10:40:45 I did that Kegsay ;) Sep 17 10:41:31 the link I gave above would be a great thing to mess around with. For example, it should JustWork(tm) but it crucially only has 1 consumer. You'll want several for this (so you can have many threads downloading images), so it would be nice to extend that example to support it Sep 17 10:41:36 The thing is: I can change the current Fragement without any problem, but each Fragment must display its own options menu in the actionBar. This is also fine, as we can override the related method in the Fragment class Sep 17 10:41:46 sorry shibakaneki, was actually referring to ^cheeky Sep 17 10:41:55 haha ok, no probs ;) Sep 17 10:43:24 <^cheeky> heh yeah i was a lil confused to Sep 17 10:43:51 <^cheeky> Kegsay: i am reading the link now Sep 17 10:44:25 shibakaneki, not seeing the question currently :) Sep 17 10:45:27 The problem is: one of my Fragment changes the navigation type of the actionBar, it uses the LIST navigation type, in order to show a combobox with different choices. When I change the screen orientation, the Fragment is recreated, so in the Fragment class, I override onSaveInstanceState in order to put some datas in the Bundle. I check that in the onCreate and no problem, but the actionBar List is refreshed 2 times Sep 17 10:45:27 don't know why ): first time with the value saved in the Bundle, and right after, with the default initial value, so I lost my saving state Sep 17 10:45:48 so I came with the following feeling: the actionBar should be managed by the Activity and not by the Fragments. Sep 17 10:47:07 <^cheeky_> Tee_Pee: so you go out of your application and launch another app ... and that other app has values .. i am sorry i didnt understand sorry i am slow Sep 17 10:47:25 absolutely it should be. There is a one to one mapping for activity <--> action bar, but one to many for activity -> fragments. You can get into hair pulling problems if you try to manipulate the sole action bar from potentially multiple fragments Sep 17 10:47:43 but I am not sure of that, I want to do it correctly. I think that if the Fragments can populate something in the actionBar, then it should be possible to manage everything from the Fragments Sep 17 10:48:13 it depends if you only show one fragment at a time on screen (e.g. maintained by a ViewPager) Sep 17 10:48:22 yeah so my feeling was correct: the Activity will manage the actionBar and the Fragments, and not the reverse Sep 17 10:48:30 if you are doing it like that, then the activity should be able to set the action bar correctly from this Sep 17 10:48:54 I show one Fragment at a time for the phone version, I will show many Fragment at the same time for the Tablet version Sep 17 10:49:30 I came to the conclusion that it would be better to manage that completely in the Activity Sep 17 10:49:38 by *all* means, provide yourself some useful functions to say "I want this, this, this and this displayed on the action bar please!" but it should be activity which decides "okay, now the pager is showing fragment Z, so I'll invoke your getActionBarStuff" Sep 17 10:49:59 that's exactly what I started to do! Sep 17 10:50:01 ok Sep 17 10:50:05 so I'm on the right way Sep 17 10:50:13 thx for confirming what I was thinking ;) Sep 17 10:50:39 make sure you've addressed all of the possible combinations on the tablet version though. Are there any cases where there may be potential conflicts of what to show on the action bar if 2 specific fragments happen to be visible for example. Sep 17 10:50:44 I was exactly in the 'hair pulling' situation before thinking about managing everythig in the Activity :) Sep 17 10:51:03 yep! I thought about that also Sep 17 10:51:07 thx Kegsay Sep 17 10:51:13 np ^^ good luck Sep 17 11:04:02 Hi all! Sep 17 11:05:35 Morning Sep 17 11:06:13 <^cheeky> Morning morning :) Sep 17 11:09:35 guten morningzen Sep 17 11:26:17 Hi all, I have to create a swipe down refresh listview like this: https://play.google.com/store/apps/details?id=uk.co.senab.actionbarpulltorefresh.samples.stock Is this possible with a master-detail -view? or is there a better solution/library to do this? Sep 17 11:55:48 im currently sorting out a pinch zoom event using Titanium - my issue is that the pinch scale the image towards the upper left corner. I do specify a anchorX and anchorY, which seems to be correct, however it did not change the fact that the anchor point is located at 0,0. any ideas ? Sep 17 12:09:57 who's a git expert here Sep 17 12:11:19 I know a bit of git. Sep 17 12:12:08 im trying to move a remote ref to a specific commit Sep 17 12:12:24 so i can do git update-ref and it works locally.. but i want to push that change to the remote server Sep 17 12:13:53 Anyone here implemented ZXing QR scanner? Sep 17 12:14:08 Napalm: git push origin local-commit:remote-commit Sep 17 12:14:37 Napalm: git push origin local-commit:remote-branch Sep 17 12:14:59 That will update the remote "remote-branch" to point to the local "local-commit" (which doesn't even have to be a branch name), on the remote "origin". Sep 17 12:19:52 Tee_Pee: a while ago, yes Sep 17 12:20:55 I've implemented the library and i can launch the CaptureActivity of zxing, but when I capture something it shows the default open in browser, share via email etc. options Sep 17 12:21:02 I want it to propagate back to my activity Sep 17 12:22:12 do you want to ship your app with the library included? Sep 17 12:24:09 yes Sep 17 12:25:54 I've built the core, imported the project as a library in my project and added the android integration support library to my app Sep 17 12:26:06 (I added the core.jar to the android zxing project) Sep 17 12:26:32 xlq: will check that out, thanks Sep 17 12:26:39 Intent integrator requires me to download the app separately... Sep 17 12:28:22 Napalm: Search the git-push man-page for "followed by a colon", under "..." for more information. Sep 17 12:28:28 if you have the library, you can launch the CaptureActivity right? Sep 17 12:30:23 Yeah, and I do that Sep 17 12:30:27 use startActivityForResult() with the proper extras in the intent and you should get the results in your calling activity via onActivityResult() Sep 17 12:30:57 I guess that's my question - what extras are the right extras to prevent the captureactivity from showing the "open in browser, share via email" etc options? Sep 17 12:31:03 Because that's the behavior I'm eeing Sep 17 12:31:05 seeing* Sep 17 12:32:02 dont know exactly, you should be able to find the answer in the ZXING source: https://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/CaptureActivity.java Sep 17 12:33:41 Tee_Pee, best look at the manifest to see what it is filtering - https://code.google.com/p/zxing/source/browse/trunk/android/AndroidManifest.xml Sep 17 12:34:27 a host of uris as well as com.google.zxing.client.android.SCAN Sep 17 12:36:00 I think I nearly got it.... Sep 17 12:36:52 wooo I got it Sep 17 12:37:00 intent.setAction(Intents.Scan.ACTION); did the trick Sep 17 12:45:46 xlq: so by moving these references there are commits no longer needed, but they are still in the repo right? Sep 17 12:46:04 Yep. Sep 17 12:46:05 what i mean is.. these commits are still around Sep 17 12:46:19 can they be removed, as they are no longer needed and are never even used Sep 17 12:46:26 Yeah, use git-gc or git-prune Sep 17 12:46:55 i guess i need to do a git push to sync those changes to the remote Sep 17 12:47:24 Well since the reflog still points to the commits, they'll probably hang around for a month or so. Sep 17 12:51:46 xlq: mind if i ask you another one? Sep 17 12:51:56 Nope, go ahead. Sep 17 12:52:26 xlq: once im done with a branch, its commits have been merged into master, how do you remove the remote ref of the branch Sep 17 12:52:37 git push origin :branch-name Sep 17 12:52:46 cool thanks Sep 17 12:53:57 xlq: one last one, promise, if im currently sitting on a is git pull the best way to achieve a fast-forward? Sep 17 12:54:14 no commits have changed in between Sep 17 12:54:18 so a merge isnt needed Sep 17 12:54:40 I don't know if there's a best way, really. Note the --ff-only option that refuses to merge if it's not fast-forward though. Sep 17 12:55:07 ah ha Sep 17 12:55:08 thanks Sep 17 12:58:30 new Android tools. update your tools. Sep 17 13:03:03 hi! are there any logs from adb server available, my emulator can't connect to it on start: emulator: can't connect to ADB server: Connection refused Sep 17 13:03:10 ? Sep 17 13:06:22 xlq: you asked for it now.. :D any chance i can pick your gitty brains again? :D Sep 17 13:06:29 Sure. :) Sep 17 13:07:10 im curious, i want to setup a new remote repo, but essentially copy over the content from another Sep 17 13:07:30 im assuming i would assign the other repo as another remote origin server Sep 17 13:07:41 and then fetch the content into my local and then push it Sep 17 13:07:47 something along those lines Sep 17 13:08:34 You could do that. You could also just copy the entire bare repository, if you have shell access. Sep 17 13:09:02 nope, plus this other remote repo does have some files Sep 17 13:09:12 but not under the same path's Sep 17 13:09:51 Ahh. If you want to merge two repositories into one, you might want to look at doing a subtree merge. Sep 17 13:10:11 kk, will research, cheers Sep 17 13:33:41 how do i change the color of the done tick on the ActionMode using Actionbarsherlock? Sep 17 13:38:00 hey, is there a way to decrease the battery usage in a case where i need a GPS-Fix every < 5 seconds? Sep 17 13:38:55 lmbd: I've seen GPS loggers that turn GPS on every 1 second or so. Sep 17 13:39:16 Does somebody know if you can use this in a master-detail layout? Refresh in master listview: https://github.com/chrisbanes/ActionBar-PullToRefresh Sep 17 13:39:55 im analysing my battery drain with "little eye" and seems really high Sep 17 13:43:55 yeah no kidding Sep 17 13:44:11 you're just running most power-consuming piece of electronics in your device every few seconds. Sep 17 13:44:46 The GPS is the most power-consuming, not the GPU? :o Sep 17 13:46:46 xlq, in most cases yes Sep 17 13:46:59 Screen #1, radios #2, chips are small power consumers in comparison Sep 17 13:47:08 *processors Sep 17 13:53:29 lmbd, in case you haven't looked at this, it may be useful to you: http://developer.android.com/guide/topics/location/strategies.html Sep 17 13:56:06 approximate power consumption, sourced by google: http://i.stack.imgur.com/avmyf.png Sep 17 13:56:27 GPS burns more than CPU (less than other radios though) Sep 17 13:56:48 of course, using GPS tends to power on the 3G radio to retrieve AGPS data :) Sep 17 13:56:56 i know this guide, all strategies allready implemented. maybe a external GPS-Mouse via Bluetooth ... Sep 17 13:59:14 hey guys Sep 17 13:59:47 i use the ADT Eclipse and just loaded an existing workspace. The issue is that -no- android classes are detected Sep 17 13:59:55 meaning that all android.* are unknown Sep 17 14:00:09 It's the holidays. Classes begin again at the start of next year. Sep 17 14:00:33 I'm not in holidays yet Sep 17 14:00:59 Sep 17 14:01:54 I believe I somewhere have to specify the sdk location, but I've really no idea where Sep 17 14:01:55 spobat, did you "load existing project into workspace" or "existing android code into workspace"? Sep 17 14:03:14 is possibile to set a listener for ui element (button, imageview) in a fragment? if yes, where shoud I set it? Sep 17 14:03:29 sonOfRa: None of them. I coded in a workspace a few months ago. Now all I did was "File->Switch Workspace->Typed the path to the directoroy" Sep 17 14:05:10 ok, the sdk path was different, I set it and it works now :) Sep 17 14:12:06 set it where it's appropriate Sep 17 14:12:08 of course Sep 17 14:12:12 onCreateView is often a good candidate Sep 17 14:12:15 or onActivityCreated Sep 17 14:12:21 depending on what element you're working with Sep 17 14:12:34 gdrc, Sep 17 14:12:46 gdrc, you can set listeners for ui elements like you can in activities. If the click action 'belongs' within the fragment (e.g. toggling state within the fragment itself) then set the listener inside the fragment. If, however, you plan on changing screens or loading new content *outside* the fragment, then use the pattern described here http://developer.android.com/training/basics/fragments/communicating.html Sep 17 14:15:35 pfn: in onCreateView how can I set it? I mean, if the view is not already set, (button,imageview) findViewByID returns null becouse the element is not on the view Sep 17 14:16:03 then you obviously can't use onCreateView Sep 17 14:16:18 look at "or ..." Sep 17 14:17:46 sure Sep 17 14:19:31 gdrc, you would call rootView.findViewById(R.id.whatever) to get the correct view where rootView is the view you inflated from xml in your call to inflater.inflate(R.layout.some_layout, container, false); Sep 17 14:20:03 so you can get it from onCreateView Sep 17 14:24:17 so... why would I want to keep old versions of android sdk build-tools around? Sep 17 14:24:30 I got v17, 18, 18.0.1 and 18.1 now.... Sep 17 14:25:02 I suppose there's some value in build repeatability Sep 17 14:25:06 * pfn shrugs Sep 17 14:25:26 ok also in onActivityCreated I get null Sep 17 14:25:36 then create your view first... Sep 17 14:25:39 then it won't be null Sep 17 14:25:50 and lookup your view only after it's been created Sep 17 14:25:50 I do in onCreateView Sep 17 14:25:57 then you're doing it wrong Sep 17 14:26:04 it's not null Sep 17 14:32:30 just updated android build tools now gradle can't find the old version and isn't looking for the new. what to do? Sep 17 14:35:06 update the gradle plugin? Sep 17 14:35:12 gradle clean? Sep 17 14:35:24 0.5.7 is current now Sep 17 14:38:05 <^cheeky> Kegsay: thank you for that link i have a better understanding, but i think i have an issue ..tho .. i think it might not be updating the listview .. correctly.. would i have to notifyDataset once i set the image in the image view. Sep 17 14:38:23 ^cheeky, yes Sep 17 14:38:37 anytime you want the rendered items to update, you will need to notify Sep 17 14:39:13 ^cheeky, you won't need to call notifyDataSetChanged() if you're just setting the bitmap to the imageview Sep 17 14:39:27 <^cheeky> pfn: the thing is its callback listener interface that updates the view .. which is instantiated in onCreate() Sep 17 14:39:28 <^cheeky> http://pastie.org/private/sjqsbuz8t5ngaqmkzveq Sep 17 14:39:33 only if the underlying data is changed (e.g. a new cell or modified cell) will you need to notifyDataSetChanged() Sep 17 14:40:05 which in your case, it isn't. Sep 17 14:40:22 <^cheeky> Kegsay: ok so thats why i only called the notify.. method once i added new data from the fetcher Sep 17 14:41:00 <^cheeky> Kegsay: at the bottom of the code on postExecute(), is my updateing of the list correct i mean it works .. Sep 17 14:41:02 <^cheeky> http://pastie.org/private/sjqsbuz8t5ngaqmkzveq Sep 17 14:41:53 <^cheeky> i ask this becuase .. when the listview first comes to view .. only the bottom pic gets filled and i wait .. lol and non of them get displayed only when i scroll up and down :( Sep 17 14:42:30 pfn: http://ideone.com/Nh6rHt Sep 17 14:42:50 don't use ideone Sep 17 14:42:52 ever Sep 17 14:42:56 why? lol Sep 17 14:43:02 I do like it Sep 17 14:43:22 <^cheeky> Kegsay am worried i am calling the setListAdapter in the wrong place .. excuse my logic please if its wrong, but i call the setListAdapter in the postExecute() Sep 17 14:43:26 because I'm gonna see your errors and say fix them Sep 17 14:43:40 if it doesn't compile, do not put it in ideone Sep 17 14:43:50 hi Sep 17 14:43:59 ideone indent is cool Sep 17 14:44:04 http://code.google.com/p/android/issues/detail?id=33859 i'm getting the same error as this guy Sep 17 14:44:22 and i tryed the workaround given by #3 Sep 17 14:44:24 no luck Sep 17 14:44:29 any help please Sep 17 14:44:36 btw getView is not null, it can't just get the imageview element Sep 17 14:44:58 veQue: same here Sep 17 14:45:10 that's becouse I updated SDK yesterday Sep 17 14:45:28 gdrc, simple, id/entry_video_play_b isn't in activity_list_of_news Sep 17 14:45:46 also, the order of onCreateView and onActivityCreated are not guaranteed, are they? Sep 17 14:45:56 and if so, you may have them backwards Sep 17 14:46:12 fuck you're right Sep 17 14:49:35 gdrc: i did too Sep 17 14:49:56 gdrc: do you know any workarounds? Sep 17 14:50:08 i can't get a new project up and running now Sep 17 14:50:21 no man, try to import old project and edit it Sep 17 14:50:29 that's what I did Sep 17 14:50:30 =/ Sep 17 14:50:37 man this sucks Sep 17 14:51:03 google update fail Sep 17 14:51:06 i'm usually weary about downloading updates too. espcially when everything's running ok Sep 17 14:51:26 went against my better judgement Sep 17 14:53:31 think a reinstall of something can fix this? Sep 17 14:53:42 ^cheeky, you generally should only be calling setListAdapter once. If you want to update the items, you should be directly adding them to the adapter and then notifyDataSetChanged as a rule of thumb Sep 17 14:53:47 or we have to just wait untill they give us a working update? Sep 17 14:54:00 veQue: don't know, sorry Sep 17 14:54:16 k, well thanks for the other workaround Sep 17 14:54:18 btw, gotta go, thanks pfn Kegsay Sep 17 14:54:22 I say 'as a rule of thumb' because there are obscure cases where you want to completely set the adapter again Sep 17 14:55:19 how do i remove a activity from backstack? after successfully logging in, the user should not come back to loginscreen if the back button is used. Sep 17 14:56:53 it should be done for you already skullcrasher - the act of pressing back effectively ends the activity. It may appear to not if the activity in question is also the launcher/main activity Sep 17 14:56:57 in which case, use singleTask Sep 17 14:59:38 my login activity is the launcher activity and if succesfull starts another activity Sep 17 14:59:50 if then the back button is pressed the login screen is shown again Sep 17 15:00:49 in that case, it sounds as if you're just launching an intent to the 2nd activity and not finish()ing your login activity? Sep 17 15:00:56 pfn gdrc: the order of onCreateView and onActivityCreated is guaranteed. onCreateView will happen first. Sep 17 15:01:26 Kegsay: yes, the login launches an intent to the next activity Sep 17 15:01:48 if that's what the lifecycle doc says, ok Sep 17 15:02:11 so if I use an activity only once I can manually finish() it? Sep 17 15:02:20 finish() your login activity then. Just bear in mind if I then press HOME and come back to the app, it is quite possible that I will end up in your login activity unless you check if I have credentials and then boot me to that 2nd activity Sep 17 15:05:09 ok Sep 17 15:09:41 hi, I am playing with BitmapFactory to decode jpeg images. The problem is that it looks like the decoding process is not using hardware... Is there any other alternative APIs to decode jpeg images using hardware acceleration (VPU)? Sep 17 15:21:34 I'm using __android_log_print in some native code, and I have something like: uint16_t x = ...; __android_log_print("... %X", (unsigned)x); and the number printed is larger than 16-bits wide.. how is this possible? Sep 17 15:23:22 hmm.. snprintf generates a non-sense string as well Sep 17 15:26:27 when i try to update an app by using install -r, its giving me an "INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES". I know the certs aren't the same - the app on the device was built on my other computer. I'm on a different computer now, did some work to the app and i want to install the newest version Sep 17 15:27:02 I don't want to uninstall the app because I believe that removes the user settings stuff. I want all that stuff left alone. Sep 17 15:27:36 Then you need to sign it with the same key Sep 17 15:28:47 so i'm up the creek now? because i didn't sign the effin thing with the same key on all the different computers i use? Sep 17 15:28:56 Yes Sep 17 15:29:14 thats BS. Sep 17 15:29:22 No Sep 17 15:29:51 Quick question: Using a custom adapter for a listview, which includes an edittext and a button. The button launches a new activity and is supposed to include what it says in the edittext. But I can't seem to access the data in it, without making my viewholder final, which is a no-go. My adapter: http://pastebin.com/kZWRb94Y Sep 17 15:29:53 It's not BS and you clearly did not read the docs Sep 17 15:30:27 being able to install the same package with different signatures is a security hole Sep 17 15:31:27 I want to make a dialog roundy, any advice? Sep 17 15:32:01 if you are talkin about http://developer.android.com/tools/publishing/app-signing.html, iread it Sep 17 15:32:22 Ankhwatcher, set your background to be a rounded image Sep 17 15:32:57 pfn: yep, I'm trying that but behind the background is a white rectangle Sep 17 15:33:14 I can see where my background ends and the square begins, I don't get it Sep 17 15:35:13 Ankhwatcher, set no window decorations Sep 17 15:37:28 pfn: on the alertdialog? Sep 17 15:38:15 sure Sep 17 15:38:48 okay, I think I found what you mean: http://stackoverflow.com/questions/9905315/cant-create-rounded-corners-dialog-android-eclipse Sep 17 15:43:45 So, anyone know how I can access the edittext without making the viewholder final? Sep 17 15:44:04 Moopz: er, what? Sep 17 15:44:09 yeah Sep 17 15:44:19 we now join a question currently in progress Sep 17 15:44:37 I'll repaste: Sep 17 15:44:39 Using a custom adapter for a listview, which includes an edittext and a button. The button launches a new activity and is supposed to include what it says in the edittext. But I can't seem to access the data in it, without making my viewholder final, which is a no-go. My adapter: http://pastebin.com/kZWRb94Y Sep 17 15:47:41 Moopz, make it final is the answer Sep 17 15:47:47 final ViewHolder h = myViewHolder Sep 17 15:48:29 pfn: But if I make the ViewHolder final, how would I add the EditText ID to it, as well as the button? Sep 17 15:48:50 Moopz, final doesn't mean read only Sep 17 15:48:59 final means the reference cannot be reassigned Sep 17 15:49:05 Yeah. Sep 17 15:49:07 Oh Sep 17 15:49:17 Right. And since the reference doesn't change Sep 17 15:49:24 When I assign the IDs Sep 17 15:49:29 It should be fine Sep 17 15:49:35 God I feel stupid sometimes. Sep 17 15:50:31 pfn: Thank you for pointing out my idiocy. Sep 17 15:50:46 always a pleasure Sep 17 16:02:35 <^cheeky> Kegsay: yup .. i only call setListAdapter() once, so thats not the issue, i just stomped on why when the app starts only one image is ben displayed in the list and not the rest even though i have debug statments that show the generated ids and they match and the bitmap is not null. Sep 17 16:09:48 I am trying to do a async http (using loopj http client) from a background service, but the result does not return. Is there anything I should take care of? Sep 17 16:11:09 onStart() gets called, but onFinish does not and there are no errors Sep 17 16:14:01 my code is here: http://pastebin.com/GqCtNDiT Sep 17 16:20:33 shame, I fixed it Sep 17 16:21:06 hi, i'm trying to use bluetooth to send a message Sep 17 16:21:43 and on this line: outStream.write(msgBuffer); i'm getting an "RunTimeException: Error receiving broadcast Intent" Sep 17 16:24:34 any idea? Sep 17 16:24:58 pastebin your code Sep 17 16:32:49 any one? please? Sep 17 16:39:59 plzzzzzzzz Sep 17 16:41:12 how do you expect to get help like that Sep 17 16:41:17 no one can read your mind or code Sep 17 16:41:20 maybe the nsa Sep 17 16:41:22 elichai2: pastebin your code, like deam said Sep 17 16:42:20 google wallet widely available? friggin' finally Sep 17 16:43:33 how nice, it says not compatible with my galaxy nexus still Sep 17 16:46:18 does it still do nfc payments? Sep 17 16:46:53 <^cheeky> Kegsay: I am sooo stupid !!!!!!!!!!!! .... Thank you for the discussion appreciate it Sep 17 16:47:29 glad I could help. Sep 17 16:50:14 <^cheeky> Kegsay: btw .. i dunno if you noticed it ... wow .. but you pointed it to me .. i dunno if you knew lol Sep 17 16:51:16 * pfn updates manually Sep 17 16:51:18 <^cheeky> in my code, when setting the image lol i was using the class view and not the passed in view back from the background thread lol Sep 17 16:51:26 pfn, lol about the google wallet. Sep 17 16:51:33 *i mean about the NSA Sep 17 16:51:39 I did query that before I think Sep 17 16:51:44 since it seemed odd Sep 17 16:51:47 hi, i'm trying to use bluetooth to send a message Sep 17 16:51:47 and on this line: outStream.write(msgBuffer); i'm getting an "RunTimeException: Error receiving broadcast Intent" Sep 17 16:52:02 i will pastebin it thx Sep 17 16:52:03 * ^cheeky stomach growls .... starting to initiate black hole phase Sep 17 16:52:36 I wonder how the rumors of google resolving android 4.4 updates is gonna pan out Sep 17 16:52:37 <^cheeky> heh Sep 17 16:53:29 <^cheeky> i guess lunch and then ill implememt the perfomance tuning even though the images i am grabbing are the small ones in the first place DUh .. lol but still wanna see the list just fly after i add caching and what not Sep 17 16:54:32 nice, google wallet got some good looking love Sep 17 16:57:26 Hi, what's the best way to call a public method on a service from a broadcastreceiver? I have a service that has a public method connect(). In a broadcastreceiver i'm checking for the wifistuff and want to call the connect-method if wifi is enabled. How would I achieve this? Sep 17 16:57:43 by getting a reference to the object and calling it Sep 17 16:58:58 figured as much. the thing is how do I do it? I've read about binding the service but that sounds wrong Sep 17 17:01:38 that depends on where your broadcast receiver is, and what exactly you're doing Sep 17 17:01:44 if your app is already running, ... Sep 17 17:01:58 if you want to do a task that takes a long time and your app isn't running, start a service, etc. Sep 17 17:04:18 the app should be already running and the task shouldn't take long (only connecting to a remote backend) Sep 17 17:04:36 broadcast receivers should take 0 time Sep 17 17:04:44 gdrc: still here? Sep 17 17:04:59 i found a workaround for the bug Sep 17 17:05:00 yes Sep 17 17:05:04 that's why i only want to call a method there, not binding the service on every receive Sep 17 17:05:26 ayonix, you know, just send another broadcast that your already running service can receive and process Sep 17 17:05:38 in \sdk\tools replace the contents with dl-ssl.google.com/android/repository/tools_r22-windows.zip Sep 17 17:05:40 are all android devices armv6 ? Sep 17 17:05:55 don't think so Sep 17 17:06:00 jedir0x: no Sep 17 17:06:05 veQue: lemme se Sep 17 17:06:17 pfn: would be another solution to nest the broadcastreceiver in the service or is this considered bad practice? Sep 17 17:06:27 i need to compile a binary - i want to compile it in a way that works for all android phones - what should my target be? Sep 17 17:06:55 ayonix, that would work perfectly fine Sep 17 17:07:06 ayonix, only use manifest receivers if you want to perform actions while your app is *not* running Sep 17 17:07:16 alright, thanks, I'll play around a bit Sep 17 17:07:17 gdrc: http://code.google.com/p/android/issues/detail?id=60149 Sep 17 17:07:27 #7 solutions Sep 17 17:07:39 pfn: true, but only if the user has not force-quit your app Sep 17 17:07:45 pfn: ah wait, running as in running in background or running as in if the app is focused? Sep 17 17:07:50 veQue: thanks Sep 17 17:08:02 ayonix, your process Sep 17 17:08:11 gdrc: you get it working? Sep 17 17:08:17 okay, then nesting sounds about right Sep 17 17:08:18 Napalm, user doesn't want your app to run--should respect that Sep 17 17:08:36 veQue: atm I'm downloading, I have slow internet Sep 17 17:08:43 ahh k Sep 17 17:08:51 3.5mbit fuck Sep 17 17:08:56 pfn: i know, thats what the frik i was saying :| Sep 17 17:08:58 that's not slow Sep 17 17:09:11 Napalm, indeed Sep 17 17:09:26 pfn: I think so, the national average is 7 Sep 17 17:16:59 here is my code: Sep 17 17:16:59 http://pastebin.com/F4z8RrYA Sep 17 17:17:12 elichai2> hi, i'm trying to use bluetooth to send a message Sep 17 17:17:12 and on this line: outStream.write(msgBuffer); i'm getting an "RunTimeException: Error receiving broadcast Intent Sep 17 17:17:16 thx Sep 17 17:17:34 pastebin the entire error Sep 17 17:17:57 do not catchall, let your app crash Sep 17 17:29:51 pfn, i'm catching wnat need to be chatched Sep 17 17:30:02 then where's your error Sep 17 17:31:06 here the error: http://pastebin.com/1bYLwRTa Sep 17 17:31:23 so... Sep 17 17:31:28 the message isn't clear? Sep 17 17:31:42 ? Sep 17 17:31:49 ohhh lol Sep 17 17:31:55 fix that already XD Sep 17 17:33:11 i have a question, i want to actually add some legal words that a person would have to do a checkbox before downloading an apk file. ... is this something that can be done thru the android sdk? Sep 17 17:34:39 too bad i need to go :( Sep 17 17:34:42 veQue, no Sep 17 17:34:46 i will come back later sorry Sep 17 17:34:48 elichai2, nice job wasting time :p Sep 17 17:37:03 veQue: works thanks Sep 17 17:37:15 awesome Sep 17 17:37:35 veQue, Google: Android EULA Sep 17 17:37:52 thanks Sep 17 17:43:34 anyone here use RecipientEditTextView (aka "chips") Sep 17 17:43:44 nope, is that a public api? Sep 17 17:43:51 yup Sep 17 17:43:54 its part of ex Sep 17 17:44:10 ex? Sep 17 17:44:17 pfn: https://android.googlesource.com/platform/frameworks/ex/+/master/chips/ Sep 17 17:44:27 I see, haven't looked at that at all Sep 17 17:44:41 What does the ex stand for? Sep 17 17:44:57 extra probably Sep 17 17:45:27 https://plus.google.com/+RomanNurik/posts/WUd7GrfZfiZ Sep 17 17:46:03 meh, wish I could just repo sync on windows Sep 17 17:46:14 annoying to have to git clone each module individually Sep 17 17:49:08 anyway, sounds neat Sep 17 17:49:15 I'll have to make use of that some day Sep 17 17:49:48 pfn: there are scripts for these things Sep 17 17:49:51 I wonder how much of a pita it is to make a clone-only repo sync tool Sep 17 17:49:57 have you ever made usb tether work on win7 64 bit? Sep 17 17:50:38 xrq, link? I haven't really seen any Sep 17 17:50:40 tinti: thats what I use currently, whats the problem? Sep 17 17:52:12 pfn: I don't know what you mean. you take your command to git clone and put it into a bash script. unless you're not using git in the terminal.... Sep 17 17:52:31 so there aren't scripts for these kinds of things :p Sep 17 17:52:57 pfn: #!/bin/sh git clone foo done Sep 17 17:53:04 ^ there's your script Sep 17 17:53:09 yeah, not so effective across 300 repos Sep 17 17:53:10 but ok Sep 17 17:53:11 thanks Sep 17 17:53:58 pfn: I'm sorry, I mistook you for someone who can write code Sep 17 17:54:14 egg in your face Sep 17 18:03:21 I am not find a compatible device Sep 17 18:03:28 but fortunately it is solved Sep 17 18:04:02 Napalm: I will post the link Sep 17 18:05:25 Napalm: Sep 17 18:05:25 http://msdn.microsoft.com/en-us/library/windows/hardware/ff570620%28v=vs.85%29.aspx Sep 17 18:05:38 if you use this INF template it works Sep 17 18:06:06 tinti: i have it working just fine, i was trying to help you :) Sep 17 18:06:21 thank you so much Sep 17 18:06:58 but thankfully I was able to get it working by my own. I just want to share it. maybe someone has the same problem (or will have) Sep 17 18:10:51 Hey there! Sep 17 18:12:08 I have an activity with some ui elements and a webview in it. I'd like to change the theme of the activity at runtime, which I assume can only be done by restarting the activity. Is there a way to preserve the webview (what's running in it has a long startup time)? Sep 17 18:15:54 Or, more general: If I have some views and a webview on the screen at the same time, can I change the theme of the regular views without restarting the webview? Sep 17 18:16:30 Or, is it possible to "stash" a view, start another activity and paste the view back in? Sep 17 18:18:01 RedNifre: try this? http://stackoverflow.com/questions/1002085/android-webview-handling-orientation-changes Sep 17 18:18:38 oh wait I think the coments are saying that doesn't work... Sep 17 18:20:08 RedNifre: this one looks more promising http://stackoverflow.com/questions/10924291/how-to-prevent-webview-auto-refresh-when-screen-rotation Sep 17 18:20:17 says to put the webview in a fragment Sep 17 18:21:22 haha, damn it I need to just stop firing out SO links :x Sep 17 18:21:25 and read them first Sep 17 18:21:50 I'm just gonna stop Sep 17 18:22:10 I'm working on a FOSS live audio / video streamer for Android, and having trouble getting the elementary AAC stream from MediaCodec into an .mp4 with MediaMuxer: https://github.com/OnlyInAmerica/HWEncoderExperiments/blob/audiotest/HWEncoderExperiments/src/main/java/net/openwatch/hwencoderexperiments/AudioEncodingTest.java Sep 17 18:22:15 I get timestampUs 0 < lastTimestampUs 23219 for Audio track Sep 17 18:22:32 even If i provide an increasing timestamp on each call to codec.queueInputBuffer Sep 17 18:24:48 using this same method for Video frames -> H264 works splendid Sep 17 18:30:19 Thanks for the links, mmathis, they lead to a statement by an android framework engineer who explained that what I want to do is impossible. Sep 17 18:31:07 kjeldahl https://github.com/chicken-mobile/example Sep 17 18:31:32 sorry to hear that RedNifre Sep 17 18:32:10 Guess I'll have to speed up the webview, maybe replace the local server with a content provider or whatnot. hm... Sep 17 18:32:22 RedNifre: you can't change the theme without restarting the activity Sep 17 18:33:17 nseidm1 that's what I suspected. And I also now know that I can't keep the webview if I do that since it's tied to the context. Sep 17 18:33:31 indeed Sep 17 18:33:45 why not just setup methods to manually theme the views? Sep 17 18:33:52 The developers who came before me actually wrote a completely custom GUI that actually CAN change its theme without restart. Sep 17 18:34:00 It's a big mess. Sep 17 18:34:12 Also, it doesn't work properly Sep 17 18:34:28 So my hope was to change it to android standard components and use xml themes. Sep 17 18:34:33 yes, manually changing a million views is indeed messy, hence why themes, styles and custom attributes are soo useful Sep 17 18:35:28 Well, the problem is that you can't change everything, e.g. the text color in an actionbar. Sep 17 18:35:47 So the current solution replicates things like actionbar and dialogs, poorly. Sep 17 18:36:43 ahh, custom action bars and dialogs :-P Sep 17 18:36:54 we all know how that turns out most of the time Sep 17 18:36:54 But about something different... is it possible to put a full screen view on top of my activity, hiding everything including actionbar? Sep 17 18:37:08 yes Sep 17 18:37:22 Can you give me some keywords so I know what to google? Sep 17 18:37:27 add a view directly to the window manager Sep 17 18:37:44 ...and can I animate that one to be like a book cover that flips open? Sep 17 18:37:53 sure Sep 17 18:41:07 pfn! Sep 17 18:42:15 I only know about defining viewflippers in a layout xml and flip those animated. Do I create a viewflipper by code, put the whole activity plus an image view in it and assign that to the windowmanager? Or how does this work? Sep 17 18:42:50 tortal! Sep 17 18:42:54 pfn! Sep 17 18:42:56 spaceteam Sep 17 18:43:03 was AWESOME Sep 17 18:43:07 so i contacted the creator :) Sep 17 18:43:11 heh Sep 17 18:43:27 lazy ass had made it for iOS and let some east-europeans or smth port it to android Sep 17 18:43:36 is that so, interesting Sep 17 18:43:36 hi, what's the sensor accuracy? Sep 17 18:43:42 but yes Sep 17 18:43:49 he gave me a fine answer Sep 17 18:43:52 want to take part ? Sep 17 18:44:00 not particularly :) Sep 17 18:44:31 scre you then Sep 17 18:44:37 anyway Sep 17 18:44:38 cool tip Sep 17 18:45:04 ex bioware dude Sep 17 18:47:24 i am using a FragmentStatePagerAdapter which i plan on putting a page for each item inside an array style datamodel. Right now i am creating it using : mDemoCollectionPagerAdapter = new DemoCollectionPagerAdapter(getSupportFragmentManager()); and then i am setting adapter.datamodel to my array, however when i return array.size it always returns 0... any ideas why it would have this behavior? how to I tell it to reload after i Sep 17 18:47:25 set the datamodel? Sep 17 18:49:05 got some frustrating issues trying to get gradle build working in AndroidStudio - Gradle claims it can't find some classes in the google play services library Sep 17 18:49:08 relevant info: http://hastebin.com/xeqicarahu.coffee Sep 17 18:50:18 Bourbon: not that I'm going to specifically respond to JeremieDeNoob, but you totally posted a question immediately after his, total thread jacking Sep 17 18:50:57 lol i didnt know there were ethics in posting questions to be honest, no harm done... Sep 17 18:51:21 some courtesy is always nice :-) Sep 17 18:51:38 posting ethics? these dont exist on ios threads. what does exist is nonsence conversations and memes that drown your question in the first 3 minutes Sep 17 18:51:39 :P Sep 17 18:52:22 hm, weird that Play store in Genymotion doesn't list all the free apps that my phone does :| Sep 17 18:54:58 nseidm1: it's an irc channel - people ask questions as they want, and they get answered as people decide they want to ask questions Sep 17 18:55:10 Oh, wow! So I can add additional view layers to the windowmanager? I guess closing the whole activity like a book just means adding a layer and inflating a layout to it that can play an "open cover" animation. Thanks very much nseidm1 :) Sep 17 18:55:48 Sorry for answer jacking ;) Sep 17 18:56:32 RedNifre: yup, an activity essentially is a view manager/controller Sep 17 18:56:51 you can manage your own views too Sep 17 18:57:12 lol waits for the appology, answers the question Sep 17 18:57:15 I suspect there is a lot to this that I don't know yet. Interesting! Sep 17 18:57:16 i like ur style Sep 17 18:57:16 :P Sep 17 18:57:23 all new to me RedNifre Sep 17 18:57:42 and ive been frequenting ios for over 2 years Sep 17 18:58:37 I'll see if changing the android support version in gradle changes things Sep 17 18:58:57 How much freedom do I have with Android's on screen "hardware" buttons and top bar? Can I cover those, too? Or only hide them directly? Sep 17 18:59:30 RedNifre: http://stackoverflow.com/questions/10086371/androidtheme-androidstyle-theme-notitlebar-fullscreen-works-on-application < for getting rid of top bar Sep 17 18:59:41 hi all i need help with the action bar, i'm learning from android-dev official guide that are the sources i get a problem in the mainactivity.java it doesn't find the action_close id, that i declared in menu.xml file so this is the java file http://pastebin.com/tM2tU7hK and this is the /res/menu/main.xml can anyone help me ? Sep 17 19:00:22 paste the xml Sep 17 19:00:48 Bourbon I know that I can hide those bars, I was wondering if I could put a layer on top. I.e. have a book cover close on the whole screen. Sep 17 19:01:01 that, I can't really say Sep 17 19:02:09 You can hide the status bar completely Sep 17 19:02:10 Or, if the closed cover doesn't hide those bars, it would be very neat if it opened in a 3D way, being drawn over the bars when at 90 degrees open. Sep 17 19:02:18 You can hide the buttons until the user touches the screen Sep 17 19:02:39 I know all that, that's not the question. It's difficult to describe, maybe I should draw a picture... Sep 17 19:03:03 You can't overlay either Sep 17 19:03:27 you want to have an animation overlap the title bar? Sep 17 19:03:30 Can I take a screenshot of them, hide them, then show the screenshots and cover those? Guess not, huh? Sep 17 19:04:47 Bourbon http://pastebin.com/N7W0miqW this is the xml Sep 17 19:06:41 Oh, so it's possible to overlay the status bar (Roundr does it, but requires the "draw over other apps" permission). I guess it's not possible to cover the onscreen buttons, if Roundr can't do it. Sep 17 19:07:07 How do i get the menu button not to appear on an activity not using an action bar Sep 17 19:07:13 where do i set the compilers log level ? (like if i want to turn on verbose for instance?) Sep 17 19:08:49 demonio: it looks like you're not importing R from anywhere Sep 17 19:10:44 What's the pastebin for images? Sep 17 19:11:08 imgur? Sep 17 19:12:32 Bourbon how i should do, the thing strange is that R.id.action_settings exist while R.id.action_close no Sep 17 19:13:13 if there are any MediaCodec genius's out there, I've forwarded my question to SO: http://stackoverflow.com/questions/18857692/muxing-aac-audio-with-androids-mediacodec-and-mediamuxer Sep 17 19:13:57 https://gist.github.com/pfn/6599272 Sep 17 19:14:05 meh, I guess I'll start off with that for my crappy repo hack for windows Sep 17 19:14:17 So here's what I wanted to do (seems like only the top half is possible) https://dl.dropboxusercontent.com/u/2098438/2013-09-17%2021.05.04.jpg Sep 17 19:14:39 odd, not sure demonio - have you tried rebuilding the project? sometimes things can get weird and cached if it looks otherwise right Sep 17 19:14:56 huh, new AS already :D Sep 17 19:14:59 0.2.9 Sep 17 19:21:05 jaynewstrom What? The hardware button is there always and the on screen button shouldn't be there if you target a recent api. Sep 17 19:24:07 RedNifre: thanks, I had update my build.gradle, but not my manifest Sep 17 19:24:23 hardware menu button appears if you target api <11 Sep 17 19:24:27 i had updated* Sep 17 19:27:16 Bourbon project-->build all Sep 17 19:30:26 but doesn't work Sep 17 19:30:38 pfn: <14 Sep 17 19:31:24 well, there's some funky interactions around hc, but yeah Sep 17 19:31:31 (on phones, tablets is probably <11) Sep 17 19:32:30 Yeah, I was targeting 12, but I was on the nexus 4 Sep 17 19:33:21 so, if you're still targeting GB up - what is the solution for context menus? i guess they went out of vogue HC+ from what i can tell. so for things in my listView, am i supposed to use a card now with a hamburger ? Sep 17 19:34:15 it seems even the little triangle affordance (like the spinner) to show a popupmenu is also out of vogue ? Sep 17 19:34:50 g00s: use the action bar. that's their answer Sep 17 19:35:04 jaynewstrom i meant for individual things in my listview Sep 17 19:35:14 not CAB Sep 17 19:36:02 jaynewstrom ah, brainfart … ok got it Sep 17 19:36:23 g00s: what's the answer? Sep 17 19:36:54 you were right - for listview -> cab, but still not sure for long presses in other contexts Sep 17 19:37:20 is long press not in style anymore? Sep 17 19:37:57 according to design guidelines, seems only for entering CAB :D Sep 17 19:38:03 http://developer.android.com/design/patterns/gestures.html Sep 17 19:38:25 Hi. What's the best practice for dynamic ui creation? I want a scrollable list of all contacts in their own Switch element with the name of the contact as the text to the left of the switch. Sep 17 19:38:41 didn't realize that. Android sure seems to just change things and not care too much about it Sep 17 19:39:32 jaynewstrom i was looking at this http://developer.android.com/design/patterns/app-structure.html Sep 17 19:39:40 section "Allow cutting through hierarchies" Sep 17 19:39:50 they have the little triangle highlighted Sep 17 19:40:09 but i think Mavrik mentioned they are replacing that with cards Sep 17 19:40:42 which makes me wonder, if android 5 will be card-centric Sep 17 19:40:53 yeah Sep 17 19:40:54 more support in the ui classes for it , ot something Sep 17 19:41:06 i found a few one-off libs on the interwebs, but meh Sep 17 19:43:53 More support for it? Like, more ways to set backgrounds? Sep 17 19:45:35 Is there a universal way to add UI elements to the standard built-in apps such as Contacts? Sep 17 19:45:46 SimonVT shouldn't a card be richer? Sep 17 19:45:56 if its just a background, its lame Sep 17 19:46:07 Like what? Sep 17 19:46:13 i dunno, here we go again Sep 17 19:46:40 sigh Sep 17 19:46:47 gradle-- Sep 17 19:47:17 SimonVT remember when the actionbar was just a block of xml, but now its got a lot of behavior? Sep 17 19:47:24 iosched 2010 code ? Sep 17 19:47:32 archaeology in android Sep 17 19:47:42 i bet the same will happen with cards, now its just xml in many cases Sep 17 19:47:53 but the idea will get fleshed out somehow, and more behavior will be added Sep 17 19:47:58 guidelines, UI widget, etc Sep 17 19:48:23 if it doesn't, it was a lame idea to begin with :) Sep 17 19:48:26 hopeful :) Sep 17 19:48:53 hi - having issues building with gradle http://hastebin.com/qejikihahi.avrasm Sep 17 19:49:24 I can't seem to get it to get past the dexing - it says i've got something defined twice, but when I take the support library out of the compile dependencies, it can't get past the lint stage Sep 17 19:49:37 Bitwise: (belated) - ListView Sep 17 19:49:50 there was an article on cards idiom popping up all over; google of course using it in a lot of their products. https://news.ycombinator.com/item?id=6349757 Sep 17 19:50:24 can't wait till cards go out of fashion... Sep 17 19:50:32 evanc, I know that but how I do populate it with Switch elements with the text set to each contacts name? Sep 17 19:50:51 ""don't think 'rectangle', think flipping, folding, expanding, stacking, grouping, sorting" Sep 17 19:51:01 ok, so in that case there would be more to it Sep 17 19:51:17 bubbleguuum heh, me too Sep 17 19:51:39 cards are the long-term plan of mattias duarte from webos... you know Sep 17 19:51:48 I dunno about going out of fashion any time soon Sep 17 19:51:50 * pfn shrugs Sep 17 19:51:55 were cards in webOS ? Sep 17 19:52:24 pfn: remember dashboards and carousels ? Who doesn't lol at them now Sep 17 19:52:34 gah carousels Sep 17 19:52:55 g00s: Regarding Chicken Scheme - thanks! From the looks of it, Kawa is miles ahead however.. The caveats here https://github.com/chicken-mobile/example/blob/master/backend.org indicate it's half backed at this point. And mentions of JNI; *shudder*. Sep 17 19:53:54 kjeldahl :) Sep 17 19:54:03 i think p_l liked chicken Sep 17 19:55:32 g00s they use tiny overflows like the old triangle in Play Music. Not sure how standard compliant that is though. Sep 17 19:56:41 ok, looks like the issue is that the line "compile ('com.github.chrisbanes.bitmapcache:library:2.3')" Sep 17 19:56:55 the thing has a dependency on the support library v4 r7 Sep 17 20:00:38 Bourbon so you are using a library which has a dependency on an older version of a transitive dependency ? Sep 17 20:01:03 yes - support library v4, r7 Sep 17 20:01:12 whats the current one ? Sep 17 20:01:23 well, gradle wants to pull down "18.0.0" Sep 17 20:01:28 oh yeah Sep 17 20:01:37 ok, well in gradle you can override that dependency Sep 17 20:01:43 It's probably using the one in maven central.. It uses a different artifact id Sep 17 20:01:46 i think maven has this too, but in maven its nicer Sep 17 20:01:49 and if I specify r7 in gradle as a dependency, it pulls down "13.0.0" so that there are two copies fo the exact same Sep 17 20:02:02 but with diff names Sep 17 20:02:26 Ask him to update it to use the one in the SDK.. Or use a different library Sep 17 20:02:29 you could do something like this http://stackoverflow.com/questions/14577138/gradle-overriding-dependency-with-different-name Sep 17 20:02:45 or yeah, ask him to update stuff Sep 17 20:02:53 (maybe it doesn't even work with a newer version) Sep 17 20:03:18 I'm trying to use the one from the google repo from the sdk Sep 17 20:03:29 just exclude transitive dependencies Sep 17 20:03:35 and only use the google repo dependency Sep 17 20:03:49 that's why i hate it that so many android libs depend on support-v4 from maven Sep 17 20:03:54 it's so very annoying Sep 17 20:04:08 I wrote a special rule just to exclude transitive dependencies on support-v4 from maven Sep 17 20:05:18 http://www.gradle.org/docs/current/userguide/dependency_management.html < item 50.14? Sep 17 20:07:08 Bourbon yeah, something like that. i guess you want to rewrite the dependency since you still need it? but different group / version ? Sep 17 20:08:16 well, if I take the dependency's explicit inclusion out, then it doesn't want to get past the lint stage Sep 17 20:08:52 maybe try to rewrite it like the SO flow post; although i thought the gradle docs had an example of that too. you could also ask in #gradle Sep 17 20:09:07 ah, thanks Sep 17 20:09:29 Ragnor and Sebersol are very helpful Sep 17 20:09:43 www.gradle.org/docs/current/userguide/dependency_management.html#sub:version_conflicts < that one Sep 17 20:10:45 is it me, or the gradle.org docs font get really tiny Sep 17 20:12:33 actually, this seems to have done it for me - excluding the module on the dependency I know includes it works Sep 17 20:12:41 but it seems to leave me open to possible issues with later things Sep 17 20:12:53 but I'm building again, finally! Sep 17 20:12:58 hi guys, I've osx 10.8.4, installed sdk via homebrew, pointed that sdk from default project structure settings Sep 17 20:13:08 creating a new project just gives "error" any idea? Sep 17 20:13:21 no, we definitely have no ideas Sep 17 20:13:23 don't install via homebrew Sep 17 20:13:44 unless you define error Sep 17 20:13:47 oh wait, it was still trying to compile with 4.2 which I don't have, now on restart it recognizes the 4.3 Sep 17 20:13:57 nseidm1: just a window with "error" as text Sep 17 20:14:18 delete everything and download the sdk bundle with Eclipse, or Android Studio Sep 17 20:14:30 What's the proper way to handle exceptions in production apps? Sep 17 20:14:37 gracefully! Sep 17 20:14:54 btw, the issue was just that Sep 17 20:14:58 sorry for asking Sep 17 20:15:46 Bitwise interesting question. there are different schools of thought. i'm of the 'crash loud and hard' one Sep 17 20:16:00 or at least, catch the exception, and finish Sep 17 20:16:14 if something truly goes wrong, its better than limping along in some screwed up state Sep 17 20:16:23 That's true. Sep 17 20:16:30 #android-hacking Sep 17 20:16:40 but then we have to differentiate between things that go wrong and truly wtf-unrecoverable errors Sep 17 20:17:01 getting an exception from the http stack, and not catching it, is not what i'm talking about Sep 17 20:17:05 thats normal Sep 17 20:17:15 if you db gets corrupted, thats different Sep 17 20:17:40 Bitwise, in production apps, always minimize crashes, log and report, and do your best to reset state and continue Sep 17 20:17:46 no users appreciate crashing apps Sep 17 20:17:49 not a single one Sep 17 20:17:58 worst-case, do like ios and just finish without throwing up the stopped dialog Sep 17 20:19:06 anyone here any good at ndk Sep 17 20:19:15 Sounds good, thanks. Sep 17 20:19:57 Bitwise you can look at stuff like crashlytics too Sep 17 20:20:01 some use ACRA Sep 17 20:20:03 of course, for most mortal devfelopers, catching crashes is very low on the list of priorities Sep 17 20:20:10 just let the app crash Sep 17 20:20:16 define: "good" on NDK Sep 17 20:21:54 about crashes you get to love random RuntimeException's thrown by the Android API on stuff that can be easily recovered...Google abuse of RuntimeException drives me mad. If only they used checked exceptions... Sep 17 20:22:49 I prefer unchecked exceptions, all checked exceptions do is uglify the code Sep 17 20:23:11 hi Sep 17 20:23:24 unchecked exception = undocumented = app crash in situation it could have been recovered. Sep 17 20:23:36 just because it's unchecked doesn't mean it's undocumented Sep 17 20:23:43 how many of these I discovered in ACRA reports Sep 17 20:23:50 a quick question - EditText editText = (EditText) findView... - what exactly is the role of (EditText)? Sep 17 20:23:57 pfn: well most aer them are NOT documented Sep 17 20:25:02 * pfn shrugs Sep 17 20:25:25 I prefer the crashing vs. overly cautious try-catch or verbal diarrhea all over Sep 17 20:25:47 looks like do not have a popular app with a big user base... Sep 17 20:25:55 anyone? Sep 17 20:26:11 i wanted to know if its possible to build a gsm scanner for android maybe with custom ril Sep 17 20:26:14 wassup, google java tutorial Sep 17 20:26:27 and also if its possible to program in sim info Sep 17 20:27:01 Pr070cal, ril is independent of android, and thus out of scope Sep 17 20:27:03 for #android-dev Sep 17 20:27:06 pfn: as far as I could tell, you cast by () Sep 17 20:28:52 I'm much more frustrated with the Java platform's abuse of checked exceptions. Sep 17 20:28:59 RyanM, agree Sep 17 20:29:26 There are exceptions that you're required to catch that are documented to only be thrown if you pass null as a parameter. Sep 17 20:29:33 i read an article a while back where Gosling had second thoughts about the whole exception design in Java Sep 17 20:29:39 but i can't find it Sep 17 20:30:02 Joshua Bloch has criticized the platform's use of them as well. Sep 17 20:30:03 it tends to be one of those religuous sub-wars in java land Sep 17 20:30:10 yeah Sep 17 20:30:34 Side note: I highly recommend anything Bloch has ever written. Sep 17 20:30:43 also Eckel hated them too i think Sep 17 20:30:58 I have 3 of his books and they're all quite good. Sep 17 20:31:12 RyanM Bloch ? Sep 17 20:31:41 g00s: Joshua Bloch. He is/was one of the Java platform architects. Sep 17 20:31:56 RyanM he was with the android team for a short while Sep 17 20:32:02 speaking of bloch, did bgga win for java8 closure syntax? Sep 17 20:32:03 'with' not on, i get the impression Sep 17 20:32:56 according to wikipedia, he was chief java architect at Google Sep 17 20:33:13 wonder what he does these days Sep 17 20:34:07 unchecked exception if badly used are evil Sep 17 20:34:37 exceptions are generally evil Sep 17 20:34:57 Google fucking love IllegalStateException Sep 17 20:35:06 the IAP API is full of it Sep 17 20:35:10 those are the best Sep 17 20:35:11 lol, frags and illegalstates, omg Sep 17 20:38:08 What's the proper way to make a ListView of Switch elements with the text being the contacts name? Sep 17 20:40:43 Bitwise: proper way? As in all the best practices for making a listview? Sep 17 20:42:51 how you call this operator |= ? Sep 17 20:43:10 Or Equal? Sep 17 20:45:02 It's a compound bitwise or Sep 17 20:45:18 sonOfRa thank you i was looking for it in google Sep 17 20:45:56 nseidm1, As in how should I query the contacts then make a Switch element for each one with the text of the Switch element the name of the contact. Sep 17 20:46:13 what is a Switch element? Sep 17 20:46:18 a ViewSwitcher? Sep 17 20:46:20 papachan: if I was reading code aloud, yes. I would call it or-equal Sep 17 20:46:21 An on/off toggle Sep 17 20:46:43 JesusFreke ok thanks Sep 17 20:47:16 or otherwise referring to that operator by name Sep 17 20:48:57 Anyone know how to mock a service for a unit test: http://stackoverflow.com/questions/18841578/mock-service-for-activityunittestcase ? Sep 17 20:51:44 nseidm1, Any suggestions? Sep 17 20:52:13 I'd use BaseAdapter, ensure you have a view holder Sep 17 20:52:22 that's all there is to it Sep 17 20:52:28 hey nseidm1 Sep 17 20:52:28 lazy load the contact photos Sep 17 20:52:38 Napalm in the houseeeee Sep 17 20:52:53 PA road trip on Saturday Sep 17 20:52:59 just packing, will call you tommorow when im in your area and we'll talk more then Sep 17 20:53:28 cool Sep 17 21:01:21 nseidm1, I'm kinda stuck. Sep 17 21:03:00 Bitwise: you're heading down a road filled with lots of work and tweaking Sep 17 21:03:11 start with a BaseAdapter Sep 17 21:03:14 and fill it in Sep 17 21:16:34 oops, set wireless isolation on router; had to physically connect to it to log back in :| Sep 17 21:19:25 any implementations of TLS 1.2 on Android 2.3 and up ? Sep 17 21:26:18 anybody have a samsung galaxy Exhilarate? Sep 17 21:26:41 one of the user is crashing the app, it doesn't seem to be on any other phone Sep 17 21:28:25 ban it Sep 17 21:28:46 cnet average user rating: 0.5 stars Sep 17 21:28:49 lol Sep 17 21:29:18 it's a 3.5 Sep 17 21:29:27 only 1 user rating Sep 17 21:33:00 Is there a way to add an extra field to a contact programmatically? Sep 17 21:33:40 By that I mean, I want an on/off switch when a contact is viewed that will enable my service for that contact? Sep 17 21:35:56 Bitwise: if there isn't, just store a list in your app Sep 17 21:36:32 maybe use cursorjoiner Sep 17 21:36:45 maybe this? http://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.BaseTypes.html#TYPE_CUSTOM Sep 17 21:36:54 I'm wondering if there is because doing that would make my job of keeping the contacts and their setting for my app synchronized. Sep 17 21:36:56 dunno how it's used; you'll have to go on an adventure Sep 17 21:37:19 .. a lot easier. Sep 17 21:37:39 evanc in general, are apps allowed to add fields to the contact db ? Sep 17 21:38:02 g00s: I haven't the slightest clue; that's what we're trying to find out :) Sep 17 21:38:30 it'd be great if there was a package-specific key/value store but I doubt that there is Sep 17 21:38:45 hi i'm using the EULA code here http://www.donnfelker.com/android-a-simple-eula-for-your-android-apps/ . and my splash screen comes up while the EULA is still up... in his code where can i add my own boolean for true if accepted and false if not? Sep 17 21:39:08 evanc, I found this: https://android.googlesource.com/platform/packages/apps/Contacts/+/39948dc7e34dc2041b801058dada28fedb80c388%5E/src/com/android/contacts/model/EntityModifier.java Sep 17 21:39:52 veQue: that's a pretty terrible way to create a dialog, but whatever; add your code where he's marking it as read (line 45) Sep 17 21:39:59 jasta: Do you work with a patched version of Caliper and Vogar or do you just use old versions? Sep 17 21:40:22 help, somebody, anybody =( Sep 17 21:41:05 meetoman: you post your question on Stack Overflow yet? Sep 17 21:41:14 evanc i don't think that boolean actually means what you may think it means Sep 17 21:41:37 it's there to only show the EULA once and not everytime the app starts up Sep 17 21:41:53 unless im' mistaken on what you mean Sep 17 21:42:07 louielouie, i dont have the crash log from the user, and it's hard to ask questions without a definate question Sep 17 21:42:25 Tell him to click Report next time. Sep 17 21:42:35 louielouie, I need a samsung galaxy Exhilarate to be exact, but I dont know anybody who have that phone =( Sep 17 21:43:45 http://pastebin.com/rbPex3Rm here's my failed attempt. I added the isAccepted Sep 17 21:43:50 but it stays false Sep 17 21:43:58 Is it possible to "stream" NFC? Sep 17 21:44:21 been reading the api a bit Sep 17 21:44:36 i'm not understanding where i would add in a isAccepted = true; Sep 17 21:45:44 evanc, http://stackoverflow.com/questions/4487055/android-add-menu-item-to-androids-built-in-apps Sep 17 21:46:04 Although that is from '10 Sep 17 21:54:15 RyanM did you see this? bloch didn't contribute, but seems like the sort of thing he would work on http://www.informit.com/store/java-coding-guidelines-75-recommendations-for-reliable-9780321933157 Sep 17 22:03:41 is there a version of http://developer.android.com/reference/android/view/Window.html#hasFeature(int) that goes back to at least API level 8 Sep 17 22:06:37 jaynewstrom: just requestFeature() Sep 17 22:06:53 I found getLocalFeatures. I think that could work. Sep 17 22:07:00 not sure if it throws an exception if featureId is invalid Sep 17 22:07:02 No i just have to figure out how to compare bitfields Sep 17 22:07:31 So it looks like the the Android Gradle plugin generates the AndroidManifest for your test application. Does anyone know how to hook in and add custom entries to the manifest generated by the gradle? Sep 17 22:08:57 I know I've asked a few times about different ways of making my app. Here is my end goal: Have an on/off switch for each contact which is saved and handled by my app. What would be the proper way to do this? Sep 17 22:10:03 what is your app handling? calls? sms? Sep 17 22:10:14 Text messages. Sep 17 22:11:00 The app should only work on the contacts the user selects. Sep 17 22:13:48 birbeck, Right now I'm thinking of just syncing the settings of each contact with my app settings when a text message is sent/received. This is redundant though and a waste of resources. Sep 17 22:16:44 wow, jbq hired by yahoo Sep 17 22:17:20 jbwho? Sep 17 22:17:55 he was the tech lead for aosp Sep 17 22:18:06 http://gigaom.com/2013/09/17/yahoo-hires-googles-technical-lead-for-androids-open-source-project/ Sep 17 22:18:57 Oh Sep 17 22:20:36 wabz i think if dianne h leaves, thats when i start to worry :P Sep 17 22:25:19 hamburgers (over flow?) menus in Play Store cards are waaaaay to small Sep 17 22:25:34 violate google own UI design guidelines, of min touchable area Sep 17 22:26:25 i think instead of the hamburger, they should just go back to the spinner triangle + long press Sep 17 22:26:55 hamburger has lines Sep 17 22:26:57 not dots Sep 17 22:27:04 not sure what this is called :p Sep 17 22:27:13 ok, maybe just overflow menu Sep 17 22:27:24 but yeah it's pretty small Sep 17 22:28:00 <^cheeky> bein on irc and haveing ADD not a good combo Sep 17 22:28:07 * ^cheeky face palm Sep 17 22:33:16 g00s: I work at yahoo so that'd actually be kinda cool Sep 17 22:33:22 :p Sep 17 22:34:18 nice wabz :) Sep 17 22:36:15 wabz: haha, yahoo ;) Sep 17 22:49:28 g00s: they aren't hamburgers Sep 17 22:49:50 the three lines are hotdogs, and the three dots are the same hotdogs, viewed from the end Sep 17 22:51:02 oh :) Sep 17 22:52:25 at least that's how I see it Sep 17 22:52:52 <^cheeky> three sausages Sep 17 22:52:56 <^cheeky> i can see that Sep 17 22:52:59 <^cheeky> lol Sep 17 22:54:52 Hey guys. I'm not sure if any of you saw this, but when you install YouTube on a Samsung Smart TV - there's a really cool pairing process with the mobile device. First, they display a QR code on the TV, you scan it and then you get to a URL that has some id in it, for instance 1234. Then on the mobile, after you scan and click the link, you get to a webpage that open the YouTube app on Sep 17 22:54:52 your phone. In the YouTube app they show you a screen where you need to click 'add' to pair it with the TV. Now.. my question is: how were they able to know what TV I'm pairing with on the mobile? I didn't need to enter anything manually. Sep 17 22:54:57 Are they using a cookie or something? Sep 17 22:57:01 With a cursor, what if there are multiple values at that column index? Sep 17 22:57:16 Techdeck: you just said that the URL has an ID in it, no? Sep 17 22:57:21 I imagine the TV is linked to the ID at startup, then uses that same ID in the QR code, and the web app ties them together. Sep 17 22:57:42 For example in this code, what if there are multiple phone numbers for that contact? final String number = people.getString(numberFieldColumnIndex); Sep 17 22:57:48 evanc, still, how from within the youtube app they were able to get that code? Sep 17 22:58:12 It's their Youtube app, I imagine. Sep 17 22:58:14 Techdeck: when they open the app Sep 17 22:58:17 the QR code pointed to http://something.youtube.com/1234 Sep 17 22:58:24 how do you open the app and send parameters to it? Sep 17 22:58:49 from a web link Sep 17 22:58:49 they could use a custom URI that (hopefully) no one else responds to? Sep 17 22:58:50 http://www.youtube.com/yt/sendtotv/ Sep 17 22:59:00 With a cursor, what if there are multiple values at that column index? Sep 17 22:59:12 what do you mean custom URI? Sep 17 22:59:16 like, youtube:// ? Sep 17 22:59:17 Bitwise: there won't be Sep 17 22:59:28 Techdeck: yeah, vnd.omghax://1234 Sep 17 22:59:32 ah! Sep 17 22:59:34 that's a good idea Sep 17 22:59:35 It's something that Youtube offers, and they have a deal with Samsung. Sep 17 22:59:40 Techdeck: I'm speculating here Sep 17 22:59:43 what about when you dont have the app installed? is it still possible? Sep 17 22:59:48 TheTrash: that in no way answers the question Sep 17 22:59:50 Techdeck: no idea Sep 17 22:59:51 everyone have youtube installed obviously Sep 17 23:00:08 Techdeck: you could try disabling the YT app and trying again Sep 17 23:00:27 evanc: huh? the youtube app does the pairing. Sep 17 23:00:37 TheTrash: obviously. He's asking *how* Sep 17 23:00:37 evanc, Look for this "while (phones.moveToNext()) {" are you saying that code is redundant? :o http://stackoverflow.com/questions/1721279/how-to-read-contacts-on-android-2-0 Sep 17 23:00:37 I'm not sure about that actually TheTrash Sep 17 23:00:45 Oh Sep 17 23:00:49 a second before it opened the app, I saw a very similar form in HTML Sep 17 23:00:59 also had the 'add' button Sep 17 23:01:00 Yeah, probably a custom URI. Sep 17 23:01:10 Bitwise: that's a separate query Sep 17 23:01:20 interesting Sep 17 23:01:35 can you think of a way I can pair 2 devices even before they installed the app? Sep 17 23:01:47 Techdeck: just copy the URL and then IM it to yourself and open it on your desktop; see what it does Sep 17 23:01:53 like, save a cookie for my domain, then somehow access that cookie from within the app? Sep 17 23:01:56 maybe with a webview? Sep 17 23:02:17 evanc, it's an HTTP url, I guess they redirect to youtube:// or whatever after you get there Sep 17 23:02:36 i was just asked to evaluate the code base of a large multi-national's android app, which turned out to be 20k lines of advertisements, analytics, and iOS widget imposters Sep 17 23:02:54 g00s: easy money! Sep 17 23:02:56 and pre iOS 7 widgets at that :D Sep 17 23:03:12 O_o Sep 17 23:03:21 So there's no actual app? Sep 17 23:03:27 Nilium exactly! Sep 17 23:03:30 well, no there is Sep 17 23:03:33 tapjoy crashes Sep 17 23:03:34 Or do you mean widgets as in views and not launcher widgets? Sep 17 23:03:49 so there is the skeleton of something that crashes, but no functionality Sep 17 23:04:08 Nilium oh, i mean stuff to look like iOS widgets (not home screen) Sep 17 23:04:19 basically "make the android version look like the iOS version" Sep 17 23:04:25 Ah. Really dislike how folks did that. Sep 17 23:04:27 no? Sep 17 23:04:29 they both could have been a website Sep 17 23:04:52 can I save a cookie in the browser and later on read it from within the app? Sep 17 23:05:03 or maybe not a cookie, something in LocalStorage Sep 17 23:05:09 'Cause folks using Android are totally expecting an exact clone of the version on a phone OS they don't use. Sep 17 23:05:25 And vice versa. Sep 17 23:05:34 or... is there a way I can identify a mobile device uniquely from the web? (not inside an app) Sep 17 23:05:51 somebody should leave a comment like "can you update the l&f so its like iOS 7" Sep 17 23:05:55 Why do you need to uniquely identify a device? Sep 17 23:06:00 Have you considered this is a bad idea? Sep 17 23:06:08 Nilium, for the pairing process I described above Sep 17 23:06:25 I want to pair a mobile device with a TV even before the user installed my app Sep 17 23:06:47 Sounds possibly futile. Sep 17 23:06:48 I want to save some data when he gets to some link on my site, and once he opens the app for the first time, pull that data Sep 17 23:07:23 I'm just having a hard time phrasing the question Sep 17 23:07:34 Why before opening the app? That's going to be very hard, if it's even possible. Sep 17 23:07:47 the user may not have my app installed yet Sep 17 23:08:00 Maybe have them visit the site which has JS generate something clientside, sends that to the server, the server stores it, then you generate the same data from the client app (not the website) and get a response from the server? Sep 17 23:08:15 I say, using gigantic vague phrasing Sep 17 23:08:50 What IDE do you guys generally use for Android apps? Sep 17 23:08:54 eclipse Sep 17 23:08:58 IntelliJ. Sep 17 23:08:58 eclipse Sep 17 23:09:18 Some folks just use a text editor and a terminal. Just pick whatever you like. Sep 17 23:09:34 There's nothing really tying you to an IDE. Sep 17 23:10:10 I want to save some data when he gets to some link on my site, and once he opens the app for the first time, pull that data Sep 17 23:10:23 Save the data server-side and request it again from the app. Sep 17 23:10:31 <^cheeky> Nilium: but does it not help a lot and increased productivity Sep 17 23:10:50 That depends on the person. Sep 17 23:11:07 on the TV the client will see a QR code, scan it, get to some link the will eventually redirect to the google play link to my app. Once he installs and opens the app, I want that device to be paired with the TV Sep 17 23:12:13 So between loading that URL and redirecting, store something server-side that the app can request again. Sep 17 23:12:31 Guys, I have this.setListAdapter(adapter); and then I have (ImageView) getView().findViewById(R.id.entry_video_play_b); that gives me null (becouse the view is not already set so the element is not ready). how can solve this issue? Sep 17 23:12:45 but what do I request from the server? how will the server identify me? Sep 17 23:12:47 And the cat is climbing the bird perch again.. Sep 17 23:12:58 How will you identify it from the web page? Sep 17 23:13:10 * Techdeck shakes head Sep 17 23:13:25 Nilium: just need a bit of highlighting Sep 17 23:13:25 If you can't identify it from the web page, scrap the idea, it's not going to work. Sep 17 23:13:39 I have a fragment with a button with an onclick attribute. But I get FC when I click the button because the my app looks for the onclick method in my MainActivity instead of the fragment. Any ideas? Sep 17 23:13:58 snot: don't use android:onClick Sep 17 23:14:00 Don't use onClick. Sep 17 23:14:07 hehe, ok :) Sep 17 23:14:08 android:onClick is the worst Sep 17 23:14:15 why? Sep 17 23:14:23 because of this question snot just asked Sep 17 23:14:45 Because it's a pain in the ass. Sep 17 23:15:00 ok, Ill just take your word for it. OnClickListener then? Sep 17 23:15:00 the only crash i ever had in my app was because of onClick Sep 17 23:15:19 g00s: I find that hard to believe :) Sep 17 23:15:21 I usually get crashes because I did horrible things in GLES. Sep 17 23:15:23 is there a way to use a webview that shares the same cookies with your browser? Sep 17 23:15:29 snot in production Sep 17 23:15:32 Or because I forgot to match an enum. Sep 17 23:15:36 g00s: aha :) Sep 17 23:15:42 i forgot to wire it up wright or something Sep 17 23:15:45 *right Sep 17 23:15:49 anyway, was OnClickListener the way to go then? Sep 17 23:15:54 Don't give coffee to Mr. Wright. Sep 17 23:16:00 heh Sep 17 23:17:14 guys? Alternative? Sep 17 23:20:27 Set the listener yourself? Sep 17 23:20:30 Is it that hard? Sep 17 23:20:32 is it safe to set onClickListener in Adapter getView ? Sep 17 23:22:07 Probably? Sep 17 23:22:36 Nilium: yes, through setOnClickListener... of course? Sep 17 23:23:21 Nilium: Oh I misread what you said. No not at all. Just wanted to confirm that I was doing it right. Sep 17 23:23:35 anyway, thanks for the support Sep 17 23:23:38 :Wq Sep 17 23:23:40 I guess you could also subclass the button for every single button you use Sep 17 23:23:42 ups :) Sep 17 23:23:48 Assuming it's a button Sep 17 23:23:58 it is Sep 17 23:24:15 Note that that's not an actual suggestion or a good idea. Sep 17 23:24:27 I know, thanks :) Sep 17 23:24:54 It's about as smart an idea as the AppleScript I wrote that's now a part of my build tools Sep 17 23:25:05 http://stackoverflow.com/questions/10763986/android-confirmation-dialog-returning-true-or-false i'm confused as to what's going on in the first answerer's code... the DialogReturn its not a variable and it's not a method, what is going on there? Sep 17 23:25:53 public interface DialogReturn { void onDialogCompleted(boolean answer); } Sep 17 23:36:12 anyone here tried android Studio? Sep 17 23:42:31 http://www.youtube.com/watch?v=e0fXuyL0xVU Sep 17 23:51:09 hello. how do i add a feature to the contact manager app in android 2.3.7? where is the code? Sep 17 23:51:57 Oh, that's neat, if I tap the app list soft button fast enough, the thumbnail for an app will display the app list as its thumbnail. Sep 17 23:53:48 <^cheeky> how do you guys create custom icons .. do i need to poses some crazy photo editing skills ? i am so grateful for the icon pack give by android Sep 17 23:56:44 Custom icons? Sep 17 23:56:49 For what? Sep 17 23:57:48 I just set up a bunch of guides in Photoshop and make them using paths, preferably with everything aligned so that it scales fine for the DPI levels I care about Sep 17 23:58:30 Though at this point I have a bunch of HDPI-specific variants because I freakin' hate HDPI. Sep 18 00:00:02 <^cheeky> Nilium: you got tuts .. where where .. i only saw one on dev bytes on how to flatten an image .. Sep 18 00:00:22 No. Never looked for any. Sep 18 00:00:41 <^cheeky> but i mean i dunno coz the guide is right . an icon is kinda like make it or break it for most of people who just browsing for apps Sep 18 00:00:42 oh cool, there's android-studio now Sep 18 00:00:46 how's that? Sep 18 00:00:56 It's IntelliJ with bugs. Sep 18 00:01:12 Or IntelliJ 13 with a different name. Sep 18 00:01:36 <^cheeky> great things have small and buggy beginnings Sep 18 00:01:56 It's got bugs because it's based on the IDEA 13 EAP. Not a problem with Android Studio specifically. Sep 18 00:02:39 hmm, wonder what extra features it has... Sep 18 00:03:11 Far as I know: none. Sep 18 00:03:47 extra features of android studio? gradle is better integrated, as I understand it Sep 18 00:04:27 <^cheeky> Nilium: ohhhh you mean paths such as this : http://www.smashingmagazine.com/2009/08/18/mastering-photoshop-with-paths/ Sep 18 00:04:27 That'll probably get backported if it is Sep 18 00:04:48 I don't know because I'd feel dirty clicking on a link to something that says "mastering photoshop" Sep 18 00:05:37 looks a bit more user friendly from the screenshots Sep 18 00:07:19 Haven't used it myself, so I can't comment on that. Sep 18 00:11:07 how can I display public google calendar in my application? any idea? Sep 18 00:11:12 https://gist.github.com/pfn/6599272 Sep 18 00:11:19 wee, my repo script on windows is getting a little more useful Sep 18 00:11:52 gdrc, access the calendar content provider and display it in your application Sep 18 00:12:36 nice one pfn Sep 18 00:12:59 gdrc: go into your google calendar settings and you can get the public ical or xml url's Sep 18 00:13:05 gdrc: parse and display Sep 18 00:13:08 congrats Sep 18 00:13:32 now I can search aosp code without having to resort to spinning disk Sep 18 00:13:33 weeee Sep 18 00:13:51 (current repo clone is on a solaris vm on a direct raid1) Sep 18 00:14:01 so slow searching it... Sep 18 00:15:08 next step, upgrade to a pc with sata3... ssd is too fast for sata2 :( Sep 18 00:16:06 ls Sep 18 00:16:48 Napalm: sure but what I need is a view to display it, don't want to do that Sep 18 00:17:12 Hello every body Sep 18 00:18:00 gdrc: http://www.androidviews.net/2013/04/extendedcalendarview/ OR http://www.androidviews.net/2013/01/ics-calendarview/ Sep 18 00:19:15 ty Sep 18 00:20:05 hello Sep 18 00:20:59 well that's interesting Sep 18 00:21:09 can someane help me to compile kernel? Sep 18 00:21:34 what have you tried thus far? Sep 18 00:25:10 Napalm: that website is awesome Sep 18 00:26:05 Hm, this stack trace is truncated and hiding what I need to see.. Sep 18 00:26:20 That's not helpful. Sep 18 00:26:55 Hello boys, I have all tool, prebuilds toolchains, source kernel's samsung.... etc, set enveroments but.... when I flash the phone, it no avanced... and have to flash with odin.... Sep 18 00:27:06 .. I'm going to shun you for saying "hello boys" Sep 18 00:27:41 Nilium, my English is bad..... Sep 18 00:27:55 very bad... Sep 18 00:27:57 sorry Sep 18 00:32:35 hello funkbox , I could compile a functional nuleo after several attempts for my phone, now works with a few more options, but I can not recompile to have a couple of options .... Sep 18 00:32:55 nucleo....= kernel sorry Sep 18 00:34:57 I'm going crazy trying things ... and I flashed the tlf dozens of times .... Sep 18 00:36:10 any idea? Sep 18 00:54:29 if you use xing in an app, which uses the camera, would due diligence require testing on a bunch of different handsets? Sep 18 00:54:43 *zxing Sep 18 00:56:43 depends on: 1. chance that you'll find devices it doesn't work on and 2. impact if it doesn't work Sep 18 00:57:15 That's.. weird. If I scroll a SwitchPreference out of view in a list, it resets its state to always being on O_o Sep 18 00:58:26 JesusFreke ok. was just wondering if zxing has industrial-strength camera handling code to handle all the variances in devices out there ... Sep 18 00:58:37 a nice abstraction ;) Sep 18 00:58:37 no clue :) Sep 18 00:58:41 indeed ;) Sep 18 01:00:33 Nilium, convertView? Sep 18 01:00:56 Not sure.. it's resetting the preference state when scrolled out of view and screwing with dependent preferences Sep 18 01:01:11 Kind of not sure what I did to break it Sep 18 01:01:44 Maybe if I remove the dependency Sep 18 01:02:10 Nope, just resets itself every time. Sep 18 01:02:39 add a shared prefer change listener and log the stack when it changes Sep 18 01:03:55 hey guys Sep 18 01:04:58 How do static variables work with apps? Sep 18 01:05:11 the same way they do on the jvm Sep 18 01:05:24 I have a broadcast-service and I want to keep an object alive while the service is running. Sep 18 01:05:51 that happens naturally Sep 18 01:06:29 with normal references Sep 18 01:06:38 I have a bit of a funky question. We currently have 2 devs on this Android team and I think I know exactly the type of third person...want to find out how to best find this potential candidate... Sep 18 01:06:43 Yeah, the preference is being changed when it scrolls out of weird. Bizarre. Sep 18 01:06:48 we have a guy who can pound out features quick and dirty Sep 18 01:06:54 *out of view Sep 18 01:06:55 a guy who can architect it and clean it up Sep 18 01:07:04 but the gap we need filled is some guy who knows the diversity of devices Sep 18 01:07:04 It's apparently so weird that my brain replaced view with weird. Sep 18 01:07:14 who can go "That won't work on X device for Y reason. Here is the usual workaround." Sep 18 01:07:26 Is this a recruiting question? Sep 18 01:07:32 how can I find that person? The person who is intimately familiar with all the different Android devices Sep 18 01:07:33 Nilium, that's ehat the stack says? Sep 18 01:07:34 No bots, and no advertising please, jobs or otherwise Sep 18 01:07:44 sorry, not trying to advertise Sep 18 01:07:47 not trying to hire here Sep 18 01:07:51 Craigslist Sep 18 01:07:59 just curious like...where I could even start looking for that specific person Sep 18 01:08:03 rentacoder Sep 18 01:08:05 not just *a* developer Sep 18 01:08:12 that specific type of developer Sep 18 01:08:26 the one who fills that role Sep 18 01:08:30 monster Sep 18 01:08:34 dice Sep 18 01:08:44 that's where you find *a* developer Sep 18 01:08:57 (sorry, if this is too close to recruiting I'll stop) Sep 18 01:09:15 it's the same way you find any focused developer Sep 18 01:09:43 pfn: More or less. Basically, onBindView gets called which sets off a series of calls in TwoStatePreference that ultimately leads to it persisting a value. Sep 18 01:09:47 For some reason it only happens when the value is set from true to false. Sep 18 01:10:11 If it's true, nothing happens. If it's false after being true, it's reset to true. Sep 18 01:11:42 * Nilium checks to see if it's also applicable to CheckBoxPreference Sep 18 01:12:29 Ok, doesn't apply to CheckBoxPreference Sep 18 01:12:50 https://code.google.com/p/android/issues/detail?id=26194 ← Known issue. Sep 18 01:13:19 I'll just remove SwitchPreference for the time being. Sep 18 01:14:12 ProgramMax i dont know any devs, excep maybe game devs that are intimately familiar with the GPUs and opengl driver quirks - that have a list in their head of what works on what devices Sep 18 01:14:28 your best bet is to use one of those automated testing services Sep 18 01:14:34 there are a few, they escape me atm Sep 18 01:14:40 You find developers by leaving coffee and bacon on a doorstep and seeing who bites. Sep 18 01:14:49 hehe Sep 18 01:14:56 Remember to set a trap or something so they can't just nab it and run off. Sep 18 01:15:25 Consider putting out tofurkey as well to be conscious of vegetarian and vegan programmers. Sep 18 01:15:32 don't forget computer setup thats cool too. place trapdoor on awesome chair Sep 18 01:15:39 mmm my app isn't so much gpu / driver diverse Sep 18 01:15:51 I recommend http://xkcd.com/356/ Sep 18 01:16:00 Or just buy one of those exploding chinese desk chairs to injure them so they can't get away. Sep 18 01:16:04 more just device diverse. Some devices have all sorts of funky behaviors, some OS versions have funky behaviors Sep 18 01:16:06 to make sure they don't just nab the bacon and leave Sep 18 01:16:10 Though if you wait too long, they'll probably die. Sep 18 01:16:23 why? Sep 18 01:16:30 I ran into one particular version of Android that causes us a few problems. And one particular phone that treats a certain xml rendering differently Sep 18 01:16:34 Because it's an exploding desk chair? Sep 18 01:16:44 just grab chair that has hidden arms and legs brace trap Sep 18 01:16:54 But that doesn't explode. Sep 18 01:17:06 you needs good hands on programmers Sep 18 01:18:15 night all Sep 18 01:21:33 gnight Napalm|afk Sep 18 01:24:28 Does anyone know where I can get support about app sales & Google Wallet? Sep 18 01:26:05 Anyone happen to know off the top of their head if the default sort order for getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); is A to Z ? Sep 18 01:39:47 Does anyone else not get the full payment when Google Wallet pays out? Sep 18 01:46:46 Red_Hood i don't Sep 18 01:46:57 i think they keep some maybe for refunds ? Sep 18 01:47:02 like some rolling average or something Sep 18 02:02:22 they pay you on the 15th or so for the money earned up to the end of the previous month Sep 18 02:21:47 For some reason my payed out money is usually $100-200 less than my total made. Sep 18 02:26:13 whats hte best way in mediaplayer to listen and update a progress bar / etc. Sep 18 02:27:17 Bitwise, there is no order, just database order Sep 18 02:27:55 Red_Hood, they only pay for the period earned less 30% Sep 18 02:28:28 100-200 less sounds reasonable if you made 300-600 Sep 18 02:31:22 Oh, thanks pfn :-) Sep 18 02:44:42 I'm developing an app that uses google play services and in the process of configuring everything I've wound up with a newer version of the library on my development machine than what is on my testing device (a nexus 7 running jelly bean). How can I work around this? Sep 18 02:44:59 some cursory google indicates this is a known issue Sep 18 02:45:24 I just updated the software packages today which is when it started Sep 18 02:45:50 using a ViewAnimator, and you call addView(), is there a way to be notified when the animation begins/completes? Sep 18 02:48:11 Prime326 hmm Sep 18 02:48:31 in my m2repo i see 3.1.36, 3.1.59, and 3.2.25 Sep 18 02:53:11 It's not the 30% Google cut, it's just not paying out the full amount. It's something that's just started happening the past few month, I don't know if its a glitch or pillow feature or something. **** ENDING LOGGING AT Wed Sep 18 03:00:00 2013