**** BEGIN LOGGING AT Wed Jul 23 03:00:01 2014 Jul 23 03:06:49 Ahhh so it turns out 1.8 isnt supported by Android (yet) - kinda sucks. Jul 23 03:08:15 1.7 isn't fully supported either Jul 23 03:08:26 Someone needs to pull their finger out! Jul 23 03:16:29 Anthaas i have a feeling dianne hackborn would be happy using java 1.1 or something :P Jul 23 03:18:13 Hahaha - and would still say "When I was learning to program..." Jul 23 03:20:46 heh Jul 23 03:20:52 It just seems that with the presence of 1.8 for a while now, you'd have thought Google would have tried to move to get 1.7 and 1.8 fully supported quite quickly. Jul 23 03:26:25 Anthaas the problem with 1.8, moreso than 1.7, is that quite a few APIs have changed Jul 23 03:26:59 Would that explain then why bankai_au: claims that 1.7 isn't fully implemented either? Jul 23 03:27:26 yes Jul 23 03:27:54 for example, you will not find fork / join concurrency primitives in java.concurrency package Jul 23 03:28:11 (on android) Jul 23 03:29:33 Hmm, I don't suppose there is any hint of targetted date either? Jul 23 03:29:53 Google doesn't really tell us much :P Jul 23 03:30:27 Anthaas you may find the 2014 i/o android fireside chat interesting Jul 23 03:30:33 Ahh well, at least I gave it a shot haha - moved back to 1.7 for now, I dont forsee any problems with anything missing crossing with what I need. Jul 23 03:30:38 I'll look it up now. Jul 23 03:30:57 thats usually when people speak their mind and ask, heh google .. wtf !? Jul 23 03:31:30 Got it open now :P Jul 23 03:31:36 How frank are they though? Jul 23 03:32:20 you'll see :) Jul 23 03:32:40 Google doesn't really talk about future plans much Jul 23 03:33:01 Haha, can't give too much away to Apple or they'll beat them to it and then sue hahaha Jul 23 03:33:10 Dianne Hackborns accent/voice is slightly odd. Jul 23 03:33:39 Hahaha fantastic! Jul 23 03:34:02 "My question is about Java 8..." *mic gets passed down the line....* "Nope, not me. F**k that..." Jul 23 03:34:45 Wow Jul 23 03:34:55 They literally do not talk about it - awkward as heck silence. Jul 23 03:35:32 This might be an odd question Jul 23 03:35:41 Is Dianne and transexual? i.e. used to be a man? Jul 23 03:35:49 a transexual* Jul 23 03:38:47 they probably can't move on it until they sort their shit out with larry Jul 23 03:39:45 i think dianne and larry should have a meeting Jul 23 03:40:09 on his yacht ? Jul 23 03:40:17 Which "his"? Jul 23 03:40:25 I dont know if she is Jul 23 03:40:29 But she looks and sounds like it. Jul 23 03:40:37 And my curiosity is burning. Jul 23 03:43:51 is it good idea to use webp if we do support API > 4.0? Jul 23 03:53:46 ron_frown still there ? Jul 23 03:53:51 yessir Jul 23 03:54:10 i'm trying to close all my FF tabs by actually reading stuff I accumulated :) Jul 23 03:54:18 here is one article: www.slate.com/articles/technology/future_tense/2014/03/haggling_for_your_personal_data_isn_t_just_about_money.html Jul 23 03:54:24 Anthaas, don't count on java 8 on android Jul 23 03:54:35 " If we don’t wrest data control from brokers before emerging technologies like augmented reality kick in, we may not even be able to manage how we’re viewed to the outside world. " Jul 23 03:54:37 especially with Oracle bullshit Jul 23 03:54:51 pfn: Oh I haven't, just figured it would be a good learning exercise. Jul 23 03:55:28 then do it on a pc Jul 23 03:55:28 ron_frown so perhaps before something like Glass could catch on, we would need clear legal framework for privacy, etc Jul 23 03:55:39 I dont care about glass honestly Jul 23 03:55:48 I am saying glass for industry Jul 23 03:55:59 ahh, ok Jul 23 03:56:05 pfn: I saw it as a two birds, one stone kind of thing. Jul 23 03:56:12 ron_frown other companies are producing Glass like things though Jul 23 03:56:13 I guess its an experimentation platform, just seems like such shit hardware Jul 23 03:56:16 its a shitty experimentation Jul 23 03:56:24 Anthaas, as for Java 7 support, only the few new byte code operations are supported Jul 23 03:56:41 Anthaas, nothing in library, and no invoke dynamic Jul 23 03:58:30 I have a very small list of things I think glass needs to do that actually makes sense for industry Jul 23 03:58:42 and glass is quite honestly the worst android hardware I've seen for those things Jul 23 04:00:29 i never saw one Jul 23 04:02:01 I got 3 pair at the office Jul 23 04:02:06 I was excited when the boss sprung for em Jul 23 04:02:27 glass apis suck, lots of weird ass restrictions Jul 23 04:02:43 you can put text boxes and shit in your views, but theres literally no way to type in it... which makes sense Jul 23 04:02:58 I have bt paired keyboard, and bt scanners Jul 23 04:03:06 and they cant work as they do everywhere else Jul 23 04:03:12 putting text wherever they are focused Jul 23 04:03:29 so if they would have just not neutered the framework it would have already been better for industry Jul 23 04:03:51 voice control is meh... it works but not very fluidly Jul 23 04:04:03 (as far as integration into your apps) Jul 23 04:04:13 ron_frown the guy leading glass went to amazon Jul 23 04:04:25 your little glass command shit is super rigid and you cant register new commands Jul 23 04:04:36 because if you wanted to have ac ustomer play a game Jul 23 04:04:42 play a game of "checkers" Jul 23 04:04:44 thats fine Jul 23 04:04:57 literally no way to say dosomeshit in my app Jul 23 04:05:02 or with my app do some shit Jul 23 04:05:15 so voice control is basically out Jul 23 04:05:16 google now needs that Jul 23 04:05:18 badly Jul 23 04:05:31 applies for more than just glass Jul 23 04:05:52 pfn you can do that in a roundabout way with tasker and that plugin Jul 23 04:05:59 its just common sense shit Jul 23 04:06:12 and I'd just fix it and go from there but its all closed Jul 23 04:06:55 this is one of those cases where, I think its actually better to get some of the competitors glasses that run standard 4.0 Jul 23 04:07:08 cause at least there, you can deal with the constraints of the regular os Jul 23 04:07:36 so now my boss says we need to get on that glass shit Jul 23 04:08:03 and I'm just "meh... we've already exhausted the hardware and havent even achieved the bare minimum" Jul 23 04:09:41 ron_frown, it's pretty crappy, I saw that a while ago Jul 23 04:09:59 it's some silly half assed hack Jul 23 04:10:06 the competition or google? Jul 23 04:10:19 the Tasker plugin Jul 23 04:10:42 if I had to pick the biggest problem with it, I'd say anything camera related should figure out a way to use yoru fucking eye as the viewfinder =0 Jul 23 04:10:59 not your eye looking up at a teeny screen, thats a micro video preview of somethign else Jul 23 04:11:04 I've no real positive opinion about glass, other than as a first generation wearable it's too limited to Jul 23 04:11:19 see I actually am excited about 360 Jul 23 04:11:28 and I have tons of watches 2k$+ Jul 23 04:11:33 that I dont wear =) Jul 23 04:11:50 but I think they got lost with the glass Jul 23 04:11:59 I hate to wonder what people who opted in early had Jul 23 04:12:35 I need someone I can critisize at google Jul 23 04:12:42 god damn dianne doesnt hang around anymore Jul 23 04:12:51 does she even work at google anymore? Jul 23 04:12:54 haha Jul 23 04:13:09 ron_frown google is an advertising company . why the fff would they design glass for industry ? Jul 23 04:15:01 why focus solely on glass? Jul 23 04:20:20 ron_frown, but yeah, some of the new wear devices seem pretty exciting, I should get some Jul 23 04:20:31 ron_frown dianne still works at google, she was in the last fireside chat. i was just saying, she should duke it out with Larry in a meeting Jul 23 04:21:05 man I bet she didnt remember me for me Jul 23 04:21:14 but I bet I pissed her off too many times to count Jul 23 04:21:39 I got me a lg g3 recently Jul 23 04:21:44 its pretty nice Jul 23 04:22:15 is the screen/heating thing really as much of an issue as people make out? Jul 23 04:22:32 I've had no problems yet with heat at all Jul 23 04:22:35 whats the screen thing Jul 23 04:23:11 wabz the yellowing thing? isn't that the 1+1 ? Jul 23 04:23:13 the notifications lights are kinda wonky Jul 23 04:23:25 there were bad screens on some of the att phones Jul 23 04:23:27 I thikn the thing where it dims the screen brightness Jul 23 04:23:40 but afaik people that had the problem had them replaced Jul 23 04:23:48 if I use retrofit to accept a cookie, can I save the "Set-Cookie" header value in my login function, then send that value using @Header("Cookie") in future requests? Jul 23 04:24:03 I havent had any slowness or stuttering people hav talked about Jul 23 04:24:12 and battery is amazingly better than my g2 Jul 23 04:24:19 550am my phone came off the charger Jul 23 04:24:25 calls, browsing etc Jul 23 04:24:37 its 9:24pm and I'm at like 77% Jul 23 04:24:42 "LG had to build thresholds into the software to not allow the screen to go above 90 percent brightness if the phone gets too hot. We ran into this "brightness throttling" message after a few minutes of moderate usage on a warm day." Jul 23 04:24:52 ron_frown, screen on time? Jul 23 04:24:53 from http://arstechnica.com/gadgets/2014/06/lg-g3-review-a-great-phone-with-way-too-many-pixels/ Jul 23 04:25:21 1:20 Jul 23 04:25:40 Hey I have a view I want to make as a shared banner. How would I go about doing that Jul 23 04:25:45 that's not a whole lot of usage :p Jul 23 04:25:51 still decent though Jul 23 04:26:06 Case you are confused I have a layout.xml that I want to create and create it to a PNG to be shared Jul 23 04:26:07 ProjectBarks, reuse the layout Jul 23 04:26:12 its plenty hot here and I havent seen any heating problems or brightness issues Jul 23 04:27:05 sounds like a decent device Jul 23 04:27:16 I don't think you can go wrong with any of the current flagship phones Jul 23 04:27:20 except for the s5 maybe ;) Jul 23 04:27:24 I was skeptical because there were lots of trolls rolling all over the xda forums Jul 23 04:27:27 Anyone? Jul 23 04:27:36 my lumia 521 has great battery life, but i think thats also because of WP. killer feature is disallowing background apps Jul 23 04:27:38 ProjectBarks: what pfn said? Jul 23 04:27:47 That makes no sense Jul 23 04:28:05 maybe you haven't defined your problem well enough Jul 23 04:28:21 are oyu sure it makes no sense? Jul 23 04:28:29 * pfn still <3 his moto x Jul 23 04:28:32 http://pastebin.com/pyyAh8Nt <- This is the code I have right now Jul 23 04:28:35 doesnt work Jul 23 04:28:37 best phone ever Jul 23 04:29:09 wabz new theme here lately is pastebins followed by "doesn't work" Jul 23 04:29:15 i'm not a fucking sleuth :D Jul 23 04:29:50 do i need interrogation tactics to pull out, what the hell they expect it to do Jul 23 04:30:02 work ? Jul 23 04:30:13 that one is particuarly confusing too Jul 23 04:30:21 I understand what each line does... but as a whole... ????? Jul 23 04:30:30 i=1 Jul 23 04:30:33 doesn't work ! Jul 23 04:30:50 It should save a screenshot of a banner and share it for other apps to have Jul 23 04:30:56 https://lh4.googleusercontent.com/-MWJYpEGLD7I/U886a4_NC4I/AAAAAAAABV0/_f3x9Fju9X4/w745-h559-no/IMG_20140719_201850.jpg Jul 23 04:31:04 took that picture with the g3 Jul 23 04:31:10 for the weather and shit it came out good Jul 23 04:31:11 aww nice sunset Jul 23 04:31:31 https://lh5.googleusercontent.com/-LuSSGjfp4uA/U8yUNJRs3jI/AAAAAAAABU8/gMeer6IExtg/w745-h559-no/2014-07-20 Jul 23 04:31:43 I some how accidentally auto leveled that picture to that Jul 23 04:31:48 and it came otu pretty cool =) Jul 23 04:32:13 https://www.flickr.com/photos/8425807@N06/14486888645/in/photostream/ with z2 and it was quite dark then Jul 23 04:32:29 cool Jul 23 04:33:45 Anyone know what I would need to do to make a layout rasterize it to a png and share it with other apps Jul 23 04:34:10 is there even going to be a drawing cache if the view hasn't been drawn? Jul 23 04:34:27 no Jul 23 04:34:45 there's problem #1 Jul 23 04:35:46 What is it Jul 23 04:36:02 wabz: you can force a view to render Jul 23 04:36:07 grab the cache Jul 23 04:36:31 I had to some janky ass shit on some of our hardware running an old version of android Jul 23 04:36:40 for remote screen capture stream Jul 23 04:36:44 oh ok, that might not be a problem then for you ProjectBarks Jul 23 04:44:08 lasserix_: hi Jul 23 04:44:10 morning Jul 23 04:46:53 Any ideas Jul 23 04:50:25 ProjectBarks: hi Jul 23 04:50:32 ProjectBarks: whats the question? Jul 23 04:50:56 ProjectBarks: sorry I joined the channel now so did not see what was your question Jul 23 04:51:29 http://pastebin.com/pyyAh8Nt So I have this code and I want to create a layout take a screenshot from it and then share it with other apps Jul 23 04:51:36 currently It doesnt work Jul 23 04:52:41 hi folks, quick question. Given I have a user who has v1 and v1 contains assets/foo file. If I push v2 with changes to assets/foo, will it overwrite existing assets/foo of v1? Jul 23 05:01:52 ProjectBarks: In that code you are checking if a file exists and then if does not exist create it and write to it,compressing and closing Jul 23 05:02:09 yes Jul 23 05:02:23 and creating a new intent Jul 23 05:02:50 Isnt there something wrong with startActivity(Intent.createChooser(shareIntent, "send")); Jul 23 05:03:52 so you want to share a common layout with all the apps? Jul 23 05:12:01 niru: did u figure it out Jul 23 05:15:52 ProjectBarks: did you try using include option in layout xml file Jul 23 05:16:08 ?? Jul 23 05:16:14 What do u mean Jul 23 05:16:52 ProjectBarks: Jul 23 05:17:21 In that same layout can be used across apps Jul 23 05:17:30 http://developer.android.com/training/improving-layouts/reusing-layouts.html#Create Jul 23 05:17:43 I just wanna make it a png Jul 23 05:18:27 niru: Just show me how to create a layout make it a png and save Jul 23 05:19:43 ProjectBarks: are you sure you dont know how to create a layout? I mean a basic layout. Or the complex is much more complex that I am imagining Jul 23 05:20:03 Or the question is much more complex that I am imagining Jul 23 05:21:24 ProjectBarks: http://stackoverflow.com/questions/12986019/how-to-save-relative-layout-as-a-image Jul 23 05:25:39 ProjectBarks: is that link of any help to you? Jul 23 05:29:19 hi Jul 23 05:30:01 I'm using the master detail flow from the template and want to dynamically add content to the list Jul 23 05:30:33 actually nvm Jul 23 05:36:49 capella no way to disable canvas fingerprinting in FF ? Jul 23 05:36:56 thats mad news man Jul 23 05:36:59 *bad Jul 23 05:37:19 no idea what that is Jul 23 05:37:37 http://www.ghacks.net/2014/07/21/companies-use-canvas-fingerprinting-track-online/ Jul 23 05:38:14 I knew there was a visitedLink approach, but thats TIL for me Jul 23 05:38:55 You'd have to talk to the Security guys iir Jul 23 05:40:09 a least i'm using noscript Jul 23 05:40:25 break all the things :( Jul 23 05:46:06 "Doctor, it hurts when I go like this" ;) Jul 23 05:50:21 \mSg: Jonno_FTW hi Jul 23 05:51:56 Jonno_FTW: are you there? Jul 23 05:53:17 What is the difference between fragment and master detail flow Jul 23 05:54:05 Where should one implement fragment and where to implement master detail Jul 23 06:05:55 Question : What is the best ORM solution? Jul 23 06:10:16 Omigod ... Message Queues got Synchronization barriers Jul 23 06:15:06 Which is the best ORM solution for Android? Ormlite, GreenDAO, SugarORM, ActiveAndroid?? Jul 23 06:27:28 ORMLite appears to use annotations just like ActiveAndroid Jul 23 06:28:05 annotations are very helpful, although SugarORM is the easiest to use Jul 23 06:35:49 What is the syntax to add a subitem in dummycontent in master detail Jul 23 06:41:58 niru I think you might be able to hardcode another item into the list generated in the dummy content. Jul 23 06:42:32 napster: At present I have addItem(new DummyItem("1", "Angul")); Jul 23 06:43:00 so can i have addSubItem(new DummySubItem("1",subitem1)); Jul 23 06:43:23 niru need to see the code to be sure Jul 23 06:59:06 Does Google Play count installations for preinstalled apps? Jul 23 07:00:29 I have an app preinstalled on couple million devices, so they say, but I cannot see that from the statistics Google provides on Google Developer Console Jul 23 07:00:35 based on app_version Jul 23 07:00:35 Could some one point me in the right direction on what kind of control the info window "popup" is in Google Maps? http://phandroid.s3.amazonaws.com/wp-content/uploads/2013/07/New-Google-Maps-update-Android-640x376.jpg you can drag the "popup" up and down. Jul 23 07:01:00 Does that mean Google doesn't count preinstalled apps as current_device_installs ? Jul 23 07:01:02 I'd like to build something similar in my app but cant seem to find the keyword for something like this Jul 23 07:01:41 thomaschaaf they are called markers Jul 23 07:01:58 https://developers.google.com/maps/documentation/android/marker Jul 23 07:02:12 And then there is http://developer.android.com/reference/com/google/android/gms/maps/model/MarkerOptions.html Jul 23 07:04:06 detachYo_: I am talking about the highlighted areas: https://dl.dropboxusercontent.com/u/5910/Jing/2014-07-23_0903.png you seem to be refering to the red dots if I am not mistaken? Jul 23 07:04:24 the routes? Jul 23 07:05:01 no the content box which has a handle at the top and can be dragged to expand over the full screen Jul 23 07:06:05 Those are just layouts you add on top of the map. Jul 23 07:07:43 Hi all, I'm banned from another channel (don't know why) is this a ban for life or x days? Jul 23 07:07:46 how would I create the "dragability" of that layout though? Jul 23 07:08:12 FrancescoV: how would anyone here know/care ? Jul 23 07:08:50 https://github.com/umano/AndroidSlidingUpPanel Jul 23 07:08:54 I think I found something Jul 23 07:09:11 bankai_au: ok, NM Jul 23 07:09:32 I have a question myself: I have a lyout file called item.xml that is a linearlyout, containing a TextView and a Button. I want to dynamically add that layout to main layout every time a button is clicked. I tried LayoutInflater => inflate(item.xml, null); then find from that view, but no dice. Jul 23 07:12:02 detachYo_: you must add the view you from inflate() to something Jul 23 07:12:38 shipit, I tried, but it's still not working Jul 23 07:12:42 this is what I did.. Jul 23 07:12:59 View view; LayoutInflater inflater = (LayoutInflater) getActivity().getApplicationContext(). getSystemService(Context.LAYOUT_INFLATER_SERVICE); Jul 23 07:13:13 view = inflater.inflate(R.layout.item, null); Jul 23 07:13:37 TextView text = (TextView)view.findViewById(R.id.name); Jul 23 07:13:48 text.setText('example'); Jul 23 07:13:58 mParentLayout.addView(view); Jul 23 07:14:05 mParentLayout.setVisibility(View.VISIBLE); Jul 23 07:14:13 does that look right? Jul 23 07:14:21 yes, that does look right Jul 23 07:14:44 what kind of layout is mParentLayout? Jul 23 07:15:20 btw, text.setText("example"); <-- double quote string Jul 23 07:15:39 its a LinearLayout Jul 23 07:15:49 detachYo_: what's the orientation? Jul 23 07:15:57 Um, what do you mean? Jul 23 07:16:16 on the vertical or horizontal? Jul 23 07:16:31 because if it's not set to vertical then it's horizontal Jul 23 07:16:52 and that means adding views will go off screen Jul 23 07:16:54 Any help? Jul 23 07:16:57 Silly me, it actually worked, shipit. Jul 23 07:17:01 it was horizontal Jul 23 07:17:01 :) Jul 23 07:17:10 I have created a new project with master detail view Jul 23 07:17:14 I had forgotten to initialize the parent layout. Jul 23 07:17:21 but it does go off view Jul 23 07:17:30 I see the list view items which are coming from dummycontent.java Jul 23 07:17:41 that's not something normal I suppose? the mParentHolder is a child of HorizontalScrollView Jul 23 07:17:46 how can I add the subitems to that? Jul 23 07:22:27 shipit: everything is working perfect right now, thanks for walking me through it. Jul 23 07:22:39 detachYo_: np, glad :) Jul 23 07:28:51 lasserix_: are you available? Jul 23 07:51:22 I'm looking for an uptodate pdf(s) of the API Guides for offline reading on my Android tablet. The API Guide app (https://play.google.com/store/apps/details?id=com.androidlamp.android.androidapiguides) in the playstore simply sucks : keeps freezing and has way too many ads. Any suggestions. Jul 23 07:55:13 Hello, waht's everything in the project hierarchy view called in eclipse/android studio? like categorically? "project resources"? Jul 23 07:56:30 not sure I parse that. Project Outline? Jul 23 07:57:05 yeah but what's all the things inside called? Jul 23 07:57:10 "Project View" is the general name for the alt-f1 selected tree view of a project structure. Jul 23 07:57:13 collectively, they constitute what of the project? Jul 23 07:57:14 what things? Jul 23 07:57:29 I don't mean the view, i mean all subfiles of the top level project folder Jul 23 07:58:03 ie "project resource/assets/components.etcetc" Jul 23 07:58:05 those things "are" the project. A project is a collection of resources and code. even code is a resource really I supposed but not in android nomenclature. Jul 23 07:58:05 Jul 23 07:58:49 each directory being a level for a project "component" I guess you could say. Jul 23 07:59:44 hmm Jul 23 08:00:07 I was trying to find the word of what do you add a library to in the project? but i guess the answer would be the project itself Jul 23 08:02:05 you add a library to the library resources ;) Jul 23 08:03:29 hehehe Jul 23 08:03:49 how would yoda say com.your.package.name? Jul 23 08:41:57 can I retrieve the List of ArrayAdapter? I only found getStringArray, getIntArray etc. Jul 23 08:42:26 ah there is getItem(position) :) Jul 23 08:50:27 Hello, i need help with onActivityResult Jul 23 08:57:45 just ask your Q. Jul 23 09:09:06 Hello? Jul 23 09:09:47 hwllo Jul 23 09:09:54 welcome to IRC Jul 23 09:11:31 Hi, how can I find out the direction I'm moving seekbar? Jul 23 09:15:14 see if it goes left or right... Jul 23 09:15:43 when using intellij/debugger etc how can I easily tell which DPI drawables are being used on the attached device? Jul 23 09:15:43 rgr yes. How? Jul 23 09:16:25 you look at it. Im really not sure what you mean. How can you not know which direction its moving if you have one on the screen? Jul 23 09:16:57 I'd Like to move many seekbars at the same time. But relatively Jul 23 09:17:40 I move one and others should go to same direction Jul 23 09:18:57 If I move first one from 0 to 50, second one should go e.g. from 50 to 100 Jul 23 09:19:23 you need to formulate your Q a little better. You didnt mention any others originally. Post some code with comments. Your examples have nothing to do with "direction". its more you're asking how to link seekbars to manually update when you move a master one. Jul 23 09:19:52 It should happen relatively to current seekbar values Jul 23 09:20:29 And at the same time, not after releasing Jul 23 09:21:01 Hello, i need help with onActivityResult Jul 23 09:21:19 Messii: then post your Q. No one has a crystal ball. Jul 23 09:21:38 Is it the same as last night? Jul 23 09:22:29 is android studio more stable than adt? Jul 23 09:22:47 because adt likes to not build when i tell it to Jul 23 09:29:31 how does if "not build when you tell it too"? It would be pretty useless if it doesnt "build". Yes :AS/Intellij do "build" just fine. Jul 23 09:29:58 well I click clean and it cleans out bin and gen Jul 23 09:30:13 Jonno_FTW: I am just starting into developing for Android, but so far ASDT + Eclipse Luna + Linux seems a good platform & seems stable so far... Jul 23 09:30:15 yes? Jul 23 09:30:18 and then it doesn't rebuild gen even though i set it to "build automatically" Jul 23 09:30:32 so the issue is with you. Jul 23 09:30:32 Jonno_FTW: ADT Jul 23 09:30:42 i'm on windows Jul 23 09:31:03 I also constantly get errors about it not being able to load sdk content Jul 23 09:31:05 Jonno_FTW: its fre to upgrade to Linux :-) Jul 23 09:31:16 it's a machine at work Jul 23 09:31:29 so I don't have admin access Jul 23 09:31:48 please, no linux/windows nonsense. there#s groups for that. Jul 23 09:32:00 i'm not bagging windows/linux Jul 23 09:32:14 anyway : why do you expect "clean" to rebuild? Jul 23 09:32:25 Jonno_FTW: I had Linux desktops at last 2 places I worked full time. Maybe I'm spoilt! Jul 23 09:32:29 because "build automatically" is checked Jul 23 09:33:14 I dint use adt but I would expect that to only invoike when editing code. You told it to clean : that is not clean and build if you get my drift. And its hardly reason to change IDE (even if intellij is a lot better). Rebuild the project. that should clean and build. Jul 23 09:33:40 eh Jul 23 09:33:46 I can make changes and it doesn't see them Jul 23 09:33:57 well it doesn't build when I make changes Jul 23 09:33:58 what doesnt see what? Jul 23 09:34:09 then click "build". Jul 23 09:34:13 or whatever it is. Jul 23 09:34:18 I did Jul 23 09:34:28 still looking how can I link some seekbar together Jul 23 09:34:32 I had to restart the ide for it to actually build Jul 23 09:34:51 the problem isnt adt I think. millions of people build with it daily. its you set up. try eclipse support forums. Jul 23 09:35:20 that said, it's worked fine on my home pc Jul 23 09:40:19 well, therefore I think the mystery is solved. Your install is screwed up. Jul 23 09:43:47 How can I get the android:pathPattern to match example.com/something and example.com/somethingelse/ but not example.com/blah/foo... ? Jul 23 09:49:36 rgr::: Jul 23 09:51:19 I need fix a code Jul 23 09:52:43 don't we all... Jul 23 09:53:44 Ok Jul 23 09:56:46 Messii: I guess theres no easy way to say this for the third time .... *just ASK YOUR QUESTION*. Post a link to the code. No one can GUESS what your problem. Stop asking for "help" and post the QUESTION.... ;) lol.... Jul 23 10:01:01 Ok my code not work, i do not know why Jul 23 10:01:02 Http://pastebin.com/bwjymasw Jul 23 10:01:24 The string not sent Jul 23 10:02:46 well for one thing first activity you seem to have missed out the switch Jul 23 10:03:21 Ok, only this? Jul 23 10:03:27 and why not just use getExtra("emosio");? Jul 23 10:03:41 Switch (actionId) { Jul 23 10:04:16 I tried that way, but does not work Jul 23 10:05:08 How could I get the bounds of a gravity centeredText that is drawn inside a TextView ? I am trying to draw a semi circle above the text Jul 23 10:07:40 rgr::: Your answer? Jul 23 10:22:42 https://www.youtube.com/watch?v=Gv0YM8TIlkM Jul 23 10:25:42 may answer is this : once again you havent said what you mean by "doesnt work". Doesnt do what? What do you want to do? Where doesnt it work? What you have set with the debugger? Where is the switch statement in first activity. Dint expect people to guess your intent. describe it. Jul 23 10:27:33 and I'll be even blunter : if you cant be bothered to post code that actually compiles how do you expect others to help you? Jul 23 10:36:24 Hi Jul 23 10:36:53 I don't consider Android /that/ funny. :/ Jul 23 10:37:04 Which would make it a bad joke... Jul 23 10:37:07 I just updated to last adt Jul 23 10:37:12 and i swear to god Jul 23 10:37:20 Android is the ugliest os ever Jul 23 10:38:09 and people building this os are the most irrelevant people you can find in the job market Jul 23 10:38:37 After upgrading to adt all my project are not even recognize as android project Jul 23 10:38:42 how the *** they do that ? Jul 23 10:39:07 How those guys can put in production a ** like that to thousands of company and developers ? Jul 23 10:39:45 You're begging to be /ignored. Jul 23 10:39:54 terrible troll Jul 23 10:40:15 I'm begging to work on something stable Jul 23 10:40:37 not having days of debug and google groups because android os devs dont know how to commit a file Jul 23 10:41:32 terrible troll but the good news is you can only go up from here Jul 23 10:41:41 androidisajoke: you sound like an idiot who blames his own failings on the tools at his disposable. Millions of others manage just fine. It seems the problem is closer to home. Jul 23 10:41:56 (yes, we know you're trolling!) Jul 23 10:42:09 Well. One may agree that the android setup is indeed optimisable, but it's nowhere as bad as you describe. Jul 23 10:42:19 yeah but you can't control yourself and feed it Jul 23 10:42:27 and it improves daily. Its MUCH better than a year or two ago. Jul 23 10:42:38 Yeah after seven years they can't have a stable IDE Jul 23 10:42:52 IntelliJ is pretty usable. Jul 23 10:42:54 what are you talking about? There are loads of stable IDEs. Jul 23 10:43:08 Working with Android SDK perfectly fine ? Jul 23 10:43:26 Nothing is perfect. Jul 23 10:43:39 (Well, some is, but IDEs are not.) Jul 23 10:43:42 is that normal that after an update all my projects are broken and all the build targets missing ? Jul 23 10:43:51 No, that's your fault. :P Jul 23 10:44:25 I love people who their only argument is saying "troll" Jul 23 10:44:32 androidisajoke: relevant: http://blog.codinghorror.com/the-first-rule-of-programming-its-always-your-fault/ Jul 23 10:45:48 ^+1 Jul 23 10:45:57 without arguing or showing example Jul 23 10:46:28 Well, you aren't arguing well either... So... Jul 23 10:46:57 kinda delusional that you show up with the name you currently have to an android development channel and expect someone to have a reasonable discussion with you Jul 23 10:47:39 I commented on the name after he joined, but will still have a reasonable discussion if he cooperates, aaearon. :) Jul 23 10:47:40 Sorry to feel extremely frustrated when I see that kind of *** Jul 23 10:47:55 You tend to use too few asterisks, no? Jul 23 10:48:02 yep Jul 23 10:48:07 I love them Jul 23 10:48:39 You tend to use too few asterisks, no? Jul 23 10:48:48 Whatever... Jul 23 10:48:53 I love the way people feed trolls Jul 23 10:49:13 Mhm. :) Jul 23 10:49:14 Somehow it feeds the fact that nobody can help me :) Jul 23 10:49:19 so people feed Jul 23 10:49:23 and i love it Jul 23 10:49:30 We could all help you... :) Jul 23 10:49:34 (But we don't.) Jul 23 10:50:12 yeah like the first think you did is feeding the troll in my nickname ? without saying "hi" ? Jul 23 10:50:16 you are ridiculous Jul 23 10:50:22 thing * Jul 23 10:51:02 I've seen better trolls after all. I mean... I can read and understand your sentences. You'll have to work on that if you want to frustrace us/me. :) Jul 23 10:51:04 Do you really think that I was waited for an answer coming with this nickname in this bunch of frustrated developers ? Jul 23 10:51:20 *frustrate Jul 23 10:51:31 not my goal Jul 23 10:51:35 I troll you feed Jul 23 10:51:40 don't justify yourself Jul 23 10:51:46 No, of course not your goal. ^^ Jul 23 10:52:44 And I don't take offense on your name, that's just silly. People say the life is a joke/game, so why couldn't Android be? :P Jul 23 10:55:06 androidisajoke: No grown man should have time to troll. I suggest you get a job and a girlfriend and stop wasting your life Jul 23 10:55:38 Hahaha I go to pee and everybody is feeding Jul 23 10:55:42 Depending on your girlfriend, a girlfriend is enough to keep you busy. :) Jul 23 10:55:43 Yeah guys ! Jul 23 10:56:06 didn't troll for years and the feed is the same "i have no job" "no girlfriend" bla bla Jul 23 10:56:07 hahaha Jul 23 10:56:09 love you guys Jul 23 10:57:26 While I can't say the same about you, I suggest you consider following liefers advice. ^^ Jul 23 10:58:23 usually the advices in this channel are quite good Jul 23 11:00:09 guys could you test my app on your devices? it is free, there are no ads... Jul 23 11:01:25 Let's see, what kind is it? Jul 23 11:02:18 please stop.... /ignore . ;) Jul 23 11:02:49 mrpyo: you have more chance of flying to the moon than asking people to run an anonymous apk.... Jul 23 11:03:24 well it on google play already, some people have already downloaded it Jul 23 11:03:25 If it doesn't request any dangerous permissions... And is an interesting app... Why not? :/ Jul 23 11:03:45 ah its on playstore. different thing. Jul 23 11:04:15 rgr: why? Jul 23 11:04:26 its not like google test apps before publishing... Jul 23 11:04:28 https://play.google.com/store/apps/details?id=com.zworks.watch_series2_free Jul 23 11:04:37 When I'm trying to decide which resolution of an image to display full-screen, should I be trying to match the physical resolution of the screen, or the resolution in density independent pixels? Jul 23 11:05:13 Most pointless disclaminer ever Jul 23 11:05:23 Your app will get suspended eventually Jul 23 11:05:55 well sopcast for example is not yet suspended Jul 23 11:06:10 and it's pretty much illegal too Jul 23 11:06:21 well I'm not doing anything illegal in my country' Jul 23 11:07:00 d0de: shouldn't you use different drawable directories and let android sdk manage it by itself? Jul 23 11:07:19 d0de: you should be be doiing anything. Jul 23 11:07:35 the system should be selecting based on layout and drawable available. Jul 23 11:07:44 *not be doing* Jul 23 11:08:28 hi all Jul 23 11:08:30 SimonVT: anyway Google can't remove it from my device, so I'm happy anyway - I mostly made this app for myself Jul 23 11:09:25 sorry, got disconnected. When I'm trying to decide which resolution of an image to display full-screen, should I be trying to match the physical resolution of the screen, or the resolution in density independent pixels? Jul 23 11:09:28 well, it it links to free and open series then why not. there are plenty around. including on youtube. Jul 23 11:10:06 d0de: you should use diferent drawable directories and let android sdk manage it itself Jul 23 11:10:06 i would test my Service with ServiceTestCase but I cannot launch any Intent because of null Context. I've tried with getSystemContext() but is also null, how to pass a mock Context to the intent? (also new MockContext doesn't work) Jul 23 11:11:23 http://developer.android.com/training/multiscreen/screendensities.html Jul 23 11:11:26 mrpyo, I'm a little confused about how to do that properly. E.g., what resolution of image I should provide in the mdpi directory, given than an mdpi device might be small and low resolution or big and higher resolution? Jul 23 11:11:43 mrpyo: The disclaminer is still pointless. It won't make google go "oh, guess it's fine then" Jul 23 11:11:44 kinda crappy documentation but it should get you started Jul 23 11:12:25 so.. android view animates. The repeatCount and repeatMode attributes are supported in the root "set" but... it doesnt work. The animations only repeat if I specify both in each and every specific animation in that set. Is there some other flag or method to make this work with the repeat* attrs only specified at the set level? Jul 23 11:13:24 SimonVT: yeah I getit. In my country it is not illegal to download copyrighted stuff as long as you are not hosting it (or in general uploading it), that's why I wrote it Jul 23 11:13:38 i google doesn't like it than its ok Jul 23 11:13:44 I cant do anything about that Jul 23 11:13:44 d0de: its far from clear alright. and why so many apps are crap on different devices. Jul 23 11:14:13 mrpyo: you're not downloading anything though. The users would be. So in fact you're risking them unless you make clear with each link you provide just where its coming from. Jul 23 11:17:56 rgr: are you suggesting it will be "ok" as long as I tell user that link may be pointing to copyrighted stuff? I know my app is kinda "shady" and I don't think it will help... Jul 23 11:19:08 anyone tested Services with junit? Jul 23 11:19:21 What would you use instead of a ListView for displaying like 3-5 items? Jul 23 11:19:33 because I want to put the ListView into a ScrollView Jul 23 11:19:45 Can I just use a bitmap factory to build a version of the image that's close to the true device resolution? That seems to be much easier than using combinations of (mdpi|ldpi) etc with (small|large) etc to try to guess the actual resolution of the screen Jul 23 11:20:52 I dint think there is anything shady at all about your app. It doesnt host anything. Otherwise you could argue google search is as guilty. Unfortunately what I think is immaterial. Jul 23 11:21:45 Hi friends Jul 23 11:21:51 Anyone else having issues with APKs not uploading to Google Play? Getting stuck on Processing... after upload completes. Jul 23 11:21:57 why the http://pastebin.com/fwGkFHZk code is not displaying any list items Jul 23 11:22:27 d0de: what is a "true device resolution". You provide the different drawables because only you can determine how you want it to look on the different display types. Allr esources are then packaged and optimsied in the apk. The device running the program decides which ones it wants based on certain rules and metrics. You provide them or, if you dint, it defaults to drawable. Jul 23 11:23:56 d0de: well if you are going to "build" your image, why not just provide high resolution image and leave scaling to ImageView? Jul 23 11:24:40 Less memory usage if you load in a scaled version of your high resolution images Jul 23 11:25:56 And probably faster as well if the bitmap can be drawn directly, instead of applying transformations on every draw cycle Jul 23 11:27:36 it depends really if you need this kind of optimisations: for a game sure, but for a tool I don't think so... Jul 23 11:28:33 Estel: are you there Jul 23 11:28:46 can you please check where I am going wrong? Jul 23 11:28:53 http://pastebin.com/fwGkFHZk Jul 23 11:29:51 mrpyo, because if I just provide the high resolution image I get outofmemory errors Jul 23 11:31:02 rgr, the problem I'm having is that it seems like the selectors the system offers are a poor match for my use case, i.e. displaying a full screen image in as high a resolution as is appropriate for the device Jul 23 11:34:15 rgr: yeah I think your idea is good, I will show the dialog to the user that will warn the user that stuff they are downloading might be copyrighted. Won't please Google, but at least pushes responsibility onto the user - more protection for me Jul 23 11:35:13 d0de: still don't get it - you have to load image to memory to scale it anyway, I'm not seeing how it will help with out of memory errors... Jul 23 11:37:32 GC high-res images and load sequentially? Jul 23 11:39:04 mrpyo, fair enough. What I was really looking for was some kind of true-resolution based selector I could use in the layout and not have to do anything programatically, but it's clear that doesn't exist. I wasn't sure about how bitmap factory works, it definitely loads the entire image into memory at once? I don't know anything about image processing, really Jul 23 11:40:18 no, im wrong, d0de is right, BitmapFactory can scale straight from "disk", dont have to load them to memory Jul 23 11:40:24 *doesnt Jul 23 11:40:43 the sclaing is still done "in memory"... Jul 23 11:41:11 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Jul 23 11:41:31 it suggests it only loads required samples to memory Jul 23 11:44:26 d0de, the way you do it is like it's on mrpyo-s link: first you probe image for size, then you calculate the scaling factor Jul 23 11:44:41 then you load with the highest scaling factor available (the decoder will skip samples when decoding and will use less memory) Jul 23 11:45:06 if you still have to scale the image, you scale it and discard the full-res image... loading two full-res images in memory should be possible on any device Jul 23 11:45:24 note that you can get OOM Exceptions due to heap fragmentation as well, not just from running out of memry Jul 23 11:53:01 is there a way to force your rooted device to pretend to be of different dpi etc just so I can test the auto loading of different drawables and layouts from the res directory? Jul 23 11:55:28 some ROMs allow that (e.g. Paranoid) Jul 23 11:55:32 but tbh... just use an emulator Jul 23 11:55:53 doing that on ROM level is glitchy and will not represent what people with those devices will actually see Jul 23 11:59:56 use genymotion people, if you don't already know it... Jul 23 12:00:04 it's so much faster Jul 23 12:01:44 i'm amazed they give it for fre Jul 23 12:03:51 apologies, my internet crapped out again Jul 23 12:04:49 Mavrik, you mentioned that it should be possible to load two full-resolution images on any device - but given that a full-resolution image can easily take 10 or 12 MiB of memory to display, and some devices have a heap size of 16MiB, how can this be? Jul 23 12:05:04 d0de, full resolution of that device. Jul 23 12:05:18 I haven't seen a 16MiB heap device with HD screen ;) Jul 23 12:05:22 Mavrik, ah I see Jul 23 12:05:24 read this link carefully: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Jul 23 12:05:35 mrpyo, will do! Jul 23 12:05:36 it shows how to load images to memory Jul 23 12:06:01 ive almost never got an emulator to actually work in abything other than tortoise mode on this debian setup. Jul 23 12:06:13 invariably it freezes or crashes before the app inits. Jul 23 12:06:30 rgr, if you're using AVD,it is extremely slow Jul 23 12:06:35 have you tried genymotion? Jul 23 12:06:45 it is mased on virtualbox Jul 23 12:06:48 much faster Jul 23 12:06:53 *based Jul 23 12:07:02 I'll take a look. thanks. Jul 23 12:11:40 It seems that my device tends to disconnect from ADB after a while... I only noticed that after I got a new cable, could that be the cause? Jul 23 12:13:06 yes Jul 23 12:13:11 possible Jul 23 12:13:13 That's usually USB or cable issues :) Jul 23 12:13:20 microusb plug is kinda crappy Jul 23 12:13:33 it has loose connections Jul 23 12:14:40 I have original cable and it sometimes disconnects itself if phone doesnt lie on the desk right Jul 23 12:14:44 frustrating... Jul 23 12:16:06 Good morning, fellow human beings. I have a problem. I have developed an Android app and I want to check my reviews. I am trying to use gsutil and it asks me for my project number on google developer console but I dont have a project there, it is on the android developer console and I cannot find a project number there...can you help me? Jul 23 12:19:21 have you tried asking on stackoverflow? Jul 23 12:24:53 <_3mpty> tuna: after login, when you see your project list, after clicking it you will have project number on the top Jul 23 12:25:05 <_3mpty> (I'm using new design of console) Jul 23 12:31:17 _3mpty, where do you mean, I click it I end up under Store Listing and cant find a project number Jul 23 12:31:30 I have a drawable consisting of a shape and a solid, is there a simple way I can change the color of the solid? Jul 23 12:33:25 either in code or in a layout xml Jul 23 12:35:54 oh. I need to oracle virtual box for genymotion. Jul 23 12:37:12 _3mpty, I would be really grateful if you could clarify further where I find the project number Jul 23 12:42:49 When using a Huawei device, do I need to install something more to debug on this? On windows Android studio doesn't recognize the devices. On mac it does? Jul 23 12:43:27 Click66, probably the specific USB drivers Jul 23 12:43:45 Syzygy: will check the website for that ;-) Jul 23 12:44:09 some devices need their own drivers, they might be available on mac from the start Jul 23 12:44:23 also maybe you need to accept the RSA key of the device or something like that Jul 23 12:46:43 Click66, on Windows you usually need drivers for ADB from your phone manufacturer Jul 23 12:48:07 How do I "click" StatusBarNotification (or Notification)? Jul 23 12:52:30 Any idea if i can change the color of a drawable shape with a solid in xml while using it? Jul 23 12:52:55 So that I need to only define one shape, even though i want it in different colors Jul 23 12:53:11 Syzygy: setColorFilter Jul 23 12:53:17 in xml Jul 23 12:53:27 like, in the layout file Jul 23 12:53:44 sec, I used it on my of my projects Jul 23 12:54:45 I changed it in code by casting it to a GradientDrawable and setting the color on that. but in xml would be smarter Jul 23 12:54:57 Syzygy: xml is stupid :P Jul 23 12:55:02 you can 't create dynamic xml Jul 23 12:55:11 but you can set a color filter on the imageview Jul 23 12:55:11 doesn't need to be dynamic Jul 23 12:55:24 it's not an image view, it's a background of a textview Jul 23 12:55:30 oh Jul 23 12:55:49 so you got to use drawable.setColorFilter Jul 23 12:55:54 to change color on running Jul 23 12:56:28 as I said, it's not really dynamic or at runtime, but I guess I'll have to do it. Jul 23 12:56:50 the easy/hard way it to copy the file and change the color Jul 23 12:56:58 depend on how many colors you got Jul 23 12:57:44 for now two, but I would prefer not having to have duplicate files because I want different colors - then again, it might make sense if I use certain colors a lot Jul 23 13:02:35 How do I "click" StatusBarNotification (or Notification)? Jul 23 13:08:22 Mavrik: thanks. It works now :) Jul 23 13:08:34 only for that I would never use a windows pc Jul 23 13:21:13 When the keyboard is shown, the "Back" button changes to a "Close keyboard" button. Can I also achieve this in other situations? Jul 23 13:29:11 if I want to use tabs and a Nav Drawer, do I need to use a TabHost? Jul 23 13:30:35 no Jul 23 13:35:58 pfn hmm, so how do I use both? If I open the drawer the tabs disappear. I was assuming because I set Navigation mode with both my tabs and the drawer. Jul 23 13:40:57 huh Jul 23 13:41:10 no idea what you're doing Jul 23 13:43:16 mattblang: dont use action bar tabs with navigation drawer, use sliding tabs instead: https://www.youtube.com/watch?v=tRg_eDfQ8fk Jul 23 13:51:43 pfn I have a drawer layout with a FrameLayout and a nav drawer fragment that is created from the generated example in AS. In the Activity that creates the nav drawer I am creating tabs on the action bar Jul 23 13:51:49 mrpyo checking that out now Jul 23 13:52:26 google discourages use of action bar tabs with navigation drawer Jul 23 13:53:13 should work fine even if discouraged Jul 23 13:54:17 mrpyo wel google uses both tabs and the drawer in the Play store app, so... Jul 23 13:55:04 mattblang: yes but they are sliding apps (link I sent you) and not action bar tabs Jul 23 13:55:13 *sliding tabs Jul 23 14:02:13 hi. has anyone used android-x86-4.4RC2 yet? it hangs on the splash screen with me on virtualbox Jul 23 14:05:52 Hello android people, i have to deal with a samsung Note 2 (android 4.4) and WiFi authentication with cert (802.1x). It's works until i disable the wifi. If disabled and re-enabled, i lose my cert (CA and user)... Do you know this bug? is there a fix somewhere? i googled without success Jul 23 14:11:10 test Jul 23 14:11:39 jjbrunton: it didn't work, can you try again? Jul 23 14:11:43 Hey, I am trying to maintain a WebView state in a fragment that has RetainInstance, what is the best way to achieve it? Jul 23 14:11:54 Weird Mac client :) Jul 23 14:16:54 Any recommendations on profilers for android? Jul 23 14:17:11 DDMS? :/ Jul 23 14:21:07 DDMS doesn't seem very popular with our team, so something else would be prefered. Jul 23 14:22:16 Well, what else is popular then? O.o Jul 23 14:22:43 Or... Jul 23 14:31:36 flan3002, mostly debugging performence testing by comparing timing of log outputs and guessing, but that's quickly falling out of favor for obvious reason. are there other profilers than traceview or DDMS? otherwise I'll havto force it on the rest of the team Jul 23 14:32:02 I don't know of any... What's wrong with DDMS? Jul 23 14:32:48 dunno, people don't like it (presumably because it's "hard") Jul 23 14:33:11 Well, that's no reason not to use it... Jul 23 14:33:29 I like it really much and basic profiling is not hard with it. Jul 23 14:33:45 it isn't. but I'm sure there are others. Jul 23 14:34:01 Well, really much is exaggerated, but loads better than logging. :/ Jul 23 14:34:08 pfn, mrpyo sweet! thanks yall. removed the action bar tabs and implemented a fragment tab host. works great, just gotta find the color style android was using for the background of the action tabs Jul 23 14:35:10 also, I can't find DDMS in my android studio and I don't want to use the command line since it's not set up D: Jul 23 14:36:04 Sorry, but this childish. "I want to spend my time finding something that doesn't setup and works good because I don't like to setup my CLI". Really? Jul 23 14:36:20 *that doesn't need much setup Jul 23 14:36:50 no, that's not the case, I don't mind setting it up, but as I said, the rest of the team would prefer something else. Jul 23 14:37:01 So if there are competitive options I would like to know them. Jul 23 14:37:10 So I can actually compare them. Jul 23 14:37:26 I know, but why do they 'want' something different? I don't know any real alternatives though... Jul 23 14:37:42 Well, there is much better out there for other platforms. Jul 23 14:37:49 DDMS is a bit... antequated. Jul 23 14:38:46 so what are the alternatives that "just work"? Jul 23 14:39:00 None anyone knows :( Jul 23 14:39:36 On SO people recommended Caliper and JMeter Jul 23 14:39:55 at least that's what i found via google. Jul 23 14:40:02 Yeah, googled that as well, but... I doubt they are more comfortable then DDMS... Jul 23 14:40:40 Dunno, Caliper looks useable Jul 23 14:40:57 There seem to be some custom ones such as Qualcomm stuff Jul 23 14:46:40 I still find it weird that DDMS is missing from my android studio :( Jul 23 14:46:46 so in other words .. just set up your system and use ddms. You know it works. Jul 23 14:47:22 Since I was specifically asked to look at other options, I'll at least try Caliper first Jul 23 14:47:28 Did you manually install the SDK or did AS do it? Jul 23 14:47:39 ddms --version Jul 23 14:48:11 that last line was meant for the terminal ... Jul 23 14:48:20 mattblang, tab host is always a bad choice Jul 23 14:48:57 AS Jul 23 14:49:04 it was available in previous version Jul 23 14:50:20 pfn why is that? Jul 23 14:50:31 pfn the fragmenttabhost seems to be working perfectly Jul 23 14:50:59 mattblang, dunno about fragmenttabhost, but tabhost is implemented in a pretty hacky manner with undocumented behaviors wrt focus, etc. Jul 23 14:51:18 Is there any difference between using android.R.id.message and res.getIdentifier("message","id","android") ? Jul 23 14:53:01 pfn I see. What do you use if you want to implement tabs? Jul 23 14:53:19 mattblang, viewpagerindicator and any method of switching screens Jul 23 14:53:40 or if I don't want a library, just RadioButtons styled as tabs Jul 23 14:54:09 Also why can't I use android.R.id.alertTitle like i can with message? Only way i can get the title is res.getIdentifier("alertTitle","id","android") Jul 23 14:55:13 skulltower, because hidden ids are hidden Jul 23 14:55:50 Is this code safe though? Or those id's are to be changed in future versions? Jul 23 14:57:16 who knows Jul 23 14:57:53 Mm okay still pretty helpful thanks :-) Jul 23 14:58:45 If it's not part of the public api, it can change at any time.. If it's not documented that you can use that id to do stuff, it can break at any time Jul 23 14:58:52 You need to make sure to handle that Jul 23 15:01:55 I would like to program an application where the user can record a video and instantly (live) upload the video to a RTP/RTSP Server As of now i am able to found some good library https://github.com/fyhertz/libstreaming but this library is available under GPL and a commercial license and i need to integrate something in my close source application so I need a opensource and customizable library. Does anybody have any Jul 23 15:02:38 someone could point me to a few code-snippets of similar approaches, especially for sending the video on the fly to the server. Jul 23 15:31:54 Hello, I am new to android development and stuck at some situation. I have jar library(in ${PROJ_HOME/lib} and want to put a reference of it in build path. Please tell me how to do that? Jul 23 15:32:09 Using sdk commandline tools only. Jul 23 15:35:37 gagan662: I guess you aren't building with maven or gradle? Jul 23 15:36:06 nope ant Jul 23 15:36:28 Estel: ^ Jul 23 15:37:30 hi all, I'm trying to add a change to the android source and compile it for myself Jul 23 15:37:37 but it looks like my changes aren't getting picked up Jul 23 15:38:38 in /frameworks/base/core/jni I have a cpp file that just returns 5, and it's java equivalent in /frameworks/base/core/java/android/database/sqlite Jul 23 15:39:13 I added the cpp file to Android.mk in /frameworks/base/core/jni Jul 23 15:39:24 under LOCAL_SRC_FILES Jul 23 15:39:33 I assume that's all I had to do... Jul 23 15:39:50 but when I try building the source, it's saying that it can't find my native implementation Jul 23 15:40:12 Hey, I am trying to maintain a WebView state in a fragment that has RetainInstance, what is the best way to achieve it? Jul 23 15:40:13 more specifically Jul 23 15:40:15 W/dalvikvm( 377): No implementation found for native Landroid/database/sqlite/SQLiteTokenizer;.tokenize:(Ljava/lang/String;)I Jul 23 15:40:15 W/dalvikvm( 377): threadid=21: thread exiting with uncaught exception (group=0xb2afbba8) Jul 23 15:40:15 W/dalvikvm( 377): No implementation found for native Landroid/database/sqlite/SQLiteTokenizer;.tokenize:(Ljava/lang/String;)I Jul 23 15:40:15 D/AndroidRuntime( 377): Shutting down VM Jul 23 15:40:28 SQLiteTokenizer.java is the java class I created Jul 23 15:40:33 any ideas? Jul 23 15:40:50 Vashy: We don't (m)any OS devs here, mostly app devs. In case you don't get any answer, you should try in #cyanogenmod. :) Jul 23 15:40:55 *+ have Jul 23 15:41:32 okay will do flan3002, thanks! Jul 23 15:41:54 jjbrunton: what happens by default? Jul 23 15:44:33 Estel: The webview is destroyed and recreated Jul 23 15:44:36 Which causes a refresh Jul 23 15:44:38 hello guys. I'm not sure if this is the right place to ask, but I experience a problem accessing the sdcard0 with cordova's file-api. Jul 23 15:45:17 i already asked at stack overflow but there's no response, did I make something wrong? :-) http://stackoverflow.com/questions/24907129/cordova-file-api-no-access-to-microsd-in-4-4-2-permission-is-set Jul 23 15:45:26 Oh sorry it was badly worded, it was when the device is rotated Jul 23 15:45:54 jjbrunton: have you experimented with webView.saveState/restoreState? Jul 23 15:46:14 Estel: I can't use the bundle because of saveInstanceState Jul 23 15:46:21 I mean RetainInstance Jul 23 15:46:40 The bundle returns null when it is set to retain instance on the fragment Jul 23 15:46:56 Are you recreating / doing something to the webview in oncreate? Jul 23 15:47:04 *oncreateview Jul 23 15:47:23 Originally I was, I have since removed that code and it still causes a refresh Jul 23 15:48:01 But that makes sense because there are two seperate layouts so technically I imagine there would be two WebViews that get instantiated when rotation happens Jul 23 15:48:58 Hard to think of anything then, maybe just rewrite with retaininstance false? Jul 23 15:49:37 Problem is the project doesn't have a default constructor for this fragment Jul 23 15:49:44 It relies on multiple complex objects Jul 23 15:51:01 Could you do something cheeky to try and keep a bundle yourself to restorestate from? Jul 23 15:51:43 So use the saveInstanceState to create a custom bundle as a class variable Jul 23 15:51:49 And restore it in CreateView? Jul 23 15:52:21 Worth a try, I guess Jul 23 15:58:09 Hey all, I’m having some huge problems getting a RelativeLayout subclass to draw it’s child views Jul 23 15:58:45 Essentially, I’ve debugged and all my views are being measured and have the correct LayoutParams, but for some reason they simply never get called. They are added in the RelativeLayout subclass Jul 23 15:58:55 never get drawn* Jul 23 16:04:24 pretty funny http://www.drdobbs.com/tools/just-let-me-code/240168735 Jul 23 16:04:36 i think he's talking about android XD Jul 23 16:06:09 anyone using ShowcaseView? did you figure out how to include it using gradle? Jul 23 16:12:20 Estel: So do you know how to add reference to jar lib? Jul 23 16:14:13 what do you mean "add a reference to jar lib"? Jul 23 16:22:05 Mavrik: I have jar library in lib/ directory and i want to put it in build path but don't know how. Jul 23 16:22:29 Gson doesn't call a constructor does it? Jul 23 16:22:44 Mavrik: I am managing project with commandline tools only Jul 23 16:22:51 nevermind Jul 23 16:23:05 gagan662, and which build system are you using? Jul 23 16:23:12 Mavrik: ant Jul 23 16:23:49 Mavrik: library is in lib/ not libs. (In case you didn't notice) Jul 23 16:25:19 ah Jul 23 16:25:21 *shrug* Jul 23 16:25:31 never used Ant, so can't really help you there Jul 23 16:26:17 Mavrik: :( Jul 23 16:29:44 Mavrik: np. and What build system people generally recommend? Jul 23 16:29:53 *shrug* Jul 23 16:29:56 new default is Gradle Jul 23 16:29:59 why is intellij being grumpy about 'android:textSize="18sp"' ? The only auto fix" it offers is to extract the value to @dimen. Jul 23 16:30:05 I hate it with fiery passion and use Maven like some other people :) Jul 23 16:30:23 rgr, what does it say? Jul 23 16:30:37 just hilited with red squiggles. says nothing. Jul 23 16:31:10 oh wait. top level element not completed. hmm. No idea. its in a TextView element. Jul 23 16:31:19 rest of attrs in that TextView are fine. Jul 23 16:31:57 press alt-enter, see what it recommends Jul 23 16:32:22 I did : nothing. Only to extract to @dimen as I said above. Jul 23 16:32:45 maybe show us some more code on pastebin.com Jul 23 16:33:19 http://i.imgur.com/hGEcAzh.jpg Jul 23 16:34:39 but full xml here in case its soemthing obvious : https://gist.github.com/anonymous/dd1fc26d83560a0c0be5 Jul 23 16:37:09 i’m doing remote services, my service is defined in a library Jul 23 16:37:22 I got no errors Jul 23 16:37:40 i am trying to get it started with startService but i get an error about implicit intent is not safe, but i’m trying to do explicit intent! Jul 23 16:37:47 try gradly sync maybe it catches up Jul 23 16:38:14 I'm talking to rgr Jul 23 16:38:31 no syncs in progress. Jul 23 16:38:41 ah well. not the worst. I'll look later. cheers anyway. Jul 23 16:39:21 did I say I love intellij? The more I use it the more of a warm fuzzy feeling I get. Whenever I think it would be cool if "x y z" its invariably only a hot key away. Jul 23 16:40:55 i’m really desperate for help with this Jul 23 16:41:32 try stackoverflow Jul 23 16:41:45 my mrpyo : is there any column editing eg generate new number sequence in aligned resource names in the intellij editor? Jul 23 16:42:02 cant find it if there is. Jul 23 16:42:27 i tried Jul 23 16:42:49 rgr, sorry I don't understand... Jul 23 16:43:14 eg think ten rows of almost identical resource names : I just want to change the numeric postfix on them. Jul 23 16:43:27 oh Jul 23 16:43:32 more the realms of emacs but not to worry. Jul 23 16:44:01 I never tried anything like that so I don't know Jul 23 16:45:06 how come no one knows about remote services Jul 23 16:46:53 show some code, maybe someone will know something Jul 23 16:47:13 hmm code Jul 23 16:47:48 the main issue IMHO is that the startService is being called from an android project, but the service resides in a Library project Jul 23 16:49:05 did you post a question on stackoverflow or did you just browse it? Jul 23 16:49:05 i am wondering how the .apk is constructed maybe it can give me a clue about whats going on? does the name of package of library is kept in the merged apk? Jul 23 16:49:14 i just browsed it Jul 23 16:49:23 post a question Jul 23 16:49:52 its not that hard Jul 23 16:50:19 true Jul 23 16:50:31 but you will have to post some excerpts from your code to get help... Jul 23 16:51:43 changing subject, I made 20 sells on first two days but only 2 today, weird I expected it to be rising... Jul 23 16:51:52 oh well... Jul 23 16:56:24 I guess I need to put rate dialog in my app Jul 23 16:57:00 why I should be interested in android, not in iOS programming? Jul 23 16:57:45 wsieroci the merits of one over the other has been beaten to death a number of times, you can find that on the web Jul 23 16:58:09 g00s, which metrics? Jul 23 16:58:22 also, not like either community channel is impartial :) Jul 23 16:58:45 g00s, as I know apps for Appstore are getting more revenue Jul 23 16:59:26 If you can develop for iOS you shouldnt be interested in android Jul 23 16:59:44 thats precisely way Jul 23 16:59:54 android users are cheap bastards :P Jul 23 17:00:09 @why Jul 23 17:00:28 mrpyo, I think that everyone can develop for iOS Jul 23 17:00:38 you just have to have Mac Jul 23 17:00:43 and iPhone Jul 23 17:00:47 hey guys Jul 23 17:01:03 everyone who has a mac, device to test, and 100$ o buy license to post on app store Jul 23 17:01:22 so for example not me Jul 23 17:01:31 Question: can I send a sendOrderedBroadcast() so only a specific reciever can catch it, and not the first best? Jul 23 17:01:32 I see Jul 23 17:01:36 iOS is for jerks and lesbians: https://www.youtube.com/watch?v=K-iWBCL12Qg Jul 23 17:02:18 Android is for poor jerks and lesbians XD Jul 23 17:02:28 wsieroci: you should learn both. Jul 23 17:02:53 hey TheBunnyZOS haven' seen you in a while Jul 23 17:03:24 if you are developing a game you can use http://www.openfl.org/ so porting will be easy Jul 23 17:03:36 ok, besides Android vs iOS, why mobile? I think that javascript/HTML5 will eventually replace native apps, am I not right? Jul 23 17:03:38 Im always in here… just not talking much… well and there was that whole MMO launch thing in april ;) but thats slowed to a crawl now Jul 23 17:04:04 wsieroci: why are you asking this? Jul 23 17:04:15 wsieroci, why not? Jul 23 17:04:17 these are the same things peopled asked 5 years ago Jul 23 17:04:24 and nothings changed Jul 23 17:04:31 wsieroci: yes you can wait 10 years until this point of view catches up... Jul 23 17:04:32 HTML did not take over mobile. Jul 23 17:04:40 Native apps are still better / faster etc etc Jul 23 17:05:03 wsieroci: Native has less layers of abstraction (when using C/C++) and can therefore achieve good speed and good memory usage easier than high-level interpreted/jit-ed stuff. Jul 23 17:05:03 wsieroci: cause you sound like someone doing a report for school :) Jul 23 17:05:12 btw. openfl can target html5 too Jul 23 17:05:56 Yeah there are a bunch of tools, game tools mostly that will target most platforms and HTML5 etc for you out of the box. Jul 23 17:06:12 wsieroci: So, of course you can write a game for Android in Html5 and Javascript, it will just limit what you can create and play fluently. Jul 23 17:06:17 but at that point its more about game dev then android or IOS Jul 23 17:06:18 no, I am generally webdeveloper, but I am wondering about maybe change path Jul 23 17:06:25 and try mobile Jul 23 17:06:39 changing my path* Jul 23 17:06:44 wsieroci: it pays well, lots of jobs etc Jul 23 17:07:34 TheBunnyZOS, yeah there is pretty much no way to develop tool like apps for multiple platforms - you will always end up with foreign experience for users Jul 23 17:08:06 i just found out some painful truth Jul 23 17:08:19 I wanna try out robovm Jul 23 17:08:35 this http://stackoverflow.com/questions/10179198/android-library-manifest-vs-app-manifest sais that a library project manifest is not used i thought it was merged! Jul 23 17:09:01 ok, but I am wondering if mobile is really something which requires inquisitive mind? Or maybe it can be done by anyone? Jul 23 17:09:35 because creating some frontending blocks of UI does not seems very hard Jul 23 17:09:43 and very interesting at first lok Jul 23 17:09:44 look Jul 23 17:09:52 wsieroci: like almost everything, doing it and doing it well are very different... Jul 23 17:10:08 seem* Jul 23 17:10:20 depends, If you are developer in a company its work like any else... Jul 23 17:10:43 but if you try to make it on your own, you have to have some good ideas Jul 23 17:11:14 Ok, I see your point Jul 23 17:11:44 btw. do you like Java/ Jul 23 17:11:45 ? Jul 23 17:12:20 *silence* Jul 23 17:12:48 but I guess its pretty much the same in webdev - either you just are coding web apps for some clients or you are making your creative startup which is way much harder Jul 23 17:13:41 I am not sure if Java is for me Jul 23 17:13:43 Java is ok, Android SDK imho sucks major balls, it's just not well thought-out Jul 23 17:14:05 and I hare for now Eclipse Jul 23 17:14:11 hate* Jul 23 17:14:21 maybe its just me, but I always struggle fighting with sdk, which seems to make everything as hard for me as it is possible Jul 23 17:14:43 use Android Studio Jul 23 17:14:49 i don’t understand, does the library manifest not merge into the using app? Jul 23 17:15:00 google seems to be switching to it Jul 23 17:15:21 ahm guys can it happen that the manifest doesn't get updated when I update my app with a new run from AS? Jul 23 17:15:25 Is funny that people should hate on Eclipse… it was the Java cats meow for many many years for enterprise. Jul 23 17:15:46 Java is ok: How much are they paying you? Jul 23 17:15:49 personally I like eclipse Jul 23 17:17:37 I dont see anything wrong with it, yeah it needs closures, but they will come in Java 8, probably not anytime soon for android but thats not java's (sun's) fault Jul 23 17:17:48 actually I do not like desing of Eclipse, fonts, etc Jul 23 17:17:53 design* Jul 23 17:17:59 It doesn't just need closures... Jul 23 17:18:50 wsieroci: You don't have to use Eclipse. But also, you're not using the IDE because it looks cool, but because it makes you productive. At least that's what I hope. Jul 23 17:19:35 flan3002, I love when my editor looks cool, it makes me more productive Jul 23 17:19:59 Well... Jul 23 17:20:04 Define cool then. :) Jul 23 17:20:17 Like Sublime Text 2 :) Jul 23 17:20:43 still, I like C# more, also the WPF - some people don't like it but I do, very much Jul 23 17:21:23 in fact so much I made MVVM library for android Jul 23 17:21:39 wsieroci: Try IntelliJ idea with the Darcula theme. :) Jul 23 17:21:47 it makes dealing with android sdk bearable Jul 23 17:22:43 flan3002, it is what I am looking for :) Thanks. Does it work well with Android? Jul 23 17:22:54 Way better than Eclipse. :) Jul 23 17:22:59 Good Jul 23 17:23:38 does manifst merging take place or has to be explicitly enabled when using android libraries? Jul 23 17:23:39 Ok, there is also one other problem Jul 23 17:23:47 Java is fucking slow :) Jul 23 17:24:56 just a bit of attention wouldn’t hurt me Jul 23 17:25:23 wsieroci: A language does not have speed. Jul 23 17:25:30 *Sigh* Jul 23 17:25:36 wsieroci, back to programming Nokias with you Jul 23 17:25:41 Shoo. Jul 23 17:26:11 Hi. does anyone know why android assign eth0 MAC to 1E:ED:19:27:1A:B3? How can I stop it? Thx Jul 23 17:26:29 flan3002, sure, but JVM used in Android phones is fucking slow I think. Jul 23 17:26:30 uh. Jul 23 17:26:41 wsieroci: No JVM is used in Android phones. Jul 23 17:26:42 wsieroci, in what way do you think that? :) Jul 23 17:27:16 flan3002, so what execute Java pseudocode of apt application? Jul 23 17:27:18 guys... at this point you're really feeding a troll Jul 23 17:27:36 Leeds, stop ruining our fun :) Jul 23 17:27:37 or at least someone with preconceived ideas and no interest in looking stuff up rather than being told Jul 23 17:27:56 Leeds, I really want to know what wsieroci knows about Dalvik speed :) Jul 23 17:28:08 Mavrik: nothing. he knows nothing. like Jon Snow Jul 23 17:28:15 šššššš Jul 23 17:28:28 (also, yes, Dalvik is fucking slow.) Jul 23 17:29:26 Leeds, I am just running simple conversation. Jul 23 17:29:38 Leeds, I do not know why you call me a troll. Jul 23 17:29:41 Guys any ideas why it tells me I have no permission: https://gist.github.com/anonymous/c3e96550882d4b276534 ? It tells me that I need EXACTLY that permission that is written there in the manifest ... Jul 23 17:29:47 wsieroci: Java is neither slow nor fast because it's a programming language Jul 23 17:30:06 wsieroci: you can make arguments about particular implementations of bytecode runtimes Jul 23 17:30:07 Yatekii, yes, did you request it? Jul 23 17:30:29 defer, Yes, I know that, I said that in point of view of Android phone implementations Jul 23 17:30:46 Mavrik: how u mean that? :S Jul 23 17:30:53 when I see iPhone apps they are way faster than avarage android app Jul 23 17:30:58 typically you don't say something is "slow", you say something is "slow at doing X" Jul 23 17:31:04 or otherwise it's an empty argument Jul 23 17:32:09 Yatekii, your receiver definition says "only applications with permission LockGuardReviverPermission are allowed to access this receiver" Jul 23 17:32:19 so, does your application which want's to access this hold that permission? Jul 23 17:32:30 and also, the naming of the permission breaks all naming convetions, it's terrible Jul 23 17:32:46 wsieroci, yes, ok, go away now, this is a developer channel Jul 23 17:32:52 Mavrik: I do not know the naming convention ;) Jul 23 17:33:04 and Mavrik no I only gave that permission to the reciever Jul 23 17:33:09 Yatekii, what, you've never seen a permission in android app Jul 23 17:33:09 the app needs it too? Jul 23 17:33:10 ? Jul 23 17:33:11 ever? Jul 23 17:33:16 no, never Jul 23 17:33:20 never typed "uses permission" and seen how they're named? Jul 23 17:33:20 never used it before Jul 23 17:33:29 nah Jul 23 17:34:14 I do not have a single permission in my manifest except for that one Jul 23 17:38:50 Are you trying to give your app that permission, or are you trying to require it from apps that use your receiver? Jul 23 17:40:00 Permission Denial: receiving Intent { act=reviveLockGuard flg=0x10 } to com.mirar.noah.lockguard/.LockGuardReviver requires LockGuardReviverPermission due to sender com.mirar.noah.lockguard (uid 10144) Jul 23 17:40:04 In my own app Jul 23 17:40:15 @ SimonVT Jul 23 17:40:33 sent from a service and recieved from a broadcastreciever Jul 23 17:42:11 So the app that sent that broadcast doesn't have the LockGuardReviverPermission permission? Jul 23 17:42:44 SimonVT: no, I thought only the reciever needs to have it Jul 23 17:43:38 You're requiring anyone that sends a broadcast to that broadcastreceiver to have the LockGuardReviverPermission permission Jul 23 17:43:53 That's what android:permission does Jul 23 17:44:09 If you want to grant your app a permission, that's Jul 23 17:45:49 ah kk Jul 23 17:45:50 ty Jul 23 17:46:03 yep I figured that, thanks a lot :) Jul 23 17:51:46 Hey guys, I'm trying to remove the tab bar indicator in an action bar's tabs (the blue underline), so I've created a style whose parent is Widget.Holo.Light.ActionBar.TabBar.Inverse, on which I've set android:background to a drawable with the same color set for all states, and whilst it sets the background colour correctly, the selection indicator is still there on the top Jul 23 17:52:01 I've also tried setting a custom view, and it's still there on top of that Jul 23 17:52:11 it's like it's haunting me... Jul 23 17:53:48 does anyone know what's up with that? have I missed something that I need to do? Jul 23 17:53:48 use sliding tabs, they are nicer: https://www.youtube.com/watch?v=tRg_eDfQ8fk Jul 23 17:55:05 wat? I get an Error for: android:description="Allows to tell the LockGuardReviver to recover the LockGuard" ... tells me it can't be a string ... wtf? Jul 23 17:58:11 mrpyo, the tabs have icons on them Jul 23 18:02:36 Are the packages in the sdk manager under the 4.4W heading strictly for android wear? Jul 23 18:05:53 Yes Jul 23 18:06:30 Yatekii: https://developer.android.com/guide/topics/manifest/permission-element.html Jul 23 18:08:09 kakazza: yes and there it is definitely a String Resource Jul 23 18:08:25 You said you gave it a string. Jul 23 18:08:30 A raw string. Jul 23 18:08:44 so what am I supposed to give? Jul 23 18:08:49 A string resource Jul 23 18:08:58 Yatekii, @string/some_string_resource Jul 23 18:09:24 oh, why isn't it like that in the template ... as a newb like my u dont get that humm Jul 23 18:09:25 kk tks Jul 23 18:09:41 android:description="string resource" Jul 23 18:09:54 [...] "it cannot be a raw string." Jul 23 18:09:56 thats what I did: https://gist.github.com/anonymous/0a5408b7a16d71cac470 Jul 23 18:11:14 Yatekii, on the documentation page, read the description under "android:description", specifically, the last sentence/paragraph. Jul 23 18:11:34 ahhhhhhh Jul 23 18:11:36 goddmnit Jul 23 18:11:43 so I need to define a variable Jul 23 18:11:47 in the manifest Jul 23 18:11:48 indeed Jul 23 18:11:49 no Jul 23 18:11:54 you need to define a string resource Jul 23 18:11:59 in strings.xml Jul 23 18:12:08 hmk Jul 23 18:12:14 or some other resource file, but strings.xml is probably best Jul 23 18:13:10 do I have to create it myself? because I seem to not being able to locate it :S Jul 23 18:13:26 ah in values Jul 23 18:13:26 Yatekii res/values/strings.xml Jul 23 18:13:27 tks Jul 23 18:14:21 Is there any way to force my app to crash? I'm basically doing a Log.wtf() but when I catch that this certain event is happening, but I want my process to die. Jul 23 18:14:43 Throw a RuntimeException Jul 23 18:14:47 just throw something else Jul 23 18:15:00 eghdk: Divide by zero, that's much cooler! Jul 23 18:15:27 * flan3002 shouldn't be taken too seriously today. Jul 23 18:16:03 SimonVT: Just "throw new RuntimeException()"? Jul 23 18:16:28 asQuirreL: mind looking pretty quick over my manifest: https://gist.github.com/anonymous/0ae0bddf397d9a94b19f ? Jul 23 18:16:39 eghdk: Yup, if you don't catch it. :) Jul 23 18:17:09 Yatekii, what am I looking for? Jul 23 18:17:51 asQuirreL: if it looks ok in general ... problem is that my Reciever cannot recieve a broadcast that was sent with sendOrderedBroadcast(i, "com.mirar.noah.lockguard.REVIVE_LOCKGUARD"); Jul 23 18:18:55 I'm afraid services are not something I've had to work on, you'd be better off asking someone else Jul 23 18:19:36 although I'm thinking that the message you want to broadcast is probably "reviveLockGuard" Jul 23 18:20:05 not com.mirar.noah.lockguard.REVIVE_LOCKGUARD Jul 23 18:20:14 that is the permission name, not the thing that your app responds to Jul 23 18:22:15 asQuirreL: that's not the message but the permission Jul 23 18:22:20 message is set like that: i.setAction("reviveLockGuard"); Jul 23 18:22:27 where I is an Intent Jul 23 18:22:29 ah I see Jul 23 18:24:05 I gave EVERYTHING in my manifest a permission Jul 23 18:24:09 still doesn't work Jul 23 18:24:09 wtf Jul 23 18:27:22 anyone know how to change where Android Studio finds the default "android source" files? it pulls api-20 by default for me, and i need it to pull a different api version Jul 23 18:29:36 if I am supporting API Level 10, but want to change to 11+ in my next version, does Play have a graceful way of still allowing the old version for those API Level 10 users? Jul 23 18:29:58 Sure, just leave the old apk active Jul 23 18:31:51 ak android is definitely fooling me Jul 23 18:32:05 cannot put any more permissions: https://gist.github.com/anonymous/0cd76783d11c9f3349a5 Jul 23 18:36:10 Both and are in the wrong place Jul 23 18:36:19 https://developer.android.com/guide/topics/manifest/uses-permission-element.html check CONTAINED IN Jul 23 18:36:48 hi Jul 23 18:37:06 Not sure why you're even defining a permission if you're the only user Jul 23 18:37:23 i i have a tabs with fragments, inside the fragment i have listview, how i can get the tab actived inside fragment? Jul 23 18:38:43 SimonVT: so other apps cannot use it. Jul 23 18:38:59 But they can if the define the permission Jul 23 18:39:07 Just don't export it if you don't want other apps to use it Jul 23 18:39:35 any? Jul 23 18:40:44 SimonVT: well dunno how I do that, but if it's possible as you say, I'll google it, thanks! Btw, a question: When I have an app, that does spawn a background service. That service and others all run in the same app thread, right? Jul 23 18:42:04 uhm SimonVT I really should read the docs better when I use stuff from there :S Jul 23 18:42:12 Look at the attributes you have on your receiver.. Should be obvious how to set whether it's exported or not Jul 23 18:42:33 ah btw, @ "can read anyways if they define it": not if the user is smart enough not giving it ;) Jul 23 18:43:15 SimonVT: well does only look for exported ones, but hot to make it non-exported is the question ;) Jul 23 18:43:36 is there a way to get all of the object animators currently on an object? Jul 23 18:43:53 You set android:exported to true Jul 23 18:43:55 https://developer.android.com/guide/topics/manifest/receiver-element.html#exported Jul 23 18:44:05 SimonVT sweet. currently working on a case to present for API Level change from 10 to 15. Looking in Analytics and only 8% of our users are coming from 14 or lower. Will help a lot that I can say that the current version will stay available. Jul 23 18:44:10 If you don't want it to be exported.. Jul 23 18:46:18 hmmm, who wouldn't wanna be? Jul 23 18:46:23 i know i do. Jul 23 18:46:31 well, SimonVT the Broadcast has no entry in the manifest ;) Jul 23 18:46:36 Hi there, I had a question for the optimize for tablets Jul 23 18:46:52 i i have a tabs with fragments, inside the fragment i have listview, how i can get the tab actived inside fragment? Jul 23 18:47:15 If I set the minimum sdk version to 11 it says the game is for tablems but will stop working on some devices Jul 23 18:47:33 The broadcastreceiver has an entry, that's all that matters.. Jul 23 18:47:42 If it's not exported, other apps can invoke it Jul 23 18:47:49 is it possible to drop that "designed for phones" tag on google play, while still supporting a wide range of devices Jul 23 18:48:50 SimonVT: I want the the Broadcast not being intercepted. not the reciever protected (which is also needed, tnanks for the reminder) Jul 23 18:50:04 Uh, intercepted? Are you not targetting that broadcastreceiver explicitly? Jul 23 18:50:18 It's in your app, there's no reason not to Jul 23 18:51:02 I asked this earlier, but the channel seems a bit more active now, so I'll try again: I'm trying to get rid of the tab indicator on tab views in the action bar, and I'm having no luck. I created a custom style, inheriting from the Holo Light TabBar style, and in it, I set the background, itemBackground and selectableItemBackground properties to a state list drawable where all the states have a color background set (the same Jul 23 18:51:02 one). It sets the colour, but it doesn't remove the indicator. Jul 23 18:51:06 SimonVT: well I read in the docs and dien't find the proper tools yet ... will surely look for it ;) Well at least my service is now unkillable Jul 23 18:51:15 Explicit intents can't be "intercepted" http://developer.android.com/guide/components/intents-filters.html#ExampleExplicit Jul 23 18:52:43 (and I set the actionBarTabBarStyle to the custom style) Jul 23 18:53:19 tks :) Jul 23 18:53:30 would setting the min sdk version to 9 and the target to 11 achieve this? Jul 23 18:53:30 so I can't for the life of me figure out which property gets rid of the blue highlight at the bottom tab Jul 23 18:54:52 i i have a tabs with fragments, inside the fragment i have listview, how i can get the tab actived inside fragment? Jul 23 18:55:17 hello guys Jul 23 18:55:43 I'm going to start learning how to build apps for android today, is there any way to take advantage of my php knowledge? Jul 23 18:55:45 t0th_-, do you mean, how can you activate a particular tab, from within the Fragments inside that tab view? Jul 23 18:56:10 how i can get the position of tab actived inside a fragment Jul 23 18:56:23 as in, the index of the activated tab? Jul 23 18:56:53 SimonVT: well doesn't this create a new service tho? Wait is Service a singleton-type abstract class? brb reading Jul 23 18:57:18 the Jul 23 18:57:25 yes Jul 23 18:57:40 t0th_- getActivity().getActionBar().getSelectedTab().getPosition() Jul 23 18:58:23 thanks man Jul 23 18:59:13 nullpointer Jul 23 18:59:39 which one? Jul 23 18:59:49 the activity, the action bar, or the tab? Jul 23 19:00:11 eclipse give-me the line Jul 23 19:00:15 not the obect null Jul 23 19:00:25 t0th_-, yes I know... I'm asking you to investigate Jul 23 19:00:29 ok Jul 23 19:00:31 1minute Jul 23 19:01:46 getPosition Jul 23 19:01:58 then you don't have a selected tab Jul 23 19:02:29 ok Jul 23 19:02:33 thanks anyway Jul 23 19:04:27 Ok I do not get exactly the lifecycle of services etc yet Jul 23 19:04:31 but it seems to work fine Jul 23 19:11:22 ohwell return START_STICKY; does not counter SIGKILL :( Jul 23 19:23:27 are all 4.0+ android devices going at 60 fps? Jul 23 19:23:39 hey Jul 23 19:23:52 i read that 10ms is the default refresh rate for animations, which doesn't make sense because that would be built for 100fps Jul 23 19:23:56 hey lordflapjack Jul 23 19:24:05 what kind of tools do you use to make android apps? Jul 23 19:24:19 in terms of IDE, text editors, emulators, etc Jul 23 19:24:33 i’ve got experience with eclipse but im not a huge fan Jul 23 19:25:04 oic Jul 23 19:25:12 Android Studio? Jul 23 19:27:09 android studio Jul 23 19:27:38 Google? Jul 23 19:27:55 you would be crazy to use anything else Jul 23 19:28:04 unless you are one o those hardcore emacs/vim people Jul 23 19:28:14 lol Jul 23 19:28:17 some people can't tolerate ides Jul 23 19:28:27 you can get a vim plugin for idea/AS and eclipse Jul 23 19:28:31 i imagine you can get an emacs binding as well Jul 23 19:28:36 oh no, auto-complete that doesn't require keyboard presses! Jul 23 19:28:57 Do I need permissions if I wan't to write a file during run-time to local storage ? Jul 23 19:29:39 I found nothing saying I require permission yet the most basic example https://gist.github.com/anonymous/6183a8a120962ac5573f throws the exception File not found Jul 23 19:29:57 No errors in creating the file buy trying to read it won't find it Jul 23 19:33:16 thanks Jul 23 19:33:19 depends where you're trying to write it Jul 23 19:38:58 dragorn: Well https://gist.github.com/anonymous/6183a8a120962ac5573f I attempted to write it into /test/ directory hoping app would create the directory and file by it self ? Jul 23 19:39:07 Can the file be written only to root ? Jul 23 19:40:13 you can't write into /test, that's not a writeable filesystem Jul 23 19:40:39 Yea just noticed. Is there a way I can create a directory for my app ? Jul 23 19:40:55 Or do I just have to deal with storing it in the root Jul 23 19:40:56 you should use the app storage path API to get where you're allowed to write files to; either to external storage (using the external storage permission) or inside your apps internal storage space Jul 23 19:41:21 http://developer.android.com/guide/topics/data/data-storage.html Jul 23 19:56:17 hey I have big problems writing tests for my problems can anyone help? I just get this when running Tests: java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException Jul 23 19:56:59 sorry I already solved this one... but this really bugs me: java.lang.NoClassDefFoundError: android/util/Xml Jul 23 19:57:56 wow, logcat is so dumb Jul 23 19:58:03 spammed worse than any retard forum Jul 23 19:58:54 you an filter logcat Jul 23 19:59:25 JakeWharton: This is a question for you; Using Retrofit, and RxJava, I want to cache the result of a network call. I want to be able to invalidate that cache. Any time observer/subject is called, it will either pull from the network (1 time only) or it will pull from the cache. Is there a mechanism already in place to do this? Jul 23 19:59:55 I was thinking about making a custom subject, but the Subject's facility classes are locked down, so before I make a mess, I want to make sure I'm not reinventing the wheel. Jul 23 20:00:27 no one knows how I can get rid of "java.lang.NoClassDefFoundError: android/util/Xml" when running tests? Jul 23 20:00:34 (specifically SubjectSubscriptionManager) Jul 23 20:00:57 R1P4___: paste your gradle dependencies please Jul 23 20:02:44 Hello. I want my AsyncTask to show Toast in case there is no internet connection. I have the connection check implemented, but Toast and this method require context, which isn't present in doInBackground. How are such things normally implemented? Jul 23 20:05:15 is onPreExecute an appropriate place? Jul 23 20:05:41 technically AsyncTask shouldn't be responsible for the toast Jul 23 20:05:50 Before you start the asynctask would be the place to do it. Jul 23 20:07:03 That is what I was thinking, but is there a way to make this check still in one place, since I make all api calls via this AsyncTask? Jul 23 20:10:03 Making a wrapper around AsyncTask that has that responsibility should be fine, something with a method like runApiOrToast(int toastMessageResourceId) Jul 23 20:11:00 njcomsec: not properly Jul 23 20:11:21 you can do more filtering with python Jul 23 20:11:36 explodes: thank you! Jul 23 20:11:42 njcomsec: sure ) Jul 23 20:11:44 *:) Jul 23 20:12:01 but I gotta figure some more important things first :( Jul 23 20:12:07 damn flags do not work somehow Jul 23 20:12:18 or that killer app is expecially cruel :D Jul 23 20:27:39 How the hell Jul 23 20:28:04 How are you supposed to "refresh" cached network calls using RxJava? Jul 23 20:28:11 I have been stumped for too long on this Jul 23 20:28:28 I have used com.spotify.mobile.android.metadatachanged in my broadcastreceiver but onReceive is not called when I play a song in spotify. Can someone help me with this Jul 23 21:00:54 Hello friends, Is there a minimum sdk version for google admob? Jul 23 21:01:35 https://www.google.com/search?q=Is+there+a+minimum+sdk+version+for+google+admob Jul 23 21:01:58 lol Jul 23 21:04:59 Well I guess I should ask the qustion more like, does anyone have experience with using admob on sdk 9 Jul 23 21:05:30 Im getting a common error with some devices that need lower than 11 Jul 23 21:05:36 http://hastebin.com/ukivodanex.avrasm Jul 23 21:10:32 guys, whats the best option to persist data from my web api, like instagram does? Use SQlite ? Jul 23 21:11:46 depends what kinda data, but in most cases sqlite is what you're after Jul 23 21:12:36 bankai_au: it will be an id, title, description, logo and a counter (int). Better go with Sqlite, right? Jul 23 21:12:53 yerp Jul 23 21:13:32 bankai_au: any recommendations regarding orm ? Jul 23 21:19:21 hi all... I'm a totally newbie on android development and need some advice on making a hardware device "talk" to an android phone/tablet via usb, using an standard serial to usb converter Jul 23 21:20:14 my hardware device as an rsr-232 output, and I ordered a low-cost cp2102 serial-to-usb converter Jul 23 21:20:37 PereP: your device has to support usb otg, aka "usb host mode" Jul 23 21:20:45 and you'll need to get a usb otg cable Jul 23 21:21:11 thanks for replying, JesusFreke... some of my confusion comes from that part Jul 23 21:21:53 If you search amazon for "usb otg", you'll get plenty of hits. that's what you need Jul 23 21:21:59 I also already ordered an USB OTG cable, and checked that my "target" Android phone is supposed to support the OTG feature Jul 23 21:22:12 in fact I ordered it from there, JesusFreke :D Jul 23 21:22:42 next step: http://developer.android.com/guide/topics/connectivity/usb/host.html :) Jul 23 21:23:44 and a quick search turned up the possible useful: https://code.google.com/p/usb-serial-for-android/ Jul 23 21:23:52 some confusion comes from the available software support for that chip in Android. I've read that in theory support for CP2102 was added to Android kernel some time ago Jul 23 21:23:58 so you don't have to try to implement the usb serial protocol yourself Jul 23 21:24:29 JesusFreke: "implement the usb serial protocol yourself" - that's what confuses me Jul 23 21:24:30 PereP: you can try plugging in a keyboard/mouse, as a quick test of OTG is working Jul 23 21:24:50 what does it mean to implement it myself? Jul 23 21:25:26 PereP: android provides fairly low level usb support. It doesn't know anything about the serial usb protocol, as specified by http://www.usb.org/developers/devclass_docs/usbcdc11.pdf Jul 23 21:25:52 in a stackoverflow answer, someone is saying that there are two options: 1) to use usb host functionality or 2) to compile android kernel with cp2102 support Jul 23 21:25:58 here's the link: http://stackoverflow.com/questions/11339560/connect-cp2102-or-ftdi-to-android-4-x Jul 23 21:26:31 but I thought in fact I WOULD need the driver to be present to be able to use USB host - am I wrong?? Jul 23 21:27:33 PereP: yes, you are wrong. Android's usb support lets applications talk to a usb device at a low level, bypassing any drivers that may be present. Jul 23 21:28:03 You should be able to communicate with the device using something like https://code.google.com/p/usb-serial-for-android/ Jul 23 21:28:06 I alread read a document from the CP2102 makers saying how to compile the Android kernel with support for the chip: http://www.silabs.com/Support%20Documents/TechnicalDocs/an809.pdf Jul 23 21:28:49 JesusFreke: my doubt is if those two methods are mutually excludent... Jul 23 21:29:05 PereP: yes, with the driver present, you would end up with a serial node in /dev that you could talk to (although, an application likely couldn't talk to it, without root access) Jul 23 21:29:22 aaaaaaaaaaaaahm Jul 23 21:29:22 but you don't need a driver to use Android's host-mode usb apis Jul 23 21:29:44 ooooh, I'm starting to see the light :D Jul 23 21:29:45 it talks to the usb device directly, it wouldn't talk to the /dev serial node Jul 23 21:30:26 https://code.google.com/p/usb-serial-for-android/wiki/CompatibleSerialDevices specifically mentions cp2102 Jul 23 21:31:04 so if the phone supports USB host mode and the Linux version on it also supports it, I can talk to CP2102 without further kernel modifications and that all, right? Jul 23 21:31:08 Also from the main page for that project "No root access, ADK, or special kernel drivers are required; all drivers are implemented in Java" Jul 23 21:31:10 yes Jul 23 21:31:16 and without root access or anything Jul 23 21:32:11 yeah JesusFreke, I already checked that link even before talking here and found that there is support for CP2102... Moreover, in more recent threads, I seemed to understand that it was integrated in the official kernel Jul 23 21:32:23 am I only one thinking in Android is missing IBOutlets? Jul 23 21:32:49 no idea about that, gdrc xD Jul 23 21:33:26 fast way to link widget to code object Jul 23 21:34:25 so now that I realized that I have those two options... any recommendations on which one to use? are any advantages on using host mode instead of driver/usb-serial-for-android or viceversa?? Jul 23 21:34:39 IBOutlets? why?? they are utter rubbish Jul 23 21:34:50 PereP: usb-serial-for-android *does* use host mode Jul 23 21:34:55 argh Jul 23 21:34:59 it uses android's host mode usb apis Jul 23 21:35:09 it seems I still didn't understand it at all Jul 23 21:35:31 PereP: just use that library. go through their hello-world or whatever :) Jul 23 21:35:40 ok Jul 23 21:36:43 my application will be very sensitive to latency, so do you think it's any preferable method? maybe this one induces more overhead somehow? Jul 23 21:37:37 bankai_au, wat Jul 23 21:37:45 PereP: not sure Jul 23 21:38:49 specifically, what I plan is to connect some sort of musical device which has a serial output then make a simple app that plays a sound using the new low latency audio features when the device is touched Jul 23 21:39:07 im fucking sick of create view in xml, create an id, create the object in the code and link it with findViewById Jul 23 21:39:34 gdrc: iirc, you can specify a handler in xml too Jul 23 21:40:09 if that's the most annoying part of android dev for you, then count yourself lucky :) Jul 23 21:40:14 PereP: nice :) Jul 23 21:40:37 bankai_au, yes it is. Jul 23 21:41:04 anyone here ever tried to open an Android Studio project in IntelliJ? I'm getting "unknown facet java-gradle" errors, and it's unable to resolve any classes that come from gradle dependencies. Jul 23 21:41:12 JesusFreke, what you mean? Jul 23 21:41:58 gdrc: android:onClick="someOnClickMethod" Jul 23 21:42:00 JesusFreke: I'll probably need to play with the NDK for armeaby Jul 23 21:42:10 gdrc does butterknife do that ? Jul 23 21:42:24 or help out, i should say Jul 23 21:42:30 gdrc: e.g. http://stackoverflow.com/questions/21319996/android-onclick-in-xml-vs-onclicklistener Jul 23 21:42:51 g00s butterknife does help out with that Jul 23 21:43:01 ^^^ gdrc Jul 23 21:43:14 JesusFreke, events are not a problem Jul 23 21:44:01 also I'm short on time... Making a simple app that plays sounds touching the screen is easy, there are plenty of simple tutorials and I already have one Jul 23 21:45:03 yeah, I'm looking forward to getting my https://www.kickstarter.com/projects/mogees/mogees-play-the-world :) Jul 23 21:45:33 g00s, it could help yes. I dont like to generate for each widget an id Jul 23 21:45:53 although it's a slightly different take on the idea Jul 23 21:46:12 gdrc without generating an id, how would you refer to the widget in the layout? Jul 23 21:46:19 basically, a contact microphone with heavy post-processing in software Jul 23 21:46:41 sarbs, in iOS enviroment exist IBOulet Jul 23 21:47:07 gdrc and behind the scenes, .xib files are simply computer-generated versions of layout xml's Jul 23 21:47:17 complete with computer-generated ID strings and all Jul 23 21:47:42 the difference is that android layout files, in addition to being computer-readable, are also human-readable Jul 23 21:47:51 xib files are a nightmare to work on outside of IB Jul 23 21:48:11 yes, but on iOS you don't have to invent every id Jul 23 21:48:21 JesusFreke: there is already one device that does that... how is it called?? Jul 23 21:48:47 in android you don't either.. just let it create the standard R.id.textView, R.id.textView2 R.id.textView3 etc. Jul 23 21:48:52 number reading "Google" called me in the morning, but I was sleeping and could not answer it. I started to wonder the reason for it. I use admob ads and have not implemented "Advertising ID" in my app. Could this be the reason? I don't use device ids also. Jul 23 21:49:39 gdrc i thikn what you want is better integration between the WSIWYG layout editor, and code editors. which i admit would be nice; right-click-drag from the TextView to the member field in Java and poof, job done Jul 23 21:49:39 I have a problem to understand that is it absolutely necesssary to use the Advertising ID Jul 23 21:49:41 sarbs, yes and in your code you get crazy Jul 23 21:49:49 mai mai or something like that Jul 23 21:49:59 sarbs, correct Jul 23 21:50:07 gdrc sounds like a fantastic contribution idea to the Android Studio project.. get crackin ;) Jul 23 21:50:12 PereP: haven't seen that one Jul 23 21:50:26 can anyone think of an app with a good tutorial, that maybe starts on first load or something Jul 23 21:50:29 let'me find it Jul 23 21:50:42 sarbs, did you see the ridiculous story board on android studio? Jul 23 21:50:58 no, i haven't seen that Jul 23 21:51:03 Did someone of you get a warning about Advertisement IDs in Google Play console? Jul 23 21:51:24 android has no concept of "storyboard" Jul 23 21:51:55 IndiumIndeed it's probably unrelated.. if you were doing something wrong with your ads sdk usage, they'd simply turn off your access and let you figure it out Jul 23 21:52:04 http://tools.android.com/navigation-editor Jul 23 21:52:13 the "Google" caller id could have been one of any million things.. including simply a google voice number Jul 23 21:52:55 gdrc interesting Jul 23 21:54:00 its totally useless Jul 23 21:54:12 ok, I was thinking that it could be related, because I had huge boosts in my active users lately, which causes more ads usage. I got 12 845 new installs in a day. Jul 23 21:54:38 gdrc um. well. "The Navigation Editor is an early prototype..." Jul 23 21:55:22 JesusFreke: Makey Makey, that's it Jul 23 21:55:24 IndiumIndeed *shrug* if they really wanna get in touch, they will Jul 23 21:56:12 ok better watch over my shoulder Jul 23 21:56:34 in fact what I plan to connect to my Android phone is a sort of Makey Makey, it does roughly the same but with an older hardware... a homemade drum kit controller from edrum.info Jul 23 21:58:18 PereP: oh, yeah. the high impedance buttons thingy Jul 23 21:59:14 the mogees is a bit different. it's actually a contact microphone - it's detecting the vibrations and sends them to the device as audio to be further processed. Not just detecting a "press" or "touch" on something Jul 23 21:59:23 yeah... the edrum.info module seems to do a more "detailed" tasks; it converts vibrations using piezoelectric sensors to midi notes that are sent to a computer through MIDI or serial Jul 23 22:00:23 Why there is no trial option on Google Play? Jul 23 22:00:23 JseusFreke: yeah, just tried to figure out what does it make by watching the video... I cannot play the audio at the momment :P Jul 23 22:01:06 Like an app is free for 5 days than if you like it you have to pay... Jul 23 22:01:38 mrpyo you can get a refund for up to 15 minutes i believe. Jul 23 22:01:42 by the way JesusFreke, I read with more detail one of the documents I linked and this is what it says regarding CP210x support: Jul 23 22:01:45 The Android Jelly Bean (4.3.1) OS is based on a 2.6 version of the Linux kernel. Basic support for CP2101/2/3 devices Jul 23 22:01:45 are included in the kernel by default Jul 23 22:02:05 Yeah but you have to have money to buy Jul 23 22:02:18 And 15 minutes is not enough Jul 23 22:02:47 I mean trial option would be good both for users and developers Jul 23 22:03:05 That's why there are free and paid versions of an app Jul 23 22:03:12 PereP: yes, but you (likely) wouldn't be able to access the serial device node in /dev from an app, without root access. Jul 23 22:03:16 And I, for one, don't want shareware. Jul 23 22:03:39 mrpyo it'd be fairly trivial to steal the apk once it's in your posession Jul 23 22:03:59 Well it's not hard anyway Jul 23 22:04:08 Google apkmania Jul 23 22:04:12 JesusFreke: well that wouldn't be a problem (in theory) as my Android device is rooted... Jul 23 22:04:19 Everything is there... Jul 23 22:04:46 mrpyo not everything. and google's not helping them in their endeavor :P trialing apps like that would Jul 23 22:04:46 PereP: but it would be a problem if you wanted it to be more widely useable Jul 23 22:06:20 Still I believe of someone is a pirate he won't buy no matter what Jul 23 22:09:25 got disconnected... &%)"&(" Jul 23 22:09:30 JesusFreke: also it's running cyanogenmod 11 and theoretically I have the sources and I could compile it with the newer driver sources... Jul 23 22:13:39 is there an easy way to check an app internal storage? Jul 23 22:13:48 via CLI or AS or something Jul 23 22:16:21 adb shell it is Jul 23 22:18:12 how can i set a breakpoint that occurs *after* the line it's on? Jul 23 22:18:38 i just want to run an expression in the breakpoint, but the line is at the end of a method Jul 23 22:19:39 whomp set the bp at the next lien? Jul 23 22:19:45 *line Jul 23 22:19:58 } is a valid place to put a bp Jul 23 22:20:18 it gives me a breakpoint with an 'x' over it, meaning that it won't work Jul 23 22:20:29 when i do it on a bracket Jul 23 22:20:44 somethin else is wonky then, i can set them on } all day long Jul 23 22:34:09 well JesusFreke, thanks a lot for your clear explanations, it helped me a lot to clarify my very initial misconceptions :D Jul 23 22:34:20 np :) Jul 23 22:34:56 gotta go now, I'm almost sleeping... hope to come back here another day :D Jul 23 22:38:58 how do I create a java module in my Android Studio project that prepares some files and copies them into main app's assets folder? Jul 23 22:39:24 bye! Jul 23 22:42:03 or ... how do I invoke a java class/module from the gradle build? Jul 23 22:46:12 hey guys, is there an equivalent to Fragment.onViewCreated for Activities? Jul 23 22:46:55 OnPostResume? Jul 23 22:47:11 i think onpostresume guarantees setContentView from onCreate has finished Jul 23 22:47:16 (i think) Jul 23 22:47:23 lasserix, I'll have a look, thanks :) Jul 23 22:50:44 apparently onCreate is where I retrieve the widgets in the UI I need to interact with programmatically... Jul 23 22:50:45 huh... Jul 23 22:52:10 this looks legit http://stackoverflow.com/a/17714743 Jul 23 23:06:15 guys, any idea why a Service that was started with START_STICKY is not restarted after I kill it? :S (doing it with a killer app from the play store which needs root) shouldn't it restart after the SIGKILL signal? :S Jul 23 23:08:33 no; i believe all sticky says is to stay resident after the last binding has closed Jul 23 23:09:06 according to the docs not :S Jul 23 23:10:19 http://developer.android.com/reference/android/app/Service.html#START_STICKY Jul 23 23:34:52 I dont have zipalign in my sdk/tools directory. Where can I download that from? Jul 23 23:45:20 LuxuryMode: it should be in the build-tools package Jul 23 23:45:36 JesusFreke thanks. didnt have it installed. just got it from the sdk manager. thank you Jul 23 23:45:39 i.e. it's at android-sdk-linux/build-tools/20.0.0/zipalign on mine Jul 23 23:54:41 thanks Jul 23 23:55:00 so the google play beta/alpha testers only works if I have a prod build published? Jul 23 23:56:17 Hey guys, any ideas on creating a countdown timer, counting time till the end of the day? in GMT time format. Jul 23 23:56:30 nevermind, im an idiot Jul 23 23:57:39 Can robolectric run the testing on th ephone? Jul 23 23:58:12 I would like to display it then as textview, like : Remaining time untill the end of the day: 13 hours 12 minutes 56 seconds Jul 23 23:58:43 MetalGuru: you developing an app to pyschologically torture full time employees? Jul 23 23:58:55 nope :D Jul 23 23:59:17 app where you have to do some tasks every 24 hours :) Jul 23 23:59:48 (it sounds like an employee torture app though :D) Jul 24 00:02:11 What's the proper way to programmatically detect if a VPN connection is active and get its information (interface name, device IP, broadcast address ...)? Jul 24 00:02:31 I guess I can iterate interfaces, but surely there's a cleaner way Jul 24 00:04:51 I still need to create a store listing even if I only publish a beta app, right? Jul 24 00:29:55 guys any ideas on doing this on android? http://www.webdeveloper.com/forum/showthread.php?215504-Continuous-24-hour-Countdown Jul 24 00:41:51 It is SO F'ING HOT! Jul 24 00:42:12 Hi all btw Jul 24 00:45:18 hi Anthaas, maybe you should move to the Southern Hemisphere for a while :) Jul 24 00:45:32 I'd love to - I really would haha Jul 24 00:45:47 I dont know about you, but here in the UK houses rarely have air conditioning or anything of the sort. Jul 24 00:47:01 don't you even have heaters to keep you warm in winter? Jul 24 00:47:07 or do you just get by with lots of tea? :) Jul 24 00:47:30 Haha, I break the stereotype and don't enjoy tea - I dont get too far though because I love crumpets. Jul 24 00:47:38 We have heaters for the winter, nothing to cool us in the summer. Jul 24 00:47:52 How hot is it these days over there? Jul 24 00:48:04 I hear you had a "head wave" a couple of weeks ago. Did it go over 30 C? Jul 24 00:48:15 Over most of the UK its about 26-32 degrees at the moment Jul 24 00:48:19 (here in Cyprus it's 40+ this time of year) Jul 24 00:48:34 Its currently 24 degrees here at night. Jul 24 00:48:41 as in 1:48am Jul 24 00:48:46 ahh sounds like bliss Jul 24 00:48:50 Hate it Jul 24 00:48:59 hehe Jul 24 00:49:01 Us Brits aren't used to this weather haha Jul 24 00:49:06 I like it cold. Jul 24 00:49:06 Silly English types :> Jul 24 00:49:26 The worst part is Im heading to Spain in September for a week - its even hotter there... Jul 24 00:49:59 You might experience brain melting Jul 24 00:50:25 I think I've already had it, so hot I cannot cope. I do not know what to do with myself. Jul 24 00:51:54 Picasso or Volley and why? Jul 24 00:51:55 I expect places like Spain to have air conditioning almost everywhere Jul 24 00:52:13 Oh they do - my girlfriends Dad has a few villas over there - I shall be sitting under the air con if not in the fridge. Jul 24 00:52:20 :) Jul 24 00:53:39 guys I somehow got it working, its now displaying in textview something like 23:7:2 (23 hours. 7 minutes, 2 seconds). I would like it to be in 23:07:02 format (with those zeroes). Would you please help me out with this? How can I achieve this? Jul 24 00:53:54 DateFormat Jul 24 00:54:07 hh:ii:ss (I believe) Jul 24 00:54:55 oh, thank you :) gonna have a look at that class :) Jul 24 00:56:27 Hmm, going to add Picasso as a dependency in my gradle file - just need to know how now :P to Google! Jul 24 00:59:03 But what I am displaying is not actually a date, its combination of 3 integers Jul 24 00:59:17 How are you getting those integers? Jul 24 00:59:31 I will post that code, one second please Jul 24 00:59:39 Sure Jul 24 00:59:58 http://pastebin.com/bBY4jHwi Jul 24 01:00:19 talking about counthh, countmm and countss variables Jul 24 01:00:34 which are being displayed every second in hh:ii:ss format Jul 24 01:00:36 type? Jul 24 01:00:39 int Jul 24 01:00:40 ? Jul 24 01:00:43 y Jul 24 01:00:53 did you get that pastebin link? Jul 24 01:01:10 yeah Jul 24 01:01:58 any ideas? :D Jul 24 01:02:30 Hi all. Question. How do I force a custom arrayadapter to "refresh" (go through all the items and run the getView() method) ? Jul 24 01:02:31 is it required to write a plugin for custom tasks written in Java for a gradle build? Jul 24 01:02:44 ThomQ: notifyDatasetChanged() Jul 24 01:02:48 ThomQ: notifyDataSetChanged Jul 24 01:03:04 Thaaanks Jul 24 01:03:05 :) Jul 24 01:03:06 MetalGuru: Yeah, trying to remember the exact solution though haha Jul 24 01:03:12 :D Jul 24 01:03:48 I could possibly do it with few if statements, but its like scratching my ear with my leg.. Jul 24 01:06:34 try: SimpleDateFormat f = new SimpleDateFormat("HH:mm:ss"); String time = counthh + ":" + countmm + ":" + countss; Date formattedTime = f.parse(time); Jul 24 01:06:51 In fact, that can be shortened Jul 24 01:07:20 Anthaas: first, use joda time Jul 24 01:07:28 ah, MetalGuru Jul 24 01:07:42 wat wat Jul 24 01:07:42 Date d = new Date(counthh + ":" + countmm + ":" + countss); String formattedTime = new SimpleDateFormat("HH:mm:ss").format(d); Jul 24 01:07:43 :D Jul 24 01:07:45 that way also work Jul 24 01:07:52 will give it a try, thank you! :) Jul 24 01:07:54 jesus Jul 24 01:07:59 just use %02d Jul 24 01:08:06 String.format Jul 24 01:08:06 on integer? Jul 24 01:08:07 0! Jul 24 01:08:10 Thats it! Jul 24 01:08:23 I couldnt remember the bloody thing for necessary digit Jul 24 01:08:30 I could only think of # which is optional hahaa Jul 24 01:08:36 ok Jul 24 01:08:38 Yeah thatll work haha Jul 24 01:08:50 I am oficially retarded Jul 24 01:08:55 You and me both pal Jul 24 01:09:00 :D Jul 24 01:09:02 Its too hot to function here Jul 24 01:09:09 anyways, thank you guys a lot Jul 24 01:11:04 Wow Picasso is simple. Jul 24 01:11:06 JakeWharton: is right Jul 24 01:11:10 Even for like...unimportant things. Jul 24 01:11:18 and quick Jul 24 01:11:18 Anthaas: that's the idea Jul 24 01:11:33 need to sleep Jul 24 01:11:37 good night guys Jul 24 01:12:36 ok Jul 24 01:12:44 now I have to wait fo 20 sec to see if it works Jul 24 01:12:47 waaait for iiit Jul 24 01:12:56 JakeWharton: Like...one line simple. You make me feel like a retard, sir. Jul 24 01:12:56 shit, it does not Jul 24 01:12:57 :D Jul 24 01:13:05 brb Jul 24 01:17:58 uhm Jul 24 01:18:00 time.format("%02d:%02d:%02d", counthh, countmm, countss); Jul 24 01:18:04 is it totally wrong? Jul 24 01:18:16 (Its 3:18 AM, pardon my retardness) Jul 24 01:18:31 String.format("%02d:%02d:%02d", counthh, countmm, countss) Jul 24 01:19:31 -_- Jul 24 01:19:34 sigh Jul 24 01:19:36 thank you Jul 24 01:20:07 yeaaaah, it works :D Jul 24 01:20:24 After hours and hours spend on totally unuseful feature! Jul 24 01:25:59 Let's celebrate Jul 24 01:26:01 * Achillion grabs a beer Jul 24 01:31:01 what 'kind' of beer? .... Jul 24 01:32:08 Good beer, hopefully. Jul 24 01:32:46 some nice jap brew would be great, thanks Jul 24 01:35:33 Local Carlsberg. Not the best, just what's available right now. Jul 24 01:35:52 having a berliner jubi, cheers Jul 24 01:38:11 cheers! Jul 24 01:42:24 mandatory fun ! Jul 24 01:45:06 "Fun will now commence." Jul 24 01:46:33 * Achillion activates fun. Jul 24 01:47:37 o.O I fell asleep Jul 24 01:47:53 time to put away macbook and sleep for a while I guess Jul 24 01:48:08 Good night guys and thanks for helping me out :) Jul 24 02:23:05 Hi everyone. Can anyone tell what is the Intent to show dialog to open file like this screenshot? http://imgur.com/umOp9kb Jul 24 02:56:02 even my textual dock icon has a part hat on today :) **** ENDING LOGGING AT Thu Jul 24 03:00:02 2014