**** BEGIN LOGGING AT Thu May 17 03:00:00 2012 May 17 03:01:23 his comment about some of the stuff is carppy though May 17 03:02:25 the issue has been floating around for a while, I guess May 17 03:02:33 http://stackoverflow.com/questions/1019573/save-icon-still-a-floppy-disk May 17 03:03:07 "Use a picture of Jesus. Because everybody knows that Jesus saves" … best comment evar May 17 03:05:13 time for bed May 17 03:05:14 night all May 17 03:11:24 hm can i have a Fragment mess around with the view hierarchy of its container, or is that just asking for trouble? May 17 03:12:36 you can, but that is a silly idea May 17 03:12:48 because then the whole point of your fragment is lost May 17 03:13:19 i wrote an activity that finishes itself on create. it reminds me of that little box that when you turn it on, the hand comes out and turns itself off again. May 17 03:13:55 i should make an animation of the box hand come out and hit the back button May 17 03:14:22 t0mless, i'm trying to play videos from a webview in fullscreen, so in onShowCustomView() i need to put that view somewhere... maybe i could use a separate window, but i haven't looked into how those work at all May 17 03:15:25 think of some wierd crap when hyped up on caffeine and listening to daft punk past my bed time May 17 03:17:33 setting the textCursorDrawable to @null apparently causes the textColor to be used as the cursor color. However, android:textCursorDrawable is only API level 12 and up May 17 03:17:41 how can I theme the cursor color in an EditText on versions prior to 12? May 17 04:01:40 got that graph update out May 17 04:02:30 i will install when my google play works again May 17 04:02:40 might have to look into that graph library May 17 04:02:40 for some reason safestrapping my phone causes google play to not work after I switch OS May 17 04:02:59 i.e. I switch from 2.3 to 4.0, then it takes like half a day for play to work again. May 17 04:03:02 not surprising, really. May 17 04:03:24 readme: there's a download page on the code.google.com site where you can get the apk May 17 04:03:40 oh, awesome May 17 04:04:06 http://code.google.com/p/iptableslog/downloads/list May 17 04:05:07 t0mless: it's not a bad start May 17 04:06:04 I've got to check out that pull-request that adds a callback for when you select a point on the graph to see how well it works May 17 04:06:19 not sure if I really need it though May 17 04:06:58 download count still at 1 for my update May 17 04:07:10 I see how interested you really are! May 17 04:07:34 i guess finish() is probably bad in my "setBookmark" function... that's what i get for copy-pasting from another function. May 17 04:08:03 not unless you want the setbookmark activity to exit after you set the bookmark May 17 04:08:14 "Set Bookmark" = terminate application. i think that would be difficult to explain in my instructions May 17 04:08:29 finish doesn't terminate the application, it finishes the current activity May 17 04:08:38 just so we are on the same page. May 17 04:08:41 it sort of does if it happens to be the first activity ;) May 17 04:14:19 hm... i'm trying to get a PopupWindow to display... i get no exceptions or anything, just nothing shows on screen May 17 04:26:47 While a user is using my application, I need to switch to a specific activity when ever the phone is tilted, no matter which screen is he now. What is the best way to achieve this? May 17 04:37:09 create a parent Activity class that watches the accellerometer for your tilt and acts accordingly May 17 04:37:20 and have all your other activities derive from that class May 17 04:38:09 i think when he says tilt May 17 04:38:13 he just means change orientation May 17 04:38:26 in which case I think direct accelerometer access may be overkill May 17 04:39:04 the solution there would be to simply use a fragment, and stick it in your layout in layout-land, that is the case. May 17 04:52:12 how easy/difficult is to compile and run android source to executable May 17 04:52:44 using eclipse IDE thing with jdk1.7 ADTPlugin android-sdk May 17 04:52:55 installed May 17 04:53:47 android OS source, or app? May 17 04:57:07 easy/difficult are very relative terms. depends on one's level of skill/experience with the tools in question. May 17 04:58:12 for me, it'd be pretty dang hard because i barely even understand java. for the senior architect at samsung in charge of developing the galaxy software, probably all in a few minutes of breath over a bagel. May 17 05:01:34 takes time or messy May 17 05:01:46 simple android app/game May 17 05:02:14 again, depends on your level of skill/experience. i'm working on my first app. taking me forever and it's probably something reasonably simple that most experienced folks could roll out in a day or two. May 17 05:02:16 i have all those installed already " eclipse IDE thing jdk1.7 ADTPlugin android-sdk May 17 05:02:27 have you ever programmed a game before? May 17 05:02:44 no May 17 05:02:50 games of reasonable complexity are, honestly, the most difficult apps to write. May 17 05:02:58 how long it takes to compile "Hello World" app May 17 05:03:14 i keep getting errors and garbage May 17 05:03:22 to learn it? write it? or just compile it? May 17 05:03:27 and then eclipse crashes May 17 05:03:34 it takes split seconds to compile the app in eclipse. just set to auto compile. May 17 05:03:36 just compile it May 17 05:03:44 i cant write or understand May 17 05:03:54 heck, my app recompiles every time i save a file May 17 05:04:01 barely notice it May 17 05:04:03 will modify text in others' sources little bit then compile May 17 05:04:33 don't forget that to "compile" an apk file (without obfuscation), all it's doing is saving your file into a zip file. May 17 05:05:05 that's all an apk file is, really May 17 05:05:31 what is the main executable file May 17 05:05:35 .class ? May 17 05:05:40 .manifest ? May 17 05:05:42 .xml ? May 17 05:06:10 android looks like just frm outside May 17 05:06:36 inside is most complex garbage from all languages n dos like tools May 17 05:06:47 looks like toy May 17 05:06:53 while using May 17 05:07:03 is not May 17 05:07:58 is it too difficult in android ? 10 Print "Hello World" cout<<"Hello World"; SystemOutPrintln("Hello World"); May 17 05:08:10 stop typing rubbish would you May 17 05:08:15 * jwopl slaps bankai_ around a bit with a large trout May 17 05:08:31 oh great, a mirc user .... May 17 05:09:22 which one is for android eclipse-indigo or eclipse-galileo May 17 05:09:28 jwopl: i think you need java 6 with android May 17 05:10:04 i have java 6, eclipse 3.7.2 platform runtime + JDT + ADT … thats it May 17 05:10:25 what jdt May 17 05:10:30 i got ADT plugins May 17 05:12:35 hm, this is weird. i can't seem to find the old 3.7 stuff any more, everythin is 4.1.2 May 17 05:12:46 jwopl, yeah, that's not how android works... May 17 05:12:52 and we cant compile single .java file ? need to make all BIN MANIFEST DEFAULT SRC etc ? May 17 05:13:09 jwopl, it's object-oriented java. May 17 05:13:37 if you're using eclipse with the ADT plugin, just create a new android project. it will build the whole structure for you. May 17 05:14:01 and it will auto compile your code as you edit it May 17 05:14:59 ok May 17 05:15:13 get eclipse indigo classic May 17 05:15:47 install the ADT plugin, set up your android SDK with the SDK manager for the version(s) you are targeting May 17 05:15:51 i got it all May 17 05:15:53 create an AVD emulator May 17 05:16:01 and you're good to start May 17 05:16:04 and both 32bit n 64bit of each May 17 05:16:16 32-bit, you don't need 64-bit for this May 17 05:16:22 and android-sdk and androidx86 for emulating May 17 05:16:24 here's a good start for you http://www.amazon.com/Teach-Yourself-Android-Application-Development/dp/0321673352 May 17 05:16:30 also fones May 17 05:16:50 that's the book i got started with. made it about 1/2 way through and had enough grasp to at least get started on my own May 17 05:17:33 if i could read May 17 05:17:54 would make my own AI OS and everything May 17 05:20:02 cant phones automatically run the .zip file (with manifest src .java files bin ,etc) renamed to .apk ? without needing eclipse trash May 17 05:20:20 you don't HAVE to use eclipse May 17 05:20:30 just using winzip May 17 05:20:39 u tell this now ? May 17 05:20:49 ok May 17 05:21:25 what else to include with the helloworld.java file in the .zip/apk so phone can run it May 17 05:22:25 erm... May 17 05:22:33 jwopl: have you read the tutorials on d.android.com ? May 17 05:24:09 manifest.xml is generated after compile or before ? May 17 05:28:04 erm, indeed May 17 05:28:41 jwopl: go away and read http://www.greenteapress.com/thinkapjava/ May 17 05:31:13 Could not open the editor: Factory org.eclipse.jdt.ui.ClassFileEditorInputFactory returned null from createElement for editor id=org.eclipse.jdt.ui.ClassFileEditor name=Animator.class May 17 05:31:37 we cant directly run .java source in phone by .apking May 17 05:36:06 help May 17 05:36:24 it cant even compile Google's original projects May 17 05:36:49 not running any sample in D:\androidsdk\samples\android-14 folder May 17 05:37:03 those samples came from google android sdk May 17 05:40:45 jwopl: what is the "it" that can't compile the sample projects? May 17 05:40:51 eclipse? May 17 05:40:55 yes May 17 05:41:13 Could not open the editor: Factory org.eclipse.jdt.ui.ClassFileEditorInputFactory returned null from createElement for editor id=org.eclipse.jdt.ui.ClassFileEditor name=Animator.class May 17 05:41:16 and many more errors May 17 05:41:21 whatever May 17 05:42:17 a Video tutorial of the book 'learn android in 24hrs' can teach in 2 hrs ? May 17 05:42:38 you might learn how to compile hello world in 2 hours. May 17 05:42:57 start with the basics, make sure you've set up your environment correctly and get hello world to work May 17 05:42:58 http://developer.android.com/resources/tutorials/hello-world.html May 17 05:44:09 learn to write an android app in 2 hours... maybe if you're already a programming expert May 17 05:44:40 in which case you wouldn't be watching an in-24 hours book video May 17 05:44:49 so I guess we can write it off as complete garbage. May 17 05:53:20 * g00s is ebarassed to say, it took me about 6mos to be remotely productive in android - and not embarrased of every amn thing i wrote May 17 05:53:25 *embarassed May 17 05:56:29 funny thing - i know less about android now then i did a year ago :( May 17 05:56:32 6 months passed for me, and still feeling smt wrong with 90% of the code I'm writing recently, not to mention the code in the past May 17 05:56:51 also, i'm kinda stuck in froyo api land with whatever the compat lib gave me May 17 05:56:54 how is New -> 'Android sample project' differnt from 'Android Project' May 17 05:57:50 but alas, 2012 is the year of GB ! May 17 05:58:03 i can learn the ICS stuff in 2013 May 17 05:58:21 so its nice things go kinda slowly around here ;) May 17 06:04:37 that's dumb May 17 06:05:22 android is dumb ? May 17 06:05:24 you should be limiting functionality on the older platforms not reducing all platforms to leverage only the APIs available on your minSdkVersion May 17 06:05:35 eclipse is dumb May 17 06:05:46 http://www.jetbrains.com/idea/ May 17 06:05:47 fixed May 17 06:06:01 all those billion apps in android market google play were made in the same eclipse i got ? May 17 06:06:29 quite a lot of people in the know use IntelliJ IDEA May 17 06:07:01 I would never go back to Eclipse for anything in a million years May 17 06:10:33 unless, you accidentally step in a wormhole, in a strange twist of space-time madness. May 17 06:11:43 I already travelled to the future and brought back a device to prevent that May 17 06:11:57 its a WP8 device, right ? May 17 06:12:01 :D May 17 06:12:06 yeah, really shitty tech I had to fish out of a dumpster May 17 06:12:17 I couldn't afford anything worth a damn in the future May 17 06:12:23 so it was bottom of the barrel tech May 17 06:12:37 JakeWharton: see what happens when you earn your oats as an android dev ? May 17 06:12:53 I've developer for WP7 and used a WP7 device quite extensively May 17 06:12:54 it sucks May 17 06:12:55 hard May 17 06:15:05 that's hot May 17 06:15:20 *developed May 17 06:15:25 wp7 didn't have the apis i needed so i didn't get serious with it. but it will have the apis i need in 8 May 17 06:15:40 and a 5% market share in 8 May 17 06:15:45 XAML sucks May 17 06:15:52 Give me Android's XML any day over that shit May 17 06:21:06 r all those files in all folders part of source code ? http://dopewars-android.googlecode.com/svn/trunk/ May 17 06:23:01 recursive listviews are a... nnoying May 17 06:23:27 esp when populated by json calls from a remote source. basically i have to requery the json every single time the user presses 'back' May 17 06:23:29 why would it be recursive May 17 06:23:37 so cache it somewhere May 17 06:23:43 pfn: that's on my wish list May 17 06:24:04 i'm building the app for functionality and i'm simultaneously creating a laundry list of future enhancement 'nice to have' stuff May 17 06:24:26 right now, the json calls are so quick it's not that critical, but just annoying that the 'previous' class instance didn't retain its own listview contents May 17 06:25:32 re: why is it recursive, it's because this is a chapter/topic browser kind of thing. click an item and get a new listview of that items' children (if it has any) and so on. May 17 06:25:44 never know if there will be 2 layers of children or 25 May 17 06:25:52 Use a Loader May 17 06:25:54 free caching May 17 06:26:21 Loader = new term for me. i just jotted it down next to 'local caching' on my white board wishlist May 17 06:26:26 ty May 17 06:27:13 support library has them May 17 06:27:17 i hope you're already using that May 17 06:27:31 depends... what's the support library? May 17 06:28:02 the key here is that i've been working on this app for about 5 days now... which is also the sum total of my experience with both Java and Android. May 17 06:28:27 don't get me wrong, i'm learning a *TON*... just not an 'expert' by any means May 17 06:29:34 between the fact that i picked up 3 books on the topic outside of my safari books account, have been reading stack overflow and the sdk documents religiously... i've crammed a lot of learning into my 5 days May 17 06:30:45 and i anticipate that 6 months from now, i'll look back on the code i'm writing right now and say "WTF was i thinking!?" May 17 06:31:47 b1n0ry: hopefully. if you don't say wtf, you aren't learning May 17 06:32:06 exactly, happens every time i learn something new like this May 17 06:32:28 i'm learning 2 new platforms, 2 new languages at the same time, so i expect plenty of wtf over the next 6 mos May 17 06:32:50 heck, it happens in environments i'm considered an 'industry expert' in... i still look back every few months with garnered knowledge May 17 06:33:34 the bookmark manager in this latest chrome is buggy as shit May 17 06:33:56 at least eclipse is very comfortable for me. one of my core industrial technologies is a product called HP Service Manager which has its clients built on eclipse. May 17 06:34:14 anyone have a lib for storing call history in a DB? I want to make stats May 17 06:34:18 what is difference between dalvik java and real java May 17 06:34:21 few differnces May 17 06:34:33 example syntax command May 17 06:34:41 ooh, HPSM, I hate it May 17 06:34:47 deepa: the call log is already available via a ContentProvider. May 17 06:35:34 deepa, it's my bread-and-butter. i know their dir. of product development and their sr. architect personally. i've written hunks of their support documentation. May 17 06:35:40 readme: I was hoping not to reinvent the wheel, but do calls have an unique identifier? May 17 06:35:47 deepa: yes May 17 06:36:02 not UUID, probably an autoincrement id. May 17 06:36:12 I haven't used it for a long time. May 17 06:37:27 can someone explain just these 10 lines . later i learn all myself May 17 06:38:36 sorry, IRC client froze May 17 06:39:11 jwopl: the java is not different, its the VM. DalvikVM May 17 06:39:34 b1n0ry: I had this fun experience working for a company which housed in a HP office May 17 06:39:40 we were forced over to HPSM May 17 06:40:30 Healing Place School of Ministry ? May 17 06:40:33 jwopl: the dalvik VM is optimized for running on mobile devices and chipsets May 17 06:40:35 jwopl: the DalvikVM is optimized for androids process handle structures and different stuff May 17 06:40:37 Which was horrible becuase our workflow couldn't fit into HP Service Manger May 17 06:40:50 and it takes a million clicks to get anywhere May 17 06:40:50 our office is predominately an hp shop, however many of the vendors we deal with aren't. we've built interfaces to their system to accomodate their needs - whethere it's a CA product, remedy, etc. May 17 06:41:09 deepa: depends on how it's built. it's very highly 'tailorable' May 17 06:41:13 Ah May 17 06:41:35 the first thing i do on a fresh install of HPSM is purge the out-of-box workflows and build my own. May 17 06:41:40 The one we have, to create an incident (E-IM iirc) took 11 clicks, in the previous one it took 4 May 17 06:41:59 granted, i have a full-time dedicated support/development team that i lead. and i tread it like an application development team. May 17 06:42:09 java hello world is simple " class helloworld { public static void main(String args[]) { System.Out.Println("Hello World"); }} " May 17 06:42:17 but android is 10 lines May 17 06:42:19 we do click studies for our service desk to minimize call handling time. May 17 06:42:20 package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }} May 17 06:42:26 Why couldn't you have worked at my previous employment b1n0ry :-/? May 17 06:42:27 what do all those lines mean May 17 06:42:32 jwopl: use a pastebin May 17 06:43:02 jwopl: Start an activity called "HelloAndroid" and, when it launches, display the layout called "main.xml" May 17 06:43:09 pretty much May 17 06:43:42 package bundle appActivity trash May 17 06:43:52 just for printing text "Helloworld May 17 06:44:02 ? May 17 06:44:03 deepa: lol. i've been asked that by HP, haha! i tell them they can't afford me ;) May 17 06:44:11 :D May 17 06:44:38 Mind if I ask some questions in privmsg? May 17 06:44:54 their dir of product development, senior sales rep, and fortune 500 account principle took me to dinner in las vegas last year - at $200 a plate - to ask me questions May 17 06:45:22 i'm going to their conference again this year on their dollar. free pass to vegas for a week. May 17 06:46:27 oh, wouldnt mind that either May 17 06:47:23 b1n0ry: if you're really an hp shop, i would guess windows tablets are in your future (hp announced they are getting behind windows 8) May 17 06:47:35 i guess they thought it was better than webOS :( May 17 06:47:54 hp is fubar May 17 06:48:06 we were an hp shop too, i agree May 17 06:48:17 what hp May 17 06:48:20 HP Android ? May 17 06:48:30 but … they did have *awesome* customer service for enterprise software we used May 17 06:48:32 HP got only old WM fones May 17 06:48:45 g00s, heh... iPads May 17 06:48:53 g00s, because our brands think they're "sexy" May 17 06:49:11 and it's annoying as crap because our clients don't render in safari properly May 17 06:50:07 b1n0ry: ok i was thinking of this when you said you were an hp shop http://www.itpro.co.uk/640555/hp-readying-windows-8-tablets-for-smbs-and-the-enterprise May 17 06:51:09 not the best article on the topic, but should suffice May 17 06:51:42 g00s, they are. they have a new product for windows tablets and webos called 'executive scorecard' which is pretty slick for hp service management shops. May 17 06:51:55 but... we won't take advantage because our brands are fixated on iThings May 17 06:52:32 dsfkjsdf May 17 06:52:49 jwopl: that was the clearest and most comprehensible thing you said all day :) May 17 06:54:04 rofl May 17 06:54:59 thats HP May 17 06:55:04 ? May 17 07:06:26 anyone using leveldb in android yet ? May 17 07:07:36 hi May 17 07:08:32 I'm using an external library project with my project, it works fine, how can I include this external library folder into my project ? (for easier management with git) May 17 07:08:56 should I convert it to some jar file ? May 17 07:12:23 the way I do it, is i create a git repository in my workspace, and ignore the projects I don't want in it with .gitignore May 17 07:12:38 then I end up with a directory for: the libraries, the test project, and the project itself May 17 07:13:11 like I did here https://github.com/tom-dignan/Android-OpenCNAM-Library May 17 07:13:27 you may want to consider a git submodule May 17 07:13:28 maxagaz: could just compile to .jar and drop it in the libs directory of any project that uses it (instead of using it as an external library project) May 17 07:13:41 you cannot compile a .jar if it's a real android library project May 17 07:14:32 JakeWharton: I think you're mistaken May 17 07:14:39 yeah, i'm not May 17 07:14:50 resources can't be bundled in .jars May 17 07:15:37 why do you think that a library project necessarily has resources. May 17 07:16:08 you are guilty of the same fallacy, assuming it doesn't May 17 07:16:14 you should both just kiss and make up now May 17 07:16:15 the snake exampleworked May 17 07:16:34 kiss kiss ;o) May 17 07:16:35 congratulations May 17 07:16:39 snake game android example world n also allows modify speed time etc May 17 07:16:49 ks May 17 07:16:56 my assumption is probably the safer because no self-respecting library developer would fail to provide a .jar if all their project contained was Java code May 17 07:17:18 so i just keep modifyin others' sources no need to learn android book May 17 07:18:39 if you aren't that experienced yet, a cookbook style book can be helpful May 17 07:18:56 hmm, is retos' 3e out yet ? May 17 07:19:05 well. I can recommend the Programming Android Book of O'Reilly May 17 07:19:08 for a few weeks now, g00s May 17 07:19:19 people seem to like it too May 17 07:19:21 it shows you the neccesary best practices when programming for android May 17 07:19:25 *java best practices May 17 07:19:28 and then android itself May 17 07:19:31 jav May 17 07:19:37 jwopl: yeah, i would go with reto 3e then May 17 07:20:04 make use of all compass camera gSensor sound microphone gps wifi bt May 17 07:20:41 i'm glad they kept the cool terminator on the cover; thats what i was most worried about May 17 07:20:53 even if it makes kids cry May 17 07:21:49 g00s: isn't it ret.'s 4e now? May 17 07:22:11 no, android 4 - 3e May 17 07:22:32 1e had a picture of him on the cover - i wonder if he turned into the robot :O May 17 07:22:39 ah ok. agreed for the terminator May 17 07:23:08 FYI terminator 2 is $5 on amazon May 17 07:23:28 you can probably find it in a bargin bin at any walmart for 1$ May 17 07:23:34 blu-ray May 17 07:23:37 not VHS May 17 07:23:59 I have tried to import the library besides mine in /src folder, but I get two errors about resources, although I copied the two xml resources, it doesn't find it, why ? May 17 07:24:11 you're joking right? May 17 07:24:13 we need more info than that May 17 07:24:28 right---which wal-mart can we get it at? May 17 07:24:40 but its running ONLY sample projects in ADK May 17 07:24:44 it says: R cannot be resolved to a variable May 17 07:24:49 not running any other free source codes May 17 07:24:52 lol May 17 07:24:56 * JakeWharton runs May 17 07:24:58 that means your R build fucked up May 17 07:25:04 because one of your resources is fucked up May 17 07:25:15 try to clean your project and see if it tells you the error May 17 07:25:16 Source code (eclipse project): DroidFish141.tar.bz2 http://cuckoochess.googlecode.com/files/DroidFish141.tar.bz2 May 17 07:25:20 that cant be wrong May 17 07:25:26 my brain is a neural network processor, a learning computer May 17 07:25:29 does not work May 17 07:25:39 speaking of which, did they ever fix that error in library projects building when verbose build is on in the ADT plugin? May 17 07:25:52 my brain is garbage compactor May 17 07:26:51 my brain is a garbage collector May 17 07:26:59 rors occurred during the build.Errors running builder 'Integrated External Tool Builder' on project 'DroidFish'.The file does not exist for the xternal tool named Native_Builder.The file does not exist for the external tool named Native_Builder. May 17 07:27:03 Errors May 17 07:27:04 my brain is squishy May 17 07:27:07 thankfully on every pass it enabled me to forget things I see in here May 17 07:27:33 hi May 17 07:27:44 JakeWharton: hopefully its better than dalvik, otherwise you're memory will get fragmented from generations not being compacted May 17 07:27:54 I have written 0 lines of code since I sat down with this laptop May 17 07:28:06 Sleepybear: we will help you with that trend! May 17 07:28:07 how can i compile ONLY my current project? i have the impression eclipse is compiling all my projects, even the "closed" ones May 17 07:28:15 we need to copy all files to D:\androidSDK\samples\android-14 folder ? and open as new -> Android Sample Project May 17 07:28:16 ? May 17 07:28:27 maxagaz: did you copy in eclipse and it did that thing where it automatically tries to import from another R May 17 07:28:33 turn off auto build and select build project and not build workspace? May 17 07:28:40 hm, retos' ebook is still $29. don't they have any coupons :| May 17 07:28:42 and it won't build the closed ones May 17 07:29:48 g00s: y u no safari May 17 07:29:56 tbellenger: I did copy-paste the folder in src to my projects' src from eclipse May 17 07:30:27 you don't think it's worth $29? May 17 07:30:31 tbellenger: same for the two R.drawable xml files May 17 07:30:33 so check at the top of the source you copied and see if there is an import for an R which doesn't exist May 17 07:30:35 readme: oh yeah, that. well, for a while i was offline a bit, and they are kinda a pain to d/l whole books from - at least the last time i checked May 17 07:30:38 I'd say that's a fair price May 17 07:30:48 better than those $60 monstrosities May 17 07:30:49 oh shit, I gotta download the latest commensware before my sub runs out May 17 07:30:58 JakeWharton: i'm just used to orally always having awesome specials. May 17 07:31:02 *oreilly May 17 07:31:06 damn colloquy May 17 07:31:10 tbellenger: there's an import android.R; May 17 07:31:22 you probably don't want that May 17 07:31:24 basically, if you have an oreilly account, its always buy 1 get 1 free May 17 07:31:48 g00s: we need to find a better client May 17 07:32:03 doesn't xchat run on Mac? May 17 07:32:11 JakeWharton: yeah, colloquy was crashing on me today. May 17 07:32:18 gah, safari doesn't even have it May 17 07:32:21 though last time I ran xchat I kinda remember it sucking May 17 07:32:28 tbellenger: it's working now, thanks so much! May 17 07:32:54 tbellenger: I didn't think about replacing it by com.myproject.foo.R May 17 07:33:16 http://xa.yimg.com/kq/groups/13354653/236091155/name/%5BBook%5D+Teach+Yourself+Android+Application+Development+in+24+Hours+%5B2010%5D+Resampled.pdf May 17 07:33:23 $29 May 17 07:33:34 Sleepybear: I'm using LimeChat on mac, couln't find a better one May 17 07:33:39 you don't need to replace it. Normally you don't even need that import. It'll be automatci May 17 07:33:46 Sleepybear: xchat is not nice on mac May 17 07:34:14 I've never owned a mac May 17 07:34:19 used xchat on linux before May 17 07:34:30 tbellenger: I tried to remove it before, but then I still get these errors May 17 07:34:53 Sleepybear: me too, I was new to mac, always using linux before May 17 07:35:21 sory May 17 07:37:05 aSDASD May 17 07:37:06 hi guys, are there any kernel devs in here? May 17 07:37:13 nope May 17 07:37:17 this is App dev channel May 17 07:37:20 try #android-root May 17 07:37:25 what is kernel dev May 17 07:37:32 this is android channel May 17 07:37:33 cheers May 17 07:37:56 lol May 17 07:38:01 android runs on a linux kernel May 17 07:38:42 hi all. how do i install repo tool? May 17 07:39:00 there's a guide on d.android.com for that May 17 07:39:19 I could never get repo to work on windows May 17 07:39:21 ,oO( "there is an app for that" ) May 17 07:40:10 Sleepybear: really? hold on, let me give you repo.exe. May 17 07:40:52 oh, I have repo.exe somewhere May 17 07:40:58 but it just wouldn't sync May 17 07:41:09 actually, I think it's repo.bat May 17 07:41:38 i was joking, i can't use windows. i had a free msdn account someone gave me and access to all the microsoft tools. so I had installed 7 for a bit, I kind of liked it. May 17 07:42:01 then one day some malware awoke on my computer and totally blew it up, even hiding directories from me at the kernel level May 17 07:42:10 lol May 17 07:42:11 wtf May 17 07:42:11 told me I had to pay to get my files back May 17 07:42:18 I was like oh no, all my projects :( May 17 07:42:27 what kind of porn are you watching? May 17 07:42:27 of course, they were in git, but so many would have to be checked out May 17 07:42:30 and specs weren't in git May 17 07:42:33 Sleepybear: im tring to set up the build environment for AOSP. I did follow the steps from source.android.com/source and i'm stuck on the repo thing May 17 07:42:41 actually I'm pretty sure I got the virus by playing a file in WMP and it buffer overflowed it May 17 07:42:54 funny you should mention that May 17 07:42:59 i need some software help :/ May 17 07:43:21 after I booted linux I could get all my files again, because it was a filesystem driver trick, not actual deletion of my files or anything. May 17 07:43:27 repo what May 17 07:43:41 its a command line tool May 17 07:44:18 I think you just need to do repo init May 17 07:44:20 repo sync May 17 07:44:23 im on the section "Initializing a Repo client" May 17 07:45:15 yes but i get repo: command not found =( May 17 07:45:25 lol May 17 07:45:27 l2Path May 17 07:45:35 this is not the right channel for AOSP compilation stuff May 17 07:46:07 in theory, #android is, but it's very rarely discussed there - the right place is probably one of the mailing lists/gooooogle-grooooups May 17 07:46:08 Leeds: may i know the right channel? May 17 07:48:20 mailing list will take time to respond. I think this channel is fine since im planning to develop an android app. I was just trying to checkout the android project source for reference May 17 07:48:23 how can i compile ONLY my current project? i have the impression eclipse is compiling all my projects, even the "closed" ones May 17 07:48:51 I answered that earlier May 17 07:48:55 are .java files written by hand ? May 17 07:48:57 jenue: so give a path to the repo program. make a directory called ~/bin then move it there, then log in again. Chances are your PATH will contain ~/bin May 17 07:49:01 it doesn't compile closed projects May 17 07:49:41 jluw9o most are, some are generated May 17 07:50:00 * alankila wishes the glsl compilation issue would get solved one of these years... May 17 07:50:04 alankila: thanks. I think i don't have repo installed because there's nothing when i issue command whereis repo May 17 07:50:10 I've been unable to build cyanogenmod for some time May 17 07:50:20 jenue: then you fail at reading instructions. Go get the program. May 17 07:50:21 jenue: you might not want to take that as a suggestion May 17 07:50:40 alankila: lol.... ok let me try again May 17 07:50:46 "this is the wrong channel for your discussion. Take it elsewhee" May 17 07:51:48 a 10KB .java soure file is like 10 hrs of garbage May 17 07:51:54 how big r 5MB games May 17 07:52:14 wtf? May 17 07:52:15 jenue: I sent you a PM about your last remark. May 17 07:52:20 5MB games are... 5MB? May 17 07:52:36 jluw9o: the bulk of space taken up in a game is not going to be code, but just graphics and stuff. May 17 07:52:51 so anyone know anything about unity3d? im just wondering if it could be efficient in making 2d games, or if its going to use a lot of unnecessary resources and be as battery/power sucking as a 3d game? May 17 07:52:56 do you guys know craigslist? May 17 07:53:07 jluw9o: you're trolling us now, right? May 17 07:53:10 I hear he's a sleezeball May 17 07:53:20 well you should meet his cousin May 17 07:53:25 http://www.dirtycraig.com May 17 07:53:33 Angie? May 17 07:53:40 haha May 17 07:53:41 * Sleepybear is so not clicking that May 17 07:53:53 i dont blame you May 17 07:53:56 well, all, thanks for putting up with my newbishness. i'm off to bed :) May 17 07:54:00 parco: welcome to #android-dev - wtf makes you think that's on-topic? May 17 07:54:24 Leeds, thank you for welcoming me, it is on-topic because... May 17 07:54:56 svchost: i've heard people use unity for 2d games as well May 17 07:55:03 I tried someone's unity2d game before and it works well May 17 07:55:11 er, unity3d May 17 07:55:24 asdfsadf May 17 07:55:34 bored of running sample projects May 17 07:55:45 how to run other project source codes from internet May 17 07:55:48 yeah, i know they have toolkits to make it easy.. i just wanted to see if anyone knew if it was or wasnt going to be super battery sucking/power using because the engine is designed for 3d May 17 07:56:13 step 1 - download May 17 07:56:20 step 2 - build May 17 07:56:25 Sleepybear ok got it, hadn't seen it before, thanks! May 17 07:56:26 step 3 - ????? May 17 07:56:31 step 4 - Profit! May 17 07:56:49 I'm stuck at step 3 May 17 07:56:58 That's the toughest one -_- May 17 07:58:32 hi, i have almost finished building my android app, now i am thinking of publishing it.what i want to know is that shhould i sign all my apps with the same distribution key while exporting as apk? May 17 07:59:08 blue_pearl: the disadvantage to that is if you want to say, sell your app to someone else to distribute, you need to give them that key. May 17 07:59:26 but otherwise it's fine May 17 07:59:39 don't they run under the same user if you use the same key May 17 07:59:48 so you can like, access your other apps shit May 17 07:59:58 that would count as an advantage May 17 08:00:05 not unless you explicitly ask them to in your manifest May 17 08:00:20 Sleepybear: yes May 17 08:00:21 advantage would be not having to manage multiple keys :) May 17 08:01:41 I am currently watching The Grey May 17 08:01:49 Liam Neilson is a badass. May 17 08:01:58 ah I wanted to see that May 17 08:02:07 readme, Leeds , thanx May 17 08:04:29 if you are going to i/o http://phandroid.com/2012/05/16/google-io-sessions-calendar-now-available-start-planning-now/ May 17 08:04:56 already made my schedule May 17 08:05:09 I wish :( May 17 08:05:10 site works like shit on mobile May 17 08:05:19 both native browser and chrome beta May 17 08:05:24 had to wait until i got back to work to make it May 17 08:05:32 lack of GWT sessions is :(((( May 17 08:05:39 Android stuff doesn't look too hot either May 17 08:05:43 Day 2 is decent May 17 08:05:50 1 and 3 are weak May 17 08:08:12 i am very interested in this one "Multi-Versioning Android User Interfaces" May 17 08:08:20 what up ERings May 17 08:09:00 presented by null null, Adam Powell May 17 08:09:09 i thought null null did a great job last year also May 17 08:10:18 http://news.ycombinator.com/item?id=3900224 May 17 08:10:37 ha May 17 08:11:17 ha May 17 08:11:22 my friend showed me that a while ago May 17 08:11:29 "Google Music device authorization limit could cause headaches for ROM lovers" ruh roh May 17 08:11:37 heh May 17 08:11:41 saw that one earlier too May 17 08:12:05 it's more the device de-authorization limit May 17 08:12:25 only let you turn 4 off in a year May 17 08:13:12 ok, time for this guy to pass the fuck out May 17 08:13:14 fuck null null May 17 08:13:18 cheers mates May 17 08:13:18 Adam Powell is the shit May 17 08:13:34 bye May 17 08:13:48 gnight May 17 08:14:00 Sleepybear is Sleepy May 17 08:14:06 z.z May 17 08:32:01 does anyone know the gallery tutorial ? May 17 08:32:05 http://developer.android.com/resources/tutorials/views/hello-gallery.html May 17 08:32:32 i'm having problems because of how it styles, i've followed several solutions but none works May 17 08:37:46 JakeWharton: just, a little too late for your presentation http://willemmulder.github.com/Presenteer.js/ May 17 08:38:12 g00s: doesn't hold a candle to impress.js May 17 08:38:27 http://bartaz.github.com/impress.js/ May 17 08:39:14 cool May 17 08:39:25 is this what you wound up using ? May 17 08:39:37 unfortunately not May 17 08:39:53 I started to, but reverted to Keynote May 17 08:41:09 next time, when i'm not scrambling to finish May 17 08:41:39 i'm going to be seriously bummed if the new MBPs don't have an ethernet port May 17 08:48:04 g00s: don't worry, they'll support AppleTalk 2.0 over Thunderbolt ;) May 17 08:48:43 Android Vs Iphone Tweet Race : http://screencast.com/t/ZmyDmww0 May 17 08:49:13 p_l: they will probably want to sell me some dumbass usb to ethernet converter May 17 08:49:31 Any recommended blog post on layouts and UI ? May 17 08:50:24 bsilwal: here is one http://www.androidpatterns.com/ May 17 08:50:45 g00s: because no one uses wired ethernet, just like no one uses analog MIC-IN anymore, right? :P May 17 08:51:09 i always prefer wired internet :| May 17 08:51:23 i mean, if there is a place to put the wire XD May 17 08:51:56 cheers g00s May 17 09:08:46 anything similar to ArrayAdapter that takes a dictionary? May 17 09:12:40 no & please use correct terms. don't expect us to guess what a dictionary is. May 17 09:13:11 I assume you mean a HashMap, though May 17 09:14:04 http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Dictionary.html May 17 09:14:08 valid term May 17 09:17:15 extend BaseAdapter May 17 09:17:18 write it yourself May 17 09:17:34 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html May 17 09:17:47 I'm testing a market application and I'm getting a response code LICENSED when I've got the google play market set as sending NOT_LICENSED. May 17 09:20:28 Unless the google servers just havne't updated with an additional license test response email to be added May 17 09:29:09 DashCC: wrong documentation May 17 09:29:14 DashCC: is that even in Android? May 17 09:30:00 I'll be damned May 17 09:30:04 :) May 17 09:30:10 well, the answer is still no May 17 09:30:26 if you say so May 17 09:30:38 readme: HashMap assumes specific implementation of "Map" May 17 09:30:47 p_l: i know May 17 09:31:15 DashCC: Do not use this class since it is obsolete. Please use the Map interface for new implementations. May 17 09:31:39 python has a dictionary May 17 09:31:52 my point is that this term is out of use and not relevant to the techniques used in android development now. May 17 09:31:53 readme: never used dictionaries May 17 09:31:56 probably never will May 17 09:32:57 Hashtable is useless too, last I checked it was synchronized quite poorly May 17 09:34:51 Hashtable is synchronized, HashMap isn't May 17 09:35:02 ConcurrentHashMap, p_l May 17 09:35:18 readme: just pointing out the difference. I know about ConcurrentHashMap- May 17 09:35:20 HashMap also at least throws an exception when it's modified during iteration May 17 09:35:29 readme: that's Hashtable May 17 09:35:59 nah, hashmap May 17 09:36:06 see the doc May 17 09:36:15 The Iterator created by calling the iterator method may throw a ConcurrentModificationException if the map is structurally changed while an iterator is used to iterate over the elements. May 17 09:36:22 Hashtable doesn't do that, afaik May 17 09:36:32 hmm.. both do that May 17 09:36:43 then what was it that was bad about Hashtable May 17 09:37:08 readme: dunno, not accepting null values nor null keys? May 17 09:37:20 being synchronized slowing it down? May 17 09:37:34 * p_l isn't a great java programmer May 17 09:41:01 retreival operations on ConcurrentHashMap don't lock the map, and there is no support for locking the entire table in a way that prevents all access May 17 09:41:14 http://developer.android.com/reference/java/util/concurrent/ConcurrentHashMap.html May 17 09:41:39 i'm having flashbacks of looking at Hashtable now.. May 17 09:48:35 the problem with synchronizing the hashtable was that it was unnecessary as no real programs seemed to benefit from it... they had to synchronize at some higher level anyway May 17 09:49:10 for instance, imagine a piece of code that moves a key and value from one hashtable to another -- you need to synchronize at level higher at either of those objects to actually accomplish consistent worldview to other threads May 17 09:49:40 so synchronizing primitives was a mistake May 17 09:50:41 immutable TreeMap (with content sharing) can work better in concurrent case anyway... ecept that's not so useful on Android which promotes non-consing code heavily May 17 09:50:43 I'd only want to see deprecation marks all over the old container types. There are still places where the library wants you to use a StringBuilder for instance May 17 09:51:02 and there's probably places that use vector and hashtable too May 17 09:51:58 hmm was it stringbuffer that was actually the synchronized one May 17 09:52:17 damnit, it's hard to remember, I abbreviate both to SB in my head and consequently never have any idea which was which May 17 09:54:19 i distinctly remember using Hashtable once when I was new to android May 17 09:54:28 and wondering why my program was getting stuck May 17 09:54:34 then reading about ConcurrentHashMap May 17 09:54:35 and fixing it May 17 09:54:57 * pragma- prefers to manually synchronize. May 17 09:55:21 Hi any one know that how my broadcast receiver is called with invoking it from activity,..means on application install May 17 09:55:44 Hi any one know that how my broadcast receiver is called with invoking it from activity,..means on application install May 17 09:55:50 yeah, the Format classes use StringBuilder May 17 09:55:52 amad27k1: please learn you an english and try again. May 17 09:56:25 prgma: have you understand my question? May 17 09:58:15 How can broadcast receiver starts without invoking it from activity class? May 17 09:58:31 How can broadcast receiver starts without invoking it from activity class? May 17 09:58:37 by putting it in your manifest May 17 09:58:39 by putting it in your manifest May 17 09:58:43 :) May 17 09:58:44 how ? May 17 09:58:44 :) May 17 09:59:46 mean how onRecieve methond is call on application install, not calling from the activity May 17 10:00:02 mean how onRecieve method is call on application install, not calling from the activity May 17 10:00:44 what broadcast are you trying to receive May 17 10:01:15 means when my application is install then my onRecieve method is call May 17 10:01:40 Can't do that May 17 10:02:10 you can't detect your own install, but you could set a flag on first run May 17 10:02:41 recent android versions don't even register receivers until first run May 17 10:06:42 Dragonborn: You have to register with freenode to be able to speak in this channel. May 17 10:06:56 Dragonborn: I'm flattered that you think I'm an op or staff here, but I'm not. May 17 10:09:20 Hi May 17 10:09:42 i read that as lordbooyah May 17 10:09:50 :) May 17 10:12:50 I read that as department of redundancy department May 17 10:19:44 hello May 17 10:20:08 * readme is writing binary trees to refresh his memory May 17 10:20:42 ? May 17 10:20:44 random May 17 10:21:01 I got some problems with sqlite. Been battling with this problem for 2 days now, I've read tons of stuff on google and tried everything. May 17 10:21:18 * readme waits for the punchline May 17 10:21:27 the thing is that when I create a database, I can insert ONE row into that database, then nothing happens when I try to insert the rest May 17 10:21:31 I can still read from it May 17 10:21:38 but only one entry May 17 10:21:50 are you doing something unusual? May 17 10:21:50 and I get no exeptions what so ever, logcat is empty May 17 10:21:58 karahana: sounds like a uniqueness constraint is being violated May 17 10:22:04 no, just a simple table May 17 10:22:19 db.execSQL("CREATE TABLE ipBank (_id INTEGER PRIMARY KEY, ipname TEXT, ipaddr TEXT, categ INTEGER)"); May 17 10:22:22 thats the table May 17 10:22:39 and I insert with a different id each time, 1, 2, 3 and so on May 17 10:22:45 really wierd problem May 17 10:22:54 you should just make the _id AUTOINCREMENT May 17 10:22:59 and not insert it yourself May 17 10:23:21 I've been working alot with db's before (mysql and oracle) but never had this problem hehe May 17 10:23:38 I had it autoincrement before, same problem, removed it and started inserting ids myself just to try it May 17 10:23:59 karahana: what if you try it using the sqlite command line ? May 17 10:24:03 even on your pc May 17 10:24:11 you must have something messed up May 17 10:24:31 readme: ofc I do =) otherwise it would be working hehe, but the question is what May 17 10:24:42 g00s: how do I open the db on the virtual device with it May 17 10:24:50 use the sqlite3 command May 17 10:25:02 it might be in some /bin directory or something May 17 10:25:09 (not in your path) May 17 10:29:53 karahana: oh, i hope you put a ';' at the end of that statement btw ;) May 17 10:30:36 not that you foobared your first attempt, and then tried different things - which weren't different because that statement never took May 17 10:31:55 whenever i look at the code for my content provider, i want to barf May 17 10:32:05 and its done very well May 17 10:32:41 Morning Android Dev May 17 10:33:19 is there a good way to use a mapview in a fragment besides the hacker here http://stackoverflow.com/a/10041252/183091 which involves creating a hacked up lib May 17 10:34:03 gah, seems the entries were all in the db May 17 10:34:04 ClockworkAnt: I don't think there are any other way. I choosed to use the web api instead for my app May 17 10:34:31 ty guys =) much easier now that I managed to open the db =) May 17 10:34:38 karahana: so you may as well leave it as autoincrement May 17 10:34:43 Dahliz91, interesting solution is it clunky? and may I see the app (link to play store etc) May 17 10:34:54 g00s: yes ofc May 17 10:35:30 ClockworkAnt: https://play.google.com/store/apps/details?id=org.hrf.schystavillkor May 17 10:35:31 ClockworkAnt: i think the iosched app uses the map view also May 17 10:35:41 hi, can anyone please help me with this question? http://stackoverflow.com/questions/10633784/issues-while-adding-an-ndk-application-to-android-source May 17 10:35:43 But it's only available in swedish May 17 10:35:52 err, i mean the map in web view May 17 10:36:22 no problem about the sweedish i'll guess my way through the interface =) May 17 10:36:42 Im not sure i'll be able to use the webview as I need custom overflays May 17 10:37:05 ClockworkAnt: http://pastie.org/3924859 If to any help May 17 10:37:30 Hi, I am trying to start a browser with a url in a onTouch function and I keep getting nullpointerexception with the function startActivity. Has anyone run into a similar problem? May 17 10:38:50 ClockworkAnt: https://developers.google.com/maps/documentation/javascript/overlays#CustomOverlays May 17 10:38:53 Dragonborg, I dont think goatse is a sweedish translator, please dont private message me without permission May 17 10:39:17 Dahliz91, thank you, this has given me alot to think about =) May 17 10:39:27 Must go but goodluck May 17 10:39:50 haha May 17 10:40:41 hm I guess this might be null but I have no clue why.. Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com")); May 17 10:41:09 all dont trust Dragonborg he is sending me some nasty links in IM May 17 10:44:58 <`z> bsilwal, of? May 17 10:45:11 <`z> CP? May 17 10:47:32 yeah, Dragonborg is being an ass May 17 10:48:36 I am at work its so disturbing (puke) May 17 10:49:07 good i hope your boss sees it lol May 17 10:50:51 readme: are you Dragonborg ? May 17 10:58:08 http://tinyurl.com/79rg9ku May 17 10:59:11 so far I've written 8 different ways to print the elements of my binary tree. May 17 10:59:19 all recursive.. May 17 10:59:23 need to find more May 17 11:07:10 has anyone sucessfully run the Gallery sample (HelloGallery) ? May 17 11:07:22 http://developer.android.com/resources/tutorials/views/hello-gallery.html May 17 11:07:30 i think it's broken because of the styles May 17 11:12:00 http://sourceforge.net/projects/synergyandroid/develop May 17 11:12:04 interesting May 17 11:12:17 ceti331_: awesome May 17 11:13:13 i've no experience of android - it says is needs a rooted phone ? May 17 11:13:35 yes, but here is not the place to discuss that May 17 11:13:56 anyway root is easy on most phones. just google May 17 11:16:49 rootinh has risks though, waranty voiding ? May 17 11:20:03 no one will figure out you rooted if you are careful. May 17 11:20:43 I can restore my phone back to factory settings, and I've rooted my original rom, installed safestrap, and ice cream sandwich, and I can switch between them :) May 17 11:22:22 ok May 17 11:23:09 hdmi out: what do you see prgramaticaly ? do you get dul screens or is the OS in control of what happens May 17 11:24:48 ceti331_: OS-dependant May 17 11:25:03 usually screen is mirrored May 17 11:26:00 ok. answer i was hoping for was 'apps can use hanset for different controls, and visuals on the big screen' May 17 11:26:56 ceti331_: there's no official support for mutiple screens outside Kyocera's May 17 11:27:16 ok thanks for the info May 17 11:27:49 i'd hope at least mirroring would have treated it as 1920x1080 downscaled to phone May 17 11:28:07 but that seems unlikely May 17 11:28:10 ceti331_: I'm not sure if most of the video-out capable devices even have multihead in hardware May 17 11:28:26 outside of let's say, "video stream from codec to HDMI" May 17 11:28:47 right, video specil case i was about to say May 17 11:38:25 i've got synergy compiled and working here May 17 11:38:29 :) May 17 11:38:34 I'm going to add some features. May 17 11:43:35 cool May 17 11:45:17 whats going through my mind is, i'm very tempted by an HTC one X .. but as a phone its overkill, but I want to tinker programming such a thing, if it could be docked and partake in my "command-centre" driving a monitor and/or being controlled by main keyboard/mouse it would be a lot more usefull. (e.g. leave a web brower open and have it clipped under my main monitor or whatever) May 17 11:47:16 Hi folks! May 17 11:47:50 Anyone skilled with custom camera app, intent-filters May 17 11:47:59 and returnin data? May 17 11:48:21 Need to fix a small bug.. ..but a bit hopeless! May 17 11:50:10 Hi .. is there any way i can trigger an incoming call on an actual device, using 'adb'? May 17 11:50:57 afaik, no, I use twilio for that May 17 11:52:38 oh thats nice ... that means theres a way to do it ... i actually hav a galaxy nexus device ... and i want to test my code on it and how it behaves when a call comes in ... i'll look into twilio! May 17 11:52:39 My problem is on outputStream = getContentResolver.openOutputStream(mySaveUri); May 17 11:56:42 @readme, the problem is my galaxy nexus is locked to DOCOMO japan and i am not in japan right now, so the device is not connected to the network ... May 17 11:57:59 wow I just had to pass the context from my custom ArrayAdapter to my custom View.OnClickListener lol May 17 11:59:12 I'm buildin a very easy vamera app.. May 17 11:59:23 I'm buildin a very easy camera app.. May 17 11:59:37 I need it to be pluggable in other apps.. May 17 11:59:53 .. my intent-filters are OK May 17 12:00:07 the app is "seen" by other apps (as Catch) requiring for CAMERA_INTENT May 17 12:00:30 my problem is returning the data to the caller application May 17 12:00:54 I set up a PictureCallback object May 17 12:01:13 that is overriding the usual onPictureTaken method May 17 12:01:30 now.. ..I foud some code suggesting to use an OututStream to return the data May 17 12:01:42 (I intended an 'OutputStream') May 17 12:02:04 but I cannot figure out where to put the code. May 17 12:04:53 Can anyone suggest me any way out? May 17 12:08:54 Can anyone hel with a custom camera app development? May 17 12:09:00 Can anyone help with a custom camera app development? May 17 12:18:28 hello. i have problem debugging with eclipse using a samsung gs2. i tryed both google usb drivers and the ones with the latest kies. it's seen by eclipse, the debug starts but then it goes offline. sometimes i get a bsod too....any ideas please ? May 17 12:19:10 its a pc with win7 64 recently installed May 17 12:21:01 Did you check the cable? (sorry for the sissy answer) May 17 12:21:12 j0p: So it works but then crash? May 17 12:21:22 it seems working...its the one bundled with the phone May 17 12:21:32 Dahliz91 : exactly May 17 12:21:42 or no crash but stops working May 17 12:21:53 then i replug and it works for some seconds May 17 12:22:21 it seems like i'm not the only one with this problem but i can't find a solution on forums May 17 12:23:33 I have had problems when i ran the stock OS but that was solved when changing to CM. So I don't know. May 17 12:24:08 i see May 17 12:24:19 thank you..at least i know it should be a software problem May 17 12:32:09 Any intent-filter guru around? May 17 12:35:22 in a listFragment which lifecycle method should you attach the adapter? in onCreateView or onstart? May 17 12:36:55 the one which you need to debug May 17 12:43:29 ClockworkAnt: https://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentListArray.html May 17 12:52:46 I load a Bitmap (size 75x75px) from resources. When I call bm.getWidth() i get the 113? How can I set real size of image without scaling? may be some flag... May 17 12:56:11 any easy way to change actionbarsherlocks accent color? May 17 13:09:38 I've uploaded my APK onto Google Play and set it as a paid application, running the release APK on a dev device is returning as LICENSED from LVL. (Not using test account). Will this change with a downloaded APK from the Google Play Market or is something not working? May 17 13:11:54 are there emulator images or a remote test lab for HTC devices like motorola and samsung have? May 17 13:12:57 ashley_w: there are commercial remote labs May 17 13:13:25 well, this is an open source project, so we aren't going to pay for that. May 17 13:16:58 we have a report that the action overflow button (menu) is not showing up on an htc one v May 17 13:19:15 I have a service. I would like that service to be "running" (started) forever. It doesnt do anything but maintain its own state if its not bound. Where would it be appropriate to call startService() ? May 17 13:20:03 I could do it in onCreate() but thats not very nice i think May 17 13:21:43 mgj: I would subclass Application and do it in onCreate May 17 13:22:47 that sounds like a good idea. I saw someone talking about subscribing to ACTION_BOOT_COMPLETE and starting the service there, but that is much too agressive for what i really need May 17 13:22:49 thanks May 17 13:55:35 JakeWharton: ping May 17 13:59:50 Guys should i rewrite the tabwidget with my own tabwidget if i want to have plenty space for both icon + text? May 17 14:01:31 vekexasia: no, you can provide your own custom layout for the tabs May 17 14:01:48 see TabSpec.setIndicator() May 17 14:01:55 well i didn't know that.. Cause the problem is that using .setIndicator May 17 14:02:20 and specifying both the "title" and the drawable doesn't show the drawable... But as far as my memory reminds this was working May 17 14:02:21 lol May 17 14:02:45 hello i am calling a service from an activity, the service is tryign to open the sqlite db to retreive and update info , i am getting a nullpointer exception when the activity is calling the intenet service May 17 14:02:47 any ideas why May 17 14:02:49 that's weird, it should work May 17 14:03:10 mTabHost.newTabSpec("ASD").setIndicator(null, getResources().getDrawable(R.drawable.ic_ab_share)), => shows the drawable May 17 14:03:10 is it like that all different OS's, like ICS versus Gingerbread? May 17 14:03:28 mTabHost.newTabSpec("ASD2").setIndicator("LALL2", getResources().getDrawable(R.drawable.ic_ab_star_on)), May 17 14:03:31 doesnt :P May 17 14:03:55 i'm going to try this May 17 14:04:03 with a gingerbread emulator May 17 14:05:03 java.lang.RuntimeException: Unable to start service com.my.test.UpdaterService@412b6698 with Intent { cmp=com.my.test/.UpdaterService }: java.lang.NullPointerException May 17 14:05:09 this is the error i am getting May 17 14:05:17 it looks like your service code is bugged May 17 14:05:29 if i use Tags it works May 17 14:05:37 king_jester: do you think the "issue" is only on ICS? May 17 14:06:21 you can create a thread from a service right? May 17 14:06:27 yes ocx May 17 14:06:31 lol king_jester May 17 14:06:40 in gingerbread everything works :) lol May 17 14:06:41 vekexasia: it's possible, but if its not working on either OS level then you can conclude there's probably an issue with your tab setup May 17 14:06:51 ah strange May 17 14:07:09 ok i'll write my own fully compatible view :) LOL May 17 14:07:18 any idea where to find the "standard" layout ? May 17 14:07:22 or the name? May 17 14:16:21 vekexasia: R.styleable.TabWidget_tabLayout is what is referred to in the TabHost source May 17 14:16:29 that would be a good starting point May 17 14:16:40 thanks king_jester :) May 17 14:16:47 either way, a basic tab is really just a vertical LinearLayout with an ImageView and TextView lol May 17 14:16:55 np May 17 14:17:57 the bro code o.o May 17 14:17:58 https://play.google.com/store/apps/details?id=com.engrave.the_bro_code&feature=search_result May 17 14:18:23 can I have a EditTextPreference field that automatically shows its current value as its summary? May 17 14:20:10 everythingWorks, lol, nice. Yours? May 17 14:25:31 anyone else had problems importing Android projects into Eclipse? May 17 14:25:50 even after the 'automagic' Android Tools > Fix project properties May 17 14:26:11 neither the source nor the resources are imported :/ May 17 14:26:37 (I followed the directions on android.developer.com) May 17 14:27:16 I've had some problems with different sdk tools versions. May 17 14:27:21 hi. I'm using AsyncTask to do something in the background. In the end I have a result (which I pass on in the normal way to onPostExecute), but also a different value I'd like to access in onPostExecute too. What would be the best method for this? May 17 14:27:22 Some of them were quite hard to fix. May 17 14:27:43 Kopfgeldjaeger: where is that value coming from? May 17 14:27:59 Easiest pattern is a small class that has both values and use that as the return type, I guess. May 17 14:28:15 kiddinjo: R.styleable.TabWidget_tabLayout is internal. Cant use it May 17 14:28:16 Unless it's a static value, in which case you could make it a member of the asynctask and feed it through the constructor. May 17 14:32:08 nm I has the dumb May 17 14:32:12 TheTrash: I basically download something in doInBackground (the downloaded stuff is my result), but also get some other piece of information while doing so. I think I can just create a private object in my task definiction and access that in onPostExecute May 17 14:32:16 do not place those files in the workspace May 17 14:32:24 when placed outside; it imported fine May 17 14:33:33 i am having a weird problem, when i am calling from a service getwritabledb to sqlite i am getting a null pointer exception May 17 14:33:49 db = local_db.getWritableDatabase(); May 17 14:35:04 can that be called from a service? May 17 14:35:46 onStartCommand() is calling the service constructor and inside the constructor the db is called May 17 14:36:02 is it fine for android to call this way? May 17 14:36:42 holy balls adt20 preview 2 just scared me May 17 14:36:45 big dialog popped up May 17 14:36:48 "auto monitor logcat" May 17 14:38:34 these 20 more.... in logcat how can i maximimze them May 17 14:39:00 you dont May 17 14:39:29 how can i see them? May 17 14:39:29 ocx clearly local_db is null May 17 14:39:31 you cant May 17 14:40:00 local_db = new localDB(this,"/data/data/com.my.test/local.db"); May 17 14:40:09 it is getting initialized from the constructor May 17 14:40:22 ok well go pastebin the stack trace and your code May 17 14:40:26 a line before db = local_db.getWritableDatabase() May 17 14:40:42 unrelated: take the path out of your filename May 17 14:42:01 ok trying that May 17 14:42:17 never hard code paths like that on Android May 17 14:42:40 wongk: actually it only wored with a full path last time i tried it , but it was only 1 class May 17 14:43:32 still same problem May 17 14:46:09 i assume so, which is why i said it was unrelated May 17 14:46:44 this is my code May 17 14:46:46 http://pastebin.com/7sfnwqYm May 17 14:48:21 why do you have a reference to a Context in your database class May 17 14:48:40 and i am calling the whole using this: startService(new Intent(this, UpdaterService.class)); // May 17 14:49:34 to overwrite the template May 17 14:49:38 I have a app I installed on a Fire and it runs fine when launched from the debugger / IDE…. but if I launch it from the Fire, I get an error like Can't Launch App. Any ideas? May 17 14:49:53 Other demo, sample apps have never had this issue. May 17 14:50:12 am I some how not in deployment mode? May 17 14:50:27 Does someone know where can I find some Android Icons for applications? May 17 14:50:29 You're not in "read logcat" mode May 17 14:50:38 is the service a valid context in the constructor? i thought it was not until onCreate May 17 14:50:53 which is the more appropriate place for this code May 17 14:51:13 SimonVT: and what controls that? May 17 14:51:20 :| May 17 14:51:45 Srsly? May 17 14:51:48 YES May 17 14:52:08 wongk: come again please? May 17 14:52:10 adb logcat May 17 14:52:12 ddms May 17 14:52:16 eclipse's logcat window May 17 14:52:22 Find a stack trace May 17 14:52:22 Read it May 17 14:52:27 Fix it May 17 14:52:30 ok May 17 14:52:38 but thats not really what Im asking May 17 14:52:44 the APP runs FINE in the debugger May 17 14:52:57 are suggesting I have actual crash? and Im not seeing it? May 17 14:53:12 The failed to launch is instant. May 17 14:53:27 Its not a crash warning or anything if they exist. May 17 14:53:29 check logcat May 17 14:54:03 SimonVT: evancharlton: is a [Service|Activity] a valid context before onCreate is called? May 17 14:54:11 logcat is different from having the debugger hooked up and getting log output in what way? May 17 14:54:19 wongk: Not really May 17 14:54:50 You can't be sure it's properly initialized May 17 14:54:52 ocx: move the code in your Service constructor to onCreate May 17 14:54:59 If I have a framelayout drawing an imageview on top of an edittext, how can I make sure the imageview is clickable and the edittext cursor doesn't go on top of the image? May 17 14:55:16 generally these types of things are not done in constructors for Conext subcclasses May 17 14:55:53 wongk: : i can also move to onStartCommand() right instead of oncreate() May 17 14:55:57 ocx: also remove the "context" member from your localDB class May 17 14:56:30 ocx: yes May 17 14:56:45 anyone? May 17 14:56:59 and remote that this.context = context; May 17 14:57:09 the debugger IDE is not calling logcat for me is what you seem to be suggesting. May 17 14:57:12 I have an application-wide data-sink. This data is parsed, and some Activities need to be updated based on this data. what would be a good design principle to use for this? May 17 14:57:31 SimonVT someone was looking for you last nihgt May 17 14:57:37 ocx: name your fields sensibly May 17 14:57:39 I bet they were May 17 14:57:52 and turn on warnings for hiding variables May 17 14:58:03 yes you are right, bad coding habit May 17 14:58:04 a local variable named the same as a field is bad news bears May 17 14:58:27 I saw no highlights when logging on this morning May 17 14:58:35 lies May 17 14:58:36 ocx: why in the world are you instantiating a new UpdaterService in onStartCommand?! May 17 14:58:46 zzattack: listeners possibly? May 17 14:59:13 this is a red hot mess May 17 14:59:32 Maybe I just ignored them.. or irccloud did.. May 17 15:05:00 wongk: i am calling fetchData(); from onstartCommand now direcrtly withotu a constructor May 17 15:05:34 moved all data from constructor to fetchdata May 17 15:06:11 AlCapwn: something like this? http://en.wikipedia.org/wiki/Observer_pattern May 17 15:06:54 zzattack: that would be the correct pattern for your scenario May 17 15:07:09 wongk: working great May 17 15:07:11 thanks man May 17 15:07:18 cani read about that somewhere? May 17 15:07:19 the context May 17 15:07:24 initialization May 17 15:07:30 d.android.com May 17 15:08:22 ok May 17 15:08:48 wongk: cool. and i can just use a singleton for the EventSource in that example? or would it be better to extend Application? May 17 15:08:50 zzattack: either have your activities implement a listener interface, or use a non-static subclass implements it May 17 15:09:29 a singelton would be appropriate imo May 17 15:09:48 does android have a specialized java.util.Observable? May 17 15:10:04 i'm asking because both you and AlCapwn called it 'listener' instead of observable May 17 15:10:23 observers are called listeners in Android May 17 15:10:42 think of, for instance, onViewClicked May 17 15:10:58 ah, and that implements something like OnViewClickedListener? May 17 15:11:05 right May 17 15:11:54 so instead of using something like that java.lang.Observable i jsut define my own interface May 17 15:12:01 excellent, thanks May 17 15:12:43 zzattack: also, when you store your listeners, wrap them in weakreferences, you don't wanna hold onto your activity after it finishes May 17 15:13:33 Unless you're happy to remove the listener progmatically from your activities May 17 15:13:42 you should unregister in onDestroy May 17 15:13:54 though a weak reference is still not a bad idea May 17 15:15:47 can I inflate different layouts in a fragment (after each other, not simultaneously)? May 17 15:16:06 Any intent-filter guro around? May 17 15:16:18 sure, but what do you plan to do with those inflated layouts? May 17 15:16:18 mcfoi: just ask your question May 17 15:16:33 Ok.. May 17 15:16:48 evancharlton: I assumed mcfoi was doing a survey on levels of knowledge of intent-filters in the IRC developer community May 17 15:16:48 ..need to understand how to returno frm my custom camera app May 17 15:17:02 the image taken May 17 15:17:10 to other applications May 17 15:17:46 that actually doesn't relate to intent filters May 17 15:17:57 yeah that has nothing to do with intent-filter May 17 15:17:59 yes.. .you are right... May 17 15:18:06 that's just setResult(int,Intent) May 17 15:18:17 ..intent-filters ar yous hald of the "game" May 17 15:18:30 ... what? May 17 15:18:45 translate to english please :P May 17 15:18:47 ..intent-filters ar just half of the "game" May 17 15:18:55 (sorry) May 17 15:19:11 they're 0% of this particular game May 17 15:19:30 wha do you mean by "just setResult()" May 17 15:19:50 I mean "RTFM for setResult(int,Intent)" May 17 15:20:44 I have my onPictureTaken method in PictureCallback object May 17 15:21:19 Should I code setResult inside it? May 17 15:26:02 is there some way to find out of what this package is a part? import com.android.ex.chips.RecipientEditTextView; May 17 15:29:26 If you have just a layout folder ..do you have to have a layout-land and land-port folders in order for the screen to switch when a user changes their screen orenitation? May 17 15:31:14 I've tried to run a new activity from a gridview , but it's not working correctly, i got the second screen when clicked the first item in the grid, but it's not showing up contents, here's the first main activity http://pastebin.com/xfbsNiGx and this is second activity http://pastebin.com/CzMpFtXS also here's the manifest contents http://pastebin.com/HkxSP6yh May 17 15:34:17 john_doe_jr: no, that's if you want a different layout May 17 15:36:52 f00bar80: have you tried some plain ole HTML for testing? May 17 15:39:25 wongk-home|2: alright so do I just need a layout folder and not a layout-port folder? May 17 15:39:45 correct May 17 15:39:49 correct May 17 15:40:02 well, why have a layout-port folder then? May 17 15:40:16 becuase you want a different layout in portrait mode? May 17 15:40:26 and acer iconia devs in? May 17 15:41:38 can you use to just copy a bit of code in another layout? May 17 15:41:43 yes May 17 15:41:51 thats...exactly what include is for o.o May 17 15:42:02 canadiancow|work: how? May 17 15:42:14 May 17 15:42:17 or something like that May 17 15:42:45 i prefer to just have a MyCustomView that inflates the layout, and then i do May 17 15:42:57 because it lets me handle other common logic in one place as well as the layout itself May 17 15:43:04 or anyone know how to find the mount point for a tablet's external sd? May 17 15:43:04 but in some cases, all you need is May 17 15:43:34 canadiancow|work: well, I have another layout that has a table on it but all kinds of other stuff...I just want the table in the other layout to be on this layout May 17 15:44:44 NotJimCarrey: http://developer.android.com/reference/android/os/Environment.html May 17 15:46:09 :/ May 17 15:46:36 awesome, thanks May 17 15:49:58 wongk: can u tell me which ui elements were most likely used to obtain this result? http://img848.imageshack.us/img848/7865/menuitemsc.png May 17 15:51:37 LinearLayout and TextView at least May 17 15:51:43 don't know what the slider button is May 17 15:51:46 seems like ToggleButton + custom drawables May 17 15:52:18 make your own togglebutton with your own state drawable May 17 15:52:35 urgh.. can someone clarify something for me? How is it that a 7" tablet at 600x1024 mdpi has 600dp for its smallest width ? May 17 15:53:15 and then yes, as wongk said, stuff them in a layout with a couple text views and another drawable on the left May 17 15:53:47 That's the 600 part of 600x1024 May 17 15:54:10 wongk, no i didn't , is there something wrong in any of the pasted code above May 17 15:54:45 f00bar80: my suspicion is, whatever is required to embed the youtube player, is not working May 17 15:54:48 kwazi: lol? May 17 15:54:59 at mdpi, 1px = 1dp May 17 15:55:05 in landscape, it's 1024dp wide May 17 15:55:08 in portrait, it's 600dp wide May 17 15:55:10 ah shit.. I confused mdpi and hdpi May 17 15:55:12 so it's smallest width is 600dp May 17 15:55:16 I was convinced mdpi is 1dp = 1.5px May 17 15:55:27 but yea, now I remember.. hdpi is 1dp = 1.5px May 17 15:55:42 man.. my bad :( clearly too early in the morning May 17 15:56:03 How do I include a " in a string ressource? May 17 15:56:11 plaisthos: escape it with \ May 17 15:56:12 \" or " May 17 15:56:22 hm okay May 17 15:56:29 then something else is going wrong May 17 15:57:02 wongk, i've tried the youtube class alone and it was working May 17 15:57:32 What is the best way to save Configuration for my applications? I Mean a Config file that my app needs to access and retrieve some data that is written there. The File must be able to edit. May 17 15:57:35 f00bar80: but this way you are seeing a blank activity? May 17 15:58:02 Tsukaza use shared prefs? May 17 15:58:16 Shared Preferences? Ok ill look into it ty May 17 15:58:24 wongk, yea with only the header as of the main activity May 17 15:59:00 " does not work for my edittextpreference :/ May 17 15:59:11 f00bar80: and you don't want to take 30 seconds to try plain HTML to rule it out? May 17 16:00:30 kwazi: i am not an OP on this server. k, thanks... May 17 16:01:18 EvilPenguin: huh ? I never msged your or asked you a question... May 17 16:01:50 kwazi: some users is PM-ing me saying you gave him information. some Dragon person... May 17 16:02:08 f00bar80 have you tried sticking the full html tags in there?