**** BEGIN LOGGING AT Sun Mar 03 02:59:58 2013 Mar 03 03:00:06 just a shell Mar 03 03:00:13 that was the set I was looking for Mar 03 03:00:23 just couldn't find then on the nas Mar 03 03:00:32 looked for 20 min or so Mar 03 03:00:39 oh Mar 03 03:00:49 I need to get more organised with that drive Mar 03 03:01:06 as it stands there is 6 GB of nice raided misc photos Mar 03 03:01:08 :) Mar 03 03:01:18 yeah, i'm looking at what pros do for DAM - going back is quite a mess Mar 03 03:02:59 phillapines brewing storm https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-ash3/6254_111057941785_6419609_n.jpg Mar 03 03:03:24 StingRay_: were these film then scanned ? Mar 03 03:03:46 eh no Mar 03 03:04:01 think these were a crappy 40D Mar 03 03:04:19 I say crappy but that thing focused well and fired at 9fps or something Mar 03 03:04:34 https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-snc6/6254_111514606785_1847213_n.jpg Mar 03 03:04:52 StingRay_: is that a person on the right? Mar 03 03:05:09 yeah Mar 03 03:05:23 thats nice too Mar 03 03:05:24 https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash3/6254_111057946785_981668_n.jpg Mar 03 03:05:31 person on the rock Mar 03 03:05:50 you like the Vignette filter ;) Mar 03 03:06:06 not really Mar 03 03:06:31 these were when i just started getting into photography Mar 03 03:06:36 pissing around Mar 03 03:06:42 :) Mar 03 03:06:49 how long ago ? Mar 03 03:07:46 6-7 years i guess Mar 03 03:07:51 maybe more or less Mar 03 03:07:58 crap with dates/time Mar 03 03:08:10 https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-ash4/320_27961341785_3407_n.jpg Mar 03 03:08:32 https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/320_27961336785_3158_n.jpg Mar 03 03:09:21 I pissed with them too much though Mar 03 03:09:33 hence I want to find the originals Mar 03 03:09:48 cause I have some RAWs that would be quite good for ya Mar 03 03:09:49 i made the mistake of taking my early pictures only in jpg Mar 03 03:10:17 one mode the camera had, canon super vivid, chose the WB … and now, i regret that Mar 03 03:10:40 among other things Mar 03 03:11:36 well I got to the point of doing my own color profiles now Mar 03 03:11:48 canon has a nice editor for such things Mar 03 03:12:06 I really need to consolidate all these NAS drives though Mar 03 03:12:24 I have what you could call and safe and secure organized mess Mar 03 03:12:29 i've been going through deleting stuff Mar 03 03:14:02 yeah, canon had some color profile thing - i have up on DPP b/c it keeps on crashing Mar 03 03:14:18 the color profile editor was not available for powershots Mar 03 03:14:57 well I now shoot for RAW grading/latitude rather than how it looks on the camera lcd Mar 03 03:15:05 hence why creating profiles is a good idea Mar 03 03:17:33 just had a thought, I have a efs nas, just firing it up, I may have dumped lots on there Mar 03 03:18:59 g00s: wanna know the funny thing, I only got a few dslr/vid cameras and rented a red one, so that I could do some 3d graphics TD stuff to allow camera ops to use 3d cameras without training by building tools Mar 03 03:19:33 i'm pretty minimalist. only have a powershot G9 atm Mar 03 03:21:22 if i had the money i'd probably get a NEX-6 or something Mar 03 03:21:31 but still simple ;) Mar 03 03:23:35 well I must say the functionality of this is ace https://play.google.com/store/apps/details?id=es.tid.gconnect Mar 03 03:23:59 but I want to scream at them to let me do the ui, only take a day or so.. Mar 03 03:24:13 oh and to put the current ui designers to death Mar 03 03:24:27 but it works Mar 03 03:25:49 wtf, i'm using the ADT to create my first new android project in a loong time. The New Android Project dialog is foobar: whats the difference between 'Target SDK' and 'Compile with' ? Mar 03 03:27:26 the tooltip for 'TargetSDK' says : choose the highest SDK known to work Mar 03 03:27:34 lol, guys... Mar 03 03:27:48 do they even test this … at all Mar 03 03:28:06 allright, fuck it. i'm going to try IntelliJ Mar 03 03:28:43 noooooooo Mar 03 03:28:47 :) Mar 03 03:28:59 ...ooooooooo...... Mar 03 03:45:00 Can I feed a KML file to GoogleMap somehow? Mar 03 03:46:25 g00s are you serious? Mar 03 03:46:30 target sdk is targetSdkVersion Mar 03 03:46:36 compile with is the ... build target Mar 03 03:48:51 min sdk Mar 03 03:50:41 no Mar 03 03:51:03 what's the policy / guideline on having hidden admin options / activities in an app? Once my app is on the store, I may meet up with local people and want to access some admin options inside my app. maybe i would access the admin menu by typing a special text string into a certain text field Mar 03 03:51:06 is that kind of thing allowed? Mar 03 03:51:17 lol... yes Mar 03 03:51:21 why wouldnt it be? Mar 03 03:51:53 just cause its like, hidden functionality that may not be open to testing Mar 03 03:52:36 testing by whome? Mar 03 03:52:38 whom* Mar 03 03:52:50 canadiancow: :| Mar 03 03:52:55 google maybe? but im not really clear on how much testing they do Mar 03 03:52:59 none? Mar 03 03:53:00 i know apple tests an app Mar 03 03:53:06 cool Mar 03 03:53:08 i know what the manifest stuff does, the ADT fucked up the tooltips for the entries though Mar 03 03:53:18 g00s they seem reasonable to me Mar 03 03:53:30 ok, lemme see again Mar 03 03:53:38 no i mean what you copied into irc Mar 03 03:53:40 seems reasonable Mar 03 03:55:08 9.41% of my users are on 4.2 Mar 03 03:55:15 over 60% are on JB Mar 03 03:55:18 my minSdkVersion is 8 Mar 03 04:00:53 so, when I say "New Android Project" there is a dialog with 3 entries pertaining the the SDK level. they are labeled (1) min (2) target and (3) "compile with". What is the difference between the second two ? Mar 03 04:01:07 hey does anyone here use eclim for android development? Mar 03 04:01:19 i'm used to in the manifest, this terminology seems weird Mar 03 04:02:14 the tooltip for targetSdk says "choose the highest api level the app is known to work with", that sounds like maxSdk to me Mar 03 04:02:57 g00s Mar 03 04:02:58 no Mar 03 04:03:00 that's targetSdk Mar 03 04:03:04 the third one Mar 03 04:03:10 is the android.jar you compile against Mar 03 04:03:28 O.o Mar 03 04:03:30 hehe Mar 03 04:03:38 like from project.properties Mar 03 04:03:42 basically if you compile with too early of a version you get syntax errors if you try to use a new API Mar 03 04:03:54 oh, project.properties Mar 03 04:03:56 target=android-17 Mar 03 04:04:39 generally target and compile with should both be the same and the newest that is available. but obviously not if you haven't tested it against that setup. Mar 03 04:06:21 i have one value stored in sqlite how can i return this value one spinner Mar 03 04:07:11 CursorAdapter Mar 03 04:08:21 ok but it will return just one value , and my spinner have many items i just want to appear slecteed my previus data sored Mar 03 04:20:14 Hello Mar 03 04:22:44 I have learned basic java and am still learning android, soon I want to start trying to make a game on android, would you guys recommend andengine or libgdx, I see that libgdx has more features and is more well documented, but I have seen alot of people say that Andengine is more simple for beginners, what do you guys think? Mar 03 04:29:29 hey guys, I am loading an image into a webveiw, and want to setup an image map… but I am wondering what is the best way considering the different screen sizes of android devices. **** BEGIN LOGGING AT Sun Mar 03 05:37:01 2013 Mar 03 06:05:56 are there any android-iOS developers who can give me a quote? Mar 03 06:07:06 20k Mar 03 06:07:36 per hour? Mar 03 06:07:44 ha! Mar 03 06:07:47 how much to duplicate this application and add a few more features: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CEAQFjAB&url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.cworklog.cworklog_client&ei=T-gyUcSrG6rq0wHf4YDgBQ&usg=AFQjCNGey7n0weoFDk9J_Y7etgwIE0ubLA&sig2=b3ZTYMfRZbCJx-8_EI37hw&bvm=bv.43148975,d.dmQ Mar 03 06:07:56 https://play.google.com/store/apps/details?id=com.cworklog.cworklog_client Mar 03 06:07:57 sorry Mar 03 06:08:39 that app has less than 10 downloads. is this your friends app and you are trying to run him out of business before he starts? Mar 03 06:08:49 no its my app done with phonegap Mar 03 06:09:00 ah Mar 03 06:09:08 can i implement socket communicatin without creating another thread ? Mar 03 06:09:14 you trying to run yourself out of business ? Mar 03 06:09:33 i think a non-phonegap solution woudl be faster better user interface Mar 03 06:10:07 yeah, makes sense to go native Mar 03 06:13:05 manishrw: don't do network IO on the main thread, even if it doesn't throw an exception it will lag. creating a new thread is not hard (new Thread() {...}) Mar 03 06:13:54 i created new thread for it, but i want to use it when button is pressed Mar 03 06:13:57 how do i do that Mar 03 06:15:59 Has anyone created a gamepad for Android that doesn't require installation of an additional app in order to work, and that maps to android.view.KeyEvent.KEYCODE_DPAD_UP/DOWN/LEFT/RIGHT/FIRE default, so that you don't have to redefine keys (and can thus use it to play games that doesn't offer redefinition of keys)? Mar 03 06:16:31 I mean a bluetooth one. I tried the Zeemote yesterday. It didn't seem to map to the Android dpad. Mar 03 06:16:40 Anyone tried Gametel? Mar 03 06:19:08 kevinb, have any idea ? Mar 03 06:40:59 so now that reviews are g+ real names... whats to stop someone from just harassing people who read bad reviews Mar 03 06:41:22 harassing people from reading bad reviews :P Mar 03 06:41:34 god knows what happens to those who write them Mar 03 06:45:08 surely that's the whole point? Mar 03 06:45:45 yeah, why else would google give us other details like zip code , etc ? Mar 03 06:48:58 i guess i thought the whole "buyer detail" thing this past week was blown way out of proportion; since i sell stuff on amazon i'm pretty sued to seeing even *more* details Mar 03 06:49:03 I think the official term is 'accountability' Mar 03 06:49:32 err, "pretty used to" Mar 03 06:50:02 my button listener is in main thread, and my socket running on another thread Mar 03 06:50:15 how do i onclick make my socket communicate Mar 03 06:51:21 canadiancow: hmm, a new eclipse 3.8.2. do you use 4.2.x ? Mar 03 06:51:35 i use 4.2.x Mar 03 06:52:15 in fact it's 4.2.2, just like android :) Mar 03 06:52:23 \o/ Mar 03 06:53:00 i was checking feedback on an app, and someone gave me 2 stars and said feature X doesn't work Mar 03 06:53:08 and they left that review today Mar 03 06:53:12 and i published an update a couple hours ago that fixed that Mar 03 06:53:15 well 4.2.1 is important ;) Mar 03 06:53:22 so im tempted to message them on G+ to update :P Mar 03 06:53:24 in case you like 12 months Mar 03 06:53:28 ? Mar 03 06:54:27 december sucks Mar 03 06:54:36 it might be nice if there was a non-aggressive, non-personal way to notify a reviewer - and readers - that you consider the bug fixed/feature added Mar 03 06:55:06 JakeWharton \o/ Mar 03 06:55:19 Leeds, like, say, a reply function? :P Mar 03 06:55:34 canadiancow: simpler - just a flag for "no longer applies" Mar 03 06:57:39 i suppose Mar 03 06:57:44 but that might be a little basic Mar 03 06:57:47 then everyone would flag bad reviews Mar 03 06:57:54 heh Mar 03 06:58:06 why do i feel like designing layouts via graphical layouts is clunky.. Mar 03 06:58:20 is it supposed to be all messed up? or am i supposed to code it in xml? Mar 03 06:58:35 i use xml for editing and the gui to see if it looks like i want it to Mar 03 06:58:40 i do it all in XML Mar 03 06:58:48 me 3 Mar 03 07:00:12 i wouldn't mind if they had ADT lite that was much slimmed down, and just previewed layouts and lunched the app Mar 03 07:01:41 is there a good article somewhere besides docs on designing good layouts to fit all types of devices? post 3.x Mar 03 07:02:03 docs are pretty good at it Mar 03 07:02:05 and just look at google apps Mar 03 07:02:07 like gmail Mar 03 07:02:12 :) Mar 03 07:02:13 see how they do it Mar 03 07:03:03 mhm im looking thorugh some source of other apps atm Mar 03 07:03:32 seems like the different layout-folders are the best way to provide :) Mar 03 07:07:58 specifically layout-sw600dp style directories. the layout-large and layout-xlarge style can be a bit difficult to work with Mar 03 07:12:49 hmm. to run startActivity(intent) we need permission GET_TASKS? Mar 03 07:13:09 no Mar 03 07:13:10 no Mar 03 07:13:19 i get a warning without it Mar 03 07:13:38 am i setting up the intent wrong? Intent mainIntent = new Intent().setClass(SplashActivity.this, com.busanbar.bb.activities.EventsActivity.class); Mar 03 07:13:45 yes. Mar 03 07:13:56 EventsActivity.class Mar 03 07:14:24 new Intent(SplashActivity.this, EventsActivity.class); Mar 03 07:14:37 i will try that, but i think i had that 5 mins ago and got the warning, so did this Mar 03 07:15:05 yea, still get it Mar 03 07:15:12 its not a warning really. i get this: Mar 03 07:15:36 System.err java.lang.SecurityException: Permission Denial: getTasks() Mar 03 07:15:41 requires permission GET_TASKS Mar 03 07:16:12 in my manifest, the activity is named: android:name="com.busanbar.bb.activities.EventsActivity" Mar 03 07:16:13 check your manifest, you have two same named clases probably Mar 03 07:16:35 actually just pastebin it Mar 03 07:16:41 Speaking of layouts, anyone know if something should be called on a webview to make it update where a flash object is drawing after the layout of the webview it's in has been changed? Mar 03 07:17:26 It actually works (changing the webview position / having it's content move with it) except the flash Mar 03 07:17:32 which just stays Mar 03 07:17:45 It's like it doesn't notice the webview moved Mar 03 07:20:27 hm Mar 03 07:20:31 maybe my intents are wrong? Mar 03 07:20:31 http://pastebin.com/b0UeqPVu Mar 03 07:23:06 what's the full stacktrace? does your code call getTasks anywhere? Mar 03 07:23:29 no. and the code actually does launch the activity. SplashActivity successfuly launches into EventsActivity Mar 03 07:23:32 but LogCat shows: Mar 03 07:24:30 http://pastebin.com/Uh5n8D4Y Mar 03 07:24:33 pastebin EventsActivity too Mar 03 07:25:01 and if that doesnt solve it, just add the permission i guess :/ Mar 03 07:25:22 this is where i create the intent and call startActivity: Mar 03 07:25:23 http://pastebin.com/ACzjNFQn Mar 03 07:25:44 finish(); Mar 03 07:26:10 why is that there? Mar 03 07:27:03 to clean the activity. hm. leave it out and let android deal with it? Mar 03 07:27:07 Nook's financial numbers look bad Mar 03 07:27:19 finish() finishes the activity. Mar 03 07:27:23 Glad I did not waste time on that promotion they wanted Mar 03 07:27:31 try it again without finish() Mar 03 07:27:48 ok. took finish() out. it behaves the same way. same getTasks error, but it loads the activity anyway Mar 03 07:27:52 what device is this from? it looks like android internally is calling getTasks. Which it should not be. Some wacky custom rom? Mar 03 07:28:22 try it on the emulator or another device, i imagine you won't see the log there Mar 03 07:28:48 i'm running on my samsung galaxy note, through adt Mar 03 07:29:02 Ologn: glad i didn't buy into the nook ebook ecosystem :| Mar 03 07:29:18 kevinb: logcat shows it's coming from my application (judging by the Application column) hm Mar 03 07:29:30 well Mar 03 07:29:39 rather than waste your guys time. i will look at some more examples Mar 03 07:29:46 and see whats up Mar 03 07:30:14 from your application but via framework (android.app.ActivityManagerProxy) code Mar 03 07:30:38 maybe it's something samsung goofed up. try the emulator Mar 03 07:31:01 ok cool. will reply once i do that, will also check on my galaxy s1 here Mar 03 07:31:10 kevinb: wouldn't that screw with just about all apps that start a new activity? Mar 03 07:31:43 Trinsta: yes. he's not getting the exception though, it's caught and just logged. Mar 03 07:32:51 ahh didnt see the W/System.err Mar 03 07:33:24 hello there. quick question about opengles 2.0 performance. I have series of objects, when they are scaled down performance is 60fps, as soon as they are scaled up to cover full screen, fps drops. any tips? I am already using 565 surface Mar 03 07:33:39 usually when i see System.err == automatic fatal error crash + short circuit + BSOD + whatever mahem Mar 03 07:34:52 change them to 8bit ;) Mar 03 07:36:33 interesting Mar 03 07:36:43 it happens on my galaxy note 1, but not on my galaxy s1 Mar 03 07:36:54 just leave it be eh? Mar 03 07:37:03 yeah Mar 03 07:37:16 okay, thx a lot~~ Mar 03 07:46:34 yeah, looking around google more it seems to be a samsung 2.3 issue Mar 03 07:46:45 my galaxy s1 is a different firmware Mar 03 07:47:10 * Bleeptech has a question.. Mar 03 07:49:00 Is it just me or did Samsung do a half assed job on the firmware for the 10.1" Galaxy Tab (GT-5113) ??? Mar 03 07:52:08 Well.. The 4.1.1. update anyway... logcat shows debug flags all over hell and there's something called factorytesttapp running and throwing flags too. Mar 03 07:53:56 the Intercept (I think? some low end Samsung device) shipped with debug firmware. logcats spews information constantly Mar 03 07:55:14 that boggles the mind Mar 03 07:56:21 OK.. This is what I'm using to filter crap and I still have to hunt for MY debug flags.. adb logcat | grep -v AudioPolicy | grep -v STATUSBAR | grep -v SurfaceFlinger | grep -v Keyguard | grep -v D/LiveWallpaper | grep -v comsamsungapp Mar 03 07:56:21 Mar 03 07:56:51 bleeptech: nope, happens to my tab too Mar 03 07:57:34 did you by any chance get it at Costco? ;] Mar 03 07:58:34 I dunno... The boss ordered it on Amazon so I'd have a portable terminal.. Mar 03 07:59:33 I was thinking about rooting the tablet Mar 03 07:59:41 not sure how well that would work though :/ Mar 03 07:59:46 there are some scripts to help with logcat, like proclogcat and coloredlogcat, i do: adb logcat -v brief | proclogcat com.teslacoilsw.launcher | coloredlogcat.py . http://devtcg.blogspot.com/2010/04/logcat-improved.html Mar 03 08:00:07 I've been using it for a hack-pad and I'm going to have to root it to get busybox. Mar 03 08:00:30 but Samsung actually filters the activity manager's log lines so i had to add a log statement to my App's onCreate like: Mar 03 08:00:31 Log.v("ActivityManager", "Start proc com.teslacoilsw.launcher (This is fake for proclogcat on sgs3): pid=" + android.os.Process.myPid() + " "); Mar 03 08:02:54 how big of a douche can this guy be... Mar 03 08:02:56 Must have for root users. nOObs should not try and use this, then leave negative feedback because of their own "ignorance". If it doesn't work for your device then fix it. Contribute to the community instead of whining. If you don't know what I mean you shouldn't be a root user. Mar 03 08:06:50 have any of you guys used Eclipse Web Browser before? It loads really slow for me Mar 03 08:07:08 Trinsta: Well.. You know how it goes.. I softbricked a DroidX after misreading the CWM instructions. Didn't bitch or moan in hte threads. Just kept at it for a total of ~7 hours and now it's running 4.0.4 instead of 2.3.3 I think it was. Mar 03 08:10:10 no what i meant was "nOObs should not try and use this" Mar 03 08:10:25 oh nice my nexus 4 has shipped! Mar 03 08:13:02 Trinsta: ROFLMAO. Life, Goverment, Politics all fall into the "nOObs should not try and use this" category.. Mar 03 08:24:48 kevinb: Thank you! Thank you! Thank you! That will make life so much easier. Mar 03 08:28:37 Bleeptech: np, yeah it's handy. there are some cases it's not ideal though, like if you're interacting with another part of the system that might print something useful to the log, but in those unusual cases you can always run logcat by itself and deal with the noise. Mar 03 08:36:57 Hi! Mar 03 08:37:05 any progaurd experts here? Mar 03 08:53:43 hey, i have an activity the gets data and process it, i've added another activity that shows a graph about the data. i need to pass the data from one activity to the other. the data is in a data structure i've created so im not sure how to push it to the next activity. is there a way to access a variable in that activity? and maybe call a function on it? Mar 03 08:54:21 i mean, accessing the variable of the previous activity from the new activity. Mar 03 08:56:06 use GSON to serialize it to a string, pass it through the Intent as an extra Mar 03 08:57:38 i hate serializing stuff Mar 03 08:57:42 anyone know if intel has a separate add-on site url it maintains for x86 images? Mar 03 08:58:19 i suggest using androvm.org Mar 03 08:58:33 that's a x86 version for virtual box Mar 03 08:59:01 monsti: would prefer to use the standard workflow with x86. Mar 03 08:59:16 i use 99.99% the virtualbox version Mar 03 08:59:19 the emulator stinks Mar 03 08:59:37 virtualbox is still emulated. Mar 03 08:59:41 well i assume you don't code in C nor in assembler Mar 03 08:59:43 no Mar 03 08:59:43 Foo-Wucking Hoo! Finally got a hit on the upload.php. Mar 03 09:00:07 the vbox version runs a native linux - in x86 code no silly arm -> x86 conversation Mar 03 09:00:19 if you need that, the androvm version has intels libhudini inside Mar 03 09:00:41 viran: the correct way is to manage the data in a long-lived object which is accessible to both activities Mar 03 09:01:02 etcetera: intel manages their own images, yes Mar 03 09:01:13 JakeWharton: but do they maintain an add-on site for haxm and images? Mar 03 09:01:18 wouldnt that be nice? Mar 03 09:01:19 :-P Mar 03 09:01:22 google 'intel x86 android images' and you'll find downloads for API 17, 16, 15, and 14 Mar 03 09:01:24 no Mar 03 09:01:52 it's only: download a zip, place in a folder in your SDK. Mar 03 09:01:53 JakeWharton: looking for API 10. Mar 03 09:01:54 not too hard Mar 03 09:01:57 right. Mar 03 09:02:01 found that too, downloading :-) Mar 03 09:02:09 just wondering why they don't maintain a site for the standard workflow. Mar 03 09:02:35 no idea. i only interact with the SDK manager over command line so downloading a zip is actually easier Mar 03 09:12:54 JakeWharton: known issue: http://stackoverflow.com/questions/14913852/cannot-create-2-3-3-intel-atom-avd-userdata-img-not-found Mar 03 09:12:57 this is a good joke i read today. a thief and a low mean guy met. the thief tells the low he'll teach him how to steal if he teach him how to be low and mean. so the thief steals a woman's purse. the thief to the low: now it's your turn. the low screams : A thieeef! a thieeef! :) Mar 03 09:14:46 well i have question regarding eclipse.. can I make the new project setup in the package name field always append "net.superlinux." instead of "com.example." ? Mar 03 09:15:48 Eclipse is open source. Change the value and compile your own version. Mar 03 09:16:11 JakeWharton, so this is hard coded?! Mar 03 09:16:20 no clue, I don't use Eclipse Mar 03 09:16:25 ah ok Mar 03 09:21:44 what is the unknown verification type [9] in proguard? Mar 03 09:32:37 test Mar 03 10:22:23 new API's 16 and 17 revisions or updates i have just got! Mar 03 11:00:45 Hi, is it possible to view results only from selected time range in traceview? Mar 03 11:07:38 this is interesting http://www.eetimes.com/electronics-news/4407897/Android--FreeRTOS-top-EE-Times--2013-embedded-survey Mar 03 11:07:51 wonder what kind of embedded projects these are, though. certainly not realtime Mar 03 11:08:05 or, almost certainly ;) Mar 03 11:23:44 how can I get the assets folder path from AssetManager class? Mar 03 11:45:48 superlinux-hp: i am not sure if there is a physical path Mar 03 11:46:57 monsti, they are using file:///android_asset/arab_jokes.html . the html file is just my own file Mar 03 11:47:19 cos i want to make it work no matter what Mar 03 11:47:32 g00s: there is realtime, and realtime. Mar 03 11:47:34 but i cared not later Mar 03 11:47:40 Hi :) Mar 03 11:47:48 g00s: I want a replacement controller for my microwave Mar 03 11:47:48 hetii, hi Mar 03 11:48:10 g00s: it hanging for a second is not an issue Mar 03 11:48:18 yea.. how can I control my home using my android?! Mar 03 11:48:30 that's cool Mar 03 11:48:33 get a wife Mar 03 11:48:34 :) Mar 03 11:48:35 call her Mar 03 11:48:45 monsti, yea much better! Mar 03 11:48:56 via android ;) Mar 03 11:48:57 I need to have in my application input field with auto complete functionality. What can i use for that ? Mar 03 11:49:22 so when i will type for eg 3 letters then in background it should query my server and fill the rest Mar 03 11:49:38 i'll add that to the home control like the answering machine.. would be cool Mar 03 11:49:41 LOL Mar 03 11:50:14 monsti, with a woman answering you in a sexy voice Mar 03 11:50:16 :) Mar 03 11:50:52 this machine can make riots! lol Mar 03 11:52:13 superlinux-hp: remember android@home :) lol Mar 03 11:52:34 yes Mar 03 11:53:16 g00s, that robot would be my wife! LOL! Mar 03 11:53:25 less hassels Mar 03 11:53:54 and watch football as i like! :) Mar 03 11:55:58 superlinux-hp: why only one? Mar 03 11:56:09 you can have 3.600.000.000 Mar 03 11:56:40 na! like the quran says! you can't be just but to one after all! LOL! Mar 03 12:08:01 what we really need are those helpers bots from farscape equipped with android to rove around the home Mar 03 12:14:10 Hello, I have a "multiple choice" list view, but when simple clicks are performed on view items, they are selected (checked) - I only want to select items when a long press is performed. Is there a decent way to preserve the click handling of the ListView, while not performing a selection? Mar 03 12:14:33 I came up with this: http://pastebin.com/4Ls5BwvJ Mar 03 12:14:50 but I'd like to avoid hacking Mar 03 12:15:39 or copy pasting AbsListView code, for that matter Mar 03 12:16:26 ALso it's a pretty strange default behavior in my opinion: http://pastebin.com/7VnmyExz (line 13) Mar 03 12:16:51 that's taken from ListView class Mar 03 12:18:57 <__esz> http://stackoverflow.com/questions/15174276/android-animating-switching-between-activities-windows-order any help would be really appreciated! :) Mar 03 12:37:05 I'm using the Google Maps API v2, can I feed it a KML file somehow? Mar 03 12:37:26 my KML file is 25MB and has 33,000 entries Mar 03 12:40:19 great after all that xcode still doesn't want to see it Mar 03 12:49:38 weird had to remove the reference to the file Mar 03 12:49:41 to get it to work Mar 03 13:14:27 man Mar 03 13:14:31 I hate interface design Mar 03 13:16:27 Hello, All, . I need little help. I wasted my 5 hours and still not able to figure out what is wrong with this async task. Any help would save my life. http://www.pasteall.org/40174/lua Mar 03 13:17:38 Thsi is my error log: java5 Mar 03 13:17:41 Now I´m curious in the situation you have worked yourself in where your life is at state. Mar 03 13:17:45 http://www.pasteall.org/40175/java5 Mar 03 13:17:50 stake* Mar 03 13:18:33 joozey c'mon.. it was a hyperbole but problem is real Mar 03 13:18:43 *joozey Mar 03 13:20:04 Although, without this getTwitter function code workds fine. But i want to call it that way as per marakana tutorial. Mar 03 13:20:34 seems to be that java.lang.NullPointerException: println needs a message Mar 03 13:20:42 that´s interesting Mar 03 13:21:20 Hello I have been experiencing 3G toggling (on/off) fault. Whenever I don't use the phone more than a 1-2 hours (deep sleep I guess) I cannot toggle 3G to be on. What might be the cause ? Mar 03 13:21:20 My device is : HTC Desire Z/G2/Vision and this problem occurs on every single cyanogenbased rom. Sense based roms looks more stable, didn't experience the problem for a day testing. Mar 03 13:21:20 Detailed explanation: https://jira.cyanogenmod.org/browse/CYAN-251 Mar 03 13:22:12 sahilsk1, did you try testing if statuses[0] contains a value before passing it to the updateStatus? Mar 03 13:22:30 yeah.. it does contain string... Mar 03 13:23:03 does getTwitter() return an object? Mar 03 13:23:42 hmm.. let me add this check too Mar 03 13:24:18 if it breaks at the check, you know jApp has no object Mar 03 13:24:57 DeWe: go to #android-root Mar 03 13:24:59 you´re making it in the constructo though Mar 03 13:25:00 or #android Mar 03 13:25:34 Joozey see the constructor. onCreate((.. I've initiliased it jAPP there Mar 03 13:25:55 timroes: Thanks. Mar 03 13:26:36 Yes, I said that :) Mar 03 13:27:15 Joozey: no luck. Mar 03 13:27:16 well, start at the source and check for every method call if the object exist at that point Mar 03 13:27:18 still the same error Mar 03 13:27:23 nullpointer shouldn´t be too hard to solve Mar 03 13:28:52 Joozey you know what i initialize jApp inside async task. let see what happen Mar 03 13:29:13 yes Mar 03 13:29:32 then break the getTwitter in two lines Mar 03 13:29:38 catch it in the twitter object Mar 03 13:29:57 see if the exception occurs at a more specific line Mar 03 13:30:02 hi Mar 03 13:30:12 you guys know that there is something called debugging? Mar 03 13:30:17 Joozey i show you my JTwitterApp class too. it's the main class. Mar 03 13:30:30 http://www.pasteall.org/40176/java5 Mar 03 13:30:34 sahilsk1: the problem is inside your JTwitterApp.getTwitter line 48 Mar 03 13:30:37 i have question about urlencoded Mar 03 13:30:50 sahilsk1: Log.d("Error", exgetMessage()); Mar 03 13:31:01 some exceptions don't contain a message Mar 03 13:31:09 timroes, nah :P the challenge is to BE the debugger Mar 03 13:31:17 especially if they just wrap up other messages, so you have an exception there withotu a message Mar 03 13:31:41 you try to pring out Log.d("Error", ex.getMessage()); what in that case is Log.d("Error", null); Mar 03 13:31:47 and you cannot pass null to Log Mar 03 13:32:34 my app is sending cariage return to a server when using urlencoded Mar 03 13:32:36 I remove that line, timroes...wait and let me recompile Mar 03 13:32:56 can printStackTrace() contain null? Mar 03 13:33:10 it wont throw you that exception anymore, but still will fail, since you have some exception in that method Mar 03 13:33:24 that actually should already be printed out to logcat right before the null pointer exception Mar 03 13:33:27 my app is sending 7c82d94c-cfcb-4a44-856c-809141848453\r\n0\r\n\r\n' instead of 7c82d94c-cfcb-4a44-856c-809141848453 Mar 03 13:33:53 http://www.pasteall.org/40177/java5 Mar 03 13:33:59 in fact it was printed out, if you watch the log you pasted Mar 03 13:34:01 i am using urlencoded , what should be the problem? Mar 03 13:34:09 null pointer exception at line 36 in your getTwitter Mar 03 13:34:20 most surly because pref is null Mar 03 13:34:41 preference is with 1 r Mar 03 13:34:52 just saying Mar 03 13:35:07 help please Mar 03 13:35:39 the nullpointerexception doesn´t occur in the onCreate though Mar 03 13:36:00 at pref.registerOnSharedPreferenceChangeListener Mar 03 13:36:29 yeah Mar 03 13:36:33 I think twitter Mar 03 13:36:37 because you set it to null Mar 03 13:36:40 you can show me your manifest, but i guess i already know whats your problem Mar 03 13:37:03 sahilsk1: you extend Application and I guess you never define in your manifest, that this application should be used for your application Mar 03 13:37:06 er wait Mar 03 13:37:08 so onCreate actually is never called Mar 03 13:37:20 you just call getTwitter on the regular JTwitterApp class Mar 03 13:37:54 who can help Mar 03 13:37:54 yep Mar 03 13:37:55 me Mar 03 13:37:58 timroesit's definied at the main application in the manfiest file Mar 03 13:38:10 paste your manifest please Mar 03 13:38:13 ok Mar 03 13:39:03 http://www.pasteall.org/40178 timroes Mar 03 13:39:30 line 16:         android:name="com.cronexus.jtwitterupdater.JTwitterApp" Mar 03 13:40:07 hmm looks okay Mar 03 13:40:23 is the preference object invalidated when a onSharedPreferenceChanged occurs? Mar 03 13:40:24 set a breakpoint in the onCreate method of the application and see if it will be reached and what happens to your pref object Mar 03 13:40:56 does anybody experience this too? I rename a file in /res/raw with eclipse+recent adt and it always renames all multiple files in that folder on its own Mar 03 13:41:08 timroes i think problem it with prefs... context might be wrong . Let me pass "this" Mar 03 13:41:21 ah yeah :D Mar 03 13:41:33 getAppklicationContext inside onCreate of application might not be the best id Mar 03 13:41:36 idea* Mar 03 13:41:49 :-) Mar 03 13:42:30 C0br4: thats called a feature Mar 03 13:42:33 guys i have a problem when sanding data to the server Mar 03 13:42:34 see also cahngelog for newest adt Mar 03 13:42:36 it's killling..... x-( x-( x-( Mar 03 13:42:41 "Added support for resource rename refactoring. Renaming a resource XML file, drawable icon, an R. field name or ID in the layout editor invokes a refactoring routine to update all resource references." Mar 03 13:43:09 my app is sending 7c82d94c-cfcb-4a44-856c-809141848453\r\n0\r\n\r\n' instead of 7c82d94c-cfcb-4a44-856c-809141848453' Mar 03 13:43:14 updated jtwitterApp class : http://www.pasteall.org/40179/java5 Mar 03 13:43:37 :( Mar 03 13:44:07 timroes: very handy indeed. i just love git a bit more for rescuing me from that Mar 03 13:44:11 sahilsk1: passing this in constructor might also not be the best idea, but try it. I would do a check in getTwitter if pref == null instantiate it Mar 03 13:44:40 C0br4: I don't use eclipse, but might there be an option (or other action, context menu whatsoever) to rename only the single file? Mar 03 13:45:35 guys who can help me? Mar 03 13:46:11 i use F2. its pretty generic eclipse feauture. i didn't even know a plugin can hook this. i didn't found any settings for that :/ Mar 03 13:46:23 :o Mar 03 13:49:36 now eclipse complains that the file in /res/raw have no file extensions. they get stripped away anyway. i don't get it Mar 03 13:56:25 timroes confirmed. Something is prevent prefs from initializing. Mar 03 13:56:54 prefs is throwing nullPOinterException... Question is Why? Mar 03 13:57:55 sahilsk try initializing it inside your getTwitter method if its null and not in onCreate Mar 03 13:58:26 ah no sorry Mar 03 13:58:33 i am still tired, wonder how i've overseen this.. Mar 03 13:59:10 you generate a new application object inside your action, but you initialize pref in the one created by android from your manifest file Mar 03 13:59:14 timroes : if( this.prefs == null) Mar 03 13:59:15 Log.d("null is prefs", "yes it'is nulll"); Mar 03 13:59:18 no luck Mar 03 13:59:34 if you want to access prefs that you initialized in your oncreate method, you should also acecss the application object Mar 03 13:59:43 and not create a new one, that ofc never has its oncreate method running Mar 03 13:59:54 you just have two com;pletely different objects there Mar 03 14:00:23 you might want to use getApplication() method in your activity object to get the application object you need Mar 03 14:01:28 anyway, i've tried init prefs inside getTwitter() method. It's still giving nullpoinerexception Mar 03 14:01:43 yeah Mar 03 14:02:03 because you are not working inside the application object Mar 03 14:02:11 but just inside an obejct you created yourself Mar 03 14:02:43 it has nothing to do with the current application object that your app is using, it only shares the same class Mar 03 14:03:17 JTwitter jp; jp = ((JTwitterApp)getApplication() ); Mar 03 14:03:23 is that what you want me to try? Mar 03 14:03:25 yeah Mar 03 14:04:47 you know what timroes , if you were here before me i would have kissed your cheeks....even am straight Mar 03 14:05:14 Do me one more favour and please explain me why didn't my earlier steps work? Mar 03 14:06:16 Tricky setup with the manifest Mar 03 14:06:20 very easily overlooked Mar 03 14:06:29 I inherritted my JTwitterApp class from App and defined it in the manifest file as the main application. Its' create method should be calling. Even then i'm init prefs again inside getTwitter(). As per OOPS norms it should get instantiated. doesn't it? Mar 03 14:08:17 ?? Mar 03 14:09:13 timroes ok, np. I'll google myself Mar 03 14:11:45 how do I properly version-control an android app project being developed in eclipse? Mar 03 14:12:02 that is to say, what among the boilerplate that Eclipse generates do I actually need to version-control Mar 03 14:12:16 and how do I tell people how to build what I do have if they clone my repo? Mar 03 14:12:44 github has an android option for the gitignore file Mar 03 14:13:27 it ignores gen and lib folder, .project and .classpath (but if you do that, eclipse doens´t recognise the project as an android project), and some other files Mar 03 14:14:33 sorry, bin/ and gen/ folders Mar 03 14:14:59 it excludes .apk, .ap_, .dex and .class files, and local.properties Mar 03 14:18:40 Joozey where do I find that .gitignore? Mar 03 14:19:17 github automatically generates it when you create a new repo Mar 03 14:19:25 on the github site Mar 03 14:20:11 I suppose you can find examples on the internet Mar 03 14:20:44 oh, hm Mar 03 14:20:45 makes sense Mar 03 14:21:06 thanks Mar 03 14:30:00 java.lang.ClassCastException: [...] backgroundImage cannot be cast to android.widget.TextView at line 80. But line 80 contains (TextView) findViewById( R.id.name ); Which is a textview. Mar 03 14:30:24 I got this error a lot when I make the interface, then start to code, then only hierarchically alter the interface Mar 03 14:31:13 Is this a known bug, or is it just me? Mar 03 14:32:49 Joozey: sometimes eclipse needs a clean to re-gen R ids Mar 03 14:33:04 sometimes = many times Mar 03 14:33:06 You know that little GPS satellite icon that appears in the top left of the phone while the GPS is searching etc? How can i access this status? Mar 03 14:38:13 StingRay_, hmm yeah, I guess the alternative is frequent cleans on unwanted moments Mar 03 14:38:30 What happens is that the R.java is not updated with the new memory addresses? Mar 03 14:39:57 A clean works at least :) thanks Mar 03 14:43:26 are there any statistics thay say when people hold the device landscape, whether they turn it clockwise or counterclockwise? Mar 03 14:44:26 xorgate: doubt it and most would need more than that to be of use Mar 03 14:44:45 eg, have to have a control group aimed at a type of user Mar 03 14:44:55 that or can i determine more than landscape/portrait, as in which side is pointing left Mar 03 14:46:41 xorgate: yeah screen orientation is 90 180 270 etc Mar 03 14:47:12 how can i tell? Mar 03 14:47:37 getActivity().getWindowManager().getDefaultDisplay().getRotation() Mar 03 14:47:44 maybe a shorter path to that Mar 03 14:47:46 :) Mar 03 14:48:14 returns Surface.ROTATION_),90,270 Mar 03 14:48:17 etc Mar 03 14:48:18 ah cool Mar 03 14:48:19 thanks Mar 03 14:48:55 I really should learn sql, I spend hours pissing around Mar 03 14:49:03 i was using getConfiguration().orientation Mar 03 14:49:06 getting annoyed now, which is really unlike me Mar 03 14:53:24 StingRay_ use a NoSQL solution - it's all the rage these days ;p Mar 03 14:55:35 atm seems preferable to learning something of which I was not built to learn Mar 03 14:55:36 :) Mar 03 14:57:11 basic SQL is pretty basic Mar 03 14:57:23 shouldn't take much effort to learn Mar 03 14:57:26 sql>nosql Mar 03 14:57:51 is that a generic truth Mar 03 14:57:55 like bacon>nobacon Mar 03 14:58:04 Chainfire: well what I'm wanting to do seems simple, but all the solutions seem to point to something rather complex Mar 03 14:58:11 using inner join Mar 03 14:58:18 or left join rather Mar 03 14:58:23 possibly the best analogy ever Mar 03 14:58:25 then either you are not finding the right solution, or you underestimate the complexity of what you want ;) Mar 03 14:58:31 hi Mar 03 14:58:38 Chainfire: could be both Mar 03 14:59:02 what to do to avoid carriage return when using chunks Mar 03 14:59:09 ? Mar 03 14:59:11 I'm having a problem with checking a string for a null value & returning another string if it is indeed null. The pastebin is http://pastebin.com/AcgNUNtV Any help would be greatly appreciated as I'm still quite new to coding. Mar 03 14:59:23 StingRay_ well tbh my SQL is rather rusty, I used to do it 8 hours a day, but left that life 10 years ago. But if you're talking about inner joins, you just want to combine the info from two tables ? Mar 03 15:00:04 Chainfire: well no Mar 03 15:00:16 it would use same table twice Mar 03 15:00:26 Rescue9: String s; boolean stringIsNull = (s == null); Mar 03 15:01:01 why are you doing s.equals(-1) ? Mar 03 15:01:14 I thougnt -1 =null Mar 03 15:01:15 * Chainfire scratches head Mar 03 15:01:16 no Mar 03 15:01:18 0 = null Mar 03 15:01:21 nope Mar 03 15:01:25 in some languages Mar 03 15:01:25 <- still noob Mar 03 15:01:26 lol Mar 03 15:01:31 well not necessarily Mar 03 15:01:42 it's not necessarily the case that the integer value 0 is the same thing as null Mar 03 15:01:55 Hail_Spacecake> hence the "in some languages" Mar 03 15:02:34 it's possible that you don't even need this check, depending on whether Double.parseDouble() will handle a null argument correctly Mar 03 15:02:51 I don't know if it will offhand you'd have to check the java documentation for the Double class Mar 03 15:03:01 StringRay_ so... alias the table names ? Mar 03 15:03:15 Chainfire: http://sqlfiddle.com/#!2/f859c/1 Mar 03 15:03:24 you see what I'm wanting with that Mar 03 15:03:29 Hail_Spacecake: naw... Double.parsedouble doesn't handle null well as the value is needed for a calculation later on down the code. Mar 03 15:03:47 the calculation causes FC of the app if a null value is entered Mar 03 15:04:01 MSG to be the latest by 'time' Mar 03 15:04:32 Rescue9 well then probably what you want to do is first set the string value of basePayRate to some String variable Mar 03 15:04:50 so, String basePay = basePayRate.getText().toString(); Mar 03 15:05:03 and then test if that value is null, which you do with if (basepay == null) Mar 03 15:05:28 or equivalently test if it's *not* null by if (basepay != null) Mar 03 15:05:33 Hail_Spacecake: there are chances for the object to be null at getText() Mar 03 15:05:38 it is set. However, if the user erases the value in the gui and then tries to calculate it FC's. that's why I need to recheck the values at calculate. Mar 03 15:05:38 and then do whatever further computation you need to do Mar 03 15:06:30 ok. I'm getting more ideas now. I was hitting a wall when I tried to do it earlier. Mar 03 15:06:36 This info helps a lot. Thanks Mar 03 15:07:01 Can i put a ListView into a scrollView? :D Mar 03 15:07:15 styler2go: try it Mar 03 15:07:17 :) Mar 03 15:07:35 i tried, not worked. now i am not sure if i made something wrong or if its impossible Mar 03 15:07:36 hmm, eclipse cant seem to find an interface called GpsStatus.Listener Mar 03 15:07:39 any ideas? Mar 03 15:08:37 the listview is not as high as ist content Mar 03 15:10:24 styler2go: do a search on SO Mar 03 15:10:33 listView inside scrollView Mar 03 15:12:09 ok found a good idea... Mar 03 15:13:56 Eclipse cant find this interface in my SDK: GpsStatus.Listener http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver am I missing something? Mar 03 15:15:18 Chainfire: did you see what I'm wanting ? Mar 03 15:15:47 yese Mar 03 15:15:50 * Chainfire is thinking Mar 03 15:15:55 can I stop slqlite from recycling ids ? Mar 03 15:15:57 I know I've done this exact thing long ago Mar 03 15:16:05 cause that would do it :) Mar 03 15:16:13 no idea Mar 03 15:16:35 Chainfire: reading this ATM http://stackoverflow.com/questions/1313120/retrieving-the-last-record-in-each-group Mar 03 15:17:04 but beyond my knowledge to understand currently, hence why I said h8 learning sql stuff :) Mar 03 15:17:19 and dont want to do something I dont quite understand Mar 03 15:17:45 oh thats a good solution ! Mar 03 15:18:02 if you just want the last one .. Mar 03 15:18:09 or do you also need to know how many messages, and such ? Mar 03 15:18:24 yes Mar 03 15:20:21 ok got it Mar 03 15:20:26 how do you link this thing ? Mar 03 15:20:45 just paste url i think Mar 03 15:20:54 worked when I did it for you ? Mar 03 15:21:58 ok actually this result is not good Mar 03 15:22:09 last message is good, numberingroup (etc) not Mar 03 15:22:34 really odd I'm reading that sqlite should not re-use ids, crap maybe I set may db up wrong Mar 03 15:24:57 arses forgot autoincrement for some reasons Mar 03 15:25:50 theres also something wrong this fiddle, lol Mar 03 15:27:43 Chainfire: dont say that Mar 03 15:28:22 actually cause of group, can do it even if ids are sequential either Mar 03 15:28:27 arses Mar 03 15:30:10 Hmmm.. StingRay_ ... any idea why i get this exception? android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams in line 3: http://pastebin.com/k3HSFgrR Mar 03 15:31:32 well it's just saying that the layoutParams type of the child view are not of type for the parent Mar 03 15:32:14 as in AbsListView.layoutParams != LinearLayout.LayoutParams Mar 03 15:32:40 http://pastebin.com/nk38vWxp this is my layout.. Mar 03 15:32:56 but, how can i change this that it works? Mar 03 15:33:01 ok that maybe a little odd then Mar 03 15:33:04 clean Mar 03 15:33:29 ah yeah... the very good thing clean Mar 03 15:34:17 the point of clean being very good does not outweigh the fact it's needed lots and why it's needed lots! silly eclipse Mar 03 15:34:42 hmm.. no effect Mar 03 15:34:47 stillt he same problem... Mar 03 15:36:03 its working if i dont use the function addHeaderView Mar 03 15:36:17 there ya go then Mar 03 15:36:37 you layoutParam type for whatever you have in your header is not right for the scroll Mar 03 15:36:48 scroll/absListView Mar 03 15:37:34 and if i read the documation it says "NOTE: Call this before calling setAdapter. This is so ListView can wrap the supplied cursor with one that will also account for header and footer views." Mar 03 15:37:38 and i am not doing that Mar 03 15:37:41 thank you sting! Mar 03 15:37:43 is it possible to change the menuItems during runtime programatically? Mar 03 15:38:10 oh no Mar 03 15:38:14 wait. what.... Mar 03 15:41:21 Hi guys, I have an issue with cursoradapter on API <=10. When calling notifyDataSetChanged, convertView returned is not the previous one (first one row is the previous last row). Do you also have this problem? Mar 03 15:42:50 JulienDev: nope, but convertView is a recycled view, not guaranteed to have your data on it ? Mar 03 15:43:39 does the adapter just look for same viewType and return it in convertView ? Mar 03 15:43:57 then you still need to populate it with data from the object at that position ? Mar 03 15:44:21 <--- more an artist hence the question marks at the end of my sentences Mar 03 15:44:24 :) Mar 03 15:44:48 StingRay_: My goal is to load an image inside the row with a fade animation Mar 03 15:45:06 oh ok Mar 03 15:45:22 then you need to track load state and animation state on each object ? Mar 03 15:45:24 when I receive SCROLL_STATE_IDLE event, I'd like to load more informations Mar 03 15:45:43 but I don't want to see the animation again Mar 03 15:45:58 JulienDev: like i said, animation state Mar 03 15:46:08 played, playing, notstarted Mar 03 15:46:09 etc Mar 03 15:46:11 otherwise the image is blinking when scrolling Mar 03 15:47:00 well actually you probably just need to track 2 states animplayed, animnotplayed Mar 03 15:47:39 JulienDev: I do that, kinda in one of my adapters Mar 03 15:47:46 I think Mar 03 15:47:57 I'm using this method http://android.skennedy.ca/?p=8 so where should I store those states? Mar 03 15:48:26 well from that example the viewHolder would be obvious choice Mar 03 15:48:38 other than that a sparseArray maybe Mar 03 15:49:45 hmmm Mar 03 15:51:36 Do you have a source example of your adapter? Mar 03 15:52:18 JulienDev: it's in my experimental base adapter, thats like 3000+ lines Mar 03 15:52:35 so not great to really find/look etc Mar 03 15:52:43 oh yeah :D Mar 03 15:53:54 dont need an example just to store a flag though Mar 03 15:54:06 Do you have an idea why convertView are not returned in the same "order"? Mar 03 15:54:18 thats the way it works Mar 03 15:54:28 looks for cache view of same type Mar 03 15:54:31 structure Mar 03 15:54:46 you still need to set data on it Mar 03 15:55:19 as in setting your image Mar 03 15:55:28 alright guys, I'm going to take another stab at this listview from server thing again. wish me luck Mar 03 15:55:59 this time I'm going to do it from scratch, just insert a listview into layout use asynctask to pull data Mar 03 15:56:18 JulienDev: swap ya, you sort my silly simple yet confusingly complex sql out and I will sort your adapter Mar 03 15:56:19 :) Mar 03 15:57:23 :) Mar 03 15:57:41 well if you pastebin your adapter can probably have a look neways Mar 03 15:58:37 whats the source of the images ? http, file, drawable ? Mar 03 15:59:17 hi! in syria google play is banned by google. and tor is needed. it says i can install firefox for android, route to tor. can i then download from google play? Mar 03 15:59:23 Here is my adapter http://www.pastebin.mozilla.org/2191806 Mar 03 15:59:31 I load images from http Mar 03 15:59:54 This is a news app Mar 03 16:01:04 And here is my ArticleView http://www.pastebin.mozilla.org/2191807 Mar 03 16:01:35 I'm using Universal Image Loader to manage image downloads and cache Mar 03 16:01:48 i want to be able to answer to user comments :( Mar 03 16:03:02 JulienDev: cant help you with all that I'm affraid, I only ever use baseAdapter now, with cursorLoaders etc Mar 03 16:03:11 that looks a little overcomplicated to me Mar 03 16:03:22 StingRay_: hehe Mar 03 16:03:36 At our school, net send to entire internal network was enabled, and then we found out. Mar 03 16:04:11 including teacher pc´s :P Mar 03 16:04:32 oh Mar 03 16:04:34 wrong channel Mar 03 16:04:35 :D Mar 03 16:04:46 Maybe I should call an ArticleView method like "setExtra" on every articles views instead of calling notifyDataSetChanged Mar 03 16:05:21 It could avoid to go throught bindView() again Mar 03 16:06:11 but how can I access the setExtra method for every rows? Mar 03 16:06:18 well i would think you would need artivleView to have a tag in constructor to know what pos it is Mar 03 16:07:09 but I've never had extended a view to manage it's own data inside an adapter Mar 03 16:07:14 was always the adapters job Mar 03 16:08:36 by using a tag I'm scared that the articles views could be in a random place Mar 03 16:09:49 well in your setData just make sure you set all data required Mar 03 16:10:15 cause i take it your not if(getuuid) etc Mar 03 16:10:40 Is it possible to get a listview element for a given position? Mar 03 16:10:55 getChildAt Mar 03 16:10:58 screen relative Mar 03 16:11:25 so you would also need to get the firstVisible to work out the position index Mar 03 16:11:43 if thats what you mean Mar 03 16:11:56 in the scrollStateChanged I can use getFirstVisible and getLastVisible Mar 03 16:12:18 and getChildAt for the elements shown getLastVisible - getFirstVisible Mar 03 16:12:38 cast it to (ArticleView) getChildAt(position)).setExtra() Mar 03 16:12:53 and do you check that the ArticleView that you have is actually the same as the position your at ? Mar 03 16:13:43 in bindView i mean Mar 03 16:13:43 yeah I check it, and this is how I noticed the issue on API <= 10 Mar 03 16:13:51 where ? Mar 03 16:13:56 ah Mar 03 16:14:25 articleView setData, cant see it Mar 03 16:14:27 bindView is by getView automatically and it returns the good position Mar 03 16:14:43 *called by Mar 03 16:15:32 the position is ok but the convertView returned is not the previous one Mar 03 16:15:40 yes Mar 03 16:15:41 ok Mar 03 16:15:43 I'm confused, it's not easy to explain :) Mar 03 16:15:45 how about htis Mar 03 16:15:47 this Mar 03 16:15:52 in newView Mar 03 16:16:07 return new ArticleView(getActivity(), currentPositionOfCursor); Mar 03 16:16:23 sore that position in your new articleView Mar 03 16:16:31 store* Mar 03 16:16:36 then in bindView Mar 03 16:16:59 articleView.setData(article, mScrollState, cursorPosistion); Mar 03 16:17:18 if the cursor index dont match, set all the data Mar 03 16:17:24 would that not work ? Mar 03 16:17:58 It's what I made but in a different way Mar 03 16:18:19 using cursor index ? Mar 03 16:18:28 yes Mar 03 16:18:33 any android-dev helpers in the house? Mar 03 16:18:47 JulienDev: I maybe blind, I dont see it Mar 03 16:18:58 also I only just woke up and still need a shower Mar 03 16:19:33 Yeah, I don't store the position but the itemAtPosition Mar 03 16:19:47 This is the same Mar 03 16:20:24 is it ? Mar 03 16:20:29 what costs a google IO ticket? Mar 03 16:20:29 so inside the setData I check if the items are the same with getuuid() Mar 03 16:23:26 hmm, well I've never used adapters like that ... so Mar 03 16:24:18 always done a quick check if position/view valid but index tag Mar 03 16:25:01 spobat: $900 if you can get one Mar 03 16:25:23 funkbox, is there a cheaper one for students? Mar 03 16:25:35 yes Mar 03 16:25:36 $300 i think Mar 03 16:26:04 very good :D Mar 03 16:26:12 my app keeps crashing, when I switch tabs. here is my code http://pastebin.com/upEGm0Qa Mar 03 16:26:15 then I want one. Mar 03 16:26:16 :D Mar 03 16:26:21 I also put the logcat wehre it crashes Mar 03 16:26:42 I feel like I'm pointing to a wrong layout somewhere, plese help? Mar 03 16:27:14 StingRay_: http://dl.dropbox.com/u/23108587/convertview.png Mar 03 16:27:27 An image is better than words :) Mar 03 16:27:55 this is what happens with the convertViews when calling notifyDataSetChanged Mar 03 16:28:32 Maybe it only happens when using cursoradapter Mar 03 16:28:44 I've never noticed it with a baseadapter Mar 03 16:29:26 StingRay_: As you see the row on the center keeps its convertView Mar 03 16:29:37 so this one does not blink Mar 03 16:35:50 notifyDataSetChanged is for when the data has changed that supplies the source though, in your case the cursor ? Mar 03 16:36:05 causing the cursor to re-eval Mar 03 16:36:43 Yeah you're right I don't use it as I should Mar 03 16:36:47 so are you not informing the cursor that, the origional data that it fetched/tied to is not right Mar 03 16:38:00 Rob|boR it's just a nullpointer Mar 03 16:38:15 a nullpointer? Mar 03 16:38:19 your asking null to do something Mar 03 16:38:30 some object that your using is null Mar 03 16:39:16 I was looking through my code, realized I don't have an area where i specify the listview name Mar 03 16:40:11 StingRay_: I'll try something else than the notifyDataSetChanged Mar 03 16:40:26 well I dont understand why your using that neways Mar 03 16:40:39 JulienDev: and is a custom view type really needed ? Mar 03 16:40:56 seems like just a very simple layout for your rows Mar 03 16:41:02 so the layout seems fine? Mar 03 16:41:43 I use a custom view just to make the adapter much simpler as explained in the blog post I sent you Mar 03 16:43:10 JulienDev: maybe it's just me, not being a coder, but that would over complicate things for me :) Mar 03 16:54:29 Gah! Postponing making my custom listview :/ Mar 03 16:54:49 Mega1mpact: yeah i did this too Mar 03 16:54:53 a treeview Mar 03 16:55:13 I just hate designing/making UI stuff Mar 03 16:55:33 well Mar 03 16:55:40 I can relate Mar 03 16:55:40 we pay a guy who makes pixels Mar 03 16:55:48 then i xmlify that in android Mar 03 16:56:25 I just put all my energy and time in this: http://www.joozey.nl/projects/spacetrader3k/interfacemockup1_dev0.3.jpg Mar 03 16:56:33 and it still looks chaotic and I dont know Mar 03 16:56:34 myeah it is unfortunate design skills do not easily translate into interface implementation skills Mar 03 16:57:19 Joozey: dont look chaotic Mar 03 16:57:37 just looks like you have the worlds biggest array of pallet clashes Mar 03 16:57:45 as in non-complimentary Mar 03 16:57:45 :D Mar 03 16:57:48 Joozey: you need some eye candy and anchor points Mar 03 16:58:01 I´m horrible at choosing colours :P Mar 03 16:58:24 Joozey: well as an example, purple and green Mar 03 16:58:29 not all too good Mar 03 16:58:30 thats why there are texture, pixel and 3d model guys in a 3d movie ;) Mar 03 16:59:10 Chainfire: did you give up on that sql thing ? Mar 03 16:59:11 It feels fine for me Mar 03 16:59:17 I guess that´s the problem Mar 03 16:59:18 :P Mar 03 16:59:24 coder != designer :0 Mar 03 16:59:29 Joozey: nl ? Mar 03 16:59:31 programmer art! Mar 03 16:59:52 Yup Mar 03 17:00:06 Joozey: most programmers just DO rather than think though, at such things Mar 03 17:00:10 Joozey: dutch android user group is having a meeting on 'design' in a few weeks, might be interesting Mar 03 17:00:25 there is a dutch android group? Mar 03 17:00:32 www.dutchaug.org Mar 03 17:00:45 been to a few meetings Mar 03 17:00:46 I would be delighted to meet some more android devvers Mar 03 17:00:53 and, are they nice? Mar 03 17:00:55 last week we had a code puzzlers meetup Mar 03 17:01:06 sure real friendly ;) Mar 03 17:01:27 http://pastebin.com/2JEbjx1z what can i do to fix this? :-( Mar 03 17:01:39 Sounds great Mar 03 17:01:58 styler2go: dont release it ? Mar 03 17:02:04 or re-bind it ? Mar 03 17:02:06 :) Mar 03 17:02:20 I met some hobbyists, but nobody on professional level or putting half their free time in it. Mar 03 17:02:26 is there a function to test if its released? :-/ Mar 03 17:02:44 styler2go: your the one using the api. I have no idea Mar 03 17:03:04 so the api needs to have this function? damn Mar 03 17:03:21 https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/package-summary Mar 03 17:04:15 the tickets are not cheap though Mar 03 17:04:27 release(): "after calling this method any further interaction with this YouTubePlayer is forbidden. A new instance must be created to re-enable playback." Mar 03 17:04:33 oh, that´s for the mdevcon Mar 03 17:04:46 hello everyone...I have a quick question. I've just puvlished my first app on my current android merchant account but it appears I can't find it. I've tried the direct url's for both the developer page and the app page, but i was not successfull Mar 03 17:04:52 i neever call this function Mar 03 17:05:02 Joozey: yeh that meeting isn't in the calendar yet Mar 03 17:05:10 bogo10: just, meaning a few minutes ago? Mar 03 17:05:16 30 Mar 03 17:05:18 30 min Mar 03 17:05:32 so I should wait more? :) Mar 03 17:05:58 yes, probably - give it at least a couple of hours before you panic :) Mar 03 17:07:37 the way to find it directly is to use the url: play.google.com/store/apps/details?id=MY_PACKAGE_NAME Mar 03 17:07:38 right? Mar 03 17:07:41 okay so I started the listview in fragement from scratch, it works Mar 03 17:07:42 right Mar 03 17:07:42 or am I doing it wrong Mar 03 17:08:16 http://developer.android.com/distribute/googleplay/promote/linking.html Mar 03 17:08:18 now my question is, how would I be able to pull data from a server and populate the list Mar 03 17:08:57 Leeds: thanks Mar 03 17:09:03 pleasure Mar 03 17:09:12 Leeds: any good at sql ? Mar 03 17:09:24 StingRay_: competent at best... Mar 03 17:09:31 arses Mar 03 17:09:36 not sure that will cut it Mar 03 17:09:37 :) Mar 03 17:10:26 Hi. I'm trying to use bluetooth tethering between my nexus 7 and nokia n9. I'm using BlueVPN. The connection is established fine and I can use Chrome and some other apps. But, there are still some apps that probably checks for wifi or modem connection, and if there's no such connection the app will fail. I'm talking about gmail, gapps and other great apps that I wan't to use. Does anyone know any good solution for this? Is ... Mar 03 17:10:34 ... there a app that can "fake" a wifi/modem connection? Mar 03 17:11:05 airikka: wrong channel i think Mar 03 17:11:40 the data is already stored on my server, as json data Mar 03 17:13:37 is it true that you can only run one Async Task at a time? Mar 03 17:14:34 Belacan: no... that is the default behaviour, but you can change it Mar 03 17:14:50 default in 3.0+, I think - maybe 4.0+ Mar 03 17:16:12 I ask because I run an async task on an infinite loop, then stop it with its cancel() method, when i try to execute it again it does not execute Mar 03 17:16:20 and i was wondering if that is why! Mar 03 17:16:41 do i need to destroy it beforehand or something? Mar 03 17:17:04 "AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you need to keep threads running for long periods of time, it is highly recommended you use the various APIs provided by the java.util.concurrent pacakge such as Executor, ThreadPoolExecutor and FutureTask." Mar 03 17:18:29 awwww Mar 03 17:18:39 okay :( Mar 03 17:19:01 its just to make a flashing icon though Mar 03 17:19:21 and it only needs to flash for a few seconds at most Mar 03 17:19:26 Belacan: do that with a repeat animation Mar 03 17:19:53 Can just do that with Handler#postDelayed and toggling visibility or something Mar 03 17:19:54 Great thanks StingRay_ ! Mar 03 17:22:49 thanks for the responses! Mar 03 17:23:12 It's a golden rule in mobile app design to try to make a link look like a button whenever possible? (to better encourage tapping) Mar 03 17:24:16 boytoy: thats a bit off, but also depends on the context Mar 03 17:24:23 tis a designers choice Mar 03 17:25:57 ugh, I really dont want to give up my new adapter just cause I cant do what I want in 1 dam sql query Mar 03 17:26:22 que? Mar 03 17:26:38 well I shifted to a nice base adapter with cursor Mar 03 17:26:43 hmm.. but i thought due to the nature of the touch screen.. and personally i feel sorta uncomfortable tapping on something that doesnt look like a button.. kinda like talking to the wall or something Mar 03 17:26:57 and I cant figure out sql to get what I want Mar 03 17:27:10 but it seems like it should be simple, but isnt Mar 03 17:27:26 I just need to learn tonnes I think :( Mar 03 17:27:36 what do you want to do with sql? Mar 03 17:28:07 well A) learn it Mar 03 17:28:11 and b) http://sqlfiddle.com/#!2/761dd/26 Mar 03 17:28:22 accomplish that having learned it Mar 03 17:29:01 kaneda^: so counted groups with last timestamp msg Mar 03 17:29:31 as in result should be a, item with highest time, 89033 Mar 03 17:29:43 along with the count as in 5 in that case Mar 03 17:30:38 so output would be a, item with highest time, 89033, 5 b, itmen with *, 9453, 2 etc Mar 03 17:31:05 erm, but what's the condition ont he join? Mar 03 17:31:25 as in, where a.name = b.name Mar 03 17:31:26 name Mar 03 17:31:31 yeah would be Mar 03 17:31:46 just learning about JOINS inner/left/right etc now Mar 03 17:31:48 still dont see what's wrong here Mar 03 17:32:04 the MSG Mar 03 17:32:25 needs to come from the grouped row with the highest time Mar 03 17:32:28 as does the time Mar 03 17:32:30 :) Mar 03 17:33:26 are the times supposed to match btw? Mar 03 17:33:28 well time is just max(time) Mar 03 17:33:52 http://sqlfiddle.com/#!2/761dd/29 Mar 03 17:34:19 so MSG in each group needs to be the latest based on time in that group Mar 03 17:35:08 also, you realize that a varchar wont give you time as you want it most likely Mar 03 17:35:25 varchar/char is compared lexicographically Mar 03 17:36:17 http://sqlfiddle.com/#!2/182db/1 Mar 03 17:36:32 StingRay_: a better way to put times into a db would be in a integer form so int or the datetime type Mar 03 17:37:03 yeah that was just playing to try and get the msg based on what i want Mar 03 17:37:17 StingRay_: you dont need the ' surrounding the integers anymore Mar 03 17:37:28 StingRay_: does it work? Mar 03 17:37:41 yeah, but still cant get what I want though Mar 03 17:37:53 need to learn about JOINS I think Mar 03 17:37:57 to do what I'm wanting Mar 03 17:38:00 StingRay_: so you want the items with the highest time? Mar 03 17:38:12 yes Mar 03 17:38:18 grouped also by name and counted Mar 03 17:39:01 StingRay_: name and counted? not name and time? :D Mar 03 17:39:35 you see that paste Mar 03 17:39:44 if you execute it Mar 03 17:40:00 you get a sdfsdgsdfdsf 5 89033 Mar 03 17:40:10 i know Mar 03 17:40:24 I want that to be a tiem with highest time 5 89033 Mar 03 17:40:42 a tiem with highest time 5 89033 Mar 03 17:41:08 b item with highest time 2 9453 Mar 03 17:47:12 omg Mar 03 17:47:19 this youtube api is so hilarrious Mar 03 17:47:31 YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by android.widget.ListView{437fc1a8 VFED.VCL .F...... 796,0-1196,718 #7f05005d app:id/listView1}. Left edge 400 px left of YouTubePlayerView's right edge. . Mar 03 17:47:51 It's crying because i have an overlay on top of it... Mar 03 17:48:10 you are not a YT partner ;) Mar 03 17:49:00 i dont know how to position the elements for landscape so i thought HEY! the Playlist-ListView transparent over the video while not playing Mar 03 17:49:46 its invisible while the video is playing ... Mar 03 17:50:21 styler2go: btw, avoid such transparent layer tricks most of the time, it causes unnecessary slow-down if it's not actually there Mar 03 17:50:54 how could i do a landscape layout with video playback then? if htere is no place? :( Mar 03 17:58:52 karlsve: am I going down the right path with joins ? Mar 03 18:04:40 How can I make a theme that uses a custom font for everything (including a bold version)? Mar 03 18:12:56 hey guys, I need help with understanding how to convert a listadapter adapter into a arrayadapter or vice versa Mar 03 18:13:44 class ListadapterToArrayadapterAdapter Mar 03 18:14:04 I currently have a listview working in my fragment, but it retrieves the values from a string array, and uses the arrayadapter to display it. the tutorial I'm closely following and trying to understand uses a listadapter adapter to update prased json data into the listview Mar 03 18:26:44 my app keeps crashing, says 03-03 13:24:41.934: E/AndroidRuntime(27509): FATAL EXCEPTION: main Mar 03 18:26:45 03-03 13:24:41.934: E/AndroidRuntime(27509): android.os.NetworkOnMainThreadException Mar 03 18:26:45 03-03 13:24:41.934: E/AndroidRuntime(27509): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1118) Mar 03 18:29:53 That Exception looks pretty self explaining to me. Mar 03 18:30:10 because I didn't use asynctak? Mar 03 18:30:12 task* Mar 03 18:30:57 For example, yes. Mar 03 18:31:13 I have allows android with permissions for internet Mar 03 18:31:30 allowed* Mar 03 18:32:12 it's not allowed to do network on main thread because it stalls the UI Mar 03 18:32:43 http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html Mar 03 18:33:39 so I need to convert implement asynctask into my code for it work properly? Mar 03 18:33:47 that's an option Mar 03 18:34:13 may I pastebin my code so you guys can advise me of the best option? Mar 03 18:34:27 ask forgiveness not permission Mar 03 18:35:57 ok so I have two classes and one layout file http://pastebin.com/52rVURSZ Mar 03 18:36:52 this time i took the codes through baby steps, so I'm proud of that :) Mar 03 18:37:16 working from something I knew works from vogella, and adapting to that Mar 03 18:37:18 what you want is a task that fetches the data, then tells the adapter to update itself with the new data Mar 03 18:37:45 yes Mar 03 18:44:54 xorgate, something like this? http://pastebin.com/nzzzgFpi Mar 03 18:47:26 Rob|boR maybe not define an inner class inside a method Mar 03 18:48:29 hmm okay Mar 03 18:49:18 On a sidenote, you should try to stick to one naming convention for classes etc. Mar 03 18:50:22 okay Mar 03 18:50:45 so I'm guessing basically put the TRY and CATCH in the doInBackground Mar 03 18:51:01 I don't know what to put on the onPostExecute though Mar 03 18:51:35 read about async, doInBackground is off the ui thread, the others are on Mar 03 18:52:01 Rob|boR there you tell the adapter to update Mar 03 18:52:52 Rob|boR: another way to deal with such tasks is to put them into a service Mar 03 18:52:53 with the onListItemClick as well right? Mar 03 19:03:25 Is there a way to download old apk files from the store? Mar 03 19:03:35 from my own app ( maybe in developer comsole?) Mar 03 19:05:25 I'm very, very tempted to say "regenerate them from sources" :> Mar 03 19:05:32 in fact, I just said that Mar 03 19:08:02 so I tried doing the AsyncTask, program is not crashing anymore but it's just loading there Mar 03 19:08:04 http://pastebin.com/jbUCkS6M Mar 03 19:10:04 hmm, so i never really wondered about this but what happens when a method becomes deprecated? is it still supported on higher APIs+? Mar 03 19:10:15 for some time at least Mar 03 19:10:55 wohoo.....my first app is up :D :D Mar 03 19:11:17 Rob|boR, what do you mean just loading there Mar 03 19:11:27 did you call .execute() Mar 03 19:12:02 p_l: would there be like a "ULTIMATE deprecation DON'T USE" error or just the classic warning? Mar 03 19:12:54 when I open the call, and go to the tab where the info is supposed to be Mar 03 19:12:59 it's a loading circle spinnig Mar 03 19:13:19 http://stackoverflow.com/questions/10164896/is-it-ok-to-have-so-many-deprecated-methods-in-backward-compatible-code Mar 03 19:13:22 nvmd p_L Mar 03 19:15:45 Trinsta: wtf is the guy doing? Mar 03 19:16:12 Rob|boR you're nothing doing anything with the result Mar 03 19:16:26 I'm adding new MyAsyncTask().execute(); Mar 03 19:16:26 to my code now :) Mar 03 19:17:42 it's just that right? Mar 03 19:18:36 doInBackground computes and returns a result Mar 03 19:18:44 this result is passed to onPostExecute Mar 03 19:18:52 there you need to do something with it Mar 03 19:22:59 ok I'm going to give it another go by adding oncreateview and putting the execute there Mar 03 19:23:57 woah, ive been immersed into the world of fragments... Mar 03 19:24:28 ive always been ignorant against them and removed, and especially hostile. Mar 03 19:24:34 but boy are they useful Mar 03 19:27:05 are there any differences between using JSON vs ArrayList in HTTPPosts? Mar 03 19:27:44 what are you working on trinsta Mar 03 19:28:13 a game, a workout app, and a personal dialer hobby app haha Mar 03 19:28:22 when i get tired on one I just switch over to the other Mar 03 19:28:56 ah I see Mar 03 19:29:09 do you have some apps in the play store? Mar 03 19:30:04 made this 1 year ago havent updated it since :/ Mar 03 19:30:04 https://play.google.com/store/apps/details?id=com.synamegames.dodgearena Mar 03 19:30:36 going to try it out >:D Mar 03 19:31:21 uhm...can I advertise my app as well? :D I just published my first one. lol Mar 03 19:31:24 :) Mar 03 19:32:03 what is it about? Mar 03 19:32:41 a singleplayer board game Mar 03 19:32:44 nothing fancy Mar 03 19:32:46 bogo10, that wasn't advertising :) that game is long dead Mar 03 19:32:47 :) Mar 03 19:32:54 trinsta its pretty fun Mar 03 19:32:59 haha Mar 03 19:33:23 somewhat addicting >_< Mar 03 19:33:23 here's a good question...how the hell do you promote an app? Mar 03 19:33:24 yea haha i failed on it for the marketing. Got a bunch of friends telling me it was really fun Mar 03 19:33:27 any suggestions? Mar 03 19:33:30 #makingmoneywithandroid Mar 03 19:33:47 oh, ok Mar 03 19:33:48 thanks Mar 03 19:33:54 i'll ask for tips there :) Mar 03 19:34:09 pm me your app, I wnat ot see that too :) Mar 03 19:34:18 and yeah, this is my code for now http://pastebin.com/dPEqwG0E Mar 03 19:34:24 Rob|boR, you have no idea.... I got another version out but its quite similar to that but has extra features that i wanted to add and my sister went crazy over it Mar 03 19:34:26 my app keeps crashing now Mar 03 19:34:52 I think the app icon needs a little work Mar 03 19:35:04 in a couple of weeks though I can start re-programming that game to perfection :) Mar 03 19:35:06 to make it look more high end, but the game itself is pretty fun Mar 03 19:35:18 nice Mar 03 19:36:52 you know what I can imagine as sounds, the mario party countdown, when it starts counting down Mar 03 19:37:10 and some mario party cheers >_> in the background lol Mar 03 19:40:12 Rob|boR, you shouldn't have static modifiers in your asynctask :/ Mar 03 19:40:40 oh, so just strings? Mar 03 19:41:27 well they dont need to be static to function haha so yes Strings but it could get even simplier than that Mar 03 19:41:46 like? Mar 03 19:42:53 just type it in :) you dont need them anywhere else Mar 03 19:43:44 they're private static anyways so I don't think you'll be called MyAsyncTask.LEVEL anytime soon Mar 03 19:44:05 lol okay removed them Mar 03 19:47:01 but I feel like I'm murdering the aysynctask Mar 03 19:47:03 lol Mar 03 19:59:00 there is #android ... or something like that ... is that for users? Mar 03 19:59:16 can i can post a link to the app there...without getting banned or anything ? :D Mar 03 20:00:36 Trinsta, you are probably already aware of this but just in case Mar 03 20:01:01 when i play the game, if move towards the edges, it shows my ball twice, kind of glitchy towards the edges Mar 03 20:01:23 or flashes white near the edges, but gameplay is still smooth Mar 03 20:01:32 ? Mar 03 20:02:04 when I play your game lol Mar 03 20:02:06 the orb can go to the other side of the screen if thats what you mean Mar 03 20:02:18 it can? :o Mar 03 20:02:28 yup so no its not a glitch, its implementation :) Mar 03 20:02:42 what about the white flashes Mar 03 20:02:54 white flashes? Mar 03 20:03:10 id need a screenie =[ Mar 03 20:03:24 yeah you are right, it goes to the other side, but i see the ball twice. I'll take a screenshot Mar 03 20:06:28 I can't get the white flashes in a screenshot, but I got the ball repetition gonna upload Mar 03 20:08:16 http://i.imgur.com/u4VqSHB.jpg, http://i.imgur.com/kkHo2AH.jpg, http://i.imgur.com/ZdFmoOY.jpg Mar 03 20:09:51 LOL, wtf! Mar 03 20:09:57 what device are you using? Mar 03 20:10:36 looks like I screwed up the GL Camera Mar 03 20:10:50 Samsung GS III Mar 03 20:11:02 all good though, I rewrote my old GLCamera class anyways Mar 03 20:11:23 maybe that's why I'm getting white flashes on the edges Mar 03 20:11:56 yea, thats a camera issue as well Mar 03 20:12:09 do the orbs look HD? Mar 03 20:12:09 hmm alright Mar 03 20:12:20 anyways, please help me execute that async? :) Mar 03 20:12:20 and grass++* Mar 03 20:12:37 yes they do Mar 03 20:12:50 you're executing it fine, i have no idea whats wrong Mar 03 20:13:03 you're just creating a new arrayadapter right? Mar 03 20:13:08 hey guys i know this isnt exactly an android related problem but does anyone have any idea on how to implement upnp in java? Mar 03 20:13:26 well I'm getting info from server placing it in the listview Mar 03 20:15:25 and whats happening? Mar 03 20:15:36 the logcat says: http://pastebin.com/SwLr1jf1 Mar 03 20:16:01 so does it mean in the activity or in the java code? Mar 03 20:16:18 Rob|boR: it's telling you there android.R.id.list Mar 03 20:16:19 activity I meant layout Mar 03 20:16:29 you have to have a listView with that id Mar 03 20:17:41 ok, I went to the layout file refered in the java class, and changed the name to list Mar 03 20:18:22 well no, not JUST list or it would be yourpackagename.R.list Mar 03 20:18:34 in the layout file? Mar 03 20:18:41 *R.id.list* Mar 03 20:19:00 or java file, in the java file I don't have anywhere with R.id.list or listview . I was curious where I would add that Mar 03 20:19:20 because the example I was initially working from was http://www.vogella.com/articles/AndroidListView/article.html#listfragments Mar 03 20:19:34 and they didn't have R.id.anything :/ Mar 03 20:19:57 but yet it still populated the info into the listview Mar 03 20:20:46 sorry Rob|boR, stingray_ might be more help here. Im pertty clueless when it comes to Layouts/etc Mar 03 20:21:06 its okay Trinsta , thanks for trying Mar 03 20:21:15 Rob|boR: paste your layout and your class Mar 03 20:21:22 cause I dont know what your doing Mar 03 20:21:45 normally it would only ask for android.R. if your extending a listFragment or listActivity etc Mar 03 20:21:48 if I remember Mar 03 20:21:54 not sure but if you changed your id to -> android:id="@android:id/list" might work :/ Mar 03 20:21:57 not that I have ever done that Mar 03 20:22:15 http://pastebin.com/eM31Cmti Mar 03 20:23:09 and R.layout.fragment_gold_visitors Mar 03 20:23:35 the layout for gold_visitors is in there too, at the end Mar 03 20:23:48 oh yeah Mar 03 20:23:49 :) Mar 03 20:23:54 efficient Mar 03 20:23:55 :) Mar 03 20:24:08 lol yay at least i did something right Mar 03 20:24:22 yeah do what Trinsta said Mar 03 20:24:34 the id for that list needs to match android ns not your package Mar 03 20:24:47 so where would I change that Mar 03 20:24:52 @android:id/list rather than @+id/list Mar 03 20:25:42 so like this android:id="@android:id/list" Mar 03 20:25:42 ? Mar 03 20:25:53 indeed Mar 03 20:26:39 actually @id/android:list Mar 03 20:26:44 okay so it's not crashing, but it's blank Mar 03 20:27:13 cool, well thats fixed then Mar 03 20:27:15 :) Mar 03 20:27:37 for future ref answers most of the time are in the docs http://developer.android.com/reference/android/app/ListFragment.html Mar 03 20:27:43 see example layout there Mar 03 20:28:09 okies Mar 03 20:28:34 but is there something else I should do to show the listview with data? Mar 03 20:28:43 because right now it's just blank Mar 03 20:28:46 well, put data into it Mar 03 20:29:00 well into the adapter that it uses Mar 03 20:29:05 it should be getting data from the server, that's why I have the async Mar 03 20:29:18 is my adapter wrong? I thought it was sending data to it Mar 03 20:29:29 well your not using result ? Mar 03 20:29:38 from looking at it at a glance Mar 03 20:29:49 my results is levellist right? Mar 03 20:29:51 he made a constructor instead but result wouldve been the more efficient method Mar 03 20:29:59 instance variable* Mar 03 20:30:06 besides what you should do is tie everything together Mar 03 20:30:09 Thats always good, to get something from the server and not using what you got :D Mar 03 20:30:15 forget the async atm Mar 03 20:30:26 has anyone of you made a phonegap app? Mar 03 20:30:35 spobat: #phonegap Mar 03 20:30:36 ^ make an example data so you see that everything is working Mar 03 20:30:48 then you worko n the online/web backend Mar 03 20:30:48 alright! Mar 03 20:30:52 thanks Mar 03 20:31:18 Rob|boR: the async should really deliver data to the adapter, not create and bind it Mar 03 20:31:19 but the result is in the onPostExecute.. Mar 03 20:31:32 oh.. Mar 03 20:31:38 what happens if you want a refresh Mar 03 20:31:41 new adapter ? Mar 03 20:31:49 create the adapter in the Fragment/Activity whatever Mar 03 20:31:49 or rather just update the one thats there Mar 03 20:32:13 use the Async to grab the data and pass it on the the adapter, you can use onPostExecute to update the adapter since its running in UI thread Mar 03 20:32:14 so this code is all wrong then -_- Mar 03 20:32:22 so forget the fetching data, like Trinsta said just add dummy data Mar 03 20:32:43 you got asynctask right :) most people look at asynctask's docs and say "f---- that" Mar 03 20:32:53 then concentrate on async fetch where in the post it clears the addapter and addall etc then notifyDatasetChanged Mar 03 20:33:18 StingRay_: how are you doing on #post counts? still #1? Mar 03 20:33:39 hope not Mar 03 20:33:53 okay so I move my adapter out of the asynx Mar 03 20:34:03 Rob|boR: yeah Mar 03 20:34:12 Is there an easy way to write to a text file on a Windows computer using normal Android APIs? Mar 03 20:34:30 Ark42, you can use Java APIS :) Mar 03 20:34:59 Well, I need something to open a remote file, on a desktop computer, so not an HTTP/FTP connection Mar 03 20:35:12 oh you cant do that Mar 03 20:35:23 without HTTP/FTP / REMOTE Mar 03 20:35:40 SSH Telnet SMB NFS Mar 03 20:35:53 what I dont' understand, is everything should be on the oncreateview right? Mar 03 20:36:04 Rob|boR: before trying to put the data into the list just look at the data first in log.d or similar, that way you actually now the data is received in the right form Mar 03 20:36:07 everything view related Mar 03 20:36:24 Is there a standard API for SMB/CIFS access? Provided of course, my android app prompts the user for the appropriate user/pass first? Mar 03 20:37:05 hmm Mar 03 20:37:12 Rob|boR: actually not everything, the initialisation of the view should be done there so lets say things you know from start you can put there but you need to update the list when the data is received right? so you cant do that in oncreateview Mar 03 20:37:33 that is correct Mar 03 20:38:15 Trinsta: AsyncTasks are nice Mar 03 20:38:35 hey guys, i'm trying to send a notification that when clicked on opens an activity to login, when i click on the notification though nothing happens, here is my code for the notification -- https://gist.github.com/ianjosephwilson/5078164 Mar 03 20:39:00 so my code is correct, but I just need to move stuff around? Mar 03 20:39:03 karlsve: once you understand them theyre the best :) Mar 03 20:39:50 Rob|boR: well code is not right if you have to move things around Mar 03 20:39:56 Trinsta: not necessarily, im using a service hence i might need data to be pulled while the app is not in foreground state :D Mar 03 20:40:06 means your logic is misplaced or understanding is off Mar 03 20:40:17 well from my experience neways :) Mar 03 20:40:42 StingRay_: agreed :D Mar 03 20:40:45 Rob|boR, also for future references in my experience I learned the best when I have two separate projects open in eclipse. "Android Test" and "Java Test" Mar 03 20:40:58 * StingRay_ moves thing all over the place all the time :) Mar 03 20:41:27 I kind of do that too, but in this one, I have Gold_Visitors and Gold Visitor as java classes Mar 03 20:41:42 Visitors was a fail attempt, I feel like I'm closer with Visitor Mar 03 20:41:47 StingRay_: just brute force all statements until compiles/no errors Mar 03 20:41:48 but yet so far away Mar 03 20:44:14 has anyone tried eclipse scripts? Mar 03 20:49:24 guess not Mar 03 20:54:20 are there any experienced android developers who could write me a simple application --> duplicate this application and add a few more features: https://play.google.com/store/apps/details?id=com.cworklog.cworklog_client Mar 03 20:54:45 i'm looking to pay someone $200 to write me an android app, pretty simple for now Mar 03 20:54:52 relipse: the author of that app comes to this channel Mar 03 20:55:03 so no, would not be in good taste Mar 03 20:55:13 or i think he does Mar 03 20:55:28 StingRay_: I am the author of the app, but it was written in phonegap and i want native Mar 03 20:55:36 oh right Mar 03 20:55:40 hehe :) Mar 03 20:55:41 thats diff Mar 03 20:56:02 Trinsta: nah try catch and print the stacktrace Mar 03 20:56:25 relipse: phonegap not floating you boat now then ? Mar 03 20:56:27 :) Mar 03 20:57:31 relipse: have you tried doing it native yourself? Mar 03 20:57:44 could save you money :D Mar 03 20:58:14 also if you want it done for that, india !! freelancer.com Mar 03 20:58:16 :) Mar 03 20:59:30 :( Mar 03 20:59:38 anyways it isnt even that difficult to accomplish natively i would say Mar 03 20:59:45 karlsve: no time Mar 03 20:59:53 look at me, I'm trying <---- Mar 03 21:00:05 without the mit android maker thingy majig Mar 03 21:00:07 haha Mar 03 21:00:12 at least not as difficult as getting a complete community implemented Mar 03 21:02:11 relipse: same ui? :D just asking since people might wanna know that if they want to do it Mar 03 21:07:27 question guys, for this http://pastebin.com/ySDmPfZT Mar 03 21:07:45 line 86 should print right? Mar 03 21:08:11 use log.d("mytag","YAY"); Mar 03 21:09:12 better yet Logger.test("YAY"); Mar 03 21:09:26 nice expression if you get it to work btw ;) Mar 03 21:09:47 Rob|boR: why would you print yay? anyways Log.d("gold_user", levelList); Mar 03 21:10:04 because I'm trying to see if that portion of the code is running Mar 03 21:10:16 I want to see if levelList contains something Mar 03 21:10:36 hm okay Mar 03 21:10:48 stepping through in debug is pretty rad too Mar 03 21:11:41 how can i let my dialog survive orientation change? Mar 03 21:12:06 capital L in log >_> Mar 03 21:12:10 osxorgate: use a fragmentDialog Mar 03 21:13:09 cheers Mar 03 21:13:20 if I wanted to use Log to display levelList, I would need to change the data type? Mar 03 21:13:29 or it only allows strings... Mar 03 21:13:41 !ref log Mar 03 21:13:54 why not just levelLog.size() Mar 03 21:14:02 levelList* Mar 03 21:14:14 see if it's 0 Mar 03 21:14:19 StingRay_ have you worked with jsons before/ Mar 03 21:14:24 yeah Mar 03 21:14:32 object arrays etc Mar 03 21:14:37 then switched to gson Mar 03 21:14:41 lib from google Mar 03 21:14:43 isn't that what I'm doing? Mar 03 21:14:44 http://pastebin.com/3UHmNf0s Mar 03 21:14:44 never looked back Mar 03 21:14:45 with jsons Mar 03 21:14:46 Rob|boR: there might be a toString Mar 03 21:14:58 03-03 13:16:44.546: D/TAG(3195): {"what":"hello","orders":"[Ljava.lang.String;@423efcf0"} Mar 03 21:15:34 works like charme Mar 03 21:15:37 Trinsta: cause thats the object your asking toString of Mar 03 21:15:47 im using it, although just to send data to the server Mar 03 21:16:10 Trinsta: use gson Mar 03 21:16:17 you you never look back Mar 03 21:17:41 has anyone tried to build their own protocoll name to react on in android? Mar 03 21:17:46 -l Mar 03 21:18:09 StingRay_: i'd have to include an extra lib =[ Mar 03 21:18:13 I think it's working Mar 03 21:18:28 Trinsta: well worth the bytes Mar 03 21:18:31 :) Mar 03 21:18:42 well I see the output in the system.out Mar 03 21:18:56 nothing in the app >_> Mar 03 21:18:58 Trinsta: JSONObject works just fine Mar 03 21:19:20 StingRay_: http://stackoverflow.com/questions/2818697/sending-and-parsing-json-in-android okay fine you convinced me Mar 03 21:19:49 multi level embedding and creation soooo easy Mar 03 21:20:01 gson ftw Mar 03 21:20:05 :) Mar 03 21:21:00 StingRay_: okay havent tried to receive json objects so i guess gson might be good for that part Mar 03 21:21:24 but for sending a simple json its working as its intended to Mar 03 21:21:27 karlsve: more for just working with Mar 03 21:21:36 specially if complex Mar 03 21:21:42 the only reason why you would use JSON would be for lightweight right? Mar 03 21:21:46 some1 here told me about it ages ago Mar 03 21:22:26 cause heres what i'm doing... http://pastebin.com/hTfNvBBX Mar 03 21:22:41 and if its just the benefit of compactness I think i'll refrain from adding a lib ;) Mar 03 21:24:10 Trinsta: o.O Mar 03 21:24:25 for an HttpPost if that helps Mar 03 21:25:02 okay then it's fine i was wondering about that because it didn't look like working with a json object :D Mar 03 21:25:03 or you know what, i could just split it up into: jsonAppIdentifier, jsonDeviceIdentifier, and jsonData Mar 03 21:25:25 oh no, its not was just asking if JSON would be better tahn NameValuePairs Mar 03 21:26:14 Trinsta: why not both? :D Mar 03 21:27:17 well i'd have to use NameValuePairs to do a post :) so I guess my question was... are JSONS necessary Mar 03 21:28:07 Trinsta: not necessary but could come in handy :D Mar 03 21:33:01 okay guys, some progress. I put the Log.i with the toString, and observed hte output, relevant text appeared Mar 03 21:33:11 but nothing is showing up in the app, http://pastebin.com/EdnLUbD1 Mar 03 21:34:17 Rob|boR: you still missing the concept of having an adapter that gets it's data updated Mar 03 21:34:43 your* Mar 03 21:35:00 I also updated the result in postExecute from result to levelList Mar 03 21:35:10 yeah, I just don't know..:/ Mar 03 21:35:21 StingRay_: you're Mar 03 21:35:27 :) Mar 03 21:35:46 Rob|boR: create and bind adapter outside of async Mar 03 21:36:06 in the onCreate? Mar 03 21:36:07 in async post clear the existing adapter and add your data to it Mar 03 21:36:26 your new data is result Mar 03 21:36:26 Rob|boR: yes in onCreate Mar 03 21:36:38 that you just for some reason dont want to use Mar 03 21:36:41 :) Mar 03 21:37:01 after that inform about the update Mar 03 21:37:09 ok I moved all that to onCreate Mar 03 21:37:26 is there any C# library to read an apk's version number? Mar 03 21:37:30 my onPost is empty, so there I just put return levelList ? Mar 03 21:37:48 no Mar 03 21:37:54 you add the data to your adapter Mar 03 21:38:01 https://github.com/karlsve/Lima-City-for-Android/blob/master/src/limaCity/chat/ChatActivity.java#L103 Mar 03 21:38:11 Rob|boR: take a look at the code in there Mar 03 21:38:20 its called in onCreate Mar 03 21:38:37 ok I see onCrate Mar 03 21:38:51 monsti: just use any zip library to unzip the manifest and an xml parser to read the version number from it? Mar 03 21:39:20 Rob|boR: dont look at the onCreate function look at initChatData Mar 03 21:39:38 there i initialize the chatItemAdapter Mar 03 21:39:56 in onDataReceived i get my data and add it to the adapter Mar 03 21:40:12 then i notify the adapter that the dataset has been changed Mar 03 21:40:24 which causes the ui to update Mar 03 21:40:50 hmm Mar 03 21:41:30 thats basically what you have to do too, initialize the itemAdapter in onCreate, then use the itemAdapter and add stuff to it, then cause it to update Mar 03 21:41:43 ok so far this is what I did then, I emptied out the post Mar 03 21:41:44 http://pastebin.com/yZwsPDji Mar 03 21:42:05 I had to move SPACES, LEVEL, SENSORID, and VALUE too.. Mar 03 21:42:08 Rob|boR: if i were you I would just do some listView tutorials Mar 03 21:42:19 StingRay_: ^^ Mar 03 21:42:29 and get to a point where you have learned about listViews/adapters and backing data etc Mar 03 21:42:40 I have, from here http://www.vogella.com/articles/AndroidListView/article.html#listfragments Mar 03 21:42:58 well find some more, and get things working Mar 03 21:43:03 but what confuses me is the async Mar 03 21:43:07 cause you seem to have missed a few concepts Mar 03 21:43:10 no it dont Mar 03 21:43:21 async has little to do with what your doing atm Mar 03 21:43:40 understanding or lack of listView and *adapter has Mar 03 21:44:14 what puts the data into it would be setListAdapter(adapter) right? Mar 03 21:44:20 no Mar 03 21:44:24 that binds an adapter Mar 03 21:44:31 to a view Mar 03 21:44:37 hence my point Mar 03 21:44:43 -_- Mar 03 21:45:30 myAdapter.add / clear / addAll / remove / removeAtIndex etc they alter the data Mar 03 21:45:32 Rob|boR: updating the data is done by simply changing the data in the adapter not changing the adapter Mar 03 21:46:15 wouldn't that be my try and catch Mar 03 21:46:25 it would be getting the string Mar 03 21:46:44 Rob|boR: honestly you need some simple examples Mar 03 21:46:49 and get them working Mar 03 21:46:52 play with them Mar 03 21:46:55 understand Mar 03 21:47:14 Rob|boR: basically just for you hence you use asyncTask -> try to understand this https://github.com/karlsve/Lima-City-for-Android/blob/8c5aee5e47345ad2a69d96d40cf8d66d2aa424b8/src/limaCity/forum/ThreadActivity.java Mar 03 21:47:54 ok thank you karlsve Mar 03 21:48:05 its closer to what you want to accomplish Mar 03 21:52:49 I'm going to go get some fresh air, and I'll take a look at this again after. Mar 03 22:02:26 i want to take a string and remove diacritics, i can use Normalizer but then i lose 10% of devices solely for this class that requires api 9. Any other options? Mar 03 22:03:30 diacritics o.O Mar 03 22:04:16 yes accents and such Mar 03 22:04:26 ahh kk Mar 03 22:05:22 maybe i can download the aosp source and take it from there Mar 03 22:07:02 have you looked it up yet? i mean maybe someone already wrote a function for that :D Mar 03 22:09:37 Normalizer is a few thousand lines. Mar 03 22:09:51 still fun to do Mar 03 22:10:05 at least if one is bored Mar 03 22:10:25 doing little > doing a lot Mar 03 22:10:34 but yes http://stackoverflow.com/questions/6328654/android-2-3-and-java-text-normalizer Mar 03 22:11:17 oh well wont hurt to have aosp ;0 Mar 03 22:12:23 It's not in AOSP but in java.text Mar 03 22:12:47 Maybe that comes with AOSP, but you might aswell "just" checkout some Java 1.6 source online Mar 03 22:12:50 well; java.* is still AOSP, c.f. oracle's butt-headedness :-) Mar 03 22:13:49 (all the java libraries have been re-implemented "from scratch", which ends up causing subtle problems for traditional java coders, but that's a different story...) Mar 03 22:26:05 hi kbs :) Mar 03 22:37:39 StingRay_: you know what I was doing wrong with the Json.toString? Mar 03 22:37:57 yeah using the array object Mar 03 22:38:04 http://pastebin.com/9PQveCHp Mar 03 22:38:10 nah, i mean i fixed it Mar 03 22:38:15 rather than putting in an object.toJasonFormat thingy Mar 03 22:38:20 now its outputtin, 03-03 14:40:33.257: D/TAG(3586): {"test":"test","orders":["Hello","Hello2"]} Mar 03 22:38:28 yeah Mar 03 22:38:44 good stuff :) will take a look at GSOn though Mar 03 22:39:25 hmm so i'm not too familiar with the 'java ways'.. i still want to include the Normalizer source in my own project. will it work to just fetch (and reformat) these files ? http://docjar.net/html/api/sun/text/normalizer/ Mar 03 22:43:12 ok guys... So I tried updating my Nexus 10 to 4.2.2... I still get this strange lighting behavior Mar 03 22:43:19 To recall, I set this directional light (no spot, no attenuation, no position) but things only get lit when very close to the camera, as if there was a very sharp attenuation (so sharp that in fact there is only about 3 computed shades, with pixels being smooth shaded in between vertices); This only happens on the Android device (Nexus 10), it's fine in the x86 emulator, and it's fine on Mar 03 22:43:19 the PC. Mar 03 22:44:27 ESphynx: my eperience with opengl is: strange behaviour = i did something wrong Mar 03 22:45:35 osxorgate: i have a lot of experience with OpenGL, and I'd say it's about 50% I did something wrong, 50% bad drivers. Mar 03 22:46:09 btw I forgot to mention: GL ES 1.1, fixed function pipeline. Mar 03 22:46:50 would the n7 and n10 have different opengl drivers/ Mar 03 22:47:00 ESphynx: visually what you describe says that either the unit vector normal of vtx's or the winding order is disturbed Mar 03 22:47:07 <-- artist more than programmer Mar 03 22:47:15 as in vfx/games artist Mar 03 22:48:15 would be a feature use or lack of that may cause differences maybe Mar 03 22:54:13 headache from typing mysql_real_escape_string() constantly for JSONs =[ Mar 03 23:00:10 Write a convenience method? Mar 03 23:04:00 StingRay_: disturbed? Mar 03 23:04:20 well I dont know what your using Mar 03 23:05:00 deformation, shader functions, element binding, post procedural Mar 03 23:05:09 fixed function pipeline Mar 03 23:05:12 all that can affect if needed Mar 03 23:05:18 the very basic opengl lighting Mar 03 23:05:29 the vertices have normals set Mar 03 23:05:42 and I set an angle Mar 03 23:05:48 it's so simple it's strange Mar 03 23:06:23 any way to call a primative sphere ? Mar 03 23:06:30 rather than you doing something Mar 03 23:06:32 :) Mar 03 23:06:38 to start ruling things out Mar 03 23:07:38 StingRay_: it's actually a sphere. Mar 03 23:07:45 a huge sphere. Mar 03 23:07:56 I also have the problem with a cube Mar 03 23:08:07 a cube sitting at an angle on top of a sphere Mar 03 23:08:31 spending time mastering listviews :) lol Mar 03 23:10:39 ESphynx: when you say it's different on different units Mar 03 23:10:47 what do you mean ? have any screen shots ? Mar 03 23:11:35 StingRay_: i only have the Nexus 10 to test with... I can give you a screenshot of the X86 emulator, but that one is fine :) Mar 03 23:11:46 also fine on the PC Mar 03 23:12:53 Off-Topic: anyone have any youtube albums they use for programming and would like to share? ty in advance Mar 03 23:13:10 'developers should not use this class' >.< Mar 03 23:16:24 ESphynx: screen shots of all of them would be good Mar 03 23:16:49 StingRay_ : I just can't take a screenshot of the device, the one that's bad ;P Mar 03 23:17:04 but you can still see something right ? Mar 03 23:17:57 see what I have done for many many years is look at ps3/360 graphics and diagnose what is wrong and whose fault it is, art or programmer Mar 03 23:18:12 long shot but maybe I can point something out Mar 03 23:18:14 who knows Mar 03 23:19:32 StingRay_: Yes I can see something, just don't know how to take a screenshot on the device and get it to you :P Mar 03 23:19:46 ddms > devices window Mar 03 23:19:51 screenshot Mar 03 23:19:52 :) Mar 03 23:20:22 Isn't it just Volume Down + Power at the same time? Mar 03 23:20:40 kakazza: well yeah but then have to transfer it Mar 03 23:20:47 Good point Mar 03 23:20:50 my way you just save to desktop Mar 03 23:21:01 well the ddms way Mar 03 23:21:27 ddms? Mar 03 23:21:49 you see the other weird thing... is that my other 3D apps work fine :S Mar 03 23:22:02 eclipse perspective Mar 03 23:22:28 or just open android device window in eclipse Mar 03 23:22:35 and press the camera button Mar 03 23:23:10 my sphere radius is 6370997 Mar 03 23:23:26 ah, not using Eclipse Mar 03 23:24:36 There's a few ways, but might aswell just use adb http://stackoverflow.com/questions/2807070/screenshot-of-the-nexus-one-from-adb Mar 03 23:24:55 ah that is useful :P then I can integrate this in my IDE :) Mar 03 23:24:59 thanks kaasbol Mar 03 23:25:02 kakazza* Mar 03 23:25:43 StingRay_: I'll get you a screenshot then :) Mar 03 23:26:33 Hey - anyone have any experience building android apps in Clojure or Scala, and care to share their experiences? Mar 03 23:31:21 I'm testing my simplistic test... really just a sphere Mar 03 23:32:12 and that sphere is created by an internal call for a primative with radius ? rather than you loading from a file ? Mar 03 23:33:42 damnit. Mar 03 23:33:44 it does happen! Mar 03 23:33:47 with a simple sphere! Mar 03 23:34:18 basically, you see the sphere only with the ambient component Mar 03 23:35:00 but different on you 3 test cases ? Mar 03 23:35:04 your* Mar 03 23:35:39 yup, that's what it is. Mar 03 23:35:43 oh, only 1 test case Mar 03 23:35:53 PC , emulator... always fine Mar 03 23:35:59 the device doesn't like when I use big numbers Mar 03 23:36:00 is what it is. Mar 03 23:36:21 ESphynx, sounds like overflow to me Mar 03 23:36:27 or you're using the wrong overlay mode Mar 03 23:37:02 kaneda^: wrong overlay mode? overflow? Mar 03 23:37:09 i'm finding out exactly which value Mar 03 23:37:34 ESphynx, overflow for your vars, overlay mode for your porterduff or whatever Mar 03 23:37:39 let me show you the code Mar 03 23:38:39 https://gist.github.com/ecere/5078909 Mar 03 23:39:20 double scale = 63809; // This is already broken <-- que? Mar 03 23:39:58 depthBuffer <-- where is this defined? Mar 03 23:41:11 kaneda^: if I set scale to 63809, the sphere is only lit by ambient light Mar 03 23:41:32 kaneda^: depthBuffer is an enum value, it clears only the depthBuffer (not the color buffer) Mar 03 23:41:42 so it's Color.CLEAR or something? Mar 03 23:41:46 'cuz the window already clears the color buffer background color (black in this case) Mar 03 23:42:05 ESphynx, erm, it sounds like it's expecting a long int, which makes sense for rgba Mar 03 23:42:17 ClearType::depthBuffer or ClearType::colorAndDepth, or ClearType::colorBuffer Mar 03 23:42:18 col << 24 | col << 16 | col << 8 | col Mar 03 23:42:50 but what's with the Clear ? the clear is just fine :P Mar 03 23:43:24 nothin in particular Mar 03 23:43:24 the problem is the numbers set up in the projection and model view matrix Mar 03 23:44:55 what's tht look ilke? Mar 03 23:44:58 MAXFLOAT ((float)3.40282346638528860e+38) -- I'm not overflowing THAT Mar 03 23:45:14 well that's why I showed you that code... Mar 03 23:45:15 double scale = 6380; // This works Mar 03 23:45:17 erm, i would hope not Mar 03 23:45:20 //double scale = 63809; // This is already broken Mar 03 23:45:36 I'm basically putting 63809 across the matrix diagonal Mar 03 23:45:37 out of curiosity do you need floating point for this? Mar 03 23:45:57 well this is a test case, but yes I like floats Mar 03 23:46:06 just wondering why that isn't an int, or long int Mar 03 23:46:36 because I'm writing a system that handles millimieters to outerspace ranges Mar 03 23:47:08 The DOD uses this to track alien ships. Mar 03 23:47:17 ESphynx, where exactly do you notice that it's broken? Mar 03 23:47:29 from 6380 to 63809 Mar 03 23:47:37 nono, that's just the assignment Mar 03 23:47:41 where in the code do you notice it's broken Mar 03 23:47:46 ? Mar 03 23:48:00 I just change this number and I look at the device acting dumb Mar 03 23:48:02 that's how I notice Mar 03 23:48:09 yah, that's not enough information Mar 03 23:48:15 i'm guessing there's a bad cast somewhere Mar 03 23:48:17 hence why I'm here for help =) Mar 03 23:48:26 kaneda^: again, this works fine in the emulator or on the PC Mar 03 23:49:03 ESphynx, are you doing any bit shifting and are you working on a strange arch? Mar 03 23:49:09 i dunno, i'm just graspin at straws now Mar 03 23:50:05 since i am not a openGl programmer whats the 1st param in SetLight Mar 03 23:50:09 type ? Mar 03 23:50:13 but what types ? Mar 03 23:50:29 kaneda^: i don't think so, no, I just tried launching an ARM emulator Mar 03 23:50:40 ESphynx, i figured as much, but meh Mar 03 23:50:40 heh :-) http://stackoverflow.com/questions/8106155/android-downloadmanager-and-ssl-https Mar 03 23:50:49 StingRay_: 0 and 1 are the light id Mar 03 23:51:20 ESphynx, so you render some light, some bitmap Mar 03 23:51:21 oh thats it, so how do you define type ? Mar 03 23:51:30 ESphynx, what exactly is the wonky behavior? Mar 03 23:51:35 StingRay_: by default the lights are directional Mar 03 23:51:49 the Light objects light1 and light2 defined above Mar 03 23:52:09 and by default both attenuation and any attribs to falloff or exponent are 0 Mar 03 23:52:14 kaneda^: wonky behavior is sphere only getting ambient light... and like I mentionned earlier close to the viewer there is some light but a sharp attenuation or something Mar 03 23:52:16 that makes them infinate ? Mar 03 23:52:24 StingRay_: yes. Mar 03 23:52:29 no attenuation by default Mar 03 23:52:47 I also tried setting them explicitly, in case the drivers had bad defaults, but to no avail Mar 03 23:52:49 where do I look at light object properties ? Mar 03 23:53:14 ok trying on arm emulator now Mar 03 23:54:00 StingRay_: https://gist.github.com/ecere/5078952 Mar 03 23:54:37 public class LightFlags { public bool off:1, spot:1, omni:1, attenuation:1; }; Mar 03 23:55:47 ESphynx, what do zmax and zmin do? Mar 03 23:56:06 kaneda^: they control the near and far planes Mar 03 23:56:33 glFrustum( (left - origX) * camera.zMin / camera.focalX, (right - origX) * camera.zMin / camera.focalX, (bottom - origY) * camera.zMin / camera.focalY, (top - origY) * camera.zMin / camera.focalY, camera.zMin, camera.zMax); Mar 03 23:57:30 again, i think we can assume that zmax and zmin are within the acceptable range for the arches Mar 03 23:57:43 I think they are Mar 03 23:57:48 but here's what's interesting Mar 03 23:58:00 the ARM emulator looks like total crap with that 'bad range' Mar 03 23:58:20 and even with the one that's still good on the Nexus 10, the light is there but already rough & ugly Mar 03 23:58:33 uhh, try spitting out the ranges of the system... Mar 03 23:58:41 ranges? Mar 03 23:58:46 and a screenshot :) Mar 03 23:58:52 I remember having trouble before with the ARM emulators Mar 03 23:58:56 where stuff would not display around Mar 03 23:59:06 with the X86 emulator, i'm using the GPU host Mar 03 23:59:10 so that's probably why it's fine Mar 04 00:00:11 let me show you shots now Mar 04 00:00:21 ESphynx: also at a time like this I would not use spec/power material Mar 04 00:00:37 can mislead if there is a unit/scale issue Mar 04 00:02:18 StingRay_: hmm ok, I can turn them off though doesn't matter, problem happens with just diffuse as well Mar 04 00:02:37 you want these shots, or you want them with diffuse only? :P Mar 04 00:02:45 as they are Mar 04 00:02:57 if you say there is no difference Mar 04 00:04:00 interesting... shading is never pretty on the arm device :| Mar 04 00:06:12 arm emulator* I mean Mar 04 00:07:03 holy crap where do you get an arm emulator? can it pick up stuff and like play tennis? Mar 04 00:07:05 www.ecere.com/tmp/arm-emu-63809.png Mar 04 00:07:11 lol funkbox Mar 04 00:07:16 www.ecere.com/tmp/arm-emu-6380.png Mar 04 00:07:51 www.ecere.com/tmp/arm-emu-63.png Mar 04 00:08:02 638 looks quite similar to 6380 Mar 04 00:08:47 and I will take one of the Nexus 10 Mar 04 00:09:09 hi Leeds :) maybe you can help me :) Mar 04 00:09:56 www.ecere.com/tmp/nexus10-63809.png Mar 04 00:10:13 probably not... Mar 04 00:10:38 Leeds: this lighting problem :) Happens when I use very slightly large floating point numbers Mar 04 00:11:54 ESphynx: yeah just need one light in there really, and diffuse only to really see Mar 04 00:12:01 StingRay_: i'm uploading the APK now, maybe one of you guys can try it out? Mar 04 00:12:04 these look like point/abient lights Mar 04 00:12:12 they are not. Mar 04 00:12:14 most definitely. Mar 04 00:12:36 2 lights not in same position ? Mar 04 00:12:55 they are 2 directional lights Mar 04 00:13:18 different directions ? Mar 04 00:13:34 yes, 2 different directions Mar 04 00:13:39 one was a diffuse, the other specular Mar 04 00:14:56 would you like to try the APK with the 2 lights? Mar 04 00:15:02 or you want me to resend it with 1 light only? Mar 04 00:15:11 I just think your scene scale is off Mar 04 00:15:19 it's very simple... slightly bigger number and the whole thing blows up Mar 04 00:15:26 yeah Mar 04 00:15:31 it would Mar 04 00:15:34 it works fine in the X86 emulator Mar 04 00:15:36 or on the PC. Mar 04 00:15:41 and the emulator is overall worst than the Nexus 10 Mar 04 00:15:46 (The ARM one) Mar 04 00:15:58 as you can see from the screenshots, things look awful at 63809 Mar 04 00:16:06 and that is NOT a big number by all means Mar 04 00:16:16 it looks like there's a 16 bit int limit or something Mar 04 00:16:24 in that horrible OpenGL implementation :P Mar 04 00:17:02 and maybe a 32 bit int limit on the Android for the lights only :P (At least the geometry is still correct!) Mar 04 00:17:45 www.ecere.com/tmp/Test3D.apk -- here's my APK Mar 04 00:18:03 What could cause TextView.setError(CharSequence error, Drawable icon) to show the text but not the icon? I'm getting the Drawable like this: getResources().getDrawable(R.drawable.error_icon) Mar 04 00:19:33 When I just use setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.error_icon, 0) it works just fine by the way. Mar 04 00:21:14 decltype: no bounds set on drawable ? Mar 04 00:21:28 looks like the obvious diff between those 2 Mar 04 00:21:55 nice, didn't realize there were those APIs. Is there something that allows positioning a drawable at the right-end (ie, align-right, rather than just to the right of) a single-line textview? Mar 04 00:22:20 decltype: http://developer.android.com/reference/android/graphics/drawable/Drawable.html#setBounds(android.graphics.Rect) Mar 04 00:26:54 Hey guys Mar 04 00:27:39 I need some help, so I'm running multiple ASynchronousTasks in order to build a playlist and I need to transition to a new Activity after the loop is complete Mar 04 00:27:57 Problem is, using an intent after the loop complete doesn't necessarily mean that all of the AsyncTasks have been completed and leads to some errors . . . Mar 04 00:28:00 Any advice on what I should do? Mar 04 00:28:11 Because an onPostExecute will get called every time. :/ Mar 04 00:28:48 why are you using multiple asynctasks? Mar 04 00:29:00 It's in a for loop . . . Mar 04 00:29:22 I'm querying an API, then for each result, I have to query another API using those results Mar 04 00:29:36 sounds like a bad design Mar 04 00:29:46 I'm new to this, I don't know any better way of optimizing. Mar 04 00:30:16 What would be the way you designed it? Mar 04 00:30:21 How would you design it* Mar 04 00:31:31 >.< Mar 04 00:32:49 >.< Mar 04 00:33:40 >.< Mar 04 00:33:53 I had it working before, but it wasn't very efficient . . . Mar 04 00:34:20 This results in a speedup, but its not transitioning to a new activity Mar 04 00:35:00 Should I be using an IntentService instead? Mar 04 00:37:10 hello all, I want to set up a development environment on Ubuntu 12.10 any guides out there? I guess my questions are related to using Oracle Java or OpenJDK as well as should I use the eclipse bundled with ADT or integrate it into a separate eclipse install as I also develop desktop java as well Mar 04 00:37:39 canadiancow: How would you design it? Mar 04 00:39:19 viiralvx: I'd probably move all the playlist-related stuff to a Service Mar 04 00:39:33 (whether IntentService or not is an implementation detail) Mar 04 00:39:57 coded1: why not use both ? just download eclipse and the javas, then install the google plugins Mar 04 00:40:00 p_l: This is new to me: What's an IntentService, how does it operate compared to an ASyncTask? Mar 04 00:41:15 viiralvx: It's very late here, so don't expect specific answers from me, but in general I'd move *all* of the processing of playlist into a Service (possibly also all the other elements associated with data model of whatever you're playing too) Mar 04 00:41:32 bankai_: sounds cool, mostly curious to see what you guys were using Mar 04 00:41:52 All righty, I'll take a look at some tutorials. Mar 04 00:41:53 coded1: does it matter what people here are using ? Mar 04 00:42:14 it might help me avoid needless mistakes :) Mar 04 00:42:27 http://d.android.com/ -- that's all you need :) Mar 04 00:42:30 then, if I used AsyncTasks (might be worth it depending on exact work being done, that's how XMMS1 had awesomely fast file loading, thx to threads), I'd start them from the Service and "receive" their results there Mar 04 00:42:45 bankai_: ty Mar 04 00:42:52 also, I'd take care of how asynctasks would be scheduled (i.e. the associated thread pool etc.) Mar 04 00:43:18 p_l: Boy, a lot of optimization to be learned in the coming weeks, thanks for all the help! Mar 04 00:44:31 np Mar 04 00:44:48 it's just... 0144 here, so I can't be arsed to recheck the docs to give specifics :) Mar 04 00:45:04 Yeah, most definitely. Mar 04 00:45:10 It's only 7:45 here, haha. Mar 04 00:45:21 Okay, I gotta go work on some design sketches guys, thanks for the advice! Mar 04 00:46:50 cya Mar 04 00:53:31 please direct me if you know where. Say I have a camera and I wanted to relay data to my computer how would I do so> Mar 04 00:57:26 Can anyone point me to some example on how to handle onPostExecute in AsyncTask? Trying to figure out best approach for firing of new tasks on my Main Activity after completion Mar 04 00:58:33 I would imagine every Async tutorial out there has something in onPostExecute Mar 04 00:58:45 well, 99% of them Mar 04 00:59:40 I don't see how to link an Activity to it. or how to handle cases where your activity might get destroyed/re created while running it Mar 04 01:00:38 it runs in an activity ? not sure what you mean by link Mar 04 01:00:48 and possibly if your worried about the amount of time Mar 04 01:00:59 use a service instead Mar 04 01:01:06 zeeawk, http://vikaskanani.wordpress.com/2011/08/03/android-proper-way-to-cancel-asynctask/ Mar 04 01:01:08 zeeawk: the final method call in onCreate will usually start the async task in my apps Mar 04 01:01:52 as for linking activities to it, throw in your original activitie's context in the asynctask's constructor Mar 04 01:02:23 and just switch to another activity like you normally would in the onPostExecute() method Mar 04 01:03:52 what I do for my asynctasks, if something goes wrong in doInBackground I do a check and return null; so onPostExecute can handle it. and create a static way to handle activity destruction Mar 04 01:04:20 static is a bad way to describe it actually. a FIXED way to respond Mar 04 01:05:40 Okay ill give that a shot. Mar 04 01:08:27 ahh here we go, found the article I actually wanted to refer too Mar 04 01:08:29 http://logc.at/2011/11/08/the-hidden-pitfalls-of-asynctask/ Mar 04 01:08:37 great description of what can go wrong in Asynctask Mar 04 01:11:01 Thanks ill read up on it. Mar 04 01:12:36 I've a question about fragments; if you put widgets inside them and your app gets rotated, do those widgets keep their state (e.g. textfields) intrinsically or do you still need to massage that? Mar 04 01:14:46 manage Mar 04 01:14:53 or massage it Mar 04 01:14:54 :) Mar 04 01:15:59 suppose if you ripped off all the views, detatched them from the root view, then used setRetainInstanceState and on resume re-attach that may work Mar 04 01:16:05 but not really a great idea Mar 04 01:16:08 :) Mar 04 01:18:47 Okie, thanks! Mar 04 01:19:59 StingRay_: was just wondering but was it you that I had a discussion on activity lifecycles and whether or not onDestroy would be called? Mar 04 01:20:14 probably not Mar 04 01:20:21 or rather not that I can remember Mar 04 01:21:42 what exactly is the difference between Integer and int ? Mar 04 01:22:04 ones and object Mar 04 01:23:54 primitive vs object* Mar 04 01:24:04 or rather Object vs primitive* Mar 04 01:26:37 I have a custom ratingbar with rectangles instead of stars. The rectangles however do not scale to the actual size of the ratingbar Mar 04 01:26:56 It just fills in the rest with black color Mar 04 01:27:10 preferably I would like to scale each rectangle in the bar with ninepatch Mar 04 01:27:43 pic please Mar 04 01:27:46 couldn´t use tag in the drawable/ratingbar.xml file, how should I proceed? Mar 04 01:28:30 Joozey, http://kozyr.zydako.net/2010/05/23/pretty-ratingbar/ Mar 04 01:29:00 yeah, did that one Mar 04 01:30:20 taking picture... Mar 04 01:32:02 http://www.joozey.nl/projects/spacetrader3k/ratingbar_flawed.png Mar 04 01:32:09 there shouldn´t be any black Mar 04 01:32:28 I want the rectangles to match the ratingbar height Mar 04 01:33:48 no idea what youre talking about only see rectangles on the sides, thats a pretty well made rating bar though. the black rectangles actually make it look better imho :) Mar 04 01:33:54 whats the source drawable ? Mar 04 01:34:00 bitmap ? shape ? Mar 04 01:34:06 .png Mar 04 01:34:09 drawable Mar 04 01:34:17 thats a bit silly for what it is Mar 04 01:34:23 but ok Mar 04 01:34:25 wait, what source do you mean? Mar 04 01:34:29 oh Mar 04 01:34:31 yes, i know Mar 04 01:34:40 perhaps I´ll use some more fancy effects on it Mar 04 01:34:41 why not make it a 9 patch Mar 04 01:34:45 bit of glow Mar 04 01:34:49 I tried Mar 04 01:34:52 but I don´t know how Mar 04 01:35:00 1 pixel border Mar 04 01:35:02 how to implement it in the xml Mar 04 01:35:20 left + top = patched area Mar 04 01:35:31 it seems like right now, the ratingbar is smudging the last colour pixel over the rest of the height Mar 04 01:35:36 you dont implement a 9 patch bitmap in xml Mar 04 01:35:49 it's a bitmap Mar 04 01:35:50 if I make a ninepatch from the bitmap, it fails to render Mar 04 01:36:07 paste your 9.patch Mar 04 01:36:14 or link it Mar 04 01:36:19 the bitmap? Mar 04 01:36:26 yeah the png Mar 04 01:36:34 myninepatch.9.png Mar 04 01:36:36 etc Mar 04 01:36:59 I made it with draw-9-patch.bat like all the others I did Mar 04 01:37:03 but okay Mar 04 01:37:06 it´s very simple Mar 04 01:37:30 well you can make it in any image editor Mar 04 01:37:40 MS paint probably Mar 04 01:37:43 :) Mar 04 01:38:06 yeah :) Mar 04 01:38:48 this is what I get when I draw the border of the off-rectangle image red Mar 04 01:38:49 www.joozey.nl/projects/spacetrader3k/ratingbar_flawed2.png Mar 04 01:38:59 it stretches the last pixel for the rest of the height Mar 04 01:39:17 www.joozey.nl/projects/spacetrader3k/ratebar_block_on.9.png Mar 04 01:39:22 here´s the rectangle Mar 04 01:39:44 you need a bar of black pixels Mar 04 01:39:50 actually I'm talking crap Mar 04 01:39:51 for the content? Mar 04 01:39:52 that say 'stretch this region' Mar 04 01:40:05 9 patch is irrelevant for that Mar 04 01:40:05 where you now have 2 dots, make it 1 line Mar 04 01:40:15 osxorgate: shouldnt make a diff Mar 04 01:40:23 but neways it's pointless Mar 04 01:40:29 since it;s a solid color Mar 04 01:40:40 so 9 patch gets you nothing Mar 04 01:41:10 if it would scale, the borders would get more thick Mar 04 01:41:25 StingRay_ is right. 9 patch is almost always overdoing it. Mar 04 01:41:27 so 9patch would be helpful in nicely stretching only the middle part Mar 04 01:41:30 well no Mar 04 01:41:33 thats wrong Mar 04 01:41:38 there should be no borders Mar 04 01:41:53 the drawables should be borderd no the borders built in Mar 04 01:42:23 hm? Mar 04 01:42:24 but anyway yeah the height, never used the ratings widget Mar 04 01:42:27 What Stingray says makes sense. Mucking with the Drawables almost always fixes it. 9patch is almost always overkill. Mar 04 01:42:50 how am I supposed to approach it then? Mar 04 01:42:59 but I would actually try a shapeDrawable for that Mar 04 01:43:02 with a solid fill Mar 04 01:43:56 I might want to make the rectangle more fancy though Mar 04 01:44:01 not just a solid color Mar 04 01:44:19 eg Mar 04 01:44:32 in each right? Mar 04 01:44:33 fancy how ? Mar 04 01:44:44 yeah item Mar 04 01:44:44 little gradient, glow, that stuff Mar 04 01:44:49 layer list Mar 04 01:44:54 any container Mar 04 01:44:55 lightdot to make it look like glass Mar 04 01:45:04 erm Mar 04 01:45:12 yeah that will look pants Mar 04 01:45:31 animate it :) :) :) Mar 04 01:45:34 Yes. A shapeDrawable is what you want. If you want more than one shapeDrawable, maybe on top of one another, look into layer lists. Mar 04 01:45:57 have gass circulating in the little glass containers, and light them up when you drag the ratings up Mar 04 01:46:00 I´m going wild now Mar 04 01:46:22 Joozey: anyways solid atm due to attempting to work out height prob > Mar 04 01:46:30 yes Mar 04 01:46:38 or do you just want to attempt to get a final look b4 sorting a problem ? Mar 04 01:46:45 no Mar 04 01:46:55 btw final look should be a prototype design and nothing to do with code/xml Mar 04 01:46:59 fyi ;) Mar 04 01:47:13 illustrator/photoshop Mar 04 01:47:14 :) Mar 04 01:47:59 I got this picture in my head and it keeps me distracting :P Mar 04 01:48:00 but anyway Mar 04 01:48:11 so, I want to scale it Mar 04 01:48:19 and I will look into layer lists and shapedrawables Mar 04 01:48:37 StingRay_ , I finally understand what you were saying about just asking for info but not using it Mar 04 01:48:54 I think I spotted that stupid STUPID error I was making >_> Mar 04 01:49:35 Rob|boR: sometimes it the journey we take that we get the most out of, not just arriving at the destination Mar 04 01:50:13 I would say most often :) Mar 04 01:50:48 yeah, believe it or not I'm not really a programmer Mar 04 01:50:51 haha Mar 04 01:50:58 I'm not either Mar 04 01:51:06 oh..well you killed my joke >_> Mar 04 01:51:36 anyways, I think I placed the data where it belongs, but now I need to figure out what to do in the postExecute lol Mar 04 01:51:49 #android-dev : no jokes allowed. Mar 04 01:51:53 Rob|boR: whats an adapter ? Mar 04 01:52:39 it's what binds the goods together Mar 04 01:52:58 binds to view, gives views out based on data it holds Mar 04 01:53:03 ^ Log.d("test", "YAY); Mar 04 01:53:18 so how do we get data into an adapter ? Mar 04 01:53:22 oh shit, Trinsta saved my yay from earlier Mar 04 01:53:51 actually i posted a compilation error Mar 04 01:54:10 through the array adapter Mar 04 01:54:23 thats a type of adapter Mar 04 01:54:41 so how do we put data in an arrayAdapter ? Mar 04 01:54:42 oh Mar 04 01:55:14 StingRay_, you're officially the android tutor :) Mar 04 01:55:14 we create a string array and call it in the array adapter Mar 04 01:55:32 Rob|boR: ok ish so we can do it in the constructor Mar 04 01:55:34 OR Mar 04 01:55:49 the adapter has methods once that array is initialised Mar 04 01:55:50 Rob|boR, i thought that was a joke when i read the "String array" part haha thought it was "Sting ray" ;) Mar 04 01:55:55 like add,remove etc Mar 04 01:56:16 or AddAll() Mar 04 01:56:21 addAll() Mar 04 01:56:27 clear() Mar 04 01:56:36 all these alter the data in the adapter Mar 04 01:56:43 that is bound the the view/listView Mar 04 01:56:46 so like listLevel.add() ? Mar 04 01:56:52 indeed Mar 04 01:56:56 same kind of method Mar 04 01:57:26 so Mar 04 01:57:26 what I don't understand is the async, how do I know what not to put in there. seems like I put everything in the doinbackground Mar 04 01:57:42 well Mar 04 01:58:03 and arrayAdapter is an object type adapter Mar 04 01:58:13 it kinda allows us to define our own objects Mar 04 01:58:22 you use value pairs right ? Mar 04 01:58:26 i forgot Mar 04 01:58:33 value pairs? Mar 04 01:58:37 arrayList of pairs ? Mar 04 01:58:41 yeah Mar 04 01:59:14 well the adapter your using you have extended to take that type of data ? Mar 04 01:59:26 or that type of Array Object ? Mar 04 02:00:26 cause if not and you still dont know what getView is ... then you not ready to use an async to do what you cant do without an async Mar 04 02:01:00 task 1. make static data defined in an array of your type of object and get it to show in a listVIew Mar 04 02:01:03 getView is when using fragments right? Mar 04 02:01:05 forget asyng Mar 04 02:01:07 async Mar 04 02:01:12 do what I just said Mar 04 02:01:17 okay Mar 04 02:01:19 or your gonna be going round in circles Mar 04 02:01:43 asyncTask is to do something you ALREADY know how to do off the main UI thread Mar 04 02:01:59 so as it stands you and your async are just dancing aimlessly Mar 04 02:02:00 :) Mar 04 02:02:46 but I've done listviews with static data already, I have 3 activities with just listviews and static data Mar 04 02:02:52 and they are linked with each other Mar 04 02:03:15 then you did a bit too much copy/pasting Mar 04 02:03:27 ok well, here is the thing Mar 04 02:03:55 dean, 36 | fed,22 | alan,19 |carl,99 Mar 04 02:04:09 4 sets of 2 values Mar 04 02:04:16 ok? Mar 04 02:04:23 how long for you to do a listView/arrayAdapter to show that Mar 04 02:04:37 what do you mean how long? Mar 04 02:04:44 well if you start now Mar 04 02:04:45 you want me to create a listview showing that? Mar 04 02:04:50 yeah Mar 04 02:05:04 so in each row, show "dean,36" etc? Mar 04 02:05:06 ok lets add one more thing, gender Mar 04 02:05:11 dean,36,male Mar 04 02:05:19 looks like the ratingbar can´t render properly when having something else than a bitmap Mar 04 02:05:45 Joozey: extend your own view to do it, thats what I'm gonna do Mar 04 02:06:00 Joozey: I think that rating bar is from like. stoneage Mar 04 02:06:37 Rob|boR: when you can do what I said, step 2 is clicking on an item removes it from the list Mar 04 02:06:52 yea when using shapes, only 1 shape (or ¨star¨) appears Mar 04 02:07:00 step 3 is longClicking makes a duplicate Mar 04 02:07:12 step 4 is getting that data from an async Mar 04 02:07:12 when using a bitmap, it shows 10 bitmaps as should Mar 04 02:07:33 the shapes scales correctly, the bitmaps do not :P Mar 04 02:08:02 ok I'm back Mar 04 02:08:53 holy shit -_- Mar 04 02:09:00 but I will do it >:o Mar 04 02:09:02 I want to learn Mar 04 02:09:10 good attitude Mar 04 02:09:10 oh yeah the bitmap tag has a tilemode enum Mar 04 02:10:22 aaaand no effect whatsoever :P Mar 04 02:10:28 lol Mar 04 02:10:52 I know that I'm gonna create a custom view for that when I come round to it Mar 04 02:11:43 custom ratebar view? Mar 04 02:12:22 I think this one works quite good... but apparently not gotten any attention at the interface side Mar 04 02:12:47 well I wanted one with inputs like cell width Mar 04 02:13:04 and it just duplicates to maxium available size Mar 04 02:13:28 you know, so I can make it look similar to a eq level on a sound readout Mar 04 02:13:33 or anything like that Mar 04 02:13:40 yeah Mar 04 02:13:54 basically what I´m trying Mar 04 02:14:03 works except for the height scaling :P Mar 04 02:14:05 change the little blips colour based on the overall value Mar 04 02:14:18 blue > red type thing Mar 04 02:14:35 ah yeah Mar 04 02:17:20 like this? http://pastebin.com/9gTbXqDn Mar 04 02:17:46 darn I should sleep Mar 04 02:19:38 Rob|boR, that´s how I do it Mar 04 02:19:59 :D Mar 04 02:20:20 ok now add gender to the mix Mar 04 02:20:29 wouldn't I just add to the string... Mar 04 02:20:37 and I want them in diff colors Mar 04 02:20:41 Isn´t Alan possibly female? Mar 04 02:20:45 I never learned colors -_- Mar 04 02:20:55 like name=blue age=red gender=green Mar 04 02:21:50 cause now you have to extend the adapter Mar 04 02:21:53 to do what you want Mar 04 02:21:58 and you learn more about it Mar 04 02:22:05 getView etc Mar 04 02:22:15 and how it works to inflate custom views Mar 04 02:22:32 http://stackoverflow.com/questions/13954808/having-trouble-with-rating-bar Mar 04 02:22:34 poor guy Mar 04 02:22:43 he hit dead grounds there too Mar 04 02:23:33 Rob a hint is you have to create your own row layout Mar 04 02:23:38 that is just a layout Mar 04 02:23:44 >_> okay Mar 04 02:23:46 and inflate it and populate it yourself Mar 04 02:23:55 from INSIDE the extended adapter Mar 04 02:23:56 inflate.inflater ? Mar 04 02:24:00 indeed Mar 04 02:24:04 inside getView Mar 04 02:24:21 which is what is called in the adapter when a view in the list is requested Mar 04 02:25:22 cause what your doing in your class is using a String[] Mar 04 02:25:30 1 sting for an item Mar 04 02:25:34 yeah Mar 04 02:25:44 I want you to have 3 strings per item Mar 04 02:25:53 cause 1 could be location of an image Mar 04 02:26:01 etc Mar 04 02:26:14 ok Mar 04 02:26:16 so 3 individual strings per item Mar 04 02:26:34 but think about creating a person object Mar 04 02:27:03 class person{int age; String name; String gender;} Mar 04 02:28:03 StingRay_, do you think ViewHolder is a good idea? Mar 04 02:30:44 Joozey: not for this exercise Mar 04 02:31:34 incremental steps not missing anything is how we learn best Mar 04 02:31:48 yeah, I mean in general implementation Mar 04 02:32:01 actually something called direct association is how anyone learns best Mar 04 02:32:07 Joozey: oh god yes Mar 04 02:32:12 with lots of items Mar 04 02:32:17 yeah Mar 04 02:32:22 but it eats memory Mar 04 02:32:23 findViewById is quite a task Mar 04 02:32:24 right? Mar 04 02:32:32 holding a ref to an int Mar 04 02:32:35 not really Mar 04 02:32:58 int being the textView resouce Mar 04 02:33:02 resource Mar 04 02:33:08 or whatever view Mar 04 02:33:26 tis recommended by google neways Mar 04 02:33:34 only the ref, not just the view in the holder? Mar 04 02:34:12 then you´ll have to findViewById anyway? Mar 04 02:34:23 well the textView/any view Mar 04 02:34:30 wait, yeah Mar 04 02:34:33 nvm Mar 04 02:34:34 to get away from findViewById Mar 04 02:35:19 it´s just a bit weird that the adapter is throwing views not in sight out of memory, so you just make a holder class to keep it in memory Mar 04 02:35:21 neways stop asking me these questions lol, I'm a vfx/games artist td Mar 04 02:35:33 :D Mar 04 02:35:34 Joozey: you dont keep the view in mem Mar 04 02:35:40 it recycles Mar 04 02:35:51 right Mar 04 02:36:12 you hold what I would call a hierachical reference to the view downstream of the view that it just gave you in convertView Mar 04 02:36:24 I think Mar 04 02:36:39 but you really dont hold the item/view Mar 04 02:36:42 I remember my first project: a butload of heavy widgets in a linearlist in a scrollview. Couldn´t figure out how to fix the lag :P Mar 04 02:37:34 neways I really cant speak with authority about android dev Mar 04 02:37:57 ask me a vfx/effects/games art/video question and not a problem Mar 04 02:37:59 :) Mar 04 02:38:08 I suppose nobody really can, with the lack of in-depth documentation Mar 04 02:38:22 I found the docs ok'ish Mar 04 02:38:46 and there are some very knowledgable peeps in this channel Mar 04 02:38:50 "normally" Mar 04 02:38:53 :) Mar 04 02:39:05 :) Mar 04 02:40:08 I'm stuck, I'm doing something like this final List listOfPeople = new ArrayList(); Mar 04 02:40:15 and creating entries for each person Mar 04 02:40:40 yeah Mar 04 02:41:09 People holds 3 values ? Mar 04 02:41:16 an int and 2 strings ? Mar 04 02:42:08 yes Mar 04 02:42:19 ok so what are you stuck with ? Mar 04 02:42:48 creating an adapter for it Mar 04 02:43:23 so far I got this ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, values); Mar 04 02:43:41 yep and that wont cut it will it Mar 04 02:43:46 nope Mar 04 02:44:04 but I do need to use an ArrayAdapter Mar 04 02:44:20 so you need to extend an adapter that accepts the type of data you have Mar 04 02:44:26 http://developer.android.com/reference/android/widget/ListAdapter.html Mar 04 02:45:28 http://developer.android.com/reference/android/widget/ArrayAdapter.html Mar 04 02:45:33 look at the difference Mar 04 02:46:22 one is simple and built in, the other allows you to extend it and accepts objects Mar 04 02:47:01 yes you are right Mar 04 02:47:21 so you need to extend ArrayAdapter Mar 04 02:47:38 and thus in doing so to accept your data, learn about adapters more Mar 04 02:48:01 http://developer.android.com/reference/android/widget/BaseAdapter.html <--- actually use this Mar 04 02:48:12 cause later that can be ammended to accept anything Mar 04 02:48:16 cursor Mar 04 02:48:20 list Mar 04 02:48:22 anything Mar 04 02:48:24 :) Mar 04 02:56:50 okay Mar 04 02:57:05 I gotta go home now though, I'm going to copy bookmark that right now Mar 04 02:58:32 thank y ou for taking time to tutor me **** ENDING LOGGING AT Mon Mar 04 02:59:58 2013