**** BEGIN LOGGING AT Fri Aug 02 02:59:59 2013 Aug 02 03:12:51 g00s, maybe Aug 02 03:13:07 Snicers-Home, only use a content provider if you'll be providing data to other apps Aug 02 03:13:24 there's really no advantage in using it internally Aug 02 03:15:01 pfn, thought so, so just keep using the SQLiteOpenHelper class? Aug 02 03:16:57 yes Aug 02 03:19:27 k Aug 02 03:19:30 Thank you Aug 02 03:21:14 why is the old 16GB Nexus 7 2012 on the front page of the play store for $209.00 ? isn't that the same price as when it was released ? Aug 02 03:22:12 I thought it was 199 on release Aug 02 03:22:13 heh Aug 02 03:22:36 hello every one.. Aug 02 03:22:57 pfn: I remember hearing that price at first too Aug 02 03:22:57 need serious help from you Aug 02 03:24:39 I am using naturaldocs syntax for documenting my source, but does Android have a recommended syntax that will automatically compile into external documentation like naturaldocs? Aug 02 03:24:51 I can't seem to find one on google. Aug 02 03:25:17 except for javadoc. Aug 02 03:26:12 javadoc is it Aug 02 03:27:13 Is that the recommended? Aug 02 03:31:16 i am trying to configure WIFI EAP with TLS root cert and user cert Aug 02 03:33:06 i am able to save all the fields but unable to save usr cert field Aug 02 03:42:07 hi can one one plz help me Aug 02 03:43:09 vinamra: this is in your app? Aug 02 03:49:04 yes Aug 02 03:49:29 i want to config wifi profile Aug 02 03:49:55 i am using refelection to get all enterprise EAP fileds Aug 02 03:50:20 and able to save the values Aug 02 03:50:44 but i dont know wht usrcert feild is always empty after saving. Aug 02 03:51:09 i can do it with android wifi UI but not programitically Aug 02 03:54:26 hi Leeds Aug 02 04:11:34 Hey guys, really dumb question. I have a viewpager that cycles between two adapters and on scroll I have it change to pager 1 if pager 2 is the current pager. The problem is that the only way I've seen to reset it is in a onPageScrollStateChanged wrapped within a if state==SCROLL_STATE_IDLE(or settlling), but this causes midway for the animation to just cut to the next item. Is there a way to set the adapter during the scroll? Aug 02 04:16:15 https://code.google.com/p/android/issues/detail?id=58433 Aug 02 04:16:18 meh, fine, I'll report the bug Aug 02 04:24:15 that sounds like a very confusing ui Aug 02 04:47:54 greetings mentelgen Aug 02 04:54:10 does koush come here? Aug 02 04:54:34 don't think I've ever seen him here, no Aug 02 04:59:48 #koush Aug 02 05:00:19 hm gradle 0.5.5 broke my script :( Aug 02 05:00:32 pfn .. dont Aug 02 05:00:38 :D Aug 02 05:00:41 You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s): Aug 02 05:00:42 uh oh Aug 02 05:01:13 uh oh Aug 02 05:01:28 i hope its just your build system that messed something up Aug 02 05:01:34 and you still have the right cert Aug 02 05:03:15 hmm, it is a different cert Aug 02 05:03:30 X.509, CN=Perry Nguyen, O=HanHuy, ST=California, C=US Aug 02 05:03:50 hmm, or is it Aug 02 05:04:52 hmm, weird, the one I signed on my linux box has a cert chain attached Aug 02 05:05:43 * pfn headscratches Aug 02 05:09:11 and wtf google, seriously, AndroidBuilder.packageApk should also zipalign Aug 02 05:09:24 wtf make it a separate step if a signature is getting applied Aug 02 05:09:44 * pfn tries building on linux to make sure his cert diffs aren't because of environment Aug 02 05:10:29 although I suspect AndroidBuilder.packageApk signs in a different manner from how jarsigner works Aug 02 05:11:25 anyone here using Volley's NetworkImageView? Aug 02 05:11:55 I can't seem to get some of it's helper methods working, namely: setDefaultImageresId() does noting, same with setErrorImageResId() Aug 02 05:16:43 anyone awake that can help me out? Aug 02 05:16:58 CaptianGVP, two conditions: one is not met. Aug 02 05:17:26 and whats that? Aug 02 05:17:38 * hesperaux can't help anyone out right now lol Aug 02 05:17:50 i'm getting my ass kicked Aug 02 05:18:02 anyway, plenty of people are here. ask away Aug 02 05:18:52 I have a rooted Samsung Galaxy Rush, i'm trying to add APNs to it.. but there isn't a menu/settings menu for APNs!! :o how do i fix this problem?? I've been searching for hours x.x Aug 02 05:18:54 damnit google, .... Aug 02 05:19:10 seriously, quit making bugs in the build software Aug 02 05:19:20 CaptianGVP, can't ask that in #android-dev; go to #android-root Aug 02 05:20:06 ._. oh.. just saw that in heading.. Aug 02 05:20:16 #android-root nuh helping :( Aug 02 05:22:51 :/ my head hurts ._. google sucks.. so does boost mobile phones >:| sooo time for upgrade to a real android ;) Aug 02 05:23:17 * pfn files yet another build bug Aug 02 05:23:32 pfn out of curiosity, have you played with sublime yet? if so , what did you think ? Aug 02 05:23:54 no, I haven't, it's mac only, isn't it? and on top of that, it doesn't have good vi keybindings does it? Aug 02 05:24:05 mac/win/linux Aug 02 05:24:11 dunno about vi keybindings Aug 02 05:24:24 that is my #1 concern when using a text editor of any kind Aug 02 05:24:28 it must have vi bindings or I will not use it Aug 02 05:25:02 What's so bad about vi that you would use an alternative text editor with vi bindings Aug 02 05:25:15 use vi/vim Aug 02 05:25:27 it does have some nice features, i like its project support Aug 02 05:25:35 just playing around, kicking tires Aug 02 05:25:48 gvim even Aug 02 05:30:11 https://code.google.com/p/android/issues/detail?id=58436 Aug 02 05:30:46 seitensei, I don't, and project, device, resources and debugging management are things that vim can't compete with Aug 02 05:31:03 * pfn grumbles at google Aug 02 05:31:17 That's more if an IDE role, instead of a text editor, no? Aug 02 05:31:36 an IDE is a glorified text editor Aug 02 05:31:42 and I refuse to use any IDE without vi keybindings Aug 02 05:31:43 :p Aug 02 05:31:53 I tried to use eclipse + viplugin for the longest time... Aug 02 05:31:58 that proved to be so unsatisfactory Aug 02 05:32:02 "Because of this change, any APK I create with the new build system gets rejected by the play store." Aug 02 05:32:03 intellij has it about right Aug 02 05:32:12 dude, thats screwed up Aug 02 05:32:45 i ask again, does google test anything ? Aug 02 05:32:52 this is a corner case, really Aug 02 05:32:53 i think they have a fucked up culture Aug 02 05:33:03 because who the hell attaches a cert chain to their android signing keys Aug 02 05:33:07 I'm probably the only one in the world Aug 02 05:33:45 pfn you could submit the patch :) Aug 02 05:33:47 for that matter, no one uses pkcs12 keystores either Aug 02 05:34:00 I have no idea where to fix it, I don't really want to own that; not now Aug 02 05:34:06 but i would think they would handle all the cases the old build system would Aug 02 05:34:30 what I *am* going to do is revert to my old method of signing apks in my plugin Aug 02 05:34:46 that it becomes a non-issue for me Aug 02 05:34:49 and any of my plugin users Aug 02 05:35:08 all this because I want to maintain parity with gradle... meh Aug 02 05:38:20 https://github.com/pfn/android-sdk-plugin/commit/ff5fe52031e0778a09905f6f087f72e2880b0918#L5L424 Aug 02 05:38:21 meh Aug 02 05:38:33 need to bring back the signing and zipalign tasks Aug 02 05:40:03 speaking of zipalign Aug 02 05:40:08 how important is that? Aug 02 05:40:19 I have never used it :) Aug 02 05:40:51 you can't upload your apk to the playstore until it is aligned Aug 02 05:40:56 dev console rejects it Aug 02 05:40:59 uhm Aug 02 05:41:07 then it must be zipaligning automatically Aug 02 05:41:16 (it = ADT) Aug 02 05:41:31 yes, your build system should be doing it for you, unless you don't sign your jar as part of the build Aug 02 05:42:12 I thought it was optional, for performance or something Aug 02 05:42:30 but if its mandatory certainly ADT is doing it for me then Aug 02 05:42:35 good :) Aug 02 05:43:29 yes, it impacts performance Aug 02 05:43:34 it speeds up pulling out resources Aug 02 05:46:28 well Im off to bed Aug 02 05:46:28 gn Aug 02 05:50:58 * pfn updates qicr in market, yay Aug 02 06:07:18 whoa Aug 02 06:07:33 Android SDK Manager pakage install menu has install greyed out what do i do? Aug 02 06:07:47 dring to install ap17 Aug 02 06:07:52 attaching sources to an aar library works brilliantly! Aug 02 06:07:52 trying Aug 02 06:09:28 I clicked Accept License on each bit Aug 02 06:10:45 no? Aug 02 06:10:57 quick questino. how do i register one of my activities to recieve a shared video from other apps? Aug 02 06:11:06 do i register a specific intent? Aug 02 06:12:36 changing the topic entirely does any body know if Samsungs s planer allows saving it's callder doodles to drop box? Aug 02 06:13:09 and at the same time can you save the actual calender to Google calender? Aug 02 06:13:28 (been on my mind don't yet own a samsung Aug 02 06:13:32 ) Aug 02 06:18:50 ah I just was missing some dependencys Aug 02 06:22:01 nice, keyboad navigation just works Aug 02 06:22:23 ok, need to reboot tablet to install a different key layout Aug 02 06:27:42 http://stackoverflow.com/questions/17998581/actionbarsherlock-actionmode-items-not-shown Aug 02 06:37:40 I spose acorn computers must have been low powered for there day? As all tablet/phones follow there origins..... Aug 02 06:47:54 ok, cool, now my keyboard is working as expected, interesting thta the key layout stuff changed in newer versions of android Aug 02 06:48:18 it used to be KEYCODE_RECENTAPPS to bring up the task switcher, now it's KEYCODE_APP_SWITCH Aug 02 06:53:16 IIRC they used to have two key codes. one for the android 2.x style app switcher and one for the holo style Aug 02 06:54:05 (i skimmed the commits between 4.2.2 and 4.3 and saw one making changes to the key codes and removing the 2.x switcher) Aug 02 07:18:27 grr nexus 4.22 avd no go I have 16 GB ram on the metal Aug 02 07:19:41 nevermind works now Aug 02 07:19:58 Hi, I am trying to program an android app for a website. I have no access to the database or an api to work with. Atm it downloads every relevant site and parses the useful information. Problem is the data usage. Is it possible to write a php-based parser and would that reduce data uasage as the download of the "not-useful-information" is only on the serversite? And is that possible / does that make Aug 02 07:19:58 sense? Aug 02 07:51:06 Flaiker, yes makes alot of sense Aug 02 07:52:12 thanks ill get into that then Aug 02 07:52:48 I assume the the "unwanted" data is downloaded by the webserver then and doesnt affect my apps datausage right? Aug 02 07:53:07 also, webservers tend to be alot faster when parsing sites :) Aug 02 07:58:38 so I've published an app on the Store under account X, now I want to publish the same app (same APK) under account Y; I keep getting that the APK already exists (com.my.namespace already exists on Google Play) and I've already unpublished that app Aug 02 07:58:51 do I just need to wait until the app Unpublishing takes effect on the Store before I can publish it again under another account? Aug 02 07:59:48 `you need to transfer ownership of the app Aug 02 08:00:27 oh Aug 02 08:00:33 well I also need a new APK Aug 02 08:00:47 the old one published under account X is not the one I want under account Y anymore Aug 02 08:01:58 then make a new apk Aug 02 08:02:14 you will need to continue signing it the same Aug 02 08:03:10 I did, I do have the new signed APK, but the namespace is still the same so it's telling me that another app with the same namespace already exists Aug 02 08:03:10 so I have my url www.something.com/blah?filter1=something#filter2=othersomething .... is it possible to catch only the urls that say filter1=something or filter2=othersomething? Aug 02 08:03:17 I think it's just a matter of waiting until the other app is completely unpublished Aug 02 08:03:36 if that's not possible, is it possible to after I catch the url, to say... hey, I don't want this, just open up the browser? :) Aug 02 08:07:37 does android support Dynamic Proxies? Aug 02 08:09:04 Sicp, you MUST transfer ownership Aug 02 08:09:16 how do I do that? Aug 02 08:09:21 you cannot just wait for it to unpublish Aug 02 08:09:23 can't find the control for that on the console Aug 02 08:09:28 Google for how Aug 02 08:09:41 it's not automatic Aug 02 08:12:34 gavilan2, yes, it's slow Aug 02 08:13:44 java has had them forever Aug 02 08:15:52 pfn: damn :( I like proxies..... Aug 02 08:16:01 how slow are we talking about? Aug 02 08:18:44 Hi! anybody who knows what the block size used in AES/ECB implementation of java is? Aug 02 08:18:59 slower than direct calls, not completely terrible Aug 02 08:19:18 luc4, 128 and 256 are supported Aug 02 08:19:28 and don't use ecb Aug 02 08:20:22 yay i made it! :D hello everyone :D Aug 02 08:20:50 ive been told this is the channel to ask about Android Studio Aug 02 08:20:56 ;) Aug 02 08:21:13 oh hello :P Aug 02 08:21:20 pfn: I'm using the CipherInputStream class, but it seems that when skipping, the position in the underlying stream (file) is multiple of 20. Is this possible? Aug 02 08:22:22 ok, so my problem, Android Studio has completely frozen, and an added bonus, its locked my phone up completely too! xD is there something i should do for helping the developers like finding logs or anything, or shall i just quit it and reboot and get back to what i was doing? Aug 02 08:22:39 pfn: my question is, how safe is it to use them on production, if I want my app to run smoothly.... Aug 02 08:22:44 can use use a proxy on the GUI thread? Aug 02 08:22:50 GuyDavis, huh, wow Aug 02 08:22:51 sure Aug 02 08:22:52 you shouldn't read disk from the GUI thread for example Aug 02 08:23:01 so they are not thaaaaaaaaaaaaat slow... only a little slow Aug 02 08:23:02 great! Aug 02 08:23:15 GuyDavis, I think killing AS and restarting it will send bug report Aug 02 08:23:35 just moderately slow, suitable for general purpose ui Aug 02 08:23:48 Mavrik: ok i will do, anything i should grab from the phone? some logs on there maybe? Aug 02 08:23:56 nothing performance demanding Aug 02 08:24:36 GuyDavis, if the phone froze there's really not much you can do Aug 02 08:25:18 Mavrik: ok then, i shall not worry :P ill just restart everything and continue my work :D Aug 02 08:25:20 thanks! Aug 02 08:30:00 those new coders... Aug 02 08:32:42 Anyone who knows how CipherInputStream decides where to skip when invoking the skip method? Aug 02 08:42:16 probably a block boundary Aug 02 08:50:53 luc4: be wary that 4.3 broke AES Aug 02 08:51:04 https://code.google.com/p/android/issues/detail?id=58396 Aug 02 08:52:36 pfn: but blocks should not be 20bytes long... Aug 02 08:52:52 dcow: in what way? Aug 02 08:53:03 dcow: AES seems to be working on 4.2, I just notice something strange when skipping... Aug 02 08:53:59 ... oh wait, you're using ECB? *SERIOUSLY??* Aug 02 08:54:35 not hiding secrets from nsa Aug 02 08:55:25 luc4: If you're going to use ECB, you might just as well put a disclaimer "Please don't read" at the front and not encrypt at all Aug 02 08:55:59 p_i: not interested at the moment. I was asked to encrypt using ECB, and that is what I do. Aug 02 08:56:43 luc4: commercial? Please explain to client that ECB is really bad idea Aug 02 08:58:07 p_i: again, not interested, the algorithm to choose is not up to me. Aug 02 08:58:16 I'm making a phone number chooser, and using an ACTION_PICK intent to query the contacts provider. is there a way to add a button to that activity for manually entering a number instead of picking an existing one? Aug 02 08:58:34 p_i: what I'm interested in is the technical issue of seeking in the encrypted file. Aug 02 08:59:10 p_i: I know the limits of ECB, but it is not up to me to decide. Aug 02 08:59:44 This is why we can't have nice things. Aug 02 09:00:37 is this line enough to remove logs from a signed build? "-assumenosideeffects class android.util.Log { *; }" im really struggling with this :/ no config. i find seems to work Aug 02 09:04:08 anyone here doing android dev in scala? Aug 02 09:08:06 <\m> lemonxah: pfn Aug 02 09:08:43 i am going to switch over soon Aug 02 09:09:24 lemonxah: o/ Aug 02 09:09:25 i like scala more Aug 02 09:09:28 lemonxah: aprsdroid.org Aug 02 09:09:45 lemonxah: also, http://op-co.de/blog/posts/2_years_of_aprsdroid/ Aug 02 09:10:19 cool Aug 02 09:10:24 those are scala projects? Aug 02 09:10:25 yes, scala ftw Aug 02 09:10:37 awesome Aug 02 09:10:41 Qicr is in Scala as well Aug 02 09:10:50 i am tanking my personal projects tonight Aug 02 09:11:01 in lu of scala Aug 02 09:11:09 rewriting them from scratch Aug 02 09:11:30 <\m> Wait a second Aug 02 09:11:35 <\m> Base91? Aug 02 09:11:38 <\m> Buuuuuuuuut Aug 02 09:12:49 do you guys use code.google.com/p/scalaforandroid/ ? Aug 02 09:12:50 Hey guys, I'm encountering a very weird behavior lately. When I'm testing on an actual device, sometimes I can get into a state where the app does not repond to any touch event (Home button works.. Back button triggers the vibration, but doesn't do anything, seems to be overridden by no action). It freezes, but doesn't crash nor show the ANR dialog. Everything seems to run fine and the widget can also update the states of the app while it Aug 02 09:12:50 's in this "stuck" state. What could be the problem? and what would you guys suggest to me to debug this weird behavior. Aug 02 09:14:22 lemonxah, I don't, I have my own collection of implicits and utilities Aug 02 09:14:44 I'll make a library out of them some day Aug 02 09:15:03 cool .. then i have some more study ahead of me Aug 02 09:15:20 oh, ant tasks, yuck Aug 02 09:15:21 pfn: ist here a lib out there that you would suggest? Aug 02 09:15:26 The only thing I can think of is possibly some service blocking the UI thread. The state happens most often during monkey tests Aug 02 09:15:55 lemonxah, to get started with a project, I suggest my sbt plugin Aug 02 09:16:37 lemonxah, https://github.com/pfn/android-sdk-plugin Aug 02 09:16:41 \m: yeah, base-91 :( Aug 02 09:17:11 <\m> Oh wait, 91, not 94 Aug 02 09:17:13 sbt? Aug 02 09:17:25 build tool Aug 02 09:17:40 oh lol kk :) Aug 02 09:17:42 <\m> Just cause I've "invented" a base-94 encoding a while ago Aug 02 09:18:41 damnit, I pushed to github prematurely, 0.8.0 isn't ready yet Aug 02 09:19:06 sya its ok :) Aug 02 09:20:39 I need to fix a few bugs caused by using Google Android builders Aug 02 09:22:13 lemonxah, anyway, as for libraries, I'd recommend without until you get used to scala and android, then consider tacking on libs Aug 02 09:23:10 pfn: what i meant with libs is .. getting started with scala on android i kinda know scala and i have been learning android for a while Aug 02 09:23:39 start with my sbt plugin, easiest way to get started Aug 02 09:23:41 on a non related note i have a question about contentresolvers and search queries Aug 02 09:25:36 i have setup the "contact" screen with a CursorLoader but as soon as the .getFilter().Filter() is done on the adapter Aug 02 09:25:56 they automatic updates stop cause the cursor has changed :/ Aug 02 09:26:21 is there a way to remedy this or do i have to manually implement the change notification Aug 02 09:31:21 who may i thank for android changing their API thus some of my apps arent working anymore Aug 02 09:33:15 tehcrs: $DEITY Aug 02 09:34:17 tehcrs: with android 4.1, google broke one of my successful paid apps because of... SECURITY1!!!!!11!! Aug 02 09:34:31 no amount of complaining brought it back ;) Aug 02 09:34:49 with their new API, android doesnt recognize skype and fritz app fon as dialers anymore Aug 02 09:34:54 bugging me big time Aug 02 09:34:58 <\m> Pfft Aug 02 09:35:03 since i use fritz app fon for business calls Aug 02 09:35:38 tehcrs: if you are _using_ the apps, they are not "your" apps Aug 02 09:35:47 tehcrs: downgrade and wait for the developers to fix ;) Aug 02 09:35:50 noted Aug 02 09:36:17 this is #android-dev after all... I expected you rather to ask how to fix the dialer issue in the app code Aug 02 09:36:23 i dont use custom roms so i cant downgrade Aug 02 09:36:35 fair enough Aug 02 09:36:41 how to fix the dialer issue in the app code? Aug 02 09:36:50 you can downgrade with most official roms Aug 02 09:37:00 really? since when? Aug 02 09:37:41 hmm... I'm pretty sure it was doable back in 1.5 time Aug 02 09:38:02 (unless your on Three network, I guess...) Aug 02 09:38:06 *you're Aug 02 09:38:06 wasnt that when jesus was still alive? :) Aug 02 09:38:24 tehcrs: it's a curious theological question that isn't fit here ;) Aug 02 09:38:41 i wasnt really asking Aug 02 09:38:41 :P Aug 02 09:38:49 it was rhetorical Aug 02 09:38:52 anywhoo Aug 02 09:40:12 since I suspect you're annoyed about 4.3, and the only devices I recall already having official 4.3 are nexus devices... Aug 02 09:40:19 yep Aug 02 09:40:28 sideload 4.2.2 image, then disable OTA update in menu Aug 02 09:40:46 wouldnt that mean i had to format my entire device? Aug 02 09:41:27 not necessarily entire device Aug 02 09:41:35 Though backing up is always recommended Aug 02 09:57:54 You know the Dashboard showing Android version distribution? That would be REALLY useful if you could filter by country - it would help deciding application version when only distributing to one or few countries. Aug 02 10:35:36 If I want to wrap those messy calls to a contentprovider in my app, any arguments against not doing that from the Application singleton? Aug 02 10:36:12 *sigh*, any arguments "against doing" I meant, not a double negative... Aug 02 10:39:54 hi there. I'm developing a simple application which needs some xml files in order to work. I'm looking for a way in order to save them in a sort of repository. In your experience what kind of strategy can I adopt?I've thought about a simple web host which has some file on it and I retrieve them using HttpConnection Aug 02 10:40:03 but it's not a very secure way to store them. Aug 02 10:40:20 some one can give me some tips please? Aug 02 10:43:03 That question lacks a ton of context and isn\ Aug 02 10:43:11 isnt android related either. Aug 02 10:44:50 kjeldahl I just want to know how do you commonly do in order to store the file needed for your android application on the net? Maybe do you use dropbox or there are some specific repositories? Aug 02 10:45:22 I use the users google account to GDrive Aug 02 10:45:47 You store it on a http server. That also has protocols for security (https). If it's user specific, you need authentication, either your own, or somebody elses (GDrive etc). Aug 02 10:46:06 and I hate the api Aug 02 10:47:22 It's not common to use ftp protocol? Aug 02 10:47:45 No. Users behind corporate firewalls etc will not be able to use your app. Aug 02 10:48:28 kjeldahl: thats a big assumption Aug 02 10:48:34 Almost everything runs over HTTP/HTTPS now. Sad, but true, due to naive "security" implementations in most organisations. Aug 02 10:48:50 understood. thank you for your explanation Aug 02 10:48:56 StingRay_: Good luck getting anything else working on a general basis. Aug 02 10:49:30 no i agree with your 2nd statement Aug 02 10:49:42 just not "Users behind corporate firewalls etc will not be able to use your app" Aug 02 10:49:57 Yeah, I was generalizing quite a bit. :-) Aug 02 10:50:17 I've never worked at or with an example of that yet Aug 02 10:51:01 as in a company that has restricted the ftp sockets Aug 02 10:51:40 I have Aug 02 10:52:01 last two places actually Aug 02 10:52:16 wow Aug 02 10:52:23 had to file a ticket and have a "business reason" why we wanted access Aug 02 10:52:27 SSH too Aug 02 10:52:27 I believe most places where there is a "chief security" officer, and which does not make a living out of writing software. Aug 02 10:52:51 I mean I have worked at or with most major UK game developers and film effects houses, and never found it yet Aug 02 10:53:09 so places that move large files around a lot Aug 02 10:53:30 film yes, but they use a different network Aug 02 10:53:41 Global conslutancy and Bank Aug 02 10:53:49 so pretty much everything blocked Aug 02 10:55:15 wow Aug 02 10:55:30 When somebody's ass is on the line and the company does not depend on developers "crazy needs", they lock everything down. Aug 02 10:55:32 I dont like this mobile dev industry so much knowing that :) Aug 02 10:55:48 Pretty much Aug 02 10:55:51 Operators fuck things up as well. Aug 02 10:56:09 Always fun when you have to raise a "business reason" Aug 02 10:56:15 "Erm i can't do my job without it" Aug 02 10:56:18 Nope! Aug 02 10:57:28 Norway's largest ISP, party government owned (used to be a monopoly), filters all SMTP port traffic. "Only viruses host their own smtp servers.". Simple problem with a simple solution, right! Aug 02 10:57:56 Of course Aug 02 10:58:06 And they are also the largest mobile phone operator as well. Aug 02 10:58:33 Nobody likes Norway anyway Aug 02 10:58:38 emails from them are unimportant Aug 02 10:59:25 Well, we love dishing money out to anybody regardless of reasons or sensibility. Which is why the rest of the world love our emails. Aug 02 11:08:07 Anybody managed to get gradle to run as a deamon, and/or seeing significant speedups? Aug 02 11:23:48 According to this post https://plus.google.com/110388281267090240202/posts/aX4ihHWcghn I guess most of the Gradle speedups are enabled by default now. Aug 02 11:29:04 Hi, anyone here tried developing with one of these crappy "ARCHOS" tablets? I've got to use one for a client, and there seem to be no drivers available for ADB (their site claims they have drivers, but there's actually nothing for Windows 8 for the "Familypad 2" thing I have here) Aug 02 11:29:27 doesn't the universal driver work? Aug 02 11:30:01 BtbN: Nope. Just get the standard "Windows cannot find a driver for this device". Aug 02 11:30:30 then use linux, adb doesn't need drivers there. Aug 02 11:30:57 Think they're just some cheap crappy Chinese made things. They've bought a stack of them to use, I'm going to have to tell them they're useless - hopefully get Nexus 10's instead :) Aug 02 11:31:15 Or just add its usbid to the driver inf Aug 02 11:31:18 adb is the same everywhere Aug 02 11:31:26 hi, im working on a project using phonegap. my project is somewhere in ../../project/. Now when I deploy it on a device the android project for phonegap has a structure that the files go to /androidProject/assets/www/ . My problem is that I need to copy the file from ../../project/ to /androidProject/assets/www/ every time. Is there any way that the www dir gets the external files from somewhere else or something? Aug 02 11:32:09 BtbN: Yeah added the ID to the inf file, still doesn't install anything. Guessing they use some proprietory connection or something. adb may be the same everywhere, but the driver is not the same. Aug 02 11:32:28 adb works without any drivers via libusb on linux Aug 02 11:32:30 it is the same Aug 02 11:33:00 Smashcat: on XDA, find "universal" or "naked" ADB driver Aug 02 11:33:13 BtbN: It's not ADB that's the problem, it's the driver for the device (so that Windows can see that it's a USB device). Without the driver, adb can't connect to it Aug 02 11:33:29 so? Aug 02 11:33:41 Use the universal driver, it works for all devices, as adb is always the same... Aug 02 11:34:31 BtbN: heh, I don't think I've explained it very well. The universal driver doesn't work. The driver from teh Archos site doesn't work. Windows doesn't know what the device is. Aug 02 11:34:54 Add the usbid to the driver, and it works. Aug 02 11:35:12 BtbN: As I said, I did that, and it doesn't work :) Aug 02 11:35:17 Then you did it wrong Aug 02 11:35:44 I have an application, it's APK does not appear in /data/app the developer says this is because Google Play automatically encrypts the APK, I was under the impression this was optional obfuscation, not something forced by Google Play for paid applications. Aug 02 11:36:00 BtbN: Yeah whatever. Doesn't really bother me, I didn't pay for them :) Just emailing the client to tell them to get Nexus 10's - I told them that in the first place :) Aug 02 11:36:10 The reason I needed access to the APK, was so that I could copy it to /system/app and make it a system application Aug 02 11:36:14 Kalidarn: all payd apps are automaticaly protected so you can't copy them too easy Aug 02 11:36:25 s/copy/move/ Aug 02 11:36:29 copy Aug 02 11:36:32 it's a copy protection Aug 02 11:36:38 against piracy Aug 02 11:36:42 yeah but does that prevent you from moving them Aug 02 11:36:47 from one place to another? Aug 02 11:36:49 of course Aug 02 11:37:29 so there's no way to have an encrypted APK, and also convert it to a system app Aug 02 11:37:54 not without breaking the copy protection Aug 02 11:38:08 that must be what the developer did when he mailed me the APK :P Aug 02 11:38:19 and told me for updates i'd need to email him and request it Aug 02 11:38:36 is there any way he could whitelist me? Aug 02 11:38:37 why should the developer need to crack his own app? Aug 02 11:38:44 no, it's not to do with cracking it. Aug 02 11:38:50 yes it is Aug 02 11:38:55 ^ Aug 02 11:39:13 he just rolled me an APK and didn't enable the encryption, because he knew i wanted to move it into /system/app Aug 02 11:39:28 he doesn't enable/disable encryption... Aug 02 11:39:32 (it a root using application, which allows it to do some other funky things) Aug 02 11:39:35 all paid apps are automaticaly copy-protected Aug 02 11:39:44 yeah that' Aug 02 11:39:48 that's what i figured. Aug 02 11:40:05 well he would have compiled the APK manually, and obviously it wasn't encrypted when he did that. Aug 02 11:40:14 (which i sideloaded onto the phone) Aug 02 11:40:48 i was just trying to figure out a solution, that wouldn't require him having to manually attach an APK to an email every time he pushes an update. Aug 02 11:40:49 Developers don't encrypt their apps... Aug 02 11:41:01 I'm aware that google play does it. Aug 02 11:41:23 He'd need to make it a free app Aug 02 11:41:27 but obviously when he built the APK manually on his system and sent it to me, it didn't go through Google Play and thus did not have encryption. Aug 02 11:41:31 and maybe add some paid activator-app Aug 02 11:41:46 yeah a paid activator might be the solution Aug 02 11:42:34 currently he has a free version (with less features) and a paid version with more features (but obviously because it's paid it's now encrypted, and thus you cannot move to /system/app, another feature). Aug 02 11:42:54 is there a android framework for issuing serial numbers? Aug 02 11:43:58 Hello Aug 02 11:44:34 Q: Anyone here Design Apps using UML ? Could you please share any example ? I'd like to see how ppl represent intents, etc. Thank you! Aug 02 11:46:14 does anyone have an answer for my question? Aug 02 11:46:50 pauser: this is android apps Aug 02 11:46:55 not web stuff Aug 02 11:47:01 try #phonegap Aug 02 11:49:56 the interesting thing is StingRay_ when I used TitaniumBackup to "Convert to System App" it still ran, the only problem was the application was called by it's package name ie com.company.app (and it lost it's icon) but it still seemed to work. Aug 02 11:50:20 the icon it had was the generic android robot looking one, used for system services. Aug 02 11:50:55 so obviously it is somehow possible to move an encrypted application to a system app, it's just when I looked in /data/app i didn't see anything whatsoever referencing the application. Aug 02 11:55:38 TitaniumBackups breaks the encryption, and technicaly cracks the apps. Aug 02 11:56:05 it must not be very good encryption then :P Aug 02 11:56:18 Android itself has to be able to decrypt it, so... Aug 02 11:56:23 ah Aug 02 11:56:34 it obviously has to be decrypted when it runs Aug 02 11:56:55 And i'm quite sure you loose the ability to auto-update via Play when you do that. Aug 02 11:57:02 yeah no doubt Aug 02 11:57:05 decrypted? sorry, no, there's no encryption Aug 02 11:57:11 StingRay_: Its not about phonegap, with phonegap is everything on, but i want to use an external directory for assests ! Aug 02 11:57:24 there's protected :/ Aug 02 11:57:37 zinx: paid apps are encrypted in .asec files Aug 02 11:57:42 and only decrypted at runtime Aug 02 11:58:07 BtbN: the .asec is an implementation detail of data security Aug 02 11:58:26 BtbN: there because the external memory is not under control of the system always Aug 02 11:58:45 yep, that's why it's encrypted... Aug 02 11:58:53 the keys are in /data Aug 02 11:58:56 soooooo... Aug 02 11:59:18 so? It's still encrypted, no matter where the keys are. Aug 02 12:00:07 the app isn't Aug 02 12:00:18 just the data Aug 02 12:00:49 well, i guess the app might be if it's on external memory, ah :X Aug 02 12:00:55 i'd assume it just moves the file from /data/app-asec to /system/app because there is no /system/app-asec that's probably what causes the package name to screw up and the icon Aug 02 12:02:11 Nice - 28 Nexus 10's on the way :) Aug 02 12:03:48 O.o Aug 02 12:03:49 (Guess there'll be 28 crappy Archos tablets on Ebay in a few days - hehe) Aug 02 12:06:17 Mavrik: Heh, I do event work - they go through lots of tablets. When they're left on 24/7 for a couple of weeks, they generally die (screen usually dies) Aug 02 12:06:35 wow Aug 02 12:06:57 now that's something new :) Aug 02 12:07:40 Yeah, they have to run with the screen on full brightness, they're not really designed for it, but fairly cheap (relatively speaking) Aug 02 12:08:31 Think they wanted to see if the Archos tablets would last longer, but they're non-starters, so just sticking with Nexus at the moment. Aug 02 12:10:34 Please update your android tools if you haven't. I just had an update. 18.0.1 Aug 02 12:10:47 hey, how can i set each row in my listview to have a different color? like this http://i.stack.imgur.com/m3RCc.png, list is populated by simplecursoradapter Aug 02 12:11:07 omid8bimo: in getView Aug 02 12:11:12 set a background Aug 02 12:11:21 as in background color Aug 02 12:11:32 based on whatever you want Aug 02 12:11:37 StingRay_: how to make it colorful? like define 4 or 5 colors and make it repeat? Aug 02 12:12:01 erm, make an array of colors ? Aug 02 12:12:21 and assign them in getView bindView blaa whatever your using Aug 02 12:12:43 ohom Aug 02 12:12:55 any sample code you might have i wonder? :D Aug 02 12:13:25 erm…. if you cant iterate through an array Aug 02 12:13:32 assign a color to a view Aug 02 12:13:47 then you may need to step away and do some tutorials Aug 02 12:13:55 what exactly dont you get ? Aug 02 12:14:25 no i get it, just havent used bindView at all before and looks complicated for a newbie like me Aug 02 12:14:48 oh there are many example Aug 02 12:14:51 *s Aug 02 12:14:56 online, just search Aug 02 12:15:32 all right Aug 02 12:15:50 just search for custom adapters Aug 02 12:15:57 you will have loads of hits Aug 02 12:16:07 showing you how to overide getView/bindView etc Aug 02 12:19:03 Bloody hell. Client still wants to see software running on this f***ing Archos anyway. So have to develop on another tablet, and just download to Archos and hope it works as I can't debug on it... Ho hum, guess they're paying for the wasted time - heheh Aug 02 12:19:49 no way to run debug on archos? Aug 02 12:20:53 it gets better Aug 02 12:21:05 i have to make sure our software works on micromax a27 ninja Aug 02 12:21:14 their slogan is .. "nothing like anything" Aug 02 12:21:20 wat. Aug 02 12:21:22 no drivers work for it no adb no debug Aug 02 12:21:35 runs 2.3.5 Aug 02 12:21:39 jamuraa: Nope, there's no drivers for Win8 for it. So I can't only download apps via WiFi Aug 02 12:21:49 and when my app tries to startup the phone dies .. Aug 02 12:21:54 kernel panic and restarts Aug 02 12:22:06 but my app runs on HTC Magic .. which is a very VERY low end phone Aug 02 12:22:07 Happy happy joy joy. Aug 02 12:22:10 both of you might want to look into Linux to see if there are drivers that work Aug 02 12:22:19 i run linux jamuraa Aug 02 12:22:31 al all 7 of my machines Aug 02 12:22:34 on** Aug 02 12:23:00 jamuraa: I do use Linux, but only on servers. I have everything set up on my Windows desktop for development, so don't want to have to install and boot into Linux for 1 device really Aug 02 12:23:05 lemonxah: interesting that it doesn't work on that. how do they load it at the factory? :P Aug 02 12:23:29 i have no idea Aug 02 12:23:43 Smashcat: could always virtualize Aug 02 12:25:17 jamuraa: I'll see if it "just works" first if I develop on another tablet and just download to the Archos. If it doesn't crash it's good enough. This is definitely the last time I'll ever use one on a project though :) Aug 02 12:25:18 its super anoying Aug 02 12:25:39 oh and to top that off .. that stupid micromax a27 .. only works with around 5% of the SD cards that we have Aug 02 12:25:47 and all the sd cards are in working order Aug 02 12:26:17 in my experience, archos has had pretty good linux support in the past Aug 02 12:27:04 jamuraa: Maybe, they have awful Windows support though! Just cheap crap really - hehe Aug 02 12:27:22 android dev on linux is best Aug 02 12:27:39 eh, they're a small hardware / software house, you can't expect as much as some major player with billions in the bank Aug 02 12:28:54 jamuraa: Well the main issue for us is screen size/reliability. Looking into using USB Android sticks with touchscreens. Seems like a good way to go in the future Aug 02 12:38:15 hey guys, anyone knows why paint.setColor with alpha color stacks up? Aug 02 12:38:16 http://pastebin.com/Qr8PS3KE Aug 02 12:49:31 if you have two tablelayouts, and you add one row to the first one, and then add another row to the second one. If the text in one of the columns in the second tablelayout is bigger than the same column in the first one, the first one's cell width wont resize, will it? Aug 02 12:52:37 why would it ? Aug 02 12:52:50 or rather, how could it ? Aug 02 12:53:09 ok, I thought so, but I figured I'd ask the obvious anyway Aug 02 12:53:48 it sucks that a tablelayout don't have a header that will stay put when vertical scrolling. Everything to make a row stay put feels too much like a hack Aug 02 13:16:46 hi all Aug 02 13:29:50 yo Aug 02 13:38:43 http://upaste.me/17fc6746fb4d9807 i have this code to pass a image onclick to another activity and show in full screen , I want it to be stored in temp location and retreive the url when clicked on the image , how can i do that ? Aug 02 13:39:36 the image came from server as a byte array Aug 02 13:40:19 well, save it as a file Aug 02 13:40:30 then pass the location in the bundle Aug 02 13:40:41 rather than passing the actual image Aug 02 13:42:24 How can i get the image path which i have saved as file while clicking the image in listview ? Aug 02 13:42:56 cause, erm… YOU saved it as a file Aug 02 13:42:59 like getText is to get the text from the listview item onclick ? it thre a method to get the path of the file ? Aug 02 13:43:20 I think you are very very confused here Aug 02 13:43:27 I am really Aug 02 13:43:31 :( Aug 02 13:43:35 you have a byteArray Aug 02 13:43:39 yes Aug 02 13:43:41 you save it as a file Aug 02 13:43:45 done Aug 02 13:43:52 where did you save it ? Aug 02 13:43:59 in temp location Aug 02 13:44:07 pass that location in a bundle Aug 02 13:44:10 to a new activity Aug 02 13:44:12 done Aug 02 13:44:13 wait here Aug 02 13:45:07 i want perticular image to the bundle as if user click on it , lets see if there are 5 images in listview different items , i click on 3rd image how can i get exact location of the 3rd image Aug 02 13:45:30 you use the byteArray Aug 02 13:45:34 what you are saying i did and it worked for a single image Aug 02 13:45:37 and save it Aug 02 13:45:45 you get a "position" Aug 02 13:45:50 onItemClick Aug 02 13:45:58 so you know it's index 3 Aug 02 13:46:06 you should be able to work out what that is Aug 02 13:46:14 from your source backing data Aug 02 13:46:56 I think maybe you should leave what you're doing, and possibly go over a few listView tutorials Aug 02 13:47:13 cause I cant pin what your confusion is Aug 02 13:47:48 Really i did that but nowhere i found what i am searching , i even saw a 55 minute documentation of GOOGLE IO as everybody suugested :( Aug 02 13:48:23 You know it's position 3.. So get the data for position 3 from your dataset Aug 02 13:48:26 Do whatever you need to do Aug 02 13:48:35 ??? Aug 02 13:48:37 success Aug 02 13:48:53 SimonVT: said the twice, not sure he gets it, but really not sure why not Aug 02 13:49:24 Yeha ;/ Aug 02 13:49:26 andro_dev: pastebin your entire adapter code and relevant creation code in the activity Aug 02 13:49:36 ok Aug 02 13:49:54 cause I think your either really really not getting it, or your opterating at a black magic level Aug 02 13:50:04 voodoo sh*t Aug 02 13:50:23 http://upaste.me/880967473867bd79 here is the Adapter class code Aug 02 13:52:25 ah ok so your setting these images from a stream external to the adapter Aug 02 13:52:26 http://upaste.me/9bfb6748eaf051fc this is the all working process in mainactivity Aug 02 13:52:34 so the adapter really knows fk all Aug 02 13:52:59 yeah Aug 02 13:53:22 well actually, no Aug 02 13:53:23 messages.add(path); Aug 02 13:54:26 so you really need to sort some tracking of all of this Aug 02 13:55:00 so when a list item gets an image through the message in the array list, it also logs a pointer to the data Aug 02 13:55:11 so you can get position > pointer > data Aug 02 13:55:31 then your onClick* will be able to get that from the adapter Aug 02 13:56:19 how should i log a pointer to the data ? should i put a hidden textfield with image view ? something like that ? or there a easy sollution for that in android ? Aug 02 13:56:30 I'm multiplying an int by 14 by a double 15.32 and i'm getting a value "214.4800000002", thoughts? how can i fix that Aug 02 13:56:39 well you dont need any visual element do you ? Aug 02 13:57:03 you just need, position,image Aug 02 13:57:20 so then later in the onClick you know the position to get the image Aug 02 13:57:23 path Aug 02 13:58:39 hi! any UK based developer here? I am from Romania, finished 3 years of Computer Science at a university in UK. I want to release some apps on Google Play. I don't know much about taxation.. how to properly set up the merchant account.. and if any work registration is needed. I have a yellow card and I will get a blue card in the next weeks. Can someone guide me on the correct steps for... Aug 02 13:58:41 ...publishing apps on the store? Aug 02 14:00:25 Well if you're like the rest of the small time devs i know you won't tell HMRC anything Aug 02 14:00:38 and just hope nobody notices Aug 02 14:00:42 or become a monk Aug 02 14:01:00 then there is no liability for any tax Aug 02 14:01:02 HMRC? Aug 02 14:01:03 :) Aug 02 14:01:14 "the tax man" Aug 02 14:01:51 do I need some registration as self-employed? what is that for? Aug 02 14:01:56 for a table row, you hafta set the background color to each element if you want the whole row to be a certain color? Aug 02 14:02:27 Zgary: I suggest you get this info from offical websites Aug 02 14:02:49 Zgary: you'd just have to do a self assesment tax form at the end of the year as self-employed Aug 02 14:05:33 I looked on websites for information. It is all spread.. not clear. What websites do you recommend? Aug 02 14:06:18 Zgary: I'm a UK dev - you don't need to be self employed to publish apps on the store. You will need to do a self assessment. Get an accountant if you are going to do that as your primary job. Aug 02 14:06:50 I wish I had enough income from my own app(s) to be worth reporting... Aug 02 14:07:06 Leeds: yeah i've not even got a pay out from adsense yet Aug 02 14:07:43 I feel for you guys but happy that the artificial inflation of mobile device apps is simmering a bit Aug 02 14:07:48 I'm bobbing along at maybe $20-$30 per month Aug 02 14:07:52 seems like everyone was trying to build an app to amke a mil Aug 02 14:07:52 Zgary: if you do plan on being a self-employed dev have a look at http://www.hmrc.gov.uk/leaflets/se1.pdf probably the best bit Aug 02 14:07:59 not building apps to better the devices Aug 02 14:08:10 made more from a single development contract than I've made from having my own apps on the market for years :) Aug 02 14:08:46 Leeds: Yeah I'd never publish apps on the store to make money. I just do apps for clients - they're never for public use. Aug 02 14:09:00 THATS the way to make money Aug 02 14:09:08 build apps for other people to sell Aug 02 14:09:12 you mitigate the risk Aug 02 14:09:28 ron_frown: Well my clients don't sell them either. Aug 02 14:09:53 I build apps for folks... sometimes the idea is just assinine Aug 02 14:10:03 I just take my checks and build it the best I can for them Aug 02 14:10:08 even if I know its never going to sell Aug 02 14:10:48 ron_frown: that would describe my day job :) Aug 02 14:11:27 well same here, but I'd rather do the big $ contract jobbies Aug 02 14:13:53 Heh, so much for running the SDK in an linux VM to connect to that Archos. Shows up as "????????" and can't be used - hahaha! Ah well, that's 2 hours well spent! Aug 02 14:14:53 Hi StingRay_ sorry i was disconnected from here due to network , you were telling me that i need to put a pointer in my image ? So please guide a little bit Aug 02 14:15:57 hi Aug 02 14:23:55 Hey, I tried posting on http://groups.google.com/group/android-developers it says messages from new users a moderated but should it take a few days? Aug 02 14:24:25 for a post to get approved Aug 02 14:24:35 Ah! Finally connected to the Archos - just needed to run everything as root in the VM :) Aug 02 14:24:39 viran, was that a question? Aug 02 14:26:07 poutine: same as here http://stackoverflow.com/questions/17980809/the-interworking-of-textview Aug 02 14:26:15 I have this xml code, http://www.fpaste.org/29713/45338113/ I have a TextView and I'm wanting to set the text color to black, like this, setTextColor(R.color.black) Aug 02 14:26:24 it isn't setting the color to black Aug 02 14:26:29 viran, I've never gotten any post approved Aug 02 14:26:34 so I guess they stopped reading those :) Aug 02 14:27:03 that sucks :/ Aug 02 14:28:15 anyone here knows how an EditText knows how to correlate the position of a user on click to a new position of the cursor? Aug 02 14:29:48 i mean how does it calculate the new position of the cursor, i doubt it scans the string every time Aug 02 14:35:22 hi Aug 02 14:37:13 Has anyone gotten file upload in a WebView to work? Aug 02 14:40:59 picoguy2: I would think 1000's Aug 02 14:41:04 maybe more Aug 02 14:41:15 oh a webview Aug 02 14:41:25 you mean a web server ? Aug 02 14:41:27 Do you know of any working examples? Aug 02 14:41:37 how would you "upload" to a webview ? Aug 02 14:41:55 you visit a website that allows you to upload a photo Aug 02 14:42:04 and click on "browse" or "file chooser" Aug 02 14:42:07 oh I'm totally reading it wrong Aug 02 14:42:12 then a dialog pops up asking for you to select an image Aug 02 14:42:12 in a webview Aug 02 14:42:33 dont mind me, I'm not all here sometimes Aug 02 14:42:42 hehe Aug 02 14:42:50 nevermind, i appear to have it working now Aug 02 14:42:51 picoguy2: well, you dont do that with a webview Aug 02 14:43:13 I need a fast prototype application, it is the best way for me at the moment Aug 02 14:43:29 dunno, that more web tech Aug 02 14:43:36 little to do with app dev Aug 02 14:43:57 it's more about web browser/ browser capability Aug 02 14:44:04 on a particular OS Aug 02 14:44:09 StingRay_: ever looked inside android.widget.TextView ? Aug 02 14:44:16 yeah Aug 02 14:44:18 I had to add different openFileChoosers Aug 02 14:44:36 viran: yes, why ? Aug 02 14:45:12 Hey, I changed my database layout a bit (added one row to two tables). I know there is the onUpgrade method. I don't quite get how to use that. Depending on the old and new version I execute an ALTER TABLE? Aug 02 14:45:57 marrrk: that will get triggered on a schema version number change Aug 02 14:45:58 StingRay_: how is the text saved inside it? when a user edits a part of the text (in EditText) it reach the exact part of the string where he placed the cursor with the click... im trying to figure out the relation between the text itself and the position/edit mechanism Aug 02 14:46:07 marrrk: so do what you need to in there Aug 02 14:47:04 Can I also just drop the old table and create a new one? Aug 02 14:47:44 I guess I can, yeah Aug 02 14:47:46 Thanks Aug 02 14:48:11 bit extreme Aug 02 14:48:18 but yes, I suppose Aug 02 14:48:28 what if there is already lots of data in there ? Aug 02 14:49:38 viran: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/widget/Editor.java#1870 Aug 02 14:50:05 span watcher sounds like a breadcrumb for you to follow Aug 02 14:50:12 I only have 2 beta testers or so for now. They should survive. Aug 02 14:50:21 But ALTER TABLE seems even easier. Aug 02 14:50:34 marrrk: build/design as you mean to go on Aug 02 14:50:39 not for the moment :) Aug 02 14:51:49 Yeah, I messed up by just deleting the data on my phone and trying with the new layout but still at version 1 so now I can't change the onUpgrade. But I just remembered I should still have the old version on the emulator. Aug 02 14:52:08 Does the onUpgrade get executed automatically when it realises that there is a database but the version is too old? Aug 02 14:52:30 yes Aug 02 14:53:22 there is no too old Aug 02 14:53:44 there is just last < current Aug 02 14:53:49 You know that's what I meant Aug 02 14:53:55 :) Aug 02 15:07:08 heyo guys Aug 02 15:07:39 anyone using android studio/gradle/google_play_services lib? Aug 02 15:07:40 :> Aug 02 15:11:21 SpearThruster: I'm abusing Android Studio.. Does that count? Aug 02 15:12:02 Bleeptech you're ahead of the pack, usually its the other way around right ? Aug 02 15:16:21 no such table: CacheGroups Aug 02 15:16:43 g00s: Well.. It usually runs ~50/50 for me.. I just happen to be the abuser this round.. LOL Aug 02 15:19:08 No, sorry, it worked. Aug 02 15:24:53 How to add a new image to res/drawable* using Android Studio ? Aug 02 15:25:12 Bleeptech, have you managed to get it to work with google maps project? Aug 02 15:25:58 I've been having this http://stackoverflow.com/questions/15024430/android-google-maps-fragment-in-the-xml-i-get-unexpected-namespace-prefix bug since 2 months ago Aug 02 15:29:37 SpearThruster they just updated the gradle stuff yesterday agin, got the new one ? Aug 02 15:34:04 SpearThruster: I've barely gotten asynctask to work.. Haven't even tried the complex api's yet. Aug 02 15:36:57 in 4.3 it appears the drop shadow is missing in the actionbar Aug 02 15:37:11 i'm comparing 4.2 to 4.3 but on diff devices Aug 02 15:37:24 anyone notice this? Aug 02 15:38:36 sounds like a nice thing :) Aug 02 15:39:38 i like the drop shadow Aug 02 15:41:37 * pfn headscratches Aug 02 15:41:42 wtf is wrong with aapt Aug 02 15:41:47 g00s, I didn't know that Aug 02 15:42:03 there was no updates for android studio when I started it this morning Aug 02 15:42:12 does the gradle stuff come seperate or? Aug 02 15:42:30 SpearThruster i guess, since i run from the command line, i see it pulling new stuff Aug 02 15:42:45 probably updated transparently for you ? Aug 02 15:42:52 may as well check Aug 02 15:43:22 I don't have gradle installed at my pc Aug 02 15:43:30 using the wrapper that comes with android studio Aug 02 15:43:32 :> Aug 02 15:43:36 hm Aug 02 15:43:51 anyhow, did you have this issue with the map namespace prefix in the support map fragment? Aug 02 15:44:04 no, i didn't Aug 02 15:44:16 I can always make it via the java code Aug 02 15:44:22 but still... :< Aug 02 15:44:29 Hi all Aug 02 15:45:04 btw there is a new version of AS definietly Aug 02 15:45:07 just did a check Aug 02 15:45:08 X_X Aug 02 15:45:36 I have an activity where my actionbar is hidden by default (it's an overlay) and clicking a button will activate it, and bring up the keyboard Aug 02 15:46:04 on first pass, when the actionbar is activated, the edit text view is activated and focused Aug 02 15:46:16 if I press the "x" button to close the actionbar, everything is fine Aug 02 15:46:35 if I click my button again, the actionbar will focus, but the edit text view isn't activated or focused Aug 02 15:46:44 to activate it again, i must touch the search icon Aug 02 15:46:56 given the above, is there a way to reactivate the search field? Aug 02 15:47:11 I tried setting setIconifiedByDefault(false), but that disables the overlay Aug 02 15:48:18 i can provide some code if it would help! Aug 02 15:49:15 im using ActionBarSherlock Aug 02 15:49:34 I also called searchView.requestFocus();, doesnt seem to work Aug 02 15:59:13 "With such technology, the bureau can remotely activate the microphones in phones running Google Inc.'s GOOG -0.16% Android software to record conversations, one former U.S. official said." Aug 02 15:59:54 also microphones in laptops Aug 02 16:00:43 pfn maybe this is what jbq was referring to http://www.theverge.com/2013/8/1/4580770/culture-clashes-between-google-and-motorola-reportedly-hindered-moto Aug 02 16:01:02 maybe Aug 02 16:01:08 * pfn headscratches really hard Aug 02 16:01:12 wtf is my R.txt getting overwritten Aug 02 16:01:44 Is there any reason why onNewIntent isn't being called? https://gist.github.com/Taar/0a4a3512350d60563dcd It calls onPause and onResume when I place a tag near the device Aug 02 16:04:16 Where does one file bugs for google-developed platform apps? (Specifically, for https://android.googlesource.com/platform/packages/apps/Gallery2/) Aug 02 16:05:30 [pfnguyen@GALACTICA common] $ diff gen/R.txt target/apklibs/com.viewpagerindicator-li Aug 02 16:05:31 brary-2.4.1/gen/R.txt Aug 02 16:05:31 [pfnguyen@GALACTICA common] $ Aug 02 16:05:32 hmm Aug 02 16:05:38 ok, that's fucked up Aug 02 16:06:33 IO.copyDirectory(lib.layout.gen, gen, false, true) Aug 02 16:06:34 a ha Aug 02 16:06:46 * pfn fixes bug Aug 02 16:09:22 http://makeappicon.com/ has anyone used this site before? Aug 02 16:11:07 * pfn forgets to put the copy inside of an up-to-date check Aug 02 16:11:36 if i set the layout params on a text view, it deosn't show up anymore. Heres the code, http://www.fpaste.org/29743/45987813/ on line 12, row is a TableRow Aug 02 16:11:59 i know its the setLayoutParams, because I can comment out line 8 and it'll show up Aug 02 16:16:42 kbs: That's in AOSP, so you can file it on b.android.com Aug 02 16:18:50 RyanM: Great. Thanks for the pointer. Aug 02 16:24:29 meh, what an awesome bug, heh Aug 02 16:27:01 Ah, good old "R cannot be resolved to a variable" - my old friend, again we meet... Aug 02 16:27:42 (wonder how many years this bug has been in Eclipse now...) Aug 02 16:28:43 huh, this is interesting too http://www.theverge.com/2013/8/2/4580184/why-google-still-needs-the-nexus-program Aug 02 16:28:46 "That brings us to the other — and more important — reason the Nexus line exists: Google simply needs hardware on which it can develop" Aug 02 16:29:04 "When people ask me about the Nexus line, I like to joke that if you need to create a few hundred polished and usable devices for Google engineers, why not make a few hundred thousand more and sell them to hardcore users?" Aug 02 16:29:53 that's probably the story behind Chromebook Pixel :P Aug 02 16:30:19 Mavrik: that's exactly the story behind the pixel Aug 02 16:30:41 I like the Nexus devices - the best Android hardware I think (and not filled with crapware, unlike some products *cough S4* I could mention) Aug 02 16:31:13 I also like how Nexuses establish at least a little baseline Aug 02 16:31:24 "THIS is the bar you must reach for people to buy your crap." Aug 02 16:32:12 Screw all that. I like the Nexus phones because they are cheap. Aug 02 16:33:47 Nexus 4 is just the right size too. If a screen is too big for my thumb to reach across it, then it's failed the usability test for me! Aug 02 16:34:56 Smashcat: 17.5" phones are the best! Aug 02 16:35:25 Heh, if you've got elephantitis of the hands maybe Aug 02 16:35:27 zinx: what? Are you Steve Ballmer? Aug 02 16:35:36 hmmmm speaking of the pixel... Aug 02 16:35:43 im so tempted to get the regular chromebook Aug 02 16:35:47 hello. am i mistaken or when using eclipse, i should move the layout object to the correct place by mouse? I saw that done in a youtube video, but it seems not to work with my eclipse Aug 02 16:36:11 Newbie Q: If I want to have the same behaviour in the ActionBar, let's say set the App Icon to call the initial activity, do I have to repeat myself or is there a way to have that same behaviour across different activities ? to be more clear, do I have to write something like getActionBar().setDisplayHomeAsUpEnabled(true) in OnCreate() in all activities ? Aug 02 16:36:14 thanks for looking! Aug 02 16:36:16 for example, i'd like to use linear layout, and move it to the place Aug 02 16:36:26 Hejkki: It depends on the container the object is inside. Aug 02 16:37:08 Hejkki: and in addition, absolute position of something is normally a really bad idea Aug 02 16:37:23 no i'm not speaking of absolute positioning Aug 02 16:37:32 i cannot get anything anywhere in the layout Aug 02 16:37:56 i have a new project Aug 02 16:38:06 nothing done so far with this project Aug 02 16:38:38 seems like some problem with eclipse Aug 02 16:38:44 Hejkki: I've never found the graphical layout editor very useful. I usually just position stuff in the code, based on the available display size. Might be just me being strange though Aug 02 16:39:11 Hejkki: what is the root layout type ? Aug 02 16:39:24 of the layout file you're working with Aug 02 16:39:31 ViewPager, if i understand correctly Aug 02 16:39:53 oh Aug 02 16:40:00 well then yes, that wont work Aug 02 16:40:05 that deals with pages Aug 02 16:40:05 oh :) Aug 02 16:40:14 then how do i add a page Aug 02 16:40:32 well normal practice is have an adapter that supplies the pages Aug 02 16:40:42 and those pages call on their own layout file Aug 02 16:40:48 and get inflated in the adapter Aug 02 16:41:24 same principal of any adapter/view combo (viewPager/ListView) etc Aug 02 16:41:32 i'm a beginner, just done something with phonegap, but not really anything with the "actual" sdk thing Aug 02 16:41:48 ah, think your jumping too far ahead then Aug 02 16:41:55 have you done the getting started guides ? Aug 02 16:42:09 why? Isn't making a page a basic thing? Aug 02 16:42:17 no, i havent Aug 02 16:42:25 well it is VERY simple Aug 02 16:42:30 if you know the concepts Aug 02 16:42:43 if not, then I would suspect it being VERY hard Aug 02 16:42:52 :) Aug 02 16:45:44 isn't the Activity's onPause method supposed to be called when a Dialog is displayed in front of it? Aug 02 16:46:53 "An activity can frequently transition in and out of the foreground—for example, onPause() is called when the device goes to sleep or when a dialog appears." -- http://developer.android.com/guide/components/activities.html Aug 02 16:50:18 is this ActionBarCompat i've heard about based on sherlock? Aug 02 16:50:39 no Aug 02 16:50:45 nop. Aug 02 16:51:10 tanob: no, I don't think a dialog will cause onPause to fire Aug 02 16:51:15 why google reinvinting the wheel like that Aug 02 16:51:48 tanob: maybe, though. I can never remember if it's "no longer visible" or "no longer on top" Aug 02 16:52:27 it will Aug 02 16:52:31 onPause = no longer on top Aug 02 16:52:34 onStop = no longer visible Aug 02 16:53:04 im not sure that's accurate Aug 02 16:53:15 and im absolutely sure that's changed at least once over the course of android Aug 02 16:54:39 well, unless 4.2.2 and the docs are out of date :) Aug 02 16:55:07 can you set a margin on a tablelayout so that each tablerow is separated by that particular margin? Aug 02 16:55:43 if you set the margin on the row itself, each row has a top and a bottom, which makes the second row sit farther down than the first row Aug 02 16:55:59 you can place a margin on the tablelayout, but that will not affect the spacing between tablerows Aug 02 16:57:18 so if i set a top and bottom margin on the first row, then set a top and bottom on the second row, the second row will be down farther from the first row than the first row is down from the tablelayout Aug 02 16:57:41 hey guys, i have a question about drawing in android. I set color to 80% alpha white, but the colors get Stackedup and so it draws gray (looking like #cccccc) Aug 02 16:57:46 this is my code: Aug 02 16:57:47 http://pastebin.com/BBPAXdTx Aug 02 16:58:04 could anyone help me i have explained where i draw it in comment Aug 02 16:58:26 Mavrik: I'm testing on a device running Android 4.2.2 and the Activity's onPause isn't being called... there's also a StackOverflow thread about it: http://stackoverflow.com/questions/7240916/android-under-what-circumstances-would-a-dialog-appearing-cause-onpause-to-be Aug 02 16:58:34 maybe the documentation is out of date... Aug 02 16:59:11 though I'd think this kind of change would need much more documentation to warn devs... Aug 02 17:00:02 the code is the documentation :P Aug 02 17:00:31 as well as the little gems / comments in iosched 2013 "this is broken so we … " Aug 02 17:00:35 g00s: that's true :) Aug 02 17:00:40 those are worth their weight too Aug 02 17:04:35 The following classes could not be found: DatePicker, CalendarView Aug 02 17:04:54 TimePicker works fine Aug 02 17:05:25 i have it in the tools box and i can drag it to the layout but not working Aug 02 17:05:30 you probalby should include android.widget.DatePicker Aug 02 17:06:01 and android.widget.CalendarView Aug 02 17:06:47 I give up trying to work out why this project won't build. Nothing wrong in the source, nothing wrong with the XML or settings. Still can't find resources, have to make a new project and copy everything into that again. Aug 02 17:07:32 hm, they work when i compile and run in the sdk, but in the eclipse view i get the error and can't see the object there Aug 02 17:11:40 hi guys Aug 02 17:11:43 i need some help Aug 02 17:11:44 http://stackoverflow.com/questions/18006449/progress-bar-error-while-uploading-on-ftp-android/18007553?noredirect=1#18007553 Aug 02 17:11:47 with this Aug 02 17:11:53 can you take a look? Aug 02 17:20:00 how to check in a list view if a element is image view or not ? Aug 02 17:20:05 i was working with a stylus the other day to make sure touch targets were working as expected, and now i just cant stop using it for everything Aug 02 17:20:13 why did we switch from stylus to finger in the first place ~_~ Aug 02 17:20:29 andro_dev: "instanceOf" ? Aug 02 17:20:41 canadiancow: because Steve Jobs Aug 02 17:20:48 i remember losing the stylus to my palm, replacements were like $20 each Aug 02 17:20:58 for a piece of plastic Aug 02 17:21:20 nah, the good Palm styli had metal bodies, and reset pins hidden in the end Aug 02 17:21:35 * StingRay_ remembers a girlfriend breaking his wacom stylus, £95 to replace Aug 02 17:21:43 I should charge her Aug 02 17:22:21 pounds? Aug 02 17:22:30 ah, wrong chan, my bad Aug 02 17:22:33 canadiancow but yeah, stylus is great for hoofed ones Aug 02 17:22:47 I thought a (US) coworker was having to find a stylus overseas. Aug 02 17:23:26 my friend, i will sell you a stylus for only ${ebaybuynowfullprice("stylus") * 2} Aug 02 17:24:54 canadiancow confirms, nexus 5 comes with stylus :D Aug 02 17:25:48 is it 5"? Aug 02 17:26:10 i actually bought a case for my old nexus 7 (nakasi), and it came with a stylus Aug 02 17:26:21 case+stylus was like $5 on amazon with free prime shipping Aug 02 17:26:27 so it's not $20 to replace :) Aug 02 17:26:38 $5 for a case? wow, cheap Aug 02 17:26:46 I'd like a case of some sort ofr my n7 Aug 02 17:27:36 StingRay_ InstaceOf ? what how to check it Aug 02 17:27:46 contact picker, what's the right way to do it on ICS+? lots of examples and libs online Aug 02 17:28:02 someObject instanceOf someObject Aug 02 17:28:17 would love you forever if there's a way to do it without android.permission.READ_CONTACTS Aug 02 17:28:42 if(myString instanceOf String) etc Aug 02 17:30:10 FWIW, instanceof is bad practice imho, especially if your code is littered wiht them Aug 02 17:30:40 pfn: last year, I found myself with a brand new Playbook - and a promise to upgrade it later to BB10... a couple of days later, I found myself without a Playbook, with some cash, and with the neoprene case which came in the box and happens to fit the N7 nice and snugly :) Aug 02 17:30:52 Leeds, hah, nice Aug 02 17:31:16 funkbox: other ways to test type ? Aug 02 17:31:32 StingRay_: testing types in general irks me Aug 02 17:31:44 but yes, not all that good not knowing what an object type is :) Aug 02 17:32:02 StingRay_: if it's your code you should know what the type is Aug 02 17:32:10 funkbox, sometimes you need to, like when a list item is clicked, and you only get a View back Aug 02 17:32:14 but in general, i agree with you Aug 02 17:32:19 canadiancow: fair enough Aug 02 17:32:22 you shouldnt be passing around Object and then doing instanceof checks Aug 02 17:32:23 and that was his question Aug 02 17:32:24 funkbox: some quick googling turns up this: http://mobile.tutsplus.com/tutorials/android/android-essentials-using-the-contact-picker/ Aug 02 17:32:25 listView Aug 02 17:32:27 :) Aug 02 17:32:28 now going back to picking contacts Aug 02 17:32:41 which shouldn't require said permissions Aug 02 17:32:45 RyanM: yeah that's what i'm doing now Aug 02 17:32:55 pfn, i ordered a case for manta and flo on amazon the other day, both less than $5 shipped Aug 02 17:33:06 or maybe it does Aug 02 17:33:08 canadiancow, hot, what are they made out of? Aug 02 17:33:14 looking at it more closely Aug 02 17:33:16 not sure Aug 02 17:34:05 i hate that you have to request unfettered access to all contacts when all you need is the ability to have "pick a person you want!" Aug 02 17:34:34 funkbox: but whatever way you look at it Aug 02 17:34:39 you NEED to read contacts Aug 02 17:34:45 pfn http://www.amazon.com/gp/product/B00E3ZYWUM/ref=oh_details_o00_s00_i00?ie=UTF8&psc=1 http://www.amazon.com/gp/product/B00AAKLHES/ref=oh_details_o01_s00_i00?ie=UTF8&psc=1 Aug 02 17:34:58 StingRay_: yes. i think it's just android's shitty permission system and i have to suck it up Aug 02 17:34:58 oh i lied - the manta case was $14.08 shipped, flo was $4.05 Aug 02 17:35:27 One thing I'd like to see in Android is the ability to select which things an app can access, and if it can adapt, it can still install. Things like the Facebook app that basically request access to everything possible annoy, and worry me. Aug 02 17:35:47 canadiancow, flo is all I care about, and oh... yeah, so bulky Aug 02 17:35:49 funkbox: interesting http://www.xda-developers.com/android/app-ops-brings-granular-permissions-control-to-android-4-3/ Aug 02 17:36:24 StingRay_: no i mean from the app Aug 02 17:36:30 pfn, for what iwant, its fine. i just want a stand for my desk so i can dev :P Aug 02 17:36:36 StingRay_: windows/ios style Aug 02 17:36:36 $0.01+shipping? Aug 02 17:36:51 someone is trying to minimise their cut to Amazon... Aug 02 17:37:00 canadiancow, I use my clingo for that Aug 02 17:37:03 canadiancow, it's beyond awesome Aug 02 17:37:05 funkbox: I mean the mention of addition to AOSP Aug 02 17:37:25 would mean "do you want to allow temp access to contacts" maybe Aug 02 17:37:33 that would be good good for android Aug 02 17:37:35 StingRay_: yeah, i'm hopeful for key lim epie Aug 02 17:42:53 canadiancow, https://plus.google.com/111751695436781052143/posts/RTJkAVGMWgt Aug 02 17:48:48 hmm, if I create a dev branch and constantly rebase it off master, I can't push that to a remote repo can i... Aug 02 17:48:59 * pfn ponders Aug 02 17:49:08 and tags are probably meaningless on that branch, too Aug 02 17:51:05 If I create an app that uses NFC, (so implementing CreateNdefMessageCallback etc) will it actually install on devices that don't have NFC? Can it gracefully degrade, or will it just crash? Anyone know? Aug 02 17:51:34 Smashcat, android:required="false" Aug 02 17:51:37 yes, if you do it right Aug 02 17:51:39 in your pfn: Ok, so it'll just get a null pointer for the NFC device I guess? Aug 02 17:52:47 (actually I'll just go and do it - hehe) - thaanks Aug 02 17:56:55 hm, i should revisit this - from what it looks like , it should be easy now to have my artwork build script rasterize the svgs and put them in build/res or something . this wasn't really easy before Aug 02 17:57:23 or maybe it was just adt didn't allow multiple res/ folders Aug 02 17:57:47 adt didn't Aug 02 17:58:02 aha Aug 02 17:58:16 none of the tools do, really Aug 02 17:58:26 gradle has to collect/merge resources first Aug 02 17:58:30 into a single location Aug 02 17:58:59 i didn't want to put the generated / rasterized pngs in my main/res and have those living there Aug 02 18:03:51 you could have always added a pre-build step to eclipse/adt and had eclipse looking for resources in a different location Aug 02 18:05:06 just using plain intellij now, wonder if i can finagle it Aug 02 18:05:09 This is weird, still getting the usual "R cannot be resolved..." error, but the R.java class is being generated, and the variables are in there. Stupid Eclipse... Aug 02 18:05:14 intellij modules seem to be pretty flexible Aug 02 18:05:53 StingRay_ do you know if i can drive Sketch via command line to rasterize a file ? Aug 02 18:06:08 even better if its a region / group in a file Aug 02 18:06:21 g00s: no Aug 02 18:06:25 doubt it though Aug 02 18:06:34 it's not really a production tool Aug 02 18:06:39 get some cmd line stuff Aug 02 18:06:55 image magic Aug 02 18:06:57 ;) Aug 02 18:07:04 IM isn't reading a sketch file :| Aug 02 18:07:15 oh you done sketch files Aug 02 18:07:18 IM might read a plain svg from inkscape Aug 02 18:07:23 yes Aug 02 18:08:33 inkscape for mac still at 0.48.2 Aug 02 18:08:45 they must be struggling Aug 02 18:08:59 g00s: I wanna see your art :) Aug 02 18:09:14 from what i recall, one dude had a build script in his private repo but he dissapeared Aug 02 18:09:42 but he was trying to get 0.48.4 to build as well as make some fixes so it would not crash , didn't accomplish the latter Aug 02 18:10:27 g00s, just turn off 'Make' in intellij and have it build with gradle instead Aug 02 18:10:36 yeah Aug 02 18:10:57 and everything just works like magic Aug 02 18:11:40 pfn for git diff, do you use any special tool? or just the default ? Aug 02 18:11:57 i was wonderinf if p4merge was worth integrating Aug 02 18:11:57 git diff? I just run git diff... Aug 02 18:12:11 or I use intellij to review git history Aug 02 18:12:16 Is there a naming convention for a adapter's layout? Aug 02 18:12:23 Should I do activity_blah_element? Aug 02 18:12:39 I use row_something Aug 02 18:13:15 Ahh remember this problem from months ago now. Running Eclipse as Administrator fixes all errors. For some reason Eclipse sometimes decides it can only write to some directories as admin, even though there's no special permissions on them! Aug 02 18:13:15 I use _item Aug 02 18:13:16 I suppose that makes more sense Aug 02 18:13:44 Especially if later on the element is used for more then one activity Aug 02 18:14:04 (Though, that makes no sense, since I'd be using the same adapter) Aug 02 18:14:27 sometimes you might want to re-use a view outside of an adapter perhaps Aug 02 18:15:40 BenOrnstin iosched has some good naming conventions Aug 02 18:17:14 'T-Mobile backs Ubuntu smartphone" \o/ Aug 02 18:17:23 this could be exciting Aug 02 18:18:23 "Canonical, unlike Google with Android, won't allow T-Mobile, or any carrier, too much control over the operating system's look and feel. " yey Aug 02 18:18:31 well see how that works though :) Aug 02 18:19:10 the carrier will tell them to jump and they will jump Aug 02 18:19:16 they might even ask them how high Aug 02 18:19:37 g00s, thanks! Aug 02 18:19:48 BenOrnstin iosched 2013 code was just uploaded, too Aug 02 18:20:29 Hi, how do u create a custom android actionbar Aug 02 18:20:31 ? Aug 02 18:20:51 g00s: a) "much", b) good luck shipping without carriers, c) we'll see Aug 02 18:21:02 yay, xavd is assigned my manifest merging bug... Aug 02 18:21:09 now I need someone assigned to my jarsigning but Aug 02 18:31:16 Hey check out this issue and star it if you agree: https://code.google.com/p/android/issues/detail?id=58468 Aug 02 18:36:43 Wavesonics: I dont see the point of the first Aug 02 18:36:54 and is not the second use centerInside ? Aug 02 18:37:18 no, maybe i should work up some images for examples Aug 02 18:37:42 indeed, I can vis it, but not see a point to the 1st Aug 02 18:37:56 but basically, the ImageView will not resize it's height in order to stretch the image Aug 02 18:38:03 I would want crop control, not just start x,y to random/view size Aug 02 18:38:27 Wavesonics: how does that differ to centerInside ? Aug 02 18:38:28 for the first Aug 02 18:39:01 StingRay_, centerInside does not resize the ImageView as needed Aug 02 18:39:20 oh you mean to actually match the aspect ? Aug 02 18:39:27 yes Aug 02 18:39:31 now I get it Aug 02 18:39:47 ok so for the first one Aug 02 18:40:18 centerCrop is handy if you have a large image, you don't care if the edges get cropped some depending on how the View changes size on different devices Aug 02 18:40:39 but the center of the image is always centered, and you potentially lose the top of the image to cropping Aug 02 18:41:19 well for certain use cases, the top of the image is the important part of the image, and you want to ensure that is displayed, so anchoring the top of the image to the top of the View, and then cropping the bottom and sides of the iamge as needed Aug 02 18:41:21 see what I think, is if there were a need to do something like that, I would want control over it Aug 02 18:41:31 not just, TOP or Center weighted Aug 02 18:41:49 so not really sure about that still Aug 02 18:42:09 I would want something like safeFrame coords or something Aug 02 18:42:11 I've had 2 seperate use cases that required it Aug 02 18:42:23 cause you dont just randomly crop center or top Aug 02 18:42:27 or I would never Aug 02 18:42:28 and clearly there is a usecase for centerCrop, so this is just a varrient on it Aug 02 18:42:59 if your arguing that you want even more control, I completely agree :P but this is an easier proposition i think to just add a few more scale types Aug 02 18:43:02 centerCrop …ish, if the context or subject is still communicated cause that kind of crop was accounted for Aug 02 18:43:14 exactly Aug 02 18:43:19 its content dependent Aug 02 18:44:08 but I would not think, hey lads, when taking photos of this food, make sure it still stands if we chop of the bottom Aug 02 18:44:09 :) Aug 02 18:44:37 not neccisarily for photography Aug 02 18:45:27 my point is, while it maybe good, I think the use case is very minimal, and if crop were required, your assets would most likely be centered Aug 02 18:45:54 we have a usecase here where we have a character centered horizontally, and close to the top of the image, and then we display it nearly full screen, and on different devices we dont care if his feet get cut off, or some stuff on the edges, but we want his head and torso visible Aug 02 18:46:42 of course, but thats the point, thing about C# or PHP standard libs, there are string functions that are not used all the time, but man when you need it, and its ust right there, thats amazing! Aug 02 18:47:10 see with something that is conext sensative and variable like that Aug 02 18:47:24 I would want a safe frame def or something Aug 02 18:47:33 so thats a custom view really Aug 02 18:47:51 well more a custom loading of an image I would think Aug 02 18:48:05 not in the two use cases I've encountered so far Aug 02 18:48:15 clearly the thing centerCrop is important already Aug 02 18:48:21 this is just a varriant on center crop Aug 02 18:49:01 but if your asset is not variable, the should you not be doing some nifty pixel binning so that it's consistant on devices ? Aug 02 18:49:34 the asset is varriable, comes from a content system and changes often Aug 02 18:49:51 a content system shared across many platforms too Aug 02 18:50:20 i mean density variable Aug 02 18:50:26 or is it ? Aug 02 18:50:43 but thats not the point, this is a area where they could really ease a lot of developer pain by added some extra options. There are tons of SO threads w\ custom ImageView implementations to solve these problems Aug 02 18:51:11 I wanted to know how to change the image of a button when it is clicked Aug 02 18:51:20 maybe a website refrences Aug 02 18:51:34 image of a button ? Aug 02 18:51:40 you mean the button graphic ? Aug 02 18:51:47 look at stateListDrawables Aug 02 18:51:57 thats what a button should be Aug 02 18:51:57 onClick(){button.setBackground(image); Aug 02 18:52:03 lazy answer Aug 02 18:52:19 DarkSlay3r: and only 1 state Aug 02 18:52:21 :) Aug 02 18:52:40 Lol thanx DarkSlay3r Aug 02 18:52:54 he said just the image... Aug 02 18:53:35 oh, like a 1 shot switch kinda thing :) Aug 02 18:54:43 no infact i want the way in which u use the drawable resource fil Aug 02 18:54:46 *file Aug 02 18:55:14 then look at what I said Aug 02 18:55:25 you create a drawable that has states Aug 02 18:55:30 where u use an item and refrence it in your Java File... Aug 02 18:55:37 press, focus, **** etc Aug 02 18:56:09 datandroiddude: you dont want it to act like a button ? Aug 02 18:56:14 or you do ? Aug 02 18:58:16 Sorry stingray got disconnected Aug 02 18:58:26 which states do i use? Aug 02 18:58:44 do you want it to act like a button ? Aug 02 18:59:50 ya and change darker when i click it Aug 02 19:00:06 which will be another drawable when clicked Aug 02 19:00:11 no Aug 02 19:00:16 it would be a different state Aug 02 19:00:16 huh? Aug 02 19:00:19 of the same drawable Aug 02 19:00:28 that may or may not call on another drawable Aug 02 19:00:29 http://stackoverflow.com/questions/9668087/android-custom-button-drawable-xml-file Aug 02 19:00:40 which states should i use? Aug 02 19:00:49 eg. android:enabled Aug 02 19:00:55 Thanx bro Aug 02 19:01:03 \android-sdk-windows\platforms\android-8\data\res\drawable <--- that was the place Aug 02 19:01:12 cept not *-8 Aug 02 19:01:22 whatever ver you want Aug 02 19:01:32 they have the button drawables with the existing states Aug 02 19:01:54 you can have quite complex mix of states, and combined states too :) Aug 02 19:02:01 so best to look at the source Aug 02 19:02:02 that wasnt it but ill search on google Aug 02 19:02:55 http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html Aug 02 19:09:17 I'm using LocationManager.addProximityAlert, but I'm never getting the alert (using geo fix to test it). I have all the permissions and it's not giving any errors or showing anything in logcat. What could be the problem here? Aug 02 19:09:46 that stuff is often broken Aug 02 19:10:35 What do you mean broken? It just doesn't work? Aug 02 19:10:42 see http://developer.android.com/training/location/geofencing.html Aug 02 19:10:44 If I want to have an action bar-esque thing at the bottom of all of my activities/fragments, would it be best to just have one layout that the other layouts are inserted into? Aug 02 19:11:00 or should I just put the action bar thing at the bottom of all of the layouts? Aug 02 19:11:07 g00s, I was using geofences before, but it was way too much extra crap that I didn't need Aug 02 19:11:34 but your finding out the straightforward way is unpredictable Aug 02 19:11:40 this isn't new Aug 02 19:13:09 Also, I'd rather not require google play services if I don't have to. Aug 02 19:13:27 and why is the Google Play Services version any different anyways? Aug 02 19:13:39 dont blame you. that stuff doesn't work on the x86 emus (not sure about arm) Aug 02 19:15:03 See, my problem with using Google Play's geofences is that they require Google Play Services and they're so much more complicated than just using LocationManager Aug 02 19:16:27 g00s, is there no way to get this to work, then? (and if not, then why is it even in android in the first place?) Aug 02 19:16:44 its been there for a long time Aug 02 19:17:42 whether it works well or not could have a lot to do with the gps / firmware i suspect Aug 02 19:19:52 Alright, then is there a simpler way to use geofences rather than having to implement all the stupid connect listener and geofence added listener classes? Aug 02 19:21:45 how to know if the item is imageview or textview in listview item onclick ? Aug 02 19:22:00 please give precide refrence or proper method ? Aug 02 19:22:03 also, I don't see anyone mentioning anything about it being broken anywhere else online :/ Aug 02 19:22:05 instanceOF how could it work ? Aug 02 19:22:23 andr0-dev: http://lmgtfy.com/?q=java+instanceof&l=1 Aug 02 19:25:55 lmgtfy is sooo the norm, that I think it's lost the point Aug 02 19:28:20 I want to check in a listview if a item is textview or image view on click ? how to do that ? Aug 02 19:28:56 andr0-dev: this was answered by me, discuss by a few, and pointed out again by evanc Aug 02 19:29:01 what are you not getting ? Aug 02 19:29:17 instanceof Aug 02 19:29:33 you simply said instanceof well how ? Aug 02 19:29:44 did you look at examples ??? Aug 02 19:29:51 yeah lot of them Aug 02 19:29:59 ok, so what dont you get ? Aug 02 19:30:24 instanceof what ? should i check ? Aug 02 19:30:30 whatever you want Aug 02 19:30:42 something instanceof somethingelsethatyouwanttocheckagains Aug 02 19:30:49 *T Aug 02 19:31:18 there was a example , of numbers like somemethod(Number a) so we check if(a instanceOf double) or if(a instanceOf float) Aug 02 19:32:22 ya like tha Aug 02 19:32:23 t Aug 02 19:33:08 but in list view on item click what should i compare to ? Aug 02 19:33:28 ugh ? Aug 02 19:33:50 you asking me what YOU want to compare / Aug 02 19:33:51 ? Aug 02 19:33:54 I have no idea Aug 02 19:34:09 you said something against imageview or textview Aug 02 19:34:20 I want to check on click weather the ITEM is ImagView or TextView Aug 02 19:34:39 so this ITEM can be either or ? Aug 02 19:34:57 myITEM instanceof ImageView ? Aug 02 19:35:20 can we use directly the ImageView ? Aug 02 19:35:30 if (item instanceof ImageView) { Aug 02 19:35:31 ImageView iv = (ImageView) item; Aug 02 19:35:31 // do stuff with image view Aug 02 19:35:32 } else if (item instanceof TextView) { Aug 02 19:35:34 TextView tv = (TextView) item; Aug 02 19:35:36 // do stuff with text view Aug 02 19:35:37 instanceof ImageView ? Aug 02 19:35:38 } Aug 02 19:35:55 Please don't do that Aug 02 19:35:55 yes Aug 02 19:36:02 jaynewstrom, there's this wonderful thing called pastebin Aug 02 19:36:02 but that would create 2 object Aug 02 19:36:06 that are not needed Aug 02 19:36:07 you should try it some time Aug 02 19:36:12 and yes use pastebin Aug 02 19:36:17 haha, will do! Aug 02 19:37:18 you can do ((ImageView)item).someMethod() rather than a new object Aug 02 19:37:27 since at that point you know it's that type Aug 02 19:37:49 it's still just a reference. like 4 extra bytes of space, big whoop Aug 02 19:39:08 h Aug 02 19:41:19 did that help @andr0-dev? Aug 02 19:41:52 jaynewstrom: I think I just figured out something Aug 02 19:42:10 You mean about references? Aug 02 19:42:14 he wants to get either an imageview or textview from the item clicked Aug 02 19:42:27 but within onItemClicked Aug 02 19:42:35 from the view that is returned there Aug 02 19:42:39 I'm guessing Aug 02 19:42:45 from re-reading Aug 02 19:43:08 and no, still pretty clueless about basic programming stuff Aug 02 19:43:12 :) Aug 02 19:43:21 haha! Aug 02 19:44:13 laugh at me you guys :( but i am just a beginner hacking things around ! Aug 02 19:44:17 sp andr0-dev if that is what you wanted, suppose if you dont want to build something onto the adapter to return the proper view, you could "returnedView.findViewById() Aug 02 19:44:37 in onItemClicked Aug 02 19:44:53 andr0-dev: it's just really hard to work out what you want and where Aug 02 19:44:54 :) Aug 02 19:45:26 but the view that is returned in onItem* is that active item view that was clicked Aug 02 19:45:33 if that helps Aug 02 19:46:02 yeah i got that Aug 02 19:46:12 if(view instanceof ImageView) Aug 02 19:47:54 h Aug 02 19:50:00 StingRay_ but this approach is not working Aug 02 19:54:30 It works if your adapter returned an ImageView for that position Aug 02 19:56:32 How do i update my Android Studio? Aug 02 20:04:27 hello? Aug 02 20:04:45 ban him Aug 02 20:04:48 i wanted to know if i could get help concerning android buttons.? Aug 02 20:05:21 datandroiddude: don't ask to ask, just ask Aug 02 20:06:17 my android button changes drawables when clicked, as supposed to, and wat the problem is is that it stays the same when u come back to the Activity. Aug 02 20:07:24 how do you change the drawable Aug 02 20:07:48 using an XML file with items.. Aug 02 20:07:57 I meant changing the State Aug 02 20:08:11 Anybody have any experience troubleshooting custom adapters? I have reason to suspect that that the reported position being sent to getView (for a custom ArrayAdapter used in a ListView) is not always the position the view ends up in... Aug 02 20:09:17 datandroiddude: Are you capturing click or touch? Aug 02 20:09:32 click Aug 02 20:09:55 this is my XML File Aug 02 20:09:57 umm..no Aug 02 20:49:43 ok Aug 02 20:50:08 meh, stupid chuck norris lawyers had my app removed due to trademark infringement Aug 02 20:50:22 trademark on the name chuck norris Aug 02 20:50:30 StingRay_ then you said to compare objects with instance of , like this the condition will never satisfy ? HELP a BIG HELP MAN Aug 02 20:50:50 so... Aug 02 20:50:54 you asked how to compare views Aug 02 20:51:04 I then added that it will always return the ROOT view Aug 02 20:51:08 of an item Aug 02 20:51:11 and then I said Aug 02 20:51:23 if you want you can use findViewById on that view Aug 02 20:51:32 but I'm now done repeating this Aug 02 20:51:42 gl Aug 02 20:51:51 so wats the answer? (andr0-dev) Aug 02 20:52:24 datandroiddude, the answer is, yes its possible Aug 02 20:52:50 :) Aug 02 20:53:28 I am really very sorry , i made you angry i guess :( StingRay_ i got it , and a big thank you with a cute kitty smile :p Aug 02 20:54:17 who me? Aug 02 20:54:20 Quacked: what was your app? Aug 02 20:54:26 We don't take kindly to ignorance 'round here Aug 02 20:54:42 andr0-dev: in all honesty, not sure what you're doing, but it could be that you need onClicks on the views Aug 02 20:55:15 andr0-dev: I think your crappy connection is not helping :) Aug 02 20:55:31 yeah Aug 02 20:56:07 SimonVT are you making this a army battleground :p Aug 02 20:56:09 has anyone ever got back something usefull from this method? Aug 02 20:56:59 I got back the value 42 from it once. Aug 02 20:57:06 Unfortunately, I forgot what parameters I passed to it Aug 02 20:58:51 JesusFreke 0.5.5 update requires .each --> .all on that snippet i sent yesterday :| Aug 02 20:58:59 ah Aug 02 20:59:49 i need to learn gradle better; there is a way to skip tasks if they are up to date Aug 02 20:59:57 eventually i'll get to that Aug 02 21:00:18 42 … would be better than null Aug 02 21:00:30 Yeah, I think you have to tell gradle about the file that task is supposed to generate Aug 02 21:00:43 or rather, the input and output Aug 02 21:00:51 but seriously I can't get why it's there when it always returns "null" Aug 02 21:01:03 and then it skips it if the output is older than the input Aug 02 21:01:03 I have testet it on 6 different phones Aug 02 21:03:09 JesusFreke, it only checks timestamps? Aug 02 21:03:21 pfn: not positive Aug 02 21:04:10 ian_ford: what would chuck norris do Aug 02 21:04:14 * pfn checks hashes vs timestamps on occasion Aug 02 21:04:16 bdrop: do you a) realize it's deprecated and b) have ACCESS_COARSE_UPDATES ? Aug 02 21:04:59 Quacked: You should re-release it as "what would Nuck Chorris do" and deny any resemblance to the trademark Aug 02 21:05:26 I thought about that but don't want to push my luck Aug 02 21:05:59 evanc: It may be deprecated but getAllCellInfo() isn't better (also returns null) Aug 02 21:06:08 and yes I have the permission ... Aug 02 21:06:10 I'm looking for a way to log into the google play store website from my app, can someone please point me in the right direction? thanks Aug 02 21:06:15 <\m> Misspelling chuck norris's name may lead to death Aug 02 21:06:39 only chuck norris can misspell chuck norris' name without consequences Aug 02 21:07:21 <\m> Did that ever happen Aug 02 21:07:21 <\m> Did you ever see that Aug 02 21:08:41 if i use a webview, and log in, if i use httpClient afterwords, will I still have credentials? Aug 02 21:09:08 good ole cookies, mmm Aug 02 21:09:56 eppo, not directly Aug 02 21:10:12 and I cant use google play services to get a token, and use that, correct? Aug 02 21:10:13 you can access them and use them, but it's not automatic Aug 02 21:10:22 dunno Aug 02 21:10:39 bdrop: it's not much help since I can't share code, but a coworker says he's using getAllCellInfo and it returns non-null Aug 02 21:11:49 evanc: what device are you using / which android version Aug 02 21:12:17 I have seen some info where you can use a webview, and inject javascript into it to view the html, but it hasnt been working, i might have to give it a shot Aug 02 21:12:53 bdrop: 4.3, various devices Aug 02 21:13:38 I tested for example with GalaxyNexus on 4.3 ... Aug 02 21:13:43 damn what going on Aug 02 21:14:11 have you switched to only use "2G" threw settings? Aug 02 21:14:20 how can i check if it is the first time opening the app?? Aug 02 21:15:28 bdrop, telephony on samsung devices doesnt work very well Aug 02 21:15:30 datandroiddude: set a sharedpreference var after you open it the first time Aug 02 21:15:31 telephony apis* Aug 02 21:16:04 I have also tested it with Nexus4 (which is LG) Aug 02 21:16:16 ive had no problems with telephony on n4 Aug 02 21:16:20 marcab: can u show me where i can learn from a tutorial? Aug 02 21:16:31 same problem … always getting null back and not the list of cells Aug 02 21:16:46 bdrop: ah, yes, Galaxy Nexus (on Verizon in particular) probably won't work well Aug 02 21:16:53 datandroiddude: http://developer.android.com/reference/android/app/Application.html#onCreate() Aug 02 21:17:01 ^^ Do it there in your custom application object Aug 02 21:17:07 but Nexus4 does? Aug 02 21:17:14 bdrop: it should Aug 02 21:17:15 evanc, no, not verizon Aug 02 21:17:18 samsung devices. period. Aug 02 21:17:24 datandroiddude: And there are lots of tutorials on using sharedpreferences. Aug 02 21:17:24 hello , I am making a app with a custom adapter in a GridView Aug 02 21:17:31 http://code.google.com/p/android/issues/detail?id=24136 Aug 02 21:17:36 canadiancow: yeah vzw doesn't have a monopoly on suckage Aug 02 21:17:39 datandroiddude: For instance http://stackoverflow.com/questions/3624280/how-to-use-sharedpreferences-in-android-to-store-fetch-and-edit-values Aug 02 21:17:50 Thanx Aug 02 21:17:58 i am putting images in it , but i want to decrease the size of image without scalling the image Aug 02 21:18:09 datandroiddude: no worries -- what you're looking for is entirely doable. Aug 02 21:18:28 so did I get it right that it's carrier dependent not device dependent ? Aug 02 21:18:29 Ur Awesome Dude Aug 02 21:18:58 datandroiddude: what is it you're checking for? What will you do differently the first time? Aug 02 21:19:48 @RozeMarry, ok, what is your problem in trying to do it? Aug 02 21:20:16 i wonder if it was such wide discrepancies of telephony API behavior that led the OpenSignal guys to investigate and produce their fragmentation report Aug 02 21:20:33 i pretty much just gave up on that Aug 02 21:20:51 * g00s first project was similar to OpenSignal Aug 02 21:20:55 i have a image in Grid view customized from a adapter Aug 02 21:21:12 g00s: can you give a link to their report= Aug 02 21:21:14 ? Aug 02 21:21:29 i want it to be small but without scalling it Aug 02 21:21:29 i want to show a tutorial on how to use the app..the first time its opened (marcab) Aug 02 21:21:56 bdrop http://opensignal.com/reports/fragmentation.php Aug 02 21:22:16 @RozeMarry by scaling do you mean changing the aspect ratio? Aug 02 21:23:00 bdrop notice the most popular phone. if your app doesn' work there, forget about it Aug 02 21:23:01 right now they are scaled so when i am opening it in another screen with full screen it is blurred Aug 02 21:23:12 i want the exact image Aug 02 21:23:33 without scalling Aug 02 21:23:34 sry but I don't think you have got my point Aug 02 21:24:00 I just want to know in which combination I can retrieve data from getAllCellInfos Aug 02 21:24:23 @RozeMarry you should scale it down in your grid view, and when you open it larger, open it without scaling it. are these images on the device? or are you getting them from the internet? Aug 02 21:24:37 from internet Aug 02 21:24:44 bdrop right, but you saw canadiancow's bug report ? Aug 02 21:25:07 if i will put it in scaled manner then they will be small in size so bad for full screen Aug 02 21:25:18 @RozeMarry store them as full, and when you render them in the grid view scale them down, then pass the full image into the view you want full screen Aug 02 21:25:19 marcab: also do u noe where i can get tutorials on how to change the actionbar when a button is long pressed? Aug 02 21:25:51 Actually I am passing the whole bitmap on click in grid view Aug 02 21:26:08 through intent , i dont want to save the image Aug 02 21:26:48 i tried that but i dont want to fill the memory with that Aug 02 21:26:50 the image after you scaled it in android? or after its been scaled down from the server that you got it from Aug 02 21:27:09 i scaled it in android to fit exact size of grid view Aug 02 21:27:16 then you may have to keep a link to it and load the full link when you load it into the full view Aug 02 21:27:17 Yes I have seen it but Its also not working on mx LG Nexus4 Aug 02 21:27:32 just make an object that has a bitmap and an image path Aug 02 21:27:39 datandroiddude: got it. You may just want that var set in your activity/fragment instead of in the application then. Aug 02 21:27:45 still in sharedprefs Aug 02 21:27:48 evanc: you have got it working on Nexus4 right? Aug 02 21:27:54 the image is comming as a data stream Aug 02 21:28:00 no path or URL Aug 02 21:28:03 datandroiddude: not sure on the long press event for an actionbar, sorry. Aug 02 21:28:12 bdrop well, i hope you have a lot of phones to do your testing, if you plan on using those apis ;) Aug 02 21:28:21 @RozeMarry you know your options, save to disk, run out of memory, have crappy scaled images in full screen. Aug 02 21:28:32 @RozeMarry make the decision that makes the most sense to you Aug 02 21:28:46 RozeMarry: are you Andro-dev ? Aug 02 21:28:48 lol Aug 02 21:28:59 lol! Aug 02 21:29:01 It wont be a "public app" so one phone would be enough for me Aug 02 21:29:05 marcab: im not 100% sure what to do but ill check for some tuts...thanx so much for all the help Aug 02 21:29:25 yep. good luck Aug 02 21:31:43 jaynewstrom is there not a way to put image as small in grid and then opening it in full , Stingray_ ???? Aug 02 21:32:38 RozeMarry: have you just changed from the handle andr0-dev ? Aug 02 21:32:44 handle/nick Aug 02 21:32:58 not sure why I said handle there Aug 02 21:33:02 no , why ? Aug 02 21:33:25 @RozeMarry there is, save the full image in an ArrayList or something, use the full image to temporary scale down and set as the bitmap to the image view, then pass the full image to the new activity Aug 02 21:33:31 cause you are asking the same base question, with the same input and the same requirements Aug 02 21:33:44 ok Aug 02 21:33:48 but switched from listView to GridView Aug 02 21:34:59 thank you guys love you all Aug 02 21:35:13 you bet, how long have you been programming? Aug 02 21:35:44 6 months Aug 02 21:36:10 have fun running out of memory Aug 02 21:36:37 is there not a bundle size limit neways ? Aug 02 21:36:43 like 60k ? Aug 02 21:36:45 there is Aug 02 21:36:50 or is it 600k ? Aug 02 21:36:51 @RozeMarry Cool, I'm sure you'll get there. but you still have a lot to learn. Can I recommend this? http://marakana.com/s/post/1017/android_bootcamp_series_2012_video_tutorial Aug 02 21:37:04 i thought a power of 2; 256K ? 500K ? Aug 02 21:37:15 the android camera intent uses bitmaps to send images back, it should work Aug 02 21:37:38 I mean, you don't want to send a 30MB bitmap back. But for general uses it should at least work Aug 02 21:37:59 jaynewstrom: it sends a small thumb Aug 02 21:38:02 not the image Aug 02 21:38:05 jaynewstrom: only when getting back cropped thumbnails Aug 02 21:38:15 otherwise use uri Aug 02 21:38:36 yeah, I use URI, but none the less, you can still pass bitmaps through Aug 02 21:38:51 can yeah, should … doubt it Aug 02 21:39:01 but I'm a noob so maybe Aug 02 21:39:03 insane to pass around a large in-memory object especially if possibility to cross process boundaries, lifecycle interruption/recovery etc Aug 02 21:40:11 OutOfMemoryError imminent Aug 02 21:42:29 Yeah, i never said it was a good idea! I just said it was possible! Aug 02 21:43:31 came across apportable - co. that's making tools to write Android code in Obj-C Aug 02 21:44:04 shipit: yeah, they've done a fair number of games so far Aug 02 21:44:35 Bjork used them Aug 02 21:44:43 how does it work? compiles obj-c to bytecode? Aug 02 21:45:24 obj-c message dispatching is quite different than java method invocation, i wonder Aug 02 21:45:29 Bjork is the hacker penultimate ;) Aug 02 21:45:59 g00s: in principle, yes, but most of the time it results in a method invocation Aug 02 21:46:07 I was a lil disappointed Aug 02 21:46:20 prefer Intents, Service, queues anyday Aug 02 21:46:47 Grand Central Dispatch is interesting but leaves a lot work to decouple contexts Aug 02 22:04:19 hello? Aug 02 22:06:46 I'm having some trouble with 4.3, and going through the source of ImageView and it references so called 'legacy' measure specs. What are the changes in this version? Why is it different? Aug 02 22:08:03 what is the trouble? Aug 02 22:08:12 Hi Aug 02 22:08:29 how do you create an animation when the app starts like skype? Aug 02 22:09:01 @shipit, to whom were you speaking? Aug 02 22:09:11 ell_: I was speaking to you :) Aug 02 22:09:19 Just curious how android 4.3 looks up phone number location on incoming call? Aug 02 22:09:24 ell_: didn't understand what was the trouble you're seeing w/ ImageView Aug 02 22:09:43 Damo2k: who's your carrier? Aug 02 22:09:52 Ah, good, just wanted to make sure Aug 02 22:09:53 ok Aug 02 22:09:56 anyone noe how to do animations like the skype entry? Aug 02 22:10:01 3 Ireland Aug 02 22:10:39 Damo2k: mostly it's a carrier option, they lookup caller id information for you Aug 02 22:11:00 so, i have an app on the market that subclasses imageview to implement double tap to zoom and the regular scale gesture Aug 02 22:11:18 datandroiddude: from your main activity, start the splash activity and display AnimatedDrawable in that Aug 02 22:11:58 thanx..ill google tutorials Aug 02 22:11:59 ell_: hmm, and the new ImageView has broken that interface> Aug 02 22:12:09 that's correct Aug 02 22:12:13 i tracked it down Aug 02 22:12:24 Oh, hmm how does the phone recieve it so? Aug 02 22:12:46 to the onMeasure method, or alternatively, the setScaleType Aug 02 22:12:49 method Aug 02 22:13:06 When I use setScaleType(ScaleType.MATRIX) Aug 02 22:13:45 the image gets zoomed in, and the bounds don't allow scolling over the whole img Aug 02 22:14:06 when I don't set the scale type, 4.3 users can't zoom. Aug 02 22:14:36 ell_: sorry, I don't know much about ImageView internals :( Aug 02 22:14:48 So I'm wondering, what changes have been made to ImageView with regards to ScaleType.MATRIX? Aug 02 22:14:51 Ok Aug 02 22:15:18 Do you know of a resource where I could find out more about it? Other than the sources? Aug 02 22:15:41 Damo2k: caller id (CID) info is transmitted over DTMF, in-band signal over voice line Aug 02 22:16:25 Ah OK, I have some terms to Google around with now. Thank you. Aug 02 22:16:28 ell_: sorry dude, you probably know more about ImageView than I do! hit up the android dev e-mail list Aug 02 22:16:48 Ok thank you Aug 02 22:19:00 Its possible they are transmitting phone number location via this Aug 02 22:19:41 Also, is it frowned upon to announce your own open source app here? Aug 02 22:33:02 Anyone know how we'd go about reporting performance issues in the Android NDK? Aug 02 22:33:15 We're seeing some pretty strange regressions from r8 to r9. Aug 02 22:48:07 g00s you there? Aug 02 22:48:18 god damn it Aug 02 22:48:39 the fact that majority of software folk I encounter are junior devs is really starting to piss me off Aug 02 22:48:59 ron_frown: out of interest, what are they lacking ? Aug 02 22:49:04 or are you just grumpy ? Aug 02 22:49:06 :) Aug 02 22:49:14 or both ! Aug 02 22:49:21 I just got lectured buy a guy who has been programming for less than a year... about how stupid it is to have business objects inherit from a common base Aug 02 22:49:31 other than object Aug 02 22:49:46 rottz ya Aug 02 22:50:00 and while I'll give the guy the fact that he probably understands oop conecps better than most people entering the job market Aug 02 22:50:43 I'm grumpy as usual as the nick suggests, but the workplace is getting inundated with new blood that thinks they know a lot more than they do Aug 02 22:50:52 I think the ideas those folks bring are often new looks at old problems Aug 02 22:51:00 but sometimes I wish there were just more sr guys around Aug 02 22:51:07 * JesusFreke hands ron_frown a cane Aug 02 22:51:13 haha Aug 02 22:51:19 JesusFreke maybe a walker with tennis balls Aug 02 22:51:19 I'm not really even that old Aug 02 22:51:23 :D Aug 02 22:51:35 I've just been programming for 20yr because I started YOUNG Aug 02 22:51:48 ron_frown: you "type/sound" … err… mature Aug 02 22:51:50 :) Aug 02 22:52:07 Hmm. I wonder when I started programming. It probably was 20 years ago. Aug 02 22:52:09 32 and waht does that mean =) Aug 02 22:52:31 fk 32 is nothing Aug 02 22:52:34 your a baby Aug 02 22:52:35 ron_frown was born with a compiler in his hand Aug 02 22:52:39 It was like 6th grade I guess. What is that 12-13yrs old? Aug 02 22:52:39 JesusFreke I dont know what you do professionally but I've seen some of your work on the side, and its very much alogn the lines of what I do Aug 02 22:52:47 yeah, around 20 years then Aug 02 22:52:48 damn :) Aug 02 22:53:12 youre all babies :) Aug 02 22:53:12 * JesusFreke hands himself a cane Aug 02 22:53:37 12/13 is when I started doing 3D graphics Aug 02 22:53:41 to be fair Iv'e seen young guys that blow my mind... that I'm frankly jealous of and old dudes that cant code for shit Aug 02 22:53:51 StingRay_ let me guess... mod intros Aug 02 22:54:03 no not coding Aug 02 22:54:04 art Aug 02 22:54:07 * g00s hands JesusFreke some fixodent Aug 02 22:54:17 albeit assembly was definitely not a great language to start programming with Aug 02 22:54:19 but inspired by the raytrace mods Aug 02 22:54:21 :) Aug 02 22:54:41 I used to go to school like 7th grade with a kid that was pretty much a straight up genius Aug 02 22:54:43 g00s: thanks. they all got knocked out unicycling Aug 02 22:54:50 oh noes Aug 02 22:54:57 he'd effectively write asm that ran in basic poking/peeking addresses etc etc etc Aug 02 22:55:00 that was nuts Aug 02 22:56:47 poke 53280,0 Aug 02 22:57:35 heh. I remember I saw some guy on a demo computer at walmart that coded up some graphics demo something in qbasic in a few minutes Aug 02 22:57:43 and was awed at the time Aug 02 22:58:10 i'd put poke 53280/1 in a loop for crazy color Aug 02 23:01:19 we need the commodore phone, running geos touch Aug 02 23:01:50 iytm g00s touch Aug 02 23:01:54 itym* Aug 02 23:01:55 out &h3c8, color; out &h3c9, r; out &h3c9, g; out &h3c9, b; Aug 02 23:02:08 "53280", said a noob. Aug 02 23:04:37 Ah ... I'll have to fire up my Apple II emulator to see what pokes I used in my old code Aug 02 23:09:36 g00s problem solved Aug 02 23:09:52 the inflated rating one I wrote a couple hours ago Aug 02 23:09:59 rottz what was the outcome then ? Aug 02 23:10:01 app is gone Aug 02 23:10:04 bwahaha Aug 02 23:10:11 https://play.google.com/store/apps/details?id=by.squareroot.kakuro Aug 02 23:10:41 only like, 500k shitty apps more to go right ? Aug 02 23:11:02 lol Aug 02 23:11:23 what was the app? Aug 02 23:11:24 i love these guys that take an instructional video and put it in an app Aug 02 23:11:40 as long as those 500k shitty apps are not competing directly with me :) Aug 02 23:12:09 i wish there was like... an under class of apps, and apps that have been reviews and are awesome are in the normal app store, and then if u cant find what u want. you go into the seedy under class district, where all the crap is. some good stuff of coruse that hasn't bubbled up yet, but ya know... keep those 1.6 style UI apps away from the beautiful ones ;) Aug 02 23:12:57 I just think google should have a few hundered outsource app validators/testers Aug 02 23:13:12 who give a google approved label to an app Aug 02 23:13:35 it should be more like dante 's inferno ; apps reside in different levels of hell Aug 02 23:13:43 YES Aug 02 23:13:49 exactly like that Aug 02 23:13:51 w\ fire Aug 02 23:14:17 Play, show me the 4th circle Aug 02 23:14:28 of hell? Aug 02 23:14:28 hehe Aug 02 23:14:35 heh Aug 02 23:14:40 the whole store could be successfully put in circles 1-9 Aug 02 23:14:42 basically the first circle of the play store should just be the apps on android nicities Aug 02 23:15:41 those would be the important tier-1 apps Aug 02 23:16:10 then in circle 9, you have like mikedg's apps Aug 02 23:16:59 lmao Aug 02 23:18:25 circle most-positive-fixnum is when I go to town on /system ;) Aug 02 23:21:33 tbh, not sure I would trust google to judge apps properly Aug 02 23:21:48 just looked at their top designed apps list Aug 02 23:21:58 there are some very odd choices there Aug 02 23:22:17 some have some major design and function flaws from what I remember Aug 02 23:22:26 bit odd tbh Aug 02 23:22:50 StingRay_, agreed Aug 02 23:22:57 seems like it's more user numbers Aug 02 23:23:07 my biggest pet peev is that many of the Google designed apps don't actually follow their own design guidelines Aug 02 23:23:24 well those are not rules, they are guidlines Aug 02 23:23:32 and if you follow them, thats just copy Aug 02 23:23:38 as in not really a design Aug 02 23:23:51 unless you come to the same format through proper design obviously Aug 02 23:24:04 but something like pinterest Aug 02 23:24:16 that has some major problems Aug 02 23:24:30 and functional problems with logon, nav, search etc Aug 02 23:24:37 even basics of copy/paste Aug 02 23:24:37 * p_l is once again kinda-pissed at Nfc implementation Aug 02 23:24:47 really odd those choices Aug 02 23:24:49 well some of them Aug 02 23:29:24 ... fuck me sideways. Apparently I don't even need to mod NFC libs if I want to read-write mifare tags, unless someone is doing something nefarious Aug 02 23:29:50 the last thing missing is getting card emulation mode Aug 02 23:29:54 ? Aug 02 23:30:03 how can it be hacked? Aug 02 23:30:42 pfn: MiFare tags *should* happily talk to you over NfcA interface in android framework Aug 02 23:31:06 the only thing is that you need to supply the missing code to support their protocol and Crapto-1 Aug 02 23:34:23 (all code to deal with MiFare classic is easily available after a bit of googline) Aug 02 23:34:27 *googling Aug 02 23:34:58 now, I just need a way to request CardEmulation mode with no NFC-EE Aug 02 23:37:33 StingRay_: I think Google should become Apple too Aug 02 23:37:43 orly Aug 02 23:37:49 no Aug 02 23:37:58 dcow: ? Aug 02 23:38:00 I do think you need conformance tests for the os Aug 02 23:38:00 ? Aug 02 23:38:02 though Aug 02 23:38:07 ya Aug 02 23:38:32 StringRay_ that was a response to your suggestion that google hire app evaluators Aug 02 23:39:01 oh, yeah thinking further about it, not sure it great Aug 02 23:39:10 after I looked at their choices Aug 02 23:39:13 you need to pass conformance test to include Market.apk Aug 02 23:39:34 I don't want to wait weeks for my app to get through a queue of google app testers (= Aug 02 23:39:51 dcow, there are other options though Aug 02 23:39:53 that's one of the things I think android did right — despite the fact that it allows crappy apps since there is no filter Aug 02 23:40:05 Wavesonics: yes, true Aug 02 23:40:36 ya i think it should allow all apps, but some how give preference to better apps in search and sort options and such Aug 02 23:40:39 p_l: they're not very good Aug 02 23:40:49 need to be beefed up Aug 02 23:41:32 well I don't know if search preference is the way to go either Aug 02 23:41:47 ok, dev question for yall Aug 02 23:42:01 i have a view, not a button, but i want it ot have clickable functionality Aug 02 23:42:17 view.setOnClickListener Aug 02 23:42:22 no Aug 02 23:42:37 yes Aug 02 23:42:46 view.setBackgroundDrawable(myStateListDrrawable) ? Aug 02 23:42:52 so it's got clickable=true, and it's got a background drawable set which has pressed states Aug 02 23:43:01 which should give it a unpressed appearence Aug 02 23:43:13 and this works great on 4.x Nexus devices Aug 02 23:43:33 u touch it, it looks pressed Aug 02 23:43:56 however, on 2.x devices it doesnt work, which i'm kinda fine with :P but on certain 4.x devices it also doesn't work, like the GS3 & 4 Aug 02 23:44:04 are your states ordered properly? Aug 02 23:44:17 yes, pressed, then default Aug 02 23:44:41 dcow: states need to be ordered properly ? Aug 02 23:44:41 well this is why they need conformance tests d= Aug 02 23:44:49 Copy the button drawable from the framework, that works Aug 02 23:44:50 ya :/ Aug 02 23:44:51 StingRay_: yeah Aug 02 23:44:57 You don't need android:clickable either Aug 02 23:45:02 StingRay_: States are checked top-down Aug 02 23:45:03 oh no? Aug 02 23:45:06 dcow: then I must be the luckiest guy there is Aug 02 23:45:15 SimonVT: I know that Aug 02 23:45:23 but there is no set order right ? Aug 02 23:45:24 so how do you give pressed states to views generally? Aug 02 23:45:35 obvious is one state is met , thats it Aug 02 23:45:37 Wavesonics: StateListDrawable Aug 02 23:45:43 StingRay_: No, no set order Aug 02 23:45:53 It just checks top down Aug 02 23:45:56 SimonVT, oh I was using a for the drawable Aug 02 23:46:04 ah right, ok, dcow confused me there Aug 02 23:46:09 Wavesonics: That's a StateListDrawable Aug 02 23:46:16 and made me think I was like really lucky Aug 02 23:46:47 Dude might have put the drawable with no state at the top Aug 02 23:46:49 StingRay_: yeah it matters for pressed and shit Aug 02 23:46:49 Who knows Aug 02 23:47:24 Either way, selector as background.. Set a click listener.. Works Aug 02 23:47:25 Correct me if Im wrong, I have come into this conversation early, but the order of the statelistdrawables in the file DOES actually matter. Aug 02 23:47:39 http://pastebin.com/0786MpJX Aug 02 23:47:48 I remember reading this somewhere with an example which proves it... Aug 02 23:47:50 SimonVT, thats what i have Aug 02 23:47:59 doesnt work on all devices Aug 02 23:48:44 Then you need to figure out what state it's actually in on those devices Aug 02 23:48:50 It works in the same way that a touch event would, I believe. If a state is met, it consumes the selection process and that drawable is drawn Aug 02 23:49:03 Anthaas: yeah it matters but only because the "normal" state needs to be last (which I think something is always in) so when the check is done if normal comes before other things it will stop at normal and not "fall through" to the other ones Aug 02 23:49:25 dcow: order doesn't matter then, well only as much as a conditional switch/if else Aug 02 23:49:51 dcow: Ahh, I do believe that point was made in what I read (was quite a while ago now) Aug 02 23:49:55 cause you can combine states to be very unique Aug 02 23:50:11 But yeah, it matters only in that default comes last in a switch statement Aug 02 23:55:51 How order matters depend entirely on your state list Aug 02 23:57:36 You wouldn't have state_pressed="true" before state_pressed="true" && state_checked="true" .. Tho in that case you'd probably add an state_checked="false" on the first one.. Either way, depends on your state list Aug 02 23:57:51 It uses flags Aug 02 23:58:05 ^ that sounds dumb Aug 02 23:58:08 it uses bits Aug 02 23:58:16 and or s them Aug 02 23:59:03 http://pastebin.com/in1fiCDP\ Aug 02 23:59:06 http://pastebin.com/in1fiCDP Aug 02 23:59:32 so states are stacked on top of eachoter Aug 02 23:59:42 Anybody using Gson? Aug 02 23:59:46 Yes Aug 03 00:00:30 Is there an easy way to deserialize stuff to generic datatypes so basic types and lists and maps? Aug 03 00:00:33 marrrk, i am Aug 03 00:00:43 ah havent tried that Aug 03 00:01:24 marrrk: you have to use reflection Aug 03 00:01:29 There is so much random stuff that I'd like to throw away from the answer and it's really tedious to write custom classes for all that just to ignore it later. Aug 03 00:01:34 and provide the class you want to deserialize to Aug 03 00:01:56 but you have to implement it yourself Aug 03 00:03:43 (as in you can wrap all that if you write POJO objects with fields that match what you have in JSON) Aug 03 00:03:54 POJO? Aug 03 00:04:03 plain old java objects Aug 03 00:04:08 old term sorry Aug 03 00:04:57 I'd like to avoid Java, but yeah, I guess I'll have to write classes that match the json I get or just deserialize it myself Aug 03 00:05:35 dcow: Well yeah and no.. The view might track certain states with bits.. The StateListDrawable is passed an array of states Aug 03 00:06:50 The StateListDrawable contains an array of state sets.. By default, if a state set does not define a value for a state, it doesn't care Aug 03 00:09:49 Maybe there is an online tool that can just convert my json example to the corresponding java classes Aug 03 00:10:29 SimonVT: yes. And it just draws the state that is requested Aug 03 00:10:51 http://jsongen.byingtondesign.com/ that looks good Aug 03 00:11:00 It draws the first match for the state set passed to it Aug 03 00:11:49 It has several state sets.. One for each item in your drawable definition.. It iterates from the top, which is why you do care about the order in my previous example Aug 03 00:12:04 You can't just say "oh, the order only matters for the default drawable" Aug 03 00:13:47 SimonVT: yes, sorry I forgot about checked Aug 03 00:15:23 marrrk: what do you mean you want to avoid java? Aug 03 00:15:52 I mean, I don't want to write things in Java if it can be avoided. Aug 03 00:16:45 I don't like it. Aug 03 00:21:48 huh well its definately a state issue, its perfectly visible if i set it as the default Aug 03 00:28:33 does android automatically scale missing assets if one is missing? Aug 03 00:32:00 dcow: Do I need to put a @SerializedName("foo") above every field? Aug 03 00:32:10 Or can I pass if it is the same? Aug 03 00:39:30 AH! Aug 03 00:39:36 i figured out the root of the problem Aug 03 00:39:57 the ViewGroup container is catching all the touch events in 2.x, and in 4.x the child views get them Aug 03 00:40:22 anyone have any bright ideas on how to prevent ViewGroups from consuming touch events? Aug 03 00:41:17 dont you just return false ? Aug 03 00:41:23 or am i thinking something else Aug 03 00:45:05 StingRay_, preferably w\o subclassing. Aug 03 00:45:10 if i subclass, then yes Aug 03 00:50:14 marrrk: to do what? Aug 03 00:50:46 For deserializing. I added it everywhere and it worked. It was cringeworthy but it's done now. Aug 03 00:53:03 No, you don't need @SerializedName everywhere Aug 03 00:53:20 If the json name is foo, it'll look for the variable foo Aug 03 00:53:55 It can even figure out that json some_object maps to the variable someObject Aug 03 00:54:26 huh, so i have a ViewGroup (vg), and two child views (cv1, cv2) which are siblings. On 2.3, touch events only propogate to VG and CV1, CV2 doesn't get any touch events... Aug 03 00:55:15 If the pointer doesn't touch CV2, it shouldn't get touch events Aug 03 00:56:16 CV1 & CV2 occupie the same screen space, CV2 is above CV1 in z-order (declared 2nd in XML) Aug 03 00:57:00 Oh, then it should Aug 03 00:57:28 ya, in 4.x both children get the events Aug 03 00:58:11 does anyone know how to preserve the actionbar in lower than 4.x? Aug 03 01:01:01 preserve ? Aug 03 01:01:17 you mean use ? have available ? etc Aug 03 01:01:29 if so it's now in the support lib Aug 03 01:05:28 StingRay_: the actionbar is available in the supprot library? didnt know that Aug 03 01:06:36 http://developer.android.com/training/basics/actionbar/index.html Aug 03 01:09:15 pfn: I did the usb/vmware experiment and got the same results. I set vmware server service and vmware usb arbitration service to manual start, rebooted, connected the android. No devices. Aug 03 01:42:49 I'm using Google Play Services and geofences, but my app isn't getting location updates unless I open Google Maps. wat? Aug 03 01:46:52 disclaimer: i have never used geofences Aug 03 01:47:05 it's possible that the location doesn't update too often, to save battery Aug 03 01:47:12 but maps forces it to update Aug 03 01:47:22 oh and play services can also detect if you're on abike or in a car or not moving or whatever Aug 03 01:47:31 so if you're at your desk, it probably isn't updating (i mean why would it...) Aug 03 01:48:45 I'm using an emulator Aug 03 01:48:47 and geo fix Aug 03 01:49:00 but that thing about it not updating frequently kinda makes sense Aug 03 01:49:26 except I'm not sure where I'd even set the update frequency Aug 03 02:13:06 is anyone using new Android Studio... and is there an automated way to auto create something like an onClick class for a button? Aug 03 02:13:22 I am an iPHONE developer... so forgive stupid questions please. Aug 03 02:14:46 second question, isn't there a feature that will determine what I need to import automatically... I dont seem to have that feature... perhaps its something I have to turn on? Aug 03 02:22:45 Any help with my geofence issue? It's not updating the location at all. Aug 03 02:30:26 IrishGringo: not really other than "implements" and then the use of .setOnClickListener(this) Aug 03 02:30:57 IrishGringo: and yes, alt + enter should popup import options Aug 03 02:31:28 if you exclude obvious paths, AS will then auto import the only class paths available Aug 03 02:31:39 if you have auto import on, (it's on by default) Aug 03 02:32:11 Forkk: does an normal location listener work ? Aug 03 02:32:33 well, Alt Enter worked to import a class... Aug 03 02:32:34 if not, then it's just location updates. rather than attempting to look into geofence listeners Aug 03 02:32:35 StingRay_, a Google Play Services one? Aug 03 02:32:47 Forkk: no Aug 03 02:32:52 a locationListener Aug 03 02:33:02 third question... I want to keep the app in landscape mode... whats the trick there? Aug 03 02:33:12 IrishGringo: why would you ? Aug 03 02:33:20 thats horrid forcing something like that on a user Aug 03 02:33:29 StingRay_, no, I was having problems with it earlier Aug 03 02:33:33 unless it's 100% needed Aug 03 02:33:40 I like to torture my users Aug 03 02:33:52 oh cool, well you can do it in the manifest Aug 03 02:34:02 or do it in code using window feature request Aug 03 02:34:05 hang on Aug 03 02:34:20 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Aug 03 02:34:39 just fire that in onCreate before setContentView Aug 03 02:35:06 but it's not a done thing :) Aug 03 02:35:10 just so you know Aug 03 02:35:27 I will find your app, then put sh*tty comments there :) Aug 03 02:35:42 anyone speaks french fluently? I need help understanding a review Aug 03 02:36:03 rottz: google translate not enough ? Aug 03 02:36:15 no, google play will already give me the translated version Aug 03 02:36:18 but some parts are obscure Aug 03 02:36:28 hey everyone. im having a weird problem readinga file from the sdcard. the file uri is passed by itnent, but i cant read it, and .canRead() always returns false Aug 03 02:36:40 and this is being passed from the gallery app Aug 03 02:37:00 rgrasell: does it exist ? Aug 03 02:37:16 and what do you call a "weird problem" ? Aug 03 02:37:28 im not sure how to check. but every other app can receive it fine when i select them from the sharing menu Aug 03 02:37:46 myFileObject.exists() Aug 03 02:37:53 ill try that real quick Aug 03 02:38:00 or do you get an exception creating a new File() ? Aug 03 02:38:07 if so what exception Aug 03 02:38:13 cause normally it will say why Aug 03 02:38:18 no exceptions. im creating it like this: Aug 03 02:38:30 Uri incoming = getIntent().getExtras().getParcelable(Intent.EXTRA_STREAM); Aug 03 02:38:35 toStream = new File(incoming.getPath()); Aug 03 02:39:11 exists() returns false... im confused. i must be creating the file object wrong Aug 03 02:39:42 an and a quick note Aug 03 02:39:52 in a room of programmers or remotley techy people Aug 03 02:40:05 changing nick as many times as you want, wont actually hide anything ;) Aug 03 02:40:17 what? i always use this one Aug 03 02:40:25 but you should just look at the incomming object and see whats in it Aug 03 02:40:54 ill poke around it, this is how the android documentation said to get uri's from intents though Aug 03 02:40:56 what do you actually put into the bundle Aug 03 02:41:09 im receiving the bundle from the gallery app Aug 03 02:41:21 huh Aug 03 02:41:26 hang on... Aug 03 02:41:28 * StingRay_ looks Aug 03 02:42:08 no Aug 03 02:42:19 the intent data for the uri Aug 03 02:42:24 should be just Aug 03 02:42:29 data.getData() Aug 03 02:42:33 sorry Aug 03 02:42:36 StingRay_, do I need to request location updates to get geofence updates? Aug 03 02:42:37 intent.getData() Aug 03 02:42:43 thats it? Aug 03 02:42:48 that returns the URI from gallery Aug 03 02:42:52 well thats how i do it Aug 03 02:42:54 and it works Aug 03 02:42:55 :) Aug 03 02:42:59 ok. ill try it :) Aug 03 02:43:03 why wouldnt my way work though?! Aug 03 02:43:30 well it's like your reading some data stream and attempting to convert to a uri and then getting the path Aug 03 02:43:34 no idea really Aug 03 02:43:41 I'm an artist more than a programmer Aug 03 02:43:50 but thats how I do it an it works Aug 03 02:44:17 oh god null pointer exception. thanks for the input, ill plug away at it Aug 03 02:44:27 NPE's are easy Aug 03 02:44:29 so just Uri myImageUri = intent.getData() Aug 03 02:45:12 ill work on that. im just gonan set some breakpoints Aug 03 02:45:16 there's a weirdness on one of the HTC phones where that does not work and you have to do smoething else Aug 03 02:45:28 they decided that they knew better and implemented their own thing Aug 03 02:45:38 im on a n4, but ill have to look that up Aug 03 02:45:45 hang on you will maybe get a NPE, the uri , not guarantee that it is a file path local on SD Aug 03 02:46:10 so you may get a picaso erm, g+ location whatever that is Aug 03 02:46:19 anything that the gallery can use, you may get Aug 03 02:46:27 not always a local file uri Aug 03 02:46:42 ok. right now though, im just passing it a local file. Aug 03 02:47:10 but dont forget it is the media store that is giving you it Aug 03 02:47:16 so even though a file exists Aug 03 02:47:21 that may not be what your getting Aug 03 02:47:38 you may get the MediaStore.DATA back Aug 03 02:47:43 iirc Aug 03 02:47:43 interesting Aug 03 02:47:46 hang on Aug 03 02:47:54 * StingRay_ goes off to look Aug 03 02:48:14 right yes Aug 03 02:48:15 im going to print out the uri it gives and show you guys Aug 03 02:48:22 you will get MediaStore.Images.Media.DATA Aug 03 02:48:40 that field in the MediaStore Aug 03 02:48:46 yea its giving me a uri of '/external/video/media/60229 Aug 03 02:48:49 you may have to look it up to get the file location Aug 03 02:48:56 ok. this helps a lot, thank you! Aug 03 02:49:10 np, I can pastebin a snippet if you want Aug 03 02:49:18 that would be wonderful Aug 03 02:49:18 that takes uri and returns path Aug 03 02:49:28 once this works, ill be streaming from my phoen directly to chromecast :) Aug 03 02:49:36 although looking at it, there is use of "managedQuery" Aug 03 02:49:40 can't you already do that ? Aug 03 02:49:42 probably not too bright there Aug 03 02:50:04 funkbox: im talking from internal files. so far all production apps stream from cloud Aug 03 02:50:50 koush is working on a stream from local data app too but i don't think it's publicly available yet Aug 03 02:51:15 yea i saw. mine will (hopefully) work the same way Aug 03 02:51:21 ill let you guys know in about 5 minutes Aug 03 02:51:47 rgrasell: http://pastebin.com/T0TSrSLD Aug 03 02:51:54 thanks Aug 03 02:52:09 not done picasa lookups Aug 03 02:52:15 so returns null :) Aug 03 02:52:30 not even looked into that yet, should do really Aug 03 02:56:06 guys!! it works :) Aug 03 02:56:11 streaming local content Aug 03 02:56:20 :) Aug 03 02:56:23 thanks for the help! Aug 03 02:56:48 its buggy though, tiem to get in there Aug 03 02:57:07 gl **** ENDING LOGGING AT Sat Aug 03 03:00:00 2013