**** BEGIN LOGGING AT Mon Dec 23 02:59:59 2013 Dec 23 03:12:18 Andre, i am using a real device Dec 23 03:12:34 everything works it opens when image gallery is opened but once an image is selected it crashes Dec 23 03:12:44 http://stackoverflow.com/questions/20735097/trying-to-get-current-path-of-an-image-being-uploaded-android Dec 23 03:12:50 my code and error is there Dec 23 03:13:00 it points to the method Dec 23 03:13:07 which might have something to do with the Uri Dec 23 03:13:14 I am not sure if I am writing it correctly Dec 23 03:19:18 <_sirpatrick> how do in car dashboards running android customize their interface so much? Dec 23 03:19:30 <_sirpatrick> do they just make their own UI elements with graphics? Dec 23 03:20:34 their nuts right! Dec 23 03:22:08 <_sirpatrick> I just don't understand what they do Dec 23 03:22:26 <_sirpatrick> I am trying to make a custom interface for an industrial device and can't make it look good with standard interface elements Dec 23 03:23:25 And We're back Dec 23 03:23:52 LoneSoldier728: Will look more into it. Going to take a shower now. Dec 23 03:27:58 k thnks Dec 23 03:28:15 anyone else understand it Dec 23 03:41:41 what has to happen after you allow a use click on an upload image button and select an image Dec 23 03:42:29 <_sirpatrick> LoneSoldier: I am not sure I understand your question Dec 23 03:45:00 Basically I am having a user be able to upload a profile picture Dec 23 03:45:08 <_sirpatrick> ok Dec 23 03:45:18 if he clicks upload, I take them to the gallery Dec 23 03:45:32 but then I am not sure what has to happen when they select a picture Dec 23 03:45:47 right now I try to take the Uri but the app seems to crash when a picture is selected Dec 23 03:46:23 make sense? Dec 23 03:57:27 http://stackoverflow.com/questions/20736771/android-issue-with-creating-image-upload Dec 23 03:57:32 Anyone able to assist me : ) Dec 23 04:05:14 greetings, does anyone have a recommended or preferred method for converting an input stream to JSONObject ? Dec 23 04:06:31 without using a string inbetwene Dec 23 04:10:26 Far as I know, you don't have a choice there. Dec 23 04:10:59 You could use JsonReader instead if you need to avoid reading in the entire string. Dec 23 04:27:19 ah perfect, thank Nilium il try that Dec 23 04:30:15 dunno why build from the command line are taking 5-7 sec; but from AS 30-45 sec Dec 23 05:02:53 Broadcast receiver in activity for changes to packages is not getting called, can't set permission in manifest since only for system apps. Anyone do something like this? Dec 23 05:03:48 ahh solved http://stackoverflow.com/questions/7470314/receiving-package-install-and-uninstall-events Dec 23 05:40:53 in a TableRow layout when i define 2 more TableRow, only one row is show the second one goes out of view. how to align all rows vertically? Dec 23 05:43:03 any idea? Dec 23 06:29:26 Couldn't anyone please suggest me how could I achieve android.R.layout.simple_list_item_multiple_choice's drawable clickable? Dec 23 06:29:29 does anyone here have experience making media streaming apps? Dec 23 07:01:56 Is it possible to publish widgets to the playstore or does it have to be an app? Dec 23 07:21:42 http://www.newthinktank.com/videos/android-video-tutorial/ Dec 23 07:23:09 hello, question about Android Studio. I notice that recently only the Canary builds are being release... I haven't had an update on the stable dev channel for a while.. is the Canary Channel worth going for and stable enough for production work?? Dec 23 07:24:54 dck28 its a bug that those settings aren't persisted Dec 23 07:27:12 http://www.vogella.com/articles/AndroidListView/article.html Dec 23 07:29:14 g00s: yeah i notice the setting doesn't persist and i keep getting notifications about Canary build updates... but I'm wondering if in that case should i just start using the Canary channel instead... do you think it's stable enough for production work? or should i just stick with the dev channel.. Dec 23 07:30:11 i've been using it for production, but i have been burned a few times :) Dec 23 07:30:26 as soon as they fix that persist thing i will switch it over to debug Dec 23 07:30:40 or beta, whatever the next one is Dec 23 07:31:16 sometimes backspace does not work in eclipse, what is the reason? Dec 23 07:33:12 How can I use clang with my native build.. NDK Dec 23 07:33:22 g00s: maybe builds from outside the IDE are faster due to no UI overhead ... more intelligent source buffering? Dec 23 07:33:58 g00s: i see Dec 23 07:34:10 even if i do gradle clean, then assembleDebug (start from scratch) command line is waay faster .. Dec 23 07:34:18 even if the daemon insn't started Dec 23 07:34:26 if the daemonis running its super fast Dec 23 07:36:39 my machine ran eclipse better than AS Dec 23 07:36:58 its pretty low end now. AS is so janky while typing (the cursor is behind what i type) Dec 23 07:37:21 seems like the editor is constantly stuttering Dec 23 07:37:31 very distracting Dec 23 07:39:35 Turn of auto-complete Dec 23 07:39:40 *off Dec 23 07:39:44 i may as well use vim Dec 23 07:39:50 i put it in power save mode Dec 23 07:39:50 ++ Dec 23 07:40:01 pretty useless Dec 23 07:40:22 * capella hasn't gotten craze enough to use vim ... I stopped using text editors like that after Ed Dec 23 07:41:05 yeah, i prefer ides for programming. vim is great for editing a config file or git commit ;) Dec 23 07:41:35 sublime-text Dec 23 07:41:54 I really need to send those guys money Dec 23 07:42:56 i goof off with sublime, i think its a fad Dec 23 07:43:13 :o Dec 23 07:43:15 capella: you now it's a payed software Dec 23 07:43:32 "payed software"? Dec 23 07:43:39 licensed Dec 23 07:43:43 besides, notepad++ is better Dec 23 07:44:00 notepad++ The windows-y thing? Dec 23 07:44:16 yeah Dec 23 07:44:24 it's a windows only software Dec 23 07:44:44 capella you can run it in wine ! Dec 23 07:44:54 and it IS better Dec 23 07:44:59 g00s MS and I have parted ways Dec 23 07:45:08 that is very final Dec 23 07:45:18 Metro was the kicker :) Dec 23 07:45:27 "modern" Dec 23 07:45:40 Not for a development IDE Dec 23 07:45:55 Maybe for a home shopping device Dec 23 07:46:01 :O Dec 23 07:46:09 oh common Dec 23 07:46:10 :) Poking fun at MS Dec 23 07:46:20 VS is an awesome IDE Dec 23 07:46:31 Slow Dec 23 07:46:42 but very good Dec 23 07:46:53 infinitely better than Eclipse Dec 23 07:46:56 Perhaps - Some things MS did right Dec 23 07:47:14 like C# Dec 23 07:47:16 and yah, Eclipse is inferior Dec 23 07:47:40 it's inferior to writing with a pen and shouting out OP codes Dec 23 07:47:41 Haven't poked @ C# ... not sure the advantages over C++ Dec 23 07:47:52 it's fun to program with Dec 23 07:47:59 Sorry, this might be a bit irrelevant, but I couldn't find the sample apps for Glass. I downloaded the GDK and looked into samples -> android-15... does anyone here knows where the sample projects for Glass are located under the SDK directory? many thanks Dec 23 07:48:04 I've resorted to togelling code into front panels before off of paper Dec 23 07:48:12 but it should be compared to Java, not C++ Dec 23 07:48:49 Eclipse yo. nothing beats the tricks that Sublime has and incorporating VIM and key macros Dec 23 07:49:09 Ah good, I do C++ to a good degree, but I don't like aspects of the language, Java seems the Bst i've found so far Dec 23 07:49:27 hmmmm Dec 23 07:49:43 (for my needs) If I want speed like for low level process control, I'll just do C Dec 23 07:49:51 C# is easier and is really fun, has some perks Dec 23 07:50:05 not always better but I think that all in all it's better Dec 23 07:54:35 yah but you start with C#, then the next thing you know you're doing .NET :p Dec 23 07:55:06 that is true... Dec 23 07:55:19 once you C# you're a MS bitch Dec 23 07:56:16 XD Dec 23 07:56:50 * capella used to love MS, they as a corporation seem a little confused as to direction lately Dec 23 07:57:43 They've always been super corp 500, but they've stretched to retail and seem to be forgetting the devs in the middle Dec 23 07:58:08 the truth is that Steve Balmer kinda killed MS Dec 23 07:58:48 That new guy from Ford will fix everything ! :p Dec 23 07:58:52 g00s: You there? Dec 23 07:59:04 hi Nilium Dec 23 07:59:28 I have a View with some background inside a RelativeLayout, once I "drag" it downsides it moves ok, but once the View's bottom reach RelativeLayout's bottom, the View's background starts to "fit" the screen. Tried the same with ImageView, but still stretches. Dec 23 07:59:40 I seem to remember you asking about random apps, so figured I'd show this to you ⇒ https://shortcatapp.com Dec 23 07:59:42 Couldn't anyone suggest me what should I do ? Dec 23 07:59:59 Well, apps for OS X, anyway. Dec 23 08:00:33 Nilium ha, cool thanks. yeah you have good taste ;) using a vpn client btw ? :P Dec 23 08:00:41 Never have, actually. Dec 23 08:01:07 Closest I get to anything like that is using x11 over ssh. Dec 23 08:01:48 tunnelblick is iffy Dec 23 08:02:15 Wait, vpn, I was thinking vnc Dec 23 08:02:48 I'm not using any VPN services. Don't really know where to start there. Dec 23 08:03:08 i also have to do my homework and choose good free virus scanner (clam is so damn slow) . maybe sophos Dec 23 08:03:39 other than that i'm pretty set. i like moom Dec 23 08:04:30 Haven't used one of those in years except AVG on Windows 'cause I had to install one to get around my university's immensely stupid network access thingy Dec 23 08:05:05 That said, it was easy to get around it after a while. First attempt they had, I just had to run IE in a sandbox and then it'd let me do anything normally. Dec 23 08:05:34 Second attempt they did, it actually got worse -- if I set my UA to anything with Linux in it, it'd ignore me. Dec 23 08:05:50 try tried to lock down IE at ASU's campus areas; just say 'c:\' in uri box and you're in :D Dec 23 08:06:09 they screwed that up; i'd bet you could lock it down Dec 23 08:06:19 Their software was mainly just intended to monitor P2P traffic though -- they tried to justify it as a security thing, but the entire point of the software was anti-piracy crap. Dec 23 08:06:46 oh yeah, have you tried 'little snitch' ? its pretty expensive Dec 23 08:06:53 The side-benefit was they forced students to update their OS and install AV, but in reality that's just helping against existing threats, not new ones. Dec 23 08:07:01 well, us, 30 is expensive for me ;) Dec 23 08:07:17 Never heard of it. Dec 23 08:07:29 http://www.obdev.at/products/littlesnitch/index.html Dec 23 08:07:48 looks cool Dec 23 08:07:50 I don't really keep abreast of security stuff, I've just stuck with what I've always done Dec 23 08:07:53 Hm, interesting. Dec 23 08:08:02 Haven't actually used a third-party firewall in eons Dec 23 08:08:10 i'll probably freak out once i see whats going on :D Dec 23 08:08:58 The only thing I remember is BlackICE. Dec 23 08:09:43 There are so many apps now that necessarily communicate with stuff on the 'net that it's reasonably difficult to care, in my case Dec 23 08:10:15 Chrome's syncing stuff, iCloud is syncing, Mac OS is occasionally pinging apple.com to see if it's got a connection, etc. Dec 23 08:11:09 Then all the stuff that's just checking for updates periodically. I've seen folks who don't consider that freak out when they saw their network IO. Dec 23 08:11:21 :) Dec 23 08:11:40 My mouse needs to check home for software updates Dec 23 08:11:56 :| Dec 23 08:11:57 mouse ... software .... ??? Dec 23 08:12:17 That happened occasionally with my Razer when I was on Windows Dec 23 08:12:19 It had to use special software for the side buttons. Dec 23 08:13:00 Nilium what was that documentation app you used ? Dec 23 08:13:26 Dash Dec 23 08:13:26 I found a Linux equivalent for it, too Dec 23 08:14:01 http://zealdocs.org ⇐ Found it again. Dec 23 08:14:07 Apparently also works on Windows. Dec 23 08:14:38 cool, thanks Dec 23 08:28:12 i dont understand why, setting a Spinner to visible, causes the onItemSelectedListener to fire Dec 23 08:28:33 which is totally fucking me up Dec 23 08:30:06 g00s: I think I saw that a long time ago... the point is that if you want to do something when an item is selected, you presumably want to do it for your default item whenever the spinner is created/activated Dec 23 08:30:07 I think Dec 23 08:35:22 yeah, seems so .. "By default, Android Spinners select the first item returned by the Adapter, and therefore the OnItemSelectedListener is called to trigger some action on that item." Dec 23 08:36:06 too bad, when the user selects the first item i wanted to show a dialog. Dec 23 08:36:36 quick fix is rearrange items so that one is not the first :( Dec 23 08:36:47 or the dialog-action item is not the first Dec 23 08:40:24 do i need to install all the api's to compile for different versions of android? Dec 23 08:40:37 yeah, quiteno Dec 23 08:40:40 oops Dec 23 08:40:45 ItsMeLenny no Dec 23 08:41:01 g00s, thank gawd for that :P thanks for the answer Dec 23 08:41:41 and the virtual device manager wont run in the latest version of ADT, and unfortunately i deleted the version before it Dec 23 08:43:28 g00s, do you know how to select a different target in the virtual machine if only one comes up Dec 23 08:44:03 you will need VMs for all api versions to test Dec 23 08:44:12 ah Dec 23 08:44:20 but to compile i don't Dec 23 08:44:55 im glad you're around, you've relaxed my mind from questions ive been trying to answer the whole day Dec 23 08:46:40 g00s, maybe you can save me here again, i made an empty application, just one with basic buttons on it, and put the apk on my brothers phone and when i press to install it it says "app not installed" Dec 23 08:48:43 "press to install"? Dec 23 08:50:55 capella, yeah i click the apk which ive put in downloads and press install Dec 23 08:50:55 and then it says app not installed Dec 23 08:51:26 logtcat? Dec 23 08:52:11 who is that Dec 23 08:52:24 |logcat| ... ? Dec 23 08:52:40 sorry, spelled it wrong Dec 23 08:53:12 oh, i thought he was a person Dec 23 08:53:18 how would i get one Dec 23 08:53:26 no - logcat is your friend :) Dec 23 08:53:41 where can i find him Dec 23 08:53:54 adb logcat Dec 23 08:54:27 * capella is confused Dec 23 08:54:36 Your content must have a ListView whose id attribute is 'android.R.id.list' Dec 23 08:54:48 how to resolve that nasty error? Dec 23 08:55:05 capella, i dont know who he is Dec 23 08:55:35 itsmelenny im sorry I thought you were a developer Dec 23 08:56:03 capella, i'm trying to be Dec 23 08:56:05 :P Dec 23 08:56:21 can someone check my code and see where i made mistake? Dec 23 08:56:26 oh my! ADB is a terminal command Dec 23 08:57:15 itsmelenny : just google |logcat android| Dec 23 08:57:40 It's a tool the lets you examine system log information -error messages and such Dec 23 08:58:05 ah thanks! is that view it from my computer while its running on the device Dec 23 08:58:08 or if you're in the ide there's probably a build in way Dec 23 08:58:13 arduino style Dec 23 08:58:25 yes that sounds right Dec 23 08:59:03 intelliJ lets me watch in the IDE that's cool Dec 23 08:59:20 i'll definitely be trying it, when i can get my hands on my brothers phone, i do wonder why it doesnt run tho when i didn't add any code Dec 23 08:59:43 Any number of packaging reasons Dec 23 09:00:02 Or your brothers phone Dec 23 09:00:46 lol, i am starting to think the latter, as i tried doing something with cocos2dx and it actually installed but kicks up an error, and then i tried their already compiled examples and it kicked up the same error Dec 23 09:00:58 "unfortunately *appname* has stopped" Dec 23 09:01:13 yah, logcat is the next step Dec 23 09:01:16 whether i can use logcat for it aswell Dec 23 09:01:17 yeah Dec 23 09:01:51 Are you writing / publishing an app? Most people build logcat status messages into their code Dec 23 09:02:17 whether its the processor in his phone: 1.3 GHz MT6572 Dual Core Processor Dec 23 09:03:08 memory availability, OS Version levels, lotsa things Dec 23 09:03:28 capella, i havent done android development before, ive done a lot of python, and other things, but so im working on my first game, which my brother is meant to be helping with, but it seems he just wants to pretend he's doing something or something Dec 23 09:03:57 he just wants me to get it all working, and then he _might_ do something, which makes the whole process not so fun Dec 23 09:04:11 people if I have a thread Dec 23 09:04:21 hahaha Dec 23 09:04:26 actually quite stressful as ive been trying to get things running the past few days Dec 23 09:04:33 which will be doing task of say 20 minutes or thereof Dec 23 09:04:45 would it be terminated if user press back Dec 23 09:05:09 I will not be killing it in onPause or onDestroy Dec 23 09:06:31 wow, iPhone on China Mobile Dec 23 09:06:34 do you want it terminated if user press back? You have to be running that thing in an asych or service off UI Dec 23 09:06:42 thats like 700 million users Dec 23 09:07:15 2x US pop ?!? Dec 23 09:07:42 hello Dec 23 09:09:02 capella, i'm thinking i'll just spend 70 to 100 bux to buy a cheap shitty tablet, the 100 dollar ones have quad core so i wonder if its worth the extra 30 just for development Dec 23 09:09:35 development means MORE POWER! Dec 23 09:10:30 capella: I want it to complete what ever it is doing Dec 23 09:10:38 and complete on its own pace Dec 23 09:10:56 purpose of making a thread would be to keep it out of UI thread Dec 23 09:11:08 capella, good point Dec 23 09:11:20 Correct, and the back button controls UI behaviour unless you've coded it to do something extra Dec 23 09:12:04 so, it will work then I assume because I am least interested in killing the thread Dec 23 09:12:51 "thread" means asynch task? Dec 23 09:13:03 or service? Dec 23 09:13:35 Try it - toss logcat messages in - debug and figure it out :) Dec 23 09:13:41 new Thread(hardWorker).start() capella Dec 23 09:14:02 hmm, service seems a good idea as well Dec 23 09:21:29 does anybody else have problems extracting cocos2dx 2.2.1 from its zip, i get compression errors Dec 23 09:33:17 Leeds setSelection(o, false) worked before setting the listener Dec 23 09:33:29 (0, false) Dec 23 09:57:41 Hi, I want to change the preview size of a Camera. I want to set it on 1024x768. It's supported (checked with camera properties) but the preview is really bad like this: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLVMLB_7vOFENOFfZ3S-vafnzFxsNywApoaWd8b2F4Q1Yn8Ar1ww how can I fix this? Dec 23 09:58:52 so i have an edit text, should i round the corners or not? Dec 23 09:59:07 sure go ahead Dec 23 10:00:08 FrancescoV, you're setting a preview resolution your camera doesn't support Dec 23 10:00:19 there's a reason why there's a getSupportedPreviewSizes call. Dec 23 10:02:09 Mavrik: preview-size-values=1920x1080,1280x960,1280x720,1024x768,1024x576, ... so it's supported I gues Dec 23 10:02:14 I don't know why Android decides that my button needs more height... It looks like this in the Fragment: http://gyazo.com/3f33c130b16777052daff48cdbc0cc05.png , but it looks like this in the normal layout: http://gyazo.com/6b5aee107702c46637d9b799ab9170c6.png Dec 23 10:02:38 FrancescoV, those are typical artifacts of what decoded image looks like when stride size is wrong. Dec 23 10:09:42 Mavrik: how can I get the largest possible preview size? and what about zooming in? Dec 23 10:27:11 Can we register handler for urls handling by HttpClient? Dec 23 10:52:35 Hello anyone know if there is a way to get a list of system setting intents? Dec 23 10:53:34 autrilla looks like your match-parent wrap content is inconsistent Dec 23 10:54:56 lasserix, the button has wrap content Dec 23 10:59:43 I see no reason for it to look like this Dec 23 10:59:57 if the height is wrap_content, why is it bigger? Dec 23 11:10:17 Hi all! I'm using VideoView. If video gets completed - how do I re-start it? I must prepare() video, but I don't this method available for VideoView, only setOnPreparedListener() Dec 23 11:11:12 * I don't see method prepare() or prepareAsync() available for VideoView Dec 23 11:11:56 hmm Dec 23 11:12:02 osmij_, doesn't calling start() work? Dec 23 11:13:45 Mavrik: didn't try... According to this scheme it shouldn't, I think... http://developer.android.com/images/mediaplayer_state_diagram.gif Dec 23 11:14:08 osmij_, that depends on what videoview does with underlying mediaplayer Dec 23 11:14:19 lemme check the source :) Dec 23 11:16:18 Mavrik: nope, start() doesn't work with message: playback completed immediately following start() Dec 23 11:16:26 hey Dec 23 11:17:04 Mavrik: in any case I think I will make a "refresh" button that will re-create whole activity... It's a not very stable video stream... Dec 23 11:17:10 osmij_, looking at the source Dec 23 11:17:17 calling "setVideoUri" again will reset the player Dec 23 11:17:28 or setVideoPath Dec 23 11:17:28 I've imported an old project that uses SimonVT's numberpicker, but I get Description Resource Path Location Typeerror: Error: No resource found that matches the given name: attr 'numberPickerDownButtonStyle'. themes.xml Dec 23 11:17:29 oh, let me try Dec 23 11:17:33 Any ideas? :) Dec 23 11:17:51 osmij_, even though, you should probably consider doing this manually and just setting "repeat" on MediaPlayer object Dec 23 11:18:02 way more efficient, less stuttery and gives you more control Dec 23 11:18:03 :) Dec 23 11:18:17 I get it on @style/NPWidget.Holo.ImageButton.NumberPickerDownButton Dec 23 11:20:53 Do I also need in the same themes.xml? Dec 23 11:24:20 quacked, hmm, that usually happens if your library project didn't import correctly Dec 23 11:25:04 I've deleted and imported a bunch of times :P Dec 23 11:26:27 Do I need specific SDK builds? Dec 23 11:26:46 I've installed a bunch now but still no go Dec 23 11:28:03 probably not Dec 23 11:28:07 Haven't used the lib so I don't really know. Dec 23 11:29:04 Mavrik: setVideoURI() worked! Thanks! setLooping() is not available in the library I use instead of default VideoView, or I'm very blind... Dec 23 11:29:15 It also happens when that attribute no longer exists in the library Dec 23 11:29:46 It looks like the library has been modified slightly since I used it, but in project.properties it says target=android-16 and in manifest it says target=17 Dec 23 11:30:15 SimonVT: did you remove it from the library? Dec 23 11:30:30 yes Dec 23 11:30:58 oh, why? :) Dec 23 11:31:23 Because it's no longer used Dec 23 11:33:01 dose someone have the same situation like me ? i can not get the value which has been mapped by the key,when i hava put the key as a parameter into the JSONObject.ge() or JSONObejct.getString() Dec 23 11:33:25 so I cannot modify each of those items anymore with the current version of your library? Dec 23 11:33:47 maybe it is a bug of the API? http://code.google.com/p/android/issues/detail?id=13830 i have found this Dec 23 11:33:50 man, I realize its been a long time since I tinkered with this Dec 23 11:34:21 me?quacked Dec 23 11:34:45 no Dec 23 11:34:56 The up and down button was removed from NumberPicker in JB Dec 23 11:34:58 can you help me Dec 23 11:34:59 I don't know why Android decides that my button needs more height... It looks like this in the Fragment: http://gyazo.com/3f33c130b16777052daff48cdbc0cc05.png , but it looks like this in the normal layout: http://gyazo.com/6b5aee107702c46637d9b799ab9170c6.png Dec 23 11:35:04 zhouhuakang_, honestly, I think most people just use Jackson or something like that for easier JSON parsing Dec 23 11:35:16 i use the GSON Dec 23 11:35:28 Hello world! Is there some sort of hidden limit for how many loaders I can be running at the same time (via Fragments in ViewPagers)? Dec 23 11:35:28 but i am not familier with it Dec 23 11:35:49 I'm getting issues when using more than 3 fragments (loading resources from separate urls) - then fragment #3 consistently gets delivered the content for the previous loader :( Dec 23 11:35:57 io i resort to the Android API again Dec 23 11:36:43 Mavrik,can you tell me that can i show my code here? Dec 23 11:36:47 Or more precisely, Fragment #3 (with Loader#3) consistently gets results intended for Fragment #1 (with Loader#1) Dec 23 11:37:16 i come from china,and my english is just so Dec 23 11:37:25 SimonVT: looks like the only thing I modified was numberPickerInputTextStyle, is that gone too? Dec 23 11:37:26 but i do hope someone can help me Dec 23 11:37:50 maybe it is a bug of the API? http://code.google.com/p/android/issues/detail?id=13830 Dec 23 11:38:14 do you know that,Maverik Dec 23 11:38:25 do you know that,Mavrik Dec 23 11:38:30 quacked: Check the source :) Dec 23 11:38:30 zhouhuakang_: It's probably a bug with your API, that it's actually containing a field with the value 'null' and not null. Dec 23 11:38:43 I last updated it like a year ago, and I no longer maintain it Dec 23 11:38:54 zhouhuakang_: {'foo':null} and {'foo':'null'} are not really the same. ;-) Dec 23 11:39:03 SimonVT: thanks :) Dec 23 11:39:11 n20: No, no limit Dec 23 11:39:27 You're just doing it wrong Dec 23 11:39:31 can i ask you in private,n20 Dec 23 11:39:33 SimonVT: Probably. :) Dec 23 11:39:41 wish you can help me Dec 23 11:40:05 n20 Dec 23 11:40:13 :) Dec 23 11:40:34 zhouhuakang_: Sure, send me a PM Dec 23 11:41:42 SimonVT: If I specify different ID's in each Fragment (for its respective loader), shouldn't it deliver correctly then? Dec 23 11:42:17 n20,can you receive me PM now? Dec 23 11:42:30 i hava send it maybe, but i am not sure Dec 23 11:43:56 n20: yep Dec 23 11:44:14 iirc each fragment have their own loadermanager as well Dec 23 11:44:28 SimonVT: I thought it was on an Activity level :D Dec 23 11:45:05 SimonVT: But still, it's really weird that #3 gets #1 consistently when I'm using four fragments in the ViewPager (currently keeping all of them "in memory") Dec 23 11:45:10 They're managed at the activity level Dec 23 11:45:20 SimonVT: If I'm using just three fragments, then all is well lol Dec 23 11:45:35 But that's why each fragment has its own getLoaderManager method Dec 23 11:46:11 SimonVT: Oh, there's my first lesson for the day. :) Dec 23 11:48:29 SimonVT: I tried dumping the loader ID's, and it seemed to me that the ID through onLoadFinished matched my constant ID_LOADER in each fragment Dec 23 11:48:53 SimonVT: Which basically makes me think that there's something wrong with the networking in the app :) Dec 23 11:49:27 SimonVT: Getting JSON for GsonClass1 when expecting GsonClass2 is really fishy Dec 23 11:50:02 Check whether it's the right Loader instance Dec 23 11:50:28 If it is, then the issue isn't LoaderManager Dec 23 11:52:16 SimonVT: As in, if loader.getId() == MY_CONSTANT_LOADER_ID? (pseudo) Dec 23 11:53:36 Or loader == loaderFromOnCreate Dec 23 11:53:42 Loader Dec 23 11:54:45 SimonVT: Roger that, thanks! :) Dec 23 11:56:09 osmij_: did your MediaPlayer work ? ? Dec 23 11:59:07 Hi all, is there something new on Google Glass for voice recognition? Or does it use the same classes as in Android? Dec 23 12:03:15 hi all Dec 23 12:13:40 Solved my issue. i changed the Button for a TextView Dec 23 12:24:01 Does anyone know off hand which filter in logcat will filter for the wtf logging method? Dec 23 12:29:35 Oh glorious vibrant easy to read red :) Dec 23 12:30:23 Looney: at the moment I'm using Vitamio library, it has it's own MediaPlayer and VideoView. I'm using Vitamio's VideoView. There are some inconveniences, but it works for me, and it is better than default MediaPlayer class, because... it's a long story... Dec 23 12:31:15 ok, and are you using default ffmpeg or did you build one yourself' Dec 23 12:36:01 Looney: at the moment I'm using MPEG-TS, but in future most likely I will be using HLS... Dec 23 12:36:36 ok, I may need to rebuild ffmpeg with SSL support Dec 23 12:36:50 would awesome if someone has already build the same Dec 23 12:37:09 you mean encoded video stream? Dec 23 12:37:11 but I fear that I will have to bear the pain by myself Dec 23 12:37:21 as most streams are on https Dec 23 12:38:37 hm... Can you give me URL? I can try whether Vitamio is capable to play it by default... Dec 23 12:39:10 I have check the urls and it complains brazenly in logcat :'( Dec 23 12:39:32 and yes the streams are HLS over https Dec 23 12:39:39 are you using Vitamio library too? Dec 23 12:40:17 yup Dec 23 12:40:46 cool! Dec 23 12:41:01 but, I will either let the user download the video Dec 23 12:41:12 or take the pain to build ffmpeg Dec 23 12:41:34 because it is not an easy task to build ffmpeg Dec 23 12:41:56 will try the code/script which Vitamio people have shared on Github Dec 23 12:43:53 when you rotate device - does your video re-start? If not how did you do that? ) Dec 23 12:45:05 well, I did not get past the playback part Dec 23 12:45:43 I think that you need do some modification in your manifest file to avoid recreating the view Dec 23 12:45:46 let me check Dec 23 12:46:49 android:configChanges="orientation|keyboardHidden|navigation" Dec 23 12:47:03 add to init activity and your own activity to be on safe side Dec 23 12:47:07 Looney: I already did. And I resize VideoView manually on rotation... I know it is wrong, but this is my first "production" app... Just learning from Google and StackOverflow... Dec 23 12:47:09 and let me know if it works Dec 23 12:47:28 y u rotate :-( Dec 23 12:47:51 I like to watch video in the portrait mode Dec 23 12:47:57 in Manifest I set this for video activity: android:configChanges="orientation|screenSize" Dec 23 12:48:16 no no, both portrait and landscape are available Dec 23 12:49:21 just fix the activity to portrait mode and I think that you will be fine ;-) Dec 23 12:50:08 :-)) My boss won't approve it Dec 23 12:50:24 off for a lunch, bye Dec 23 12:50:27 ok Dec 23 12:50:44 should you see ffmpeg build for android on internet Dec 23 12:50:48 do let me know please Dec 23 12:52:45 Looney, build it yourself? Dec 23 12:52:59 I mean, ndk-build Dec 23 12:53:05 it myself Dec 23 12:57:26 in maps v2, how can i make a marker appear on top of all others? Dec 23 13:10:00 Looney, don't use ndk-build, because it's not really meant for those projects Dec 23 13:10:15 Looney, just use ffmpeg's build scripts and tell it to use NDK's gcc etc. Dec 23 13:10:27 how else can I build/make ffmpeg Dec 23 13:10:37 Looney, I used make_standalong_toolchain script to separate out gcc toolchain Dec 23 13:10:43 hmm, "I am all eyes" type on Dec 23 13:10:57 does it do the trick Dec 23 13:11:13 I mean build ffmpeg for the architecture you want Dec 23 13:11:15 arm version Dec 23 13:11:22 vft etc Dec 23 13:11:35 this is what I wrote: https://gist.github.com/izacus/8096927 Dec 23 13:11:47 basically you need to set NDK's gcc/ld/etc compilers Dec 23 13:11:58 and set proper cflags and configure flags for ffmpeg Dec 23 13:12:13 (obviously this one is for armv7/without neon) Dec 23 13:12:28 ok, I see that I can change the arch Dec 23 13:12:29 -mfpu=neon and "--enable-neon" for ffmpeg will create a build with NEON support Dec 23 13:12:45 and -march=armv5te will compile for "armeabi" targets Dec 23 13:12:55 (remember to throw away -mfpu as well) Dec 23 13:13:02 now you have all my attention my good sire Dec 23 13:26:54 Hello, anyone ever put ads on an app that's published on Samsung store? I've heard they don't approve apps with admob. do you know anything about that? Dec 23 13:36:46 ok, back with question Mavrik Dec 23 13:38:34 does the TOOLCHAIN_ROOT refer to toolchain dir inside ndk Dec 23 13:44:28 Is it possible to check whether someone dismissed a notification by swiping it left, right or used clear all? Dec 23 13:54:33 Looney, as I said before, I created a standalone toolchain with script from NDK Dec 23 13:55:29 ok Dec 23 13:55:39 so, it will do that Dec 23 13:56:28 so I need only to have no environment variable defined Dec 23 14:09:19 I fix something and I break another Dec 23 14:09:20 nice Dec 23 14:11:08 don't we all autrilla :-P Dec 23 14:11:28 And it always makes no sense why it breaks Dec 23 14:11:54 For example, my layout put into the fragment with displays the images, but with a ListView, it doesn't Dec 23 14:16:23 I'm probably doing everything wrong in the first place Dec 23 14:19:06 is there some platform which allows people to report bugs for freeware Dec 23 14:19:24 with little or no registration hassle for reporting users Dec 23 14:20:31 osmij_: I reported the issue to Vitamio Dec 23 14:20:42 the readme says that it should support https Dec 23 14:21:13 I am hopeful that they will fix the problem Dec 23 14:21:19 lets wait and see Dec 23 14:23:58 Mavrik: your script requires no system variables, only asking because I have ANDROID_NDK_HOME instead of NDK_HOME Dec 23 14:27:55 Looney, it shouldn't. Dec 23 14:28:20 hmm, well let me comment the x264 part and rerun it Dec 23 14:28:31 it vomitted a lot on my terminal :-( Dec 23 14:29:44 onDestroy is called rather than onRestart when returned to the previous activity from camera mode. Why? Dec 23 14:31:33 Looney, well you should probably have x264 checked out as well Dec 23 14:31:41 or not if you don't want to build support for it ;) Dec 23 14:31:46 ok, Mavrik vomit reduced but still lot of Makefile no such file or directory messages Dec 23 14:31:52 yep Dec 23 14:31:58 it's not a "use for all usecases script" Dec 23 14:32:02 I do not think I will need it Dec 23 14:32:07 I meant it more for something for you to read and fix for your usecase :) Dec 23 14:32:15 I know Dec 23 14:32:36 gotta dig in the Makefile Dec 23 14:32:54 I used this ffmpeg code to build ffmpeg for my PC Dec 23 14:32:59 no prob Dec 23 14:33:30 strange that it is making a fuss now Dec 23 14:33:55 nullfxn: hey, remember my adb connecting/port-issue? i gave you some wrong informations....... Dec 23 14:34:27 nullfxn: just wanted to make it clear for the case you`re gonna help someone in the future regarding this Dec 23 14:34:37 hey guys what do reckon for a backend web-service, json or XML? Dec 23 14:34:53 JSON :) Dec 23 14:35:45 yaml Dec 23 14:35:53 Looney, building ffmpeg? whats it complaining about? Dec 23 14:36:04 nullfxn: there is no problem with adb and network-gnome manager. the one who posted in the forum was wrong. He must have had no /etc/network/interfaces file at all or at least commented it out all and used network-manager only Dec 23 14:36:16 thanks for your view Mavrik X) Dec 23 14:36:23 and Callum Dec 23 14:36:25 well, I started with Mavrik's gist Dec 23 14:36:48 I have used XML way more but now I think I should see what else could be good Dec 23 14:36:48 i was joking btw, use jsom Dec 23 14:36:49 json Dec 23 14:36:53 http://stackoverflow.com/questions/5279809/trouble-working-with-the-camera-in-onactivityresult Dec 23 14:36:54 lolz X) Dec 23 14:37:07 I think that I need to see the path as it is unable to find a mak file which is sitting in ffmpeg dir Dec 23 14:37:10 Check this http://stackoverflow.com/questions/5279809/trouble-working-with-the-camera-in-onactivityresult and please tell me the solution if any exists Dec 23 14:37:49 lacx, there's really little reason to use XML unless you really need it's feature and/or are locked in Dec 23 14:37:52 nullfxn: one must have at least an /etc/network/interfaces file with the loop-back device. The one in the forum probably didnt have that. So if you have the loop-back device (which is needed for adb) you can also use network-manager ;) Its all good! Dec 23 14:37:57 I compiled ffmpeg on my PC and server recently this is the configure I used for my Lubuntu PC: Dec 23 14:37:58 ./configure --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.9-1~quantal1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi Dec 23 14:37:58 --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static --enable-nonfree --enable-libfdk-aac --enable-libfaac Dec 23 14:38:01 the parser and generator libs are more mature when it comes to Android and other mobile platforms Dec 23 14:38:56 not locked in Mavrik Dec 23 14:39:00 cool Dec 23 14:39:35 also the format is less verbose, which means less data transferred :) Dec 23 14:39:53 thats always good! X) Dec 23 14:40:28 I do like how can encode from/decode direct to vars/arrays etc Dec 23 14:50:51 is it possible to make eclipse a little bit faster? maybe giving it more RAM? (using debian wheezy...) Dec 23 14:51:20 ok, got the toolchain script to compile some files Dec 23 14:51:21 give it a SSD :) Dec 23 14:51:32 and it is not finding gnutls or openssl Dec 23 14:51:33 lacx, look into Jackson Dec 23 14:51:53 Looney, if you want that support you'll have to compile those libraries first for ARM as well Dec 23 14:52:08 Mavrik: no money ;) need to develop something first ;) Dec 23 14:52:21 adkins42: you don't actually have to use eclipse... Dec 23 14:52:43 bummer, so, I need to build the stuff with this toolchain script Dec 23 14:52:54 What sense does it make for android.widget.Filter.performFiltering to run on a background thread, when the underlying data should only be changed from the UI thread (with a call to notifyDataSet immediately following)? Dec 23 14:53:09 notifyDataSetChanged* Dec 23 14:53:16 thanks Mavrik will do X) Dec 23 14:53:19 Leeds: that would be nice.......what would you suggest? Dec 23 14:53:25 adkins42: I use vim. Dec 23 14:53:58 Leeds: i love vim too, but dont know to set it all up with adb and android-sdk and and and Dec 23 14:54:09 it's pretty easy Dec 23 14:54:20 Leeds: is there some nice tutorial or something Dec 23 14:54:20 Leeds: so, you finally decied to get away from the evil finally Dec 23 14:54:21 kbwt, hmm... I don't understand the question Dec 23 14:54:28 Looney: did I? Dec 23 14:54:35 adkins42, try increasing heap size if you have enough RAM Dec 23 14:54:48 adkins42, most of my company switched to IDEA/AS because of Eclipse sluggishnes though Dec 23 14:54:55 Mavrik: android.widget.Filter is usually used in combination with android.widget.ArrayAdapter Dec 23 14:55:02 so, which would be easy to build using the toolchain, openssl or gnutls Dec 23 14:55:05 adkins42: you install the basic SDK - not the ADT bundle... you download the tools and platform-tools, make sure ant is installed... Dec 23 14:55:41 Mavrik: ArrayAdapter is not thread safe, in that it doesn't want its data to change from underneath it. So effectively, you can only update ArrayAdapter's underlying data from the UI thread. Dec 23 14:55:48 adkins42: then http://developer.android.com/training/basics/firstapp/creating-project.html - has instructions both for eclipse and command-line work Dec 23 14:55:59 Looney: I've never used eclipse, if that's what you mean Dec 23 14:56:28 Mavrik: So, you can just forego using synchronized (data) for locking, since the data will only be touched on the UI thread. Dec 23 14:56:29 oh, so you were pruist from day one Dec 23 14:56:32 *purist Dec 23 14:56:37 that is good Dec 23 14:56:42 Couldn't anyone suggest me how could I test in-app billing inside my app with signature? I've logged in as my publisher account and after I "buy" android.test.purchased, the value of "INAPP_DATA_SIGNATURE" extra string is empty. Dec 23 14:56:47 I used to use eclipse Dec 23 14:57:01 kbwt, obviously you shouldn't EVER modify data on another thread when there is a chance of redraw happening Dec 23 14:57:02 and it would instead of boosting productivity Dec 23 14:57:08 im trying to use resources to determine whether to use miles or kilometers (imperial/metric) in my display. What would the proper resource modifier be? Dec 23 14:57:11 Mavrik: But there comes android.widget.Filter, which wants you to compute a subset of data that matches a certain constraint string. Dec 23 14:57:13 make me fix its own petty issues Dec 23 14:57:16 kbwt, the reason you get a background thread is that you process all the data Dec 23 14:57:22 kbwt, prepare updated dataset Dec 23 14:57:37 and then set new data in adapter and call notifyDatasetChanged in UI thread Dec 23 14:57:41 Mavrik: Yes, but the data set that you are trying to filter is implicitly synchronized by being only accessed from the UI thread. Dec 23 14:57:44 you don't go around modifying data in the adapter while filtering Dec 23 14:57:51 why is that? Dec 23 14:58:04 that's what YOUR implementation does, it's not the general case you know Dec 23 14:58:19 also, ArrayAdapter is something you get rid of first thing you make a larger app ;) Dec 23 14:58:25 brb Dec 23 15:00:38 So is it somehow possible to test in-app billing with a signature? Since I do server-side check for it and I've never implemented this functionality, I would like to test it somehow before publishing, as for now with empty signature it returns fail on verification, so user on phone-side is alerted that his payment is invalid :< Dec 23 15:00:59 Mavrik, why is arrayadapter the first thing to ditch ? Dec 23 15:01:20 it's a very simple basic adapter which is extremely limited Dec 23 15:01:26 and you can reimplement it in 5 minutes Dec 23 15:01:40 which gives you flexibility about how you manage data, display, etc. Dec 23 15:02:21 so as soon as you need something more complex than a single line in a list, implementing your own adapter is the way to go Dec 23 15:03:16 Somebody used metaio sdk before? Dec 23 15:04:01 Leeds: actually cant wait to use vim, but since i`m still an android-dev-beginner and have a book which explains developing with eclipse, i think i`ll use eclipse for a little while. Dec 23 15:04:37 adkins42: it really is easy Dec 23 15:04:42 Mavrik: i have 4GB RAM. How much would you prefer to increase the heap size and where/how do i do that Dec 23 15:05:00 if you're experienced enough to know you want vim, you're experienced enough to be able to use it Dec 23 15:05:37 man, stop pushing beginners to vim and emacs ffs -_- Dec 23 15:05:51 Leeds: hrrrrrrrrrrrrrrr ;) ok i`ll check both ways parallel (making eclipse faster and checking vim) Dec 23 15:05:58 they have enough on their plate besides dealing with build system and lack of previews for everyhing Dec 23 15:06:04 Mavrik: i`m not a vim beginner , only android Dec 23 15:06:06 hmm, why is arm-linux-androideabi-gcc is unable to create an executable file. Dec 23 15:06:16 adkins42, hmm... been awhile since I had a machine with so little RAM Dec 23 15:06:21 adkins42, try increasing it so 2GB or so Dec 23 15:06:34 google for exact location, it's the Xmx java parameter... eclipse.ini probably Dec 23 15:06:35 Mavrik: how? Dec 23 15:06:43 Looney, check config.log Dec 23 15:06:43 k thx Dec 23 15:06:49 Looney, it gives you exactly where gcc chocked Dec 23 15:07:01 Looney, you probably forgot to set paramter for a linker or something like that Dec 23 15:07:16 Mavrik: What I'm doing now is just post a Runnable to the UI thread to do the filtering, from within performFiltering on the background thread, and wait for its completion before filling in the FilterResults. Dec 23 15:08:22 Mavrik: I could instead add a synchronized (data) everywhere I'm modifying the list and inside performFiltering (no need for the other reads, which are on the UI thread anyway), but that's so fragile.. Dec 23 15:09:29 Mavrik: But am I right that if you're using a default ArrayAdapter with a simple Filter, you'll have to sprinkle synchronized everywhere, no way around it? Dec 23 15:11:31 And what happens when the FilterResult contains an object that has already been removed from the ArrayAdapter? Are FilterResults invalidated every time notifyDataSetChanged is called? Dec 23 15:12:40 I can't really find these answers in the documentation. Dec 23 15:13:55 Most of the Android documentation seems like forced documentation, written only to fill in the Javadoc. What use is a sentence that provides no more information than the method signature and the argument names? Dec 23 15:14:51 hmm, linker parameter Dec 23 15:15:44 Mavrik: the LD is there Dec 23 15:18:59 Leeds: i`m not going to command line tools yet, but i will. But i`m curios about: how do you design the layouts? Dec 23 15:22:25 ugghhh Dec 23 15:22:40 anyone had any luck getting dagger to work with 0.7.0/0.7.1 ? Dec 23 15:24:33 ok, found the issue Dec 23 15:24:51 I was trying to get away with ssl dependency by setting -lssl :'( Dec 23 15:27:01 Mavrik: would it work if I replace x264 part of your script with openssl Dec 23 15:27:44 it will be able to find openssl ? ? Dec 23 15:48:09 adkins42: xml Dec 23 15:50:23 adkins42: you could always run up eclipse to do your layouts, but do your coding/debugging without it Dec 23 15:59:20 Leeds: i see . thx Dec 23 16:00:23 Mavrik, ah.. thats what you meant.. Dec 23 16:00:39 i thought you said arrayadapter is to be avoided at all costs Dec 23 16:06:54 Do you know of any resources I could see for good layout development? Dec 23 16:07:37 autrilla: I think it depends on what you're trying to achieve autrilla Dec 23 16:07:55 impedancee, well, I'm trying to make something that looks like Google Play's main screen Dec 23 16:08:15 A category, a see more button, and three cards Dec 23 16:08:28 And repeat that (in a ListView, I guess) Dec 23 16:38:07 I have an asyncTask but it's really slow, is there something better/else to run something on new thread (not ui thread) Dec 23 16:38:19 *better / faster Dec 23 16:38:29 Does someone know how to setup Gradle with an Android project in IntelliJ? I've never used Gradle and can't find any good tutorials online. They're directly giving you the files and nothing more. Dec 23 16:38:31 what's slow about it Dec 23 16:39:58 when you say intellij do you mean android studio? Dec 23 16:40:17 hi guys, how would i use theme-based default activated list item style? Dec 23 16:41:54 android create project -g -v 0.6.3 Dec 23 16:42:09 then in intellij just import/open the project Dec 23 16:43:24 i tried this one: android:background="@android:drawable/list_selector_background" but it doesn't look native to me Dec 23 16:43:40 which is the fastest? new runnable or asynctask? Dec 23 16:43:42 it's yellowish intead of glowing blue Dec 23 16:44:42 storkme, no. Dec 23 16:46:01 storkme, I've always downloaded the libraries. But for some reason when I add the EnhancedListView library (https://github.com/timroes/EnhancedListView/wiki) and add it to my module, it doesn't recognise the import. Dec 23 16:46:33 out of interest is there any reason you aren't using android studio Dec 23 16:46:59 storkme, because it's full of bugs and I'm sick of it. I can't get a decent module going without experiencing bugs; Dec 23 16:47:14 fair enough Dec 23 16:49:16 storkme, it's imported well. I even tried importing the demo application. http://i.imgur.com/FE7G9vC.png Dec 23 16:55:45 hello merry xmass! :)) Dec 23 16:56:56 It's not Christmas yet Dec 23 17:06:26 is there a callback for clicking outside of a dialog activity when dismissing? Dec 23 17:07:20 pfn, what do you mean? When a Dialog pops up and you click outside it? Dec 23 17:08:20 yes Dec 23 17:09:47 dialog.setCanceledOnTouchOutside(true); Dec 23 17:09:48 Maybe? Dec 23 17:10:24 it's not a dialog, it's an activity Dec 23 17:11:08 pfn, don't know much about it, but does it allow touch events? Dec 23 17:12:13 If so, if(event.getAction() == MotionEvent.ACTION_OUTSIDE){ finish; return true; } on the onTouchEvent method Dec 23 17:12:24 hey hey android community do you know any good resources (www, books, etc.) on using TLS/SSL in android apps? Dec 23 17:14:03 it already dismisses itself, meh, I guess I can do that to capture the outside touch Dec 23 17:15:28 thanks Dec 23 18:05:41 Hello, I came up with a few questions while reading about lifecycle: If android destroys an activity instance, will it always be while the activity is stopped? Will it always call onSaveInstanceState? Even during "extreme cases" when the app _process_ is killed? Dec 23 18:07:05 Ahh I love Django! X) Dec 23 18:07:09 Android only kills activities when the process is killed.. And yes, onSaveInstanceState is called Dec 23 18:09:18 So just to clarify, there's no way an activity will be killed and not the entire process? Dec 23 18:09:45 Yep Dec 23 18:09:55 Ok, cool, thanks SimonVT Dec 23 18:17:22 can someone paste the gist Mavrik typed earlier, I just changed my PC and kinda need that gist Dec 23 18:19:14 https://gist.github.com/izacus/8096927 Dec 23 18:20:13 <|Agent> Hey, anybody got a link to some Glass templates for UI prototypes? Dec 23 18:20:34 hey hey android community do you know any good resources (www, books, etc.) on using TLS/SSL in android apps? Dec 23 18:20:41 hey there... my first time here, starting android dev right now, coming from iOS Dec 23 18:23:21 thanks storkme Dec 23 18:37:34 <|Agent> Hm. All the templates are PSD. I don't have Photoshop. :( Dec 23 18:38:35 use gimp? Dec 23 18:43:28 hey guys, can a VideoView be a ViewGroup? I want my custom MediaController bar to be inside of VideoView (to match it's width), at the moment it is matching screen width... Dec 23 18:48:35 really don't want another layout Dec 23 18:49:59 there's no reason why it couldn't Dec 23 18:50:15 but since it uses SurfaceView it has to be either on top of everything, or below everything Dec 23 18:54:36 Mavrik: I assume it's on top, since I can see it... How do I set the VideoView as root ViewGroup?.. I tried casting it to (ViewGroup), no errors or messages, but the Media Controller is still stretched to match screen size, VideoView is not touching screen edges Dec 23 18:54:49 uh Dec 23 18:54:58 I misread the question. Dec 23 18:55:04 No, VideoView is not a ViewGroup Dec 23 18:55:09 and it cannot be, it extends SurfaceView. Dec 23 18:55:17 oh Dec 23 18:55:53 Can anyone help me with a couple of ImageViews showing when not in a ListView but not showing if put in one? Dec 23 19:01:59 autrilla: how do you put image into ListView? Dec 23 19:02:27 autrilla, learn to use hiearchy viewer Dec 23 19:02:43 osmij_, well, through a layout. There's a ImageView inside a square layout Dec 23 19:03:12 so, libcrypto should be made using all .o files in crypto folder of openssl ? ? Dec 23 19:03:24 and ssl using .o files in ssl folder Dec 23 19:05:16 Mavrik, unable to get view server version Dec 23 19:05:19 and more errors Dec 23 19:05:23 Nexus 4, 4.4.2 Dec 23 19:05:38 autrilla, yes, use emulator Dec 23 19:05:50 pffffft Dec 23 19:05:51 viewserver isn't enabled on production builds. Dec 23 19:05:54 well Dec 23 19:05:56 Use the slowness Dec 23 19:06:07 you can just come here and white for every little layout issue instead I guess Dec 23 19:06:30 Your solution is better Dec 23 19:06:43 But still the emulator is slow Dec 23 19:07:31 hey hey android community do you know any good resources (www, books, etc.) on using TLS/SSL in android apps? Dec 23 19:07:59 autrilla: if the image is inside layout, there shouldn't be any problems.. Do you see the image in layout preview in IDE? Dec 23 19:08:23 osmij_, on the actual layout yes, on the layout with the listview, no, I just see item1, item2 Dec 23 19:08:50 autrilla, x86 emulator with acceleration isn't. Dec 23 19:09:00 TheScientist, uh... you just use it? Dec 23 19:09:10 TheScientist, I don't understand what poses a problem to you Dec 23 19:09:21 establish a https connection and that's that. Dec 23 19:09:44 what about custom TrustMangers etc. Dec 23 19:09:59 oh, you must use a custom layout for list item. Or... there should be a built-in list view with image... I'd prefer a custom layout for list item at any case Dec 23 19:10:06 what about it? it's the same as in Java Dec 23 19:11:06 Has anyone implemented a MediaController so that it's width matches actual video width that it controlls? Dec 23 19:11:56 could you recommend some book that covers that topic? Dec 23 19:15:58 Mavrik: could you give some hints on how to make emulator usable? At the moment I can't make emulator with RAM more than 512, because I receive memory allocation error message (3 Gigs of RAM). I didn't use it since I managed to start it the first time... Dec 23 19:16:24 https://www.virag.si/2012/10/speeding-up-android-emulator/ ;) Dec 23 19:16:33 basically, use x86 image and enable GPU acceleration Dec 23 19:16:33 Thanks!!! Dec 23 19:16:36 and it'll run just fine Dec 23 19:16:59 oh, and install HAXM :) Dec 23 19:17:54 I have AMD CPU, will it work? ) Dec 23 19:18:19 why wouldn't it? Dec 23 19:18:55 hmm Dec 23 19:19:04 HAXM won't work, right, since you don't have VT-x Dec 23 19:20:35 yep :-( It says "this PC doesn't suppotr.. ... .." Dec 23 19:21:03 oh, but at home I have an Intel CPU laptop with IDE :З Dec 23 19:21:23 I wish I had a second big screen Dec 23 19:25:37 hi? Dec 23 19:31:47 Weird. I get PANIC: Could not open: nexus and the AVD location is fine Dec 23 19:31:55 leoroodriguez_: hello world Dec 23 19:32:29 It is looking at D:\.android\avd, and the actual files are there Dec 23 19:33:46 So no hierarchy viewer for me! Dec 23 19:34:41 hey guys, I got a small question, what view do IM apps use for the little message bubbles in the UI? Dec 23 19:35:03 probably a ListView, narekb Dec 23 19:35:29 hmmm, a ListView can be THAT much customized? Dec 23 19:35:38 yup Dec 23 19:35:38 https://lh4.ggpht.com/rXLvUaK9wwZGbymNaC9CKtehT7Wb11vgarshq9Jy7X6eLwlSf5Xla-2ykWq2rsJbVE4=h900-rw look at the Kik example Dec 23 19:35:39 narekb, yes Dec 23 19:35:43 oh Dec 23 19:35:43 narekb, pretty much any view with a 9-patch background :) Dec 23 19:35:51 ahhhh, so that's what they do Dec 23 19:35:58 it's listview in most yeah Dec 23 19:36:03 well, thanks everyone Dec 23 19:36:08 with custom row views :) Dec 23 19:36:30 Any other reason for PANIC: Could not open apart from wrong paths? Dec 23 19:38:59 Mavrik, impossible to use the hierarchy viewer without an emulator, right? Dec 23 19:39:25 autrilla, nope, you can either have a patched ROM on your device (most 3rd party ROMs are patched) Dec 23 19:39:43 or you google it and find this: http://stackoverflow.com/questions/6011008/can-hierarchyviewer-be-used-with-a-real-device-other-than-the-nexus Dec 23 19:40:09 Mavrik, is Xposed Framework an option? I have stock Dec 23 19:40:22 no idea Dec 23 19:41:05 `TypedValue applyDimension (TypedValue.COMPLEX_UNIT_DIP, dp, currentActivity.getResources.getDisplayMetrics)` Dec 23 19:41:19 Is there a way to do this without having any currentActivity? Dec 23 19:41:52 Something like... ThisApplication.getDisplayMetrics? Dec 23 19:41:55 Dunno. Dec 23 19:43:41 michalrus, you need a Context Dec 23 19:44:10 Mavrik, so no way? I've got not access to some global/system context I could use for this? Dec 23 19:44:10 because Context describes the device settings like display metrics :) Dec 23 19:44:34 Only my own Activity will do? Dec 23 19:45:59 any Context, not Activity. Dec 23 19:46:08 you have a Context in pretty much anything you do Dec 23 19:46:13 autrilla: I have a rooted device and WiFi ADB app installed on it - if I connect via WiFi ADB then I'm able to browse system folders (if I got your question right) Dec 23 19:46:33 osmij_, nope. Hierarchy viewer :) Dec 23 19:46:43 you mean layouts? Dec 23 19:46:58 Mavrik, Context.getApplicationContext! <3 Dec 23 19:47:03 autrilla: the thing where you can see layouts tree? Dec 23 19:47:07 michalrus, mhm :) Dec 23 19:47:12 Great. <3 <3 Dec 23 19:47:13 Thanks. Dec 23 19:47:22 osmij_, yes Dec 23 19:47:45 autrilla: then rooted device + WiFi ADB app works too Dec 23 19:49:45 that was the time when I understood why I should ALWAYS give @+id/ to EVERYTHING :-) even if it's "llVideo1", "llVideo2"... Dec 23 19:57:43 yo Mavrik I just build openssl Dec 23 19:58:06 would it be good to have shared library or static for building ffmpeg Dec 23 19:59:17 Ehum. I'm trying to use android.provider.Telephony, which was added in Api 19. If I set minApi to 19, compile and then change it back to 11 I can launch the app in my Samsung Galaxy SII (4.1.2). And it works. How come? Dec 23 19:59:35 thinking about going for shared build Dec 23 20:06:43 osmij_: the hierarchy viewer doesn't work :( Dec 23 20:11:25 Mavrik, alright, got it working Dec 23 20:11:29 The hierarchy viewer Dec 23 20:11:39 What should I do now? I see my imageviews Dec 23 20:19:08 what is wrong with this xml line ? Dec 23 20:19:27 the xml parser is entirely ignoring and not even parsing the twerk attribute Dec 23 20:19:55 i debugged the xml object and its not even parsed into memory Dec 23 20:20:18 i am using XmlResourceParser Dec 23 20:39:20 where abouts in the view lifecycle are the children added? Dec 23 20:40:23 onLayout? Dec 23 20:47:39 pretty cool http://www.gizmag.com/tellspec-food-scanner/30221/ Dec 23 21:07:47 onFinishInflate? Dec 23 21:09:08 nice one, thanks. Dec 23 21:52:40 Reading over the mirror api docs there is a note about using the reply or reply_all built in menu options: https://developers.google.com/glass/develop/mirror/menu-items#built-in-menu-items Dec 23 21:53:48 I would like to require the user to speak a limited set of options "Yes" or "No" does anyone know how I would go about doing that through the glass api? Dec 23 22:27:18 hey all X) Dec 23 22:27:55 doing a json_encode in php and some un-null values are coming out as nul why would tht be? Dec 23 22:28:14 they are long strings, is there a limit to a var length?? Dec 23 22:34:38 hi everyone Dec 23 22:38:35 Does anyone know how to save SSH information in IntelliJ? When I go to Tools -> Start SSH session... I always need to give in the same information. Dec 23 22:39:00 And is it possible to autoconnect to it on startup? Dec 23 22:40:51 I discover the framework Mokito and i have a noob question about this . i have a basic function for exemple :public void startSessionTimer () { myMethod(); } Dec 23 22:41:13 in my test case this public void testStartSessionTimer () { Myclass mockBunchOfKeyService=mock(Myclass.class); Myclass.startSessionTimer(); verify(Myclass).startSessionTimer(); verify(Myclass).myMethod(); } Dec 23 22:42:05 the verify of startsession is ok but i have this message " wanted but not invoked" for verify(Myclass).myMethod(); Dec 23 22:43:27 I not understand why the "verify" function blocks to a function must perform Dec 23 22:46:49 storkme: what do you mean? its a custom xml file being parsed by xmlresourceparser Dec 23 22:46:49 Hi to all Dec 23 22:47:27 draiis, why are you calling startSessionTimer on a class not on an instance of the class? Dec 23 22:47:39 mockBunchOfKeyService.startSessionTimer(); Dec 23 22:48:38 In my app I need to connect to an EAP protected wireless network but, since it's a shared network in a school and I don't want the students to have complete access to it, I want to prevent Android to remember the username and password that I used to connect to the network. There's a way to do that maybe giving an option to the wificonfiguration object? Dec 23 23:05:02 how can i "disable" or "hide" and SDK API Level? i have installed target 17 and 18, but i want "android list target" to return just 17, any tip ? Dec 23 23:11:08 if I'm using a fragment with a viewpager, what lifecycle method should I use to set the adapter? Dec 23 23:29:47 Okay am I missing something? Last time I installed the Android SDK, I downloaded the tarball.. extracted and ran platform-tools Dec 23 23:29:52 But I can not find it Dec 23 23:29:57 I mean SDK-manager Dec 23 23:35:09 di dyou add it to your path Dec 23 23:35:33 no there is a script you run called android I guess Dec 23 23:36:25 wouldnt need to do this if Android Studio didnt suck imho opinion Dec 23 23:36:51 But ill just install the sdk, IntelliJ, and configure it for Brandle instead of Maven Dec 23 23:42:57 Ugh even IntelliJ is using a Fragment in the default template now WTF Dec 23 23:45:04 Yeye some DebugCompile error right out of the box Dec 23 23:50:41 So it says I need Gradle 1.9? Dec 23 23:50:48 How do I update my Gradle? Dec 23 23:52:59 gradle -h Dec 23 23:57:15 I am usinag a wrapper Dec 24 00:05:14 sean@klerp:~/Desktop/idea-IC-133.331/bin$ gradle -h Dec 24 00:05:14 /usr/lib/jvm/default-java/bin/java: symbol lookup error: /usr/lib/jni/libnative-platform-curses.so: undefined symbol: tgetent Dec 24 00:05:34 which gradle Dec 24 00:05:38 oops Dec 24 00:06:29 oye1 Dec 24 00:09:20 anyone here a Facebook graph-api genius? Dec 24 00:09:22 lol Dec 24 00:16:57 MrDinothy: I know graph API a bit Dec 24 00:17:34 I've implemented the permissions for user_status & friends_status via my fb permissions inside my app Dec 24 00:17:51 However, when I play with the graph api on developers.facebook.com, the 'statuses' greys out Dec 24 00:17:58 It won't let me view them. Dec 24 00:26:19 hehe armageddon ! http://i.imgur.com/kpcxzmN.gif Dec 24 00:36:11 TheSarge modify gradle-wrapper.settings Dec 24 01:14:15 Hi, I'm trying to create a swiping Master-Detail fragment with "next" buttons that change the fragment for you. I'm having trouble getting line 341 to work properly. Any thoughts? http://pastebin.com/vmqejSjL Dec 24 01:20:43 hi all :) does anyone know anything about the speech recognition feature on the Samsung Galaxy Note 3? i'm interested in using it for an application, or similar technology. Dec 24 01:22:17 greetings guys, when you create a custom view (based on TextView) is there a way that I can use the existoing attribution and simply append to the text provided Dec 24 01:31:04 xximjasonxx, attribution? Dec 24 01:31:35 xximjasonxx, i would imagine that after you invoke the super constructor, you can then append your text Dec 24 01:59:17 Hi, I'm trying to create a swiping Master-Detail fragment with "next" buttons that change the fragment for you. I'm having trouble getting line 341 to work properly. Any thoughts? http://pastebin.com/vmqejSjL Dec 24 02:00:49 You're not committing your transaction Dec 24 02:16:00 SimonVT: the error I'm getting is that "Detail2Frag cannot be resolved to a variable" Dec 24 02:16:13 SimonVT: this is an eclipse error Dec 24 02:16:37 oh wait a minute I just added a () and now it works :-P Dec 24 02:16:48 programming + pot = stupid mistakes Dec 24 02:20:47 <3 Dec 24 02:24:34 SimonVT: I added an ft.commit() and now it gives me an IllegalArgumentException Dec 24 02:25:02 jalcine: you know what i'm talking about ;-) Dec 24 02:45:07 se_busca_ayuda: sí sí! **** ENDING LOGGING AT Tue Dec 24 03:00:00 2013