**** BEGIN LOGGING AT Fri Aug 08 02:59:59 2014 Aug 08 03:18:20 " users can once again only de-authorize 4 devices from their account per year." Aug 08 03:18:58 userzzzzz, we hatezzzzz them, we doezzzzzz Aug 08 03:19:34 Leeds what is the rationale for this ? Aug 08 03:20:00 or, have any idea ? Aug 08 03:20:02 I can only assume it's a licensing term from the music people Aug 08 03:20:18 which means no rationale, no reason, no idea Aug 08 03:21:20 hmmmmm Aug 08 04:27:30 quit Aug 08 05:10:44 if I have a string of date, how can I convert it into a date object so that then i can do object.getYear() or object.getMonth()? Aug 08 05:10:55 I know I have to use SimpleDateFormatter Aug 08 05:34:07 hm. my app is blowing up Exception : Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_bar_battery.xml from drawable resource ID #0x7f020002 Aug 08 05:34:17 wtfff Aug 08 05:38:24 g00s: wtf is that? Aug 08 05:38:26 mean Aug 08 05:38:55 is caused by: Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 Aug 08 05:39:06 O.o Aug 08 05:40:46 ummm, nope Aug 08 05:40:48 haha Aug 08 05:42:23 hello Aug 08 05:42:25 ok, so this is really lame Aug 08 05:42:38 g00s: yup, that's how I would describe it Aug 08 05:42:52 does anyone have experince in sending MMS programmatically without using INTENT Aug 08 05:42:52 i have a drawable in an xml file Aug 08 05:43:06 this works : Aug 08 05:43:30 this doesn't Aug 08 05:43:49 LOL Aug 08 05:44:07 the attr is defined in my attrs.xml, themed in my themes.xml Aug 08 05:44:09 min2 check out android mms app, its open source Aug 08 05:44:16 clear project and build g00s Aug 08 05:44:20 it has saved me tons of headache Aug 08 05:44:25 i just check out but unable to compile it Aug 08 05:44:25 detachYo tats not the problem, i tried that Aug 08 05:44:39 i ma just beginner Aug 08 05:44:54 min2 do you always join a room and just interrupt a converation ? Aug 08 05:44:55 i tried to use Kilinker lib https://github.com/klinker41/android-smsmms Aug 08 05:45:07 oops Aug 08 05:45:41 etiquete : join room, look to see if anyone is talking ... no ? ask Aug 08 05:46:03 Sorry guyz.. Aug 08 05:46:20 no worries, no one is trying to make you feel sorry here, just an advice :) Aug 08 05:46:55 g00s: that doesn't make sense, you're right Aug 08 05:47:40 i wonder if i bumped into another *special* android rule : can't use attributes in drawables ? Aug 08 05:48:22 try @drawable/thename Aug 08 05:50:08 min2: check this one out https://github.com/android/platform_packages_apps_mms/tree/master/src/com/android/mms Aug 08 05:50:11 detachYo this is what i have http://pastebin.com/Cmg1i4kJ Aug 08 05:50:48 the attribute formats are "color|reference" Aug 08 05:51:16 g00s: where is batteryBackgroundColor saved? Aug 08 05:51:27 this is not a direct message Aug 08 05:51:42 in the theme of course #ff33b5e5 Aug 08 05:51:50 min2: say whatever you want, whenever you want Aug 08 05:52:28 min2: http://stackoverflow.com/questions/16518393/send-mms-programmatically Aug 08 05:52:46 put some effort into researching what you want, and use this as a last resort Aug 08 05:53:18 I have researched alot.. so I used this opensource lib https://github.com/klinker41/android-smsmms Aug 08 05:53:24 its working fine below 4.4 Aug 08 05:53:40 but in 4.4 its crashing Aug 08 05:53:52 why is it crashing? Maybe you can fix it and submit a patch? Aug 08 05:53:58 specially in galaxy S4 and MOTO G Aug 08 05:54:16 i have raised the comment there Aug 08 05:54:26 min2: I see. Aug 08 05:54:44 g00s: maybe you should do something like @item/batteryBackgroundColor Aug 08 05:54:46 https://github.com/klinker41/android-smsmms/issues/3 Aug 08 05:54:51 also, why is it not stored in color? Aug 08 05:55:32 g00s: I would definitely put any color in colors.xml Aug 08 05:57:21 hm, so maybe a theme can't have the color directly in the item ? lemme try Aug 08 05:57:38 that would be weird though, the platform theme defines constants inline Aug 08 05:57:52 build tools didn't give a crap Aug 08 05:58:11 g00s: what does inline constant mean? Aug 08 05:58:19 i haven't gone too much into xml part of android Aug 08 05:58:33 well like android's theme.xml has 58dip Aug 08 05:58:45 they didn't say @dimen/blah Aug 08 05:59:24 min2: AFAIK MMS is just an HTTP based request, and you can have an app around that Aug 08 05:59:31 oh I see Aug 08 05:59:34 I've seen those. Aug 08 05:59:55 maybe some exceptions for these? g00s Aug 08 06:00:01 no Aug 08 06:00:40 something special about the drawable shape xml and attr Aug 08 06:01:41 picasso does’t load images(webp). Error shows D --- SkImageDecoder::Factory returned nul. What can be the issue? Aug 08 06:01:45 i just changed it back to @android:color/holo_blue_light Aug 08 06:02:16 g00s: did it do anything? Aug 08 06:02:25 BitmapFactory can't decode the webp image Aug 08 06:02:56 no, still says Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 Aug 08 06:03:39 JakeWharton: is it? But it is Android 4.1.2 Aug 08 06:03:41 this is really bizarre. my attrs.xml and theme.xml are very simple Aug 08 06:04:24 Android is telling you that it can't decode that image Aug 08 06:05:45 The channel is unusually active today Aug 08 06:05:53 detachYo i think this is something the build system should have caught Aug 08 06:05:57 g00s: have you googled the problem? I imagine other people will have similar problems Aug 08 06:06:03 g00s: "should have" Aug 08 06:06:04 haha Aug 08 06:06:15 JakeWharton: can use other bitmap decoder in picasso? like https://github.com/RincLiu/Roid-WebP ? Aug 08 06:06:41 you can return a Bitmap directly from a custom Downloader Aug 08 06:06:54 g00s: I think this is it: http://stackoverflow.com/questions/8041537/how-to-reference-style-attributes-from-a-drawable/13471695#13471695 Aug 08 06:08:07 detachYo well, you found it Aug 08 06:08:13 that fucking sucks Aug 08 06:08:41 not surprising. drawables lack a context. Aug 08 06:09:09 JakeWharton: can you elobarate it? custom Downloader? Aug 08 06:09:29 detachYo thanks; my google-fu pulled up irrelevant SO posts Aug 08 06:09:39 I can share my trick Aug 08 06:09:41 haha Aug 08 06:09:52 kamol: http://square.github.io/picasso/javadoc/index.html?com/squareup/picasso/Downloader.html Aug 08 06:10:05 extend, check if webp, decode yourself, return Bitmap Aug 08 06:10:23 google > stackoverflow > immediately skim, if there is no definite answer go to second result, someone comments a reference to another stackoverflow question and that is usually where you find the answer :P Aug 08 06:10:32 JakeWharton: ic, thank you! Aug 08 06:10:59 g00s: and you're welcome Aug 08 06:11:33 now the next question is , do the android docs say anything about this? Aug 08 06:11:39 i didn't see anything Aug 08 06:12:17 probably not Aug 08 06:12:30 Hi Aug 08 06:12:34 Hi niru Aug 08 06:12:47 I have a JSONObject in one of the class as Aug 08 06:13:14 hi detachYo Aug 08 06:13:30 http://pastebin.com/tDBBysz1 Aug 08 06:13:52 can I access that JSONObject outside that class Aug 08 06:13:54 ? Aug 08 06:14:03 Let me see that code Aug 08 06:14:30 I need more context. Aug 08 06:14:48 Do you want to call something like authenticate(user,pass)? Aug 08 06:14:59 detachYo https://code.google.com/p/android/issues/detail?id=26251 Aug 08 06:15:05 from your link Aug 08 06:15:44 yes but that I can do with dot operator Aug 08 06:15:45 wow, even romainguy got it wrong Aug 08 06:16:12 LMFAO Aug 08 06:16:14 thats funny Aug 08 06:16:21 what if I want to access one name value pair?? Aug 08 06:16:22 Released in L-preview. Does this mean no support for older versions? Aug 08 06:16:33 niru: you do TheActivity.authenticate(user,pass); Aug 08 06:16:36 or wherever it is Aug 08 06:16:47 if its in a file called User.java, you do User.authenciate(user,pass); Aug 08 06:16:56 what do you mean by "access one name value pair?" Aug 08 06:17:09 detachYo: but that will return all the parameters in the object Aug 08 06:17:50 I want to only see the user and success parameters.like res[0].result Aug 08 06:17:58 you have to parse it Aug 08 06:18:10 JSONObject.get I think Aug 08 06:18:13 Let me get you the link Aug 08 06:18:42 This might be the one you need. http://www.json.org/javadoc/org/json/JSONObject.html#getString(java.lang.String) Aug 08 06:18:54 If it's a loop, you have to get JSONArray instead of JSONObject and loop to get 0 Aug 08 06:18:57 element Aug 08 06:19:05 Is there anybody online tonight that has knowledge on linking native libraries? I'm having a big problem trying to link in the protobuf into my Android project Aug 08 06:22:46 this is the linking error I get when I try to load the lib Aug 08 06:22:47 Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 37 cannot locate 'strtof'... Aug 08 06:23:08 detachYo: but can I use them outside the class or in the same class Aug 08 06:23:13 if outside how to do? Aug 08 06:23:27 both Aug 08 06:23:38 MyActivity.authenticate.getString? Aug 08 06:23:39 you need to get the josn response and parse it Aug 08 06:23:42 no Aug 08 06:24:47 ok Aug 08 06:25:16 JSONObject object = MainActivity.authenticate(user,pass); Aug 08 06:25:33 then object.getString("key"); Aug 08 06:25:46 key is of course the key you want, not literally key Aug 08 06:26:11 yes thanks detachYo Aug 08 06:26:19 NP Aug 08 06:26:27 try that, if you have any issues come back here and ask Aug 08 06:26:32 also, try google, it helps alot Aug 08 06:26:33 :) Aug 08 06:28:12 detachYo: yes Aug 08 06:30:23 Anybody here vapes? Aug 08 06:31:45 What? Aug 08 06:32:07 Hey guys I am trying to activiate the Fitness API but it is not showing on the api list anyone else having this issue? Aug 08 06:33:29 Nilium: vape? Aug 08 06:34:05 Can we set a rule here, that "having issue", "it doesn't work" etc are not very helpful for us to determine what kind of problems you're having. Aug 08 06:35:05 My question was pretty specific.... Aug 08 06:36:30 The answer is to set a bush on fire and call forth satan to write code for you because I figure that's always worked for me Aug 08 06:37:03 My fingers speak in code-tongues. Aug 08 06:37:06 davechason: have you followed these steps? https://developers.google.com/fit/android/get-started Aug 08 06:37:18 yessir Aug 08 06:38:00 davechason: what do you mean by not showing on the api list? Aug 08 06:38:44 The API Console you mean? Aug 08 06:38:53 I started a new project and followed the instructions to click on ais and auth tab and select the fitness api and enabale it however the fitness api is not listed in the console Aug 08 06:39:35 Let me check my console Aug 08 06:40:01 okay great Aug 08 06:40:55 fun reading for tonight :) http://labs.bromium.com/2014/07/31/remote-code-execution-on-android-devices/ Aug 08 06:41:02 Hav eyou created a new project in GDC? Aug 08 06:41:08 Yes Aug 08 06:41:38 g00s just read that article its good. Aug 08 06:43:20 davechason did you see figure 4 in http://www.csc.ncsu.edu/faculty/jiang/pubs/WISEC12_ADRISK.pdf Aug 08 06:43:46 i wonder what that 1 app is that includes 20 add libraries Aug 08 06:43:46 g00s: i'll have to read that later Aug 08 06:44:14 davechason: I wonder if its selective Aug 08 06:44:54 Do you have it ? Aug 08 06:45:44 "We found that by using relatively simple man-in-the-middle proxy techniques, it was possible to remotely compromise a fully-patched Android device running any vulnerable app, without having to expend effort to target specific apps or devices." Aug 08 06:45:54 ugh! Aug 08 06:46:35 I don't davechason Aug 08 06:47:43 hmm I have a buddy that works there I'll call him in the morning and figure it out. if i hear anything ill post back on here Aug 08 06:49:09 g00s: well, it could be worse, a built-in spyware could have been listening for commands on 0.0.0.0 ... Aug 08 06:49:23 sounds good davechason , I actually want to find out too Aug 08 06:49:32 great! Aug 08 06:49:37 thanks for the help Aug 08 06:49:57 no prob, sorry if I was a little rude earlier, didn't mean to sounds jerky Aug 08 06:50:02 p_l was that something apple just got caught doing :) Aug 08 06:50:20 g00s: when I found out that your android phone can be used for bitcoin mining, i gave up Aug 08 06:50:42 g00s: yes. They recently changed it to no longer listen on 127.0.0.1, so locally installed apps can't use it Aug 08 06:50:52 ha! Aug 08 06:51:08 (also, encryption? what encryption) Aug 08 06:51:12 No Problem Aug 08 06:51:14 well, luckliy i have never downloaded any apps from Play onto my device. i use it just for dev Aug 08 06:51:25 the HTC bullshit was funny as well Aug 08 06:51:29 i should be safe right :) Aug 08 06:52:17 ohshit, i do have 1 app: Wifi Analyzer Aug 08 06:53:28 g00s: me too, i bought a dev device from amazon for 70 bux, its not connected to anything Aug 08 06:54:10 ugh, I am having a small problem calling a function in fragment Aug 08 06:54:18 from parent activity Aug 08 06:55:27 YoFragment f = (YoFragment)findFragmentById() Aug 08 06:55:31 f.yo() ! Aug 08 06:55:54 detachYo did you detach the Yo fragment ?!?! O.o Aug 08 06:55:56 g00s: hold on, let me try that Aug 08 06:56:14 @Override onDetachYo(0.o) Aug 08 06:56:41 ok, so now i'm going to duplicate my XML files because, i love duplicating xml files Aug 08 06:56:48 lol Aug 08 06:56:50 have fun with that Aug 08 06:56:52 since that damn drawable attr bug Aug 08 06:57:15 when in activities, oncreate method I call fragment.somefunction(); do the elements in fragment get created first? Aug 08 06:57:30 can i specify in someFunction, somehow create these elements first Aug 08 06:58:45 detachYo gotta know the fragment lifecycle like its second nature Aug 08 06:59:02 otherwise it will trip yo up each ime :0 Aug 08 06:59:54 i kinda know it Aug 08 07:00:33 onattach, oncreate, oncreateview onactivitycreated Aug 08 07:02:00 g00s: do you know, can I have a listener implementation from a different activity? Aug 08 07:02:13 different activity? Aug 08 07:07:49 ActivityA implements a listener from ActivityA Aug 08 07:07:54 ActivityB* implements Aug 08 07:09:05 this sucksssss Aug 08 07:09:09 uggh Aug 08 07:09:10 i am giving up Aug 08 07:09:53 detachYo the fragment defines the listener typically (for the fragment) Aug 08 07:10:02 any activity that uses that fragment would implement it Aug 08 07:11:46 yup Aug 08 07:11:50 exactly what I have Aug 08 07:12:00 so basically, I have an activity that has fragment containg timepicker Aug 08 07:12:13 i need to set different timepicker if it is passed to activity from previous activity Aug 08 07:18:47 last attempt Aug 08 07:19:47 YES! it worked Aug 08 07:20:06 There is nothing I can't do. Aug 08 07:21:03 :) Aug 08 07:23:08 exceppt setting timepickers correctly Aug 08 07:30:56 g00s: do you reside in the US? Aug 08 07:31:54 detachYo yes Aug 08 07:32:07 but its late here, going to bed Aug 08 07:32:10 gnight Aug 08 07:35:16 g00s: same here, me too. good night Aug 08 07:35:31 good night, people from the past Aug 08 07:36:24 Leeds gnight ;) Aug 08 07:36:37 Leeds: goodnight Aug 08 07:52:37 hey guys, i`m having a weird situation while adding appWidgets to my app: A few configurable appWidgets only get added to my layout if i run in debug mode, but not if i run without debug mode. what could be reasons for issues not happening in debug but in run mode? Aug 08 07:53:26 also a certain breakpoint has to be set Aug 08 08:26:05 If I have a chat messages in a database (with read receipts etc), and a listview with an adapter to display them, how should I be handling updates? At the moment I am grabbing all the messages from the database, clearing the arraylist that holds them, then readding them all, and then doing notifydatasetchanged. Should I be pulling it all from the db, and then just adding the ones that are new, and look Aug 08 08:26:07 in the db for ones that used to not have full read receipts, and seeing if they have them now, and just updating them? Or should I be sending more customized sql queries, like asking the count to see if there are any new messages, then asking for all the messages newer than the last one you had, and then asking the database for all the messages that previously you didnt have read receipts for, and Aug 08 08:26:09 checking if they do now? What is the usual way you would handle this? Aug 08 08:28:51 vozz: dont use arraylist to pull the whole db contents, use cursoradapter instead Aug 08 08:29:23 What does cursor adapter do? Aug 08 08:30:28 does it automatically update when the database changes? Aug 08 08:31:40 anyone have source building experience? Aug 08 08:32:52 stuck on brunch...unofficial build. Aug 08 08:34:23 vozz: it wont update automatically, you have to call notifyDataSetChanged Aug 08 08:35:27 if you use arraylist, all your db contents are unnecessary occupy more memory. CusorAdapter is built specifically to reduce this memory overhead. It will fetch records that are showing on screen Aug 08 08:35:42 Okay... would that make it easier to do animations on for example something being inserted? As it is with how I'm doing it currently, everything is being removed and readded so I don't really have a proper way to animate the new things, without going through and checking for differences between the old and the new Aug 08 08:35:53 Ah nice Aug 08 08:35:55 that sounds great Aug 08 08:36:02 thanks a lot Aug 08 08:43:48 Does anyone know of an open source app that uses pitch and roll? Aug 08 08:43:56 I can't seem to get it working properly Aug 08 08:44:43 compac, Chainfire can probably help you, I think he fixed that for something he was working on Aug 08 08:45:23 so. i now that i should not ask questions about asking a question. But what is the level of allowed questions, noob wise that is accepted here ? Aug 08 08:45:30 Thanks autrilla. Chainfire can you help? Aug 08 08:45:45 I'm having trouble calculating pitch and roll Aug 08 08:46:13 uhlm, if you're lazy and are asking questions answered on first page of doc Aug 08 08:46:20 we'll cuss you out and put your cat on fire. Aug 08 08:46:43 whois Aug 08 08:47:28 hi https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY&fields=items(id,snippet(channelId,title,categoryId),statistics)&part=snippet,statistics how can i get it? [11:45] i have clientid in google dev Aug 08 08:48:13 Mavrik: got it.. thx Aug 08 08:48:27 But everything else is fine ;) Aug 08 09:09:27 hi guys how can i specify API_KEY in this request? the fields are not affecting it https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?_h=20& [12:07] i need to be able to manipulate this field {YOUR_API_KEY} Aug 08 09:11:27 i have a app that loads a image based on a number in a list. i want to load the numbered image from URL and then have it destroyed and load the next image when the user navigetes to the next image. Aug 08 09:11:27 i am not sure what the best approach is to do so. i am VERY new to android Aug 08 09:13:21 ocx: http://www.youtube.com/watch?v=Im69kzhpR3I&t=2m0s Aug 08 09:13:52 uhlm: use picasso https://github.com/square/picasso Aug 08 09:13:54 bhargavg: iwatched that Aug 08 09:14:12 i need to provide the api key here https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?_h=20& Aug 08 09:14:18 i am not able to provide it Aug 08 09:15:55 ocx: are you using any client? Aug 08 09:16:11 bhargavg: want it to work as GET request for now Aug 08 09:16:16 later on will use auth2 on android Aug 08 09:17:11 ocx: https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?_h=20&key=PASTE_YOUR_KEY_FROM_GOOGLE_DEV_HERE Aug 08 09:17:58 ocx: sorry, wait, not that Aug 08 09:17:58 bhargavg: that looks useful. i have also had a look at lazy list that is a similar APi i think. i have my program fully working in Java, and there i have a method that forms a URL like: http://adress.com/images/***.jpg Aug 08 09:17:59 where the *** inserts the number coming next. it is a bit primitive way of doing loading an image each time. But is it possible to do the same in Android? Aug 08 09:20:01 ocx: which endpoint you want to hit? Aug 08 09:20:11 bhargavg: youtube Aug 08 09:20:22 create streams/ list streams on an account Aug 08 09:21:03 ocx: not really sure Aug 08 09:21:09 uhlm, yes you could just load the image and create imageview everytime, although that's quite inefficient Aug 08 09:21:15 bhargavg: keep it simple Aug 08 09:21:23 do it on any endpoint u desire Aug 08 09:21:40 uhlm, as soon as you detach the old imageview the GC should eventually clean it up Aug 08 09:22:29 ocx: click on execute button at the bottom of this URL https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?_h=20& Aug 08 09:22:36 ravilov: if i did it using the hardcoded method i mentioned ? Aug 08 09:23:00 bhargavg: "message": "Required parameter: part", Aug 08 09:23:01 ocx: you'll see the complete GET url used for that request, have you checked that? Aug 08 09:23:05 yes Aug 08 09:23:21 https://www.googleapis.com/youtube/v3/videos?key={YOUR_API_KEY} Aug 08 09:23:38 if i provide the api key it doest work if executed in a browser Aug 08 09:23:47 ocx: put part as snippet in the textfield Aug 08 09:23:59 what do you mean? Aug 08 09:24:04 uhlm, yeah I think Aug 08 09:24:29 i didnt get it bhargavg Aug 08 09:24:38 i will try it that way then. and look into the API methods later. thx ravilov Aug 08 09:24:56 ocx: in this page https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?part=snippet&_h=1&, there is a textfield for part right? Aug 08 09:25:09 put "snippet" with out quotes in that field and hit execute Aug 08 09:25:13 bhargavg: http://pastebin.com/jrPa7gi6 Aug 08 09:26:00 ocx: yes, i also got the same error. I think we are missing some required parameter Aug 08 09:26:12 :/// Aug 08 09:27:45 bhargavg: i think the apikey is self generated Aug 08 09:28:08 bhargavg: got it Aug 08 09:28:36 ocx: got it Aug 08 09:28:43 bhargavg: please share :) Aug 08 09:28:43 ocx: https://www.googleapis.com/youtube/v3/videos?part=id&id=7lCDEYXw3mM&key={YOUR_API_KEY} Aug 08 09:29:02 replace {YOUR_API_KEY} with your api key Aug 08 09:29:23 from where did you get the id? Aug 08 09:29:35 :) just a random video id Aug 08 09:29:58 http://pastie.org/9455300 Aug 08 09:30:09 but usually what is the video id Aug 08 09:30:39 ocx: if you open any video in youtube, the url will be like youtube.com/watch?v=VIDEO_ID Aug 08 09:31:13 ocx: i think you are having KEY issue, the same request is working from https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?part=id&id=7lCDEYXw3mM&_h=2& Aug 08 09:31:24 bhargavg: Client ID for web application and then choose the client secret as api_key right? Aug 08 09:32:00 not client secret, i thik API_KEY will be specifically mentioned there Aug 08 09:32:53 bhargavg: how did you get ur api_key Aug 08 09:33:00 i cant find it in google console Aug 08 09:33:49 ocx: i didnt get mine. Please click this link http://www.youtube.com/watch?v=Im69kzhpR3I&t=2m0s its there in their site Aug 08 09:35:00 bhargavg: do you have something called API ACCESS on your google console!?!? Aug 08 09:36:15 ocx: sorry, i havent opened google console, i was just looking at videos and api explorer Aug 08 09:36:33 this video seems outdated Aug 08 09:36:37 i dont see any api access Aug 08 09:39:00 ocx: also, i dont think simple GET request will be enought. I'm seeing OAUTH Aug 08 09:39:24 so API_KEY is a token retrieved internally Aug 08 09:39:31 u cnanot see it Aug 08 09:40:08 i`m goin nuts here, why can something work in debug but not in run mode? Aug 08 09:40:39 Proguard? Aug 08 09:41:26 ocx: not like that API_KEY will be visible, but its a bit more complex than simple GET request, if they are using OAUTH. Not sure whether they are really using it Aug 08 09:42:09 so u cant query ur account using simple get Aug 08 09:42:17 where apikey is a constant Aug 08 09:55:41 bhargavg: https://developers.google.com/youtube/v3/guides/authentication#server-side-apps Aug 08 09:55:43 a good read Aug 08 10:05:43 I'm not yet using eclipse. I'm trying to debug an app that crashes on startup. How would I go about debugging that? Aug 08 10:06:20 Should I be launching the app with jdb or something attached? Aug 08 10:08:03 check your logcat Aug 08 10:08:20 every force-close is always documented in there Aug 08 10:12:31 i'm trying to write a log of timestamp and an int to a text file, i am new to android+java and i am likely doing a stupidity error :) the app crashes on the device, but i can't spot any error http://pastebin.com/F2bYq86E Aug 08 10:15:14 ravilov: Oh, yeah. I expected it to be but couldn't find it. Turns out it was just buried under a bunch of lines about sounds and stuff. Aug 08 10:18:44 Moult: did you set in manifest? Aug 08 10:19:06 bhargavg: yes. Aug 08 10:19:44 Moult: paste the complete trace Aug 08 10:20:05 I am using percentage-specific layout width/height for elements so they scale on higher screen sizes Aug 08 10:20:12 what can I do to make it scale for the text? Aug 08 10:20:23 bhargavg: i am not sure how to get a complete trace :\ (noob disclaimer) Aug 08 10:20:44 open logcat, your crash will show as read Aug 08 10:23:02 bhargavg: the first time loading up an android vm should it be very slow? i am seeing the android loading animation but it hasn't changed for a while Aug 08 10:24:37 sqwishy, yeah the logcat can get quite noisy, filters might help with that Aug 08 10:26:17 Moult, at first glance I can just say you don't need file.createNewFile() - the FileWriter will create the file if necessary Aug 08 10:27:37 Moult, also yeah, "it crashes" is not helpful at all, there's always a specific reason that can be found in logcat, if you're unfamiliar with logcat better get familiar ASAP as that might just become your new best friend Aug 08 10:28:51 ravilov: yeah, i realise it crashes is a useless phrase, hopefully if this avd boots up i can actually view logcat :) Aug 08 10:29:44 you can view logcat on any android, including real devices Aug 08 10:29:55 ravilov: oh? how? Aug 08 10:29:56 adb is the next tool to get familiar with Aug 08 10:30:32 yeah there is nothing so special about the emulated device that isn't present on a real device Aug 08 10:32:13 * Moult googles around Aug 08 10:33:36 platzhirsch: more often than not you dont want to scale the text. Thats why fragments are used to offer richer UIs on higher resolutions - but text should stay the size selected by the user. Aug 08 10:34:09 rgr: mhm, yeah that's the argument for sp and it makes sense Aug 08 10:34:30 but this sounds more like text for actual text and not like labels which are more UI elements Aug 08 10:44:20 labels are readable texts ;) Aug 08 10:45:07 I know there#s a plethora of approaches to scaling text in stack overflow along with the usual admonishments as to why you shouldnt (as in scale the view as opposed to select a new font metric). Aug 08 10:45:57 rgr: yeah :) read over them over and over again, and okay, point taken Aug 08 10:46:28 why need rx.Observable ? Aug 08 10:46:29 but then again you face yourself with the specification, that the label you want to design should take up 70% of the layout area and then you are just not done with setting it to whaterver sp Aug 08 10:49:49 How do I animate new elements in a cursoradapter? Aug 08 11:23:17 Guys the revolutionary "Spacing effect" app has been released give it a try if you have time https://play.google.com/store/apps/details?id=com.bigfootsoftwares.note any feedback would be really great Aug 08 11:27:08 Hello Aug 08 11:28:34 Guys I've got a quick questions, could someone help me? I was wondering what does the "?" sign mean in android xml layouts. For example: style="?android:textAppearanceMedium". Thanks Aug 08 11:34:40 Ekami, It means the attribute is picked up from the current theme, whichever it might be Aug 08 11:34:59 I believe they are xml processing instructions I think. so XML rather than android specific. Ive never used them knowingly so no idea further. Aug 08 11:35:31 So if you can specify a WhiteTheme and a NightTheme, each of those themes will have different styles as well. Aug 08 11:36:10 ?android:textAppearanceMedium is asking it to pick the textAppearanceMedium attribute from the theme that is currently applied to the activity Aug 08 11:37:31 Further reading: http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes Aug 08 11:38:08 Thanks lut4rp, but why is it specified, doesn't the default theme activity is applied to all components? Why making a this as the default activity theme will be applied to the text? Aug 08 11:38:22 lut4rp, oh ok, thanks, I'll take a look :) Aug 08 11:38:57 "Referencing a style attribute allows you to customize the look of UI elements by styling them to match standard variations supplied by the current theme, instead of supplying a hard-coded value." Aug 08 11:39:25 ok, it's more clear now, thank you :) Aug 08 11:39:25 hey all, if I run the server that is displayed in my webview, can I add some of those website assets to my app locally to help it load quicker? Aug 08 11:40:30 Jesperhead: run the server in web view? I didnt understand Aug 08 11:40:57 ah, quite simple sorry for any confusion. I simply mean that I have a webview that contains a website, and I also happen to run the site Aug 08 11:41:11 "displayed in my web view". Aug 08 11:41:30 server html content. Aug 08 11:45:01 how can i watch debugging output when running code on my android ? Aug 08 11:45:37 if i have this in my strings.xml : %1$s Aug 08 11:45:37 and my onCreate method contains this: String textLine = "attempt to add text from elsewhere"; Aug 08 11:45:37 String text = String.format(res.getString(R.string.dynamic_test),textLine); Aug 08 11:45:43 ocx: eclipse or android studio should allow you to do that in the IDE, you can also try a phone app like catlog, but I think they limited that back in jellybean Aug 08 11:46:07 Jesperhead: i am using vim no IDE Aug 08 11:46:20 ocx: then run adb logcat in terminal Aug 08 11:46:22 should it not add the textLine content to my dynamic_text ? Aug 08 11:46:24 Jesperhead: maybe adb logcat? Aug 08 11:46:41 yep. as bhargavg said Aug 08 11:46:43 bhargavg: will it show log of the "ACtive" device? Aug 08 11:46:54 i dont have much cli experience under my belt Aug 08 11:46:59 I am getting some strange behavior on one of my 4.3 devices, we have other decives of same model/make and they are not showing this problem. When I check Environment.getExternalStorageState() I get that it is mounted, but when I do Context.getExternalFilesDir(null) I get that it is null, I tried with DIRECTORY_DOWNLOADS as well, but still null Aug 08 11:47:00 yes Aug 08 11:47:04 means if i have my phone connected, phone will be showns if i have the emulator the emulator will be shown? Aug 08 11:48:13 Jesperhead: if you want to load images from assets folder in webview, this will work i guess. Haven't tested though. So, you might need to do some parsing in Native wrapper to replace server image paths with local ones Aug 08 11:48:26 thank, yeah i just came across that too Aug 08 11:48:33 i think thats the easiest bet Aug 08 11:48:39 bhargavg: i am using phonegap to write android so this should be seen in console log? Aug 08 11:48:51 ocx: yes Aug 08 11:49:59 ocx: if you want to reduce noise in logcat use this http://stackoverflow.com/a/14965699/815540 Aug 08 11:50:28 bhargavg: you familiar iwth phonegap? Aug 08 11:50:36 ocx: yes Aug 08 11:52:46 bhargavg: http://pastebin.com/xyGajnTK Aug 08 11:53:00 mihalybak: are you getting any exception? Aug 08 11:53:37 mihalybak: well, no but I need to get external storage some how Aug 08 11:53:38 adb logcat | grep -i Pat doesnt return anything when i do cordova run android Aug 08 11:53:50 bhargavg: well, no but I need to get external storage some how Aug 08 11:53:55 bhargavg: the program just runs in the emulator Aug 08 11:54:51 bhargavg: think I found the problem now :/ it seams the "external storage" gets mounted on the computer I am using :P How am I suppose to debug the problem then? Aug 08 11:54:52 bhargavg: if i do adb logcat i see lot of output when the emulator fires upo Aug 08 11:56:42 put your pattern in quotes ocx, maybe, i do alot of logcat|grep "PATTERN" with windows command line Aug 08 11:56:43 How do you do a layout transition / animation for new views in a listview? I want them to slide in from the bottom, but at the moment as im doing it with a normal animation, it suddenly creates a blank space and moves everything else up, and then slides in from the bottom. Aug 08 11:57:01 ocx: http://www.raymondcamden.com/2012/5/10/Setting-up-console-debugging-for-PhoneGap-and-Android Aug 08 12:03:37 can someone help me on this? Aug 08 12:03:38 http://stackoverflow.com/questions/25201914/appwidgethostview-get-added-to-layout-only-in-debug-mode-concerns-a-few-configu Aug 08 12:06:03 bhargavg: can you run that code on ur end? i cant find any match Aug 08 12:06:44 ocx: sure, but i might take 30 min. I dont have device at my desk Aug 08 12:08:05 i am using an emulator Aug 08 12:24:12 Using eclipse, I am having trouble with linking classes. I have written a library which has a few dependancies. I have ticked all the libraries in order and export, and been trying different orders for the past half an hour but I can't get it linking. Any ideas? Aug 08 12:24:35 Link of class 'Lcom/flurry/sdk/bm;' failed Aug 08 12:26:17 It's making me crazy Aug 08 12:27:30 bhargavg: any updateS? Aug 08 12:29:43 hey bhargavg, going back to our earlier discussion, you mention tossing the assets into the assets folder, which is no longer automatically generated. Do you know what level of the directory tree that folder should go in? I suspect the same level as java and res but not 100%. Im in an AS project Aug 08 12:31:49 Jesperhead: you can create any folder structure inside assets. I recommend creating assets/www as root and mirroring same structure as there on server. But are you sure you want to go with this approach? Aug 08 12:32:41 bhargavg: I meant the placement of the assets folder itself Aug 08 12:32:55 its not auto gen'd so im not sure where i should create it :D Aug 08 12:34:04 go ahead and create src/main/assets/ Aug 08 12:34:15 and yeah... i think its the best way. just download the assets. I can modify the source code of the website even to match any structure i set up (which would be easier, the site is dedicated to the webview) Aug 08 12:34:31 thanks Aug 08 12:39:05 bhargavg: :(((( Aug 08 12:40:22 ocx: sorry, i'm back at desk. testing it now Aug 08 12:40:37 bhargavg: should i configure something in the settings of the emulator? Aug 08 12:41:33 no, no configuration is required Aug 08 12:44:01 Hey , My android emulator on eclipse on starting opens just a blank screen Aug 08 12:45:46 bhargavg: using linux? Aug 08 12:46:17 on mac now Aug 08 12:49:05 help... Aug 08 12:49:30 Unable to start activity ComponentInfo http://pastebin.com/7vXE8DXa Aug 08 12:49:31 bhargavg and ravilov sorry for the long reply, internet messed up. the issue was that Environment.DIRECTORY_DOCUMENTS isn't supported yet in API 15 which i had to support :) thanks very much for your help! Aug 08 12:49:34 Unable to start activity ComponentInfo http://pastebin.com/7vXE8DXa Aug 08 12:54:14 Is there anybody online tonight that has knowledge on linking native libraries? I'm having a big problem trying to link in the protobuf into my Android project Aug 08 12:54:21 this is the linking error I get when I try to load the lib Aug 08 12:54:24 Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 37 cannot locate 'strtof'... Aug 08 12:54:51 is this a dynamic lib linking issue? Aug 08 12:55:38 help with his... Aug 08 12:55:40 Unable to start activity ComponentInfo http://pastebin.com/7vXE8DXa Aug 08 12:56:06 android-valder, yes Aug 08 12:56:14 you REALLY should statically compile libraries for Android Aug 08 12:56:53 hackable: whats you minimum sdk? Aug 08 12:58:23 Bhargavg min sdk is 14 Aug 08 12:58:50 hackable, read your error messages. Aug 08 12:58:53 Caused by: java.lang.NullPointerException Aug 08 12:58:56 at com.cbcmobileapp.emea.MainActivity.setTitle(MainActivity.java:227) Aug 08 12:59:01 what is unclear about that? Aug 08 12:59:32 what happen was that... i copy the class from eclipse to android studio Aug 08 12:59:44 and after running it.. it generate this error for me Aug 08 12:59:49 in android studio Aug 08 13:00:02 and? Aug 08 13:00:09 start thinking about the error message and cause Aug 08 13:00:16 it's very clear. Aug 08 13:00:42 yeap, there's no error... it run on eclipse Aug 08 13:00:44 you're trying to call something on null in MainActivity line 227 Aug 08 13:01:36 the code in 227 is getActionBar().setTitle(mTitle); Aug 08 13:02:34 i'm using getActionBar() Aug 08 13:03:59 all this stuff work in Eclipse... sick! Aug 08 13:04:09 Has anyone used different manifests with gradle build flavors? Aug 08 13:04:24 bhargavg: still no good Aug 08 13:04:36 ocx: ya, i'm also not getting any console log statements Aug 08 13:04:37 strange Aug 08 13:04:45 Could someone give me a lift? I've been banging my head against the wall for another half hour and I'm afraid it's going to start bleeding Aug 08 13:04:45 but i used to get those Aug 08 13:04:58 ocx: if you have real device you can do one thing Aug 08 13:05:11 there is a distinct lack of coffee here too -_- Aug 08 13:05:46 ocx: do you have device with you? you can debug your javascript if you have one Aug 08 13:05:50 maybe that's why it isn't working... Aug 08 13:06:16 bhargavg: yes i do Aug 08 13:06:17 hackable: use the debugger for the nth time of telling. Aug 08 13:06:17 @Mavrik, this happens when I try to link to protobuf lib. All the instructions on how to compile protobuf generate shared libs Aug 08 13:06:50 tommy_the_dragon, try using a hammer? Aug 08 13:06:54 basilisk_: no, there is not a single person who has every used them :) (its better to ask the question you want answered) Aug 08 13:06:55 (or describing the problem) Aug 08 13:07:27 could it be a conflict? because I am getting: Failed resolving Lcom/flurry/sdk/bo; interface 2118 'Lcom/facebook/ads/InterstitialAdListener;' Aug 08 13:07:29 bhargavg: tell me how to do it Aug 08 13:07:35 Mavrik: it's getting to that stage Aug 08 13:08:07 Is it possible to override the display screen mode from within my app? On e.g. a samsung s3 the Standard mode makes my drawables not display the correct brand colors. Using movie mode seems to display the correct ones Aug 08 13:08:19 ocx: connect your device, enable debug settings, open google chrome on your PC/mac/linux. tell me when you reach here Aug 08 13:08:48 rgr: how? Aug 08 13:08:49 tommy_the_dragon, so, what's the actual issue? Aug 08 13:09:51 I'm getting failed class link errors for flurry and the test ad is not showing Aug 08 13:10:08 how to use the debugger? Are you serious? You're moving to AS from eclipse, keep saying how it "works in eclipse" and you cant google up or bring up the instructions on how to run the debugger? You're on your own there mate! ;) Aug 08 13:10:44 https://developer.android.com/sdk/installing/studio-debug.html Aug 08 13:11:04 I have an android project depending on a library I'm writing that references facebook and flurry SDKs. Aug 08 13:11:31 I've done order and export. Aug 08 13:11:31 Mavrik, if you recall from the other night, I couldn't get nm to output anything from any of my so files I generated. Well after throwing in -D flag I was able to see some output. in it the function mentiond above was listed. but with an "U" next to it. I learned that means I must be missing a lib somewhere. I can't figure out how to get it included Aug 08 13:12:03 if i want to use an external library like Picasso. Do i "just" add the .jar file to the "External Libraries" in my Android Studio project ? Aug 08 13:12:20 android-valder, first figure out which library contains the symbol Aug 08 13:12:23 uhlm: you need to edit the gradle file Aug 08 13:12:25 android-valder, then make sure you have it included Aug 08 13:12:31 android-valder, then make sure you call System.loadLibrary FIRST Aug 08 13:12:46 remember, Android's ld loader does not resolve dependant libraries Aug 08 13:12:47 uhlm: you can download the jar yourself, but i prefer making gradle do that for you Aug 08 13:12:49 I thought I did in my latest build but no go... "libc" Aug 08 13:13:16 Not able to set height using fill_parent in scrollview event though having fillViewport=true ? any suggestion pls Aug 08 13:13:50 android-valder, um... no, sorry, it can't be libc Aug 08 13:13:52 uhlm: add this line in your gradle file compile 'com.squareup.picasso:picasso:2.3.3' Aug 08 13:13:59 android-valder, unless you're compiling with wrong toolchain. Aug 08 13:14:43 well the so files don't output unless I use the arm toolchain so I think I'm using the right tool chain Aug 08 13:15:03 Say you have some login system in your app, and you want to prefill the user/pass edittext's with the users most recent successful login details. Where would you store this data? Is there anything more secure than SharedPreferences you could use? Aug 08 13:15:46 on iOS you would use the keychain, which also has the benefit of syncing the data across devices Aug 08 13:15:50 Mavrik: (btw, I'm still using ndk-build, using the existing makefiles doesn't seem to work, I didn't write them and the guy who did recommended I not use them since they don't conform to any standard way) Aug 08 13:17:11 I need an opinion on an architecture question. Say I have two different lists, a favorite and a search list, backed by the same data type. clicking one of the items takes you to a detail page. now I am doing a master-detail in the detail activity. do you think it would be okay to use one activity, and just conditionally inflate the proper list? Aug 08 13:17:14 ** I followed a suggestion from this post http://answers.opencv.org/question/14881/hidden-symbol-__aeabi_atexit-in-is-referenced-by/ thinking that I may have to do this as well.. (APPSTL:= .. ) Aug 08 13:17:18 still no go Aug 08 13:20:18 ^^ same linking error Aug 08 13:26:48 ok so i enabled android debugging on my phone Aug 08 13:26:52 and did chrome://inspecty Aug 08 13:26:56 i can see my phone Aug 08 13:26:58 what then? Aug 08 13:29:02 Why does the developer preview of Google Fit require android L, when Google fit is supposed to be backwards compatible to android 9? -.- Aug 08 13:29:11 2.3 Aug 08 13:29:42 Probably uses new APIs when running on L Aug 08 13:31:31 meh, I want to try it out, but I'm not allowed to flash android L on our test phones :( Aug 08 13:31:35 at least for now Aug 08 13:33:15 best practice question. my app is essentially a listview of streams where when you tap on a stream it shows the details (whats playing, etc) and from the details one can launch the channel which basically just opens the stream url in mediaplayer. in the app options a user can configure to play the stream as rtsp or hls, low quality or high. Aug 08 13:33:45 where should i place the logic for building the url? in one of the fragments or a separate class thats meant to take what is in the settings and return a url for the mediaplayer? Aug 08 13:34:30 Mavrik: ideas? Aug 08 13:42:43 @rgr do you have any ideas that can help me? Mavrik suggested I only create static libs. I just updated my make files to create static instead of shared and I still get the same issue Aug 08 13:44:12 strtof probably isn't in bionic Aug 08 13:46:54 or of it is you're linking the wrong thing Aug 08 13:47:21 no idea whatsoever. sorry. Aug 08 13:47:22 eg, using glibc and not bionic Aug 08 13:48:26 the thing is, the lib shouldn't even compile against a bionic libc if he calls out to something that doesn't exist :/ Aug 08 13:49:27 lack of info makes helping impossible Aug 08 13:50:23 mhm Aug 08 13:50:39 hi Aug 08 13:51:03 how i can create a custom share filter email ? Aug 08 13:55:02 hi all, having trouble installing android platform in cordova, i have installed ANT and added it to my windows variables and path but it keeps telling me it can't find it. Aug 08 13:55:40 when I run 'ant' from command line I get: ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME Aug 08 13:55:53 Mavrik: this is the error I get when I change all my shared lib output to be static: Aug 08 13:55:53 dlopen("/data/app-lib/com.highlightcam.refapp-2/libprotobuf.so") failed: dlopen failed: cannot locate symbol "strtof" referenced by "libprotobuf.so". Aug 08 13:56:20 ant is env var is set to %ANT_HOME%\bin, when I remove the \bin 'ant' can't be found. Aug 08 13:56:25 android-valder, https://code.google.com/p/android/issues/detail?id=12611 Aug 08 13:56:26 this might not be the best place to ask but it is related to an app... when you're connected to a cell tower, what kind of ip do you get issued? ipv6? Aug 08 13:56:36 Jesperhead, depends on the network Aug 08 13:56:48 alot of new networks use ipv6 or dual-stack Aug 08 13:56:57 Mavrik: revision: can you think of any networks that would use ipv4? Aug 08 13:57:01 major networks* Aug 08 13:57:41 regardless, thanks for the input Aug 08 13:58:07 Jesperhead, well I'd say most of the networks use ipv4 still :) Aug 08 13:58:59 interesting, I never really dug around and always assumed it would *not* be ipv4 Aug 08 13:59:23 it mostly is, at least here locally operators use NAT-ed ipv4 Aug 08 13:59:29 even though ipv6 was spotted as well Aug 08 13:59:36 cool, should help Aug 08 14:00:21 @Mavrik: so how do I ensure that the stdlib is loaded/compiled with my package? do I just add to the list of LOCAL_STATIC_LIBRARIES += stdlib? Aug 08 14:00:58 just look at ifconfig on a device Aug 08 14:01:42 Docmarten, ant home is not what you put on your path Aug 08 14:03:33 finally infinite 2d scrolling working properly and efficiently. phew. Aug 08 14:03:53 pfn: var %ANT_HOME% = C:\Program Files\ApacheAnt\apache-ant-1.9.4\bin Aug 08 14:04:11 no bin Aug 08 14:04:18 bin is not home Aug 08 14:04:28 I have a father fragment. in its xml view there is a child with a certain tag. when I call getFragmentManager().findFragmentById(R.id.childfragmentid) I get null. Why? Aug 08 14:04:42 when I remove bin and try to execute 'ant' the system can't find it. Aug 08 14:05:02 Yes child fragment has been created and I can see it. Aug 08 14:05:06 ah ah, i think i got what you are saying...one sec Aug 08 14:05:08 so put bin in your path, not ant home Aug 08 14:05:10 duh Aug 08 14:06:49 pfn: exactly. don't know what I was thinking. only on my 2nd cup of java (no pun intended) Aug 08 14:06:51 or I usually just copy crap like ant.bat to my home/bin Aug 08 14:07:01 gdrc: isn't there a Child Fragment manager or something Aug 08 14:07:15 now I get the other error, can't locate tools.jar - read about this one a few times. Aug 08 14:07:17 lemme check Aug 08 14:07:35 Docmarten, you don't have a jdk installed Aug 08 14:07:52 gdrc: just a quick google, didn't vet it, http://stackoverflow.com/a/11020531 Aug 08 14:08:24 waiting because of as going crazy Aug 08 14:08:32 off it's meds? Aug 08 14:09:19 I have AndroidSDK and standard Java installed, but I am guessing standard Java isn't the JDK I need. Aug 08 14:09:25 Hi! I am curious if this is possible: to have an open/listening socket for a UDP packet in a Service that's always running? Basically, I'd like to always be able to respond if there's an incoming UDP packet on a given port (even if none of my app's activities are open) Aug 08 14:10:02 swulf--, that's... practically never what you want to do Aug 08 14:10:06 what is standard java Aug 08 14:10:19 you either have a jre or a jdk Aug 08 14:10:19 swulf--, and you'll have to kill battery of the device in matter of hours to keep the radios active Aug 08 14:10:58 but it the service is for that then.... thats what you need. maybe the device is plugged in... ;) Aug 08 14:11:12 I have: C:\Program Files\Java\jre7\lib\ installed, but tools.jar is not in it. Aug 08 14:11:42 jre!=jdk Aug 08 14:11:55 yes, notice how that says jre Aug 08 14:12:01 you need a jdk Aug 08 14:12:04 gotchya Aug 08 14:12:14 very new to Java...obviously Aug 08 14:12:16 Mavrik: So a service like "sshd" would drain battery life? Aug 08 14:12:30 swulf--, well by default it wouldn't work Aug 08 14:12:35 because the network would be down Aug 08 14:12:48 I'm particularly asking in the case of a local wifi LAN Aug 08 14:12:57 and when you'd request wakelock to keep the wifi radio running it would kill your battery in matter of hours Aug 08 14:13:12 of course, you'd have to be running the main ARM as well to receive data Aug 08 14:13:16 Mavrik: how is it possible for simple icmp ping to work then? Aug 08 14:13:16 :) Aug 08 14:13:39 swulf--, when does it work? Aug 08 14:13:45 and what state is the device in? Aug 08 14:13:55 canvs2321: doesnt work Aug 08 14:13:56 and which device and what are your wifi sleep settings? Aug 08 14:14:01 I get null Aug 08 14:14:04 hi guys Aug 08 14:14:19 I can ping my phone and it responds. Screen's off. Connected to WiFi. S Note 3 Aug 08 14:14:33 back with the same sort of query :) I'm looking for a way to force a recording through the Jack 3.5 m, or through the default mic, depending on whether the jack was plugged or not Aug 08 14:14:58 right now I am able to detect when the jack is plugged, but on S4 for example, recording keeps happening from MIC, I want it to start happening from Jack input (through the guitar) Aug 08 14:15:22 swulf--, it's... not that simple :) Aug 08 14:15:49 It seems to me like there should be an intent-filter for UDP packets on a given port Aug 08 14:16:04 Launch a service/activity when a datagram packet arrives, respond, exit Aug 08 14:16:41 I mean, how does adbd run if a listening service would kill battery life? Aug 08 14:16:57 gdrc: you should paste some code&stacktrace. You typing of "i get null" everytime doesn't really help at all with ppl that maybe able to help you Aug 08 14:17:10 swulf--, adbd has to be enabled. Aug 08 14:18:56 Right. But if the phone is connected to a network, the radio isn't "off", it's just a low power state when it's not transmitting data. Listening on a UDP port requires no transmitting of data Aug 08 14:19:25 I really don't know what you're arguing here. Aug 08 14:19:46 You cannot run a listening process on default android. Aug 08 14:20:05 Android will shut down your main ARM core and stop your service if you're doing listening with Java socket and you will not get data. Aug 08 14:20:25 To get reliable delivery you will have to keep a wakelock or (perhaps) do it via TCP. Aug 08 14:20:38 hmm Aug 08 14:20:38 Running main ARM core will burn your battery quickly. Aug 08 14:21:42 does the fragment constructor need to always be empty, or can you use it if you are subclassing a fragment? Aug 08 14:21:46 "Running main ARM core" makes no sense. recvfrom() is a blocking call that in linux will put the thread to sleep until data comes in. Aug 08 14:21:56 canvs2321: http://pastebin.com/jKjR5BVE Aug 08 14:22:04 I'll seek out alternatives. Aug 08 14:22:21 swulf--: and when the cpu goes to sleep it goes to sleep by stopping completely, meaning that on wakeup you'll find your connection had timeouted Aug 08 14:22:57 "running on main arm core" is simply a bad way to explain it Aug 08 14:23:08 p_l: "connection had timeouted" makes no sense when referring to UDP. Aug 08 14:23:16 UDP is connectionless. Aug 08 14:23:31 gdrc: did you ever add the fragment to your parent fragment? does it have to be transacted before you can find it by id? Aug 08 14:24:04 swulf--: ahh, there was mention of TCP that mislead me. However, remember that unless you take a wakelock, you won't receive anything when the device is asleep (and it won't be woken up). You might also have issues with IP address changing Aug 08 14:24:15 canvs2321: the child fragment it's created and I can see it so yes Aug 08 14:24:16 anyone? Aug 08 14:24:25 swulf--: and adbd does destroy battery time : Aug 08 14:24:26 guitar jack as input for recording audio? Aug 08 14:24:26 :P Aug 08 14:24:34 can you force it explicitly? Aug 08 14:24:56 p_l: does it? Aug 08 14:25:04 swulf--: yes Aug 08 14:25:32 huh, how is UDP connectionless? I thought it still needs two endpoints and for the endpoints to know about each other Aug 08 14:26:09 swulf--: it's just better on newer devices because just listening on TCP socket with phone screen off and really low cpu use (comparatively) mean it takes a trickle in comparison to just having the screen on :) Aug 08 14:26:18 ravilov, that's not what "connection" term in TCP context means. Aug 08 14:26:31 ravilov: "knowing how to deliver a datagram" and "connection-oriented protocol" are two different things Aug 08 14:26:45 gdrc: i'm saying you usually have todo, Fragment myFragment = new MyFragment(); FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); transaction.add(R.id.my_fragment, myFragment).commit(); Do you not to add it to the manager? Aug 08 14:26:52 anyway, it seems that there's bunch of chipsets out there that will not issue an interrupt when they receive an UDP packet while CPU is deep sleep Aug 08 14:26:53 ok, sorry Aug 08 14:27:07 canvs2321: you dont have to do that if you work with xml fragments. Aug 08 14:27:15 (mostly Broadcom branded) so even if you keep the network wakelock on you won't receive any network packets Aug 08 14:27:18 ah ok Aug 08 14:27:40 maybe someone else will be able to shine some light on it for ya, i'm just throwing guesses :) Aug 08 14:28:03 how i can set only emails apps in share intent ? Aug 08 14:28:32 Mavrik: given that they should issue interrupt on *802.3* frame, not IP frame... :D Aug 08 14:28:46 I guess I need to find some alternative to what I want to do. Aug 08 14:28:55 p_l, yes, it's wierd Aug 08 14:29:03 but they actively filter for UDPs and throw them away Aug 08 14:29:07 to "keep the battery drain low" Aug 08 14:29:26 can be worked around if you use root access to reload the kernel module with a different flag :P Aug 08 14:29:31 ... Aug 08 14:29:35 swulf--, 1.) GCM is the primary mean of doing that Aug 08 14:29:46 t0th_-: is your google broken? There are tons of examples Aug 08 14:29:53 thanks Aug 08 14:30:00 i am on google, master Aug 08 14:30:04 swulf--, 2.) You can use the same thing GCM uses: long running TCP connection with long timeout Aug 08 14:30:08 sorry, you are the man :_) Aug 08 14:30:37 receiving packets on recv() blocked call will wake up the CPU from deep sleep for a few seconds (enough for you to grab a wakelock, do some work and release the wakelock) Aug 08 14:30:43 :) Aug 08 14:30:53 the only real issue is the management of the connection (changing IPs, dropped connection, dumb routers, etc.) Aug 08 14:31:33 how i can set only emails apps in share intent ? Aug 08 14:31:37 Mavrik: unfortunately, GCM is just too slow for what I want to do Aug 08 14:31:46 heauiheauhaeuaehi Aug 08 14:32:03 ... Aug 08 14:32:08 swulf--, hmm, what exactly are you doing that has to be done in under-500ms on a sleeping device_ Aug 08 14:33:32 Mavrik: I have an process on a computer that is requesting an authorization from the user on his phone. I'd like to broadcast a small packet, a dialog popup on the device (if locked, trigger a notification), and user says Yes or No Aug 08 14:33:48 and 500ms is too much for that? O.o Aug 08 14:34:05 A round-trip to GCM is too slow and unreliable Aug 08 14:34:14 an open TCP socket is probably fine Aug 08 14:34:19 why do you need a round trip? Aug 08 14:34:33 computer -> gcm -> phone is what I meant Aug 08 14:34:33 why aren't you using GCM to just wake the device and continue communication on local network? Aug 08 14:34:42 yes, that has on average about 500ms of latency Aug 08 14:35:06 It's still somewhat unreliable Aug 08 14:35:41 send a few requests then? :p Aug 08 14:36:25 may be it could possible using openfire server using smack lib Aug 08 14:36:37 The "problem" is that I want to do a broadcast UDP packet to find which devices on the network support my feature. If the app on the computer doesn't know about the phoens on the network, you can't direct a GCM message Aug 08 14:38:19 hmmm, I see the issue Aug 08 14:38:51 * ravilov feels this is a bit too much to ask from a phone, as smart as phones are today Aug 08 14:39:28 That may be true, but I'm interested in at least trying to push the capabilities here Aug 08 14:39:39 canvs2321: I don't know if this is an android bug. In the father view I put a framelayout, onActivityCreated I commit the transaction of the child fragment, as you said, and now with getChildFragmentManager().findFragmentById(r.id.child) I get the reference to the child fragment. It's weird. Aug 08 14:40:10 swulf--, you'll probably have to settle for the app to be running to computer / phone to find each other Aug 08 14:40:45 gdrc: cool, atleast you know it works. Just gotta dig a bit to find a way to get it working the way you intended if you don't wanna go that route :) Aug 08 14:40:53 I suppose that may have to be the case for a PoC. In the future it'd be nice to find a way to remotely wake the phone- if locked show a notification, if unlocked show a popup Aug 08 14:42:14 GCM may be the only current option? Aug 08 14:43:05 apart from GCM you can create your own push using openfire Aug 08 14:46:37 by creating a single user at server you can send instructions remotely to all users (devices) Aug 08 14:47:15 it works on XMPP protocol kind of establishing a chat connection Aug 08 14:47:49 actually i have used this mechanism in one of my project Aug 08 14:48:19 so i suggestd you Aug 08 14:48:49 http://i.imgur.com/unjJuIX.jpg Aug 08 14:52:57 does anybody have experince on sending MMS without using an Intent Aug 08 15:03:27 I don't think so Aug 08 15:04:40 so i installed All The Things through android studio Aug 08 15:04:53 //home/errietta/wdir/android-sdk-linux/platform-tools/adb: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped Aug 08 15:05:00 04:03:20 E/adb: Unexpected exception 'Cannot run program "/home/errietta/wdir/android-sdk-linux/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/errietta/wdir/android-sdk-linux/platform-tools/adb' Aug 08 15:05:05 ;~; Aug 08 15:06:15 //home/errietta... is on purpose, right? Aug 08 15:06:23 yeah extra / Aug 08 15:06:28 i mean, the adb is clearly there Aug 08 15:06:31 and 'file' says it's executable Aug 08 15:06:36 however, i can't run it. Aug 08 15:06:50 when i try running it, or android studio tries running it, it Aug 08 15:06:51 is this another case of 32-bit adb on a 64-bit platform? Aug 08 15:07:04 ravilov, aye Aug 08 15:07:24 ravilov, i downloaded the sdk manually however android studio was complaining stuff was missing so i downloaded and installed stuff through it Aug 08 15:07:29 the solution has just been posted yesterday Aug 08 15:07:30 hold on Aug 08 15:07:52 if I've got several master-detail screens for different lists and detail items, what would be the best way to reuse code? every one of the master-detail screens will behave the same way, just with different lists and different details. I'm having trouble conceptualizing how to create a generic master-detail though, maybe because there are so many moving parts (the activity, the fragments, the interface) Aug 08 15:09:39 erry: open a terminal and type "adb". Does that run? Aug 08 15:10:21 rgr, aye, but that's because i've installed android-tools-adb Aug 08 15:10:24 erry, this helped the other guy, maybe it would work for you too: https://wiki.debian.org/Multiarch/HOWTO Aug 08 15:10:25 so that's a different binary Aug 08 15:10:48 ravilov, any idea which packages i'd be missing :) Aug 08 15:11:04 the adb you should be running on linux (it is right) is the one in the sdk. e.g /home/rgr/development/android/sdk/platform-tools/adb Aug 08 15:11:09 it should need nothing. Aug 08 15:11:31 rgr, well that doesn't run for me on this new install Aug 08 15:11:36 it works on my laptop which is also 64 bit though Aug 08 15:11:37 go figure. Aug 08 15:11:49 i might have more libraries on my laptop though Aug 08 15:11:51 you cant run it from the command line without the path prefix? or you can. Aug 08 15:11:57 erry, I only have this link, I myself am on 32-bit platform so everything works for me as is Aug 08 15:12:21 rgr, i can't run the version that android studio is using Aug 08 15:12:26 hey rgr Aug 08 15:12:27 * rgr has a 64 bit platform and it "just works". But then I have platform-tools on my path. Aug 08 15:12:55 I use intellij and I didnt need to point it at anything. it pics up the binaries from the path afaik. Aug 08 15:13:11 (intellij is pretty close to AS) Aug 08 15:13:32 In fact it would suck for the default install of AS to need hard wired pointers to the platform tools. Aug 08 15:14:26 erry: which does "which adb" say when you type that into a terminal? Aug 08 15:14:34 rgr, that's another on... Aug 08 15:14:41 ? Aug 08 15:14:43 /usr/bin/adb Aug 08 15:14:49 i insta;led that from apt-get it works fine Aug 08 15:15:05 but then i need build-tools too etc Aug 08 15:15:12 so even if i use the proper adb these binaries also fail Aug 08 15:15:16 like that zip..something :p Aug 08 15:15:40 I dont have that installed. Its almost certainly out of date compared to the sdk one. Which OS? Aug 08 15:15:52 ubuntu 14.04 Aug 08 15:15:55 heh. Aug 08 15:16:00 rgr, android studio isn't using that one anyway Aug 08 15:16:08 it uses the one it installed into my home directory. O r tries to Aug 08 15:16:44 it tries to. When bug hunting remove the imponderables. Remove the one frome aptitude or apt-et or synaptic or whatever you use. Then make sure your platform tools is on your $PATH. Aug 08 15:16:45 ugh, what a mess Aug 08 15:17:21 nice I like it :) Aug 08 15:17:30 in my .bash_env I have : PATH=${ANDROIDSDK}/tools:${ANDROIDSDK}/platform-tools:${PATH} Aug 08 15:17:45 rgr, that one doesn't run tho Aug 08 15:17:50 you will need to resource your .bash_env or logout and in again. Aug 08 15:18:10 what is wrong with this line, it gives Resources NotFoundExecption: Toast.makeText(getActivity(), getResources().getString(R.string.camera_optimizing_image), Toast.LENGTH_LONG).show(); Aug 08 15:18:27 erry: until you cut it down to one binary you cant be sure if it does or it doesnt. It might well be picking up peripheral needs from the repository install. Do you follow me? Aug 08 15:18:49 Im not saying thats the issue but this is one way to narrow it down and remove the unknowns. Aug 08 15:19:10 ok Aug 08 15:19:13 * erry removes it from apt Aug 08 15:20:01 I have to run off and get pissed in the pub now - best of luck. Im not sure it will be a 32/64 bit issue but if it is install multiarch if you havent already. You'll find more in google. The other thing is to make sure you update-alternatives to ensure which jdk you are using. Aug 08 15:20:07 kamol, is "camera_optimizing_image" actually a string? Aug 08 15:20:12 http://stackoverflow.com/a/16310606 Aug 08 15:20:37 ravilov: shit, you are right it wasn’t in the string.xml :P thank you man! Aug 08 15:22:39 that worked!! Aug 08 15:22:40 thanks ♥ Aug 08 16:08:37 nice, my proguard cache works well with standard java android apps Aug 08 16:08:54 so you can use gms -> proguard cache it, and never have to worry about hitting dex limit, or proguard cost while developing Aug 08 16:15:31 Did anyone debug on L? Aug 08 16:15:40 How's the speed? Aug 08 16:21:28 Mavrik: strtof is contained in libc. running readelf on the .so file it is listed as a resource in it ("T" ). every other lib has it as Undefined "U". I don't which other lib to check. Aug 08 16:23:20 running readelf on libprotobuf.so lists these libs as needed by the so: libfnustl_shared, libz, libstdc++, libm, libc and libdl all of which I am loading via System.loadLibrary Aug 08 16:23:27 Mavrik: running readelf on libprotobuf.so lists these libs as needed by the so: libfnustl_shared, libz, libstdc++, libm, libc and libdl all of which I am loading via System.loadLibrary Aug 08 16:24:42 Mavrik: of which only libc contains an entry for strtof that isn't "U" when I run nm against it. (I have to run nm iwth -D option ) Aug 08 16:39:41 Does anyone know how to do addition animations in a listview with a cursor adapter? Aug 08 16:41:35 vozz: make sure your adapters hasStableIds() method returns true.. and getItemId() are unique for the items. I believe this is default true of CursorAdapter's and then just enable animateLayoutChanges Aug 08 16:41:44 hey Napalm :D Aug 08 16:43:01 Hmm, was trying animateLayoutChanges but all it would do is fade in the whole list when it was first created, ill have a play some more with it Aug 08 16:44:06 how the hell do i execute sth from the main thread if im in another one Aug 08 16:46:14 post back to it's handler Aug 08 16:48:20 ulli909, weren't you here yesterday with the same question? Aug 08 16:48:34 yes Aug 08 16:48:46 but noone could come up with an answer Aug 08 16:48:49 did you not manage to google it by now? it's pretty trivial Aug 08 16:48:57 at least one of the solutions is Aug 08 16:49:14 ulli909, actually you got the answer, it was "read the docs and guides" Aug 08 16:49:14 i dont really know what to search for Aug 08 16:49:58 getMainLooper() Aug 08 16:50:22 "android post to main thread" Aug 08 16:50:39 you can even ask google your exact question Aug 08 16:51:14 ulli909, http://bit.ly/1A0kj1b Aug 08 16:51:56 ulli909: Handler handler = new Handler(Looper.getMainLooper()); handler.post(new Runnable(){ public void run(){ /* your code here will run on main-thread */ } }); Aug 08 16:52:11 ulli909: http://bit.ly/1owVTE0 Aug 08 16:52:13 ok Aug 08 16:52:22 Napalm, what's wrong with runInUiThread()? Aug 08 16:52:35 haha ravilov had the same idea, just beat me to it Aug 08 16:53:06 ravilov: if you have access to an Activity nothing, but if he doesnt how's he going to do it.. its easier to give him the the most straight-forward method.. so he'll shut up ;) Aug 08 16:53:14 You need an activity reference Aug 08 16:53:14 lol Aug 08 16:53:22 well yeah Aug 08 16:53:23 hey VT Aug 08 16:53:28 I guess I assumed he would have one Aug 08 16:53:48 most people also dont realise that every View has a Handler on the main thread you can use Aug 08 16:54:09 v.getHandler().post(...); Aug 08 16:54:17 yeah Aug 08 16:54:25 probably all of them have the same handler Aug 08 16:54:36 Doesn't View#post exist as well Aug 08 16:55:14 indeed Aug 08 16:55:18 basically a dozen ways to get the main handler Aug 08 16:55:39 if only there was an easy way to google that... :p Aug 08 16:55:52 lol Aug 08 16:56:16 someone should really invent a decent search engine for asking such questions Aug 08 16:56:31 hope it happens, I could really use something like that Aug 08 16:56:53 it works finally Aug 08 16:58:00 hey SimonVT, are you generally open to receiving PMs? Aug 08 16:59:18 Generally no :p Aug 08 16:59:54 It's mostly stuff that should just be asked in here instead Aug 08 17:00:18 I see Aug 08 17:00:55 well I wanted to file a complaint, I didn't want to spam the channel for that Aug 08 17:01:16 I knew a search engine for that but it got forgotten Aug 08 17:01:37 yeah if only there was a search engine to find a good search engine Aug 08 17:01:45 Bing! Aug 08 17:01:57 er, DuckDuckGo! Aug 08 17:03:04 * birbeck slaps capella around a bit with a large trout Aug 08 17:03:12 * g00s uses duckduckgo Aug 08 17:03:23 DuckDuckNSA? :P Aug 08 17:03:26 rather DuckDuckGo than Bing :p Aug 08 17:03:42 i'm working on goosgoosgo Aug 08 17:03:52 g00s: don't host it on EC2 xD Aug 08 17:04:12 p_l distributed plug computers ! Aug 08 17:04:27 decentralized search engine? Aug 08 17:06:42 maybe somebody can help me approach my problem a different way.. anybody here compiled google protobuffers for android and got it to link to your own c++ code? Aug 08 17:06:42 sounds like a good idea :) Aug 08 17:07:05 valder ahh i thought you were using the java protobufs Aug 08 17:09:08 canadiancow oh my! http://www.mercurynews.com/ci_25007914/cow-farts-cause-barn-explode-germany Aug 08 17:09:29 udder destruction Aug 08 17:11:57 g00s: any ideas? Aug 08 17:12:18 valder no sorry, don't use ndk Aug 08 17:12:46 looks like Mavrik may have logged off or is busy.. anybody wiht ndk experience Aug 08 17:13:12 g00s, if you want to not be seen, sure; if you want to actually find something on the internet... I don't know :p Aug 08 17:14:25 g00s: "exploding in a darting flame" lmao Aug 08 17:26:15 I have a canvas I am drawing a rectangle onto. I wish to round 2 of the corners, but drawRoundRect always does all of the corners or none of them. Aug 08 17:26:38 Is there some way I can add a corner radius to only two of the corners (top left and bottom left, specifically)? Aug 08 17:26:54 what is the chartboost location string parameter? is it something I manage through their website or I can make my own string locations like "default", "main-menu" etc...? Aug 08 17:27:27 hello Aug 08 17:28:57 http://pastebin.com/8SGL6PLT im getting a nullpointer exception on line 16 sometimes anyone can help me with it Aug 08 17:29:01 doesnt happen all the time... Aug 08 17:29:11 jessie: can always draw your rounded, then draw a rect over the ones you don't want rounded Aug 08 17:33:21 canvs2321: Yeah, that's a bit of a pain in the butt, but it seems like that's probably what I'll have to do. Aug 08 17:33:43 why is it a pain? what are you making Aug 08 17:35:05 A bar graph that can have 2 different colors on the same line. If the two colors are there, I want the outside corners rounded while the inside ones (at the line where the color changes) to be standard. Aug 08 17:36:06 Single color: http://i.imgur.com/JPK7Okx.png Aug 08 17:36:15 canvs2321: Double color: http://i.imgur.com/6Dx3x8v.png Aug 08 17:36:20 can always create a path, then draw the path, that should allow you to control bits Aug 08 17:36:37 anyone take a crack at my issue? above? Aug 08 17:37:32 or jessie, can you draw your rounded bar, then use mask to color in what you want colored? Aug 08 17:44:50 SimonVT, so how do I file a complaint? just right in the channel? Aug 08 17:45:13 Complain when something bad happens Aug 08 17:45:33 but still right here in the channel? Aug 08 17:45:52 also, complaining later doesn't count? Aug 08 17:46:32 hello Aug 08 17:47:00 SimonVT, ^ Aug 08 17:48:16 I suppose that depends how bad it was Aug 08 17:48:28 well ok Aug 08 17:48:39 If it's at the standard level of abuse for the channel, there's no point Aug 08 17:48:52 well I'm new so I don't know what's the standard level Aug 08 17:49:54 Leeds is the person who complaints are files with Aug 08 17:50:18 Leeds is not an op? also he's not here right now Aug 08 17:50:27 anyway Aug 08 17:51:27 SimonVT, I'd like to complain about a guy called rgr. the other day he attacked me and literally everything I say for no reason. when I confronted him about it he claimed I'm giving bad and harmful advice and I best shut up. I felt that was quite out of line. Aug 08 17:51:40 everything I said* Aug 08 17:52:05 ravilov sounds like you got off easy here XD Aug 08 17:52:14 what do you mean? Aug 08 17:52:27 so this is deemed acceptable? Aug 08 17:52:31 it hasn't reached #java levels fortunately Aug 08 17:52:39 haven't been there Aug 08 17:53:52 g00s, maybe not yet but I feel it could easily get much worse if simply left ignored Aug 08 17:57:07 SimonVT, are you getting all this or should I keep highlighting you? :p Aug 08 17:59:35 ravilov gotta have some thick skin; put abnoxious people on /ignore Aug 08 17:59:57 its just the internet being the internet Aug 08 18:00:17 i've been here since 2009, its relatively mild here Aug 08 18:00:25 Eh, I don't see anything too bad. Aug 08 18:00:36 heated disagreements, maybe - but almost always civil Aug 08 18:00:39 He was right to call you out on storing bitmaps in an sqlite database, so there's that Aug 08 18:01:14 *shudder* Aug 08 18:01:21 Sin! Aug 08 18:02:03 Adobe LightRoom does that. they store huge amounts of stuff in sqlite; but on mobile ... i forgot but there is some empirical testing on what size the blob is, and where it can be optimally stored Aug 08 18:02:07 so its not even a clear cut answer Aug 08 18:02:14 if its under a certain amount, sqlite is more optimal Aug 08 18:02:33 over a certain amount, filesystem Aug 08 18:02:48 Mavrik: your comment about libc... if I'm using plain old ndk-build how would the toolchain be incorrect? (I don't really know so I'm hoping you can tell me what to do to check) Aug 08 18:02:58 SimonVT, as for that, I feel both approaches are valid and have their usage, who's to say what exactly is my situation and which one works better for me? certainly it is not okay to be all self-righteous about it and think you're right and everybody else is wrong and they're idiots for even considering it Aug 08 18:03:05 this is the best answer you will get on sqlite blobs http://www.sqlite.org/intern-v-extern-blob.html Aug 08 18:03:34 valder, didn't I link you a bug which says that the function your library uses doesn't exist in bionic? Aug 08 18:03:43 SimonVT, also it wasn't me who suggested it, it was someone else asking about it, and my only potential mistake could be not pointing out the caveats of such approach Aug 08 18:03:56 I just feel what he did was completely uncalled for and out of line Aug 08 18:03:59 nope. Aug 08 18:04:03 creates a very negative atmosphere Aug 08 18:04:10 flamethrowers to the people who put bitmaps in databases Aug 08 18:05:14 well I'm sorry you feel that way, Mavrik; I've been using that approach on several occasions without a hitch, I have yet to see any of the apps/systems break because of that Aug 08 18:05:29 Uhuh. Aug 08 18:05:30 (I'm going to assume you weren't entirely serious though) Aug 08 18:05:39 ;) Aug 08 18:06:04 Mavrik: what does that have to do with the current situation if I don't have any bionic (what is this lib) source files? but the bug stated those functions got moved to stdlib. Aug 08 18:07:14 SimonVT maybe you know; for some widgets like Switch (the side the Switch is not on), or the background of a ProgressBar, a certain gray is being used ... is this a platform defined constant ? Aug 08 18:08:26 canvs2321: I went with the drawing of a non-rounded rectangle over the edge that I wanted to have normal corners. Aug 08 18:08:28 back in I/O 2013 google said they would come up with widget design guidelines - maybe i just missed those and they are somewhere Aug 08 18:08:49 No idea Aug 08 18:08:58 valder, bionic is the Android version of libc Aug 08 18:09:10 oh well. looks to me there's a little too much tolerance for abuse and aggressiveness in here. personally I strongly disagree with such approach, but it's not like I haven't been in this situation before Aug 08 18:09:11 Turned out pretty easy. nonRoundedRect.set(leftRect.right - radius, leftRect.top, leftRect.right + radius, leftRect.bottom); Aug 08 18:09:21 I'll be off now, need to store some more bitmaps in my databases. Aug 08 18:09:28 Mavrik: besides it says the fix was released, 3 years ago. Shouldn't that fix work with the protobuf release (just last year) Aug 08 18:10:09 SimonVT ok thanks Aug 08 18:11:47 Mavrik: it's not my function that calls strtof, its a part of the google protobuf lib.. Aug 08 18:14:56 Mavrik: I'm clearly not understanding something about the build, anything you can point out to me? Aug 08 18:15:32 does MediaPlayer's create() method do it async? Aug 08 18:15:57 valder, the code you're trying to compile for Android is calling call a function that is missing in Android's libc library Aug 08 18:16:01 it's that simple Aug 08 18:16:56 and sorry, I never used protobuf on Android so I can't find a solution for you Aug 08 18:17:18 find out WHY they're calling that functiona and what the workaround for it is on Android, I'm sure someone tried to do the same thing as you somewhere on the internets :) Aug 08 18:18:04 whomp, glancing at MediaPlayer.java in Android source, the create() methods are all sync Aug 08 18:18:45 Mavrik, ty Aug 08 18:19:47 Im trying to send a URL in an SMS which opens up to Google maps. Im sending a link with correct coordinates fine, but it keeps asking/waiting for the receiving device's location - I dont want it to do this, is there a way around it? Aug 08 18:20:00 ravilov you have to remember with android, sqlite and blobs ... its not the same as using C; the blobs have to get into the java layer - so while sqlite itself may be OK, the android stuff may not be great from memory management perspective Aug 08 18:20:30 "maps.google.com/maps?daddr=" + lat + "," + long" is the current URL I am sending Aug 08 18:20:39 is it because Im using daddr? Aug 08 18:21:34 Mavrik: that's my point.. people's solutions to getting it to work on Android say they work. I suppose at this point I have to do source edits.. This is a typical post I've found and I've applied these as close as possible but to no avail.. http://stackoverflow.com/questions/7144008/how-to-build-protocol-buffer-by-android-ndk Aug 08 18:21:46 Mavrik: thanks for your help.. Aug 08 18:21:53 jessie: cool, i've messed a ton with graphs and such, and just gotta do what works :) Aug 08 18:22:09 valder, well maybe that method is in c++ standard library and you have the wrong one selected Aug 08 18:22:18 IIRC NDK has several against which you can link Aug 08 18:22:20 but I'm guessing. Aug 08 18:23:01 Anyone? Aug 08 18:27:03 ObjectAnimator translateX = ObjectAnimator.ofFloat(cup, Aug 08 18:27:03 "translationX", -10); Aug 08 18:27:13 Anyone know why that doesn’t animate? Aug 08 18:29:30 g00s, I'm not even using C like ever :p Aug 08 18:30:00 I would tell you what I use but no point, it would only horrify you (and others) even more Aug 08 18:33:54 I bet it's Delphi Aug 08 18:33:54 ravilov perl? seriously? Aug 08 18:34:15 on no, that was detachedYo Aug 08 18:38:52 This is somewhat slightly pissing me off Aug 08 18:39:03 Why does Google assume when you open Maps you want directions from 1 place to another? Aug 08 18:39:16 I just want to view one place on a map. Aug 08 18:40:01 Im trying to create a URL which when sent in an SMS and pressed opens up Google to the location of the latitude and longitude in the URL. Is there any way of doing this without requiring two sets of coordinates? Aug 08 18:40:21 is there a default list view for showing music files? Aug 08 18:40:25 or do i have to roll my own? Aug 08 18:40:40 Your own Aug 08 18:40:53 kk ty Aug 08 18:42:00 g00s, nope Aug 08 18:42:15 although, what's wrong with perl? Aug 08 18:42:17 * ravilov likes perl Aug 08 18:46:13 g00s_, in my defense, no I haven't used bitmaps/blobs in databases on android Aug 08 18:46:16 ...yet Aug 08 18:46:42 just kiding, I do think such approach on android would be wrong Aug 08 18:47:31 Does anyone have any idea on my previous question? Aug 08 18:47:38 Never used to do it Aug 08 18:47:49 If you only supplied 1 set of coordinates, it just showed you that location Aug 08 18:47:52 Now it demands a second set Aug 08 18:48:15 * ravilov is on an older system with an older version of Maps so he's probably unaffected Aug 08 18:48:27 I hate you right now :( Aug 08 18:50:04 think of it as a challenge, think of how great it'll feel once you figure it out ;) Aug 08 18:50:21 Ive been through that phase Aug 08 18:50:22 haha Aug 08 18:50:36 Anything relating to sending an SMS with a link seems to be mainly based around web apps too Aug 08 18:50:54 Not that thats a problem, because I only need the URL structure Aug 08 18:51:04 hmm, no experience with that either Aug 08 18:51:36 Anthaas: what if you set the start and dest as the same? Aug 08 18:52:05 canvs2321: I thought about that, but wouldnt Google still try and give directions? All I want is a pin on one place. haha Aug 08 18:52:16 seems worth a shot Aug 08 18:52:43 you might stumble upon an unexpected spark of intelligence within maps :p Aug 08 18:53:34 Anthaas: what is an example lat&long you have? Aug 08 18:53:51 just any normal lat long - the one I have atm is my home address hahaha Aug 08 18:54:54 Just tried it - Google Maps opens up, and obviously recognises the duplication and requests a different source location Aug 08 18:55:14 http://maps.google.com/maps?q=24.197611,120.780512 what does the ?q= do, will that bring it up Aug 08 18:56:02 trying now Aug 08 18:56:19 think it's a query of location Aug 08 18:57:01 Perfect! Aug 08 18:57:03 Thanks :D Aug 08 18:57:08 Didnt know of the q Aug 08 18:57:14 :) , on the SO there is more you can add Aug 08 18:57:21 http://stackoverflow.com/a/13545707 Aug 08 18:57:34 oh my Aug 08 18:57:43 * ravilov thought Anthaas is already working with q Aug 08 18:57:53 ah here ya go http://alvarestech.com/temp/routeconverter/RouteConverter/navigation-formats/src/main/doc/googlemaps/Google_Map_Parameters.htm Aug 08 18:58:03 he was using daddr Aug 08 18:58:31 Amazing link! Thanks :D Aug 08 18:59:40 ugh, this line of AS (0.8.x) has been using up all the memory on my machine. 1G for AS, and another 500mb for some external java process, presumably gradle Aug 08 19:01:03 hm, anyone know why As won't automcomplete some colors like dim_foreground_inverse_disabled_holo_dark Aug 08 19:01:22 don't really see where they would be public / private Aug 08 19:01:42 hi folks; hope this isn't bad form but we're looking for Android devs for a BLE app. DM me for more details. Aug 08 19:02:32 g00s_: android.R is documented on d.android.com Aug 08 19:02:41 kickingvegas: Room Topic says no advertising, jobs or otherwise. Aug 08 19:02:55 andy_: sorry Aug 08 19:03:07 Anthaas: sorry Aug 08 19:04:36 g00s_, public.xml within the framework itself? I'm guessing if it's not listed in there, it's not available to general public Aug 08 19:05:04 seems the build caught me using illegal provate color Aug 08 19:05:09 *private Aug 08 19:05:36 bummer, http://developer.android.com/reference/android/R.color.html is only a few colors :( Aug 08 19:07:07 guess that's all you can count on Aug 08 19:07:18 (reliably) Aug 08 19:09:53 Guys, where could I ask something about OkHttp ? Aug 08 19:11:56 Adyrhan you could ask here. I won't be able to help much, but someone might Aug 08 19:12:03 You know, if we had more thgan 99% idle users Aug 08 19:12:08 less than* Aug 08 19:13:02 they must be busy developing :) Aug 08 19:13:50 I don't know, this is not Android specific, I don't think it would be good :D I'm looking if there is some channel, or mailing list Aug 08 19:14:52 There's an okhttp tag on stackoverflow Aug 08 19:15:08 ^^^^ this Aug 08 19:15:59 Good! thx Aug 08 19:16:38 I just hope there is no much troll in SO now online xD Aug 08 19:16:55 that's what the downvote button is for Aug 08 19:18:11 Mavrik: thanks for that.. I am trying to use c++11 I guess that's not supported Aug 08 19:18:38 hi, Android Studio is Beta now, Is there something that Eclipse+ADT do that AS is still missing ? is it OK to convert the projects to AS ? Aug 08 19:19:37 Mavrik: hmm removing my flag for -std=c++11 causes problems with the code compilation for protobuf as well :( no win situation here.. :) Aug 08 19:28:06 is there any shell/command line utility within android that I can use to monitor/wait for broadcast intents? Aug 08 19:28:28 say I want my shell script to pause and wait until a certain broadcast intent is fired Aug 08 19:33:28 Is this sufficient for trying to get a storage location? http://pastebin.com/jrF6FK1x Aug 08 19:35:40 one day, one day i'll stop forgetting .commit() Aug 08 19:38:10 Napalm, I appreciate you taking your time yesterday Simon, is there any chance you can look at this again? I can't get it right. http://stackoverflow.com/questions/24089136/why-my-android-actionbar-doesnt-update-when-it-is-explictily-changed/25192934?noredirect=1#comment39231817_25192934 Aug 08 19:51:04 does gradle allows sub layout folders? Aug 08 19:51:48 strange issue w/ cardslib, have to re-register scroll listener after adding more items to adapter Aug 08 19:52:15 yoavst: yes Aug 08 19:52:16 How do you guys get inspiration and ideas to create apps? Aug 08 19:52:18 yoavst: no Aug 08 19:52:22 didn't read your question Aug 08 19:52:27 JakeWharton: ;) Aug 08 19:52:28 gradle is a build system Aug 08 19:52:32 aapt is the thing that deals with layouts Aug 08 19:52:37 (and all resources) Aug 08 19:53:14 AKK9: what apps do you like? Aug 08 19:53:18 AKK9 you have a problem , and then solve it :D Aug 08 19:53:27 so JakeWharton the answer is No? Aug 08 19:53:32 correct Aug 08 19:53:34 you have more problems if you have an interesting life AKK9 XD Aug 08 19:53:49 if you surf the web all day, its hard to have interesting problems Aug 08 19:54:03 damn it, it is 2014 ;) Aug 08 19:54:41 shipit, g00s_ well I was making an app for N4G but turns out they're own app is in development and theyre changing their site Aug 08 19:54:44 So thats game over really. Aug 08 19:55:07 AKK9: if you're almost done, might as well push it out Aug 08 19:55:08 I want another project but I don't know what... Aug 08 19:55:30 shipit, nah not almost done but by the time I'm done they're new site will launch and my app will break. Aug 08 19:55:31 yoavst, I would think that has nothing to do with the build system but with the android runtime, which as far as I know still doesn't support foldered resources Aug 08 19:55:40 their* Aug 08 19:55:49 AKK9: ah, btw what's N4G? Aug 08 19:55:54 n4g.com Aug 08 19:56:14 Gaming news site Aug 08 19:57:30 your app pulls and displays content from this site? Aug 08 19:57:50 I was hoping I could make an app for a semi popular site and it'll mean my app becomes slightly popular Aug 08 19:57:52 yeah Aug 08 19:58:21 Most sites have decent apps now though Aug 08 19:58:54 why don't you make an app to display content from wordpress, blogger etc sites -- open source it :) great learning experience Aug 08 19:59:45 That pulls from all blogs in general? Aug 08 19:59:50 Or a particular blog? Aug 08 19:59:55 all blogs Aug 08 19:59:58 general purpose Aug 08 20:00:06 maximum usefulness Aug 08 20:00:16 no, any wordpress or blogger or whatever hosted blog Aug 08 20:00:23 Is that possible? Arne't blogs as varied as websites? Aug 08 20:00:33 extra credit for material based design! Aug 08 20:01:05 AKK9, visually yes, but the content is structured enough Aug 08 20:01:06 AKK9: no, most blogs and CMSes are hosted on platforms like wordpress, typepad, moveabletype etc Aug 08 20:01:20 also what ravilov said Aug 08 20:01:31 thats a good idea, why would you share a good idea? Aug 08 20:01:41 so you can make it? Aug 08 20:01:44 and become famous? Aug 08 20:01:48 and score all the girls? Aug 08 20:01:52 writing javadoc and documentation is such a fine way to torture someone Aug 08 20:02:12 thanks man, when i make it and im up there, ill always remember ravilov Aug 08 20:02:28 AKK9, you mean how you have all that and I don't? :p Aug 08 20:02:49 lasserix, which end are you currently on, giving or receiving? Aug 08 20:02:57 obviously. im gonna steal your idea and push you away first Aug 08 20:03:06 self inflicted: i'm the only native english speaker on the project... Aug 08 20:03:10 but ill always remember you <3 Aug 08 20:03:19 \o/ Aug 08 20:03:30 AKK9: roll something up and take a long walk on the beach... Aug 08 20:03:45 (like a towel :p ) Aug 08 20:03:55 also the motivation to improve the quality of apps on the store is a good motivatin and inspiration to create apps Aug 08 20:04:24 that is very true, my last two apps were inspired by crappy solutions I found on the store Aug 08 20:04:35 good idea, horrific implementation Aug 08 20:04:41 so I improved on that Aug 08 20:05:28 AKK9: i think it also helps to have some people you can brainstorm with though it canbe hard to find such people Aug 08 20:06:22 could be why he's here Aug 08 20:07:19 also, lasserix, a S/M relationship where you're both S and M? that's like an entire new level, dude Aug 08 20:08:45 ohhhh yeah. Aug 08 20:09:08 today is definatly one of those days i should "have tooken a long walk on the beach" Aug 08 20:09:25 i think i might be finished with writing this documentation by the end of the day though. that'll be nice. Aug 08 20:09:53 in time to still make it to the beach? Aug 08 20:09:53 few question about revmob... is it always shows a banner of "Download a free app"? or it has something to do with how popular my app is?, also I should refresh revmob banners manually right? Aug 08 20:12:06 how can I use Cursor to filter() results from an Observable? Aug 08 20:12:23 lasserix, can't you tell them writing docs is an excelent way to improve your english? Aug 08 20:13:37 yeah but i am guessing in a week or two it'd end up back in my lap Aug 08 20:13:51 and i am no longer permitted to leave the office to walk on the beach ;p Aug 08 20:14:03 tho i can still slip down to the gym from time to time Aug 08 20:14:15 is there a good view of the beach from the gym? Aug 08 20:14:24 walking on sand is a good workout Aug 08 20:14:33 two birds, one beach Aug 08 20:14:57 heh Aug 08 20:15:14 so far my favorite part of this documentation process has been editing out my name in the screenshots Aug 08 20:15:24 well i was going to use the name Bender but my boss did not appreciate the humor Aug 08 20:15:58 actually my favorite thing has been discovering this photo: http://blog.inner-active.com/wp-content/uploads/2013/08/313095-android-trojan.jpg Aug 08 20:15:59 tell him you have nothing to do with it, the system chose that automatically Aug 08 20:16:27 are you going to include it in the docs? Aug 08 20:16:27 hi all- i'm having problems with registering receiver after unregistering. procedure: register receiver. broadcasts work. unregister, then register again to apply NEW intentfilters.. now, my internal broadcasts don't work anymore. why is that? Aug 08 20:17:57 or is there any other better option to reapply new intentfilters to reciever rathen than unregistering it and registering again with new filters? Aug 08 20:18:15 lordgreg, no idea why is that, but I would suggest using a flag somewhere that you can use to switch ignoring received events on and off instead of registering and unregistering the receiver Aug 08 20:18:27 I would only ever unregister the receiver once I'm completely done Aug 08 20:19:02 oh you want the same receiver to respond to a different filter? Aug 08 20:19:22 never had a situation like that so far so I don't know Aug 08 20:20:03 ravilov: well.. when user checks "enable wifi", new filter should be added: "WifiManager.NETWORK_STATE_CHANGED_ACTION". so it doesn't trigger when its not needded Aug 08 20:20:42 ravilov: currently its on the welcome page of the documentation site, we'll see how long it lasts ;p Aug 08 20:20:44 so you suggest i just add it anyways and check in onReceive if ifWifiChecked == true, then continue, otherwise stop? Aug 08 20:21:31 lordgreg, seems like a simple enough solution that would work and has no significant downsides Aug 08 20:21:50 but you can also wait for someone else to pitch in as I might be missing something Aug 08 20:23:32 lasserix, good luck with that, when they finally complain you can replace it with this and say it's a welcome page and you felt nothing else welcomes people quite as nicely: http://bit.ly/1nArSTF Aug 08 20:23:55 ravilov: well.. i'm a programmer.. its in my genes to try to complicate simple things as much as possible -.- Aug 08 20:24:46 lordgreg, I'm a programmer too, but I guess by now I managed to tame down my instincts Aug 08 20:25:21 hehe nice Aug 08 20:25:30 shes got quite the .. bounty Aug 08 20:25:33 :D Aug 08 20:25:53 This wordpress blog reading app is difficult Aug 08 20:25:54 she's definitely compelling, isn't she Aug 08 20:26:21 AKK9, wouldn't be as good of a learning experience if it was easy Aug 08 20:26:45 lordgreg, seems you should not reuse a broadcast reciever for different intents? Aug 08 20:27:08 ravilov, I'm looking at a some wordpress sites and there is nothign consistent between them at all. The classes and ids are all different Aug 08 20:27:21 or, why not just make the intent filter include all the intents you need to listen for and only act on the onrecieve for those you currently care about? Aug 08 20:27:40 lasserix, that was my suggestion basically Aug 08 20:27:44 oh Aug 08 20:27:48 sorry i am kinda going blind atm Aug 08 20:27:58 oh no, it's okay Aug 08 20:27:59 akk9 i believe there is a way to pull straight text from a webpage Aug 08 20:28:06 glad someone else agrees Aug 08 20:28:21 lasserix, but plain text wont have a any structure Aug 08 20:28:30 AKK9, hm, well that's weird, I'm pretty sure it's very well structured within the system (database), but I guess the visual part is entirely left open-ended Aug 08 20:28:56 AKK9, looked into getting the RSS ofthe blog? Aug 08 20:30:17 ravilov, yeah looks like it's left to the site owner to completely design what they want Aug 08 20:30:32 ravilov, I have but then i'm making an RSS reader, and there are thousands of them Aug 08 20:30:54 true Aug 08 20:31:12 maybe this wasn't such a good idea after all Aug 08 20:31:18 no wonder people let you have it :p Aug 08 20:31:22 haha Aug 08 20:31:41 hey AKK9 Aug 08 20:31:46 can i download google docs as PDF/EPUB by some way>? Aug 08 20:31:58 Napalm, hi mate Aug 08 20:32:04 did you still want a ActionBar hiding? Aug 08 20:32:31 No I'm no longer making that app Aug 08 20:32:47 wow, ok then Aug 08 20:32:48 loll Aug 08 20:32:59 Haha, thanks for the help though seriously Aug 08 20:33:10 Sitting though my dumb questions Aug 08 20:33:14 Appreciate it Aug 08 20:33:44 hey, if everybody only ever asked smart questions, how would anyone know they're smart? Aug 08 20:33:52 :p Aug 08 20:34:28 I'll take that quote to NASA and see if they hire me Aug 08 20:35:01 good luck Aug 08 20:38:20 I wanted to make a reddit app but there are enough of those Aug 08 20:43:20 If someone can help me on this http://stackoverflow.com/questions/25211333/correct-way-of-setting-up-cache-for-okhttp-in-android Aug 08 20:53:09 if i want to list all of the songs that a user has on their device, do i need to do two separate queries, one for EXTERNAL_CONTENT_URI and one for INTERNAL_CONTENT_URI, or just one? if just one? what is it? Aug 08 20:53:36 i want to create a list view allowing them to pick any song they want Aug 08 20:54:03 just external content Aug 08 20:54:13 lasserix, what's the other for Aug 08 20:54:18 you can do internal content but you'll likely get system sounds or stuff like that Aug 08 20:54:25 ok ty Aug 08 20:54:26 why not do both and see? Aug 08 20:54:39 for instance if you do internal on images, you'll get like system icons and such Aug 08 20:54:41 lasserix, cuz it might be weird on another device :) Aug 08 20:55:01 but if you are just trying to get like media like the user's songs then external is fine Aug 08 20:55:11 kk ty Aug 08 20:56:03 What am I missing here?shell@android:/data/data/com.example.audiorecord/files/sensor_data # ls Aug 08 20:56:04 mic yet: ejnovak@th136-2:/scratch/ejnovak.scratch/tmp_local> adb pull /data/data/com.example.audiorecord/files/sensor_data/mic Aug 08 20:56:04 remote object '/data/data/com.example.audiorecord/files/sensor_data/mic' does not exist Aug 08 20:56:04 Aug 08 20:57:18 try ls -l Aug 08 20:57:28 ravilov: Looking for what? (it's 777) Aug 08 20:57:51 and it is really a file and not a dir by any chance? Aug 08 20:58:30 ravilov: It's a file. I just figured it out based on your hint. The file (mic) was 777, but the directory was 700 and owned by "app96" which I guess is my app Aug 08 20:58:43 Anyway, I changed sensor_data/ to be 777 and adb pull works Aug 08 20:58:44 ah, well there you go Aug 08 21:16:35 what is the proper way to implement BaseAdapter.getView() when convertView is not null? just return convertView or set all the data on the view THEN return it? Aug 08 21:18:39 set all the needed data, then return Aug 08 21:18:49 okay, thanks Aug 08 21:18:50 well, all the data that changes per entry Aug 08 21:19:14 i've seen people say both ways and wasn't sure Aug 08 21:34:08 anyone used revmob? Aug 08 21:49:00 mountSin, why? Aug 08 21:49:06 i want to insert a couple rows at the top of a list populated using a cursor. the cursor queries all of the songs on the user's device. what's the best way to do this? the song cursor seems like it could be too large for me to copy all of that data into pojos and use a listadapter? Aug 08 21:49:35 MatrixCursor and MergeCursor Aug 08 21:50:04 (matrix for the extra rows and merge to put the matrix on top of the original) Aug 08 21:50:31 whomp just try it out first, then optimize Aug 08 21:50:46 thx guys Aug 08 21:51:41 oh, being noobish makes me feel like :/ Aug 08 21:53:44 hello Aug 08 21:53:53 evening Aug 08 21:56:10 is credit card really the only way to pay for the play publisher account? Aug 08 21:58:32 I have been developing in android for a while and as a habit i always throw network operations in async task. By this i mean the network communication and JSON parsing into objects.. Recently I have implemented retrofit. Now my network calls are performed asyncronously and i get data back in a callback.. Question: Do I need to still spawn async tasks for the JSON parsing int objects? Is there a general rule for amount of time Aug 08 21:58:32 an operation is expected to take that merits an async task? Aug 08 21:58:49 Retrofit does that for you Aug 08 21:58:57 or rather, it delegates to Gson on a background thread Aug 08 21:59:08 really? maybe i have not set that up yet Aug 08 21:59:14 it's set up by default Aug 08 22:00:22 interesting i feel like i need to read more inte retrofit then thankyou JakeWharton Aug 08 22:00:43 what object are you getting back in your callback? Aug 08 22:01:11 what type of object, rather Aug 08 22:01:51 A retrofit response Aug 08 22:02:03 @Override Aug 08 22:02:03 public void success(Response response, Response response2) { Aug 08 22:02:03 onData(response); Aug 08 22:02:03 } Aug 08 22:02:18 OverCoder I didn't release yet and the app is in revmob test mode, so I wanna know if the banner ads refresh automatically or not Aug 08 22:02:18 yeah, ok. don't do that! Aug 08 22:02:23 shadynastys: see https://github.com/square/retrofit/blob/master/retrofit-samples/github-client/src/main/java/com/example/retrofit/GitHubClient.java Aug 08 22:02:30 lol your awesome Aug 08 22:02:48 that isn't async, but you can use Callback> for example Aug 08 22:14:02 JakeWharton: Thankyou for your help first of all. So in some cases we have Metadata coming back that we check before some actions. does this mean i need a metadata class as well since we are not getting any response? Aug 08 22:15:40 yes Aug 08 22:15:53 Gson maps the JSON to Java objects which use the same layout of information Aug 08 22:22:11 Awesome thankyou good sir. I think you were the best possible person for that question. Even though i will be refactoring to the correct way I still have an underlying question about Async tasks and when they shouldnt be used. For instance JSON parsing. on fairly small datasets taking around 60ms does that warrent an async? Aug 08 22:24:14 i tried some benchmarking and the tasks seems to take 20-30 ms less time if it is not in an async I am assuming because the CPU puts a lower priority on the async task Aug 08 22:24:52 this situation so blows.. i can't put my apps on the play store because the only payment option for that fee is credit cards Aug 08 22:24:54 why google Aug 08 22:25:28 O.o Aug 08 22:25:34 21st century? Aug 08 22:25:42 WHAT KIND OF ANIMALS ARE THEY Aug 08 22:25:59 you don't have any credit cards? Aug 08 22:26:01 i could send them a hundred bucks if they only allowed me to pay that fee with something else Aug 08 22:26:04 no, i do not Aug 08 22:26:09 i'll take your money Aug 08 22:26:13 or your life Aug 08 22:26:13 cash has no accountability Aug 08 22:26:15 D: easy there :P Aug 08 22:26:23 80% of the people I know don't have a CC Aug 08 22:26:25 pay someone who has a credit card Aug 08 22:26:43 are you under 18? Aug 08 22:26:46 yeah Aug 08 22:26:48 doesnt help Aug 08 22:28:11 Parents? Family? Aug 08 22:28:31 im going to ask me mum tomorrow, ill gladly give her the 25 bucks Aug 08 22:28:56 i hope it's not the usual "how do you know this is safe blahblahblah", like she would know any better Aug 08 22:38:48 you can just go out and buy one of those cred card gift cards and use that Aug 08 22:38:53 most of the major CC companies offer them Aug 08 22:40:33 not here they don't Aug 08 22:42:57 oh sorry Aug 08 22:43:04 can you buy one online? Aug 08 22:43:15 err -- gues snot Aug 08 22:43:32 you'd need to be over 18 in most cases, and i dont know how i'd pay for said card Aug 08 22:43:33 :P Aug 08 23:24:03 hey guys, rx-java q: I have an Observable emitting a list, I want to filter this list -- how? Aug 08 23:25:05 flatMap()? Aug 08 23:30:59 awesome! I figured it out :) Aug 08 23:33:03 Thank you for solving your problems in advance ツ Aug 08 23:33:27 hehe capella Aug 08 23:33:43 I'm starting to grok rx-java Aug 08 23:33:52 ruh-roh ! Aug 08 23:34:00 next step is to rip out CursorLoader Aug 08 23:37:22 how can i receive a notification to my fragment when, after telling the activity to pop the fragment in front of it, it becomes the frontmost fragment? Aug 08 23:40:37 sry just disconnected Aug 08 23:57:58 anyone know how to replace CursorLoader with rx-java Observable? Aug 09 00:02:39 I've created an app that's based on a novel. I haven't released it yet. The title of the app is taken from a novel. Is there a chance I have to worry about copyright laws? The title is actually somewhat generic. Aug 09 00:03:03 I fully intend to state "This app is based on " on the Google Play thing. Aug 09 00:06:11 there's definitely a chance... Aug 09 00:06:59 you would, of course, need to speak to a lawyer to get an actual answer... Aug 09 00:07:03 Yeah. Aug 09 00:07:20 Is there any harm in just uploading the app and seeing? Aug 09 00:07:31 Would I get a one-strike thing? Aug 09 00:07:55 one strike is generally not a killer, AIUI Aug 09 00:08:16 So that would be one strike, right? Aug 09 00:09:32 there is a guy, whose name I can't quite remember now, so I can't actually find him, who was spamming various G+ groups a month or two back, because he'd been banned from the store for uploading apps with misleading names Aug 09 00:10:06 Hmm. I might not risk it. Aug 09 00:10:19 It's so hard to think of a better name, though. Lol. Aug 09 00:10:30 The phrase used in the book is the most obvious name. Aug 09 00:10:32 ah, there we go - google for "stephen gehrman banned from play store" and there are a bunch of articles about him Aug 09 00:10:58 he got very very upset, thought it was okay to ignore a warning or two because he was new and still finding his way as a developer Aug 09 00:11:52 Yeah. I think I remember reading about this guy. Aug 09 00:11:58 Probably on http://programming.reddit.com/. Aug 09 00:12:24 he was definitely in the wrong... I guess the two questions for you would be how much your app relies on being based on the novel, and how much it comes across as being misleading that there's any actual connection Aug 09 00:13:06 I'd definitely make it clear that there's no connection. Aug 09 00:13:27 My app is just inspired by the novel, basically. Aug 09 00:14:05 The novel's idea is something that has been done before, though. Aug 09 00:14:17 It's just the title that I'm copying totally from the novel. Aug 09 00:14:28 (It's not the title of the novel. It's the title of the general concept.) Aug 09 00:15:55 look, if the novel is called "The Hobbit" and the app is a game where you have to go with some dwarves to a mountain... don't do that :) Aug 09 00:16:21 I wish I could give more details. It's just that I don't wanna give my idea away, yet. Lol. Aug 09 00:16:34 if the novel is called "Red Mars" and it's a game where you explore and terraform Mars - don't call it that... Aug 09 00:17:03 i want to do an animation, but not on any particular property, i just want to use the update listener to get new values. how can i do that? Aug 09 00:17:04 Basically, the novel is called Foo. It is about a guy who changes his life by devising a game. This game is an age-old idea. The novel calls the game Bar, which is the best possible name for it. Aug 09 00:17:13 My app is currently called Bar, but, as mentioned, I haven't released it yet. Aug 09 00:17:59 And, of course, my app helps people (users) play this game and change their lives. Aug 09 00:18:28 But the game can't really be a copyrighted thing. It's so basic, and people must have been playing it since the dawn of time. Aug 09 00:18:47 The key thing about the app is that it makes it really easy to play this game. It's awkward without such an app. Aug 09 00:19:08 You'd have to have all kinds of weird stuff (e.g., some kind of random-number generator). Aug 09 00:20:13 you mean "dice"? Aug 09 00:20:38 That's one example. Yeah. Aug 09 00:20:48 Or a coin, I guess. Aug 09 00:22:20 my question would be, if it's an age-old game, it must have had a name before being called Bar-in-Foo Aug 09 00:22:50 See, that's the thing. It's kinda like a one-player game, and I haven't heard any name for it other than what I read in that book. Aug 09 00:23:02 It's arguably not 100% a game. Maybe a way of life. It's hard to define. Aug 09 00:23:09 Sorry for being so vague. :) Aug 09 00:23:37 I just actually thought of an awesome name for it. Aug 09 00:23:41 So I might be able to just use that. Aug 09 00:23:49 In fact, the new name is like a pun on the old one! Aug 09 00:24:04 meh, I'd say tell us the actual names Aug 09 00:24:05 It's a superset (in letters) of the old one. Aug 09 00:24:38 Can I PM it to you? I don't want to give away this idea until the app is released. Lol. Aug 09 00:25:05 nah Aug 09 00:25:54 it's gonna get cloned if it's good anyway Aug 09 00:26:24 Maybe. Aug 09 00:27:17 yeah, I was about to say that :) Aug 09 00:29:53 Others might be too lazy to implement it. Aug 09 00:30:05 Given that I will have already implemented it by then. Aug 09 00:30:20 But if I gave away the idea now then, in the absence of a good app, someone could be motivated, I guess. Aug 09 00:30:27 Or the idea could just be awful, and I could be deluded. Aug 09 00:31:58 good luck Aug 09 00:32:53 I'm not gonna make money from this, BTW. Aug 09 00:33:15 No ads, no fee. Aug 09 00:34:15 then extra-meh Aug 09 00:35:10 Why is there extra meh now? Aug 09 00:36:56 seriously, pfn is quite right - if it's worth someone ripping it off now, it'll get cloned - and probably by someone with more design/marketing budget or skills than you Aug 09 00:37:48 I don't think it's something people could make much money from. Aug 09 00:38:00 It's something people'd use only for free. They might not even tolerate ads. Aug 09 00:39:34 then it's got to be a pretty basic something Aug 09 00:40:00 Yeah, fairly. Aug 09 00:40:06 This app wouldn't work if it were not on a phone. Aug 09 00:40:13 It's mainly the handiness of it. Aug 09 00:40:33 I mean, it could work, but it'd be nowhere near as good. Aug 09 00:41:50 well, you'll let us know tomorrow when you've finished writing the game Aug 09 00:43:09 Tomorrow? Aug 09 00:43:21 Monday? Aug 09 00:43:22 is anyone available to give some brief guidance to an android beginner? i'm trying to make a basic first app where the user can either take a photo or view a map where the photos were taken Aug 09 00:43:26 does gradle have the capability of executing a pre-compilation task? say for the generation of a text file ( for destination in res/raw ) ? Aug 09 00:43:52 anyone here hardcore into aidl/binder? i'm wondering if it's possible to get an AIDL-generated interface to use a class (non-aidl-generated) that extends directly from Binder Aug 09 00:44:05 eh, I'm going to go back to bed for a little bit, then start Saturday properly... Aug 09 00:44:14 bankai_au yes, http://www.gradle.org/docs/current/dsl/org.gradle.api.Task.html Aug 09 00:44:39 sarbs: brilliant Aug 09 00:44:40 Leeds you're about 8-10h too far in the future, it's only 6pm Aug 09 00:44:44 bankai_au: Task.doFirst() Aug 09 00:44:59 don't gimme none of that time zone euro-bs Aug 09 01:00:00 i have it so i can open up the camera in my app and take a photo, but when i look on the emulator at the image gallery it's empty. can anyone provide guidance for this? Aug 09 01:00:26 i have the little code i have on github if that would help someone assist me Aug 09 01:06:08 kabka_: loooong time ago I wrote a small demo project for camera -- maybe it can help you https://github.com/shipit/DroidCamera Aug 09 01:06:25 kabka_: very likely you'll need an actual phone Aug 09 01:07:43 I am writing an emergency help app, which allows a person to hold down the volume button (even when the screen is locked - but turned on) to send an emergency SMS, and Ive noticed that apart from the service, everything else is nothing but a setting (preference) - should I just make the only activity a preference screen, or leave it as an activity for future expansion? Aug 09 01:09:04 Anthaas: leave it as Activity and maybe explain there how it works and/or include youtube video fragment telling users how it works Aug 09 01:09:38 I could have a fragmentactivity show on first load, I guess Aug 09 01:09:54 if you're dealing with Fragments, yes Aug 09 01:10:34 It currently includes the option to include GPS Aug 09 01:10:53 Currently vibrate on send and show notification are options, however I think they should be forced on Aug 09 01:11:37 why does the screen needs to be on to receive volume button events? Aug 09 01:11:49 Ask Google Aug 09 01:12:13 the only way you can catch volume events is android.media.VOLUME_CHANGED_ACTION which only gets sent if the screen is on Aug 09 01:12:20 If the screen is locked and off, nothing gets sent. Aug 09 01:12:20 ah! Aug 09 01:12:54 Which, although really annoying, also acts as a safety such that it is less likely that a message is sent accidentally Aug 09 01:13:08 y, a latch of sorts Aug 09 01:13:21 Yeah exactly. Im not too annoyed by it to be honest haha Aug 09 01:13:26 :) Aug 09 01:13:36 basically, 10 volume events have to be triggered in 3 seconds Aug 09 01:13:56 Im thinking of lowering the number so it HAS to be held down to be possible Aug 09 01:14:20 Anthaas: I'd map it to a non-linear function Aug 09 01:14:31 ? Aug 09 01:14:34 Explain Aug 09 01:14:43 linear function is a straight line, yes? Aug 09 01:14:57 Do you mean a pattern has to be matched? Aug 09 01:15:02 If you can't catch volume events when the screen is off, then how do audio players allow you to change the volume when the screen is off? Aug 09 01:15:07 i.e. volume down, down down, up up down etc. Aug 09 01:15:16 I honestly have no idea. Aug 09 01:15:16 ie you're expecting to *count* events linearly against time Aug 09 01:16:20 right... Aug 09 01:16:51 if you count events against a function such that events have less priority at the beginning and more later on Aug 09 01:17:18 will help you separate a volume adjustment from emergency Aug 09 01:17:31 basically, how will the user react in emergency situation Aug 09 01:18:01 I wish I understood that enough to be able to do :( Aug 09 01:18:33 maybe just like the elevator button :) Aug 09 01:18:43 Im implementing this app because my girlfriend was attacked at her clinic and couldnt get to her panic button (had her phone in her pocket) so it means quite a lot :/ Aug 09 01:19:09 There are always people around her so they could get there fast, she just couldnt ring or message them for help Aug 09 01:19:09 when the bad guys are chasing, the protaganist jams the elevator button Aug 09 01:20:51 Yikes Aug 09 01:20:54 Is she alright? Aug 09 01:21:24 whoa!! Aug 09 01:21:25 Yeah, she's fine. A little shook up though :/ As harsh as it is, we made her continue to work the next day so she didn't shy away and not go back Aug 09 01:21:42 We are making sure there is someone there with her for a while though Aug 09 01:22:06 did a patient attack or something? Aug 09 01:22:19 Yeah Aug 09 01:22:35 Think him and his mates were looking to rob the place Aug 09 01:22:44 She had a bad feeling by the way they looked the place and her up and down Aug 09 01:22:45 psychology clinic? Aug 09 01:22:46 oh Aug 09 01:22:51 No not at all Aug 09 01:23:16 She owns the place, so they wont be coming back through her choice. Aug 09 01:23:25 CCTV being installed too Aug 09 01:23:27 is the panic button wired to call the cops/EMT? Aug 09 01:23:30 ah Aug 09 01:23:36 The majority of her patients are older people Aug 09 01:23:47 that sucks man Aug 09 01:23:47 Police, friends, etc. I think Aug 09 01:23:52 Yeha Aug 09 01:23:59 This is just one thing I can do to help. Aug 09 01:24:18 She always has her phone on her Aug 09 01:24:21 I think a small radio button that closes the circuit on the main panic button might do the job as well Aug 09 01:25:13 Chances are she will knock that and set it off Aug 09 01:25:17 Couldnt keep in her pocket Aug 09 01:25:36 It has been thought of Aug 09 01:25:57 ah, let us know how it all works out Aug 09 01:26:03 Thanks :-) Aug 09 01:26:14 I will have to work out how to do this non-linear function thing Aug 09 01:27:30 basically a log or x^n function against time that distinguishes between normal volume events and an emergency situation Aug 09 01:27:41 and you can tune the function by testing Aug 09 01:28:27 eg 10 linear events vs 7 non-linear ones, the latter tells you definitely it is an emergency situation Aug 09 01:28:41 linear events may result in false positives Aug 09 01:29:00 I see. Hmm, just need to work out how to program this now. Thanks for explaining. Aug 09 01:29:02 k Anthaas, I gotta run -- ttyl, good luck! Aug 09 01:29:06 Might be a way to force only holding it down to work Aug 09 01:29:08 Thanks :D Aug 09 01:30:38 Hmm, nothing on Google helping so far Aug 09 02:29:30 hey anyone know how to correct bash: /bin/loki_patch: cannot execute binary file: Exec format error Aug 09 02:29:40 when i run loki_patch Aug 09 02:30:33 and what would loki_patch be? Aug 09 02:31:05 it is for patching aboot and boot.img Aug 09 02:31:30 a way to get around locked bootloader more or less Aug 09 02:31:48 you should ask this in #android-root Aug 09 02:32:09 but generally, there is something wrong or incompatible with that binary and you cannot run it on your system Aug 09 02:32:15 ok Aug 09 02:51:59 hey guys, how does forwarding activity results work when, for instance in A -> B -> C where A starts B for results and B starts C for results C should pass its results to A? Aug 09 02:52:41 in my case (following online tutorial) B starts C with the FLAG_ACTIVTY_FORWARD_RESULT flag Aug 09 02:53:15 but A’s onActivityResult is not called when C is done. how do I know? My log entries are not getting logged **** ENDING LOGGING AT Sat Aug 09 02:59:59 2014