**** BEGIN LOGGING AT Thu Aug 22 02:59:58 2013 Aug 22 03:00:23 one secccoonndd Aug 22 03:00:35 in the xml file its self its only 3 images but being called fromcode arree Aug 22 03:00:54 can you try commenting them out one at a time Aug 22 03:01:14 and when it stops crashing with an OOM, then that'll be the culprit Aug 22 03:02:17 Well there's no guarantee of that, it could just be the one that broke the camel's back Aug 22 03:02:21 The others could be just as bad Aug 22 03:02:32 well at momment its not crashing i think its they are both crap Aug 22 03:02:46 it does seem though if i run one first the other will break Aug 22 03:02:58 a 24MB allocation is a pretty big straw Aug 22 03:03:33 If you have a 20Mb image and a 5Mb image and only 10Mb of free RAM, allocation in only one order will work Aug 22 03:03:42 The error will either come second or first Aug 22 03:03:49 A good hint they are both unsuitable Aug 22 03:04:27 I mean to say it can be misleading Aug 22 03:04:35 but if the 20MB is commented out, then it'll work and you know the 20MB is the culprit Aug 22 03:04:35 Be wise to this Aug 22 03:04:45 No not necesarily Aug 22 03:04:56 If all the others are just 1Mb shy of the RAM limit, that's still not a good thing Aug 22 03:05:19 this grow heap thing gets as high as 58mbs Aug 22 03:05:30 The grow heap thing lol Aug 22 03:05:35 ;( Aug 22 03:05:56 Sometimes I stand pensively at the window pondering whether to jump out head first Aug 22 03:06:04 This is what happens to programmers who don't learn C first ¬_¬ Aug 22 03:06:38 I know what grow heap is ;( its pretty obvious Aug 22 03:07:19 Experience will show that most the problems in code are actually pretty obvious ... when we see them Aug 22 03:11:29 i know its probs simple i think its some kind of cling on from the code i showed you Aug 22 03:12:17 if i run specific intent after it ..it crashes... but not if i run this intent first then the other Aug 22 03:12:45 anybody know where i can find the overflow 3 vertical dots as images to be used as a drawable? Aug 22 03:14:53 sharpy-penguin: You can't program by clutching at straws, put your intents whichever way round they are supposed to go and then fix the problems. It's clearly a memory allocation issue and you should do as I suggest and use Log.d to start dumping out the freeMemory() at various points in your program to see when it suddenly decreases, then you have your culprit Aug 22 03:15:30 nvm, found it Aug 22 03:15:54 I think you will find it's as alex_PP sugested, in your setContentView call on the activity where the crash occurs Aug 22 03:16:16 An elipse? Aug 22 03:16:35 Ellipsis* Aug 22 03:25:06 desmin88, got the new acionbar compat lib downloaded? Aug 22 03:25:08 it's in there Aug 22 03:25:19 mhm, juyst found it Aug 22 03:25:37 android-sdk-linux/extras/android/support/v7/appcompat/res/drawable-xhdpi/abc_ic_menu_moreoverflow* Aug 22 03:26:45 thanks Aug 22 03:30:31 i wonder why there isnt an xxhdpi version Aug 22 03:30:53 should I decode bitmaps in the main thread? Aug 22 03:31:02 rarely Aug 22 03:31:35 is there any easy way of mixing Serializable and Parceable objects? Aug 22 03:31:56 in what sense? Aug 22 03:32:00 (I mean, I have an object that I want to be Serializable, and one of it's members it's a Parcelable object) Aug 22 03:32:03 GEE! Doesn't that look, fantastic? http://gyazo.com/f328c2592899a41fefb69d77447a4ab8 Aug 22 03:32:41 if there was an xxhdpi one, it'd look better :P Aug 22 03:33:01 lol Aug 22 03:33:02 gavilan2, that should work Aug 22 03:33:32 so uhh Aug 22 03:33:42 though the other way around probabally wont Aug 22 03:33:52 im sorta new when it comes to android crap, how would i fix that? Aug 22 03:34:17 what are you trying to achieve? Aug 22 03:35:12 also, gavilan2, what're you doing with serializable? Aug 22 03:35:47 thin strip with the text Aug 22 03:35:50 then the overflow at the end Aug 22 03:36:27 you want the height & width of the imageviwe to be wrap_content Aug 22 03:36:49 and the width of the text to be 0dp and the weight of the text to be 1 Aug 22 03:36:58 assuming they're in a linearlayout Aug 22 03:38:09 sweet Aug 22 03:38:11 thanks so much Aug 22 03:38:59 alex_PP: IT doesn't... Serializable doesn't know how to serialize a parceable object.... Aug 22 03:39:08 final product! http://gyazo.com/0c27ae07e7a905deb55d6133ebfb5900 Aug 22 03:39:43 can't your parcelable also implement serialaisable? Aug 22 03:39:44 still trying to work out how to dump the free memory ;( Aug 22 03:39:45 alex_PP: I have a custom class I created, that takes a Notification inside... Notification is Parceable, but Serializable doesn't know what to do with it.... Aug 22 03:42:49 gavilan2, what are you serialising a notification for? Aug 22 03:43:15 alex_PP: I'm putting it in an alarm Aug 22 03:43:29 (indirectly( Aug 22 03:43:30 ) Aug 22 03:43:32 sharpy-penguin, buy dumping the free memory lovethang_ means writing the amount of it to the console so you can monitor it Aug 22 03:43:40 sharpy-penguin: Log.d ("Free memory", "Is " + Runtime.getRuntime().freeMemory ()); Aug 22 03:44:11 I put an alarm, that when executed, does some stuff, and then shows the notification Aug 22 03:44:16 tah ;D Aug 22 03:44:18 the show some stuff, requires a Serializable parameter Aug 22 03:44:37 I could put it in 2 extras of the intent, but I'd prefer just to send a single object Aug 22 03:44:57 "show some stuff" ?? Aug 22 03:44:58 So I need to serialize a Serializable thing, with a Parcelable thing inside Aug 22 03:45:11 alex_PP: Actually I download some stuff from an URL Aug 22 03:45:17 I recently read about this parcelable thing, it interests me Aug 22 03:45:34 alex_PP: the issue is... Is there any easy way to Serialize something Parceable? Aug 22 03:45:41 or something with a Parcelable Aug 22 03:46:32 another different question... I pass some heavy models between my activities... Do you think it's a bad idea to put them in a map and pass the int key in the intent? Aug 22 03:46:37 lovethang_, it's just an interface for declaring that somthing can be packaged as primitives Aug 22 03:46:41 I think if you ever need to serialize a parcelable then You're Doing It Wrongâ„¢ Aug 22 03:47:03 alex_PP: Yes but it looks to have many interesting uses for my app <3 Aug 22 03:47:20 i think lovethang_ hit the nail on the head there Aug 22 03:47:27 the only issue I can see, it that if my activity goes out of memory, the map will not exist when I came back... So if I get stopped, I'll put the object I got from the map in the saveInstance Bundle... Aug 22 03:47:42 Do you see any issue with passing big models between activities like that? Aug 22 03:47:48 i have sold 2 copies of my $1.99 app, so I think you could say things are getting pretty serious Aug 22 03:48:03 poutine: You should take Bitcoin Aug 22 03:48:04 poutine: Did your mom and dad bought it? Aug 22 03:48:36 8 more and you've broken even Aug 22 03:48:46 lolol Aug 22 03:48:47 it's been on google and amazon for a month, sold only on amazon Aug 22 03:48:47 less commision, damn Aug 22 03:48:58 also have 100 downloads on an another app from amazon, only 15 on google Aug 22 03:49:51 the Log.d ("Free memory", "Is " + Runtime.getRuntime().freeMemory ()); didnt work ;( nothing showed in the log Aug 22 03:50:12 Check the filter? Aug 22 03:50:27 gavilan2, http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html Aug 22 03:50:37 you can implement read and writeObject Aug 22 03:50:45 Is the Log.d even being called? I would put several of them throughout onCreate and before/in/after your .add's Aug 22 03:50:49 but i still agree that this is weird Aug 22 03:51:46 * alex_PP had to look up Serializable because it's not something that he has ever used outside of university Aug 22 03:52:21 its on verbose Aug 22 03:52:44 sharpy-penguin: I just tried that line in an activity onCreate of my own and it worked fine? Aug 22 03:53:08 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d ("Free memory", "Is " + Runtime.getRuntime().freeMemory ()); Aug 22 03:53:12 Android API 18 , intel atom image is now available on the SDK manager Aug 22 03:53:20 you can download it Aug 22 03:53:38 alex_PP: I know... That's why I was asking for easy, or effortless xD Aug 22 03:54:07 Programmers who want easy and effortless just have no love of the sport Aug 22 03:54:44 lovethang_: I only became a programmer because I'm extremelly lazy... Aug 22 04:04:27 Anyone know where the function to set default network is? Aug 22 04:04:51 I have ported some stuff, and everything is perfect, except it keeps defaulting to GSM on every boot. I think I may be overlooking something in the framework, but I'm not 100% sure. Aug 22 04:08:30 any reason as to why the Log.d("Free memory", "Is " + Runtime.getRuntime().freeMemory()); wouldnt be showing up in one class Aug 22 04:08:33 but all the others fine? Aug 22 04:11:38 it's not being run? Aug 22 04:11:46 crashing before it gets there Aug 22 04:15:42 http://pastebin.com/vfhiy40W Aug 22 04:15:48 what do you guys think ? Aug 22 04:20:58 sharpy-penguin: Your memory exhaustion is definitely coming from the inflation of a view Aug 22 04:21:23 Put a Log.d before and after all your setContentView()'s Aug 22 04:29:22 IFree have found one page where it cuts from 10900000 to 4567992 Aug 22 04:30:05 and it seems to crash cause another page does not tidy up after its self Aug 22 04:30:15 even though it doesnt take much memory Aug 22 04:30:23 its still enough to fuck with things Aug 22 04:34:50 lovethang_ if you are interested http://pastebin.com/swa3dpbk .... DEATH is where i think it dies Aug 22 04:35:26 You aren't correct I'm afraid Aug 22 04:35:45 Ive already told you where the problem actually is Aug 22 04:36:04 The exception being generated is line 172 Aug 22 04:36:15 The strack trace beneath there is what was happening when it died Aug 22 04:36:27 The last things it was doing were inflating a view and decoding a Bitmap Aug 22 04:37:16 There is something wrong with your view it would seem Aug 22 04:37:35 There's not much more I can help you with as we're going round in circles Aug 22 04:39:57 but just after death is where the view is being inflated Aug 22 04:40:18 mInflater = getLayoutInflater(); Aug 22 04:40:43 You reference death twice Aug 22 04:40:51 Even the most hardened of Java programs can die only once Aug 22 04:41:08 I don't there there's automatic resurrection instantiation Aug 22 04:41:10 At least not yet Aug 22 04:41:24 wtf Aug 22 04:41:24 yes because it only dies if i click on other pages first Aug 22 04:41:30 no calendarview in the sdk until 11 Aug 22 04:41:30 it lives if its the first page clicks on Aug 22 04:41:32 no bueno Aug 22 04:41:34 clicked on Aug 22 04:42:09 easy now Aug 22 04:42:12 So go and fix the view Aug 22 04:42:20 there's some heated programming debate going on in here Aug 22 04:42:42 lol Aug 22 04:44:58 maybe in between one of yous can tell me how to force this ROM to stick to the default network instead of falling back to GSM :P Aug 22 04:47:06 Take a hammer to the GPS antenna Aug 22 05:07:27 that'd be nice lovethang Aug 22 05:07:34 but it'd hurt the resale value :( Aug 22 05:07:39 Not that Verizon phones have any Aug 22 05:10:27 ._. Aug 22 05:11:02 I'm confused as to how hammering the GPS antenna fixes GSM Aug 22 05:15:47 because hammers fix everything Aug 22 05:15:52 doesn't matter what you're hitting Aug 22 05:16:15 * g00s starts hitting android with a hammer Aug 22 05:18:44 you wouldn't be hitting it if you had a non crappy phone Aug 22 05:40:21 I guess you're right Aug 22 05:40:27 the Galaxy S4 is a crappy phone, pfn Aug 22 05:40:28 you called it Aug 22 05:40:53 if only it were an iphone 5 Aug 22 05:43:35 * g00s is ramping up for ios7 Aug 22 05:43:54 those poor guys that have to support ios6 and 7 Aug 22 05:43:58 hehe Aug 22 05:45:23 rhound, hm? Aug 22 05:46:17 i was reading an interesting story about the htc ceo today, seems like a fanatic to detail. i like that. but he had leadership problems Aug 22 05:50:19 sarcasm sonic Aug 22 05:50:41 gonna bail though, not a lot going on, not the kind of shit that I need anyways Aug 22 05:50:44 well, its kernel is pretty dang buggy :P Aug 22 05:52:11 hm, wonder if there is any difference between the api 18 x86 image i d/l from intel, and the one popping up in the sdk downloader now Aug 22 05:55:13 g00s : the arm update I got a couple of days ago contains Google APIs and allows you to run Google Play Services. Don't know if the intel one allows you to do that Aug 22 05:55:34 ddewaele thanks Aug 22 05:55:45 i dont think the intel does that either Aug 22 05:57:20 ddewaele did you get 'arm eabi …' or 'google apis' ? Aug 22 05:57:56 i figure google apis Aug 22 06:04:14 best tip for android devs: delete resources when you stop using them Aug 22 06:04:33 i've shaved off like 220 KB of an app im working on just by deleting files and entries in files (like strings.xml) Aug 22 06:09:11 canadiancow still using your own tool for that? or lint ? Aug 22 06:18:23 g00s, my own Aug 22 06:18:35 awesome :) Aug 22 06:18:37 mine works great Aug 22 06:18:42 even after all these years Aug 22 06:18:52 and even on a massive project that im surprised i can even figure out how to build Aug 22 06:18:54 :P Aug 22 06:18:56 now you have to make a gradle plugin to run it :D Aug 22 06:19:02 i havent touched gradle yet Aug 22 06:19:22 canadiancow are any google apps / teams using gradle yet ? Aug 22 06:19:28 i dont know Aug 22 06:55:02 What are the best tools, libraries, and frameworks for android-dev? Aug 22 06:55:23 hm Aug 22 06:55:55 all the tools atm are pretty much broken Aug 22 06:56:11 libraries : support library, otto, RxJava Aug 22 07:10:31 http://summonthensa.com/ xD Aug 22 07:13:39 is there a known way (beside going to systems/fonts and loading the ttf files on my own) for getting a list of supported fonts? Aug 22 07:14:01 i do find a lot of kinda old (1year +) articles, that say that its not possible but maybe things have changed Aug 22 07:17:31 hey guys - anyone who knows how i can, using Titanium, fire an event containing a Matrix object ? Aug 22 07:19:06 g00s, just removed 450 lines from strings.xml ~_~ Aug 22 07:19:55 canadiancow gmail O.o ? Aug 22 07:40:33 Hi all, is here someone who uses bitbucket for his/her projects? Aug 22 08:18:45 whenever i do a pinch-zoom, the zoom actually doesnt zoom to the mid-point between the two pointers. but zooms towards the center of the imageview. Anyone know how to fix that ? Aug 22 08:24:51 @FrancescoV: yep Aug 22 08:27:21 FrancescoV: for a couple of private ones Aug 22 08:27:39 Since github don't do free private. Aug 22 08:28:05 Achillion, my repository is 100 mb +, how can i reduce this? Can i clear my history or something else? Aug 22 08:28:27 That's a very interesting question. Aug 22 08:28:41 have you tried http://stackoverflow.com/questions/2116778/reduce-git-repository-size ? Aug 22 08:32:08 Achillion, i'll try now. If I clone my repository on another device, is the size of the repository not that big anymore or is this just working locally? Aug 22 08:32:32 Hi Aug 22 08:32:39 I'm not sure what you mean by that question. Aug 22 08:33:30 If I create a file with File's createNewFile method Aug 22 08:33:51 and Then execute my app in Phone, Where will the file be created? Aug 22 08:33:57 I want to jump in a ListView to a position "order_id" How can I do that? Aug 22 08:33:58 i.e. without giving any path. Aug 22 08:34:15 Omnipotent: try it and let me know :) Aug 22 08:34:29 Achillion, Seems like, I can't do that, Considering, it says, "Permission Denied" Aug 22 08:35:07 Eh well, I need to specify the path, I suppose /data/data/my_pkg_name/filename would be sufficient. Aug 22 08:35:09 You could Log.d and print the file object's full path, I guess. Aug 22 08:35:44 Achillion, Usually in Linux or Windows, If you don't specify the path, The file is created in the App's root directory. Aug 22 08:35:58 actually, it's created in the working dir Aug 22 08:36:06 Which is usually the dir you called the application from. Aug 22 08:36:07 Yeah, Thats the app's root directory. Aug 22 08:36:18 Not necessarily. Aug 22 08:37:01 Well, what I mean is, where the executable binary of app is! Aug 22 08:37:01 :) Aug 22 08:37:05 I am not too good with words! Aug 22 08:37:46 Achillion, Either way, The real problem here is, as I havn't really "installed" this app I am working and am just running it from IDE, I don't really know where my app is sitting :\ Aug 22 08:38:00 I can just see its "shortcut" in the menu and then I can manually run it from there. Aug 22 08:38:18 can you debug? Aug 22 08:38:25 AYE Aug 22 08:39:57 and are you doing something like "File foo = new File(); foo.createNewFile();"? Aug 22 08:40:54 Yeah, well with File's name in ctor Aug 22 08:40:56 yes. Aug 22 08:41:06 if(!foo.exists()); Aug 22 08:41:18 if(!foo.exists()){ foo.createNewFile();} Aug 22 08:41:42 so you can do "Log.d(foo.getAbsolutePath())" Aug 22 08:42:23 Ah Aug 22 08:42:39 whenever i do a pinch-zoom, the zoom actually doesnt zoom to the mid-point between the two pointers. but zooms towards the center of the imageview. Anyone know how to fix that ? Aug 22 08:52:46 Omnipotent, permission denied may also be because of not-added-permissions Aug 22 08:53:20 PatrickBic, Oh hey, thanks again for helping yesterday :) Aug 22 08:53:44 PatrickBic, Well, If you directly run an application from IDE, Where it sits? Aug 22 08:54:33 where it would be on a real device Aug 22 08:54:48 eclipse/emulator produces an apk file for you, installs it, and starts it :) Aug 22 08:54:58 Using IntelliJ Aug 22 08:55:00 but yeah Aug 22 08:55:02 same process. Aug 22 08:55:48 Aug 22 08:55:53 you have that line in your permissions? Aug 22 08:56:01 (AndroidManifest.xml) Aug 22 08:56:21 Nope. Aug 22 08:56:38 thats the permission to save ;-), wont work without it Aug 22 08:56:44 add it =) Aug 22 08:56:45 Gotcha. Aug 22 08:57:23 Well, most of SO questions told to use openfileoutput and it "magically" solves all the problems that one gets :D Aug 22 08:57:50 But I refused to blindly use it, I was just trying to figure out why I was having no permission with FileWriter Aug 22 08:57:56 Thanks a lot! Now I know Aug 22 08:59:03 btw. dont forget to add an sd-card to your emulator ;-) Aug 22 09:00:02 I am using Actual Device instead of an emulator Aug 22 09:00:08 Emulator is having terrible performance. Aug 22 09:00:08 oh :) great Aug 22 09:00:11 :P Aug 22 09:00:15 yep. it has :P Aug 22 09:00:21 can you use a release google mapi api key when you're debugging your app? Or do you need to use your debug key and set to release key before making a new apk? Aug 22 09:00:29 slightly better using the x86 image and this intel HXU (or how this stuff is called) Aug 22 09:00:32 but still aweful Aug 22 09:00:50 PatrickBic, One last question, if you were creating app and wanted to store some data in a file, At which path would you create it? Aug 22 09:01:00 /data//foo.txt ? Aug 22 09:01:07 Omnipotent: depends on the data. Aug 22 09:01:16 Achillion, Some simple text data. Aug 22 09:01:24 then yes, imho Aug 22 09:01:24 External storage is public. If you want to be able to read it outside the app, you'd go with /sdcard Aug 22 09:01:35 If it's private app data, then yes, /data/... Aug 22 09:01:41 Nah, no need to be able to use it outside Aug 22 09:01:43 ok Aug 22 09:01:45 thanks! Aug 22 09:01:45 i agree with Achillion :) Aug 22 09:02:02 :) Aug 22 09:02:28 FrancescoV, " use your debug key and set to release key before making a new apk" is right I'm afraid :/ Aug 22 09:03:05 Achillion, Btw, about the Log.d thing you mentioned, Where does it log to? Aug 22 09:03:08 I checked docs, http://developer.android.com/reference/android/util/Log.html Aug 22 09:03:14 I didn't really understood :( Aug 22 09:03:44 hi, is there a macro for the android version? Aug 22 09:03:49 in C/C++? Aug 22 09:04:44 PatrickBic, A little off topic, But, do you work for IBM? Aug 22 09:05:00 Omnipotent, connect your mobile/tablet to your pc and go to logcat-view in eclipse/intelliJ Aug 22 09:05:11 Omnipotent, yea, why? Aug 22 09:05:18 Omnipotent: the Log.d ... nvm Patrick covered it Aug 22 09:05:31 PatrickBic, Oh wow! nah, just checked your V-Host Aug 22 09:05:32 :P Aug 22 09:05:35 :P Aug 22 09:06:05 Omnipotent: It can get a bit messy in there, so be sure to use some filtering :) Aug 22 09:06:30 Ah yeah, It just shows every freaking thing that is going on in the device :DD Aug 22 09:06:41 yeah :) can be useful Aug 22 09:06:51 my tablet even shows update messages from the graphics driver there Aug 22 09:07:00 every single touch/move is printed Aug 22 09:07:22 Haha Aug 22 09:07:31 Omnipotent: You'll notice that Log.d (and Log.e etc) have two arguments. It's good practive to use an ID in the first argument that identifies your app, or the current classfile Aug 22 09:07:44 That way, you can easily filter for messages coming from a specific class. Aug 22 09:07:53 mmm Aug 22 09:08:29 Omnipotent: as described here http://developer.android.com/reference/android/util/Log.html Aug 22 09:09:19 Now I understood what it is said there in docs Aug 22 09:09:26 :) Aug 22 09:09:28 I wasn't aware where to check for the logs thats that : ) Aug 22 09:09:46 Anyway, thanks again to you both! Aug 22 09:11:50 Does eclipse automatically make entry for Write permission in manifest? Aug 22 09:12:06 as I don't see anything such in the docs or anywhere. Aug 22 09:12:41 People just say, "create file with openFileOuput" Aug 22 09:13:09 Omnipotent, it doesnt (from what i know) Aug 22 09:13:26 although you an use the eclipse editor to add it GUI-wise Aug 22 09:13:31 but not automatically. Aug 22 09:13:35 adb devices doesn't turn up my phone, it did recently Aug 22 09:14:04 Anyone got experience with http calls that never timeouts? This is against a captive portal using https Aug 22 09:14:06 PatrickBic, You can put "Permission" from GUI designer? or I misunderstood what you said "GUI-wise" there Aug 22 09:14:26 Omnipotent: http://developer.android.com/guide/topics/manifest/uses-permission-element.html and similar :) Aug 22 09:15:06 Omnipotent, there is a graphical editor to this manifest file. that way you can select your permission in a drop-down-box and press some "add" button instead of manually adding it to the file. Aug 22 09:15:16 awh Aug 22 09:18:08 Hi every one; how I can play a music on speaker?? Aug 22 09:20:30 Bang it. ;-) Aug 22 09:20:49 I'm unable to see a connected phone with adb devices, what can I check? Aug 22 09:21:01 dmesg makes it seem like it's a problem with the usb system...? Aug 22 09:21:55 does lsbusb show the device? Aug 22 09:22:00 lsusb* Aug 22 09:22:03 R0b0t1: What OS? I think there's a driver issue on Windows (you need the right one). On Linux, I usually can not plug it in to ANY port, but usually it works on some of them (I think it has to do with controllers and extenders, but have no idea really). Aug 22 09:22:15 Linux Aug 22 09:22:26 Have you tried all the ports? Aug 22 09:22:33 Ports? Aug 22 09:22:41 USB ports. Aug 22 09:22:41 Oh right. Yes. Aug 22 09:22:51 But if that's an issue there's something else messed up too Aug 22 09:23:08 All of my external ports are via an internal hub (laptop) Aug 22 09:23:40 Try plugging it into a port outside the hub first and get that working. Aug 22 09:23:49 R0b0t1: try lsusb and check that your phone is visiable to com Aug 22 09:23:49 (not using the HUB I mean) Aug 22 09:24:41 Nope not visible Aug 22 09:24:45 it was previously Aug 22 09:25:04 kjeldahl, there is no non-hub port unless I rip my laptop apart. If it is unable to go through a hub, it's poorly designed. Aug 22 09:25:22 R0b0t1: reboot the phone? *shrug* Aug 22 09:25:26 That sounds exactly like my issue, showing/not showing repeatedly going away. Aug 22 09:26:01 R0b0t1: enable usb debugging on phone, and try adb kill-server && adb start-server Aug 22 09:26:07 how I can play a music on speaker?? Aug 22 09:26:21 Oh well, I have no idea really about the USB internals, just an observation from my own two main boards I've been plugging it into. Never had a problem on laptops however... Aug 22 09:27:42 kjeldahl: either me, but with {kill,start}-server the problem gone Aug 22 09:27:42 BlackDal, you supply a file to a class, go find that class Aug 22 09:27:50 I tried the kill/start thing Aug 22 09:28:02 hey guys Aug 22 09:28:04 restarted phone nothing Aug 22 09:28:20 If it's not showing up in lsusb, a kill-start of the adb probably isn't going to help. Aug 22 09:28:22 getMeasuredHeight() returns 0 when visibility is gone after it renders Aug 22 09:28:27 R0b0t1: witch class? I want to play with MediaPlayer, but on speaker not headset Aug 22 09:29:29 Yes, but why would it previously show up an now no longer do so? Aug 22 09:29:39 R0b0t1: does the phone recognise that it's pluged in? For example, if you have usb debug enabled, does it pop up the notification saying that "USB debugging is enabled"? Aug 22 09:29:55 No Aug 22 09:30:04 Curious. :/ Aug 22 09:30:07 * Achillion strokes beard. Aug 22 09:30:14 can you try a different device? Aug 22 09:30:14 Which makes me think usb system issue but it worked previously, and nothing's changed Aug 22 09:30:22 Yes, nothing happens Aug 22 09:30:42 so its not device-dependend. Aug 22 09:30:49 Makes me think computer Aug 22 09:30:54 can you try connecting it to a powered usb hub? Aug 22 09:30:55 mmhm Aug 22 09:31:06 maybe the usb-ports dont supply enough voltage Aug 22 09:31:25 Maybe the usb system is (module) is screwed :) I really don't know Aug 22 09:32:13 i once had to make an udev rule and fake some ID's to let my tablet work on linux Aug 22 09:32:19 was some china-tablet :P Aug 22 09:32:43 No powered hub, but I know they supply proper power Aug 22 09:32:45 Yeah, that stuff happens: https://wiki.archlinux.org/index.php/Android#Adding_udev_Rules Aug 22 09:33:40 PatrickBic, The permission you pasted was for external storage right? Aug 22 09:33:48 R0b0t1, lsusb shows something? Aug 22 09:33:52 Omnipotent, it says so, yes Aug 22 09:34:08 (lsusb -v maybe. more verbose) Aug 22 09:34:32 PatrickBic, But I don't have any external storage, and I don't need to store file in external storage, so I am choosing /data/data/Mypackage path thingy Aug 22 09:34:42 But... The slight problem is, that directory is not accessible :\ Aug 22 09:34:51 search google, there might be another option for internal storage Aug 22 09:34:56 permission i meant Aug 22 09:34:59 Trying hard :D Aug 22 09:35:06 All SO articles going weird. Aug 22 09:35:11 hello? Aug 22 09:35:11 I think internal storage is allowed by default Aug 22 09:35:16 http://stackoverflow.com/questions/5017292/android-create-file-on-internal-storage Aug 22 09:35:17 Like this. Aug 22 09:35:22 Is it safe to pass a View object to AsyncTask, and later use it in its doInBackGround to update the view? Aug 22 09:35:26 Omnipotent: It's best to get the internal storage path automatically Aug 22 09:35:28 Omnipotent, http://developer.android.com/reference/android/Manifest.permission.html Aug 22 09:35:31 all permissions there Aug 22 09:35:34 https://github.com/tjerkw/Android-SlideExpandableListView/blob/master/library/src/com/tjerkw/slideexpandable/library/ExpandCollapseAnimation.java Aug 22 09:35:35 line 33 Aug 22 09:35:47 whenever i go into oncreate and when the view is gone Aug 22 09:35:51 bbs Aug 22 09:35:57 it always return 0 as measurable height Aug 22 09:36:06 I had a list of default vendorid ext Aug 22 09:36:07 etc* Aug 22 09:36:13 where can Iget a specific list? Aug 22 09:36:28 Achillion, Environment.getDataDirectory()+File.separator+"MyPkgName"+File.separator+"MyFileName.txt"; Aug 22 09:36:30 using that. Aug 22 09:36:56 Omnipotent: hang on Aug 22 09:37:12 The exception thrown is not about permission anymore, but its about file or dir does not exist :\ Aug 22 09:37:23 Shouldn't my packages directory already exist? Aug 22 09:37:46 Omnipotent: have you tried this? http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Aug 22 09:38:07 that code segment should be sufficient for writing to internal storage Aug 22 09:39:19 Omnipotent: sometimes it's /data/data/ or stuff like that. You can't assume the internal storage structure is fixed. The way described in the url should work regardless of exact path. Aug 22 09:41:26 Yeah, Everybody uses that, openFileOutput Aug 22 09:41:27 :P Aug 22 09:41:36 I wanted to try traditional FileWriter Aug 22 09:41:38 oh well Aug 22 09:42:03 But anyway, thanks for pointing at EXACT documentation of that. Aug 22 09:42:05 But then you would be constrained with the semi-hardcoding of the path, which is, to put it bluntly, "wrong" :) Aug 22 09:42:14 Aye. Aug 22 09:42:22 I learned from the burn! Aug 22 09:42:25 :) Aug 22 09:43:48 Search function at developer.android.com aint half bad, btw :) Aug 22 09:44:42 * R0b0t1 flips table Aug 22 09:44:43 Yeah, but I wanted to try out FileWriter as I mentioned Aug 22 09:44:44 :) Aug 22 09:44:45 alright, gonna try in the morning Aug 22 09:45:14 R0b0t1, Mornings are the worst times for programmers! Aug 22 09:45:20 R0b0t1: usb trolls will be dead by tomorrow and it will work Aug 22 09:45:30 \o/ Aug 22 09:45:38 .... mebe Aug 22 09:50:10 Omnipotent, coding at night is fun Aug 22 09:50:26 Agreed. Aug 22 09:50:33 especially if you're sleepy Aug 22 09:50:38 Damn Agreed. Aug 22 09:51:00 Yeah, it's 12:50 and I've been up since 17:00 yesterday Aug 22 09:51:02 usually when I'm sleepy and coding,I do things the best way possible,so I go to sleep early lol Aug 22 09:51:03 I think it's time Aug 22 09:51:17 Achillion, NO! Aug 22 09:51:19 NOT JUST YET! Aug 22 09:51:20 : ) Aug 22 09:51:29 I'm crashing. Aug 22 09:51:39 Have anyone grabbed emails using contenresolver yet? Im just getting Name, Email, ID of the email but not body, subject, ... Aug 22 09:51:45 Goodnight! Aug 22 09:51:51 Achillion, Night! Aug 22 09:52:00 and thanks! Aug 22 10:00:15 Is it possible anyway to grab the emails (body, subject, mime type, ...) with a contentresolver or do i have to use the SQlite-DB to extract those data (with root)? Aug 22 10:06:28 hello guys, i got this problem with my android app Aug 22 10:07:23 my app has a camera preview, but when you press the power off button, and then you power it on again, the app will resume, but the camera preview is frozen.. Aug 22 10:08:06 is there an event whenever power on is presssed ? Aug 22 10:08:09 TIA Aug 22 10:08:38 i am now reading some INTENT related to power Aug 22 10:09:11 also read some trick with CLOSING dialogs... Aug 22 10:09:19 any gurus that can enlighten me Aug 22 10:09:20 TIA Aug 22 10:12:01 I'm trying to use getResources().getIdentifier("products/myimage.jpg", "drawable", myPackage); but i'm not getting the identifier, i have a folder called products in my drawable with myimage.jpg inside, any thoughts? Aug 22 10:15:26 FLAG_BLUR_BEHIND is deprecated Aug 22 10:15:29 wtf... Aug 22 10:15:42 that was such a nice effect, i finally got a chance to use it Aug 22 10:20:00 broody, you get lifetime events (onPause, onResume, etc) in that case Aug 22 10:20:09 broody, there's also intents for it but you likely don't want those Aug 22 10:20:27 better to fix your lifetime handling Aug 22 10:23:36 I think android is going towards hardware efficiency. Blurring is a complicated process compared to simple alpha blending. Aug 22 10:28:59 when pinch-zooming my app enhances the center of the imageview instead of the middle of the two pointers. I cant seem to alternate that, any ideas ? Aug 22 10:32:14 can i connect to a service synchnrously? i want to call a service from a GCM broadcast receiver Aug 22 10:37:43 aep: no. The connect succeeds after the other events already queued are done. Aug 22 10:38:18 hm :/ Aug 22 10:38:22 i guess i have to use an Intent then Aug 22 10:38:29 lack of synchronous binding is a reason to not use services. Think of services largely as activities that run without UI. If this doesn't fit your use case, you probably shouldn't be using a service. Aug 22 10:38:33 i hope thats the right way to talk to my own service Aug 22 10:39:02 also services run in the same UI thread as the rest, so they aren't threads or parallel processing things or anything else like that. Aug 22 10:39:12 (except for intentservice, which is different) Aug 22 10:39:52 yes, sending an intent and receiving an intent is generally the thing to do Aug 22 10:40:07 i guess i should be using an intentservice for this, but then passing the state between ui and the service is ugly Aug 22 10:40:47 indeed, it is ugly. If you want a background processing task you should probably just fire up an asynctask and do some special magic dance to android to prevent it killing your application process Aug 22 10:40:58 yeah that's what i'm doing Aug 22 10:41:54 it's just using startForeground. seems to work so far. But its idle most of the time, so i guess i should go and implement it by storring my state in these bundles Aug 22 10:42:43 also note that asynctasks can't easily communicate back to the main activity either. You can't for instance hold a reference to an activity in an asynctask because android is at liberty of replacing that activity instance at any time. Aug 22 10:42:59 communication back should probably be done by broadcasting an intent Aug 22 10:43:13 so my service is actually just a big state engine Aug 22 10:43:38 i'm guessing the way i should really design this is just starting the service every time i need it, and restore its state from the bundle stuff? Aug 22 10:44:01 depends, but state saving and restoring is generally how the gods of android have decreed that people should do the work Aug 22 10:44:23 yeah, i already feel like working against that Aug 22 10:44:33 probably shouldnt Aug 22 10:47:16 people have generally discovered that the preferences facility is approximately the only reliable way to quickly and reasonably easily to pass state between components Aug 22 10:47:40 but even that breaks down if you employ true multiprocessing, moving a service to another process, say. Aug 22 10:47:55 I have attached MODE_APPEND to openFileOutput Aug 22 10:48:06 Will the file be created if it dosn't exists? Aug 22 10:48:09 another addictive property of the preferences facility is that it automatically persists the state Aug 22 10:48:22 Like the normal openFileOutput does. Aug 22 10:48:46 so what you put there you can find the next time, and any component will immediately see the new value because they all can share the same sharedpreferences instance. Aug 22 10:50:08 so generally for state keeping the sharedpreferences facility is almost ideal, though what you keep there is really state and not anything like an actual preference Aug 22 10:50:34 I suppose sqlite db would work just as well but it's much harder to use to quickly get or set a value Aug 22 10:52:46 Omnipotent: I would expect so. Try it and see. Aug 22 10:54:06 alankila: ouch. so passing an intent with my state update and then save in onStop is not going to be relyable? Aug 22 10:54:58 aep: I am not sure why you would say so. One possibility is that if you have removed a broadcast receiver too early, then it's not possible to receive an intent unless it's a sticky intent. Aug 22 10:55:19 a sticky intent will simply received the next time you add a broadcast receiver (but requires special app permission) Aug 22 10:56:12 R0b0t1, the list: http://developer.android.com/tools/device.html Aug 22 10:56:30 alankila: uh but if i send an intent directly to the service with intent.setComponent, it should get autostarted and deliveredd, right? Aug 22 10:56:40 As far as I understand, activity lifecycle events are executed back-to-back, so for instance if activity gets replaced there is no time between the onDestroy and onCreate when other things could happen. Aug 22 10:57:12 oh Aug 22 10:57:13 aep: a service should be started when you do startService(intent). I'm not sure about any other cases. Aug 22 10:57:20 so the service wouldnt know about the new state :( Aug 22 10:57:31 wow that's... ugh Aug 22 10:57:41 hi Aug 22 10:58:39 good to know. so i guess i'll store all state in settings. It's ok to loose them completely for me, as the app will just refetch everything from the internet. But loosing state half way is really bad :/ Aug 22 10:58:40 aep: I do really have a comprehensive experience with android to understand every little thing about it. (I frankly doubt anyone but the guys who have read the source and written the damn thing do.) Aug 22 10:59:23 I would generally recommend (ab)using the sharedpreferences facility for state. It's there and easy to use, and persists everything because it's been designed that way. Aug 22 10:59:32 right Aug 22 11:00:55 What I personally don't like very much is that it saves the state to XML files. It's probably not the most efficient serialization format there is, but unless you go really overboard with preferences, it doesn't matter Aug 22 11:02:04 for instance I once wrote a system that logged on to a remote server by TCP, and I kept the session and the timestamp in a sharedpreference file so that if user came back to the application before the timeout elapsed, it would resume automatically from the session which I knew the server should have kept alive too Aug 22 11:02:43 there was no obvious other place where to place the session id and timestamp. I guess I could have kept a service alive while user did something else, but that seemed kind of nonsensical thing to do Aug 22 11:03:06 there was no background processing to do, after all. Aug 22 11:03:26 yeah, similar thing here Aug 22 11:03:42 i'm just receiving events from the webservice with gcm Aug 22 11:03:58 I asked about it here and the old wise men uttered "SharedPreferences" and I bowed and left. Aug 22 11:04:02 so i guess the right thing to do is let android kill everything and wakeup on a web event Aug 22 11:04:06 heh Aug 22 11:11:32 android "shows" a cursor once a mouse is attached (at least google says that :P) => can i somehow style this cursor? Aug 22 11:13:09 my sansung galaxy has a voice command app that activates automatically when I speak "hi galaxy". I'd like to implement this feature in my app, to activate automatically when some "trigger voice phrase" is used. where can I start to search for? sorry not good in english, don't know the right term for this "startup voice message" to search google. thanks in advance Aug 22 11:14:38 pzn, http://stackoverflow.com/questions/6316937/how-can-i-use-speech-recognition-without-the-annoying-dialog-in-android-phones Aug 22 11:14:46 and parse the results in one of the functions. Aug 22 11:15:45 PatrickBic, thanks, I'll read that Aug 22 11:16:45 how do i transform a bitmap from immutable to mutable? Aug 22 12:07:47 someone ever used the Android SIP api? Aug 22 12:12:07 can i use a BroadCastReceiver to get a share intent? Apparantly its not displayd in the choice menu when i use a Receiver instead of an Activity Aug 22 12:12:45 If you install ndk plugin in eclipse, what's the ndk path? Aug 22 12:22:23 Morning Aug 22 12:24:07 Is there any "nice" way to pass an object from a list Fragment to a detail Fragment that doesn't involve Parcels? Aug 22 12:25:20 More specifically, if I have a list of Objects created via a Loader, is there any way to pass the selected Object to a detail Fragment? Or do I have to just pass an identifier and have the detail Fragment load the Object separately? Aug 22 12:26:39 why not pass it to a constructor? Aug 22 12:35:26 str4d, if the object you wanna pass is tiny you can pass it as fragment argument otherwise I would just pass the id and load it again in the fragment itself. Aug 22 12:36:08 * str4d is new to Fragment (and Android) development, and is learning on-the-fly Aug 22 12:37:29 rciovati: thanks, that's what I'm thinking might need to happen. Aug 22 12:38:02 and, btw, PatrickBic the Fragment constructor should have no arguments, so the default is pattern is to create a "newInstance" method like this: http://stackoverflow.com/a/9245510/321354 Aug 22 12:38:56 str4d, refer to the above link too, for the newInstance method Aug 22 12:39:21 rciovati, well, nevertheless i would use the constructor/some-function way to hand over parameters. Aug 22 12:39:47 rciovati: thanks. I don't use newInstance much (yet), but I've been following examples and tutorials from all over the Android dev docs (and they aren't all current) Aug 22 12:42:13 Another question about something else I struggled with: Aug 22 12:42:53 why is the VideoView not resuming at the point where I called pause() but at the beginning? Aug 22 12:43:17 The Android docs example of a navigation drawer uses Fragments, implying a one-Activity-many-Fragments app structure. But how much is lost over an Activity-per-visible-screen structure? Aug 22 12:43:42 ohcibi, get the position in onPause, and seek to it in onResume Aug 22 12:44:05 videoView.getCurrentPosition(); and videoView.seek(position); videoView.start(); Aug 22 12:44:24 PatrickBic: what onResume()? i cant find where to implement it Aug 22 12:45:27 ohcibi, make a class that extends from VideoView, and override the two (at least) functions Aug 22 12:45:56 let me get this straight: to be able to pause a video in my android app I need to extend a class? Aug 22 12:46:17 the answer is always extending a class ohcibi Aug 22 12:46:24 this is java after all Aug 22 12:47:02 "i had a problem, i tackled it with java, now i have a problemFactory" :P Aug 22 12:47:08 ^ Aug 22 12:47:22 ohcibi, yep Aug 22 12:48:29 I'm out of words about this Aug 22 12:48:32 I need a drink Aug 22 12:48:34 a strong one Aug 22 12:51:22 ohcibi: you shouldn't have to do any of that, it should just work Aug 22 12:52:27 shmooz: no.. i resume() or start() and it starts at 0:00 Aug 22 12:52:35 when it was at 0:15 beore Aug 22 12:52:36 before Aug 22 12:52:56 are you using the default MediaController ? Aug 22 12:53:44 I use the default MediaController and it has a pause on it, and I don't need to add any code to get it working right Aug 22 12:54:03 i'm using the videoViews start() and pause() methods Aug 22 12:54:14 ohcibi, there is resume (think so) Aug 22 12:54:21 do you use that to resume ? Aug 22 12:54:29 I tried resume() and start() Aug 22 12:55:07 ok Aug 22 12:55:36 shmooz: so what youre saying is that I should use the MediaController and not the VideoView directly to control the video? Aug 22 12:56:06 ohcibi, http://i.stack.imgur.com/JwWnQ.gif Aug 22 12:56:16 I use VideoViews and MediaControllers, starting stopping and restarting videos is relatively painless Aug 22 12:56:26 a couple lines of code Aug 22 12:58:04 during pause another activity is shown, could that be the problem? Aug 22 12:58:26 might be, can you try without it? Aug 22 12:58:37 PatrickBic: good point 8-)) sec Aug 22 13:01:02 Hey guys. I have a question... Aug 22 13:01:51 i have an answer Aug 22 13:02:29 moorcock.freenode.net *giggle* Aug 22 13:05:09 did someone use the appmsg android crouton library with gradle / android studio? Aug 22 13:07:37 is is possible to drag and drop from alert dialog to layout placed different fragment ? Aug 22 13:08:06 i mean, i have fragment where i can open dialog, and in this dialog i have some list items, Aug 22 13:08:26 i want to click on specified list item, and close the dialog, and then drop it to my fragment Aug 22 13:09:22 noob issue, but i cant get onItemClick to be called, im adding it to my listview like so listView.setOnItemClickListener from inside onCreateView in a Fragment Aug 22 13:09:41 PatrickBic: seems like the player looses its information when the activity is hidden Aug 22 13:11:20 ohcibi, i think that an activity gets recreated this way Aug 22 13:11:34 as in "activity = null; show_other_activity(); activity = new Something()" Aug 22 13:12:07 with the drag apis in 11+ is it possible to limit the drag only to the x or y axis? Aug 22 13:12:37 ohcibi use onsaveinstancestate to keep track of where the video is Aug 22 13:13:06 easy peasy Aug 22 13:22:49 this is madnes Aug 22 13:22:55 waste dhrs trying to make a row clickable! Aug 22 13:24:09 I created this drawable http://pastebin.com/YZHfLzin to be a list divider, but after I set it using listView.setDivider I can't see it in my list Aug 22 13:24:28 str4d, what are you concerns about using a single Activity with many fragments? Of course you don't have to use just a single Activity for all the application, you can isolate a few fragment logically related and keep them in a single Activity. Aug 22 13:27:03 some of my corporate projects are a single activity with over 20 fullscreen fragments Aug 22 13:27:12 much easier to navigate and organize with fragments than with activities Aug 22 13:27:30 rciovati: I'm not yet sure how it affects the underlying structure and use cases of the app. AFAICT Activities are meant to be the way to separate "sections" of the app (that can potentially be interacted with by other parts of the app, or other apps entirely). But the more I read of the Android design/dev docs, the more it seemed like the "recommended" style is moving to many Fragments, and I have no concept of how they can be used in the same Aug 22 13:27:31 way. Aug 22 13:27:57 I'm doing this because I need to apply padding to the listview divider Aug 22 13:27:58 minimize your activity use, and maximize your fragment use Aug 22 13:28:56 Ankhwatcher did you set divider height/width/enabled? Aug 22 13:29:37 mmathis: ? How do I do that? Aug 22 13:29:58 nseidm1: but does that mean that the single Activity becomes a behemoth of routing? Fragments are never supposed to talk to each other, only via the Activity; in a single-Activity-many-Fragments setup, does the Activity just become a class filled with all possible callback functions? Aug 22 13:30:03 I used listView.setDividerHeight(1) Aug 22 13:30:05 this is crazy.. the value of getCurrentPosition() is 0 in onSaveInstanceState()... I have a wrapper-class for this player where I am able to save the current position and seek to it on play similar as with onResume(), however if i do it, i seek to the saved position and then the player adds the time that is passed since I issued pause Aug 22 13:30:21 in xml: divider android:[footer|header]dividersenabled Aug 22 13:30:27 so I end up at the same position I would be if I had never called pause() Aug 22 13:30:30 are probably the problems Aug 22 13:30:35 you don't actually have to set the width/height Aug 22 13:30:40 str4d: MVC design, your activity is the view controller and the fragments communicate with each other and coordinate via the activity Aug 22 13:31:05 or in code set[footer|header]dividersenabled Aug 22 13:31:07 mmathis: oh the divider is enabled, until I set it to my ShapeDrawable it was visible Aug 22 13:31:10 yes, your activity can become designed solely to management and coordinate the fragments Aug 22 13:31:22 its pretty lame that the player looses its information when showing another activity...... there arent such issues with the youtubeplayer Aug 22 13:31:34 ohcibi: um, onSaveInstanceState? Aug 22 13:31:59 nseidm1: as I wrote.. in onSaveInstanceState getCurrentPosition of my video view already returns 0 Aug 22 13:32:06 *of my VideoView Aug 22 13:32:28 then use onPause Aug 22 13:33:07 hm... idk Ankhwatcher. I used a divider once and then decided I didn't want to use it anymore :P Aug 22 13:33:11 so I don't have much experience with it Aug 22 13:33:39 I already managed to save the current position when I call pause() and then seek to it before i call start() again, but then after start the player jumps to the time where the video would be if I had never call pause Aug 22 13:33:45 nseidm1: ^ Aug 22 13:35:11 mmathis: ah well, thanks for helping Aug 22 13:36:03 I'm pretty sure my problem is the drawable, but I'm not sure which part exactly Aug 22 13:44:40 ohcibi: just start the video and seek to the saved position Aug 22 13:46:10 nseidm1: i did that Aug 22 13:47:06 so when you seek to, lets say, 1 minute into the video and hit play, it doesn't play at 1:00? Aug 22 13:47:29 nseidm1: when I pause at 0:15 for 3 seconds and then seek to 0:15 it resumes at 0:15 Aug 22 13:47:32 *0:18 Aug 22 13:47:46 the last 0:15 must be 0:18 Aug 22 13:47:54 as if I never called pause() Aug 22 13:48:07 maybe try calling start() and then seekto()? Aug 22 13:48:32 already tried Aug 22 13:48:35 indeed, or if you're feeling lazy destroy the MediaController, re-init, seek to, and play Aug 22 13:53:14 wow, it seems that google made it difficult on purpose to play media without youtube 8-)) Aug 22 13:53:54 not quite, I use video in many of my apps including Shady Photo & Video Safe. Pausing and stopping is rather straight forward. Aug 22 13:54:09 as long as you dont show any other activity during pause 8-) Aug 22 13:54:37 never had an issue with that Aug 22 13:54:43 its actually quite lame that the player looses its position anyways... no matter what happens in between Aug 22 13:55:10 if i call pause and later start() I expect the player to start where I called pause() if its the same object... if not, its bad implemented Aug 22 13:55:22 that's how it works in all my apps Aug 22 13:56:19 nseidm1: so you actually opened another activity during pause, then resumed, and the video resumed where you had paused it before? Aug 22 13:56:24 yes Aug 22 13:57:29 nseidm1: and you where using VideoView? youre sure youre not talking about MPMoviePlayerController? Aug 22 13:59:13 VideoView indeed Aug 22 14:02:12 Does NDK applications still run *through* a DVM? Aug 22 14:02:24 Or there's no DVM instance whatsoever in their processes? Aug 22 14:05:39 yes Aug 22 14:05:57 if you mean that native code get executed in the same process, yes Aug 22 14:08:14 I was wondering if there's any JVM running in a native code application process. Aug 22 14:08:33 hi, i wrote a simple command line application in java, and got a jar file; can i run it on an non-rooted android tablet? Aug 22 14:08:38 how is it actually possible that the VideoView instance looses its position? the instance is never touched after calling pause(), it is not recreated, or anything, and the process that opens the other activity doesnt know about the videoview, so how can it loose its position? Aug 22 14:08:46 nzoie_: not easily Aug 22 14:08:54 nzoie_: because there isn't a java runtime per se Aug 22 14:11:20 compiled to dex, it should be fairly straightforward to write the necessary glue to launch it, I'd expect. Aug 22 14:11:38 not that I have any idea how it should be done but the source code to the zygote probably would help Aug 22 14:11:48 dragorn: i tried two apps: netmite, and jdev, but it looks like they're missing librairies and require root Aug 22 14:12:53 at the limit one can always make an application where you can drop a .jar in and which calls the program, even when that isn't a command line program anymore Aug 22 14:15:25 nseidm1: in onPause() the player returns the current position where in onStop() the player returns 0 as position, so I guess even if you started another activity, you either did that by not stopping the current one or you actually took care about the players position Aug 22 14:15:38 hey good morning Aug 22 14:15:38 nseidm1: by player i mean the VideoView instance Aug 22 14:15:50 dragorn: i'm willing to "work for it" :) Aug 22 14:16:23 I save the position in onPause if isFinishing is false Aug 22 14:16:27 i have a lot of images of different sizes and i want to make a gridview but they dont take the actual size that i set that is 100dpx100dp Aug 22 14:16:31 and set it in onResume if the position isn't -1 Aug 22 14:16:40 aha Aug 22 14:17:01 "rather straightforward" Aug 22 14:17:02 im extending ArrayAdapter Aug 22 14:17:04 popers: centerCrop Aug 22 14:17:28 where ViewHolder is a custom class which only contains the R.drawable resource Aug 22 14:17:44 programatically or in xml Aug 22 14:19:52 nseidm1: as expected this has the same effect... the video jumps 3 seconds ahead... i found out that its always 3 seconds no matter how long I wait Aug 22 14:20:12 try a different phone Aug 22 14:20:21 lol Aug 22 14:20:53 nseidm1: this is what I'm going to tell the client? or do you want to tell it? 8-))) Aug 22 14:21:37 yes, tell them various phones are jacked up Aug 22 14:24:28 does it work correctly on another phone? Aug 22 14:24:35 If so what phone is working, and what phone is not working? Aug 22 14:26:06 nseidm1: i only have on tablet here Aug 22 14:26:12 which tablet? Aug 22 14:26:16 nseidm1: but i found out that video views seek to is actually quite inconsistent Aug 22 14:26:22 some galaxy ab Aug 22 14:26:23 tab Aug 22 14:26:32 try it on a Nexus device Aug 22 14:26:39 nseidm1: are you joking somehow? Aug 22 14:26:49 no, we need to find a baseline Aug 22 14:26:58 i mean, how do you think I can get a nexus _right now_??? Aug 22 14:27:02 is it a core Android bug, or does it work on a nexus device Aug 22 14:27:16 BestBuy, Staples, etc... Aug 22 14:27:34 nseidm1: please be more serious Aug 22 14:28:18 other people also have problems with seekTo, also on the emulator Aug 22 14:28:32 then offset by -3 seconds Aug 22 14:28:41 center crop doesnt work Aug 22 14:28:55 but then my question is, what will happen if the video is -3 seconds on other Android devices Aug 22 14:28:59 wait let me post order my info and ask again Aug 22 14:29:23 nseidm1: i just wanted to drop your last suggestion with this very reason Aug 22 14:29:53 does anyone here ever repo sync down android source? Aug 22 14:29:58 nseidm1: just google seekTo android videoview.. it just doesnt work 8-) Aug 22 14:30:08 lets say you pause at 15 Aug 22 14:30:15 see if you can detect the resume being at 18 Aug 22 14:30:24 offset only if necessary Aug 22 14:30:25 its seeks for about 3 seconds, thats why it ends up at 18 Aug 22 14:30:30 blocking the vide playback Aug 22 14:30:46 gotta hit a meeting, I'll be back later Aug 22 14:30:47 cheers Aug 22 14:36:05 Will using LocationManager.NETWORK_PROVIDER eat cellular data if I call it in an area with no wifi? I need to do location tracking in an environment with a very tight data usage cap. Aug 22 14:36:25 oh Aug 22 14:36:35 i find the answer Aug 22 14:36:51 just add ajustViewBounds="true" Aug 22 14:36:59 in the xml file Aug 22 14:37:22 this is so stupid... it seeks to the desired position and when it finally found the position it jumps ahead the time it needed to seek Aug 22 14:37:27 the videoview is completely useless Aug 22 14:45:26 is there a compatibility-friendly version of View.OnHoverListener ? Aug 22 15:17:22 nseidm1: this problem exists since android 1.6 https://code.google.com/p/android/issues/detail?id=4124 Aug 22 15:26:02 I'd like to know how your app behaves on a 4.3 device, an up to date Nexus 7 or Nexus 4 Aug 22 15:29:07 Hey guys I'm trying to add a platform library to my android build but I'm confused by the example here https://android.googlesource.com/platform/vendor/sample/+/master/frameworks/ where do I actually place the code and make files? Aug 22 15:29:52 do they go in the device folder in a 'system' folder or in the system framework folder? Aug 22 15:30:43 nseidm1: we dont target 4.3 Aug 22 15:30:54 nseidm1: and according to this bug-report, it wont work 8-)) Aug 22 15:31:43 always target the most recent version of Android and establish compatibility with as old as you want to waste time on Aug 22 15:31:48 4.3 should definitely be the target Aug 22 15:32:03 i installed https://github.com/jberkel/android-plugin/wiki/getting-started, but i still cannot use android:package-debug, it says that this key doesn't exist Aug 22 15:32:45 nseidm1: you dont program for a living, do you? Aug 22 15:32:47 nzoie, use android-sdk-plugin Aug 22 15:32:54 yes Aug 22 15:32:55 I do Aug 22 15:33:36 then congrats on beeing able to always target the devices you want and not your boss/your customer wants Aug 22 15:34:18 lets say your customer/boss wants it to work on Android 2.2. Target 4.3 and set your min sdk to 2.2. Aug 22 15:34:41 strange to do it any other way Aug 22 15:35:22 ohcibi, doesn't know android... Aug 22 15:35:50 nseidm1: and whats the purpose of this? if this app runs on a device with 4.2 it wont work Aug 22 15:35:55 set your build target to 2.2 if you want, but app target to 4.3 Aug 22 15:35:56 and then use the support libraries to try and make things work for all, find out there are still issues on specific versions or even devices with the support library Aug 22 15:36:12 why would it not work? Aug 22 15:36:36 realize that some of the nice things you want to use aren't available on 2.2 or even 2.3 and find work arounds Aug 22 15:36:38 why should it? Aug 22 15:36:48 because thats how its designed to work Aug 22 15:36:52 no it is not Aug 22 15:36:53 jonc: the problem i have still exists according to this bug-report https://code.google.com/p/android/issues/detail?id=4124 Aug 22 15:37:06 and its not a "missing feature" Aug 22 15:37:08 taget current android version, min sdk as low as the amount of time you want to waste Aug 22 15:37:09 its a simple bug in seekTo() Aug 22 15:37:31 There are quite a few changes added in along the way that makes it so that you can't just say "hey it should work on 2.2 also" Aug 22 15:37:45 jonc: i dont want it to work on 2.2 actually Aug 22 15:37:48 i'm happy with 4.2 Aug 22 15:38:08 how do you change visibility of menugroups with ActionBarCompat? Aug 22 15:38:38 nseidm1: this is of no use... the app wont run on 4.3 api if installed on a 4.2 device.. so the app will _not_ work on this device Aug 22 15:38:52 lol Aug 22 15:39:02 menu.setGroupVisible doesn't do anything beyond 3.0 Aug 22 15:39:24 nseidm1: what is it, that I said wrong? Aug 22 15:39:42 if you target 4.3 and run the app on 4.2 the app will work fine Aug 22 15:39:48 nseidm1: thats not what i meant Aug 22 15:40:04 nseidm1: by "work" i meant that my specific problem is not occuring Aug 22 15:40:24 nseidm1: I could have said it more clearly though Aug 22 15:40:45 so what I meant is, the problem will occur on a 4.2 device, no matter if I target the app to 4.3 Aug 22 15:40:47 are you using streaming media? have you tried it without streaming media? Aug 22 15:40:52 mmathis: yes iam Aug 22 15:40:57 mmathis: thats why i found that bug Aug 22 15:41:38 mmathis: and i'm pretty sure it'll work without streaming as the gap between the position where i want to jump and the position where it actually jumps is pretty exactly the time it needs to perform the seek action Aug 22 15:42:04 i guess you tried using the onseekcompleted listener? Aug 22 15:42:12 I saw that that didn't actually work for a lot of peope though... Aug 22 15:42:16 probably still worth a try Aug 22 15:42:33 mmathis: no actually not Aug 22 15:42:48 but that listener would be of no help Aug 22 15:43:01 since it would fire when the video has already jumped ahead, i would then have to seek back Aug 22 15:43:21 ah yes I guess that's true Aug 22 15:43:32 well gl with that Aug 22 15:43:32 mmathis: and yes, a _lot_ of people have issues with this 8-)) Aug 22 15:45:30 Hi, I'm beginning with a voip app (using the Android SIP API). Is it possible to call a normal phone nr from my app (using my SipProfile) ? Aug 22 15:47:41 Hi Aug 22 15:50:21 Is there way to get the actionbar to show a divider? Aug 22 15:51:21 android:windowContentOverlay get's misused often for that Aug 22 15:51:37 yay! misuse! Aug 22 15:52:27 nseidm1: please explain this misuse in greater detail Aug 22 15:53:06 android:windowContentOverlay will put a divider resource under the action bar, but it's not called android:actionBarDivider Aug 22 15:53:33 it achieves the desired effect likely unintentionally Aug 22 15:54:22 wait under? I'm trying to put it beside an icon Aug 22 15:55:29 does customlinks like myapp://somelink/etc work when clicked in gmail on Android - don't seem so for me Aug 22 15:57:42 Ankhwatcher ctrl+f divider http://developer.android.com/guide/topics/ui/actionbar.html Aug 22 15:59:50 mmathis: thanks Aug 22 16:02:55 Is there a way to center align the text for a string such as "Field 1:\nBlah Blah Blah Blah" Aug 22 16:03:11 need help with GCM. i have problem with "googleCloudMessaging.register(SENDER_ID);" in some devices works fine (like galaxy nexus) in some recieve error "SERVICE_NOT_AVAILABLE" (like galaxy s3 mini). i found online that i must retry but in gs3mini i have tried 30 time and recieve error always. ENYONE CAN HELP ME? Aug 22 16:06:31 Nvm gravity="center_horizontal" did it. Didn't think it would work for some reason Aug 22 16:10:20 anyone got a suggestion for how to make something like this: http://www.youtube.com/watch?v=jKI0bVNKIXY&feature=youtu.be Aug 22 16:10:35 sort of 2d dial wodget Aug 22 16:20:34 Gaz`: lots of circles Aug 22 16:24:00 is it HLS you are using? Aug 22 16:24:16 nahojkap: ? Aug 22 16:24:43 what are you streaming? Aug 22 16:24:51 nahojkap: some random mp4-url Aug 22 16:25:29 what is HLS? Aug 22 16:25:32 ah, ok ... i know seek will block but never seen it offset (by much) ... but that is for HTTP live streaming Aug 22 16:25:59 but there are other issues related to the seek in that scenario ... Aug 22 16:26:09 nahojkap: yes, seek is bugged.. even the progress bar of the mediacontroller doesnt work precisley Aug 22 16:26:15 HLS == HTTP Live Streaming Aug 22 16:26:51 well, can only speak for HLS in my case ... Aug 22 16:27:26 nahojkap: i dont know what makes http live streaming different from my streaming, but seek to is bugged regarding streaming.. i pasted a link to a bug thats 4 years old now and not yet fixed Aug 22 16:27:40 plus the native progress bar of the mediacontrol is around 3 seconds wrong when scrolling Aug 22 16:27:56 but you dont realize it, as you think this is just not so precise touch Aug 22 16:28:41 as one said before, after all its java... i dont expect this bug to be fixed ever Aug 22 16:30:20 its not java though - its the native media framework ... Aug 22 16:32:59 nahojkap: i meant the pure fact that this bug is 4 years old now and still not fixed Aug 22 16:33:00 this is typical for java Aug 22 16:33:03 i must admit a typical java bug is about 8 years old but android is to young for this Aug 22 16:33:28 * Bleeptech giggles.. Aug 22 16:34:15 No wonder I feel like I'm fighting the same bugs I had to deal with the last time I tried to learn Java.. LOL Aug 22 16:34:38 well, under the hood the seekto code is actually c++ Aug 22 16:34:40 fwiw Aug 22 16:35:01 * nahojkap smirks Aug 22 16:35:29 indeed - the whole media framework is native ... java is only 'fluff' on top ... Aug 22 16:35:49 ohcibi - not gonna comment on that :) Aug 22 16:36:40 nahojkap: I wasnt expecting you to 8-)) this is just the result of a long day trying to seek with androids mediaplayer 8)) Aug 22 16:37:08 i'd say, seeking works, just to what extent/how it does is questionable :) Aug 22 16:37:23 somewhat questionable perhaps ... Aug 22 16:39:47 the thing that bothers me the most is that seeking is actually only a workaround for the player loosing its information of its position Aug 22 16:39:48 Seek.. And ye shall find.. Bugs.. ROFL.. Aug 22 16:40:01 so i'm in a workaround-ception right now Aug 22 16:47:26 so, seek works :) Aug 22 16:47:42 c Aug 22 16:51:18 hi there Aug 22 16:51:39 im trying to flash a recovery zip through an android app Aug 22 16:51:53 i've successfully done so through adb shell Aug 22 16:52:23 but when i try the same command from within the app i get "segmentation fault (core dumped)" Aug 22 16:52:31 any idea why? Aug 22 16:52:41 for the record im running both as root Aug 22 16:53:33 I'm using the actionbar -> adding navigation tabs with fragments, whenever an orientation changes occure the fragments start getting overlayed Aug 22 16:53:44 does anyone know how I would be able to mitigate this? Aug 22 16:54:59 Remove the current fragment when you add a new one Aug 22 16:55:10 Remember the framework saves the state of any added fragments Aug 22 16:55:22 That includes the fact that they're added Aug 22 16:56:02 http://img7.imageshack.us/img7/948/imagedab.png a visual dump of the quad tree I was talking about yesterday (large image) Aug 22 16:56:23 SimonVT: alright, the code is currently detaching the fragment (not removing) Aug 22 16:56:27 jonc: That looks like america Aug 22 16:56:33 it is Aug 22 16:56:36 Detach works as well Aug 22 16:56:42 jonc: well that would explain it Aug 22 16:56:43 it is for fast reverse geocoding to city, state Aug 22 16:57:28 I use a quad tree to store the bounds of all ZACTA (sort of like a zip code but zip codes don't actually have physical boundaries, more just a list of addresses that are inside) that comes from the census tiger/ line data Aug 22 16:57:35 Hello guys, looking to replace a windows 7 app that open remotely microsoft sql express (I know this shouldnt be done, but it's out of my scope) Aug 22 16:57:42 at least I think it is zacta Aug 22 16:57:48 Can you open in Android a connection to a database server? Aug 22 16:57:52 ZCTA Aug 22 16:57:57 remotely over wifi Aug 22 16:58:57 so I used a python script to combine all 50 states into a single file, and then made a java library to load the quad tree but keep only the index into the shape file for each area (to save memory, 600-800mb file, didn't want to keep in memory) Aug 22 16:58:57 or is this so stupid that hasn't been contemplated, and only way to do this would be through xml or json Aug 22 16:59:03 through a web service Aug 22 16:59:06 SimonVT: hmmm, yea I'm missing something here, the results are the same with remove or detach Aug 22 16:59:42 and then find the bounding boxes lat/lng sits inside, and only load those from the file to test point in poly Aug 22 16:59:54 ok, next qeustion Aug 22 16:59:54 porten: As I said, the framework restores added fragments Aug 22 17:00:14 Check if a fragment exists in the fragmentmanager before creating a new one Aug 22 17:00:21 Has anyone draw a UI that represents tables in a restaurant in an Android app? Aug 22 17:04:50 crised: Probably Aug 22 17:05:44 yiati: Which framework did you used/ Aug 22 17:06:18 I love that ABD can connect over the network/wifi. I don't have to have my phone plugged into the computer in the closet to test my applications. :P Aug 22 17:07:09 crised: Why do you need a seperate framework? Aug 22 17:10:35 yiati: How did you do it? Aug 22 17:11:09 crised: Well do you just want an overhead view of the tables in a restaurant? I don't know what exactly you are going for? Aug 22 17:13:39 yiati: yep, correct. Aug 22 17:13:43 hopefully with coordinates Aug 22 17:14:17 perfect for GridLayout Aug 22 17:15:25 nseidm1: ok, GridLayout, but what about the icons? Aug 22 17:15:41 What if the icons also need the information about how big they are? Aug 22 17:15:49 width/long Aug 22 17:15:49 crised: I don't know if coordinates are going to work well for this seeing that location accuracy in a building is not great Aug 22 17:16:10 seems like standard UI design work Aug 22 17:16:27 exact coordinated does not matter, just to have an overview, that's all Aug 22 17:16:34 Hey Guys I'm trying to write an app to connect to an Arduino over Bluetooth with the bluetooth silver mate! and found this handy little code http://stackoverflow.com/questions/10327506/android-arduino-bluetooth-data-transfer Aug 22 17:16:37 but it need to work in different restaurants Aug 22 17:16:59 crised: the coordinates may tell you that a persons table is in the parking lot Aug 22 17:17:11 often Aug 22 17:17:45 lol Aug 22 17:18:02 crised: Also you would have to design the layout for each restaurant individually, there's no way around that Aug 22 17:18:03 I managed to connect to an htc desire hd and it actually connects but on a samsung galaxy tab 2 androids wants me in order to pair the device a two sided pin Aug 22 17:18:22 yiati: ok, sure? Aug 22 17:18:51 but I don't know how! Do I have to programm that as a serialprint in the arduino code or something? Aug 22 17:18:53 crised: Yep Aug 22 17:19:18 got it Aug 22 17:19:50 Also, need to work with XML in android, everything these days is for JSON, will this be a problem_ Aug 22 17:20:10 ?? Aug 22 17:20:43 yiati: communicate with a rest Aug 22 17:20:51 web service with XML instead of JSON Aug 22 17:20:55 that's fine Aug 22 17:21:33 crised: https://code.google.com/p/android-xmlrpc/ Aug 22 17:22:54 I'm trying to update "android sdk platform-tools" to version 18. It is currently stuck at 13. How can I udpdate it? Right clicking does nothing, clicking "updates" does nothing. I'm stuck? (using android sdk manager on linux launched from eclipse) Aug 22 17:23:16 just delete it and start again Aug 22 17:23:32 g00s: alright, trying that Aug 22 17:23:46 make sure adb is stopped , etc Aug 22 17:23:47 yiati: xml rpc, is this mean a GET or POST with XML as MIME TYPE/ Aug 22 17:24:22 g00s: It's uninstalled, the sdk-manager only shows the option to get verison 13. Aug 22 17:24:44 delete everything Aug 22 17:24:51 g00s: _everything_ ?? Aug 22 17:25:00 get another sdk from the main site Aug 22 17:25:02 anyone into Bluetooth and Arduino? Aug 22 17:25:21 g00s: Delete the entire sdk folder? Aug 22 17:25:23 alright Aug 22 17:26:06 deadmund make sure you dont have anything important like a release key in there, though - although that would be unusual Aug 22 17:26:18 rm -fr android_sdk_dir Aug 22 17:26:28 g00s: already done did it :P Aug 22 17:26:42 download of new android-sdk-adt bundle finished... Aug 22 17:27:07 * deadmund loves fast Internet Aug 22 17:28:05 DaveDeer_: The people at #arduino do Aug 22 17:29:33 lol I am so used to typing rm -rf that rm -fr looks weird. It looks like I am removing the French from a directory Aug 22 17:29:59 rm -fr res/values-fr Aug 22 17:31:35 yep, what do you want deadmund Aug 22 17:32:16 nothing... working right now Aug 22 17:32:41 I had to remove a bunch of erroneous eclipse workspaces and I'm re-setting up eclipse to make it clean. I'll come back if I have a problem. Aug 22 17:32:49 I assume reinstalling the sdk will fix whatever problem I had Aug 22 17:32:52 I think you were asking for someone who plays with bluetooth and arduino Aug 22 17:33:05 ok Aug 22 17:33:10 greetings... Aug 22 17:36:22 yiati: Thanks but because I wanted to code an App with the android sdk they passed me over here Aug 22 17:38:19 DaveDeer_: I don't understand the original question you asked Aug 22 17:40:54 any way of getting cell tower id without internet connection? Aug 22 17:41:00 in API <17 Aug 22 17:42:02 I have to connect to a bluetooth modul and on the tablet I use android wants a 2-sided password, normally you only have to punch in the pin on the android device but now it wants that I enter the pin in the device too but because my project has only 2buttons its not really possible Aug 22 17:42:31 and on an older phone this isn't requiered Aug 22 17:56:27 has anyone noticed that AsyncTask statically initializes a Handler? Aug 22 17:56:42 yes Aug 22 17:57:00 on Gingerbread devices at least, even if you don't call the AsyncTask constructor from the main thread, accidently initializing the class outside of the main thread can cause bugs Aug 22 17:57:03 and doesn't set it to be associated with the main Looper ಠ_ಠ Aug 22 17:57:17 Is the file project.properties used by eclipse (to ID a project) or by android Aug 22 17:57:18 indeed Aug 22 17:57:24 lagann: yeah; workaround is to initialize AsyncTask on the main thread Aug 22 17:57:26 don't use asynctask ;) Aug 22 17:57:28 i.e. can I delete it Aug 22 17:58:12 in my project, in the Application subclass' onCreate, do Class.forName("android.os.AsyncTask"); or something similar. Basically, anything to get the classloader to load AsyncTask Aug 22 17:58:21 evanc: yeah, i already did that Aug 22 17:58:24 lol, way ahead of you Aug 22 17:58:28 but it's just really odd Aug 22 17:58:38 the issue doesn't manifest itself on jellybean devices, though Aug 22 17:58:40 lagann: an oversight, surely Aug 22 17:58:48 it's probably been fixed Aug 22 17:58:56 it's not in async task, though Aug 22 17:59:04 master on aosp still shows it doing the same thing Aug 22 17:59:19 it must just be getting initialized by the android framework early on Aug 22 18:06:24 hey jonc, what's the little spot in the bottom right of your mpa? Aug 22 18:06:26 map* Aug 22 18:06:29 puerto rico? Aug 22 18:12:12 holy crap, this LG panel is 538 ppi Aug 22 18:13:06 what panel? Aug 22 18:13:34 zhulikas http://www.androidpolice.com/2013/08/21/lg-shows-off-insane-5-5-inch-2560x1440-lcd-panel-beats-world-record-for-ppi-and-thinness/ Aug 22 18:14:03 is this xxxxhdpi Aug 22 18:18:00 there's xxxhdpi Aug 22 18:18:44 holy shit Aug 22 18:18:45 :o Aug 22 18:19:09 xxxhdpi is 640dpi Aug 22 18:19:42 https://android.googlesource.com/platform/frameworks/base/+/56a2301%5E!/ Aug 22 18:19:47 538 probably calls in the xxhdpi bucket Aug 22 18:20:06 yea thats kinda like... halfway between xx and xxx Aug 22 18:20:30 is there any benefit to using a View with a background rather than an ImageView with a src? Aug 22 18:22:08 Nope Aug 22 18:22:31 Both is just drawing a drawable Aug 22 18:22:48 I'm trying to install and use this native (JNI) fft library but I am getting an error following his instructions. Maybe you guys can help? http://pastebin.com/8pVcCeAA Aug 22 18:24:27 Unless you use stuff like scaletype and whatnot, then there's a bit more Aug 22 18:25:16 But I doubt that have any impact on performance anyway Aug 22 18:25:32 deadmund: it's failing to find the gcc command Aug 22 18:25:40 line 18 Aug 22 18:25:53 porten: Yes, look at my last comment. line 46 Aug 22 18:26:54 deadmund: did you add that to your path? Aug 22 18:27:32 porten: I symlinked it in ~/bin (so yes) and it got further complaining it can't find a similar program by name. I'll symlink that as well Aug 22 18:27:42 deadmund: if all you need is real-valued FFT then I have ndk thing you might use Aug 22 18:28:04 It's simply a port of the numerical recipes for C stuff for android, very simple Aug 22 18:28:05 alankila: fft always returns complex values yes? What do you mean a "real-valued FFT" ? Aug 22 18:28:15 deadmund: yea, you might be better off just adding to your path, PATH=$PATH:/location/of/bin/for/arm/compiler Aug 22 18:28:15 deadmund: one that is adapter to perform FFT only for real signals Aug 22 18:28:18 adapted rather Aug 22 18:28:24 porten: thanks Aug 22 18:28:42 alankila: So you convert all real input to complex numbers of the form a+0i ? Aug 22 18:28:57 deadmund: FFT is defined for complex signals, yes, but if your source is physical data chances are it's real-valued. There are symmetries in the FFT returned in that case, and you can eliminate them thus saving computation time Aug 22 18:29:31 so the input data is array of real values and output data is the FFT bins up to nyquist without negative frequencies and without complex parts for the 0th and N/2th frequency because they are zero Aug 22 18:30:06 How would I go about catching a RuntimeException thrown by a method of a GLSurfaceView.Renderer? Aug 22 18:31:09 alankila: Is this JNI ? I need this FFT to process inputs of length 1024 in < 17ms Aug 22 18:31:15 deadmund: https://github.com/lioncash/droidsound/tree/master/jni/FFT Aug 22 18:32:20 you can google the four1 and realft, you'll find many implementations for this algorithm Aug 22 18:35:07 Okay, I need to automate a few things on a browser(log into website, click a button etc), what is the best way to go about this? Aug 22 18:35:23 Is there anything similar to selenium webdriver on android? Aug 22 18:35:43 it's originally fortran so there's a trick, you have to subtract one element for array starting position so that data[1] is the first element. It's really kinda old code Aug 22 18:36:27 deadmund: I think your input needs to be real-symmetric in order for you to get real out of the fft Aug 22 18:36:29 the return is such that the 0th and N/2th frequencies real components are in array indices 0 and 1, and from there on the values are the real and complex values for the components. Aug 22 18:37:10 so apart from the first pair the rest can be handled naturally. Aug 22 18:41:31 alankila: can I PM you? Aug 22 18:42:37 deadmund: going to go AFK for a while, so no Aug 22 18:43:24 alankila: no worries Aug 22 18:43:37 I'll check out your github, hopefully I can figure it out. Aug 22 18:44:24 It is the case that my input is all real (sound) and my output is complex. Typical FFT algorithms all produce mirrored data above the nyquist, so what you're talking holds for my application Aug 22 18:45:29 yes, I use the FFT also for sound data Aug 22 18:45:54 alankila: Is it very fast? Do you have any measurements? Aug 22 18:45:55 this thing I linked to is ready to use code. It should be faster on any v7 device than 17 ms for 1024 real samples. Aug 22 18:46:05 alankila: great! Aug 22 18:46:08 I'm using 2048 point iirc and it returns in 1-2 ms Aug 22 18:46:19 alankila: I see, it's an entire application. Aug 22 18:46:20 but now AFK Aug 22 18:46:46 if i want an and a and an image, do i really have to create 2 xml files or can i just inline one in the other somehow? Aug 22 18:46:48 deadmund: generally R-to-C FFT's don't give you the repeated half, the nyquist point is stored in the complex part of the DC bin Aug 22 18:46:56 all i want is scale an image and add a padding :/ Aug 22 18:47:13 porten: thanks for the help :) Aug 22 18:58:00 i need to scale 8 icons and add padding, do i really have to create 16 drawable xml files then? :/ Aug 22 18:59:19 aep: 8 ImageViews? Aug 22 18:59:59 yeah, plus each of them has a and an Aug 22 19:03:13 i think i'll just not use a Button Aug 22 19:05:41 unless i can create a button with some sort of template parameter that i can instantiate Aug 22 19:10:12 deadmund: also notice you want to build the code for hardfp... there's some options I found it necessary to put on gcc before it happened, not sure if I'm just doing things wrong Aug 22 19:11:23 It seemed to need -mfloat-abi=softfp & then I validated the assembly and it had vfp instructions Aug 22 19:12:07 not sure why that happened, though. Aug 22 19:27:07 How would I go about catching a RuntimeException thrown by the onSurfaceCreated method of a class that implements GLSurfaceView.Renderer? Aug 22 19:27:32 catch(Throwable e) Aug 22 19:30:30 nseidm1: but where would I put the catch? I want to be able to handle the exception outside the class. Aug 22 19:30:37 I'm missing arm-linux-androideabi-4.7 from the ndk. How can I get it? I apparently have 4.6 and 4.8 but the project I'm trying to get working requires 4.7 Aug 22 19:31:32 I'm using a surfaceview. Is it possible to generate a bitmap by drawing a couple of other bitmaps onto that bitmap without it being visible on the screen? Aug 22 19:31:49 If yes -> me glad Aug 22 19:34:09 Kake_Fisk: I'm not quite sure, but the first answer here seems relevant to your question: http://stackoverflow.com/questions/2618355/how-to-blit-in-android Aug 22 19:36:24 It's not exactly what I want, but it looks like it does the same job in some way Aug 22 19:36:57 But thanks, I might be able to use this Aug 22 19:38:00 don't catch Throwable if you want to catch RuntimeException Aug 22 19:38:15 that's a super bad idea that'll backfire Aug 22 19:38:45 RyanM: I didn't intend to :) I'm not actually using RuntimeException directly but my subclass of it Aug 22 19:38:49 Still, thanks Aug 22 19:39:10 So how do I catch it from the main thread? Aug 22 19:41:39 alankila: I'm trying to compile your c code in my project using "build-ndk" and I get this error: http://pastebin.com/RdkKqHay Any ideas? Aug 22 19:43:04 How can I install a toolchain that is missing from the NDK? Aug 22 19:43:35 How I can play a sound from speaker?? Aug 22 19:44:01 An_Ony_Moose: even better :-) Aug 22 19:44:37 RyanM: any idea how I can catch it from the main thread when it's thrown in GLThread? Aug 22 19:45:11 BlackDal: very simple, unofficial tutorial: http://audioprograming.wordpress.com/2012/10/18/a-simple-synth-in-android-step-by-step-guide-using-the-java-sdk/ Aug 22 19:46:02 An_Ony_Moose: Unfortunately, I don't think you can catch exceptions cross-thread in general, but I haven't done enough GL programming to tell you for sure if there's a special affordance for it Aug 22 19:46:26 if you can catch it in the GLThread, you should post a message or a runnable to the main thread. Aug 22 19:47:18 bleh. OK, thanks anyway Aug 22 19:51:09 I figured it out, had to change my Application.mk in my jni/ dir Aug 22 19:51:44 deadmund: The link doesn't help me Aug 22 19:52:45 BlackDal: It explains exactly how to use the speaker to generate sound Aug 22 19:57:40 BlackDal: http://developer.android.com/guide/topics/media/mediaplayer.html Aug 22 19:58:28 yiati: I seen that; but I want to play with speaker; not headset Aug 22 19:59:04 https://gist.github.com/Nyceane/fd4bd5355b6a4aea985e Aug 22 19:59:06 hey guys Aug 22 19:59:18 when I add fragment on top of the stack Aug 22 19:59:26 the background end up changing Aug 22 19:59:27 what is wrong? Aug 22 20:01:58 BlackDal: Okay, you can do that with it Aug 22 20:02:11 yiati: how? Aug 22 20:03:29 BlackDal: Read up on the MediaPlayer class Aug 22 20:04:38 yiati: I read all of that page; if uoy know tell me how Aug 22 20:06:43 BlackDal: Managing audio in Android is difficult, I can't simply "tell you how". You should try to implement it, and ask specific questions if you get stuck. Aug 22 20:07:17 BlackDal: And read more tutorials if you don't know enough. http://www.helloandroid.com/tutorials/musicdroid-audio-player-part-i Aug 22 20:12:33 hello there :) Aug 22 20:13:03 ive got question i cant find a solution for... Aug 22 20:13:20 im trying to navigate back from one dialog to another Aug 22 20:14:40 so in example i have a dialog where the user enters some information... the presses a button in that dialog and another dialog showing progress appears... now if the user dissmisses this progressdialog i want to show the dialog in which he could enter the information Aug 22 20:15:06 Hello! I would like to know more about the Android bit that is killing unused background applications to reclaim memory for example. How is it called? And is there a way to detect it from the application to do a little cleanup before quitting? Aug 22 20:15:20 is this possible ? currently canceling the progress dialog will go back to the activity not the dialog shown before which is not what i want Aug 22 20:15:37 Is there Any public api to allow me to change Profile Photo for Device? Aug 22 20:16:03 also i can see the lifecycle methods of the prevoius dialogs will never be called again its just as the previous dialog vanished ... Aug 22 20:19:27 alankila: Got it working. Thanks for the tip. Now to test for speed! :) Aug 22 20:21:00 Missing SDK platform Android, API 18 Aug 22 20:21:04 Can't pass this :( Aug 22 20:23:16 crised: I just dealt with this. Delete the entire sdk folder and re-download it from google and re-install whatever API's you need. Aug 22 20:23:55 ook Aug 22 20:25:39 New update on my N4 just popped up :| Aug 22 20:25:46 uck Aug 22 20:27:13 Some sort of security update according to the interwebs Aug 22 20:27:24 Single-letter increment in the build number. Aug 22 20:27:54 Hi, anyone know if there's a widget that shows a day of a diary? Aug 22 20:29:02 Is there a minimum version required for C++11? (Assuming NDK version is sufficient) Aug 22 20:32:32 I was hoping there'd be something for showing somebody's tasks for the day, with the hours along the left and events as boxes on the time line, drag and drop, that sort of thing Aug 22 20:34:35 deadmund: ok, good. If it's very slow, make sure it's using vfp Aug 22 20:34:51 im trying to flash a recovery zip through an android app Aug 22 20:34:55 i've successfully done so through adb shell Aug 22 20:34:57 but when i try the same command from within the app i get "segmentation fault (core dumped)" Aug 22 20:34:59 any idea why? Aug 22 20:35:24 jeaye: ndk v9 Aug 22 20:35:29 alankila: Can I pm you? Aug 22 20:35:39 jeaye: at least, that's the first to include gcc 4.8, and gcc 4.8 is the first to include c++11 Aug 22 20:35:46 jeaye: I haven't tracked it any deeper than that Aug 22 20:36:15 jeaye: "you must explicitly enable this option" as per the ndk download page Aug 22 20:37:01 deadmund: oh well, why not Aug 22 20:41:18 dragorn: Right, not NDK. Aug 22 20:41:25 As I said, assuming sufficient NDK Aug 22 20:41:38 Looks like minimum is 15. SDK Aug 22 20:41:40 1.5 Aug 22 20:42:01 jeaye: I'm confused about the question then, c++ is only handled by the NDK Aug 22 20:46:43 hey, is there any documentation for objectAnimator xml? Aug 22 21:01:18 man, anybody here? Aug 22 21:01:28 Yes Aug 22 21:02:34 do you know anything about setCustomAnimations for fragment transition? Aug 22 21:02:46 Nope Aug 22 21:02:48 Does Google? Aug 22 21:02:51 =*( Aug 22 21:04:32 https://developer.android.com/reference/android/app/FragmentTransaction.html Aug 22 21:05:01 we are obviously dong custo Aug 22 21:05:26 it's all about objectAnimator Aug 22 21:05:28 public abstract FragmentTransaction setCustomAnimations (int enter, int exit) Added in API level 11 Set specific animation resources to run for the fragments that are entering and exiting in this transaction. These animations will not be played when popping the back stack. Aug 22 21:05:34 Seems pretty straight forward to me? Aug 22 21:05:42 ok, how do you zoom? Aug 22 21:05:54 during the animation, i need the objectAnimator to perform scaleXY Aug 22 21:06:00 but there is no such property name as scaleXY Aug 22 21:06:47 the only example you get google is using alpha Aug 22 21:06:51 or flip Aug 22 21:06:55 I do not need either of them Aug 22 21:07:05 Well judging by the looks of things, as part of your transaction you need to supply the resource ID of 2 animations Aug 22 21:07:13 Define your animations for the visual effects you want Aug 22 21:07:21 And add them to the fragment transaction Aug 22 21:07:29 I guess when you commit it, the animations will run Aug 22 21:07:37 Seems quite straight forward Aug 22 21:07:52 the part that's not straight forward is how do you write the ObjectAnimator in xml Aug 22 21:08:00 there isnt much documentation on that Aug 22 21:08:03 meetoman there have been quite a few videos on animations in the google+ developer channel. not my area, but maybe you will find something there Aug 22 21:08:38 alright, let me go look it up Aug 22 21:09:19 http://www.youtube.com/playlist?list=PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0 Aug 22 21:09:41 they gota make tehse in text form so I can find them on google ;) Aug 22 21:09:48 i wish this stuff was integrated with d.android.com, seems like shit is flying everywhere Aug 22 21:10:07 Create zoom.xml in /res/anim and add this: Aug 22 21:10:34 http://pastebin.com/C2Ma3VtG Aug 22 21:10:56 In your transaction add this: Aug 22 21:11:27 lovethang_, that wont work, because those are pre 3.0 animations, it only takes objectAnimator Aug 22 21:11:28 .setCustomAnimation (R.anim.zoom, R.anim.zoom); Aug 22 21:11:32 It will get you started no? Aug 22 21:11:51 you get java.lang.RuntimeException: Unknown animator name: scale Aug 22 21:12:07 I've already started, for past hour lol Aug 22 21:12:22 Just an hour? You have barely begun Aug 22 21:12:28 I've never used animations Aug 22 21:12:36 i did, just not this custom Aug 22 21:12:48 client wants zoom out and zoom in at the same time between 2 fragments Aug 22 21:12:53 at least i m getting paid lol Aug 22 21:13:02 You cannot really get that effect without some kind of alpha change also? Aug 22 21:13:37 oh hi~ Aug 22 21:13:45 Oh hey Aug 22 21:13:57 coders ! Aug 22 21:14:01 lovethang_, i got fade in and fade out working, but they want zoom in and zoom out Aug 22 21:14:02 coders at last ! Aug 22 21:14:02 =| Aug 22 21:14:07 coders everywhere ! Aug 22 21:14:25 meetoman: I am saying you will need to change alpha AS WELL as zoom, otherwise you cannot see both a zoom out and a zoom in at once Aug 22 21:14:28 hi Jivay Aug 22 21:14:36 meetoman: One will cover the other and it will look very silly Aug 22 21:14:44 I know, I dont know how to change zoom =( Aug 22 21:14:48 hi @meetoman =) Aug 22 21:15:02 objectAnimator is really badly documented Aug 22 21:15:33 It can't be as bad as Android Studio ? Aug 22 21:15:45 Google tells me it has approx 125k results, I'd say that was pretty well documented Aug 22 21:17:41 Jivay, nothing is as bad as Android Studio ;) Aug 22 21:17:47 Anyone here has experienced problems building projects with Android Studio using GooglePLayService ? Aug 22 21:18:06 meetoman: http://stackoverflow.com/questions/4932462/animate-the-transition-between-fragments This shows how to do it no? Aug 22 21:18:30 like, library looks linked to the project since AS gives auto-completion, but the built APK can't find any class or resource from the libs ? Aug 22 21:18:40 slide in left, right, alpha Aug 22 21:18:43 i know how to do those Aug 22 21:19:28 meetoman: You are not reading the link closely enough Aug 22 21:19:31 alright Aug 22 21:19:34 i think i might found something Aug 22 21:19:37 https://github.com/kedzie/Support_v4_NineOldAndroids/blob/r13/sample/res/animator/fragment_open_enter.xml Aug 22 21:19:44 might, let me try this out Aug 22 21:19:50 "Note that you can combine multiple animators using , just as you could with the older animation framework." Aug 22 21:20:08 I'm trying to build my android app with the facebook SDK but I get: tools/ant/build.xml:726: Compile failed; Aug 22 21:20:10 Why is that Aug 22 21:20:28 apparently i gota use scaleX and scaleY seperately, but this is no where to be found lol, I can't even find the propertyName list anywhere Aug 22 21:20:40 meetoman: source.android.com ? Aug 22 21:23:14 something really wierd happend to me: Aug 22 21:23:20 well, first of all, following all android's rule, this is not even linked anywhere Aug 22 21:23:25 makes it hard to search for android source Aug 22 21:23:36 because if its @property/alpha Aug 22 21:23:41 my adb stoped working (device offilne problem) so i updated the SDK tools Aug 22 21:23:42 then I can search for @property and get the rest of the data Aug 22 21:23:59 then i wanted to update the PATH variable for the adb Aug 22 21:24:01 works Aug 22 21:24:03 yay!!! Aug 22 21:24:09 \o/ Aug 22 21:24:25 so i removed it and restarted, the wierd part, is that adb works without been in the path!!!! Aug 22 21:24:44 eclipse or studio ? Aug 22 21:25:23 alright, i made $250 to get this one stupid thing working, makes me feel really dumb -_- Aug 22 21:25:36 meetoman: Well done, you solved it Aug 22 21:25:46 and i am not being sarcastic... Aug 22 21:25:57 meetoman: You mean to say you're actually going to bill your client for incompetence? Interesting. Aug 22 21:26:22 thanks, if you need to know how to do it, https://github.com/kedzie/Support_v4_NineOldAndroids/blob/r13/sample/res/animator/fragment_close_exit.xml that's your answer :) Aug 22 21:26:42 hey, i told them fade in and fade out is already done, they insisted Aug 22 21:28:17 The problem with lies is that one day you won't find someone like me to help show you how Google works lol Aug 22 21:29:02 well, i kinda didnt rely on google in the end Aug 22 21:29:15 I searched through github Aug 22 21:29:35 So in a way you could have solved this without having been in the channel at all Aug 22 21:29:37 Interesting Aug 22 21:30:35 yah, but thanks for the help tho Aug 22 21:31:43 That's ok lol Aug 22 21:45:58 I should probably change the help text to something other than "Scroll the list and finger yourself to login" Aug 22 21:48:51 Give me the password to your heart. Aug 22 21:49:27 Passwords are dead Aug 22 21:49:31 LockPatterns ftw Aug 22 21:50:05 doesn't seem like they'd have a whole lot of entropy... Aug 22 21:51:00 I've got mine configured as a 4x4 grid with a minimum of 4 connections and the output is passed through SHA256 with secret salt Aug 22 21:51:36 For my needs this is quite sufficient and very quick for the staff to login than trying to enter a password on the awful Android keyboard Aug 22 21:51:59 alankila: IIRC, there's something like 400,000 valid patterns for the default android pattern lock Aug 22 21:52:08 so each choice you make has about 3 bits of entropy or a bit less depending if it's an edge tile, and minimum requirement of 4 connections results in 4*3 = 12 bits of entropy. Aug 22 21:52:15 that's more than sufficient for my phone, IMO (given that it locks after N trials anyway) Aug 22 21:52:19 That's a 4x3 grid? Aug 22 21:52:26 lovethang_: 3x3 Aug 22 21:52:37 I did play with 5x5 but it seemed a bit too much Aug 22 21:52:56 would this be the correct place to ask questions about the Google Play Android Developer API Aug 22 21:52:59 in other news: http://xkcd.com/538/ Aug 22 21:53:34 Rubber hose attack Aug 22 21:53:40 is android some day going to decrypt filesystem based on user's lock pattern Aug 22 21:54:21 iOS had something of the sort. If user isn't in front of the device, some portion of the filesystem is actually crypted and not accessible until the correct pattern has been entered. Aug 22 21:54:43 ^ You mean BSD? Aug 22 21:54:58 I find it funny how after stealing something, Jobs renamed it and it became "his" Aug 22 21:55:16 I am not aware of any bsd phone, sorry. Aug 22 21:55:33 Exactly my point, most people aren't aware that Jobs was a grand thief Aug 22 21:55:44 Taking the work of others and passing it off as some divine inception Aug 22 21:56:31 there are a few factors to success. Aug 22 21:56:45 Of course Aug 22 21:56:47 capability is only one of them. capability, opportunity and luck are the sort of things actual success is made of. Aug 22 21:56:48 alankila, lock pattern isn't secure enough, so you cannot use it for filesystem encryption Aug 22 21:56:59 Stealing, lies, deception etc. Aug 22 21:57:37 Anyway whenever apple does something pretty awesome like the time machine thing, there's always a bunch of geeks who turn up and complain how this is nothing new and they could have done this on their linux/bsd/unix/whatever in the 1993 if only they wanted it. Aug 22 21:58:05 Although you could use it to encrypt something small like a key which was used to encrypt a filesystem Aug 22 21:58:08 so I will say one thing to defend jobs that some people seem intent on missing: technology alone doesn't matter. technology in hands of many users who can also use it: that matters. Aug 22 21:58:53 I think quite a few people were using BSD before Jobs stole it and called it iOS Aug 22 21:59:27 I think the only thing Apple ever gave back was CUPS Aug 22 21:59:44 Sun was a huge gift giver, as is Google Aug 22 21:59:50 Even Oracle to some degree Aug 22 21:59:55 Never Apple other than CUPS Aug 22 22:00:26 lovethang_: I'm not a huge Apple fan, but they have tons of OSS. Aug 22 22:00:32 Does anyone have any idea why I am getting this error "This developer account does not own the application." when trying to access the Google Play Android Developer API? Aug 22 22:00:37 WebKit is a HUGE example. Aug 22 22:00:42 LOL Aug 22 22:00:52 That was stolen from KHTML Aug 22 22:00:54 In the KDE project Aug 22 22:00:57 Do some homework lol Aug 22 22:00:57 even android runs some apple stuff, like webkit and llvm. Or is webkit originally kde stuff now? Whoever made llvm before apple put effort in it? I don't know nor care Aug 22 22:01:32 lovethang_: yes...stolen. It was a clear case of theft when Apple used their open source software, improved it dramatically, then released it open source. Aug 22 22:01:36 How evil of them. Aug 22 22:01:46 I only remember that webkit was pure shit until apple put a few years of engineering effort into it. I remember when they said they'd base work on khtml rather than gecko because khtml was more easily hackable and thought they were fools given how far behind it was Aug 22 22:01:56 RyanM: Yes I get you, but to me theft is also a moral thing. It's wrong for someone to take a lot and give a little Aug 22 22:02:07 Give more than you take, why not? Aug 22 22:02:28 lovethang_: Yes, again, they took SO much without giving back when they released the whole thing as open source. Aug 22 22:02:39 Very immoral, that. Aug 22 22:03:05 In fairness Apple didn't do *that* much to change it to WebKit, the bulk was already done by the KDE project (which as we all know is the best DE that has ever existeD) Aug 22 22:03:33 anyway I was wrong. Evidently the engineers who chose khtml were smarter than me, or at the very least knew the situation better than I did Aug 22 22:03:49 RyanM: They have no choice but to release it as OSS since it was GPL to start with so they were required to Aug 22 22:03:59 Unlike BSD which they weren't required to and never did Aug 22 22:04:52 I hacked some crap into kjs to get it to run some javascript code I had written -- the Date object was bare bones. The konqueror browser was really pretty miserable at that time. Aug 22 22:05:16 now kjs is not same as khtml, but anyway. It was pretty far behind the competition in any event. Aug 22 22:05:29 I totally loved Konqi with KIO slaves, calling it a web browser was the greatest injustice. But things did somewhat fall to pieces for it which was a shame Aug 22 22:19:17 since I installed egit plugin into eclipse,eclipse is crashing constantly. for example when I close or minimize an extra windows in the workspace the program force closes. Has anyone experienced this witheclipse? Aug 22 22:19:32 I have uninstalled egit plugin but the problem persists:( Aug 22 22:41:18 so, the hamberger actionbar widget, is that part of a support lib or anything? Aug 22 22:42:04 where does google music get its albumart from? they are not in the MediaStore Aug 22 22:42:34 the internet? Aug 22 22:42:57 i thought they maybe expose a contentprovider Aug 22 22:45:53 oh that'd be awesome, no idea Aug 22 23:24:38 Is there any way to force GridView elements to match the height of their siblings? Aug 22 23:24:57 Question does anyone have an idea how to set a callback once a View is out of the ViewPager ? Aug 22 23:31:02 BojanBG: http://developer.android.com/reference/android/support/v4/view/PagerAdapter.html should give you what you need Aug 22 23:31:21 BojanBG: pogledaj setCurrentItem Aug 22 23:32:48 ne ne Aug 22 23:33:03 a viewpager shows only one view Aug 22 23:33:14 No man other views are cached Aug 22 23:33:16 there's also destroyitem Aug 22 23:33:17 behind Aug 22 23:33:43 depending on the integer you set for the amount of views you want cached Aug 22 23:33:48 true, depending on what you set the cache to be Aug 22 23:33:57 destoryItem should be called when the view is removed though Aug 22 23:34:05 ok, what I need is a callback to fire when it's out of view Aug 22 23:34:08 that's it Aug 22 23:34:30 I can get something similar with getUserVisibleHint Aug 22 23:34:45 but id want a callback implementation Aug 22 23:34:58 ah not aware of a callback. Aug 22 23:35:18 but should be pretty simple to implement unless i'm missing something big Aug 22 23:39:33 funkbox, hvala :) Aug 22 23:45:16 np Aug 23 00:16:30 hi. Aug 23 00:17:06 the spinner looks different on diff phones , some display default values and others don't. how can I make spinners look same across devices? Aug 23 00:39:44 This has to be the stupidest question of the year - but if there is a choice between two Criteria's, and they both have the same constant value - it doesn't matter which one I use right? One has an API level 9 while the other has api level 1... Aug 23 00:45:17 roler: That is *far* from the stupidest thing someone has asked yet this year ;-) Aug 23 00:45:32 lol Aug 23 00:45:34 Are you referring to the int constants in the class? Aug 23 00:45:40 yes Aug 23 00:47:56 Yes, they will produce the same result if their constant value is the same. Aug 23 00:49:26 Just keep in mind that they aren't necessarily intended to be used in the same way, so if you use the wrong set, your code might make less sense or produce unintuitive results Aug 23 00:50:28 specifically, note that the only methods that return HIGH/MEDIUM/LOW are API 9 methods. Aug 23 01:01:09 Does DrawerLayout support horizontally scrollable content? Aug 23 01:01:14 inside the drawer? Aug 23 01:11:50 _Embedded Android_ is 50% off today at oreilly.com Aug 23 01:16:05 Hi question I have a onclicklistener on a child view for which when a click is detected I don't want it to be propagated onto the top parent views. How would you do that? Aug 23 01:24:52 BojanBG i tried finding the method in View class, holy dang there are too many methods in there Aug 23 01:25:06 that page kills my browser :| Aug 23 01:25:09 What do you mean :) Aug 23 01:25:32 i thought there was a method there for not dispatching the touch event Aug 23 01:26:23 yeah, i suck at ui. somebody else will have to help Aug 23 01:26:26 :D Aug 23 01:26:34 cheers :) Aug 23 01:27:33 http://stackoverflow.com/questions/10042142/how-to-consume-child-views-touch-event-in-parent-views-touchlistener Aug 23 01:27:40 dispatchTouchEvent Aug 23 01:28:48 was hoping not to have to extend the view :D Aug 23 01:28:59 hm Aug 23 01:29:27 I got a idea ;) Aug 23 01:29:28 Cheers Aug 23 01:43:42 Hello everyone, I'm recently seeing reports from Galaxy Note 8 running 4.2.2 crashing when trying to load a native library that has been working for ages. it's throwing the java.lang.UnsatisfiedLinkError: Couldn't load….. Anyone has idea about this problem?? Thanks so much Aug 23 01:50:58 Seems like a dependencs of that lib is no longer present. Aug 23 01:56:23 BtbN: weird thing, a customer reported that my app cannot be found on playstore anymore Aug 23 01:57:13 maybe google does some automatic checking for such errors, and hides the app on incompatible versions? Aug 23 02:42:21 BojanBG: generally if your child handles the click event then it's not passed to the parent. If you want the parent to prevent the child from getting it, you can use onInterceptTouchEvent in the parent, or if you want the child to prevent the parent from intercepting it you can use requestDisallowInterceptTouchEvent Aug 23 02:42:53 kevinb ah, thats the method i was looking for Aug 23 02:43:29 heard it mentioned a few days ago, forgot it :( Aug 23 02:43:54 overriding dispatchTouchEvent could work too, but messier Aug 23 02:44:54 Hm... but isnt click something way different then touch Aug 23 02:45:06 onClickListener is generated from calculations of touches Aug 23 02:45:15 true? Aug 23 02:45:49 hrm i guess click also get triggered by using a d-pad and then pressing the click button Aug 23 02:45:55 but generally it's from touches Aug 23 02:46:36 yeah, and it doesn't have any response to inform any parent that some one else handled the click Aug 23 02:46:40 a view can either be clickable or not, adding a onClickListener makes it clickable. if both a view and its parent are clickable, and you click on the view then the parent's onClickListener does not get called Aug 23 02:46:41 you can only do that from touches Aug 23 02:46:59 however if the view is not clickable, and you "click" on it, then the parents onClickListener gets called Aug 23 02:47:01 hmmm, well in my case both get triggered Aug 23 02:47:18 both child and parent Aug 23 02:47:25 they receive onClick event Aug 23 02:47:48 curious Aug 23 02:48:01 what view types are they? Aug 23 02:48:13 Child is a FrameLayout Aug 23 02:48:56 Trying to find parent :) Aug 23 02:48:57 sec Aug 23 02:49:35 Aham, it's ViewPager -> gestureListener -> onSingleTapConfirmed Aug 23 02:49:39 hah :) Aug 23 02:50:25 I gotta get that rubber ducky for debugging :) Aug 23 02:50:33 haha Aug 23 02:50:44 cheers m8 Aug 23 02:50:49 no problem Aug 23 02:53:46 is it possible to move a fragment from one framelayout to another? **** ENDING LOGGING AT Fri Aug 23 02:59:58 2013