**** BEGIN LOGGING AT Sun Apr 20 02:59:58 2014 Apr 20 03:00:07 17.8%... Apr 20 03:00:44 I wish Google could offer more geographically specific details with regards to API distribution. Apr 20 03:01:26 MDTech-us_MAN: I don't develop for below ICS. Apr 20 03:01:40 Sorry. Apr 20 03:06:21 anyone real familiar with RxJava Apr 20 03:06:47 MDTech-us_MAN: goto settings->about->Android Version Apr 20 03:07:05 wondering who to make an 1 Observer which only fires once, and then another that continues to fire unless specifically unsubscribed Apr 20 03:08:58 why is it so hard to set text to be centered vertically in a textview? i’ve been told using setGravity(Gravity.CENTER) should be enough, but it still centers only horizontally, and is vertically centered to the top Apr 20 03:09:00 i’m not using any xml Apr 20 03:15:10 ultra-: try Gravity.CENTER_VERTICAL Apr 20 03:15:48 i can just set this once when i create the TextView, right? Apr 20 03:16:04 strangely, CENTER_VERTICAL sends it to the default top left Apr 20 03:16:48 how many layouts and what are they ? are they nested ? Apr 20 03:17:01 it’s just a textview on a viewgroup Apr 20 03:17:08 custom viewgroup Apr 20 03:17:32 g00s been around? Apr 20 03:17:54 i also tried Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL, but that puts it in the top middle again Apr 20 03:25:26 HELP! Apr 20 03:27:13 I get this error when I conver from Object to my class. http://pastebin.com/HpQ5qFbu Apr 20 03:27:27 my class: http://pastebin.com/90xS5mwP Apr 20 03:27:58 ultra-: do you have your textview set for maxLines? or multiline false? Apr 20 03:28:13 those would be set as default Apr 20 03:28:17 i do want to make it multiline though Apr 20 03:28:28 Could someone please help me add a shadow to a linear layout Apr 20 03:28:42 a shadow that looks similar to the shadow on a action bar on the stop of the scren Apr 20 03:28:50 ultra-: I think I found your answer ... https://groups.google.com/forum/#!topic/android-developers/SBv9_-h9uTA Apr 20 03:28:54 I have done anlot of research and none really work Apr 20 03:29:07 ProjectBarks: http://stackoverflow.com/questions/13005714/how-to-show-shadow-around-the-linearlayout-in-android Apr 20 03:29:19 ultra-: what i'm saying is if you aren't getting a vertical centering then you must be limiting it Apr 20 03:29:42 I get this error when I conver from Object to my class. http://pastebin.com/HpQ5qFbu Apr 20 03:29:47 MDTech-us_MAN, this produces me a solid shadow Apr 20 03:29:53 I am looking for a blured shadow Apr 20 03:30:03 my class: http://pastebin.com/90xS5mwP Apr 20 03:30:11 shmooz: thanks, i’ll try to figure this out Apr 20 03:30:12 projectbarks you haven't done alot of research, there are a million examples on google Apr 20 03:30:49 canvs2321-, None of them seem to fit Apr 20 03:30:59 ultra-: good luck, I suspected it would be because of the viewgroup Apr 20 03:31:24 blurred shadow you can check out BlurMaskFilters etc Apr 20 03:31:26 canvs2321-, I am using a linear layout as a background for some functions and I cannto seem to find a way to make that linear layout have a shadow Apr 20 03:31:37 ProjectBarks: http://stackoverflow.com/questions/5523936/how-to-get-shadow-on-android-linear-layout Apr 20 03:32:26 MDTech-us_MAN, this answer also doesnt work because I cant have a src and background Apr 20 03:32:26 ProjectBarks: you need to be more specific, like link to where you see other apps doing what you want, a shadow is pretty vague, blurred shadow is getting closer, but be specific if ya can Apr 20 03:32:30 I only have a background Apr 20 03:33:00 canvs2321-, Lemme screenshot my screen Apr 20 03:33:23 I get this error when I convert from Object to my class. http://pastebin.com/HpQ5qFbu Apr 20 03:33:27 my class: http://pastebin.com/90xS5mwP Apr 20 03:33:45 mdtech-us_MAN: calm down with the constant spamming Apr 20 03:34:03 kkk Apr 20 03:35:51 canvs2321-, I provided a image example Apr 20 03:35:52 http://prntscr.com/3bo2tp Apr 20 03:36:56 in your linearlayout if set to orientation vertical, add a view say 4dp-6dp or so that has a alpha'd gradient or nine patch Apr 20 03:38:07 Ok Apr 20 03:39:21 canvs2321-, know any drawable gradient code that would look similar to my desired result? Apr 20 03:39:24 gradient from top to bottom could be 0x11000000 to 0xFF(hexCodeToMatchNextViewOrLayoutInsideLayoutColor) Apr 20 03:39:27 is calling .layout and setting the rect bounds pretty much the same as making layout params? Apr 20 03:40:17 but think if setting 4dp to 6dp height you'll get a gradient with 4 to 6 colors Apr 20 03:40:55 a nine patch, or layerlist may give you better control Apr 20 03:41:56 Do you have any good ninepatchs that would work well in this scenario Apr 20 03:42:41 do you have for the bottom? Apr 20 03:42:49 ProjectBarks: isn't that shadow more like at the top of your map instead of the bottom of action bar ? Apr 20 03:43:00 Yes Apr 20 03:43:05 its overlayed on the map Apr 20 03:43:23 Yes Apr 20 03:44:12 shmooz, what do you mean its overlayed on the map Apr 20 03:44:21 And canvs2321- I do Apr 20 03:44:38 not sure what, but I would guess that you'd need to theme it with a pattern image that has that shadow and set transparency Apr 20 03:44:41 if yes to me, just play around with adding Apr 20 03:45:22 and your @drawable can be a shape gradient or a layerlist with 6 levels of colors with changing alphas etc.. Apr 20 03:45:47 and with a layerlist you would just keep pushing the top down +1 on each level of the list Apr 20 03:47:00 but i'd keep your top level LinearLayout with no background to allow the View to have a transparent oversight on your map Apr 20 03:47:10 and set the colors for your nested linearlayouts to the opaque Apr 20 03:48:51 Bhttp://prntscr.com/3bo5rq I used a gradient Apr 20 03:48:53 and got that Apr 20 03:49:23 the gradient on the right? small pic Apr 20 03:49:30 if so change your angle Apr 20 03:49:44 on the gradient Apr 20 03:49:57 The background color on the drawable isnt transparent Apr 20 03:50:23 you gotta add the alpha to the color Apr 20 03:50:34 FF is fully opaque 00 is fully transparent Apr 20 03:50:41 ahttp://pastebin.com/6FbCWvcN Apr 20 03:50:44 I have this Apr 20 03:50:45 looks like tasker may be my solution Apr 20 03:51:00 exampe FFFFFFFF is full opaque white, 11FFFFFF is a almost completely transparent white Apr 20 03:51:34 center color is missing # Apr 20 03:51:34 canvs2321-, Apr 20 03:51:57 that you wanted a top bottom gradient, change your angle Apr 20 03:51:59 Same issue Apr 20 03:52:01 that = thought Apr 20 03:52:37 you have a background set on parent layout then if not transparent, or set parent background to #0000 Apr 20 03:54:40 http://pastebin.com/rXMX1fjm you were right the view has a background color Apr 20 03:54:44 I didnt set it Apr 20 03:54:51 but How do I make the view transparent Apr 20 03:55:22 no the view gets the gradient as the background, the top LinearLayout needs a transparent background Apr 20 03:55:44 the view is only there to show the shadow Apr 20 03:55:55 -_-. See how there is no code ther Apr 20 03:55:56 the parent of that view needs a transparent background Apr 20 03:56:01 Like nothing sets the background Apr 20 03:56:03 See that Apr 20 03:56:19 i see that, where is the gradient being set then? Apr 20 03:56:39 http://prntscr.com/3bo7j7 Apr 20 03:56:41 that view Apr 20 03:56:46 with no background Apr 20 03:56:49 has a background Apr 20 03:56:57 this my gradient isnt fully transparent in the fade Apr 20 03:57:05 it has that view background with it Apr 20 03:57:17 goodness, you are making this too hard :) Apr 20 03:57:35 the has one purpose, to have the gradient set as background Apr 20 03:57:54 I knpw Apr 20 03:57:57 I removed that code Apr 20 03:58:02 I am trying to show a point Apr 20 03:58:22 see how that view is grey Apr 20 03:58:24 in my screenshot Apr 20 03:59:34 Apr 20 03:59:44 I see that, and i also see you didn't set the background to the gradient Apr 20 03:59:59 Never mind Apr 20 04:00:03 I am an idiot Apr 20 04:00:09 if it's grey, it's because that is default Apr 20 04:01:14 you got it then? Apr 20 04:01:42 wow and I thought I was working hard to help people here lol Apr 20 04:02:08 :) only when i'm drinking haha Apr 20 04:08:04 Thanks so much canvs2321- Apr 20 04:09:19 np :) Apr 20 04:13:54 Koolaids- can i get some c# help? Apr 20 04:15:13 high. I'm using a dialogfragment, and I'm having a problem where the dialog box closes when I click OK even though I haven't told it to Apr 20 04:15:16 how to prevent this Apr 20 04:15:28 canvs2321-: possibly - whatup? :P Apr 20 04:16:11 I've overriden the onClick event Apr 20 04:23:54 Koolaids-: you read the second accepted answer here? http://stackoverflow.com/questions/2620444/how-to-prevent-a-dialog-from-closing-when-a-button-is-clicked Apr 20 04:38:22 hello Apr 20 04:39:21 I have a ??? Apr 20 04:43:46 is ??? a new VD? Apr 20 04:43:56 if so maybe see a dr Apr 20 04:44:51 for every new fragment I change actionbar title, but when I press back button, acction bar title dosen't match with correspond fragment from backstack Apr 20 04:45:54 any solution? Apr 20 04:46:44 how are you changing title when new? Apr 20 04:47:08 how/where Apr 20 04:47:28 hi Apr 20 04:48:20 how can i project pdf file from user copy , in android app, where should i save it that don't let users to copy and how can i protect it Apr 20 04:48:40 canvs2321-: http://paste.ubuntu.com/7289064/ Apr 20 04:48:59 molavy: exempting root users? Apr 20 04:49:37 canvs2321-: ok Apr 20 04:50:10 what is individual way Apr 20 04:50:12 ? Apr 20 04:50:26 slani: you will should change that setting title to when your fragment onResumes or CreateView's, have it call your main activity to set it, or in your activity have a listener for when back press to set to corresponding current fragment Apr 20 04:50:50 your apps data directory or anywhere you app has sole permissions Apr 20 04:51:40 molavy: but when root anyone can read anytime, without root you keep it where your app has read permissions Apr 20 04:54:05 canvs2321-: thanks! Apr 20 04:55:05 yep Apr 20 05:04:37 canvs2321-: give me some keyword please Apr 20 05:05:29 is there a step by step guide to protect some files that only open by software or protect a folder to access only by app Apr 20 05:06:56 molavy: http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Apr 20 05:11:23 nice to be root :D Apr 20 05:20:11 slani: files or pdf and large , is there a way protect file while saved on sdcard Apr 20 05:20:15 external storage i mean Apr 20 05:23:26 hi! is it possible to dlopen a shared library that were build for x86 android in ubuntu x86 for example? Apr 20 05:24:20 slani: files are pdf and large Apr 20 05:40:40 molavy: I don't know. maybe you can encrypt them. Apr 20 05:41:07 Caution: External storage can become unavailable if the user mounts the external storage on a computer or removes the media, and there's no security enforced upon files you save to the external storage. All applications can read and write files placed on the external storage and the user can remove them Apr 20 05:54:01 ok, it is not important if user delete them , it forced to download them again , it is important that can't share and copy it , i just want app can read and open pdf files Apr 20 05:56:39 your own created pdf files? Apr 20 05:57:30 any good tutorial how to creat custom navigation drawer (coretc way) with icons Apr 20 06:43:08 there's one on d.android.com Apr 20 06:55:33 hey is there a way to clone an entire UI element? Or at least mass-copy it's attributes rather than do them 1 by 1? Apr 20 06:57:17 maybe save the state in a bundle and load it from that bundle into another view Apr 20 06:58:43 I've been looking for a way to access the internal apis for a long time.Is there anyway?I want to change the network type.. Apr 20 06:58:45 abd push appsname.apk /system/app ...... results >>>> /system/bin/sh: push: not found .. can anyone tell me what is missing? Apr 20 06:59:21 I'm used to do the same command on previous versions of adt Apr 20 07:00:55 koolaids- it's called style/themes Apr 20 07:02:17 Oh my god Apr 20 07:02:22 My life has suddenly been made way easier Apr 20 07:02:56 <3 Apr 20 07:25:47 Oh wow that's gay Apr 20 07:25:52 you can't set styles programatically Apr 20 07:25:55 how fucked is that Apr 20 07:48:16 Fuck sake Apr 20 07:48:29 I updated the AndroidManifest.xml and it still keeps launching the wrong activity Apr 20 08:16:21 Guys Apr 20 08:16:23 Please help me Apr 20 08:16:42 I updated my AndroidManifest.xml to change the default activity, but it keeps launching the wrong activity Apr 20 08:16:43 what do? Apr 20 08:17:54 fukn RAWWWWWWWWWWWWWRRRRRRRRRRRRRRRRRRRR Apr 20 08:17:57 NEED HELP Apr 20 08:18:00 GOOGLE NOT USEFUL Apr 20 08:18:04 GAWDDAAAAAAAAAAAMN Apr 20 08:19:49 Ok it's all good I sus'd it - it had something to do with my IDE Apr 20 08:25:52 why is my screen full of Koolaids- spam :S Apr 20 08:27:27 I've been having a monologue it seems Apr 20 08:27:28 :P Apr 20 08:27:39 I'm using this screenshot script in ubuntu: adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png . it works when i write it, but not as an alias. any idea why? Apr 20 08:30:07 what's the error? Apr 20 08:34:35 God I fucking love these packet lattes Apr 20 08:34:56 Yanno the ones that have coffee+creamer+flavor all in one sachet? Apr 20 08:34:59 So good Apr 20 08:35:19 I should be a salesman for Nescafe, I'm that passionate about them Apr 20 08:36:50 bankai_au: Fatal error reading PNG image file: PNG file corrupted by ASCII conversion Apr 20 08:37:11 the image size is bigger when i do it with the alias Apr 20 08:39:20 well, i changed it to a bash function with paramter for the file name and it works :| Apr 20 08:43:10 How can I check if a camera is available? Apr 20 08:44:19 Yanno what I find weird about android? All the ui element ids go into the same namespace. So if you have one window that has a bunch of controls in it, another window can't use those same names Apr 20 08:44:24 weird shit Apr 20 08:44:52 Yeah it can Apr 20 08:45:18 Unless I am misunderstanding you Apr 20 08:45:47 but if I have layout main_activity with a textview where textview has attribute android:id="@+id/textview_a_text_view" Apr 20 08:46:02 i can have another layout other_activity with a textview also with the attribute android:id="@+id/textview_a_text_view" Apr 20 08:47:01 in fact this is very, very helpful in case of leveraging the xml pointer folders for different screen types, since all my landscape/portrait/small/large/etcetc can all have the same 'Title' textview with the same id Apr 20 08:47:27 hmmmm.....really? Apr 20 08:47:29 also helpful with fragment side-by-side setups Apr 20 08:47:44 bankai_au: (yeah thats what i mean) ;p Apr 20 08:48:56 Well my IDE fucks with my head because when I go R.id.* it brings up a list of every id in my application Apr 20 08:49:07 so I got the idea that each id can only be used once Apr 20 08:49:09 interesting Apr 20 08:50:12 bankai_au: or anyone, happen to know, can a remote service via AIDL actually write to disk in the 'internal' file path space of another app? Apr 20 08:58:16 how can i capture my app's force closes on user's phone and report back? like emailing to an email account? Apr 20 09:00:51 omid8bimo: there is google analytics or you can use other third party library like acra Apr 20 09:02:27 lasserix: can you gimme a link about using google analytics in android app regarding this purpose?? Apr 20 09:02:50 https://www.google.com/analytics/mobile/ Apr 20 09:03:08 although i like acra : http://acra.ch/ Apr 20 09:03:50 i read about this class; ApplicationErrorReport, but i didnt get where does the report go? submitted to google play market or somewhere else? Apr 20 09:04:48 what is applicationerrorreport? Apr 20 09:04:52 if you mean acra Apr 20 09:04:53 What's wrong with this code? http://pastebin.com/7Xhayc4B Apr 20 09:04:59 you define how you want to forward the crash report Apr 20 09:05:10 you can send it to a server via a post or put, send it as an email Apr 20 09:05:11 etc Apr 20 09:05:16 When I turn the device (change the rotation) the fragment no longer hides Apr 20 09:05:25 (when startRecord is called) Apr 20 09:05:43 Moony22: is it crashing? Apr 20 09:05:46 lasserix: ApplicationErrorReport is a class added in API 14 for errorReporting, but doesnt say where the reported error goes to! Apr 20 09:05:49 lasserix: nope Apr 20 09:06:02 It just doesn't hide the fragment after rotating Apr 20 09:06:04 omid8bimo: i have no idea, i am assuming if you look at dev docs its something you have to set Apr 20 09:06:15 lasserix: yea i guess Apr 20 09:06:33 moony22 maybe because you are doing commitallowingstateloss? Apr 20 09:06:42 eg. startRecord is called & fragment hidden. Turn the device, call startRecord again and the fragment does not hide Apr 20 09:06:59 hmmm Apr 20 09:07:00 moony22 is this a non ui fragment? Apr 20 09:07:08 lasserix: it is a ui fragment Apr 20 09:07:25 if uhh Apr 20 09:07:26 well Apr 20 09:07:36 media recorder shouldn't be subject to rotation changes Apr 20 09:07:48 so i would probably put it in a non ui fragment with callbacks to your ui fragment Apr 20 09:08:03 using setretaininstancestatetrue in oncreate of the non ui fragment Apr 20 09:08:23 mediarecorder is not in this fragment Apr 20 09:08:56 oh Apr 20 09:09:04 well i am guessing its cause you are commiting with state loss Apr 20 09:09:20 I just tried using commit(), same issue Apr 20 09:09:38 did you check if the fragment is null? Apr 20 09:10:03 actually your code is confusing me now, a fragmenttransation is not a fragment Apr 20 09:10:07 It isn't Apr 20 09:10:10 "config" is the fragment Apr 20 09:10:29 is config null? Apr 20 09:10:48 I initialised it in onCreate, it shouldn't be Apr 20 09:10:49 is config already hidden and you actually are calling hide on some other fragment? (ie you've created two fragments?) Apr 20 09:11:09 wheres the code that retrieves the config fragment after rotation? Apr 20 09:11:40 one sec Apr 20 09:12:21 that actually is a good point Apr 20 09:13:43 well, onCreate is called during rotation Apr 20 09:14:06 yeah but are you adding your fragment with a tag, trying to find the fragment with that tag Apr 20 09:14:16 if null creating it and adding it otherwise just doing the init in your oncreate? Apr 20 09:14:53 otherwise you'll be recreating the fragment each time and so maybe the hide is not actually happening on the fragment you created but the one underneath it or the one above it (ie on the duplicate, so it does hide, but you still have a nother one visible) Apr 20 09:17:07 lasserix: this is a piece of code I tried: Apr 20 09:17:23 http://pastebin.com/K1Xxu5my Apr 20 09:17:25 in onCreate Apr 20 09:18:03 now I'm just getting a nullpointer when rotating Apr 20 09:18:09 yeah Apr 20 09:18:12 so basically Apr 20 09:18:25 you are creating a new fragment each time Apr 20 09:18:31 adding it in Apr 20 09:18:50 and hide is happenning, but only on the most latest created one Apr 20 09:19:03 there is still another one underneath Apr 20 09:19:08 i think you want to do something like Apr 20 09:24:42 http://pastebin.com/QwVvEu2v Apr 20 09:25:33 you might want to add a public static final String FRAGMENT_TAG_NAME = "CONFIG" to your config fragment (or the appropiate getter) Apr 20 09:25:50 anyone used jarsigner before? Apr 20 09:26:21 for some reason, it's throwing a RuntimeException "keystore load: Keystore was tampered with, or password was incorrect" Apr 20 09:26:39 the password is correct, at least eclipse accepts it Apr 20 09:27:00 why you using jarsigner if you are using eclipse? Apr 20 09:27:21 default encryption not strong enough for you? ;p Apr 20 09:30:18 I'm mucking around with another manufacturer's files Apr 20 09:31:02 MohammadAG: i get that error sometimes, in fact had it last week when updating company's app. the only way i could get it to work was pulling old keystore out of backup Apr 20 09:31:25 the key's fine, I just used it to sign a release apk in eclipse Apr 20 09:43:06 hy all Apr 20 09:43:22 can you find the Mobile Development Survey report of Evans Data Corporation? Apr 20 09:43:26 Isn't that public? Apr 20 09:43:39 A lot of source signs that as a reference Apr 20 10:01:23 <_Rarity> Hello. Why does Android Dev page say that I should avoid the ProgressDialog? What are its downsides? Apr 20 10:08:29 how can i do something like this: android:onClick="myFancyMethod" -> android:onClick="myManager.myMethod" myManager being a Class? Apr 20 10:15:59 do you have a sample source code about multiple choice quiz get data from mysql and store on android device Apr 20 10:16:18 i want to try on my localhosts Apr 20 10:39:57 I want a context menu on my ListView items. I've called registerForContextMenu(lv) and overridden onCreateContextMenu where I check if id == R.id.myList. nothing happens when I long click the items. ideas? Apr 20 10:40:33 everything compiles fine, a click handler on the same items work, but there's absolutely no response on long click Apr 20 10:41:21 long click has its own event Apr 20 10:41:53 yes, but I googled and was told not to use that Apr 20 10:42:05 registerForContextMenu should handle it, they said Apr 20 10:42:29 some guy was actually told to remove his LC handler Apr 20 10:44:51 https://gist.github.com/anonymous/9f8e20af3eab93b4da0b this, for what it's worth, is the pertinent code Apr 20 10:46:07 wtf Apr 20 10:46:18 I can't get a proper background color for listview O.o Apr 20 10:47:33 AAAAAHH... turns out it really helps to set the ongnogneorgrgcontextsomethinglistener Apr 20 10:47:47 I figured register* might help Apr 20 10:48:34 Mavrik: what, programmatically? or in the XML Apr 20 10:49:13 eh, I'm trying to match background of an item with Holo.Light team backgorund and they just don't match even though the value is the same Apr 20 10:49:45 is there a book what contains information about AOSP or AOSP roms? Apr 20 10:52:46 guys in #android-root might know Apr 20 10:57:28 join #android-root Apr 20 10:57:32 omh Apr 20 10:57:34 xD Apr 20 11:10:10 I think I have found one, it's name is Embedded Android from O'Relly [13:10] thx Apr 20 12:10:08 AVD runs really slow in my system, Ubuntu 14.04. What can I do to speed it up. Apr 20 12:17:56 wiky, you must use Intel Haxm with Intel CPU https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Apr 20 12:18:52 ktwo, but linux is not supported Apr 20 12:18:59 scroll down ;) Apr 20 12:20:32 wiky, https://www.virag.si/2012/10/speeding-up-android-emulator/ Apr 20 12:21:53 if the package for ubuntu doesnt run with 14.04 you still could use a VM with Windows on it (provided that intel VT is supported and passed through). actually i think android development on windows is less of a pain Apr 20 12:22:06 Is it okay to call AlertDialog.Builder() from my Activity, or should I always call a DialogFragment which calls the AlertDialog.Builder? Apr 20 12:22:12 I know that both works. Apr 20 12:22:37 ktwo, thanks,I'm trying Apr 20 12:36:38 Anyone able to clarify the resolution requirements for Google Play High-res Icon? Apr 20 12:37:17 resolution requirements? Apr 20 12:39:35 Hi Mavrik, thanks for responding. It's says here https://support.google.com/googleplay/android-developer/answer/1078870?hl=en that a 512 * 512 'High-res' icon is required bt it doesn't actually give a resolution Apr 20 12:39:53 huh Apr 20 12:39:57 512x512 IS the resolution O.o Apr 20 12:41:16 Well in gimp I can set the size (512*512) and the resolution pix/inch Apr 20 12:41:31 they're not the same thing Apr 20 12:42:27 That's not resolution, that's pixel density Apr 20 12:42:48 And unless you plan on printing it on a piece of paper it doesn't really matter.. A 512x512px image is 512x512px Apr 20 12:43:27 Oh, so does that mean If I change the pixel density it'll just change the display size for a given image size? Apr 20 12:43:41 If you print it, sure Apr 20 12:43:50 yeah Apr 20 12:44:02 the density is used only for actually printing the images Apr 20 12:45:32 So it'll be 512 pixels and how big a pixel is depends on how it's rendered? Apr 20 12:46:20 well thank you both Apr 20 12:47:59 * BWestOz feels rather silly! Apr 20 12:50:33 That's what we aim for :) Apr 20 12:53:50 I'm finding it hard to meet the google play image requirements. Apr 20 12:59:10 Is it okay to call AlertDialog.Builder() from my Activity, or should I always call a DialogFragment which calls the AlertDialog.Builder? Apr 20 12:59:10 I know that both works. Apr 20 13:03:08 you should probably create the fragment Apr 20 13:03:17 or you'll have annoyances with state management Apr 20 13:04:06 I see Apr 20 13:04:08 no idea what that is Apr 20 14:06:20 How do I go about creating/getting a launcher icon for my app? I am no good at making icons. Apr 20 14:06:34 And I don't know whether icons I could find on the web are the right sizes for Android. Apr 20 14:19:56 TacticalJoke, Android Studio comes with a built-in icon maker Apr 20 14:20:18 right-click on the res\ directory and select new icon or something Apr 20 14:20:48 TacticalJoke, else you can use http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html Apr 20 14:28:04 Type mismatch: cannot convert from DatePickerDialogFragment to DialogFragment <- DatePickerDialogFragment extends DialogFragment. WAT? Apr 20 14:28:37 K. Thanks. Apr 20 14:29:44 how can that even...?? Apr 20 14:30:07 One is android.app.DialogFragment the other is android.support.v4.app.DialogFragment .. Fix your imports Apr 20 14:30:41 Hey anyone know howto make an android drawer toggler that looks like http://prntscr.com/3bo7j7 Apr 20 14:31:05 http://prntscr.com/3bo7j7 I ment this Apr 20 14:33:22 SimonVT: and the two are actually different, too... why does even the simplest thing in this api have to be so insanely convoluted? Thanks though, I was dumb enough to actually trust Eclipse Apr 20 14:35:06 Hey guys. When I use a search activity (by declaring it in the manifest, e.g. android:name="android.app.default_searchable" android:value=".SearchActivity") it shows above the action bar with a different background color than the action bar. Apr 20 14:35:30 Can I change - or get - that color? Apr 20 14:45:45 Also, if I want to denote that my EditText is hooked up to a dialog or something, how do I get that fancy... um, corner thing that seems to be typically used? Apr 20 14:46:08 unsurprisingly, search results for "fancy corner thing android" weren't too good. :3 Apr 20 14:51:06 try thingamagic or whatumacallit Apr 20 14:51:23 but those are ridiculous! *hides* Apr 20 15:06:52 Hi guys, does anyone know how can I keep the MediaPlayer object playing, even when the screen turns off? Apr 20 15:07:00 (Without the need of a Service) Apr 20 15:12:47 omarino, maybe if you use wakelock with your activity in the foreground. Apr 20 15:12:58 But a service might be the better option. Apr 20 15:14:18 Unknown0BC: the problem with using a Service is that, There is a relation between the MediaPlayer's progress and the activity.. so if I put the MediaPlayer inside a Service, I would have to implement a broadcast receiver or something Apr 20 15:14:36 omarino: hold a partial wake lock PowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyMediaPlayer"); Apr 20 15:15:41 hi guys there is anyone? Apr 20 15:15:59 Then test wakelock on your application omarino. Apr 20 15:16:27 Ok, got you, Thank you Unknown0BC and Napalm Apr 20 15:16:34 Are you chinese ? Apr 20 15:16:34 roxdragon Apr 20 15:16:51 omarino: its not a problem to use a Service.. you probably want to take a look at TransportMediator Apr 20 15:17:32 But services are usually the best option if you like to keep things going... Apr 20 15:17:59 with wakelock included. Apr 20 15:18:02 :) Apr 20 15:18:50 It seems there arent any proper documentation available on when exactly when the android operating system decides to kill and application. Nor when it will decide to go into sleep mode. Apr 20 15:19:18 an* Apr 20 15:20:41 Unknown0BC: thats because either can happen at any time Apr 20 15:20:55 Very scary. Apr 20 15:31:16 It would be interesting to see something happening without any reason or algorithm behind it. Apr 20 15:31:26 or a random seed involved. Apr 20 15:31:33 just to make things unpredictable. Apr 20 15:31:35 ;) Apr 20 15:32:04 it's all deterministic Apr 20 15:32:04 I don't think the Android os coders are that out to annoy programmers. Apr 20 15:32:46 Sure is pfn sure is. Apr 20 15:32:49 :) Apr 20 15:36:08 Its like you first have to piss your daddy off before he slaps you. It does not happen all random. Apr 20 15:36:22 ;) Apr 20 15:36:45 or at just any time. Apr 20 15:39:36 Unless he is evil beyond description. Apr 20 15:41:50 Unknown0BC: have you seen the api? Apr 20 15:42:21 Scuse me but what ? Apr 20 15:42:29 "" Apr 20 15:42:35 needed perhaps ? Apr 20 15:42:50 :) Apr 20 15:43:59 should a custom ViewGroup automatically respond to setAlpha being called on it? Apr 20 15:44:04 trying to temporarily darken the view Apr 20 15:44:12 it just looks the same Apr 20 15:44:15 Unknown0BC: "I don't think the Android os coders are that out to annoy programmers." Apr 20 15:44:35 oh lol Apr 20 15:44:37 cotcha Apr 20 15:45:16 gotcha* Apr 20 15:46:04 Really gets to me when things don't happen according to the API documentation. Apr 20 15:47:39 https://www.youtube.com/watch?v=A10PvpbPJZw#t=10s maybe I'm a bit too irritable, but this has been me for the past 11 times I've tried making an app Apr 20 15:53:11 Unknown0BC, my dad slap me before i did anything, "just in case" and as preventive measure Apr 20 15:53:34 cuz even if i hadnn't done anything bad, i might have thought bout it Apr 20 15:53:48 lol Apr 20 15:55:11 Next time your phone falls asleep on you its because you are going to be soo boring in the future... Apr 20 15:57:56 robhol, you're just dumb Apr 20 15:58:50 yeah, that must be it. not having problems with most other APIs is a giant stroke of luck :p Apr 20 15:59:27 I doubt you actually have used many apis Apr 20 16:03:29 pfn is as helpful as ever. Apr 20 16:03:32 "you're just dumb" Apr 20 16:04:00 I guess IRC and the like tend to attract the personality-disorder crowd. Apr 20 16:04:03 meh Apr 20 16:04:43 TacticalJoke, on the other hand, content of this channel can bring out hte worst in you Apr 20 16:05:03 for some reason I get really irritaed with people who come here just to bitch about APIs as well Apr 20 16:05:09 *irritated. Apr 20 16:07:53 whats an average current-to-total install ratio look like. my app is like 50% :( Apr 20 16:08:24 I'm not paid or in any way obligated to help; make me want to help you, not annoy me Apr 20 16:08:39 RetroDude, that's pretty typical Apr 20 16:08:57 RetroDude, actually pretty high Apr 20 16:09:05 pfn: You aren't entitled to act like a baby because you might one day help someone. Apr 20 16:09:14 10-25% is much more common Apr 20 16:09:29 pfn: There's a consistent pattern with you. Apr 20 16:09:30 TacticalJoke, nothing about entitlement, a pure observation of fact Apr 20 16:09:37 pfn: Why not act like an adult? Apr 20 16:09:44 Ooh, good for you Apr 20 16:09:44 Maybe it's hard if you have Asperger's or whatever. Apr 20 16:09:49 seriously, 15%? Apr 20 16:11:07 mhm Apr 20 16:11:13 depends on type of app Apr 20 16:11:17 How many of the apps you've ever installed are still on your device? I doubt it's 50% Apr 20 16:11:20 TacticalJoke, you're the one with the problem Apr 20 16:11:27 ditto SimonVT Apr 20 16:11:41 TacticalJoke, you have inadequacy issues I bet Apr 20 16:13:24 Guys. Apr 20 16:15:39 Have any of you tried any motion tracking programs ? Like using the accelerometer, magneto meter and gyroscopes ? Apr 20 16:15:51 for physical gesture commands. Apr 20 16:17:01 RetroDude, paid apps have a higher ratio Apr 20 16:17:12 free is extremely liw Apr 20 16:17:35 Why would I want to create a Fragment settings and an activity settings for a simple settings window? Apr 20 16:18:19 pfn: are you a designer, or do you just like disagreeing with people because you think it makes being an asshole more acceptable? Apr 20 16:19:05 I haven't disagreed with anything, other than your implication that you have more experience than you do in reality Apr 20 16:19:53 Oh god, Apr 20 16:21:54 You know nothing about my (lack|wealth) of experience, and it isn't even relevant to the issue; ie. whether or not the android API is messier than it needs to be. Apr 20 16:22:13 robhol: pfn just likes to call people names. Apr 20 16:22:36 And assume inadequacy in others. Apr 20 16:22:46 I noticed. I have a bad habit of sometimes engaging trolls a bit too much when I'm bored. Apr 20 16:22:52 Same here. It's like a sport. Apr 20 16:23:15 lol Apr 20 16:23:23 come now people. Apr 20 16:23:25 Be rational. Apr 20 16:23:51 no, no. Rationality is the defense of a small mind, ha-- oh my god, that's it! *hides* Apr 20 16:24:01 and as nice as possible. Apr 20 16:24:14 but I was :< anyway, new topic Apr 20 16:25:47 Or a new channel ? Apr 20 16:31:09 seriously, if you only know to complain about Android APIs then you don't know apis Apr 20 16:31:34 a majority of 0 is 0 Apr 20 16:37:31 I'd ask what you're comparing it to, but I honestly don't care. Apr 20 16:46:28 pfn: Why do you assume that everyone else is clueless? Apr 20 16:46:35 It's pure arrogance. Apr 20 16:50:39 defense mechanism. for something unrelated, as much sense as that makes Apr 20 16:52:07 Is there a simple way to get a confirmation dialog, or would I have to create another fragment etc? Apr 20 16:52:47 I think you have to create a DialogFragment nowadays. Apr 20 16:52:54 Though the code isn't huge for a basic confirmation dialog. Apr 20 17:03:02 having trouble install the android SDK to eclipse. is it true i need to manually install the java jre prior to running the Eclipse install from Ubuntu Software Manager? Apr 20 17:05:15 because you are clueless... Apr 20 17:05:29 AlertDialog is correct Apr 20 17:05:51 pfn: AlertDialog is correct Apr 20 17:05:52 ? Apr 20 17:06:07 Are you suggesting he use AlertDialog directly without wrapping a DialogFragment around it? Apr 20 17:07:06 thumbee: Yes. You can just install the JDK first. Apr 20 17:07:43 Yes Apr 20 17:07:49 * pfn & Apr 20 17:07:54 pfn: Wrong. Apr 20 17:07:56 That is NOT recommended. Apr 20 17:07:59 Don't give bad advice. Apr 20 17:08:52 The recommendation from the Android team is to always use DialogFragment. Apr 20 17:09:50 thumbee, you need the JDK not the JRE to do Android development Apr 20 17:10:12 Technically, he needs both, but the JDK contains the JRE. Apr 20 17:10:59 smallfoot-: i going to uninstall from the Ubuntu Software Center and try it all from scratch : Apr 20 17:11:28 anyone had experience with google analytics in Android? Apr 20 17:11:43 TacticalJoke, The recommendation from the Android team is to always use DialogFragment? Apr 20 17:12:12 thumbee: Have you seen this link? It's Eclipse + ADT. http://developer.android.com/sdk/index.html Apr 20 17:12:16 smallfoot-: Yes. Apr 20 17:12:24 TacticalJoke, I see. Thanks. Apr 20 17:12:26 http://developer.android.com/guide/topics/ui/dialogs.html Apr 20 17:12:37 "These classes define the style and structure for your dialog, but you should use a DialogFragment as a container for your dialog. The DialogFragment class provides all the controls you need to create your dialog and manage its appearance, instead of calling methods on the Dialog object." Apr 20 17:12:54 TacticalJoke, even for minor things, such as just display exception.getMessage() ? Apr 20 17:13:15 smallfoot-: Could you use a Toast for that? Apr 20 17:13:22 I believe it's the case for minor things too. Yeah. Apr 20 17:13:39 TacticalJoke, no, toast are for things that disappear short, unimportant confirmations, dialogs are for when shit hit the fan Apr 20 17:14:11 The code is pretty short, in any case. Apr 20 17:14:13 smallfoot-: yes. i must have missed the part about the Java JDK.. Apr 20 17:14:30 thumbee, works now? Apr 20 17:16:07 smallfoot-: no. but going to uninstall everything and start from scratch. deleteing eclipse folders too.. cause after i tried reinstall eclipse i looked like my old settings were still stuck (ie. android sdk was still installed) Apr 20 17:18:29 thumbee, many people use Android Studio these days Apr 20 17:19:09 I would too, if I didn't get eclipse rammed down my throat Apr 20 17:19:19 :P Apr 20 17:19:22 Android Studio doesn't allow basic JVM unit tests, right? Apr 20 17:19:23 thanks for the recommendation Apr 20 17:19:26 Not without a struggle, anyway. Apr 20 17:19:50 IMO, Eclipse is simply better until AS supports unit testing out of the box. Apr 20 17:19:58 how im learning droid dev is through some video tutorials. and the teacher is using Eclipse. Apr 20 17:20:38 so i dont dispute that may be better Apr 20 17:20:43 most likely is Apr 20 17:20:50 Yeah, most tutorials is Eclipse Apr 20 17:21:07 and to ask a newb to climb another mountain :P thats for another day.. Apr 20 17:21:13 it feels like many developers been moving to Android Studio lately Apr 20 17:21:19 yeah Apr 20 17:21:21 AS is still in a fairly early stage, Eclipse has always been the main environment Apr 20 17:21:35 took me an hour to figure out i needed "ia32-libs" Apr 20 17:21:37 Yeah, I won't be moving to AS for a while. Apr 20 17:26:05 What about IntelliJ .. Is it suited for Android dev? Apr 20 17:28:18 yes Apr 20 17:28:35 That's what AS is, basically :3 Apr 20 17:28:55 it's possible to write Android stuff on the regular intelliJ too, though. Apr 20 17:29:57 I've been using Intellij for Web development and its awesome Apr 20 17:41:32 android development (or any other) is quite beautiful. i dont think ive ever been taught a lesson in patience like this @__@ Apr 20 17:41:49 Which part do you find beautiful? Apr 20 17:42:55 hey there, I'm having some trouble with adb and my android device Apr 20 17:43:32 when I do adb devices it shows up as "????????????", and it seems that the android ide has some trouble using that to do stuff Apr 20 17:43:47 the whole process. its so riddled with instructions that arent 100% clear. instructions that have changed. software revisions Apr 20 17:44:20 Android documentation is hit and miss. Apr 20 17:44:49 Some stuff is, if you're lucky, mentioned casually in a comment on SO; other stuff is thoroughly explained. Apr 20 17:44:57 I'm on non rooted stock so I don't really know how to go with that Apr 20 17:45:51 hit or miss* Apr 20 17:46:24 i dont think its written for any random joe. i dont think its even written clear enough for an interested student Apr 20 17:46:30 ashka: what OS and arch Apr 20 17:47:17 makes me think a big improvement in software development isnt the software itself. its the procedure for documentation Apr 20 17:47:23 I agree. Apr 20 17:47:28 Android is lacking in various areas. Apr 20 17:47:30 linux, 32bits. I actually just found out that it was a misconfiguration with udev, works fine after that, sorry for the hassle Apr 20 17:47:37 no prob Apr 20 17:47:42 they need some standard >___> Apr 20 18:08:21 uhm. hi. i just got ADT and am trying to launch a hello world app on a virtual device. somehow the device has a black screen, console shows Waiting for HOME ('android.process.acore') to be launched... for infinity Apr 20 18:09:27 FreshDumbledore: The first start of the virtual device can take minutes. Apr 20 18:09:33 You don't need to restart for every app run. Apr 20 18:09:42 How long have you waited so far? Apr 20 18:10:01 In any case, I use real devices. Virtual devices are so incredibly slow. Apr 20 18:10:03 ok i will give it some more time.. i restarted it multiple times now assuming it should at least show some boot screen.. i guess like 4-5 minutes max Apr 20 18:10:39 Do you have an Android device? Apr 20 18:10:41 Just wondering. Apr 20 18:11:15 i got some yes x) how to use them for test / debugging? is it risky? xD Apr 20 18:11:26 i could use one of my old phones Apr 20 18:11:37 I think it's normally just a case of enabling debugging on the device, attaching, and running. Apr 20 18:11:42 I don't see any risk, really. Apr 20 18:11:50 ok Apr 20 18:12:11 FreshDumbledore: Wouldn't you be using a new phone for Android development? Apr 20 18:12:15 Just curious, again. :) Apr 20 18:12:34 :D dont want to break my newest one.. but my old one is a xperia z so not that old either Apr 20 18:12:41 That's not too bad. Apr 20 18:12:56 I'd use any device, personally. The more, the better. Apr 20 18:13:01 would i configure the real device in the run configurations aswell? Apr 20 18:13:03 Testing on multiple devices is important. Apr 20 18:13:32 You don't have to do any configuring with Eclipse or something like it. Apr 20 18:13:36 Regarding devices. Apr 20 18:14:07 you build a package (or something) and transfer it to your phone? Apr 20 18:14:09 What kind of development are you hoping to do? Apr 20 18:14:19 Which IDE are you using? Eclipse? Apr 20 18:14:31 yeah the adt eclipse Apr 20 18:14:53 I just connect my phone, press Run (Ctrl+F5 in my case), and (the first time) pick my phone from the list. Apr 20 18:15:15 Thereafter, I just press Ctrl+F5. Apr 20 18:15:17 on which os? Apr 20 18:15:20 Windows. Apr 20 18:15:28 might not work as easy for me :) Apr 20 18:15:31 but i will give it a try Apr 20 18:15:55 I've not tried doing this on *nix, but I'd expect it to be the same. Apr 20 18:16:01 Android makes the tools that enable this. Apr 20 18:16:15 I hope it's the same, in any case. :) Apr 20 18:16:26 Effortless development is good. Apr 20 18:17:13 ok thanks for the advise :) will give it a try Apr 20 18:21:28 android create avd -n my-android -t 1 results in Apr 20 18:21:31 Valid ABIs: no ABIs. Error: This platform has more than one ABI. Please specify one using --abi. Apr 20 18:22:24 wrong window? :P Apr 20 18:23:33 oh is it? Apr 20 18:23:42 I thought this was for working with the android sdk Apr 20 18:23:48 This is the right channel. Apr 20 18:23:53 oh, ok Apr 20 18:24:46 yeah Apr 20 18:24:58 but you DID just paste random text without actually asking anything ;) Apr 20 18:28:13 Oh, whoops Apr 20 18:28:31 I don't understand the error nor how to get around it Apr 20 18:28:45 I was hoping someone here has ran into it previously Apr 20 18:28:53 I'm new to android development Apr 20 18:30:06 ...if it isn't already clear Apr 20 18:33:01 novochar, well the error is rather clear Apr 20 18:33:16 you're missing the --abi parameter Apr 20 18:33:29 and tell AVD if you want an ARM or x86 emulator Apr 20 18:34:01 Thanks for initiating the conversation :) Apr 20 18:34:02 Hello Apr 20 18:34:19 I can see that I'm missing the parameter, but I don't know which abis are avaiable Apr 20 18:34:29 I would like to add a github repository as a dependency but I'm having some trouble. Apr 20 18:34:39 it seems to contradict itself saying there are none and then it has more than one abi Apr 20 18:34:41 Usually they'll list a gradle dependency to add Apr 20 18:34:49 but this one is just a plain old repo Apr 20 18:35:02 How would I add this as a dependency to my android project? Apr 20 18:35:02 https://github.com/diegocarloslima/FloatingGroupExpandableListView Apr 20 18:36:03 aye Apr 20 18:36:37 novochar, huh, now that's a good question >D Apr 20 18:36:51 (I usually configure that via GUI) Apr 20 18:37:42 so far I've been using the copy paste method Apr 20 18:37:59 but it's pretty clunky and this repo is being actively updated Apr 20 18:38:47 when extending a list view adapter, how do I keep the state of the list item to stay "selected" after click Apr 20 18:39:04 by default it goes blue when I touch it but doesn't stay that way Apr 20 18:39:17 novochar, you get list of available emulator/abis with "android list targets" Apr 20 18:43:15 iim extending base adapter Apr 20 19:03:31 Hi folks! My application has suddenly stopped updating on the Play Store Apr 20 19:03:42 can anyone help me out? Apr 20 19:03:48 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 20 19:04:41 I've tried every possible way to get some support.. hopefully somebody here can help me! Apr 20 19:14:02 can anyone help me out? Apr 20 19:24:49 I figured out my problem, I can just change background on the onclick of the adapter get item function Apr 20 19:25:01 but not sure how to unset them when another item is clicked Apr 20 19:27:01 I need to figure out how to loop through the views in a adapter Apr 20 19:30:48 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 20 19:30:49 can anyone help me out? Apr 20 19:38:28 You could try unpublishing it for a while and publishing it again Apr 20 19:40:17 SimonVT: tried that.. though i didn't unpublish "for a while".. just a couple of minutes Apr 20 19:58:35 well, this is strange. android lets two radio buttons be checked at the same time. despite them being in the same radio group.. wut? Apr 20 20:04:42 multioption adapter? Apr 20 20:05:50 no, just a plain layout with some other stuff in it. The radiogroup is wrapped neatly around the part with the radio buttons in it Apr 20 20:11:12 any idea why? neither is checked to begin with, but when touch one and then the other, they both end up checked Apr 20 20:12:48 robhol, paste your code Apr 20 20:13:43 https://gist.github.com/anonymous/e687c2d24c8534113e3c ahoy Apr 20 20:13:44 s/pastebin/ of course ;) Apr 20 20:14:19 not sure what happened to the indentation there, but meh Apr 20 20:15:28 hey. its me again. the guy who could not load virtual devices (black screen, no loading animation..) - just wanted to tell: it works if i run eclipse as root. whyever o_o Apr 20 20:15:56 robhol, the nested LinearLayouts might be an issue, did you try without them? Apr 20 20:16:15 I did not. Why would they be, though? Apr 20 20:16:31 robhol, see http://stackoverflow.com/questions/9851867/android-radiobutton-within-nested-layout-under-radiogroup-falls-out-of-group Apr 20 20:16:50 I don't see "radiogroups can't contain other views" anywh-... oh, for god's sake Apr 20 20:19:39 okay, guess I'm setting their states manually then Apr 20 20:19:42 thanks Apr 20 20:19:55 any ideas why i need root access to have working virtual devices? i start the ADT by just using the eclipse program inside the zip file i downloaded and extracted oO Apr 20 20:23:20 another small thing I noticed: I want to check one of the radiobuttons automatically when the user selects an edittext - however, it only actually triggers the onclicklistener the second time Apr 20 20:29:29 Our company makes some electronic devices to control windows etc, how would you communicate an Android phone with them? We've decided to use WiFi, but what protocol? HTTP? Apr 20 20:31:48 You can use any protocol you want Apr 20 20:31:55 but sure, HTTP is popular for RESTful services Apr 20 20:32:05 that depends very much on the devices and what they support don't you think? Apr 20 20:32:40 MaNI, we design them Apr 20 20:33:56 Bluetooth and Wifi are supported by most android devices Apr 20 20:34:10 I'm not sure how that changes anything, you would communicate from an android phones to them using whatever you designed them to accept. If you are asking what you should design them to accept well then that is a pretty open ended question that you don't give nearly enough information to answer. Apr 20 20:45:44 MaNI, yes, that is the question. What more information do you need? Apr 20 20:55:26 are you... safe assuming that an EditText with inputType numberSigned will parse as an integer? Apr 20 20:57:17 idk Apr 20 21:00:32 btw, why doesn't the android api use enums anywhere? Everything's just number constants Apr 20 21:00:49 (yes, I know that's what an enum is, too) Apr 20 21:10:18 anyone versed in RxJava know if its possible to only register an onError callback Apr 20 21:10:26 not on action callback Apr 20 21:44:36 Hi all. I'm pounding my head on this issue for an hour now, looking for a way to aproach it. I have this UnityPlayer view. It shows the main camera of a Unity scene. I add a YoutubeFragment containing a YoutubeView by overriding unity's UnityActivity, and it works ass expected. I add the fragment to the unities parent ViewGroup and it gets put on top of the unityplayer view correctly. But, Apr 20 21:44:37 when playing a video rather then just cueing it, the unityView loses it's focus. This causes a onWindowFocusChanged method to kick in, which sends a boolean to UnityPlayer.windowFocusChanged, which causes the UnityView to reset the focus to itself, and put it on Top of the youtubeFragment. Sound still plays, and pop up ads even appear on top of the unityplayer view, only the video stream Apr 20 21:44:37 itself is apperently being overlayed by the unity view. Apr 20 21:45:20 If I don't send the boolean to UnityPlayer.windowFocusChanged, the video fragment remains visible, while the unity view dissapears Apr 20 21:46:22 So, I was wondering, How to approach this. At first I thought, just set the fragment to be on top, but whenever I do that, onWindowFocusChanged for the unity view get's triggered, and thus putting itself on top again Apr 20 21:47:10 cant you do an override to the onWindowFocusChanged function? Apr 20 21:48:59 Fresh: I am. Kind of. I used the standard NativeActivity class, where unity's activity gets handled, and added my own code there. onWindowFocusChanged is being overwritten there, and mUnityPlayer.windowFocusChanged is being send a boolean. Apr 20 21:49:27 If I empty the method though, the unityview dissapears when it loses focus Apr 20 21:51:51 hmm. can you make it not do any action for losing focus? Apr 20 21:52:06 so not trigger the event at all? Apr 20 21:52:53 no. Playing back the video automaticly makes it lose focus. Apr 20 21:53:23 i dont know for java, in c# (where i have more experience) i have to assign an event specifically if i want some action to be done when the event occures Apr 20 21:53:35 so if i would not assign some accent to the event of losing focus it would not do anything :) Apr 20 21:53:39 *action Apr 20 21:54:33 ahh k. Yeah, it's probably somewhere in the YoutubeAPI library where it does set the focus.. That would be yet another approach. Let me browse some classes :P Apr 20 21:58:21 maybe there are some settings to change behaviour too? i cant find a documentation for that thing oO Apr 20 22:06:54 http://stackoverflow.com/questions/23188083/viewpager-with-multiple-view-fragments-of-different-sizes Apr 20 22:08:34 guys help me please :( Apr 20 22:08:35 Apr 20 22:08:56 sorry Apr 20 22:09:07 04-21 00:08:13.210: E/AndroidRuntime(354): java.lang.NullPointerException 04-21 00:08:13.210: E/AndroidRuntime(354): at com.gianni.comisoairport.arrivi.onCreateView(arrivi.java:42) Apr 20 22:17:57 FreshDumbledore: No I already looked Apr 20 22:18:06 pff I got a bit Lost in all the class files Apr 20 22:18:19 ThomQ: i think jug6ernauts post was for you x) Apr 20 22:18:20 coulnd't even find where the Playing of the video was handled, lol Apr 20 22:19:42 ahah i don't think so man. Although there are some simmilarities :P Apr 20 22:20:08 I'm migrating my app from Android Studio to IntelliJ IDEA, and on Android Studio I had two build.gradle files. However, on IDEA there's only one. Where do I place the other one? Apr 20 22:24:47 autrilla not sure how idea does it, bankai_au may know how; but AS create project by default seems to make one root build file, and then one build file per module (app) Apr 20 22:25:16 http://i.gyazo.com/6497422cc96e8751485c68b16f49c6c1.png Apr 20 22:25:21 if your app will only have one module, it seems like overkill. may as well smoosh it into one file Apr 20 22:25:52 oh, was that exported from eclipse ? Apr 20 22:25:59 nm, you said AS Apr 20 22:28:35 guys can you help me pleasE? http://paste.ubuntu.com/7294921/ Apr 20 22:28:57 i get a NullPointer here: String strtext = getArguments().getString("edttext"); Apr 20 22:33:22 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 20 22:33:25 can anyone help me out? Apr 20 22:35:27 kizmat i'd send a message to Play support forums Apr 20 22:37:18 g00s: i already did, a week ago.. no response Apr 20 22:38:42 had to really dig around the Android help center to find a way to contact them too.. Google makes it extremely difficult to get some support Apr 20 22:39:27 do you have a link to these support forums? All I can find is a bunch of Q&As Apr 20 23:30:57 ping! Apr 20 23:39:32 android have api to vibrate the cellphone? Apr 20 23:42:20 https://developer.android.com/index.html#q=vibrate Apr 20 23:53:56 autrilla: there's two build.gradle files, one at the top of the tree and one in src/java ( i think?), pretty much the one at the top calls the other Apr 21 00:17:51 So I'm getting a segfault when a Google Maps activity is exited via either the back button or finish(). Does anyone know what might be the cause of the problem? Apr 21 00:18:43 morning, morning, morning! Apr 21 00:21:40 .. how i can look and wait for the VOL+ and VOL- buttons? Apr 21 00:21:56 in your app or all the time? Apr 21 00:22:27 i dont understand, you can type the same thing into Google and get 100's of instant answers Apr 21 00:22:34 yet ppl insist on typing it here instead and waiting Apr 21 00:24:22 Should I provide an xxxhdpi icon? Apr 21 00:24:36 I already provide an xxhdpi one. Apr 21 00:24:40 don't forget xxxhdpi too Apr 21 00:25:10 *xxxx Apr 21 00:25:23 What uses the 4x one? Apr 21 00:25:34 nothing Apr 21 00:25:38 was a joke Apr 21 00:25:42 Oh. lol Apr 21 00:25:50 i think the xs are getting a little out of habd Apr 21 00:26:00 Yeah. Apr 21 00:27:04 fir app icon, i think you're best off providing all Apr 21 00:27:08 m - xxx Apr 21 00:27:24 for application resources, i think you can stop at x Apr 21 00:27:25 maybe xx Apr 21 00:27:29 alex_PP in all time if possible Apr 21 00:27:39 go to xx on app resources Apr 21 00:27:46 xxx on launcher Apr 21 00:29:20 don't think it can be done Apr 21 00:29:23 user90, Apr 21 00:29:42 for in your own app, just listen for the key events Apr 21 00:39:00 alex_PP i hope the next version of android finally allows direct svg support Apr 21 00:39:11 yeah Apr 21 00:39:14 that'd be nice Apr 21 00:39:16 yea, i know about all the issues of re-authoring things for pixel perfection Apr 21 00:39:25 but my icons are so soimple Apr 21 00:39:39 i've seen a few ghetto svg button implementations, even wrote one myself Apr 21 00:39:56 but it'd be nice if it just worked Apr 21 00:40:17 guess what I did this weekend g00s Apr 21 00:40:20 even if stuff rasterized on first install for that handset (dpi) Apr 21 00:40:33 alex_PP i'm curious! what ? Apr 21 00:40:43 bought a new toy Apr 21 00:40:46 oh oh Apr 21 00:40:47 5D iii Apr 21 00:40:51 :D Apr 21 00:40:52 oooh maaaan Apr 21 00:40:57 you so lucky Apr 21 00:41:29 i realised that i'd had my 20D for ~10 years, and over that time frame it's not so expencive Apr 21 00:41:48 i was on a beautiful trip yesterday, busted my ass hiking from 11am, got to the area around sunset. took some pictures, got back at 2am - but i was very dissapointed. i didn't have the right lenses for the compositions i needed Apr 21 00:41:51 and my 20D's gone mouldy Apr 21 00:41:55 oh crap Apr 21 00:42:07 so i needed a new one Apr 21 00:42:07 Hey Apr 21 00:42:16 Anyone know howto add a library into android studio Apr 21 00:42:19 alex_PP what will you do to prevent that again ? Apr 21 00:42:29 keep it in the open air Apr 21 00:42:34 in an ACed room Apr 21 00:42:41 what part got moldy, lense interiors ? Apr 21 00:42:49 i was keeping everyting in a pelicase with silica Apr 21 00:42:57 that didn't work Apr 21 00:43:01 I have tried multiple times to add a library to android studio but I think I am doing it wrong Apr 21 00:43:01 :O Apr 21 00:43:07 thats what i would have done , oh man Apr 21 00:43:09 i have 2 mouldy lenses Apr 21 00:43:13 but they're ok Apr 21 00:43:18 should be for a few more years Apr 21 00:43:29 but the 20Ds sensor's mouldy too Apr 21 00:43:36 holy crap :| Apr 21 00:43:46 can you see it ? or is the IQ bad ? Apr 21 00:43:51 south east asia's hard on things Apr 21 00:44:10 yeah, AZ desert dust is a nightmare roo Apr 21 00:44:10 there's a sort of spiderweb shadow in the top left of every frame Apr 21 00:44:40 depending on aperture it's just fait or a huge mess Apr 21 00:46:48 alex_PP when you get some nice pics from it do post :) Apr 21 00:46:50 wonder if these are worthwhile Apr 21 00:46:51 http://brnollc.com/page15/page15.html Apr 21 00:46:58 i shall Apr 21 00:47:12 just got a few hundered of my daughter so dar Apr 21 00:47:32 hehe Apr 21 00:48:35 it's a totally different beast Apr 21 00:48:54 the large sensor throws everthing out of focus much more than i thought it would Apr 21 00:49:00 alex_PP judging by the discounts i'm seeing from peachpit on Lr books, i'm guessing Lr 6 is almost here Apr 21 00:49:17 really? Apr 21 00:49:27 bugger, just bought 5 at christmas Apr 21 00:49:44 maybe i should subscribe to creative clod Apr 21 00:49:50 i'd skip .0 anyhow Apr 21 00:49:51 bwahaha Apr 21 00:50:26 man Lr 5 had a clusterfuck bug, and it took them like several months to fix it. it was terribad Apr 21 00:50:43 when it first came out, it would not apply sharpening to certain aspect ratios Apr 21 00:50:43 was that the messed up collections thing? Apr 21 00:50:48 weird Apr 21 00:50:51 oh, i didn't hear about that :| Apr 21 00:51:29 i just hope they remain standalone products Apr 21 00:51:41 i don't want to be forced to use any clous tuff Apr 21 00:51:44 *cloud Apr 21 00:51:50 nope :( Apr 21 00:52:01 did think of a use for LR iOS though Apr 21 00:52:02 :o Apr 21 00:52:16 would be nice for holiday backups Apr 21 00:52:27 but it's only 10gb Apr 21 00:52:49 alex_PP oh yeah, thats one thing i forgot about Lr 5 format Apr 21 00:52:51 but camera - ipad - simple edit - internet Apr 21 00:52:59 is a nice workflow when you're out and about Apr 21 00:53:09 it has a hybrid format, now raw, that allows image work; that then gets applied back to the raw Apr 21 00:53:16 its like a smart preview format Apr 21 00:53:23 *not raw Apr 21 00:53:24 This isn't ##photography Apr 21 00:54:17 ok, last one alex_PP http://helpx.adobe.com/lightroom/help/lightroom-smart-previews.html Apr 21 00:54:28 that's true enough, just excited Apr 21 00:55:10 not looked into SPs yet, might be useful as all my photos live on a NAS, anyway, android! Apr 21 00:55:18 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 21 00:55:27 can anyone help me out? Apr 21 00:57:07 kizmat, have you tried deleteing the apk and uploading again? Apr 21 00:57:14 or bumping the version code and uploading again Apr 21 00:57:24 Google's probably trying to tell you to go away. Apr 21 00:57:29 yes, tried both things. neither worked Apr 21 00:57:45 Nilium: thanks :P Apr 21 00:57:59 Out of curiosity, did you put it in alpha or beta instead of where it's supposed to go? Apr 21 00:58:43 i do run a beta program as well, but even those builds are stuck and not being upgraded.. Apr 21 00:58:58 3.xxx are betas, 3.xx are production Apr 21 00:59:04 Are there any agreements you haven't accepted? Apr 21 00:59:08 I see the little button on the side is lit up. Apr 21 00:59:51 accepted all agreements.. Apr 21 01:00:05 that little button is just info about new game categories etc Apr 21 01:00:56 It occasionally has other stuff in it because the Play console is a horribly designed piece of crap. Apr 21 01:01:19 Kind of like how that little notification thingy about policy changes _never_ goes away permanently even if you click the X. Apr 21 01:02:53 i just went through all the stuff it had.. nothing relavant Apr 21 01:03:11 and yes, that stupid notification is super annoying Apr 21 01:03:32 anyone have experience doing a vertical view pager? Apr 21 01:04:25 any other ideas? or do you know how I can get in touch with a _real person_ at google who could help me? Apr 21 01:04:50 kizmat well, thats kinda the problem with goofle Apr 21 01:05:31 not that iOS devs get good answers on their rejects either Apr 21 01:05:53 i kno they are notorious for it.. but there has to be /someone/ in here who know someone? Apr 21 01:06:38 kizmat honestly … doubt it Apr 21 01:06:38 and it isn't like the builds are getting rejected either.. according to the dev console everything is fine! Apr 21 01:07:28 Hm, one should never, ever search google for their own app's name if it's a paid app Apr 21 01:07:42 It'll just be depressing as hell to see all the pirated APKs Apr 21 01:08:15 kizmat see, the only way this would enter their consciousness is if a bunch of devs started having this problem, and androidpolice reported on it Apr 21 01:09:21 seems like it has to be a statistical outlier to be noticed Apr 21 01:09:31 (lots of people having problems) Apr 21 01:09:47 well, one more person at SO reported the same problem.. and another on the android developer community at google+ Apr 21 01:10:05 is there anyway to use unsigned apps on bluestacks Apr 21 01:10:21 so basically i'm SOL? Apr 21 01:10:30 are virtual SD cards actually stored in a partition? if so, how do I find out which partition? Apr 21 01:10:53 kizmat is there anything unusual about what your app does ? Apr 21 01:11:11 not really - https://play.google.com/store/apps/details?id=com.anujjain.awaaz Apr 21 01:12:10 and if they had a problem with it, wouldn't they remove it all together, or send me an email, or notify me through the dev console..? basically anything but just suddenly stop accepting updates. Apr 21 01:12:30 I'd guess it's a bug in the store. Apr 21 01:12:58 Nilium: and there is nothing i can do? :( Apr 21 01:13:08 I am trying the android.tmbundle it creates an unsigned app I try to test it on bluestack /Applications/BlueStacks.app/Contents/Runtime/uHD-Adb install /Users/jam/MyOsWork/javaAndroid/Hello/bin/Hello-release-unsigned.apk Apr 21 01:13:32 Report it and try to make sure they know about it, but you probably shouldn't count on it getting fixed anytime soon. Apr 21 01:13:47 not sure how to setup the bluestack emulator to allow me to test this Apr 21 01:13:58 I've already reported it twice.. they say they'll get back in 48 hours, but it's been a week Apr 21 01:14:51 kizmat you probably only reached their automated help system Apr 21 01:14:54 and by "they say", i mean the web page from where you report an issue.. Apr 21 01:15:16 g00s: if only i was luck enough to even receive an automated reply! Apr 21 01:16:42 its one of those risks one accepts being an ios/ android / bigCo appStore dev .. we're renting a spot on somebody's else's lawn Apr 21 01:17:20 but google especially has never been good at CS - doesn't matter what their product is Apr 21 01:17:24 fair enough Apr 21 01:17:25 often, even if you are paying ! Apr 21 01:17:35 no fucking way i would use appengine or such shit Apr 21 01:18:13 if the fb / twitter team couldn't update their app, i'm sure they have a contact Apr 21 01:18:23 but we're just digital serfs ;) Apr 21 01:18:41 Oddly enough, I've gotten great support from YouTube Apr 21 01:18:45 :( Apr 21 01:18:59 all you serfs ... off my fiefdom !! :p Apr 21 01:19:02 Responses within ~30 minutes or so to issues. Apr 21 01:19:15 So I guess that part of Google is the only one that isn't the walking dead. Apr 21 01:20:00 off topic: Just updated to MS 8.1 and they stomped my bootmgr again Apr 21 01:20:20 heh - cause why would one nned dual boot? Apr 21 01:21:18 fuck your boot loaders Apr 21 01:21:26 it did Apr 21 01:21:55 lucky that recovery is easy Apr 21 01:22:26 I wonder if I can get a Windows 8 ISO somehow since I bought the upgrade ages ago Apr 21 01:22:59 Not sure if Microsoft provides anything for that, now that I think about it. Apr 21 01:24:11 Nilium: I was able to get an ISO through a torrent, it seems Microsoft has made efforts to not distribute them despite the activation process... Apr 21 01:24:40 How tedious. Apr 21 01:24:40 I'd rather not go that route. Apr 21 01:24:48 I mean, I paid for Windows 8, I just don't have it downloaded or installed anymore Apr 21 01:25:41 Also annoying that Microsoft account passwords can't be longer than 16 characters Apr 21 01:25:41 Because that's totally sane. Apr 21 01:26:21 GNU/Linux master race Apr 21 01:40:12 question about Overriding. If i override public void onWindowFocusChanged(boolean hasFocus), and I use super.onWindowFocusChanged(hasFocus); will that override every onWindowFocusChanged from the current activity all the way down to the code in the SDK? Apr 21 01:52:51 Not had any reply to my bluestacks question, do none of you use an emulator? Apr 21 01:58:35 i use genymotion Apr 21 02:04:00 spent 2 days trying to figure out appt crapping out on a build with an NPE(no message) exception Apr 21 02:04:32 turns out, if you have an attr and define the format as X, and then use it in violation of X, it just blows the hell up Apr 21 02:04:44 and then use it as something else Apr 21 02:05:05 which is fine, bu it should report what the problem was, what file, what line Apr 21 02:06:13 guess i'll file bug report Apr 21 02:08:47 genymotion wants a lot of info about me Apr 21 02:09:16 then use the google qemu one Apr 21 02:09:40 but aapt does report the error line... Apr 21 02:10:39 well, not from the gradle plugin Apr 21 02:10:47 so maybe the gradle plugin NPEs Apr 21 02:11:18 Probably Apr 21 02:11:26 aapt is written in c Apr 21 02:13:51 genymotion is not free for developing a commercial app, I can't be sure if an app will be comercial ahead of time Apr 21 02:14:51 is anyone tried vitualbox to use android? Apr 21 02:24:31 just use x86 emulator, works fine Apr 21 02:24:54 * pfn doesn't care to run geny Apr 21 02:25:05 and it doesn't work with my configuration Apr 21 02:27:39 * Nilium just runs stuff on devices. Apr 21 02:27:41 Which, as everyone knows, is what you're supposed to do. Apr 21 02:28:02 I run emus for different test versions Apr 21 02:28:29 my apps behave differently in 4.0,4.2 4.3,etx Apr 21 02:29:04 mostly I've been testing on my gnex running 4.0 and my motox running 4.4 Apr 21 02:29:16 Hm, I wonder how much disk space Windows would require if I installed Win7 then went directly to Win8 Apr 21 02:29:16 well attaching my momo or nexus 1 would require plugging them into a charger etc... Apr 21 02:29:31 y Apr 21 02:29:44 Well I guess you should do that Apr 21 02:29:51 that's not hard... Apr 21 02:30:11 but those devices are stupid old Apr 21 02:30:32 an emu would be faster Apr 21 02:31:00 I installed win8 from usb on a partition and I could get it to share stuff with win7 no idea if it still works not booted my pc for quite a time Apr 21 02:31:31 is it worth dev win8 apps Apr 21 02:33:54 unless someone's paying you, probably not Apr 21 02:47:26 i wonder if android will just become bluestacks on ChromeOS Apr 21 02:47:45 and then maybe its just android on wearables Apr 21 02:51:45 yeah? what do you mean Apr 21 02:53:35 mogg49 seems inevitable chromeOS and android will converge at some point, in some way Apr 21 02:53:51 even duarte nodded his head about that in the past interview Apr 21 02:54:13 that's good to know. i've been developing for Android but have not done any ChromeOS dev Apr 21 02:54:24 is ChromeOS sdk in Java? Apr 21 02:54:27 just speculating how that may actually happen. i have no idea of course Apr 21 02:55:01 mogg49 i don't know anything about ChromeOS Apr 21 02:55:26 i would imagine your ChromeOS apps are web apps or NaCL or pNaCL things Apr 21 02:55:38 g00s gotcha, how long have you been developing for android? Apr 21 02:55:50 hm, since 2010 Apr 21 02:56:04 nice, just a hobby? or profession? Apr 21 02:56:08 hobby Apr 21 02:56:26 cool, got any apps out? Apr 21 02:56:44 one out, i have 2 more half done Apr 21 02:57:05 sweet, what do they do? Apr 21 02:57:45 well, the one app which i started in 2010 as my first android app, was basically just to tell me where i got reception when i was trail running. at the time i was using signal strength apis; it seemed like it worked … Apr 21 02:58:08 but didn't as i looked closer at the data. i could probably rewrite it to use a different technique, like ping a server Apr 21 02:58:30 that was in case i got injured and missed a checkpoint, etc. i'm sure by now there are plenty of apps like that Apr 21 02:58:44 the newest app is related to mqtt Apr 21 02:58:59 and then i have an older app which talks to weather equipment Apr 21 02:59:52 fascinating. is the one on the play store? **** ENDING LOGGING AT Mon Apr 21 02:59:58 2014