**** BEGIN LOGGING AT Sat Nov 10 02:59:58 2012 Nov 10 03:01:27 App widget design guidelines specify for # of cells using min dim as 40, 110, 180, 250dp etc. Then in the example underneath they make their minwidth to be 272dp. Does this mean the width will be stretched down to 250dp? Nov 10 03:13:43 lasserix: every device and launcher will have different widget sizes. You really want to do your best to make it fit nicely Nov 10 03:14:28 Ahh yeah I was getting confused about dimensions 4.0 and less than Nov 10 03:15:41 Scrolling is supporting in some views for app widgets >= 3.0, but a text view doesn't support scrolling if the text is longer? Or is there something I have to do... Nov 10 03:16:40 scrolling is just for listviews and gridviews Nov 10 03:17:16 so i just have to wrap the textview in a listview so it'll scroll? Nov 10 03:17:43 yeah i guess that will work, however it's a bit annoying because you have to implement a remote adapter for the views, even if it's just the one view Nov 10 03:17:59 there's an example scrollable widget on the dev site, a weather widget Nov 10 03:19:20 could you point me to the link ? Nov 10 03:21:52 i don't see it, the package name is com.example.android.weatherlistwidget and android:label is Weather Widget Sample. the version i have is modified to intentionally make it perform horrible so it'd be a bad example (i'm a launcher developer so i was testing that, rather than building an good performing widget) Nov 10 03:23:42 this is related but don't see the actual listview example: http://developer.android.com/guide/topics/appwidgets/index.html#collection_sample Nov 10 03:24:12 thanks Nov 10 03:24:28 oh, it's part of the sdk, android-sdk/samples/android-16/WeatherListWidget Nov 10 03:26:03 oh thaks Nov 10 03:26:34 no problem Nov 10 03:31:02 If I'm using Eclipse and don't build my project again before exporting, it exports the LAST build, doesn't it? Nov 10 03:31:22 I am in the process of updating the SDK. I have never developed for Android before. Is it necessary to have all the API revisions installed, or is there a minimum set that is sufficient? Nov 10 03:31:24 * Striker121 just realized he might have been -completely- screwing over some of his coding Nov 10 03:31:41 Took out some code and guess what, it didn't change anything :( Nov 10 03:33:28 popl: you don't need all of them. you could probably get away with just the newest (and you can still support older versions), but you probably want to install some older ones for their emulators and for any library projects that might use them that you download. i'd say install at least 2.3 and 4.1 Nov 10 03:33:48 kevinb: Thank you. Nov 10 04:21:23 Hey guys, how do graphics in Android work? Nov 10 04:21:53 Like what's the general layout for a class that will be drawn? Nov 10 04:26:09 oh man, somebody is suing apple for screen rotatation Nov 10 04:26:21 Shazer[2]: did you look at the docs yet :P Nov 10 04:27:09 heh ... SUE everybody !!! toss a coin with the courts ... win big money!!!! Nov 10 04:29:03 if i make a phone as a rounded rectangle, you have to make one as a triangle, it wont fit anyones pocket but itll offer "choices" Nov 10 04:30:04 wow, looks like the BB10 browser is quite excellent with standards compliance; better than chrome even Nov 10 04:30:40 passes ringmark ring 1 Nov 10 04:32:16 I have a trapezoidal phone Nov 10 04:32:42 http://news.softpedia.com/news/Nokia-7660-Eccentric-3G-Handset-60960.shtml Nov 10 04:33:22 hey thats not bad :P Nov 10 04:33:30 i have a patent on all quadrilaterals Nov 10 04:33:34 it does have rounded corners though Nov 10 04:33:48 does anyone know who i have to contact to get my unlocking code for my phones bootloader? Nov 10 04:34:24 so we can round a square but cant square a circle? Nov 10 04:34:30 RockstarRicki: somebody in #android-root Nov 10 04:36:28 how do i get to the #android-root page? Nov 10 04:37:11 g00s, yes, I can't find it. Nov 10 04:38:20 does anyone know how i get to the #android-root page? Nov 10 04:39:02 RockstarRicki: ron_frown knows how Nov 10 04:39:18 thanks g00s Nov 10 04:39:30 who what? Nov 10 04:39:37 dont be volunteering me for shit Nov 10 04:39:59 bwahaha Nov 10 04:41:27 not cool Nov 10 04:41:41 can someone just answer my question please? Nov 10 04:43:22 try clicking #android-root ? Or is my irc client know some special trick ? Nov 10 04:44:36 TIL narwhals > orcas XD Nov 10 04:45:54 g00s, so basically this? Nov 10 04:46:12 http://pastebin.com/y5RHze5G Nov 10 04:52:31 cool, an iOS app to control the Shimano Di2 electronic gear shifting system. Nov 10 04:52:50 fuck, i never had electronic gear shifters on my bike :| Nov 10 04:53:17 oh, uses Bluetooth smart. cool. Nov 10 04:54:05 Someone help :( Nov 10 04:54:05 guess android version wont be around Nov 10 04:55:37 g00s, do I just create a Canvas object to draw to the screen? Nov 10 04:55:58 Shazer[2]: did you look at any of the api demos ? there are tons of examples Nov 10 04:56:23 Yeah I did Nov 10 04:56:23 although the topic is pretty big; i bet somebody would write a book about it Nov 10 04:56:27 http://developer.android.com/guide/topics/graphics/2d-graphics.html Nov 10 04:56:41 I just need some extra assistance, I think my class is right, but I'm not sure how to draw it to my screen. Nov 10 04:57:07 ron_frown is great with that stuff. i'm going to volunteer him again Nov 10 04:57:20 * g00s is rusty with the canvas Nov 10 04:57:23 :) Nov 10 04:57:23 I don't want to bother too many people.. Nov 10 04:57:37 g00s, so how would you usually approach just drawing a rectangle to the screen? Nov 10 04:57:51 canvas, paint ... Nov 10 04:58:00 Oh, so I am on the right track. Nov 10 04:58:52 I DO NOT KNOW A DAMN THING ABOUT ANDROIDS Nov 10 04:59:00 Sorry ron_frown Nov 10 05:00:02 wow g00s look what you did :P Nov 10 05:00:09 :( Nov 10 05:00:17 I'll never get this Nov 10 05:01:03 http://stackoverflow.com/questions/7344497/android-canvas-draw-rectangle Nov 10 05:02:44 howdy Nov 10 05:09:48 hello, i tried this http://source.android.com/source/using-eclipse.html but i'm getting *something* cannot be resolved as a field, referring to fields like R.string.*something* Nov 10 05:11:14 switch to intelliJ .... :) Nov 10 05:11:33 does that always regenerate R.** ? Nov 10 05:11:56 eclipse does ... you may have to delete one if it exists in your code ... Nov 10 05:12:11 and let eclipse autoimport it again Nov 10 05:12:33 thing is eclipse doesn't regenerate it Nov 10 05:12:44 if it's the whole app package Nov 10 05:12:49 if i'm making my own app then it does Nov 10 05:13:36 loin: what are you trying to build? Nov 10 05:13:55 i'm not trying to build anything Nov 10 05:14:07 building works, i'm trying to edit stuff Nov 10 05:14:10 wait 1 second Nov 10 05:14:23 auto-suggest Nov 10 05:15:16 so you're just editing without wanting to build? Nov 10 05:15:45 Leeds, https://s3.amazonaws.com/i.imm.io/L4vh.png Nov 10 05:15:59 you're trying to build a picture? Nov 10 05:16:18 no, but the picture shows my problem Nov 10 05:16:29 i imported the whole thing in eclipse Nov 10 05:16:40 the whole *what* thing? Nov 10 05:16:46 android whole thing Nov 10 05:16:51 *what* are you trying to build? Nov 10 05:16:56 http://source.android.com/source/using-eclipse.html Nov 10 05:16:56 do you have the strings and the XML included in the project yet? Nov 10 05:17:04 of course i do Nov 10 05:17:18 hey guys, i wish to do audio remixing in android Nov 10 05:17:20 as i said before, building works, using eclipse... not so much Nov 10 05:17:20 okay, you never said that - and this channel is for app development, not system Nov 10 05:17:32 which librarie(s) should i start learning Nov 10 05:17:57 Leeds, which channel is for system development? Nov 10 05:18:10 i wish to combine 2 mp3 files into 1 & save together Nov 10 05:18:11 there isn't one, really Nov 10 05:18:21 I see no advantage in using nVidia Tegra Nov 10 05:18:34 loin: android-building google group Nov 10 05:18:43 How do I set a touch listener on the whole screen? Nov 10 05:18:51 Leeds, the page says If you're still having problems, please contact one of the Android mailing lists or IRC channels. Nov 10 05:18:58 without any references to the irc channels Nov 10 05:19:08 right, where 'mailing list' actually means 'google group' Nov 10 05:20:34 try the eclipse "clean" button? manually delete any previous compile errors displayed, then try further editing? Nov 10 05:20:40 That install says it is for Visual Studio, but it installs Eclipse Nov 10 05:20:58 capella, thanks that link helped me. Nov 10 05:21:08 B) Nov 10 05:21:39 * capella likes stackoverflow Nov 10 05:22:07 * Shazer[2] does too Nov 10 05:22:21 capella, what I don't understand though is how to add a touch listener to just the screen the user can see. Nov 10 05:22:28 The view I guess, I don't know how to reference it. Nov 10 05:23:46 http://stackoverflow.com/questions/5648985/ontouchlistener-for-entire-screen ? Nov 10 05:25:14 not sure what you mean by "just the screen the user can see"... Nov 10 05:28:59 capella he means if you look for a cardboard papertowel tube at the screen Nov 10 05:29:07 only capture touches on the part you can see Nov 10 05:30:58 yeah like, a touch listener for anywhere on the screen not just a certain view like a block Nov 10 05:31:13 you can do that Nov 10 05:32:10 How so ron_frown ? Nov 10 05:32:42 just like that stack overflow article shows Nov 10 05:32:54 you get find the root view and set a touch listener on it Nov 10 05:33:08 How do I find the root view? :/ Nov 10 05:34:58 shazer you know how to set up xml layouts? use android:id= in the root viewgroup of your layout and then use that as reference Nov 10 05:35:12 http://stackoverflow.com/questions/4486034/get-root-view-from-current-activity Nov 10 05:35:17 heh Nov 10 05:37:22 (someone on that page has asked every beginner question I ever thought of ! ) Nov 10 05:38:00 I gave up lol Nov 10 05:38:47 my teacher wants us to include a song in our android app. so i have a 4mb 320kbps song in the application Nov 10 05:38:52 in the emulator it is stuttering Nov 10 05:38:58 is this normal Nov 10 05:39:05 the audio is stuttering Nov 10 05:40:14 factory80: I've never tried it myself, but I wouldn't be surprised if it were caused by the emulator Nov 10 05:40:28 I'd recommend trying it on a physical device if possible Nov 10 05:40:30 i didnt know if it was cause the file was too big or what Nov 10 05:40:44 in fact if i recall my teacher demonstrated audio playback in class in the emulator and it played back fine Nov 10 05:40:54 emulator .... bad Nov 10 05:40:58 hah, im writing apps too new for my own equipment Nov 10 05:41:00 im poor Nov 10 05:41:07 i have an a855 droid Nov 10 05:41:14 you could try substituting a lower bitrate file and seeing if it works Nov 10 05:41:15 and my teacher wants a min sdk higher then my a855 Nov 10 05:41:41 factory80: are you using an accelerated emulator image? Nov 10 05:41:52 but emulator performance will depend in large part on the machine you're running it on (and whether graphics acceleration is enabled) Nov 10 05:41:58 hardware accelerated? no Nov 10 05:42:01 i will choose yes Nov 10 05:42:13 or true rather Nov 10 05:43:29 stutter has improved with hardware accelerated, but not eliminated Nov 10 05:44:05 the first Android phone, the G1, was perfectly capable of playing an MP3 without stuttering - although it couldn't do much else at the same time Nov 10 05:45:18 nowadays your phone can play 5 mp3s, dance the can can, and make you breakfast simultaneously Nov 10 05:46:22 y the hell m having a maid :-/ Nov 10 05:46:49 yah but my eggs are always runny Nov 10 05:46:54 im reducing the file to 128kbps Nov 10 05:47:06 my computer is actually nice, but my phone just sucks, the a855 Nov 10 05:47:19 is that the OG droid? Nov 10 05:47:22 but the emulator is mega disappointing many times Nov 10 05:47:26 that is the OG droid Nov 10 05:47:28 its taken a lot of abuse Nov 10 05:47:46 im debating on asking for a verizon samsung nexus or a like droid 3 or droid 4 (all used) Nov 10 05:47:56 keyboard or not, that is the question Nov 10 05:48:28 if you don't mind awful battery life the nexus is great Nov 10 05:48:35 android 4.0 is which api? Nov 10 05:48:40 like api 15 Nov 10 05:49:03 it's 14 Nov 10 05:49:10 15 is ICS MR1 Nov 10 05:49:20 thanks Nov 10 05:49:27 4.0.3? Nov 10 05:49:33 I think so Nov 10 05:50:00 http://developer.android.com/about/dashboards/index.html Nov 10 05:51:09 i did the hardware acceleration Nov 10 05:51:13 and it like blew away my android manifest file Nov 10 05:51:36 like there isnt shit in my manifest now Nov 10 05:52:28 shit, I should stop working android dev, files blowing up seems pretty scary Nov 10 05:53:10 not as bad as exploding batteries ;p Nov 10 05:53:21 exploding batteries on ecigs = worse Nov 10 05:53:35 seen it on reddit once :/ Nov 10 05:53:59 pics or gtfo seems like something a redditor would do as a stunt Nov 10 05:54:00 factory80: no it didn't Nov 10 05:54:10 it wras somewhere in /r/NSFW Nov 10 05:54:11 leeds, im not sure how it got cleared Nov 10 05:54:15 and it was a pic from emergency room Nov 10 05:54:20 i did not do anything to it :( Nov 10 05:54:21 it wasn't because you changed your emulator settings Nov 10 05:54:47 anyway, just restore it from your backup or source management Nov 10 05:54:58 git or gtfo in this case Nov 10 05:55:38 i gotta like readd my activites to it Nov 10 05:55:43 re-add Nov 10 05:56:12 what, it wiped your backups *and* source history as well??? Nov 10 05:56:25 im a novice Nov 10 05:56:33 is there a way to "go back" Nov 10 05:56:39 pre-wipe? Nov 10 05:56:40 novice is no excuse not to back up Nov 10 05:56:43 what are you using to manage your source? Nov 10 05:56:46 if you dont back up, you dont care about losing it Nov 10 05:56:48 eclipse Nov 10 05:56:49 what backup tool are you using? Nov 10 05:57:51 What's the best method for accesing a state variable I need in a service to update an app widget? (pulling random entry from sqlite database, need to know total rows, or should I just use a quick select all query?) Nov 10 06:11:15 im kinda glad it killed my android manifest Nov 10 06:11:21 because it forces me to learn what really is the manifest Nov 10 06:11:36 while i passed a test and quiz about it sure, but to practice it in real life Nov 10 06:11:46 it would be nice to know just how the fuck i cleared it tho Nov 10 06:12:30 it doesnt excuse your non usage of backup systems :) Nov 10 06:12:41 how do you backup your code regularly Nov 10 06:12:45 git Nov 10 06:12:47 do you take a hourly snapshot of your files Nov 10 06:12:54 how does git work Nov 10 06:13:00 its an online repository, sure Nov 10 06:13:01 git, and I commit whenever I do a milestone, or just when it's been a while Nov 10 06:13:09 ideally, externally, github is great and worth the money Nov 10 06:13:10 commit....a snapshot? Nov 10 06:13:24 well youll have to learn source control elsewhere then here, it's not easy to explain Nov 10 06:13:28 but yeah, snapshot is close Nov 10 06:13:57 github is the only reason I can sleep at night Nov 10 06:14:43 how about this Nov 10 06:14:49 my main page is a listactivity Nov 10 06:14:53 i changed the background of the page Nov 10 06:15:01 to gray, but below my list activity it is white Nov 10 06:15:08 how can i make the entire background quite literally gray Nov 10 06:15:23 someone else will need to help you, I'm only an opengl dev Nov 10 06:17:13 you are still pretty cool stickin around and chattin bout things Nov 10 06:35:40 all that work to implement scrolling for a textview, shesh Nov 10 06:52:22 hey guys, I am not getting the debug.keystore inspite of having created my android app twice Nov 10 06:52:27 How do I proceed? Nov 10 07:01:00 what do you mean "not getting" Nov 10 07:36:24 canadiancow: it is not there, according to some docs I read on developer.google.com, this keystore should get generated automatically Nov 10 07:39:04 yes, it should Nov 10 07:40:26 trying to force a webView to use a mobile version of a site… the site has media="only screen and (max-device-width: 480px)" Nov 10 07:41:04 setting the layout width of the webView doesn't trigger the mobile site.. Nov 10 07:41:14 or user agent string... Nov 10 09:49:30 Hi guys Nov 10 09:49:31 I've an android book but it has about 2 years and it's focus on android 2.2... I was thinking about to buy a new one so.. any recommended one? Focused on 4.0 and above if it's possible Nov 10 09:49:48 reto's latest Nov 10 09:50:03 maybe zigurd's latest Nov 10 10:43:23 speak out here, munez Nov 10 10:51:23 hi Nov 10 10:51:55 anyone knows a good ORM / database framework for Android? I really hate that part of dev ^^ Nov 10 11:01:26 If I have a ResolveInfo, how can I get the ComponentName of this? Nov 10 11:04:13 How do I cause a listview in an app widget to redraw its rows? Nov 10 11:09:00 lasserix: isn't it .invalidate ? Nov 10 11:10:01 this is in an app widget Nov 10 11:11:38 https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#notifyAppWidgetViewDataChanged(int, int) Nov 10 11:13:40 All of this just for a vertically scrolling textview ugh Nov 10 11:14:20 SimonVT where do you call it from? Nov 10 11:14:31 Your app Nov 10 11:14:54 Umm, in the reciever, in the activity in the remotefactoryservice? Nov 10 11:15:20 Sure Nov 10 11:17:36 hi all, is there a way to give a label to a radio group? Or am I supposed to just add a label using a text view instead? Nov 10 11:18:13 I tried adding an android:text element to the radio group but that didn't seem to do anything Nov 10 11:36:59 hi! where is a good place to ask questions when new to android development? Nov 10 11:39:43 google Nov 10 11:42:08 I need to get an id to a RemoteViewsFactory that handles a listview in an app widget so I can correctly select the right row in the query in ondatasetchanged, how can I get an into to this RemoteViewsFactory dynamically? Nov 10 11:46:17 aton`, try d.android.com/training Nov 10 12:06:11 Hi all. Is this the best way to go about putting a mapview in a fragment? https://github.com/petedoyle/android-support-v4-googlemaps ? Nov 10 12:06:49 The other way I have seen is to put a tabhost in a fragment to put a mapactivity in that. But that seems hackier. Nov 10 12:07:03 Garcon: Yes I think it probably is unfortunately. Nov 10 12:11:49 Cheers, Amorgos_ Nov 10 12:40:30 hi all Nov 10 12:41:13 I;m trying to setup Eclipse with the ADT plugin and every time I try it's failing with missing depenedancy on org.eclipse.wst.sse.core 0.0.0 Nov 10 12:41:23 has anyone else tried this? Nov 10 12:41:49 this is Eclipse Juno 4.2.1 and ADT r20.0.3 Nov 10 12:42:47 also, runnign on Windows 8 Nov 10 12:43:55 Eclipse is the "Classic" version as per the d.a.com guidelines Nov 10 12:48:39 ahha, extrapolating from solutions to this problem in 3.6 and adding juno updates seems to have fixed it Nov 10 12:49:34 Woooo Nov 10 12:49:43 yet another reason I hate eclipse :) Nov 10 12:50:42 Guys Nov 10 12:50:43 Hey guys Nov 10 12:50:53 What git client should I use on windwos if I want it to connect to github AND bitbucket? Nov 10 12:50:55 AT THE SAME TIME? Nov 10 12:52:17 what does bitbucket use natively? Nov 10 12:52:31 Iii have no idea. Nov 10 12:52:40 * RazielZ goes look Nov 10 12:52:47 it says it uses git so, any git client? Nov 10 12:53:17 maybe tortoisegit or just the usual CLI client Nov 10 12:54:01 Right now I have the github windows client, but I don't think I can set that up to show both my github and bitbucket repos Nov 10 12:54:22 it depends what you want to do with those sites Nov 10 12:54:43 at the simplest, "any git client" can sync, push and pull changes and show history Nov 10 12:54:56 That should be enough Nov 10 12:55:04 if you want to do site specific stuff then you'll probably need a site specific tool Nov 10 12:56:37 sync and such should be enough though, as long as it can do it with more than one site Nov 10 12:56:56 you could just use git Nov 10 12:56:59 http://git-scm.com/ Nov 10 12:58:04 Imma try it Nov 10 12:58:07 sync doesn;t work with "a site". it communicates with whatever upstream repository you;ve used for that repo Nov 10 12:58:22 or another local repo if needs be Nov 10 13:00:52 fucking making a scrollable textview in an app widget shouldnt have so many steps Nov 10 13:44:37 does anybody know a free and good way to generate statistics against "Google checkout" (when you're selling Android apps)? I don't trust http://www.mopapp.com (but maybe I should if someone convince me), and I'm also really not into excel to generate graph from the .csv available on Google checkout. And I don't want an android application/widget (it's more for desktop). Nov 10 14:18:23 looks like France is not allowed to have a "Merchant Key" (despite "Merchant ID" is available) with Google Checkout ;( Nov 10 14:41:30 How do we verify throughput over BT SPP Profile Nov 10 14:43:19 does the dev fee let you upload music to google play too? or that is a different fee? i notice they are both $25 Nov 10 14:43:26 so its probably the same fee right? Nov 10 14:50:34 oi Nov 10 14:56:47 hi every one.. i am rather new to the adnroid world and i think i mai found a bug... a misspelling mistake Nov 10 14:57:02 I would like to know how can i report it ... Nov 10 14:57:42 b.android.com Nov 10 14:57:56 Anyone ever tried to clone/duplicate RFID/NFC cards using their nfc phone? Nov 10 14:58:05 even though the word is in english, the mistake I found was for an android in a different language Nov 10 15:06:40 I'm refactoring my code, and am building a service to handle the network traffic, as it is now, I had a seperate Thread for that, which also managed game state Nov 10 15:07:02 I think it'd be okay to keep the state in the Thread, but move the message handling/networking to the Service? Nov 10 15:12:55 how does one go about rooting a phone for phone that no one has developed a root for... I know that kinda a vague question but what is the process developers go through to figure out what methods work on what phone ... I have used gingerbreak and superone click in the past but what if there is a no one button roots? Nov 10 15:14:09 First they go to #android-root Nov 10 15:16:20 yeah I went there and im not getting any answers so I thought I might ask in here since it requires development to come up with a root method Nov 10 15:16:34 if anyone recalls the mp3 problem i was having last night with stuttering Nov 10 15:16:47 it was due to the mp3 above 128k in quality i suspect? Nov 10 15:18:14 HAH that is so funny Nov 10 15:18:24 i just launched the god damn emulator again and its back to stuttering Nov 10 15:21:29 i'm writing an app that calls a web service, but i don't want to "hammer" the http endpoint during development. is there something like a "dev proxy" for these purposes? Nov 10 15:21:35 for audio, you need HAX from intel factory80 Nov 10 15:21:39 it really helps a lot Nov 10 15:21:43 http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback Nov 10 15:21:48 this seems to describe my issue well Nov 10 15:21:59 (i mean in the emulator) Nov 10 15:22:17 hax from intel Nov 10 15:22:20 i have not heard of this Nov 10 15:23:13 i have the intel x86 emulator accelerator haxm Nov 10 15:23:15 installed Nov 10 15:23:16 revision 2 Nov 10 15:23:22 hope someone can help: have a project in intellij which has actionbarsherlock as submodule, the project itself uses the support library too, if I include it in both the submodule ( abs ) and the project itself i get compile errors of duplicated classes, i I don't it doesn't fnd the fragment classes in my project Nov 10 15:24:34 http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager Nov 10 15:24:38 how do you use this hypervisor Nov 10 15:24:48 Mark the support lib provided in one of the modules Nov 10 15:25:43 SimonVT, so I add the support lib from the abs module as lib dependency to the main project and then mark it in the submodule as provided? Nov 10 15:25:49 i just installed it Nov 10 15:25:52 yes Nov 10 15:27:08 SimonVT, think i tried that but i'll do it again Nov 10 15:27:55 SimonVT, did it again, getting stuff like this: Android Dex: [k9mail] java.lang.IllegalArgumentException: already added: Lcom/fsck/k9/preferences/Storage; Nov 10 15:28:32 That doesn't look like the support library Nov 10 15:29:04 good point hmm Nov 10 15:29:19 support lib having it common as dep? Nov 10 15:29:28 it only shows up after I set the support lib as provided Nov 10 15:31:12 If you have several conflicts you'll only see the first one.. it wont get to the next Nov 10 15:32:11 Hey guys, I'm wondering how to make an animation loop. Nov 10 15:32:26 Currently I'm doing Handler/post to loop things. But it feels gross. Is there a better way? Nov 10 15:34:36 What's wrong with using a handler Nov 10 15:35:16 so when i create an intel atom x86 AVD it will automatically use this intel hax? Nov 10 15:35:28 I don't know that there's anything wrong with it. I just pondered there being a better way since I'm calling postDelayed very often. Nov 10 15:35:35 because i just installed haxm, downloaded the intel atom x86 4.1.2 api16 image Nov 10 15:35:44 and created an AVD for this new intel atom x86 Nov 10 15:35:53 Seems like the animation on my phone is not amazingly smooth. Nov 10 15:35:58 So I thought maybe I'm doing it funny. Nov 10 15:36:48 hi guys, I don't understand.. where is R and how do i get it? Nov 10 15:37:09 its in the gen folder Nov 10 15:37:16 Well, there's nothing wrong with using Handler/postDelayed Nov 10 15:37:18 reduz: R is a generated file made by hopefully whatever build process you're using. Nov 10 15:37:23 R.java is all created from what is in the res folders Nov 10 15:37:33 so your xml creates this R.java Nov 10 15:37:38 and you should not modify your R.Java Nov 10 15:37:42 as it likely is an issue in your XML Nov 10 15:37:45 in my experience Nov 10 15:38:06 SimonVT: Well then... I guess I'll just be slightly sad about my seemingly dropped frames. Nov 10 15:38:15 factory80: Or he might not be using an IDE. Nov 10 15:38:17 oh ok, thanks! I'm using nativeactivity but have to add some java stuff because not everything is exported, but I'm not sure how to access R from the java code Nov 10 15:38:52 reduz: From Java code just: R.id.name/R.drawable.name/R.string.name Nov 10 15:38:53 Ezpz Nov 10 15:38:57 aoclown: If your animations are choppy, you need to look elsewhere Nov 10 15:39:28 SimonVT: Well, it might just be that I'm not posting as fast as possible. I'm delaying it in order to slow down the animation. Nov 10 15:39:31 lol. Nov 10 15:39:36 aoclown, i tried, but it says "error: cannot find symbol" Nov 10 15:39:47 do i have to import something? Nov 10 15:39:48 reduz: What environment do you code in? Nov 10 15:39:57 aoclown, i'm just using console ant Nov 10 15:40:06 uh, well i need to reboot now Nov 10 15:40:07 lol Nov 10 15:40:25 this intel emulator just totally jacked my windows 8 install. ghosting tiles everywhere now Nov 10 15:40:36 aoclown: Generally you'd just post it every 16ms Nov 10 15:40:40 reduz: Yeah, your problem is that you actually need to generate it. Nov 10 15:40:51 On JB+, View.postOnAnimation is the way to go Nov 10 15:40:55 SimonVT: 16ms? How do you reach that number? Just curious. Nov 10 15:41:26 1000/60 Nov 10 15:41:29 60 fps Nov 10 15:41:36 aoclown, It seems to be there.. ahh wait i know what's going on, it's generated for the package name Nov 10 15:42:26 and package name obviously varies depending on the app I'm compiling Nov 10 15:42:26 i love my ssd and win8 still tho Nov 10 15:42:36 i just rebooted Nov 10 15:42:38 lol windows 8 Nov 10 15:43:03 sounds like someone doesn't know how to use a computer Nov 10 15:43:08 SimonVT: Ohh, there's a compat library thing. Nov 10 15:43:18 I can use that to make this less bad I think. Nov 10 15:43:19 :D Nov 10 15:43:23 aoclown, can I force ant to generate R for something not the package path? Nov 10 15:43:24 i enjoy its decreased boot time Nov 10 15:43:30 and the metroUI is kinda cool if you use it right Nov 10 15:43:44 reduz: Why would you do that? Nov 10 15:43:45 lol. Nov 10 15:43:52 my app has a default menu with "new" and "settings" items in it… where do i find that in eclipse? Nov 10 15:44:30 aoclown, because I'm actually using a game engine in C and I'm working on plenty of projects, each must be named different to be published but the game engine is the same Nov 10 15:44:37 ultra-: Under res/ path, in either menu, layouts, or something else. Nov 10 15:45:22 reduz: I see. Welp, that's beyond my abilities with eclipse/java. GL :D Nov 10 15:45:34 aoclown, so all the java files are the same for all the projects, it doesn't make sense to change a .java file for each project Nov 10 15:46:02 aoclown: ok i found "settings" in strings.xml… don't know about "new" Nov 10 15:46:14 man, android is still really unfriendly so far for anything not java, but i'm sure there has to be a way to do this Nov 10 15:46:29 Seems like you need to put your common code in a library project Nov 10 15:47:04 aoclown, do you know if it's possible to get the layout from the activity instance? Nov 10 15:47:38 like obtaining R.id.layout_main from somewhere else than R Nov 10 15:48:09 SimonVT: Holy crap man. I changed the code to use the compat lib postAnimation Nov 10 15:48:18 It's sooo smooth. Looks like silky butter. I want to eat it. Nov 10 15:49:58 reduz: Well, I mean sure everything's possible in theory. It depends entirely on your build process. I mean technically all "R" is is some ugly class made in a file inside of the gen folder. Nov 10 15:50:13 It posts too often in the compat implementation imo Nov 10 15:50:30 SimonVT: "postOnAnimationDelayed" Nov 10 15:50:45 Seems to work fine. :D Nov 10 15:51:03 But who knows. I'll wait until someone (me being the only user) complains. Nov 10 15:51:32 What platform version are you running on? Nov 10 15:51:41 I'm on JB Nov 10 15:51:46 4.1.1 Nov 10 15:51:56 So, 15? Nov 10 15:52:00 I think? Nov 10 15:52:23 Yeah, on JB it actually uses the native postOnAnimation/postOnAnimationDelayed method Nov 10 15:52:30 Ah. Nov 10 15:52:33 On older platforms, it just uses Handler.postDelayed Nov 10 15:52:36 With a delay of 10 Nov 10 15:52:40 Which is too often Nov 10 15:52:43 Right. Nov 10 15:52:50 I doubt any But since I'm using the delay of 16 with the other method call Nov 10 15:52:59 It should hopefully honor that. Nov 10 15:53:21 Not that I'll ever run this on anything other than JB. Nov 10 15:53:28 But.. for argument's sake :D Nov 10 15:54:16 When you use postOnAnimation you don't need to pass a delay Nov 10 15:54:29 In your case, it kinda defeats the point Nov 10 15:55:56 But then isn't the only limitation of the speed of animation the speed of your machine/gpu? Nov 10 15:56:21 If I don't limit the framerate by time, then faster machines are going to blink right by it. Nov 10 15:56:34 Look up what postOnAnimation actually does Nov 10 15:58:10 I looked it up. Nov 10 15:58:22 But unfortunately I don't know exactly what that means. Nov 10 15:58:27 Because I don't know enough about the android system. Nov 10 15:58:53 "Causes the Runnable to execute on the next animation time step. The runnable will be run on the user interface thread." Nov 10 15:59:07 It's run the next time a frame is about to be drawn Nov 10 15:59:12 Ah. Nov 10 15:59:30 So what you're saying is JB+ don't use the delay. Nov 10 15:59:31 With postOnAnimationDelay you first wait 16ms, then you wait until the next frame is about to be drawn, then your runnable is executed Nov 10 15:59:42 Yeah. Nov 10 15:59:42 hi, do you know if it is possible to draw a negative circle in a canvas ? with a png ? Nov 10 15:59:43 You're right. Nov 10 15:59:48 How awkward. Nov 10 16:01:26 Well, I still like the effect of this on my machine. <4.0 users can suffer their fast animation-y fate. Nov 10 16:02:03 how to test a bluetooth app? Nov 10 16:02:32 I just went through my entire app and added progress bars and AsyncTasks to everything. It makes it more responsive feeling. But because it was already so quick I think I'm going to induce seizures. Nov 10 16:03:07 only show the pro grass bar if it's been half a second? Nov 10 16:04:05 SpeedEvil: How to do that? Runnable or something? Check on the state of the task? Nov 10 16:04:40 no idea Nov 10 16:04:46 just a thought Nov 10 16:04:58 lol. Nov 10 16:05:05 I'll stick with siezures. Nov 10 16:05:29 Mayeb. Nov 10 16:05:30 Maybe* Nov 10 16:05:32 Crap. Nov 10 16:05:35 Now you've got me on to this -_- Nov 10 16:06:18 Yep. Not hard to implement. Damnit. Nov 10 16:08:21 oh, amazing, there is not any way to access the layout from nativeactivity Nov 10 16:08:35 * SpeedEvil ponders a 'are you epileptic' app that flashes the screen a lot. Nov 10 16:10:08 so basically, nativeactivity is useless for making games because you can't integrate it with any advertising or social SDK (which are all in java) Nov 10 16:12:22 i wonder if my teacher is going to run our apps in the intel emulator or what Nov 10 16:18:23 SpeedEvil: This was a horrible idea. Nov 10 16:18:44 My app feels great again. :( Nov 10 16:19:02 why is that a bad thing Nov 10 16:19:04 Hello Nov 10 16:19:11 I am Japanese Nov 10 16:19:11 hi Nov 10 16:19:19 I live in Japan Nov 10 16:19:28 tdignan: hello Nov 10 16:19:29 konichiwa Nov 10 16:20:05 tdignan: it is about AM1:23 Nov 10 16:20:36 tdignan: where do u live? Nov 10 16:21:38 tdignan: I liked seeing the progress bars to be honest. It made me think things were happening :( Nov 10 16:22:26 You know, the problem with this implementation is if something takes say 506 ms, then you get a progress bar for 6ms and it wasn't worth it again haha. Nov 10 16:22:37 Oh well. Still better I suppose. Nov 10 16:24:02 yeah Nov 10 16:24:11 put a sleep() call in there Nov 10 16:24:17 make it take longer on purpose Nov 10 16:24:47 licksjp: i live in boston Nov 10 16:25:25 tdignan: oic Nov 10 16:27:17 tdignan: Wouldn't be the first to have done it :D Nov 10 16:27:31 But since I'm the only one using this app, it doesn't matter. Just needs to be efficient. Nov 10 16:28:10 tdignan: r u Android developer? Nov 10 16:28:23 guess Nov 10 16:28:31 are you hitting on me? Nov 10 16:29:40 hello. i'm sorry if this is slightly ot. in your opinion what is the best approach for using existing android libraries (like one got from github) inside an existing mav Nov 10 16:29:47 *maven project? Nov 10 17:01:19 I have a ListView, and I want the user to be able to scroll so that the middle of the screen contains the last item on the list. I don't think overscrolling is what I want… Nov 10 17:23:05 when having a class with a listView code how do i run it in another class Nov 10 17:28:05 EVX: run which? Nov 10 17:29:56 i will explaine it better i have a class holds the list view code and i want to include it in only one of my tab fragments some for example tab one gets the listview so i have to bring the code include it etc into FragmentHolder1 class. i hope that explaines it better Nov 10 17:58:04 Hey, What's the IDE of choice these days? Nov 10 17:58:51 notepad Nov 10 17:59:02 ed Nov 10 17:59:23 Farkie I use my own :P Nov 10 18:00:52 :P Doesn't help for someone who wants to get into Android-dev :) Nov 10 18:05:09 The disciple asked Bill Joy "Master, I want to build the most beautiful palace in the world, what trowel should I use?" Bill dope-slapped the disciple and said "Never mistake the palace for the trowel". The disciple was enlightened. Nov 10 18:15:20 Farkie: The IDE of choice for android is more or less Eclipse Nov 10 18:15:33 Farkie: It sucks, it's a giant gorilla, and it's a huge pain in the ass Nov 10 18:15:41 thought as much -- Just installed it and the sdk Nov 10 18:15:47 well, adk Nov 10 18:15:48 Farkie: but all the examples use it, so until you're ready to roll your own and go away from the main examples Nov 10 18:15:58 just suck it up and deal w/ eclipse Nov 10 18:16:31 intellij is also good Nov 10 18:16:39 there's Idea-J, you can use ant and roll your own compile process and use the editor of your choice, someone said they had sublimetext2 plugins (tho in his example, they were failing) Nov 10 18:16:45 intellij, not ideaj. Right. Nov 10 18:17:09 But if you're just getting into android w/ no experience, just use eclipse until you're a bit more comfortable with the android process. You'll likely have much less pain. Nov 10 18:17:10 it's pretty much self-explanatory to use any eclipse-specific example with intellij in my experience Nov 10 18:17:21 I have some java experience, just not android Nov 10 18:17:21 Does anyone know the SCH-I535 Well Nov 10 18:17:29 ivdorelian: Never tried Nov 10 18:17:42 Farkie: You'll be good for all the IO/networking stuff, then, at least Nov 10 18:18:00 hopefully, the app I need to make has a lot of networking stuff Nov 10 18:18:03 Farkie: android is almost all callbacks and lambda shit wedged into callbacks (you could do it w/ classes, too) Nov 10 18:18:08 i'd say try both and see which one you like Nov 10 18:18:14 Does anyone know the SCH-I535 Well Nov 10 18:18:16 I prefer OOP'd Nov 10 18:18:16 calling the would android build process 'ass-backward' is an understatement Nov 10 18:18:28 s/would/whole/ Nov 10 18:18:29 Farkie: the biggest thing to beware of on networking: a) you can't run it on the UI thread at all Nov 10 18:18:34 hey guys how do u grab the listview and print it out in another class so u don't get an view error?... Nov 10 18:18:42 Farkie: b) you'll almost definitely end up putting it in a service by the time you're done Nov 10 18:19:01 Farkie: b/c otherwise anytime the user leaves your app (or rotates the phone) it'll mess up your network stuff Nov 10 18:19:30 I'm basically making a app version of a website (It's just just content :P - it's a game) Nov 10 18:19:54 probably have a server in the middle doing the real calls to the website Nov 10 18:19:59 and apps call my server Nov 10 18:20:20 Farkie: the UI thread can do UI stuff, no other thread can modify the UI (but there is a run on ui thread model to call back into the ui handler), and you can't do any blocking IO on the UI thread - it'll either make the UI shitty, on old phones, or throw an exception, on newer android versions which try to enforce it Nov 10 18:20:33 :) Thanks Nov 10 18:21:00 Farkie: you can run a background service which handles network IO, or you can probably do it in a fragment which is immune to much of the disruption when the phone rotates, etc. I've never done it in a fragment myself Nov 10 18:21:16 But most of my stuff is heavy backend service and light UI so all my system state is persistent in the service Nov 10 18:21:39 hmm, sounds like that's what i'd be needing. Any good docs, or is it just a google job? Nov 10 18:21:57 if you can do it with rest-style or other intermittent connections you can probably get by w/ doing it in the activity or a fragment Nov 10 18:22:08 if you need persistent tcp sockets, background service is probably what you want Nov 10 18:22:22 developer.android.com has a service example, I don't have the URL handy Nov 10 18:22:25 I think REST style is what i'm going for Nov 10 18:22:48 if you do a service, you ought to be able to get by with just a binder, you won't need the whole AIDL thing Nov 10 18:22:59 so you can skim over that part of the service docs Nov 10 18:23:03 question! is it possible to have my activity and everything else in a different package than the one AndroidManifest exports? Nov 10 18:23:22 reduz: I don't think so? I've never tried though. You could make two installs. Nov 10 18:23:38 reduz: you can also make multiple launcher icons by having multiple activities that respond to the launcher intent Nov 10 18:24:05 but since the package name is linked to the play market identity, etc, I wouldn't expect you to be able to advertise one and install another Nov 10 18:24:20 like, in AndroidManifest, this: . Can´t the activity be somwehre else? Nov 10 18:24:37 this way i can reuse the code for two different android apps Nov 10 18:24:42 you can launch an activity from another package via intents if that's what you're trying to do Nov 10 18:24:46 reduz: do you mean a different sub-package? or an entirely new top-level package. Nov 10 18:25:16 kbs, entirely different top level package Nov 10 18:25:21 you could also make a library and use it in both, or a pseudo-library apk which both activate via intents, but the pseudo-lib part couldn't write directly to things like the sharedprefs of either Nov 10 18:26:02 i mean, i want to have 2 android apps, exact same codebase, different data in assets/ and different package nam in AndroidManifest. This seems perfectly reasonable to me, but i don know how it is done Nov 10 18:27:17 Farkie: with a stateless connection like rest I bet you could put it in a fragment and be fine, you just need to make sure you keep your state when your activity gets destroyed (sharedprefs, database file, regular other file, or just re-poll state after rotation)... Just beware if you repop from network you might get shitty behavior on rotate if everything takes 5s to fill in Nov 10 18:27:49 :) Cheers for the advice, dragorn Nov 10 18:27:56 Farkie: if you don't allow rotate (ie your game locks to landscape mode or something) thenyou can bypass some of that, too Nov 10 18:28:11 Farkie: np. Just thinking of all the nonsense I saw trying to do network stuff. Nov 10 18:28:35 so, I guess there is no way to do this? am I forced to rename the src/ directories for the second app and change all the package stuff in the .java files, even if both apps are identical? Nov 10 18:29:10 reduz: out of curiosity, what's different in the assets between the two versions? Nov 10 18:29:45 right click, refactor ;P Nov 10 18:29:53 kbs, everything, since what is written in java is an interpreter Nov 10 18:30:41 ah. I wonder if it might be simpler to move the interpreter into a library, rather than bundling it into the app directly. Nov 10 18:30:42 reduz: if you're talking backend code not activities you can just load multiple class paths into your project. Nov 10 18:30:51 or,yeah. Make it a library. Nov 10 18:31:18 dragorn, but i still need to have a different activity in a different location for each Nov 10 18:33:04 reduz: I suspect you're trying to do something weird Nov 10 18:33:21 reduz: you could, for example, make an activity per project which simply subclassed your common activity Nov 10 18:35:06 dragorn, I'm afraid i'm going to have to do that, which isn't nice because i can't reuse the same codebase Nov 10 18:35:25 yes, you can Nov 10 18:36:09 foo.something.old.someactivity, foo.something.myapp.MainActivity extends foo.something.old.someactivity { ... } Nov 10 18:36:19 the only non-shared code is the implementation stub Nov 10 18:36:44 you can either a) make the common code a library (as we keep saying) or b) just put it in both projects directly Nov 10 18:37:07 common library is the stuff you include in project.properties, right? Nov 10 18:38:00 I tried to do that, but since I use JNI, it fails to bind the native methods Nov 10 18:38:26 it just can't resolve them for soem reason Nov 10 18:39:30 nativeactivity solves everything, and everything works, but it has no layout so i can't integrate stuff such adwhirl Nov 10 18:41:20 can you inherit a view from first class into the second ? Nov 10 18:43:16 You're trying to avoid the whole OOP thing, and it's not going to work out well for you. Yea, your life is going to suck if you're doing it that way. Nov 10 18:47:17 dragorn talking to me ?:P Nov 10 18:49:53 EVX: no, reduz Nov 10 18:49:59 ;( Nov 10 18:49:59 ok Nov 10 18:50:54 EVX: i'm not sure what you're asking - can you have a parent with a view and access it from a child? Yeah, why not? So long as the child is either populating the variable or calling super on it Nov 10 18:51:05 EVX: er, that is, calling a super function which populates it Nov 10 18:51:20 EVX: and assuming the child loads a layout where that view is defined so it can be filled in Nov 10 18:51:32 doesn anyone know how to get 3way calling use android.net.sip class Nov 10 18:52:43 Whenever I use Eclipse to create a new, empty Android application, it fills in the "Package Name" with a string that begins with "com.example.", which I then always have to correct. Is there some way I can tell Eclipse to always use "com.github.offby1" instead? Nov 10 18:56:06 dragorn i will explain better i have a class that holds a list view code and then i have my tab1 class that i want the tab one class to some how take in the list view stuff into it and i did Classone tr = new Classone(); to grab it but my second class needs a view so i need to as i said like make use of my already made view in the first class into the second one and not have to create a new view in the 2nd class hope that Nov 10 18:56:06 makes more sense.. Nov 10 18:57:48 dragorn did that make any sense :P? Nov 10 19:00:00 I have a problem with Fragment: IllegalStateException caused by target not in fragment manager http://pastebin.com/qteHePx4 Nov 10 19:00:08 anyone has some clue about it? Nov 10 19:00:44 The fragment you set with setTargetFragment isn't added to the fragmentmanager Nov 10 19:02:04 they are all DialogFragment shown with show() methos Nov 10 19:02:06 method* Nov 10 19:03:24 a dialogfragment show another dialogfragment and the first one got dismissed only when the second one have been dismissed Nov 10 19:03:36 term Nov 10 19:11:17 What is the best practive to handle clicks inside a Fragment? Nov 10 19:11:23 practice* Nov 10 19:11:46 What do you mean Nov 10 19:11:59 From what I got, the Fragment should contain all of its logic. So I take it, the click should not be handled inside the Activity. Nov 10 19:12:12 That's right Nov 10 19:12:33 So should I let the Fragment implement the OnClickListener? Nov 10 19:12:42 yes Nov 10 19:13:06 Is that recommended over myButton.setOnClickListener(…)? Nov 10 19:14:27 You still have to use setOnClickListener Nov 10 19:17:35 Sure. Nov 10 19:23:18 Hmm, I'm not sure what's the best approach here. Nov 10 19:23:35 I have - so far - two Fragment classes. One Activity. Nov 10 19:23:51 App starts, Activity starts, fragment1 is displayed. Nov 10 19:24:07 Now, I want to display fragment2 when I click on a Button in fragment1. Nov 10 19:24:32 But from what I've read - just starting with Fragments - the Activity is responsible for such things, using transactions. Nov 10 19:24:35 Correct? Nov 10 19:25:16 Or should I use two activities for that? Nov 10 19:28:48 Hey guys, i'm developing an app where I login with a username and password. In the app I have a User class, where i have all the data of the user (mail, username, user id, etc .. I DO NOT STORE PASSWORD) and when a user logins, I store de user object in myAppState class which extends Application, so I can have the user object in every activity of the app Nov 10 19:29:04 but know I want to keep the user login even if he closes the app Nov 10 19:29:24 kulas: I'm a n00b, but I think you put that into the "bundle" Nov 10 19:29:47 then when you'r activity gets recreated, it gets passed that same bundle as the "SavedInstanceState" Nov 10 19:29:53 and you can get your user info from that. Nov 10 19:29:57 I've never done this, though. Nov 10 19:30:02 I'm just sort of guessing. Nov 10 19:31:18 store the id and any other information you might need in your application's SharedPreference object: http://developer.android.com/guide/topics/data/data-storage.html#pref Nov 10 19:32:24 So i'm using SharedPreferences to store the user data ... but I want to know that whenever I need some user data like the email, I should user the SharedPreference object, or I should read it only once (at the start of the app) and create a user object and "store" it in myAppState class Nov 10 19:33:31 there is overhead for reading stuff like that, but it's relatively small relative to things like expanding views Nov 10 19:34:54 if it was me and it wasn't being accessed frequently, then i would probably just read it from prefs as needed, that takes care of any synchronization issues Nov 10 19:35:14 on the other hand, if it is just set once the first time the person uses the app, then there's no harm in caching it when the activity starts Nov 10 19:36:42 pabs: I see .. thanks pabs! Nov 10 19:38:03 Where would I find a system image for Android 2.2? I'm looking in the SDK manager, and I see one for Android 4.1, but only a few others ... and one of the others that I do see is labeled "Intel Atom x86 System Image" ... I am vaguely aware that typical Android devices use an ARM chip, so I figure that system image won't work for me. What am I misunderstanding? Nov 10 19:39:05 offby1: for 2.2, you need to use SDK level 7, which is in separate part of the tree from 4.1 Nov 10 19:40:45 p_l: thanks. I don't know what "separate part of the tree" means, though. Does that mean I need to just find the image file somewhere on the web, and download it with my browser? Nov 10 19:41:26 no Nov 10 19:41:49 in SDK manager, you should have a tree of different versions of the OS Nov 10 19:41:49 Can you spell out the steps I need to follow? I.e., starting from the SDK manager, what buttons I should click? Nov 10 19:42:00 yes, I see lots of versions, from 4.1 down to 1.5 Nov 10 19:42:19 under each is a number of items, like "SDK Platform", "Sample", and so on Nov 10 19:42:29 but only a couple of those items are named "System image". Nov 10 19:42:34 None seems pertinent. Nov 10 19:42:52 Should I just download the SDK Platform, and the system image will come along with it? Nov 10 19:43:28 I think so Nov 10 19:43:30 I'd simply try it and see, but downloads are so slow that I figured I'd ask first Nov 10 19:43:35 ok, thanks; let's see if that does it. Nov 10 19:43:43 it was only later on that there was more than one image, so there was no need to separate them Nov 10 19:44:26 "Carriers should customize Android phones, says Google Ventures exec" .. wat Nov 10 19:44:39 * SpeedEvil sighs. Nov 10 19:45:27 the fuck Nov 10 19:45:29 inb4 fired? Nov 10 19:45:33 g00s: nope Nov 10 19:45:48 the old docs for building your own included instructions on customization Nov 10 19:45:56 the thing is that the customization went... awry Nov 10 19:47:24 well, here is the article http://www.fiercemobilecontent.com/story/carriers-should-customize-android-phones-says-google-ventures-exec/2012-11-07 Nov 10 19:47:57 "Miner said that wireless carriers should do more to innovate on Android in order to better serve their customers and highlight their phones above those from other carriers." Nov 10 19:47:58 haha Nov 10 19:48:07 carriers, innovate, lolololol Nov 10 19:49:25 innovate and then make it so your 'innovations' can't be uninstalled Nov 10 19:49:36 g00s: some people are naive? :P Nov 10 19:49:44 verizon innovates by shipping all their phones with xmpp spyware Nov 10 19:50:00 I have an app that is using info() from java.util.logging.Logger, I don't have access to the code. Is there a way to read the log via logcat? Nov 10 19:50:26 I'm not confident at all with java.util.logging.Logger Nov 10 19:50:49 I don't get if that is meant to access the log programmatically or should send it to system's log files Nov 10 19:51:44 docs say it goes wherever you have registered handlers to. Nov 10 19:52:51 lol @ innovation: http://books.google.com/ngrams/graph?content=innovation&year_start=1880&year_end=2008 Nov 10 19:53:04 this word is a fashion. Nov 10 19:53:12 heh Nov 10 19:56:03 (on the contrary, imagination is slightly decreasing :)) Nov 10 20:03:28 tdignan: I'm clueless since I don't have sources Nov 10 20:14:40 look for files Nov 10 20:14:48 i bet it just logs to a file Nov 10 20:15:15 p_l: I now have the 2.2 system image, just as I wanted: thanks. Nov 10 20:15:45 np Nov 10 20:18:05 Hi. Nov 10 20:18:23 What should I know about JAVA before I start to explore android API ? Nov 10 20:18:37 everything Nov 10 20:18:43 about java the language Nov 10 20:18:51 don't worry about learning all the java ecosystem Nov 10 20:19:06 I mean, I know a little bit c++, PASCAL, and somewat more about scripting languages as PYTHON and Javascript. Nov 10 20:19:28 tdignan: So official Oracle, tutorial would be great ? Nov 10 20:19:36 yeah Nov 10 20:19:40 I used that Nov 10 20:19:52 http://docs.oracle.com/javase/tutorial/ Nov 10 20:19:59 yeah, that tutorial is fine Nov 10 20:20:18 just know that android doesn't implement all of the java libs Nov 10 20:20:31 tdignan: What I should focus on, if I have experience with, scripting languages ? Nov 10 20:20:45 like, obviously don't waste your time learnin crap like swing and javafx Nov 10 20:20:54 you definitely need to learn the language, and learn collections Nov 10 20:20:57 and concurrency Nov 10 20:21:01 bluesm: if you are already experienced you should just read the application overview and dive in Nov 10 20:24:57 anddam: http://developer.android.com/guide/webapps/overview.html ? Nov 10 20:28:55 I mean more like http://developer.android.com/guide/components/fundamentals.html but the site has changed Nov 10 20:29:50 what I mean is that if you already know a language like C++ many you can just check a few examples and see by yourself what you don't get Nov 10 20:29:54 so you can focus on that Nov 10 20:30:16 that apart you should of course read about Java language Nov 10 20:30:22 you just don't need to know it all before starting Nov 10 20:31:05 and I'm saying that as Java noob myself Nov 10 20:59:12 many GC_EXTERNAL_ALLOC freed <=> memmory leak ? Nov 10 21:00:00 if it's freeing memory it's probably not a leak Nov 10 21:01:28 thx speakingcode Nov 10 21:01:58 i'm using an HttpUrlConnection, InputStream and OutputStream to pull a file from online and save it to the sd card (mp3) Nov 10 21:03:08 speakingcode, do you have problem with that? Nov 10 21:03:30 the url redirects, i'm not sure if that's the issue or not as the documentatino says it can handle up to three redirects and its not throwing any exceptions Nov 10 21:04:12 Can you grab a pre set bundle TestBlah into another class ? Nov 10 21:04:34 speakingcode if you log.i( inputstream.getchars... ) ? Nov 10 21:05:09 for some reason log causes it to crash but logcat doesn't show anythnig Nov 10 21:05:19 really strange issues going on here Nov 10 21:05:44 happened to me from time to time, if you can reproduce the error Nov 10 21:05:53 at some point you should see the problem in logcat Nov 10 21:06:22 Calling Log.i is causing the applicatino to force close Nov 10 21:06:22 maybe : when you draw a char, it "eat" the flow Nov 10 21:06:23 when you come back from an intent, which is called first: onResume() or onActivityResult() ? Nov 10 21:07:01 onActivityResult Nov 10 21:07:30 hmm ok Nov 10 21:07:48 also i can't write to SD while the device is connected to the pc, but i suppose i can try logging before that Nov 10 21:08:22 speakingcode, monitor this variable Inputstream.available() Nov 10 21:08:27 Calling Log.i is causing the applicatino to force close <- there are only 2 fields, tag and your message. One of them is null of with the wrong type Nov 10 21:08:45 s/of/or/ Nov 10 21:09:23 inputstream.getbyte... get next byte step by step... until null Nov 10 21:10:27 how often do you guys read docs? Nov 10 21:10:34 daily Nov 10 21:10:46 its depend, if its a new topic Nov 10 21:10:56 you don't just go and google "how to make XYZ work on ABC"? Nov 10 21:11:26 soon I will work on bluetooth, I should read docs! Nov 10 21:11:51 speakingcode, you can also use the debugger with a surgical strike breakpoint Nov 10 21:12:10 Sicp, i tend to search on stackoverflow Nov 10 21:12:19 before searching a wider area with google Nov 10 21:12:25 so you do do it, but not before reading docs? Nov 10 21:12:49 I'm talking about searching without ever resorting to Docs; for example now I have to write an AllJoyn app.. Nov 10 21:12:59 and AllJoyn is peer-to-peer using Buses and Connectors Nov 10 21:13:29 the more you search, the better you should search :) Nov 10 21:13:45 I'm excited to start reading, and I am sad to realize that this is one of the few times that I've *wanted* to read docs Nov 10 21:14:57 when I work with ( inputStream,outputstream, p2p?).. i try it in pure java.. these objects are the same in JRE 5 Nov 10 21:15:51 android is quite slow for benchmarking these kind of class/method Nov 10 21:15:54 Sicp, I never heard of AllJoyn, but it looks like it's open source https://www.alljoyn.org/docs-and-downloads Nov 10 21:16:12 yea it is, it is Nov 10 21:16:26 I cannot find the Android documentation for it though Nov 10 21:16:43 one entry says "AllJoyn Android C++ Sample Programs Walkthrough"4 Nov 10 21:17:12 https://www.alljoyn.org/app-developers/tutorials Nov 10 21:17:22 then https://www.alljoyn.org/docs-and-downloads/documentation/guide-alljoyn-development-using-java-sdk-rev-h Nov 10 21:17:27 should not be too far from android dev Nov 10 21:17:57 but since i don't know what you look for, it might not be what you want Nov 10 21:46:33 does anyone see why i get an undefined error at my adapter line.. Nov 10 21:46:33 http://pastebin.com/3ar8PqvB Nov 10 21:50:57 EVX, not sure but try to create and set your adapter before filling the array Nov 10 21:51:34 so move line 44 & 45 between l33 and l34 Nov 10 21:51:57 also try to change the type of line 33 by ArrayList> instead of List> Nov 10 21:52:29 SimpleAdapter takes a Context, not a Fragment Nov 10 21:52:38 ah indeed Nov 10 21:53:15 try first what SimonVT said :) Nov 10 21:54:07 Simon may i ask how i could go about making it work in fragment? Nov 10 21:54:19 cause my tabs are linked to fragments 1 to 3 Nov 10 21:54:23 Pass it a context Nov 10 21:54:28 Fragment#getActivity() Nov 10 21:55:14 I'm sorry mate but could you please give me a more noob friendly answer that would be great! Nov 10 21:55:29 would greatly appricated it! Nov 10 21:55:49 You know how Activity extends Context? Nov 10 21:55:53 That makes Activity a Context Nov 10 21:55:59 pass a Context to the constructor Nov 10 21:56:36 feeling a bit shamed that i still don't get it :( Nov 10 21:56:39 sorry mate! Nov 10 21:56:59 at line 44, "this" (first arg of SimpleAdapter constructor) is wrong Nov 10 21:57:06 as said SimonVT, you have to pass a context Nov 10 21:57:26 I guess Android development isn't for everyone Nov 10 21:57:40 Jim, your mission is to figure where you could get this context to replace "this" by a valid context :) Nov 10 21:57:51 SimonVT bit hard as only been doing android dev for 2 days ;) but ok Nov 10 22:00:59 solved it so i guess android dev is for me after all ;) Nov 10 22:03:22 ty adq for the help ;) Nov 10 22:22:31 learning java helps Nov 10 22:32:35 tdignan: lol Nov 10 22:33:58 aw i figured it out raz86 , adq Nov 10 22:34:11 was using the wrong url, OOPS Nov 10 22:39:08 Is there an easy way to find out if my app is running on a "small", "normal", "large", or "xlarge" screen? Nov 10 22:39:40 yes Nov 10 22:40:11 http://stackoverflow.com/questions/5015094/determine-device-screen-category-small-normal-large-xlarge-using-code jfpoole Nov 10 22:40:31 speakingcode: Oh, neat, thanks! Nov 10 22:41:19 welkeeur Nov 10 22:41:32 err, ur welkee* Nov 10 22:41:53 :) Nov 10 22:50:07 does anyone see anything wrong with this code ? http://pastebin.com/Ha42t4cN Nov 10 22:50:15 no errors just crash on start of app. Nov 10 22:50:18 What's everyone's take on class attributes? Nov 10 22:50:47 Wow... I forgot the important part. What's everyone's take on PREFIXING class attributes (with m or similar)? Nov 10 22:51:01 EVX: No information in logcat? Nov 10 22:51:16 n20: Do what you want to do, but be consistent. Nov 10 22:55:24 n20: this is what i get http://pastebin.com/rNkwKFZb Nov 10 22:55:27 from logcat Nov 10 22:55:38 but can't make it out :) Nov 10 22:56:05 do mind taking a look thank you! Nov 10 22:56:07 EVX: What's the Holder class? Nov 10 22:57:01 just a class extending to Activity so i can in the first class use Activity functions Nov 10 22:57:07 jfpoole: Yeah, being consistent is probably the most important part. Nov 10 22:57:37 EVX: You should probably show us that one too. :-) Nov 10 22:58:10 import android.app.Activity; Nov 10 22:58:10 public class Holder extends Activity { Nov 10 22:58:10 } Nov 10 22:58:12 that about it Nov 10 22:59:44 I've an android book but it has about 2 years and it's focus on android 2.2... I was thinking about to buy a new one so.. any recommended one? Focused on 4.0 and above if it's possible Nov 10 23:02:16 What about Merier's book. "Android 4 Application Development" ? Nov 10 23:04:48 EVX: And... what does the calling activity for the fragment look like? Nov 10 23:05:00 n20: as u can see basicly this is how i wan't it to work, i'm in MyFragment1 and that is equal to tab1 and then in that sort of fragment wan't to run my code ListView etc as u can see in the first link but it did not work without the activity so i tried like this first bring the activity code to first class in a var and use that var as a hook for the functions that need to run with a Activity function, and also at the fir Nov 10 23:05:00 st class there was an error before with the adapter cause the context was wrong when saying this so i changed it to one of my holder vars for example Holder or activity etc so that did not give me any errors but now the app crashes all the time and yeah that's it. Nov 10 23:05:21 wow that was a lot of txt did not notice that while typing sorry ;p Nov 10 23:05:49 and this is how it looks in the fragment(code). http://pastebin.com/Ha42t4cN Nov 10 23:07:23 EVX: Your activity (FragmentActivity or similar) should add your tabs to itself (instances of Fragment). :-) Nov 10 23:08:07 EVX: So, what does the activity itself look like, the one that crashes? Nov 10 23:09:21 the link i pasted just now is the code running in fragment one and that is what is crashing Nov 10 23:09:32 so it has to be something wrong with it Nov 10 23:09:54 n20: He created a class that does nothing but extend Activity so he could fix a compile time error where he was trying to pass a Fragment as a Context Nov 10 23:11:51 SimonVT: Gotcha. But am I completely out of bounds when I'm thinking that he's doing something wrong in his actual activity too, or are fragments *that* independant that they don't need one? Nov 10 23:14:28 He's just doing stuff wrong in his Fragment Nov 10 23:15:04 hi, i'm looking for a solution to change the style of a particular listview-item dynamically. example: i have a media-player like interface, whenever i press the "forward"-button, the next list-item should change its style. any suggestions, please? Nov 10 23:15:17 SimonVT educate me please Nov 10 23:15:57 And Fragments always need an ACtivity Nov 10 23:17:38 I don't have the patience to explain this to you right now Nov 10 23:20:07 n20: can u explain? Nov 10 23:21:40 ... Nov 10 23:23:15 SimonVT: Thanks for the "Fragments always need an Activity", I almost thought I had missed something really vital hah. :-) Nov 10 23:25:51 but i do include an Activity for my fragment Nov 10 23:30:16 lol Nov 10 23:33:02 Hey, is there any way to force the overflow icon to be shown in the actionbar even when the menu key is presnet? Nov 10 23:33:05 menu key sucks Nov 10 23:33:08 hi if i just download API with android SDK that will cover all my bases right? Nov 10 23:33:16 or is there a senerio will i need to download the previous APIs? Nov 10 23:33:42 EVX: Like SimonVT said, you just extended Activity to remove the compile time error. Rollback to when you got that error instead, and you could just pass getActivity() as context whenever needed. Also, how's the code in your Activity that runs? You've shown the Fragment twice. :-) Nov 10 23:34:11 veQue: I suspect that if you want to test your app on older devices, and use the emulator, you'll have to download earlier versions of the SDK. Nov 10 23:34:27 (If you have actual hardware on which to test, I suspect you _won't_ need the older SDKs.) Nov 10 23:34:38 ok thanks offby1 Nov 10 23:35:22 soeren_ i'm not sure but i don't think yuo can use style programatically. i might be wrong but i think style in xml is just used to generate java code that creates objects with the corresponding params. i don't think view objects have an actual explicit style property. i might be wrong though.anyway in that case you can fetch the view via findViewById () and set the individial property like background color or whatever you n Nov 10 23:35:33 fucking asshole Nov 10 23:35:41 just left as i was typing his answer Nov 10 23:37:31 n20: i tried doing it so that i use getActivity to solve that problem and errors are gone and i don't use a second class to extend on but the app still crash Nov 10 23:38:41 EVX: Which line is Logcat complaining about now? Nov 10 23:40:39 n20: my logcat atm -> http://pastebin.com/zgiUR9aD Nov 10 23:41:19 EVX: MyFragment1.java:23 is getActivity().setContentView(*stuff here*)? Nov 10 23:42:15 yes Nov 10 23:42:45 EVX: Remove getActivity(). from that line, so that it only says "setContentView(*stuff here*);" Nov 10 23:42:55 EVX: *stuff here* being the ID Nov 10 23:43:07 Fragment doesn't have a setContentView method Nov 10 23:43:56 The method setContentView(int) is undefined for the type MyFragment1 Nov 10 23:44:03 true Nov 10 23:44:35 SimonVT: I'm so confused right now, sorry about that EVX. Nov 10 23:45:02 n20: Fragments have onCreateView for creating views Nov 10 23:46:15 so if i create an view and specify it to getActivity() am i on the right track then? Nov 10 23:46:35 The Fragment shouldn't be setting the activitys view Nov 10 23:46:42 It should only manage its own views Nov 10 23:46:49 yes true Nov 10 23:47:29 EVX: the idea is that you return the view in onCreateView()... Nov 10 23:47:45 you really need to read the docs instead of guessing Nov 10 23:47:51 and by that I mean the guides Nov 10 23:47:53 not the api reference Nov 10 23:47:55 SimonVT: I blame the fact that I've got a cold right now and my head's all mushy, I would've been in the game otherwise! Nov 10 23:48:29 tdignan i learn more by doing so thats why i'm doing it like this Nov 10 23:48:42 learn first by doing: exactly what the guides are doing Nov 10 23:48:48 but i read as well at the same time Nov 10 23:48:50 you can learn by doing and read the guide Nov 10 23:48:57 they are not mutually exclusive Nov 10 23:50:01 Hi, I'm getting the error "AndroidManifest.xml is missing!" - however my manifest is not missing, nor have I modified it. Does anyone know what may have caused this and how I can resolve it? I cannot compile my application otherwise. Nov 10 23:50:48 Aaronds u should be able to use android tools to recreate missing parts of project Nov 10 23:50:54 re-create () Nov 10 23:51:39 SimonVT: Why I got you on the line, what's your take on prefixing class attributes? Nov 10 23:52:23 EVX, looks like a simple clean may have done the trick. Nov 10 23:52:32 yeah Nov 10 23:52:56 that was the thing i was talking about i think don't know anyways glad it worked out :P Nov 11 00:04:45 so i just had an interesting encounter with a bottle of rum Nov 11 00:04:52 apparently down here, they put security devices on bottles Nov 11 00:04:57 which i did not realize until i was home Nov 11 00:05:00 that was fun to get off Nov 11 00:05:30 haha Nov 11 00:05:48 ^ this is how I laugh Nov 11 00:06:04 this is only a sample though Nov 11 00:07:40 http://www.bottle-security-tags.com/yfxog.php Nov 11 00:07:42 like wtf Nov 11 00:07:50 * canadiancow misses canada Nov 11 00:08:19 you really didn't think there was something strange about the bottle when you took it? Nov 11 00:09:16 so ive seen big bottles of alcohol with some kind of small "gift" wrapped around the top Nov 11 00:09:23 whether it's a bottle opener, or a smaller bottle of something else Nov 11 00:09:28 aahh Nov 11 00:09:29 and i just assumed it was one of those Nov 11 00:09:44 yes and these ones do not have/ensue any sense of "sharpness" either Nov 11 00:09:54 they are just very neat and pretty Nov 11 00:10:29 youd think when you scan one of those at a self checkout that it would kind of alert you that "THIS PRODUCT MAY BE PROTECTED" Nov 11 00:19:59 canadiancow: they just started selling likka in private stores where I live (Washington State, US) and some places have those weird giant-sized bottle caps that the checkout clerk has to remove with a special tool, lest it trigger the shoplifting alarm. Nov 11 00:21:01 I'm using the Camera to get a photo using takePicture, which works fine. I now want to save both the original jpeg to a file (this is easy), plus a much smaller thumbnail as a separate jpeg. What is the best way to do this? Nov 11 00:21:14 offby1 is it http://www.bottle-security-tags.com/yfxog.php Nov 11 00:21:59 let's see Nov 11 00:22:17 nope Nov 11 00:22:37 im actually surprised this didnt set something off Nov 11 00:22:45 i went it at with some tools, and 20 minuets later i got it off Nov 11 00:23:13 http://i.ushipcdn.com/resize.php?path=%2Fstatic%2F2809651a-d106-4390-a.jpg&w=270&h=210 I think Nov 11 00:24:37 better: http://goo.gl/kks30 Nov 11 00:38:29 is it bad form to manually call onResume() from within onActivityResult() ? Nov 11 00:38:55 basically onResume() goes to the db and gets some data for a viewmodel, and I need that data before onActivityResult() can do what it needs to do Nov 11 00:38:56 yes Nov 11 00:39:02 never call onResume() Nov 11 00:39:10 canadiancow: what is the convention for a situation like that? Nov 11 00:39:17 move your code out of onResume? Nov 11 00:39:23 should I extract what is in onResume() into its own me.... alright :) Nov 11 00:39:28 thanks! Nov 11 00:39:38 anyone having trouble with the 4.2 gallery? Nov 11 00:39:43 mine freezes after one pic Nov 11 00:39:53 it worked great for a bit, then stopped working Nov 11 00:40:16 maybe stop using unreleased software? :P Nov 11 00:48:28 woot, almost beta-release readyyyyyy Nov 11 00:49:24 canadiancow wow thats a pretty lame answer Nov 11 00:50:49 bliynd i think he was joking.. anyway have you tried plugging the device in and viewing logcat mssages? Nov 11 00:51:11 no, but thats a good idea, thanks Nov 11 00:51:32 its a start, at lease Nov 11 00:52:11 Hey Nov 11 00:52:36 hargh Nov 11 00:52:39 I'm just starting out, and I'm having trouble setting everything up so that OpenGL ES data types are recognized Nov 11 00:52:53 so i'm using an AsyncTask to upload an image form the camera that I just got back from onActivityResult() Nov 11 00:53:27 Looking at examples, I should be able to go e.g GLfloat glf Nov 11 00:53:41 but I have this problem where if the phone is held sideways and the camera finishes up, it crashes because of the roatation back to portrait mode (I think) Nov 11 00:54:27 specifically because onActivityResult() gets called before onResume() so when I go to upload the Bitmap, NPE's happen because the rotation of the screen caused lifecycle stuff to get rid of this thing that isn't stored anywhere in a viewmodel for example Nov 11 00:55:04 tnzr i get what you're saying, but what is "this thing" Nov 11 00:55:08 so I'm trying to call my method that initializes/hydrates my viewmodel right when I get into onActivityResult() but I think its still getting NPE's because the thread isn't finished by the time onActivityResult() moves on to try to upload Nov 11 00:55:15 bliynd / speakingcode, i wasnt joking, and its quite reasonable Nov 11 00:55:22 speakingcode: sorry, the thing is the image :) Nov 11 00:55:27 if 4.2 was ready, you'd have the source Nov 11 00:55:56 i can guarantee any version of a 4.2 app you have is not the same as what will be shipping on the 13th Nov 11 00:56:13 so yes - there are bugs. they will hopefully be fixed by the time the software is released Nov 11 00:56:39 damn 4.2 is already about to hit?? short life for JB Nov 11 00:57:02 i'm assuming the nexus7 and galaxy nexus will get OTA updates? Nov 11 00:57:14 canadiancow i wasn't asking for a bug free version of 4.2 gallery, i was asking if anyone found a fix Nov 11 00:57:36 wait three days... Nov 11 00:57:37 if your all into, not using it unless it's official, maybe you should get an iphone Nov 11 00:57:47 lol? Nov 11 00:58:13 let's... not Nov 11 00:58:38 i'll stick with my nexus, tyvm Nov 11 00:58:39 one of the things i like about android is getting leaks and flashing shit that doesn't always work, big deal Nov 11 00:59:38 i asked if anyone had the same problem, not what you though about me an unofficial package Nov 11 00:59:48 me *running an unofficial package Nov 11 01:00:02 i think nothing of you running it Nov 11 01:00:11 alright alright, it was a misunderstanding Nov 11 01:00:20 but if you want a fix, wait three days Nov 11 01:00:40 one of yuo is blind. the other is canadian, and a cow. this can't go anywhere positive!! :-p Nov 11 01:00:56 lol Nov 11 01:01:24 i totally overlooked canadian, makes sense now Nov 11 01:01:35 "waiting for official release" can certainly be a ... unpleasant? answer, but.. it's three days away Nov 11 01:01:57 i'm buying the nexus 4 so… lol Nov 11 01:02:05 n4 is a nice device Nov 11 01:02:07 not like some indefinite vaporware shit Nov 11 01:02:26 does n4 have mobile network support, or only wifi? Nov 11 01:02:32 lol? Nov 11 01:02:35 it takes a microsim Nov 11 01:02:38 its not outstanding, but its vanilla with timely updates Nov 11 01:02:44 ah ok Nov 11 01:02:50 its pretty outstanding Nov 11 01:02:53 the screen is amazing Nov 11 01:02:59 battery life blows away my galaxy nexus Nov 11 01:03:09 well compared to a s3 Nov 11 01:03:23 hmm... microsim, you say Nov 11 01:03:29 yea, just cut it down Nov 11 01:03:40 im sure all the providers are goign to start having cutters in store Nov 11 01:03:44 big downside for me is no sd slot and shorter battery life than the s3 Nov 11 01:03:48 muhahah, I win, Anoia 1, HTC 0 Nov 11 01:03:53 shorter battery life than the s3? Nov 11 01:04:01 i find that unlikely Nov 11 01:04:06 just had a fight to get ADB drivers for an HTC Sensation XE Nov 11 01:04:12 the n4 lasts longer than any other smartphone ive ever owned Nov 11 01:04:44 meh… i hope so but from the reviews thats not true Nov 11 01:04:51 i'm on a motorolla droid 3, anything has to be better than that Nov 11 01:05:14 i have a xoom also (work provided) and that thing on standby is -incredible- though i don't have much to compare to Nov 11 01:05:27 well, in areas with poor cell service, the n4 seems to do very well Nov 11 01:05:36 speakingcode, most of the 10 inchers last forever on standby Nov 11 01:05:42 they shut down wifi, and basically turn off :p Nov 11 01:05:50 yeah Nov 11 01:06:03 i've put it in a drawer for weeks n be like holy shit this thing is still juicing Nov 11 01:06:13 My Galaxy Nexus lasts forever but that's because there's no SIM card in it :-) Nov 11 01:06:43 canadiancow is microsim literally a cut sim or were you being facetious there? Nov 11 01:06:50 err...neither? Nov 11 01:06:56 you CAN cut a normal sim down to the microsim size Nov 11 01:07:03 i did that with my tmo sim Nov 11 01:07:10 but you can also go buy a microsim Nov 11 01:07:16 jfpoole, my Galaxy Nexus has broken wifi, and it lasts forever too(( Nov 11 01:07:19 http://www.amazon.com/Micro-SIM-Cutter-Converter-adapters/dp/B003UEWF8I Nov 11 01:07:20 ah Nov 11 01:07:30 speakingcode: http://www.amazon.com/Micro-SIM-Cutter-Converter-adapters/dp/B003UEWF8I Nov 11 01:07:43 canadiancow: DAMMIT, MAN. Nov 11 01:07:51 ah wow Nov 11 01:10:31 speakingcode: SIM card is basically the golden-covered contact area, at least for last several years Nov 11 01:10:41 it's the standardized smart card interface Nov 11 01:10:50 https://github.com/Simran/adbNetScan Nov 11 01:11:04 but yea, compared to a stock galaxy nexus, the n4 feels so much faster, battery lasts so much longer, and feels so much better in your hand Nov 11 01:11:11 also it's $300-$350 Nov 11 01:11:14 hard to beat that Nov 11 01:11:32 n4 got more power than n7? Nov 11 01:11:36 shrug, i'll just look Nov 11 01:11:57 speakingcode: What do you mean by "power"? Nov 11 01:12:05 jiggawatts Nov 11 01:12:06 well, I hope to get n4... though I doubt it Nov 11 01:12:09 cpu/gpu mostly Nov 11 01:12:20 speakingcode: Check out these benchmarks: http://browser.primatelabs.com/android-benchmarks Nov 11 01:12:29 asknig causey ou said $3-350, whereas n7 was 199 Nov 11 01:12:34 I wonder when Google will learn to let you choose the country in play store if by some chance you aren't in the right country at the moment Nov 11 01:12:52 n7 has no cellular capabilities, no rear facing camera, a much lower density screen, etc etc Nov 11 01:12:53 n7 is 1485, n4 is 1982 (where higher is better). Nov 11 01:12:57 speakingcode: n4 = phone, n7 = tablet without cell etc. Nov 11 01:13:09 hey Nov 11 01:13:10 what do you think? Will the Nexus 4 be selling right from Midnight? what was is like with the nexus 7? Nov 11 01:13:13 and i wouldnt trust the n4 benchmarks yet. wait until the final release of 4.2 Nov 11 01:13:27 canadiancow: If anything they'll go higher. Nov 11 01:13:30 right time to skip here :D Nov 11 01:13:31 exactly Nov 11 01:14:23 have you already discussed about battery endurance? Nov 11 01:14:31 its awesome Nov 11 01:14:37 it lasts so much longer than my galaxy nexus Nov 11 01:14:48 n4 is $300 for 8GB? Huh. Nov 11 01:15:15 canadiancow, do you have already a n4? Nov 11 01:15:21 jfpoole, yep Nov 11 01:15:26 i may Nov 11 01:16:10 canadiancow, how long does it last? Nov 11 01:16:12 another thing about these benchmakrs is i have no idea what they are doing... i'm sure it's documented somewhere but i dunno, another type of benchmark may totally change the result Nov 11 01:16:44 DerDaniel, i plug my phones in too much to give you a hard number, but for periods where its not plugged in, it loses significantly less battery than my galaxy nexus Nov 11 01:16:45 speakingcode: It's a multi-core aware CPU benchmark. Nov 11 01:17:02 are they running disk IO, matrix transformations, polygon rendering, etc etc Nov 11 01:17:55 canadiancow, it might have a reason you already own that phone...so, do you know when the selling starts? ;) Nov 11 01:18:01 No IO or rendering; just cpu-intensive operations. Nov 11 01:18:04 speakingcode: polygon rendering, but most of the benchmarks are actually of the browser Nov 11 01:18:05 on the 13th? :P Nov 11 01:18:18 oh, that must be different benchmarks than i saw Nov 11 01:18:34 http://browser.primatelabs.com/android-benchmarks these zinx Nov 11 01:19:05 canadiancow, of course but what about the time? :) Nov 11 01:19:12 that seems skewed tho, as some of these devices boast a heavy gpu Nov 11 01:19:31 i dunno Nov 11 01:19:53 canadiancow you a googler? Nov 11 01:20:16 mhmm Nov 11 01:20:42 cool Nov 11 01:24:05 I don't see it in the samples, but if I am using a RemoteViewsService (that gets a RemoteViewsFactory) to handle updating an app widget, when the last instance of widgets is removed by the user should I send an intent to stop the RemoteViewsService? Nov 11 01:27:01 canadiancow, pm? Nov 11 01:32:01 Anyone know how to tell if an app widget instance is added to the home screen? Nov 11 01:32:57 nope, not me Nov 11 01:33:39 DerDaniel, ok? Nov 11 01:35:55 lasserix does it not do a broadcast? Nov 11 01:36:20 anyone know how to keep the media player playing in background if launched via an intent? Nov 11 01:37:19 Does anyone know a good OAuth client library for Android/Java? Nov 11 01:37:40 nope sorry frewsxcv94709 Nov 11 01:37:43 i dnt Nov 11 01:38:12 frewsxcv94709: any particular service you're trying to use? Nov 11 01:39:02 * jfpoole looks forward to the day when he can drop Android 2.x support. Nov 11 01:39:12 kbs: Salesforce.com Nov 11 01:39:36 Specifically their REST API, which requires OAuth Nov 11 01:40:37 frewsxcv94709: ah, ok. Reason I asked is that most OAuth client libs I've seen are quite insecure. Hard to write one that can be trusted by a generic user of an app. Nov 11 01:41:12 are they using OAuth 2.0? or 1.0a Nov 11 01:41:27 kbs: 2.0 Nov 11 01:41:43 Is there an intent I can run that will show recent downloads? Nov 11 01:42:11 Oauth 2.0 is fairly simple to just implement via regular HttpsURLConnections, you may be able to get by without needing to pull in another library Nov 11 01:42:16 speakingcode: it does but there is no single callback for when the widget is actually placed on the screen Nov 11 01:45:49 I also have to say that I don't know of a way to implement an OAuth client that can be trusted by your user; at least on android. But, if you check your SSL certifcate, and your user trusts your app, it'll probably be less worse than altertnatives Nov 11 01:48:45 * kbs has a hot button about the point of OAuth on Android Nov 11 01:52:12 Are all the api samples online somewhere? Nov 11 02:00:12 I assume so; probably developer.android.com Nov 11 02:29:36 I'd recommend being wary of OAuth 2.0... it got simplified and bloated up at the same time, leading to stuff that simply isn't secure unless you know your shit Nov 11 02:30:27 goos you here? did you see http://www.fastcompany.com/3002676/magical-tech-behind-paper-ipads-color-mixing-perfection Nov 11 02:41:33 Hey can anyone give me a hand change the textColor of ShareActionProvider menu item Nov 11 02:42:45 ruh-roh... 11-09 00:13:16.335: E/AndroidRuntime(792): java.lang.NoSuchMethodError: android.support.v4.app.FragmentActivity.invalidateOptionsMenu Nov 11 02:42:58 on android-8 emulator... hrm. Nov 11 02:43:05 how did you compile that o.O Nov 11 02:43:15 oh, I might have an old abs Nov 11 02:43:47 it's already compiled (using ABS as a jar) Nov 11 02:45:15 Ahh, yep this is 4.0.x Nov 11 02:45:46 lasserix: no didnt see … cool thanks Nov 11 02:47:20 avg kenyan wage is $1/day, but they will spend .84c / week to keep their phone credit good http://www.economist.com/news/middle-east-and-africa/21566022-report-describes-sacrifices-poor-make-keep-mobile-phone-vital Nov 11 02:47:41 read about m-pasa as a killer app a little while ago Nov 11 02:47:56 *,-pesa Nov 11 02:49:20 i wonder what kind of phones they are using Nov 11 02:49:35 no, hmm running against abs 4.1.0 Nov 11 02:49:43 use 4.2 Nov 11 02:49:52 i just updated my app to 4.2 :) Nov 11 02:49:58 along with a couple other changes Nov 11 02:50:22 so i created an event on g+ and FB and invited people Nov 11 02:50:25 set the time to 7:30 pm Nov 11 02:50:31 except FB set some stupid timezone and wont let me change it Nov 11 02:51:04 haha Nov 11 02:51:26 just like comments... I refuse to use facebook because I'm waaay too used to being able to edit things Nov 11 02:51:57 and they changed enter tosubmit a while back which really sucked Nov 11 02:53:28 wut is fb :P Nov 11 02:53:56 its the social network that all my friends use Nov 11 02:54:03 or rather, the majority of my friends who do not work at google Nov 11 02:54:08 fb is an incurable std, not flash. Nov 11 02:55:11 should i get a new UPS battery for $75 or a new ups (the newer version of my model) for 150 Nov 11 02:55:18 lol Nov 11 02:55:21 this bitch keeps beeping at me Nov 11 02:55:25 flash is more like the internal combustion engine Nov 11 02:57:49 So I thought the invalidateOptionsMenu issue was fixed with 4.1.0 Nov 11 02:58:14 i whie back i got an APC UPS … i think they ceded the consumer market to somebody else. the one i had was meant for servers, and the battery was wicked expensive Nov 11 02:58:24 oh. now I know what is. I've got an old version of the support library Nov 11 02:58:36 yea g00s this is APC Nov 11 02:58:54 canadiancow: you might be able to get a cheap battery from battery+ Nov 11 02:58:56 they fixed the "package private" dalvik "bug", and at the same time make invalidateOptionsMenu public so ABS could continue to use it. Nov 11 02:58:56 mrenouf: if you are using fragments with their own action bar menus make sure there are no bugs on older phones on passing the click events for menu actions Nov 11 02:59:11 lasserix: the internal combustion engine aka the great satan Nov 11 02:59:28 lasserix, uhh huh? **** ENDING LOGGING AT Sun Nov 11 02:59:57 2012