**** BEGIN LOGGING AT Fri Sep 20 03:00:00 2013 Sep 20 03:05:32 Greetings folks! Couldn't anyone please help me? I have a layout well-formed and what I want to do is to make a table below the specific element (EditText) but at the top level of the screen. It would be better if I could reserve a position for it in the layout XML without ruining its makeup, but it would be OK if I somehow detect its most-superview Y position and put it below. Sep 20 03:09:26 The only way I see this is to wrap next positioned element in vertical LinearLayout into FrameLayout with second child in it as my table I want. Sep 20 03:09:32 Any ideas? Sep 20 03:16:08 posplaw: give me a visual Sep 20 03:17:38 desmin88: thanks, but already done as suggested above! Sep 20 03:18:27 I've put all rest content below into FrameLayout, while first element in it is duplicated vertical LinearLayout for proper makeup and with my ListView overlaid at the top of it Sep 20 03:19:04 as second element of FrameLayout * Sep 20 03:19:35 sounds like a lot of nesting lol Sep 20 03:21:43 and looks like as well, thanks god I was making up tons of web pages before, so it's OK for me to work with raw layout contents :) Sep 20 03:27:37 well Sep 20 03:27:38 i'm dumb Sep 20 03:27:39 lol Sep 20 03:33:02 Brian|CS: two drawables>? Sep 20 03:33:31 nope Sep 20 03:33:32 lol Sep 20 03:33:51 oh Sep 20 03:33:55 Just realized that to have multiple devices communicate with the same chromecast all you need to do is call startSession with no parameters Sep 20 03:33:55 D: Sep 20 03:34:12 seems so obvious now Sep 20 03:34:14 but it confused me at first Sep 20 03:34:15 lol Sep 20 03:36:14 kjeldahl today, i tried something different which worked pretty well. i did most of my dev with vim & gradle; and then before checking stuff in run AS Analyze which is very very helpful (with lint & stuff) Sep 20 03:36:53 checking stuff into git ;) Sep 20 03:38:07 Hm, I should probably start figuring out how the hell I'm going to "promote" my app once I'm done with it. Sep 20 03:40:06 Nilium, Internet Sep 20 03:40:23 i usually have that part figure out before I start the app, since I know who will use it to begin with :D Sep 20 03:40:26 Well I was thinking like signs under bridges and newspapers Sep 20 03:40:44 Nilium fireworks, airplane banners Sep 20 03:41:01 Well, I build apps to be used by me, so that's who I know will use it.. maybe if I tattoo myself with my app's icon. Sep 20 03:41:18 Nilium take out all the pages of the NYT to promote your app the day the iPad is announced Sep 20 03:41:23 like what Samsung did :) Sep 20 03:42:47 hmm, maybe lint should ignore stuff in build/ :/ Sep 20 03:49:52 Nilium what mac graphics app did you use again (if any?) Sep 20 03:50:21 pixelmator / sketch / acorn / etc Sep 20 03:50:40 Photoshop. I have Pixelmator but find it impossible to use seriously because it's not Photoshop. Sep 20 03:51:14 ahh Sep 20 03:51:33 I'm quite proud of my config previews. Sep 20 03:54:45 This is going to be one hell of a weekend. Sep 20 03:55:22 Working on a 36 hour hackathon and have access to : Tons of iPhones, iPods, iPads, Android Phones, androdi tablets, modded motorola razr maxx HDs with Arduinos embedded(x2), a couple chromecasts, and even a google glass. Sep 20 03:57:54 hm, multipath TCP sounds interesting Sep 20 04:01:11 cool, linux has MCTCP implementation too. wonder when we'll see it in android. ios wins that round Sep 20 04:04:22 apparently apps don't need modification Sep 20 04:04:25 Current score: Android - 8 billion Sep 20 04:04:32 iOS - negative eleven Sep 20 04:09:26 hm, lint is making a lot of mistakes … like suggesting weaker access on things that clearly won't work if you do Sep 20 04:09:38 like a constructor for a service Sep 20 04:12:45 balls of g00 Sep 20 04:16:18 out of 137 warning, 2 were legit :) Sep 20 04:18:35 nice one :P Sep 20 06:06:14 Has anyone been able to import and build Holoeverywhere successfuly? Sep 20 06:09:30 neuro_sys wow, i haven't heard of anyone using that these days Sep 20 06:12:49 Anyone here is familiar with Path class? I want the ListView with rounded-clipped corners at the bottom and solid stroke all around, but only thing I can achieve is: http://i.posplaw.ru/corners-clipped-android.png (no border, all corners are clipped), but what I want I have already made in iOS version: http://i.posplaw.ru/corners-clipped-ios.png Sep 20 06:18:21 g00s: what's the alternative? Sep 20 06:18:41 I'm all new into android dev, and I see that the theme is different across versions Sep 20 06:18:52 neuro_sys check out the iosched app Sep 20 06:19:06 :OOO Sep 20 06:19:51 well, um, do you mean I should rip the theme from it? Sep 20 06:20:13 neuro_sys oh, i meant look at what they do technique wise Sep 20 06:20:35 they don't try to theme everything Sep 20 06:20:46 just let GB shit be GB shit ;) Sep 20 06:21:22 :( I don't want GB people to think my app looks shit :( Sep 20 06:21:34 its GB Sep 20 06:21:35 :| Sep 20 06:21:44 you aren't going to turn it into holo Sep 20 06:22:00 :'( Sep 20 06:22:03 lol okay Sep 20 06:23:11 but my friend shows me other apps on his GB android, and says look theirs look dope, why does yours suck Sep 20 06:24:24 I say, lol dunno dude, and root it faggot Sep 20 06:38:59 g00s: Sounds like a great idea, get rid of unecessary imports etc. But those things really should be available from the cmdline as well (I have no idea whether that is true or not) if you ask me... Sep 20 06:39:38 lint does run from the command line, but AS Analyze seems to be a superset of lint Sep 20 06:39:49 but lint is so very very wrong much of the time :( Sep 20 06:56:26 aw crap, one of my most interesting users has a galaxy s2, fffuuuuu Sep 20 06:58:42 does anyone know when i added a module to module structute (android studio) and the modulestructure screem is borked how i can go back to the default IDE settings? Sep 20 07:00:20 misterli hm, change the gradle file instead Sep 20 07:00:28 i only messed with modules in plain idea Sep 20 07:00:34 gradle is the source of truth Sep 20 07:00:57 yeah but android studio must store its own settings somewhere for the project. i couldnt find where Sep 20 07:01:05 Hi, How does some news apps like "Fast News" loads contents so fast?How does it fetch all of those contents from server so fast? Sep 20 07:03:07 misterli: AFAIK most AS specific settings are stored in the .iml files, but not sure how or where it actually stores the gradle config stuff. Based on how it works ("sync to gradle"), I would think it mirrored them in its own config, possibly the .iml file. Sep 20 07:03:56 okay thanks.. i start hating android studio .. Sep 20 07:05:39 yeeaaaaaah http://news.yahoo.com/photos/the-globe-paddling-rubber-duck-sculpture-arrives-in-taiwan-slideshow/ Sep 20 07:16:45 bt see some of the videos here http://highscalability.com/blog/2013/9/18/if-youre-programming-a-cell-phone-like-a-server-youre-doing.html Sep 20 07:17:10 also, make sure "Fast" is part of the title Sep 20 07:17:59 g00s: Thanks Sep 20 07:23:35 hmm.. adding appcompact with build.gradle does not work.. Sep 20 07:23:36 compile 'com.android.support:support-v4:13.0.+' Sep 20 07:23:36 compile "com.android.support:appcompat-v7:18.0.+" Sep 20 07:25:06 misterli it should Sep 20 07:25:23 misterli: why 13 of v4? Sep 20 07:25:39 i have this library in Projectfolder/lib. This shouldnt matter, right? Sep 20 07:25:54 yeah it does Sep 20 07:26:12 if you want to reference a jar library use: compile files('lib/whatever.jar') Sep 20 07:26:24 oh, okay Sep 20 07:26:36 but if you have the support repo from the sdk manager, that should work Sep 20 07:26:52 Yeah, installed the support repo. But it doesnt work yet. Sep 20 07:26:54 yeah and you should use the repo instead of copying jar files around Sep 20 07:27:06 But does this mean that i dont need those libraries copied manually if i have installed the support repo? Sep 20 07:27:12 yeah Sep 20 07:27:36 if you use com.android.support:support-v4:13.0.+ it will try to find that artifact somewhere Sep 20 07:27:44 okay. Well, this should work when i dont use libs dependencies { compile 'com.android.support:support-v4:13.0.+', compile 'com.android.support:appcompat-v7:18.0.+' } doesnt it? Sep 20 07:27:46 meaning in your local support repo Sep 20 07:28:02 you have specified the repositories in your build file? Sep 20 07:28:07 no Sep 20 07:28:10 could you just paste your build.gradle please Sep 20 07:28:15 never worked with gradle before Sep 20 07:28:32 its kicking your butt so far Sep 20 07:28:36 http://pastebin.com/xMe0jZsF Sep 20 07:28:51 you have defined it :) Sep 20 07:28:57 repositories { mavenCentral() } Sep 20 07:29:00 where? Sep 20 07:29:01 ahh, i see Sep 20 07:29:08 if you miss it, it has no idea where to look up your stuff Sep 20 07:29:30 you said that v4:30.0 is old. What is the current version? Just seen this entry in stackoverflow Sep 20 07:29:31 what exactly is the error you are getting? Sep 20 07:29:40 18.0.+ Sep 20 07:29:45 haha, okay thanks Sep 20 07:29:51 but 13 is still in the support repo so it actually should work Sep 20 07:30:20 after adding those stuff in gradle.. is an android studio reboot required? Sep 20 07:30:47 most of the time not. but it might not rescan your build automatically (though it will do so most of the time) Sep 20 07:30:53 in that case you should hit the gradle button in the toolbar Sep 20 07:31:02 (the left most button in the group of android icons) Sep 20 07:31:16 misterli compileSdkVersion 17 Sep 20 07:31:17 buildToolsVersion "17.0.0" Sep 20 07:31:22 this is pretty old Sep 20 07:31:44 just had this because of sherlock. 17.00 was required in sherlock afaik Sep 20 07:31:59 but you are using appcompat Sep 20 07:32:16 yeah. I will give it a try today since sherlock kicked my balls the last 24 hours Sep 20 07:32:37 gradle refresh failed -_- Sep 20 07:33:32 misterli: change in the directory on command line, and enter `./gradlew assemble` Sep 20 07:33:37 and tell what error messages it gives you Sep 20 07:34:20 (or what output does the message window (Alt + 0) give you when reloading Sep 20 07:35:13 CMD tells me.. Build failed with an exception. What went wrong. Execution failed for task (myproject). No Resource found that match given name at style with value ... bla bla. Okay, it looks like that it does not like my styles which wwas defined in ActionBarSherlock Sep 20 07:36:17 so you still referencing actionbar sherlock? :) Sep 20 07:36:23 its annoying. spinnerDropDownItemStyle should be defined in the appcompat ... Sep 20 07:36:28 because in your build file no actionbar sherlock is defined Sep 20 07:36:43 no, i have removed it completly but kept the same layout files Sep 20 07:36:57 for example style="?attr:spinnerDropDownItemStyle" which should be defined within the appcompat styles Sep 20 07:37:12 misterli: indead it should Sep 20 07:37:14 But my manifest file android:theme="@style/Theme.AppCompat.Light.DarkActionBar" does not find the Theme AppCompat Sep 20 07:37:28 sounds like you haven't included the module properly Sep 20 07:37:39 misterli: in that case, try restarting android studio :D Sep 20 07:37:51 its sometimes faster then trying to find why something that looks right isn't Sep 20 07:38:02 if it still doesnt work and console building neither, there is an error most likely Sep 20 07:38:04 0.2.9 is the latest, isnt it? Sep 20 07:38:18 yeah Sep 20 07:39:06 (and works for me fine with appcompat :D) Sep 20 07:39:21 restarting didnt solve it. Still not detect @style/Theme.AppCompat .. Sep 20 07:41:40 okay might also be a stupid question, but you placed it in the right build.gradle file? the one in your module and not the one in the root of your project Sep 20 07:41:56 not the one where also a settings.gradle exist, but the one directory deeper in your module Sep 20 07:42:05 yeah. Put it into the build.gradle in my projects folder. Not in the rootfolder Sep 20 07:42:38 same folder where src, res, lib, build is located. build.gradle Sep 20 07:49:05 <^cheeky> g00s: hiiiii Sep 20 07:49:09 <^cheeky> g00s: ok bye Sep 20 07:49:34 O.O Sep 20 07:52:28 just upgraded to buildtools 18.1 and targetsdk(compiledsdk to 18 but same.. :) Sep 20 07:53:02 misterli: there shouldn't be a res folder in there :D Sep 20 07:53:14 oh, you are right. its in src/* Sep 20 07:53:23 but that aside it should be the right folder :) Sep 20 07:58:51 im not sure but could it be that it does not make a full build and include the lib becuause it cannot resolve style="?attr:spinnerDropDownItemStyle" Sep 20 08:23:26 Does anyone know where I can find the distribution of android screen resolutions? like 1024 x 640? Sep 20 08:25:53 Yo, should I keep my activities as clean as possible/create a second class to handle stuff like for example game logic? Sep 20 08:27:24 depends what you mean by game logic but from the sounds of it yes, I like to keep only stuff that pertains to activity lifecycle and basic ui elements Sep 20 08:28:06 I am making a Hangman game, and right now the main activity/game activity contains all the logic Sep 20 08:28:18 I figured It'd be smart to move that into another class, like in any other project :-) Sep 20 08:28:34 Just wanted to know if that is not the standard here in android development Sep 20 08:30:41 oh hm.. Sep 20 08:30:47 then I need to pass in the activity though Sep 20 08:30:54 For the game logic uses stuff like getResources() and similar. Sep 20 08:31:01 Or it's a bit mixed. Sep 20 08:31:32 generally if you feel like it needs it own class it probably does Sep 20 08:31:38 its fine passing the activity if you are in a class that doesn't ahve context Sep 20 08:31:43 yeah thats pretty common on android Sep 20 08:32:07 Alright, how do I pass the activity, just pass this to the constructor? Sep 20 08:32:08 Make it work first. By the time you have it working, you've learned a lot and should be able to refactor it to a clean design if needed. Games are the one place where a lot of the usual MVC paradigms are routinely broken (for a reason). Sep 20 08:32:23 ^this Sep 20 08:32:24 kjeldahl: yeah it works, I know how to easily code this. Sep 20 08:32:25 android classes normally have something like getContext() or getActivity() .. but if you are doing your own classes and dont derive from android types then pasing in the activity is ok Sep 20 08:32:44 I'm pretty much just asking if this is the common pattern or the common pattern is to make a mess in one file. Sep 20 08:32:47 yeah in the constructor Sep 20 08:32:55 cause its by ref\ Sep 20 08:33:14 or if you are using static methods its normally passed as a paramater Sep 20 08:33:27 but yes that is the pattern Sep 20 08:33:37 An alternative to passing everything everywhere is to use an event bus of course (Square Otto) for instance, allowing easy separation of GUI/platform stuff with "pure" model stuff. Sep 20 08:33:58 unless you only want the resources then rather then pasing in the activity you can pass in the act.getResources() only Sep 20 08:34:24 but event bus is cumbersome though Sep 20 08:35:08 overengineering leeds to unnecessary complications Sep 20 08:35:20 if its a small thing anyway Sep 20 08:36:03 Yeah Sep 20 08:36:23 I have to hand this in (uni assignment) before 16:00, just want to clean it up a ibt :-) Sep 20 08:36:25 bit* Sep 20 08:36:27 quickly hehe Sep 20 08:36:46 dont attempt to move stuff around if you need to hand in today, get it working Sep 20 08:36:53 I also need to implement saving/restoring, which is why I figured a class would be good. I could have it initialize from a saved state. Sep 20 08:37:01 normal pattern is passing in the activity in the constructor Sep 20 08:37:16 lemonxah: For everything but a basic one-screen activity, I disagree. I'd rather have generic events than platform specific concepts and code littered throughout my project. Sep 20 08:37:40 his is a one activity app Sep 20 08:38:11 I think I might end up doing public HangmanGame(SavedHangmanGameState s, Activity act) { Sep 20 08:38:16 content providers ftw Sep 20 08:38:31 Well opposite, and if SavedHangmanState is null I'll create a new game, if not I'll use the variables provided Sep 20 08:38:35 Then moving stuff into separate classes, passing activities and contexts, gives him very little. IMHO. Sep 20 08:38:50 then I can persist them onPause if someone quits and restore on onResume? Sep 20 08:39:26 yes agreed kjeldahl .. i was just answering his question about how to proceed if he wants to split it out Sep 20 08:40:30 Hm Sep 20 08:40:36 if its a single activity then just do it in the activity, otherwise you'll have an activity calling methods from one class Sep 20 08:40:42 Alright fuck this, I just need to save the state and it's pretty much done Sep 20 08:40:44 CavemanNinja: Point. Sep 20 08:40:47 Yeah, I'm probably a bit out of context here. :-) Sep 20 08:42:14 Actually Sep 20 08:43:05 I'm not sure if you guys can receive notices, but in the offchance of anyone from my class being in this channel (copying == no grade), I sent the gist in a notice :-P Sep 20 08:43:29 It's a 308 line activity, I'll survive in one class Sep 20 08:43:35 But I do need to figure out how to save it Sep 20 08:44:27 hello, do you know of any streaming libraries apart from libstreaming ? Sep 20 08:44:54 I want to stream from camera to a rtsp server (e.g. like wowza) Sep 20 08:45:07 this is what I found so far: https://github.com/fyhertz/libstreaming/issues Sep 20 08:45:20 I mean https://github.com/fyhertz/libstreaming Sep 20 08:47:08 you can save stuff in a bundle in onSaveInstanceState then restore it in onResume Sep 20 08:48:21 I should use onSaveInstanceState and not OnPause? Sep 20 08:48:43 correct Sep 20 08:49:17 Is there a way to just make it save all the variables I have defined, or do I need to specify putInt, putstring and so on for all of them? Sep 20 08:49:49 you can make a parcable object that contains all your vars Sep 20 08:50:00 then just do putParcable Sep 20 08:50:05 and getParcable\ Sep 20 08:50:08 Hm Sep 20 08:50:14 Right Sep 20 08:50:57 Because basically I have a few ArrayList, a few ints, a bunch of buttons disabled/enabled and a few strings I need to store. Sep 20 08:51:51 that is only in Bundles Sep 20 08:51:53 not on the disk Sep 20 08:52:00 Well not store Sep 20 08:52:02 where do you want to save your data to? Sep 20 08:52:16 But if someone just minimizes the game or whatever to read on faceboo Sep 20 08:52:17 k Sep 20 08:52:35 yeah that is in the saveInstanceState(Bundle b) Sep 20 08:52:38 I want them to be able to go back into the game and get asked 'Resume or new game?' and either continue where they left off or start a new one Sep 20 08:52:50 and then in the onCreate(Bundle savedInstanceState) Sep 20 08:52:57 you use that bundle it will hold all your data Sep 20 08:53:25 Right, so I need to use that bundle, or create new values there. Sep 20 08:53:34 Is it okay if I pass some data to my activity in a global variable, and then I save it to HDD in saveInstance if I go out of memory? and restore it on onCreate? Sep 20 08:53:44 weird i was getting a nullpointerexception calling findFragmentByTag() on a single device running 4.0.4 updated to 4.1.2 and it went away.. Sep 20 08:53:45 put values into the bundle of saveInstanceState Sep 20 08:54:14 lemonxah: me? Sep 20 08:54:23 sry no flexd :) Sep 20 08:54:40 so, is it safe to do that? Sep 20 08:54:40 lemonxah: So I should not have my own variables at all (that I need to save) but always save them in the savedInstanceState? Sep 20 08:54:42 gavilan2, what data do you have in that causes out of memory Sep 20 08:55:16 lemonxah: you didn't understood... I was referring to when android removes my activity from memory Sep 20 08:55:17 yes flexd, like just putInt("VARNAME", value) or putString.. Sep 20 08:55:43 oh yes gavilan2 then you need to put all the data you want to have in onCreate .. in the bundle of saveInstanceState Sep 20 08:55:44 lemonxah: My question is if it's okay to use Global Variable + saveInstanceState + onCreate instead of passing the thing in the intent Sep 20 08:55:50 its the same thing that flexd is trying to do Sep 20 08:55:57 not global vars Sep 20 08:56:10 flexed: use a parcelable object like lemonxah mentioned http://developer.android.com/reference/android/os/Parcelable.html Sep 20 08:56:14 global vars has no garantee that they will still be there Sep 20 08:56:14 lemonxah: The data is "big"m so It's faster to pass it in a global variable rather than thoruhgt the intent Sep 20 08:56:28 lemonxah: That's why I put it in the bundle If I'm removed out of memory Sep 20 08:56:38 gavilan2, its not an intent .. the bundle is saved state Sep 20 08:56:44 state should only be saved there Sep 20 08:56:58 lemonxah: is there any issue in the approach that I'm taking? Sep 20 08:57:09 lemonxah: "Note that it is important to save persistent data in onPause() instead of onSaveInstanceState(Bundle) because the later is not part of the lifecycle callbacks, so will not be called in every situation as described in its documentation." Sep 20 08:57:13 From the docs :/ Sep 20 08:57:14 oh yeah you can put the global data into the save state bundle and then onCreate you can get it out of the bundle and make it global again Sep 20 08:57:29 lemonxah: exactly Sep 20 08:57:36 lemonxah: so will that work fine 100% of the time? Sep 20 08:57:44 yes flexd but what you do is .. onCreate(Bundle savedInstanceState) Sep 20 08:57:50 lemonxah: because as far as my understanding go, that should be faster than using the intent Sep 20 08:57:57 that bundle contains the bundle that you saved in saveInstanceState Sep 20 08:58:10 onPause() has no mechanism for saving state Sep 20 08:58:19 yes gavilan2 Sep 20 08:58:30 great! Sep 20 08:58:37 flexd, you are not saving persistent data Sep 20 08:58:44 are there any other tricks to speed up things in android? Sep 20 08:58:47 flexd, you are saving state! the state the client is in Sep 20 08:58:54 yeah hm. Sep 20 08:58:55 tons gavilan2 Sep 20 08:59:02 lemonxah: any web page that lists them? Sep 20 08:59:05 but it depends on what you are doing Sep 20 08:59:07 but I've still not figured out how to save an ArrayList though Sep 20 08:59:10 Which is the most important bit atm :/ Sep 20 08:59:16 there is no big collection of all of them unfortunately gavilan2 Sep 20 08:59:25 like this flexd Sep 20 08:59:58 state.putStringArray(); Sep 20 09:00:04 I suppose I could join it to a string and store it Sep 20 09:00:04 or state.putIntArray(); Sep 20 09:00:11 But a arrayList is not an array Sep 20 09:00:27 convert it? Sep 20 09:00:30 its easy enough Sep 20 09:00:45 aha, there is a putStringArrayList Sep 20 09:01:07 (String[]) applicants.toArray(); Sep 20 09:01:10 guys anyone having webview+playing video knowledge please help http://stackoverflow.com/questions/18912662/media-error-while-playing-youtube-videon-in-webview Sep 20 09:01:15 or that yes Sep 20 09:01:21 lemonxah: Any tips for using bitmaps in addition to the ones in "Displaying Bitmaps Efficiently"? Sep 20 09:01:28 yes Sep 20 09:01:29 I show lots of images Sep 20 09:01:53 And I have to resize them :( Sep 20 09:01:56 check out disk_lru_cache from JakeWharton Sep 20 09:02:11 cache-ing the bitmaps in memory Sep 20 09:02:12 lemonxah: already using that... Thought I was consider changing to volley Sep 20 09:02:28 i haven't worked with volley yet Sep 20 09:02:41 btw: have you seen a crash with Disk LRU Cache that it says that the directory is invalid when you create it? Sep 20 09:02:47 caching the resized versions is best Sep 20 09:02:58 no i haven't gavilan2 soz Sep 20 09:03:07 Hm.. I can't store anything custom though :/ Sep 20 09:03:14 lemonxah: I know... What's the most efficient way to resize it? I download it from the network Sep 20 09:03:21 you can flexd with state.putParcle Sep 20 09:03:32 I have a public enum HangmanState { Sep 20 09:03:32 and then create a custom object that implements Parcable Sep 20 09:03:34 NOOSE, HEAD, BODY, LEFT_ARM, RIGHT_ARM, LEFT_LEG, RIGHT_LEG, DEAD, FINISH Sep 20 09:03:36 } Sep 20 09:03:38 Which I guess could be a int instead Sep 20 09:03:42 it's just easier to see this way Sep 20 09:04:19 Parcable is awesome for custom data in bundles Sep 20 09:04:41 lemonxah: BTW: Do you know something like disk_lru_cache but for memorY? Sep 20 09:05:29 gavilan2, it depends on what you want to resize it too currently we do a magnitute 2 decrease of pixels till we hit a anmostPixels wide then stop Sep 20 09:05:38 lru cache Sep 20 09:05:48 the disk lru cache is for memory and disk Sep 20 09:05:50 lemonxah: anmostPixels what? Sep 20 09:05:53 lemonxah: ohh, great Sep 20 09:06:13 lemonxah: do you know what's a good way of setting the size? Sep 20 09:07:15 gavilan2, i will have to ask my college as he was tinkering with the cache more than me Sep 20 09:07:53 lemonxah: but then I could have put everything in a parcel? Sep 20 09:08:31 yes flexd you can if you want to it all depends on how much data you want to save Sep 20 09:09:13 if its a big load then create a parcable then at least its 1 setand get on the bundle Sep 20 09:09:18 put** and get Sep 20 09:09:24 but yes :) Sep 20 09:10:44 https://gist.github.com/flexd/1e84fb3d0f258fbeff98 Sep 20 09:10:50 + a few more and a custom enum Sep 20 09:12:53 lemonxah: aha, enum is serializeable ;-) Sep 20 09:13:05 outState.putSerializeable("state", hsState)' Sep 20 09:13:07 ; Sep 20 09:16:28 cool Sep 20 09:16:37 welcome to android dev then :) Sep 20 09:16:53 there is a very long road ahead of learning and learning Sep 20 09:16:55 :) Sep 20 09:17:29 lemonxah: another question... is there any easy way to make an object parcelable without implementing it by hand? Sep 20 09:17:41 lemonxah: serializable works automagically by reflection :) Sep 20 09:21:45 gavilan2, yes and no there are some objects that have it implemented allready Sep 20 09:21:54 but custom you have to implement by hand Sep 20 09:23:36 :( Sep 20 09:23:43 any other tips to improve using a lot of bitmaps? Sep 20 09:29:15 Final todo of this assignment: search for "... BITCH!" and remove before my teacher will see it -_- Sep 20 09:29:31 I'm trying to add ActionBar support for android 2.1 and higher and so need the v7 appcompat support library. Not using Eclipse so the instructions at http://developer.android.com/tools/support-library/setup.html are incomplete for me. Any help greatly appreciated. Sep 20 09:34:17 haha.. i figured out why the support library was not working.. Sep 20 09:34:23 There's a bug in the SDK Tools 22+ Sep 20 09:35:55 misterli: link please :) Sep 20 09:36:56 closed it already but the fix was (stackoverflow) to download the R22 and replace the tools folder in sdk/ with the 22 sdk tools. And it worked Sep 20 09:37:17 http://stackoverflow.com/questions/18842447/bug-in-android-adt-sdk-22-2 Sep 20 09:41:30 lemonxah: I can't seem to get it to save the state.. :/ Sep 20 09:41:37 It just never seems to call onSaveInstanceState() Sep 20 09:41:47 ooh nevermind, it did now. Sep 20 09:42:16 onCreate just isn't called when I re-open the game Sep 20 09:42:23 it's still at the same spot though, so that's cool Sep 20 09:44:34 hold on Sep 20 09:44:57 uhoh Sep 20 09:44:59 shit Sep 20 09:45:01 found a bug :-p Sep 20 09:54:45 hi, i want to create a calendar event entry by using an intent. does the android calendar support an intent string as a back reference to the source so i can point from the calendar entry to my own app? Sep 20 09:56:15 Can I remove a button dynamically from a view? I want to remove/hide three buttons in case the language is not norwegian. Sep 20 10:07:02 if(language != norwegian) { [button removeFromSuperview]; } ? Sep 20 10:07:20 or button.hidden = YES; Sep 20 10:12:41 Well.. yes? I was thinking not in psuedocode :-) Sep 20 10:15:56 layout.removeView(button here); does not seem to do anything :/ Sep 20 10:20:43 then the layout isn't its parent, obviously Sep 20 10:20:53 try getting "layout" as button.getParent() Sep 20 10:21:10 and casting to ViewGroup if you don't know exactly what class does it belong to Sep 20 10:21:36 posplaw: I am. Sep 20 10:21:38 already Sep 20 10:22:04 The parent of the button is a tablerow, and then a tablelayout Sep 20 10:28:29 well then i dont think you can do tablelayout.removeView(button); Sep 20 10:35:39 I could do button.setVisibility(View.GONE) though Sep 20 10:35:41 which worked :-) Sep 20 10:48:09 Guys, let's play a fun game Sep 20 10:48:25 Listing stuff that's more enjoyable than working with Facebook's graph api! Sep 20 10:48:32 I'll start - jamming searing hot pincers into your eyeballs. Sep 20 10:48:52 Hmm, So I am putting a parcalable object in one intent and in BroadCast receiver's onreceive method's second parameter intent, I am receiving something completely different Sep 20 10:48:53 =( Sep 20 10:48:58 Hi Sep 20 10:49:23 Can someone guess why? Sep 20 10:49:33 Josh, you are just transfering the intent data from the source intent into the result intent? Sep 20 10:50:59 Yes. Sep 20 10:51:08 Tee_Pee, http://ideone.com/3GfGlm Sep 20 10:51:10 My parcel. Sep 20 10:53:04 Tee_Pee, Actually, I get the data, but I get previous data Sep 20 10:53:04 Hi all. I have a native daemon running as root on the system and a system app. I would like for these two to communicate with eachother, but Im not sure if I should use named sockets or Binder for IPC? I want to use binder (I think) but have no idea how. Does anyone have any nice example code or something? Sep 20 10:53:06 or something like that. Sep 20 10:53:10 The one I transfered first. Sep 20 10:53:53 Josh Sep 20 10:53:57 In your activity Sep 20 10:54:10 you create an intent, pass the parcelable object and do startService(intent) Sep 20 10:54:12 right? Sep 20 10:54:25 Hmm.. I don't do startService... Sep 20 10:54:31 I do startActivity to start the intent. Sep 20 10:54:55 Actually, I don't even do startActivity, since its a pendingIntent and I want AlarmManager to invoke it.. I Just set alarm Sep 20 10:54:57 Thats all. Sep 20 10:55:51 ah right, a pending intent Sep 20 10:55:54 either way Sep 20 10:56:16 in your alarm service you get that intent, do stuff with it and return a result intent to your receiver, correct? Sep 20 10:56:58 just make sure that, right before you return the resultIntent that you do resultIntent.putExtras(originalIntent); Sep 20 10:57:06 this will copy all stuff from your original intent into the result Sep 20 10:57:16 your parcelable should work properly then. Sep 20 10:58:41 Tee_Pee, Can I pm you just a second and paste two links? Sep 20 10:58:48 sure Sep 20 11:00:04 what's the usage of the ContentValue here: http://codepad.org/oNiVV7Z8 ? Sep 20 11:00:59 its to update the values in your database Sep 20 11:01:42 well its inserting a row into images media database Sep 20 11:02:05 displayname discription and mimetype fields Sep 20 11:03:28 lemonxah, database? where can i check that? Sep 20 11:03:37 in the image file property? Sep 20 11:03:40 no Sep 20 11:03:43 that URI Sep 20 11:04:48 does anyone have a fix for activatedBackgroundIndicator for api level prior 11? Sep 20 11:05:35 lemonxah, so it does not change anything about the file itself? Sep 20 11:05:37 zhangxaochen, you need to look for ContentProvider in your code Sep 20 11:05:40 ffs Sep 20 11:05:40 no Sep 20 11:05:44 if (sLocale != "nb_NO") { // If we get here, sLocale is always defined. Sep 20 11:05:45 it doesn't change the file Sep 20 11:05:46 Log.d("LOCALE", "Locale is: " + sLocale + " removing buttons"); Sep 20 11:05:53 sLocale IS nb_NO Sep 20 11:06:01 yet it's logging that -_- Sep 20 11:06:05 flexd, this is java .. Strings dont work like that in java Sep 20 11:06:11 oh right Sep 20 11:06:13 equals Sep 20 11:06:17 its if (!sLocale.e Sep 20 11:06:18 yes Sep 20 11:06:28 Reminds me why I dislike java. Sep 20 11:06:39 yeah i dislike it too Sep 20 11:06:46 i have to code java for this job Sep 20 11:06:50 but i do scala on android Sep 20 11:06:55 for my personal stuff Sep 20 11:07:01 I have not tried scalay et Sep 20 11:07:03 and F# for others Sep 20 11:07:09 anyway, .equals() is the same result :/ Sep 20 11:07:32 you have to !sLocale.equals("nb_NO") Sep 20 11:07:41 remeber the ! otherwise it will go in Sep 20 11:07:44 Yeah as I said that I noticed I was being stupid :D Sep 20 11:07:51 its ok Sep 20 11:08:00 thx lemonxah Sep 20 11:08:08 no worries zhangxaochen Sep 20 11:15:15 Anyone tried ARO from AT&T? It'll trace the network traffic of your app and help optimize it.. http://developer.att.com/developer/forward.jsp?passedItemId=13800072 - any experiences? Sep 20 11:16:09 hi, i want to create a calendar event entry by using an intent. does the android calendar support an intent string as a back reference to the source so i can point from the calendar entry to my own app? Sep 20 11:16:30 hi all, question to people who have worked with Google In-app Billing, have you experienced any problems with signature verification? Sep 20 11:24:37 only some of the transactions fail to verify and they happen to have an order-id in a different format (single number vs X.Y double-number), also it looks like the base64 encoding is missing padding but adding it does not help Sep 20 11:52:10 Apple is dying: http://i.imgur.com/JzNr8TN.png Sep 20 11:52:13 * hackkitten ducks and runs~ Sep 20 12:00:00 wow! that's proof enough for me Sep 20 12:09:46 :) Sep 20 12:35:07 with the new android studio is it possible to disable the andriod tool window that popups when you run? Sep 20 12:49:24 hackkitten: funny Sep 20 12:49:51 :) Sep 20 12:50:11 there is constant number of consumers Sep 20 12:50:24 if that number buy their device Sep 20 12:50:54 and so on Sep 20 13:35:35 how to play a video from assets/ with videoview? Sep 20 13:49:00 ohcibi: you can copy the video from assets to a temp folder then play it Sep 20 13:49:25 oO Sep 20 13:51:58 actually I just want to play a mp4 file with is stored in the app, isnt it possible without copying it to some temp folder? Sep 20 13:58:10 afaik the asset is held zipped. Maybe if the decoder was pure java or made callbacks to java code to access an inputstream it would all work out but it's probably native and requires a file descriptor or filename Sep 20 13:58:14 so no Sep 20 14:12:19 ohcibi: not temp folder. use API to generate a temp file, then play it from temp file as Inputstream Sep 20 14:12:51 i just put it in res/raw now Sep 20 14:12:52 ohcibi: you need to unzipped from asset to some temp file Sep 20 14:13:13 cant access it by filename though but thats ok Sep 20 14:23:49 So... how would I go about serializaing a sparsearray? Sep 20 14:24:03 I tried wrapping it into a SerializableSparseArray that implements Serializable Sep 20 14:24:06 but that didn't help. Sep 20 14:25:43 the contents of a serializable container need to be serializable as well Sep 20 14:31:56 It's a sparsearray of objects that implement serializable and can be serialized without any issues. Sep 20 14:33:47 is there a reason to use a spare array over say Map Sep 20 14:33:59 is it somehow more efficient at handling the integer keys? Sep 20 14:34:20 According to the documentation it is Sep 20 14:34:34 More efficient in general, dunno why Sep 20 14:34:38 Never looked into it Sep 20 14:36:34 it's more space efficient to use the sparsearrays Sep 20 14:36:36 Should probably look into the space overheads of the various Map implementations Sep 20 14:36:57 or it's supposed to be.... Sep 20 14:37:05 yep, Map has memory overhead Sep 20 14:37:06 yes, but it all boils down by how much Sep 20 14:37:11 it's not time efficient, though Sep 20 14:37:12 plus rehashing :) Sep 20 14:37:38 it may well be that the objects you are storing is vastly more expensive than the structure that stores the object. Sep 20 14:38:34 and map will have a small number of arrays with elements storing a copy of the key and referene of the value. This doesn't strike me as very expensive in truth. Sep 20 14:38:37 then it doesn't matter :) Sep 20 14:38:46 I mean, HashMap Sep 20 14:39:28 but maybe if you have like Map or some other small primitive and have millions of keys then probably at some point you want to look into efficiency. Sep 20 14:40:35 SparseArray is just an optimized Array for non-contiguous keys Sep 20 14:40:39 yeah, storing integers in a map is silly :) Sep 20 14:40:59 (HashMap thatis) Sep 20 14:41:18 I confess this problem has never happened to me Sep 20 14:41:31 ditto Sep 20 14:41:32 look-up tables are common, but sparse arrays? virtually unheard of, for me. Sep 20 14:41:46 I used them alot for NLP/ML work Sep 20 14:41:59 but the datasets were sufficiently large that maps were just too inefficient Sep 20 14:42:12 but then again, if you have such dataset on your phone you're doing something very wrong :P Sep 20 14:43:57 My guess is that the primary saving from a custom map specialized for integer comes from being able to use a native integer as the key. If only java had proper generics... Sep 20 14:50:34 It's just faster because it's just an array Sep 20 14:50:39 no hashing and stuff needed Sep 20 14:50:41 I would think Sep 20 14:51:23 um, that depends really… if the lookup time for a key is longer than hash time Sep 20 14:51:34 hashmaps tend to be faster, they just burn more memory Sep 20 14:52:14 So, I'm using a touch delegate. and It's causing some odd behavior, sometimes it will delegate the touch from the entire view. but most times it works as expected and delegates to just the rect I told it to. Does anyone have any ideas? Sep 20 14:52:16 why would the look up time for an array be slow? Sep 20 14:52:30 it just instantly goes to the index you specify Sep 20 14:52:32 well Sep 20 14:52:36 *instantly* Sep 20 14:52:52 mmathis, not on a sparse array :) Sep 20 14:53:30 no, even on a sparse array... Sep 20 14:53:33 it's just an array Sep 20 14:53:40 you give it an index when you call its get Sep 20 14:53:50 oh wait Sep 20 14:53:52 fuck Sep 20 14:53:54 nvm Sep 20 14:53:57 ignore me Sep 20 14:56:28 yep, you need to do a lookup because the array is sparse :) Sep 20 15:25:02 hi - any folks with experience in ormlite? Sep 20 15:25:25 right now, I've got my data classes implementing Parcelable so I can stuff them into Bundles for Activities' sake Sep 20 15:26:17 but I'd like to add OrmLite to the project to persist these classes - I'd like to know if it's possible to put the foreign key's value into a parcelable without having to actually fetch the object Sep 20 15:26:37 that is, I'd like to get/set the foreign key's value without having to deal with the object it's actually FK'd onto Sep 20 15:28:48 Hi All Sep 20 15:29:42 anyone have weird things happening when exporting an APK? I exported mine and the device I install to says it cant find my main activity Sep 20 15:30:04 when I install the apk generated in the project bin folder its fine Sep 20 15:41:00 MickeySoFine, what says it cannot find the activity? what's the exact message, and how do the APKs differ from each other in filesize? Sep 20 15:42:02 the crash log says that, I've found a way to fix it now though as I switched the api from 4.3 to 4.2 and now it makes the apk fine :-S Sep 20 15:49:01 how long does it take for beta test apks to be updated on play? Sep 20 15:49:10 when building android kernel and adding govs/schedulers, do u have to manually define everything in include / generated / autoconf.h ? Sep 20 15:50:18 switching target api wouldn't have that effect Sep 20 15:54:35 damn, setting up all that publishing stuff seems alot :S licensing and stuff Sep 20 15:56:52 it isn't Sep 20 15:59:44 i dont get the lvl and policy thing :/ Sep 20 15:59:57 so don't use it Sep 20 16:00:29 I just made an app which I wanna open source. But then I realized that my api keys and what not is in the source... how do you guys deal with that problem? Sep 20 16:04:02 make an api key class with a couple of public static final String variables? put them in strings.xml there's a lot of ways to do it. Sep 20 16:04:07 Put them in a resource/java file that isn't checked in Sep 20 16:04:29 you probably want to check in a "template" one. but you don't want to check in your actual keys Sep 20 16:05:09 SimonVT: how can I make such a custom res file? Sep 20 16:05:15 jaynewstrom: yeah, good idea Sep 20 16:05:40 Put an xml file in values/ Sep 20 16:05:44 Keep your stuff there Sep 20 16:05:49 Don't check in that file Sep 20 16:06:22 For a project I made a python script that I feed whatever is needed.. It then generates the files Sep 20 16:07:00 english isnt my native language but I code and comment in english. Do you have a suggestion for the name such a file? Sep 20 16:07:15 passwords.xml or api_keys.xml doesnt sound quite right :) Sep 20 16:07:28 I called mine secrets.xml Sep 20 16:07:43 You could also call it build.xml Sep 20 16:08:19 SimonVT: secrets.xml it is :) Sep 20 16:08:26 thanks to the both of you guys Sep 20 16:10:23 now that I'm here... any suggestions on how to wipe my api key from my git repos? Sep 20 16:10:58 You have to reset the history if it's already checked in Sep 20 16:11:04 I guess I could just generate new ones... Sep 20 16:11:21 Or yeah, make it not valid if you can Sep 20 16:11:33 better known as invalid Sep 20 16:11:45 hehe, yeah :) Sep 20 16:12:02 well thanks again, I'm off Sep 20 16:18:07 http://ideone.com/q4mcR4 <== This is one activity, from where I send some data to another activity (actually a receiver in this case) Sep 20 16:18:11 snot, don't ship your api keys, but have forks make their own Sep 20 16:18:16 http://ideone.com/J9x8ZW <== This is the Receiver, Where the second parameter, Intent holds the data that I send. Sep 20 16:18:29 So in the former paste, on line 36 I put my, primary key, unique number inside the pending intent Sep 20 16:18:35 And in the latter paste, I got second parameter as that intent Sep 20 16:18:46 Where, I can get that putted data. Sep 20 16:18:52 pfn: I know. Thats why I'm trying to keep them out of my repository. Sep 20 16:18:53 It works perfectly well for the first time. Sep 20 16:18:58 But from the second time, I actually get the data that was sent first time Sep 20 16:19:21 In latter paste, I even tried doing, removeExtra Sep 20 16:19:22 =( Sep 20 16:19:25 Could someone help? Sep 20 16:19:30 SimonVT: how do you go about getting the values from secrets.xml? R.secrets.api_key doesn't work too well Sep 20 16:20:04 R. string Sep 20 16:20:05 <|0xD34D|> R.string.api_key Sep 20 16:20:13 <|0xD34D|> it's still a string regardless of the xml file name Sep 20 16:20:23 sweet! :) Sep 20 16:20:24 the name comes from the resource type, not filename Sep 20 16:20:24 thanks Sep 20 16:20:37 aha, makes sense Sep 20 16:33:32 hi guys, anyone using ActiveAndroid ? Sep 20 16:38:35 Can anyone kindly read about my problem and help? Sep 20 16:52:18 Anybody using MediaRecorder with OUTPUT_FORMAT_MPEG2TS? Sep 20 16:53:06 I can record and play with that setting (using MediaPlayer) but the playback is fairly choppy... the video hesitates and jerks once or twice a second. Sep 20 16:53:12 Trying to get it smoooooth. Sep 20 17:02:35 i add declarations to autoconf.h Sep 20 17:02:44 but when i build they go away and i get errors again, wtf m8 Sep 20 17:05:55 How do I get a timestamp into time within android? Sep 20 17:06:00 Hey guys I have a ListVIew where each item has a nested relative layout with a rectangle shape background as a container for the other views. How do I make that rectangle the listener for click events rather than the actual items themselves/ Sep 20 17:06:05 if that makes sense Sep 20 17:06:59 1379647200 being this morning at 5:20 Sep 20 17:07:10 no tomorrow monring Sep 20 17:11:53 does using GPS kill your battery? Sep 20 17:12:13 it strangles it Sep 20 17:12:18 until it chokes to death Sep 20 17:36:00 Hi Sep 20 17:36:07 How do I get the system language from native code? Sep 20 17:37:08 If there is no purely native way, how do I get the JVM without storing the native activity instance? Sep 20 17:38:13 hmm Sep 20 17:38:34 __system_property_get should do this, I think Sep 20 17:47:16 It's persist.sys.language, as I see Sep 20 18:06:42 Hi, is this the right channel to ask about building android (aosp)? Sep 20 18:09:44 gmag, #android-root is probably better Sep 20 18:21:35 zyngawow, thanks Sep 20 18:22:01 wow thanks, zynga woo Sep 20 18:23:22 * zyngawow must find a new nickname Sep 20 18:23:33 :P Sep 20 18:23:35 lol Sep 20 18:24:46 Hello! Sep 20 18:25:19 I'm attempting to filter my logcat ouput to show nothing but the output of my application Sep 20 18:25:31 Foo-Bar: grep -v STRING Sep 20 18:25:33 grep Sep 20 18:25:38 awesome Sep 20 18:25:45 erkk Sep 20 18:25:48 don't use -v LOL Sep 20 18:25:51 thank you! Sep 20 18:25:53 that would exclude LOL Sep 20 18:27:20 Foo-Bar, adb logcat :V &> out.logcat Sep 20 18:32:38 Hi I'm putting text in a TextView with maxline=2 and in some occasions it has text for 2 lines, but only uses 1 Sep 20 18:32:52 getLineCount() gives 2, and getLineHeight() gives 15, and yet getHeight() gives only 15 too Sep 20 18:33:08 (In only some cases not all of them, I have a page full of these, and only a few are displayed incorrecrl) Sep 20 18:33:19 any idea what might be happening? Sep 20 18:33:27 all the containers of this thing have height set to wrap_content Sep 20 18:35:13 any idea why this might be happening? Sep 20 18:35:18 any easy way to debug android source code for the textview? Sep 20 18:36:10 hi, im getting warnings on this function: https://gist.github.com/SebastianThorn/6641817 row: 1, 8-10. It's called from a button. Is there something i can do about it? Sep 20 18:37:23 care to be more vague about said errors, cHarNe2? Sep 20 18:39:54 ohh, sorry :P 8-10: "may produce null", 1: view is not user Sep 20 18:53:21 how do I build the android sdk to be able to debug it? Sep 20 18:53:26 can httpclient categoricly not call google.com/search? Sep 20 18:53:35 i get a 200 response code, but no content Sep 20 18:54:19 other sites I have tried to query return all content Sep 20 18:57:33 i mean -- never had a problem using cURL, just had to spoof the headers Sep 20 18:57:40 which I am doing here Sep 20 19:02:04 hey guys I know this is the wrong forum Sep 20 19:02:11 someone here don't happen to be great at SCCM 2012? .. or at least knowing a chat place where people might ? .. I'm struggling to find forums/chats where I can get help with this Sep 20 19:07:07 Can someone take a look at this bug for me? https://github.com/jaynewstrom/AndroidTouchDelegateBug Sep 20 19:07:33 Basically what happens, is I'm trying to use the touch delegate. But once you tap inside the touch delegate, a tap outside the touch delegate isn't registered Sep 20 19:11:54 I have an android app where I have decimal values, in an edittext, I have a value in the edittext of 1.034, and i'm doing this : Double.parseDouble(Epotential.getText().toString()), on my phone it works fine, but it seems like phones in countries that use metric, its changing it to 1,034 and i'm getting an invalid double "1,034" error. whats the best way to handle this? Sep 20 19:16:55 eppo: probably not "best" but, you could just do a Double.parseDouble(Epotential.getText().toString().replace(",","."); Sep 20 19:17:49 eppo, it depends on the DecimalFormatSymbols of the target locale (which does not coincide with metric or not, btw.) Sep 20 19:18:15 eppo: you can use DecimalFormat.parse instead (and DecimalFormat.format), to make sure it will be formatted like the user expects numbers to be formatted Sep 20 19:18:47 how come everytime i declare something in include/generated/autoconf.h, then i build, it gets overwritten and i get declaration errors Sep 20 19:19:16 xstefen: because you don't write code in generated files ;) Sep 20 19:20:04 ive been saying that but noone could answer as to what writes that file Sep 20 19:20:05 :( Sep 20 19:20:20 its been the same 2 declarations and i cant seem to fix it Sep 20 19:21:31 eppo, and for testing it, you have a Locale Switcher app on the emulator Sep 20 19:22:33 (also be aware that standard DecimalFormat may use different "digit symbols" for some locales, which Double.parse will not be able to parse -> use DecimalFormat, or alternatively make sure you used String.valueOf(double) before to make your double to a String so you get dots consistently...) Sep 20 19:27:23 any way of implementing tls 1.2 in android ? Sep 20 19:29:20 How can I get the instance of the Activity that a Fragment instance was created with, inside of the Fragment Sep 20 19:29:48 how to have tls aes gcm in android done ? Sep 20 19:41:53 I'm trying to compile a release mode of my apk, Eclipse ... does right click Android Tools> Export Signed Application Package ... not do this? Sep 20 19:42:26 because they are saying to use ...>Export Unsigned.. Sep 20 19:44:08 veQue you should be doing releases from the command line Sep 20 19:44:20 won't have this problem again :) Sep 20 19:44:33 oh? Sep 20 19:44:35 hmm Sep 20 19:44:52 veQue: do you need signed or unsigned? Sep 20 19:44:57 signed Sep 20 19:45:03 it's going on the market Sep 20 19:45:13 so what's the matter? Sep 20 19:45:36 olá boa tarde a todos Sep 20 19:47:43 gostaria de saber como faço para ler esta string URI = "/wifi/fild/test" Sep 20 19:48:22 http://developer.android.com/tools/publishing/app-signing.html i'm here and trying to sign in release mode... I managed to do the >Export Signed without any problem.. but ... I'm not sure if it's in debug mode or not... because the instructions want me to do it a way involving more steps... or is this just an old tutorial before the export Signed existed Sep 20 19:48:40 e deixa-la na forma "wifi"+File.pathSeparator+"fild"+File.pathSeparator+"test" Sep 20 19:49:05 I have a signed .apk file.. so does that by default mean it's release mode? Sep 20 19:49:18 filsilva: english please Sep 20 19:49:29 sorry Sep 20 19:51:47 I wonder how do I read this string URL = "wifi/fiel/test" Sep 20 19:51:58 and move to another string in the form: "wifi"+File.pathSeparator+"fild"+File.pathSeparator+"test Sep 20 19:52:25 what about split function Sep 20 19:55:37 veQue: http://developer.android.com/tools/publishing/app-signing.html#releasemode Sep 20 19:55:49 Anyone here working with Renderscript? I am unable to find benchmarks for various handsets/tablets, etc. Sep 20 19:56:59 gdrc: I'm there, I guess my question is why are they telling me to use >export unsigned .. when >export signed is right there? Sep 20 19:57:14 Or which handsets to use / work best with Renderscript. Sep 20 19:57:22 veQue: yeah, nice question Sep 20 19:58:10 Hi I'm putting text in a TextView with maxline=2 inside a bunch of linear layouts with height=wrap_content and in some occasions it has text for 2 lines, but only uses 1 .any idea what might be happening? When that happens getLineCount() gives 2 and getLineHeight() gives 15, and yet getHeight() gives only 15 too. I have a page full of texts that should be on 2 lines, and only some of these have these problem, and it's always t Sep 20 20:04:49 gdrc: so.. no answer? Sep 20 20:05:14 can't help man, never released on playstore yet Sep 20 20:05:46 ok thanks anyway Sep 20 20:06:44 veQue: for the "export Signed" option - did you have to create a signing key? Sep 20 20:06:54 if not, then it's likely signed using the debug key Sep 20 20:07:40 if you want to double-check, look at the cert files in META-INF in the apk with a hex editor. If you see a string like "Android Debug" or similar, it's a debug cert. Sep 20 20:08:01 You'll want to create a "real" cert, and store it some place safe. Sep 20 20:08:15 Because if you loose the cert, you loose the ability to upgrade the app Sep 20 20:11:50 ... lose. Sep 20 20:12:10 lose. thanks :) Sep 20 20:12:16 * JesusFreke smacks himself Sep 20 20:12:31 total brain fart there Sep 20 20:14:50 Hey Jesus will you be my savior please. Sep 20 20:14:57 Or which handsets to use / work best with Renderscript. Sep 20 20:15:06 Anyone here working with Renderscript? I am unable to find benchmarks for various handsets/tablets, etc. Sep 20 20:16:23 JesusFreke: i actually am using a signing key that I created prior to that step... not the debug one Sep 20 20:16:41 veQue: if you specifically select a signing key to use, then you should be good Sep 20 20:16:49 oh cool Sep 20 20:17:02 again, look at the files in META-INF if you want to be sure Sep 20 20:19:34 oh turns out the wizard did everything Sep 20 20:19:46 i just didn't read far enough... Sep 20 20:19:54 for shame Sep 20 20:26:27 hey guys Sep 20 20:26:40 if I'm overriding onMeasure, how can I get my parent's width? Sep 20 20:26:57 my widthMeasureSpec is 0, since my parent is a HorizontalScrollView Sep 20 20:29:49 HorizonXP: ah, it sounds like the parent is asking the same question of the child :-) (ie, mode == UNSPECIFIED) Sep 20 20:30:16 kbs: yeah that sounds like exactly what's happening Sep 20 20:30:43 What width did you specify for the parent and the child? Sep 20 20:31:20 parent's width is wrap content, and it's a scroll view Sep 20 20:31:36 child's width is going to be determined by my onMeasure function... Sep 20 20:31:37 Then it has no width until the content (i.e. your view) is measured Sep 20 20:31:44 right. Sep 20 20:32:03 Not sure what you're after then Sep 20 20:32:46 SimonVT: I have a custom control that I size to a fairly large size to allow the user to slide it and adjust a setting Sep 20 20:33:09 the size is based on a drawable that I have, since I use the drawable as the repeating background resource Sep 20 20:33:19 so I make the view's width to be some multiple of that size Sep 20 20:33:50 However, it seems that there can be cases where I'm not large enough to prevent horizontal scroll view from clamping my scroll range Sep 20 20:34:09 so I'm trying to figure out when that may be occuring, and dynamically resize the appropriate amount to prevent that. Sep 20 20:35:20 Hey there. Sep 20 20:35:56 My HSV ends up taking up the screen width Sep 20 20:36:05 but I'm really hoping to not make this dependent on screen width. :-/ Sep 20 20:36:37 Scrolling containers aren't usually wrap_content Sep 20 20:36:39 my previous solution was to call onMeasure with some "guess" value, check the width to see if it will be clamped, and call onMeasure again with a new width set if i determine it will be clamped Sep 20 20:36:49 In Android Studio, the OK and Cancel buttons are the wrong way around, but in the I/O video they are the right way around. Any idea where I can change those? Sep 20 20:37:29 On my computer, cancel is left and ok is right. Only Android Studio puts OK on the left and Cancel on the right. Is there a setting for this somewhere? Sep 20 20:37:55 It's especially odd since it's "cancel left, ok right" on Android itself, so why is this mixed up in the IDE? Sep 20 20:38:25 hi. I am getting some peculiar behavior. First my app runs in windows android sdk but when I switched to ubuntu 12.04 I get strange runtime error of "09-20 15:34:42.208: E/dalvikvm(12415): Could not find class 'com.yyy.xxx.HomeActivity$4$1', referenced from method com.yyy.xxx.HomeActivity$4.run" Sep 20 20:38:28 foroyo had it other way. some version later changed it Sep 20 20:38:41 any idea why this occurs on ubuntu and not windows? Sep 20 20:38:47 its annoying since I use froyo for emultion on my pc, but my phones 10.1 Sep 20 20:38:51 cm 10.1 Sep 20 20:39:02 so I keep hitting wrong button :P Sep 20 20:40:00 could it be the java compiler? Sep 20 20:40:13 i'm using sun oracle java compiler Sep 20 20:41:16 HorizonXP: out of curiosity - is the horizontalscrollview set to fillviewport? Sep 20 20:41:34 kbs: no it isn't Sep 20 20:41:48 i just changed it's layout_width to match_parent from wrap_content with no effect Sep 20 20:42:06 I'll try fillviewport Sep 20 20:42:56 HorizonXP: it strikes me that the least complicated way might in fact be to get the displaymetrics and base if off the screen width Sep 20 20:43:49 kbs: yeah it might be... but that's not ideal either :-/ Sep 20 20:43:55 HorizonXP: it seems that fillviewport will (at best) just give you an onMeasure with EXACTLY semantics, if it's too small Sep 20 20:46:07 Well, I'm still on the open jdk and android studio gave me a warning... if that's what's putting the buttons in the wrong order I'll try the oracle jvm... Sep 20 20:46:10 Very weird. Sep 20 20:46:14 kbs: yeah, no effect :-/ Sep 20 20:46:21 I think I have to revert to my old way of doing this Sep 20 20:48:04 I still don't understand what the issue is Sep 20 20:48:19 You measure your view however large you want it, and then what happens? Sep 20 20:50:35 "AsyncTask throws an android.view.ViewRoot$CalledFromWrongThreadException when Views are updated from AsyncTask.onPostExecute(). There is an issue with AsyncTask in the Android SDK previous to Jelly Bean that can cause this problem under certain conditions." Sep 20 20:50:47 wut the hell Sep 20 20:51:01 Is there any reason that the weight of two layouts in a single layout file would work in a Fragment but not in a DialogFragment Sep 20 20:51:15 FRAGS OUT Sep 20 20:52:41 convivial, build system makes no difference, your clean build is broken or something Sep 20 20:52:54 g00s, you need to call execute() from UI thread Sep 20 20:52:57 g00s, anywhere else is wrong Sep 20 20:53:15 that's the only way to get calledfromwrongthreadexception Sep 20 20:53:20 for onPostExecute Sep 20 20:53:32 hm, this was in the Flurry SDK Sep 20 20:53:33 yiati, because you're doing it wrong Sep 20 20:53:35 SimonVT: I believe (conceptually), he wants to calculate his view width at (say) 150% of the maximum width his parent can take. But HSV by design, needs to wrap_content it's child, so it's a bit of a catch-22 to figure out the maximum available width, from within his view. Sep 20 20:53:37 the answer to any shitty question :p Sep 20 20:53:49 tl;dr they forgot to do new Handler(Looper.getMainLooper()) Sep 20 20:54:07 SimonVT you mean the error I posted above ? Sep 20 20:54:12 kbs: His parent is a scrollview.. There is no maximum width Sep 20 20:54:15 g00s: Yes Sep 20 20:54:23 They use a static handler to post to the ui thread Sep 20 20:54:25 pfn: I don't even know what questions to begin asking myself to delve deeper into the issue, I'm willing to do the research myself Sep 20 20:54:38 Except if you executed AsyncTask from off the ui thread, then whatever thread you called it from Sep 20 20:54:41 sdk writers do a shitty job, pretty much universally, at least outside of google :p Sep 20 20:54:54 SimonVT: yes, understood. I don't think he means its getWidth(), literally. Sep 20 20:55:09 kbs: I don't know what he means Sep 20 20:55:11 SimonVT: perhaps better understood as its viewport width Sep 20 20:55:14 SimonVT wow, their "solution" is : Class.forName("android.os.AsyncTask"); catch (ClassNotFoundException e) { e.printStackTrace(); } … which makes no sense to me Sep 20 20:55:39 i can't even Sep 20 20:56:35 That's.. another way to solve it Sep 20 20:56:55 hehe Sep 20 20:56:59 idiots... Sep 20 20:57:01 kbs: That makes no sense to me Sep 20 20:57:05 It's a scrolling container Sep 20 20:57:10 If the content doesn't fit, it scrolls Sep 20 20:58:02 SimonVT: he seems to have a situation where he wants to force the content to be a multiple of the viewport width, I guess. anyway, that's the way I read it :-) Sep 20 20:58:34 I thought it was a multiple of some drawable/bitmap Sep 20 20:59:22 SimonVT: Ah, I read it the other way around - the goal is to multiply the viewport width, and the repeating drawable was simply a way to dynamically extend the content. Sep 20 21:00:33 SimonVT: yes you're right Sep 20 21:00:39 ah :-) Sep 20 21:01:05 it's just that my multiple of the drawable might not be wide enough in some ases Sep 20 21:01:11 oh Sep 20 21:01:25 Wide enough for what? Sep 20 21:01:25 so, it's the first multiple of the drawable that exceeds the viewport width? Sep 20 21:03:16 oh nice, didn't notice AS logcat got package filter Sep 20 21:05:16 Hi. It's my first time here so I hope it's OK to ask a question right away - don't want to be a leech. Sep 20 21:12:58 g00s, AS had that since day one, and is the only compelling feature vs. intellij Sep 20 21:13:22 oh, so intellij was the one missing it … i got them confused Sep 20 21:13:48 that's like the only thing I really miss from AS/eclipse Sep 20 21:13:58 and using intellij while running monitor at the same time is a total bitch Sep 20 21:14:07 I can't wait 'til it's integrated into intellij as well Sep 20 21:14:28 I wanna be able to debug and run traceview and hierarchyviewer and all that good stuff at the same time Sep 20 21:16:32 Hi I'm putting text in a TextView with maxline=2 inside a bunch of linear layouts with height=wrap_content and in some occasions it has text for 2 lines, but only uses 1 .any idea what might be happening? When that happens getLineCount() gives 2 and getLineHeight() gives 15, and yet getHeight() gives only 15 too. I have a page full of texts that should be on 2 lines, and only some of these have these problem, and it's always t Sep 20 21:17:05 doesn't height refer to height in pixels rather than lines Sep 20 21:17:48 yes Sep 20 21:17:53 you ran out of space in your layout so it's crunching down? Sep 20 21:17:56 scrollview? Sep 20 21:18:00 so lineCount * lineHeight should give approximately height Sep 20 21:18:14 pfn: its in the middle of the scroll view Sep 20 21:18:15 not on the botton Sep 20 21:18:29 I have a scroll view which has a linear layout which has several rows Sep 20 21:19:07 mmm Sep 20 21:19:12 let me get you the xml Sep 20 21:19:14 it'll be easier Sep 20 21:20:22 romainguy Lr 5.2 update :) Sep 20 21:22:46 ok, that AS replace resource with string was under code folding options, that was confusing me Sep 20 21:23:02 I was looking for a pointer to a resource or someone here who would know how to ... get a Nexus 7 to run as a "kiosk" with Chrome. I know this is possible with some hacks / rooting, and that is fine. The part I am not able to findi is a way to run Chrome fullscreen with this. Maybe a custom Chromium? Sep 20 21:30:09 pfn: This is the layout: http://pastebin.ca/2455704 Sep 20 21:30:53 Anyone here have insight on renderscript? I've scoured the net without any luck. Specifically which phones/hardware have the best benchmarks. Sep 20 21:31:20 Looking to perform FFT's. Sep 20 21:32:48 Semental if you don't get a response now, you might try alankila although he's usually here another time of day Sep 20 21:33:20 g00s Thanks Sep 20 21:33:21 he's done stuff with RS and FFTs (but not sure using RS /for/ FFTs) Sep 20 21:33:35 Roger. Let me share a link. Sep 20 21:33:48 https://github.com/nesl/renderScriptFFT Sep 20 21:34:26 Just curious about the performance side of things. Certainly want to work with the best equipment out there prior to testing. Sep 20 21:39:22 Semental: Nexus 10 will run Renderscript on the GPU, so it's a good device to test on Sep 20 21:39:58 also please don't use the com.android package name... Sep 20 21:40:14 what does it matter which phone has the best benchmarks for renderscript? Sep 20 21:40:23 arguably, you'd want to test on the worst device Sep 20 21:41:06 Gavilan2, you're adding rows programmatically? why not a listview Sep 20 21:41:18 and so many nested linearlayouts Sep 20 21:41:56 Thanks Romain Sep 20 21:42:17 pfn... i guess that depends if you releasing your code to the mass. Sep 20 21:42:27 usually the case :p Sep 20 21:42:32 ;) Not here. Sep 20 21:42:33 unless it's something you're building for yourself, I suppose Sep 20 21:42:41 Right. Sep 20 21:42:47 pfn: it's only a few rows Sep 20 21:42:48 Or a private customer? Sep 20 21:43:02 pfn: it wasn't worth the trouble... anyway, I'll probably have the same issue in a listview Sep 20 21:43:32 wasn't worth the trouble? Sep 20 21:43:38 romainguy: Have you used RS? Sep 20 21:43:40 adding rows programmatically is more trouble than using a listview Sep 20 21:43:45 Semental: I have Sep 20 21:43:46 romainguy doesn't know what rs is Sep 20 21:43:47 :p Sep 20 21:43:50 he never used it before Sep 20 21:43:51 ever Sep 20 21:43:51 ;-) Sep 20 21:44:03 romainguy: What are your thoughts on using with an S4? Sep 20 21:44:16 sounds like a good idea Sep 20 21:44:34 romainguy: I wish there were more publications on hardware and RS. Sep 20 21:45:03 romainguy: Specifically for FFT's or something else? Sep 20 21:45:21 for any type of heavy computation it will be useful and efficient Sep 20 21:47:57 romainguy: Have you used it to calculate FFT's? Sep 20 21:48:23 I have not no Sep 20 21:48:29 I wrote a bunch of live wallpapers with it Sep 20 21:48:33 and used it for image processing Sep 20 21:48:40 Hmm wondering how many samples it would take. Sep 20 21:48:51 MSPS Sep 20 21:49:04 how many samples it would take to...? Sep 20 21:49:07 current thought is to have 1024 samples 30 times a sec. Sep 20 21:49:18 so 30x1024 Sep 20 21:49:40 Spectral Analysis. Sep 20 21:49:42 some interesting politics there regarding Google blocking access to the OpenCL drivers Sep 20 21:50:13 g00s: OpenCL has never been part of the public API Sep 20 21:50:18 just like we never exposed OpenVG Sep 20 21:50:40 romainguy: Thanks for the help. Sep 20 21:51:04 Have a good one guys. Sep 20 21:51:11 ooops http://cubiclebot.com/videos/bbc-presenter-mistakes-stack-of-paper-for-ipad/#more-44266 Sep 20 21:52:32 anybody got experience with ormlite they'd like to share? Sep 20 21:52:42 whats wrong with sqlite :P Sep 20 21:53:07 nothing - that's why I'm using it underneath ORMLite Sep 20 21:53:58 also, when things go right, an ORM can really help save time Sep 20 21:54:37 pfn: it works really well right now... expect for the maxlines issue Sep 20 21:54:54 pfn: can you help me with that? Sep 20 22:03:19 Bourbon: We use ORMLite pretty heavily in JuiceSSH Sep 20 22:03:56 It's worked out well for us so far Sep 20 22:04:29 what is more lightwave? a framelayout or a relative layout? Sep 20 22:05:16 framelayout Sep 20 22:05:24 but if you're nesting a bajillion linearlayouts, a relativelayout Sep 20 22:05:52 gridlayout is nice too Sep 20 22:06:03 Gavilan2, use hierarchyviewer to see why views are the size that they are Sep 20 22:06:08 I suppose Sep 20 22:07:51 the size? what? Sep 20 22:08:11 any idea about the max lines thing? Sep 20 22:09:08 I think I can probably use either 2 framelayouts or a single relativelayout Sep 20 22:09:24 the frame layouts wouldn't be nested though Sep 20 22:14:14 JuiceSSH: is it possible to set a @DatabaseField that has (foreign = true) with either the scalar key or the object value, JuiceSSH? Sep 20 22:15:01 Anyone has made any game for Android? I made one for iOS using cocos2d and I'm looking for something like that (only 2D purposes). I know cocos2d has an Android port, but it seems not as mature as ios version. I found this two engines: "AndEngine" and "libGDX". Any reference about them?? Sep 20 22:28:54 Sepho, AndEngine has worked well enough for me Sep 20 22:33:19 thanks Ologn :) Sep 20 22:33:27 do you have your game published? Sep 20 22:33:42 Sepho, no Sep 20 22:34:39 Sepho, the AndEngine sample code shows parallax scrolling, and that worked well enough for me. As did their sub-modules that handled SVG and the like. Sep 20 22:40:04 I want to display all the images and videos in my app activity from gallery as thumbnail ? any sollution ? Sep 20 22:40:19 or github repo to take help from Sep 20 22:40:30 <|0xD34D|> you could always look at the AOSP gallery Sep 20 22:40:56 |0xD34D| : could you please elaborate a little Sep 20 22:41:02 <|0xD34D|> https://android.googlesource.com/platform/packages/apps/Gallery2/ Sep 20 22:43:48 |0xD34D| : this seems a extended version in my case , i simply want to show gallery images in my app activity as Grid og images , hope you get me Sep 20 22:45:14 ; Sep 20 22:48:28 he did get you Sep 20 22:48:37 that's why he showed you gallery Sep 20 22:48:46 you don't get him Sep 20 23:09:08 is there a way so i can populate my screen activity with all the gallery images ? Sep 20 23:09:32 yes, look at that link to see how Sep 20 23:10:35 that link hrrifies me , it has camera 3D gallery , can i get a simpler version where i can learn about the sollution , a refrence Sep 20 23:11:04 that is the reference Sep 20 23:11:17 Ignore stuff that is unimportant to what you want Sep 20 23:11:41 ok , can you tell me how can i download the whole package in my system ? Sep 20 23:11:59 i have never worked in that type of Git Sep 20 23:12:45 git clone that-link-above Sep 20 23:12:45 pfn : can you please help Sep 20 23:21:20 stupid android studio, why is cancel and ok the wrong way around? Arg.... Sep 20 23:21:51 I'm the only one with this problem, right? I saw how the buttons were the correct way in the I/O-presentation... guess my computer is haunted... Sep 20 23:27:21 <`l1t3p1p3`> i forgot to enable usb debugging while flashing droid razer with rsd lite, now it's stuck in ap fast boot, can't factory reset Sep 20 23:27:45 <`l1t3p1p3`> anyone can help appreciate it thanks Sep 20 23:27:56 You're in the wrong room for this. Sep 20 23:29:41 RedNifre: there is no correct way, it depends on the platform windows/gtk/qt.. I guess you have different one that you saw in the presentation Sep 20 23:41:25 hi all Sep 20 23:42:14 i want to implement a blur animation on a background image based on scrolling, e.g. the level of blue increases/decreases as the user scrolls Sep 20 23:43:10 i see the BlurMaskFilter class, but it appears to be implemented in native code and not have properties I could animate on Sep 21 00:12:12 icedp the correct way would be the system default, that's why it's so confusing to me. Sep 21 00:12:19 But I guess this is a bug. Sep 21 00:41:54 hi Sep 21 00:42:05 recommended linux distro for android dev? Sep 21 00:42:49 ?? Sep 21 00:55:21 ubuntu is easiest I guess Sep 21 00:55:24 Foo-Bar: Sep 21 00:55:36 oh guy keft Sep 21 00:56:16 XXCoder: was the easiest maybe. Sep 21 00:56:21 Linux Mint (MATE) ftw Sep 21 00:56:51 cool Sep 21 00:56:56 do ubuntu still call home? Sep 21 00:57:40 http://arstechnica.com/information-technology/2012/12/richard-stallman-calls-ubuntu-spyware-because-it-tracks-searches/ Sep 21 01:00:44 interesting https://ubuntuforums.org/showthread.php?t=2000108 Sep 21 01:00:48 I'm sending raw audio / video byte[] to MediaCodec -> MediaMuxer to generate chunked mp4 files ala MPEG-DASH and need the most performant way to submit these jobs to a background thread Sep 21 01:00:59 Is there much difference between an ExecutorService and posting Messages to a Thread's Handler? Sep 21 01:01:30 I'm talking about many small jobs 30+ per second Sep 21 01:02:16 code's all here if anyone's interested btw: https://github.com/OnlyInAmerica/HWEncoderExperiments Sep 21 01:02:29 real exciting to finally have HW video encoding in the framework :D Sep 21 01:04:03 Hi. What's the proper way to only start a service if a user setting is set to true on device boot? Sep 21 01:13:31 qubes os interesting Sep 21 01:13:37 http://www.techradar.com/us/news/software/operating-systems/best-linux-distro-five-we-recommend-1090058 Sep 21 01:16:01 pretty many of those is "is ubuntu based only Y" Sep 21 01:17:31 XXCoder: well done. (I went for a shower) Sep 21 01:17:40 Being Ubuntu based is different to being Ubuntu. Sep 21 01:33:22 Alec: yeah Sep 21 01:33:43 XXCoder: I'm glad you get that. Sep 21 01:33:51 It seemed as if you didn't. Sep 21 01:34:16 yah was mostly commenting on creativity than feature base Sep 21 01:34:30 Which is of course very stupid, if it were true why would they have separate names right? I was thinking "Can't XXCoder tell that "Linux Mint" and "Ubuntu" are different sets of words?" Sep 21 01:34:37 What? Sep 21 01:35:03 gonna love late summer around here. hot cloudy and rainy lol Sep 21 01:35:51 Thanks for sharing. Sep 21 01:35:57 you're welcome Sep 21 01:36:18 or should I say your? language seem to be heading there ;) Sep 21 01:36:52 curious if yoyu ever tried beos Sep 21 01:36:58 Ah! You must be American! Sep 21 01:37:08 shh Sep 21 01:37:10 lol Sep 21 01:37:11 Yes, English seems to be decaying on all fronts over there. Sep 21 01:37:20 too bad eh Sep 21 01:37:22 For some reason words like "disencourage" pop up. Sep 21 01:37:43 weird. Sep 21 01:38:12 my familys been in america landmass for hundreds of years Sep 21 01:38:17 That is why the terrorists hate you, you know. "The fools, they applied the inverse prefix to a word that already has a prefix, expecting it to not negate the first prefix!" Sep 21 01:38:28 my great x dad was draft dodger from brit army Sep 21 01:38:39 lol Sep 21 01:39:06 XXCoder: I understand standards are slipping, but please in my presence try to at least feign literacy. Sep 21 01:39:08 anyway short story is family supported usa, he was drafted, escaped as soon as brit army landed on future usa Sep 21 01:39:34 almost within a generation we become canadians. it was just my grandfather who become american Sep 21 01:39:46 strange history eh Sep 21 01:40:24 * Alec humours XXCoder like he would a 4 year old who'd failed a card trick "Yes", he said guessing that was the right answer. Sep 21 01:40:36 lol Sep 21 01:40:53 Yes. Sep 21 01:41:31 so guessing youre somewhere in EU? Sep 21 01:41:50 Yes. Sep 21 01:42:07 so guessing youre not somewhere in EU? Sep 21 01:42:31 Yes. Sep 21 01:42:38 cool, awesome. Sep 21 01:42:46 Yes. Sep 21 01:48:30 In what flavor of cheese is roommate have right isn't quite as equities was his Sep 21 01:48:40 gonna love auto caption Sep 21 01:48:49 Has anyone been so far as to decide what not to look like!? Sep 21 01:52:55 puppy linux. I love that disto. runs very smoothy in vm on my bronze age computer Sep 21 01:54:06 Yes. Sep 21 01:54:10 So Gingerbread still has 30% market share, but does it contribute to 30% of the app sales or are those phones owned by people who spend less? Sep 21 01:54:43 RedNifre: ignore that, use support libraries regardless Sep 21 01:54:55 I mean, how much does your revenue REALLY increase if you support the old Gingerbread devices? Sep 21 01:55:15 Depends RedNifre Sep 21 01:55:20 not worth the cost Sep 21 01:55:26 dunno if your app works in that api level, why not? Sep 21 01:55:26 If you're making a game with "high end graphics", not at all. Sep 21 01:55:29 Well, I don't like those support libraries, especially the ugly ActionBarSherlock themes where you have to specify everything twice, with and without the "android:" prefix. Sep 21 01:55:51 minSdkVersion="14" Sep 21 01:56:05 and don't blame ABS for that shit Sep 21 01:56:07 RedNifre: most support libraries are drop in replacements, do what I did and write a python script (and a small Make file) if you want to automate the process. Sep 21 01:56:13 blame the C resource code Sep 21 01:56:14 there are stickers somewhere too. if it's on a sticker you know it's right Sep 21 01:56:28 I've done the whole "Android 4 on Android 2 devices" things complete with support libraries, actionbar sherlock, and even patching the bugs in googles support libraries. It wasn't fun. Sep 21 01:57:11 RedNifre: sounds like you've made your decision, let's hope those awesome 2.2 phones are not popular (HTC Desire HD is a good example, a respectable phone still) Sep 21 01:57:14 I don't blame ABS, sorry if I did not write that clearly. Sep 21 01:57:19 ABS is excellent. Sep 21 01:57:44 I spent a week trying to read theme attributes from future versions of Android. You can actually do it on 2.3 and up. Sep 21 01:58:19 but yeah the duplication sucks, it was the only option Sep 21 01:58:56 there's also a whole slew of other issues. it's just not worth it. Sep 21 01:59:06 agreed Sep 21 01:59:09 especially now Sep 21 01:59:39 remember that GB is on a lot of the low end phones pumped out by the chinese manufacturers for the african market, which is probably not your target market Sep 21 01:59:55 yeah. market awareness is the real thing to be aware of Sep 21 02:00:24 can someone expand ABS? all definitions I know is abs(-1) =1 or that plastic type Sep 21 02:00:30 ...which is what I'm not. Are there more specific revenue listings somewhere? Which versions bring it what kind of revenue where? Sep 21 02:00:36 unless of course you app will compete with mine, in which case you should totally spend a lot of time making sure things work perfectly on every version Sep 21 02:00:45 XXCoder: http://abs.io Sep 21 02:01:01 thanks Sep 21 02:01:06 xxcoder actionbarsherlock, android 4 actionbar on android 2 devices. Sep 21 02:01:40 doubt I will ever need it, but nice Sep 21 02:04:09 So nobody knows about any "revenue by android version" statistics? Sep 21 02:04:28 it dont appear in app stats? Sep 21 02:04:32 RedNifre: varies greatly by category, type of app, monetization strategy etc.. Sep 21 02:04:34 its almost like stat porn there Sep 21 02:04:41 RedNifre: it's not difficult to support multiple versions. "Device no support actionbar, fuck actionbar, use menu" Sep 21 02:06:05 if you hate your users, that's an option, yes Sep 21 02:06:10 So far I only wrote apps for others which were then free, so no useful statistics there. I'm wondering because I consider to write a small app as a hobby and I wonder what level of efford makes most sense... Sep 21 02:06:32 probably whatever easier to you Sep 21 02:06:39 start small Sep 21 02:06:44 there should be downloads by android version stat though Sep 21 02:07:59 Right, but I have no stats for paid apps because the app is a whitelabel app, the money comes from elsewhere, and the payers like that it runs on API 8 up. Sep 21 02:08:26 ok Sep 21 02:08:48 you're starting at the wrong point Sep 21 02:08:48 So does anybody here have stats for a paid app and would tell me something about the Android 2 share of the revenue? Is it anywhere close to the 30% device share? Sep 21 02:08:56 once you have an app you can think about how to increase sales Sep 21 02:08:58 how so? Sep 21 02:09:24 you haven't even validated the business mdoel Sep 21 02:09:34 Well, I figured doing the whole API dance in the beginning might be easier than replacing code with support stuff later on. Sep 21 02:09:37 the hardest thing is getting *something* out there Sep 21 02:09:41 no Sep 21 02:09:52 Okay, I think you are right. Sep 21 02:10:22 Given that it's a hobby app it might make sense to do it the easiest way possible and see where I go from there. Sep 21 02:10:25 Thank you. Sep 21 02:10:28 we had support for old android and we decided to cut it out because it's not worth the maintenance cost Sep 21 02:10:56 as much as i love ABS, ripping it out was a good time Sep 21 02:10:56 yeah. do whatever you feel like Sep 21 02:11:12 death to ABS! minSdkVersion="14"! Sep 21 02:11:44 heh think my live wallpapers is set to api level 8 or so Sep 21 02:11:46 froyo Sep 21 02:15:31 Yeah, I'll go for a minimum feature set app that only runs on the latest version initially. Thank you all for this discussion and have a good night :) Sep 21 02:15:51 have great night Sep 21 02:16:39 So this is how crapps are born.... Sep 21 02:33:29 anyone have any experience with unity development on android? Sep 21 02:54:59 https://gist.github.com/acidjazz/24724a7e8bed6b05549e why doesnt this style work **** ENDING LOGGING AT Sat Sep 21 03:00:00 2013