**** BEGIN LOGGING AT Sun Jan 27 02:59:59 2013 Jan 27 03:00:32 so I installed the ADT bundle and then I wanted to get an html editor, so I installed one with "install new sofware" from the help menu in eclipse, and everything slowed down to an unusable crawl. Is it better to install Juno SR1 and then the ADT plugin or does that require a lot of setup? Jan 27 03:00:46 * sir_galahad_ad doesn't even know what that is :P Jan 27 03:01:35 nesoi sounds like you have dual purposes Jan 27 03:01:55 you want a web editor or android dev environment ? Jan 27 03:02:14 I was playing with cordova too, so a web editor would be handy Jan 27 03:02:37 eclipse has lots of extensions that can be installed, is that not a good idea? Jan 27 03:02:45 wasnt aware eclipse was a good choice for webdev Jan 27 03:03:07 but I know nothing about web dev Jan 27 03:03:09 :) Jan 27 03:03:31 or eclipse? Jan 27 03:03:32 :) Jan 27 03:03:56 I know eclipse is ok a java/android ... but still not great sometimes Jan 27 03:05:31 hey, is anyone doing hackercup? Jan 27 03:07:34 StingRay_: might want to give IntelliJ IDEA a try then Jan 27 03:07:51 well I downloaded the community edition Jan 27 03:08:03 Intellij, woo Jan 27 03:08:05 not really fired it up yet Jan 27 03:08:14 it good is it ? Jan 27 03:08:29 Yep. Jan 27 03:09:33 I'm on OSX so anything is better than the "seperate editor" bug that we mac users have to deal with in eclipse Jan 27 03:09:57 as in no direct editing of properties in layouts Jan 27 03:10:10 tis lovely ! Jan 27 03:15:32 ConnectivityManager cm = Jan 27 03:15:33 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); Jan 27 03:15:33 mUsbRegexs = cm.getTetherableUsbRegexs(); Jan 27 03:15:40 that code simply will not work Jan 27 03:15:53 "The method getTetherableUsbRegexs() is undefined for the type ConnectivityManager" Jan 27 03:16:32 I've googled around to no avail. The problem seems to be context, but I don't know how to fix that. Ths same error exists in the Android source code (I'm trying to replicate part of it). Jan 27 03:16:36 Maybe ConnectivityManager just doesn't have a method called getTetherableUsbRegexs Jan 27 03:17:03 https://developer.android.com/reference/android/net/ConnectivityManager.html Jan 27 03:17:18 Nope, no method called that Jan 27 03:17:42 it's in the Android source Jan 27 03:18:10 is it marked @hide? Jan 27 03:18:11 That doesn't mean it's a public api Jan 27 03:18:20 oh Jan 27 03:18:36 well shit. I'm dumb. Jan 27 03:19:18 thanks. I didn't realize not everything was publicly available Jan 27 03:19:42 is anybody doing hackercup? Jan 27 03:20:24 im not Jan 27 03:25:25 StingRay_ : what's the "seperate editor" bug ? Jan 27 03:29:20 in the gallery, how is the thumbnail image for videos chosen? I want to edit it Jan 27 03:29:55 i have cartoons and movies on my nephew's tablets, and they can't read, and the thumbnail image on the videos looks random, so they don't know which video is which Jan 27 03:30:16 it's probably an arbitrary frame 5% into the video Jan 27 03:30:41 how do i find out? Jan 27 03:30:51 or is there a way for me to edit this? Jan 27 03:30:59 it seems random Jan 27 03:31:04 probably can't edit Jan 27 03:31:13 you can dig in to find the actual logic here: https://android.googlesource.com/platform/packages/apps/Gallery2/ Jan 27 03:32:14 i can edit the video, i mean Jan 27 03:50:28 nesoi in changing fixed properysheet values or anything like entering a string in a property sheet text entry it has to popup a separate window Jan 27 03:50:43 same with id's Jan 27 03:50:49 same with most stuff Jan 27 03:51:15 tis a little annoying Jan 27 03:51:47 I'm on the latest preview adt so some things are fixed, but 80% still not fixed Jan 27 03:55:22 I do a Ln.d (roboguice logging) of my JSON fetch and I get something like: "iconlarge":"http:\/\/farm8.staticflickr.com Jan 27 03:55:34 how can I reference a specific view from a specific layout so I can touch said view? Jan 27 03:55:35 Is it correct for there to be a \ before the / in, for example, http://? Jan 27 03:55:55 ckr.com\/7148\/ Jan 27 03:56:08 MajorZero if it's in the tree you can performTouch() or something like that Jan 27 03:56:22 its in a different tree Jan 27 03:56:29 and by touch i mean like interact with it, reference it Jan 27 03:56:39 well you need an instance to it Jan 27 03:56:46 oh Jan 27 03:57:01 well do you have access to the tree root ? Jan 27 03:57:05 yes Jan 27 03:57:14 well just findviewbyid then Jan 27 03:57:23 its not working :/ Jan 27 03:57:38 then that id is not in that tree Jan 27 03:57:51 hmm Jan 27 03:58:07 okay Thank you (: Jan 27 04:06:39 in a listView how do I have button elements and still have the list item trigger onItemClick ? Jan 27 04:07:10 there seems to be some very odd opinions on S/O and GG ...well not odd, conflicting Jan 27 04:08:09 what do you have questions about? it should be pretty straightforward Jan 27 04:09:37 is there a way to get rid of broadcast intents manually from adb shell? I have uninstalled my app because I had a bug and after the fix, the intents are sitting there. I thought uinstalling would remove them Jan 27 04:10:14 JakeWharton just if any clickable view (my case button) is visible in an item layout of list view, the item is no longer clickable Jan 27 04:11:31 I guess I can uninstall app then reboot to clear them. Jan 27 04:24:56 anyone know how I could have a wallpaper on the lock screen that's different from my regular wallpaper? I don't know how this happened... Jan 27 04:26:42 I used to have that with my Nexus One back in the day Jan 27 04:27:00 I'm using Launcher Pro. I think that has something to do with it. Jan 27 04:27:49 it would then, yes Jan 27 04:27:50 anybody doing hackercup? Jan 27 04:28:22 "im not" -lgfreitas Jan 27 04:30:31 for some reason everytime I attempt to set the text of a button, inside my viewpager, I encounter a nullpointer exception Jan 27 04:31:17 is there something I need to do before changing the content of a viewpager?? I even tried calling notifyDataSetChanged on my adapter, but I still get this nullpointer exception Jan 27 04:31:44 you're probably creating a new fragment Jan 27 04:31:54 and not referencing the old one Jan 27 04:31:58 are you using a FragmentPagerAdapter? Jan 27 04:32:19 note that you can't recall getItemAtPosition Jan 27 04:32:30 because that just instantiates new fragment, hence nullpointer, MajorZero Jan 27 04:32:49 no im not, im using a custom viewpager adapter. Jan 27 04:35:04 would i be better off storing fragments inside my viewpager rather than regular layouts? Jan 27 04:37:09 https://android.googlesource.com/platform/packages/apps/Settings/+/android-2.2.3_r2.1/src/com/android/settings/TetherSettings.java <-- does anyone know what part of that exactly turns on/off usb tethering? Jan 27 04:41:25 well regardless, I wasn't able to implement my layout with fragment views. And I did look into it since its suggested to build viewpagers with them. However, I am unable to change the Jan 27 04:41:29 text of a button inside my viewpager. Regardless if I change it outside of the instantiateItem method of hte pageradapter, or inside it. Jan 27 04:46:32 Is there any reason why eclipse would report "can't open file for reading" when I'm not even attempting to read a file? Jan 27 04:48:09 MajorZero not used a viewPager yet, but would it not return and index with a rootView ? Jan 27 04:49:51 MajorZero oh it's an adapter that powers it ? Jan 27 04:49:52 Im looking into that now....I may try to see if I can reference the button by using the index of the view being displayed.. Jan 27 04:50:58 yes an adapter powers it and I read online of someone able to change the contents of their viewpager by changing said contents, in their adapter...I tried that and it didn't work so I'm going to try finding a reference to the current view next Jan 27 05:18:08 is there an easy way to create an object from an xml file? Jan 27 05:23:46 RustyShackleford: how does the xml file get created, where does it come from, what does it have ? Jan 27 05:24:52 Does .addView() on a LinearLayout work after setContentView() ? Jan 27 05:24:59 if its a simple schema, xmlpull + new() works fine :) Jan 27 05:25:28 i'm using xmlpull now Jan 27 05:25:43 massive chain of if/else statements Jan 27 05:26:15 but it works. I'm just curious if there is something more convenient Jan 27 05:26:39 you could use 'Simple' Jan 27 05:27:06 i'm assuming you have xml for some reason; there are probably things for json too Jan 27 05:27:58 http://simple.sourceforge.net/home.php Jan 27 05:28:03 Anybody? Jan 27 05:29:48 anyone use androvm? wondering how i get the play store on it Jan 27 05:30:52 FelicianoX yes! Gaz Sometimes! Jan 27 05:31:52 Gaz there is an image with playstore Jan 27 05:32:05 but you can use gapps from cm dists Jan 27 05:32:08 either or Jan 27 05:32:10 :) Jan 27 05:32:36 ah yeh Jan 27 05:32:38 what is gapps? Jan 27 05:32:48 erm Jan 27 05:32:53 Google Apps Jan 27 05:32:58 aha! Jan 27 05:33:01 thx man Jan 27 05:33:02 account,play,gtalk etc Jan 27 05:33:04 this thing is super cool Jan 27 05:33:09 tis ok Jan 27 05:33:09 apart from that it doesnt run unity apps Jan 27 05:33:13 Is there any reason why eclipse would report "can't open file for reading" when I'm not even attempting to read a file? Jan 27 05:33:20 Strange, my Android emulator is not logging anything in Logcat (Eclipse) Jan 27 05:36:12 does each Activity have it's own ActionBar? Jan 27 05:36:21 or is that shared between Activities Jan 27 05:37:35 FelicianoX: it happens, restart eclipse and/or adb Jan 27 05:37:51 never use AB, but cant see it being shared Jan 27 05:38:43 what do you mean shared? its not some piece of your code that is shared between activities Jan 27 05:39:18 you implement the actionbar + menu item's from your menu xml (or programatically) Jan 27 05:39:34 this HTC Flyer is a waste of time, itll work with adb once in 100 attempts Jan 27 05:39:41 ironically google gave me this for deving on Jan 27 05:39:49 finally got proximity alerts working like a charm in my app Jan 27 05:40:02 is Google still giving out dev phones? Jan 27 05:40:11 a while ago Jan 27 05:40:16 but this one is the worst choice possible Jan 27 05:41:35 think i should go get a n7 Jan 27 05:41:46 n7 is good Jan 27 05:41:54 I have a fair few tablets Jan 27 05:42:02 im going to grab one in a month Jan 27 05:42:05 like my n7 most Jan 27 05:42:28 oddly I like the galaxy tab 8.9 and touchpad for factors lots too Jan 27 05:42:30 :) Jan 27 05:42:32 this flyer would ben ok if adb worked Jan 27 05:42:44 stock rom? Jan 27 05:42:49 yeh Jan 27 05:42:53 oh Jan 27 05:42:55 has some htc crap on it Jan 27 05:42:57 bummer Jan 27 05:43:01 :) Jan 27 05:43:58 I need a piece of code in a different thread to run on the UI thread, but the class does not extend Activity (runOnUiThread()), any other approaches? Jan 27 05:46:20 how can i fix this error? emulator-arm.exe has stopped working Jan 27 05:47:53 i never use mylyn in eclipse. Am I missing out? Jan 27 05:49:00 it might help if you work in a distracting environment Jan 27 05:49:22 it can help you focus, and regain focus , by maintaining a small context (what you are working on) Jan 27 05:49:25 true_techie impossible to answer Jan 27 05:49:44 why? Jan 27 05:49:56 cause thats not an error Jan 27 05:50:01 it's the result of one Jan 27 05:50:03 :) Jan 27 05:50:16 where can i see the real error then? Jan 27 05:50:44 windows log maybe ? Jan 27 05:50:52 event viewer Jan 27 05:50:53 ? Jan 27 05:51:09 ... Jan 27 05:52:42 RustyShackleford: you are missing absolutely nothing Jan 27 05:53:16 I've solved a problem that I've had across 8 or so magsafe adapters Jan 27 05:53:27 duck tape ? Jan 27 05:53:39 http://www.jegs.com/i/Mr.+Gasket/720/4510/10002/-1?ht=4&CAWELAID=1710788734&catargetid=1784155608&&cagpspn=pla&gclid=CMqD2bzsh7UCFWrZQgodZBcAaQ Jan 27 05:53:39 * g00s uses goose tape ;) Jan 27 05:53:50 pre-emptive strike Jan 27 05:53:56 wut Jan 27 05:53:56 80 bucks a pop will get a guy thinking Jan 27 05:54:07 wtf do you do to them ? Jan 27 05:54:09 my cat bit through the insulation Jan 27 05:54:24 dont let her near your motorcycle :) Jan 27 05:54:27 then my daughter was pulling on it and broke the already frayed wire Jan 27 05:54:37 haha nobody gets near my bike Jan 27 05:54:38 dont let her near your motorcycle either Jan 27 05:54:40 cept my daughter Jan 27 05:55:00 just turned 2 and shes better around that shit than my wife Jan 27 05:55:09 i thought you were going to say it was fixed using IntelliJ Jan 27 05:55:15 hahaah Jan 27 05:55:36 I just believe in best tool for the job, and intellij has changed my life for the better so much, I want to share that with others Jan 27 05:56:17 preach it brother! Jan 27 05:56:49 whats the major diffs ? I have it installed, not run it yet Jan 27 05:56:57 way better intellisense Jan 27 05:57:08 way better refactoring Jan 27 05:57:11 is there a rule of thumb for how deep your navigation should go? Jan 27 05:57:22 just the ui itself is cleaner and I like the dark theme Jan 27 05:57:26 My app will be at most 5 activites deep Jan 27 05:57:27 RustyShackleford: as shallow as possible Jan 27 05:57:32 (you can do that with eclipse but there are places that break) Jan 27 05:57:34 but that seems too deep Jan 27 05:58:59 * ron_frown sighs Jan 27 05:59:08 adium has just really gone to shit BIG TIME in the past couple years Jan 27 05:59:53 RustyShackleford: its an interesting question; for sure. the answer has to do with progressive disclosure, working memory, and information scent Jan 27 06:00:10 anyhow, make it as shallow as possible ;) Jan 27 06:00:32 but dont cram too much crap on a screen - thats totally useless advice since its too general Jan 27 06:00:43 usability testing sorts these things out ;) Jan 27 06:00:51 Navigation goes like this choose a route -> direction -> stop -> arrivals Jan 27 06:01:09 and then perhaps, if I'm ambitious, arrivals -> map Jan 27 06:02:12 dunno Jan 27 06:02:14 I wonder if instead of displaying routes/stops/directions in ListViews, I could just use some Spinners Jan 27 06:02:23 but 120 routes in a spinner? Jan 27 06:02:30 no, not good Jan 27 06:03:14 and dont try putting spinners in your spinners :D Jan 27 06:03:23 (somebody asked about that the other day) Jan 27 06:03:29 lol Jan 27 06:03:38 yo dawg I heard you like Spinners Jan 27 06:03:53 the Dawgs were out in full force, there were a few questions like that Jan 27 06:06:28 rstudio is awesome Jan 27 06:07:04 I currently have a PagerTabStrip but it's not quite what I'm looking for. I want to ability to swipe, but also have tabs at the top Jan 27 06:07:24 that is, tabs that don't disappear from view. Jan 27 06:07:25 you can swipe with tabs Jan 27 06:07:39 what class am I looking for? Jan 27 06:07:40 there is an example of that in the compat lib demos Jan 27 06:08:01 but, again, this is bad if you have to swipe to go to the next part of the workflow Jan 27 06:08:17 since it seems like you have some sort of wizard deal going on Jan 27 06:08:32 * g00s hits RustyShackleford over the head with the pointy haired wand Jan 27 06:09:14 * StingRay_ casts a spell of "insignificance" on everyone Jan 27 06:09:17 on the main screen, I want 3 tabs for bus routes, train routes, and favorites Jan 27 06:09:24 i don't think it's that rediculous Jan 27 06:09:45 ah, so thats not what you were mentioning before. ok Jan 27 06:10:12 yeah I changed the subject abrubtly Jan 27 06:11:15 g00s I know you do shit with lp bt Jan 27 06:11:20 do anything with zigbee? Jan 27 06:16:49 ron_frown: no Jan 27 06:17:01 sheisse Jan 27 06:19:57 ihave the newnes book sitting around, but i havent gotten to it yet. Jan 27 06:24:35 how does intellej do at rendering custom views in layout editor ? Jan 27 06:24:41 great Jan 27 06:24:45 oh custom views Jan 27 06:24:52 well It works with some of my custom views Jan 27 06:24:54 and not with others Jan 27 06:24:59 btu I havent investigated why Jan 27 06:25:01 I've just opened it Jan 27 06:25:05 lol Jan 27 06:25:11 looks, well interesting Jan 27 06:25:32 looks a little like xcode ish Jan 27 06:26:00 I've used both and I wouldnt compare any ide to xcode Jan 27 06:26:00 haha Jan 27 06:26:01 and I think I need to come up with a view layout for my 3 monitors thats a bit better than what I have Jan 27 06:26:22 oh wow Jan 27 06:26:27 tis a nice UI Jan 27 06:26:46 especially in darcula Jan 27 06:26:48 theme Jan 27 06:27:22 ok how do I get my device control up ? Jan 27 06:28:03 does this have good mercurial integration ? Jan 27 06:28:09 yep Jan 27 06:28:14 and git Jan 27 06:28:38 ok then, may just clone one of my repos in and take a spin :) Jan 27 06:28:56 it's kinda like one of those "natural" daylight lamps you can get Jan 27 06:29:09 ? Jan 27 06:29:10 you dont know why, but when it's on and there, you feel a bit better Jan 27 06:29:15 :) Jan 27 06:29:29 oh yeah I've said that about resharper (anothe rintellij project) Jan 27 06:29:48 you wont know what it adds, but then when you uninstall, you are pissed that dozens of features just arent there) Jan 27 06:30:49 hmm I'm missing one thing from eclipse even after 2 min of use Jan 27 06:30:57 right click "close project" Jan 27 06:31:29 well to be fair its not necessarily designed to be used as you wuold use eclipse Jan 27 06:31:38 its more of a solution->project type IDE Jan 27 06:32:01 not open a folder with 2000 projects in it Jan 27 06:32:07 and they all show up in your project list Jan 27 06:32:13 its not perfect Jan 27 06:32:22 and there is a learning curve coming from eclipse Jan 27 06:32:28 but I promise you'll be happy with it Jan 27 06:32:30 ron_frown how does one remove/delete a project then ? Jan 27 06:32:52 file project structure Jan 27 06:32:54 modules Jan 27 06:33:00 and add/remove projects in the middle list Jan 27 06:34:04 I think you can do it via the main ui too Jan 27 06:34:12 hmm Jan 27 06:34:40 already has hg control Jan 27 06:34:42 nice Jan 27 06:41:49 hmm think it's too big of a leap for me atm Jan 27 06:41:53 but looks nice Jan 27 06:44:08 is there some built in way to add a title to a ListView? Jan 27 06:44:22 or do I just put a TextView above the ListView? Jan 27 06:44:41 Ah, I figured this out Jan 27 06:44:58 I was wondering why my nagios grab of my bluehost file was not in the log Jan 27 06:45:15 Then I realized - Bluehost must automatically filter out their own nagios grabs Jan 27 06:48:13 RustyShackleford thats what I'd do Jan 27 06:48:19 just put a title above a list Jan 27 06:53:10 looks like I am gonna build a couple apps for ubuntu for ubuntu phone Jan 27 06:53:31 is the image available for gnex yet ? Jan 27 06:53:38 nah Jan 27 06:53:41 dammit Jan 27 06:53:48 I want to have a look Jan 27 06:54:08 I think its gonna have one advantage over android Jan 27 06:54:09 I have some suspicions that the OS may irritate me Jan 27 06:54:14 and that is a fully native os Jan 27 06:54:27 I think dalvik while overhead may be minimal Jan 27 06:54:28 its there Jan 27 06:54:30 period Jan 27 06:54:59 I just what to use it for a few days from a "user" perspective Jan 27 06:54:59 and all the funky shit you have to do with interact with c++ Jan 27 06:55:17 if its open in the sense you could build a diff launcher or swap out x component etc Jan 27 06:55:19 there no date on the image yet ? Jan 27 06:55:25 I think it has a *DECENT* chance Jan 27 06:55:27 feb Jan 27 06:55:31 thats all I've heard Jan 27 06:55:36 ooooo thats sooo close Jan 27 06:55:42 and possible 4 weeks away :( Jan 27 06:55:48 at the same time :( Jan 27 06:55:55 I've got plenty of shit to get done prior so =) Jan 27 06:56:25 last time I had a play with QT was with python for 3d tools in Maya Jan 27 06:56:31 seemed ok Jan 27 06:57:23 qt5 is plenty capable Jan 27 06:57:55 I ran firefox os on a phone and it was balls slow Jan 27 06:57:58 like unusable Jan 27 06:58:20 see I like the idea of the company and browser Jan 27 06:58:24 never ceases to amaze me the quanity of people thinking html5+js being a suitable replacement for native stuff Jan 27 06:58:26 not played with os Jan 27 06:58:45 I will say firefox latest few versions almost even feels snappier than chrome Jan 27 06:58:52 but os they should jsut give up on Jan 27 07:01:58 is feb the launch then ? or dev preview ? Jan 27 07:02:51 as a best practice for PendingIntents, should I use the FLAG_CANCEL_CURRENT or should FLAG_UPDATE_CURRENT be used? Jan 27 07:02:52 I watched a video they said they'd have a rom for gnex Jan 27 07:03:15 considering they want me to build a couple of apps, of which I assume will be completed before launch Jan 27 07:03:33 I doubt feb is launch Jan 27 07:07:26 i have a friend who works at mozilla Jan 27 07:07:32 he said the gnex is their dev device Jan 27 07:08:12 they use 2 devices now, Keon and Peak Jan 27 07:09:06 html5 needs some primitives for dealing with shitty tcp connections, otherwise its fooked Jan 27 07:09:13 on mobile Jan 27 07:09:31 honestly stuff like SignalR does a good job of that shit Jan 27 07:09:48 but it needs something on "the other end" Jan 27 07:09:57 not great for device to device com without a man in the moddle Jan 27 07:10:17 middle Jan 27 07:12:23 there are a few pieces of the puzzle that need to be finalized, stuff like this even http://www.w3.org/TR/2012/WD-netinfo-api-20121129/ Jan 27 07:27:19 how much longer will we have to support Gingerbread? Jan 27 07:28:09 I'm pretty sure my app must have some incompatabilities by now Jan 27 07:29:08 RustyShackleford: http://developer.android.com/about/dashboards/index.html Jan 27 07:29:34 47.6% users still on GB, if you aren't compatibility with GB then your app will not get exposure. Jan 27 07:30:07 I'm surprised Honeycomb has such a small share Jan 27 07:30:10 RustyShackleford: probably for another year or so :) Jan 27 07:30:18 RustyShackleford: well it was Google's oops Jan 27 07:30:32 next year, we'll be asking "how much longer do i have to support ICS" Jan 27 07:30:41 after GB is phased out, might as well drop Honeycomb too Jan 27 07:30:42 rinse, recycle, repeat Jan 27 07:31:13 g00s, hopefully my contract expires before we start saying that about ICS Jan 27 07:33:44 dunno; interesting in the last earnings statement, sammy's guidance was that things will tone down here a bit Jan 27 07:34:28 apple's new reporting emphasizes sw; previous investors focused too much on hw (oh, these guys are cutting orders to this supplier, we're all dead) Jan 27 07:34:54 so as markets saturate and growth is mostly in the low end, it will be interesting Jan 27 07:35:31 ms and apple are sw companies, samsung , htc are not Jan 27 07:36:06 well, i guess i should say, apple knows both hw and sw; samsung doesn't know sw as well as apple does Jan 27 07:39:25 I think I maybe starting to be a coder Jan 27 07:39:34 ? Jan 27 07:39:44 albeit a un-conventional one Jan 27 07:40:01 g00s, but look at touchwiz! Jan 27 07:40:55 there are a couple little things here and there I like about touchwize Jan 27 07:40:59 bt mostly not like Jan 27 07:47:22 Hey guys, with the httpclient on android is it not possible to stream an InputStream in a PUT request? I can't seem to figure out which parts to use. Jan 27 07:48:56 finally got this build ready to go... fuck im tired Jan 27 07:49:04 almost time for men's aussie open final though Jan 27 08:03:34 i passed out on my keyboard. i love java Jan 27 08:36:22 I finally solved it after reading the docs many times, apparently the length just needed to be -1. Jan 27 08:42:45 there is also good http-libraries to android Jan 27 08:46:30 vavirta: as far as i know it is the android http library, i just couldn't figure out how to not pass the length Jan 27 08:47:19 I'm using AndroidHttpClient, HTTPPut and a InputStreamEntity. Jan 27 08:48:02 ok Jan 27 08:48:09 you should also look for example this library Jan 27 08:48:10 https://github.com/loopj/android-async-http Jan 27 08:48:18 I've used it succeffully in many projects Jan 27 08:48:50 an InputStream is a stream... Jan 27 08:49:17 it handles the async callbacks really nice which I like it Jan 27 08:49:32 it's also really good at leaking contexts if you're into that sort of thing Jan 27 08:49:43 do you know any good library or framework or thing to simulate "native interface" on a web page? like using touch events, and all that stuff...? (web page, not web view) Jan 27 08:53:23 jquery mobile? Jan 27 09:09:49 vavirta: thanks Jan 27 09:10:04 Guys, do you know why when i type ant debug - it will export OLD version of my project instead of the new one (basically i just changed few things) Jan 27 09:11:10 try ant clean :) Jan 27 09:11:15 thanks :) Jan 27 09:13:25 nothing happened :/ still the same version is exported Jan 27 09:14:48 hey guys Jan 27 09:14:55 I am trying to store 100,000 integers into an array Jan 27 09:15:01 what's the fastest way to do it? Jan 27 09:16:55 thats at least 400k of memory, are you sure you need to do that ? Jan 27 09:17:39 thats using a primitive array Jan 27 09:18:20 yes Jan 27 09:18:28 meetoman: why do you need those integers for? Jan 27 09:18:28 :| Jan 27 09:18:28 LinkedList seems to be superslow Jan 27 09:18:31 like super super slow Jan 27 09:18:43 because its storing Integers Jan 27 09:18:43 meetoman: what are you trying to do? Jan 27 09:18:47 Gavilan2, I just do... Jan 27 09:19:01 meetoman: as g00s: said, use primitive integers, and use an array.... Jan 27 09:19:50 is there any primitivearray? Jan 27 09:20:52 and i need this done in 20 seconds? Jan 27 09:21:11 right now it takes like 5 minutes?. every second its taking about 300 to 400 records Jan 27 09:21:14 lol, wut … i'm trying to figure out if you need int[] or Trove Jan 27 09:21:31 maybe you picked a poor data structure Jan 27 09:21:35 or poor algorithm Jan 27 09:21:50 there is no data lol Jan 27 09:22:22 can't use int[] , java.lang.OutOfMemoryError: Java heap space Jan 27 09:22:35 int[100000] just gives you OutOfMemory without warning Jan 27 09:23:25 meetoman: get a device with more memory :) Jan 27 09:23:43 Gavilan2, I am loading this on my computer Jan 27 09:23:48 or grab the memory right away when the app starts before the fragmentation begins Jan 27 09:24:00 int[100000]? that should work on your pc Jan 27 09:24:00 meetoman: so this isn't on android ? Jan 27 09:24:06 unless you have a really old pc Jan 27 09:24:12 btw: wrong channel Jan 27 09:24:30 unless he is running it on the emulator... Jan 27 09:25:58 Sorry to interrupt, does anyone know if there's a way to hit <25ms latency round trip mic to speaker audio on 2.3.5? Jan 27 09:26:32 Or what the best case scenario is for low latency audio? Jan 27 09:27:13 if there is low latency audio, its very recent - not GB Jan 27 09:28:07 meetoman, loading it on java first Jan 27 09:28:13 4.1? Jan 27 09:28:13 testing a library Jan 27 09:28:24 or 4.0 do it? Jan 27 09:28:25 hello meetoman , its meetoman again Jan 27 09:28:31 haha I don't think android is running linux-rt Jan 27 09:28:32 man, i am totally stuck Jan 27 09:28:46 i just did java -Xmx1024m Jan 27 09:28:55 and its still giving me OutOfMemoryError Jan 27 09:29:30 fTheCat: 4.1 at earliest, and it seems to still suck Jan 27 09:30:14 meetoman: 2048 maybe? Jan 27 09:30:37 meetoman: try allocating int[1] … if that works, try int[2] and so on ... Jan 27 09:30:39 i did Jan 27 09:30:47 :) Jan 27 09:30:54 works with int[1] and 2 Jan 27 09:31:00 ok, try 3 now Jan 27 09:31:04 :D Jan 27 09:31:10 just keep going Jan 27 09:31:14 run forrest run ! Jan 27 09:32:22 there's gota be a faster way... Jan 27 09:32:35 is int[] faster than ArrayList? Jan 27 09:32:45 yes Jan 27 09:34:16 meetoman: try a for loop that goes thru int[1000] int[2000] and up Jan 27 09:34:18 let me try Trove Jan 27 09:34:36 meetoman: you never really told us what you needed to do this for Jan 27 09:34:44 i just threw that out Jan 27 09:36:03 Well, Have anyone any idea why ant debug is exporting old version of app ? without changes i made? i tried clean in eclipse and ant clean, no change .: / Jan 27 09:36:18 did you save your file :P Jan 27 09:37:02 DOSP: ive had problems when i switch from building with ant to building with eclipse Jan 27 09:37:31 i would close eclipse; its going to monitor the fs to do an autobuild Jan 27 09:37:43 g00s: yeah Jan 27 09:37:44 you could turn autobuild off, i guess, but still Jan 27 09:38:26 iam building in ant becuase eclipse suddenly have thousand errors while eporting, and noone knows what to do with them :/ so iam building with ant, first time it was okay, now it says that Build successfull BUT the exported file is without changes i made from last export Jan 27 09:38:38 i try to close eclipse Jan 27 09:43:19 wow, Trove is faster Jan 27 09:43:28 not fast enough... Jan 27 09:43:47 500 to 600 per second Jan 27 09:44:36 meetoman: does it have to be int, what about byte[] ? Jan 27 09:44:57 Guys, nothing with closed eclipse .. it still exports but it looks like old version :/ Jan 27 09:45:30 DOSP: do another ant clean after eclipse is closed Jan 27 09:46:09 allright Jan 27 09:47:28 nnothing Jan 27 09:50:44 DOSP: anything left in the bin dir after you do ant clean? Jan 27 09:51:03 nope it will completely dissappear Jan 27 09:51:33 okay, but i see whats wrong now Jan 27 09:51:35 clever, it can be a byte I guess Jan 27 09:51:40 but number can be 100,000 Jan 27 09:51:43 thanks guys for support :) Jan 27 09:51:49 meetoman: byte will greatly reduce usage Jan 27 09:52:12 clever, dont i need a byte[][] then? Jan 27 09:52:25 meetoman: cant see any reason why you would Jan 27 09:52:44 meetoman: what the /hell/ are you trying to do ? Jan 27 09:52:56 can I do calculations on byte? Jan 27 09:53:06 g00s, just some algorithm I am trying to master Jan 27 09:53:28 g00s, I can't tell you until tomorrow night Jan 27 09:53:31 meetoman: byte works just like int, its just limited to 0-255 Jan 27 09:54:02 actually, -128 … 127 Jan 27 09:54:04 :) Jan 27 09:54:13 g00s: ah, its signed? Jan 27 09:54:19 :D Jan 27 09:54:31 maybe use a short Jan 27 09:56:08 clever, i need the number to be over 100,000 Jan 27 09:56:26 maybe a database is faster? Jan 27 09:56:30 local database of some sort Jan 27 09:56:33 meetoman: each number needs to be over 100k, or do you need 100k numbers? Jan 27 09:57:00 * g00s gets popcorn and watches meetoman experiment Jan 27 09:57:10 clever, both Jan 27 09:57:16 byte wont work then Jan 27 09:57:27 well, the number range from 1 to 100000 Jan 27 09:57:29 randomly Jan 27 09:57:52 Creating the index first then inserting data gives us 47 700 inserts-per-second, whereas inserting the data first then creating the index gives us 63 300 inserts-per-second. Jan 27 09:57:55 i think i m gona use sqllite Jan 27 09:58:22 meetoman: what if you just used c? Jan 27 09:58:51 hmm, i am just writing this in java Jan 27 09:58:56 i've already got the algoritm down Jan 27 10:08:18 Hi all, is there a way to access the parent ScrollView of a ListView? I want to pin a surfaceView to a specific location on the list view and not invalidate it when it scrolls out of sight Jan 27 10:12:44 thepoosh you can override onDraw Jan 27 10:12:58 on the listView Jan 27 10:13:48 I just want to pin one item, not controll the whole view Jan 27 10:13:57 is there a getChild? Jan 27 10:14:02 StingRay_ Jan 27 10:14:13 ya Jan 27 10:14:32 for the item view Jan 27 10:14:36 obviously Jan 27 10:14:40 and can I get the View that has the scrooling to it? so I can pin the View? Jan 27 10:14:48 well Jan 27 10:14:56 you could get childAt Jan 27 10:14:57 the question, is which ine is the one I'm looking for? Jan 27 10:15:04 *one Jan 27 10:15:05 and then if ... draw your thing Jan 27 10:15:34 well if you know the index of where your going to do it Jan 27 10:15:36 then yeah Jan 27 10:15:47 I have a video player, but I don't want it to be set to View.GONE when it's scrolled out of the xcreen Jan 27 10:15:55 could just mod the layoutParams and place your view in the gap of that child Jan 27 10:16:15 hmmmm Jan 27 10:16:18 I'll see Jan 27 10:16:22 hang on though Jan 27 10:16:25 hmmm Jan 27 10:16:36 you will still have a problem with that Jan 27 10:16:39 I would guess Jan 27 10:16:58 worth a try though Jan 27 10:31:45 thepoosh why not use overlapping listview + surfaceview and update the surfaceview as needed? Jan 27 10:32:22 I don't have control on the surface view (external SDK) Jan 27 10:32:36 lasserix ^ Jan 27 10:32:54 ah Jan 27 11:27:34 Hi guys Jan 27 11:27:57 isn't there some clever way to put model data into the gui, some kind of model binding? Can't seem to find it Jan 27 11:30:00 I'm reading android design guide but all of measures are in dp... So, if I want to create a button in photoshop to my app, what size should it be? I mean, what is the base device size to design for mdpi? Is there any template? Because i work with pixels in photoshop Jan 27 11:32:03 Sepho, if you can you should avoid fixed size components, because they will have to scale sooner or later Jan 27 11:33:04 Sepho the idea in ps would be you make a patch9 button Jan 27 11:33:17 easily done with a 1 pixel border Jan 27 11:33:28 Sepho, I haven't tried in Android yet, but for instance on the web I'd do things like having a bar 1px wide and have the system repeat it the entire width of the component Jan 27 11:33:29 there is a android icon pack you can use a reference for sizes if using ninepatch sapho Jan 27 11:33:30 then just a file name ".9" append Jan 27 11:34:01 I was going so say that I haven't done it with Android yet, but pretty sure it's possible :p I guess you beat me to it StingRay_ Jan 27 11:36:31 and what about if I want to show just an image? like an image of 1/3 of screen size? I know I need to create then for xdpi, xhdpi and ldpi, but I would like a kind of template for mdpi in order to know screen size and design all interface for that resolution and then scale all images by 1.5, 0.75... Jan 27 11:37:29 you can create the image in the different sizes but you have to know that it will sooner or later scale Jan 27 11:37:52 sell i have one image for my splash screen Jan 27 11:37:55 Generally you want to scale images only down, and then not too much Jan 27 11:38:05 Sepho well you would have max size only Jan 27 11:38:09 and it scales Jan 27 11:38:13 no Jan 27 11:38:15 dont scale it Jan 27 11:38:20 thats silly Jan 27 11:38:26 get bitmap options Jan 27 11:38:37 and load only the info based on screen size Jan 27 11:38:47 that way you can have a 1 size fits all Jan 27 11:39:08 of course this dpeneds if you want one apk for ldpi and xxhdpi devices Jan 27 11:39:11 bitmap options pre load allows you to do pixel binning Jan 27 11:39:38 does anyone have experience with this http://code.google.com/p/android-binding/ ? Is it any good? Jan 27 11:40:00 rohdef: o am one of the autor Jan 27 11:40:10 and is it correct that I can't find better solutions? Jan 27 11:40:17 monsti, ah nice :) Jan 27 11:40:33 rohdef: we moved to git and i didn't yet checked in my most recent updates Jan 27 11:40:52 rohdef: i made two commercial products Jan 27 11:41:06 monsti, I've been wondering why I can't find anything in the base sdk :/ Jan 27 11:41:25 thanks! :) Jan 27 11:41:34 rohdef: what do you mean by base sdk? Jan 27 11:41:43 I'm reading another article about sizes... it's confusing at first Jan 27 11:42:11 monsti, the Android tools from Google, seems I can find much on databinding for the gui apart from an ArrayAdapter for lists Jan 27 11:42:21 I've been developing for iphone for a year and this conecpt its totally different Jan 27 11:42:48 rohdef: well android-binding is mvvm Jan 27 11:42:59 monsti, btw. glad to see you use the MIT license, definitely a big plus in my book Jan 27 11:43:22 rohdef: there is sort of databinding in the api but not that nice Jan 27 11:45:38 monsti, doesn't sound too promising for the api :/ Jan 27 11:46:01 monsti, but then I guess that's the reason you created android-binding :) Jan 27 11:46:09 rohdef: what doo you mean? Jan 27 11:46:34 rohdef: rohdef: it's not my baby - i just made it fusefull ;) Jan 27 11:47:16 ah ok :) but I guess that it might be worth my time to look into then. Do you know of anything that you would say I should be aware of? Jan 27 11:47:31 rohdef: i didn't like that findViewById stuff and adding callbacks to every view Jan 27 11:48:02 rohdef: the binding example - you have every widget inclding viewmodels + the xmls Jan 27 11:49:05 rohdef: are you familiar with mvvm? Jan 27 11:49:44 monsti, I've been using it half-hearted a while back, so I can't remember much and what I do I don't trust that much :p Jan 27 11:51:51 I've always had a hard time with UI patters, I often find the explanations confusing or vague. I think Scott Hanselmann put it nicely about MVC and the typical 3-circle-diagram, when he said "Thank you three circles, now I feel enlightened" (ofc. with a slight hint of sarcasm) Jan 27 11:52:49 well mvvm isn't that easy to understand and to use Jan 27 11:53:33 but once you get it, you can do magic with less code and more flexibility Jan 27 11:56:04 monsti, what I seem to recall is: I have a normal almost as normally although I make it observable on all properties, then the vm listens to those and communicate changes from the view to the model and takes care of business logic, whereas the view binds to the vm and basically only takes care of presentation Jan 27 11:57:32 monsti, but I'm not even sure if it's entirely correct :/ Jan 27 11:57:48 rohdef: yes- as you have no properties in java you have to use the observable types Jan 27 11:58:15 rohdef: there is StringObservable Text; and you have to do a Text.set("my new value"); Jan 27 11:58:53 monsti, I still think of the private Foo bar; public Foo getBar(){}; public void setBar(Foo bar) {}, as properties, although you're right technically they're not Jan 27 11:59:24 rohdef: you can use set/get but it's not recomended Jan 27 11:59:45 rohdef: your class has to implement a IPropertyChanged interfance - using the Observable types in VMs is recomended Jan 27 12:02:54 monsti, so basically if I am to do this I should do: public class Foo implements IPropertyChanged {...} Jan 27 12:03:52 hmm I think I should try to find a code example, might be better :) Jan 27 12:04:03 If tutorial says: create 48x48 dp icon size. This means to create a 48x48 pixels icon as mdpi and then scale for the rest of screen sizes? Jan 27 12:09:37 Sepho no Jan 27 12:09:46 dp is not pixels Jan 27 12:09:49 px is pixel Jan 27 12:10:18 are you quite good with photoshop ? Jan 27 12:10:31 you have to make each l . m . h . x some multiple of some base size in px, Jan 27 12:11:33 but i've read 1dp = 1px in mdpi Jan 27 12:11:44 right, and on ldpi it's .75 Jan 27 12:11:46 StingRay_: nop, I'm the developer part, a friend of mine is the designer :P Jan 27 12:11:51 and on hdpi is 1.5* Jan 27 12:12:02 lasserix thats wrong Jan 27 12:12:06 no it isnt Jan 27 12:12:23 dp at mdpi != 1px Jan 27 12:12:49 there is no guarantee of that at all ! Jan 27 12:13:21 so, if I read "create 48x48 dp launcher icon", how can I create on photpshop for 4 screen sizes? I need to use one as "baseline", don't I? I open photoshop and try to design my icon, so... what size should it be? Jan 27 12:13:58 Sepho well thats just an image ? thought you were talking scalable buttons Jan 27 12:14:21 I mean launcher icon Jan 27 12:14:24 sepho: you make your image with some dimension/ aspect ratio in photoshop, then output each of four sizes based on the ratio you need Jan 27 12:14:56 lasserix for an logo/icon how would the aspect change ? Jan 27 12:15:05 it really wouldn't Jan 27 12:15:14 i dont remember the ratio of the top of my head, but it looks like 32 : 48 : 64 Jan 27 12:15:22 dimensions / aspect ratio Jan 27 12:16:03 so a xhdpi image must be twice as large in px as its mdpi counterpart for two devices m and xhdpi to have the image take up the same physical dimensions Jan 27 12:16:07 aspect is relationship between width height Jan 27 12:16:12 yeah yeah Jan 27 12:16:16 unimportant Jan 27 12:17:13 Sepho: sorry I am being a little incoherent, but you can take a baseline of whatever you want and then export the image with dimensions multiplied by some ratio Jan 27 12:17:31 for each of the 4 different dpi's Jan 27 12:17:40 notice however no one supports ldpi Jan 27 12:17:44 anymore Jan 27 12:17:52 ok, thanks!! :) Jan 27 12:18:03 if you look at http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#templatespack Jan 27 12:18:46 it has the icons for m / h / xh as 32x32 : 48x48: 64x64 so I imagine you can just use the same ratios for whatever baseline dimensions you end up using Jan 27 12:18:59 wow, great!! Jan 27 12:19:13 thank so much! Jan 27 12:19:14 anyone have an idea what this method does? Jan 27 12:19:16 public void testAndroidTestCaseSetupProperly () Jan 27 12:19:25 and sorry for my english! :( Jan 27 12:19:36 it's a member of AndroidTestCase, but the APIdoc doesn't say anything about what it does Jan 27 12:19:52 think that's like isUserAGoat Jan 27 12:21:04 sepho: there is also a library to use SVG files in android, if you'd prefer to do that (dont have the link offhand though) Jan 27 12:23:39 it's kind of adding a test for each test class that will show up in jenkins and test coverage, it's odd Jan 27 13:11:15 hi, i have a custom listview which includes an image, is there a way to show the listview with all the text shown and show the images as they load? i load images in asynctask Jan 27 13:14:38 thats what it's for Jan 27 13:14:46 or yeah Jan 27 13:14:48 :) Jan 27 13:15:36 well, my code still waits until everything is loaded, do i have to set any priorities or something? Jan 27 13:19:17 where are you starting the async ? Jan 27 13:23:12 http://pastebin.com/R8Hh804S here's the method Jan 27 13:36:22 By calling get() you're blocking the ui thread until the asynctask finishes Jan 27 13:42:21 so how would i do that then? Jan 27 13:42:49 Don't set the image until your asynctask is done Jan 27 13:42:55 i need the get() to, you know... actually get the image :) Jan 27 13:45:28 Not if your asynctask has a reference to the imageview and sets the image in onpostexecute Jan 27 13:45:58 There are lots of libraries that do this for you, you should probably just use one of those Jan 27 13:47:27 ok, thanks for your help Jan 27 13:52:13 UrlImageViewHelper Jan 27 13:56:10 Has anyone tried using the property manifestmerger.enabled=true when building with ant? I have an ant target that calls clean, loadproperties then , the release target seems to be ignoring my properties file as its saying manifestmerger is disabled :S Jan 27 13:59:58 can get operations cause racing conditions when called from different threads? Jan 27 14:00:35 if so, I have no clue how to make the ui thread share the business model with other threads Jan 27 14:02:33 Hi all, I'm not sure if anyone could help me but the IP Camera app which provides a live stream of wherever the phone is located. Is there a way to set up something to continually record the live stream? Jan 27 14:03:44 any idea why http://pastebin.com/LjL9TiRu the camerapreview is not working while secure keyguard is locked? Jan 27 14:10:57 hey, dumb question, perhaps, but I'm trying to restore a bitmap to an activity when restarted... Jan 27 14:11:31 I see a lot of putInt() and other methods for the bundle I'm passing Jan 27 14:11:52 What's the preferred way to put a Bitmap? Jan 27 14:11:53 Bitmaps can be very large, I wouldn't put it in the bundle. Instead cache it somewhere and pass an ID into the bundle you can then use to retrieve the bitmap Jan 27 14:12:03 OK, that's what I figured Jan 27 14:12:13 sadly I can't just redraw the screen from simple data Jan 27 14:12:34 how would I cache it? Jan 27 14:12:42 I mean, I could save it to a file I guess Jan 27 14:12:58 sort of sad to have to do that. Jan 27 14:13:03 yeah, or you could make a singleton that stores it in memory Jan 27 14:13:14 singleton that stores it in memory... Jan 27 14:13:22 oh, wait, can't I just use a static variable Jan 27 14:13:34 that would probably do it Jan 27 14:13:36 D'oh Jan 27 14:13:45 Or is there some good reason why that's a bad plan Jan 27 14:14:04 Lutwidge just cache it to disk Jan 27 14:14:07 how big is it ? Jan 27 14:14:20 I'm not sure, basically about a 400x400 bitmap Jan 27 14:14:30 disk/file then Jan 27 14:14:36 nothing to re-read Jan 27 14:14:44 I see, that way the app plays nicer? Jan 27 14:14:49 Doesn't lug around junk in memory Jan 27 14:16:21 OK, thanks, that clears some stuff up Jan 27 14:40:37 Is there any problem with IntentService and an implented SurfaceHolder.Callback? onHandleIntent gets called but my surfaceCALLBACKS() are not? Jan 27 14:42:06 (its been called in a Service, not a Serviceintent and in the onCreate()). But i want to handle it in a ServiceIntent .. Jan 27 14:46:26 Yesterday night nobody seemed to know, but is there any good reason why android is still using junit3? Jan 27 14:46:35 junit4 has been out for so many years now... Jan 27 14:46:52 junit has nothing on my gunit Jan 27 14:53:49 Guys can you tell me what can be wrong ? I have layouts -large-hdpi and large-tvdpi and norma-mdpi .. and yet, when i start my app in BluesStacks it will show Different layout. It is the layout iam working on, but it doesnt have for example onClick impelemnted on buttons and so on. Sorry for so chaotic question, but i dont know what can be issue and how to explain it Jan 27 14:55:04 Hey guys, I'm trying to find CodeSourcery (GNU/Linux 2009q3) which is needed for a kernel compile - unfortunately mentorgraphics has killed all the links to it Jan 27 14:55:14 Anyone know where I might be able to find it? Jan 27 15:13:36 found http://www.nas-central.org/wiki/Setting_up_the_codesourcery_toolchain_for_X86_to_ARM9_cross_compiling but it's still giving me arm-2011.03-41 Jan 27 15:13:44 :| Jan 27 15:45:48 SimonVT: if you're still here, I just wanted to tell you I followed your advice, and the thing works as I wanted it to work. Jan 27 16:16:24 is gcm is unreliable? i find out that it takes morethatn 5mins before the message arrive on my phone. any link that might help me to have instant delivery of gcm push message to my phone? Jan 27 16:17:46 or gcm really fuckup? Jan 27 16:19:00 usually gcm delievers the message in few seconds Jan 27 16:19:15 but you should member that there is no guarantee that message is delivered Jan 27 16:22:43 vavirta: agree on that. do you exeperience the delay or no messsage deliver at all? Jan 27 16:24:27 so GCM really fuckup! Jan 27 16:30:50 dunno Jan 27 16:31:25 now i'm fuck up!!! Jan 27 16:53:53 anyone here using scala? Jan 27 16:58:57 brainv unreliable yes Jan 27 16:59:46 I have a view which implements onTouch and I want to get an event for each finger I press. How can I do that? Jan 27 17:01:13 You already do get events for each finger Jan 27 17:03:10 Sorry my mistake. I meant at he same time. For example if I am in ACTION_MOVE with one finger and I touch with another finger the onTouch is not called again. Jan 27 17:03:19 *he = the Jan 27 17:04:19 *at the same time= concurrently Jan 27 17:07:22 I'm assuming you mean onTouchEvent.. You should be getting events for both fingers Jan 27 17:14:36 that's what she said Jan 27 17:29:30 hey folks, does anybody know a setting for a TextView to only make a new line when there's a \n in the String but not if the view is to narrow? ellipsize=none alone doesn't work (Layout is in a ListView) Jan 27 17:29:50 <\n> hi Jan 27 17:29:55 <\n> I have no idea, sorry :P Jan 27 17:40:28 hi to you all, am kindly requesting your assistance as far this line of code is concerned, mServ = ((MusicService.ServiceBinderbinder).getService(); it gives an error that ) is missing, thanks Jan 27 17:42:12 ah, found something, I've got to write my own transformation method Jan 27 17:43:00 am adding a background music to my app Jan 27 17:44:47 hey, is there a factory-rolled Dialog class for just asking a question and getting an answer in some generic EditText widget? Jan 27 17:45:12 Basically the Android equivilent of Input $Name :) Jan 27 17:45:41 Or do I have to make my own freaking xml file for that. Jan 27 17:45:45 Lutwidge: AlertDialog.Builder Jan 27 17:46:33 I thought that just tells you stuff, didn't realize you could get back something in an EditText from it, OK Jan 27 17:46:39 Yay Jan 27 17:52:57 hmm, trying to find the method for just setting a simple EditText in AlertDialog Jan 27 17:53:01 I don't see it Jan 27 17:53:11 I see ways to set checkboxes and radio buttons and stuff Jan 27 17:53:28 Lutwidge: you have to create a xml layout with an edittext Jan 27 17:53:31 or a layout by code Jan 27 17:53:37 damn Jan 27 17:53:39 That's what I thought Jan 27 17:53:46 I mean, OK it's not hard to do that Jan 27 17:53:50 But it's annoying :) Jan 27 17:53:51 Lutwidge: well 3 lines of code? Jan 27 17:53:57 An extra file Jan 27 17:54:03 bah Jan 27 17:54:06 Fine Jan 27 17:54:21 It should be possible to do this with AlertDialog Jan 27 17:54:29 has any one come accross mServ = ((MusicService.ServiceBinderbinder).getService(); while adding music file to his app, how did you correct that, thanks Jan 27 17:55:00 Lutwidge: i don't take your blame ... Jan 27 17:55:11 how do i get phone device id for admob? Jan 27 17:55:15 well, pass it along or something Jan 27 17:55:30 (to enable test banners) Jan 27 17:55:31 hrumph :) Jan 27 17:58:25 What´s up with API17 not updating? Jan 27 17:58:58 Missing SDK Platform Android, API17 Jan 27 17:59:25 I am stuck on this part of the tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 27 17:59:27 Near the end of the section, they remove the check for the api level and the getActionBar() method from earlier in the section. Do I need this? The @SuppressLint("NewApi") code also generates 2 error messages which I am not sure how to remove. These can be found on the following link: Jan 27 17:59:29 http://pastebin.com/0zXYrCUX Jan 27 17:59:46 Hi all - doing some NDK work, and having an odd issue. In an AVD running API 7, I'm trying to use my app's getCacheDir().getAbsolutePath() directory, but I'm always getting permission denied. Checking in adb shell shows permissions on the directory allow writing by the app's user, but su app_N && touch /data/data/com.myapp.myapp/cache/test returns permission denied. ... Jan 27 17:59:51 ... Using a FileOutputStream on the Java side creates a file just fine. Does the system just only allow the VM to write to the filesystem in 2.1? (The same code worked just fine in an 4.2 AVD) Jan 27 18:01:21 I see, clearing cache and forcing https when API17 fails to properly download helps Jan 27 18:04:15 gwynne: no you just can't write to any directory on a real device Jan 27 18:04:56 monsti: I'm trying to write to the app's own cache directory. I understand the general filesystem restrictions. Jan 27 18:05:13 gwynne: yes that should be possible Jan 27 18:05:47 gwynne: i am not 100% sure if you need the storeage card access entry in the manifest Jan 27 18:06:01 But then why would it work from Java? Jan 27 18:06:44 gwynne: just trey out via log.v if it's the same directory Jan 27 18:06:54 Already checked that. Jan 27 18:07:05 does the cache dir exist? Jan 27 18:07:09 Yes. Jan 27 18:07:16 i have no idea how/when android creates the cache directory Jan 27 18:08:08 Here's a thought - is touching the filesystem restricted to the app process itself? All my other attempts go through the shell's cp command. Jan 27 18:08:35 gwynne: the app process runs on a linux uid Jan 27 18:08:53 monsti: That's why I'm confused. I tried adb shell'ing in and su'ing to the app's uid. Jan 27 18:08:57 That didn't work either. Jan 27 18:09:12 gwynne: no su on a real device ... get rid of that idea Jan 27 18:09:49 gwynne: did you try giving sdcard read(write permission and put your stuff to sdcard? Jan 27 18:10:33 monsti: I wasn't planning to use su on a real device, I was just trying to emulate the app's execution environment. Of course it works when shelled in as root. Jan 27 18:10:57 monsti: I haven't tried doing it to sdcard yet, no, but that's not a solution anyway; sdcard is mounted noexec, I need to use the internal storage to copy from my native libraries directory. Jan 27 18:12:35 gwynne: i am not so much into ndk, isn't there a directory where you can put your .so files? Jan 27 18:12:43 so you don#t have to copy stuff Jan 27 18:14:38 monsti: There is, but on API 7 the files aren't copied executable from the APK, so I need to copy the executable somewhere I can modify it so I can run it - and yes, I know this is deep and evil arcane magic, trust me when I say I'm not doing it for production ^^; Jan 27 18:17:45 i have solved the problem, afterwards:-) Jan 27 18:19:12 Hello, anyone can help me with a notification problem? I want my notifications to make a little information like this one: http://www.youtube.com/watch?v=m9oMlpwfELE But in my app (Example code from here: http://developer.android.com/guide/topics/ui/notifiers/notifications.html) it just puts the notification in the notificationbar. Jan 27 18:20:19 *http://www.youtube.com/watch?feature=player_detailpage&v=m9oMlpwfELE#t=68s Jan 27 18:24:08 hello. Jan 27 18:25:04 I am building an app that uses nfc. Is there a way to pass the tech list in the res/tech_list.xml to the foregroud dispatch? Jan 27 18:29:05 with AccountManager, if no gmail accounts were found on the machine, is it possible to force the user to signup/signin? Jan 27 18:30:35 Toast.shoow("You need an active GMail account"); System.exit(-1); Jan 27 18:31:43 valgrind: ive also been wondering that Jan 27 18:31:55 yea lol a toast doesnt help much :D Jan 27 18:32:24 valgrind: that's problem you can't solve by code Jan 27 18:32:41 e.g. "no SIM card present" can't be solved by code and i wonder why you want to do that Jan 27 18:32:47 monsti: most apps open the page to add a google account when you need to add one Jan 27 18:33:00 clever: that's a different question Jan 27 18:33:10 thats one i need answered Jan 27 18:33:57 well i wonder how the user installed your apk without a gmail account Jan 27 18:34:06 ah, good question Jan 27 18:34:13 i guess its safe to ignore that error Jan 27 18:34:26 well you could prvide the code itself through git Jan 27 18:34:32 and the user might build the apk himself Jan 27 18:34:56 so this is a 0.00000001% usecase? Jan 27 18:35:40 well whatever, opening the webpage to signup/signin google would be a good solution? somethingl ike a hint... Jan 27 18:37:08 valgrind: its an activity Jan 27 18:37:21 i'm just not sure how to open the one you would need Jan 27 18:37:57 http://stackoverflow.com/questions/10803132/programmatically-starting-the-add-google-account-activity-in-android Jan 27 18:38:12 but this is somehow shit Jan 27 18:38:56 the popup() method at the bottom does what you need Jan 27 18:42:21 i was already trying the addaccount thing but couldnt get it to work, ill give this popup code a try :) Jan 27 18:43:14 ah with the good parameters it works smoothly indeed! Jan 27 18:43:42 if(accounts.length == 0) accountManager.addAccount("com.google", null, null, null, MainActivity.this, null, null); Jan 27 18:44:15 if no accounts were found it comes up with a screeb asking for a vlid google account and asks the user to either use an existing one or create a new one Jan 27 18:44:24 I was just calling addaccount bdly Jan 27 18:45:01 valgrind: founds perfect Jan 27 18:45:16 thx both of you Jan 27 18:47:10 sounds* Jan 27 18:54:32 There's only one stupid thing in the process... the application has its own window to ask for the pass... then it says ehi you have to login through the web and you have to enter your data again Jan 27 18:54:40 but part from this works perfectly Jan 27 19:11:59 hi Jan 27 19:12:48 I have android support v4 installed on my eclipse but when I try to call getChildFragmentManager() it says that it is undefined... does anyone know how to fix this? Jan 27 19:30:15 MartialLaw: Are you inside a Fragment? Do you have the last release of v4? Jan 27 19:50:33 Also, is your import the one from v4 and not the normal one Jan 27 19:52:04 Is there any problem with IntentService and an implented SurfaceHolder.Callback? onHandleIntent gets called but my surfaceCALLBACKS() are not? Jan 27 19:52:06 (its been called in a Service, not a Serviceintent and in the onCreate()). But i want to handle it in a ServiceIntent .. Jan 27 20:04:28 Goodness, half an evening of updating and fixing super weird errors in the SDK and eclipse Jan 27 20:06:26 hello guys Jan 27 20:06:35 where can i download sqlite for android Jan 27 20:07:34 you don't have to download it Jan 27 20:07:36 it's included Jan 27 20:07:55 If you want an ORM framework, I can recommend ORMLite or GreenDAO Jan 27 20:08:04 ORMLite is subjectively better though Jan 27 20:08:17 as it doesn't rely on odd code generation and other things Jan 27 20:08:46 ok then why my apps dont run is close sudenly Jan 27 20:09:10 i follow one tutorial in yputube Jan 27 20:09:33 just appear one messange on my telepphone the aaplication stop Jan 27 20:11:10 in eclipse say at andoird.ap.activitythread .performanceluachactivirty.java:2033 Jan 27 20:11:24 i dotn knwo what does it mean Jan 27 20:14:36 I am stuck on this part of the tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 27 20:14:38 Near the end of the section, they remove the check for the api level and the getActionBar() method from earlier in the section. Do I need this? The @SuppressLint("NewApi") code also generates 2 error messages which I am not sure how to remove. These can be found on the following link: Jan 27 20:14:40 http://pastebin.com/0zXYrCUX Jan 27 20:14:52 sorry for the repeat Jan 27 20:17:11 where create my table sqlite in my phone Jan 27 20:25:55 hey guys Jan 27 20:26:04 what can I do to make my array run super fast? Jan 27 20:26:19 Go to Kenya. Jan 27 20:26:43 roller skates Jan 27 20:26:48 Do you have code? Jan 27 20:26:54 Depends what you mean by your question. Jan 27 20:28:01 I'm trying to make the following layout: http://i49.tinypic.com/zksu1s.jpg - the green part right now is a linear layout, but I want to place the gray box overtop and offset a bit (an ImageView). If I do a relative layout, it seems to get clipped. Jan 27 20:29:31 JulianDev - I solved the problem...didn't have the right library in my project Jan 27 20:31:18 Does anyone know of a working sample of using FragmentTabHost? ie. tabs within a fragment? I know there is an android doc on the subject but a working sample would really help me out. I would really appreciate it. Jan 27 20:32:25 hey guys Jan 27 20:32:53 the only way to remove all the duplicates in an ArrayList is to put it into a HashSet, right? Jan 27 20:35:35 It's _a_ way, not the only way Jan 27 20:39:46 what is this line supposed to do and why is there an error? Jan 27 20:39:47 @SuppressLint("NewApi") Jan 27 20:40:42 oh wait nevermind Jan 27 20:40:54 now the little error character disappeared Jan 27 20:41:09 but I didn't do anything Jan 27 20:41:30 The error probably disappeared because @SuppressLint was added Jan 27 20:41:48 this was the error I got http://pastebin.com/0zXYrCUX Jan 27 20:41:49 Suppress usually means to not show some kind of warning Jan 27 20:42:06 oh, that's just a missing import probably Jan 27 20:42:17 I already had the needed import but it insisted there was an error Jan 27 20:42:29 sounds like eclipse being slow Jan 27 20:42:30 but literally 30 seconds ago it disappeared Jan 27 20:42:33 maybe Jan 27 20:42:42 * Brewster idles just in case Jan 27 20:43:57 If I want to run a method if user clicks on Notification, but don't want any popup/activity starting. How do I do that? Jan 27 20:43:58 oh that reminds me of my other question Jan 27 20:44:37 look here where it says "Create the Second Activity" Jan 27 20:44:38 http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 27 20:45:08 Me? Jan 27 20:45:18 uh Jan 27 20:45:25 sure? Jan 27 20:45:37 this is a question to anyone that can help Jan 27 20:45:43 right Jan 27 20:46:36 there are some leaks of for the galaxy s4 Jan 27 20:46:54 it says to put an if block just in case the version is older than honeycomb but at the very end of that section, whoever made the tutorial must have forgotten that they put it there because it is missing Jan 27 20:46:54 1080p/8core cpu/13mpixel cam Jan 27 20:46:55 do you have a photo? Jan 27 20:47:41 no photo yet Jan 27 20:48:08 anyway samsung will beat the shit out of apple ;) Jan 27 20:49:03 sony too Jan 27 20:49:16 the sony tablet is soo nice the 6.5mm version Jan 27 20:49:22 xperia z looks awsome Jan 27 20:49:54 if it had a hard kb or dual screens it would be literally perfect Jan 27 20:50:00 but even without it is amazing Jan 27 20:50:48 i really hope we will see more android on TVs Jan 27 20:51:54 if they made tvs touchscreen it would help Jan 27 20:52:14 im just looking forward to ultraHD :) Jan 27 20:52:33 Has anyone here tried to put tabs inside a fragment? Jan 27 20:52:59 apple tried touch screens some years ago Jan 27 20:53:12 and i belief them that this isn't very nice Jan 27 20:53:25 your arm goes limb after working 8h touching icons Jan 27 20:53:59 touch screen is the main android interface though... so without it i dont see android taking off on tvs Jan 27 20:54:28 archos got a nice solution for this Jan 27 20:54:38 i guess they could make the remote control scroll/select or something Jan 27 20:54:49 could work Jan 27 20:55:18 google must have some solution for a new user input interface for the glasses Jan 27 20:55:40 but then tv content providers, provide the interface for choosing channels etc... eg i have virgin media Jan 27 20:55:58 so it is up to those networks maybe Jan 27 20:56:26 the archos remote has even pinch/zoom Jan 27 20:57:01 it is pretty hard to guess where these technologies will be in 5 years Jan 27 20:57:19 everything changes so fast Jan 27 20:57:27 but it is exciting Jan 27 20:58:29 i like android dev.. because it is more dynamic... portable(wide device range).... i believe in adaptive tech... so android will adapt to whatever happens i think Jan 27 20:59:48 android is open technologie Jan 27 20:59:58 it can be used embedded or with a gui Jan 27 21:00:04 even for realtime Jan 27 21:00:15 yeh it seems like a modular system Jan 27 21:00:26 evolution! Jan 27 21:01:10 i have no idea where the TV industriy is going Jan 27 21:01:39 we have 4k TVs but no codecs nor transportable medias Jan 27 21:02:12 and 100gb for one movie is too much for downloading Jan 27 21:02:38 yeh true Jan 27 21:03:32 is it possible to set an dynamically created menu item to the action bar? Jan 27 21:04:00 i do a hack Jan 27 21:04:07 i create 10 menu items with dummy names Jan 27 21:04:17 and make the items visible i need Jan 27 21:05:34 i can see the items in the normal option menu but not in the action bar Jan 27 21:06:33 in onCreateOptionsMenu(..).. I add the menu items Jan 27 21:06:43 my datas are saved in sqlite /data/data/package/database but i cn not click on my root folder data access denied Jan 27 21:07:38 tona: you can't access /data on real devices - it's not possible on non rooted devices Jan 27 21:08:13 create some debug code to copy the database file to sdcard for debugging Jan 27 21:14:51 how can i copy the database a sd card Jan 27 21:16:58 with root access Jan 27 21:18:04 yes, supposely i have rooted my device Jan 27 21:18:48 then whatever app you are using has to enable root user access Jan 27 21:19:31 Or do it with the adb shell Jan 27 21:20:56 yeah exactly Jan 27 21:21:03 i tried to use adb shell but it not find the database Jan 27 21:21:16 i follor one video sqlite Jan 27 21:21:26 Did you do it as the root user? Jan 27 21:21:31 As in, did you 'su'? Jan 27 21:21:42 Did 'id' say you were root? Jan 27 21:25:24 yes i found my problem , my database want created yet Jan 27 21:25:55 supposely i follow one video to create register or reconrds in one table , and it cound add record Jan 27 21:26:03 do you have one video to lerar sqlite Jan 27 21:45:33 any complete android frameworks in python? Jan 27 21:46:18 I need help and this should explain almost everything http://pastebin.com/6hnaehdv Jan 27 21:47:32 Petein: look up 'sl4a' Jan 27 21:47:43 Petein: it's not particularly complete, but it's what exists. Jan 27 21:50:33 dragorn: aha.thanks Jan 27 21:53:20 right Jan 27 21:53:22 If I want to run a method if user clicks on Notification, but don't want any popup/activity starting. How do I do that? Jan 27 21:54:28 Hai. My service is starting a new thread, which is in an infinite loop. UI still hangs, why? Jan 27 21:55:06 infinite loops arent really good whatever the thread... Jan 27 21:55:18 not sure on the specifics of non front thread loops though Jan 27 21:55:43 :) Jan 27 21:56:20 how do i configure eclipse includes/paths with the NDK to resolve things like GetStringUTFChars properly? I'm getting errors "Method 'GetStringUTFChars' cannot be resolved", but i know it can coz it compiles the lib :S Jan 27 21:56:52 loop needs to be "infinite", its parsing the output of another process. Even if I sleep it by 1 second, I still get an ANR Jan 27 21:57:45 I'm having AlarmManager show a notification when theres an alarm pending, and I want to dismiss the alarm when clearing the notification. Jan 27 21:57:57 But I dont want clearing the notification to open a new activity Jan 27 21:58:03 Any ideas? Jan 27 21:58:56 the standard android alarm app does exactly this, it seems Jan 27 21:59:02 don't know how, though Jan 27 22:02:01 I guess what you could try is supplying a broadcast pendingintent to setContentIntent() Jan 27 22:02:26 how can i enable access root using eclipse file explorer Jan 27 22:02:47 ie, pendingintent.getBroadcast() instead of getActivity() Jan 27 22:03:06 then implement a broadcastreceiver to handle it Jan 27 22:05:07 hello fellow android devs. I have a widget in widget.java file, it's resource layout in xml file, and provider info in .xml file. Compiles fine. When adding to screen on target machine, it says "Problem loading widget". How to debug the problem? Jan 27 22:05:27 logcat, and console tags do not show any errors in eclipse. Jan 27 22:06:38 johny-b-goode, i would try to wrap some code in try{}catch{} and do e.printStackTrace() in the catch to see some stacktrace Jan 27 22:07:10 brx_: in the java file that has the object that extends android:orientation="vertical" Jan 27 22:07:15 android:layout_width="match_parent" Jan 27 22:07:18 android:layout_height="match_parent"> Jan 27 22:07:20 Jan 27 22:07:22 android:layout_width="fill_parent" Jan 27 22:07:28 android:layout_height="wrap_content" Jan 27 22:07:30 android:orientation="horizontal" > Jan 27 22:07:33