**** BEGIN LOGGING AT Sat Aug 04 02:59:58 2012 Aug 04 03:00:02 there we go, they showed up Aug 04 03:00:09 to the command line! Aug 04 03:00:30 sicp\.android? Aug 04 03:00:41 sicp\AppData Aug 04 03:01:07 the command is running Aug 04 03:01:10 Ah. Aug 04 03:02:51 Oh I am thinking of the Google Maps API through the keystore.... that sucked too Aug 04 03:03:42 Muramasa, do your code make checks against api versions? Aug 04 03:06:34 no Aug 04 03:06:46 unless my engine does Aug 04 03:07:41 thanks haskeller Aug 04 03:07:47 it's downloading the missing shit through the commandline Aug 04 03:07:48 Don't you love it when your working with someone then halfway through the project you realize its 80-20 Aug 04 03:07:58 np Aug 04 03:08:02 lol Galaktik Aug 04 03:08:04 isn't that always the case? Aug 04 03:08:15 I was the 20 in the last project I did Aug 04 03:08:38 I was hoping it would be different this time..... I know the other guy pretty well. I think it made it worse Aug 04 03:08:47 yeah working with friends is tough Aug 04 03:08:53 you shouldn't be thinking of such things though Aug 04 03:09:06 tasks are interchanged and the whole effort should be unified Aug 04 03:09:15 amongst other encouraging punchlines Aug 04 03:09:19 lol Aug 04 03:09:28 So your in management eh? Aug 04 03:09:30 lol Aug 04 03:09:33 lol no Aug 04 03:10:00 I am not mad about it really. I am happy to code Aug 04 03:10:19 What are activities without UI's called? Aug 04 03:10:21 the last project I did with someone is this, https://freecode.com/projects/cura but my 20 came in really really critical points Aug 04 03:10:42 the project is almost solely directed towards Linux machines and there's a lot of bash in there Aug 04 03:10:55 so aside from Android dev, I supplied a lot of the core code Aug 04 03:11:41 any ideas haskeller? im really running out of ideas Aug 04 03:11:43 spent like 6 hours ont his now Aug 04 03:11:59 activities without UI's KillerBlooder? Aug 04 03:12:16 they can be Adapters Aug 04 03:12:31 well it'll then be a ListAdapter actually or something to that effect and not an activity Aug 04 03:27:36 umm, haskeller..? Aug 04 03:27:45 does that command grab everything in the fucking universe? Aug 04 03:29:10 if I cancel it now, I end up with whatever's been downloaded/installed so far? Aug 04 03:29:17 because I've got what I need from it Aug 04 03:43:36 Sicp sorry I was away. Yes it will keep what it has finished Aug 04 03:45:13 i wonder why HTC is doing so poorly now Aug 04 03:45:33 "Looking forward, the smartphone firm expects to post sequential decreases in both sales and gross margin for the third quarter." Aug 04 03:45:49 the One X was supposedly a very nice phone Aug 04 03:46:10 I have a horrible secret Aug 04 03:46:34 I don't even have an Android..... Aug 04 03:47:14 haha Galaktik Aug 04 03:47:26 I ghosted, renicked, identified and joined back to laugh Aug 04 03:47:27 lol Aug 04 03:47:38 lol Aug 04 03:47:54 I use the AVD a lot though Aug 04 03:48:00 lol Aug 04 03:49:57 yea sure Aug 04 03:50:01 it happens Aug 04 04:03:53 hello people Aug 04 04:04:23 i need some help with understanding java scoping, im new to java and android, but not new to developent Aug 04 04:04:24 http://pastie.org/private/zcrga8v8vl4wtumgyqrra Aug 04 04:04:44 if i put a breakpoint at line 8, i can see that the string var line holds my data Aug 04 04:04:57 however, right on the next breakpoing on line 10, line is null Aug 04 04:05:04 im clearly missing something here about scoping in java and such Aug 04 04:05:14 so any help is appreciated, thanks~! Aug 04 04:08:28 DiegoMax|MBP: the whil loop keeps running until line is null, and so when you log it, it will be null Aug 04 04:08:32 *while Aug 04 04:09:44 DiegoMax|MBP: its not a scope issue, its just the way that code's logic works Aug 04 04:10:20 yah Aug 04 04:10:28 i just figured that i should use total.toString() Aug 04 04:13:29 so after some docs reading, i just rewrote my method like this Aug 04 04:13:30 http://pastie.org/4387687 Aug 04 04:13:37 it works, just wondering if this is the right approach though ? Aug 04 04:13:47 i figured that i dont even need the string at all Aug 04 04:16:48 i'm swapping in a fragment that contains an editText, the editText appears to have focus but the keyboard doesn't show, even when i click on the edittext field, does anybody know what might cause such a problem? Aug 04 04:27:07 my god, Windows is so easy, haha Aug 04 04:33:48 is there a way to concatenate a string in a xml file? something like this: android:text="@string/var" + "text" ?? Aug 04 04:53:26 hello all Aug 04 04:54:33 Hello QubeZ Aug 04 04:54:54 sup Galaktik Aug 04 04:55:12 Not much just coding Aug 04 04:55:20 You? Aug 04 04:55:24 same here Aug 04 04:55:34 google updated their maps api and now i need to update my code Aug 04 04:56:29 trying to research how to add List into a list itself Aug 04 04:56:43 Ah I am just a noob struggling through my first app. Getting there though Aug 04 04:56:51 cool, g'luck Aug 04 04:56:54 android is fun to code Aug 04 04:57:20 Yeah I'm liking it. Aug 04 04:57:38 Nice to have a room to chat with others about it too! Aug 04 04:57:47 definitely Aug 04 05:21:54 is there a way to concatenate a string in a xml file? something like this: android:text="@string/var" + "text" ?? Aug 04 05:51:32 you can use the %s placeholders then decide at runtime what values those should have Aug 04 05:51:38 look at the docs Aug 04 05:57:14 QubeZ dodo left before he got your message. If I see him ill pass it along Aug 04 05:58:00 ahh ok, i have joins/leave messages hidden Aug 04 05:58:02 thanks Aug 04 06:15:10 Which is faster? One view updated each frame with up to 180 identical small bitmaps or 180 views of 1 bitmap each with only a handful updated each frame? Also, would the drawing cache help in the former? Aug 04 06:19:39 themirror: 1 custom view, 1 bitmap drawn 180 times, with drawing cache Aug 04 06:20:44 Okay I will do that thanks Aug 04 06:40:28 i'm scratching my head why … i have 24 installs over about 5 mos (not a success by any measure) but only 1 review Aug 04 06:40:52 i would think more people would have reviewed, whether + or - Aug 04 06:45:03 i don't even know HOW to review Aug 04 06:45:35 g00s: it is strange... maybe you should look at setting up some type of triggering mechanism to nudge the user to review Aug 04 06:45:51 QubeZ: hmm Aug 04 06:45:57 in To Do Mapr, i have a 3 day + 3 successful task addition as my trigger and got around 21 reviews in last 4 months Aug 04 06:46:06 800 installs Aug 04 06:46:13 cool :) Aug 04 06:46:33 so not a lot of reviews but some... also got blogged about but that was a bust... no comments on the thread or anything hehe Aug 04 06:49:03 g00s: I found some AppRater code that I just added to my app, its pretty simple class Aug 04 06:49:39 QubeZ: something like this ? http://www.androidsnippets.com/prompt-engaged-users-to-rate-your-app-in-the-android-market-appirater Aug 04 06:50:06 g00s: yes Aug 04 06:50:16 well not something like this, but this exactly Aug 04 06:50:31 i should probably put a feedback activity or something too; maybe i dont want to see what they will review it as :| Aug 04 06:51:09 if the app is good then you should not be afraid of reviews Aug 04 06:51:18 and use the bad ones as learning opportunities to make the app better Aug 04 06:51:25 good is in the eye of the beholder :) Aug 04 06:51:36 it needs some sort of ICS makeover Aug 04 06:51:46 ignore the stupid reviews -- like today I got a 1-star rating saying "Sux: I cant find any addresses on Spring LG"... uhhh.. please contact me Aug 04 06:51:55 for some reason, 30% of my users are ICS users, 50% GB Aug 04 06:52:05 but no, they care more to vent and be angry than to read out to the developer to figure out what is wrong Aug 04 06:52:16 reach* Aug 04 06:57:06 I hate apps who ask me to rate them Aug 04 06:57:22 uh oh Aug 04 06:57:35 thats a personal opinion Aug 04 06:57:43 i dont think most people mind Aug 04 06:57:46 which is why I said "I" :) Aug 04 06:57:53 but to me it's distracting Aug 04 06:57:56 romainguy_: for some strange reason i have hardly any reviews wrt to # downloads; what could that mean ? Aug 04 06:57:57 it interrupts the experience Aug 04 06:58:04 as long as you give the user the option to "Never Remind Me Again"... i think its all good Aug 04 06:58:10 g00s: that your apps is like most apps? Aug 04 06:58:17 oh Aug 04 06:58:19 QubeZ: still annoying to me :) Aug 04 06:58:29 romainguy_: i can respect that Aug 04 06:59:24 it's like when you go to a store and the cashier asks you to go rate your experience on a website Aug 04 07:00:03 i know its annoying but it is important to help continued support -- company/developer has to know what they are doing right or wrong. Aug 04 07:00:12 ratings/surveys are the only way to get that feedback Aug 04 07:00:18 romainguy_: so, lately i have been having to use my old powershot g9; its been very recent that canon DPP has supported it. but when i export jpgs; they are messed up (tonality is wrong, no sharpening). i asked canon support; they said i should not drag and drop my files from sdcard to computer, but use their image xfer software - i mean, seriously, w t f Aug 04 07:00:51 g00s: eh, support :) Aug 04 07:01:19 they also said i should reinstall the software that came with the camera (CD) at the same time, they said i should use the newest DPP (which i was) Aug 04 07:01:58 canon has retarded software thing going on; you can only get updates from their website, not full versions. they want you to use the cd from the camera; or you have to order another one Aug 04 07:02:25 its 2012, what are they thinking :( Aug 04 07:02:34 they're not a software company Aug 04 07:02:35 man, after my razr was updated to ICS -- I get 12 horus of battery life (on idle) Aug 04 07:02:52 it sits there all day then dies... nothing but default apps on there. Need to figure out wtf is killing the battery Aug 04 07:03:39 romainguy__: do you every worry, that someday LR of PS or whatever will not support a camera you have? its not like i process pictures right away; sometimes i go back to see what i have captured years ago Aug 04 07:03:41 perhapsthe battery calibration file? Aug 04 07:04:01 g00s: I convert all my RAWs to DNG on import Aug 04 07:04:09 ahh Aug 04 07:04:15 Ravenheart: ? Aug 04 07:04:21 fucking OS X and its shitty USB stack Aug 04 07:04:23 piece of crap Aug 04 07:04:44 i heard the new version was causing some issues on not-newest hw Aug 04 07:04:57 cpu gets hot, fans run a lot Aug 04 07:04:59 QubeZ when you update the firmware theres a battery calibration file that gets wiped Aug 04 07:05:12 Ravenheart: so what do I need to do? Aug 04 07:05:12 g00s: yeah which is why I don't install new versions of OS X until the .2 or .3 Aug 04 07:05:18 yeah, me too Aug 04 07:05:27 well nothing it just takes some time til it builds up calibration data again Aug 04 07:05:41 Leopard and Snow Leopard were pretty awful on my MacPro until .4 or .5 Aug 04 07:08:47 the US is just killing it in the olympics Aug 04 07:14:36 i got a design question, say i have a listview and want to place some buttons on the bottom of the screen Aug 04 07:14:45 what should i search for to do this most efficiently Aug 04 07:15:14 the buttons have to be always visible Aug 04 07:15:37 or do i just size the listview to make room for hte buttons Aug 04 07:15:49 you should be able to put buttons below the listview in a relativelayout Aug 04 07:17:14 perhaps make two linear layouts Aug 04 07:18:34 just have a relativelayout with a listivew then putt your buttons inside a linearlayout and set the linearlayout's attribute to be below the listview Aug 04 07:18:53 right okay thanks Aug 04 07:21:04 romainguy_: do you use the DNGs just for backup, or do you operate on them ? Aug 04 07:21:23 I operate on them Aug 04 07:21:28 ok Aug 04 07:34:25 hey QubeZ can you recommend some cool looking GUI elements that should be used to "spicy up" your app Aug 04 07:34:39 i want to add some eye candy bassicaly Aug 04 07:35:02 not really, i mean JakeWharton stuff is good for functinality but im not really sure about spicying up the app Aug 04 07:35:09 just get a good designer on board :) Aug 04 07:35:36 this is a one man project Aug 04 07:42:42 needs moar man Aug 04 07:45:19 the architecture for this system is kind of weird Aug 04 07:45:58 am i understanding this correcty? as in, i have created a service for my app that runs in the background, and every time i change the screen (activity) i have to re-bind again to the service.... right ? Aug 04 07:46:21 what? why? Aug 04 07:46:36 when i start a new activity Aug 04 07:46:44 shouldnt i bind that activiy to the service Aug 04 07:46:48 if i plan to interact with it ? Aug 04 07:47:20 sorry im an iOS developer and i new to android, just trying to understand some basic concepts Aug 04 07:56:31 Cool someone named Romain Guy commented on the tutorial I'm reading Aug 04 07:56:37 I am guessing not coincidence Aug 04 07:58:13 there's only one Romain Guy (as the song goes) Aug 04 07:59:02 the Curiosity's landing sequence is fucking crazy complicated ! Aug 04 07:59:26 too much shit to go wrong - they didn't land the viking that way wtf Aug 04 07:59:47 I think someone on the planning team lost a bet Aug 04 08:00:17 Where do I look at that?! Aug 04 08:01:30 Galaktik: bing for "seven minutes of terror" Aug 04 08:02:14 Cool thanks Aug 04 08:02:31 (hah, 'bing') Aug 04 08:04:04 lol Aug 04 08:18:53 Galaktik: you can't trust anyone named Romain Guy Aug 04 08:19:04 if they're name is not suffixed with an underscore then they're not legit Aug 04 08:19:08 their* Aug 04 08:19:26 JakeWharton_: really? Aug 04 08:19:35 curses! Aug 04 08:19:39 agreed Aug 04 08:29:47 romainguy_: tat sharpening technique you saw last week that looked too painterly … looking at real life photos and it actually looks pretty good Aug 04 08:30:10 I guess it depends by how much you scale up Aug 04 08:31:23 when you scale up you have to make up data Aug 04 08:31:29 so no matter what, it will look weird or bad Aug 04 08:31:37 http://www.gizmag.com/super-resolution-weizmann-institute/23486/pictures#7 Aug 04 08:31:57 still looks weird to me Aug 04 08:32:12 it reminds me of the filters used in emulators to upscale old games Aug 04 08:32:33 also reminds me of the algorithms used to turns bitmaps into vectors Aug 04 08:32:42 also looks a bit like JPEG2000 compression Aug 04 08:32:43 Ah ok. It wasn't anything bad anyway just someone who improved a tutorial 2 1/2 years ago Aug 04 08:34:22 stupid Flickr #!$# Aug 04 10:25:20 Hi - I realise this is a rather general question and not specific to Android development but when it comes to games what should be responsible for handling enemy spawning and movement? Aug 04 10:35:42 hi Aug 04 10:35:47 android noob here Aug 04 10:35:59 is there anything shorter than txtLogin.getText().length() to test if a textfield is empty ? Aug 04 10:36:33 DiegoMax|MBP: usually best to use TextUtils.isEmpty(txtLogin.getText()) Aug 04 10:37:13 thanks Aug 04 10:37:24 * DiegoMax|MBP goes to read api for textutils Aug 04 10:37:41 its … very simple Aug 04 10:38:43 yah Aug 04 10:38:44 just figured Aug 04 10:39:01 also i have some conceptual questions Aug 04 10:39:08 im coming from iOS so some things are kind of different Aug 04 10:39:09 txtLogin.getText().length() == 0 is more portable Aug 04 10:39:27 i have a service that i wrote a few hours ago, which takes care of my REST Api transactions Aug 04 10:39:29 except when getText is null Aug 04 10:39:32 :) Aug 04 10:39:42 except it probably can't be null Aug 04 10:39:50 and i am using this ResultReceiver approach Aug 04 10:39:55 to communicate back with the activity Aug 04 10:40:02 is this the right way to do callbacks ? Aug 04 10:42:24 anybody ? Aug 04 10:42:25 :D Aug 04 11:02:59 * man_in_shack waves Aug 04 11:03:05 is there an api for google goggles? Aug 04 11:17:19 <[maTa]> i have appwidgetprovider and onReceive everything goes fine but how to use viewflipper with remoteviews? how to use showNext() and showprev()? Aug 04 11:38:09 TIL you can fake keyboard events with adb Aug 04 11:46:42 ok, so by following tutorials ive worked out how you can display a list of items in a ListView, and update it programmatically, which is cool... however im looking to display a kind of stats page, with key value pairs where the values are going to come from the database... is my best bet to use the ListView, but instead of giving it an array of strings, give it a hash that i populate in my activity? and then a custom view for each list Aug 04 11:51:03 oh yeah java doesnt have a basic hash class... Aug 04 11:52:33 Hashtables aren't lists Aug 04 11:52:46 and are not ordered (by default) Aug 04 12:02:53 i just want a simple key/value store o.O Aug 04 12:03:58 don't use Hashtable if you don't need concurrent update, prefer HashMap Aug 04 12:04:20 if you want to keep insertion order, use a LinkedHashMap Aug 04 12:04:56 (in general, do not use Hashtable, prefer a ConcurrentMap, better perf with per-region lock) Aug 04 12:36:40 Hey JakeWharton you there ? Aug 04 12:38:33 I'm facing an issue with Actionbarsherlock Aug 04 12:38:50 when I rotate my Galaxy tab 3.2 it crashes with stack trace http://pastebin.com/njWmNrvv Aug 04 12:45:57 previously I used to check if the layout was xlarge to know not to start an activity on tablets Aug 04 12:46:08 but with the nexus 7 being a large screen.. how do I check now? Aug 04 12:50:55 ernie`: we can't rely on large/xlarge for determining tablet/phone layouts Aug 04 12:51:08 yes.. so how do I do it now? Aug 04 12:51:09 anymore Aug 04 12:51:17 sw600dp for resources Aug 04 12:51:53 but.. in my "second" activity I run finish() if its xlarge,, because the first activity starts it in multi pane Aug 04 12:52:07 so now.. I need to check for smallest width dp in code also? Aug 04 12:52:47 oh Aug 04 12:52:51 just found a snippet here http://android-developers.blogspot.no/2011/07/new-tools-for-managing-screen-sizes.html Aug 04 12:52:55 I might give a try Aug 04 12:59:21 why OH WHY must this styling system be so fucking retarded Aug 04 12:59:37 why make it easy when you can make it incredibly hard Aug 04 12:59:50 and why should you document it Aug 04 13:00:25 its hard because it has to work for device A-Z Aug 04 13:00:39 my impression coming from iOS side Aug 04 13:00:51 but I m liking it hehe Aug 04 13:00:55 got a Nexus7, its sleek Aug 04 13:00:56 yes but i'm only targeting device A Aug 04 13:01:00 so now I'm cod in sum android Aug 04 13:01:06 I definitely prefer it compared to iOS method.. Aug 04 13:01:07 I hear you Aug 04 13:01:24 p_l.. two different beasts Aug 04 13:01:32 thing is, device evolution is FAST now Aug 04 13:01:33 and i just tried 1:1 to apply a background color from an official android example Aug 04 13:01:35 does not work Aug 04 13:01:40 so things will only get better …. i hope hah! Aug 04 13:06:41 there we go Aug 04 13:06:44 APPLY IT MANUALLY! Aug 04 13:07:01 i might as well delete the whole theme Aug 04 13:14:18 how can I use smallestScreenWidthDp without the api warning? Aug 04 13:30:36 sdk check, dp check and fallback xlarge screen check did the trick Aug 04 14:01:06 ok i think ive finally got some code that works to display a simple summary screen of key/value pairs - would anyone mind telling me how many better ways there are to do it? :p https://gist.github.com/2938e8e8ece8f7acfe23 Aug 04 14:29:06 i want to play single notes stored in .mid files when someone clicks on buttons, is it a good idea to use MediaPlayer class Aug 04 14:30:33 i also dont know if i can play chords (whether 2 MediaPlayers can play 2 different .mid files at the same instant) Aug 04 14:36:36 let me repeat one last time i want to play single notes stored in .mid files when someone clicks on buttons, is it a good idea to use MediaPlayer class. also dont know if i can play chords (whether 2 MediaPlayers can play 2 different .mid files at the same instant) Aug 04 14:37:37 all are afk here? Aug 04 14:43:26 hello guys i can ask a app development question here is it right place? Aug 04 14:48:12 How can I move a bitmap along a path? Aug 04 15:18:22 Leeds likes playing with gineau pigs Aug 04 15:18:32 just saw it on his fb :) Aug 04 15:22:51 is there a way to set a maximum value for bluetooth in-call volume? Aug 04 15:25:23 Hey, I am trying to build https://github.com/ardemiranda/rtmpdump-android this app, but I get error: "Couldn't load rtmp: findLibrary returned null". any suggestions? Aug 04 15:26:37 it has an issue tracker, maybe create an issue? Aug 04 15:27:45 i created my first android app using html interface Aug 04 15:28:23 but its slow i want to create cool sharp interface like populer app using like imo.im opera dolphin Aug 04 15:28:33 how there ui has been made? Aug 04 15:32:38 well, I'll be damned. Aug 04 15:32:47 DAMNED!!!! Aug 04 15:32:49 anyidea? Aug 04 15:32:51 I made a makefile with one rule. all: ant debug installd Aug 04 15:33:00 ran ":make" in vim Aug 04 15:33:04 there was a problem with the build. Aug 04 15:33:13 To my surprise, vim opened up the offending line in build.xml! Aug 04 15:33:16 what do i use to make interface UI like mini opera,dolphine Aug 04 15:33:29 Ayush: making UI is best done by hand in XML Aug 04 15:33:39 IDEA has a good preview tool. Aug 04 15:33:43 yes i will do in hand xml Aug 04 15:33:57 yestaday i made one app using webview in html Aug 04 15:34:02 but webview is slow Aug 04 15:34:13 indeed Aug 04 15:34:23 of course it's slow, if you want fast you need a native application Aug 04 15:34:27 but if i use xml Aug 04 15:34:30 I've been asked to 'fix' phonegap apps before only to install them and find they don't even run because they are so slow Aug 04 15:34:36 its will use android inbuild form element Aug 04 15:34:39 because the devs used like 20 javascript libs Aug 04 15:34:47 to emulate all the stuff that android has natively. Aug 04 15:34:48 eclipse can make guis semi well Aug 04 15:34:52 i want to make pretty UI as i want like mini opera has Aug 04 15:35:06 you can use themes/styles Aug 04 15:35:10 opera is a browser, it has a minimal UI Aug 04 15:35:16 that's not a great example Aug 04 15:35:38 its all about the artwork too Aug 04 15:35:40 opera has a faux-actionbar Aug 04 15:35:40 but i like mini opera ui in android its too awesome Aug 04 15:35:43 well 50% atleast Aug 04 15:35:43 these days Aug 04 15:35:47 all apps have real actionbars Aug 04 15:35:55 i'd make sure not to use a faux one. Aug 04 15:36:05 i want to make such ui does that ui using SVG ? or somthing canves stuff? Aug 04 15:36:08 im quite happy with the gui in my last app https://plus.google.com/b/103315752860304527175/photos/103315752860304527175/albums/5771718569164801233 Aug 04 15:36:25 Ayush: SVG would be slow as molasses Aug 04 15:36:35 best is to export several 9-patch png files Aug 04 15:36:39 oh then how wud i make Aug 04 15:36:45 and use StateListDrawable to have stateful pngs Aug 04 15:36:55 or, drawables, really. Aug 04 15:37:09 just use xml and pngs Aug 04 15:37:14 there is an android-svg lib, but it's slow and doesn't support like any of the SVG spec. Aug 04 15:37:17 works well once u get into it Aug 04 15:37:19 Oh pngs Aug 04 15:37:38 my app above is all png/xml Aug 04 15:37:44 Ayush: do you even know java or how to program? Aug 04 15:37:50 yes Aug 04 15:37:52 i am learning it Aug 04 15:37:54 This is the code I used to get the file-path to the image chosen by the user against Intent.ACTION_PICK : https://gist.github.com/3258399 It works perfectly for camera roll, but not for other galleries on my phone! Can someone help me out please? Aug 04 15:38:12 well that's good Aug 04 15:38:32 gaz`: 404 Aug 04 15:38:48 oops Aug 04 15:38:51 damn google images Aug 04 15:38:59 google plus albums i mean Aug 04 15:39:12 what do you think opera mini using? is it using drawable as u saying? Aug 04 15:39:15 https://plus.google.com/photos/103315752860304527175/albums/5771718569164801233 Aug 04 15:40:01 Ayush: plz write some apps Aug 04 15:40:04 thx Aug 04 15:40:11 you'll see once you start Aug 04 15:40:17 I promise Aug 04 15:40:37 and https://plus.google.com/photos/103315752860304527175/albums/5771722389606901969 Aug 04 15:40:38 :) Aug 04 15:40:57 now i feel im not bad at android gui stuff Aug 04 15:41:05 altho i sucked only 6 months ago Aug 04 15:41:48 gaz`: looks good Aug 04 15:42:03 was that for a client/did you work with a designer or design it yourself Aug 04 15:42:25 i was supplied all the graphic from the iphone4 version Aug 04 15:42:38 which fit reasonably well, some tweaking to be done of course Aug 04 15:44:07 watching a vid of intellijs gui builder Aug 04 15:44:16 theres so much that could be done to make android easier and quicker to developer Aug 04 15:44:37 unfortunately, the gui preview in idea is one of the only things I like about it. Aug 04 15:44:51 I wish I had infinite time, I'd rip the code out and integrate it into eclipse. Aug 04 15:45:01 like in netbeans with j2me u can virtually draw your code in diagrams then itll generate for you, im sick of making new activities and sticking them in the manifest etc, and then linking them, button a goes here etc, this should all be possible with a drag and drop gui based tool Aug 04 15:45:08 this is app which i created http://webgarb.com/my-words/my-first-android-app/ using webview Aug 04 15:45:33 gaz`: I quite like them, the gf isn't so sure, so we're holding off for now Aug 04 15:45:38 hehe Aug 04 15:46:01 nice Ayush Aug 04 15:46:03 Yeah adding stuff to the manifest should be automatic. Aug 04 15:46:07 I forget whether IDEA does that or not. Aug 04 15:46:13 is it nice ? thank hehe Aug 04 15:46:14 I wasn't paying close enough attention Aug 04 15:46:20 i may make some sort of plugin for eclipse thats does all the things i need Aug 04 15:46:28 then again i may just think about it and never do it Aug 04 15:46:42 http://blogs.jetbrains.com/idea/2012/06/android-ui-designer-coming-in-intellij-idea-12/ Aug 04 15:46:42 There's this one plugin I saw, called lazy android Aug 04 15:46:47 either for idea or eclipse Aug 04 15:46:57 that I believe generates boilerplate code for getting all your views in code Aug 04 15:47:07 ah yeh i use one thing like that Aug 04 15:47:12 but I'd like to modify it, or write my own code generator thta generats fragments instead. Aug 04 15:47:21 u can right click and it copies all the declaratiosn and findviewbyids into cliupboard Aug 04 15:47:25 that saves me a ton of time Aug 04 15:47:31 does android svg will be faster then html ? Aug 04 15:47:34 no Aug 04 15:47:37 it will be slower Aug 04 15:47:43 ohhh Aug 04 15:47:53 android-svg is just an experimental library and it doesn't even implement complete svg spec. Aug 04 15:48:14 idea gui maker loosk ok but then the eclipse one is also "ok".. i will have to try it to see if its better Aug 04 15:48:24 the best way to make UI is natively, with XML layouts and Views. Aug 04 15:48:49 the eclipse one seems buggy to me. Aug 04 15:49:08 and sadly I'm not interested in helping to improve it :| Aug 04 15:49:10 so fast will be only Drawable Resources  Aug 04 15:49:12 This is the code I used to get the file-path to the image chosen by the user against Intent.ACTION_PICK : https://gist.github.com/3258399 It works perfectly for camera roll, but not for other galleries on my phone! Can someone help me out please? Aug 04 15:49:25 If I was going to do something like that I'd just write my own layout preview plugin like IDEA has. Aug 04 15:50:30 it is buggy but if u get to learn all the bugs its still perfectly capable of helping you make good guis Aug 04 15:50:36 its xml is fine etc Aug 04 15:50:50 yeah, I know the bugs. Aug 04 15:50:51 but if someone spent 3 months working on it, i reckon it would be awesome Aug 04 15:51:04 after a while it drags on you to have to do rituals to make software work though. Aug 04 15:51:15 hehe Aug 04 15:51:44 it doesn't render!? Oh, just switch to landscape then back to portrait again. Aug 04 15:52:07 godyeh ive wasted whole days just getting the gui editor to work Aug 04 15:52:10 in mobile WebView not rendering html pixel perfect like in PC is it normal ? Aug 04 15:52:13 reboots and all Aug 04 15:52:24 Ayush - u can set the scale Aug 04 15:52:26 I found a method that sends Activity context to another method. The method is in the onCreate and is refered to as "this". How else can I refer to this Activity context? Is it something like NameofActivity.context? Note that I'm not referring to getApplicationContext, but rather the Activity. Aug 04 15:52:34 scale to which value ? Aug 04 15:52:51 i guess 0 is fully out Aug 04 15:52:55 but itwont go that far Aug 04 15:52:58 u need to use overviewmode Aug 04 15:53:03 or wideviewport Aug 04 15:53:26 hip2p: if you are calling code from an activity instance method, then 'this' IS A context Aug 04 15:53:42 because Activity IS A Context and this IS AN Activity instance. Aug 04 15:53:59 you saying about this setUseWideViewPort(true) ? Aug 04 15:54:23 yews Aug 04 15:54:30 lets me try :P Aug 04 15:54:33 fn0rd I know that, the problem is that I'm moving the method into a postOnExecute, so "this" no longer works Aug 04 15:54:48 so I need to refer to activity class some other way Aug 04 15:54:50 Activity myActivity; Aug 04 15:54:55 myActivity=this; Aug 04 15:54:57 err activity context* Aug 04 15:54:58 make a method called attach() Aug 04 15:55:11 gaz` good point Aug 04 15:55:13 DO NOT call MyActivity.this from inside the AsyncTask Aug 04 15:55:29 fn0rd I can just do what gaz` suggested, right? Aug 04 15:55:36 make sure you copy a reference each time you use it so you don't keep stale references after a screen rotation Aug 04 15:55:41 yeah, but I'd use a setter Aug 04 15:55:45 ok Aug 04 15:55:59 how would u copy a reference Aug 04 15:56:03 a = b Aug 04 15:56:09 fn0rd do you know of a tutorial or site I can look at that talks about setters? I'm not sure what that means Aug 04 15:56:13 ah Aug 04 15:56:14 any time you perform assignments on objects you are copying refs Aug 04 15:56:35 ah so u mean dont keep doing =this Aug 04 15:56:42 get the one you already have Aug 04 15:56:57 im still trying to work out appps i make sort of leak memory Aug 04 15:56:57 hip2p: any basic java book, or official sun tutorials probably cover the concept Aug 04 15:57:04 ok Aug 04 15:57:08 by default webview zoom out the html ? Aug 04 15:57:09 theres no need to use setters for this Aug 04 15:57:18 as screensize Aug 04 15:57:36 i think its 0 by default Aug 04 15:57:43 i cant work out why webviews work the way they do half the time Aug 04 15:57:49 gaz`: first of all, when you make a setter you now have a way of pointing to the intended behavior of the object and documenting its purpose. Aug 04 15:57:53 they seem much better on ios Aug 04 15:58:07 good call Aug 04 15:58:08 so what to do for 100% view? Aug 04 15:58:08 Second, you have a way of formally specifying what is and is not valid input to this object. Aug 04 15:58:09 in webview Aug 04 15:58:10 literally Aug 04 15:58:21 Ayush prob wideview port but when u pan around it will zoom out i think Aug 04 15:58:40 fn0rd yep youre right Aug 04 15:58:44 ill consider that Aug 04 15:58:47 so yeah while you don't need it Aug 04 15:58:53 yah m checkin it. Aug 04 15:58:56 I worked on a project recen where the lead dev was like "no setters" Aug 04 15:59:03 I'm not working on it anymore. Aug 04 15:59:07 i kind of got out of using them mostly because of j2me, every byte counts, and of cours elazyness, and until now no good explanbation for them Aug 04 15:59:23 lol Aug 04 15:59:35 Tons of code in the project looked like this line after line: a.b = x; a.c = y; a.d = z; and it would be FINE if that was required for performance, but it wasn't. Aug 04 15:59:41 thats funny, but i know what u mean ive had ppl with ridiculous requests Aug 04 15:59:48 all it did was serve to make the code harder to work on. Aug 04 15:59:54 I explained: you can't validate input without a setter. Aug 04 16:00:05 He's like "oh well you can in python" me: "i know, but this isn't python!!!!" Aug 04 16:00:11 hehe Aug 04 16:00:27 well if it wa shis code hes unliklely to change it to hlep you Aug 04 16:00:36 but if you both agree that its the way from the start then yeh Aug 04 16:00:43 it contained abbreviations for almost every variable name. Aug 04 16:00:46 and no docs. Aug 04 16:00:50 I shouldn't have worked on it at all Aug 04 16:01:03 never really goti nto python but ppl love it Aug 04 16:01:11 sorry i cant type today Aug 04 16:01:15 this is ridiculous Aug 04 16:01:22 python is a duct tape language Aug 04 16:01:38 it's not pure but it can get the job done Aug 04 16:01:53 everyone can basically understand how to use it Aug 04 16:01:56 what does "pure" mean in your case? Aug 04 16:01:56 yeh Aug 04 16:01:59 whatever works Aug 04 16:02:06 im very into java tho Aug 04 16:02:09 love it Aug 04 16:02:16 flam_: well pythons OOP model isn't pure, it's kind of patchwork Aug 04 16:02:26 a langauge like ruby is more consistent in its OO model Aug 04 16:02:32 but I use python anyway Aug 04 16:02:41 setUseWideViewPort(true); incressed the width of the document Aug 04 16:02:52 try overview mode Aug 04 16:03:01 Okay Aug 04 16:07:25 say i have a menu xml, most activities will have some equal items Aug 04 16:07:44 can i use the same resource id for the item in all my menu files Aug 04 16:07:51 or do i have to give em all a unique name Aug 04 16:08:13 and really, say i have a button/item that all my menus share Aug 04 16:08:17 how do i best do it Aug 04 16:09:03 .setLoadWithOverviewMode(true); zoomout the Viewwideport Aug 04 16:09:18 so full wide page become small and fit to screen Aug 04 16:09:26 i think default is fine hehe Aug 04 16:09:28 yeh Aug 04 16:09:34 bit annoying how the zoom works isnt it Aug 04 16:09:42 should be able to zoom right out with a pinch Aug 04 16:09:44 android rendering quality is low in compare to pc Aug 04 16:09:50 yes and iphone Aug 04 16:09:54 ive had bug reports about that Aug 04 16:10:13 i think quality rendering need processer Aug 04 16:10:30 high processer* like pc Aug 04 16:10:54 yeh prob Aug 04 16:11:05 cm9 has dithering Aug 04 16:11:17 and i noticed that shadow not working in webview so i think they did performance fix Aug 04 16:12:38 how to copy line in Eclipse .. my old ide work like ctrl + d Aug 04 16:12:43 hargh Aug 04 16:12:49 can't seem to get adb to see my n7 Aug 04 16:59:52 am i getting this worng, is there no way to design a fragment layout Aug 04 17:00:07 i don't want to do it all in code Aug 04 17:01:45 Ravenheart: you can do it in xml, just inflate in the oncreateview of the fragment Aug 04 17:02:31 htc flyer sucks Aug 04 17:02:34 crashes taking pics Aug 04 17:07:39 is it possible at all to remove the emergency call button from the lockscreen or after the lockscreen Aug 04 17:07:53 hehe i doubt it Aug 04 17:07:58 what u trying to do kill ppl :) Aug 04 17:08:34 no when people get my phone they lock it up then dial 911 Aug 04 17:08:49 lol Aug 04 17:08:53 might be the skin.theme Aug 04 17:08:56 skin/theme Aug 04 17:08:59 a new rom would do it Aug 04 17:09:21 so it's governed by the rom itself Aug 04 17:09:24 it's nothing ican edit Aug 04 17:09:31 im not sure really Aug 04 17:12:38 hi , Aug 04 17:14:04 hi Aug 04 17:18:52 I'm having trouble displaying two GridViews on the same screen - it seems the second I add one gridview, no other views will be displayed. I'm sure I'm doing something stupid. my layout xml looks like this: pastebin.com/AA10uEL3 Aug 04 17:19:26 I tried adding an ImageView after the first one, just to see if it will get displayed, and it doesn't Aug 04 17:20:56 hmm Aug 04 17:21:02 try setting them both to fill_parent Aug 04 17:21:05 and layout weight to 1 Aug 04 17:21:17 they should take up half the space each then Aug 04 17:21:49 the layout weight of each gridview? or of the linearlayout? that might be a dumb question, I'm prettynew to doing android UIs Aug 04 17:22:03 of each gridview Aug 04 17:22:32 it gets easy eventually Aug 04 17:22:38 but at thew start i wa slike wtf Aug 04 17:22:44 omg! it works Aug 04 17:22:49 nice Aug 04 17:22:50 thank you for solving my stupid Aug 04 17:22:54 :) Aug 04 17:25:11 damn google need us to update our apps Aug 04 17:25:20 ive lost the keystore files to some of mine Aug 04 17:25:59 ah its just malicous stuff Aug 04 17:26:01 thank god Aug 04 17:26:10 they got to let u use a new keyfile tho soon ;/ Aug 04 17:26:59 Hi all :) Aug 04 17:28:42 I'm having an issue with https connections, I mean I got everything to work, but the issue is with the handshake, i'm using 3 different servers and everytime I post something to one of them it goes through the entire handshake process which makes the post process be as slow as ~6-9 sec just for the handshake... someone can pitch an idea to fix this ? :P Aug 04 18:13:08 when creating an App, and in the Navigation type I've selected "Tabs" which gave me text; can I have an image instead of that text? Aug 04 18:13:27 or even image with text under it? Aug 04 19:42:15 Hello everyone Aug 04 19:42:29 How do I clear a scrollView programatically?? Aug 04 19:45:47 removeAllViews? Aug 04 20:00:02 Has anyone come across any good methods of filtering orientation data from accelerometer data? I'd like to use the output of the ROTATION_VECTOR sensor to eliminate rotational influence on the linear accelerometer. Aug 04 20:00:13 hi this is the code for my layout http://pastebin.com/VYRaLRSJ the webivew appears just fine but i can't see the preferences button. what am i doing wrong ? if i remove the layout_below the preferences button appears at the top Aug 04 20:02:10 Do newly created views draw the first draw more slowly than ones already instantiated? Aug 04 20:03:44 is anyone here doing android with a rails api development? Aug 04 20:03:50 can anyone help me out Aug 04 20:04:07 Depends devslash what's your question Aug 04 20:04:30 whats wrong with this layout http://pastebin.com/VYRaLRSJ the button is hidden Aug 04 20:04:51 when the page is loading it appears at the top for a second and then disappears Aug 04 20:05:41 devslash a view things Aug 04 20:05:43 ey all, I have an android project that uses an api implemented inrails. When I talk to the production server everything is fine, but when I point the android device at my local development server everything just times out. Has anyone see this before? Aug 04 20:05:51 ? Aug 04 20:05:59 don't use +id for layout below Aug 04 20:06:04 just @id Aug 04 20:06:07 second Aug 04 20:06:16 only declare xlmns once Aug 04 20:06:25 at the top Aug 04 20:06:41 ok Aug 04 20:06:43 should i use open al? Aug 04 20:06:49 can i use it? Aug 04 20:07:15 make sure Webview doesn't take up the whole screen Aug 04 20:07:48 i did wrap_content Aug 04 20:07:52 is that right ? Aug 04 20:08:08 for android:layout_width and android:layout_height Aug 04 20:08:13 Well it depends how big the content is Aug 04 20:08:29 ii want it to fill the screen Aug 04 20:08:35 but just have the button at the bottom Aug 04 20:08:47 or ideally overlay the button on top of the webview Aug 04 20:08:52 Then layout below won't work Aug 04 20:08:55 at the bottom Aug 04 20:09:17 yeah there's a way to do that but since I haven't needed it I haven't looked it up Aug 04 20:09:18 then how do i do it Aug 04 20:09:23 Google Aug 04 20:09:50 ok Aug 04 20:10:51 ok i found it Aug 04 20:11:27 thanks Aug 04 20:16:45 I've almost got what i needed Aug 04 20:18:10 i added android:layout_alignParentBottom="true" and it appears at the bottom left Aug 04 20:18:19 id like to have it appear at the bottom center Aug 04 20:18:29 Yes center horizontal as well Aug 04 20:18:47 and android:layout_gravity="center_horizontal" Aug 04 20:18:51 You can do both Aug 04 20:18:51 right ? Aug 04 20:19:14 but android:layout_gravity="center_horizontal" seems to be ignored Aug 04 20:19:31 sorry Aug 04 20:19:35 not gravity Aug 04 20:19:58 It's the other one Aug 04 20:20:14 forgot cuz I'm not using xml now Aug 04 20:23:33 can anyone help me Aug 04 20:25:18 devslash try android:layout_centerHorizontal="true" Aug 04 20:25:51 thanks that did the trick Aug 04 20:27:22 yw Aug 04 21:04:36 how do i programatically bind a method in my activity to a button ive generated Aug 04 21:04:37 ? Aug 04 21:05:50 hamo__: setOnClickListener then call your method in the inner onClick method that is generated for you Aug 04 21:07:54 hi all.. if I want to store content inside of application storage, what should i use? for sd is getExternalStorageDirectory, but what for app? getDownloadCacheDirectory? Aug 04 21:11:44 QubeZ: thank you! Aug 04 21:18:25 can I extend the android button class to hold extra data for me? Aug 04 21:18:37 is that good practice...in terms of extendign widgets? Aug 04 21:26:35 man, apple really fucked up 'Save As' in mountain lion Aug 04 21:26:50 g00s: because saving is too PC! Aug 04 21:27:10 they overwrite the original and save a new version Aug 04 21:27:56 http://macperformanceguide.com/MountainLion-SaveAs-data-destruction.html Aug 04 21:29:00 well, well, well Aug 04 21:29:13 looks like it's not just Microsoft and Gnome3 that want to removed standard desktop UI elements Aug 04 21:29:26 at this rate Aug 04 21:29:34 my Nexus is going to have a better desktop UI than my desktop Aug 04 21:33:26 g00s: ... I just read through that... Aug 04 21:33:42 ... I'm all... 'what' Aug 04 21:34:16 If Apple didn't jump the shark before, this is it Aug 04 21:44:26 how can I go into SQLite3 manually and start adding new data to fetch later on from the app? Aug 04 21:56:11 so I managed to get the openGL ES 2.0 thing from the android website working, what would be my next step for developing video games? Aug 04 21:56:33 i have a settings layout that is defined like this: http://pastebin.com/Tidr9cFN the 2 lines at the bottom are how i load the activity. the activity loads but is completely blank. does anyone know whats wrong ? Aug 04 21:57:43 also, can I use onDrawFrame() in my render class as a game loop? Aug 04 21:58:04 Syzygy_: if you haven't already, sketch out what threads you'll need. The UI (main) thread should be as responsive as possible Aug 04 21:58:52 You're threads will only have a run method which takes no parameters, so plan accordingly Aug 04 21:58:59 *Your Aug 04 21:59:52 I would like to avoid using threads if it's not absolutely necessary. Aug 04 22:00:22 Syzygy__: under Android, *all* applications are multithreaded by necessity Aug 04 22:00:29 UI thread shouldn't block at all Aug 04 22:00:57 in that case... I think UI, logic, graphics would make sense I guess. Aug 04 22:01:26 Syzygy_: get a piece of paper its more likely than not nontrivial Aug 04 22:01:43 I guess it's time to read up on threading on android then Aug 04 22:01:51 just trying to help it took me a few days to figure it out and settle Aug 04 22:02:08 My settings activity layout is defined like this: http://pastebin.com/Tidr9cFN the 2 lines at the bottom are how i load the activity. the activity loads but is completely blank. does anyone know whats wrong ? Aug 04 22:02:57 devslash are you calling setcontentview with that activity? Aug 04 22:03:13 Ok, I've started googling, but are there any resources you guys would recommend? Aug 04 22:03:39 let me see Aug 04 22:03:42 (and don't link me to the android page, because that's what I'm reading already) Aug 04 22:05:31 Syzygy__: some concurrency, gamedev articles? Aug 04 22:05:40 can't give you exact links, I seem to lost mine Aug 04 22:05:56 Java Concurrency in Practice, I recommended have seen ;) Aug 04 22:06:15 everything is fine by as long as it's actually usefull Aug 04 22:06:35 Syzygy__: is your game loop going to be in native or DVM code? Aug 04 22:07:07 java stuff Aug 04 22:07:13 native is C++ right? Aug 04 22:07:35 Syzygy__: native is directly whatever the cpu will run Aug 04 22:07:36 themirror: it was missing so i added the line in my settings class in oncreate setContentView(R.layout.settings); and now it crashes with the error 08-04 15:04:37.709: E/AndroidRuntime(6746): FATAL EXCEPTION: main Aug 04 22:07:37 08-04 15:04:37.709: E/AndroidRuntime(6746): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mymusicserver.android/com.mymusicserver.android.PrefsActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class PreferenceScreen Aug 04 22:07:41 doesn't have to be C/C++ Aug 04 22:08:03 in that case I'm to inexperienced to know, but based on that it will probably not be native. Aug 04 22:09:33 devslash Google some of that. Don't mean to be rude, but that should be your first stop. I've been able to find a lot on stackoverflow, especially Aug 04 22:09:51 Syzygy__: then definitely learn about Java concurrency Aug 04 22:10:08 themirror: if my layout is named settings.xml, id do setContentView(R.layout.settings); right ? Aug 04 22:10:14 alright. Aug 04 22:10:29 as for game loop, I recommend you learn about what was called, iirc, "constant time game loop" Aug 04 22:10:32 devslash yes Aug 04 22:11:38 ah, fixed-step game loop Aug 04 22:12:27 if I add a button to the bottom of a custom dialog, followed up by adding a marginBottom to this button, the dialog height is not streched, but the button height is shrinked... is there a way to overcome this problem? Aug 04 22:12:44 Syzygy__: basically, in a game loop, you should check how much time passed since last update Aug 04 22:13:11 with fixed-step, you divide that time by defined rate of updates and calculate apropriately many updates, then render Aug 04 22:13:12 And then sleep the difference Aug 04 22:13:34 so that your game won't run faster than it should? Aug 04 22:14:00 Syzygy__: so that you won't get wonky results in state update algorithms due to unexpected slowdowns Aug 04 22:14:11 ok Aug 04 22:14:51 without doing some form of fixed-step, you risk that for example collision detection won't work, because the time since last update would be enough to pass the object altogether Aug 04 22:15:32 other things involve physics simulations getting wonky Aug 04 22:15:34 nvm, found some info on SO on how to do it Aug 04 22:16:11 Syzygy_: this helped me some http://gafferongames.com/game-physics/fix-your-timestep/ Aug 04 22:17:18 I remember a friend talking about a really nice way to detect collision, don't remember the name, but it basically created a virtual line and depending on the movement vector and checked for intersections, so no matter how fast you're going, you won't pass through stuff Aug 04 22:17:33 computer, what's the weather like today? Aug 04 22:17:51 QubeZ, I hear thunder outside and the wind seems quite strong. Aug 04 22:18:18 thank you, please re-arrange my appointments to accomodate the weather... you know how my skin is all sensitive Aug 04 22:19:09 Ok. Aug 04 22:23:55 i need help my app is crashing. the debugger is not showing any error output and i don't know what to do Aug 04 22:27:04 I have a bunch (13) ImageViews. I want to be able to have an event trigger on an ImageView when the user presses on one of them, and I want an additional event to trigger on other ImageViews as the user moves their finger around. Basically, I want to make it so you can activate a bunch of ImageViews by putting your finger in one spot, and dragging it down over the rest of the image views. Aug 04 22:27:05 Is there a way to do that directly on each imageview, or do I need to wrap them insomething else that will take the onTouch events and map them to the correspdoning image views? Aug 04 22:30:08 Just grab the position every kth touch event (to avoid flooding your own app with calls) and rectify. If an event is in that view, activate the view Aug 04 22:30:56 I'm trying to load my settings activity class from my main activity by doing: Intent prefsScreen = new Intent(getApplicationContext(), SettingsActivity.class); then startActivity(prefsScreen); but I'm getting a crash with the error Unable to start activity ComponentInfo{com.mymusicserver.android/com.mymusicserver.android.SettingsActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class PreferenceScreen Aug 04 22:31:06 okay - so I need to do the handling in the enclosing activity, and map it to the corresponding imageview? is there an easy way to check if a position matches a displayed imageview? Aug 04 22:31:55 damn it, I need my Fragment to implement a ListActivity Aug 04 22:32:04 and it's already extending Fragment! Aug 04 22:32:09 anyone know how to fix this ? Aug 04 22:32:24 Ranma- yes but your mapping is simple. If they are rectangular, just divide by width to know which column,divide by height to know which row Aug 04 22:32:56 okay thanks, I'll give that a shot Aug 04 22:34:32 hey themirror I've been googling this error but i haven't found a solution Aug 04 22:38:28 themirror: nm i figured it out finally Aug 04 22:38:57 using setcontentview was causing the error. instead i had to do addPreferencesFromResource(R.layout.settings); Aug 04 22:39:48 Sorry my 3G keeps dropping Aug 04 22:40:02 Have to wait for timeout Aug 04 22:41:10 did you see my message Aug 04 22:41:33 Ya Aug 04 22:41:42 cool Aug 04 22:46:06 Why the hell does Android advocate you use setVolumeControlStrean?? What if I'm playing music with another app? Aug 04 22:46:29 It turns down both volumes. Terrible Aug 04 22:47:15 test Aug 04 22:49:37 Does anyone know how to tie hard volume keys to a MediaPlayer object? I want users to be able to turn down the music of my game separate from other Music streams Aug 04 23:05:11 hello if someone can please help me Aug 04 23:05:32 i have a linear layout that i would like to set to invisible upon creation of the activity Aug 04 23:05:40 when I set it to invisible the app crashes Aug 04 23:05:49 any idea what might be causing this??? Aug 04 23:13:56 any developers for table 7"? Aug 04 23:39:27 I am having a big problem here..I used the "Tabs + Swipe" navigation type when creating a new project so I got this code to start off with http://stackoverflow.com/questions/11582999/change-the-tab-activity . I want to have a Fragment inside the first tab, but this fragment consists of a customArrayAdapter object which I use to display rows fetched from the DB, this is my customArrayAdapter http://pastebin.com/geC5zMWV Aug 04 23:40:27 and this is my MainActivity, the one that was created for me when I chose the Tabs + Swipe navigation type, http://pastebin.com/DfEGcdaV Aug 04 23:41:09 inside I've modified the getItem() as the Stackoverflow post suggested so that it now brings up a fragment (the fragment that I want, the one that has a customArrayAdapter inside it) Aug 04 23:43:18 and here is where I think the problem is, my main.xml file, https://dl.dropbox.com/u/19390574/log.txt Aug 04 23:43:35 that's the error, this is the XML file, http://pastebin.com/wYT50khc Aug 04 23:44:27 error inflating fragment.. Aug 04 23:52:17 INFURIATING when you click a cancel button in Eclipse and all it does is disable the button. Aug 04 23:54:56 agree Aug 04 23:55:34 has anyone made an app that uses the google account on the phone for auth? Aug 04 23:57:25 Not I Aug 05 00:08:28 Hmm. So I have an onTouch listener attached to my GridView. It fires if I press and drag around for a bit, but it doesn't fire if I just press quickly, or even if I press and drag for like half a second it doesn't fire Aug 05 00:08:50 I could add an onclick listener but that seems so unnecessary. shouldn't ontouch fire ontouchdown? Aug 05 00:12:41 How do I make volume keys adjust the volume of only the app's music? Aug 05 00:15:55 My question is the same as this: http://stackoverflow.com/questions/11661943/android-mediaplayer-adjust-volume Aug 05 00:26:27 hmm interesting. so the activity is calling dispatchTouchEvent, so it is getting clicked Aug 05 00:26:36 it just isn't making it into my gridview Aug 05 00:26:43 which I guess means something else is consuming it? Aug 05 00:28:54 yup. so if I make my ImageView's unclickable then it fires immediately Aug 05 00:29:15 even though there were no onclick listeners attached to them, they were still consuming the touch Aug 05 00:47:24 hmm Aug 05 01:16:13 Hrrrrrr not again! Aug 05 01:16:21 No way to use selectors for styles. Aug 05 01:19:37 hi i am pretty know to java and i still don't get the setOnClickListener syntax. Am i creating an object from an interface? can anyone explain me please Aug 05 01:20:40 you are creating an anonymous inner-class that implements the interface Aug 05 01:21:07 but why i am using the new keyword? Aug 05 01:21:47 You're making an instance and defining its class contents at the same time. Aug 05 01:22:21 EuroTrash: so i am creating a class and instance of that class without defining any name right? Aug 05 01:22:28 Yes Aug 05 01:22:54 I.e. it's not that good if you plan to reuse the code (but onclicklisteners are often unique so it's a handy notation) Aug 05 01:23:22 would it work without an anonymous class using: public class OnClickClass implements OnClickListener{ body } ? Aug 05 01:23:54 daniel110: yes but you'd have to do new OnClickClass.. etc. when you need the instance. Aug 05 01:24:43 I.e. something.setOnClickListener(new OnClickClass()); Aug 05 01:24:47 yes got it so just to make sure, setOnClickListener takes an objects that implements OnClickListener, any object as its parameter? Aug 05 01:25:13 Any class instance that implements OnClickListener, yes. Aug 05 01:25:51 thanks so much, every tutorial i used used this syntax which can be a little confusing for begineer java programmers Aug 05 01:26:38 Yeah, come to think of it, I rarely use the inline style, except for OnClickListeners in Android. Aug 05 01:26:46 I am learning Mobile UI tonight and was wondering what the best free prototyping tool for me to test my mobile app? Aug 05 01:27:03 In fact, I rarely use them in Android either, because it gets messy quite quickly. Aug 05 01:27:33 I do use them for member variables though, yet another variant. Aug 05 01:27:48 Where can i read more about inline classes initialiazitaion? Aug 05 01:28:08 private OnClickListener blah = new OnClickListener(){ ....}; and then I refer to it e.g. in onCreate with something.setOnClickListener(blah); Aug 05 01:28:40 that seems so much clearer, i don't understand why use anonymous classes Aug 05 01:29:18 Well, that last example is technically an anonymous class (i.e. it doesn't have a name), but it is tied to a reference. Aug 05 01:30:50 ah ok i see Aug 05 01:31:21 are anonymous classes used only to create classes and objects from interfaces? Aug 05 01:33:01 It's technically possible to do it without implementing an interface, but the use cases are rare because your options for interaction are limited. Aug 05 01:33:43 In case of OnClickListener, the interface defines the onClick method, which gets called by the rest of the code. If you don't implement any interfaces, the receiving piece of code doesn't know the methods. Aug 05 01:36:47 I.e. the only way that I know of that would enable you to call methods on an non-interfaced anonymous class is something like new Object(){ public void hi(){ System.out.println("hi");}}.hi(); which is of limited use. Aug 05 01:37:14 EuroTrash: yes true Aug 05 02:03:02 If I have a complete , very small source/project on sdcard on phone, and wanted to go about compiling on phone from source in sdcard, is there any types of libraries available for that? Ive looked into AIDE but i wasnt sure if thats my only/best approach Aug 05 02:03:58 Error: Float types not allowed for ? SERIOUSLY? Aug 05 02:05:21 EuroTrash: ... quite obvious Aug 05 02:05:36 unless you tell me how do you expect to show .67 of a pixelk Aug 05 02:05:37 *pixel Aug 05 02:05:51 Well this is a shadow radius. Aug 05 02:06:26 EuroTrash: and you can calculate radius along x or y axis, right? Aug 05 02:06:36 you don't want *every* edge to look weird Aug 05 02:07:18 p_l|FRA: anti aliasing Aug 05 02:07:46 http://developer.android.com/reference/android/R.attr.html#shadowRadius Aug 05 02:08:20 I want to fetch that value from resources and I apparently can't. Aug 05 02:08:51 SpeedEvil: antialiasing in some places will still look weird Aug 05 02:09:42 I guess what I'm really looking for is R.float.* Aug 05 02:11:59 Ok this works: 1.5 Aug 05 02:12:04 whats deal w openal? Aug 05 02:12:08 Yay boilerplate, but at least it doesn't have to go into code. Aug 05 02:13:19 4regis i kneed to know dis mang Aug 05 02:17:48 Any recommendations for building source on device? anyone? Aug 05 02:21:31 far_: what do you mean what's the deal? Aug 05 02:21:56 is good way to mix sound effects and music on android? Aug 05 02:22:48 far_: ehh... not necessarily. On newer devices you got OpenSL Aug 05 02:23:00 OpenAL can work, but I don't know the current state of it Aug 05 02:23:11 When i say "on device" I mean compiling the APK using only device, without AIDE implementation. Need is for hotswapping images in /res on each build Aug 05 02:24:00 hello Aug 05 02:24:13 i need some help understanding how the view hierarchy system works in android Aug 05 02:24:17 im writing a test app Aug 05 02:24:26 basically i have a home screen, and a login screen Aug 05 02:24:34 the main activity on my manifest is the home screen Aug 05 02:24:49 docvile: there are some apps on Play that do so, contact the authors for details? Aug 05 02:25:05 i have a background service running, and it is respomsible for checking if i have a stored login token or not, if i dont, i show the login screen Aug 05 02:25:10 I know that dx compiler could be compiled from java into DVM and be used on devices Aug 05 02:25:22 however, when i dont have a token, i can see the home screen for a few moments, and then the login activity shows Aug 05 02:25:38 is there a way to start an activity BEFORE the calling one is created ? Aug 05 02:26:00 ar actually, before its displayed, i dont really care about the lifecycle at this point Aug 05 02:26:15 Thanks, I've considered trying to contacting other developers, figured this would be a better place to start before nagging others. Aug 05 02:26:19 but i cant find a smooth way to start an activity without the parent one being shown for a few ms Aug 05 02:26:25 thanks for any help Aug 05 02:26:44 Many many many searches are reworded and is always about building FOR device, damned googlesearch Aug 05 02:26:57 docvile: but basically, a lot of the necessary stuff can be compiled into DVM bytecode and used on device Aug 05 02:27:00 might be a bit tricky, though Aug 05 02:27:05 ah ok thanks for tip re OpenSL Aug 05 02:27:21 docvile: you can also just drop in a complete JDK compiled for ARM and use that :) Aug 05 02:27:26 well, the ONLY thing that would change in the source, is the images, same file names, just have to recompile and launch install intent Aug 05 02:27:49 Not sure what you mean Aug 05 02:33:50 docvile: then you only need APK packing tool Aug 05 02:34:08 apktool had the whole thing automated, you can look at how it works Aug 05 02:34:12 apktool? or parts direct from the sdk Aug 05 02:34:34 docvile: well, apktool had everything baked-in to decompile and reconstruct an APK Aug 05 02:34:39 I just ran across this as well, and it looks to make use of Apktool https://github.com/dhacker29/Android-Utility/tree/master/utility Aug 05 02:34:49 some people used it for example to create optimized, slimmed down APKs for specific devices Aug 05 02:35:18 * p_l|FRA has a device with 160MBs of ram and little flash - slimming down was useful Aug 05 02:57:56 can I have a different image for every row that is generated through a custom ArrayAdapter? **** ENDING LOGGING AT Sun Aug 05 02:59:59 2012