**** BEGIN LOGGING AT Sat May 19 02:59:59 2012 May 19 03:03:47 JakeWharton, thanks for your advice, i think i'm starting to understand the right direction i need to go. May 19 03:04:04 every day i gain more and more fundmentals... May 19 03:07:48 question about cache. per the dev docs: "When the device is low on internal storage space, Android may delete these cache files to recover space" <-- could this include while the app is running? May 19 03:24:00 what are the valid characters in the android:id attribute? May 19 03:24:07 for layout elements May 19 03:24:11 should i be able to do "adb remount" without root permissions? May 19 03:30:29 b1n0ry: I believe A-Za-z0-9_ are valid May 19 03:30:49 ty May 19 03:31:02 i assume that it's best practice to use unique ids across layouts May 19 03:31:16 e.g. not have textView1 in 10 different layouts in the same app May 19 03:31:16 hi May 19 03:33:19 studentrob probably not, no May 19 03:34:21 t0mless: do u know how i am supposed to install google maps "ownhere" for non root, then? the instructions say to use "adb remount" May 19 03:35:27 wtf is google maps "ownhere May 19 03:35:30 "? May 19 03:37:49 probably hacked localstorage gmaps May 19 03:38:37 b1n0ry: IDs do not have to be unique May 19 03:38:42 you can reuse them May 19 03:39:06 and you should reuse them in some cases May 19 03:39:06 don't have to be, but if you're going to manipulate them dynamically, is it a good idea? not hard to make them unique. May 19 03:39:26 like a landscape/portrait version of the same screen May 19 03:39:32 ids should be reused May 19 03:39:40 yeah, or an "ad" vs "ad-free" screen May 19 03:40:29 ok, i think i see the picture May 19 03:42:26 t0mless: its a version of google maps that enables turn by turn navigation in countries outside the US May 19 03:44:40 studentrob: #android-root May 19 03:44:51 p_l: noboody's there May 19 03:45:07 maybe #cyanogenmod (or was it #cyanogen ?). And xda-developer forums May 19 03:45:10 *developer May 19 03:45:14 *developers May 19 03:45:22 p_l: have searched through those May 19 03:45:28 I'm here May 19 03:45:49 john_doe_jr: u know how to install another version of google maps w/out root? May 19 03:46:02 studentrob: nope May 19 03:46:03 studentrob: you start by rooting May 19 03:46:05 sorry May 19 03:46:46 p_l: I can't root anymore, google took it away with the 6.29 update to my phone , and nobody has figured it out how to do it without flashing a sbf, which im not about to try for the first time May 19 03:46:49 cause if you have access to other methods, rooting was probably easier or you wouldn't be asking the question May 19 03:47:00 also, it wasn't google that took it away, but your manufacturer May 19 03:47:04 rooting is def not easier May 19 03:47:16 dude .. not helping .. who cares May 19 03:47:17 * p_l *shrugs* May 19 03:47:24 should have bought a Galaxy May 19 03:48:28 the ways that avoid rooting are quite possibly much more dangerous than flashing sbf, whatever it is May 19 03:49:23 hey, I'm using a sub_layout in tabs but my text is looking all fuzzy etc May 19 03:50:14 wow May 19 03:50:19 SGS3 hit 9 million pre-orders May 19 03:50:53 I hope they kept their attitude towards modding May 19 03:51:07 samsung? May 19 03:51:18 they're more or less indifferent May 19 03:51:28 at least they don't actively protect against it May 19 03:51:57 komugi: actually, they are kind of helpful May 19 03:52:35 as in, "you get to keep the pieces, but we aren't stopping you, and you are warned before doing" May 19 03:52:53 at least that's in SGS2 May 19 03:52:59 haha May 19 03:53:03 that's indifferent in my book May 19 03:53:11 we cba to stop you May 19 03:53:13 basically May 19 03:53:52 komugi: given that it takes one subroutine to lock the phone from modding at least as bad as motorola... :) May 19 03:54:05 the only thing they locked down is JTAG write May 19 04:11:57 is there any documentation explaining why a dynamic listview must have the id @android:id/list? May 19 04:12:16 Because that's what ListActivity uses May 19 04:12:26 http://developer.android.com/reference/android/app/ListActivity.html May 19 04:12:35 if you just use a ListView you can give it whatever ID you want May 19 04:13:40 http://i.imgur.com/OKbpk.png I have this layout, and I want to be able to tell which button was clicked, and which list item the button clicked is within. What's the best way to do it? May 19 04:13:42 ah, i see... so it's kind of like your layout is overriding the default layout. May 19 04:14:10 not really kind of like... it is May 19 04:16:35 you're giving it the layout to use rather than the one ListActivity uses by default May 19 04:16:41 I just don't know how to set the onClickListener of the buttons to be the Fragment May 19 04:17:03 findViewById(…).setOnClickListener(…) May 19 04:18:05 A lot of calls to findViewById could be pretty taxing though, right? May 19 04:18:17 yes, cache them as instance variables May 19 04:19:21 I was looking at List14 in the api demos as an example, but I don't really know what's going on with the "ViewHolder". How does it prevent calls to findviewbyid? May 19 04:20:13 Hey all, I've been trying to make code for a sample video app work, but I can't get a preview which shows before video recording starts to work. Can anyone give me some tips? https://github.com/ewan-sinclair/HelloVideo May 19 04:21:09 Hi, is there a way of having something run continuously throughout an activity? May 19 04:21:20 but only after a specific time May 19 04:21:27 (or condition ) May 19 04:22:22 kg020: Look into AsyncTask May 19 04:23:22 AsyncTask isn't for long running May 19 04:23:49 It has a certain set of problems which means it should be confined to relatively short-running tasks only May 19 04:23:58 It seems to start recording, but produces zero-byte files, and the preview doesn't continue updating once recording starts. May 19 04:23:59 quick HTTP calls, loading things from disk, etc. May 19 04:24:06 kg020 you want a Service that you bind to for that probably May 19 04:25:01 I simply want a specific method to do its job over and over again. May 19 04:25:10 kg020: what is the job? May 19 04:25:17 that's an important part of your question May 19 04:25:24 sending BT messages May 19 04:25:49 then you definitely want to use a Service, as t0mless said. Put your threading code in there. May 19 04:26:07 should be fine to implement Runnable and use a Thread and Handler. May 19 04:26:46 Has anyone here made a video recording app before? May 19 04:27:03 readme, t0mless, thanks. May 19 04:27:09 JavaDog, will look into it May 19 04:28:02 Don't bother, they're right ^ May 19 04:28:15 asynctask is for short tasks, like loading a web page or something May 19 04:31:23 JakeWharton: Not entirely sure how this works... do I use the fragment, or the activity behind it as the click listener? May 19 04:31:28 can anyone give me a point in the right direction for hooking when a wifi connection is established? May 19 04:31:53 see ConnectivityManager May 19 04:32:06 JavaDog: you can use whichever you want, or an anonymous inner class setOnClickListener(new View.OnClickListener() { … }); May 19 04:35:46 I'm trying about the tutorial @ http://developer.android.com/guide/tutorials/views/hello-tabwidget.html and I'm extending my class to TabActivity but eclipse says it's deprecated....what should I be extending in it's place now? May 19 04:40:09 totally lost on AsyncTask... i don't get the whole "param" "progress" "result" thing... i don't need any params, i don't need to know the result. i just need to do some stuff. the doc says use "Void" but it still tells me that my doInBackground needs to accept params and return a value... can i just return garbage? May 19 04:40:21 yes May 19 04:40:28 accept Void, return null May 19 04:40:36 b1n0ry: param -- what you pass, result -- what you return and get in onPostExecute, progress -- what you publish intermittently. May 19 04:41:08 i do need to use onPostExecute May 19 04:41:28 so you make your result whatever data you're going to handle and/or bind to the UI in onPostExecute May 19 04:42:07 usually I define pojo's to represent the different kinds of entities my program uses, but some people are lazy and will just return a JSONObject. May 19 04:42:18 or a String May 19 04:42:21 my onPostExecute() just dismisses the loading... dialog May 19 04:42:25 that's all? May 19 04:42:29 yep May 19 04:42:32 that's all May 19 04:42:33 what is your task doing again? May 19 04:42:45 grabbing some content off of the web and dumping it into a cache file May 19 04:42:50 oh, ok May 19 04:42:54 makes sense May 19 04:42:56 nothing on the ui May 19 04:43:08 other than making the user wait while it does it May 19 04:43:21 ty for the help May 19 04:44:20 your description of those values, readme, was much more concise than the page of content on the dev documentation. much easier for me to understand, thanks. too many words were getting in the way of my comprehension in the official docs. May 19 04:44:32 I'm trying about the tutorial @ http://developer.android.com/guide/tutorials/views/hello-tabwidget.html and I'm extending my class to TabActivity but eclipse says it's deprecated....what should I be extending in it's place now? May 19 04:44:48 usually, i just need a quick sentence or a couple of words and i understand something. give me too much information (like a whole page of tables and stuff of what everything is) and my eyes just glaze over. May 19 04:45:45 thus why i've been learning more from the few sentences on here and the 1 paragraph replies on stackoverflow than i will ever learn from the official docs - which basically i get nothing out of. May 19 04:45:59 I'm not understanding the ID system... howcome setId() only lets me pass an integer, while I can use "@+id/some_string" in XML? May 19 04:51:35 anybody know how to use tabs ? May 19 04:54:54 john_doe_jr, i'm using them May 19 04:55:17 i extend to TabActivity May 19 04:55:30 my eclipse says nothing about it being deprecated May 19 04:56:02 however i'm building for 2.3.3 May 19 04:56:03 b1n0ry: maybe your java isn't 1.6 May 19 04:56:16 tabs have been replaced in favor of fragments May 19 04:56:39 meaning, basically... nobody uses tabs anymore May 19 04:56:53 pick a different pattern... like action bar May 19 04:58:14 though i say that tongue-in-cheek because my app is using tabs ;) May 19 04:58:39 for my particular app, i like them and considering that i'm going to be the primary user of my app, what i like wins. May 19 04:59:08 rm -rf TabActivity May 19 04:59:23 :P May 19 05:00:42 don't worry, JakeWharton, for my hope-to-be-publically-released version, i'm planning to use Sherlock ;) May 19 05:01:03 what SDK are you compiling with? May 19 05:01:10 10 May 19 05:02:03 so, if I use ConnectivityManager to get connection info and I want this information even if my app is inactive.. May 19 05:02:08 does that mean I need to create a service? May 19 05:04:27 Byan: more or less May 19 05:05:48 ok, so, I'm confused here May 19 05:05:53 lets take the gmail app for example. May 19 05:06:20 it's not a service, but when I get a push notifcation, something launches that app so I get an email notifaction May 19 05:07:52 If I set a view's ID in xml, how can I findViewById in my code? It only accepts an int as a parameter and I am very confused. May 19 05:09:04 JavaDog, suppose you have a TextView called @+id/textView1 in your XML May 19 05:09:34 TextView textView = (TextView)findViewById(R.id.textView1); May 19 05:09:49 Ahh, R.id. May 19 05:09:53 you could do that in your code to get a handle on textView and manipulate it, like set the displayed strings, etc. May 19 05:10:38 b1n0ry: What about setting an ID in my code? May 19 05:10:48 they are done at compile time. May 19 05:10:52 you can't "set ids" May 19 05:11:24 http://stackoverflow.com/questions/1714297/android-view-setidint-id-programmatically-how-to-avoid-id-conflicts May 19 05:12:19 hmm, looks like the windows 8 tablet oems are belly aching for the same reason the android ones are; they can't put out a piece of hardware competitive with the iPad in spacs, pricing, and margins May 19 05:12:25 Looks like this is what I want http://stackoverflow.com/a/3217786/1079597 May 19 05:12:30 thanks! May 19 05:13:07 windows 8 costs oems $100; even if it was free they would still be struggling. May 19 05:15:03 #windows May 19 05:15:21 b1n0ry: define IDs in values/ids.xml May 19 05:15:43 turns out that's not quite what I want. May 19 05:15:48 that's what the link i posted suggests May 19 05:16:03 I (think I) need ids on these buttons: http://i.imgur.com/OKbpk.png May 19 05:16:11 if you're creating objects in code 99.999% of the time you should just hold a reference rather than setting an ID May 19 05:16:15 it would be awesome if you could actually specify the numerical id in ids.xml May 19 05:16:18 any ID you set will likely already be defined by the platform May 19 05:16:36 But there could be between 2 and 100 buttons depending on other things May 19 05:16:47 List May 19 05:17:29 JakeWharton: the way it is now, sure May 19 05:17:35 JavaDog: ids need not be globally unique, they just need to be unique to the viewgroup so when you call findViewById on the view, you can get it. May 19 05:17:52 so you define your layout, give each button @+id/button1, @+id/button2 May 19 05:17:54 then when you inflate the layout May 19 05:17:59 they don't even really *need* to be unique to a ViewGroup. You'll just always get the first one back May 19 05:18:02 you call layout.findViewById(R.id.button1); May 19 05:18:16 right not need, but I was hoping to avoid confusing him with that :P May 19 05:18:27 true :) May 19 05:19:31 you can also find views by tags May 19 05:20:20 api 14 even has findViewsWithText May 19 05:20:42 interesting May 19 05:21:01 because integer comparison wasn't slow enough! May 19 05:21:04 findViewsWithText sounds like it will surely produce a lot of nightmare code. May 19 05:21:10 noobs will love that May 19 05:21:24 getDecorView().findViewsWithText("submit").click(); May 19 05:21:27 action item clicking programmatically! May 19 05:21:40 Well here's an actual screen: http://i.imgur.com/tWVDf.png May 19 05:21:58 that's a listview May 19 05:22:04 It's a listfragment May 19 05:22:10 a fragment is not a UI component May 19 05:22:35 anyways, each item's layout in the list view should have the same IDs May 19 05:23:05 there has to be a sample for this May 19 05:23:21 Well, I need to be able to know which button was pressed, and which item that button is within. So if I click "View Description" on the second row, I need to know ADMN 6100 is the course May 19 05:23:25 I can't find a good sample anywhere May 19 05:23:26 JavaDog: its fine for them to have the same ids, because they are scoped inside the view.. you're calling *view*.findViewById() May 19 05:24:05 extend BaseAdapter, hold a List of your types, on a view click look it up the by index May 19 05:24:30 the list items are defined in an external class May 19 05:24:57 JavaDog: that's what his "Whatever" is May 19 05:25:09 I know May 19 05:25:16 so what is the problem it poses May 19 05:26:06 I can't figure out how to bind the buttons to the click listener (the fragment) May 19 05:26:48 in your getView() May 19 05:27:08 Button b = (Button) convertView.findViewById(R.id.button); May 19 05:27:13 b.setOnClickListener(...); May 19 05:27:24 What's the ...? May 19 05:27:37 an onClickListener of some kind May 19 05:27:53 http://www.codemobiles.com/forum/viewtopic.php?t=876 May 19 05:28:05 if you want to reuse the same onClickListener multiple times, you can call b.setTag() and give it a reference to your object May 19 05:28:17 that way you can distinguish between multiple buttons in the same onClickListener May 19 05:28:23 this is the faster way to do it. May 19 05:29:13 So when my list is being created, I can give each button an incremental tag? May 19 05:29:25 or, you can just give it a tag that is your "Whatever" object. May 19 05:29:32 which should already have an id in it May 19 05:29:34 which you can use May 19 05:30:14 the github fork/clone graphs are nice May 19 05:31:48 So in my getView, at the very end, I give my new row a Tag? May 19 05:33:35 I don't think I actually have a reference to my list object May 19 05:34:00 I have no idea what's going on. I should go to sleep May 19 05:35:43 JavaDog: peruse around the iosched code when you get a chance May 19 05:36:27 http://pastebin.com/J6X73iYj <-- just to verify, am i doing anything insanely wrong here? May 19 05:36:39 this is my first attempt at using an async task May 19 05:37:52 btw, i expect nobody to understand the nuances of my json calls and whatnot. just... am i missing anything stability related? May 19 05:38:06 I wouldn't update the adapter from the background thread May 19 05:38:38 onPostExecute() executes on the UI thread, doesn't it? May 19 05:38:50 that's when you notify May 19 05:38:53 b1n0ry: do it like this. read hackbod's response. and make sure you understand what is going on http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something/3359003#3359003 May 19 05:39:48 Well thanks for the help guys. I'm going to grab some food and caffeine and try this again in a bit May 19 05:41:45 JakeWharton: why would onPostExecute will run on the UI thread in his code? May 19 05:41:54 why would onPostExecute not* May 19 05:42:04 it will, he adds to the adapter from doInBackground May 19 05:42:16 which means if you're flinging at the time who knows what's going to happen May 19 05:42:36 it will be fine as long as he doesn't remove or insert May 19 05:42:40 and only appends to the end of the list May 19 05:42:41 he calls .clear() May 19 05:42:52 oh yeah, that's a problem May 19 05:43:06 all of the updates to the adapter should be onPostExecute May 19 05:43:14 he should ditch the clear May 19 05:43:41 and append if necessary, remove if necessary, etc. May 19 05:43:48 should i create a private ArrayList within my AsyncTask and copy the content over to the super ArrayList within onPostExecute? May 19 05:44:00 JakeWharton: wouldn't it be kind of slow to do it all on the UI thread? May 19 05:44:17 no, it's just a moving references May 19 05:44:20 if something can be done in the background, like iterating that list, it should be May 19 05:44:40 he's got the hashmap creations in there May 19 05:44:47 possibly frivolous May 19 05:44:51 yes, that should all be done there May 19 05:45:00 however the actual updating of the adapter I would do in onPost May 19 05:45:15 adapter.replaceAll(newData); adapter.notifyDataSetChanged(); May 19 05:45:43 what's newData? May 19 05:45:55 a new arraylist private to the asynctask? May 19 05:46:07 yeah May 19 05:46:24 let me give that a shot. May 19 05:46:27 or you could use a Loader :D May 19 05:46:36 but i'm not nearly drunk enough to help you with that May 19 05:46:39 the code i have seems to 'work' in my basic testing... May 19 05:46:55 in this case, a loader might be overkill. i actually want the data to refresh whenever the activity is called. May 19 05:50:25 b1n0ry: loader is cake. even simpler in many cases, except where its not :) May 19 05:50:46 it just has a funny api at first, which can leave one scratching their head May 19 05:53:01 hmm... so i created an arraylist called updatedList with the same data types private to my asynctask. in onPostExecute, i'm doing list = this.updatedList; May 19 05:53:17 is that not correct? nothing is populating in my listview and it was before. May 19 05:54:03 no, you're just changing the reference in your activity May 19 05:54:11 your adapter still has a reference to the old list May 19 05:54:34 oh, but if you use the canned loader stuff you will need a content provider, unless you define your own AsyncTaskLoader impl, haha May 19 05:54:57 so why wouldn't... list = updatedList; adapter.notifyDataSetChanged(); work? May 19 05:55:14 because you are only updating the reference in your activity May 19 05:55:33 sorry, not clear on what you mean by 'reference' i'm not a java programmer by any means. May 19 05:55:47 everything i know about java i've learned in the last 6 days of trying to build this app May 19 05:55:55 b1n0ry: it would be good to know java :) May 19 05:56:14 yeah, but my goal is to have this app done by june 4 May 19 05:56:27 not time to learn an entire language in depth... just enough to do what i need to do May 19 05:56:31 bitsch: your adapter got a reference to your list when you created it May 19 05:56:35 b1n0ry: * May 19 05:56:43 that reference is different than the reference you have there May 19 05:56:47 changing one doesn't change the other May 19 05:57:05 they aren't copies, they are indirect references.. 'pointers' if you will. May 19 05:57:22 ok... so how do i get the content of the updatedList into the original list so that i can update the adapter with the new data? May 19 05:57:43 you need to modify the original object that you referenced in your adapter May 19 05:58:01 the original object is called list. May 19 05:58:16 why doesn't list get modified when i do: list = updatedList; May 19 05:58:17 no, 'list' is one of the references your program has to the object May 19 05:58:19 the object has no name May 19 05:58:24 'list' is not the object. May 19 05:59:16 i'm officially eyes glazing... so if list is not the object then why does list.add() followed by adapter.notify... add things to the adapter? May 19 05:59:34 list is a reference to the same object that your adapter has a reference to May 19 05:59:56 ah, pointers is the whole reason i abandoned programming in C/C++ years ago May 19 06:00:03 bad idea May 19 06:00:10 never understood them even after studying c/c++ for about 5 years May 19 06:00:10 the concept isn't leaving :) May 19 06:00:14 only the danger is May 19 06:00:36 the concept of indirection (like the kind that C/C++ pointer has) is universal throughout all procedural languages. May 19 06:00:36 i simply copied code that did somewhat what i needed to do and replaced names of things and values... got me through 5 years of schooling May 19 06:01:05 i taught myself C at home when I was a teenager, including pointers, and I beat my head against the wall until I got it May 19 06:01:11 you might want to watch "binky's pointer fun" May 19 06:01:25 i was about 12 or 13 when i started digging into C May 19 06:01:39 by the time i was done with high school, i was pretty much done with C May 19 06:02:24 not really, because you just admitted you don't understand pointers. May 19 06:02:29 and still don't understand pointers, really. something about stars and ampersands and memory addresses and some crap like that. frankly, i like "A = 10; print A" May 19 06:02:31 works for me May 19 06:02:35 maybe it's time to bust your ass and understand them May 19 06:02:54 it would help you understand references in java, which are somewhat less lethal, anyway. May 19 06:03:09 or you could pick up a good java book May 19 06:03:20 but I think the C pointer thing is a huge epiphany that everyone should have. May 19 06:03:22 in either case... how do i get my values from updatedList into the list adapter? May 19 06:03:29 you modify the object May 19 06:03:40 that your list ref points to. May 19 06:03:46 redeclare the entire adapter? May 19 06:03:54 let me explain this real quick May 19 06:04:06 pseudocode: List list = new List(1,2,3) May 19 06:04:13 Adapter adapter = new Adapter(list) May 19 06:04:21 how do we change the list that the adapter has, so it gets the updates? May 19 06:04:24 sho wme May 19 06:05:00 list.add(HashMap); adapter.notifyDataSetChanged(); May 19 06:05:14 that will append one hashmap, and that is correct May 19 06:05:18 ok May 19 06:05:30 you can't just say list = [2,4] May 19 06:05:36 that points your list reference to a new object May 19 06:05:43 and does nothing to your adapters list reference. May 19 06:05:56 ok May 19 06:07:33 so let's say, hypothetically, that i have a whole brand new list in a completely different name... how do i get the whole brand new list to replace the list that the adapter has? May 19 06:07:50 make your own adapter May 19 06:07:56 switch references internally May 19 06:08:10 can't i just do that with SimpleAdapter? May 19 06:08:14 somehow? May 19 06:08:18 http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html May 19 06:08:38 i was trying to read on extending BaseAdapter and, frankly, got totally lost trying to figure out what all of the example function overrides and stuff were. May 19 06:09:04 spent the better part of a day trying to figure it out. and stumbled on a SimpleAdapter example that worked. May 19 06:11:07 so... i guess another question... when i was updating list() directly within doInBackground()... it seemed to be working ok. what was the downside to having it that way aside from "not best practice"? May 19 06:14:21 * g00s yawns May 19 06:15:58 readme: motorola put out their schedule for upgrading devices to icS May 19 06:16:14 don't remember which one you had tho May 19 06:16:26 droid 3 ? May 19 06:19:32 how to use a java source May 19 06:20:49 can I cancel a postDelayed runnable? May 19 06:20:58 I feel like you can May 19 06:21:26 g00s: i'm already on ics May 19 06:21:32 removeCallbacks? May 19 06:21:36 I have a droid 3 May 19 06:21:38 * readme installed cm9 May 19 06:21:57 but what is the official date? i wouldn't mind a real install of ICS. May 19 06:24:05 4 sales in 1 day on thurs May 19 06:24:09 most i've had yet May 19 06:24:11 http://pastebin.com/WbiEV5dJ May 19 06:24:20 ok, i moved the adapter creation into onPostExecute May 19 06:24:24 * readme is about to massively update his app, too May 19 06:24:36 is that better? May 19 06:24:44 http://www.dailytech.com/Motorola+Androids+Banned+in+the+US+Samsung+May+be+the+Last+Survivor/article24725.htm May 19 06:26:23 readme: https://forums.motorola.com/pages/00add97d6c May 19 06:26:57 unfortunately, i don't see my droid-1 on there XD XD May 19 06:26:58 http://www.dailytech.com/Game+Over+Apples+Bid+to+Kill+HTC+Nears+Fruition+as+ITC+Blocks+Imports/article24691.htm <-- HTC even modified their custom androids to remove the data-tapping feature, but they're still banned May 19 06:27:26 I hate patents May 19 06:27:40 i think my next android device will be a nexus tablet. i'll just use the emu from that point on when it gets bluetooth May 19 06:27:47 hopefully GOOG and motorola will figure out a way to get motorolas here. May 19 06:28:11 I cannot believe the patent is on a date picker >:o May 19 06:28:18 motorola will just settle with apple May 19 06:28:49 and to add insult to injury, the android date picker is such a pos May 19 06:28:54 <_Auron_> er, you mean microsoft? May 19 06:29:05 yea! May 19 06:30:14 my droid-1 is still great for testing May 19 06:30:19 I think the DatePicker in android is fine May 19 06:30:24 but not much else May 19 06:30:26 I used it in my last app, and it's solid May 19 06:30:35 TimePicker is a bit sucky though May 19 06:30:46 but they are both adequate, for sure May 19 06:31:03 having the up arrow buttons obstructing the value = fail May 19 06:31:14 since your finger is often over it May 19 06:31:26 when you click up of course May 19 06:31:33 g00s: have you used the ICS one? May 19 06:31:41 no, i haven't May 19 06:31:45 its nice May 19 06:31:49 it has like a rotating wheel effect May 19 06:31:57 so you can drag the cols up and down May 19 06:32:11 sounds like the iOS one, let me find a screenshot May 19 06:33:10 readme: so the date picker does not look like this any more ? http://developer.android.com/resources/tutorials/views/hello-datepicker.html May 19 06:34:15 instead of + and -, it has up and down arrows above it, you can also see the next and previous value faintly above and below the current value May 19 06:34:29 the current values are between two blue lines and you can rotate the columns up and down by dragging May 19 06:35:10 heres a screenshot of one http://tomdignan.com/reports/accudial/2012-05-04/ics_device-2012-05-04-201819.png May 19 06:35:21 SimonVT back ported it May 19 06:35:24 https://github.com/SimonVT/android-timepicker May 19 06:35:30 https://github.com/SimonVT/android-numberpicker May 19 06:35:39 if you check out accudial on the market as a result of seeing my url, it's not mine. I rewrote the entire app for the guy. May 19 06:35:54 the rewrite isn't published yet, but I sent the first release candidate to him today. May 19 06:37:14 readme: that certainly looks much nicer than pre ics, its good you can drag the numbers up and down. May 19 06:37:53 * JakeWharton pokes SimonVT May 19 06:37:54 wake up May 19 06:38:07 i think i may just start saying minSdk = 14 May 19 06:38:22 why? May 19 06:38:27 are there ICS only APIs you depend on? May 19 06:38:38 not enough sales prior to that to worry about older platforms May 19 06:38:48 prior, meaning older version of android May 19 06:39:33 i also get the impression that phones that are on ics, or upgrading to ics officially, tend to be better phones than the stuff available in the 2.2 days May 19 06:39:42 Can I keep a static reference to a fragment? May 19 06:39:44 just less hassle all around May 19 06:41:34 JavaDog: no May 19 06:44:02 JakeWharton: What do I put in my button.setOnClickListener(...) then? May 19 06:44:13 The listener is a fragment in a seperate class May 19 06:44:24 why would you make it a fragment? May 19 06:45:09 http://mashable.com/2012/05/18/verizon-unlimited-data/ May 19 06:45:39 JavaDog: class MyOnClickListener implements View.OnClickListener { ... } May 19 06:45:53 http://i.imgur.com/OKbpk.png May 19 06:46:10 JavaDog: let me ask a question May 19 06:46:19 JavaDog: can you *see* an onClickListener y/n? May 19 06:46:28 is it a visible thing? May 19 06:46:33 no May 19 06:46:37 Likewise, can you *see* a fragment y/n? May 19 06:46:48 yeah, or at least the elements inside it May 19 06:47:11 you can see the views a fragment draws, so yeah, correct on both counts May 19 06:47:19 so my next question: why did you show me a picture? May 19 06:47:26 if your question is about onClicks? May 19 06:47:31 I saw this pic before, btw May 19 06:47:41 Because the picture is illustrating what I'm trying to do May 19 06:47:43 Wait, why do you need a static reference to something to set it as an onClickListener? May 19 06:47:51 JavaDog: just define a reusable onClickListener May 19 06:48:00 he doesn't, that's another good question billjings May 19 06:48:20 i wouldn't usually use a fragment as an onClickListener, but it should work fine May 19 06:48:24 I meant just a normal reference May 19 06:48:27 but it might make sense to declare his OnClickListener as a private static inner class, which iss not the same thing as having a static reference to one May 19 06:48:35 billjings: of course it will work fine, but I think he is badly confused. May 19 06:48:44 I am badly confused indeed May 19 06:48:58 in your adapter May 19 06:49:05 I want to do this as effectiantly as possible, with one onclicklistener May 19 06:49:17 two options, depending on taste May 19 06:49:18 efficiently May 19 06:50:01 make your adapter implement View.OnClickListener, or define a private static class MyOnClickListener implements ... {...} inside your class (inner static class) and keep a regular INSTANCE reference to it. May 19 06:50:15 or as you did before, you can make your own outer class May 19 06:50:27 and keep a regular instance ref, in your adapter. May 19 06:50:31 just no need to make it a Fragment! May 19 06:52:54 The fragment is there already May 19 06:53:02 It's holding that list May 19 06:53:15 Making a fragment just to use it as a listener would be silly May 19 06:53:53 I was just going to make the fragment the listener, in the same way that you can make an Activity the listener for some buttons within it or whatever May 19 06:54:43 holy carp, i didn't realize nokia's burn rate was so high May 19 06:55:10 burn rate? May 19 06:55:41 they are losing money too fast; 2b in last 5 quarters May 19 06:55:51 02:53 < JavaDog> Making a fragment just to use it as a listener would be silly May 19 06:55:55 ^ correct May 19 06:56:16 It's also silly to reference your fragment from your adapter just because it's also a listener for something else. May 19 06:56:28 that's called spaghetti code. May 19 06:57:05 So which method would you suggest? May 19 06:57:14 02:50 < readme> make your adapter implement View.OnClickListener, or define a private static class MyOnClickListener implements ... {...} inside your class (inner static class) and keep a regular INSTANCE reference to it. May 19 06:57:31 i would probably use a private static inner class and keep an instance ref to it May 19 06:58:15 Okay, I'll try that. Thanks May 19 06:58:19 :) May 19 06:59:25 http://pastie.org/3934224 May 19 06:59:26 pseudocode May 19 07:00:18 So then, how would I set the listener of the buttons? May 19 07:03:43 you find the button with findViewById from inside the convertView. May 19 07:03:44 My adapter is already a private inner class... Doesn't seem that I can put another one inside of it May 19 07:03:49 then you call setOnClickListener May 19 07:04:03 oh, well put it in the outer class. May 19 07:04:13 I wouldn't make an adapter an inner class, but that's just me. May 19 07:04:36 * readme does occasionally create adapters anonymously, though. May 19 07:05:17 I was using the api demo as an example, and that's what they did May 19 07:05:29 its fine to do May 19 07:07:00 anonymous adapters. You hackers are all so anon. We demand real names to stop the ever-rising tide of cyberwar. May 19 07:07:38 readme: Your line, button.setOnClickListener(mClickListener); May 19 07:08:12 I don't know how I would implement that http://pastebin.com/z2EqLcTw May 19 07:09:56 I guess, make my buttons class fields? May 19 07:10:24 Oh, they are already. I'll just make them not private May 19 07:13:28 JavaDog: Button b = (Button) convertView.findViewById(R.id.button); May 19 07:13:38 do not make it a class field. May 19 07:13:42 do it in getView() May 19 07:13:55 and you only need to do it when convertView is inflated May 19 07:15:36 What's wrong with making it a protected class field? May 19 07:15:50 then si.dButton.setOnClickListener(mOCListener); May 19 07:15:59 wrong May 19 07:16:06 each time you get the button in getView() May 19 07:16:10 it's a different button May 19 07:16:24 and also, there is no reason to keep a ref to it. May 19 07:16:39 the View parameter of your onClickListener onClick May 19 07:16:40 is the clicked view May 19 07:16:46 so if you know it's a button, via checking the id May 19 07:16:50 you can cast it to Button May 19 07:20:46 Like this? Button d = (Button) convertView.findViewById(R.id.description_button); Button s = (Button) convertView.findViewById(R.id.sections_button); d.setOnClickListener(mOCListener); s.setOnClickListener(mOCListener); May 19 07:21:24 No, that crashed May 19 07:25:28 can we already have eclipse break and jump to the line that causes an uncaught exception while debugging? May 19 07:27:37 Apparently Button s = (Button) convertView.findViewById(R.id.sections_button); is throwing a null pointer, but the almost identical line before it isn't having a problem May 19 07:29:21 zzattack: running in debug mode will position your cursor to the exact line the exception occured May 19 07:29:38 sometimes it's inside a class file though because it occured in a framework or something, because you passed a null into some method May 19 07:29:41 is that dependent on some settings perhaps? May 19 07:29:44 when that is the case, just close a couple tabs. May 19 07:29:52 nope, that's the default behavior when running in debug mode May 19 07:29:56 hmm May 19 07:30:06 you may see a couple class files open May 19 07:30:08 i do see that my debugger pauses, but when i inspect the callstack it's not within my code May 19 07:30:19 in fact my code hardly ever is even on the stack May 19 07:30:23 Might want to install the Android Sources plugin May 19 07:30:29 that's probably because that's where the exception originated. May 19 07:30:32 there's usually a pretty clear message in logcat, but it's cumbersome May 19 07:30:50 you just need to close a couple tabs until you see your code May 19 07:31:12 i'm pretty sure it doesn't open the relevant document, lemme recheck May 19 07:31:18 it does. May 19 07:31:20 I've used it before. May 19 07:31:21 JavaDog: is this done through eclipse? May 19 07:31:26 yeah May 19 07:31:49 from the same package site as ADT? May 19 07:31:59 http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/ May 19 07:32:11 nice JavaDog May 19 07:32:13 i'm going to install that one, too May 19 07:32:20 It's useful May 19 07:32:21 cool May 19 07:32:36 readme: it does pause with a stacktrace pointing to a .jar indeed May 19 07:32:52 couple frames up is indeed my code May 19 07:32:57 yep. May 19 07:33:10 i know that VS has an option to break on "just my code" May 19 07:33:13 I think the plugin javadog suggested will make this a lot better May 19 07:33:14 i didn't know about it until now. May 19 07:34:21 JavaDog: does this work for any sdk version? May 19 07:34:25 I don't see a similar option in eclipse after looking. May 19 07:34:50 IIRC it installs all the sdk versions May 19 07:36:44 oh no.. i think i just discovered a way to make emails disappear in thunderbird. May 19 07:37:17 Did you hit the [DELETE] key?!? May 19 07:37:29 nah May 19 07:37:32 I highlighted them all May 19 07:37:40 then while they were highlighted, I starred two of them May 19 07:37:51 then I hit some arbitrary key, and they disappeared May 19 07:38:00 but i got em back by going into drafts then coming back to inbox May 19 07:38:04 can't reproduce it now May 19 07:38:45 I did it again :) May 19 07:39:08 maybe I actually just found a shortcut. May 19 07:39:24 a for archive? May 19 07:39:30 yes :) May 19 07:39:42 which is what I was gonna do anyway, so I guess I lucked out May 19 07:39:47 :P May 19 07:40:16 I've been maintaining inbox-zero for a few weeks now \o/ May 19 07:40:27 Guys I am looking for comparsion of computer vision libraries for Adnroid so far I found ofc Opencv and FastCv and JavaCV(which seems like only wrapper for opencv) May 19 07:41:01 if my inbox is empty, it means i have nothing to do :D May 19 07:47:05 i cant compile any small java game source to android May 19 07:47:31 jluw9o: android only has a subset of the java apis May 19 07:47:42 not all java apps/games will just port over to android May 19 07:47:44 pls giv me a free uncommon android small game source May 19 07:47:52 uncommon? May 19 07:47:59 not the ones in sdk sample or chess or pong May 19 07:48:09 even checkers will do May 19 07:48:19 but a sensor based one would be good May 19 07:48:35 try the andengine website? May 19 07:48:36 i got a maze game which moves with direction key only May 19 07:48:40 or searching github for andengine May 19 07:48:54 how to make it use sensor ? and also use the shiny balls in sample maze game May 19 07:49:12 use andengine, it will make it easy to use sensors etc. May 19 07:49:57 http://www.planet-source-code.com/vb/scripts/BrowseCategoryOrSearchResults.asp?lngWId=2&?lngWId=2&grpCategories=72&txtMaxNumberOfEntriesPerPage=10&optSort=Alphabetical&chkThoroughSearch=&blnTopCode=False&blnNewestCode=False&blnAuthorSearch=False&lngAuthorId=&strAuthorName=&blnResetAllVariables=&blnEditCode=False&mblnIsSuperAdminAccessOn=False&intFirstRecordOnPage=1&intLastRecordOnPage=10 May 19 07:49:58 &intMaxNumberOfEntriesPerPage=10&intLastRecordInRecordset=251&chkCodeTypeZip=&chkCodeDifficulty=&chkCodeTypeText=&chkCodeTypeArticle=&chkCode3rdPartyReview=&txtCriteria= May 19 07:50:11 unable to compile any of those free java games to android game May 19 07:50:27 i already explained why May 19 07:50:31 dont know how to use andengine May 19 07:50:36 want to make anygame quick May 19 07:50:48 uh May 19 07:51:08 have you made games before? May 19 07:51:12 yes May 19 07:51:15 yesaterday May 19 07:51:19 many May 19 07:51:21 what lang what did you use? May 19 07:51:24 android/java? May 19 07:51:43 eclipse indigo 64bit with ADT with androidSDK installed May 19 07:51:55 well, I think you should learn andengine then May 19 07:51:57 also worked directly on phone from eclipse May 19 07:51:59 it will make it easier to write games May 19 07:53:08 so u dont know any link to many small open source android games ? May 19 07:53:21 search github and google code. May 19 07:56:54 not a single sample in github site May 19 07:57:00 trash forums May 19 07:58:45 jluw9o: it doesn't seem like you are interested in learning anything related to android programming; try another forum for leads on free games May 19 08:00:02 i just wasted 10 seconds of my life typing that; too much. this place is becoming derp central May 19 08:03:04 a sample May 19 08:03:10 where to find many May 19 08:04:21 jluw9o: you might want to get checked out for ADHD May 19 08:04:24 https://github.com/search?q=android+game&repo=&langOverride=&start_value=1&type=Everything&language= May 19 08:04:36 had you had the patience to actually search github, you would have found plenty May 19 08:05:05 i was in andengine forum May 19 08:05:18 03:56 < jluw9o> not a single sample in github site May 19 08:05:23 github was giving source for github only May 19 08:05:26 games generally aren't small... May 19 08:06:42 what event listener can i use to detect a View being pressed but not yet clicked May 19 08:06:55 onTouch May 19 08:06:59 aha May 19 08:07:10 thanks May 19 08:08:22 found one BrainVita May 19 08:08:23 but in java May 19 08:08:33 pfn: can this state also be set programatically? May 19 08:08:35 but its a single.java file 10KB no resources May 19 08:08:43 so can this be easily ported to android ? May 19 08:09:17 if you can't understand projects with more than one file, then you probably won't figure out how to port it. You need to take the time to get over the hurdle of working on a project with more than one file. May 19 08:09:25 jluw9o: learn to code java, then you can decide that by yourself. May 19 08:09:29 try to create your own project with multiple files May 19 08:09:40 if eclipse allows May 19 08:10:00 pfn: actually that makes little sense. I've got another element that has a background selector which, when pressed, has a differnet drawable. i want to have it change its backgroudn as if it's touched when another View is touched. that possible without manually setting its drawable? May 19 08:10:02 it just asks for new project folder May 19 08:10:09 eclipse was written by expert software engineers. I'm fairly certain that eclipse isn't the problem here. May 19 08:10:15 does not allow to create new project text file May 19 08:10:21 the problem is that you need to slow down, take a deep breath, and learn how to use it. May 19 08:10:24 troll... May 19 08:10:28 there are tutorials integrated into eclipse. May 19 08:10:36 zzattack, I don't know, I don't have that kinda situation in my projects May 19 08:10:37 * pfn shrugs May 19 08:10:44 it only allows to edit Sample projects May 19 08:10:46 zzattack, maybe, events bubble downward May 19 08:11:03 jluw9o: if that is the case, how were all the games on the market made? May 19 08:11:05 magic? May 19 08:11:05 hm, not the case here I think May 19 08:11:31 robots May 19 08:11:43 jluw9o: try youtube, it has video tutorials to make android apps. May 19 08:11:47 i know May 19 08:13:21 if file name/class/app name is BrainVita.java, what to type in package name " your.package.namespace " May 19 08:13:41 x.x.x format compulsory May 19 08:14:38 I doubt anyone here wanna hold your hand when you take your first baby steps, when google can answer pretty much anything. May 19 08:21:24 github isnt allowing to download folder in zip rar May 19 08:21:41 u need to click 100 subdirs and download separately like ftp May 19 08:21:48 you're supposed to use git for that May 19 08:21:51 then put back in same directory order May 19 08:22:10 or, you know, use the .zip button May 19 08:22:30 found the option download next to tags May 19 08:22:47 still its not going to work 95% May 19 08:26:35 I am looking for a way to send messages/notifications to users with Android phones. Can you point any such application? May 19 08:26:58 com.jluw90.game May 19 08:27:19 I've considered SMS, but that requires an SMS gateway, which is expensive, or an SMS gateway provider, that too is way too expensive. May 19 08:27:31 that d be illegal May 19 08:27:35 Lachezar: if the messages are non-critical, then the answer is c2dm May 19 08:27:50 i got FriendCaller $4.7 credits May 19 08:27:59 u can send 1000 SMS with $4.7 May 19 08:28:03 jluw9o: this channel is for discussing app development. May 19 08:28:12 I was considering GTalk, but that requires all users to register with GTalk, which would be undesirable (Enterprise). May 19 08:28:18 you can use XMPP May 19 08:28:19 got it all clickin ads May 19 08:28:26 Lachezar: Gtalk is plain old XMPP May 19 08:28:41 users on Gtalk can talk to users on your XMPP server May 19 08:28:48 \o/ May 19 08:28:53 p_l: True, but isn't it Google-Cloud-Backed May 19 08:29:48 Lachezar: pidgin connects to XMPP for google talk. There's nothing stopping you. May 19 08:29:59 although your own xmpp server... i think would be desirable. May 19 08:30:04 readme: True, but the users will have to register with GTalk. The phones are not personal, but are rotated between employees on shift. May 19 08:30:20 so create a default registration for each phone? May 19 08:30:40 Lachezar: it's plain old XMPP. You can use another client, btw May 19 08:30:49 set up openfire or ejabberd on your own server. May 19 08:31:37 none of those github games work May 19 08:31:46 also, from the quick'n'simple solutions group: get a google apps account, setup accounts per phone, with accounts specific to shifts, + eventually use your own ejabberd instance with a plugin that would "route" messages to apropriate phone May 19 08:31:57 jluw9o: until you get over the attitude of "because i don't understand it, I declare it doesn't work" you aren't going to make any progress. May 19 08:32:44 readme: What's c2dm? May 19 08:32:45 although there is a good chance you've got a game that doesn't work on github :) May 19 08:32:50 Lachezar: lmgtfy :) May 19 08:32:55 Nah :) May 19 08:33:11 c2dm is not suitable anyway. Xmpp is best for your use case. May 19 08:34:01 readme: Yeah, seems it's not exactly what I want, since I don't have an application on the phone. May 19 08:34:41 oh May 19 08:35:10 I assumed you could do that, since this is an application development channel May 19 08:35:21 readme: The app is J2EE Web_App. May 19 08:35:30 use a native wrapper May 19 08:35:35 with a webview May 19 08:36:18 readme: That is on my To-Check list. May 19 08:36:44 readme: But for now an Web-App will suffice. May 19 08:37:20 meh. adb backup is sooo great, especially when adb restore fails to actually work. May 19 08:38:30 readme: But c2dm seems to be a solution for a problem I am having with a different application. May 19 08:38:48 is the .ab file format of adb backup documented somewhere? May 19 08:38:54 its good for non-critical use. it has a share of problems you'll discover if you dig in. May 19 08:39:03 Ge0rG: ask ctate when he's in here May 19 08:39:41 * Ge0rG went the official way by now... https://code.google.com/p/android/issues/detail?id=31560 May 19 08:39:57 JakeWharton: when you write a git commit message, do you manually wrap lines at some limit (like 72 chars) with hard carriage returns, or do you just type freely ? May 19 08:40:15 I do 50 char summary and then wrap paragraphs at 80 May 19 08:40:28 ok, so something like this ? http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html May 19 08:40:35 well, it sounds about the same, ok May 19 08:40:47 thx May 19 08:40:48 thats how I do it May 19 08:40:59 yes, exactly that May 19 08:41:06 especially the present tense thing. I even use that in some source code comments now. May 19 08:41:07 :) May 19 08:41:14 tenses are just not useful in many applications of language. May 19 08:41:25 that kinda seems weird, but ok May 19 08:41:34 I use it for one liner comments on variables and stuff. May 19 08:42:54 past tense is a hard habit to break though... looking over my commits I have a few 'installed' May 19 08:43:46 http://www.youtube.com/watch?v=1b17ggwkR60&feature=youtu.be May 19 08:45:29 T-minus 10m May 19 08:45:30 http://www.spacex.com/webcast/ May 19 08:45:37 \o/ May 19 08:45:41 <3 space capitalism May 19 08:45:51 JakeWharton: Doh, Thanks... Almost missed that! May 19 08:49:08 really all games give black screen May 19 08:49:28 except one which just shows joystick still photo nothing happens May 19 08:50:10 jluw9o: are you on a real android device, or an emulator May 19 08:50:12 and eclipse needs restart and deleting workspace directory for running every file May 19 08:50:23 you're definitely holding it wrong May 19 08:50:32 says source already exists even after deleting from pack list on left pane May 19 08:50:39 both May 19 08:50:50 Elon Musk is the CEO and "chief designer" of spacex, but what does the latter actually mean May 19 08:50:55 2.3.6 phone and 2.3.3 emulator May 19 08:51:07 I doubt he actually designed any of the rockets, right? it just means he designed the 'business' May 19 08:51:41 which of course is cool to me.. I'm just curious of how superhuman this guy actually is. May 19 08:51:56 readme: he might have been the original designer, now lead May 19 08:52:03 p_l: of the rocket!? May 19 08:52:18 readme: possibly May 19 08:52:22 =o May 19 08:52:24 what a genius May 19 08:54:01 did he just say stage 2 heater anomaly ? May 19 08:54:15 readme: apparently, he is the CTO May 19 08:54:15 nominally May 19 08:54:18 jluw9o: when you find a game on github or google code, make sure it has a lot of watchers or forks, or if google code, lots of stars. May 19 08:54:21 :) May 19 08:54:30 a game that isn't very popular is more likely to not work. May 19 08:55:07 JakeWharton: best link I've ever been given. thanks May 19 08:55:39 i'm waiting for someone to come out and jump on a air bag to make it launch, like NK May 19 08:56:04 lol launch abort May 19 08:56:10 owned May 19 08:57:09 oh dear May 19 08:58:34 <_Auron_> fail :| May 19 08:58:53 will have to check that out on tuesday. May 19 08:59:23 Thanks for using Planet Source Code! (You have accessed code 5 times.) To continue to receive absolutely free access to over 533,555. lines of source code, please take a moment to become a site member. May 19 09:00:28 what does the syntax myClass.this.someMethod() mean? (it's used within a method in myClass). what's this language construct callde? May 19 09:00:39 it's a reference to the instance of MyClass May 19 09:00:47 to call the method someMethod() May 19 09:00:55 it's used when you are in the scope of an inner class May 19 09:00:56 so is it any different to just "this.someMethod()"? May 19 09:00:56 likely from a non-static inner class May 19 09:01:02 aah May 19 09:01:15 zzattack: A call to the owner object (when called from inner class). May 19 09:01:25 hrm, no, it's not inside an inner class May 19 09:01:36 Or anonymous. May 19 09:01:36 zzattack: then it's just overly explicit. May 19 09:01:44 aha. thanks, that clarifies all May 19 09:02:01 " This rocket and spacecraft will not carry people, but will have about 1,200 pounds of supplies onboard for the six astronauts and cosmonauts working on the space station. " May 19 09:02:18 they'll get fat May 19 09:02:28 hi May 19 09:02:57 i'm trying to populate a vertical list view with horizontal-scrolling gallerys May 19 09:03:29 how do i go about this? i already have code that makes the list and code that makes the gallery like i want, how my problem is mergins them May 19 09:03:40 do i need more than 1 adapter May 19 09:04:10 i think i must inflate the xml, once to add list elements and once to add gallery elements withing the list elements May 19 09:04:47 readme: regarding rocket designs... I find it hilarious that one of the new launchers is using an engine from a moonshot rocket :D May 19 09:05:08 Damn... That rocket is not Android-Powered right ? ;) May 19 09:05:32 when is the instance of a singleton class instantiated? when the instance is first accessed? May 19 09:06:10 zzattack: depends on the implementation, but normal static Type INSTANCE = new Type() is created on class use. May 19 09:06:23 i see May 19 09:06:44 what is that warning 'project already exists consider Importing May 19 09:07:19 jluw9o: You're trying top copy a project, but there is already such a project in the workspace directory. May 19 09:07:33 Lachezar: and if i wish to control some of the initialization done to the isntance I would do so when the application is first created? May 19 09:08:01 zzattackL Not necessarily. May 19 09:08:11 because in that case it might make more sense to just make it a part of the Application May 19 09:09:09 In Android statics are not very useful. Commonly an Application sub-class is created, and used (since it's a singleton). May 19 09:09:11 workspace directoory is clean May 19 09:09:19 eclipse is trash May 19 09:09:41 some old 1940s assembler May 19 09:20:02 Project has no project.properties file! Edit the project properties to set one. May 19 09:20:02 Failed to create a Launch config for project 'Home': Could not write file: E:\eclip\workspace\.metadata\.plugins\org.eclipse.debug.core\.launches. May 19 09:20:31 no other good gui based android compiler ? May 19 09:21:02 JUST REINSTALL ECLIPSE May 19 09:21:08 eclipse can only run sample examples in androidSDK folder May 19 09:21:23 opps sorry for caps May 19 09:22:27 WHAT'S IN THE BOX?!? May 19 09:23:35 solar eclipse May 19 09:23:56 jluw9o: just because you are having trouble using something, does not make it trash. May 19 09:24:53 thousands, maybe millions of people before you have successfully used eclipse to make android apps. May 19 09:25:09 even I have, and I had no idea what I was doing :P May 19 09:25:34 so when you have a problem... take a step back and try to figure it out May 19 09:25:37 paste errors into google May 19 09:25:58 remove parts of the error that are specific to you (like the date and time) May 19 09:26:24 ,. May 19 09:35:17 nice restart Mac May 19 09:35:38 uh oh May 19 09:35:43 05:35:37 up 30 days, 5:25, 3 users, load average: 1.35, 1.15, 1.08 May 19 09:35:47 thats only my workstation May 19 09:35:54 I updated VMWare Fusion May 19 09:36:00 i had my linux box up for almost a year May 19 09:36:16 and it's like "You need to restart" and since I'm on a *nix OS I figure it only meant the app May 19 09:36:26 my mail server uptime is about to be ruined on the 30th May 19 09:36:34 linode told me it has to go down for an upgrade. May 19 09:36:43 haha May 19 09:36:48 its hilarious they call this the "most advanced os" May 19 09:36:57 (lion) May 19 09:38:29 android is the most advanced os, obviously :) May 19 09:38:33 istead of putting faux leather skin on the calendar , they should have put more time into a package manager and security May 19 09:38:55 g00s: but apples customers don't buy for that May 19 09:39:12 they buy to feel rich, mostly. and what could do that better than a faux leather skin. May 19 09:39:14 readme: well actually, they do buy for the bs line "macs don't get viruses" May 19 09:39:24 I would buy for that too May 19 09:39:40 because, I don't believe windows virus problem is merely result of it being the largest target May 19 09:39:46 I believe it sucks May 19 09:39:46 another reason people buy macs is because of decision fatigue May 19 09:40:24 you go to an apple store, and there are only a couple of choices. many people like that May 19 09:40:39 it was kinda the way Saturn cars were back in the day. also no haggling May 19 09:41:02 yeah, the good olde days of the ford model 8 May 19 09:41:14 i think apple still gets very high on customer service May 19 09:41:22 high ratings May 19 09:44:37 I never owned a mac during the apple store days May 19 09:44:44 at least, there wasn't one nearby May 19 09:45:08 had to use some independent shop and they totally swapped my keyboard out with one that was full of hair. May 19 09:46:41 so, is their guideline for setting git commit messages to 80 chars just in case somebody is going to read this on a vt120 or something. hard-wraps kinda suck May 19 09:46:58 I hate reading anything that isn't wrapped at 80 chars May 19 09:47:09 the reason behind 80 chars is that the human eye cannot properly focus after 80 chars May 19 09:47:17 i'd rather it just flowed to the width of the terminal May 19 09:47:31 I don't know how you can bare to read like that :) May 19 09:47:49 even in Vim, I have autowrap on May 19 09:47:59 i have my terminal at around 120 width May 19 09:48:13 if website doesn't at least shrink their content div width so I can read the text easily May 19 09:48:20 then I have to use readability May 19 09:48:24 (great chrome app if you don't have it) May 19 09:48:36 actually I need to use it on about 80% of the sites I visit May 19 09:48:44 I am the pickiest guy about the formatting of text ever. May 19 09:48:44 but yeah, i mean what if i want to resize my terminal to 60 chars? May 19 09:48:50 g00s: http://yanpritzker.com/git-book/ May 19 09:49:18 hmm, i don't think i have seen this one yet May 19 09:49:33 is this better than Pro Git ? May 19 09:49:38 yes May 19 09:49:42 it's quicker May 19 09:49:43 easier May 19 09:49:46 :) May 19 09:51:01 g00s: I guess if you really want 80 char wrapped text to look nice at 60 chars then... pipe it through tr '\n' ' ' May 19 09:51:30 the only thing I don't wrap at 80 chars.. is my java code. May 19 09:51:41 because my method names are usually like 20 chars long anyway. May 19 10:03:08 what's the best way to check if two strings are equal? I'm trying stringx.equals(stringy) and they're exactly equal, but it's still returning false May 19 10:06:09 return stringx == null ? strings == stringy : stringx.equals(stringy); May 19 10:06:29 i guess you could also replace the first conditional code to stringy == null May 19 10:13:33 Hi JakeWharton Thanks for the new 4.1.0 May 19 10:13:41 you're welcome May 19 10:13:51 make sure you update your apps May 19 10:14:00 Already did :)= May 19 10:14:53 Hello all. Does someone know if there is some library that lets the developer customize the dialog ? I want to customize the Dialog title look. making it appear blue instead of white ( In ICS of course ) May 19 10:15:28 the end goal would be getting the same ui in different android versions May 19 10:15:37 for the same dialog in my app May 19 10:16:06 I wrote a AlertDialog back port for the Holo look for work May 19 10:16:14 it's much more involved than you would imagine May 19 10:16:20 vekexasia: you can customize the way dialogs look with themes May 19 10:16:37 Dialog theming is very limited on older platforms May 19 10:16:39 can someone give source code link for android maze game ? May 19 10:17:20 JakeWharton: yes that's why I was looking for a library. Cause i saw the android code and it seems that you need to work a lot in order to get this goal. May 19 10:17:32 @readme, Already tried and SimonVT is right May 19 10:17:51 vekexasia: you can use your own view in a dialog too. May 19 10:17:58 only for the content May 19 10:17:59 so you can make it look literally however you want. May 19 10:18:11 not for the "Top bar" May 19 10:18:29 you don't even need to use the dialog theme May 19 10:18:36 you can use the activity theme and then literally control every detail May 19 10:18:53 hmm readme ? May 19 10:19:05 you can do that with Dialogs too May 19 10:19:14 just use your own View and nothing it gives you May 19 10:19:15 hmm it seems I missed that May 19 10:19:54 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/alert_dialog_holo.xml i looked into this and it seems the setView is affecting the Framelayout May 19 10:21:18 MAybe i'm missing somethign so what do you suggest JakeWharton and readme ? May 19 10:21:27 custom dialog subclass May 19 10:21:33 or DialogFragment as SimonVT will probably tell you May 19 10:21:39 because it is the modern way May 19 10:21:47 DialogFragment is still a Dialog May 19 10:21:53 Just managed by the FragmentManager May 19 10:22:10 SimonVT: can i customize every pixel ? :P May 19 10:22:16 Ahm... I understand I'm about to be scolded... May 19 10:22:16 A fragment is not a UI object May 19 10:22:41 but using a custom dialog will allow you to override OnCreateView May 19 10:22:42 Is there any tutorial on how to make an application look and behave correctly under ANY version and ANY size? May 19 10:23:19 yes readme you're right. The problem is May 19 10:23:24 Lachezar: there's a guide on "resources" May 19 10:23:29 I'm currently using the Builder from Alertdialog May 19 10:23:36 which comes very handy May 19 10:23:38 Just about every single tutorial on http://d.android.com is for that May 19 10:23:49 readme: interesting, i just came across this http://thread.gmane.org/gmane.comp.version-control.git/186604 and http://thread.gmane.org/gmane.comp.version-control.git/187678 May 19 10:23:50 can someone give source code link for android maze game ? May 19 10:23:54 readme: That requires me to «rewrite» the UI for all versions and sizes. May 19 10:23:55 Lachezar: in there the syntax is described for providing resources to specific: screen sizes, and api versions. May 19 10:23:58 since i need to customize a "multichoice" "singlechoice" "simplelist" dialog May 19 10:24:09 the builder from AlertDialog came handy May 19 10:24:21 cause you just call the right methods and the ui get ther May 19 10:24:22 :P May 19 10:24:37 so i was looking more to rewrite the AlertDialog.Builder from scratch May 19 10:24:38 :P May 19 10:24:42 Lachezar: not all sizes... you just need to generalize for a few different resolutions. May 19 10:24:51 hdpi, xhdpi, mdpi, ldpi. May 19 10:24:55 if you're using proper arrangements of layouts your screens should scale to fairly large screen buckets May 19 10:25:05 requiring only 2 or 3 configurations May 19 10:25:06 use 9 patches and dp, LinearLayout's layout_weight etc May 19 10:25:20 we usually do phone, phone landscape, tablet May 19 10:25:22 JakeWarthon: I would assuse so, but in reality on larger devices I just get a whole lot of white space. May 19 10:25:28 Or black space. May 19 10:25:49 g00s: i'm guessing it's going to be Linus on commit messages? May 19 10:26:02 Oh nice, a patch just for you :) May 19 10:26:09 no, seems like deep down git does something dumb with less May 19 10:26:22 there is a patch, but i can't tell if its applied May 19 10:27:07 I missed anything about less in there May 19 10:27:52 can someone give source code link for android maze game ? May 19 10:28:03 google May 19 10:28:29 or bing :P May 19 10:28:49 or anything not asking us to do everything for you May 19 10:28:50 not available May 19 10:29:25 google is not available..? May 19 10:29:56 sound the alarms May 19 10:30:27 it shows all java codes May 19 10:30:38 jluw9o: you should try to get a game working that just draws a line, then try a to make a program that can move a shape May 19 10:30:45 not the folder/zip with src res etc May 19 10:30:47 incrementally work up and build your own May 19 10:31:12 i got this maze ball moving with arrows May 19 10:31:25 oh, that's good. May 19 10:31:25 how to make it move using sensor now ? May 19 10:31:34 read the accelerometer docs May 19 10:32:11 how big difficult is accelerometer topic May 19 10:32:17 42 May 19 10:32:24 you guys keep falling for troll fodder May 19 10:32:35 who's falling May 19 10:32:35 isnt it just like "arrowLeft" = "accArrowLeft" ? May 19 10:32:42 I don't think he's a troll g00s May 19 10:32:44 just 5 letters more May 19 10:32:56 i think he may be extremely young, though. May 19 10:33:01 sensorLeft instead of keypadLeft May 19 10:33:04 even if he is it's more amusing than half the idiocy in here May 19 10:33:09 readme: yeah like single digit.. :P May 19 10:34:16 public class SensorActivity extends Activity, implements SensorEventListener { May 19 10:34:21 where to put that May 19 10:34:28 in the code.. May 19 10:34:40 SensorActivity.java May 19 10:34:43 you'd know where if you bothered to learn how to program May 19 10:35:46 wat r u doign May 19 10:36:21 jluw9o: extends what.. Activity? May 19 10:36:27 Do you know what an Activity is? May 19 10:36:42 craft work May 19 10:36:44 ? May 19 10:36:48 nothing May 19 10:36:53 u chat May 19 10:36:57 i will find out May 19 10:37:05 look it up :) May 19 10:37:13 then you will know where to put it. May 19 10:37:28 cant find a working game source on google since last 5 hrs May 19 10:37:58 try altavista May 19 10:38:47 ask jeeves May 19 10:40:54 brain May 19 10:41:32 …not found May 19 10:43:57 An Eclipse project already exists in this directory. May 19 10:43:58 Consider using File > Import > Existing Project instead. May 19 10:44:02 its there all the time May 19 10:44:13 cleaned workspace folder , restarted , close all May 19 10:44:15 sadpldspfl May 19 10:44:24 hello May 19 10:44:34 An Eclipse project already exists in this directory. Consider using File > Import > Existing Project instead. May 19 10:44:36 what is that May 19 10:45:11 in your workspace, the project with that name is still there. May 19 10:45:21 move it with your file manager or delete it May 19 10:45:37 closed eclipse, deleted workspace, restartd same error May 19 10:45:58 File->Import shows no Android option May 19 10:46:19 you can just use "Existing Projects into Workspace" May 19 10:47:24 * readme wrote something of a platformer engine, but it's vector based May 19 10:47:28 so i can't really tile it May 19 10:47:51 it's also slow and based entirely on canvas, no gl :) May 19 10:49:36 how should i go about integrating a gallery within my listview rows ? do i need 2 adapters? 2 inflaters ? May 19 10:50:15 adapters all the way down May 19 10:50:31 that's just screaming for performance problems May 19 10:51:10 JakeWharton excuse m ehat do you mean with all the way down ? May 19 10:51:39 i should use one adapter for the list and another for the gallery ? May 19 10:51:40 turtles all the way down May 19 10:55:00 turtles ? May 19 10:55:11 are you pulling my leg? May 19 10:55:24 it's an expression May 19 10:56:18 Guys I am looking for comparsion of computer vision libraries for Adnroid so far I found ofc Opencv and FastCv and JavaCV(which seems like only wrapper for opencv) May 19 11:02:11 can someone convert this simple java game to android May 19 11:02:12 http://read.pudn.com/downloads170/sourcecode/game/786652/BrainVita/BrainVita.java__.htm May 19 11:02:28 jluw9o: you can try odesk or something May 19 11:03:01 contracator /? May 19 11:03:10 yeah ! May 19 11:08:07 g00s: please don't attract more low quality employers to oDesk :| May 19 11:18:03 dsalsdpfkoldskfpWEO)#4ro4petkl May 19 11:18:10 got to go to girlfriends college graduation May 19 11:18:19 jluw9o: cut out the spamming stuff, you will wear out your welcome fast. May 19 11:18:50 readme: people tend to deserve each other, so if he's a low quality employer, he'll work with a low quality contractor May 19 11:19:53 i want marble maze source code android May 19 11:20:03 without sound etc May 19 11:20:08 small game May 19 11:20:09 ? May 19 11:23:06 AndroidManifest.xml not fond May 19 11:23:37 github is trash May 19 11:24:15 i'm having some trouble finding how to add a PreferenceFragment to a layout. documentation exampels show how to replace the content by a PreferenceScreen, but I need a few preference items to be added after some other (non-preference) widgets May 19 11:24:33 then goto some android trouble chanel server May 19 11:24:35 do I specify a as a stub in my layout? May 19 11:24:54 or should I use addContentView()? May 19 11:25:03 make my java maze work in android also sensor base if easy May 19 11:25:23 u should search addContextView()-contractor oDesk May 19 11:25:50 u trolling? May 19 11:26:28 g00s taughtthat May 19 11:26:32 u torll May 19 11:26:46 zzattack sounds troll nick May 19 11:26:58 i am torll ! May 19 11:28:19 why r there .class files already in .java source zip May 19 11:28:35 why is the sky blue ? May 19 11:28:36 .class is source or executable binary compiled final file? May 19 11:33:13 how to type/paste anything in the eclipse window May 19 11:33:30 created new android 2.3.3 workspace May 19 11:33:51 expanded src , clicked on android.game May 19 11:34:01 cant paste the java text there May 19 11:34:05 its all gray May 19 11:34:18 how to type in new android project space ? May 19 11:39:08 asofjksdokg May 19 11:39:09 dfgkfpogk4p0 May 19 11:39:11 soery May 19 11:43:50 how to run that in android http://read.pudn.com/downloads170/sourcecode/game/786652/BrainVita/BrainVita.java__.htm May 19 11:45:28 android dont have applet support May 19 11:45:56 jluw9o, http://www.codeproject.com/Articles/269318/An-Adventure-in-Porting-a-Java-Applet-to-Android-w May 19 11:49:13 it does May 19 11:51:13 yes May 19 11:51:21 jluw9o, it rewrite all :) May 19 11:52:13 i mean android can run better graphics than java applet May 19 11:52:19 so i can easily run applet May 19 11:52:27 but not working now May 19 11:52:33 nothing works in eclipse May 19 11:54:13 if condition (string != -1) on line 18 is removed, null warning disappears else it is null - http://pastebin.com/9SMQLAM0 May 19 11:54:38 problem not with graphics May 19 11:54:44 android dont have support for java applets May 19 11:55:09 how to download all that in zip http://tiltmazes.googlecode.com/svn/trunk/ May 19 11:55:24 and they not use plain java May 19 11:55:46 many things not implemented (like swing,awt etc) May 19 11:56:12 hi all May 19 11:56:32 anyone? May 19 11:56:37 can emulators downloaded to windows to used on linux? May 19 11:57:20 i hope these emulater can be reused on linux:) so i don't need to download it for the second time:) May 19 11:58:53 jameslord: what emulators are you talking about? May 19 12:00:27 sdk May 19 12:00:31 Hello everybody. I am trying to start the Android Emulator. I am using Eclipse with latest version of the ADT addon installed and the latest Android SDK. Everything is running on Windows 7 64bit. My screen resolution is 1366x768. My ram is 8GB. I created an AVD with the following setup: Target: API Level 15, SD Card: 512 MiB, Skin: Built-in WGA800, Hardware (default from skin): Hardware Back/Home keys: no, Abstracted LCD density May 19 12:00:35 Max VM heap size 48 May 19 12:00:43 u dont need emulators just phone+usb May 19 12:00:47 also wifi May 19 12:00:48 device ram size 1024 May 19 12:01:11 When I press start, the progress bar goes to the middle and then nothing happens May 19 12:01:19 Other resolutions run fine May 19 12:01:46 But the WXGA800 skin does not run May 19 12:01:48 get androidx86 May 19 12:03:26 i want any android game source free :9 May 19 12:03:34 someone paste link May 19 12:04:20 hello May 19 12:04:32 heLLol May 19 12:04:51 can u paste any android game source code link > May 19 12:06:24 sdf[pW)_Ei0 May 19 12:06:26 SAP@PQ$(937 May 19 12:06:31 Q@($&8589+*-*/5 May 19 12:06:55 this is a game source code ?_? May 19 12:07:37 * jluw9o shoot //===,==============-> > Deathlord May 19 12:08:04 #android-dev is fun May 19 12:08:30 Deathlord: he's a script kiddie and he thinks that by hitting his keyboard with his forehead, we'd answer. But he was already told that he'll be ignored if he does that, and consequently, nobody is answering anymore :) May 19 12:08:39 tl;dr: move along, nothing to see May 19 12:11:09 #java is better May 19 12:11:15 #pascal is better May 19 12:12:28 U all sleep well here May 19 12:20:23 say I extend ScrollView... can I make the inherited addView(View) function private? May 19 12:21:12 sounds like something you could answer by trying May 19 12:21:13 :E May 19 12:21:39 Zharf: trying what? May 19 12:21:48 what you just suggested May 19 12:22:34 Zharf: but if I do that, from my experience, I have to override it May 19 12:22:34 u cannot reduce the visibility of the inherited method May 19 12:23:09 try it and you'll see compilation error May 19 12:23:15 yeah May 19 12:23:44 ok thanks May 19 12:30:42 I'm trying to embed a Gallery into a ListView but i'm not sure of how to go about the adapters and inflaters: http://pastebin.com/8iMfjDRA May 19 12:31:51 is this line correct? i'm trying to pass the context of the parent: cGallery.setAdapter(new newGalleryAdapter( TockitActivity.this )) May 19 12:32:28 because if i only said "this" it would refer to the context of the adapter May 19 12:33:22 sure, but you should probably use applicationcontext instead May 19 12:33:32 can I use addContentView to add a PreferenceFragment to my existing activity layout? May 19 12:34:04 (please excuse the dirty code and ignore comments= May 19 12:34:05 ) May 19 12:36:11 with getApplicationContext() ? May 19 12:36:26 Guys I am looking for comparsion of computer vision libraries for Adnroid so far I found ofc Opencv and FastCv and JavaCV(which seems like only wrapper for opencv) May 19 12:36:31 yep May 19 12:37:30 is that = Appname.this ? May 19 12:37:49 i tried it but isn't inflating correctly May 19 12:50:12 t432 android emulator:0 May 19 12:50:28 how to change font color of a button? May 19 13:01:14 Hi! I created Fragment A in Activity A. From there, I can lunch Fragment B in Activity B. I would like to return a value from Fragment B to Fragment A and I tried something but it doesn't seem to work. Partial code for Fragment B is here: http://pastebin.com/S680J4Ps and partial code for Fragment A is here: http://pastebin.com/vNGRKf6B . Actually onActivityResult is never called. Any ideas? May 19 13:04:59 I don't want to spam but can you guys star this issue? http://goo.gl/TbmXB ? May 19 13:13:35 vekexasia no spamming May 19 13:13:36 :P May 19 13:13:39 u can get around that May 19 13:13:51 well it's not elegant to use tabhost May 19 13:14:02 for that purpose plus May 19 13:14:10 it's a bad workaround May 19 13:14:19 do you have other workaround? May 19 13:19:59 vekexasia yea, tho i havent used it, i have used tabhost, but no ill effects from it May 19 13:20:17 vekexasia this is for abs tho May 19 13:20:17 http://xrigau.wordpress.com/2012/03/22/howto-actionbarsherlock-mapfragment-listfragment/ May 19 13:20:45 i was going to do that thing lol May 19 13:20:50 Hey all, is Siyah kernel any good? May 19 13:21:14 GuySoft wrong channel/no idea wth ur talking about :) May 19 13:22:16 I'm trying to embed a Gallery into a ListView but i'm not sure of how to go about the adapters and inflaters, does this look correct? why doesn't it do anything? it isn't inflating my rows: http://pastebin.com/8iMfjDRA May 19 13:23:15 Jug6ernaut, its a custom Samsung galaxy s2 kernel. says it solves this bug: https://code.google.com/p/android/issues/detail?id=28036 May 19 13:23:19 gallery.xml is just a tag and rox.xml has several linearlayouts etc May 19 13:23:41 GuySoft like i said wrong chan :), maybe android-root May 19 14:02:56 Guys, should I use .startActivity() to make onActivityResult() work on it? I want to make some utility class that starts activities and waits for some result, but I dont want to show such 'empty' activity. May 19 14:04:02 so u want service? :) May 19 14:06:07 No. Just some utility class. For ex: LoginManagerClass that do Logins by few different ways. One way — one activity, that LoginManager should start. This activities will return some info that LoginManager should rerutn to caller. All caller do is call 'loginManager.login()' method. May 19 14:06:19 Some kind of that... :) May 19 14:08:07 its why not in a service? and if u need some input or user activity May 19 14:08:12 its in activities May 19 14:10:36 I dont want user see LoginManager activity. There will be one activity (main) with one button (login). User clicks on button, onClick handler contains "loginManager.login()" call. LoginManager will check: if we have ehough info, than we will do login by requesting simple URL, if no, he should start an activity, where user should pdo additional actions. May 19 14:11:02 *pdo=do May 19 14:11:17 yes i understand May 19 14:11:31 and loginmanager is part of a another activity May 19 14:11:52 and u cant access from outside, right? May 19 14:13:25 Well... Right now it is so. He need a 'parent' activity to be able call .startActivity() method. I want to get rid of this. I suppose to inherit LoginManager from Activity and asking about working onActivityResult() method. May 19 14:13:42 Will it work if LoginManager never starts? May 19 14:13:51 No May 19 14:14:12 That's sad :( May 19 14:19:04 Is support package open sourced? May 19 14:20:10 urgh... PNG banding on gradients... how to stop this from happening? May 19 14:24:01 can I force a to occupy as much space as it would when its text content would span exactly 2 lines? May 19 14:24:38 without touching the text content or height of the widget itself that is May 19 14:38:08 if i have an asynctask grabbing some data soon to update the UI, and for whatever reason the UI gets reloaded (such as orientation change), i'm getting an exception thrown in LogCat (doesn't crash the app). May 19 14:38:23 seems to start with: W/PhoneWindow(17436): Previously focused view reported id 16908298 during save, but can't be found during restore. May 19 14:44:35 ok, i got rid of that line by giving all of my layouts ids, but i'm still getting "D/PhoneWindow(18293): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView@4093b9d8 has no id." May 19 14:48:44 hi May 19 14:50:27 does anyone know if it is possible to prevent some/all resources from being merged on a project when using an Android Library Project ? May 19 15:49:19 SimonVT, are you here? May 19 15:52:07 Maybe ;d May 19 15:52:57 hm May 19 15:53:12 http://blog.gsmarena.com/samsung-galaxy-s-iii-gets-rooted-ahead-of-launch/ May 19 15:53:15 nice May 19 16:14:24 I have the dumbest question. How do you see the actual error message when debugging with eclipse? It keeps trying to load the source for internal Java methods, I just want the error message. May 19 16:15:07 logcat May 19 16:15:56 thanks May 19 16:16:54 is there a secondary comment type in xml besides I want to comment out a whole section that already has comments May 19 16:18:10 Nope May 19 16:18:24 kk May 19 16:18:56 i just talked tosomeone who tried to give a standard north american 10 digit number two digits at a time May 19 16:19:05 so instead of the sensible aaa-bbb-cccc May 19 16:19:16 it was aa-ab-bb-cc-cc May 19 16:19:25 and then when she was unsure of the last seven digits, bb-bc-cc-c May 19 16:19:32 i dont think im getting a call back May 19 16:20:54 lol May 19 16:21:13 theres a rhythm for giving out info orally May 19 16:21:41 well theres also the problem that i had to give her my number like >9000 times before she got it right May 19 16:23:07 screw with your customers...tell them "write down this code: Zero, I, One, Oh, I, I, Oh, Zero, lowercase L" May 19 16:23:24 After doing Linerlayout.add(new CustomLinearLayout()), is it possible within the child to refer to the parent view? May 19 16:24:15 Maybe she just didn't want to talk to you ;d May 19 16:27:05 woohoo, Admob crossed the $20 mark... big money, here we come! May 19 16:28:22 Can the ListView row layout only contain a single TextView field? Can I not have it contain a HorizontalLayout with two TextViews for first name and last name for example? May 19 16:28:30 now grandma can have her operation! May 19 16:29:24 with ad based apps, is there a ballpark rule of thumb as to how many users = a dollar? May 19 16:30:45 You can have each row contain whatever views you want May 19 16:31:48 Can you tell my how to make this bind Person.FirstName to the first_name text field instead of the Person object? May 19 16:31:48 ArrayAdapter adapter = new ArrayAdapter(this, R.layout.person_row, R.id.first_name, mFamily.People); May 19 16:34:14 at the level of a specific View, how to remove it from its parent? May 19 16:34:37 I can not, but I can give you this link to a custom adapter sample: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html May 19 16:37:52 Thanks Simon. I think I may be doing this the hard way. I have a List that contains FirstName and LastName and I just want to bind it to a ListView. May 19 16:39:00 Might as well learn how to make a custom adapter May 19 16:39:38 ListViews can be tricky, and making your own adapter will give you a better understanding May 19 16:40:21 :-) Can't argue with that, it's just a big learning jump for the second screen in my first app and being new to Java. May 19 16:40:31 Also, watch the world of listview from Google IO 2010 May 19 16:40:54 Will do May 19 16:45:58 I always use the NATO alphabet on phone calls May 19 17:09:57 there is also a listview one from 2011 May 19 17:19:38 t0mless, there was a lisview talk at 2011? May 19 17:19:55 pretty sure May 19 17:20:03 im pretty sure not :S May 19 17:20:06 romainguy did it, talked about using a viewholder May 19 17:20:10 that was 2010 May 19 17:21:56 hrm... could have sworn I saw two different ones May 19 17:22:02 Does the ndk android c compiler handle objective c? May 19 17:22:30 oh god May 19 17:22:58 lol May 19 17:23:09 "Can I just compile my iOS for android using the ndk" May 19 17:23:13 is what you meant to say May 19 17:23:29 answer: no May 19 17:23:33 Yes ... has anyone done the equivalent of wine for compiling ios apps on ndk :) May 19 17:23:42 answer: no May 19 17:23:44 Is there a community effort toward it May 19 17:24:06 no May 19 17:24:12 Why not May 19 17:24:21 how do you make a 320x480 design work on every screen? you cant May 19 17:24:27 the OHTER WAY (android to ios) might be possible May 19 17:24:32 but ios to android is going to look like shit May 19 17:24:39 also, it will LOOK LIKE AN IOS APP May 19 17:24:43 which also means it will look like shit May 19 17:24:51 Well you could droidify it May 19 17:25:08 You could take the apple screen resolutions and add a little border filled with sy May 19 17:25:13 Fileled with May 19 17:25:29 Some default system notifications or something May 19 17:25:33 "droid" is a trademark owned by george lucas and licensed by verizon May 19 17:25:43 ceti331_, that would look like ass May 19 17:25:50 i bought a bigger screen phone because i want my apps to be BIGGER May 19 17:25:51 yes but better than nothing May 19 17:25:55 not so you can fill them with a dumbass border May 19 17:26:08 Pick the resolution that is closest and scale then May 19 17:26:18 Between iphone and ipad you have many options May 19 17:26:22 they can May 19 17:26:30 people have tried May 19 17:26:32 They cant be that far off May 19 17:26:32 it looks like ass May 19 17:26:33 dont do it May 19 17:27:00 Hell why not just recomend thiat people buy screens with appleesque resolutions May 19 17:27:09 fuck that May 19 17:27:23 because i dont like apple sizes/resolutions May 19 17:27:23 why do we have to conform to iOS limited screen resolutions May 19 17:27:26 3.5" ???? wtf May 19 17:27:33 admitedly i like having a pc tv esque reolution for my phone May 19 17:27:33 i like my 4.65" screen May 19 17:27:37 i like my 720p resolution May 19 17:27:41 1280x720 May 19 17:27:48 Yes May 19 17:28:00 But objective c plays better with low level code imo. May 19 17:28:13 Learn to use the framework May 19 17:28:16 No May 19 17:28:20 give me one reasonable example where you need low level code May 19 17:28:20 :) May 19 17:28:22 then go make iOS apps May 19 17:28:24 then gtfo May 19 17:28:26 i do May 19 17:28:35 I would like to do both..... May 19 17:28:42 [13:28:14] Learn to use the framework May 19 17:28:58 there's no shortcut May 19 17:29:05 you can have a shitty android app, or you can learn to build android apps May 19 17:29:14 well i guess there's another option: no android app May 19 17:31:35 "give me one reasonable example where you need low level code" ... Sure, making UI is very much asuited to managed languages and scripting languagaes but at the end of the day there is a propper computer in there , and real processsing needs low level code, and no, not every problem has been solved. There is advancement to be had in image recognition .. Ar.. Video.. Speach ... Smething as basic as text.. Natural lang May 19 17:31:36 processing... Detabases oving do distrributed object graphs (see giant globsl graph) ... So... Relly .. I want to keep low level coding skills going. going May 19 17:32:18 none of that needs "low level code" May 19 17:32:25 As the arm platform grows it handles more, the are all the crossover uses to consider.. Is it a phone? A laptop ? (transformer prime) a game console? Google tv May 19 17:32:57 Effficient code means efficient battery useage. .. And reducing fossil fuel use.... May 19 17:33:15 Which is all done with the framework May 19 17:33:28 so you think you can write algorithms better than countless engineers at google? May 19 17:33:30 Er, the framework is perfect then????????? May 19 17:33:42 The framework handles everything a computer will ever do ??????????!!!!!! May 19 17:33:55 when it doesnt, you still dont need low level code May 19 17:34:05 Engineeers at googles are mortal coders just like me. May 19 17:34:21 but they're better than 99% of app devs May 19 17:34:38 Im not an app dev, my experience is game consoles May 19 17:34:51 Where i have made millions from my low level skills already thanks May 19 17:34:54 but they're better than 99% of devs May 19 17:35:03 then why are you working? May 19 17:35:12 why are you coming in here May 19 17:35:21 when you could just pay someone qualified to do it for you May 19 17:35:36 rather than you running around like a headless chicken May 19 17:36:08 I am doing app dev as a hobby if you havent guessed May 19 17:36:19 so then go learn how to do it May 19 17:36:25 rather than looking for stupid shortcuts May 19 17:36:31 and making stupid assertions May 19 17:36:35 It should be possiblew May 19 17:36:48 to run the same code on such similar chips :) May 19 17:37:19 sure, put a dalvik vm on the iphone May 19 17:37:21 and it will run just fine May 19 17:37:36 but it will NOT LOOK GOOD if you do some shitty auto-port from iOS to android May 19 17:38:41 it should be possible to write an ios program in a way that is adaptable to different screeen sizes since there are already apps that run on phones and pads with slightly diffent res not justnneat scalings May 19 17:38:49 Which acutal NDK release has the OpenSL stuff in it? May 19 17:39:05 11? May 19 17:39:17 er, 7, I mean May 19 17:46:42 I'm trying to get a LinearLayout to give half its space to one ScrollView and half its space to another. May 19 17:46:53 JoshDreamland layout_weight May 19 17:46:57 Issue is, ScrollView doesn't seem to have a mechanism for setting max_h-- May 19 17:47:03 thanks again, t0mless May 19 17:51:49 t0mless: I'm not using an XML file to describe the UI; I'm adding the widgets manually using addView(). At which point do I specify the weight? May 19 17:52:02 Is it part of LayoutParams? May 19 17:52:23 I believe so, for LinearLayout.LayoutParams May 19 17:53:07 Hi, I have an application that wants to display an alert dialog when the countdown timer finishes. It works fine when the application is in the foreground, but when it is in the background, the dialog fails to display and crashes. Here's the log cat output: May 19 17:53:08 http://bit.ly/M55jGm May 19 17:53:08 Any ideas on how to fix it? I was thinking of an intent but couldn't figure out the flags. May 19 17:53:20 All it seems to have is FILL_PARENT and WRAP_CONTENT May 19 17:53:43 f2prateek I think you need a special system permission to show a dialog while in the background May 19 17:53:57 aha May 19 17:54:20 JoshDreamland have to use the correct params for the correct layout May 19 17:56:07 t0mless: Thanks much. Works fantastically. May 19 17:56:27 t0mless: any idea what permission? the only ones background related seem to be KILL_BACKGROUND_PROCESSES and SET_ALWAYS_FINISH May 19 17:56:48 notice how I said system permission? May 19 17:57:28 http://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW May 19 17:57:37 oh my bad May 19 17:57:38 not available to non-system apps May 19 17:58:02 though, by the wordign May 19 17:58:04 wording May 19 17:58:07 I might be wrong May 19 17:58:22 Can anyone help me with this? Readme was helping earlier, and I don't understand why this isn't working: http://pastie.org/3936452 May 19 17:58:22 and it might not be a system permission May 19 17:58:34 Lines 16 and 17 throw nullpointers May 19 17:59:10 But by then the view should exist, along with those buttons inside of it May 19 17:59:20 put a breakpoint May 19 17:59:25 see why convertView is null May 19 17:59:39 also, what is si? May 19 17:59:48 t0mless: kinda seems like what I wanted, will try that May 19 18:00:06 JavaDog you never define convertView in your if condiditon May 19 18:00:31 so you should be using si.findViewById or setting convertView to something May 19 18:02:19 Oh, right May 19 18:04:00 I changed them to Button d = (Button) si.findViewById(R.id.description_button);, but the setOnClickListener line is crashing now May 19 18:04:42 still with a NPE? May 19 18:04:54 yeah May 19 18:05:06 so then find out why your findViewById is returning null May 19 18:06:30 I'm trying to embed a Gallery into a ListView but i'm not sure of how to go about the adapters and inflaters, does this look correct? http://pastebin.com/CmTJCTHJ May 19 18:06:42 It isn't inflating my rows correctly May 19 18:07:27 Gallery into a ListView May 19 18:07:34 * t0mless isn't even going near that May 19 18:07:38 it looks like there is a conflict between adapter.add(c) and cGallery.setAdapter( newGalAdapt ) May 19 18:07:43 t0mless yesh May 19 18:08:13 t0mless for horizontally scrollable elements May 19 18:09:00 i've also been playing around with myGalleryAdapter newGalAdapt = new myGalleryAdapter( getCurrentActivity() ); May 19 18:09:46 it used to be this, but sice i'm callig it from my adapter now i think it should be TockitActivity.this or getCurrentActivity() May 19 18:10:01 i algo tried with null and it didn't work obvoiuslly May 19 18:11:58 just hold a reference to your context inside your adapter May 19 18:11:59 and use that May 19 18:13:49 ddreamer0: listviews scroll vertically... and are not general-purpose scroll containers... May 19 18:14:34 I don't understand why an ArrayAdaptor requires any kind of view at all, other than maybe the ListView I intend to use it in. May 19 18:14:52 adapters aren't just for listviews May 19 18:15:18 All I need is something to make my list display some object.toString() May 19 18:15:27 the whole point of an adapter is to provide data and information on how to display that data to any type of AdapterView May 19 18:16:00 you can just use the android.R.id.simple_list_item as the view then May 19 18:16:39 oh, that's what R was in the examples May 19 18:16:41 pragma- a listview is comfortable because it manages all the elements ans allows to scroll them vertically May 19 18:17:05 i guess i could do it with a scrollview too but this seemed more logical May 19 18:18:20 t0mless i don't understand exactly what you're proposing, how would you do this, what would you change or what approach would you take ? May 19 18:19:03 ddreamer0: you said you were using the listview for horizontally scrollable elements? May 19 18:19:12 he's using gallary for that May 19 18:19:15 gallery May 19 18:19:26 though HorizontalScrollView might be easier May 19 18:20:08 What, each individual row in the listview has its own unique horizontal scroll? May 19 18:20:12 yeah im using gallery May 19 18:20:13 ddreamer0 see how you take a Context as the constructor for your gallary adapter? May 19 18:20:20 do the same thing for your list adapter May 19 18:20:29 i have a working listview and a working gallery May 19 18:20:31 then hold on to the reference, and use that to init your Gallery adapter May 19 18:20:49 t0mless: This is how I'm setting the ID of my button... is it incorrect? http://pastie.org/3936526 May 19 18:21:04 the gallery just scrolls elements of the kind that i had in my listview, horizontally, so i can show several in each row scrollig horizontally May 19 18:21:08 R.id.description_button is defined in res/ids.xml May 19 18:21:22 t0mless: I don't have anything under R.id or R.layout. May 19 18:21:37 JavaDog why aren't you just definint the button in xml? May 19 18:21:44 defining May 19 18:22:16 It's within a list item, I don't know if that would work May 19 18:22:24 Yea May 19 18:22:30 you can define the list item layout in xml May 19 18:22:40 It would work for this? http://i.imgur.com/tWVDf.png May 19 18:23:02 Would it make any difference, though? May 19 18:23:32 JavaDog: imo, the gradient on the list dividers ruins the chalkboard effect, if that's what you were going for May 19 18:23:39 t0mless ok cool i'm going to try with that May 19 18:24:08 i was using an empty constructor: May 19 18:24:17 JavaDog: you may want to consider fading to green instead of to dark gray May 19 18:24:19 CanalAdapter() { super(TockitActivity.this, R.layout.gallery, model);//antes: super(TockitActivity.this, R.layout.row, model); May 19 18:24:21 or not fading. May 19 18:24:32 pragma-: That's just how it looks in the 1.6 emulator May 19 18:24:36 should i remove that? May 19 18:24:43 how do i change the displaying name of an widget? May 19 18:24:43 I didn't set those May 19 18:24:54 well, maybe you might want to :) May 19 18:25:54 feature-creep! May 19 18:26:16 Just when you think you're done with an app, one little idea comes in that spawns 10 more feature ideas. May 19 18:26:29 t0mless: when trying to replicat the other adapters constructor i get this error msg: Implicit super constructor ArrayAdapter() is undefined. Must explicitly invoke another constructor May 19 18:28:16 so use your new constructor May 19 18:28:19 pragma-: This is how it looks on ics, ignoring the volume thing http://dl.dropbox.com/u/13228613/Screenshot_2012-05-19-14-27-06.png May 19 18:28:19 instead of the empty one May 19 18:28:44 I added the same entries to our XML as in the example, and there is still nothing under R. May 19 18:29:39 t0mless: doesn't let me, it looks like this but i get that error msg May 19 18:29:57 public CanalAdapter(Context c) {context = c; } May 19 18:30:45 t0mless: Would it make any difference to define my buttons in XML vs. what I have already? I don't mind leaving it as it is as long as it will work the same way May 19 18:33:57 t0mless ok i had to convert it into a BaseAdapter for it to work May 19 18:34:19 and add the getCount,getItem and getItemID for it not to complain May 19 18:34:24 this conversation is still going on?!? May 19 18:34:31 and finally i acomplished it but the app crashes May 19 18:35:55 JakeWharton and how would you do this ? May 19 18:36:11 can i avoid using 2 adapters ? May 19 18:36:38 I didn't mean you May 19 18:36:39 but May 19 18:36:43 ah lol ;) May 19 18:36:49 any suggestions anyway? May 19 18:36:50 I'd probably just write something custom May 19 18:37:04 t0mless: tried the permission but still getting the same error log http://bit.ly/M55jGm. seems to be some problem with the handler or onSaveInstanceState May 19 18:37:15 mmm don't think i'm ready for that still a noob May 19 18:37:21 JakeWharton: You mean me? May 19 18:40:15 any way to bring an application running in the background to the foreground? May 19 18:40:35 It's driving me insane May 19 18:42:35 f2prateek just using that permission won't let you display a dialog May 19 18:43:19 it will let your app show a window with type TYPE_SYSTEM_ALERT May 19 18:43:53 I think what you're trying to do is attach a fragment to the window when your app is paused May 19 18:43:57 which just... won't work May 19 18:44:13 you could also make a new activity with a dialog theme, and just show that activity May 19 18:45:40 t0mless: ok did what you suggestes and it's looking like this, but it crashes :( : http://pastebin.com/CmTJCTHJ May 19 18:47:04 "but it crashes" isn't good enough explination May 19 18:49:11 I'm trying to embed a linear layout in another linear layout. I have a map view. If I put embeded layout BEFORE mapview it works. If I put it AFTER it doesn't? Why and what should I do? http://pastebin.com/WDqmWk2a May 19 18:49:43 JakeWharton: Is there any reason why a findViewById wouldn't return a view created this way? http://pastie.org/3936526 May 19 18:49:56 I've defined that ID in res/ids.xml May 19 18:50:14 res/values/ids.xml * May 19 18:50:54 i don't see why it wouldn't May 19 18:51:04 as long as buttons is in the view hierarchy May 19 18:51:10 or your just calling it directly on buttons May 19 18:51:12 *you're May 19 18:51:15 damnit May 19 18:51:44 t0mless your right, it crashess with a nullpointer exception on this line: cGallery.setAdapter( newGalAdapt ) May 19 18:51:55 the buttons are within their own linearlayout which is then added to the... hang on let me just post the source May 19 18:52:06 but i suspect it's because of the myGalleryAdapter newGalAdapt = new myGalleryAdapter( context); May 19 18:52:14 beacuse of the context that i just inserted May 19 18:52:26 why is cGallery null? May 19 18:52:27 http://pastie.org/3936664 May 19 18:52:28 I bet it's because cGallery is null May 19 18:52:50 CustomGallery cGallery = (CustomGallery) findViewById(R.id.gallery); May 19 18:52:52 I was thinking, maybe it's because the buttons are inside their own linearlayout "buttons"? May 19 18:52:57 you should be doing canalView.findViewById May 19 18:55:56 t0mless like this ? CustomGallery cGallery = CanalView.findViewById(R.id.gallery); May 19 18:56:34 only if the view you inflated is CanalView May 19 18:56:39 but it looked like it was canalView May 19 18:57:20 t0mless where is cGallery null ? in the if statement ? May 19 18:57:32 All right, last thing that can go wrong, I think: Our listview is the last entry in our layout. It has 50% of the screen at its disposal, but it only uses 20%, and clips everything after that. No idea why. The bar it renders at the bottom gets clipped, too. May 19 18:57:33 yea May 19 18:57:40 CustomGallery cGallery = (CustomGallery) findViewById(R.id.gallery); would return null May 19 18:57:49 unless R.id.gallery is in your main activity layout May 19 18:57:54 after we add items to it, I mean. Do I need to tell the layout to rethink its dimensions? May 19 18:58:04 Gotta go, oh well May 19 18:58:09 thanks guys May 19 18:58:36 Heay May 19 18:58:44 JoshDreamland: As long as you don't wrap_content on your listview all should be good May 19 18:58:47 Does Android 2.3 have OpenAL? May 19 18:58:50 Or OpenSL? May 19 18:58:51 hmm May 19 18:58:56 t0mless yeeahhh May 19 18:59:01 oh wait May 19 18:59:07 Do list views have their own scrollviews? May 19 18:59:12 yeah it was canalView not CanalView fuck ;) May 19 18:59:17 Er, yeah, ListView is scrollable May 19 18:59:21 t0mless beautifull! May 19 18:59:22 thanks May 19 18:59:32 gotta run but i'll be back thanks 1000! May 19 19:00:55 Yay, all working. Thanks much, guys. May 19 19:01:51 this is kinda a nice font http://www.google.com/webfonts/specimen/PT+Mono May 19 19:02:03 (fixed width, for programming) May 19 19:05:07 http://gigaom.com/mobile/why-google-needs-the-motorola-deal-for-tablets/ May 19 19:11:56 now i am using eclipse, but why there is not output from logcat view? May 19 19:12:13 are you in the wrong tab? May 19 19:12:41 Snuffel in the right tab May 19 19:20:45 return new CursorLoader(getSherlockActivity(),HousesProvider.CONTENT_URI, projection, null, null, null); --> Type mismatch: cannot convert from CursorLoader to Loader May 19 19:20:47 why? May 19 19:21:01 Google's example does this code... May 19 19:21:58 casvah: what does your method want to return? May 19 19:22:14 Loader May 19 19:22:23 there you go May 19 19:22:29 class implements May 19 19:22:29 LoaderManager.LoaderCallbacks May 19 19:22:30 apparently that's not the same May 19 19:22:41 and the example has the same return type May 19 19:23:11 http://developer.android.com/guide/topics/fundamentals/loaders.html May 19 19:23:16 onCreateLoader() example May 19 19:25:19 Wrong imports I bet May 19 19:25:26 hi Snuffel~ May 19 19:25:29 There's both a framework loader and a support lib loader May 19 19:25:38 And a framework cursorloader and a support lib cursorloader May 19 19:25:46 checking May 19 19:26:17 heh May 19 19:26:28 thanks SimonVT May 19 19:26:35 cursorloader was wrong library May 19 19:32:10 has anyone seen a nice CursorLoader type class that does not use URI notation ? something useful for a non-content provider setup May 19 19:32:17 i could write my own May 19 19:32:28 no May 19 19:32:37 if you want to use CursorLoader you have to use content provider May 19 19:32:49 otherwise write your own and extend from AsyncTaskLoader May 19 19:33:00 yeah … t0mless didn't you try that ? May 19 19:33:20 Yea, I've done it May 19 19:33:20 http://www.trolino.com/image?id=20417 May 19 19:33:46 t0mless: happy with the results ? May 19 19:33:48 made a specific loader for loading info from a DB though, not abstracted May 19 19:33:52 yea, it works great May 19 19:33:55 ok May 19 19:34:05 hey guys...someone on stackoverflow had a good suggestion to my problem, but didn't quite fix it yet...please can you look at it and see if you know? http://stackoverflow.com/questions/10668067/linear-layout-embeded-in-another-linear-layout May 19 19:34:29 pragma- HA... my mom sent that to me a few days ago May 19 19:34:45 your mom forwards spam too?! May 19 19:34:54 Yea :-/ May 19 19:35:00 she calls them "jokes" May 19 19:35:00 GeeksOnHugs: well, yu have your map view as fill_parent May 19 19:35:10 I regret ever showing her how to use IM clients May 19 19:35:23 its been a few months since i did anything xml-layout related, so i am getting rusty :) May 19 19:35:28 she's always getting into drama with her friends who always use "and remove me from your mailing list" as a insult May 19 19:35:47 then 2 days later "add me back, best friends forever!" May 19 19:36:59 g00s per the suggestion on stacckoverflow I changed it to wrap content...that made it look like it kind of works except the map is a sliver in the DESIGNER....but at run time it still looks like wrap parent May 19 19:37:37 GeeksOnHugs: you might have to assign weights for rations; or have one have a fixed height May 19 19:37:55 i'm a total XML n00b. A few days ago it coulda been as good as mandarin chinese May 19 19:38:01 like 50/50, or the bottom view = 40DP while the map takes the rest May 19 19:38:39 relative layout always makes me feel like a noob - almost every time i use it, it doesn't do what i expect May 19 19:38:45 weights for rations? What's a ration? Fixed height might be fine, I don't have to have it out the door ready, but just so I can move ahead with development May 19 19:38:51 ratio May 19 19:39:36 OK...heh...thanks bro, I'll give it a whirl May 19 19:54:12 i added an isCancelled() check into my asynctask and made it so that nothing executes on the ui thread if the asynctask is cancelled. in my onDestroy() activity method, i'm cancelling the asynctask... May 19 19:54:29 why do i still get an exception thrown to ddms when i change screen orientation while the async task is running!? May 19 19:56:01 Depends what the exception is May 19 19:56:41 i guess it might be because onDestroy() isn't getting called on an orientation change... May 19 19:57:09 nm, it is. LogCat just isn't refreshing in a timely manner May 19 19:57:33 see if i can make it happen again... May 19 19:57:44 doesn't crash the app. just throws it to logcat May 19 19:58:48 http://pastebin.com/b27zjreJ May 19 19:58:51 there's the exception May 19 19:59:43 You are probably managing dialogs yourself, instead of using showDialog/dismissDialog or DialogFragment May 19 19:59:52 b1n0ry: that doesn't even seem like a good practice anyhow May 19 20:00:21 you did read hackbod's way of doing this, right? good. do it like that. May 19 20:00:35 g00s, yeah, and i don't see what i'm doing that's all that different May 19 20:00:56 well for one, the activity is clearing its reference, not canceling the task May 19 20:01:00 big difference May 19 20:01:14 i have no idea what you just said May 19 20:01:20 i mean... i can read the words May 19 20:01:36 why is "taskname.cancel(true);" not cancelling the task? May 19 20:01:51 this doesn't do what you think it does May 19 20:01:57 i'm sorry, i've just been fighting this now for 2 days May 19 20:02:04 and i'm getting extrordinarily frustrated May 19 20:02:15 sometimes it might, sometimes it might now. depends on how the task is designed, and where / how it is blocking May 19 20:02:26 here, let me post the code... May 19 20:03:06 http://pastebin.com/VfxffzNR May 19 20:03:29 and yeah, i know... don't manipuate 'list' directly in doInBackground()... but never got a clear answer why not other than "not best practice" and it works May 19 20:03:41 Wewt, I was right May 19 20:03:41 and that's not really the issue i'm fighting here May 19 20:04:40 SimonVT, i literally copied the dialog code from several stackoverflow content articles and code examples May 19 20:04:49 said that was the way to do dialogs May 19 20:04:51 Those people are wrong May 19 20:04:58 those people are many May 19 20:05:04 Always use showDialog/dismissDialog or DialogFragment May 19 20:05:08 ^ May 19 20:05:17 Those people probably never tried to change orientation on their phones May 19 20:05:43 can't use fragments as i'm trying to be android 2 compatible May 19 20:05:56 yes you can. May 19 20:06:06 compatibility package works just fine w/ fragments May 19 20:06:07 i thought this was already discussed b1n0ry May 19 20:06:28 g00s, possibly, but probably in the context of me asking a different, unrelated question May 19 20:06:36 meaning unrelated to fragments May 19 20:06:51 and if i'm not looking for an answer related to fragments, i probably am not absorbing the content of the answer May 19 20:07:04 Support package contains fragments, and it works back to 1.6 May 19 20:07:50 meaning, if i'm asking my mechanic how to maintain my transmission and he tells me the mating habits of sea turtles, if i was in "transmission-related absorption mode" i'm not going to retain it. so later, when the topic comes up and he says "we've already discussed the mating habits of sea turtles" i'll be like "we did?" May 19 20:07:58 my brain throws out that kind of info May 19 20:08:23 instead of trying to slash and burn your way through this, it might be good to learn java and study the asynctask example i gave you. May 19 20:08:44 of course your brain hurts, you keep bumping your head May 19 20:09:00 and how to learn java without writing a java app? i don't learn from reading. i learn from doing. May 19 20:09:09 so... i'm writing a java app May 19 20:09:18 i see May 19 20:09:43 pick up tea first java, or thinking in java May 19 20:09:47 really, it's not like i expect to be writing an app that's going to make a ton of money or that i'll probably even distribute. i'm doing this app for my own use and so i learn how. May 19 20:09:49 *head first java May 19 20:09:54 http://www.pcpro.co.uk/blogs/2012/05/17/revealed-the-military-standards-and-robots-hp-uses-to-test-its-laptops/ May 19 20:10:09 adapt this testing for phones and stuff May 19 20:10:24 this rather is my learning app :) May 19 20:10:30 i expected to bump my head a bit May 19 20:11:07 but... is it possible, SimonVT, that my whole issue is stemming from the way i'm handling dialogs? May 19 20:11:15 Yes May 19 20:11:20 if that's the case, i'll change how i'm handling dialogs May 19 20:11:24 It's exactly why your issue is happening May 19 20:11:43 so the "loading..." dialog is up and the orientation changes May 19 20:11:54 which is crashing the loading dialog? May 19 20:17:06 Your Activity is being destroyed, but your Dialog, which is being managed by the AsyncTask, isn't May 19 20:17:34 Yay, leaked window May 19 20:20:32 considering that i only half way understand the concept of fragments, i'm lookinginto showDialog/dismissDialog for now. i'll "graduate" to fragments at some point May 19 20:21:14 b1n0ry: then put this job in an intent service and have the activity manage your dialog the old way May 19 20:21:44 you aren't going to get the retainnonconfiginstance stuff right May 19 20:22:14 DialogFragments are the win May 19 20:22:23 don't go making the mistake of thinking about them as UI objects though May 19 20:22:36 he's resisting fragments and all of that stuff, so i'm just recommending the old way May 19 20:23:00 which is still perfectly fine May 19 20:23:24 resisting is not a valid excuse for ignoring May 19 20:24:51 i'm not really 'resisiting' so much as trying not to absorb too many new concepts so fast that i burn myself out. May 19 20:25:00 i want to learn them, really. just not sure i'm ready. May 19 20:25:33 eventually, like most new technologies i learn, it will all eventually 'click' May 19 20:26:37 heck, i'm still figuring out why tabs are deprecated. i rather like them, not sure what the problem is with them. May 19 20:26:48 they're not May 19 20:26:55 but ActivityGroup is though May 19 20:27:09 a is still perfectly acceptable May 19 20:27:25 so here's a question, seriously... is it because the "new" ways are easier to work with -or- because they've added more features (aka more "complicated")? May 19 20:28:02 it's because there are better, more flexible design patterns and UI frameworks to use May 19 20:28:03 just say "easier to work with" and we can all move on happily. May 19 20:28:09 i.e., the action bar May 19 20:28:15 i can see learning the new ways if they've made enhancements in usability. but if it's just because some core developer got that 'would be neat if...' stick in his butt. May 19 20:28:26 *i mean, "e.g." May 19 20:28:34 (i've been there, i'm a developer - granted, not java - and i gold plate the heck out of stuff) May 19 20:29:03 hi there, developer. i'm a programmer. May 19 20:29:19 i'm not, by any stretch May 19 20:29:28 i'm a code monkey May 19 20:29:32 i tailor packaged applications for a living May 19 20:29:45 writing from the ground up is rather foreign to my company May 19 20:33:42 "Google's Motorola buyout approved by China" May 19 20:34:18 "Chinese regulators attached a major stipulation to their approval: Google must keep Android available for free to anyone who wants to use it for at least the next five years." May 19 20:35:27 JakeWharton: whats on the plate for abs? is there a roadmap? May 19 20:35:40 Ask Google May 19 20:35:48 if android starts requiring a license fee, they'd just fork their own variant May 19 20:35:56 pragma-: they already did May 19 20:35:57 many vendors are still perfectly happy with 2.2 May 19 20:36:23 fix bugs May 19 20:36:34 merge Jelly Bean May 19 20:36:36 fix bugs May 19 20:36:39 merge K release May 19 20:36:40 fix bugs May 19 20:36:44 merge L release May 19 20:36:46 repeat May 19 20:36:46 :) May 19 20:36:48 are you gonna fix any bugs? May 19 20:37:59 i view abs as a wrapper around native stuff or the compat lib, wouldn't bugs be in either one of those - and in that case, what can you do ? May 19 20:38:05 maybe i don't get it May 19 20:38:31 it's a back port of the action bar May 19 20:38:59 it has nothing to do with the support library May 19 20:39:33 the action bar is dependent on a myriad of features introduced to the platform that exist in a much larger scope than back porting a few drawables May 19 20:39:34 hence, bugs May 19 20:39:56 ok, from the website i get confused by "Since the library is an extension of the official support library you must also have the android-support-v4.jar referenced by your project." May 19 20:40:11 that's for idiots May 19 20:40:18 :) May 19 20:40:27 why don't you just use it and find out May 19 20:40:43 learn by doing! May 19 20:41:01 i was going to try it out :) May 19 20:41:27 g00s: basically, if you take his abs wrapper and use it in your code, you could be introducing a nullpointerexception somewhere where there wasn't one in google's code :) May 19 20:42:19 but it gets rid of two May 19 20:42:23 so it's a win! May 19 20:42:58 I do think that taking two steps forwards and one step backwards is more rythmymatic and fun than constantly trudging ahead at the same rate May 19 20:43:01 * pragma- nods. May 19 20:43:27 Can someone explain to me how linear algebra is implemented in android? Anything like BLAS/LAPACK/ATLAS and what about FFTW? May 19 20:43:34 rhythym.... wat May 19 20:44:02 rhythmic? May 19 20:44:30 Some words need more vowels, imo. May 19 20:44:42 mear May 19 20:44:43 moar May 19 20:44:50 i need food May 19 20:46:07 I'm trying to send an Intent and Bundle to a previous activity. Is there a way I can debug my code to know where it fails? How can I know if my destination Activity really receives the Bundle and Intent? May 19 20:46:47 * g00s watches the abs video May 19 20:46:49 is there a kernel channel? May 19 20:46:56 Spanska: you could Log.d the contents and whether they're null, or you could break into jdb May 19 20:47:02 the video is for noobs May 19 20:47:07 g00s you're better than this May 19 20:47:10 * pragma- points at g00s May 19 20:47:20 actually, i'm having a hard time understanding his droning scratchy voice May 19 20:47:25 pragma-: my onActivityResult function in my MainActivity is never called so that's why I'm not sure how to debug this May 19 20:47:38 file > new project May 19 20:47:40 existing sources May 19 20:47:43 pick ABS library folder May 19 20:47:44 next May 19 20:47:46 Log.d ALL THE THINGS! May 19 20:47:52 i just saved you 10 minutes of watching the video May 19 20:47:57 thanks :) May 19 20:48:12 pragma-: where should I use Log.d if that function isn't called?! May 19 20:48:12 SimonVT, seems that showDialog() corrected the issue, thanks. is there a way to use it with a progress dialog? May 19 20:48:17 cd ActionBarSherlock/library && android update project -p . May 19 20:48:22 now you're good to go with Ant May 19 20:49:00 com.actionbarsherlocklibrary4.1.0apklib May 19 20:49:05 now you're good to go with Maven May 19 20:49:12 file > open project, choose library/pom.xml May 19 20:49:15 what about visual studio? May 19 20:49:17 now you're good to go with IntelliJ IDEA May 19 20:49:47 there's a question, pragma-, is there a way to write android apps in visual studio or are we stuck with eclipse? May 19 20:50:03 b1n0ry: you should try IntelliJ IDEA May 19 20:50:09 I use vim and ant, personally. May 19 20:50:21 I must force myself to use git instead of svn for my next project. May 19 20:50:37 yes you do May 19 20:50:45 thanks JakeWharton , i'll check that out May 19 20:50:48 I kind of like using svn revision numbers as versioning, though May 19 20:51:02 straightfoward and linear May 19 20:51:06 eclipse isn't a /bad/ IDE but it does weird little crashes/errors here and there that get a bit annoying having to close and reopen the workspace May 19 20:51:14 eclipse sucks, man. May 19 20:51:19 except normal development isn't linear May 19 20:51:31 b1n0ry: ProgressDialog is also a Dialog May 19 20:51:44 i have visual studio 2010 ultimate, was hoping to plug into that May 19 20:51:47 I'm glad that MAT is available stand-alone. May 19 20:51:48 Just return whatever dialog you want from onCreateDialog May 19 20:51:50 that thing is awesome May 19 20:51:56 +1 May 19 20:53:54 JakeWharton: yeah, I do love gits awesome branching and merging abilities, so easy to test bugfixes/new features and track it all -- and github's fork/clone graphs are nice May 19 20:54:09 git stash has been handy too May 19 20:54:24 yeah I use that constantly now that i'm on a larger team May 19 20:54:42 stash and rebase and pop May 19 21:00:16 SimonVT, thanks, that worked beautifully :) May 19 21:01:05 one last question on that particular topic. is there a way to tell if a particular dialog is currently displayed? sometimes my background process runs so fast, it calls the dismissDialog() in onPostExecute before the dialog from onPreExecute() is fully displayed. May 19 21:01:21 i'd like to check that before issuing the dismiss ;) May 19 21:01:45 it's causing an exception May 19 21:01:45 b1n0ry: does it really matter? May 19 21:01:48 oh, it does May 19 21:01:55 http://developer.android.com/reference/android/app/Dialog.html May 19 21:01:58 yeah,... let me get the exact text May 19 21:02:01 there's probably a useful method in the documentation May 19 21:02:08 That shouldn't matter May 19 21:02:15 As long as you use showDialog and dismissDialog May 19 21:02:23 The framework should be smart enough to handle that May 19 21:02:41 isShowing() might do the trick May 19 21:02:45 SimonVT: apparently, it's not May 19 21:03:04 Strange May 19 21:03:32 05-19 20:45:42.892: E/AndroidRuntime(332): java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog May 19 21:03:45 Ah May 19 21:04:03 that came from rapidly switching the orientation back and forth before it could even get started May 19 21:04:10 Hmh May 19 21:04:27 Meh, I don't know May 19 21:04:31 DialogFragment ftw ^_^ May 19 21:04:33 not that i see that as a "real-world" test... basically, someone dropped a phone and it rolled down a hill or they stuck it sideways on a turntable. May 19 21:04:46 in which case... well... good luck to them in life May 19 21:04:51 Yeah, you'd be surprised the bugs users can surface May 19 21:05:16 oh, i'm not surprised. like i said, i do development for a living. if there's a way to screw something up, they'll find it. May 19 21:05:26 Also, imo, progress dialogs are the lose ;d May 19 21:05:58 JakeWharton, i see isShowing() sounds promising ;) thanks for the 'RTFM' answer, i need that sometimes :) May 19 21:06:18 the docs hold the key, sometimes it can be hard to find May 19 21:06:59 i apologize to you guys, too. i know i've been b----ing and whining over this issue and acting all helpless. i'm not normally like that, i was just getting very frustrated and it was coming out very 'needy' and resistant. May 19 21:07:22 thank you for the help and for putting up with my attitude May 19 21:07:45 * pragma- stares at b1n0ry May 19 21:08:00 not to mention it's 90 friggin degrees in the room that im sitting in... lol. doesn't help 'stay calm' haha May 19 21:08:20 need to go adjust the AC or my rabbit is going to have heat stroke May 19 21:08:30 that last comment made you look 1000% more whiny and helpless than any of your other comments ever did -- in fact, I didn't even really consider you such. May 19 21:08:48 until you made that whiny apologetic comment :) May 19 21:08:52 ok, then ;) May 19 21:08:53 lol May 19 21:09:31 i was reading back over the crap and figured it came out that way May 19 21:10:07 *note to self, don't apologize over the internet. messes with people's heads... May 19 21:10:24 we are all super-heroes on the internet May 19 21:11:26 i may consider this particular "bug" not worth fixing May 19 21:11:37 http://www.theverge.com/2012/5/18/3028207/zte-score-backdoor-vulnerability-confirmed-skate May 19 21:17:44 When sending data through an Intent, do I have to use the same Intent to return data to the previous activity? May 19 21:17:59 actually, i did fix it after all. just moved dialog scope up a bit and did a "if (pd.isShowing()) dismissDialog(LOADING_DIALOG);" in my onPostExecute(); works like a charm. user can roll their phone down a hill away. May 19 21:20:31 when i get this app done, i'm going to go and completely revise it using fragments. May 19 21:20:36 should be ready by then. May 19 21:21:49 right now... i really need a starbucks venti cafe vanilla frappuccino with whip and caramel swirl and a bottle of yeungling. i'll be back in awhile. thanks again. May 19 21:22:31 yeungling? May 19 21:22:40 you from PA? May 19 21:22:43 bottle of youngling sounds like blended children to me May 19 21:22:54 originally, yeah. i'm in ohio now and they started distribution here this year. May 19 21:23:03 awesome, I'm originally from Pittsburgh May 19 21:23:17 not far, i'm from state college area originally May 19 21:23:47 i'm in pitt quite frequently. friends there and on the way back to visit family. i'm in columbus, ohio now May 19 21:24:26 i've got a friend in pitt that's a professional mentalist, pretty slick May 19 21:25:13 im in cincy May 19 21:25:26 they have yeungling here too :P May 19 21:25:48 * g00s is in phoenix; i think the smoke from the fires is getting to me May 19 21:26:02 i'm in cincy somewhat often, too. i visit artie's magic shop there and often go through for software user group meetings in ky. May 19 21:26:06 everyone made a big stink when it started being sold here May 19 21:26:14 wat fire May 19 21:26:17 why? yeungling is awesome May 19 21:26:21 are they burning the marijuana crops? May 19 21:26:33 i mean, they talked about it like it was the new hot shit May 19 21:26:40 no, there were 5 fires a few days ago, i think its down to 3 now May 19 21:26:44 oh, it is... haha May 19 21:26:49 1 lightning, 2 idiot caused May 19 21:27:01 nah, it's just good beer. but plenty of good beers in ohio. May 19 21:28:50 columbus brewing company IPA is tough to beat. scores 96 at ratebeer.com May 19 21:29:03 not an IPA fan May 19 21:29:14 90 shilling? May 19 21:30:14 anyway, brb. caffeine + alcohol makes an awesome combination. May 19 21:31:01 buzz beer! May 19 21:39:52 * g00s is about to do his first merge in git, and is very nervous May 19 21:47:21 its beyond easy May 19 21:47:34 git merge mybranch May 19 21:47:39 done May 19 21:48:48 just trying to figure out whether i should use the -no-ff flag as described here http://nvie.com/posts/a-successful-git-branching-model/ May 19 21:48:58 no May 19 21:48:59 although i don't really use that model *exactly* May 19 21:49:00 git merge branch May 19 21:49:00 done May 19 21:49:09 Didn't you say the exact same thing like 3 weeks ago g00s? May 19 21:49:33 t0mless: probably; i can't make up my mind May 19 21:49:47 so just do it May 19 21:49:51 if you don't like it, revert! May 19 21:50:19 git is a directed acyclic graph so unless you're into the commands that mess with history you can't destroy any work you've already done May 19 21:51:27 what the fuck is -no-ff May 19 21:51:34 t0mless: i remember we talked about --squash, and that was good May 19 21:51:34 well no, i guess i know what that means May 19 21:51:44 i have never done anything other than git merge branchname May 19 21:53:26 cow! May 19 21:53:39 it was you that said you should use git cherry-pick May 19 21:54:06 i'd recommend avoiding cherry-pick like the plague unless it's onto long-running release branches May 19 21:54:32 I hadn't even known about the command until cow talked about it May 19 21:56:26 having the same commit with two unrelated SHAs is bad news if they're on branches you'll eventually be merging May 19 22:03:17 use cherry pick when you're deploying to a release branch or vice versa May 19 22:03:32 blue is the colour, football is the game.. ;) May 19 22:03:48 But no for development branches May 19 22:04:02 for those, you should be rebasing May 19 22:09:18 how do you create a tab in android 4.0.3? Eclipse says that extending tabhost is depracated May 19 22:09:35 pfn: behold! http://www.zebralight.com/H502-AA-Flood-Headlamp-Cool-White_p_91.html May 19 22:09:41 use fragments john_doe_jr May 19 22:10:34 and envelop XX for even more win May 19 22:10:44 do you have an example of using fragments w/ tabs? May 19 22:10:51 nope May 19 22:10:59 1 aa? pretty cool May 19 22:11:06 the compat lib has examples of that john_doe_jr May 19 22:11:09 john_doe_jr: use a viewpager instead of tabs May 19 22:11:22 john_doe_jr, support lib demo does May 19 22:11:58 but their demo is with a tab host May 19 22:12:55 i guess you can just use tab widget, but i've never tried that (or seen an example anywhere) May 19 22:12:56 switching between activitys or views? May 19 22:13:50 can't use tab widget without host May 19 22:14:17 hmm May 19 22:14:18 its a massive pain and lots of. copying. framework code if you want to do that. May 19 22:14:45 Alright so what do you recommend ...I'm confused May 19 22:16:23 john_doe_jr: I recommend a viewpager and viewpagerindicator May 19 22:18:12 there will be a new release of viewpagerindicator either today or monday May 19 22:18:29 bunch of bug fixes, two new indicators, and support for pages with margins May 19 22:20:03 cool May 19 22:36:13 how do I know what methods a Fragment needs if I need to create one? May 19 22:37:07 because http://developer.android.com/reference/android/app/Fragment.html May 19 22:43:04 crazy, http://tech.slashdot.org/story/12/05/19/196202/ms-will-remove-oem-crapware-for-99 May 19 22:44:41 haha, just learned about pcdecrapifier. we need a port to android :/ May 19 22:45:01 of course, that probably won't be possible May 19 22:53:23 i'd just like something to get rid of my sprint activation nag screen on my ZTE May 19 22:53:56 sorry, sprint, don't want your crappy service. just happy with wifi, thank's for the offer. May 19 22:54:34 g00s: unfortunately the biggest crapware on mobile (not just android, but all mobile) is some very low level spyware integrated by OEMs/Carriers that is tough to get rid of, even rooted devices May 19 22:54:44 I can't recall the name off the top of my head May 19 22:55:23 holy shit when did it become 4pm May 19 22:55:26 I need to eat something May 19 22:56:10 when did it become 4pm? almost 2 hours ago. May 19 22:56:17 3 hours ago May 19 22:56:20 it's 7 here May 19 22:56:24 Same May 19 22:56:52 ha, all you suckers not on the west coast May 19 22:56:57 Can anyone explain to me why this might be happening? http://pastebin.com/tLeRP4hi May 19 22:57:08 there is only one time, GMT time :D everybody else is just relative May 19 22:57:15 why your getView is happening? May 19 22:57:19 Line 18 returns a null pointer, but line 19 works perfectly and returns a pointer toa button May 19 22:57:21 Drakonite: yeah, i remember that one May 19 22:57:23 no that ^ May 19 22:57:25 g00s: GMT is wrong. UTC! May 19 22:57:42 UTC is just the scientific name for GMT May 19 22:58:05 of course, Greenwhich is GMT + 1 now :) May 19 22:58:18 there are actually some minor difference between GMT and UTC May 19 22:58:39 JavaDog you don't have to do the whole buttons wrapper thing there JavaDog May 19 22:58:52 as long as the LinearLayout with the buttons is inside the si view May 19 22:58:52 Drakonite: nothing in practice. There's some confusion between british and GMT, though May 19 22:59:08 you should be able to just do si.findViewById() May 19 22:59:12 Oh? It crashes either way but I haven't tested this without it May 19 22:59:13 JavaDog need to see your xml May 19 22:59:13 http://www.youtube.com/watch?v=CZ2UBLl4aqE <-- i am so going to do this May 19 22:59:57 UTC has differences in leap seconds or something to that effect. May 19 22:59:57 That view is created by this code: http://pastebin.com/uZ6VwqJx May 19 23:00:01 actually... you're not inflating xml at all May 19 23:00:12 Yeah, no xml in that view May 19 23:00:34 Drakonite: UTC might have different, updated rules for managing drift, I guess May 19 23:01:19 JavaDog did you define those ids in ids.xml? May 19 23:01:22 Yes May 19 23:01:49 you realize you're not setting the sections button id right? May 19 23:02:06 oh damn May 19 23:02:14 fucking one character May 19 23:02:40 Okay let me try this again May 19 23:02:40 i wish the compiler new what i meant instead of what i actually coded May 19 23:02:44 knew May 19 23:03:32 10 Print "Hello, World"; but what I *meant* was an awesome MMOFPS game May 19 23:04:30 I'm willing to settle for compilers that do what I tell them May 19 23:04:33 * Drakonite kicks the NDK May 19 23:04:39 good point May 19 23:04:48 compilers already make too many assumptions May 19 23:05:00 get a better language ;) May 19 23:05:07 like assuming i know what i'm coding... May 19 23:05:15 they expect way too much of me May 19 23:05:16 Oh my god it worked finally, thank you t0mless I love you May 19 23:05:22 I can't believe I missed that May 19 23:05:31 I more mean that there is a bug in the version of gcc in the NDK that breaks some very valid (and highly optimized) code of mine May 19 23:05:45 I copypasted that line and didn't even notice... May 19 23:06:39 woohoo! my chapter browser is now working using asynctask and handles task interrupts, orientation changes and everything gracefully :) thank you all who helped with that May 19 23:07:18 next stop... implementing a persistent cache to eliminate unnecessary web calls... but... after taking the wife to a nice dinner and figuring out where that leads... so it could be tomorrow or next tuesday until i actually get to that May 19 23:10:23 Dinnertime for me as well, see you later :) May 19 23:10:30 Drakonite: i hope you filed a bug; or that inlining shit is never going to get fixed (if they haven't noticed it by now) May 19 23:10:55 I've seen his bug post May 19 23:11:49 ok; this one has been going on for a while May 19 23:12:08 i think windows phone 8 might come out before this fix ! May 19 23:12:14 and iOS 6 May 19 23:12:18 and jb May 19 23:12:23 maybe even K May 19 23:12:43 I filed a bug, in fact I was asked to do so May 19 23:12:54 the reply on the bug is essentially "do it yourself" May 19 23:12:54 Drakonite: did state see it ? May 19 23:12:58 *ctate May 19 23:13:00 yes May 19 23:13:03 heh May 19 23:13:07 he was the one who asked! May 19 23:13:14 he is the one that asked me to file it May 19 23:13:15 * t0mless goes to forage for food May 19 23:13:55 Drakonite: "do it yourself?" May 19 23:14:06 as in, fix it myself May 19 23:14:10 is that even possible May 19 23:14:11 oh May 19 23:14:11 as in, they refuse to do it May 19 23:14:19 hehe May 19 23:15:04 I tried to be clear that I had looked in to it, but the time and effort involved was more than I can invest in it, yet for someone familiar with the android patches it should be a quick fix to update gcc to 4.5. as in, a single day project May 19 23:15:17 it'd fix a shit load of bugs and shouldn't have any compat issues May 19 23:15:37 t0mless: hey thanks for your help earlier! got distracted by the champion league final sorry May 19 23:15:38 instead they are apparently wasting what I assume is numerous months trying to get 4.6 working, knowing that it breaks some things May 19 23:16:27 Drakonite: so … this should be fixed when they migrate to gcc 4.6 ? May 19 23:17:06 yes, unless they decide the incompatibilities means you can't build with 4.6 for current / older devices May 19 23:23:08 Is there a way for an app to read notifications posted by other apps? What permission would I need? May 19 23:23:19 um, no May 19 23:25:37 :/ I was hoping to write up something that would read out notifications via TTS... I'm guessing that can't be done at the app level and would require something in the ROM May 19 23:26:54 is this just a dead idea or is there another way? May 19 23:27:50 you'd need to mod the notification service, afaik May 19 23:29:07 maybe I could bypass the apps on the phone entirely and go straight to the source, generating my own notifications as it were... but that sounds like a very large amount of very fiddly work May 19 23:29:25 and wouldn't work for data stored only on the phone May 19 23:33:37 canadiancow: are you around ? May 19 23:33:41 lol May 19 23:33:43 i JUST sat down May 19 23:33:47 :) May 19 23:33:56 im also preparing to go grab some food May 19 23:33:57 whatcha need May 19 23:34:12 canadiancow: how do you manage your pro guard mapping.txt file in git ? May 19 23:34:18 or do you even track it in git ? May 19 23:34:21 i just check it in May 19 23:34:33 ok, thx May 19 23:34:42 thats me personally May 19 23:34:47 getting my employer to do the same is...troublesome May 20 00:07:34 badger badger badger ... May 20 00:08:06 canadiancow|work: do you use master as your 'golden' release branch ? May 20 00:08:40 i'm just trying to think through this merge scenario i have, wondering if the way i have it is even a good idea May 20 00:08:55 (the branching strategy, that is) May 20 00:09:03 SNAKE May 20 00:09:12 honeybadger ! May 20 00:10:18 g00s, at work, yes May 20 00:10:22 for my personal stuff, no May 20 00:10:26 actually May 20 00:10:28 maybe i do May 20 00:10:30 MUSHROOM MUSHROOM May 20 00:10:42 havent done much personal stuff lately May 20 00:10:45 and i just switched it from svn to git May 20 00:12:25 My problem with branching att he moment, with git, is that I have two branches, one with a more basic version of the program and one thats more advanced. I sadly don't know how to get changes copying over nicely. May 20 00:12:54 canadiancow|work: ok, so then do you (1) on your dev/release branch, 'build release' and ten the mapping.txt file, merge that into master and deploy - or (2) merge stuff into master and then do 'build release' to ten the mapping.txt ? May 20 00:13:17 i havent done a build of my personal stuff since switching to git May 20 00:13:17 damn it, s/ten/then May 20 00:13:24 and we dont commit the mapping at work May 20 00:13:24 ok May 20 00:13:26 so.... dunno :P May 20 00:13:32 and does it really matter? May 20 00:13:58 ideally i would prefer to build and release what was merged May 20 00:14:17 still trying to understand how git handles these recursive merges, merge commits, etc May 20 00:14:21 * g00s is a noob at git May 20 00:15:34 Jak_o_Shadows: yeah, that is an interesting one. in that case, you use branches for configurations. in your case, one pro and one regular - but in other cases, it could be multiple branches for configurations specific to android versions May 20 00:15:54 but i really don't know how to do it with git May 20 00:16:48 Yeah, they share a lot of code, but not quite enough that I could the class from the original and subclass it or something. May 20 00:16:56 or instead, i guess maybe 2 projects with a common lib May 20 00:17:01 Actually, i probably could do that, but it's a lot of work. May 20 00:19:55 it's not, you should do it May 20 00:33:41 hai May 20 00:33:48 anyone here play with IRdroid? May 20 01:09:51 How do I call the functions in another class from the first one May 20 01:10:14 if it's static Class.method() May 20 01:10:22 if it's not, you need an instance of the class May 20 01:10:29 then do object.method() May 20 01:10:34 hmm May 20 01:10:42 hmm, indeed May 20 01:10:48 so like function.md5() May 20 01:10:52 Mrono: try looking at a java tutorial May 20 01:10:53 it's function.class May 20 01:11:24 also read about Java naming conventions May 20 01:11:38 the method md5 would have to be static for that to work May 20 01:11:53 Mrono: http://docs.oracle.com/javase/tutorial/ May 20 01:12:03 not javase... May 20 01:12:15 wut May 20 01:12:42 er... sorry... May 20 01:12:55 but do ignore java 7 features May 20 01:12:57 yes javase :) /me still having breakfast May 20 01:21:24 Leeds: if i have my text width=72 in vim for soft-breaks (git commit message), how can i 'reflow' it after re-editing and causing things to dangle again ? May 20 01:21:53 try gq? May 20 01:23:00 ok, thanks May 20 01:27:30 "Aborting commit due to empty commit message." … wut May 20 01:30:39 i typed my commit message in vim and saved with :wq :/ May 20 01:31:20 I prefer :x May 20 01:31:30 heh May 20 01:33:56 lulz, and .get/COMMIT_EDITMSG is there with my … commit edit message. what a piece May 20 01:34:03 .git May 20 01:35:03 Nowadays, since i'm using windows, I just use -m "message". However, i did use vim on 'nix May 20 01:35:15 * t0mless uses nano May 20 01:35:17 even on windows May 20 01:35:27 t0mless: you da man May 20 01:35:42 though I do most of my commits with intelliJ now May 20 01:36:13 since it's convient and easy May 20 01:36:31 all right, so i have to do this http://stackoverflow.com/questions/4737381/git-editor-not-working-with-macvim May 20 01:38:27 * p_l uses magit, -m "message", emacs-server and intellij... somehow all work May 20 01:39:34 nano is legit May 20 01:39:38 that's what I use too May 20 01:39:42 no frills, no problems May 20 01:39:52 quick and easy May 20 01:42:41 of course... I used pico before nano existed May 20 01:42:48 but they're essentially the same May 20 01:42:52 yeah May 20 01:43:18 and I used a magnetized needle and a steady hand May 20 01:43:23 INB4XKCD May 20 01:43:39 :) May 20 01:45:30 M-x butterly May 20 01:45:34 *butterfly May 20 01:45:45 mmmmm butterl May 20 01:45:52 fuck it May 20 01:46:32 there's also the "I dump the idea into black hole and get a finished program out" ;) May 20 01:47:21 does nano have a spell checker? i hate checking shit in with spelling mistakes May 20 01:48:03 i guess you can finagle it May 20 01:48:46 looks like spacex will try again Tuesday May 20 01:49:22 I'll gladly pay you tuesday for a hamburger today May 20 01:49:30 haha May 20 01:51:07 my stupid mac converted a file to have a lowercase letter in it somehow May 20 01:51:18 or it may have been IntelliJ IDEA's caching May 20 01:51:23 but it was right in the middle of a release process May 20 01:54:50 did your ViewPager suddenly become just a Viewpage? May 20 01:54:55 Viewpager* May 20 01:55:49 damn it, so i did commit -F .git/COMMIT_EDITMSG and it took all the fucking commented lines prefixed with # May 20 01:57:52 ha May 20 01:57:53 fail May 20 01:59:21 so does git commit only toss lines starting with '#' under certain conditions ? May 20 02:07:18 t0mless: https://github.com/JakeWharton/Android-ViewPagerIndicator/commit/dd79bb10713eec2c507fc58001f876a496764f04 May 20 02:08:39 g00s: I suspect that -m and -F use it verbatim, while the comment filter is only added when launching editor (as it uses comments for instructions) May 20 02:09:24 p_l: i think you are right :) May 20 02:10:29 now the only weird thing is, if i say -m "foo" there is no newline in there, but when i edit a message in vim, there is always a newline on the last line even if it is not blank … so git log looks weird. yeah, i'm a perfectionist :) May 20 02:12:12 you're wasting hours figuring out how to make a commit message May 20 02:12:52 :( May 20 02:13:13 JakeWharton: it's called bikeshedding May 20 02:14:17 i'm not the only one with these questions http://stackoverflow.com/questions/5064563/add-line-break-to-git-commit-m-from-command-line May 20 02:14:40 i am just training myself in the way everyone else does, so i can be a good citizen when i work on a distributed project May 20 02:14:53 if a trailing newline is no issue, i won't worry May 20 02:18:41 Does -m $'Foo\nbar\nbaz' work? May 20 02:19:16 -m "... \" ;) May 20 02:40:43 hey i just got new htc raider from someone new in the box and it has a rebooting problem as long its pluged in it will stay on i want to know if i root and update to a cw would it fix that problem? May 20 02:41:08 swiftfox: read the channel topic please :) May 20 02:41:39 hey there is a thing called punctuation which lets you put a space between your words and if you are looking for rooting information you need to go to #android-root and ask there there is the place to ask ask there and you will probably be ignored but dont ask here please here is the wrong place to ask May 20 02:42:01 im sorry haven't used this in so long May 20 02:42:09 g00s: damn you and your non-sarcastic quick and correct answer :P May 20 02:42:25 :) May 20 02:42:42 so what type of qustion can i ask about the random reboot? May 20 02:42:42 haha May 20 02:42:50 ask there and you will probably be ignored, nice May 20 02:43:02 t0mless: just telling it how it is May 20 02:44:44 is there a way to set up logcat so it automatically logs errors to sd? May 20 02:45:06 without issuing the command in terminal emulator or adb May 20 02:45:42 create your own Log class that logs to a file on the sd card? May 20 02:47:30 logcat -f /sdcard/errors.log -r 16 -n 300 May 20 02:47:32 http://www.theverge.com/2012/5/19/3031130/google-android-free-open-five-years-china-regulation May 20 02:47:34 something like that May 20 02:47:52 never heard google ever consider closing it, so maybe its moot May 20 02:48:02 now you're just making up invalid command options May 20 02:48:03 of course it's moot May 20 02:48:13 image the outcry if they closed it May 20 02:48:30 that'd be insane May 20 02:48:35 well if you're a huge telecom in china forking android (Baidu) … its an important stipulation May 20 02:48:35 g00s: a bit like the deals the courts make when someone has broken privacy regulations, where they promise not to do it again for 10 years or something May 20 02:49:05 well how can I have something like that run at each boot? May 20 02:49:42 cornography: you can look at the code for acra May 20 02:49:45 Anyone have a BlackBerry PlayBook here, with the Android Player? May 20 02:49:57 I know this isn't a blackberry chan, but the android part is what I have questions about. May 20 02:50:37 Snuupy: hint: if it's just an android question, avoid mentioning that you're using a hacked-up Android port May 20 02:50:52 lol May 20 02:50:52 Leeds: It's not =\ May 20 02:51:01 Leeds: I'm trying to connect adb to it :P May 20 02:51:07 didn't you get a free playbook? May 20 02:51:11 Yes. May 20 02:51:15 How'd you know? O: May 20 02:51:16 Thanks, g00s. This can be used system-wide (i.e. rom/kernel bugs)? May 20 02:51:22 why do you think adb is going to connect to it? May 20 02:51:30 cornography: oh, uh … no its for your app May 20 02:51:36 t0mless: because there's android running on it, but I'm not sure if it will work. May 20 02:51:40 but take a closer look, maybe May 20 02:51:44 although it's a pretty messed up android mod May 20 02:51:53 Snuffel no, you can't get adb to connect to it May 20 02:52:04 it's running an emulated android 2.2 image inside of it May 20 02:52:05 Snuupy* May 20 02:52:09 2.3.3* May 20 02:52:10 oops May 20 02:52:14 whatever May 20 02:52:15 Ah. okay. May 20 02:52:17 no adb May 20 02:52:22 That sucks =\ May 20 02:52:31 any way I can find out the Android ID of it? May 20 02:52:31 g00s: Thanks for the tip May 20 02:52:33 also, no users May 20 02:53:16 any convenient way to time an asynctask to kill it if it takes too long? May 20 02:55:03 b1n0ry: you are going to have nightmares of asynctasks tonight May 20 02:55:16 lol, already am May 20 02:55:18 you will be rotating in your dreams, leaking them all over May 20 02:55:32 that's what she said May 20 02:55:44 ;) sorry May 20 02:56:03 05-19 22:54:31.777: E/WindowManager(31436): Activity com.tactek.magicbooks.ContentsActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@409c73e0 that was originally added here May 20 02:56:03 <-- haha, leaking May 20 02:57:20 so would all of this be easily avoided if i spent the time to learn about fragments? am i hitting my head into a wall because i'm using "old" methods? May 20 02:58:47 as of now, i'm looking at two different activities - both of them make a json call and dump the results into a listview. one works fine with no issues the other craps out when i change orientation... best part? the second one is a copy-paste of the other one's java file with a different JSON source. May 20 02:59:09 aside from the different activity name, that's the only difference. **** ENDING LOGGING AT Sun May 20 02:59:58 2012