**** BEGIN LOGGING AT Tue Jul 02 02:59:58 2013 Jul 02 03:04:20 tis quiet Jul 02 03:09:59 it's after hours Jul 02 03:10:01 of course it'll be quiet Jul 02 03:25:57 hi guys. im looking to get into mobile dev and am leaning heavily towards android being the platform i want to use. i'm curious, if one builds and app for nexus 4, can the same app run on galaxy s4? i notice samsung has numerous development sdk's so i wasn't sure if there were additional dependencies to use those? Jul 02 03:28:22 Perhaps start with a hardware comparison homestarz http://www.pcadvisor.co.uk/reviews/mobile-phone/3448434/galaxy-s4-vs-nexus-4-smartphone-comparison-review/ Jul 02 03:29:48 i forgot to mention, assume the hardware is not the limiting factor (e.g. if i build a calculator app can you use it on all android devices or is it like linux where you have to build the app for teh specific distros?) Jul 02 03:30:21 derp Jul 02 03:34:48 if you want to use specific hardware and whatnot, you'll need the libraries to use them, but no particular "sdk ednvironment" Jul 02 03:35:00 you can build it for all linux distros, if you want Jul 02 03:35:05 static linking works fine Jul 02 03:35:13 thanks pfn Jul 02 04:12:02 Hi guys, how do you getExtras() from activity that does not follow the current activity call the getExtras()? Jul 02 04:12:16 Hi guys, how do you getExtras() from activity that does not follow the current activity calling the getExtras()? Jul 02 04:32:47 can i run a jnlo into my android device? Jul 02 04:35:48 Hello there! Jul 02 04:36:23 Can someone help me? Jul 02 04:36:44 i have a little problem with DatePickerDialog and i am getting mad :S Jul 02 04:41:11 RyanM are you there? Jul 02 04:50:06 is there monitor mode in android mobile phone? Jul 02 04:59:46 monitor what Jul 02 06:00:34 man, using my tablet as a second screen for watching videos is so awesome, since I can just broadcast the audio to my computer and play it through there Jul 02 06:00:34 and I don't need a second monitor Jul 02 06:00:34 and damnit, how the hell do I set a padding on the left side of a compoundbutton's button image Jul 02 06:00:34 are there any 1px/transparent drawables? Jul 02 06:00:34 (in the framework) Jul 02 06:03:52 pfn: are you serious Jul 02 06:05:59 oh well, I can just set a transparent colordrawable Jul 02 06:13:21 so is google planning dropping sihtty ass java any time soon? Jul 02 06:13:51 I'm getting sick of having to have 2x1.5ghz processors to run about the same as a 700mhz iphone Jul 02 06:17:18 can't imagine so Jul 02 06:17:25 unfortunate Jul 02 06:17:32 cant see that problem just going away Jul 02 06:17:53 even when new java gets speced out and google decides to move on it, they gotta make that shit happen with dalvik Jul 02 06:18:02 so its like deprecated java till the end! Jul 02 06:20:49 the resolution is simple, improve dalvik Jul 02 06:21:04 are the different kernals out there vastly different from stock, or is it just usually a few thousand lines of code? Jul 02 06:22:54 <_abc_> Hello. I just saw the news on the ZTE from Telefonica .es with Firefox OS. Besides being yet another platform to cover by developers, is that not also a 'Google Franchise'? In the sense that all searches etc from Firefox have been pointing at Google for a /long/ time now, and that has not changed? Jul 02 06:23:02 xor_mind-: usually it's "I have no idea what I am doing" Jul 02 06:23:05 <_abc_> Iow, is that an Android variant or what? Jul 02 06:23:15 <_abc_> p_l: /: Jul 02 06:23:47 _abc_: that's the general state of modding community, fortunately there are some heavyweights that pull everyone up Jul 02 06:24:47 <_abc_> Yes, but is it Android compatible? In SDK/runtime libs? Jul 02 06:24:47 ron_frown: I think java isn't the only reason. These days, I suspect going with LLVM bitstream instead of DVM might have been better, though Jul 02 06:24:54 <_abc_> Or is it yet another platform to support? Jul 02 06:24:59 _abc_: FirefoxOS is a different platform Jul 02 06:25:21 <_abc_> Chrome based, no doubt?! Jul 02 06:25:34 pfn axe java Jul 02 06:25:39 I want a purely native option Jul 02 06:25:42 _abc_: you're joking, right? Jul 02 06:25:43 _abc_: nope, Firefox Jul 02 06:26:01 with toolkit Jul 02 06:26:57 I remembre when people first got mono running on android phones... pretty sad that with the mono runtime, mono+mono app was faster than java + androids java stuff Jul 02 06:27:05 llvm isn't completely native either Jul 02 06:27:11 but that's what powers ios Jul 02 06:27:21 ios apps Jul 02 06:27:27 pfn: LLVM doesn't power iOS Jul 02 06:27:31 I like android... really like how open it is and god knows I've done stuff I couldnt do with other os's when it comes to my custom hardware Jul 02 06:27:49 p_l, hmm? maybe I'm mistaken by the original toolchains I used for ios a long time ago Jul 02 06:28:00 pfn: the original toolchain was GCC Jul 02 06:28:01 I dont think they did anything stupid like apples weird flat too far approach etc Jul 02 06:28:08 I'm just over jumping all the god damn hurdles Jul 02 06:28:13 to me its honestly easier to build ios apps Jul 02 06:28:20 p_l, gcc has an llvm target... Jul 02 06:28:24 memory leaks and shitty gdb Jul 02 06:28:36 pfn: but in general, iOS doesn't care, it gets a Mach-O arm executable for OSX linked with right libs and that's all Jul 02 06:28:59 pfn: llvm-gcc isn't exactly a "gcc with llvm target" Jul 02 06:30:05 I didnt mean to start a big ass argument =( Jul 02 06:30:19 I just wish google would make shit more efficient and give more options Jul 02 06:30:29 stuff like play services doesnt feel like moves in the correct direction Jul 02 06:30:47 shit like heres tons of new func, get a new phone because yours will never see a rom update Jul 02 06:41:56 ron_frown: I think Dalvik was reasonable compromise, but a solution more along the lines of AS/400 (aka IBM i) might be better these days Jul 02 06:42:03 but would require a lot of work now Jul 02 06:42:25 I dont know what that is Jul 02 06:42:27 otherwise we might have ended up with C++ toolkits, and C++ interop doesn't exist Jul 02 06:42:31 I thought AS400 was servers =) Jul 02 06:43:20 ron_frown: I mean AS/400 OS - it doesn't compile "native" at all, at least outside very small core kernel, instead it compiles to a virtual machine and *then* compiles that down to native code on installation Jul 02 06:43:48 think of it like generating LLVM bytecode then having phone/tablet compile and optimize it for its own cpu Jul 02 06:44:19 sure Jul 02 06:44:26 sounds a bit like what java does Jul 02 06:44:33 or .net clr bytecode Jul 02 06:44:46 I've just have MUCH MUCH MUCH better luck with .net's performance Jul 02 06:44:52 ron_frown: well, not exactly - the code that runs is native, it's just compiled transparently Jul 02 06:45:05 oh I see what you are saying Jul 02 06:45:25 CLR does have AoT compilation, though, which is nice (it generally got a lot of stuff better...) Jul 02 06:46:35 how can I migrate my Ant project to Android Studio? I can't find any tutorial online, and nothing about Ant in Studio itself. :( Jul 02 06:46:40 ron_frown: Java gave Android another advantage - easy access for new programmers. iOS was kinda forced to accept applications other than javascript ones by people who cracked it open and found out it was just OSX with few libs Jul 02 06:47:03 yeah I can see the why Jul 02 06:47:09 but its beginning to hinder Jul 02 06:47:27 <_abc_> Wow I seem to have started an argument here Jul 02 06:47:39 I'd truthfully rather just have the android linux stack and kernel libs etc and run qt on top of that Jul 02 06:47:47 I woudlnt shy away from c++ Jul 02 06:47:58 its not as easy app for app as java Jul 02 06:48:01 <_abc_> I so wish the collection of tards usually known as 'standards organizations' would step in and do something about standardizing at least one variant of portable bytecode Jul 02 06:48:08 ron_frown: I would. C++ means you have to use C++, because interop essentially doesn't exist Jul 02 06:48:17 interop with what Jul 02 06:48:20 <_abc_> New and 'new' devel platforms seem to be able to make up their own on a weekly basis Jul 02 06:48:31 <_abc_> p_l: is right Jul 02 06:48:42 <_abc_> C++ is a lock in even for open standards or compilers Jul 02 06:48:44 ron_frown: if I wanted a different language. Python etc. doesn't count being essentially an interpreter written in C/C++ Jul 02 06:48:47 c/c++ are the languages everyone shoots to inerop with Jul 02 06:48:56 ron_frown: C has interop. C++ does not Jul 02 06:49:00 <_abc_> more like c not c++ Jul 02 06:49:02 i'm getting an unlocked nexus 4 from google, is there an officially supported way to backup your phone with the android sdk or do you have to use other people's tools? Jul 02 06:49:18 believe me, I went through gritty details of how C++ calls work, it's hell to implement Jul 02 06:49:18 <_abc_> ron_frown: have you tried to port c++ apps beween even the same platform, 10 years later? Jul 02 06:49:21 xor_mind- you can do it with adb Jul 02 06:49:26 no Jul 02 06:49:34 <_abc_> ron_frown: then please do not talk about it Jul 02 06:49:39 <_abc_> ron_frown: people here have scars Jul 02 06:49:52 ron_frown: I managed to see ! fail with 2 pages of template-oriented output Jul 02 06:49:53 wtd? Jul 02 06:49:59 haha Jul 02 06:50:04 been there done that Jul 02 06:50:06 the code I was compiling didn't use templates Jul 02 06:50:21 nor was the operator overloaded Jul 02 06:50:40 that is, not by the program Jul 02 06:50:42 * _abc_ desperately sucks on his 2nd coffee cup this morning - 10am approaching here and still no buzz Jul 02 06:50:57 _abc_: I am after second unslept night, with a wink here and there Jul 02 06:51:05 <_abc_> p_l: go catch up Jul 02 06:51:27 <_abc_> I call this 'bug time' and I'm a hardware guy. My bugs have smoke throwables... Jul 02 06:51:28 _abc_: can't, work to do Jul 02 06:53:47 <_abc_> https://en.wikipedia.org/wiki/Firefox_OS anyway let's hope FF is as bad at locking out rooting as the others were and are ... ;) Jul 02 06:53:59 oh god Jul 02 06:54:01 oh god Jul 02 06:54:04 oh god Jul 02 06:54:10 <_abc_> ron_frown: yes? Jul 02 06:54:10 ff os is a joke mayng Jul 02 06:54:38 and the fact they are going to start their os off on some non flagship grade hardware is gonna screw em Jul 02 06:54:43 <_abc_> ron_frown: more so or less so than Google Everything running in firefox on your desktop pc every day? Jul 02 06:55:13 hey if you want to accept web apps as replacements for desktop apps, more power to you Jul 02 06:55:17 ron_frown: supposedly they want to target low-end market Jul 02 06:55:23 ron_frown: AIUI the idea is that the smartphone space is stitched up, but dumbphones are still a valid target - so a shitty smartphone at a dumbphone price... Jul 02 06:55:26 firefox xul shit was impressive Jul 02 06:55:27 BUT Jul 02 06:55:28 <_abc_> ron_frown: and you have a choice since when? Jul 02 06:55:41 we'll see how it goes with their *downloadable* apps Jul 02 06:55:49 web apps are *dead* in low-end Jul 02 06:55:56 I dont get the impression xul is any way shape or form Jul 02 06:55:57 <_abc_> not really Jul 02 06:55:58 <_abc_> dead Jul 02 06:56:01 dude Jul 02 06:56:08 all it means is that they've got some factory to take a 2 year old design off the shelf and make a load of them cheaply Jul 02 06:56:09 I build fast hardware, running chrome in android Jul 02 06:56:22 and they cant come CLOSE to touching androids java stuff Jul 02 06:56:26 and their java stuff is slow +) Jul 02 06:57:04 and then you toss in there js fucking sucks big balls (dont get me wrong I am stuck in it day in and day out as well) Jul 02 06:57:08 ron_frown: I just point out that I don't think even LTE guarantees you don't get a sudden 1s latency spike somewhere, and imagine what it does to all the crap a "modern webapp" pulls Jul 02 06:57:28 mobile internet loves lag spikes Jul 02 06:57:31 *LOVES* Jul 02 06:57:39 p_l there is a lot available that can help minimize that with local storage and cache manifests etc Jul 02 06:57:40 but still Jul 02 06:58:03 I despise the world for trying to make shitty js into something it isnt, and probably wont ever really be Jul 02 06:58:13 <_abc_> The problem I see is, people who program for these platforms are not trained /continously/ in hedging for lag and dropouts Jul 02 06:58:22 ron_frown: cache manifests are broken (someone wrote it better than I, but basically shit gets undone in face of update) etc. Jul 02 06:58:25 _abc_: that too Jul 02 06:58:29 <_abc_> I think I know 3 apps which are lag and dropout resistant and all 3 are command line ones Jul 02 06:58:34 <_abc_> One is ssh... Jul 02 06:58:35 p_l dont doubt that Jul 02 06:58:59 _abc_: Instagram actually had extensive network latency workarounds, which is probably why it got big Jul 02 06:59:04 <_abc_> Maybe Jul 02 06:59:19 see sadly what flash and .net had going for it (that the world failed to recognize) was that it was in browser dlr / vm Jul 02 06:59:26 which was actually real practical Jul 02 06:59:28 <_abc_> Personally I prefer to think in transaction model mode, as seen f.ex. in SQL with BEGIN/COMMIT blocks Jul 02 06:59:35 and it wasnt some hobbled language Jul 02 06:59:39 that was only ever half assed at best Jul 02 06:59:47 all the flashy shit got in the way Jul 02 06:59:56 <_abc_> But that does not play well with modern expectations of 'interactive' realtime feedback which users expect Jul 02 07:00:00 I dont min html/css for presentation Jul 02 07:00:05 _abc_: Instagram did something like that, in a way - it started a "transaction" but only committed it if you decided to save the photo Jul 02 07:00:06 <_abc_> Unless you lie a LOT in the ui about the feedback Jul 02 07:00:13 just js is just plain terrible Jul 02 07:00:26 <_abc_> Not true, js is just another language. Jul 02 07:00:34 <_abc_> It depends who codes in it and how well. Jul 02 07:00:47 ron_frown: flash had the problem of being there first so people remember all the crap it was used for :> Jul 02 07:00:53 yeah Jul 02 07:00:54 <_abc_> It does have major dark areas including portability woes in the DOM area but it is just another language. Jul 02 07:00:55 I agree Jul 02 07:01:01 even nacl is super interesting to me Jul 02 07:01:09 but I tihnk a lot of people are going to avoid ti because goog Jul 02 07:01:17 js is shit dude Jul 02 07:01:22 pnacl is quite interesting, but no one outside google wants to work with it Jul 02 07:01:30 instead they give us, *shivers*, asm.js Jul 02 07:01:53 <_abc_> My personal fsvorite online js app is the COSMAC ELF realtime ebedded board emulator which runs in real time and almost as fast as the ~1977 hardware it emulates. Jul 02 07:02:19 no compilation (not even the pseudo compilation byte code langs give us), no real imports, no real dynamic loading, no good standard recommendations for what is the PROPER way to build oo js code Jul 02 07:02:20 lol @ "almost as fast as the 1977" xD Jul 02 07:02:27 <_abc_> yes, Jul 02 07:03:05 I looked at require.js and while I see what it attempts to solve, all it seems like it really does is complicate your code more for VERY little gain Jul 02 07:03:35 the you have coffeescript, dart, and any number of other langs that compile to js Jul 02 07:03:51 if you have to compile something TO js to make it less shitty, why cant we just adopt those langs as a standard Jul 02 07:03:53 fuck JS Jul 02 07:04:10 I actually like dart, it seems like a really truly viable optoin Jul 02 07:04:27 and dartium with dart code vs chrome or any other browser with js, dart stuff native is way faster Jul 02 07:04:40 ron_frown: Mozilla and others do not want Jul 02 07:04:54 <_abc_> http://www.cosmac.szyc.org/ ron_frown see or courself. That is a full js realtime emulation of a CDP1802 RCA cpu, called from a realtime interactive GUI emulation of its development board (aka Cosmac Elf) Jul 02 07:05:05 yeah because they are happy with js Jul 02 07:05:15 <_abc_> Also someone booted linux on js recently Jul 02 07:05:34 like my indian friend said once Jul 02 07:05:47 "...just because you can have sex with prostitute, doesnt mean you should" Jul 02 07:06:16 ron_frown: I'd add "at least go for high-class escort"? ;> Jul 02 07:06:27 people dont like to step back and look at the big problems Jul 02 07:06:30 instead the like to bandaid shit Jul 02 07:06:33 js works Jul 02 07:06:35 fuck js Jul 02 07:07:51 I hope everyone at firefox gets giardia and shits themselves to death Jul 02 07:08:01 I like open, I like that they are trying Jul 02 07:08:05 but fuck js Jul 02 07:08:29 its just the cool thing to like atm Jul 02 07:08:29 <_abc_> https://en.wikipedia.org/wiki/Comparison_of_mobile_operating_systems this is your future as a developer. That table does not fit my wideish screen now when zoomed to be legible. In 3 years it might need a wraparound room screen. Jul 02 07:09:11 I picked up a windows phone today (played with, not bought) and while I think some of the ui is questionable Jul 02 07:09:23 <_abc_> ron_frown: the answer is NO Jul 02 07:09:24 there is no denying android is wasting a shitload of cycles =) Jul 02 07:09:34 its just no where near as responsive Jul 02 07:09:47 I mean wp8 is undoubtedly mostly native Jul 02 07:09:47 <_abc_> ron_frown: wait until you need to update that thing ota or do anything important ota when the link drops Jul 02 07:09:52 <_abc_> you don't want to go there Jul 02 07:10:00 no worries I'm not considering Jul 02 07:10:18 I just hope google has their finger on the pulse Jul 02 07:10:35 things look good, lots of great apps, usability is actually not too bad (though I think tablet could be improved) Jul 02 07:10:36 <_abc_> How is Android market share computed again? 75% of what? Smartphone market? Jul 02 07:11:16 does anybody know if there is a proven method for loading assets in a native activity? i was reading there is a bug with 2.3.x and it wasnt actually working for every device untill 3.0 Jul 02 07:11:25 <_abc_> ron_frown: people are so badly pissed off at the spying part revealed by Snowden, of which Goopile is a necessary leaking point, that Google might see its European side of operations freeze very fast Jul 02 07:11:36 <_abc_> ron_frown: think of it as loking 350 million customers overnight. Jul 02 07:11:40 bug was with getFilesDir() ? Jul 02 07:11:40 <_abc_> *loosing Jul 02 07:11:48 I wouldnt be worried about that Jul 02 07:11:56 I mean I dont doubt it could happen Jul 02 07:11:57 <_abc_> ron_frown: I am in Europe and I know what I will do. Jul 02 07:12:44 <_abc_> Our national gumshoe spy companies are not something to look up to, especially here in Eastern Europe where they are just the old KGBish commie shit with eyes under a new name, but... Jul 02 07:14:42 oh wait that wasnt where the bug was, thats a java function.. this was the bug i'm worrying about https://groups.google.com/forum/#!topic/android-ndk/4lD8OS-w4UU Jul 02 07:17:43 i guess more importantly, is /data/data//files always the place to look? are there cases where that will not be accessible or a valid path? Jul 02 07:18:12 fuck its hot =( Jul 02 07:18:34 <_abc_> West Coast? Jul 02 07:18:49 icetooth: yes, when there are multiple users Jul 02 07:19:04 use the helper methods to access those folders Jul 02 07:19:05 <_abc_> Is there a default path? Jul 02 07:19:17 <_abc_> /data/data/AllUsers/files ? Jul 02 07:19:37 no Jul 02 07:19:37 <_abc_> Windows usually has this in some form. Jul 02 07:19:40 <_abc_> Okay Jul 02 07:19:49 <_abc_> or /shared/ ? Jul 02 07:19:52 no Jul 02 07:20:03 <_abc_> hm. Is there a good reason for that... Jul 02 07:20:03 shared directories are always nothing short of a trainwreack Jul 02 07:20:08 -a Jul 02 07:20:17 use the folders that are local to your app Jul 02 07:20:41 <_abc_> I was talking per user. Per app also requires /shared/ ime Jul 02 07:20:48 JakeWharton, but what do i do for those 2.3.x devices that have null internalDataPath and externalDataPath Jul 02 07:21:10 cross my fingers and hope they're single user? Jul 02 07:21:13 icetooth: for old devices ONLY you can hardcode the path Jul 02 07:22:08 oooh multi user is introduced in 4.2 Jul 02 07:22:09 ? Jul 02 07:22:37 yes, but you should still always delegate to helper methods to resolve the path because they are never guaranteed Jul 02 07:23:02 you can fall back to a hardcoded path as a last resort Jul 02 07:24:02 thanks JakeWharton that helps me a lot Jul 02 07:32:25 JakeWharton: just started looking at volley and saw your Google+ post about it and the OkHttp Jul 02 07:32:50 is this just instancing the queue with a specific client? Jul 02 07:33:00 or other tweaking needed? Jul 02 07:36:21 oh an even better solution haha, theres an asset manager in native activity, AAssetManager* assetManager = state->activity->assetManager; Jul 02 07:37:04 just a specific HTTP client that I think is superior than Apache and the built-in HttpURLlConnection Jul 02 07:41:03 I've some weird problem with the DatePicker. It displays the spinner as well as the calendar view (by default). Now I want to disable the calendar view, because it's too big and Eclipse tells me it would require API level 11 and I'm using 8. Jul 02 07:42:05 i have a relative layout ..within a list view and a action bar at the top. The layout has too much padding by default. Even though there isn't any padding specified in the style. The list view scrollbar is not aligned to the right border, but you first the the padding on the right, then the scrollllbar Jul 02 07:42:15 The setCalendarViewShown wasn't added after the calendar view had been added, was it? Would make no sense. Jul 02 07:42:28 how do you change the default padding in the content area underneath the action bar? Jul 02 07:43:52 Neon, true. Jul 02 07:44:33 Neon: in almost every project i included my own version of the DatePicker Jul 02 07:44:47 ugh, why Jul 02 07:44:48 Neon: google's implementation really sucks Jul 02 07:44:52 So should I just add an if (currentAPILevel >= requiredAPILevel) { foo.setCalendarViewShown(false); }? Jul 02 07:44:56 e.g. there are missing features Jul 02 07:45:02 like no min/max Jul 02 07:45:20 which is a real pain in real world applications Jul 02 07:47:23 monsti, still, seeing every app reinventing the same wheel with slightly different failures and UX is just annoying as hell Jul 02 07:47:28 Neon, pretty much :) Jul 02 07:48:16 solved it Jul 02 07:48:26 Mavrik: well i blame google for that - the have that cool support library but they suck in fixing their own bugs :( Jul 02 07:48:51 Mavrik: i decided to use my own stuff Jul 02 08:01:23 what do I need to do in order to add a request body to a post with volley? Jul 02 08:03:50 I have created an alarm that launches just fine. If silent mode is enabled iit disables my vibrate as well as my sound. The code clearly should execute the vibrate but not sound. any ideas? https://gist.github.com/px-amaac/5907510 Jul 02 08:04:58 do I need to override the getParams every time I create the POST request or is there a setter that can be done? Jul 02 08:05:08 and does this add the cookies for this? Jul 02 08:06:28 hey guys. how can change the color of android EditText border (android 4 single bottom line style with is blue) also keeping its style (default android 4)? Jul 02 08:06:58 create an xml drawable and set it to the background I guess (or use a custom theme) Jul 02 08:07:07 i tried shape xml file but it creates a regtangle box Jul 02 08:07:16 In a new app I'm developing a user can create new items with text, and save or edit them. how would you store them? SQLite, or sharedPreferences? Jul 02 08:07:55 depends Jul 02 08:08:06 and sharedpreferences isn't a general-purpose data store Jul 02 08:08:15 rved: i prefer sqlite. easier to handle via SQLiteHelper class Jul 02 08:08:38 mostly the items will contain booleans and strings Jul 02 08:08:44 and an image Jul 02 08:10:14 when using SQLite, is it possible to get information using a background service? Jul 02 08:10:23 when the app is not running, but a service is Jul 02 08:10:24 of course Jul 02 08:10:52 ok great, cause the docs said something about not giving data when the app is not running Jul 02 08:13:13 If a service is "running" then your app is "running".. Don't confuse app and activity Jul 02 08:13:42 ok Jul 02 08:16:09 so anyone any idea for my question? :D Jul 02 08:16:27 hello guys, I want to add google play services lib to my android project, I am using Jul 02 08:16:38 Android Studio how can I add the lib to my dependencies ? Jul 02 08:18:30 in eclipse at least you need to import it as an existing android project, NOT just use the jar file Jul 02 08:18:46 and then link it as a library under Properties Jul 02 08:19:09 yeah in eclipse Jul 02 08:19:18 but I am asking for Android Studio Jul 02 08:19:54 I know, but I imagine the process will be somewhat similar Jul 02 08:21:31 yeah but it isnt Jul 02 08:21:40 so does anybody know how can I do that ? Jul 02 08:28:57 * monsti just installed kepler Jul 02 08:29:09 and - like any other eclipse - it fixed some bugs Jul 02 08:29:15 but it comes with a lot of new bugs! Jul 02 08:29:48 e.g. deleting a section in an xml file will cause the cursor to jump to line 1 - in some braindead situations Jul 02 08:30:39 i love the eclipse coders - btw. a lot of them also work for your bank and help the bank guys to take care of your money Jul 02 08:37:25 hey guys, does anyone know whether this issue has any resolution? essentially I Jul 02 08:37:48 I'm experiencing the same thing, localname and qname switched with robolectric Jul 02 08:38:13 http://stackoverflow.com/questions/14391698/robolectric-saxparser-in-android-vs-saxparser-in-java-robolectric-differenc?utm_source=twitterfeed&utm_medium=twitter Jul 02 08:50:07 With SQLite, should you use a DAO if you want to store and get data? I read something about increased memory usage if you use it, but it does not explain why to use DAO, when not Jul 02 08:50:33 JakeWharton: is this APACHE 2.0 license? https://gist.github.com/JakeWharton/5616899 Jul 02 09:18:57 im trying to read a bmp file and seem to be crashing while trying to open the file, i'm wondering if its probably its a file permission problem because this warning started popping up: W/ActivityManager(207): No content provider found for permission revoke: file:///data/local/tmp/xFlip.apk anyone know how to fix that? Jul 02 09:25:48 how do i use these animations? are they included in sdk? https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/anim/ Jul 02 09:26:20 i tried "android.R.anim.dialog_enter" but i get cannot find symob variable dialog_enter .... some of them work though Jul 02 09:26:26 why does package manager change the resource path, i think that is causing an error with installd? E/installd(112): Couldn't unlink /data/dalvik-cache/ Jul 02 09:29:17 hm, some of these animations work and some not ... perhaps they're not included in my sdk? do i need to update something or install additionally, or should i just copy .xml files to my project res folder? Jul 02 09:31:43 hm, external libraries/Android/res/anim does in fact hold all of these .xml files, but why can't it find some of them? Jul 02 09:33:20 hello Jul 02 09:33:37 anyone have htc one or galaxcy s4? Jul 02 09:33:47 hey guys, does anyone have good suggestions how to testing SAXparsing with robolectric? one huge problem i'm encountering is the incompatible behavior that seems to have replaced qname with localname… anyone has down this b4? Jul 02 09:33:53 hey guys. how can change the color of android EditText border (android 4 single bottom line style with is blue) also keeping its style (default android 4)? Jul 02 09:34:08 ExEcUtIvE: i got s4 Jul 02 09:34:39 primski i explain you problem in pvt Jul 02 09:39:08 hm, how do i use these pre-set animations?? - R.anim.my_anim looks for .xml file in MY res/anim folder, correct ... but how do i use these pre-set animations https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/anim/ Jul 02 09:40:55 I'm running ./gradlew assemble and I get with "build successful" a ./build/apk/droidguide-release-unsigned.apk file. Why is the apk not signed? Jul 02 09:41:58 Hi, is there a recent tutorial on how to sync contacts from my server to the Android contacts? Jul 02 09:42:45 What's public.xml for? It's just throwing out errors when I do a lint check, although the app works fine Jul 02 09:45:15 Hi Jul 02 09:45:20 Any developers.android.com editors here? Jul 02 09:45:30 I want to submit a change to the Iconography page Jul 02 09:45:45 SiPlus: submit it as a bug at b.android.com Jul 02 09:46:35 if someone can take a quick look at this small error log and offer some advice on how to fix this file IO crash i would be extremely thankful. http://codepad.org/STLWrJ05 Jul 02 09:46:39 Running with robolectric, the only thing i get back from the SAXParser is qname, everything else returns null or the empty String "". Please help Jul 02 09:48:31 Leeds, ok, submitting Jul 02 09:56:00 http://code.google.com/p/android/issues/detail?id=57219 Jul 02 10:02:30 Not sure if you're confusing dp and px.. Jul 02 10:03:09 dx Jul 02 10:04:00 Hey SimonVT, why does public.xml throw already defined lint errors when it's actually a different type of thing with the same name Jul 02 10:04:12 And why do I get nullpointerexceptions after deleting it and how do I get it back >_> Jul 02 10:04:17 Not sure why you'd make a 1dp gap on hdpi resources when the guidelines say 2dp Jul 02 10:04:32 No idea ;d Jul 02 10:04:36 fuk. Jul 02 10:05:17 Nevermind Jul 02 10:05:20 Uh, wait Jul 02 10:05:28 It was trying to findviewbyid by a hardcoded number instead if r.id in a place Jul 02 10:05:41 What are you defining in public.xml? Jul 02 10:05:51 Right now nothing because I deleted it Jul 02 10:06:00 before it looked like just about everything was there as well as R Jul 02 10:06:05 Uhm, ids Jul 02 10:06:29 (when I think public.xml I think what the framework uses to define final resource id's) Jul 02 10:06:44 can i use these pre-set animations or do i need to copy them to my project res dir? https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/anim/ Jul 02 10:07:17 I think that's what it was. Jul 02 10:07:30 I have no idea why it's not generating it Jul 02 10:07:41 or why it was in the project in the first place Jul 02 10:07:43 oh Jul 02 10:07:55 probably because of that one time where I had to recover the project throughh decompilation Jul 02 10:08:05 Which is why there's still resources accessed by direct numbers instead of r.id too Jul 02 10:08:06 >_> Jul 02 10:09:05 If you need to define id's in values do Jul 02 10:10:07 Yeah, I didn't need to, it was just there since decompiling it and I didn't realize it lol Jul 02 10:10:45 Also, I assume views with the same name in different activities is fine Jul 02 10:11:03 And it'll get the id of the one that matches the currently set content view layout activity thing. Jul 02 10:11:22 is it possible for me to intercept a tap anywhere on the screen and use that the trigger an event? Jul 02 10:11:33 (well, trigger some code) Jul 02 10:12:32 I've got an activity with a good bit of data loaded and would like to transition to a different activity when the user taps the screen Jul 02 10:12:38 alternatively, tapping the d pad works. Jul 02 10:15:12 mambono10, set onTouchHandler on top-level view of your activity Jul 02 10:15:27 so the ContentView? Jul 02 10:18:11 Guys, what video formats are supported in VideoView? Jul 02 10:18:53 communist-cake: http://developer.android.com/guide/appendix/media-formats.html Jul 02 10:19:16 mambono10: Thank you a lot :) Jul 02 10:19:18 fucking hell, do i need to sign my app before i can load a file!? Jul 02 10:19:35 Mavrik: would that be the ContentView? Jul 02 10:24:14 is my debug key not enough to use AAssetManager_open ? Jul 02 10:29:39 hey Jul 02 10:29:57 there is a compiler for c++ android Jul 02 10:30:11 yeah g++ Jul 02 10:30:41 look at the native-activity sample Jul 02 10:30:59 does g++ compile for arm ? Jul 02 10:31:39 ndk-build Jul 02 10:32:06 my bad Jul 02 10:32:19 i just spent 5 hours trying to get a file to load and am failing Jul 02 10:32:51 Is creating a ArrayList from database records a good way to fill a list View? http://paste2.org/0IBjFtaa Jul 02 10:34:45 icetooth Jul 02 10:34:57 apparently i cant even run my app to watch it crash anymore..... failed to install apk, permission denied lol this just keeps getting worse Jul 02 10:35:02 ndk is not what I want Jul 02 10:35:07 yes it is Jul 02 10:35:07 I want to compile just c++ program Jul 02 10:35:19 no java Jul 02 10:35:22 native-activity Jul 02 10:36:00 just c++ ? Jul 02 10:36:02 LOCAL_STATIC_LIBRARIES := android_native_app_glue Jul 02 10:36:28 yes im doing it right now, but you will be in for a world of hurt Jul 02 10:37:44 what do you mean Jul 02 10:37:46 is it hard Jul 02 10:38:05 no its real easy at first, untill you want to start doing cool stuff, like loading files Jul 02 10:41:03 :D Jul 02 10:42:53 icetooth Jul 02 10:42:58 can you use inline arm assembly Jul 02 10:42:59 in that ? Jul 02 10:43:23 good question Jul 02 10:43:31 yeah I know :D Jul 02 10:45:02 this guy claims that you can do it, http://stackoverflow.com/questions/7743818/does-the-android-ndk-compiler-support-inline-assembly-ie-asm-or-asm-keywords Jul 02 10:46:00 so we can Jul 02 10:46:01 yes, you can Jul 02 10:46:07 it is too good Jul 02 10:46:10 I like it Jul 02 10:46:21 but unless you do thumb2 you'll need .asm after the filename in your android.mk Jul 02 10:46:28 so it'll use non-thumb code Jul 02 10:46:34 fuck my problem is a pointer somehow turning null magically.... *bashes face against a wall* Jul 02 10:48:18 zharf I ll first inspect arm assembly Jul 02 10:53:15 note that there are some non-arm android devices :) Jul 02 10:54:02 Is ARM assembly the same for all versions of ARM? Jul 02 10:54:30 no, of course not Jul 02 10:54:41 :D Jul 02 10:54:47 armv7 can run armv5 code though Jul 02 10:54:55 but not the other way around Jul 02 10:55:09 and NEON? Jul 02 10:55:14 so, to use the included resources from Android Library .... I should copy the files I need to my project dir instead of referencing them directly? i found this advice on stackoverflow from 2011, does this still stand? Jul 02 10:55:15 yeah there's that too Jul 02 10:55:36 I haven't really explored neon at all Jul 02 10:56:59 interesting thing about neon, i was going through the bullet physics sdk and they only had iphone checks that explicitly enabled NEON Jul 02 10:57:06 so maybe gcc vectorizes for you? Jul 02 10:57:23 using neon Jul 02 10:57:42 ? Jul 02 10:57:50 or whoever wrote bullet hates android Jul 02 10:58:21 Neon: http://www.arm.com/products/processors/technologies/neon.php Jul 02 10:59:53 I'm going to sue them! Jul 02 11:04:16 bastards stole your name! Jul 02 11:05:51 I should've sued Eclipse backs in the day too Jul 02 11:06:24 at some point it got reaaally annoying and I had to change my nickname because people kept asking me about eclipse Jul 02 11:10:39 we were always of the believe that it was meant to be something to do with blocking out Sun Jul 02 11:11:23 er, belief Jul 02 11:12:43 anyone know how to change the overflow icon on the actionbar, ive specified a png that works fine on all my devices but client says its appear black somehow Jul 02 11:12:57 Hey. Is there a way (yes, rooted device) to force num lock on, for a USB-keyboard? Jul 02 11:15:51 actionbars are a total nightmare Jul 02 11:16:04 completely fragmented across devices, unless clients emulator is to blame Jul 02 11:16:14 how can a png be showing the wrong colour! Jul 02 11:27:38 do i need any java knowledge to use the ndk? Jul 02 11:28:10 Is there an example of an app that takes a picture from the camera with a cropping rectangle on it? Jul 02 11:29:46 Can i use a string value from values/strings.xml in a database? Jul 02 11:29:47 http://paste2.org/tywVk2jY Jul 02 11:30:13 getString(resId) Jul 02 11:30:13 i want to insert records on first time creation Jul 02 11:30:41 new Item( getString(R.string.item_name), "over9000")); Jul 02 11:30:41 ty forgot! Jul 02 11:30:42 like that Jul 02 11:30:44 np Jul 02 11:31:11 so in this way it will be a multi language app? Jul 02 11:31:19 if i translate the strings.xml Jul 02 11:31:25 should be Jul 02 11:31:28 cool Jul 02 11:31:29 ty Jul 02 11:32:07 Hey guys, what's the point of a library project? I want to have a free and paid version of an app, so I converted it to a library project, made a different project that uses that as a library, and got to the point in which nothing does shit Jul 02 11:32:24 If I have to rewrite or copypaste everything from the library anyway, what's the point? Jul 02 11:33:21 So I still have the problem that my http get requests returns an i/o internal server error but only on the one website I want to use it on, google.com etc works fine. Any ideas? Jul 02 11:33:57 Your website's borked? Jul 02 11:40:11 Is there ANY advantage to trying to use library projects or should I just copypaste my project to make two versions? :| Jul 02 11:42:04 xlinkz0 no Jul 02 11:42:31 thanks, i'm relieved Jul 02 11:42:37 hehehe Jul 02 11:42:41 gonn be harder work tho Jul 02 11:42:49 u writing a game? Jul 02 11:43:11 i need to give some working C code to colleagues so they can use it in java Jul 02 11:43:18 RazielZ: I installed the same CMS on my private webserver and it works fine there. Jul 02 11:43:22 problem is they don't know how to link C files with the ndk so i have to learn it :\ Jul 02 11:43:32 haha yeh i did that once Jul 02 11:43:36 ofc without adding stuff like teamspeakviewer etc. Jul 02 11:44:12 have to create a wrapper to ffmpegs main because they can't chmod stuff on user handsets apparently Jul 02 11:45:22 man these emulators take the biscuit Jul 02 11:45:27 i need to shoot myself in the head Jul 02 11:45:29 is there anything like this already in the wild? i've searched google a bit but couldn't find any Jul 02 11:48:35 when specifying a background color on a list view row/entry … i don't get a highlight color when i touch it… android:background="@color/row_bg" Jul 02 11:48:41 is this normal behaviour? Jul 02 11:54:12 Yes, the selector is drawn behind the view unless you set android:drawSelectorOnTop="true" Jul 02 11:54:52 god i hate actionbars, overflow item works fine on all my devices, on one emu it doesnt show at all and on another it shows almost black so u cant see it, whats goign on Jul 02 11:55:54 who cares, it's an emu Jul 02 11:56:00 when do they ever act as any real device? Jul 02 11:57:16 The overflow item doesn't show on devices with a menu button Jul 02 12:08:54 how do i make a themed style for this Relative Layout? http://paste2.org/pdzwkFdE Jul 02 12:09:00 i want to make it shorter Jul 02 12:09:21 my main theme is