**** BEGIN LOGGING AT Sun Oct 06 02:59:58 2013 Oct 06 03:11:12 ChromeOS *might* be good enough for what I am going to work on, but I am wary Oct 06 03:22:49 g00s: ... dunno if (still) true, but I found mentions of ChromeOS being made using Gentoo :P Oct 06 03:23:38 ChromeOS based on Gentoo? Oct 06 03:23:41 hm Oct 06 03:23:54 well, Gentoo being used to build it Oct 06 03:24:22 if I have 562 downloads in the amazon store versus 30 on google play store, does that mean I'm doing something wrong on google play, or is that a usual occurrence? Oct 06 03:25:33 poutine: is this for a new release? Oct 06 03:25:57 could it be as simple as Amazon updating their stats more frequently/quickly? Oct 06 03:27:00 Jul 28th on google play, about a month later on amazon Oct 06 03:27:04 nah Oct 06 03:27:23 I wish I was getting downloads in the 500+ range immediately upon release :/ Oct 06 03:27:53 there are plenty of apps which make thousands or tens of thousands in their first day... not mine Oct 06 03:28:05 also, you're checking downloads, or installs? Oct 06 03:28:17 I am releasing my 3rd app today Oct 06 03:28:20 these are downloads Oct 06 03:28:25 amazon does not list installs Oct 06 03:28:39 and my installs are lower on google Oct 06 03:29:04 generally, people would expect much higher numbers on play store Oct 06 03:29:15 although amazon does have the smaller pond effect Oct 06 03:30:24 Leeds: smaller pond? Oct 06 03:30:38 gavilan2: big fish, small pond Oct 06 03:30:57 just published first alpha apk on google play, if anyone w nexus7 or better wants exclusive prereleases, can join my testers g+ group Oct 06 03:31:00 in other words, there's less competition Oct 06 03:31:16 hi Oct 06 03:31:27 any good tutorials for android dev, nOT in text format? Oct 06 03:31:38 Leeds: oh... still, I think they have different ways of poping up the products... Oct 06 03:32:03 shaun413 not in text format? Oct 06 03:32:03 Leeds: Google has more information, but they need to relay a lot on AI to interpret from your mails and stuff what's happening in your life Oct 06 03:32:11 yes Oct 06 03:32:17 like a video Oct 06 03:32:20 gavilan2: what the fsck are you on about Oct 06 03:32:22 I dont learn from text well Oct 06 03:32:22 Leeds: Amazon has information with better quality... what are you trying to buy... Oct 06 03:32:35 so it might be easier for them to target the right people for your app Oct 06 03:32:38 shaun413: you do realise that code is a textual medium, right? Oct 06 03:32:44 i wish google would provide images for "g+ signed in as x" and "sign out" buttons not just "sign in" Oct 06 03:32:47 I know Oct 06 03:36:16 shaun413 i bet you could pay Leeds to do live video android lessons Oct 06 03:36:24 ok Oct 06 03:36:27 how much? Oct 06 03:36:34 you couldn't afford my rates Oct 06 03:36:44 also, you wouldn't want to know what I would teach you :P Oct 06 03:37:26 oh? Oct 06 03:37:31 what are your raates? Oct 06 03:37:45 seriously though, we get this sometimes, people saying they learn better from video... Oct 06 03:37:59 it's a really inefficient medium for learning coding Oct 06 03:38:30 stanford has that iOS course, wonder if there is an equivalent android one Oct 06 03:38:37 (free, video, etc) Oct 06 03:39:00 hmm Oct 06 03:39:56 would be funny if it was on iTunes U :D Oct 06 03:40:10 at least i think you could dl those to your machine for offline viewing :/ Oct 06 03:40:17 fucking youtube Oct 06 03:45:32 there was some stuff on marakana, but they got purchased by twitter ? wat Oct 06 03:56:06 Is anyone knowledgable about JNI? I used to associate a C++ object with a Java object by an unordered_map>, but my shared library crashes immediately when I load it with targetSdkVersion >= 14 Oct 06 03:57:10 Now it would seem that the Java calls coming from the same object give me a different jobject value every time, I guess that's the "indirect handle" stuff it says in the Android-14 Changelog. Oct 06 03:57:41 how do I get a unique non-changing ID from that jobject? Oct 06 04:16:50 p_l i searched amazon to see if any emacs books were slated for publishing after now; 0 results returned Oct 06 04:17:09 i hate the one they have online, which is like a wall of text Oct 06 04:17:26 no figures, etc Oct 06 04:21:28 i bet stallman took the info and put around it Oct 06 04:31:20 anyone here can contact ops of #android? Oct 06 04:31:31 ll jerk is still trolling there Oct 06 04:35:16 XXCoder1: there's very little activity by the ops around here Oct 06 04:35:42 sorry should be clear Oct 06 04:35:50 its in #android with LLckfan Oct 06 04:35:58 ops there isnt doing anything Oct 06 04:36:21 same ops, mostly Oct 06 04:40:57 hi all, I have a question about using the camera within an android app Oct 06 04:41:22 does Camera.Parameters.setFocusAreas work on the Samsung Galaxy S4? Oct 06 04:41:43 I've found a couple stackoverflow posts saying that function might be broken Oct 06 04:43:40 Oh, why did I do this.... Oct 06 04:44:08 the bug was "int num = 2^30" Oct 06 04:44:43 which I thought was 1073741824. Bleh. Oct 06 04:45:22 4294967296/16 Oct 06 04:45:35 /4 Oct 06 04:50:16 is that xor in java or something Oct 06 04:50:52 g00s: meanwhile I discovered the one most compelling reason for buying macs Oct 06 04:51:18 1<<30 instead Oct 06 04:51:32 g00s: they are mediocre, but predictably mediocre, so you don't have too think too much when buying :> Oct 06 04:53:02 macs arent mediocoer theyre the best laptops available Oct 06 04:53:24 but they ridiculously markup addons like double the ram or disk Oct 06 04:54:03 so pcs are cheaper unless you get the minimum configuraiton which sucks and noone should get Oct 06 04:54:33 JimmyCarter i noticed last week Intel declared the ultrabook concept a failure Oct 06 04:55:01 http://semiaccurate.com/2013/10/02/intel-labels-ultrabooks-failure/ Oct 06 04:55:27 Hello everyone, I've got a quick question regarding Fragment usage. I've the following app "screens" that will be shown: Map, About, Company List, Company page, Product List, Product Page. Oct 06 04:55:43 well, dell & co seem to be predictably awful Oct 06 04:55:46 Should I have one activity for each, I'm using the ActionBar, or can I have one activity and swap in fragments? Oct 06 04:55:56 What is best practice? Oct 06 04:56:05 JimmyCarter: the most expensive MBP gets to "mid end" in specs Oct 06 04:56:12 jdawes probably a hybrid Oct 06 04:56:14 I'm also using the navigation drawer for switching between Oct 06 04:56:17 (group common ones) Oct 06 04:56:35 That's what I was thinking Oct 06 04:56:45 JimmyCarter: Since I don't like intel's keyboard layout, majority of the laptops, including Macs, have shitty keyboards from my PoV ;) Oct 06 04:56:48 So, in this case, I should have 4 activities, Map, About, Company, Product? Oct 06 04:57:07 I just wondering because wouldn't I need to implement the navigation drawer 4 times then? Oct 06 04:58:03 g00s: What's the reasoning behind the hybrid if you don't mind me asking? Do you think that the "MainActivity" would just get too large and unmanageable? Oct 06 04:58:16 jdawes yeah Oct 06 04:58:32 mo activities, mo money. as the saying goes. its all about the bottom line. Oct 06 04:58:32 so like if you have a wizard , put the frags related to the wizard in one activity Oct 06 04:59:15 g00s: Yeah, that makes sense to me, I was just wondering about the navigation drawer I guess, I would assume that it is supposed to persist throughout the app, but using multiple activities I'd have to recreate it 4 time? Oct 06 04:59:42 jdawes i suppose you could make a base activity class that had the drawer Oct 06 04:59:52 g00s: hmm, good point. Oct 06 04:59:54 and all your activities extend that Oct 06 05:00:17 i'm the last person to ask about gui stuff, i'm only getting worse at the android UI apis it seems Oct 06 05:00:39 haha Oct 06 05:00:40 me too Oct 06 05:00:42 fair enough, there's probably some documentation about keeping a consistent drawer through activities. Oct 06 05:00:54 I know lots of low-level stuff but not higher Oct 06 05:00:59 Thanks for confirming my suspicions! Oct 06 05:01:42 the devbytes videos - like animations, just get me more depressed, because i still don't get them Oct 06 05:01:53 and those are, like for dummies Oct 06 05:01:55 GUIs are always doom, noone has avoided it Oct 06 06:28:57 I'm going through the training, and I'm stuck at Adding the Action Bar. When trying to add Support Libraries, it says to right click the 2 .jar files in under lib in the appcompat project and select Build Path > Add to Build Path. On my screen I don't see Build Path in the context menu Oct 06 06:30:27 clouder`grr haven't used eclipse in a while, but context menu on /project/ node of tree should show something like project settings. it would be in there under compiler or somethiung Oct 06 06:40:22 hi, Is there any way to trigger an onpagechange listener for a viewpager manually? Oct 06 06:43:39 you can use like .setPage I thinks Oct 06 06:44:09 or rather Oct 06 06:44:11 I think its called like Oct 06 06:44:12 uhh Oct 06 06:44:16 .setId() navetz Oct 06 06:44:30 Holy crap does link-time optimization work wonders. Oct 06 06:44:44 Brian|CS: thanks I'll give it a shot! Oct 06 06:45:00 Nilium, Science, bitch! Oct 06 06:50:26 holy shit, that security fuck up at adobe - the source code for flash and acrobat were also taken Oct 06 06:52:45 Haaaaaahahahaha Oct 06 06:52:59 is flash installed on android any more ? Oct 06 06:53:15 its been a while :? Oct 06 06:54:22 Nilium, link time optimization? for what? Oct 06 06:54:42 C++. Specifically LTO done by clang/llvm. Oct 06 06:54:56 oh, ok Oct 06 06:55:33 I cannot for the life of me find my hairband.. Oct 06 06:56:29 Nilium maybe pfn used it to hold the grounding cable to the pipe Oct 06 06:56:32 :) Oct 06 07:10:22 No, my sister grabbed it. Oct 06 07:11:20 At any rate, I finally bothered creating a proper github repo for my VM. Oct 06 07:11:25 Now to let it die in peace. Oct 06 07:12:39 best place to let things die is Sourceforge :) Oct 06 07:12:57 on github, you're just going to get merge requests :D Oct 06 07:13:00 Sourceforge died, so it's hard to let things die on something already dead Oct 06 07:13:14 I only receive merge requests for my Ruby gems. Oct 06 07:13:42 Everything else is appropriately ignored, as with the vast majority of open source projects Oct 06 07:14:42 Nilium: Your VM? Oct 06 07:15:00 thanks for the help g00s, I didn't get it fixed yet, but I'm going to sleep on it and see if maybe the solution comes to me in a dream ;) Oct 06 07:23:58 gavilan2: Yes, my VM. Oct 06 07:24:09 Probably a very bad VM. Oct 06 07:24:17 Nilium: Why did you created a VM? Oct 06 07:24:24 Why not? Oct 06 07:24:46 Nilium: Why yes? Oct 06 07:24:58 Because I will hit you with a large stick. Oct 06 07:25:21 Nilium: In any case, the answer to any of the why questions has to come from you, given that you are the only one who knows those answers... Oct 06 07:25:34 I already gave you the answer. Oct 06 07:25:45 You didn't... You have me a question... Oct 06 07:25:54 But if you don't want to answer, is fine :) Oct 06 07:25:58 "Why not?" is a perfectly valid answer. Oct 06 07:26:16 Nilium: Let's disagree of what a "Perfectly valid answer" is... Oct 06 07:26:41 Though if you don't have a strong grasp on English, you might not know that "why not?" basically means "because I wanted to." Oct 06 07:27:39 Hey guys..! I have an app. with a ListView displaying data retrieved from a server via a JSON.. Its working fine.. Oct 06 07:27:39 In other words, "why not?" more or less == "there's no reason not to (do whatever)" Oct 06 07:28:01 Kind of like how if you asked my cat why he walked into my room and just rolled over on his back, he'd probably just say "why not?" Oct 06 07:28:45 Now, I want to implement tabbed navigation to my app.. How do I do it..? I have made a new project with tab navigation.. How do I add my previous code to the same..? Thanks..! Oct 06 07:29:06 I don't understand the question. Oct 06 07:30:24 Nilium: Hey..! Me..? Basically I want to ask how do I add a listview to an app using Fragments to make use of Tabs and Swipe feature.. Oct 06 07:31:07 By.. adding a listview to a viewgroup? Oct 06 07:31:10 Nilium: I do know that part of the english language... And I don't consider "because I wanted to." to be a perfectly valid answer... Oct 06 07:31:29 Also, I couldn't find good tutorials on the net for the same.. Some easily understandable ones that I found were using TabHost or something which seems to be deprecated.. Oct 06 07:31:55 gavilan2: So you've never done anything whatsoever just because you wanted to? Oct 06 07:31:58 Nilium: Well.. Straightaway.. I haven't used Fragments before..? Oct 06 07:32:13 Then you should go read about fragments. Oct 06 07:32:38 Nilium: Everything I do is because I want to... But I want to do it because of a reason.... Oct 06 07:32:58 The reason is I wanted to build a VM. In other words, because I wanted to. Oct 06 07:33:08 Nilium: Ya.. sure.. I have been but I needed to get this stuff done atm.. Would be great if I could get help..:-) Oct 06 07:33:13 In other other words, why not? Oct 06 07:33:29 purezen: Is it for a job? Oct 06 07:33:52 Nilium: Hackathon.. #Hack4good.io..:-) Oct 06 07:34:34 Nilium: Anyways.. like we can start a new activity via the File > New option in Eclipse.. Something like that for Fragments.. Oct 06 07:35:05 http://d.android.com/guide/components/fragments.html ← At any rate, go read that. Oct 06 07:35:35 There's no way I could tell you anything specific when you're missing the basics. Oct 06 07:37:04 Nilium: Sure..:-) Oct 06 07:38:58 oh hello Oct 06 07:40:14 So I was wondering how one can make an app return like a widget to an app that called the activity through intents. Much like ColorDict does when you call it. ColorDict adds an overlay widget with info... Oct 06 07:40:36 can't seem to find anything related, I assume it has to be done with startActivityForResult() or such Oct 06 07:42:42 Nilium now that you made your own VM, its time to make your own build system ! Oct 06 07:42:59 and OS too, of course Oct 06 07:43:05 for the lulz ! Oct 06 07:43:11 I've made my own build system before. Oct 06 07:43:23 Was interesting but it's a huge waste of time. Oct 06 07:43:26 not the Applescript one :P Oct 06 07:43:48 I wrote one for some of my C/C++ projects. Retired it because it was stupid. Oct 06 07:44:18 anyone on my question? Oct 06 07:44:53 Return like a widget to an app made no sense. Oct 06 07:45:17 ok I'll try to explain Oct 06 07:45:18 hm, does chrome still use the ninja build system Oct 06 07:45:21 Also not sure what ColorDict is Oct 06 07:46:11 I've switched most of my C and C++ projects to premake4. Used tup before that, but there are some oddities with how tup functions on OS X, particularly when building dylibs. Oct 06 07:46:16 Not sure why dylibs specifically. Oct 06 07:46:47 one project i've been thinking about hacking on is using cmake Oct 06 07:46:50 colordict is a dictionary app. You launch your ebook reader, select a word, and send that word to a dictionary. ColorDicts receives that word and places and overlay widget where that word is in that ebook reader app Oct 06 07:46:59 I would give a screenshot if I had any Oct 06 07:47:33 http://old.fbreader.org/FBReaderJ/screenshots-1.0/colordict.png Oct 06 07:47:36 like that Oct 06 07:48:19 helloooooooooo Oct 06 07:48:44 hey, in eclipse, why is it that when i change the theme with the ui designer, nothing actually happens to the xml? Oct 06 07:49:05 it happens in the manifest Oct 06 07:49:16 Well, is it possible to create a dialog from one activity over the top of another activity (that's from a different app package)? Oct 06 07:49:25 >_< Oct 06 07:49:31 thanks Kulverstukas Oct 06 07:49:37 I don't know, Nilium, that's why I am asking :P Oct 06 07:49:43 Well, go try. Oct 06 07:49:52 will do Oct 06 07:49:56 no prob erdos Oct 06 07:49:59 http://stackoverflow.com/questions/18843868/android-overlay-on-window-over-activities-of-a-task ← See that. Oct 06 07:50:31 wow I just logged in the right time, I've been looking for something like that Oct 06 07:51:02 Usually I do some basic research on this search engine called Google before I ask a question. I know they're little-known and haven't really done anything other than a small search engine, but they're pretty good. Oct 06 07:51:40 you don't have to rub it in. I am always doing my homework brah. In this case I didn't know what to search for. Oct 06 07:52:06 .. You said brah, you have it coming. Oct 06 07:52:21 You so very have it coming. Oct 06 07:53:03 have what coming? Oct 06 07:53:11 Snakes. Lots of them. Oct 06 07:53:22 And spiders emerging from the pores in your armpits. Oct 06 07:53:32 You shall henceforth be known as Bartleby von Spiderpits. Oct 06 07:54:16 damn I should better watch out. That's some wicked spell you got Oct 06 07:54:32 Disgrace not your name, Bartleby. Oct 06 07:54:43 Hmmm so reading it, I should create an activity and use Android Theme Theme.Dialog to embed the activity on top of the activity. Oct 06 07:55:55 Welp, time to test it out. Oct 06 07:55:55 that stackoverflow question seems to be specific to your own activities and app in general Oct 06 07:56:05 tell me how it will go, JWong Oct 06 08:05:52 whoah it did work, JWong Oct 06 08:06:00 thanks Nilium it is just what I was looking for Oct 06 08:06:06 +1 Oct 06 08:06:07 :P Oct 06 08:06:24 and please cast your spiders from arpits back, they are itchy Oct 06 08:07:00 That's irreversible. You should befriend them. Oct 06 08:07:55 :( Oct 06 08:13:18 I'm getting some errors, but it seems okay. Oct 06 08:13:43 Need to figure out how to get the bakcground transparent Oct 06 08:24:42 I don't think I can use this solution. Oct 06 08:25:28 to make the background transparent, you do "window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);" Oct 06 08:25:54 ah, I was only finding answers that uses another theme, but you can't use two themes. Oct 06 08:25:57 let me try that Oct 06 08:27:17 oh wait, I already have that Oct 06 08:29:42 I think I'll be looking into creating a pop up window instead for my settings. Oct 06 08:43:54 Hi everyone. I'm making an app that includes picture/video taking functionalities, and I'm trying to allow the user to manually focus the camera while taking videos. Does anyone know how to do this? Oct 06 08:45:15 i have a checklist to populate in a list view , but when i am selecting one many are already selected in a gap of 10 Oct 06 08:45:17 please help Oct 06 08:45:27 i know it is because of the bind view i am using Oct 06 08:46:12 here is my code Oct 06 08:46:43 how can i make each checkbox a unique checkbox for the listitem and toast the app name when i select the chcekbox ? Oct 06 08:47:29 hello anybody here to help ? Oct 06 08:48:23 hello Oct 06 08:49:24 I have downloaded the AOSP. I am in the device folder. I have 3 possible options: Generic, sample, and common. which would you say has the kernel source in it for a huawei device? Oct 06 08:58:31 Tried asking Huawei? Oct 06 08:59:24 yes I have, they are of no help Oct 06 08:59:38 I filed a gpl violation against them Oct 06 08:59:53 I imagine they're probably less willing to talk to you for that reason Oct 06 09:00:18 even before I filed the gpl violation, they would not give any information Oct 06 09:00:57 under generic I have armv7-a, and the phone is an armv7-a Oct 06 09:01:14 but in that folder, there is no kernel file. Oct 06 09:32:35 please someone help , in my list view if i am selecting one checkbox the next 10th checkbox is automatically selected Oct 06 09:40:39 That sounds like it should be easy to debug. Oct 06 09:43:50 @chinu just use the check list listener Oct 06 09:44:07 and check the index, whether it's under the next 10th check box Oct 06 11:05:53 Hello world! Oct 06 11:06:04 I have a dilemma I thought some of you might have a helpful answer to. Oct 06 11:06:55 what is it ? Oct 06 11:07:32 I'm about to create a "detail activity", which basically displays an article and some comments. Oct 06 11:08:18 Pretty much what you get when you hit a post on G+ Oct 06 11:08:36 What I can't decide is if I should have a separate fragment for the comments Oct 06 11:08:53 or just load them within the same one as the article (and its own information) Oct 06 11:09:52 if you want to maintain, when devices rotates, the comments under the article, no, just use one fragment Oct 06 11:10:41 Yeah, it feels like the lifecycle would get a bit more (unneccessarily?) complicated using two Oct 06 11:11:46 Thanks for the input gdrc :) Oct 06 11:12:10 np man Oct 06 11:12:30 Also, I reckon that G+ is doing it so that the whole view is just a ListView with different view types? Oct 06 11:13:03 "whole view" as in "what we see when we look at it", not in widget Oct 06 13:05:27 Hello. I am able to retrieve the latitude and longitude in the onLocationChanged method of my LocationListener interface implementation, how am I supposed to pass it on to my Activity's UI? Oct 06 13:06:18 oh, I could pass the context in the constructor Oct 06 13:07:14 hi all Oct 06 13:20:04 hi Oct 06 13:20:10 anyone there skilled on modding apps ? Oct 06 13:20:33 mixed 2 different and buggy roms but know it just left me to mod sms app. Oct 06 13:20:58 i tried but i can't remove a specific menuitem from a menu.. even editing smaling files which references it Oct 06 13:20:59 #android-root Oct 06 13:21:42 SimonVT ty Oct 06 13:43:56 anyone skilled modding android apps ? please pm Oct 06 13:44:36 if i have a sensor providing the tilt of the device to a GameHandler, then it should be a service right? if that is all it does? Oct 06 13:52:15 S_J Oct 06 13:52:23 do u know how to mod an app ? Oct 06 13:56:30 undeadd: Please find another channel for those questions. This is for app devs Oct 06 13:56:43 ok Oct 06 14:00:39 Hello. I am unable to set the parent class' TextView in the onPostExecute() of an AsyncTask. I get a NullPointerException. Oct 06 14:01:07 MainActivity.this.setName(result_value); Oct 06 14:01:46 setName simply calls setText on a textview. Oct 06 14:02:15 The same method works when called within onCreate() Oct 06 14:25:34 how often can i realistically get sensor input? like to sense if the player tilts the phone, how often can i get sensordata about this and how often would you need to to get a good experience? i want to roll a ball on the screen if the player tilts the phoner Oct 06 14:40:30 A sensor that will continosly notify the main thread, what should it be? service, activity, intentervice,thread? Oct 06 14:45:02 S_J: define "constantly" ? Oct 06 14:45:21 while(1){poke();}; ? Oct 06 15:12:27 lite_: onSensorChanged(){notify main}; but maybe i need to filter the sensor data. Oct 06 15:45:15 can a thread not send an intent? Oct 06 15:48:01 Intent(Context packageContext, Class cls) Oct 06 15:48:18 a Thread is not a Context? Oct 06 15:49:00 so use thread+ msg queus or service and intents or another activity and intent? Oct 06 15:49:16 for passing sensor data to the main GameHandler? Oct 06 15:55:00 Would this be the right place to ask a question about SELinux? Oct 06 15:55:29 no Oct 06 15:55:56 Would #android-root be a better place? Oct 06 16:09:36 hi! Oct 06 16:09:51 Someone participating in #hack4good here =? Oct 06 16:12:50 helicopter88: btw your nick just reminded me of this https://www.youtube.com/watch?v=kaoddBZqseY Oct 06 16:13:47 haha Oct 06 16:43:11 Hopefully someone will be interested :-), but I spent some time this weekend creating a community dedicated to the more monetizing aspects of Android development and publishing. I've implemented it it with Jeff Atwood's (Stack exchange fame)'s new forum stack Discourse. Please let me know what you think of the idea.. www.monetizeandroid.net Oct 06 16:46:39 is there a limit o he number of SMS waiting to be sen? Oct 06 16:46:47 via the SmsManager Oct 06 16:47:25 yes. sanity limits in least. you trying to build a sms spam program? Oct 06 16:47:43 no, but my appp allows the user to invie friends Oct 06 16:47:50 *invite Oct 06 16:48:11 I put a limit on 27 per minute to pos ICS and 100 an hour to pre ICS Oct 06 16:48:24 but still, 47% never went out Oct 06 16:49:03 is there a limit to the amount of messages pending send? Oct 06 16:50:33 unno maybe someone else knows Oct 06 16:51:31 anyone had some XP in using SmsManager? Oct 06 16:55:24 I wonder - how would you guys handle failing to create bitmap object? Oct 06 16:55:55 mine now just uses stock image if it happens, but I want it to try again, but I dont want it to keep trying to reload Oct 06 16:56:55 I have a default image Oct 06 16:57:18 XXCoder, why would creating a bitmap object fail? Oct 06 16:57:45 lack of memory Oct 06 16:58:03 or maybe too busy if lwp loads while os is still loading Oct 06 17:03:47 XXCoder, you can determine the size of a scaled Bitmap before decoding or creating it Oct 06 17:03:56 I already do that Oct 06 17:04:07 hmmm Oct 06 17:05:03 I decode just size, get best fit size, load it at that scale, create exact size bitmap and paint first into it (clipping some borders) Oct 06 17:05:04 then recycle first one Oct 06 17:05:04 so I has exact fit bitmap Oct 06 17:05:06 using minium memory Oct 06 17:06:04 thats for 2 texture bitmaps I use Oct 06 17:09:01 you can also load into the same bitmap Oct 06 17:10:12 wouldnt it just mean old bitmap object is left off and bitmap object now points to new object? Oct 06 17:10:34 say bitmap a = (new bitmap); a = (yet another new bitmap) Oct 06 17:11:50 XXCoder, if you pass a bitmap to bitmap decoder in "inBitmap" field, Android will reuse a bitmap instead of allocating a new one Oct 06 17:12:06 since it can take time for Bitmaps to be GCed that can help Oct 06 17:12:09 nice. what happens if its different size Oct 06 17:16:32 exception. Oct 06 17:17:08 hmm not so useful. I suppose calling recycle then system.gc(something) will do Oct 06 17:18:40 whats the proper way to stop a thread since stop is deprecated? Oct 06 17:19:05 System.reboot(0); ;) JK Oct 06 17:22:24 S_J, exiting the code in thread Oct 06 17:22:54 stopping a thread isn't supported on most platforms Oct 06 17:27:02 Mavrik: how do you mean exiting the code? I have a thread that sends sensor data when it changes. i want to be able to pause and stop that thread. so should i send a msg to it or maybe implement it as a service and send an intent? Oct 06 17:27:26 S_J, depends on where and how your thread is started Oct 06 17:27:35 a simple Oct 06 17:27:44 while (running) { do_thread_stuff } Oct 06 17:27:54 is usually enough for most use cases. Just set running to false and that's it. Oct 06 17:32:53 i dont get how do to the main UI though. an Activity has onPause onStart etc. but I want to move a ball on the screen according to how the user tilts the screen. so where do i keep mupdating the ball position since there is no mainloop? Oct 06 17:33:20 hello, can anyone clue me in on how to trace the values in arrays.xml back to where they are called? or find out what the x means? Oct 06 17:33:30 S_J, you create a mainloop that updates data Oct 06 17:33:35 on another thread of course Oct 06 17:33:50 * orthonovum mumbles about non commented xml files Oct 06 17:33:55 hello. anyone here has XP with actionbar sherlock? Oct 06 17:34:00 orthonovum, find usages of it's R class constant Oct 06 17:34:19 orthonovum, open R.java, find R.array.whatever, "find usages" Oct 06 17:34:24 Hello. I am passing my activity to my location listener which is further passing the activity instance to an asynctask to update the view on the activity. Is that okay? Oct 06 17:34:33 Mavrik, cool. using android studio ill try that Oct 06 17:34:43 I'm trying to make the menu show in top bar, but it always show in bottom bar. even if I remove splitActionBarWhenNarrow Oct 06 17:34:46 any ideas? Oct 06 17:35:08 sulaiman, uhh… that's usually a great shortcut to memory leaks Oct 06 17:35:21 sulaiman, just make sure you don't ever leak reference to the activity Oct 06 17:35:30 sulaiman, or use an event bus as most larger apps do Oct 06 17:36:59 I have downloaded the AOSP. I am in the device folder. I have 3 possible options: Generic, sample, and common. which would you say has the kernel source in it for a huawei device? Oct 06 17:37:23 i have tried a lot of options but nothing.. Oct 06 17:37:25 however, looking into the files, there is no kernel file. Oct 06 17:37:29 anyone have faced it before? Oct 06 17:38:02 Mavrik: and it sends an Intent to main that it should update the View? Oct 06 17:38:07 does this mean I have to build a kernel for this device? Oct 06 17:38:19 S_J, what intent? Oct 06 17:38:27 intents are cross-app messaging system Oct 06 17:38:41 S_J, dispatch updates via handler or via runOnUiThread Oct 06 17:38:44 I also tried setting uiOptions to none, but the menu still is stuck to the bottom. Oct 06 17:40:56 What do I need to make a simple instant messenger? C2DM? Oct 06 17:41:02 Mavrik: intents are for messaging betweens activities and sevrices for example, no? Oct 06 17:41:03 Mavrik, how can I make sure a reference doesn't leak after an AsyncTask completes? Oct 06 17:41:22 S_J, depends. Oct 06 17:41:23 Mavrik, I'll also look into using an event bus Oct 06 17:41:27 S_J, intents are rather heavy Oct 06 17:41:43 using an in-process event bus or direct method calls is usually way faster Oct 06 17:41:53 since there is rarely the case you go over several processes Oct 06 17:42:42 sulaiman, well that involves understanding how GC works and where and how do you keep references to your objects Oct 06 17:44:34 can anyone help me with that problem? Oct 06 17:44:37 anyone? Oct 06 17:46:21 CocoStorm yes.. Oct 06 17:46:36 yes what Oct 06 17:47:11 you understand about action bar sherlock? Oct 06 17:47:54 CocoStorm, GCM is your best bet yeah Oct 06 17:48:03 CocoStorm, especially since they support two-way messaging now Oct 06 17:48:30 Mavrik: Ah, okay awesome thanks Oct 06 17:48:41 CocoStorm, of course, you'll need a server :) Oct 06 17:48:50 haha yes :) Oct 06 17:49:16 Mavrik: ok thanks Oct 06 17:49:45 this problem is getting me nuts!! Oct 06 17:56:08 to add a while (running) to a thread would you override the thread start method and after super youd call your run(){while(running){...}} method ? Oct 06 17:56:11 Chainfire: ping Oct 06 17:56:25 pong Oct 06 17:56:54 I have some questions about USB communication on Android. Oct 06 17:57:11 If the phone does not have USB Host active from the ROM is there any way to communicate with an usb device? Oct 06 17:57:13 S_J, what. Oct 06 17:57:20 don't override internal methods -_- Oct 06 17:57:29 I have a custom rom with an PIC microcontroller with USB on the other end Oct 06 17:57:44 vvu well if the client device itself is host? you could use the accessory protocol or something like that Oct 06 17:58:13 So if there is no HOST on the Android device it can still work in accessory mode, right ? Oct 06 17:58:18 if that device is client only, you're really going to need host support on your Android Oct 06 17:58:37 yes, cause accessory mode depends on HOST availability on the other device Oct 06 17:58:54 but what does mainly HOST capability mean? just to give power to the device ? Oct 06 17:59:00 or it sets up the bus and everything ? Oct 06 17:59:25 the latter Oct 06 17:59:47 so setting up the bus and things like that... Oct 06 17:59:49 that sort of stuff is all documented though... Google USB host, USB on-the-go, etc Oct 06 18:00:15 I'm not an expert on the lower level implementation of USB :) Oct 06 18:00:22 same here :D Oct 06 18:00:34 yeah its not needed to be for devving with Android and USB Oct 06 18:02:04 also thx for having http://usbhost.chainfire.eu/ :) Oct 06 18:02:54 wow how the hell did HTC get framework-res.apk to build with 168 errors Oct 06 18:07:16 Mavrik: from where would you invoke the while(running) method?` Oct 06 18:07:35 would you override the thread start() method and call it from there? Oct 06 18:08:20 S_J, why? Oct 06 18:08:31 overriding system start methods will just cause you issues Oct 06 18:08:37 stop overthinking it Oct 06 18:08:46 how would that ever work? Oct 06 18:09:21 so where would you start it? Oct 06 18:10:22 I don't understand the question. Oct 06 18:10:29 do you know how threads in java work? Oct 06 18:11:35 A: Magic. Oct 06 18:12:04 Mavrik: i get it now Oct 06 18:12:11 sorry for not doing research enough Oct 06 18:12:22 ok :) Oct 06 18:27:34 there is no such thing as a tuple in Java? Oct 06 18:34:06 one more try Oct 06 18:34:25 anyone know if there's a lmit to the amount of pending SMS in the message queue? Oct 06 18:34:34 when sending via SmsManager? Oct 06 18:34:52 What are the best android resources for a beginner in your opinion? links? links to books? links to blogs? (input from multiple people is appreciated ) Oct 06 18:35:01 Anyone can help me with Actionbar Compat? Oct 06 18:35:02 because I sent X messages but only 0.51X made it through Oct 06 18:35:23 eydaimon, d.android.com/raining Oct 06 18:35:28 eydaimon, d.android.com/training Oct 06 18:35:34 or vogella Oct 06 18:35:45 SidGBF, what is the issue? Oct 06 18:36:29 I added the projectlib to the project, but it still doesn't find the compat classes Oct 06 18:36:58 Actually after add the library, and close the dialog, and open again, it is like if not finding the stuf Oct 06 18:36:58 did you add appcompact? Oct 06 18:37:50 Hey guys..! I have a weird problem here.. I made an app. using eclipse.. It works fine on my device via adb.. However, when I try to install a signed apk (even unsigned one) generated by eclipse.. it fails (to install even).. Oct 06 18:38:06 thepoosh: Yeah, Im just uploading some screenshots for reference... Oct 06 18:38:23 purezen, that's not nearly enough information to solve an issue, maybe come back when you have the adb error message? Oct 06 18:38:45 http://imageshack.us/photo/my-images/812/jjbv.png/ http://imageshack.us/photo/my-images/69/5mcp.png/ http://imageshack.us/photo/my-images/43/e9jj.png/ Oct 06 18:38:51 I'm wondering it's weird that for my notifications they don't seem to show the text in the top status bar - like that roll-in preview Oct 06 18:39:15 The look great when you pull down the system tray - i.e. they have a title and string of text Oct 06 18:39:15 thepoosh: it's like if the library had nothing on it Oct 06 18:39:36 thepoosh: thank you Oct 06 18:39:43 something is different whether I leave a preferences fragment in a settings activity with the hardware back button or if I use the action bar up button Oct 06 18:40:06 it's like maybe the previous activity gets reloaded one way but not the other. maybe Oct 06 18:40:11 poutine, Hey.. it installs fine via adb..! only not via apk.. Oct 06 18:40:33 purezen, adb installs an apk Oct 06 18:40:46 give whatever error message it's most assuredly producing Oct 06 18:41:22 * poutine is betting it's about the cert Oct 06 18:41:29 thepoosh: both are in the same workspace and copied to the same parent folder Oct 06 18:42:55 <|0xD34D|> elsigh: are you setting the tickerText for the notification? Oct 06 18:43:28 So the gravity sensor, can it sense how much the phone is tilted? Oct 06 18:43:31 nope - maybe I need to? Oct 06 18:43:36 if you do some calculations? Oct 06 18:43:45 <|0xD34D|> elsigh: if you want that text to appear in the status bar you do ;P Oct 06 18:44:05 <|0xD34D|> the ticker text displayed in the top left Oct 06 18:44:20 heh, never noticed that - ok Oct 06 18:44:30 setTicker - cool Oct 06 18:45:50 purezen, since you're taking an inordinate amount of time getting an error message, I'll just give you my guess. All installed APKs on your device are signed with a key, if you're just hitting 'Run' in eclipse, it's likely being signed with the debug key. Once an app is installed with a key, it cannot be updated to anything that's signed with a different key. So uninstall your app, and I think it'll install fine no m Oct 06 18:45:50 atter which method you use Oct 06 18:45:51 poutine, Yeah.. I get that.. what I mean is when I ask Eclipse to 'Export a signed apk'.. and when I try to install that apk.. It fails to install..:-) Oct 06 18:45:51 thanks |0xD34D| Oct 06 18:46:07 <|0xD34D|> np Oct 06 18:46:11 purezen, In the programming world if you can't find error messages, you're going to have a bad time, it's an essential skill to have and you should figure out why you're having trouble finding it Oct 06 18:48:45 poutine, Thanks.. shall see to it..:-) Oct 06 18:52:39 thepoosh: Any guess? Oct 06 18:54:26 what is android:dependency in a preference? Oct 06 18:55:17 like what does it mean to depend on another key Oct 06 18:56:21 Apparently GCM is not very reliable for IM as it can't guarantee it will delivar the message or something? is this true? what's an alternative? Oct 06 18:56:29 source http://stackoverflow.com/questions/11368280/instant-messaging-on-android-with-google-cloud-messaging Oct 06 18:56:59 oh I see it gets grayed out Oct 06 18:57:31 CocoStorm it is now new and improved, I think you can rely on it now Oct 06 18:57:34 but look it up :) Oct 06 18:57:43 Chainfire: Ah I see, thanks :) Oct 06 18:59:48 <|0xD34D|> zmuser3: it's handy for preferences that depend on some other preference being enabled. Usually the dependency is a CheckBoxPreference or SwitchPreference Oct 06 18:59:57 yeah you'll have to test it. or build your own system. I think I've seen mentions of custom-built replacement systems that were OSS, but I can't remember where/what/how/etc Oct 06 19:01:40 ok Oct 06 19:02:42 I wonder if chainfire video stuff (like set to red or green only) works in cm10.1 Oct 06 19:05:16 that Gingerbread only Oct 06 19:05:25 you will break installing it on HC/ICS/JB Oct 06 19:05:32 *brick Oct 06 19:05:33 thats what I guessed Oct 06 19:05:37 too bad Oct 06 19:05:47 I miss red only stuff for really dark places Oct 06 19:06:01 Anyone can help me with an issue on android libraries? Seem that they aren't working as should. Oct 06 19:06:28 would you ever remake it for cm? Oct 06 19:11:11 I'll never make anything for CM Oct 06 19:11:55 oh whats wrong with it Oct 06 19:12:04 * JesusFreke rta "cyanogenmod" Oct 06 19:12:45 i cant pass by reference in java, so i have to create a class to be able to retrieve 2 coordinates or return an array? Oct 06 19:13:05 JesusFreke rta ? Oct 06 19:13:10 read that as Oct 06 19:13:45 after reading the backlog, I realized you were talking about cloud messaging Oct 06 19:13:46 so what is wrong with cyanogenmod? Oct 06 19:14:08 JesusFreke actually we were talking about cloud messaging earlier, and cyanogenmod now Oct 06 19:14:15 or maybe not Oct 06 19:14:20 oh, ok. hah Oct 06 19:14:28 there's nothing wrong with CM, XXCoder, but I don't use it, nor contribute to it Oct 06 19:14:45 ahh ok :) Oct 06 19:15:10 I miss ability to just use red to preserve night vision among other uses Oct 06 19:15:49 CocoStorm, try pubnub Oct 06 19:15:57 they're very good for IM Oct 06 19:16:04 thepoosh what's that Oct 06 19:16:04 :S Oct 06 19:16:17 well it is on my to-do list to bring it back to custom ROMs. I was originally waiting for Saurik to release his subtrate for Android, but he sat on it too long, so now Xposed is the popular runtime mod thing, while subtrate has no marketshare, and I'm not a fan of Xposed Oct 06 19:16:38 CocoStorm, i saw the comment abput GCM Oct 06 19:16:42 but my to-do list is miles long, so who knows whenever Oct 06 19:16:42 *about Oct 06 19:16:55 okay hope whatever you make would work in cm too Oct 06 19:17:00 http://www.pubnub.com/ Oct 06 19:17:06 thepoosh: So, any idea? Ive done some tests and seem that "android-support-v7-appcompat" isn't recognized as a library Oct 06 19:17:31 well, look in the propeties and see if it's defined as a library project Oct 06 19:19:34 thepoosh: yes it is... but when I add it, happens this: http://imageshack.us/photo/my-images/69/5mcp.png/ Oct 06 19:20:23 SidGBF, what happens if you remove it and re add it? Oct 06 19:21:03 thepoosh: ah thanks I'll check it out! Oct 06 19:23:06 thepoosh: I tried it few times, and seem that nothing changes. But Ill try again Oct 06 19:27:35 hey guys, in a fragmentstatepageradapter is there any way to cycle through all the fragments you've created? I want to update each fragment after my view switches from portrait to landscape Oct 06 19:31:43 everything I find says use findPreference but it says deprecated for use with modern fragment based preferenceactivity. so how do I update my list preference summary? Oct 06 19:38:05 honestly, i'm lost. users of my application keep sending me idiotic emails Oct 06 19:38:19 Guys, I need some help with Androud Support Libraries. I don't know why, the Project Library isn't working... Oct 06 19:39:34 SidGBF: We're not real customer support. So please just state your question. If someone knows, they'll hopefully reply. Oct 06 19:41:58 kakazza: I know, and this is the best I can describe :-/ Even after adding all support libraries as projects, Followed all steps adding jars to build paths and removing what was needed. But when I add the lib to another project, a red cross appears after that. Oct 06 19:42:33 And Im not spamming here and waiting. Im googling all over :-/ Oct 06 19:52:18 how do I tell the Main acitivty to invalidate the view? Oct 06 19:54:54 <|0xD34D|> view.invalidate(); Oct 06 19:58:14 yes but i cant do it from another thread Oct 06 20:03:28 <|0xD34D|> view.post(new Runnable() { public void run() { view.invalidate() } }); Oct 06 20:03:36 <|0xD34D|> or something along those lines Oct 06 20:04:17 <|0xD34D|> missed the semicolon after invalidate() Oct 06 20:04:27 <|0xD34D|> but you should get the gist of that Oct 06 20:04:38 how do i runOnUiThread from another thread? Oct 06 20:04:45 <|0xD34D|> I just showed you Oct 06 20:04:55 yes Oct 06 20:05:08 i figured it out, just hapaend to click enter there Oct 06 20:12:16 Hi! Any one have time to discuss a problem I'm seeing trying to port some ECC code to Android. http://stackoverflow.com/questions/19212727/ecc-memory-overflow-on-android Oct 06 20:12:26 Hopefully someone will be interested :-), but I spent some time this weekend creating a community dedicated to the more monetizing aspects of Android development and publishing. I've implemented it it with Jeff Atwood's (Stack exchange fame)'s new forum stack Discourse. Please let me know what you think of the idea.. www.monetizeandroid.net Oct 06 20:13:36 been trying for some time now but cant get it to work properly Oct 06 20:22:43 someone tried to use Qt 5.1 for Android ? Oct 06 20:34:47 Does anyone know how to calculate the tilt of the device? Oct 06 20:49:10 Hi Guys, Anyone experience any issues upgrading studio to 0.2.11? Oct 06 20:54:12 miley i did, almost gave up on AS Oct 06 20:54:46 mostly just trouble importing projects, but got around that and it seems ok Oct 06 20:56:44 * hackkitten has a working NDK app (o/ Oct 06 20:56:48 * hackkitten parties with g00s :3 Oct 06 20:57:10 hey hackkitten :) Oct 06 20:57:25 hi there :) Oct 06 20:57:50 hackkitten i'm sure you're the lifr of the party ! Oct 06 20:57:54 *life Oct 06 20:58:10 totally :D Oct 06 20:58:19 ok I confirmed it, if you escape out of the preferences it doesn't do anything to the parent activity but if you hit the up button in the action bar it like reloads the activity. how can I have the escape do the same thing? Oct 06 20:58:23 thanks, sounds like my fiasco upgrading to 0.2.6, this disclaimer about it being a bleeding edge release doesn't make me feel any easier. Oct 06 21:05:49 shouldnt it be an instance of a context that you runOnUiThread on instead of the class? Oct 06 21:07:16 wow there are huge blogs over this back button vs action bar up issue, at least it isn't my code that is the problem Oct 06 21:52:41 guys, when I add my v7 compat library, it doesn't work. Simply that. What can it be? Oct 06 21:56:42 SidGBF: how can you add it? Oct 06 22:04:51 nevermind Oct 06 22:04:57 I just closed eclipse Oct 06 22:05:00 opened again Oct 06 22:05:03 and seem that worked Oct 06 22:05:43 good Oct 06 22:12:56 so from getorientation do i get the actual angle of the device in 3 different directions? Oct 06 22:28:02 Wasn't getOrientation deprecated? Oct 06 22:28:40 Oh wait, different getOrientation. Oct 06 22:28:45 I feel stupid. Oct 07 01:03:13 can somebody explain to me why my listview isn't populated with mediastore's artist names? http://pastebin.com/JmrD2mxc Oct 07 01:28:17 is there a way to debug assembler code in android? i mean - i need to develop a native lib and asm will be the language of choice here not C... is it possible to debug it in the emu or on the physical? Oct 07 01:30:52 gdb should still work for asm Oct 07 01:31:16 why is asm the language of choice? Oct 07 01:31:22 something optimized for a particular instruction set? Oct 07 01:32:32 pfn the library will be a native forth virtual machine Oct 07 01:32:52 which i actually already have mostly written but now need to debug piece by piece Oct 07 01:33:04 that sounds exciting.... Oct 07 01:33:13 was doing that debug on a raspberry pi but broke the sdcard port on it :/ Oct 07 01:33:32 This question isn't quite about writting an application but more a web app. Is there a guide to getting sound to play back on load in google chrome for android? I managed to get sound to play back on load on firefox, but not chrome. Oct 07 01:33:47 how would i use gdb to debug android native code? Oct 07 01:35:23 I have tried using the