**** BEGIN LOGGING AT Thu Jun 20 02:59:59 2013 Jun 20 03:19:35 hello Jun 20 03:19:57 i'm using the fragmentpageradapter example to implement a fragment swipe view Jun 20 03:19:58 http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Jun 20 03:20:25 but, if i remove a fragment, it doesn't actually visually go away (get destroyed) until i scroll too far to the right or left and it gets collected by the system Jun 20 03:20:37 what could be the problem? my code is pretty much identical to the example, except for the listview Jun 20 03:20:46 do i need to call destroyItem() myself? Jun 20 03:25:16 is there any way to force a parent layout to fit a certain child and scale the other children down? I have a LinearLayout[ImageView, TextView] and the ImageView is far too big and I want it to scale to however tall the TextView is Jun 20 03:26:57 what do you mean "remove a fragment"? Jun 20 03:27:27 JakeWharton, i have a bunch of fragments on the viewpager and i want to delete one Jun 20 03:27:43 Tell the adapter and call notifyDataSetChanged() Jun 20 03:27:51 JakeWharton, that's what i'm doing :/ Jun 20 03:28:08 getCount() returns the right number Jun 20 03:28:17 getItem() returns the right item Jun 20 03:28:32 destroyItem() doesn't get called when i call notifyDataSetChanged(), for some reason Jun 20 03:31:10 JakeWharton, this is my code http://pastebin.com/FiBsu9YB Jun 20 03:31:24 i've been trying to pin this down for three days Jun 20 03:31:25 no luck Jun 20 03:31:45 the fragment gets removed, the title gets removed from the actionbar, but the actual fragment with the buttons stays there Jun 20 03:31:53 and displaces the proper fragment to the right Jun 20 03:32:08 until it gets destroyed by swiping far away from it Jun 20 03:33:24 FYI there's a fragment pager adapter in the support-v13 library that uses native fragments Jun 20 03:33:41 but the support library fragments and loaders are less buggy than the native ones Jun 20 03:33:47 oh, hmm Jun 20 03:33:48 or at least the bugs are consistent! Jun 20 03:33:51 what's the advantage of the native ones? Jun 20 03:33:59 nothing Jun 20 03:34:00 i'm pretty new to this, i've only been developing on android for four days Jun 20 03:34:11 three of which were spent trying to fix this bug Jun 20 03:34:12 that means 75% of your time has been debugging this issue Jun 20 03:34:20 indeed Jun 20 03:34:34 it's been driving me nuts Jun 20 03:35:36 everything looks fine. let me jump to the docs Jun 20 03:35:51 maybe this is relevant? http://stackoverflow.com/questions/3669325/notifydatasetchanged-example Jun 20 03:36:18 i'm not using an arrayadapter, though Jun 20 03:37:14 pro tip: never use array adapter Jun 20 03:37:19 anyone here use android-studio on windows7? Jun 20 03:37:21 haha, i'll keep that in mind, thanks Jun 20 03:37:28 i'm having nothing but problems with this windows install Jun 20 03:37:58 for some reason gradle is looking for c:\opt\gradle? and i can't find a setting anywhere with that path name Jun 20 03:38:02 any ideas? Jun 20 03:38:07 * StingRay_ is glad he spends 1% of time in windows Jun 20 03:38:57 Stavros: you shouldn't have to override destroyItem Jun 20 03:39:07 JakeWharton, i tried it both ways, no difference :/ Jun 20 03:39:10 it's not even getting called Jun 20 03:39:18 and notifyDataSetChanged is Jun 20 03:39:24 StingRay_: im on my laptop :( away from home Jun 20 03:39:31 i despise windows Jun 20 03:39:49 you also probably don't want to create a new fragment instance on every call to getItem() Jun 20 03:39:54 then install linux or get a macbook ;) Jun 20 03:40:19 hmmm. the docs do that though Jun 20 03:40:29 JakeWharton, i checked, that's the proper way, the adapter holds fragments in memory and only calls getItem() when it needs them Jun 20 03:40:35 i run arch on my desktop, but not always around a net connection with my laptop, so keeping it updated is a pain Jun 20 03:40:47 JakeWharton, that's what the docs do too Jun 20 03:41:07 i thought calls to getItem were not always in order or predicted Jun 20 03:41:16 eg for layout measuring too Jun 20 03:41:54 they aren't always in order, right Jun 20 03:42:33 his code accounts for that Jun 20 03:42:44 oh Jun 20 03:42:51 whats happening ? Jun 20 03:43:13 the fragment view isn't getting removed Jun 20 03:43:20 unless it gets destroyed by the system Jun 20 03:43:24 i hear fragments in adapter in a listVIew, and that just rings alarm bells Jun 20 03:43:33 there is no listview Jun 20 03:43:39 my hunch is that notifyDataSetChanged() doesn't call destroyItem() Jun 20 03:43:42 because, well, i checked Jun 20 03:46:45 are the android APIs this buggy/convoluted in general? Jun 20 03:48:18 Stavros: whats the idea? Jun 20 03:48:26 StingRay_, what idea do you mean? Jun 20 03:48:44 adapter + fragments ? Jun 20 03:48:56 yeah, i'm using the example on the docs Jun 20 03:49:04 http://developer.android.com/training/implementing-navigation/lateral.html Jun 20 03:49:29 Stavros: no, i've done this before and had it working. not sure why you're seeing this behavior Jun 20 03:49:38 JakeWharton, :/ Jun 20 03:51:23 you using the example layout too ? Jun 20 03:52:33 roughly, yes Jun 20 03:52:37 let me check for differences Jun 20 03:53:32 for the pager, i use the bottom one Jun 20 03:53:39 with the titlestrip Jun 20 03:54:07 identical Jun 20 03:55:33 hmm, for the fragment it doesn't show a layout Jun 20 03:55:56 i use a linearlayout Jun 20 04:01:54 JakeWharton, any leads? :/ Jun 20 04:02:36 i gave up, sorry. have my own problems to chase down Jun 20 04:02:41 it's okay, thanks anyway Jun 20 04:02:48 i think i'll go sleep on it Jun 20 04:49:57 if i am not using and resources, is there any advantage to a library project over a standard external jar ? Jun 20 04:51:36 i may license this component, so it would be nice if i just distribute the binary - i think lib projects need to be distributed in source form, correct? Jun 20 04:57:39 heh: http://android.mk/ Jun 20 05:04:09 g00s: debug is always handy :) Jun 20 05:04:14 *ing Jun 20 05:04:29 StingRay_ hm ? Jun 20 05:04:37 library project over jar Jun 20 05:05:10 StingRay_ i don't follow Jun 20 05:05:23 you asked the advantages Jun 20 05:05:29 if not using resources Jun 20 05:05:33 yes :) Jun 20 05:05:37 of a libaray project over a jar Jun 20 05:05:44 debuging Jun 20 05:06:04 with debuging I know it's SimonVT's fault Jun 20 05:06:21 but if he hid that in a jar, I wouldn't Jun 20 05:06:56 jars can have sources and javadocs Jun 20 05:07:05 not normal though is it Jun 20 05:07:16 it is the normal Jun 20 05:07:32 oh, then all the libs I have played with are really not normal Jun 20 05:07:34 :) Jun 20 05:07:49 you've probably been obtaining them incorrectly Jun 20 05:07:51 g00s: use library projects if you like volatility, slower builds, more difficult consumption by users, and IDE troubles. Jun 20 05:07:52 wat Jun 20 05:08:38 3 finger repeated tap on content main in a slidingDrawer Jun 20 05:09:07 it blows up, index on motion event blaaa…iirc Jun 20 05:09:37 Cannot reproduce, user error Jun 20 05:10:10 JakeWharton ok, thanks i'll use regular jar Jun 20 05:12:33 SimonVT: i have no motion listeners or anything in the activity that I'm playing with http://pastebin.com/nqdWARa4 Jun 20 05:13:12 actually can do it on anything more that a single finger Jun 20 05:13:27 That's like some version 2.x shit Jun 20 05:13:30 We're up to 3.x now! Jun 20 05:28:29 SimonVT: ok yes, maybe i did need to update Jun 20 05:43:50 Hi I am trying to fig out a way to log urls that does data in and data out on my phone Jun 20 05:43:57 any pointers I can look into Jun 20 05:44:22 I am focussing more on data on carrier network Jun 20 05:52:48 is it too late for the room Jun 20 05:55:03 hi. how can i read using java from within an activity class the manifest to get the class's application version number? Jun 20 05:55:31 you mean the apps version number ? Jun 20 05:56:08 or simply what class that can read the manifest? Jun 20 05:56:44 StingRay_, got me? Jun 20 05:57:01 PackageInfo Jun 20 05:57:04 ok Jun 20 05:57:09 thank you Jun 20 05:57:36 PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0); version = pInfo.versionName; Jun 20 06:01:04 oh, i guess the newer gradle stuff has .aar files :| Jun 20 06:02:52 newer? Jun 20 06:09:13 ergg my AVD just ran out of storage trying to launch the app i'm working on Jun 20 06:13:49 is there an AVD that works better than another for OpenGL ES development? Jun 20 06:14:16 Any x86 w/haxm and GPU acceleration on Jun 20 06:19:13 haxm isnt supported in linux? Jun 20 06:19:17 :\ Jun 20 06:22:19 http://androvm.org/blog/ Jun 20 06:25:45 how many levels of VM before my brain explodes Jun 20 06:35:55 icetooth: AFAIK, support is built into KVM on Linux. Jun 20 06:36:16 icetooth: So no add-on needed. Jun 20 06:36:27 I supposed you would need to be on a supporting kernel Jun 20 06:36:29 :) Jun 20 06:37:54 im just going to borrow my moms kindle, it doesnt take 2 minutes to transfer my program through usb to the actual hardware :\ Jun 20 06:39:25 i need some cooler weather Jun 20 06:39:26 :( Jun 20 06:40:22 StingRay_: Not sure what you mean by supported kernel; Linux has had "Intel VT" support for years. Jun 20 06:40:42 I thought some kernel variations ommited it Jun 20 06:40:55 for various generic reasons Jun 20 06:41:13 will it make the interface run at an acceptable pace if i switch to an x86 virtual device? Jun 20 06:41:50 Easy enough to check: "egrep '^flags.*(vmx|svm)' /proc/cpuinfo" If anything shows up, you kernel hasn't disabled it. Jun 20 06:42:55 Can't imagine why any sane distribution would like to turn it off. It can also be turned off in BIOS I believe, but that's "cross platform" and has nothing to do with Linux. Jun 20 06:43:35 well I'm less a fan of linux these days Jun 20 06:43:46 so would not know what the main dists are doing :) Jun 20 06:43:53 i got vmx, but no svm Jun 20 06:44:29 icetooth: Makes sense. You can't have both an Intel and AMD processor in the same system. SVM it's the AMD equivalent. Jun 20 06:44:48 ah, figures damn, no sse4 Jun 20 06:47:59 what cpu ? Jun 20 06:48:18 old quad q6600 Jun 20 06:48:25 ah Jun 20 06:48:32 the emu is unbearable on AMD Jun 20 06:48:36 its a tank though Jun 20 06:49:30 a tank with hamster power Jun 20 06:49:35 :) Jun 20 06:49:52 maybe i like my front side bus :[ Jun 20 06:50:19 seperation is always good, look at the consistancy of android ;) Jun 20 06:50:43 * StingRay_ is on fire today Jun 20 06:50:45 :) Jun 20 06:50:50 icetooth: don't you have a physical device ? Jun 20 06:51:13 no i have to borrow it from my mom whenever i am doing some real testing lol! Jun 20 06:51:32 kindle fire what a pain that was to get running on linux with eclipse Jun 20 07:00:53 kindle fire is not a nice dev device from all reports Jun 20 07:01:04 or rather from complaints in here :) Jun 20 07:02:16 memcpy is in string.h..? i wasnt actually afraid untill now Jun 20 07:03:40 i guess i should start a list of things that i already suspect will cause weird crash's when running on this new platform Jun 20 07:06:09 StingRay_, thats good though right? if it runs well on the most complained about device then i must be doing something right! Jun 20 07:07:43 well… you can put really crap tires on a old skoda and they will last quite a while, the same on a ferrari may go "pop" in a few miles ;) Jun 20 07:07:51 tyres Jun 20 07:08:17 * StingRay_ is being affected by industrial headache tablets Jun 20 07:08:22 haha Jun 20 07:13:54 StingRay_ -> i was afk when you asked about my open source app the other day. you can see it here https://github.com/BullShark/JSpeak Jun 20 07:14:59 nice Jun 20 07:25:20 anyone know how to fix Selected VM does not support tracing OpenGL calls Jun 20 07:25:30 got win7 java 1.7.0.3 Jun 20 07:25:59 how can i download manually AVD Android 3.1 API 12 Intel? Jun 20 07:30:21 is it possible to write custom app for handling incoming phone calls? Jun 20 07:30:49 Pitel_IPEX: have you looked on the market ? Jun 20 07:30:55 are there such things ? Jun 20 07:31:05 and what would you conclude from that ? Jun 20 07:31:06 :) Jun 20 07:31:13 k :) Jun 20 07:31:26 StingRay_, don't hinder Pitel_IPEX . let him learn how to program Jun 20 07:32:21 indicating to some1 that exercising common sense and thus reducind dependancy on external factors is about as far from hinderance as you can get Jun 20 07:32:41 I would argue that it's almost like….. the opposite Jun 20 07:32:55 Well, I vaguely remember it wasn't possible couple of years ago, so I was just wondering if something changed. Jun 20 07:33:01 and that had nothing to do with "how to program" btw Jun 20 07:34:57 StingRay_, anyway it's just good to encourage people to program for android. now i need to know how to get the Android image version 3.1 API 12 manually. Jun 20 07:38:19 hi! i have two values directories: values for english and values-de for german. i am not quite sure how i should change my manifest to reflect this language support Jun 20 07:39:31 ultrixx, you don't have to as far as i know Jun 20 07:39:39 it's just automatic Jun 20 07:39:41 superlinux-hp: thanks Jun 20 07:40:05 ultrixx, but look deeper on this cos I am not sure Jun 20 07:40:16 ultrixx, however.. Jun 20 07:40:59 it works on my phone and on the emulator. when i change language to english everything is in english then to german all is in german Jun 20 07:41:28 i must tell you that if you changed the system interface language while the app is running, it might crash Jun 20 07:41:41 however i don't know if the play store lets me sell the app in usa and uk if i don't mention that in the manifest Jun 20 07:41:44 ultrixx, i mean if you minimize the app Jun 20 07:41:57 ok Jun 20 07:43:46 so this means you will have to reload and set the R.string.* again just not to get false ANR or NPEs or such and such Jun 20 07:43:58 ultrixx, got me? understood? Jun 20 07:44:16 superlinux-hp: thats not my problem Jun 20 07:45:34 my concern is if my app will be available in english speaking countries and what i would have to write in the manifest Jun 20 07:45:48 no it's all automatic Jun 20 07:46:00 based on the local set in Configuration Jun 20 07:46:23 if you were indeed paranoid I think you can force load different qualifier/resources Jun 20 07:46:25 :) Jun 20 07:46:34 ultrixx, yes.. but also reflect that in the listing in Google Play Developer Console Jun 20 07:46:35 based on reading Configuration.local Jun 20 07:46:54 e Jun 20 07:46:55 oh ok thanks guys Jun 20 07:46:59 welcome Jun 20 07:48:37 StingRay_, i don't why i had to reload my R.string.* values again for a ListView if i changed the language while the app is minimized Jun 20 07:49:03 casue they were, loaded Jun 20 07:49:10 :) Jun 20 07:49:31 static final Jun 20 07:50:54 yes.. they were loaded at start as english for example, i minimize, change language to arabic, maximize/raise app => crash. so i had to make the code re-assign the array adapter of the list view again. Jun 20 07:51:41 NPE ? Jun 20 07:52:38 StingRay_, i don't recall but sorta that Jun 20 07:53:20 the the context bound with resource for "something" would probably point to "locationA" Jun 20 07:53:37 now the resouce does not have that location Jun 20 07:53:40 possibly Jun 20 07:54:47 anyway.. I re assigned it upon onRestart() it think.. and it works now Jun 20 08:07:30 hi, does anyone know how to take any number and scale it down to a value in the rang of 0.0 to 1.0 ? Jun 20 08:07:56 hmm, my zero point zero got turned into a facey thing.... Jun 20 08:08:02 value/maxValue Jun 20 08:08:58 180degrees/360degrees = 0.5 Jun 20 08:09:00 :) Jun 20 08:09:29 ok, so if i had a value handed to a function, say 634 I would do something like: float scaledValue = 634 / IntegerMax ? Jun 20 08:10:14 or would that be 634 / 1.0 ? Jun 20 08:10:14 well as long as you know the maxScale Jun 20 08:11:31 hmm ok, ill play with the code Jun 20 08:11:35 thanks Jun 20 08:12:15 more info http://en.wikipedia.org/wiki/Normalization Jun 20 08:12:22 does anyone know how to get LOCAL_C_INCLUDES to work? im pretty much giving it the same info as LOCAL_SRC_FILES but i'm reading it needs to be absolute, not relative? Jun 20 08:12:36 oh great, thanks. Jun 20 08:13:19 in android.mk* Jun 20 08:15:11 is there a variable i can use to get the absolute path to something like the project directory? Jun 20 08:15:22 how can i download manually AVD Android 3.1 API 12 Intel? Jun 20 08:15:31 i want that image. Jun 20 08:16:19 there is none Jun 20 08:17:41 wtf why!?!? Jun 20 08:17:43 lol Jun 20 08:18:12 @superlinux-hp Jun 20 08:18:44 oh ok *continues searching for the answers* Jun 20 08:19:28 StingRay_, I have a Google TV at home . but i want to try it on the emulator Jun 20 08:20:00 $(NDK_APP_PROJECT_PATH) found it hooray Jun 20 08:27:18  Jun 20 08:33:45 I'm using Nested Fragments. A fragment that hosts a view pager that pages 2 fragments using tabs. Jun 20 08:33:53 Is there a way to listen for tab changes? Jun 20 09:07:11 If I want to package an android library project as an android maven project, how would I go about it? Jun 20 09:22:01 Is it possible to detect gestures event on Home screen inside a Service? Jun 20 09:29:13 heho Jun 20 09:30:35 i have an app that i can run on the emulator without any problems, that builds fine, but as soon as i try to export an apk, be it signed or unsigned, i get this: http://nopaste.ghostdub.de/?807 -- tons of errors that various android.support.v4 classes are not found Jun 20 09:32:53 you configured proguard correctly ? Jun 20 09:33:17 mh, i didn't touch proguard at all Jun 20 09:33:23 ah Jun 20 09:33:28 that will be it then :) Jun 20 09:33:28 before the latest adt/eclipse updates things were working Jun 20 09:34:28 -dontwarn android.support.v4.** <-- this? Jun 20 09:35:02 i would read up on proguard config with the various elements in your project Jun 20 09:35:07 like support lib etc Jun 20 09:35:36 mh Jun 20 09:36:16 why does eclipse/adt always make you fight the environment, i only want to code ;( Jun 20 09:36:27 maybe i should revert to the previous adt/eclipse/sdk? Oo Jun 20 09:39:38 or use IDEA? Jun 20 09:40:21 yah that thing :P Jun 20 09:41:21 StingRay_: reading my proguard.cfg i have no idea what could be wrong Jun 20 09:41:33 all the libs and references listed in the warnings ~should~ be there Jun 20 09:43:30 i really doubt this is the problem, i rather think that something with the library/jar referencing is fucked up ;( Jun 20 09:45:55 then disable proguard Jun 20 09:46:07 and try Jun 20 09:46:08 :) Jun 20 09:47:41 mh ... how would i do that? Jun 20 09:50:54 StingRay_: question, if the librarys and references would actually be missing, how could i compile and run the project on the emulator? Jun 20 09:51:13 it wouldnt Jun 20 09:51:20 your problems are proguard Jun 20 09:51:38 hinted at by the use of "proguard" in your errors Jun 20 09:51:39 :) Jun 20 09:57:07 I'm trying to implement a simple NavigationDrawer based off of the docs but, for some reason, the up icon isn't being replaced w/ the one I specified when creating the ActionBarDrawerToggle Jun 20 10:00:02 hi all Jun 20 10:07:00 StingRay_: kicked proguards ass (disabled), everything working as expect Jun 20 10:07:03 what the hell is that thing?! Jun 20 10:07:21 huh ? whats what ? Jun 20 10:12:42 proguard Jun 20 10:13:08 oh Jun 20 10:13:15 I think you have a bit of reading to do :) Jun 20 10:15:15 anyone can help me? i've to open an existing sqlite database, i follow this guide but it doesn't work :( it make me crazy.... Jun 20 10:15:16 i mean, i know what it does (roughly), but it seems to be broken hard time since the update Jun 20 10:15:58 tafazzi87: if you have a question ask it, some1 may answer Jun 20 10:16:13 Nebukadneza: doubt proguard is the issue Jun 20 10:16:32 this pastebin MainActivity:http://pastebin.com/Ev6Z3VNt OpenHelper:http://pastebin.com/J1ivsNEm DataSource:http://pastebin.com/dQjUw7Qf Jun 20 10:16:35 think it will be your addition of libs, and not configuring build/proguard Jun 20 10:16:43 mh Jun 20 10:17:08 yes, i said that i have the feeling that something with the lib referencing could be broken Jun 20 10:17:28 well, i gotta try to fix this when the rest of the application works as expected ... actual productive coding comes first Jun 20 10:17:34 ops i forget to paste link of tutorial that i've follow : http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Jun 20 10:18:32 and this is the logcat : http://pastebin.com/NPxUeuau Jun 20 10:19:11 i've also put my db file on assets folder... Jun 20 10:24:52 tafazzi87: ? Jun 20 10:25:12 what? Jun 20 10:25:19 I though ty Jun 20 10:25:21 oops Jun 20 10:25:27 I thought you had a question Jun 20 10:26:13 yes...why logcat says no such table??? Jun 20 10:26:23 cause there is no table Jun 20 10:26:28 called linee Jun 20 10:26:30 :) Jun 20 10:26:31 yes there is Jun 20 10:26:58 well if there was, it would not say that Jun 20 10:27:02 maybe it's a problem to connect db but why? Jun 20 10:28:01 yes ok but there is a table called linee i'm sure of that Jun 20 10:29:14 and I'm pretty sure the database that it has a handle to has no table in it Jun 20 10:29:20 called that Jun 20 10:29:21 :) Jun 20 10:29:33 android seems pretty sure too Jun 20 10:29:42 open it up and look Jun 20 10:29:53 if you have a rooted phone, pretty easy to do Jun 20 10:31:01 wait a moment... Jun 20 10:31:36 this is my db http://img844.imageshack.us/img844/7251/djv.png Jun 20 10:31:53 ok Jun 20 10:32:07 not the point or even that relevant I'm affraid Jun 20 10:32:33 open the db up that the app is using, and look Jun 20 10:33:12 i'm using avd to test... Jun 20 10:33:38 sorry i'm a newbie of android development... Jun 20 10:35:02 where i can find db on my device? Jun 20 10:36:22 i'm currently querying a content provider to get all sms conversations. Then i'm taking the phone number and querying for the contact. is there a way to streamline this process so I don't have to execute 2 queries? Jun 20 10:39:46 on my device (acer e330) it doesn't start... :( Jun 20 10:43:47 this is logcat for my device...http://pastebin.com/mDQHKgGi it doesn't open database... Jun 20 10:44:15 so where i can put my .sqlite? :( Jun 20 10:51:57 anyone ever have problems with layerDrawables in stateListDrawables causing NPE at android.graphics.drawable.ShapeDrawable.mutate Jun 20 10:52:12 or from android.graphics.drawable.ShapeDrawable.mutate rather Jun 20 11:24:42 hi! Jun 20 11:24:47 hi Jun 20 11:26:34 Would someone have the time giving me best practise advice on how to use android studio with git? Jun 20 11:27:45 I and a couple of friends want to work on a projekt together. We have verry different system setups and basically just want to sync the source and not all the configs and grandly stuff, which intellij puts in the project directory. Jun 20 11:29:20 Now I have a .gitignore which doesn't check in *.iml, *.iws, *.ipr, .idea/, .gradle/, local.properties . Jun 20 11:29:52 I hoped the IDE would just rebuild configs for the system I checked out this git on then, but nope. It just throws a ton of errors. Jun 20 11:30:02 What is the right way to do this? Jun 20 11:31:21 Use gradle, get AS to rebuild project from a checked in build.gradle file. Keep the generated AS files out of git (as you are doing already). You also need to check in the ./gradlew wrapper and gradle subdir at the top of your project. Jun 20 11:32:15 Whenever somebody modifies the build.gradle file(s), use the sync-from-gradle button in AS. Jun 20 11:34:57 So I need to check in the gradle folder, did I understand that right? Jun 20 11:52:55 How do you guys send your app to the press? The app isn't free, but we'd love to distribute a free version for review purposes. Jun 20 11:58:34 spaceSub: Yes, I think so. Probably because the ./gradlew wrapper refers to it. AFAIK, they are just copies of the same file/directory as found in a template folder under the AS installation. Jun 20 11:59:00 spaceSub: That's how I "gradlified" my project, pulling that stuff in manually and writing my build.gradle files. Jun 20 11:59:19 I could never get Eclipse export to work. Jun 20 11:59:24 keepsake: you could try using the new testing support Jun 20 12:01:53 keepsake: maile them a .apk? Jun 20 12:01:59 email* Jun 20 12:04:24 I'm using the new alpha/beta testing already - but that feels less ideal for distributing apps to the press. I don't trust the press, so sending an APK is not something I'm comfortable with - last thing I want is a torrent with our application! Test flight android requires the user to have an account, unfortunately. I suppose there is no optimal solution here. Jun 20 12:05:23 hello, guys/girls has anyone tried https://github.com/pardom/ActiveAndroid Jun 20 12:05:23 this ? Jun 20 12:06:06 How do you change the height of the android actionbar using the sherlockholmes actionbar with a min api level below 11? JakeWharton Jun 20 12:06:26 tagrudev: seems like in some cases a simple raw sql would be quicker that what it does Jun 20 12:07:33 StingRay_, it's an orm, since I am coming from ruby/rails community I miss the coolness of AR Jun 20 12:07:50 is there an alternative ? Jun 20 12:08:16 yeah, just use sqlite Jun 20 12:08:31 keepsake: doesn't every app end up getting pirated, anyway? Jun 20 12:08:41 StingRay_, it sucks Jun 20 12:08:49 not really Jun 20 12:08:54 what do you need to do ? Jun 20 12:09:02 tagrudev: whats baad with sqlite? Jun 20 12:09:07 bad* Jun 20 12:09:24 tagrudev, there's ORMLite Jun 20 12:09:38 I got to write 500 lines just to map my models to the database records Jun 20 12:10:09 it's very flexible and doesn't restrain you much. You can easily write custom queries too, without having to use the builders Jun 20 12:10:10 not to mention there is not an option for migrations Jun 20 12:10:23 however the builders are handy, if your database is not too compley Jun 20 12:10:26 *complex Jun 20 12:10:48 let me check that out Jun 20 12:11:41 uses DAO Jun 20 12:11:57 looks nice Jun 20 12:16:28 dsschnau: Yea - but let them take some effort first! Jun 20 12:16:48 dsschnau: And it would especially be sad if the game got leaked before it was even out! Jun 20 12:17:47 keepsake: yeah, well-put. I just figured if you want it reviewed and there's no easy answer to prevent piracy, its not worth the energy. Send them an incomplete demo version of the game, maybe? Jun 20 12:18:09 release 1st Jun 20 12:18:35 if your primary concern is leak/piracy Jun 20 12:19:44 Piracy is gonna happen, those who pirate your game are necessarily not custommers. Jun 20 12:20:00 We have a free version of the app, so I guess we'll use that - or just reimburse their payment if they buy the non-full game. Jun 20 12:21:42 Mrdarknezz: Yea - we try to find comfort in that. Piracy on iOS is al ready high - I can only imagine Android must be worse. Jun 20 12:37:13 I'm running a pretty computationally intensive task, and I'm using Debig.startMethodProfiling to do some profiling. Does it make sense that the performance hit is HUGE? Jun 20 12:37:51 I expected it to affect performance, but does it make sense that it takes more than 10x the time to complete? Jun 20 12:38:20 "those who pirate your game are necessarily not custommers." You mean "not necessarily your customers"? Jun 20 12:49:32 sonOfRa: Yes, sorry english is not my main Jun 20 12:49:35 language Jun 20 13:01:02 sonOfRa: The idea was clear. Jun 20 13:01:36 i wasn't sure actually. Because the two definitely mean different things. One means, all pirates are not part of the market, the other means, they are not necessarily part of the market Jun 20 13:02:12 I meant the second Jun 20 13:03:38 A pirate download of your app does not mean you lost a purchase Jun 20 13:04:16 95% of the time or higher it does Jun 20 13:04:33 well no, 40-60% I would think it does Jun 20 13:04:43 but depends if you app is great Jun 20 13:04:57 the better it is, the more chance you have Jun 20 13:05:37 I think the reason why we have gotten into this culture is because alot of application market that they are something that they aren't Jun 20 13:05:55 That has made people afraid to commit because they don't trust the advertised functionality of the application Jun 20 13:06:20 I think it's less functionality Jun 20 13:06:31 more quality and presentation (design) Jun 20 13:07:02 Yes quality in how your application function and how it's designed Jun 20 13:07:16 depends on the metric Jun 20 13:07:19 but most of the time no Jun 20 13:07:30 quality and performance and function are all different Jun 20 13:07:46 just like time, cost, quality Jun 20 13:07:47 :) Jun 20 13:08:18 There is the functionality and then there is the design. Jun 20 13:08:38 ok Jun 20 13:08:42 :) Jun 20 13:10:16 I personally dont think the culmination of factors within an app come down to functionality and design Jun 20 13:10:27 little more than that me thinks Jun 20 13:15:52 Well you abstract it but ultimately thats what you end up with when you sum it up. Jun 20 13:21:09 you dont think something could be functional, designed well, but perform poorly/slow/laggy ? Jun 20 13:22:55 I need to store pairs with Name+ID and I need to store a GroupName+List - how do you suggest? Jun 20 13:22:58 SQLite? Custom fileformat? "Hackish" SharedPreferences? Jun 20 13:23:13 I want my "target all connected/active devices" option from eclipse :( Jun 20 13:23:39 less abstract: i need to store a number with a name, and I need to store named lists of those name+number things Jun 20 13:23:52 could be people+SSN and groups of people with SSN's Jun 20 13:24:44 sqlite sounds alright Jun 20 13:25:04 let's you easily create the mappings for groups using foreign keys Jun 20 13:25:35 yeah, i think sqlite would be my choice too Jun 20 13:29:29 If it performs bad then it's poorly designed. Jun 20 13:37:30 not poorly implemented ? Jun 20 13:37:47 design being taken as the given for art/asthetic Jun 20 13:38:23 neways, not really bothered, in my mind there is more than just the 2 :) as with everything I have ever worked on and in every place I have ever worked Jun 20 13:39:16 how hard is it to have different package names for APK and java classes? Jun 20 13:39:41 i.e. I want the app classes all to be in com.foobar, but the package shall be org.barbaz Jun 20 13:40:23 not hard. Jun 20 13:40:54 cool. Jun 20 13:42:05 Design of userflow Jun 20 13:42:42 http://static.fjcdn.com/pictures/IE_3a116d_4628175.jpg :) Jun 20 14:07:44 How can I upload a vanilla repo to github? Jun 20 14:07:55 There are git repos inside git repos and so on Jun 20 14:10:00 why do you have repos inside of repos? if you want to preserve everything under the top level, you can just remove any .git folders (not including the one in the top level) Jun 20 14:11:10 if you want to start from scratch from a git perspective, remove all .git folders in the tree, and cd to the top level directory and just git init . ; git add . ; git commit -a Jun 20 14:22:27 I'm trying to use the opengl tracer, all seems to go well it says its capturing frames, creating a file and all.. but when I try to load the file its empty Jun 20 14:22:30 nothing shows up in the list Jun 20 14:43:07 What is the best push service to use to send a single identical message to a large number of clients simultaneously? (ie. everyone using the app). Jun 20 14:43:27 Google Cloud Messaging doesn't seem so well suited to this purpose. Jun 20 14:49:15 ejcweb i use mqtt, but that requires a broker Jun 20 14:49:51 it doesn't replace gcm though, slightly different use case Jun 20 14:52:59 I mean, theoretically I could just register each individual user on my server, and then send an identical message to each with GCM, but that seems overkill for such a simple use case. Jun 20 14:53:43 tnzr Jun 20 14:53:47 that was a good advice Jun 20 14:53:48 thanks Jun 20 15:00:53 p_l have you found an extension for chrome that does a good job of unloading tabs ? Jun 20 15:07:02 Good morning, androiders! Does anyone have a good example or resources for using the Presentation/DisplayManager classes in 4.2.2 to display video on an external TV while displaying something else on the tablet? Jun 20 15:18:25 g00s: nope Jun 20 15:18:42 g00s: these days, when I open Chrome, I suddenly get some swap used... on a 15G machine Jun 20 15:19:02 p_l: well that's so great! Jun 20 15:19:24 it's a sign that the memory management of your OS is working very very well Jun 20 15:19:53 wtf keep e.g. the print spooler in ram, if you don't use i? Jun 20 15:19:54 monsti: actually, the memory management on linux isn't all that good (in certain aspects) Jun 20 15:20:12 p_l: that's a discussable issue Jun 20 15:20:39 but without "knowing" what's going on - using swap isn't that bad Jun 20 15:20:45 it's for old - very very old - pages Jun 20 15:22:00 g00s, how would an extension unload tabs... extensions don't have access to that Jun 20 15:22:12 actually being a not a "native or experienced " programmer I have a question Windows Vs Linux Jun 20 15:22:21 to do with memory management Jun 20 15:22:24 there are a few for chome, but they have shortcomings (like titles go away) Jun 20 15:22:29 ff has a great one Jun 20 15:22:50 StingRay_: just ask Jun 20 15:25:38 well the team that did golden eye broke away from rare (well most of them) and I forget the name of the studio, but had to go there to solve some issues and look at some stuff on their new titles (fps blaaa) Jun 20 15:25:46 heavy on jungle levels Jun 20 15:26:19 now Maya, 3D DCC of choice, was having problems with many of the levels (performance) Jun 20 15:26:31 and it came down to memory/paging etc Jun 20 15:26:52 now as a test I got a quad xeon (the best at the time) with max 64gb ram Jun 20 15:26:58 2 dells Jun 20 15:27:05 1 with windows the other linux Jun 20 15:27:29 I did tests and monitor what maya was doing, and speed etc same hardware, same application same file Jun 20 15:27:46 so even though there will be variances, it was near enough as you could get Jun 20 15:28:05 what are you getting at? Jun 20 15:28:12 linux had between a 20% to 160% performance increase Jun 20 15:28:15 why ? Jun 20 15:28:33 what "performance increase" Jun 20 15:28:49 well, everything Jun 20 15:28:58 monsti: Oh, I know. It's just that unless I open Chrome, I don't have a need for swap... despite running virtual machines etc. Jun 20 15:29:00 what are you measuring? Jun 20 15:29:02 (and running ZFS) Jun 20 15:29:11 hey all Jun 20 15:29:12 running zfs, on linux? Jun 20 15:29:18 3d graphics, authoring and output Jun 20 15:29:38 StingRay_: I suspect the difference could have been on Maya implementation side Jun 20 15:29:39 StingRay_, use quantitative measurements and metrics, not subjective feelings Jun 20 15:29:40 loading huge game levels etc Jun 20 15:30:00 StingRay_: the interfaces for Virtual Memory in NT and Linux are different, so they had to be coded differently Jun 20 15:30:10 e.g. "fps is 20-160% higher on linux instead of windows" Jun 20 15:30:19 and quite possibly it led to some interesting interactions deep in guts of application Jun 20 15:30:29 fps more like twice Jun 20 15:30:41 or "loading time on linux was faster by X seconds vs. Y seconds on windows" Jun 20 15:30:42 mip switching more like 160% Jun 20 15:30:55 especially since professional DCC software often have custom memory management to efficiently work when data exceeds RAM Jun 20 15:31:13 StingRay_: btw, both cases had 64bit Maya, right? Jun 20 15:31:18 I am working on an app that let's you play rtmp live streams.. sadly android doesn't support rtmp (hence adobe doesn't support it either anymore lol). But I went on to battle this problem and found a way to make it work by using a webview and in it a flash video player (like jwplayer). Now my issue is that that some rtmp streams also need a PageUrl (rtmpdump has that parameter) but I couldnt find any flash video player that can set Jun 20 15:31:32 p_l yes :) Jun 20 15:32:13 Qwin, flash video players are no longer supported, anyway Jun 20 15:32:14 Maya was origionally, well, heratige in IRIX so maybe that had something to do with it, but lots of the things were fairly augnostic Jun 20 15:32:16 anyone know of a flashvideo player that can set the pageurl ? or know a way to run rtmpdump :/ Jun 20 15:32:47 pfn officiale not that's correct but as i mentioned i want to still fight the battle of getting a rtmp streamer to work Jun 20 15:32:52 (which already works Jun 20 15:33:17 i have a way to identify if a user doesnt have flash and download the flash binaries from my server Jun 20 15:33:18 StingRay_: a common issue I have seen faced in terms of memory management was how ELF-based Linux (unless borked) allowed for easier allocation of memory where you wanted it, unlike Windows (which defaults to position-dependent code) Jun 20 15:33:25 Qwin maybe ffmpeg instead Jun 20 15:33:57 g00s: does android support ffmpeg ? Jun 20 15:34:03 p_l I was just suprised at the difference being so great Jun 20 15:34:15 Qwin people have compiled it for use on android; but not out of the box Jun 20 15:34:23 Qwin: if you compile it yourself and implement it in your player Jun 20 15:35:27 I think i have fund a project called mplayer <-- which made use of ffmpeg and supported rtmp but sadly it kinda died ... its still on github though Jun 20 15:35:31 found* Jun 20 15:35:48 mplayer for android of course Jun 20 15:36:12 hmmm ok lets say i'll go for that option and compile ffmpeg Jun 20 15:36:21 what else do i need to do Jun 20 15:36:27 I would need the rtmplib ? Jun 20 15:36:38 and also need to code a video player ? Jun 20 15:36:50 Qwin, but you're not going to get any customers on 4.0+ running it... Jun 20 15:37:08 yes, you would need to code a video player Jun 20 15:37:09 pfn why ? Jun 20 15:37:17 because no flash on 4.0+ anymore Jun 20 15:37:22 maybe even before? Jun 20 15:37:42 well i kinda have that already fixed if someone doesnt have flash it automagically installs flash for them :) Jun 20 15:38:38 e.g. check if flash installed -> check OS version -> download package from my server -> ask user to enable installed from external sources Jun 20 15:39:03 Yeah, that sounds horrible Jun 20 15:39:10 yeah it is Jun 20 15:39:22 that is terrible Jun 20 15:39:29 read the malware scares out there Jun 20 15:39:32 that is the worst answer Jun 20 15:39:38 so if i code ffmpeg... and a videoplayer and use rtmplib i wouldnt need flash Jun 20 15:39:41 particularly around flash Jun 20 15:39:52 basically, yes Jun 20 15:39:58 you can probably get away from needing ffmpeg Jun 20 15:40:12 assuming the underlying codecs are supported on android Jun 20 15:40:17 I want to track orientiation change but want to avoid putting configChanges in Android Manifiest. Any tip Jun 20 15:40:29 you just need a want to convert the streaming content from rtmp to something that android supports Jun 20 15:40:35 like write a simple rtsp proxy that converts rtmp to rtsp Jun 20 15:40:47 and point your mediaplayer to that Jun 20 15:40:50 pfn codecs are H264 and H263 sorensen mostly Jun 20 15:41:06 Manavan, orientation changes recreate your activity Jun 20 15:41:13 Manavan, detect it in activity creation Jun 20 15:41:18 pfn converting is pretty cpu intensive i think Jun 20 15:41:32 pfn, I can get the current orientiation but how do i get the previous orientation Jun 20 15:41:47 Qwin, converting the stream, not codecs Jun 20 15:41:51 getResources().getConfiguration().orientation gives current Jun 20 15:41:57 converting stream/transport is dirt cheap Jun 20 15:42:00 pfn ah ok :/ Jun 20 15:42:20 Manavan, save it in onSaveInstanceState, read it from the onCreate bundle Jun 20 15:42:27 I will try that and make it opensource so rtmp is finnaly supported :3 Jun 20 15:42:48 of course, I don't know the exact details of rtmp vs. rtsp, maybe it's not trivial Jun 20 15:42:49 * pfn shrugs Jun 20 15:43:06 but I think rtsp is pretty universally supported across android Jun 20 15:43:10 it's just, like, 1s and 0s Jun 20 15:43:16 how hard is it to, like, change a 0 to a 1? Jun 20 15:43:40 it's easy to change a 1 to a 0, just turn the stroke into a circle Jun 20 15:43:56 and for 0 to 1 just kind of draw over the 0 with a really big straight line a lot Jun 20 15:47:49 pfn >> Thank you! Jun 20 15:50:14 StingRay_: sry got disconnected Jun 20 15:50:18 can you ask again? Jun 20 15:50:34 ? Jun 20 15:50:40 ask what ? Jun 20 15:50:42 linux/win memory Jun 20 15:51:12 wow, that was ages ago…. and kinda got more of an idea now thanks to p_l Jun 20 15:51:23 ;) ok Jun 20 15:51:44 my brain is good in open loops ;) Jun 20 15:52:04 just remembered what game it was now Jun 20 15:52:06 timesplitters 2 Jun 20 15:52:30 the first was kill talibans Jun 20 15:52:42 no idea about the 2nd Jun 20 15:53:38 shame about freeradical :( as is one of the reasons not in a rush to get back to that industry Jun 20 15:56:38 you did game development before? Jun 20 15:57:37 all my life Jun 20 15:57:47 well mix between that and fil/tv vfx Jun 20 15:57:49 pfn actually whoever uses rtmp is an idiot nowadays but sadly there is so much rtmp out there :( wish everyone used rtsp life would have been easier Jun 20 15:57:55 shitty payment and shitty working hours ;) Jun 20 15:58:12 no and, not often Jun 20 15:58:22 and you need some high maths skills Jun 20 15:58:34 well, I didnt Jun 20 15:58:36 f'(x) = ... ;) Jun 20 15:58:52 sin/cos/tan ... Jun 20 15:58:53 artist/td Jun 20 15:58:57 not a programmer Jun 20 15:59:01 i.c. that's cool! Jun 20 15:59:01 F'(x) is basic math..... Jun 20 15:59:12 but yeah ^ Jun 20 15:59:18 mrfunky: it's a pain to implement ;) Jun 20 15:59:33 StingRay_: i have a very skilled gfx guy Jun 20 15:59:48 this does such a great job! Jun 20 16:00:34 10-20 pngs and the app is so nice + looks professional Jun 20 16:01:06 see thats the odd thing Jun 20 16:01:18 I would think I would just do that…for my app Jun 20 16:01:29 but I'm being all programmery about it :) Jun 20 16:01:33 StingRay_: being creative for money ;) Jun 20 16:01:48 monsti: got any screenshots ? Jun 20 16:02:01 nop :( we are not on the appstore Jun 20 16:02:08 s/app/play Jun 20 16:03:32 well the appstore doesnt automatically give you screenshots Jun 20 16:03:33 In android somewhere like in onDestroy. Can you find out the reason E.g.: OrientationChange Jun 20 16:03:33 lol Jun 20 16:03:53 Manavan: ask that again in the form of a sentence, please. Jun 20 16:04:08 lov: S-P-O Jun 20 16:04:26 that's what my english teacher told us alll the time Jun 20 16:04:32 and i still hate her ;) Jun 20 16:05:13 lov > lol I want to find out why the application is killed in onDestroy or onPause. possible? Jun 20 16:05:29 Manavan: not really, and it's not really important to you either. Jun 20 16:05:39 your behavior shouldn't change Jun 20 16:07:54 why does onDestroy() do it's job?? Jun 20 16:07:55 yep makes sense. Jun 20 16:07:58 was just curious Jun 20 16:07:59 lol Jun 20 16:08:30 Any of you guys work at Google?! Jun 20 16:09:02 I use google at work Jun 20 16:09:15 close enough Jun 20 16:12:25 I like to think that I work, so I guess that's close enough Jun 20 16:13:08 google tells me that it's sunny but it's raining Jun 20 16:13:16 why are these guys so mad :( Jun 20 16:14:57 monsti maybe its only sunny in the matrix Jun 20 16:15:06 hey there. has anyone worked with JavaMail here and used a self made SSLFactory? I've just put it into the properties though it isn't called when receiving an unknown certificate. any idea? Jun 20 16:15:38 monsti: That's funny, Google always tells me it's raining, almost constantly. i'm glad it doesn't rain as much as they say it will Jun 20 16:16:02 it's currently raining! Jun 20 16:16:14 my window is always correct Jun 20 16:16:19 why is google lying :( Jun 20 16:16:40 is the wether flitered by the NSA??! Jun 20 16:16:44 monsti or , maybe you are in a special filter bubble :) Jun 20 16:16:53 damn :( i know it! Jun 20 16:17:05 i need the API Jun 20 16:17:39 nsa.google.com.Filter.setMode(MODE_LOCAL_ADMINISTRATOR); Jun 20 16:19:59 I am just starting my first app. I recently heard google released their own IDE. Their documentation still says to use ADT, is it just out of date or is the ADT plugin still the best way to go? Jun 20 16:20:31 navetz: are you experienced programmer ? Jun 20 16:21:17 if you can I would try AndroidStudio, but the thing is lots of tuts and docs will still reference eclipse+ADT Jun 20 16:21:20 thats why I ask Jun 20 16:22:28 StingRay_: I'm a decent programmer but I haven't been in the mobile development realm yet so I think I'll stick with the ADT plugin then try AndroidStudio when the docs are updated Jun 20 16:23:14 well if your used to build systems and IDE's then it maybe worth starting on AndroidStudio or IntelliJ Jun 20 16:23:20 but thats just my opinion Jun 20 16:23:26 google won't give us something like expression blend Jun 20 16:23:34 so get familiar with the xml stuff Jun 20 16:24:08 StingRay_: okay thanks Jun 20 16:24:35 most of the instructions are for the ADT, yeah Jun 20 16:27:33 navetz: I would defintivly go with IntelliJ/AndroidStudio Jun 20 16:32:08 memoryleak: why's that? also is IntelliJ what AndroidStudio was built off or are they both good but seperate ide's ? Jun 20 16:32:44 navetz: Android Studio features are part of next edition of IntelliJ Jun 20 16:35:35 p_l: so is android studio a plugin to IntelliJ the way ADT is a plugin to eclipse? Jun 20 16:35:54 Sorry guys, i am new on IRC, how do i respond to a particular msg (no private)? Jun 20 16:36:25 with a keyboard Jun 20 16:36:31 navetz: no, AndroidStudio is customized version of IntelliJ, but the same features will be part of Android plugin in next (13) version of IntelliJ Jun 20 16:37:35 monsti: I think you dont have screen shots for a reason … but hard to guess what it is Jun 20 16:38:01 options are, looks bad, so customers dont see what there getting,….. wow….these are all quite bad lol Jun 20 16:38:04 p_l: oh okay I see, will AndroidStudio branch out from IntelliJ or will each update of AndroidStudio correspond to an identical update in the Android Plugin for IntelliJ? Jun 20 16:38:42 StingRay_: we have an enterprise solution - the app is only 5% of the whole software Jun 20 16:38:48 navetz: I suspect in the end AndroidStudio will be a specialized branch of IntelliJ for some time, just like they offer several other specialized IDEs based on the same platform Jun 20 16:39:08 monsti: yeah, thats rather an odd excuse too Jun 20 16:39:13 shady Jun 20 16:39:15 :) Jun 20 16:39:21 p_l, what features are those exactly? Jun 20 16:39:25 yeah ;) Jun 20 16:39:36 p_l: gotcha. I suppose google would prefer for people to start using AndroidStudio over the ADT plugin soon as well Jun 20 16:39:57 monsti: I'm gonna go with secretly looks horrid ;) Jun 20 16:47:27 @monsti thanks :-) Jun 20 16:54:16 Hello Jun 20 16:54:44 howdy all Jun 20 16:55:03 I have an app in C# that I'd like to use in my android app Jun 20 16:55:27 sdaq: good luck Jun 20 16:55:39 the app also uses .net features Jun 20 16:55:48 god luck Jun 20 16:56:02 heh! Jun 20 16:56:06 Where is my apk file? I have made an app and a library project that depends on it. It loads in the emulator fine... Jun 20 16:56:24 But there is no apk file in /bin Jun 20 16:56:30 How to include .so library in android source? Jun 20 16:56:58 could I just use JNI to make a .SO that has a mono interpreter, and run the C# code on that? Jun 20 16:58:06 With ndk you can make native android .so library Jun 20 16:58:09 AndrewEagle, android source? is the .so compiled for ARM devices? Jun 20 16:58:58 AndrewEagle, anyway, native libs go into libs/ in your project Jun 20 16:59:05 Mavrik: I already prepared .so file with ndk Jun 20 16:59:16 where arch is the architecture for which the lib was compiled, one of "armeabi", "armeabi-v7a", "x86" or "mips" Jun 20 16:59:35 so, libs/armeabi for armv5 code, libs/armeabi-v7a for armv7te+ code Jun 20 16:59:49 can anyone help me find/create my apk file? Jun 20 17:00:54 Find your APK file? Jun 20 17:00:54 Mavrik: should I create this folders in my androidsource folder? Jun 20 17:01:04 benlieb you'll find the apk when its ready to be revealed ! Jun 20 17:01:11 what do you mean by your "androidsource" folder? Jun 20 17:01:13 benlieb: have you tried turning it off and on again? Jun 20 17:01:18 the libs folder has to be toplevel for your project Jun 20 17:01:26 unless you're using Gradle, then you're f'ed for now :P Jun 20 17:01:45 lov: ? Jun 20 17:02:04 do I have to manually generate the file? Jun 20 17:02:20 benlieb: it's the button on the side Jun 20 17:02:39 benlieb: it might be in your couch cushions. That's usually where I lose things. Jun 20 17:02:44 Your private key might be there too Jun 20 17:02:48 you should probably check Jun 20 17:03:34 Mavrik: I have no 'libs' folder. Just 'libcore'. I got android source due this: http://source.android.com/source/downloading.html Jun 20 17:04:02 wait what Jun 20 17:04:08 what are you trying to do? Jun 20 17:04:28 Mavrik: compile android Jun 20 17:04:36 Mavrik: frome source Jun 20 17:04:39 ah Jun 20 17:04:48 *shrug* Jun 20 17:04:52 Mavrik: and it should include my .so lib Jun 20 17:05:15 copy it into the final .zip archive? :P Jun 20 17:05:20 .so lib should be visible for another software Jun 20 17:06:14 ah, final archive... In final I will got .img files Jun 20 17:06:57 .so visible for other software? what's your usecase anyway? Jun 20 17:07:14 Android's library loader doesn't really work the same way other OSes do in for apk apps Jun 20 17:08:20 Mavrik: I mean if my self-created software should use this library Jun 20 17:09:24 is that self-created software an Android Java app that runs with a GUI? Jun 20 17:10:12 Mavrik: See, my lib include an filecheck method. Just like md5. And I need use this lib from special file manager. Jun 20 17:10:47 and now my question is… why are you trying to shove that lib into Android OS Jun 20 17:11:00 when NDK presumes you bundle native libraries with the apps using them Jun 20 17:11:40 Android really doesn't have a global .so loader when it comes to native .apk libs Jun 20 17:12:41 Mavrik: it was not my own change :-) Jun 20 17:13:38 Mavrik: you want to say that my way is technically impossible? Jun 20 17:17:09 right? I suffering 2 days for realise it)) Jun 20 17:19:08 AndrewEagle, I'm saying you're doing something overly convoluted and dumb Jun 20 17:19:21 where you could just copy the .so into your file manager project and use it directly :) Jun 20 17:19:39 and not have to flash all your devices with your custom android build for it ;) Jun 20 17:22:26 Mavrik: garbage devices is not my problem)) my problem just global visible .so =) Jun 20 17:24:02 kjeldahl: Thank you! You already helped me! Jun 20 17:24:39 Buuut I have more problems. I think nobody did think about multiple people working on a projekt, did they? oO Jun 20 17:25:03 Anyway. Has anybody seen this error before?: ERROR: APK path is not specified for module "cIM" Jun 20 17:26:33 anyone else have weird fuzzy font hinting in Chrome on the developer.android.com website? doesn't happen on any other google website; gmail / etc. ff is fine. i can change the font in Chrome using stylish or something but its still fuzzy. i think something weird with the bg off white + web fonts, etc Jun 20 17:27:27 on mac Jun 20 17:28:02 this has been going on for me a long time now, but i forgot about it when i switched to ff (which is causing me some troubles now, so i'm using chrome again) Jun 20 17:31:52 hm, doing the right thing with a content provider's authority in a library project / jar is tricky Jun 20 17:35:54 <|Agent> I have to set a Message's replyTo manually, right? Jun 20 17:38:59 <|Agent> If I obtain the Message from a Handler, I don't have to set the target, either, right, but do I have to set a target before I send it via Messenger.send()? Jun 20 17:41:01 hey guys. quick question. How do I check to see if /dev/video4 exists? I tried: File file1 = new File(Environment.getRootDirectory().getPath() + File.separator + "dev" + File.separator + "video4"); and then: if(file1.exists()) I believe my file path is wrong. But I don't know how to make it right. Can someone help please. Jun 20 17:41:55 need help to integrate google play games in my app Jun 20 17:42:01 <|Agent> BlInK311, I don't believe you need a file separator after the root directory path. Jun 20 17:42:27 alright, let me give that a try Jun 20 17:43:55 "Unable to sign in - application does not have a registered client ID" but it's works on other pc Jun 20 17:50:07 Its not looping anymore... but my following toast isnt displaying (using toast to verify file path) String filename1 = file1.getAbsoluteFile() + File.separator; Jun 20 17:50:07 Toast.makeText(context, filename1, Toast.LENGTH_SHORT).show(); Jun 20 17:55:48 Have anyone any ideas how to include .so library in self-built android with global visibility? Jun 20 18:01:14 anyone know google play games? Jun 20 18:01:28 i have problem authenticating Jun 20 18:01:41 with oauth2 Jun 20 18:01:41 man wtf happened with Falcon Pro Jun 20 18:08:02 no one have used google play games? Jun 20 18:08:28 it's a VERY BAD configuration system Jun 20 18:10:17 Hi, my R.java isn't generating anymore :/ Jun 20 18:10:33 There isn't any error showing in res/ though Jun 20 18:11:06 http://pastebin.com/H00Yr7qH Jun 20 18:11:09 undo the last thing you did before it didnt build Jun 20 18:11:38 The problem is that I tried a lot of things to fix it since then Jun 20 18:12:03 undo them 1st Jun 20 18:12:12 then undo the last thing b4 it broke :) Jun 20 18:12:36 Well, I tried restarting eclipse, so undoing isn't an option anymore Jun 20 18:12:45 Do a command line build, or use an ide that'll actually tell you your errors Jun 20 18:12:56 It broke when I tried to "Clean" it Jun 20 18:13:13 No, it broke before that .. you just deleted the already generated R Jun 20 18:13:49 Well I edited a layout file, but there isn't any error in it Jun 20 18:13:57 Walui you have some linked project? Jun 20 18:14:04 You have errors somewhere in your res/ folder Jun 20 18:14:13 It's that simple Jun 20 18:14:22 xan_it : don't even know what that means Jun 20 18:14:46 SimonVT : I really don't know where then Jun 20 18:15:07 Everything is shiny captain Jun 20 18:15:23 Blame eclipse for not telling you where Jun 20 18:15:41 * monsti blames eclipse for bad coffee! Jun 20 18:15:47 Every other build tool will tell you the issue Jun 20 18:15:49 and for the rain Jun 20 18:16:15 I blame Obama Jun 20 18:16:28 I blame Bush even more Jun 20 18:16:53 I actually don't know those guys, not 'murican Jun 20 18:16:58 :P Jun 20 18:17:13 So solution would be changing IDE ? Jun 20 18:17:30 lol ) IDE-hopping Jun 20 18:17:38 the new android running gag Jun 20 18:17:40 Or just doing an ant build or something Jun 20 18:17:43 because I won't Jun 20 18:17:51 Anything but eclipse Jun 20 18:18:08 And, start using some kind of source control so you can un-do your changes Jun 20 18:18:34 LOL yeeah ;) Jun 20 18:18:37 I didn't eally change anything in res :/ Jun 20 18:18:52 Just tried adding an id Jun 20 18:19:02 Which by the way, didn't work Jun 20 18:19:07 well that could be a bart simpson quote ;))) Jun 20 18:19:30 Hey guys, anyone in here good with Gerrit? I am trying to cherry pick a commit but it gives me an error when I search for it Jun 20 18:19:40 <|Agent> I have set up a Handler in my activity to handle response messages from a Service. So, when I send a request message to the Service, I need to set the request Message's .replyTo to Messenger that I create from the Handler. Should I create a new Messenger for each request, or reuse the same Messenger for all requests Jun 20 18:19:41 <|Agent> ? Jun 20 18:20:06 What IDE should I use then ? Jun 20 18:23:28 eclipse is a good one for android dev Jun 20 18:23:54 Walui: how big is your project ? Jun 20 18:24:10 really small Jun 20 18:24:18 just having fun Jun 20 18:24:20 messing around Jun 20 18:24:27 cool do this in order, will take a while but will solve your issue Jun 20 18:24:42 1. copy everything from res/ to someplace else Jun 20 18:25:19 2. starting with layouts, create a black layout and put in views with all the id's of your other layouts Jun 20 18:25:34 3. remove all other layouts Jun 20 18:25:47 actually talking crap here Jun 20 18:25:50 wait a sec Jun 20 18:25:54 Walui: I'd recommend using Eclipse until Android Studio is more stable Jun 20 18:26:09 how many layouts have you got / Jun 20 18:26:10 ? Jun 20 18:26:22 quite a bit Jun 20 18:26:39 order by date/modified Jun 20 18:26:50 and remove the last ones from x time Jun 20 18:26:51 anyone know how to get glGenVertexArrays using the NDK? Jun 20 18:26:57 then create dummy ones Jun 20 18:27:33 Actually, I only have 6 xml layout files Jun 20 18:27:44 10 minute job to fix then ;) Jun 20 18:28:07 if not layouts, values etc so on and so on Jun 20 18:28:16 wont take that long on a small proj. Jun 20 18:28:50 What do you mean "create dummy ones" Jun 20 18:29:00 Empty files with the same name ? Jun 20 18:29:14 ones that look nothing like what you want but have same type and id's so it will build/run Jun 20 18:29:55 Might take more time then, I have a lot of views in those files Jun 20 18:30:02 <|Agent> Jeez. For bidirectional communication with a bound service, I need four fields: ServiceConnection, Messenger for requests to service, Handler for responses from service, Messenger for responses from service that I use as the replyTo. Plus, a latest-request id number for canceling, but that's down to the protocol I've chosen. Jun 20 18:30:17 Time to eat, I'll try that later Jun 20 18:30:21 thanks by the way Jun 20 18:30:54 |Agent in the same process? Jun 20 18:31:26 <|Agent> yeah, but service uses worker threads Jun 20 18:31:53 glad they aren't slacker threads Jun 20 18:32:12 Have anyone any ideas how to include .so library in self-built android with global visibility? Jun 20 18:32:38 I mean system wide visibility. Jun 20 18:33:31 anyone have a way to caculate the scrollY or contentOffset of an ListView Jun 20 18:34:15 Surely no one built android from source with inclusions? Jun 20 18:34:20 I'm trying to synchronize movement where when the listview scrolls a header view will scroll as well, but what differs is that I need it to "dock" at a certain time Jun 20 18:34:37 time ? Jun 20 18:34:41 you mean Y coord ? Jun 20 18:35:02 co-ord Jun 20 18:37:56 <|Agent> I suppose I can ditch the Handler for the responses from the service and create one locally for the Messenger to keep alive. Jun 20 18:38:51 <|Agent> Don't think I actually need to refer to the Handler at all. Jun 20 18:39:06 yes StingRay_ Jun 20 18:39:29 eh sec... let me send you a pic Jun 20 18:40:15 xastey: well you can get a 1st vis item and the offset neg/pos of that item from the top Jun 20 18:40:41 not sure you will get a pixel position of the scroll cause not sure the listView knows Jun 20 18:40:41 yeah I'm doing that.. which works good IF I dont move the listview itself Jun 20 18:41:05 so when the listView scrolls I do int scrollY = (-firstChild.getTop() + (firstVisiblePosition * firstChild.getHeight())) Jun 20 18:41:33 and then I clamp the value and apply the change to my topView via setTranslationY Jun 20 18:41:37 this all works as expected Jun 20 18:42:00 but if I move the listView as well so it tags along the bottom of the topView it messes up Jun 20 18:42:22 is it a bad idea to assume vertex arrays will exist on most ES2.0 implementations? Jun 20 18:42:29 so thats topView.setTranslationY(offset); then containerView.setTranslationY(topView.getY() + topView.getHeight()); Jun 20 18:49:38 So StingRay_ this is the view http://conceptual-ideas.com/dump/1.png Jun 20 18:49:43 pretty simple Jun 20 18:50:27 what I want to do is when you scroll up on the list the header part moves as well , but it stops right when the white area starts, so all you see is the subnav(posts,drawers etc) and the rest of the view Jun 20 18:55:58 How can I move playback controls to be on top of a VideoView instead of at the very bottom of the screen Jun 20 18:56:08 as of android 4.1.2 you can invert the screen colors, how do you set this setting? Jun 20 18:57:23 @rved I dont think stock roms has that option. I've seen it only on custom roms Jun 20 18:57:48 rved: that's theming Jun 20 18:58:23 theme? really? it must me android api? Jun 20 18:58:55 maybe I misunderstand what you mean Jun 20 18:59:06 as of 4.1.2 Jun 20 18:59:07 http://www.tech-recipes.com/rx/40014/android/ Jun 20 18:59:12 where can i set this setting? Jun 20 18:59:17 it must be like 0 or 1 Jun 20 18:59:28 oh Jun 20 18:59:32 that's a system setting Jun 20 18:59:57 Either in https://developer.android.com/reference/android/provider/Settings.html or in https://developer.android.com/reference/android/provider/Settings.Secure.html somewhere Jun 20 19:01:03 lov: nothing found :s Jun 20 19:01:07 Take a look at the settings app and see what it's changing Jun 20 19:01:18 I don't have that setting Jun 20 19:03:09 looks like it could be a Samsung feature Jun 20 19:03:31 Yeah, take a look at AOSP settings; if it's not there it's vendor specific. Jun 20 19:03:37 I dont think there would be a way to change it using an app Jun 20 19:03:43 that would be a disaster Jun 20 19:04:17 if it's a samsung setting it's probably possible because lol samsung Jun 20 19:06:42 it is a bit unclear in the docs, should getPurchases() from the new APIv3 not be called on the main thread? Jun 20 19:08:09 wut, something isn't clear in the docs? Jun 20 19:09:05 Has anybody seen this error before?: ERROR: APK path is not specified for module "cIM" Jun 20 19:09:31 "Compile Scala to JavaScript With Scala.js" yeowza Jun 20 19:10:37 i guess thats one way of handling the "jvm situation" :) Jun 20 19:12:00 hey guys. I need to check /dev/video4 File file1 = new File(Environment.getRootDirectory().getPath() + File.separator + "dev" + File.separator + "video4"); checks /system/dev/video4 ... is there anyway to check /dev/video4??? Jun 20 19:12:38 * lov sighs Jun 20 19:12:50 File file1 = new File("/dev/video4/"); Jun 20 19:13:02 or File file1 = new File("/dev", "video4"); Jun 20 19:13:08 sorry, ignore the trailing slash in the first sample. Jun 20 19:13:11 If i have a view that's defined in a layout file. And i want to know something about that view, (eg width), is it possible to do that without inflating the whole view? Can I just read the XML w/o actually doing the whole process of inflating it? Jun 20 19:13:41 Mind you, given that /dev may just be an alias, you could be ending up in /system anyway Jun 20 19:13:45 use pwd -P or something at the shell Jun 20 19:14:11 That said, trying to access /dev/anything is probably a recipe for disaster for you unless you actually know what you're doing. Jun 20 19:15:00 not accessing...just checking if it exists Jun 20 19:15:21 if(new File("/dev/video4").exists()) Jun 20 19:15:22 done Jun 20 19:16:07 Does apps even have read permission to that? Jun 20 19:16:18 if its that easy, im going to be mad at myself Jun 20 19:17:23 probably not. Jun 20 19:17:28 well Jun 20 19:17:40 they probably have read access to /dev, but access to any devices w/in dev is questionable. Jun 20 19:18:08 I know that on the G1, /dev/somethingorother gave you the NMEA data when the GPS was running. It's really a question of what was actually enabled. Jun 20 19:22:43 Jun 20 19:25:31 can some one tell me which device has Accelerometer, Light, Orientation, Proximity, Gyroscope, Sound and Magnetic sensors ? Jun 20 19:25:50 Aside from the gyroscope, just about every device? Jun 20 19:25:58 for gyroscope, look at higher-end phones. Jun 20 19:26:14 if i would like to collect some user data, what is the best way? what i want is for ppl to stay up to date about new apps Jun 20 19:26:23 should i collect their emailadres? Jun 20 19:26:29 or what wouldd you recommand Jun 20 19:26:41 i don't want to steal data or stuff like that Jun 20 19:26:57 I would recommend that you not spam them because I really never enjoy getting an email telling me about "great new offers" Jun 20 19:27:17 if users opt-in to your mailing campaign, great, but they should probably do it through a webpage or something. Jun 20 19:27:34 ya true, dont spam Jun 20 19:27:39 no i don't wanna spam Jun 20 19:27:43 i want ppl to like me :) Jun 20 19:27:50 and my future apps Jun 20 19:27:57 try making good apps Jun 20 19:28:00 the rest will follow naturally. Jun 20 19:28:01 i am Jun 20 19:28:08 well, i need to build up a customer base Jun 20 19:28:15 i only have 9 download atm Jun 20 19:28:22 just released Jun 20 19:28:34 u can put a button like "more apps by me" and when they click, open your sore Jun 20 19:28:35 well, that's not too bad for something that's just been released. Try advertising in general. Jun 20 19:29:49 or would you make a social media link? Jun 20 19:29:53 for the first time Jun 20 19:30:04 or newsletter subscription :D? Jun 20 19:30:14 i want to show something 1 time only Jun 20 19:30:17 with a question Jun 20 19:32:02 what do you guys do Jun 20 19:32:04 ? Jun 20 19:34:06 when does onHandleIntent() get called with an activity...? Jun 20 19:34:33 Never Jun 20 19:34:37 Hey lov... if(new File("/dev/video4").exists()) works perfectly...thank you Jun 20 19:35:30 How can I start my activity from a running service and send it some initial value? Jun 20 19:36:27 parco: startActivity is available from a context. service is a context. *cough* Jun 20 19:37:06 lov, so I can grab the particular intent from onCreate() with getIntent(), but what if the activity already exists? Jun 20 19:37:38 lov do you use eclipse or intellij ? Jun 20 19:38:14 oh the silence … this can only mean one thing ... Jun 20 19:38:25 don't feel shame Jun 20 19:39:06 "onNewIntent()" might be the answer Jun 20 19:40:48 parco: onNewIntent Jun 20 19:41:19 g00s: I use eclipse, I haven't had the chance to try Android Studio in earnest. I gave it a try twice; the first time, it unceremoniously crashed, the second I couldn't figure out what was going on so I just moved on. Jun 20 19:41:24 lov, would that also get called if the activity didn't previously exist? Jun 20 19:41:32 Hey guys I'm new to Android development. How do I link this button http://i.imgur.com/M8s2C6i.png to a new page so it opens an image? Jun 20 19:41:43 parco: if the activity doesn't exist, onCreate is called. If the activity exists and is given a new intent, onNewIntent is called. Jun 20 19:41:53 parco: you are cordially invited to read the Activity Lifecycle documentation. Jun 20 19:42:15 I have got Sony Xperia Neo L. it says it has Light/Proximity sensor in its manual. I can see screen brightness going down when i pit it in cover. But while testing in a program TYPE_PROXIMITY is always giving me null also TYPE_LIGHT too. any idea ? Jun 20 19:45:29 i'm trying to determine a working project structure *with tests* usable by eclipse and intellij. i think eclipse wants 2 sibling projects in the workspace (Foo and FooTest) where FooTest depends on Foo. but i think the way with idea, which is the same as the prescription for ant, is for Foo to have a test folder. in idea, the test folder is a module … i think Jun 20 19:45:34 * g00s confused Jun 20 19:46:37 in idea, can a module be physically (as in filesystem) located within a content root of another module ? Jun 20 19:47:58 g00s: look out for dynamic lib loading in manual. Jun 20 19:48:07 You'd just have 1 module for project + tests Jun 20 19:48:43 SimonVT i'm confused, because the android facet has 3 types of modules: Project, Library, and Test Jun 20 19:49:39 How would you guys handle this, im binding to the Billing API from a service, but if i would like to show the purchase screen, i have to fire startIntentSenderForResult(), which doesnt exist... Jun 20 19:50:17 actually, Application, Empty, Library, and Test Jun 20 19:50:25 anybody here use AndEngine? Jun 20 19:51:24 SimonVT i was following this , maybe its out of date http://www.canoo.com/blog/2012/01/12/android-testing-in-intellij-idea/ Jun 20 19:52:23 so when i see this figure http://www.canoo.com/blog/wp-content/uploads/2012/01/03ProjectView.png Jun 20 19:52:49 seems to say to me there is an application module, which then has a test module in it Jun 20 19:52:57 >.> Jun 20 19:53:10 Do that then Jun 20 19:53:58 I got maven to set up my modules Jun 20 19:54:48 Have any of you guys ever sent a DMCA regarding the play store? It's been 3 days since I submitted and had no response beyond the auto reply. Jun 20 19:54:48 i'm not using that atm. i dont even want to know what gradle wants as far as structure Jun 20 19:57:17 do i need a separate BitmapTextureAtlas for every sprite ? Jun 20 19:58:01 i made three sprites but they all load with the same image Jun 20 19:58:32 I recently switched to Gradle (android studio) from Eclipse and fired up a few months old project using a ViewPager + PagerAdapter. Has there been any significant changes to these components? Everytime I flip a page, the PagerAdapter seems to run instantiateItem on every page (which is really slow since I got hundreds of them). I noticed that I'm now forced to run notifyDataSetChanged() Jun 20 19:58:33 every time the size is changed, but this is done only once. Anyone knows what's going on here? Jun 20 20:01:08 rops: send another by certified mail. If they don't take action or at least respond, then there's legal liability. A certified letter will get you action. Jun 20 20:01:28 chip2n: I don't think this is related to gradle. Jun 20 20:03:01 lov: Probably not, I would probably get the same result in Eclipse. I can't find anyone else who has encountered this problem though. Jun 20 20:03:34 I thought instantiateItem was only run for the current page and the two pages next to it. Jun 20 20:03:46 And certainly not on each page every page switch Jun 20 20:04:51 i dunno, i find the intellij UI as or even more confusing than eclipse Jun 20 20:05:22 yeah IDE hopping ;) Jun 20 20:06:17 SimonVT so if you did not use the android facet Test Module, did you just specify a content root type as 'test' ? Jun 20 20:06:56 http://www.jetbrains.com/idea/webhelp/configuring-folders-within-a-content-root.html Jun 20 20:08:36 g00s: I just can't wrap my head around that - I find the intellij UI so much more intuitive and easy to use/understand than eclipse. I honestly can't understand how someone wouldn't find it to be so. Not that I'm saying you don't of course - or that your viewpoint is wrong. But I just don't get it. Jun 20 20:08:40 As I said, maven does my configuring Jun 20 20:08:49 When I switch to gradle, gradle will do my configuring Jun 20 20:09:20 ok Jun 20 20:09:29 Maven sets up 1 module for project + test Jun 20 20:09:32 which is weird, because I normally try to, and am able to understand the other viewpoint :) Jun 20 20:09:40 But again, maven is also where I run tests Jun 20 20:09:41 even if I don't agree Jun 20 20:10:27 SimonVT yeah, maven had its own opinion on organizing the dir structure with regards to tests Jun 20 20:11:44 Anyone know how to prevent gradle from building all the libraries when you're running the app if they're up to date? Jun 20 20:11:49 which you can change however you like Jun 20 20:11:50 (in Android Studio) Jun 20 20:19:30 I want to use SU in my app,but eclipse says that Shell.SU doesn't exist,do I need to import something? Jun 20 20:19:39 JesusFreke i'm forcing myself to use it , just to be knowledgeable . i probably need an intellij expert to show me some tricks; its awesomeness was/is not obvious to me yet Jun 20 20:20:59 i've never had problems with eclipse being slow/bloated/crashing - so i'm coming to idea having a positive experience of eclipse Jun 20 20:21:20 i guess many have had negative experiences with eclipse Jun 20 20:21:48 Yeah, I don't know what the difference is. Differences in workflow, or expectations, or development style or something. I'm not sure. Jun 20 20:21:50 if my ide was crashing, anything i moved on to that didn't crash would automatically be awesome Jun 20 20:22:41 it's not really even that for me (although I do find IDEA much more stable and performant). It's just that it uses a model and UI and feature set that is much saner to my brain Jun 20 20:22:51 I had eclipse crashing a lot in the past Jun 20 20:22:52 It just "feels right" to me Jun 20 20:23:08 Android Studio also has a dark theme, yey :3 Jun 20 20:23:44 then I used for a bit visual studio,and eclipse now just feels stupid Jun 20 20:24:08 there are minor annoyances with ADT that piss me off, simple stuff like column in logcat not being remembered between runs - i donr need to see the pid, always hide it, pita. Jun 20 20:24:32 helicopter88 i usually hear good things about VS Jun 20 20:25:02 all I can say is that working (even though I am a noob) with C#,WP and VS is really a pleasure Jun 20 20:25:13 g00s, best thing about VS is that it's snappy and fast Jun 20 20:25:31 helicopter88 oh, you like WP? i would like to try that Jun 20 20:25:34 autocomplete doesn't take a year like it does in eclipse, heh Jun 20 20:25:39 :) Jun 20 20:25:48 WP? Jun 20 20:25:59 and C# is much more pleasurable to work with than java Jun 20 20:26:00 presumably WP=Windows Phone Jun 20 20:26:05 yeah Jun 20 20:26:10 windows phone,yea Jun 20 20:26:19 g00s, never tried it on a device I own Jun 20 20:26:31 but used some friends WP,performance was superb Jun 20 20:26:43 g00s: out of curiosity, have you used visual studio in the past? Jun 20 20:26:45 when i read some cool thing about c# i think, going back to java, why the f am i wasting my time with this crap Jun 20 20:26:58 simple answer: use scala :p Jun 20 20:27:00 and ease of use + rare rare crashes = extremely good for not geeks Jun 20 20:27:00 JesusFreke oh, maybe 10 years ago Jun 20 20:27:11 g00s: liked it, or no? Jun 20 20:27:15 Visual C++ 1.52 :) Jun 20 20:27:23 ah, that's probably a bit early :) Jun 20 20:27:27 it was so old - no comparison to what they have now Jun 20 20:27:35 VS11 is what I have now Jun 20 20:27:40 looking at eclipse makes me cry Jun 20 20:27:43 especially the UI designer Jun 20 20:27:44 it seems to me that visual studio users typically like intellij Jun 20 20:27:54 pfn: Is scala well supported for android development? I'm interested but also very afraid :D Jun 20 20:28:10 chip2n, it is not directly supported, no Jun 20 20:28:20 there are tons of ways to make it work, though Jun 20 20:28:38 hacking the ant build scripts, at least one maven plugin, and several sbt plugins Jun 20 20:29:02 Maybe I should do my next app in scala, just to try it out Jun 20 20:30:31 since I got so many answers I assume none knows how to implement SU in an app :P Jun 20 20:30:37 what jar does android/tools/build build into? Jun 20 20:30:45 what's to implement Jun 20 20:30:52 you don't implement su in an app Jun 20 20:31:21 pfn, well,I want to execute a command with su permissions Jun 20 20:31:40 I suppose I need to add something to my app other than the SU permission to manifest Jun 20 20:32:54 since eclipse can't build as Shell.SU doesn't exist Jun 20 20:33:43 any idea what the Java 6 EOL'ing by Oracle will do for Android dev? Jun 20 20:33:53 last i heard Google was still recommending JDK 1.6 for Android development Jun 20 20:34:11 jonp, pheraps they will change this with 4.3 Jun 20 20:34:28 i'm not entirely familiar with what the problem with Java 7 is... Jun 20 20:34:57 presumably we'll need a new API level and android.jar, which would necessitate 4.3... Jun 20 20:35:25 <|Agent> What does the BIND_AUTO_CREATE flag do? It says "automatically create the service as long as the binding exists", but isn't that a given with bindService(), which says "Connect to an application service, creating it if needed"? Jun 20 20:35:39 |Agent thats well documented Jun 20 20:38:28 <|Agent> I guess bindService *only* creates the service if needed if given that flag, based on the Bound Services guide. Jun 20 20:39:03 thats one thing i wish they fixed - if a service is in your process, binding should be synchronous - the way it is now , even as a local service, the async nature of ServiceConnection is such a PITA Jun 20 20:39:19 <|Agent> There's only one sentence that mentions this, btw; wouldn't call it well-documented. Jun 20 20:40:22 that's because service creation+dispatch goes through the main loop Jun 20 20:40:26 it can't be synchronous Jun 20 20:40:38 well, relatively speaking :D Jun 20 20:48:41 helicopter88, then execute a command with su -c Jun 20 20:48:52 hmm Jun 20 20:49:05 jonp, eol of java6 does nothing to android Jun 20 20:49:09 java 7 can build android perfectly fine Jun 20 20:49:44 java9 will take away -source/-target 1.4 Jun 20 20:49:51 so java9 will continue to build android apps perfectly fine as well Jun 20 20:51:42 pfn: i've heard/read that the Java 7 compiler and signing utilities/etc. cause problems Jun 20 20:51:52 pfn: in any event, the Android SDK page explicitly states the use of Java 6, not 7 Jun 20 20:53:01 jonp, the default settings cause problems, you can specify android-correct settings Jun 20 20:53:08 * pfn builds with java7 on a regular basis without issue Jun 20 20:53:40 pfn: it would be incredibly handy if Google could document that somewhere on developer.android.com... Jun 20 20:53:51 * kjeldahl uses java7 as well. Jun 20 20:54:10 what's to document, it's all overstackoverflow and whatnot Jun 20 20:54:19 google has a version they recommend Jun 20 20:54:21 so use it Jun 20 20:54:31 when it goes eol, I'm sure they'll update their docs Jun 20 20:54:54 <|Agent> Hm. Looks like, if I want to keep an operation for an Activity running in a Service in the background while I change orientation, I'll have to give the Activity a UI-less Fragment to keep the Service alive and provide the Service with a point of reference to know where the operation's results should go. Might as well have saved myself the trouble of doing a Service. AsyncTask has less overhead. Jun 20 20:54:54 I think the most important thing is that the the setting for generating java6 bytecode is most important (and that setting is active by default for Android stuff). Jun 20 20:55:13 (instruct java7 to emit java6 bytecodes) Jun 20 20:55:32 <|Agent> Different solution spaces, I guess. Services are for complex protocols. AsyncTask is for simple one-off stuff. Both need a UI-less fragment to work across orientation changes. Jun 20 20:57:41 <|Agent> This "destroy the Activity on orientation change" thing is a real pain. Jun 20 20:57:51 <|Agent> Can I get an "amen"? Jun 20 20:58:30 i thought during i/o fireside somebody asked about java 6 eol (its eol already, right?) and they said initially there was some hickup with java7, but now it works out of the box. i think the web site still says java 6 anyhow Jun 20 20:59:37 <|Agent> g00s, I know you can't switch on strings yet with the latest android SDK. So I dunno. Maybe they're talking internal nightlies. Jun 20 21:00:58 services don't need a ui-less fragment Jun 20 21:01:13 |Agent, you can always handle orientation change yourself if you wanted Jun 20 21:01:24 if you don't have -land and -port resources, you can ignore orientation changes Jun 20 21:02:14 oh, java 6 eol'd today Jun 20 21:04:18 oh did it Jun 20 21:04:44 <|Agent> pfn, ignore orientation changes, you mean with that "configChanges" XML property that indicates that app handles such-and-such itself? Jun 20 21:05:01 yes Jun 20 21:05:32 <|Agent> The docs say that is a last resort. Jun 20 21:05:56 if you aren't skilled enough to handle recreation, it is a last resort :p Jun 20 21:06:14 <|Agent> Oh, I can handle it. With a UI-less fragment. :) Jun 20 21:06:46 <|Agent> Or else by tying the lifetime of the service to the lifetime of the Application. Jun 20 21:09:47 use whatever suits your needs Jun 20 21:09:52 <|Agent> (what the hell am I listening to? polka? why is that on an ambient trance channel?) Jun 20 21:10:32 man, gradle is so slow Jun 20 21:13:05 I have a linearlayout with two nested linearlayouts. In the first I have a textview and in the second I have a textview and a button. Whats a good way to avoid the textview in the first linearlayout stealing space (making the button's height smaller) when string in the textview is long? Jun 20 21:14:04 here is the layout: http://pastebin.com/UimCfM53 Jun 20 21:14:16 set the second linearlayout to a specific height Jun 20 21:14:22 or weight Jun 20 21:14:44 I've set weight I thihnk Jun 20 21:16:20 Is it done wrongly? Jun 20 21:18:35 pfn does the gradle build system expect the same directory layouts as the ant stuff ? Jun 20 21:18:39 no Jun 20 21:18:44 it's vastly different Jun 20 21:18:52 i tried gradle and went back to maven Jun 20 21:19:22 i'm intrigued by the idea - but - groovy just has to go away Jun 20 21:19:27 with php Jun 20 21:19:30 and java Jun 20 21:19:49 if you really want to try a different build system, try either maven or sbt Jun 20 21:20:15 oh i've used maven plenty; and written plugins Jun 20 21:20:24 haven't used it with android tho Jun 20 21:20:40 i just used the supplied ant stuff which always sufficed for my simple needs Jun 20 21:21:44 supplied ant stuff sucks Jun 20 21:23:16 I'm finding posting multiple files to a server is rather involved if you want to ensure data delivery and provide a good user experience Jun 20 21:24:27 theres multiple things to consider, and to make it seemless insnt just a 10 minute job Jun 20 21:24:51 pfn so are you using gradle w/o AS ? Jun 20 21:25:29 no, I'm not Jun 20 21:25:52 only reason I'm looking at gradle is to figure out where the hell com.android.tools.build is located Jun 20 21:25:52 i don think the gradle build stuff works with plain idea or ADT .. otherwise i would have looked into it more by now Jun 20 21:25:58 oh Jun 20 21:29:03 Wohoo! I found solution about including shared library in self-built android system-wide! If anyone need it I can answer. Jun 20 21:29:41 http://bpaste.net/show/2zTI518l9yKxDS0238Ta/ - does anyone know why this happens? Jun 20 21:32:45 interesting, foxconn is hiring thousands of developers to work on FirefoxOS and its own cloud services Jun 20 21:35:11 anyone else got a suggestion? :) Jun 20 21:36:31 Quacked: you have weight for the bottom LL set to 0.05 -- that's never going to give you a tall container Jun 20 21:38:21 If I set it bigger the button becomes taller than I want Jun 20 21:39:40 is there an easy way via the shell to determine which keymap my phone is using Jun 20 21:40:00 i need to make some changes to myactive .kl and i can safely say its not working with Generic.kl Jun 20 21:40:14 evanc: its fine as long as the string in the textview above doesnt reach bottom so scrolling is activated Jun 20 21:44:22 what else must I do ? :/ Jun 20 21:45:35 on paper the Samsung galaxy NX looks pretty cool Jun 20 21:46:05 "I’m holding out for the Galaxy Washing machine." hah Jun 20 21:46:34 any one here have nexus 4 ? Jun 20 21:46:56 yep Jun 20 21:47:14 bankai_: does it has Proximity and Light sensors ? Jun 20 21:47:32 light yes, don't know what you mean about proximity Jun 20 21:48:44 A proximity sensor is a sensor able to detect the presence of nearby objects without any physical contact. Jun 20 21:49:10 any thing like that in Nexus 4 ? Jun 20 21:49:32 evanc: I could go for a relativelayout instead and nest a textview within a scrollview, but I'm thinking it must be possible with linarlayout as well Jun 20 21:51:00 t2mkn: yes Jun 20 21:51:33 bankai_: whats that called in their Jun 20 21:52:10 * Zharf sighs Jun 20 21:53:00 oh, cool, google publishes com.android.tools.build on mvn central Jun 20 21:53:31 * Zharf hates all the options for editing items in a listview Jun 20 21:54:45 hotness Jun 20 21:58:18 meh.. had too height set to wrap content Jun 20 22:20:15 Ok guys! How do I tell my SQLiteOpenHelper that it should store the database on the sdcard? Jun 20 22:21:19 "SQLiteOpenHelper! i command you to store the database on the sd card" Jun 20 22:21:27 works every time Jun 20 22:21:45 can anyone tell me what could be horribly wrong in https://github.com/helicopter88/android_packages_apps_ChangeLog/blob/3041f9ec0ad95f628d4998adcfc9d2a4d477202c/src/com/helicopter88/changelog/MainActivity.java (I get it to print Unable to parse changelog in my listview) Jun 20 22:22:30 alegen: I will try. Jun 20 22:22:53 well,uhm,gotta go sleeping Jun 20 22:22:53 alegen: It works. Next question: How do I make it obey? Jun 20 22:26:06 hey Jun 20 22:36:32 i have found a build system worse than ant / maven / gradle Jun 20 22:36:43 it is called CMake Jun 20 22:41:15 I see a few crash reports on one of my apps being: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative. Jun 20 22:41:22 On the line setContentView(R.layout.activity_main); Jun 20 22:43:05 * pfn publishes version 0.6.0 of his sbt plugin for android Jun 20 22:43:25 Parent in values/styles.xml is set to Theme.Sherlock.Light, but in values-v11 and v14 I've set parent to android:Theme.Holo.Light. Is that wrong? Jun 20 22:43:46 abs probably already does that Jun 20 22:44:17 What would cause that error then? :/ Jun 20 22:45:11 hi there. Jun 20 22:45:47 I have a question: how can I figure out what NDK reversion was packaged with what SDK? Jun 20 22:46:11 in particular NDK reversion r5, for stlport support Jun 20 22:47:36 ndk isn't packaged with sdk Jun 20 22:48:22 like NDK runtime is shipped on android phones > API level 7, right? Jun 20 22:51:04 I'm reading that with the NDK runtime r5, stlport is included. My problem is that I can't seem to find out with what android version NDK r5 runtime has been shipped on the phones Jun 20 22:51:14 if you're using a native activity (non java) you need platfrom 10 at least Jun 20 22:51:51 we're just linking a native libary, not an activity. Jun 20 22:52:14 philipp_: there should have been a list in NDK docs Jun 20 22:54:06 I have a phone with android version 2.2.2 where my native lib works fine with using a shared stlport version, where there is a device out there with android 2.3.7 that doesn't seem to have stlport installed. Jun 20 22:55:05 you know theres a static version right? Jun 20 22:55:25 can the handset manufacture ship different NDK reversions with their android? Jun 20 22:55:45 yes, but when I bind it static it blows up my APK as we have more then one lib Jun 20 22:57:36 Heya Jun 20 22:58:00 Is it possible to get the height of a view in the onMeasure callback? Jun 20 22:58:06 Or is it on the onLayout callback? Jun 20 22:59:58 so thats why we thought the shared version should work as stlport was introduced in Dec 2010, together with android 2.3. BUT we have a phone with 2.3.7 that is not working Jun 20 23:03:18 aww shit, uninstalled apple java 6 and installed oracle java 7 on OS X (10.7). java -version shows the right thing from the command line, but none of the java apps are launching Jun 20 23:09:29 philipp_, not all vendors did the right thing in including platform libs Jun 20 23:09:49 philipp_, the android 3.x versions of the samsung galaxy tab was missing various native audio libraries Jun 20 23:09:52 like libwilhelm and shit Jun 20 23:10:29 ah, thats good to know... Jun 20 23:10:39 it makes sense, as the crash we see is on some LG devices. with similar version numbers Jun 20 23:16:19 Which audio streams does setRingerMode() effect? Jun 20 23:28:13 pfn: thanks Jun 20 23:28:44 you might look at the cts specs to see what libs are supposed to be guaranteed present Jun 20 23:29:56 hmm, how does setTextSize affect a textview that has a spannable text that consists of multiple different sizes? Jun 20 23:42:23 Quacked: use ABS themes everywhere Jun 20 23:48:58 hey guys Jun 20 23:49:09 i am really trying hard to get GCM working without success at the moment Jun 20 23:49:12 i am running: GCMRegistrar.register(getApplicationContext(), gSenderID); Jun 20 23:49:42 in my GCMIntentService I am not getting anything back. I have breakpoints setup anywhere. Jun 20 23:50:10 would this be a misconfiguration of my AndroidManifest.xml file and if so, how can I verify things are correct? this has been driving me nuts all afternoon Jun 20 23:50:20 JakeWharton: so you think the holo use in those two styles could give that error on a rare occasion? Jun 20 23:50:25 cause I cannot reproduce it myself Jun 20 23:51:51 huh, can the gradle build handle old-style android library projects? Jun 20 23:51:54 the source seems to indicate no Jun 20 23:52:47 but I guess that makes sense Jun 20 23:54:46 what do you mean "old style" Jun 20 23:55:03 eclipse-ADT/ant library projects Jun 20 23:55:14 of course, just point it at the right folders Jun 20 23:55:22 I guess it takes build configuration to make it work or something Jun 20 23:56:14 yes Jun 20 23:57:42 I guess I can implement my own LibraryDependency Jun 20 23:58:00 meh, so much work to use AndroidBuilder instead of everything hand-rolled, like before Jun 21 00:00:32 it's pretty easy to just create an aar Jun 21 00:02:31 * pfn isn't using gradle Jun 21 00:04:41 I'm extending a SherlockDialogFragment but if the string in its textview is very long, the buttons at the bottom of my layout are pushed out of the screen. What must I do? :) http://pastebin.com/90p8XdYE Jun 21 00:05:56 ah, aapt --output-text-symbols Jun 21 00:16:20 anyone? :) Jun 21 00:22:14 set ellipsize on the textview Jun 21 00:22:17 or use a scrollview Jun 21 00:26:14 hmm Jun 21 00:26:39 It already scrolls though Jun 21 00:29:26 hey guys Jun 21 00:29:53 I have a dialog fragment with an onAttach that takes an activity Jun 21 00:30:08 is it normal to do that whole listener pattern on the activity of onAttach Jun 21 00:33:46 I made it.. added another linearlayout so I could weight it properly Jun 21 00:55:01 does anyone here have OS X 10.7 with Oracle JDK 7 installed - but NOT Apple Java Jun 21 01:05:18 dang i messed up my java install big time Jun 21 01:07:58 Is there a database solution for two way syncing to a central database? Jun 21 01:13:06 thezboe: elaborate Jun 21 01:15:39 Anyone launch eclipse after your app was working then all of the sudden you get didn't find class "android.view.activity" on path....? Jun 21 01:18:44 funkbox: I want to be able to enter data on both the phone or on my computer and have them show up in both places. Jun 21 01:18:55 Good evening Jun 21 01:19:04 thezboe: lots Jun 21 01:19:15 I was just wondering if there was any prebuilt or ubiquitous solution that was popular Jun 21 01:19:28 https://www.parse.com/ could work Jun 21 01:20:30 thezboe: http://en.wikipedia.org/wiki/CouchDB Jun 21 01:23:50 Is there a list of known bugs for Android Studio? Jun 21 01:26:27 no Jun 21 01:26:37 actually, yes. http://youtrack.jetbrains.com/ Jun 21 01:28:26 There appears to be an issue if you use a custom path with a space in the installation folder name. Launching the SDK manager yields D:\....\Android is not a valid exe. Someone forgot to escape it somewhere. Jun 21 01:45:46 Does anyone know a good bookmark manager that is not cloud based that has a good ui for sorting bookmarks? Jun 21 01:45:57 vi Jun 21 01:46:20 (pardon the non-android question, just figured this group would have a decent answer or two) Jun 21 01:46:48 ahh i'd like to use my mouse though Jun 21 01:47:07 gvim Jun 21 01:47:44 hmmm Jun 21 01:47:45 thanks! Jun 21 01:55:00 how would I architect this Jun 21 01:55:10 I have a fragment with a button on it Jun 21 01:55:19 it has a sub-fragment that it swaps out Jun 21 01:55:34 so the main fragment has the menu bar at the top, and it swaps in/out different lists below it Jun 21 01:55:51 when the button does its stuff, it needs to notify the sub list Jun 21 01:56:25 maybe what I do is I have the sublist be a listener and as they get swapped in/out they are added/removed to the callbacks for the button? Jun 21 01:57:47 are you asking how to route the button's action to the appropiate sublist? Jun 21 02:07:06 yes Jun 21 02:07:22 right now what happens is the button gets the activity from the onAttach Jun 21 02:07:29 it sends the callback to that onAttach Jun 21 02:07:34 the activity forwards it to the sublist Jun 21 02:07:43 problem is, the sublist is being stored in the activity's onCreate Jun 21 02:08:02 so the activity isn't always created after the sublist fragment is created Jun 21 02:08:11 so sometimes it is null and the activity can't forward it Jun 21 02:08:23 I think maybe the better option is to not use the activity's onCreate to find the sublist Jun 21 02:09:42 umm Jun 21 02:09:46 whatever swaps in the list Jun 21 02:09:56 based on the list sets a current state variable Jun 21 02:10:06 then use an enum to switch through current state in the button Jun 21 02:10:26 to do the appropiate thing Jun 21 02:11:06 you can do that all within the fragment Jun 21 02:11:14 and avoid unecessary hooks Jun 21 02:11:20 although that's not as easy to scale Jun 21 02:12:16 you can also use the same variable for the listview so you don't have to reference different listview variables, just make sure to reset them properly on swapping Jun 21 02:12:45 damn, my native app is 27mb, my .so is 1mb, is stlport_static that monstrous? or should i be worried about something here Jun 21 02:13:21 when a list item is clicked, it calls a callback in the fragment Jun 21 02:13:27 that callback swaps in the new list Jun 21 02:13:35 but I don't really have anything for swapping the main one back in Jun 21 02:13:42 just for swapping the non-main submenus in Jun 21 02:14:41 the activity's onCreate is what puts the main submenu in place Jun 21 02:15:29 I think maybe the better option is to not use the activity's onCreate to find the sublist Jun 21 02:15:53 you should do this Jun 21 02:16:10 (Was just saying what is there now) Jun 21 02:16:12 since you are entangling the activity and the fragment which defeats the point of encapsulation offered by the fragment Jun 21 02:16:38 just ovveride onActivityCreated Jun 21 02:16:46 err Jun 21 02:17:05 I've done it this way but not sure if this is standard: findViewbyid in onCreateView Jun 21 02:17:18 and set up listeners and do state changes in onActivityCreated Jun 21 02:17:30 in your main fragment Jun 21 02:17:46 so swap in main sublist somewhere in onActivityCreated Jun 21 02:18:02 if there is a better way (not entangling) I would prefer that...but if there is a cheap & easy for now then cool Jun 21 02:18:09 yeah Jun 21 02:18:10 like i said Jun 21 02:18:14 I'm reading Jun 21 02:18:47 and then if you want you can make a SublistSwappedObservered implemented by the main fragment that each sublist callsback to when it is swapped in / becomes current Jun 21 02:19:00 which sets the current state variable that the button can switch on to do the right thing Jun 21 02:19:11 that way you can just scale it to however many sublists you end up Jun 21 02:19:13 with **** ENDING LOGGING AT Fri Jun 21 02:59:58 2013