**** BEGIN LOGGING AT Sun Sep 22 03:00:00 2013 Sep 22 03:34:55 just basic junit would work fine for testing Sep 22 03:35:14 you can right click and run as test even Sep 22 03:35:19 just curious what you guys think of cm going into business Sep 22 03:37:07 pfn: How do you setup your tests to be able to run them in Robitium and in Android? Sep 22 03:37:52 I only use plain instrumented tests these days Sep 22 03:38:01 some plain java tests, too Sep 22 03:38:50 pfn: instrumented tests? Sep 22 03:39:21 standard android sdk unit tests Sep 22 03:39:47 look at android.test. * Sep 22 03:43:02 Sorry, I meant roboelectric Sep 22 03:48:59 robolectric just run as plain java tests Sep 22 03:49:09 add the jar to class path and go Sep 22 04:17:42 <^cheeky> hello , i take it that GC_FOR_ALLOC is pretty bad, because, your almost out of memory... i have implemented, image scaling , LRU memory caching, LRU disk caching .. but yet i see a ton of GC_ALLOC .. i am not sure if you have to use soft references and a hash set lessen this, but i tried using BitmapFactory.Options.inBItmap, any advice would be greatly appreciated Sep 22 04:23:28 ^cheeky: http://stackoverflow.com/questions/11260761/is-gc-for-alloc-more-serious-when-investigating-memory-usage Sep 22 04:25:47 <^cheeky> f2prateek: yeah i was reading that link and iam about to read the memory analysis tool , thank you Sep 22 04:26:07 <^cheeky> f2prateek: do you use soft references ? Sep 22 04:26:58 <^cheeky> thank you Sep 22 04:27:10 I used to follow the guides at https://developer.android.com/training/displaying-bitmaps/index.html Sep 22 04:27:19 Now I just use picasso Sep 22 04:27:40 https://github.com/square/picasso Sep 22 04:29:57 <^cheeky> you the second person who mentioned it ..heh Sep 22 04:30:13 <^cheeky> so you actually study the code, or do you just use it in your apps Sep 22 04:31:58 I'm familiar with some parts of the library Sep 22 04:31:59 Nothing wrong with having your implementation, I just got tired of re-writing it for every app Sep 22 04:34:37 <^cheeky> true, blah i dunno i wasted too much time, trying to figure things out, i guess the images load really fast with what i have .. just a lil with seeing GC, i just so badly want to see it work on my code, but yeah right now its smooth with the DISK and MEMOry LRU, just need to preload some of the :) Sep 22 04:34:42 <^cheeky> i am tiiiired Sep 22 05:04:49 anyone wanna see a first screeny of my hackathon project? Sep 22 05:04:49 :P Sep 22 05:06:44 <^cheeky> i dunno you gonne gimme some dirty link :P Sep 22 05:07:29 lol Sep 22 05:28:01 I'm using SimonVT's menudrawer in my application. The menu contains a radiogroup, and on selection of an item from it, I need to change the listview's adapter on the home screen. What is the best way to implement this functionality? Sep 22 05:31:45 Can I do this with fragments that contains listviews in each of them? Sep 22 05:32:17 My first list is of "customers" and the other seconds one contains "orders" Sep 22 05:32:52 What I need to do is to switch between these two lists on selecting a radio button from the drawer menu. Sep 22 05:40:00 anybody? Sep 22 05:51:44 The upcoming BBM for android is supported by which versions of android? Sep 22 05:54:18 <^cheeky> napster: hey , from what i know of fragments .. they are modular .. so you can do what you just described .. use the the fragment manager to switch Sep 22 05:54:34 <^cheeky> but i am not sure Sep 22 05:55:02 ^cheeky: ok, I'm giving it a try now. Sep 22 05:55:30 Ok, time to do feature freeze so I stop dicking around by adding stuff that sounds cool. Sep 22 05:55:46 <^cheeky> napster: just to let you know i havent used .. menu drawers or anything :( Sep 22 05:56:24 not a problem cheeky. I'm experimenting with it. Will let you know the results. Sep 22 05:56:37 <^cheeky> :) k Sep 22 05:57:22 <^cheeky> anyone .. know any good video on android .. you guys could recommend, Sep 22 05:57:51 Video? Sep 22 05:58:25 Aside from the Google IO sessions? Sep 22 05:58:40 <^cheeky> yeah .. just tried, and i cant read anymore lol i am cooking some thai chicken and drinking a corona, want to watch something regarding android, Sep 22 05:59:27 <^cheeky> yeah right now i am watching memory management 2011 Sep 22 05:59:41 <^cheeky> watching that video .. showed me how bad this bloody app is,!!!! Sep 22 05:59:57 <^cheeky> i am leaking memory lol , my heap size keeps growing LOL Sep 22 06:02:55 ^cheeky, Don't remind me about memory Sep 22 06:03:06 I have to give a presentation about how context leaking works andhow to avoid it on Tues. Sep 22 06:03:11 <^cheeky> s0 android and windows are kinda same with regards to code, as in they support so many different phones, and using the apis .. across them is a pain i dunno but it looks like it Sep 22 06:03:36 <^cheeky> 0oo Sep 22 06:03:54 <^cheeky> i wish i could have sit for that, i would like to know Sep 22 06:04:31 Context leaking is easy to avoid. Sep 22 06:04:46 If you need to keep a context around, use the application context. If you don't, then why are you keeping a context around? >_> Sep 22 06:04:47 <^cheeky> *sat Sep 22 06:04:49 <^cheeky> blaah Sep 22 06:05:52 <^cheeky> k .. so n00b question .. :( .. context is what an Activity would be derived from , like how Object is to JAva ? Sep 22 06:05:57 Nilium, Now ELI5 to a bunch of people who need hand holding for the hello world tutorial Sep 22 06:05:58 thats what I have to do Sep 22 06:06:01 with pretty images and wahtnot Sep 22 06:06:11 ELI5? Sep 22 06:06:48 Ah. Sep 22 06:07:11 Wait, how do you get simpler than "don't keep it around if you don't need it, and if you do, use the application context"? Sep 22 06:07:29 Do you have to start making car analogies, which is apparently the only thing programmers can come up with Sep 22 06:13:04 <^cheeky> hmm DDMS , should have memory anlayzer and dominator tree? Sep 22 06:14:47 I think so? Sep 22 06:15:21 <^cheeky> its okay ... ill google it when i get some Zzzz Sep 22 06:15:25 <^cheeky> *after Sep 22 06:15:36 <^cheeky> well i am using AS Sep 22 06:16:30 <^cheeky> i was able to dump the HPROF file , but i didnt get far to open it .. i think there might me having to convert the file Sep 22 07:47:26 does anyone know how to set a max zoom level for a GoogleMap object? Sep 22 07:53:45 sorry but i need to put advertising in my game to potentialize realize profits Sep 22 07:53:54 any recommendations on doing that? Sep 22 07:54:05 <^cheeky> http://stackoverflow.com/questions/10517848/modify-the-max-zoom-level-of-a-google-map-type Sep 22 07:54:10 potentially Sep 22 07:54:17 <^cheeky> CavemanNinja: http://stackoverflow.com/questions/10517848/modify-the-max-zoom-level-of-a-google-map-type Sep 22 07:55:29 http://developer.android.com/training/monetization/ads-and-ux.html#ObtainPubAccountAndSDK Sep 22 07:57:02 admobhttps://developers.google.com/mobile-ads-sdk/?csw=1 Sep 22 07:57:14 ok sweet Sep 22 07:58:51 ^cheeky: thanks but that is for the google maps web api, im trying to do it using android maps api v2 Sep 22 08:01:24 <^cheeky> CavemanNinja: welcome and i am sorry i could have not been much of help but i think some other ip connected could be more of an assistance to you Sep 22 08:01:24 i tried checking the zoom level in an onCameraChangeListener and adjusting the zoom level if it is over my desired maximum but the lsitener is called after animating the zoom out so it looks like it bounces back Sep 22 08:02:09 <^cheeky> oh @ what state does this happen @ Sep 22 08:02:43 <^cheeky> sorry i have no idea .. about animations nor using the maps api.. still new to android dev Sep 22 08:03:27 no worries :) Sep 22 08:05:37 <^cheeky> hmm interesting problem tho Sep 22 08:06:07 <^cheeky> i am new . but you using a activity + fragment Sep 22 08:07:44 Yeah, specifically a MapFragment, it has a GoogleMap object that is the main class used for accessing the GoogleMaps Api Sep 22 08:08:31 the GoogleMap object has getMax/MinZoomLevel methods but no set.. Sep 22 08:08:44 map:cameraZoom Sep 22 08:10:09 you can disable zooming all together if you want Sep 22 08:11:32 No I want to be able to zoom in as much as possible but set a maximum zoom level. Sep 22 08:11:58 i think i may have found an answer ill try it out and report back Sep 22 08:16:31 It seems the best way around this limitation is the disable the maps native zoom controls and define your own. Sep 22 08:21:39 Hi Sep 22 08:25:09 Is it easy to get the camera for the phone, and put an overlay image on top of it in real time? Sep 22 08:30:05 Ok, screw feature freeze, had to add pet mode: https://dl.dropboxusercontent.com/u/31892/Screenshots/psadh.png Sep 22 08:37:59 Could image be blurry when scalling down ? Sep 22 08:56:28 hello. can anyone explain, why "@color/white" does not work? it says unresolved symbol. - android studio 0.2.9 Sep 22 09:01:29 try @android:color/white Sep 22 09:04:30 kjeldahl: Gradle: String types not allowed (at 'android:actionMenuTextColor' with value 'android:color/white'). Sep 22 09:04:51 oh sry, forgot the @ Sep 22 09:07:56 well that works. but e.g. @android:color/red does not Sep 22 09:13:00 That's because red isn't defined. Sep 22 09:13:16 You should go look at R.color, probably. Sep 22 09:20:23 Nilium: R.color contains only the colors that I have defined with . I am wondering because many tutorials say @color/xxx Sep 22 09:29:28 That's not the R.color I'm talking about Sep 22 09:29:33 I mean android.R.color Sep 22 09:49:37 hi Sep 22 10:20:09 hi all can someone help me with the broadcastreceiver ? Sep 22 10:20:13 this is the manifest Sep 22 10:20:34 http://pastebin.com/Fz0CHKGh Sep 22 10:21:26 and this is the java file Sep 22 10:21:27 http://pastebin.com/dwXr4az7 Sep 22 10:21:52 i don't know if i miss something because the application doesn't start Sep 22 10:26:40 Hi, anybody with experience using twitter4j? Sep 22 10:26:46 eclipse compile it properly, maybe the problem is that i don't use an onCreate Sep 22 10:26:54 methode Sep 22 10:27:11 I wanna pass a list of Status to my fragment, so I need to pass them in a bundle Sep 22 10:27:33 but if i use i can't use it with Broadcastreceive extends Sep 22 10:27:51 Status is said to be serializable, but when I call putSerializable on my list of status Sep 22 10:27:54 itdoesnt work Sep 22 10:28:40 any idea how i an pass an list of status to my bundle without having to recreate the serialization process myself? Sep 22 10:29:12 Yeah I've used twitter4j Sep 22 10:29:23 I used a content provider to manage my statuses tho Sep 22 10:29:28 http://twitter4j.org/javadoc/twitter4j/ResponseList.html I should be able to seralize it no? Sep 22 10:29:42 it implements serailizable Sep 22 10:29:45 a content provider Sep 22 10:30:21 what are you doing exactly, you create a list of status but then you can't put it in a bundle? Sep 22 10:31:42 yes Sep 22 10:31:47 i get a list of statuses Sep 22 10:31:53 i want to pass this list to my fragment list Sep 22 10:31:56 to display them Sep 22 10:32:06 so i need to pass them in a bundle Sep 22 10:32:14 i mean this is what i thought Sep 22 10:32:55 I would recommend using a content provider, get the statuses, add them to the content provider, then you can easily display then using a cursor in the list fragment Sep 22 10:33:47 hm ok Sep 22 10:33:50 i will check that Sep 22 10:35:13 http://developer.android.com/guide/topics/providers/content-provider-basics.html Sep 22 10:35:22 http://developer.android.com/guide/components/loaders.html Sep 22 10:35:57 i'll dig up my content provider and listfragment Sep 22 10:36:47 https://gist.github.com/jalbasri/6658755 Sep 22 10:36:48 because what i ve seen is like people doing the twitter request directly in the fragment code Sep 22 10:36:54 that way they dont have to pass anything Sep 22 10:37:00 https://code.google.com/p/hilda-twitter/source/browse/samples/TimelineHilda/src/com/hilda/twitter/samples/timeline/fragments/ListFragment.java?spec=svn20&r=20 Sep 22 10:37:05 this is how I understood it Sep 22 10:37:08 thanks Sep 22 10:38:34 It's fairly common to have the fragment capable of fetching the data, or having a local cache you update by some asynchronous means. Sep 22 10:38:59 passing data to display in bundle is actually reasonably rare because android can reconstruct the fragment and pass you stale data Sep 22 10:39:17 if the data is live and changes, this leads to application displaying potentially very old information Sep 22 10:39:22 cant you just have an updateList method in your fragment and pass it the ResponseList obj? Sep 22 10:40:09 so we should basically do the statuses request inside the fragment Sep 22 10:40:14 I also recommend *against* most of android abstractions like contentprovider. CP's primary value is being able to share data with *other* applications. If you are working within one application only, you can directly pass Cursor objects around. Sep 22 10:42:41 anyway, that class you linked seems like it might be doing reasonable things. Sep 22 10:42:46 but content providers make it so easy to have a service data asynchronously and have the ui update as it refreshes. What would be the reasoning not to use them? Sep 22 10:43:34 I find the abstraction clumsy and complicated, that's all. It's not too difficult to send an intent or something similar when your update task finishes, and the receivers of intent reopen the cursor and check the new data. Sep 22 10:44:10 and I was told android comes with some nifty observer-observable abstraction though I forgot what it was called, but it's apparently the same one contentproviders use Sep 22 10:44:37 what about persisting the data once you close? Sep 22 10:45:11 observer-observable it sounds familiar i read something about it months ago but cant recall... Sep 22 10:45:26 close the application? I guess if you have structured data, sqlite data persistence is the favorite choice. Sep 22 10:45:44 and if it can't be recreated cheaply Sep 22 10:49:03 i think the content provider is a good way to abstract the sqlite db + manage the cursors at the same time. Sep 22 10:49:31 but if he doesnt need to persist and its just a single list its probably overkill Sep 22 10:50:58 afaik cursoradapters are perfectly capable of managing the cursors, whatever that means Sep 22 10:51:30 you just hand one of them to the adapter and it takes care of it as long as it holds it. If you fail to close it all properly I'm sure the GC or application's exit or similar event will clean everything up, though that could be poor programming. Sep 22 10:52:49 so is this basically the best way to do it? https://code.google.com/p/hilda-twitter/source/browse/samples/TimelineHilda/src/com/hilda/twitter/samples/timeline/fragments/ListFragment.java?spec=svn20&r=20 Sep 22 10:52:51 somehow Sep 22 10:59:06 droidheads, I got a small question for you, is the only Maps API for Android Google Maps? Sep 22 11:04:13 jrm2k6: would have to examine the twitter API definition, see if it has local caching, stuff like that. It's probably well engineered if it's official, and if that's the way they recommend using it. Trusting random source from the internet isn't generally the way to go. Sep 22 11:04:40 alankila: I agree, but I m just talking about the principle itself Sep 22 11:04:58 I feel like it is not a good practice to do asynchronous request in a fragment class Sep 22 11:04:59 no? Sep 22 11:05:09 the fragment class should just received data and display it Sep 22 11:05:24 I have teams that travel collecting data. They are currently using old WinCE devices which has a proprietary data collection form, that syncs with a central server when they're connected to wifi. I'd like to replicate this functionality on android (or hire someone to), taking advantage of the camera and gps would be a bonus. Is there any problem doing so as far as publishing such an app? Any advice? Sep 22 11:05:51 I already explained that you shouldn't put the data in a bundle because that risks getting pretty stale when android recreates the fragment from the bundle when it has to. Sep 22 11:06:07 and that kind of prevents the fragment from displaying realtime updates should there be realtime updates Sep 22 11:06:29 if you think these are good things then by all means stuff everything you want in a bundle or something and construct view from that, but I doubt these are good goals Sep 22 11:06:50 alright Sep 22 11:08:25 jrm2k6: wherever you do the acquisition of the data you could just have a function in the listFragment like updateList(List) and call that with the list you get from twitter, no? Sep 22 11:08:48 and in that function update the list adapter Sep 22 11:08:55 Yep thats true Sep 22 11:08:59 I will check it that way Sep 22 11:09:00 after lunch Sep 22 11:09:01 :D Sep 22 11:12:41 "However, the installation process will start automatically only if the user has configured their Settings to allow the installation of apps from unknown sources." So would I could set it to "unknown sources", install the app, unset it, give them the device -- and still be able to push updates to the application code? Or obtain permission to become a "known source" without my code being public? Sep 22 11:17:14 i am using eclipse, but since the update to 3.8 my android build process seems broken, i get this when trying to launch my app http://pastebin.com/MnC8AeYr Sep 22 11:17:27 also "Build Project" is disabled in the menu Sep 22 11:49:19 Anyone knows if it's possible to cancel all pending AsyncTasks running on the SERIAL_EXECUTOR? I'm doing a HTTP request each time the user presses a key in AutoCompleteTextView to fetch keyword suggestions - but if the user writes fast then it'll take a while before the last request gets through. Sep 22 11:52:01 LtRipley: Update to 3.8? Isn't 4.3 the latest? Sep 22 11:52:50 kakazza: i guess ubuntu is always a little bit behind Sep 22 11:53:07 i am doing some sdk updates now, maybe that was the issue Sep 22 12:10:02 Anyone can tell me what kind of control is this one? ( http://goo.gl/a3unMj ). The Mobile selection ¿button?. I want to create on my own app, a kind of button with pre-defined options Sep 22 12:17:16 I found it, spinners (facepalm) Sep 22 12:31:45 so sdk-updates didn't solve it Sep 22 12:32:26 now that i cleaned my build directories, it basically says that it cannot find R Sep 22 12:32:59 but it doesn't say anything about errors in the xml Sep 22 12:33:09 is there a way to many create the R class? Sep 22 12:33:51 in my gen folder there is only one file, BuildConfig.java Sep 22 12:39:03 LtRipley: There is something wrong with your xml resources Sep 22 12:39:18 When that happens R.java doesn't build Sep 22 12:39:19 it doesn't show any error with the xml Sep 22 12:39:33 i figured that out, but i don't see what would be wrong Sep 22 12:39:34 doesn't mean there isn't a problem Sep 22 12:40:05 that is why i would like to try to build it manually Sep 22 12:41:02 i changed my layout file, but it seems to be correct Sep 22 12:42:43 could it be the order of the builders in my project properies? Sep 22 13:03:16 Could anyone help me with a quick answer? Sep 22 13:03:20 myHandler.handleMessage(myHandler.obtainMessage(0, i, 0)); Sep 22 13:03:20 return; Sep 22 13:03:20 myUri = UriManager.getInstance().getUri(); Sep 22 13:03:20 break; Sep 22 13:03:38 Why would i want to return after obtaining the message? Sep 22 13:03:38 Use pastebin. Sep 22 13:03:45 Sorry about that Sep 22 13:04:00 I don't know, why do you return? Sep 22 13:04:19 i'm reading through someone else's code Sep 22 13:04:26 I can't seem to make sense of this Sep 22 13:04:30 Ask them Sep 22 13:04:38 It shouldn't work but it does... Sep 22 13:04:44 Out of reach right now Sep 22 13:08:03 there is now way that the code after the return is executed, probably it will just run fine if you delete that code Sep 22 13:08:44 try deleting it, run it and then don't think about it anymore : Sep 22 13:09:11 other peoples code not always makes sense Sep 22 13:09:42 What is interesting to me is that eclipse usually flags cases like this as an error Sep 22 13:09:50 i.e unreachable code Sep 22 13:09:55 but no flag here Sep 22 13:10:27 probably it depends on the context where this code is Sep 22 13:10:43 it is impossible for eclipse to find any occurence of dead code Sep 22 13:11:12 DarkSlay3r, paste the full code. I assume it's a switch? Sep 22 13:11:33 in fact there are multiple pages in the java spec defining when a piece of code is considered reachable Sep 22 13:12:09 It's encapsulated in an if statement Sep 22 13:12:28 DarkSlay3r: as sonOfRa said, you need to post the full code Sep 22 13:12:58 anyways, i wouldn't worry too much about it Sep 22 13:13:32 http://codepad.org/MdSoDax8 Sep 22 13:13:55 i actually can't paste everything but this is the relevant bit Sep 22 13:14:18 What i can Sep 22 13:14:37 't seem to figure out is why eclipse thinks this is fine? Sep 22 13:15:14 I don't think he actually has access to the source code, he's just decompiling some app Sep 22 13:15:41 android studio must use java 1.7 or 1.6 is also valid? Sep 22 13:15:43 depends on the decompiler then :) Sep 22 13:16:35 SimonVT: that is a good explaination, i have seen obfuscated javacode that results in decompiled code like that Sep 22 13:16:49 guess proguard is doing that Sep 22 13:17:01 Well you learn something new everyday... Sep 22 13:20:53 which decompiler are you using? Sep 22 13:21:10 This isn't the channel for decompiling apps Sep 22 13:21:38 sorry ;) Sep 22 13:22:09 so i am still trying to figure out why my R class isn't generated in eclipse, is there any way to check my build config to see what is happening? Sep 22 13:22:24 or maybe manually creating the R class? Sep 22 13:22:33 Switch to a proper ide/build system Sep 22 13:22:45 One that actually tells you when there's errors Sep 22 13:23:04 (that's basically anything but eclipse) Sep 22 13:23:16 this sounds very much like a strongly opiniated advice Sep 22 13:23:20 SimonVT: Lint doesn't pick up all errors that prevent R.java from building Sep 22 13:23:34 i've encountered this problem before Sep 22 13:23:45 Your build system should tell you when there's errors Sep 22 13:24:06 so that's why there is my second question how do i actually do it manually? Sep 22 13:24:39 You can build with with gradle, ant or maven Sep 22 13:25:27 i mean: which process is responsible for generating the R class? Sep 22 13:25:52 as far as i know maven and ant are unaware of android Sep 22 13:26:15 I think this is what he means Sep 22 13:26:16 http://stackoverflow.com/questions/4619162/how-to-generate-r-java Sep 22 13:26:23 aapt generates R Sep 22 13:26:33 The official build system is, at the moment, ant Sep 22 13:26:35 Soon to be gradle Sep 22 13:26:42 Someone else made an android plugin for maven Sep 22 13:26:55 DarkSlay3r: thanks Sep 22 13:27:23 All of them will tell you about errors in your resources that causes R generation to fail Sep 22 13:32:17 SimonVT: sorry, i dont get your point Sep 22 13:33:28 Your R isn't being generated because you have errors in your resources Sep 22 13:33:37 i know that Sep 22 13:33:42 What use is an IDE if it doesn't tell you about those errors, but just silently fails Sep 22 13:33:53 well i got the "eclipse suxx' part Sep 22 13:35:23 If you say so Sep 22 13:36:13 eclipse should die in some horrible place Sep 22 13:38:31 ok, i managed to do it, there was actually nothing wrong with my xml Sep 22 13:38:33 Anyone know why ARM advertises 16x FSAA support on their Mali-T6xx line and it doesn't? Sep 22 13:38:46 http://stackoverflow.com/questions/5590933/manually-modiffying-r-java/5591494#5591494 Sep 22 13:39:12 that was the solution Sep 22 13:48:09 <^cheeky> morning /evening if i want to look at my HPROF file, i need eclipse MAT ? Sep 22 13:50:07 LtRipley: What was the problem? Sep 22 13:51:24 Could image be blurry because of scalling down ? Sep 22 13:54:45 bluesm_: depends on if you mean "antialiased" by "blurry" Sep 22 14:00:14 DarkSlay3r: i don't really know Sep 22 14:00:32 DarkSlay3r: maybe eclipse was confused because to many projects where open or something Sep 22 14:05:04 anyone knows what this error means? Sep 22 14:05:06 make: *** Keine Regel vorhanden, um das Target »/home/dino/polishblood/out/target/product/haida/obj/KERNEL_OBJ/usr/«, Sep 22 14:05:06 benötigt von »/home/dino/polishblood/out/target/product/haida/obj/SHARED_LIBRARIES/copybit.msm7x30_intermediates/copybit_c2d.o«, zu erstellen. Schluss. Sep 22 14:05:06 make: *** Warte auf noch nicht beendete Prozesse... Sep 22 14:05:30 what is this cobybit_c2d? Sep 22 14:05:37 copybit_c2d* Sep 22 14:05:51 everything else compiles fine Sep 22 14:07:22 How to multi select listviews pls Sep 22 14:07:35 hi in watching derek banas android tutorial i see that he set's all the strings he plans on using thru values/strings.xml .. is this recommended ? when i can simply type my "Whatever String I want" directly into my layout xml file? Sep 22 14:08:22 I mean it's like double duty when all the strings practically resemble the actual variable name Sep 22 14:08:28 If you want to do any kind of localization, then yes Sep 22 14:08:53 i'm sorry but what do you mean by localization? Sep 22 14:09:21 oh Sep 22 14:09:28 like language changes? Sep 22 14:09:52 yes Sep 22 14:10:27 http://imgur.com/gallery/sP7IP unrelated but wow you can't really get mad once you see thet link Sep 22 14:10:44 wow comes to mind Sep 22 14:11:29 ok thanks btw, i will then use strings.xml Sep 22 14:14:03 Slamd64: to me it looks like you are missing a library Sep 22 14:14:38 Slamd64: whatever it is you are compiling, did you mit the prerequisite in README and INSTALL? Sep 22 14:25:00 <^cheeky> do i have to do any further conversion after i dumped HPROF file in android studio-> DDMS and then tried opening it with eclipse MAT but it gives me a parse error, i also tried converted it using hprof-conv tooll available in the tools folder of my android sdk, but i still get the error Sep 22 14:35:54 LtRipley: everything I use for build is here: github.com/PolishBloodProject, I synced branch jb-4.3. Like you said maybe it is possible that library is missing. I will check it out. Sep 22 14:36:29 I'm trying to compile Android 4.3, device is neo v (haida) Sep 22 14:37:03 Maybe it's more suited for #android-root Sep 22 14:40:22 alankila: http://developer.android.com/guide/practices/screens_support.html#density-independence Sep 22 14:40:34 However, bitmap scaling can result in blurry or pixelated bitmaps, which you might notice in the above screenshots. To avoid these artifacts, you should provide alternative bitmap resources for different densities. Sep 22 14:40:39 alankila: ^ Sep 22 15:16:48 bluesm_: your point being? Sep 22 15:19:13 alankila: That they should correct documentation. And say "scaling up" makes your image blurry or pixelated Sep 22 15:19:41 Oh, indeed. Sep 22 15:19:57 if you provide a low-dpi resource and view it on high-dpi, the lack of information relative to surrounding content is probably apparent Sep 22 15:20:20 <|0xD34D|> bluesm_: they do "However, bitmap scaling can result in blurry or pixelated bitmaps, which you might notice in the above screenshots." Sep 22 15:20:43 downscaling generally risks gamma error and loss of contrast Sep 22 15:20:43 upscaling should be avoided whenever possible. Sep 22 15:21:36 * alankila idly wonders if minor deformation grid could help to optimize contrast of a downscaling algorithm Sep 22 15:22:04 |0xD34D| : Right, but it correct only with up scalling not down scalling Sep 22 15:22:22 |0xD34D|: And "above screenshot" are blurry itself.. Sep 22 15:22:34 the downscaling will add antialiasing and the way these algos work is that they make about 20 % average error in component luminosity because they ignore gamma correction Sep 22 15:22:42 <|0xD34D|> and you said "scaling up" so I showed you were they do mention it for "scaling up" Sep 22 15:22:58 but that's generally not treated as blurriness. It's just a loss of contrast which may or may not occur Sep 22 15:24:19 |0xD34D|: Right but they Should point out where they mention for "scaling up" :) Sep 22 15:24:26 <|0xD34D|> and I do believe you can submit patches to the docs for corrections so you should go take care of that Sep 22 15:25:02 |0xD34D|: You could also provide in "bug reports" add the proposition of better screenshots ? Sep 22 15:25:22 <|0xD34D|> why would I do that? Sep 22 15:25:27 |0xD34D|: This screenshot seems to be blurry itself : http://developer.android.com/images/screens_support/density-test-good.png Sep 22 15:25:39 <|0xD34D|> you are the one complaining so be proactive about it Sep 22 15:26:00 alankila: Could you point me to article about it ? How downscaling works ? Sep 22 15:26:09 alankila: Not to complicated ? Sep 22 15:26:41 alankila: Because I pretty much don't know what "gamma" is. Sep 22 15:30:19 bluesm_: I don't have any articules about it, sorry. Most of the time the method used is called linear interpolation. You can reduce image by up to 50 % in a dimension with it. Sep 22 15:31:43 alankila: My understanding is that if you scalling down by 50% it just connect every two pixels to one, With value that is average of those. Sep 22 15:32:20 gamma is the way a component value is mapped to a physical luminosity. It is easiest to comprehend by asking: what is the average brightness between two colors. If you take rgb value like #000 and #fff, is the average #888? No. It's about #bbb, because the mapping is not linear. Sep 22 15:32:20 unfortunately all our algorithms based on linear interpolation output #888 when asked to generated a midpoint color between the two rather than #bbb. This means that scaling images down tends to make them too dark at edges. Sep 22 15:32:38 yes, well, that is ignoring gamma, but that is the process. Scaling by integer factors is easy, you just average pixels but you should take care to average in linear light. Sep 22 15:34:53 http://www.4p8.com/eric.brasseur/gamma.html is a page that goes at ridiculous depth at it Sep 22 15:38:05 I am personally convinced that we will never be rid of this until we stop using color spaces such as sRGB. This is just the kind of topic that is too difficult for most programmers to comprehend, it seems, or care about. The bug plagues everything that deals with graphics, text rendering, whatever, but since nobody understands it, it's hopeless. Sep 22 15:50:54 I've been thinking about making a kick-ass freetype-based text rendering library though. Just to show what it looks like when you do everything as well as possible, and hopefully would yield very favorable comparisons. Sep 22 15:51:18 I think the anti-grain-geometry guy already did it all though Sep 22 16:12:49 Hi, I have an issue with a customeArrayAdapter and a list fragment Sep 22 16:13:02 https://gist.github.com/jrm2k6/6661410 Nothing is inflated but I dont get any error Sep 22 16:13:06 Any idea? Sep 22 16:16:02 is if( row == null ) always false? Sep 22 16:17:15 nope Sep 22 16:17:19 it is going in it Sep 22 16:17:44 is the getView called at all? Sep 22 16:17:48 yep Sep 22 16:17:51 it is called Sep 22 16:18:20 oh I misread your previous answer Sep 22 16:18:21 right Sep 22 16:20:28 <^cheeky> jrm2k6: convertView == null then convertView = getActivity().getLayoutInflater().inflate(R.layout.youritemLayout, parent, false); Sep 22 16:21:06 ^cheeky: where? i mean Sep 22 16:21:09 instead of what? Sep 22 16:21:24 <^cheeky> LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Sep 22 16:21:48 <^cheeky> i am not 100 % thou.. i am kinda nervouse answering questions here Sep 22 16:21:57 i m will try Sep 22 16:22:09 I have a different approach on inflating as well Sep 22 16:23:15 hmm ^cheeky i m not sure i follow. i m not even using this convertView anywhere except assigning it to row at the beginning of getView Sep 22 16:23:40 replace convertView with row in your case Sep 22 16:23:57 jrm2k6: instead of in onActivityCreated do it in onActivity attached Sep 22 16:25:06 ok i m checking all your solutions Sep 22 16:25:16 I just need to find out the documetation stating those Sep 22 16:26:19 funkbox: onActivityAttached? Sep 22 16:26:46 yees Sep 22 16:28:38 I dont see such a method Sep 22 16:29:18 Hey. I have a question about localization. I'm working on an app that will have support for several different languages. Problem is my boss doesn't know Java, but still would like to have the possibility to add more languages later on. I can't expect him to fire up an installation of Eclipse and recompile the whole project once he's updated the strings.xml file. Sep 22 16:29:55 He does know, however, how to edit an XML file. So I was thinking maybe I should put all the strings in a separate expansion file, and distribute it with the apk file, or is this a bad idea? Sep 22 16:32:51 <^cheeky> jrm2k6: TweetAdapter adapter = new TweetAdapter(getActivity(), R.layout.tweet_detail, testTweet()); to TweetAdapter adapter = new TweetAdapter(testTweet()); then set list adapter and then in your tweet adapter constructor do super(getActivity,0, _data) Sep 22 16:33:05 ihm Sep 22 16:33:13 lemme check Sep 22 16:33:15 <^cheeky> and in the view you get the convertView and give your layout Sep 22 16:33:24 <^cheeky> of your row layout Sep 22 16:33:26 is the android documentation good about this part? Sep 22 16:34:33 alankila: why mapping is not linear ? Sep 22 16:35:04 ^cheeky: I dont have access to get activity in the call to super Sep 22 16:35:59 <^cheeky> jrm2k6: change your constructor to match it Sep 22 16:36:14 ^cheeky: I did Sep 22 16:36:47 <^cheeky> public TweetAdapter(Array Tweet[] _data) Sep 22 16:36:58 but if i follow what you said, it doesnt work, as when i call super() getActivity is not found Sep 22 16:37:13 my adapter doesnt have access to getActivity Sep 22 16:37:30 <^cheeky> yes so make it an inner class of the list fragment Sep 22 16:38:13 hm Sep 22 16:39:55 well, you can also ask the layoutinflater via the static method LayoutInflater.from() Sep 22 16:40:23 LayoutInflater inflater = LayoutInflater.from( parent.getContext() ); Sep 22 16:41:18 Ok i m reading about it buecause i am confused about this layout inflating Sep 22 17:08:00 trying setInstallLocation 2, the process is just killed with no output Sep 22 17:08:06 install location is unchanced Sep 22 17:08:16 changed* Sep 22 17:09:39 the phone's internal memory is full, and it won't do anything now. Sep 22 17:42:03 Anyone knows why in native ARM assembly, some dynamically linked functions are called by jumping directly to the .plt caller of the function, and some jump via an extra indirection/trampoline at the end of the code (for the same function)? Sep 22 17:45:51 bluesm_: the mapping is not linear because of the low precision of 8 bits per component and the desire to encode significant brightness range with it Sep 22 17:46:32 bluesm_: it originally came about because of standards were based on physical hardware and the approximate behavior of the cathode ray tubes afaik Sep 22 17:46:41 or rather, it seems that the code has randomly "long call stubs" vs more direct calls, and I don't see why Sep 22 17:47:04 (I'd expect it to be based on the PC distance, but it isn't) Sep 22 17:49:48 bluesm_: also related is the fact that the eye response to a brightness appears to be logarithmic Sep 22 18:04:59 interesting. http://iloveubuntu.net/smart-scopes-anonymize-images-landing-users-dash-privacy-oriented Sep 22 18:05:17 looks like they realized it was a mistake Sep 22 18:32:35 alankila: I have to learn much more... Thank you very much for your time to help me understand something :) Sep 22 18:32:49 alankila: Thank you very very much :) Sep 22 18:36:57 alankila: so it means that #222222 isn't two times brighter than #111111 ? Sep 22 18:45:13 Hi. I am trying to build the android app of owncloud using the eclipse ADT as given by google. It fails for many reasons, which I am going through them so I can also learn in the process. While searching around online on how to solve them, I came along a claim that bulding it with java 1.7 has a high failure chance, while if java 1.6 is used, all goes fine. Is this true? Sep 22 18:47:26 Why they don't incorporate GitHub to make issue posts regarding Android Documentation ? Sep 22 18:52:35 Night_Elf: this cahnnel is for app developers Sep 22 18:53:07 you'll have more luck with #android Sep 22 18:54:24 f2prateek: I thought of asking it here too. In #android noone seems to tackle this question, so I guessed here there might be people who can tell if java version matters when developing some app (in this case owncloud), or not. Sep 22 18:55:21 Night_Elf, what does it mean for you that you're building with "java 1.7" exactly? Sep 22 18:57:04 Hey there! Sep 22 18:57:29 Mavrik: When I give the command 'java -version' the output gives: java version "1.7.0_40" Sep 22 18:57:50 Android Studio seems to be fantastic, but what do I have to do to make it find my usb connected Nexus4? I'm on Ubuntu. Sep 22 18:57:59 Night_Elf, and which compiler are you using? Sep 22 18:58:00 Mavrik: It actually is what I downloaded from Oracle site. Sep 22 18:58:28 RedNifre, probably what android developer docs say about setting up udev permissions on ubuntu ;) Sep 22 18:59:01 Mavrik: Is it ant you are refering to ? Sep 22 18:59:52 no. Sep 22 19:00:18 it's which of the JDK distributions that include compilers are you using? Sep 22 19:00:22 Never mind, turns out Android Studio is able to find it when I plug it into a different USB port. Very strange, but now it works :) Sep 22 19:03:14 Mavrik: well, I got all the java sdk pack from Oracle and I installed it systemwide, applying all 'update-alternatives' needed. Sep 22 19:04:03 Night_Elf, does it say "Java HotSpot…" when using "-version" or "OpenJDK …" ? Sep 22 19:04:09 that's how you know for sure Sep 22 19:04:24 if you have Oracle HotSpot, 1.7 shouldn't be a problem Sep 22 19:04:33 just make sure that language level for compiler is set for 1.6 Sep 22 19:05:05 f2prateek: I thought of asking it here too. /away Sep 22 19:05:10 oops Sep 22 19:05:47 Mavrik: Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode) Sep 22 19:07:36 Weird, when I use the new Jellybean feature of specifying the parent activity for the up button in the manifest, I get a "new activity started" animation when pressing up, instead of the expected "activity destroyed animation". Sep 22 20:18:53 i am trying to play a mp3 file with MediaPlayer, and it works fine when it is a raw resource, but when i try to play a file from my app local directory it fails Sep 22 20:19:46 i don't even need to call prepare if i use the raw ressource, it just plays Sep 22 20:19:49 what is the difference? Sep 22 20:22:35 It doesn't have access? Sep 22 20:24:26 i am calling exists() and canRead() and both succeed Sep 22 20:24:40 on the file i am feeding to the MediaPlayer Sep 22 20:25:59 i tried a lot of different versions on setting the datasource, but nothing seems to work Sep 22 20:27:40 why not use the raw resource? Sep 22 20:28:52 jeppy: because i load the files from a http server, so they change Sep 22 20:30:06 maybe convert them to raw yourself? I'm sure you'd rather fix the MediaPlayer issue though... Sep 22 20:30:50 LtRipley: If you're testing canRead etc from your own app, that doesn't mean the MediaPlayer has access. So you probably need to put in on "external" memory (/sdcard) or similar, or provide some kind of contentprovider (not sure about the latter, whether a contentprovider can serve files). Sep 22 20:31:28 because the MediaPlayer is a different app, right Sep 22 20:31:33 yes Sep 22 20:32:02 and can i change the permissions? Sep 22 20:34:26 LtRipley: Maybe this can help: http://www.mail-archive.com/android-developers@googlegroups.com/msg12519.html Sep 22 20:35:19 thanks, that seems to be the answer Sep 22 20:35:34 I have no idea if it will work, but hopefully it does. Sep 22 20:35:58 Here's another one: http://stackoverflow.com/questions/3773262/mediaplayer-cant-play-audio-files-from-program-data-folder Sep 22 20:36:37 we will see :) Sep 22 20:43:55 <^cheeky> joozey: thank you about getContext, but would you not want to get the getApplicationContext().getResources() and pass, since it might be prone to memory leaks Sep 22 20:45:42 kjeldahl: yes, it is playing music now :) Sep 22 20:46:08 kjeldahl: thanks Sep 22 20:46:13 <^cheeky> jrm2k6: hey did you get it to show the list Sep 22 20:51:14 Excellent, good job! Sep 22 20:51:34 hi, just starting out. I have an object with nested collections that is mirrored in a SQlite db (and drawn on the view). When the activity first starts with the main ID for the object, what's the best way to load the object from the db? Multiple private ContentProviders? AsyncTask then some sort of notification when it's ready? Or something else? Sep 22 20:51:39 * kjeldahl goes to bed Sep 22 20:52:25 good night then :) Sep 22 21:09:35 bluesm_: it's a bit more complex. In physical sense, #222 doesn't emit twice the photons of #111. But in perceptual sense, it appears kinda twice as bright Sep 22 21:10:15 the sRGB curve is attempting to linearize perceptual differences. Sep 22 21:11:16 or this is a fair approximation, if you ever find yourself wondering how similar two colors are. Just treat them as points in space, then apply scaling factors to r, g and b according to luminance weighing factors, and measure the euclidean distance, and you arrive at often used color similarity metric. Sep 22 21:17:20 Got a link with further reading on that topic, alankila? Sep 22 21:18:52 wiley has a bunch of books on color models; http://www.amazon.com/Appearance-Models-Imaging-Science-Technology/dp/1119967031 Sep 22 21:19:28 I think a blog entry will suffice until I go for books ;) Sep 22 21:19:46 I'm just mildly interested, but interested. Sep 22 21:20:50 would be interesting if we ever found a way to emit any freq photons from any single pixel Sep 22 21:21:13 that'd allow us to have true full range from each pixel. no more rgb, just nm Sep 22 21:22:17 but real light consists of more than one frequency at the same time Sep 22 21:22:34 indeed. Sep 22 21:22:47 hi all Sep 22 21:22:50 red-green glasses wouldn't work anymore :D Sep 22 21:22:58 oh it can still work Sep 22 21:23:28 how would you emit light that would not be filtered by any side? Sep 22 21:23:34 it'd be freakin amazing if this fancy montior could do any polarizion, including rotation Sep 22 21:23:43 is rooting a device needed before you can use the ADB tool? Sep 22 21:23:53 i am connect my Nexus 7 to my windows8 and not show me on MyComputer... (beep when connect the tablet on the usb)... any advice? Sep 22 21:23:55 scroy`: No Sep 22 21:24:10 most cases no. few devices lock that down Sep 22 21:24:24 I know I had to root my nook to get adb to work Sep 22 21:24:31 it's funny... trying to run adb shell, and i can't do anything. permission denied Sep 22 21:24:45 it's an LG optimus S, 2.3.3 Sep 22 21:24:46 I wonder which target sdk I should choose Sep 22 21:24:54 Certain commands are limited. Which commands are you trying? Sep 22 21:25:01 anli: 18 Sep 22 21:25:06 actually i am quite happy with RGB as i don't have more receptors anyways Sep 22 21:25:23 rgb dont quite cover all colors we can see Sep 22 21:25:25 kakazza: I only have 17 Sep 22 21:25:46 Then download 18. Sep 22 21:25:49 its trangle on that full color space (looks like cut off deformed oval) Sep 22 21:25:51 XXCoder: yeah, i read this once, but i forgot why Sep 22 21:25:58 seems like no one is interested in helping... Sep 22 21:26:09 I want to be able to run my app on a lot of units, so maybe the latest is not a good choice, right? Sep 22 21:26:09 here or #android. don't mean to be rude but Sep 22 21:26:16 because this is more of a dev channel than android channel; Sep 22 21:26:19 scroy: Dude, I just answered. Sep 22 21:26:41 anli depends on what features you need I think. my live wallpapers is on api level 8 Sep 22 21:26:45 scroy: sorry, i read your question but i don't know the answer Sep 22 21:26:59 kakazza: ok, sorry. i wasn't specific enough Sep 22 21:27:01 XXCoder: ah, ok Sep 22 21:27:28 you probably dont need to bother with froyo though. I forgot what api level gingerbread is. Sep 22 21:27:30 the real problem is that adb just doesn't seem to work. it seems so basic, i assumed that it would be an obvious solution to people here Sep 22 21:27:33 we will stop foolin around, until your needs are fulfilled Sep 22 21:27:41 If I develop for a high api, can I have the android sdk propose an earlier api that would be sufficient for my project? Sep 22 21:28:03 literally anything i run in the shell gives permission denied, except cd, ls, pwd Sep 22 21:28:12 Lint would complain if you use APIs that are not available on your minSdk. Sep 22 21:28:14 you probbly has $ as prompt Sep 22 21:28:21 XXCoder: right. i'm not root Sep 22 21:28:29 So become root then Sep 22 21:28:31 scroy: If you're not rooted then you are pretty limited Sep 22 21:28:31 anli: Note the difference between minSdk and targetSdk. And build target. Sep 22 21:28:35 yeah Sep 22 21:28:35 tried restarting with adb root Sep 22 21:28:41 doesn't change anything Sep 22 21:28:45 kakazza: Ah, hm Sep 22 21:29:17 android also uses sudo right? Sep 22 21:29:19 scroy: Userspace is very limited on Android for a reason. What exactly are you trying to do? Sep 22 21:29:19 sudo bash Sep 22 21:29:27 XXCoder any advice for me? Sep 22 21:29:30 "su" Sep 22 21:29:35 kakazza: i want to set the default install location to the SD card Sep 22 21:29:41 ah yes su Sep 22 21:29:53 kakazza: because right now, i can't do anything on the phone. "insufficient storage" Sep 22 21:30:02 kakazza: target sdk should be named max sdk instead? Sep 22 21:30:15 jak maybe check android settings for usb connection? Sep 22 21:30:25 I am not sure, but you probably can't do that without root. Apps need to allow it. What you can do is move them manually in the "Applications" Preferences. Sep 22 21:30:25 the SD card is in, but it insists on installing and storing pictures in the phone Sep 22 21:30:25 i am connect my Nexus 7 to my windows8 and not show me on MyComputer... (beep when connect the tablet on the usb)... any advice? i go to Device Manager and see my NExus7, how to access for copy files? thanks Sep 22 21:30:32 Usb Debugging? Sep 22 21:30:46 nope thats bit of a overkill if you just wnat file share and such Sep 22 21:30:56 not sure how to root the phone. a few scattered things came up in search, but... Sep 22 21:31:40 anli: Actually, there's maxSdk, too. But hardly anyone uses it. Two links which might help you: https://developer.android.com/guide/topics/manifest/uses-sdk-element.html and http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Sep 22 21:31:41 the phone is basically useless without some of this stuff. not sure how they even sold it Sep 22 21:32:13 what did you want to do specifially? Sep 22 21:32:20 XXCoder: me? Sep 22 21:32:21 scr Sep 22 21:32:23 yeah Sep 22 21:32:23 take pictures Sep 22 21:32:30 install useful things Sep 22 21:32:35 download map regions Sep 22 21:32:54 i have an 8gb sd card which is barely being used Sep 22 21:33:06 and for some reason, hardly any apps allow moving to the card Sep 22 21:33:09 Maybe your best bet is indeed to root, install a custom ROM if available and use that. Sep 22 21:33:27 sigh Sep 22 21:33:43 it seems like the rooting method is very device-dependent? framaroot didn't work. Sep 22 21:33:54 sometimes version dependant Sep 22 21:33:56 XXCoder not know why cant see on MyComputer... if it is recognized on Device Manager... any advice? Sep 22 21:34:08 jak dunno not sure about that Sep 22 21:34:18 Still, it seems liike target sdk is just a strange thing to set Sep 22 21:34:38 No. minSdk and targetSdk are the two things you _should_ set, imo. Sep 22 21:34:49 yeah Sep 22 21:34:50 http://developer.android.com/tools/extras/oem-usb.html only w7, wvista wxp :( Sep 22 21:34:58 targetSdk defaults to minSdk Sep 22 21:35:10 Set both. Sep 22 21:35:24 minSdk="14", targetSdk="18" Sep 22 21:35:27 For example Sep 22 21:35:37 That will cover 4.x, 70% of the market. Sep 22 21:36:21 man.. really dont have time for this now Sep 22 21:36:25 maxSdk is the highest sdk an app has been tested on, that sematically seems like a max sdk to me Sep 22 21:36:36 eh, sorry there Sep 22 21:36:39 targetSdk is the highest sdk an app has been tested on, that sematically seems like a max sdk to me Sep 22 21:37:19 targetSdk="10" will let you install it on API 18 too. Sep 22 21:37:28 maxSdk is an upper limit. Sep 22 21:37:36 Just, but then you run your app on untested sdk levels Sep 22 21:37:49 And why would I want to do that Sep 22 21:38:50 You're starting right now, right? So you can target API 18 and test it there. Once we hit 19, chances are _VERY_ high, that your app will _just_ run. Sep 22 21:39:03 Once you verified, you can set targetSdk=19 and release an update. Sep 22 21:39:27 Very few Apps have problems with new API versions. Sep 22 21:39:38 So targetSdk is a value that the unit can just ignore, such values makes little sense to me Sep 22 21:40:11 But ok, I got it, targetSdk is a good thing for guessers to set Sep 22 21:40:12 Did you read through the two links I sent you? Including Google's own, where they have a big an red warning paragraph? Sep 22 21:40:25 You gave me a lot of text Sep 22 21:40:30 I am reading it right now Sep 22 21:40:39 I expected you to read them before you continue ;) Sep 22 21:40:50 It's really a thing you just read once. Sep 22 21:40:53 Yes, that was why you gave me a megabyte to read Sep 22 21:41:27 Ok, not a megabyte, I only targetted Sep 22 21:41:42 You asked, the links provide the answer. And the reasons why the three options exist. Sep 22 21:42:28 The problems asking google why targetSdk exist is that they would not write out "this is if you want to take a chance your app will run" Sep 22 21:42:56 Heh Sep 22 21:43:26 And they will not point out the meaninglessness of such a setting either Sep 22 21:43:37 lol :) Sep 22 21:43:49 However, I appreciate the links Sep 22 21:44:10 It's not meaningless. targetSdk has its use and it's explained there. A shorter description is here: https://developer.android.com/training/basics/firstapp/creating-project.html#Eclipse Sep 22 21:44:15 But without the insight. Sep 22 21:44:32 ok Sep 22 21:44:38 Thanks again Sep 22 21:44:48 You're welcome. Sep 22 21:58:32 I still cannot have an xml file in the active editor and debug a project Sep 22 21:59:28 hello Sep 22 22:08:12 anyone know where can download Nexus Root Tool Kit lastest version? thanks Sep 22 22:08:31 wrong channel Sep 22 22:09:21 funkbox why wrong channel? Sep 22 22:10:19 can I make a question about android developing? Sep 22 22:10:24 yes. Sep 22 22:10:31 jak2000, because this is an app-development channel Sep 22 22:15:38 well, I made an app who make http connections to a php file in a server who returns a JSON file. Everything works fine, but when I connect other smartphone with the same app, in the same network, one of them doesn`t connect Sep 22 22:16:23 I have checked everything, and I don't know why this happen Sep 22 22:17:08 its probably because you're using PHP Sep 22 22:17:11 :) Sep 22 22:17:28 XD Sep 22 22:17:43 really, this matter is going to make me crazy Sep 22 22:18:22 its only happen when the device are in the same network, if I disconect one of them, both works Sep 22 22:18:35 this happen in any kind of adsl router Sep 22 22:18:46 Can I reuse components when the activity restarts because of an orientation change? Sep 22 22:20:16 Ah, found out how to do it Sep 22 22:22:32 Â¥ Sep 22 22:22:35 oops Sep 22 22:34:14 Is there a linear layout that will be horizontal if its wider than its tall and vertical otherwise? Sep 22 22:39:18 anli: what ? Sep 22 22:39:49 What does "what?" mean? Sep 22 22:39:58 what does your question mean Sep 22 22:40:49 I want a component that adapts to the device orientation Sep 22 22:41:47 onConfigurationChange change the linearlayout orientation ? Sep 22 22:41:55 manually? Sep 22 22:42:05 yes Sep 22 22:42:10 I was in for something automatically Sep 22 22:42:11 it's a staggering 5 lines of code Sep 22 22:42:34 5 lines of code is no guarantee its not ugly Sep 22 22:44:31 The answer you can give that would make sense is that there is no such component Sep 22 22:58:33 well, I made an app who make http connections to a php file in a server who returns a JSON file. Everything works fine, but when I connect other smartphone with the same app, in the same network, one of them doesn`t connect Sep 22 22:58:49 I have checked everything, and I don't know why this happen Sep 22 22:58:56 its only happen when the device are in the same network, if I disconect one of them, both works Sep 22 23:34:55 anyone using parse.com for their backend? Sep 22 23:40:53 any mether like ColorMatrixColorFilter but much faster? Sep 23 00:22:32 ok, i'm trying to bring a SDL2 application over to android by means of the JNI. SDL2 has instructions for this and i've tried to follow them the best I can. I have an apk, but it seems to crash while loading. Here is the output I get from adb logcat: http://pastebin.mozilla.org/3124265 Sep 23 00:22:45 it seems like it can't load libSDL2_image.so Sep 23 00:23:08 however checking the apk I can see this file exists in lib/armeabi/libSDL2_image.so Sep 23 00:33:54 sounds like it can't fined it Sep 23 00:33:57 looking at the log Sep 23 00:34:02 and IM not sure how you fix it Sep 23 00:35:12 rednovae: I can tell you plenty of people are running SDL2 Sep 23 00:35:15 hm I wonder if theres any special api to change specific pixels in bitmap very rapidly Sep 23 00:35:25 much faster than getpixels Sep 23 00:35:32 and setpixel Sep 23 00:36:12 ohai Sep 23 00:36:39 great Sep 23 00:36:43 always looking for an adventure Sep 23 00:39:40 hi, I've been trying to download http://dl.google.com/dl/appinventor/installers/linux/appinventor-setup_1.1.tar.gz all day and it keeps aborting. Is there another site for this please? Also, is there a checksum published anywhere? Sep 23 00:39:58 excuse me, I meant the .deb file Sep 23 00:43:02 jimcooncat: Both files download just fine for me. Sep 23 00:43:37 Downloaded in less than 10 seconds. Sep 23 00:44:27 thanks kakazza I'll try it again in the morning when my line is not so busy Sep 23 00:44:56 You could try using wget and the -c option to resume. Sep 23 00:45:19 ok, I will! Sep 23 00:48:54 sup guys, i made simple to-do application: https://play.google.com/store/apps/details?id=air.com.timnuwin.tskly Sep 23 00:53:11 could it be because the file is in lib/armeabi/libSDL2_image.so and not lib/libSDL2_image.so Sep 23 00:53:36 "20 character limit keeps you focused" -- love it! Sep 23 00:53:50 jimcooncat its my understanding AI is abandoned Sep 23 01:12:11 question Sep 23 01:12:24 no Sep 23 01:12:29 is there way to use single dimension array of ints as double dimension Sep 23 01:12:40 like int[] I want to use it like int[][] Sep 23 01:12:53 I dont reakly have choice on using int[] Sep 23 01:13:00 XXCoder1, cast it Sep 23 01:13:12 yeah? ok Sep 23 01:13:12 you can't just cast an object to a type that it is not... Sep 23 01:13:25 canadiancow, Sounds like a java issue then Sep 23 01:13:30 C would let you do whatever you want Sep 23 01:13:39 :P Sep 23 01:13:45 and i'd consider that a bug in the language Sep 23 01:14:10 it says I cant cast int[][] to int[] Sep 23 01:14:17 i just said that :p Sep 23 01:14:28 ah yeah Sep 23 01:14:36 anyway, i'd suggest not using the wrong type in the first place Sep 23 01:14:48 lol, bug in the language Sep 23 01:14:52 yeah one built in function requires int[] Sep 23 01:16:03 It's pretty nice when I have a array of doubles in a two dimensional array and I can load it with VLDR D0 R9 offset Sep 23 01:16:54 Then when I drop back to some code that isn't dynamically recompiled, it can just use it like a regular two dimensional array :P Sep 23 01:17:12 yeah Sep 23 01:17:18 union can be amazing too Sep 23 01:17:27 canadiancow try AS yet ? Sep 23 01:17:33 Yea, nameless unions are pretty cool Sep 23 01:17:34 not really :P Sep 23 01:17:48 for excryption project I used union of 64 bit thats single 64, 2 32, 4 16 or 8 8 bit Sep 23 01:18:13 ARM has the UBFX instruction which seems to be made specifically for unions with any bit amounts for the values :D Sep 23 01:18:16 I can just assign charactors, do excryption crap with it as 64 bit int, then read chars out Sep 23 01:18:49 hey guys, can someone help me add a JAR file to my android project in Android studio? Just when I think i Have it working gradle seems to error out. Thanks Sep 23 01:19:33 xximjasonxx see the android gradle examples Sep 23 01:19:33 well its easy to pick single point randomly, but its hard to do that when its single dimension and you want 100 random points clustered at one point somewhere Sep 23 01:19:57 g00s, can you shoot me a link? I think i have been there, been googling this for the better part of an hour Sep 23 01:20:28 xximjasonxx last thing on the page http://tools.android.com/tech-docs/new-build-system Sep 23 01:22:05 what the hell? how can i open this damn thing, Google Docs viewer came up :/ Sep 23 01:23:47 the very last clickable thing on the line Sep 23 01:24:00 for some weird reason, looks like d' for me :| Sep 23 01:24:24 reading up on how to access 1d array as fake 2d array Sep 23 01:24:56 g00s, my screen was too narrow, there is a download link all the way to the right Sep 23 01:25:02 probably x * (y * width) Sep 23 01:25:04 strange that you can just download by clicking on it though Sep 23 01:25:51 er height lol Sep 23 01:27:57 i am just about to the point of going back to IntelliJ Sep 23 01:29:03 did they remove the 'Add as Library' context option? Sep 23 01:32:59 huh, did 4.0 or something change the order that onCreateOptionsMeny() gets called? Sep 23 01:33:00 g00s, got nothing Sep 23 01:33:08 went through every sample in that download, i got nothing Sep 23 01:33:20 I would expect to be able to have my actionbar items created by the time onResume() runs Sep 23 01:39:02 does anyone have any ideas? Sep 23 01:41:44 how to generate a good init vector for a cipher on android ? Sep 23 01:55:38 pseudo random is good enough Sep 23 01:56:06 Exynos has a HRNG in it Sep 23 01:56:13 so does allwinner I've heard Sep 23 01:57:20 ivs only need to be reasonably unique Sep 23 01:58:32 how do I become super awesome programmer number 1? Sep 23 01:58:54 the same at mastering anything Sep 23 01:59:04 spend tens of thousands of hours Sep 23 02:01:31 CocoStorm deliberate practice Sep 23 02:02:10 CocoStorm, Practice practice practice Sep 23 02:02:29 or in microsoft terms, Developers developers developers Sep 23 02:03:08 pfn, with aes-gcm, if pass is static, they need to be unique :) Sep 23 02:03:40 hmm, I guess! Sep 23 02:03:44 :) I will try it out Sep 23 02:03:59 CocoStorm: emphasis, on theory, or else you are just a codder ;) Sep 23 02:04:13 s/HRNG/PRNG Sep 23 02:04:57 true Sep 23 02:05:50 I'm not sure where my sticking points are. So far I've been good at finding out how different things are done and tweaking them to make them fit together to make apps Sep 23 02:05:57 do spongy or bouncy do prng ? Sep 23 02:06:14 CocoStorm: 4 years of CS then ;) Sep 23 02:06:15 and that is fine but I feel like I should be doing everything from scratch by heart Sep 23 02:06:36 PhD down the line , if you are patient enough :) Sep 23 02:06:49 I've done CS it hasn't taught me anything Sep 23 02:07:06 well, I know how to program of course but, I don't feel like I'm doing enough Sep 23 02:07:53 reversing assembler binary code , good for self evaluation Sep 23 02:07:55 :) Sep 23 02:13:58 I think the main thing most people can do to improve as a programmer is read Code Complete Sep 23 02:15:30 Name functions normally, avoid methods with more than seven variables etc., that Code Complete stuff would fix a lot of problems Sep 23 02:17:01 what would be the best way to implement import/export functionality for an app (photos + other data)? Sep 23 02:17:21 Ologn we should give a copy to the android team :) Sep 23 02:17:30 i can't really find much other than android's backup api which i don't think is ideal for that scenario Sep 23 02:18:24 g00s, along with a thank you for putting in backwards compatible Actionbar functionality...maybe a cake that has been on a shelf for two years or something Sep 23 02:20:02 Ologn i have a feeling; the support lib is only going to get bigger :) Sep 23 02:23:00 hm, got the library project + content provider + how_to_define_authority conundrum Sep 23 02:23:23 meh, Application to CP.call() i guess, yuck Sep 23 02:24:23 arghh cant reboot my device in recovery mode..... how to fix it? (its a nexus 7) Sep 23 02:27:35 any existing implementations of tls-psk-aes-256-gcm for android ? Sep 23 02:28:04 g00s any advice ? Sep 23 02:28:19 jak2000 yes, try #android-root Sep 23 02:29:40 thx Sep 23 02:42:05 i'm confused in AS, the difference between 'Make' 'Compile' and 'Rebuild' Sep 23 02:50:02 g00s, I assume make compiles the whole project, compile only compiles that singular file you are in, and rebuild does and clean then rebuilds the whole project **** ENDING LOGGING AT Mon Sep 23 02:59:59 2013