**** BEGIN LOGGING AT Fri Sep 27 02:59:58 2013 Sep 27 03:00:42 can't wait to replace my phone, darn thing reboots spontaneously all the time now Sep 27 03:01:24 * pfn waits for his next flight Sep 27 03:02:04 damn Google music purged my offline cache, sucked so bad Sep 27 03:05:04 well its not NULL, so i hope its the ; thats the problem Sep 27 03:05:26 pfn: You are not supposed to have anything offline, according to google Sep 27 03:07:15 i still get that it can't find the field =/ Sep 27 03:10:10 i still get that it can't find the field =/ Sep 27 03:10:15 whoops Sep 27 03:41:27 hi guys, need some enlightenment on MediaCodec API. I tried a sample code to decode a h264 video file but it only works on 360p. Is it possible to decode higher resolution video? I'm using genymotion nexus 7 emulator. Sep 27 03:55:26 rad got all my handlers on my listview to be 1 button handler and 1 seekbar handler Sep 27 04:22:35 hopefully someone answered heh Sep 27 04:24:32 whats the best methodolgoy for a simple key/value storage Sep 27 04:24:52 i need to just set a key with a value.. and return that value from that key.. Sep 27 04:24:53 isnt it hash Sep 27 04:24:59 and if hte key is the same.. overwrite Sep 27 04:25:08 hashmap? Sep 27 04:25:46 static Map durations = Sep 27 04:25:51 (Map) new AbstractMap.SimpleEntry(0,0); Sep 27 04:26:43 yea nope Sep 27 04:27:35 hi, I'm trying to draw the player location on a map, it positions correctly in the x axis, but not in the y axis http://pastebin.ws/6dv2jg Sep 27 04:27:38 any ideas? Sep 27 04:29:17 well nothing olvious to me but then I'm not awesome coder Sep 27 04:30:29 hm Sep 27 04:31:05 by olvious I mean soemthing like using height for calculation with x and stuff like that Sep 27 04:31:49 whats happening with y axis anyway Sep 27 04:32:03 it draws too high up Sep 27 04:32:52 level 3 Sep 27 04:33:00 dunno sorry Sep 27 04:39:03 i'll ask on so Sep 27 04:41:28 good luck :) Sep 27 04:49:38 I dont get why this dont work drawme.setPixels(pixA, 0, drawme.getWidth(), 0, 0, Sep 27 04:49:43 drawme.getWidth(), drawme.getHeight()); Sep 27 04:50:14 pixA is int array of height * width. I have randomly changing values there (alpha stays at 0xff) Sep 27 05:26:25 Can someone help me with native debugging? I'm at loss trying to debug the system shared libraries. Sep 27 05:32:46 <^cheeky> wow .. this is tuff!! for me @least how can i set a progress dialog into an image view Sep 27 05:33:27 wat Sep 27 05:33:48 wat Sep 27 05:34:14 <^cheeky> while my images, are received i want to show a spining dialog notifying the user the image is loading Sep 27 05:35:50 <^cheeky> before i load it into the image view. while the image is being fetched i want ProgressDialog to spin inside my imageViewer Sep 27 05:41:43 http://stackoverflow.com/questions/19043255/android-custom-imageview-ondraw-method-not-drawing-properly-on-y-axis anyone got any ideas? Sep 27 05:56:36 got it Sep 27 05:59:07 ok so I'm hiding the soft menu keys in fullscreen for playing video, to make the media controller show up I have to tap the screen twice, the first time only the soft menu bar shows up and then I have to tap again to have mediacontroller show, which onTouch do I override so that I can force show the mediacontroller on the first touch along with the menu bar Sep 27 05:59:08 got what? Sep 27 06:00:55 forgot the ? at the end, anyway, I tried the VideoView.onTouch, the relative Layout's on touch that holds the video container, neither had any effect, I still have to tap it twice Sep 27 06:09:05 Anyone know a particularly good way to record video of an app that doesn't involve pointing a camera at a screen? Sep 27 06:25:43 I'm in a situation where I need to render an HTML on my screen, with a template mechanism. I have an object with a N number of attributes, and need to load the HTML with values from this Object. Sep 27 06:25:49 how can I implement this? Sep 27 06:26:28 Is there any template engine compatible with Android? Sep 27 06:26:44 or should I actually look for a template engine for this purpose? Sep 27 06:28:11 an HTML Sep 27 06:29:57 * napster just meant a web page Sep 27 06:30:03 * Nilium shakes his fist Sep 27 06:32:27 how do I get the dimensions of an image in res/ ? Sep 27 06:33:09 Well, if you load it as a bitmap drawable, you could get the bitmap and get the dimensions from that. Sep 27 06:33:50 how do I load it as a bitmap drawable? Sep 27 06:34:19 currently I'm using getResources().getDrawable().getIntrinsicHeight() but this is not returning the correct cal Sep 27 06:34:22 value Sep 27 06:34:49 Assuming it's a bitmap and you don't need it as a drawable, you could also make it a raw resource and load it yourself. Sep 27 06:35:06 it's a .png file Sep 27 06:35:12 Do you need it to be a drawable? Sep 27 06:35:16 no Sep 27 06:35:27 it's already showing using android:src Sep 27 06:35:33 I just need to draw on top of it Sep 27 06:35:39 So you do need it to be a drawable. Sep 27 06:35:43 ok Sep 27 06:36:09 In that case, assuming you've loaded it normally, get the bitmap drawable and get the bitmap from it. Sep 27 06:38:05 how do I do that? Sep 27 06:38:37 I leave that as a task for you Sep 27 06:38:54 * Nilium flies away on an umbrella, shouting "Use the documentation, son!" Sep 27 06:39:23 do you think it will fix my problem here: http://stackoverflow.com/questions/19043255/android-custom-imageview-ondraw-method-not-drawing-properly-on-y-axis Sep 27 07:12:13 hey guys quick question about version control with .idea directory… is it wise to gitignore the entire .idea directory and the .iml files? Sep 27 07:12:15 thanks Sep 27 07:13:16 or should i just gitignore the workspace.xml and .iml files? My team is migrating to all using Android Studio Sep 27 07:14:23 no you should not gitignore the .idea folder Sep 27 07:14:32 the wokspace.xml only Sep 27 07:14:37 the .iml should be checked in Sep 27 07:14:56 take it from me :) i migrated my team about a month ago Sep 27 07:15:31 folder structure for your source should be src/main/java src/main/assets src/main/res /src/main/Androidmanifest.xml Sep 27 07:17:31 hey guys I'm trying to setup a test project with robotium, I'm using the sample notepad example provided, but when I try to launch the test project as "Android JUnit Test" I get an error Could not find tests.apk! Sep 27 07:18:00 however when I build no apk is created in the test project Sep 27 07:20:15 What is the best way to implement a AutoComplete textview adapter that fetches data from the web? Sep 27 07:26:48 thanks lemonxah.. let me take a shot at it Sep 27 07:40:35 hope it works for you dck28 Sep 27 07:40:43 in one project, run application works fine, export as signed application returns "export to dalvik format failed with error 1" Sep 27 07:41:03 it used to be fine, doesnt work after android/eclipse adb upgrade Sep 27 07:41:16 what can i do? Sep 27 07:41:36 did you upgrade the eclipse plugin and the build tools of android? Sep 27 07:41:51 yes Sep 27 07:42:30 if i click finish again i get console crash Sep 27 07:42:31 # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b56 mixed mode linux-amd64 compressed oops) Sep 27 07:42:34 # Problematic frame: Sep 27 07:42:37 # C [libzip.so+0x4982] newEntry+0x62 Sep 27 07:43:19 sry i have not had that issue with updated tools before Sep 27 07:43:26 :p Sep 27 07:43:32 switched from eclipse a while back though Sep 27 07:43:34 on AS now Sep 27 07:43:39 never going back :) Sep 27 07:45:12 Guys I need some guidence regarding automation testing in Android Sep 27 07:45:30 I would like robust RPC test automation for my app Sep 27 07:45:44 I'm not sure what is a good way to go about it Sep 27 07:45:52 brickhead, are you using AS with gradle? Sep 27 07:45:58 cause testing is easy on that Sep 27 07:46:16 here /src/instrumentTest/java Sep 27 07:46:40 created classes in there that inherit from junit.framework.TestCase Sep 27 07:47:10 lemonxah: sorry I'm not familiar with gradle. I am currently trying robotium Sep 27 07:47:37 so you are not running your app in AndroidStudio? Sep 27 07:47:38 but I'm not sure how to do involved stuff like firing an IntentService, check for expected results Sep 27 07:47:45 lemonxah: no Sep 27 07:47:53 lemonxah: looks like i had to "Clean" Sep 27 07:48:26 I'm using eclipse as an IDE Sep 27 07:48:38 ah miha that makes sence didn't occur to me cause that is the first thing i do normally Sep 27 07:48:51 so i assume others do the same after a build tool update Sep 27 07:48:55 sry for not suggesting it Sep 27 07:49:15 Hi all, somebody who used the default sip api before? Sep 27 07:49:23 brickhead, android studio with gradle has awesome test integration built into it Sep 27 07:49:39 also you get the added benifits of intelliJ Sep 27 07:49:42 so its win iw Sep 27 07:49:44 lemonxah: my bad :$ Sep 27 07:49:45 win win even Sep 27 07:49:59 hah its ok miha that is why we are all here .. to learn Sep 27 07:50:05 if you stop learning as a developer Sep 27 07:50:13 then you might as well stop developing Sep 27 07:50:31 lemonxah: i get scared of such errors :p Sep 27 07:50:45 i have had my own dumb moments .. and some not too long ago with pfn 's sbt-android plugin heh Sep 27 07:51:20 Can you execute some code which uses a http connection when there is no network available anymore (wifi / mobile network)? Sep 27 07:51:45 lemonxah: what would be my options if I would like to stick with eclipse. I heard robotium has some support with Jenkins, so would it the right tool for rpc testing ? Sep 27 07:52:43 Any suggestions for JSON handling ? Sep 27 07:53:38 brickhead, unfortunately i have not used robotium before so i am in a position to advise you Sep 27 07:54:24 Zylinx, GSON? or Jackson Sep 27 07:54:24 Zylinx: we use http://code.google.com/p/json-simple/ in one of projects Sep 27 07:54:28 have you looked at them? Sep 27 08:00:26 lemonxah, miha thanks :) Sep 27 08:02:28 no worries Sep 27 08:24:22 I'm following this tutorial on first app: http://developer.android.com/training/basics/actionbar/adding-buttons.html and it tells me to add icons for ic_action_search; i downloaded the Action Bar Icon Pack… is there a way to have eclipse automatically add icons to my project? what id have to do now is go to the folder with the icons and search out the icon 4 times (for different sizes) and add them manually to my /res/drawable-* Sep 27 08:25:31 hi Sep 27 08:25:43 I have a probably stupid question Sep 27 08:25:48 I have a class and I need to pass a parameter to it when I instantiate it... something like Example exp = new exampleClass(String); Sep 27 08:25:50 sweet installing Google Play Services and Google AdMob Ads SDK Sep 27 08:25:54 is it possible? Sep 27 08:26:21 so far so good and my hope is i will find these apis usable or even easily usable Sep 27 08:26:22 vixper1, ofc Sep 27 08:26:33 but you should go to #java to ask those Sep 27 08:26:45 since it's not android-specific Sep 27 08:27:22 JimmyCarter, admob is easy Sep 27 08:27:25 dunno about google play services Sep 27 08:27:56 im gonna try their multiplayer game networking Sep 27 08:28:03 thz raziel Sep 27 08:28:05 bump. got disconnected :( Sep 27 08:28:48 did someone answer to my question while i was gone i wonder? Sep 27 08:41:45 hello Sep 27 08:42:17 how to know which port of 3g dongle used to AT command? Sep 27 08:44:07 hello... Sep 27 08:44:52 hi all Sep 27 09:03:58 hello every one Sep 27 09:05:18 i need some help in my scripting i need to know if we could turn on wifi using adb shell (not through tap commands) Sep 27 09:07:05 my requirement is i need to create a p2p connection using adb in specific channel in ui Sep 27 09:08:50 i use to do it using wpa_cli but no w Sep 27 09:09:50 we r planning in ui need some help with this thankyou Sep 27 09:20:18 can any one help me with android wifi commands Sep 27 09:20:41 you're planning to use adb in an app? Sep 27 09:22:03 thanks lemonxah, all migrated successfully… :) Sep 27 09:22:13 no worries Sep 27 09:22:35 sat a day to migrate ours then broke it then had to figure out what i missed Sep 27 09:22:57 and my big mistake was .gitignore the .idea and .ml files Sep 27 09:23:07 *.iml Sep 27 09:23:16 yeahh.. that was really helpful Sep 27 09:23:18 took me another day to fix it Sep 27 09:23:28 you da man Sep 27 09:23:29 took a while to understand Sep 27 09:23:42 just glad that my trouble helped someone else Sep 27 09:24:15 i was just about to gitignore those paths like you man.. haha.. glad i asked before jumping the gun too soon Sep 27 09:26:13 yeah Sep 27 09:27:00 now party away for the weekend.. woohoo Sep 27 09:30:53 after three years I still keep forgetting that linearlayout defaults to horizontal Sep 27 09:31:07 I've made a mistake: I've created a new project in eclipse. Where did he save the files? Sep 27 09:31:14 I'm running Android JUnit test, but it runs out of memory Sep 27 09:31:32 how do I increase size for JUNIT vm Sep 27 09:31:36 Unable to execute dex: GC overhead limit exceeded\ Sep 27 09:35:13 increase you JVM mem limit? Sep 27 09:36:48 hi, SDK manager suggests me to install 18.0.1 build-tools even if I have 18.1 installed Sep 27 09:36:53 do I need the former? Sep 27 09:38:55 Maziz: I've Sep 27 09:38:59 but its not helping Sep 27 09:39:09 Do I need to increase it for the Junit run configuration Sep 27 09:39:11 ? Sep 27 09:40:04 kgtsr: on channel, please Sep 27 09:40:53 http://pastebin.com/U8fDDbBr here is my eclipse.ini Sep 27 09:42:07 i need/tying to develop a command tool to perform all wpacli operations like selecting channel,p20 go etc on gui Sep 27 09:43:14 kgtsr: why? Sep 27 09:43:35 for example if i need to make p2p on ui i need to select channel and who is going to be groupowner etc Sep 27 09:44:51 while doing performance we are seeing difference in performance of both wpacli and ui Sep 27 09:46:47 if we have to do qa on gui(as our clients request) we are not able to select channels on gui and lot of other features also not available like making indengo,autogo etc Sep 27 09:49:10 if it is possible on cli i think it should be possible on ui too i need some ideas about this can u help me Sep 27 10:11:30 has anyone used the renderscript support library? i'm having trouble even finding it :/ Sep 27 10:51:53 Does anyone know why the default crash dialog "Foobar.com crashed - OK" takes so long to appear? Compared to ACRA it takes several seconds. Sep 27 10:52:28 I checked the ACRA code, and it does some killing magic in it's onUncaughtException.... code Sep 27 10:52:38 my default crashed message is instant Sep 27 10:57:33 lemonxah: hm, could be that it's a lot of thread pools in my app it's waiting for to finish Sep 27 10:58:17 anyone else experience slow crash dialogs? ie - it takes several seconds from crash to actual dialog showing? Sep 27 10:59:04 snowpong i would say that really depends on whatever your are running on, device or emulator Sep 27 10:59:06 emulator is hitty Sep 27 10:59:08 shitty Sep 27 11:31:36 troloyolo: this is on an S3 - so fairly high end Sep 27 11:34:13 emulator is Hitty! Sep 27 11:34:14 :D Sep 27 11:42:35 Why somebody would implement Loader Callbacks to the ListView adapter ? Sep 27 11:44:58 well if you ahve specific needs for like menu items bluesm_ Sep 27 11:45:18 lets say you have a recents list like recent chat in the left pane Sep 27 11:45:41 but you also want menu items ontop of the recents and you want the menu items to scroll with the recents Sep 27 11:46:17 and the top menu item is a profile item and you want the profile item to update if something changes to the profile during the lifetime of the app or from the backend Sep 27 11:46:46 then you would implement either a loader with loader callbacks or have a content observer in your cursor adapter Sep 27 11:47:00 that is the cleanest way of handling it Sep 27 11:47:14 but it all depends on the situation Sep 27 11:47:46 makes sence bluesm_ ? Sep 27 11:49:58 anyone who can help me figure out why my scrollview flickers when i am dragging and lift my finger? http://pastebin.com/3YWU64eS Sep 27 11:49:59 those of y'all using retrofit, is there a way to instrument reqeusts? i mainly need progress for file uploads Sep 27 11:50:11 troloyolo: define "flicker" Sep 27 11:50:32 it sets the image back to previously saved coordinates Sep 27 11:51:15 not sure why you handling touch events yourself, but take a look at the source of HorizontalScrollView about how to do it Sep 27 11:51:17 it works when i lift the finger when not dragging - if i wait till the scrolling is completed Sep 27 11:52:21 i handle it myself, because it is a 2 dimensional scrollview im in the process of making Sep 27 11:52:43 HSV is your friend, that is too much code to understand very quickly Sep 27 11:52:56 great, thanks alot :) Sep 27 11:53:18 troloyolo: what are you trying to achive? why do you have your own scrolling ? Sep 27 11:54:18 i am making a custom scrollview. Everything works when i have not scaled up or down. However if i have scaled, the dragging works fine when not lifting a finger :) Sep 27 11:54:50 ah, yeah HSV is a good place Sep 27 11:54:51 that's what i did Sep 27 11:55:32 im having trouble determining if the error happens in action_move or action_up - because dragging works when i let the animation finish Sep 27 11:55:46 but if i lift my finger before the scrolling is completed, it 'rolls back' Sep 27 11:56:43 what does it mean that device needs to be running developer version Sep 27 11:57:12 Exception: Cannot start View server. Sep 27 11:57:13 This only works on emulator and devices running developer versions. Sep 27 11:57:21 troloyolo: i would recommend looking at ACTION_UP more intensely and overriding onScrolLChangend and logging around there Sep 27 11:57:28 mms_: probably rooted with "userdebug" Sep 27 11:57:43 whatever you're extending may have internal state you're not updating Sep 27 11:57:50 p_l: I have cyanogenmod rooted device already Sep 27 11:58:35 funkbox: great advice thanks :) i have overridden onScrollChanged tho ;) Sep 27 12:00:15 funkbox: i noticed that if (getScrollX() < 0) then i just set deltaX to 0 - but google does a ScrollBy(deltaX, 0) Sep 27 12:01:32 IIRC scrollby is pretty smart Sep 27 12:02:20 yea just tried using scollBy there, however i didnt change anything unfortunatly Sep 27 12:03:08 it just seems strange that my action_up is almost identical to googles Sep 27 12:03:16 troloyolo: which view are you extending? Sep 27 12:03:37 scroll views have lots of other things like flings etc which might be interfering Sep 27 12:03:59 yea i have a custom fling method aswell - however my class is just extending framelayout Sep 27 12:04:05 ah Sep 27 12:04:12 godspeed then Sep 27 12:04:27 hehe Sep 27 12:04:58 so it can be fling, action_move or action_up that messes up ? Sep 27 12:05:03 why not throw a framelayout into a scroll view ? Sep 27 12:05:26 dno :'( Sep 27 12:05:40 try that Sep 27 12:06:05 not sure what you mean by throwing a framelayout Sep 27 12:06:10 i always try the dumbest most easiest thing first and i'm surprised how often it works wekk Sep 27 12:06:36 like Sep 27 12:06:58 oh see, it is not a regular android project im building Sep 27 12:07:04 its a titanium module Sep 27 12:07:26 oh don't know anything about titanium other than to stay far far away Sep 27 12:07:45 it's nice Sep 27 12:07:57 anything non-native is bad imho Sep 27 12:08:04 except maybe xamarin Sep 27 12:08:13 well i am doing the module pure native ;) Sep 27 12:10:26 eh, whatever twerks for you Sep 27 12:21:24 lemonxah: could you point me to any android guide about it ? Sep 27 12:22:02 bluesm_, i dont know about any guides that helps you with that Sep 27 12:22:16 htis is just from experience Sep 27 12:39:07 lemonxah: mhm. Could you clarify where is that menu ? Sep 27 12:39:12 From your example Sep 27 12:42:49 does any1 has an idea why I have to do this "Add dependency on module xyz" every time I start Android Studio? It is really annoying. Sep 27 13:33:38 Hello! i know width and height of bitmap, how to calculate size of bitmap using this params? Sep 27 13:34:03 please explain further Sep 27 13:34:27 size? number of pixels? Sep 27 13:34:36 or bytes? Sep 27 13:34:50 milimeters/inches? Sep 27 13:34:55 Is there a way to set a toast to appear just above a view? Sep 27 13:35:46 xgear: width*height Sep 27 13:36:02 Ankwatcher: pretty sure it is somewhat like - Toast t = Toast.makeText(this, "Hello", Toast.LENGTH_SHORT); t.setGravity(Gravity.FILL_HORIZONTAL, 0, 0); Sep 27 13:36:24 hackkitten: bytes Sep 27 13:36:47 depends on compression ratio Sep 27 13:36:57 100% Sep 27 13:37:02 vfximal Sep 27 13:37:05 maximal Sep 27 13:37:39 if it's a bitmap you just do width*height*bytes-per-pixel Sep 27 13:37:53 if it uses compression you have to ask the filesystem Sep 27 13:38:11 i dont use compression Sep 27 13:38:20 everything is default Sep 27 13:38:28 oO Sep 27 13:38:37 4 bytes per pixel? Sep 27 13:38:44 it depends on the bitmap Sep 27 13:38:47 3 for RGB Sep 27 13:38:51 4 for RGBA Sep 27 13:39:01 ok, 4 Sep 27 13:39:07 thanks guys Sep 27 13:39:10 np Sep 27 13:40:34 guys do you know if google has api for its new type of output search? I mean, for example, if I search ' Premier League Ranking ' it shows me that or for example if I search ' Time in New York City' Sep 27 13:40:45 hello. can I somehow prevent android from loading any sound services? I don't mind brute-force solutions. Sep 27 13:41:03 https://developers.google.com/events/io/sessions/351310959 Sep 27 13:41:15 quite the contrary, in fact, the more force I apply now the better. I'm a lil bit on edge Sep 27 13:41:25 https://developers.google.com/freebase/ Sep 27 13:43:59 mikedg_, thank you so much Sep 27 13:45:19 does any1 has an idea why I have to do this "Add dependency on module xyz" every time I start Android Studio? It is really annoying. Sep 27 14:13:43 i am overriding an onInterceptTouchEvent - this is done in order to determine if i should process a touch event or not Sep 27 14:13:49 however, this event is never being called Sep 27 14:13:55 any ideas on why that might be ? Sep 27 14:17:03 Either you're not touching the view, or something else is intercepting it before you Sep 27 14:18:15 relevant xkcd http://xkcd.com/688/ Sep 27 14:25:26 mikedg_, I think soccer dynamic data are not got from freebase Sep 27 14:26:03 gdrc: oh :/ Sep 27 14:26:04 sorry Sep 27 14:26:10 that makes sense Sep 27 14:26:24 not sure what else would be it Sep 27 14:29:46 https://developers.google.com/custom-search/v1/overview 404 wtf Sep 27 14:33:28 how did you reach that link? Sep 27 14:33:43 https://developers.google.com/web-search/docs/ Sep 27 14:34:05 and if you google 'google search api' first result: 404 Sep 27 14:34:14 maybe they are working... Sep 27 14:35:09 maybe the "deprecated" tag gives you a hint Sep 27 14:35:33 Nov 1, 2010.. Probably hasn't been updated since Sep 27 14:35:50 nope, Therefore, we encourage you to move to the new Custom Search API. Sep 27 14:35:58 I click on this Sep 27 14:36:02 yet still works, this is my first link https://developers.google.com/web-search/?hl=en Sep 27 14:37:07 Does gradle store libraries from maven central in .m2/repository like maven does? Sep 27 14:37:27 No, somewhere in .gradle Sep 27 14:37:43 It pulls from .m2/repository if you tell it to use mavenLocal() iirc Sep 27 14:37:43 ahh caches probably Sep 27 14:38:22 do you know where compile 'com.android.support:appcompat-v7:18.0.0' is comming from because it's not in central. Acording to android studio it's library home Sep 27 14:38:36 From the sdk Sep 27 14:38:43 It's just build in now? Sep 27 14:38:54 They ship some repos in the sdk Sep 27 14:39:43 wierd, seems like it would be easier to just put them in central. Oh well as long as I don't have to keep adding them to my own server like I was doing for maven I'm ok with it. Sep 27 14:40:17 Yeah, that would be easier Sep 27 14:40:52 But someone at Google thought it would be a good idea to not do what everyone expected them to Sep 27 14:41:10 haha Sep 27 14:42:50 They were asked countless times whether android.jar and the support lib would be in maven central, and the answer was always yes. Then they released it, and it wasn't pushed to central anyway.. So it's probably legal reasons (licenses and crap) Sep 27 14:45:12 :( legal stuff always getting in the way Sep 27 14:45:17 pieces029, you never had to publish them to your own local repo, it's a local repo in the sdk already Sep 27 14:45:32 you just need to add android_home/extras/{google,android} to maven resolvers Sep 27 14:45:56 pfn: I did for using maven Sep 27 14:46:20 b4 gradle was even released Sep 27 14:46:27 well released for android Sep 27 14:49:24 again, you only needed to add the sdk repos to resolvers Sep 27 14:49:27 and it would have been fine Sep 27 14:50:00 you're talking about on my local machine? Sep 27 14:50:59 yes Sep 27 14:51:51 Yeah, I was setting it up on a server so all the other devs I work with didn't also have to do that. We could just build after pulling down the project, no setup required. Sep 27 14:52:13 * pfn shrugs Sep 27 14:52:17 maven for building android projects sucks Sep 27 14:52:28 only redeeming quality is that it drops into jenkins Sep 27 14:54:43 I think it is way better then putting libraries into vcs, and having to setup those libraries on every computer. Sep 27 14:54:48 And the Jenkins thing Sep 27 15:15:14 So I need to make a thread to handle network communication. I'm unsure what kind of service, if any, to use for that? What's the android way of dealing with something that has to be able to gather information in the background? Sep 27 15:16:32 Hi all! Sep 27 15:17:40 <\monster\> Is there a way to contact Google Play store regarding trademark issue without getting a canned response? My app was suspended, I think it was because of a word I used in the name. I don't want to lose years of stats and user history ..I don't think the complaining party will respond to me' Sep 27 15:18:17 sue them Sep 27 15:18:38 <\monster\> :) Sep 27 15:19:25 <\monster\> it's crazy they can destroy you like this without any chance of correcting the issue Sep 27 15:19:26 Moopz: if it only has to exist while the UI is active, you can use asynctask Sep 27 15:20:05 Moopz: if you want it to keep working while the UI isn't in the foreground, or if your UI has multiple activities, you'll probably want a thread in a service. You probably don't need a separate process for your service. Sep 27 15:20:45 dragorn: It has multiple activities. So which service should I use? A bounded service? Sep 27 15:21:22 fairly sure you always have to bind a service to do any communication with it Sep 27 15:21:31 Any way to get a window token from a WallpaperService/WallpaperEngine? Sep 27 15:21:43 so yes - you tell yours ervice what to do, it tells you when something has been done either via message handlers or callbacks Sep 27 15:21:43 \monster\: Google support is practically non-existent so you probably wont get it resolved quickly Sep 27 15:22:03 <\monster\> man Sep 27 15:22:33 dragorn: The service has to continue doing it, so should I make a thread within the service? Sep 27 15:23:02 Moopz: yes Sep 27 15:23:37 dragorn: Just a normal Java thread or does Android have anything? Sep 27 15:24:03 Moopz: you can use a thread, you could use a runnable, you could probably use asynctask tho I forget if that's for UI threads only Sep 27 15:24:25 dragorn: Alright, thanks a lot :) Sep 27 15:26:41 what's the best way to scroll a live wallpaper when user scrolls through their screens Sep 27 15:31:16 live wallpaper services have a callback that tells you what screen you're on Sep 27 15:40:32 pfn, but this would require completely redrawing the wallpaper to it's new position? Sep 27 15:40:58 i'm trying to avoid that Sep 27 15:41:09 scrolling implies redrawing Sep 27 15:41:51 pfn, that's true. Sep 27 15:43:04 LIVE wallpaper implies redrawing Sep 27 15:45:33 that, too Sep 27 15:46:43 I don't understand why I need more ram for dex on windows... Sep 27 15:46:46 but not as much on mac Sep 27 15:49:33 SimonVT, i'm using a wallpaperservice, but im only displaying a static image. the only reason I have a live wallpaper is to receive touch events. I presume this is the only way to accomplish this? Sep 27 15:54:55 I'm using a custom account type to authenticate users in my app. I query the available accounts from AccountManager when I start the main activity. However, if there's no available account, I'd like to present the user with the log in activity. What's the best way to do this? Should I have a dummy activity that launches the correct activity on startup? Sep 27 16:50:28 hey, can anyone recommend a book on android and JNI Sep 27 17:05:05 randomuse99: i can sum it up in one sentence... "don't use jni" :-) Sep 27 17:05:28 anyhow, d.android.com has all the info you need on it, including a recommendation to not use it Sep 27 17:20:51 hi im having a little issue parsing xml with the parsxser included in the android api. I'm a bit noob abou t xml validation Sep 27 17:21:25 Does an XML parser complains if the xml is reading doesnt validate with the schema that is defined in it ? Sep 27 17:22:53 because am getting an error but doesnt specify that cause, it says doesnt expect a TEXT event but there is no text event in that XML. it only parses that same xml when I remove those schema definitions Sep 27 17:31:44 Excuse me.. is there a way to start an activity intent (ACTION_VIEW) without user interaction? (rooted, or non rooted doesnt matter) Sep 27 17:43:55 Hello Sep 27 17:44:52 Quiet in here Sep 27 17:45:47 im trying to launch an intent to display a users page on G+. does the Android G+ app not support this? It keeps taking me to my home feed Sep 27 17:46:37 well, I figured out the image picker thing - you need to have whatever activity calls the image picker be singleTop Sep 27 17:46:55 startActivityForResult returns early with a null result otherwise Sep 27 17:47:13 no, dont do that Sep 27 17:53:25 Join #umbraco Sep 27 18:01:39 SDK manager suggests me to install 18.0.1 build-tools even if I have 18.1 installed, do I need the former? Can anyone check his manager and see if he's got both installed? Sep 27 18:02:15 anddam: i've all three installed Sep 27 18:03:00 since they are not very large it's not such a waste of space, and if you get a project that wants to compile against old build tools you have to check it out then Sep 27 18:03:04 so why not install it all at once Sep 27 18:21:00 timroes: because it seemed overlapping Sep 27 18:21:10 it's a minor version number Sep 27 18:21:22 and I was curious about this behavior Sep 27 18:21:36 how does a project specify a specific build tools version? Sep 27 18:25:18 hello Sep 27 18:25:24 I have no idea if this is the place to ask this Sep 27 18:25:36 but it seems to be the channel with the most users relating to android Sep 27 18:25:53 Is it related to developing an android application? Sep 27 18:26:02 No Sep 27 18:26:30 It relates to me trying to find a game I had on my old andiod but can;t find now I have new phone Sep 27 18:26:41 it's driving me creazy Sep 27 18:26:56 it's a bubble shoot game Sep 27 18:27:25 but the Bubble Shoot Deluxe you can't switch balls and there is no star scoring Sep 27 18:27:55 then there's this "Bubble Main" where you do get stars but it's all fluffy with kittens and clouds Sep 27 18:28:25 Oh and of course you can switch the balls in that game] Sep 27 18:29:04 is it difficult to use ssl over an arbitrary tcp connection (protobuf in this case) versus https? Sep 27 18:29:13 So i need mix of Shoot Bubble Deluxe and Bubble Mania, the look of the former and the fdunctionaility of the latter Sep 27 18:31:02 Yea I knew it was a long shot Sep 27 18:32:00 may have wanted to check the channel topic before you put all that effort into it Sep 27 18:33:01 Actually I did Sep 27 18:33:18 i8t's a large channel devoted to the android platform Sep 27 18:33:30 these people invariably play games]= Sep 27 18:33:53 we like to play games with … people off toipic Sep 27 18:34:00 and then eat them Sep 27 18:34:03 but games first Sep 27 18:34:22 one person may have known what I was looking for Sep 27 18:35:21 In fact I am convinced there is at least one person here in this channel that has the answer Sep 27 18:36:17 I know a good way to make money, All i need to do is just FUCK OFF OUT OF HERE, seriusly though thanks anyway Sep 27 18:36:21 bb Sep 27 18:36:26 anddam: you can specify it with the buildToolsVersion tag in your android config in gradle Sep 27 18:36:43 anyone know of any free jenkins or any other decent ci servers ? Sep 27 18:37:06 so people don't get pulled in new build tools versions, and suddently nothing works anymore, they versioned it that way, so you can upgrade it any time you want, test it, and then commit it Sep 27 18:47:01 Hi guys. I need you help for something very important. I'm making a little RPG game with SDL 2.0 which works on both PC and Android. The game works perfectly on my PC, and I hadn't tested for android since 1 month, but when I tested right now, the app crashed, and I've no idea of how to debug that problem. If anyone can help me... ( Sorry if I made english mistakes. ) Sep 27 18:48:19 Quent42340: have you looked at logcat for the stack trace and/or any error messages? Sep 27 18:48:41 logcat didn't gave me some error messages Sep 27 18:48:50 I'll paste the output Sep 27 18:49:44 Quent42340: pastebin! Sep 27 18:50:23 Sure Sep 27 18:50:38 Yes. please don't paste logs in the channel :) Sep 27 18:50:51 http://pastebin.com/PRk7i2em Sep 27 18:51:11 I'm aware of that Sep 27 18:51:27 Quent42340: the amount of ppl that aren't is scary : ) Sep 27 18:52:02 ppl? Sep 27 18:52:22 people Sep 27 18:52:29 I am getting error when I build android app http://pastebin.com/7cAjsRj2 Sep 27 18:52:31 dunno. It sounds like the process isn't crashing -- it's purposefully exiting. Sep 27 18:52:49 Is there some way to enable more verbose logging in SDL? Sep 27 18:52:54 FernandoMiguel, ok Sep 27 18:52:58 I get error from command line but in eclipse it works fine Sep 27 18:53:24 JesusFreke, that's what I thought too, that's why it's weird Sep 27 18:53:51 JesusFreke, I don't really know about that, but I don't think it's possible Sep 27 18:56:54 I'm not that kind of person who ask people on IRC directly after having a weird problem, I've searched for days but I didn't find nothing, so this problem may be a bit complicated to solve... Sep 27 19:03:46 so, if I want to mantain fragment object in my activity, I can't use onRetainNonConfigurationInstance becouse is deprecated and the doc tell to use setRetainInstance (that I'm using in my fragment) that is a Fragment method. what's the point in that? what is the best way to keep fragment object when configuration changes ( rotate device) ? Sep 27 19:04:50 The point is to retain the instance Sep 27 19:05:23 in fragment, yes, got it Sep 27 19:05:28 but in activity? Sep 27 19:06:18 I don't understand the question.. The fragment instance is retained.. Isn't that what you want? Sep 27 19:07:42 SimonVT: I want to keep my fragment istance object in my activity over device rotation Sep 27 19:09:12 So get a reference to the fragment from the fragment manager Sep 27 19:21:35 Hey guys, follwoing the guids on the developer.android.com trying to get my apps launcher icon the MAX size it can be, but there are other icons in my app drawer that are like 5 px (top bottom left right) bigger than mine Sep 27 19:21:44 any thoughts on what i might need to do? Sep 27 19:25:36 Anton2k: sounds like you are not following the guides Sep 27 19:26:06 Anton2k: what resolutions are you supplying your icon in? Sep 27 19:27:09 xxhdpi and everything lower Sep 27 19:27:47 for some reason its croping the icons, putting a 5px padding all the way around it, i am going to try manually deleting it resizing it and adding it just to see aomthing Sep 27 19:27:50 Anton2k: what pixel resolutions are you using for each dpi bucket Sep 27 19:30:55 has anyone ever used a google web font in an android app? Sep 27 19:31:29 IIRC, there's a check box to have icons created with or without borders. Sep 27 19:31:46 tnzr: as long as they are ttf/otf fonts they will work. But for best quality the font must use hinting Sep 27 19:31:53 s/use/have Sep 27 19:32:08 Napalm: is it possible to just download one and package it in your app like a normal font? Sep 27 19:32:14 yes Sep 27 19:32:20 ok cool, i'll try that :) Sep 27 19:32:21 thanks Sep 27 19:33:13 I don't know what you mean, when i go to create the icon for the app I go to the manifest, icon - browser then i click "Create New Icon..." I go through all the steps selecting my image, settign additonal padding to 0% and settign the shape to none, then i click next Sep 27 19:33:26 i thought this was all i would need to do Sep 27 19:33:42 * Napalm sigh's Sep 27 19:34:09 yes, that can work. see pjb's answer Sep 27 19:34:27 SimonVT: thanks Sep 27 19:35:18 trim surrounding blackspace? is the check box on the icon creation window? Sep 27 19:44:05 yea fixed it, but it done it by manually adding th image files, it seems if i start with the biggest icon size possible i.e. xxhdpi 144px x 144px xhdpi and the rest of the "buckets? are these what you call buckets?" all get padding/invisible borders, but there is not option in the icon "wizzard?" for chaning this Sep 27 19:44:09 i* Sep 27 19:44:50 none that i can find any way.. Sep 27 19:55:55 hi Sep 27 19:56:41 how to change autostartup apps? Sep 27 19:57:01 eg if i dont want something to autostart like e-mail or minion rush or textsecure. Sep 27 19:57:12 but even map autostarts Sep 27 19:57:19 Should be a service matter? Sep 27 19:58:09 Jackneill: the current version of Android does not give you this support entirely Sep 27 19:58:54 so what the heck should i do then Sep 27 19:58:57 Jackneill: if your using Android 4.3 you can install this.. https://play.google.com/store/apps/details?id=com.appaholics.applauncher Sep 27 19:59:13 it will let you customize each apps permissions Sep 27 19:59:21 napalm: i have lg phone, it only has 4.1.2 officially Sep 27 19:59:52 but is it a 4.3 feature? Sep 27 20:00:09 Jackneill: Android does not work like a conventional operating system, these apps are probably not causing your phone any issues Sep 27 20:00:22 I've got an lg phone on 4.3 Sep 27 20:00:24 Jackneill: if you are using some task-manager or something to close apps, your doing it wrong Sep 27 20:00:40 Jackneill: its a unreleased feature of 4.3 Sep 27 20:00:45 napalm: how should i do it? Sep 27 20:00:52 Jackneill: it will probably be released in 4.4 Sep 27 20:00:58 Jackneill: do what? Sep 27 20:01:02 even clean master? Sep 27 20:01:21 Napalm, close apps and such i mean Sep 27 20:01:32 Please use #android for user help Sep 27 20:01:36 apps get closed automatically by the operating system Sep 27 20:01:36 well closing is futile if it gets autostarted Sep 27 20:08:27 does anyone know if the custom font memory leak was fixed in ICS? Sep 27 20:09:29 tnzr: what custom font memory leak? Sep 27 20:10:19 tnzr: just create a singleton to manage your fonts Sep 27 20:10:38 tnzr: with a static array of the Typeface objects you create from your assets Sep 27 20:11:09 what does wake lock mean? Sep 27 20:11:25 Jackneill: keep the device awake Sep 27 20:11:48 Jackneill: if you start playing with permissions your lightly to break apps Sep 27 20:12:18 dont i need root for permisssions? Sep 27 20:14:00 huh? Sep 27 20:14:16 no, if your on 4.3 Sep 27 20:14:23 im on 4.1.2 Sep 27 20:14:34 but it's doing its job so i guess no Sep 27 20:14:51 though i check software update and im running the latest version. Sep 27 20:17:35 Hi! Can I use Meadirouter class for API 16 to get a unique display on a secondary device? Sep 27 20:24:18 SimonVT: Do you know the Smoothie library? Or used it, even? Sep 27 20:24:20 Hello Sep 27 20:24:20 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 27 20:24:44 Weren't you kicked yesterday because of exactly this? Sep 27 20:24:50 n o Sep 27 20:25:04 can someone please just ban LLckfan permanently? Sep 27 20:25:18 friggin' troll just asks the same thing over and over, especially when it's completely OT Sep 27 20:25:27 not a troll Sep 27 20:25:43 LLckfan: Yeah, this channel is for app development Sep 27 20:25:55 LLckfan: #android might be more appropriate Sep 27 20:26:05 They are of no help Sep 27 20:26:15 don't really care about your spam questions Sep 27 20:26:25 you ask the same thing repeatedly on a timer, don't care to ever answer them, and never will Sep 27 20:26:29 <|0xD34D|> someone helped you yesterday in #android and you still continue Sep 27 20:26:46 in fact, you've made my blacklist, I am never providing an answer to any of your questions Sep 27 20:27:25 No one help me Sep 27 20:38:22 kakazza yeah, SimonVT helped him out :D Sep 27 20:46:24 @RyanM so I'm not sure what it was, but it appeared that leaking a Menu reference caused the View to not be recreated. I'm still trying to figure out exactly what was happening, but in the test project I created the lifecycles are the same between the support library and the framework. (I initially thought they weren't due to another error.) Sep 27 20:47:45 Regardless, it seem that interacting with a leaked menu reference is bad enough to cause weird shit to happen (which shouldn't really be the case) Sep 27 20:48:28 i like how ihave a galaxy nexus that i use as nothing more than a desk clock Sep 27 20:48:43 first world problems Sep 27 20:48:46 that's what daydream is for Sep 27 20:48:49 @canadiancow Sep 27 20:49:05 fwp? where's the problem? Sep 27 20:49:22 you have a samsung device Sep 27 20:49:38 i also have a nexus s...somewhere Sep 27 20:49:53 yeah, ive got both sitting in my drawer here Sep 27 20:50:00 and samsung is fine. the time shows up perfectly :) Sep 27 20:50:07 plus s3, gtab 10.1, note Sep 27 20:50:30 i guess pentile amoled is fine if all you want is a clock Sep 27 20:50:31 at some point, one has to decide whether the aging lithium battery is worth it Sep 27 20:50:42 nothing like a lithium fire Sep 27 20:51:09 * g00s_ replaced his droid-1 with a spare Sep 27 20:51:13 *battery Sep 27 20:51:30 batteries dont start fires Sep 27 20:51:32 :P Sep 27 20:51:47 my phones in a dock... i could probqably just remove the battery Sep 27 20:52:23 canadiancow: batteries explode :> Sep 27 20:52:41 How's it possible that i get only a few thumbnails? there are thousands in "Galery"-App. http://pastebin.com/7VMApbut Sep 27 20:55:34 may it possible that the thumbnail is only generated when the image is opened at least once? Sep 27 20:58:34 Hello Sep 27 20:58:35 I am trying to update apps on my android device and it shows there is an update but after it downloads says X app is not installed when it is. Is there a way to find out why it does this? I do have a sd card mounted(installed) Sep 27 20:59:09 LLckfan: I <3 u Sep 27 21:01:11 LLckfan: read the Android source. Sep 27 21:01:52 LLckfan: http://source.android.com/source/downloading.html Sep 27 21:03:26 no hel[p Sep 27 21:03:36 LLckfan: ? how? Sep 27 21:03:48 LLckfan: it tells you exactly what's happening...... Sep 27 21:04:23 it does not tell me anything Sep 27 21:04:38 LLckfan: then you're in the wrong channel Sep 27 21:06:16 LLckfan: try this channel: #android-nintey-nine-problems-and-the-package-manager-is-one Sep 27 21:07:16 no help Sep 27 21:07:36 LLckfan: awe sorry man. Sep 27 21:09:09 LLckfan maybe a factory reset? Sep 27 21:09:26 nuke it from orbit! Sep 27 21:10:04 LLckfan: also try whispering sweet nothings into the mic at night. It likes that. Sep 27 21:16:48 yay Sep 27 21:17:19 kakazza: What's a smoothie library? oO Sep 27 21:19:49 ll is a bot that is not a bot that posts same question each hour or so Sep 27 21:20:51 R.id.foo is that the string itself from strings.xml? somestring Sep 27 21:21:33 SimonVT: https://github.com/lucasr/smoothie Sep 27 21:23:48 somebody wrote a library for that O.o Sep 27 21:24:30 Well, it would reduce boilerplate code, shoving it all into a third party library I can blame! Sep 27 21:24:42 Hi. It appears that while the ndk compiler supports C++11, STLport lacks the C++11 STL. Is that so? Sep 27 21:25:05 So there's no way to compile C++11 code using for android? Sep 27 21:25:12 I do have Strings that take long to load, because they are the result of a 500ms long calculation. Sep 27 21:26:01 And g00s_, stopping loading on fling etc is nice to have, especially if I don't have to do the footwork. Sep 27 21:26:28 i just looked at romain's shelves app a while back for all that, seemed simple enough .. Sep 27 21:26:32 kakazza: Eh, seems redundant :p Sep 27 21:26:40 redundant? Sep 27 21:28:01 things like this, i just prefer to reuse design patterns and a few code snippets Sep 27 21:29:01 Remember of the top of your head where the stop-on-fling code is in the Shelves app? Sep 27 21:29:08 (Also, damn, minSdk=3) Sep 27 21:29:12 hehe Sep 27 21:29:44 kakazza no, i dont remember - but i was a beginner at the time (heh, minSdk=3) and found it - i'm sure you will find it Sep 27 21:30:23 and there was some weird fling bug with froyo too, but that got fixed Sep 27 21:30:26 https://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/activity/BooksAdapter.java#107 Sep 27 21:30:31 probably Sep 27 21:31:30 any one wanna test my app on their device? its really just a webpage, trying to find bugs :) Sep 27 21:32:32 Anton2k whats the matter with testing a webpage from the emulator Sep 27 21:32:39 if thats all it is Sep 27 21:32:51 just trying to get a rnage of resulutions Sep 27 21:33:06 resolutions* Sep 27 21:33:19 ??! Sep 27 21:33:25 thats what the emulator is for Sep 27 21:33:32 emulate the different resolutions Sep 27 21:33:59 ah right, ill give it a try then, i have been using my phone to debug the app Sep 27 21:34:58 kakazza: Just not sure what problem it's trying to solve.. If you just need to do a bunch of calculations on a thread, you could create a much simpler api yourself Sep 27 21:38:22 A Map of textviews and runnables or something that does the calculations.. Start a thread and keep calculating/setting text until there's no more work Sep 27 21:39:08 Add an executor if you want to do stuff in parallel Sep 27 21:39:24 Add a scroll listener and stop posting to the ui thread while flinging Sep 27 21:40:21 Anyway.. I haven't used it, no :p Sep 27 21:43:04 Isn't Runnable kinda archaic if you have AsyncTask, Loaders etc? Sep 27 21:43:26 It's an interface with a run method Sep 27 21:44:01 Yeah, but without some of the convenience callbacks. Sep 27 21:44:10 :| Sep 27 21:44:56 Napalm? Sep 27 21:45:23 Ask for the executor, is there a good way to tell how many cores you're operating on? I doubt I want to start 4 Threads in parallel on a single core. Sep 27 21:45:47 Esp. since these devices tend to be slow(er) already. Sep 27 21:46:21 kakazza: Runtime.getRuntime().availableProcessors() Sep 27 21:46:31 Fair enough Sep 27 21:48:25 i'm getting a runtime error when trying to add an array adapter to a list view Sep 27 21:49:13 Reflow: look at your stacktrace Sep 27 21:51:42 one question, if i'm using swipe views and i'm creating the list view inside a fragment which context should i use in the array adapter constructor Sep 27 21:51:43 napalm Sep 27 21:52:32 Reflow: getActivity() Sep 27 21:53:16 and in which part should i implement the code of the adapter and the list view.setAdapter ? Sep 27 21:54:27 it is still crashing ;( Sep 27 21:54:47 i think you might be missing some concepts here Sep 27 21:54:53 Reflow: pastebin your stacktrace Sep 27 21:55:02 what is stack trace Napalm? Sep 27 21:55:06 omg Sep 27 21:55:14 google that Sep 27 21:55:15 :P Sep 27 21:55:25 http://pastebin.com/tb7A48Ea Sep 27 21:57:18 Reflow: look at your logcat view Sep 27 21:57:30 see the red lines, thats bad, thats your stack-trace Sep 27 21:58:27 oh i fixed it the problem was i was calling findViewByid Sep 27 21:58:36 when i had to call v.findViewById Sep 27 22:04:12 SimonVT: Smoothie doesn't seem to be an awful lot of code. And I'd probably end up copying a lot of the Fling/Touch listeners anyway. Sep 27 22:04:32 But yeah, the API is maybe not ideal. I could probably get away by not using AsyncListView. Sep 27 22:16:09 AbsListView has a scroll listener that tells you whether it's being dragged, flinging or idle Sep 27 22:17:55 I wonder, is that even needed? I actually don't see picasso or the sample doing that anywhere. Sep 27 22:18:04 And the sample is super smooth. Sep 27 22:19:14 <^cheeky> where can i get the picasoo sample, coz i think i am kinda stuck, with loading progress spinner inside an image view Sep 27 22:19:40 https://github.com/square/picasso Sep 27 22:19:48 <^cheeky> oh i saw this one Sep 27 22:19:55 <^cheeky> hmm, thank you kakazza Sep 27 23:06:31 I can't seem to get adb to work to my nexus 4. device manager shows Computer-Android Phone-Google Nexus ADB Interface , but when i run adb devices, there is nothing in the list. Sep 27 23:07:11 i just updated my sdk to whatever it defaulted to, nothing special. I did try to use the usb drivers from the extra section, but windows determined that the ones currently installed were newer. Sep 27 23:07:12 jnewt: did you unlock (as in screen lock) the phone? Sep 27 23:07:26 disabled the screen lock before i started. Sep 27 23:07:32 did it ask for the key? Sep 27 23:07:50 or rather, to confirm ADB permission (on the phone) Sep 27 23:08:58 the phone has not asked for any key or permission for any connection. i did enable usb debugging, and there may have been a confirmation popup, but I really can't remember Sep 27 23:09:16 Is there some special incantation I need to recite to get preference headers to work? Sep 27 23:09:59 jnewt: then I don't know how to help you further Sep 27 23:10:10 though just in case, restart ADB on the PC Sep 27 23:10:41 I have headers themselves showing up. Headers with subnodes launch the Intent fine. Headers with "android:fragment" do nothing, even though all the relevant function calls seem to be made. Sep 27 23:14:00 p_l: i have android v4.3 and adb version 1.0.31, maybe my adb is old? Sep 27 23:14:12 no idea Sep 27 23:14:51 http://pastebin.com/z7GWDZyT is the settings_headers.xml file. The middle header is the only one that works. SettingsActivity is used to show both the headers and the screens, like the documentation example. Sep 27 23:17:27 Selecting the top or bottom header successfully calls onHeaderClick() -> startWithFragment() -> startActivity(), which returns no error. But the Activity does not get relaunched. Sep 27 23:22:53 man i am just unplugging and replugging my nexus7 in constantly Sep 27 23:23:25 it says usb debugging connected, then doesnt work Sep 27 23:23:35 after i randomly replug it in 5 times or so it works Sep 27 23:23:46 wasnt nearly this bad 2 years ago last time i did android dev Sep 27 23:26:08 p_l: i have to have my phone in camera not a media device (where's the logic in that one?) Sep 27 23:27:02 JimmyCarter: try a different cable and/or port on your computer. Sep 27 23:30:05 diff cable diff port same thing Sep 27 23:30:08 brb gonna try rebooting Sep 27 23:32:57 nice reboot seemed to help anyway. worked on first try and like 10 fails in a row Sep 27 23:33:06 s/and/instead/ Sep 27 23:34:43 great now failing again Sep 27 23:34:56 i wonder if both of my cables could seriously be damaged or if the device is Sep 27 23:35:02 really seems like software issue Sep 27 23:45:27 JimmyCarter: next time adb kill-server && adb start-server Sep 27 23:45:37 often fixes stupid ADB bugs Sep 27 23:49:25 hey ctate Sep 27 23:49:35 think you could just sneak in here eh ?! Sep 27 23:49:38 hide ctate before someone see's you have op Sep 27 23:49:38 :D Sep 27 23:49:47 dropping in with a chanserv hat-tip is hardly "sneaking" Sep 27 23:49:57 :) Sep 27 23:49:58 ;) Sep 27 23:50:24 ctate: yo Sep 27 23:51:02 what are the "haps" my friends Sep 27 23:52:05 hm, working with mqtt on android. for internet of things stuff Sep 27 23:53:22 ctate: prezzy for you > http://i.imgur.com/pyew2AG.jpg < kitkatty wallpaper Sep 27 23:54:40 Carlsberg? What is this, Ireland? ;) Sep 27 23:55:04 ctate: I think Irish would take umbrage to that Sep 27 23:55:28 p_l: when i was in ireland a year or two ago *everybody* was drinking Carlsberg Sep 27 23:55:34 it was the lager of choice by a huge margin Sep 27 23:55:42 possibly becuase there's a brewery in Dublin so they're a major employer Sep 27 23:56:00 like 95% of the beer being drunk was either Guinness or Carlsberg Sep 27 23:58:56 uh, so there is an update to the google repository in the sdk manager. but the options are : (delete 1 package) and (install 1 package) what am i supposed to do :/ Sep 27 23:59:24 i mean really, isn't there just one option: (update 1 package) ? Sep 28 00:00:27 on the safe side, i decided to delete 1 package ;) then my option to install 1 package went away Sep 28 00:00:34 * g00s headdesk Sep 28 00:03:28 so ctate , i'm sure you popped in to confirm / deny the announcement date of the nexus 5 Sep 28 00:03:53 :) Sep 28 00:04:16 i can neither confirm nor deny that i popped in the other day to confirm or deny or to fail to confirm or deny such a thing Sep 28 00:05:30 or in other words, he's denying that he popped in to confirm/deny Sep 28 00:06:01 In other words, immolate him. Sep 28 00:06:28 yeah so ctate, this is why you disable auto-op :P Sep 28 00:09:18 Nilium how is your new app doing in the store ? Sep 28 00:10:32 Just a quick question: When using textviews etc in an activity Sep 28 00:10:41 Is it worth holding a member variable reference to a textview Sep 28 00:10:51 Or just getting it from the contentview each time I want to use it Sep 28 00:11:01 Dunno. I got 10 sales today and 14 yesterday, so I guess it's acceptable. Sep 28 00:11:14 Or is the difference negligible unless you are constantly using them, and doing some intense processing? Sep 28 00:11:34 Reddit already asked for a free version and someone else claiming to work in marketing told me I should lower the price 'cause IMPULSE BUYS and MAGICAL MARKETING WISDOM Sep 28 00:12:11 Anthaas: findViewById() is very slow Sep 28 00:12:28 especially if you have a lot of views Sep 28 00:12:47 Which is why you do it once and store the result. Sep 28 00:12:49 i should write a popular paid app Sep 28 00:12:58 typically what you'll do is look up the view once in onCreate(), stash the result, and then use that henceforth Sep 28 00:13:02 I should write a paid app that is an actually app and not just a live wallpaper. Sep 28 00:13:12 Ahhh, cool. I have been doing things right then. Normally in my onCreate() I create a function called "initViews()" which just initialises all the member variable references once. Sep 28 00:13:12 i discovered in my console the other day that my shitty free app that i havent worked on in like a year has 150k active users or something Sep 28 00:13:29 holy crap canadiancow Sep 28 00:13:33 Yeah! Woo :D I was doing things right! Thanks @ctate. It is useful to know WHY though :D Sep 28 00:13:35 thats awesome Sep 28 00:13:40 free app though Sep 28 00:13:44 so i get zilch :P Sep 28 00:13:52 canadiancow - any inkling as to what the app is? Sep 28 00:13:54 so if it cost a dollar you'd have liek 15 users Sep 28 00:13:56 if every user gave me one cent per month.... Sep 28 00:14:08 ADS THE MAGICAL MONEY MAKER Sep 28 00:14:20 AKA that thing that won't actually get you anything Sep 28 00:14:40 https://play.google.com/store/apps/details?id=com.navlauncher.app Sep 28 00:15:04 141,445 current installs Sep 28 00:16:10 According to the play console, I have.. 26. And the previous version of my app had 3,800. And the free version of my previous app before I pulled it had 38,000. Sep 28 00:16:40 The disparity in installs between the free/paid version helped convince me that free versions were stupid. Sep 28 00:17:26 i've been asked to write paid versions of free + ads apps Sep 28 00:17:34 seems everybody hates adds Sep 28 00:17:43 especially on mobile Sep 28 00:17:45 I hate ads to the point that I don't install an app that has them. Sep 28 00:17:51 especially interstitial crap Sep 28 00:17:58 I have made a decision before putting any of my own apps on the app store. I will only ever put free OR paid apps on. Never ones with ads. I hate them so much I wouldnt want anyone else to have to suffer. Sep 28 00:18:36 On Google Play* Sep 28 00:18:53 Ive not have an iOS device since the 3GS, yet I still call it that. Sep 28 00:18:56 I just won't do ads because I don't like 'em so it doesn't make sense that I'd make people suffer 'em. Sep 28 00:19:26 And I won't do free versions 'cause most people will go "well do I reaaaally want to upgrade?" and convince themselves not to. Sep 28 00:20:58 that's a lot of installs, canadiancow Sep 28 00:28:41 FYI, I found the problem with my preference headers code: the SettingsActivity entry in AndroidManifest.xml had android:launchMode="singleTop" set. Sep 28 00:29:42 pfn, there's about twice as many total installs, so half the people have uninstalled Sep 28 00:30:05 Anthaas, i've thought about that, and there must be some way to like have a limited free version, an unlimited ad version, and an unlimited paid version, all in the same apk Sep 28 00:30:19 you start with free, you can upgrade to full by either payign or enabling ads Sep 28 00:30:24 and you can go from ads to no ads by paying Sep 28 00:31:01 canadiancow: Sure there is. On first load of an app, collect the Google Account attached to the phone, and generate 1 random number. Send the number to the device and save it as a preference. Sep 28 00:31:11 canadiancow: Check it for X days/months/hours w/e Sep 28 00:31:26 canadiancow: After that time, load a different activity through which they can obtain full access. Sep 28 00:31:38 canadiancow: With the number AND the google account - there is no realistic way to spoof it. Sep 28 00:32:57 * p_l still needs to figure how to switch country in Google Play Sep 28 00:32:58 Cant reinstall or clear data, because the number will be lost and it is known to the servers that the device/account already had the app Sep 28 00:33:14 Anthaas: Changing the Google account attached would be too much hassle. Sep 28 00:33:50 canadiancow: It would be almost like having different access levels for users within the same APK Sep 28 00:35:34 it'd lock app to device Sep 28 00:35:40 I never like that Sep 28 00:36:01 Not necessarily. Sep 28 00:36:14 Once the app has been paid for, the Google account would be validated to be installed on X more devices. Sep 28 00:36:24 You'd have another flag for that Sep 28 00:36:32 Could literally be a bit Sep 28 00:36:39 0 is free, 1 is paid Sep 28 00:37:03 Once it is 1, you could install it on X devices, could even have another field for that Sep 28 00:37:12 and the MAC addresses of the devices if you like... Sep 28 00:37:15 nah just use in app billing for that Sep 28 00:37:20 then google ties it to the account Sep 28 00:37:47 Its true, but you can only then follow the app using in app billing if they have made a purchase, surely? Sep 28 00:37:53 Meaning they could just keep reinstalling. Sep 28 00:38:50 I did see apps that have paid version just install key to device Sep 28 00:38:59 which app reads and enabled Sep 28 00:39:00 Unless you do a purchase of £0.00? But that would also need confirmation... Sep 28 00:39:28 i'd like to convert my app to free + IAP, but as far as I know, you still aren't able to do that Sep 28 00:39:43 since its already paid Sep 28 00:42:46 can you make it so it works full for a month and then looses certain pro functions after that unless they buy it to unlock those features again ? that way they will have tried the pro features and decide to keep it ? Sep 28 00:42:58 ehh... apparently Google decided that, like Microsoft, they truly hate people who move between countries Sep 28 00:43:41 shmoooz dunno. but my app was released as paid before IAP even existed, they should provide a migration path … or i haven't found it Sep 28 00:44:02 p_l i was reading the Note 3 is region locked Sep 28 00:44:16 g00s: probably depends on who you buy it from Sep 28 00:44:28 SGS or SGS2 from Bell Canada was locked as well Sep 28 00:44:37 I can't decide if I should try putting my app on Amazon. Seems risky. Sep 28 00:44:38 i dunno, sounds like samsung actually did the locking Sep 28 00:45:38 g00s: for the Bell Canada version yes, Samsung did the locking Sep 28 00:45:54 everyone else got locks only in the form of classic SIM lock Sep 28 00:46:03 but nothing more Sep 28 01:04:19 risky? Sep 28 01:04:45 Made me wonder too. I guess he is questioning the security of Amazon's store against Googles. Sep 28 01:05:52 g00s, you can convert your app to free + IAP Sep 28 01:05:57 the problem is, your existing users will be very unhappy Sep 28 01:06:29 migration path = LVL Sep 28 01:06:45 should probably be able to do something Sep 28 01:07:07 pfn i was thinking about taking the existing functionality, and making it free - and just adding new things as IAPs Sep 28 01:07:33 g00s, then there's nothing stopping you, other than potentially angry customers that would be pissed that they paid for something that's now free Sep 28 01:07:45 are they unhappy, from a psychological standpoint, because they paid for something that is now free - or are there technical / UX issues ? Sep 28 01:07:53 the former Sep 28 01:07:59 ok Sep 28 01:08:03 Yeah Sep 28 01:08:14 that's what I said Sep 28 01:08:14 If I paid, say £20 for something, and that is now free. I'd be pissed off... Sep 28 01:08:17 how's that not clear? Sep 28 01:08:45 maybe i could do some graduated discounting ;) Sep 28 01:08:56 7.99 -> 4.99 -> 2.99 -> free Sep 28 01:08:58 :) Sep 28 01:09:19 At the same time, you cant make the new things free to older users, because that would piss off new people and cause them to find an alternative. Sep 28 01:09:29 I would just leave things as they are. Sep 28 01:17:58 Hm, I can't prevent Galaxy Nexus users from installing my app on Amazon's app store, so I guess that's a no-go Sep 28 01:20:55 g00s, if yours is 7.99, i would drop it by a dollar on the first of every month, and announce a sale Sep 28 01:21:05 maybe drop it two dollars on december 25 :P Sep 28 01:21:14 * Nilium plans to do something like that. Sep 28 01:21:46 I'm kind of glad I held off on releasing certain features from the get-go Sep 28 01:22:15 canadiancow yeah, makes sense Sep 28 01:22:47 i think you'll still have annoyed customers Sep 28 01:22:58 but... what can you do? Sep 28 01:23:16 prices on stuff go down all the time Sep 28 01:24:28 except important stuff, like college and bacon Sep 28 01:27:09 lol Sep 28 01:30:54 People like telling me how to market/price my app, I've noticed. Sep 28 01:31:42 Nilium; How to market/price your app. Sep 28 01:31:55 See. There one goes again. Sep 28 01:49:12 Nilium, you posted it up already? link? Sep 28 01:49:29 Not sure if app links count as advertising Sep 28 01:49:39 * pfn shrugs Sep 28 01:49:43 if someone asks, nothing wrong Sep 28 01:49:54 Oh well slip of the hand https://play.google.com/store/apps/details?id=net.spifftastic.ascension2 Sep 28 01:50:41 needs video Sep 28 01:50:50 Haven't found a good way to record video. Sep 28 01:50:51 3 reviews already? no fair... Sep 28 01:51:03 Those were my overzealous testers. Sep 28 01:51:23 nice of them Sep 28 01:51:39 They paid for the app, so I don't feel bad about it, at least. Sep 28 01:51:50 indeed Sep 28 01:53:02 spiffy looking Sep 28 01:54:10 yeah, nice Nilium Sep 28 01:54:48 Nilium: i would like to tell you how to market and price your app Sep 28 01:54:57 I would like to set you on fire. Sep 28 01:55:05 in fact i would like to tell you how to develop and design it Sep 28 01:55:40 in fact i would like to dictate what computer and test device you use Sep 28 01:55:42 In fact I have a completely different idea you should make for royalties because it's a sure thing Sep 28 01:55:48 shall we begin? Sep 28 01:56:02 * Nilium gets the kerosene Sep 28 01:56:08 DarkSlay3r for starts, i think Nilium should write it in AppleScript Sep 28 01:56:23 * DarkSlay3r begins to have a seizure Sep 28 01:56:24 so get ready for Ascension 3 Sep 28 02:00:40 You'll have to wait another three years for that. Sep 28 02:01:00 No no no Nilium that is too short of a cycle Sep 28 02:01:16 You need to keep your fans in suspense Sep 28 02:01:20 5 years min Sep 28 02:01:27 That seems short. Sep 28 02:01:35 I should aim for Duke Nukem Forever like spans. Sep 28 02:01:42 exactly Sep 28 02:01:49 Just keep pushing updates Sep 28 02:02:04 I'm pretty glad the "recently updated" tab is gone from the market. Sep 28 02:02:14 The updates should include in app purchases Sep 28 02:02:22 No more pressure to just keep pumping out versions. Sep 28 02:02:36 Give the users the option to buy free updates Sep 28 02:02:45 I won't touch IAPs because Lodsys goes after people for that. Sep 28 02:03:29 All the more reason to use it Sep 28 02:03:35 Free publicity Sep 28 02:03:50 thanks RyanM, adb kill-server and adb start-server very helpful Sep 28 02:05:10 Nilium: you should price your app at $99 Sep 28 02:05:26 I've been tempted to do that for a day just to see if anyone would buy it. Sep 28 02:05:33 And just keep adding more features Sep 28 02:05:42 Microsoft proved that it works Sep 28 02:05:52 No, they charge $99 per year. Sep 28 02:05:59 And don't really add features. Sep 28 02:06:11 people are ready to pay $0.9 Sep 28 02:06:15 $0.99 Sep 28 02:06:22 $9.9 Sep 28 02:06:26 and $99 Sep 28 02:06:43 Scientific fact Sep 28 02:06:45 If only you could list it as $099 and just omit the . conveniently Sep 28 02:10:32 now that im using admob sdk i have to project>clean before each build :/ Sep 28 02:10:48 don't use admob; problem solved ! Sep 28 02:11:14 Yes, use airpush Sep 28 02:11:25 Users love airpush Sep 28 02:11:35 They love it so much Sep 28 02:11:49 Anger is the same as happiness. Sep 28 02:12:02 maybe i should. havent got admod working yet Sep 28 02:12:08 getting pretty sick of buggy google code Sep 28 02:12:10 There was a study by marketing people on anger. Anger is good. Sep 28 02:12:17 I made this fact up. Sep 28 02:12:27 Just like marketing people. Sep 28 02:14:03 JimmyCarter: Studies show that the amount of 5 stars you get is directly correlated to how many force closes your apps deliver to your users Sep 28 02:14:15 and airpush Sep 28 02:14:20 don't forget airpush Sep 28 02:15:25 Studies show that wrapping everything in your app in try/catch(Throwable) blocks is a sure-fire way to mitigate crashes. Sep 28 02:15:42 Who cares about bugs if they don't escape the functions Sep 28 02:16:58 studies show that bugs are not bugs if you call them features Sep 28 02:17:46 Force Close isn't a bug, it's a chance to interact Sep 28 02:18:17 i was going to try and do google play services realtime multiplayer game integration this weekend too.. but turning out that was overly optimistic plan Sep 28 02:18:41 I started work on a major feature but think I'll play GTA 5 instead. Sep 28 02:18:57 lol and professional work take up my time Sep 28 02:19:39 dunno why I like playing lol Sep 28 02:19:41 I hate the players Sep 28 02:19:44 Well i need money to buy gta 5 Sep 28 02:19:48 android makes me despise google but luckily their web search engine generates good will Sep 28 02:19:51 the community is a bunch of 11 year olds and raging douchebags Sep 28 02:19:56 looks like i need to sell apps Sep 28 02:20:18 Android users make me despise Android. Sep 28 02:20:53 I'd love to see all apps be forced to be paid just to see what happens Sep 28 02:21:28 Nilium: people in countries that do not support online payments will revolt Sep 28 02:21:43 I think that's a great idea Sep 28 02:21:44 hi, noob here. got an activity with a layout xml that has a . where would be the right place to send initialization data from the activity to the fragment? the data is a string from the intent that started the activity, which i want to put in the fragment view Sep 28 02:21:46 and piracy will dominate the platform Sep 28 02:21:47 thanks ^ Sep 28 02:21:56 It already dominates it in those areas -_- Sep 28 02:22:06 not their fault Sep 28 02:22:13 they want to pay for apps Sep 28 02:22:24 just no means to do so Sep 28 02:22:38 I'm not sure they'll pay for apps if they get the chance at this point. Sep 28 02:22:59 i lived in one of those areas Sep 28 02:23:09 trust me it's punishing Sep 28 02:23:35 i can't read an app review without looking at my wallet and wishing i could pay for apps Sep 28 02:23:49 The locals feel the same way Sep 28 02:24:03 free stuff just doesn't live up to the hype Sep 28 02:24:24 and they know piracy is not the best option but... what you going to do Sep 28 02:24:51 the only thing they pirate openly is windows Sep 28 02:25:00 they think it's overpriced to hell Sep 28 02:33:03 the people that pirate will always pirate Sep 28 02:33:16 you just have to accept that, or maybe find a way to monetize them, rather than preventing it Sep 28 02:33:34 or, you can just fight fire with fire by distributing your own apk pirated, but with malware built-in Sep 28 02:42:40 "bad request" is about 3/10 for descriptive error Sep 28 02:53:24 omg got ads working :) Sep 28 02:53:51 my fault for being noob, i have to take back some of my google bashing Sep 28 02:54:13 shoky: not sure if you can set the fragment's arguments when using , but if you use a instead and instantiate your Fragment in code, you can pass along any data from the Intent as arguments to the Fragment. Sep 28 02:54:36 now i just hope i can move or disable/enable ads Sep 28 02:56:33 shoky: search https://developer.android.com/guide/components/fragments.html for "details.setArguments" to see an example. **** ENDING LOGGING AT Sat Sep 28 02:59:58 2013