**** BEGIN LOGGING AT Sun Sep 29 02:59:59 2013 Sep 29 03:00:48 i have a method that i use to update textviews Sep 29 03:00:54 The answer of what is bug in this code: fin = rndy * drawme.getWidth(); fin = rndx + rndy; is that rndy should be fin :P Sep 29 03:01:06 when i try to access it from the C side, i get back invalid references. Sep 29 03:01:07 had to run right after I talked about it bah lol Sep 29 03:02:15 randomuse99: dunno what to tell you; i've had no significant problems with JNI on 2.x or 4.x; I don't think I'd try to directly update text fields from native; if it were me I'd prep the data into a string and do it from the java side just for simplicitys sake Sep 29 03:02:25 hi guys, I am facing an issue with adb command on mac, can you please help? I did not found any help on google Sep 29 03:02:49 dragorn: that is kind of what i am doing. i am just using CallVoidMethod from the C side to do it Sep 29 03:02:59 maybe #android is better channel santius Sep 29 03:03:40 the issue is using adb command, when I launch "adb devices" or "adb kill-server" etc it don`t do anything, no output, nothing Sep 29 03:03:59 ups, thanks XXCoded, will try there Sep 29 03:04:02 dragorn:i get this JNI ERROR (app bug): accessed stale local reference Sep 29 03:04:49 np Sep 29 03:05:24 hey guys, i am having a ton of problems getting a map fragment to work in my Android app Sep 29 03:05:36 i keep getting this error: java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable Sep 29 03:05:50 i think i am being affect by this - http://android-developers.blogspot.com/2011/11/jni-local-reference-changes-in-ics.html Sep 29 03:06:33 now, I understand what it means, it means that following the import of Google Play Service from the Extras folder, my reference must not be correct because it cant find R. Does anyone know a lot about how to make references with IntelliJ (not Android Studio) and would be willing to help me out? Thanks Sep 29 03:06:55 randomuse99: have you read http://android-developers.blogspot.com/2011/11/jni-local-reference-changes-in-ics.html Sep 29 03:09:51 anyone> Sep 29 03:18:03 is there way to simply strunk bitmap object size? Sep 29 03:18:15 like if I have 800x800 and I want trim 200 off width Sep 29 03:18:59 your best bet is probably imagemagic (magik? magick?) Sep 29 03:19:04 for command line image manipulation Sep 29 03:19:20 lol this is dev channel, I mean programically ;) Sep 29 03:19:40 err brb Sep 29 03:21:35 back Sep 29 03:21:41 lot of fun for me today Sep 29 03:21:51 XXCoder: after a rather brief perusal of the android apis, I found http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html Sep 29 03:22:07 ohh that is very nice Sep 29 03:22:12 thanks Sep 29 03:22:42 I can easily modify this to set max wallpaper size. less memory used. Sep 29 03:29:41 <^cheeky> hi..this is really noobish, but i am , i am trying to compare two strings, and in JAva, you do StringObject1.equals(StringObj2) but i wasnt to negate it as in (!(StringObject1.equals(StringObj2)), but it still comes as true Sep 29 03:33:27 that command returns value so should compare to 0 Sep 29 03:33:31 0 is no difference Sep 29 03:33:45 any other returns nonzero Sep 29 03:33:48 say for example Sep 29 03:33:59 str.equals(str2) == 0 Sep 29 03:35:24 0 is false, !0 is true. !true is 0. Sep 29 03:35:27 <^cheeky> like the comparator interface Sep 29 03:36:06 ^cheeky: the problem is not here, you cannot have both (StringObject1.equals(StringObj2)) and !(StringObject1.equals(StringObj2)). Sep 29 03:36:08 uh :) Sep 29 03:36:12 .equals returns a boolean Sep 29 03:36:32 str.equals(str2) == 0 won't compile Sep 29 03:36:43 hmm Sep 29 03:36:56 oh wait think its c# thing Sep 29 03:36:57 ^cheeky: and yes, that negates it. Sep 29 03:36:58 <^cheeky> then how would i validate Sep 29 03:37:38 You're not making sense. Sep 29 03:37:49 Log.d.println("DEBUG", String.format("%s %s", StringObject1.equals(StringObj2), (!(StringObject1.equals(StringObj2)))) Sep 29 03:37:53 (StringObject1.equals(StringObj2)) is true or false, what is there to validate? Sep 29 03:37:56 one will be true, the other will be false Sep 29 03:39:49 <^cheeky> ok i just did this stringobj,equals(striobj2) == true Sep 29 03:40:22 that's exactly the same as just stringobj,equals(striobj2) Sep 29 03:42:24 <^cheeky> lol Sep 29 03:42:33 <^cheeky> thanks i dont think i fixed the issue Sep 29 03:42:40 <^cheeky> i should rest Sep 29 03:42:49 <^cheeky> thank you really appreciate ti Sep 29 03:42:50 <^cheeky> it Sep 29 03:43:01 you should do... something, if you're having this much trouble with simple boolean expressions :) Sep 29 03:43:49 heh once a while bug becomes a feature though ;) my latest livewallpaper has third option thats made from bugged code. Sep 29 03:43:52 looks so cool Sep 29 03:44:10 makes it look like youre taken acid or something Sep 29 03:44:40 <^cheeky> i have been up .. kinda over 30 hours i think .. and i am tripping up on trivial stuff such as this, but yes i have alot more exposure Sep 29 03:44:52 30 hours ow Sep 29 03:45:34 <^cheeky> yeah . sucks coz i drank caffeine and now i dont want to sleep but i dont have the energy to program, makes me slower than what i already am Sep 29 03:45:57 <^cheeky> i suck SUPRISE :P Sep 29 03:45:58 <^cheeky> lol Sep 29 03:46:05 not as bad as me Sep 29 03:46:13 took me way too long to fix this bug Sep 29 03:46:25 fin = rndy * drawme.getWidth(); fin = rndx + rndy; Sep 29 03:46:33 see a problem with that code? heh Sep 29 03:47:23 it looks correct but definitely wasnt. Sep 29 03:48:31 <^cheeky> heh Sep 29 03:48:35 <^cheeky> yeah its so painful Sep 29 03:48:40 <^cheeky> when you cant get it, Sep 29 03:49:03 yeah' Sep 29 03:49:12 my worse was for college project Sep 29 03:49:15 C project Sep 29 03:49:29 <^cheeky> i even implemented, interfacecomparable in my item class so i can add it to to a TreeSet but after adding the size == 1 :/ Sep 29 03:49:32 I forgot to add item.next=null Sep 29 03:49:39 <^cheeky> og Sep 29 03:49:51 took me over 9 hours to find the bug because it appears only once a while Sep 29 03:49:55 <^cheeky> OMg i forget null stuff in c++ and it comes and bites me back hehe Sep 29 03:50:13 C actually in this case lol I forgot to add > in example here Sep 29 03:50:42 item->next = null; Sep 29 03:51:32 <^cheeky> i really am a proper n00b , c/c++ would be awsome to create with, one of the closest to machine level with abstract goodies from the rest Sep 29 03:51:42 C is hella fun Sep 29 03:51:52 havent coded in it for a while though :( Sep 29 03:51:55 <^cheeky> errr for you :P Sep 29 03:52:04 <^cheeky> i just have alot of fear Sep 29 03:52:19 <^cheeky> quirks of being human unline machines :) Sep 29 03:52:28 <^cheeky> *unlike Sep 29 03:59:09 lol ok Sep 29 04:15:57 How is Android Studio for beginners? Should I stick with Eclipse? Sep 29 04:16:28 <^cheeky> brilliant Sep 29 04:16:37 <^cheeky> not dissing eclipse tho :P Sep 29 04:16:52 <^cheeky> ok my comp is waaaarrrrm Sep 29 04:17:18 yes i have read that, but it doesnt address what i am doing Sep 29 04:21:59 Some Q&A suggest that Android Studio may not be beginner friendly due to the nature of its early development which may contain bugs that could cause problems for a beginner, but I think it's something I should start with if it's going to be the IDE to use. Sep 29 04:44:46 both eclipse and intellij will be supported going forward, I would imagine Sep 29 05:14:42 this book is explaning debugging in eclipse and it says to double click the error and it will take you to the location in the code, but when i double click nothing happens...? Sep 29 05:18:48 i'm not getting my list to show up. heres the code and layout: http://pastebin.com/5Sg4uHSR Sep 29 05:20:19 was trying to follow this tutorial (along with the developer.android.com pages): http://gmariotti.blogspot.com/2013/06/tips-for-listview-view-recycling-use.html Sep 29 05:24:04 dammit wish theres way to chop bitmap without having to create another bitmap Sep 29 05:25:34 <^cheeky> XXCoder: isnt there away using bitmapOptions Sep 29 05:25:41 <^cheeky> inBitmap Sep 29 05:25:47 I tried setting outBitmap Sep 29 05:25:52 seem to have no effect at all Sep 29 05:26:02 er outHeight and width I mean Sep 29 05:26:29 <^cheeky> honestly i put the scale to 1 lol Sep 29 05:26:46 <^cheeky> i couldnt get the thing to be collected Sep 29 05:26:48 yeah since I load 3 ponentally large picture Sep 29 05:26:52 I cant do that Sep 29 05:27:04 <^cheeky> i failed tho Sep 29 05:27:05 <^cheeky> lol Sep 29 05:27:10 <^cheeky> wrong person here Sep 29 05:28:00 <^cheeky> think you got to make it mutable Sep 29 05:28:16 hmm lemme research mutable Sep 29 05:28:24 <^cheeky> and have the outINBounds options to false Sep 29 05:28:57 <^cheeky> think thats when you get the height and what not without creating bitmap Sep 29 05:31:46 my public View getView(...) is never called. i though that's what notifyDataSetChanged() was for. Sep 29 05:33:14 <^cheeky> notifyDataset changes is when ever your collection or data struct has values that have been changed you call that to reload the changes , get view, is that inside an adapter Sep 29 05:45:36 ^cheeky: yeah, it's inside BaseAdapter, which i'm extending Sep 29 05:50:09 I sometimes hate livewallpaper preview :( Sep 29 05:50:17 2 apps enter, 1 app leaves Sep 29 05:50:18 it reloads when its rotated Sep 29 05:50:24 normal use it does not Sep 29 05:50:25 sorry, it's in Adapter, not BaseAdapter Sep 29 05:50:36 so its easy to go oom and/or crash something Sep 29 05:50:58 just add note DONOT rotate to app desc Sep 29 05:51:07 nah I made it bulletproof Sep 29 05:53:47 it's seems i may need to register the dataset observer somehow. Sep 29 05:54:18 im on a quest to uh.. resolve the import errors Sep 29 05:54:51 it claims i can goto projects > android > library > add .. and there would be something in dropdown to add.. but no Sep 29 05:56:49 do i need to register observers when using a custom adapter that extends baseadapter? i know that simpleadapter and arrayadapter don't need that. Sep 29 06:17:37 Did anyone get the greendao example to work in android studio? I get the error "multiple dex files define AbstractDao". Is this a Studio shortcomming or did I import it wrongly? Sep 29 06:42:59 hi ... i am building a math expression editor in android and was looking for a open source handwriting recognition api .. can someone please provide me with pointers for the same.. Sep 29 06:44:38 Sheldon, is that you? Sep 29 06:48:14 Mr Cooper it is Sep 29 06:49:51 hahaha...mr. cooper is too narcissistic to ask a question in irc , dont you think ! Sep 29 06:51:35 ... Sep 29 06:52:23 So couchbase lite has a chaotic documentation while GreenDao just doesn't build giving me dex errors... any other good options for storing data on android? Sep 29 07:38:28 Is there a way to run native code built with the NDK as root? Sep 29 07:56:37 Hi, anybody know why this goo.gl shortened URL presented at Google I/O 2013 no longer works? https://www.youtube.com/watch?feature=player_detailpage&v=EPYnGFEcis4#t=1651 Sep 29 07:56:40 (regarding mobile HTML) Sep 29 08:47:51 anyone using eclipse + basegameutils / play services ? in your project do you get the java source pop up on memebers of those external jars? Sep 29 09:00:20 hrm got gooole plays services seemingly working except it somehow broke admob Sep 29 09:02:25 import com.google.ads.*; no longer working.. i can still see the admobsdk.jar in java build path Sep 29 09:06:39 maybe instead of adding jar i should add project dir Sep 29 09:06:49 despite google docs i read earlier? Sep 29 09:07:23 import* project dir Sep 29 09:08:48 ahh that doesnt really work it has no AndroidManifest.xml Sep 29 09:13:25 http://stackoverflow.com/questions/5812511/including-google-admob-sdk-to-use-with-ant Sep 29 09:13:26 hrm Sep 29 09:29:46 I can't get anything complex to work with studio :/ Sep 29 09:30:46 dex errors when building libraries, organize imports doesn't work (even though it works if i ctrl+space every class individually)... I mean, I really like studio, but I can't get anything done :/ Am I the only one who has these problems? Sep 29 09:43:13 hey guys, i'm trying to write a default style for tablerows, but i can't figure out what the parent is. Widget.TableRow throws an error - any ideas? Sep 29 10:14:24 how do i make it so the action bar does not show whatsoever, instead of minimizing by using activity flag fullscreen no title bar Sep 29 10:19:59 lasserix: Use one of the NoActionBar themes? Sep 29 10:20:44 SimonVT: yeah there is still slight moment of action bar minimizing, but maybe i am remember days of title bar and the action bar always minimes Sep 29 10:21:04 I am using: android:theme="@android:style/Theme.NoTitleBar.Fullscreen" in manifest which i recall should do the trick Sep 29 10:21:18 but i still see about 100 ms of action bar ;p Sep 29 10:22:18 Set it on your application, not the activity Sep 29 10:22:23 And, use NoActionBar Sep 29 10:22:25 yeah i tried that too Sep 29 10:22:37 Not NoTitleBar Sep 29 10:22:39 I only see NoActionBar in conjuction with Holo Sep 29 10:23:03 There was no ActionBar pre-holo Sep 29 10:23:42 it is not coming up in intellisense hmm let me see online Sep 29 10:24:39 does not seem there was/is Sep 29 10:25:50 ahh here http://www.caincode.com/hiding-3-dot-action-bar-android-app/ Sep 29 10:26:22 That's what I said.. Sep 29 10:33:40 There is no NoActionBar without referencing holo for v11? Sep 29 10:34:18 No, to use NoActionBar Sep 29 10:34:25 I have no idea why you wouldn't use holo Sep 29 10:35:50 its opengl app Sep 29 10:37:44 im opengl app also. dunno much about the *.xml Sep 29 10:38:20 guess it doesn't matter since i am not using any of the widgets Sep 29 10:40:19 Jimmy: xml just makes it easier to leverage layout details across fragmentations Sep 29 10:41:19 Are you using single render-update thread or multithreading JimmyCarter? Sep 29 10:41:44 SimonVT: thanks Sep 29 10:42:15 single thread Sep 29 10:42:39 ahh Sep 29 10:43:10 only thing i know i could multithread is asset loading Sep 29 10:43:22 ahh Sep 29 10:43:41 apparently the egl forces 16 ms of delay between frame swaps Sep 29 10:43:57 which is why it is recomended to multithread logic and rendering Sep 29 10:45:03 tho ive heard for a lot of games doing all of it in the opengl is no problem cause you'll rarely overload it Sep 29 10:46:12 Hello! On my project i have designer which will create screens in png and psd. He asks me about resolution for raster format? But i can't decide which resolution to choose (application for phones and in portrait mode). 640x960 or 1080x1920? I think that i will сut resources from his screens and apply on them nine-patch Sep 29 10:46:33 hm interesting. i could try that pretty easily. i have everything split between client and server anyway Sep 29 10:47:22 its network game, so local game just runs client and server in single thread.. i could try running each in own thread Sep 29 10:47:40 but it already runs beautifully on nexus7 (tho runs like crap on galaxy nexus) Sep 29 10:55:58 Can anyone help? Sep 29 11:06:06 xgear what do you meanby screen? Sep 29 11:06:59 i mean scrren of application Sep 29 11:07:26 like mock up of app or background of activity or? Sep 29 11:07:44 http://developer.android.com/design/media/ui_overview_notifications.png Sep 29 11:07:49 like this Sep 29 11:08:11 but with application UI Sep 29 11:08:13 you are using as a resource in your app? Sep 29 11:08:24 from this screensi will cut resources Sep 29 11:08:39 ahh Sep 29 11:08:41 you have to do Sep 29 11:08:44 multiple resolutions Sep 29 11:09:06 http://developer.android.com/guide/practices/screens_support.html Sep 29 11:09:16 unless you are targeting one type of device Sep 29 11:09:23 different devices have different pixel densities Sep 29 11:09:37 so you have to make four kinds of resolution Sep 29 11:10:04 And the way to do 640x960 and then apply nine-patch on all stretchable resources? Sep 29 11:10:43 since 9patch stretches you only need one from what i understand Sep 29 11:11:18 unless, in the non-stretching part there is a logo or something, then that logo will change size on different phones if you only use one resource of it Sep 29 11:11:28 As i know i can provide one type of density for example xhdpi and android will downscale for hdpi mdpi Sep 29 11:11:41 no i dont believe so Sep 29 11:11:55 that's why there are different drawable bucket folders Sep 29 11:12:16 someone wrote a script you can use to do it for you though Sep 29 11:12:44 which script? Sep 29 11:13:03 generating resources for all denisies? Sep 29 11:13:19 *densities Sep 29 11:14:40 http://stackoverflow.com/questions/12640701/tool-to-batch-convert-android-resource-bitmaps-to-different-densities Sep 29 11:14:53 https://gist.github.com/pjdietz/5579091 Sep 29 11:15:06 you can just google "android densities script" and find the language you use Sep 29 11:15:20 I can't seem to match a pre-defined UUID with one from my bluetooth device. I don't know why. http://pastebin.com/rneWsYTB shows the issue, code and logcat Sep 29 11:18:01 lasserix so i must cut xxhdpi resource and apply script to generate ldpi mdpi hdpi xhdpi? Sep 29 11:18:18 yeah depending on what script you use that's the idea i think Sep 29 11:18:54 and most appropriate for xxdpi is 1080x1920? Sep 29 11:19:05 no idea Sep 29 11:19:08 tbh Sep 29 11:34:22 hello Sep 29 11:34:49 i have a question please. Sep 29 11:35:57 hey Sep 29 11:36:11 I search a FM radio tuner application for android.Something working without wifi and not either a streaming radio... Sep 29 11:36:36 i bought a phone but i didn't find the radio apk although it should be in the phone... Sep 29 11:36:43 im getting started with android dev, and looking for an ide. well i only know eclipse with android plugin or android studio. but they both written in java thus fucking slow. Sep 29 11:36:46 any alternative? Sep 29 11:36:52 excuse me if i'm not in the right chan to ask this Sep 29 11:38:59 hello guys Sep 29 11:39:15 when i'm painting on a view i'm using pixels or dps? Sep 29 11:39:27 a custom painting Sep 29 11:52:00 jackneill you can go native and use c++ but really java is only as slow as you code it for most apps Sep 29 11:52:27 suchorski probably px Sep 29 11:52:46 err depends on what you are doing Sep 29 11:53:04 for instance i believe you can set different flags when drawing text to use dp or not Sep 29 11:53:10 lasserix, well..it just kind of sucks to wait seconds for everthying in android studio Sep 29 11:53:29 i never converted over cause everyone said more or less the same Sep 29 11:53:33 also it needs a vim input mode:P Sep 29 11:53:37 lasserix have a way to use dp? Sep 29 11:53:50 Jackneill some people here do use VIM Sep 29 11:53:55 i'm trying do make a snakes game just to learn Sep 29 11:53:58 Suchorski yeah just use equation Sep 29 11:54:14 but i don't know how to work with different screen resolutions Sep 29 11:54:20 the best way is to use dp? Sep 29 11:54:33 so after the view is set Sep 29 11:54:37 get width and get height Sep 29 11:54:51 if you do it when you first layout it won't work cause it has not been laid out Sep 29 11:55:20 lasserix, so they code the 'code' part in vim, also the xml design and build the apk to see the result? or is there an app which realtime shows the result if the xml while you are editing it? like in android studio Sep 29 11:55:36 i dont know your code but one way is to use a handler and keep posting a runnable while they return zero and then when not just set the fields Sep 29 11:55:44 then you can use float dp = px / (densityDpi / 160f); to convert from px to dp Sep 29 11:55:52 and the inverse of that to convert from dp to px Sep 29 11:56:22 tks lasserix i will try here Sep 29 11:56:23 :D Sep 29 11:57:23 jackneill i dunno but in reality my guess is if you have to double check your xml every other edit you are still too noob to be complaining ;p Sep 29 11:57:55 tbh i don't know how they do it, but some people do use vim here Sep 29 11:58:05 lasserix, well by getting started i meant i opened to sites to start learning, my actual knowledge of java or android xml design is zero Sep 29 11:58:17 you might just use vim to do code Sep 29 11:58:32 then use android studio or eclipse to do xml layout till you get the hang of it and copy paste Sep 29 11:58:36 thats why i wouldnt start with java Sep 29 11:58:55 yeah Sep 29 11:59:15 you can do the ndk but that's usually for hard core performance eg games or the like Sep 29 12:00:28 or the likes who doesnt really like java. i'd like to go with c#, go or something Sep 29 12:00:37 oh Suchorski if you are doing your own view you can get dimensions of the canvas from onSizeChanged method Sep 29 12:00:44 c# has xamarin, but only mac and win. fuck. Sep 29 12:01:09 http://xamarin.com/android Sep 29 12:01:14 oh Sep 29 12:01:57 lasserix i was doing here... these dimensions include the size of the top statusbar? Sep 29 12:02:08 no Sep 29 12:02:16 are you using custom view? Sep 29 12:02:21 you can compare Sep 29 12:02:26 because my square is out of the window Sep 29 12:02:38 and i removed the status bar Sep 29 12:02:44 and now my square is on the right place Sep 29 12:02:54 yes, custom view Sep 29 12:03:22 the onSizeChanged will just be the size of the custom view not including title bar Sep 29 12:03:46 hum... i'm using canvas.getWidth() Sep 29 12:03:47 or for that matter if the custom view is forced to be like a small square in your activity layout, then it'll return whatever size it is less than the device Sep 29 12:04:34 lasserix look a screenshot Sep 29 12:04:35 http://puu.sh/4D73Q.png Sep 29 12:05:04 with statusbar the bottom square are drawned outside of the window Sep 29 12:07:39 so Sep 29 12:07:42 romainguy Sep 29 12:07:44 says https://groups.google.com/forum/#!topic/android-developers/Q6ah5s1X9rE Sep 29 12:07:51 do not use canvasGetHeight/GetWidth Sep 29 12:07:54 use the container view Sep 29 12:08:09 so you can simply use getView getHeight without the canvas prefix Sep 29 12:33:40 suchorski Sep 29 12:33:53 you always draw in pixels Sep 29 12:34:08 every coordinate from code is pixels Sep 29 12:34:37 minivac my problem is how to make my game work in all screen resolutions Sep 29 12:35:04 are you using open gl? Sep 29 12:35:56 because the problem changes then Sep 29 12:36:05 if you are using custom drawing with canvas Sep 29 12:36:50 guess you'll have to work out coordinates based on screen width and height Sep 29 12:37:48 also you can use some dp to pixels conversions Sep 29 12:37:54 i always found it easier to draw in canvas-relative units Sep 29 13:29:37 <^cheeky> hi hi hi :) Sep 29 13:39:33 <^cheeky> wouldnt linkedHashSet be better to use with baseAdapter rather than a treeset to negate duplicates in an arrayList \ Sep 29 13:52:10 hello everyone! I have a question regarding Fragments and lifecycle within an Activity Sep 29 13:53:25 I have an Activity containing a ListFragment. When the Activity is created, I instanciate the ListFragment and register it to the FragmentManager. Sep 29 13:53:31 Hey. How can I force my Gridview to have the same height as width? Sep 29 13:54:18 When I perform an orientation change, the Activity is recreated and I verify in the FragmentManager if the ListFragment exists, it exists and so I want to reuse it Sep 29 13:54:49 <^cheeky> Bas_: stretchMode = columWidth in layout file Sep 29 13:55:03 I tried that but I get really small items Sep 29 13:55:06 but during the orientation change, the onDestroy method of the ListFragment is called, why? Sep 29 13:55:31 I set the numColumns to 3 Sep 29 13:55:38 and I didn't set the columnWidth Sep 29 13:55:44 (Wich gives me the same result Sep 29 13:56:13 <^cheeky> shibakaneki: during rotation change, your whole activity is re-created, so the fragments life-cycle methods, also get called Sep 29 13:56:35 <^cheeky> numofColums = autofit Sep 29 13:56:38 <^cheeky> try that Sep 29 13:57:13 Same result Sep 29 13:57:18 1 sec I'll link to my xml Sep 29 13:58:01 ok, I understand that. But in my ListFragment, I set an Adapter for the list, and I would like to retrieve the same adapter (and not create a new one), when an orientation change occurs. For that, I do something like: if(getListAdapter != null){...}, but it always return null Sep 29 13:58:05 http://pastebin.com/Q9sUg39s Sep 29 13:58:12 so I loose my datas Sep 29 13:58:23 Save your dates to a static variable or something Sep 29 13:58:31 and check if that variable is null Sep 29 13:58:45 if it's null regenerate your data and if it's not null reuse that data Sep 29 13:58:49 Hi, I'm wondering if it's doable to set up tracks with waypoints on Google Maps API v2 for Android Sep 29 13:59:35 thx for the idea Bas_, but I was wondering if there is a possibility to reuse the adapter to avoid recreating it Sep 29 13:59:49 I've only seen the polylines and lines in the API, but not a way to connect 2 LatLng for example (and that should follow the existing roads) Sep 29 14:01:01 shibakaneki: You can't. You just have to store that data somewhere Sep 29 14:01:33 then it will loose the scroll position? Sep 29 14:01:58 <^cheeky> Bas_: use setRetainInsance on your onCreate to true, and have the variable private, and also listFragment holds a view already .. so if you want to get a hold of it .. grab it during the onActivity created and setup stuff there Sep 29 14:02:27 <^cheeky> shibakaneki: ^^ sorry Sep 29 14:02:38 -_-' Sep 29 14:02:45 ah that's the kind of stuff I was looking for ^^ Sep 29 14:03:01 <^cheeky> shibakaneki: in onActivity created do ListView list = getListView Sep 29 14:03:28 yeah i see Sep 29 14:03:32 will try that Sep 29 14:05:15 <^cheeky> kk Sep 29 14:06:40 it takes a bit time to understand correctly these lifecycle things but I think that's really the 'must know' thing Sep 29 14:08:15 and it saves my scroll position! thx ^cheeky! Sep 29 14:08:46 My gridview still doesn't seem to want to work :/ Sep 29 14:08:47 <^cheeky> shibakaneki: awsome it works !!!!! Sep 29 14:08:59 <^cheeky> Bas_: :( Sep 29 14:09:57 <^cheeky> Bas_: remove gravity and see if that would help Sep 29 14:10:29 I can't use the Runnable in android? Sep 29 14:10:50 mkay Sep 29 14:10:51 <^cheeky> Suchorski: yeah you can, but i am no pro .. Sep 29 14:12:08 i'm getting a exeption when i load a class with a runnable implement Sep 29 14:13:31 hello Sep 29 14:13:34 how do I make an app on android Sep 29 14:13:35 nope removing gravity doesn't seem to help Sep 29 14:14:24 beaky: you start at the front page of d.android.com and do a lot of reading Sep 29 14:14:46 do i have to know java Sep 29 14:14:55 or can i use whatever programing langauge i liek Sep 29 14:15:01 Java. Sep 29 14:15:02 Depends on what kind of app you want Sep 29 14:15:05 ah Sep 29 14:15:05 you mostly have to know Java Sep 29 14:15:11 awesome I love java Sep 29 14:15:13 You can make apps in HTML5/js if you want Sep 29 14:15:15 There are other options, but if you ask that question, Java. Sep 29 14:15:19 or C++, java etc Sep 29 14:15:26 no clojure? Sep 29 14:15:31 Scala Sep 29 14:15:32 idunno Sep 29 14:15:43 ok i iwll learn from oficial tutorial Sep 29 14:15:56 <^cheeky> beaky: hiiii Sep 29 14:16:02 ^cheeky do you know how to force a view to redraw? Sep 29 14:16:02 helo cheese1756 Sep 29 14:16:19 helo ^cheeky * Sep 29 14:17:08 <^cheeky> Suchorski: i havent done that ... :/ Sep 29 14:17:08 you can call invalidate() to refresh the view I think Sep 29 14:17:11 <^cheeky> :( Sep 29 14:17:26 <^cheeky> shibakaneki: intresting Sep 29 14:17:27 what is the best tutorial Sep 29 14:17:33 shibakaneki i'm calling but nothing happens Sep 29 14:17:38 <^cheeky> beaky: the ones on android dev, Sep 29 14:18:00 is the android sdk available on GNU/Linux Sep 29 14:18:09 i have intelij idea Sep 29 14:18:32 <^cheeky> beaky: 0oo nice :) Sep 29 14:18:35 ah there is a package Sep 29 14:18:38 beaky: can you read? Sep 29 14:18:43 ? Sep 29 14:18:53 can you read? Sep 29 14:18:56 yes Sep 29 14:19:22 so when you went to d.android.com and clicked on "Get the SDK", how did you not learn that it was available for Linux? Sep 29 14:19:36 oh right there is a linux package there Sep 29 14:20:32 <^cheeky> Bas_: what did you want with the grid_View Sep 29 14:21:15 Suchorski: are you calling invalidate from the UI thread? Sep 29 14:21:53 from my thread Sep 29 14:21:56 <^cheeky> so when i get better with android i can do c++ stuff "?? Sep 29 14:21:59 <^cheeky> with android Sep 29 14:22:05 then try to call : postInvalidate() Sep 29 14:22:29 invalidate() must be called from the UI thread, here is the documentation: http://developer.android.com/reference/android/view/View.html#invalidate() Sep 29 14:23:06 shibakaneki doesn't work too Sep 29 14:23:31 i'm implementing the Runnable inside a extended view Sep 29 14:23:34 is that right? Sep 29 14:23:46 <^cheeky> shibakaneki: to erradicate duplicates .. do you use a treeset .. in your adapter implementation Sep 29 14:23:57 shibakaneki http://codepad.org/4ZRY2fL2 Sep 29 14:25:09 ^cheeky: no but thank you for the information ;) I will modify my adapter ^^ Sep 29 14:25:33 wow the android sdk is a big download Sep 29 14:25:48 <^cheeky> shibakaneki: AH ha ..i was asking if you do it . coz thats what i am trying to do lol Sep 29 14:25:49 <^cheeky> heh Sep 29 14:26:13 ^cheeky: hahaha ok :D Sep 29 14:26:19 <^cheeky> beaky: you gonna have fun :)) Sep 29 14:26:34 <|0xD34D|> beaky: it's not that big unless you are getting the ADT bundle :P Sep 29 14:26:34 <^cheeky> heh lets see if this works Sep 29 14:26:36 oh I am downloading the adt bundle. i just want the basic tools Sep 29 14:26:50 Suchorski: it looks like you are mixing the UI part and the worker part Sep 29 14:27:03 ah it is now a more reasonable 100MB Sep 29 14:27:04 beaky: 24 seconds to download the ADT package :P Sep 29 14:27:13 wow your internets is faster tha mine Sep 29 14:27:28 the ADT bundle would have taken me 45 mins Sep 29 14:27:33 yeah, it's sort of faster than everyone's Sep 29 14:27:49 awesome Sep 29 14:27:59 i wish i had faster internets Sep 29 14:28:00 Leeds: How fast are we talking? Sep 29 14:28:10 kakazza: gigabit fibre into my living root Sep 29 14:28:12 room! Sep 29 14:28:19 heh Sep 29 14:28:30 lol Sep 29 14:28:31 At that point, you can basically download food and never leave. Sep 29 14:28:59 <^cheeky> in my living r00t heh Sep 29 14:29:03 yeah, pretty much Sep 29 14:29:04 i am stuck at 250KBps Sep 29 14:29:19 <^cheeky> gawwwddddd i am so distracted <3 IRC Sep 29 14:30:39 should I use the openjdk for android devleopment Sep 29 14:30:48 or should I get oracle's hostpto Sep 29 14:30:54 no, you should use the SUN^WOracle JDK Sep 29 14:40:11 yay I am installing the API 18 Sep 29 14:40:30 soon I will be empowered to program for the android platform Sep 29 14:42:13 hi guys, anyone aware of any dev tools / emulators which would allow me to test apps aimed at the s3/s4 type of hardware on my windows/linux desktop pc (ie running the app in an emulated window)? ive found lots of apps that claim to do it, but when running on a pc, the apps i am trying to test are "not supported by this device" and its quite expensive to have a few spare s4's lying around purely for dev purposes Sep 29 14:44:00 something akin to virtualbox for android would be sweet, so i can limit the cpu speed/ram/gpu support in each of the virtual devices Sep 29 14:44:43 but i have to be able to lie to the apps beign tested, so they believe they are running on for example a galaxy s3, and not "virtualbox" Sep 29 14:45:37 <^cheeky> beaky:yay!!!! s000 much fun !!! Sep 29 14:47:04 is learning hard Sep 29 14:47:11 do I have to grok yet another architectural paradigm Sep 29 14:47:32 and another big API, another big IDE, etc. :D Sep 29 14:49:10 <^cheeky> naww, even people like me can do it, Sep 29 14:49:14 ah Sep 29 14:50:44 is it hard Sep 29 14:51:00 atm im using my own phone, but it so frustrating when developemnt gets interrupted by a bloody phone call :P Sep 29 14:52:04 keep using it Sep 29 14:52:09 the android emulator sucks ass Sep 29 14:52:15 in that it's very slow Sep 29 14:53:16 just tell people to stop calling you, or get a cheapo phone and stick the SIM card in it while you're using your good one to dev Sep 29 14:53:27 slow is fine, if i am able to run 5 or 6 virtual devices on one pc Sep 29 14:53:39 <^cheeky> get a cheap pipo s1:P Sep 29 14:54:02 it just has to have the graphics support that an s3 has at minimum Sep 29 14:54:08 <^cheeky> oh nice, my laption turns into cookware when i emulate :P Sep 29 14:54:24 Well I dunno if you can run 5 or 6 since I dunno your specs Sep 29 14:54:25 thats my issue atm, everything ive found so far cant emulate the gpu Sep 29 14:54:41 runnin 5 or 6 with s3/s4 resolution screens is gonna make you roll over and die, I'd assume Sep 29 14:54:44 whhat is the best target for a tutorail project Sep 29 14:54:46 well the machine id be running them on is a dual 16core opteron with 32Gb of ram Sep 29 14:54:47 should I use the google api Sep 29 14:55:02 and 2 hd7970 gpus, so i shoudl think it can handle it :P Sep 29 14:55:03 well it still won't emulate the gpu Sep 29 14:55:24 http://developer.android.com/tools/devices/emulator.html Sep 29 14:55:28 To enable graphics acceleration at runtime for an AVD: Sep 29 14:55:40 but idk how well it'll emulate things like opengles Sep 29 14:56:06 ok, will have a play Sep 29 14:56:43 beaky, the google api as opposed to? Sep 29 14:57:16 android-18 Sep 29 14:57:29 any alternatives for Google's Directions API? Sep 29 14:57:37 doesn't matter much Sep 29 14:57:54 as in, both should be pretty much the same thing Sep 29 14:58:25 use google api if you wanna use google maps, c2dm, and other additionnal stuff like that Sep 29 14:59:04 although you can probably include them into an android api project or just switch the target api if you find you need them Sep 29 14:59:09 yeah, but it has restrictions in place, some of which would really hamper the app Sep 29 14:59:15 belgianguy, uh Sep 29 14:59:54 http://developer.mapquest.com/web/products/dev-services/directions-ws Sep 29 14:59:58 there's mapquest's direction api Sep 29 15:00:09 eg if I want to use waypoints, I can only use 8 per request in regular mode Sep 29 15:00:45 Raziel: ah, that looks interesting, thanks for that Sep 29 15:01:20 there's also viamichellin's api Sep 29 15:01:24 not sure if you can stick that into android tho Sep 29 15:02:31 Raziel: yeah, I'm sure I'll run into more trouble, as it doesn't tie in with Google Maps in any way Sep 29 15:03:10 but the webview could perhaps help Sep 29 15:03:27 i wonder if there's a way to make your own directions map to work with google maps Sep 29 15:06:57 Raziel: I'm afraid not, that'd defeat the purpose of having a restriction on the rest of it :) Sep 29 15:07:49 https://developers.google.com/maps/documentation/directions/ (the free version allows for 8 waypoints, the Business version allows 23) Sep 29 15:08:30 Yeah thought as much Sep 29 15:09:24 <^cheeky> 0oo new update for android studio Sep 29 15:09:40 should I use android studio Sep 29 15:09:46 or should i use comand line tools Sep 29 15:10:15 <^cheeky> you could use what ever, but i just use android studio, but i am n00b Sep 29 15:10:23 beaky: yes Sep 29 15:10:36 or Eclipse Sep 29 15:11:09 AS is still a preview, it can have issues, and there's less community knowledge about it Sep 29 15:11:21 ah Sep 29 15:11:36 btw why cant i make an sdcard for my android virtual device Sep 29 15:11:45 i am using archlinux 64-bit Sep 29 15:12:44 oh Sep 29 15:13:07 i need to install 32-bit libaries Sep 29 15:23:42 why does my emulator dump core when I try to start it Sep 29 15:24:50 The core dump should tell you. Sep 29 15:25:12 *** Error in `/home/beaky/android-sdk/android-sdk-linux/tools/emulator64-arm': munmap_chunk(): invalid pointer: 0x00000000005f3706 *** Sep 29 15:25:40 There, because munmap_chunk was passed an invalid pointer, specifically: 0x00000000005f3706. Sep 29 15:25:45 ah Sep 29 15:25:59 maybe its because i am running the emulator in an archlinux v Sep 29 15:26:00 vm Sep 29 15:27:15 Perhaps. Sep 29 15:28:16 why would you do that? Sep 29 15:28:26 i am using archlinux in vm Sep 29 15:28:53 oh well i am going to install the sdk on my host machine Sep 29 15:34:51 Greetings guys, I am trying show a MapFragment on the screen for my activity. I have it working but the map doesnt show. According to the Android log I am getting some kind of authentication error. I have checked my API key and all authenticated information Sep 29 15:35:10 no dice. Was wondering if someone could lend a quick hand and help me figure out what I am missing or what value is not correct Sep 29 15:35:36 this is the error i am receiving: ERROR/Google Maps Android API(15337): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). Sep 29 15:47:48 Hey guys, a bit of a dumb question but I can't seem to find an answer. I know ListViews are supported within widgets, however, I cannot figure out how to link an ArrayAdapter to use them since you need to use RemoteViews. setRemoteAdapter() is the closest I can find, however, that doesn't allow me to use an ArrayAdapter. What can I do to allow an ArrayAdapter to be used here? Sep 29 15:49:08 You can't Sep 29 15:49:12 You use RemoteViewsFactory Sep 29 15:49:59 SimonVT: I'll take a lok at that thanks Sep 29 15:50:02 *look Sep 29 15:50:43 * xximjasonxx bangs head on keyboard Sep 29 15:50:46 Google I hate you Sep 29 15:50:58 why is getting Maps to work such a chore Sep 29 15:51:21 hey Sep 29 15:51:41 wait till you have to control the livecycle Sep 29 15:51:54 then you will know true pain Sep 29 15:52:53 xxim yeah I remember trying to make maps work. it really sucked. Sep 29 15:53:44 not to take anything away from Google, but in Windows Phone you literally drop a tag in XAML and you are done Sep 29 15:54:04 granted comparing the popularity of Nokia Maps and Google Maps is ridiculious at best Sep 29 15:54:48 I remember something about fidding with key in android mafest or something to get it to work Sep 29 15:55:13 XXCoder, yeah I THINK i am good there Sep 29 15:55:42 hopefully :) Sep 29 15:56:20 http://pastebin.com/ztkWX7AS Sep 29 15:56:26 that is the Manifest Sep 29 15:57:16 wow google gave you a real weird key ;) Sep 29 15:57:22 lol Sep 29 15:57:35 if anyone has a working maps application and can see if I am missing anything, I would greatly appreciate it Sep 29 15:57:56 so its supposed to be on its own within application tags Sep 29 15:58:09 ehh Sep 29 15:58:23 * xximjasonxx didnt even know you could have multiple tags Sep 29 15:58:25 you sure? Sep 29 15:58:42 nah was wondering. checking google on how to use that tag Sep 29 15:58:58 https://developers.google.com/maps/documentation/android/start#creating_an_api_project Sep 29 15:59:10 ive been on this page way too much the last couple days Sep 29 15:59:29 youre right it looks like Sep 29 15:59:50 oh I think I see it Sep 29 16:00:00 nm Sep 29 16:00:07 09-29 10:52:31.029: ERROR/Google Maps Android API(19269): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. Sep 29 16:00:07 09-29 10:52:31.030: ERROR/Google Maps Android API(19269): Ensure that the following correspond to what is in the API Console: Package Name: com.farrellsoft.br, API Key: AIzaSyBQbC1O7g5_stmRXZH-ef9HDb8a1te-8YQ, Certificate Fingerprint: 9806034D61A0BAC47F31B870C241DEEB98321919 Sep 29 16:00:49 i even removed the package restrictions, so any app can use it Sep 29 16:02:18 http://stackoverflow.com/questions/13696620/google-maps-android-api-v2-authorization-failure Sep 29 16:02:31 possible solution? see first answer Sep 29 16:02:56 it shows enabling map api in what looks like eclipse Sep 29 16:04:07 i already decided that when i do get this working, a blog post is due Sep 29 16:04:12 this is ridiculious Sep 29 16:04:28 yeah Sep 29 16:04:53 Is it possible to call the main thread from an AsyncTask so that I can toggle setProgressBarIndeterminateVisibility Sep 29 16:05:29 xximjasonxx: Trying to do some farnell stuff? Sep 29 16:05:50 "Console: Package Name: com.farrellsoft.br, API Key:" Sep 29 16:06:07 hello Sep 29 16:06:13 hey Sep 29 16:06:37 Bas_, two things: 1) what do you mean? 2) for you, use the visitor pattern, pass something into your AsyncTask constructor that you can reference from the Activity Sep 29 16:07:17 I though you were doing something with farnell because I misread farrellsoft as farnellsoft :/ Sep 29 16:07:21 :) Sep 29 16:07:58 hmm thanks Sep 29 16:07:59 xx I rea this in one site "I've been fighting with this for days and did the tutorial several times. What fixed it for me was simply uninstalling the app from my phone and then installing it again." Sep 29 16:08:08 try uninstall it Sep 29 16:08:15 your app, then reinstall Sep 29 16:09:17 HOLY SHIT Sep 29 16:09:20 and it works Sep 29 16:09:37 XXCoder, I was missing that very last bit of the SO link you posted Sep 29 16:09:46 which, frankly, I have no idea what that even does Sep 29 16:09:50 what is the ProGuard file? Sep 29 16:10:27 I do suggest try uninstall your app and reinstall first though Sep 29 16:10:29 Progaurd optimises/obvuscates/etc assembled code Sep 29 16:10:59 if it really was that simple its nice way to avoid all that work Sep 29 16:12:20 im thankful its sunday Sep 29 16:12:46 now i can watch football to relieve my droid rage Sep 29 16:14:31 lol Sep 29 16:15:52 couple said they had to do restart after uninstall to get it to work Sep 29 16:31:35 <^cheeky> hi .. i think i sorted the duplicates .. in my gridView .. using a treeSet .. but i think i am messing it up again because as i scroll down the gridview, and the end of page1 i fetch more pics, when i do i add it to the treeset first and then to the arrayList using add all, perhaps i am causing it to add duplicates there ?? Sep 29 16:46:28 how can i style a list view so that it has multiple strings and different layout instead of just simple_list_item_1 Sep 29 16:48:35 Reflow: create your own adapter extending BaseAdapter Sep 29 16:48:57 is there a tutorial or something for that? Sep 29 16:49:02 gdrc. Sep 29 16:49:17 of course Sep 29 16:49:19 just google Sep 29 16:49:24 there are tons of example Sep 29 16:49:33 s Sep 29 16:52:41 <^cheeky> Reflow: you need to create view for your adapter to Sep 29 17:05:14 If I have a StatusBarNotification, how can I get the title of said notification? I can get the tickerText via .getNotification().tickertext, but I can't seem to figure out how to get the title Sep 29 17:08:11 is there any good way of accessing button events through custom notification layouts? It seems that the way to go is to use RemoteViews.SetOnClickPendingIntent(), but i dont want to fire off an activity, i want to stay at the notification window. Sep 29 17:08:31 heathen2: you could throw it to a BroadcastReceiver Sep 29 17:17:21 Hey, just got a new PC (Windows 8 x64 OS) and when I tried to run the Android SDK manager on it, a commandprompt window flashes and then nothing happens, is this normal, and is there a workaround if not? Sep 29 17:17:54 Should I be running it right through ADT? Sep 29 17:26:53 techkid6, open a command prompt and run sdk manager Sep 29 17:27:02 probably missing java Sep 29 17:28:01 I have JDK 1.7, and, I got it to work by running through ADT Sep 29 17:28:43 But, when I did, I installed the USB drivers (which I need to get my Nexus to run the app) but now the driver isn't working, as, despite putting into debug mode, I still dont see my nexus as a usable device for app debugging Sep 29 17:30:46 adb kill-server Sep 29 17:30:51 adb devices Sep 29 17:30:54 <^cheeky> :( if do .. arraylist.addall(items)... then same iteration do Treeset.addall(arraylist), shouldnt the TreeSet then only hold non duplicate ones ? every time i fetch more images ? Sep 29 17:31:02 plug it back in as well Sep 29 17:31:07 Ok Sep 29 17:31:20 adb is not recognized..... Sep 29 17:31:23 Where should I run this? Sep 29 17:31:36 sdk tools Sep 29 17:32:43 sdk tools? Sep 29 17:32:54 there Sep 29 17:33:12 I am a real noob here, where is that? :/ Is that the manager? Sep 29 17:39:16 What sdk should I get to develop on windows Sep 29 17:42:21 beaky: I like eclipse Sep 29 17:43:41 It says there are no devices attached Sep 29 17:43:48 (it was in platform-tools, not tools) Sep 29 17:43:51 Hello guys, is anyone here using banner ads other than AdMob for monetization? Sep 29 17:44:20 I would like to find an alternative for AdMob, since they blocked one of my apps in their system. Sep 29 17:44:21 techkid6: haven't seen your question, but seems likely that you need to restart adb server Sep 29 17:44:31 just did adb kill-server Sep 29 17:44:34 then adb-devices Sep 29 17:44:39 adb devices rather Sep 29 17:44:53 then it says "List of devices attached" Sep 29 17:44:56 and then blank Sep 29 17:45:39 I dont think the driver is working though Sep 29 17:45:44 do I need to restart pc? Sep 29 17:46:02 techkid6: you miss adb start-server Sep 29 17:46:15 Oh Sep 29 17:46:16 ok Sep 29 17:46:36 still no :( Sep 29 17:46:44 though you might need run it root (which OS are you in?) Sep 29 17:47:13 Windows 8 :( Sep 29 17:47:21 I dont have ubuntu installed on the new pc yet Sep 29 17:47:33 ops, no clue about windows :/ Sep 29 17:47:54 :/ Sep 29 17:48:08 Not many people develop on it for there to be an faq or something Sep 29 17:48:17 I will try rebooting (again) and see if that helps Sep 29 17:48:26 brb Sep 29 17:51:33 <^cheeky> can anyone please shed some light .. Sep 29 17:51:55 i have no problems at all on windows 8 Sep 29 17:54:54 heathen2: did you have to install a driver? Sep 29 17:55:13 to debug on your phone? Sep 29 17:55:16 techkid6: install pdanet+ Sep 29 17:55:40 debug on a tab, yeah Sep 29 17:55:43 pdanet+, ok Sep 29 17:56:01 i have sony experia z, so i downloaded from their webpage Sep 29 17:56:08 What does pdanet+ do? Sep 29 17:56:08 sonys that is Sep 29 17:56:13 Yeah... hmm Sep 29 17:56:27 I had to get the one from google, but i dont know how to check ifit is or isnt working Sep 29 17:56:31 * techkid6 is officially stumped Sep 29 17:57:40 techkid6: fix android usb issues with windows 8 Sep 29 17:57:52 ok cool Sep 29 17:59:46 <^cheeky> what could be some of the possibilities that could lead to images .. being displayed again . but they have moved down to a different position, this only happens when i get more images as i scroll down the gridview Sep 29 18:00:09 http://pastebin.com/mtQHQshC Thank you in advance. Sep 29 18:02:02 It worked, thanks gdrc :D Sep 29 18:02:35 you're welcome ;) Sep 29 18:02:52 veryhappy, you can't really have an asynctask like that Sep 29 18:03:00 asynctasks are complex, just use a thread for that Sep 29 18:03:01 ok, how? Sep 29 18:03:07 good. Sep 29 18:03:23 well i don't know anyway why it didn't work Sep 29 18:03:23 Do I need to keep the program though? I dont really want tethering ;P Sep 29 18:03:36 no Sep 29 18:03:39 Cool :D Sep 29 18:04:34 also veryhappy, your whole sequence there is linear and has to wait for what checkIpadress returns anyway Sep 29 18:04:39 so I don't really see how making it a thread helps Sep 29 18:05:07 unless you just don't want to lock the UI thread while it does it Sep 29 18:06:57 Raziel: i was just following the IDE - it said "NetworkOnMainThreadException" Sep 29 18:08:52 <^cheeky> :( Sep 29 18:09:09 <^cheeky> i cant SEEEEEEEE Sep 29 18:09:50 hi Sep 29 18:10:18 Raziel: so i shall only use a simple threat and that will work better? Sep 29 18:11:14 you'll still probably get a fun exception unless you somehow wait for the thread to finish Sep 29 18:11:20 but yeah, you can't really use an asynctask like that Sep 29 18:11:23 would anyone know what apps like "sketchbook express" etc would be programmed in? Sep 29 18:11:31 <^cheeky> simple Threat lol Sep 29 18:11:34 <^cheeky> sorry Sep 29 18:11:50 phpwn, c++ and openGL? Sep 29 18:11:51 i saw it on multiple platforms and was wondering if autodesk would be using a mobile dev framework for it Sep 29 18:11:58 that works crossplatform Sep 29 18:12:13 Raziel, ah openGL, that helps Sep 29 18:12:19 ^cheeky: you got any problem with a beginning programmer, pal? Sep 29 18:12:42 <^cheeky> veryhappy: what makes you say that ? Sep 29 18:12:56 do you think those cross-platform frameworks would make an app that uses OpenGL slower or less responsive? Sep 29 18:13:03 because you were laughing about the simple Threat Sep 29 18:13:05 better/worse to code directly for android? Sep 29 18:13:08 i don't know how to call it different. Sep 29 18:13:20 performance wise Sep 29 18:13:44 <^cheeky> veryhappy: i thought that was funny, didnt know it offended anyone Sep 29 18:13:44 (by frameworks I mean Xamarin etc) Sep 29 18:13:58 Guys, anyone knows where the graphic binaries are? Sep 29 18:14:17 ^cheeky: ok, never mind, i'm just sometimes reacting very fast, get offended quite fast if i think someone's laughing about me. Sep 29 18:14:24 <^cheeky> veryhappy: i wasnt laughing at anyone .. Sep 29 18:14:39 ^cheeky: everything's forgiven buddy Sep 29 18:15:04 <^cheeky> yeah thanks Sep 29 18:15:06 phpwn: maybe… you will need to look at the tools are you are interessted in directly Sep 29 18:15:17 theres no blanket answer Sep 29 18:15:20 ok Sep 29 18:15:20 Hello, I have activity that include two fragment, one list and another details, I use android:configchanges"orientation|screensize" to handle rotation, When i click on the item in list the item is selected, but when i rotate the screen i lost the highlight of the item but i got it again if i scroll in the list :/? Sep 29 18:15:22 <^cheeky> i am so stuck Sep 29 18:15:25 sorry for the noob-ness Sep 29 18:15:31 most GL / game frameworks are gonna be fast every place Sep 29 18:15:39 ic Sep 29 18:16:09 what people complain about the most is that some of teh frameworks are web or non native… and those are slower and or don't look right. Sep 29 18:16:09 coming from web background and trying to choose the platform/language to code my first android app Sep 29 18:16:27 I see Sep 29 18:16:47 depends on the style of app and if you need it to be xplatform Sep 29 18:16:50 Usually apps are made in java..... Sep 29 18:17:21 i picked up Android Studio - good place to start? Sep 29 18:17:31 ide made by jetbrains + google Sep 29 18:17:43 I use Eclipse Sep 29 18:17:49 Dunno how much better/worse studio is Sep 29 18:18:08 ok Sep 29 18:18:15 have no used it Sep 29 18:18:18 looks nice Sep 29 18:18:27 I like jetbrains work generally Sep 29 18:18:43 phpwn: i used eclipse, got better in programming with android since i use android studio based on intellij Sep 29 18:19:01 nice Sep 29 18:19:10 Guys is there a way to open an activity with just a binary? (no .apk and no .dex) Sep 29 18:19:33 time to try a "hello world" =) Sep 29 18:19:50 phpwn: android studio gives you more support advices and helps you a lot. use that for the beginning, if you still want to change just go to eclipse and import the apps that you already wrote. Sep 29 18:20:06 phpwn: http://developer.android.com/training/index.html Sep 29 18:20:08 cool, going to play with it Sep 29 18:20:18 ah nice, didn't know that link Sep 29 18:20:20 thank you Sep 29 18:20:22 phpwn: brought me there where i am at now. Sep 29 18:20:26 sweet :) Sep 29 18:20:49 phpwn: no problem, good luck and have fun, and also enjoy your programming,what keeps you happy makes you get motivated. Sep 29 18:20:56 always remember that. Sep 29 18:21:15 thanks - I've been really excited to try out android dev on the side as my hobby away from regular job Sep 29 18:21:30 seems like a platform where 1 coder can make cool stuff Sep 29 18:21:33 and not need a big team Sep 29 18:22:45 http://www.kickstarter.com/projects/occipital/structure-sensor-capture-the-world-in-3d with stuff like this coming out it's going to be an interesting time to be a mobile developer Sep 29 18:24:45 phpwn: next time you're gonna be the developer for pee tests for women that might just have to pee on the mobile phone and either it says, normal/pregnant/broken device :D Sep 29 18:24:57 bahaha Sep 29 18:29:41 Guys, is there a way to make an app in C that's just a runnable binary? Sep 29 18:30:36 (I mean, not an .apk to install but the pure binary file) Sep 29 18:31:04 there's no way to make an "app" like that Sep 29 18:31:25 in the sense of something that acts as an Android application - can receive intents, show graphical UI to the user, etc. Sep 29 18:31:54 oh... so there is no way to make a GUI with pure C? Sep 29 18:31:55 but you can make a binary that you can invoke in the usual ways Sep 29 18:32:09 v00d00: there is. but it still involves creating an apk Sep 29 18:32:30 Look up NativeActivity, and look at the NDK Sep 29 18:33:01 hi, does anyone know of an app that polls GPS location (accurate one) that can send out an HTTP POST request to a remote server that ISN'T Tasker, or am I looking at writing something myself? Sep 29 18:33:03 JesusFreke: but I could make an app and a framework that allows it, yes? Sep 29 18:33:40 v00d00: you would need at least 1 actual "Android Application" Sep 29 18:33:47 dingus_khan: what do you need it for actually? Sep 29 18:34:14 JesusFreke: Great, thanks dude. I think I have an idea nao Sep 29 18:34:21 Although you could envision a solution where you can create "runnable" binary applications, that communicate with that one android application to show UI Sep 29 18:34:44 but that seems a fairly roundabout way to do it, with no real advantage over just creating an android application Sep 29 18:34:47 veryhappy: I need it to POST GPS coords as params to a Rails app that will respond with an SMS via Twilio when in range of the specified coords Sep 29 18:35:00 ok Sep 29 18:35:14 Yeah, people kept suggesting Tasker, but that thing is a nightmare to me... Sep 29 18:35:38 plus I've only got like an hour to pull this off (hackathon; I know, I'm dumb) Sep 29 18:35:49 i'm not familiar with those "services"? Sep 29 18:35:52 JesusFreke yeah that's kind of my idea. Thanks Sep 29 18:36:19 you mean the android OS services you can access in building an app? Sep 29 18:36:50 dingus_khan: twilio and tasker Sep 29 18:36:55 dingus_khan: I assume your aware of the geofencing apis? (http://developer.android.com/reference/com/google/android/gms/location/Geofence.html) Sep 29 18:37:00 I mean, if I had a lot more time, I'd write an absurdly basic app myself that would simply poll the GPS once every few minutes (I know, it's terrible but it'd work for right now) Sep 29 18:37:04 hey guys- question - let's say i have a list adapter that contains n object of the class T. Does the adapter also store the objects, or just the T.toString() ? Sep 29 18:37:21 oh, you're not writing an application yourself? Sep 29 18:37:26 nevermind then :) Sep 29 18:37:51 yeah, the problem is that I've never written an android app myself (YET, definitely on my list for the near future, but can't be learning it on the fly right now) Sep 29 18:38:24 the SDK and tutorials are a little much when I'm trying to pull off the backend app with Twilio integration in an hour's time Sep 29 18:39:23 dingus_khan: I don't see why you would need the server component at all. You should be able to do everything on-device. Sep 29 18:39:30 and JesusFreke, yes, in a more intelligent approach, I'd use the fence approach, but all I need is a really dumb app right now that pushes HTTP requests without asking any questions, lol Sep 29 18:40:30 because I'm working with a Pebble watch, and I need to push messages to watch itself without having to root through integrating the Pebble SDK with a custom android app Sep 29 18:40:37 dingus_khan: maybe try something like https://code.google.com/p/android-scripting/ Sep 29 18:41:06 If you just want to get something running quickly on the device Sep 29 18:41:27 ooh, awesome, was not aware of that! Thank you JesusFreke! Sep 29 18:45:23 if i want to simulate a samsugn galaxy s4 mini, what model should i choose in the ADT? Sep 29 18:46:16 thank you guys Sep 29 18:46:22 i will try it out Sep 29 18:46:25 take care Sep 29 18:47:52 S_J: create one that has the same resolution and dpi Sep 29 18:48:25 (and api level) Sep 29 18:49:43 so my partner apparently managed to get the Pebble SDK to play nice with his stab at the native android app; going to try geofencing after all! Sep 29 18:50:04 heh Sep 29 18:52:42 JesusFreke, did you enjoy qicr? Sep 29 18:53:31 pfn: not bad. I really like the homescreen widget Sep 29 18:53:38 <^cheeky> hai Sep 29 18:53:53 I wish there was a way to go to the full screen view, from the dialog view. Sep 29 18:53:58 JesusFreke, yeah, the widget and notifications are my favorite things ever Sep 29 18:54:14 JesusFreke, yeah, I've been meaning to make the icon clickable to go fullscreen Sep 29 18:54:17 And maybe make the notification smaller by default, and allow you to pull it down to expand Sep 29 18:54:19 JesusFreke, like on the widget Sep 29 18:54:51 <^cheeky> 500 images == heap size 11.mb is ..(good()) ? True : false Sep 29 18:55:06 Chainfire, good Sep 29 18:55:09 er, cheeky Sep 29 18:55:13 stupid hexchat autocomplete Sep 29 18:55:28 ever qicr's autocomplete behaves better ;-) Sep 29 18:55:37 I think Sep 29 18:55:41 pfn: but yeah, overall - quite nicely done :) Sep 29 18:55:53 hmm, nope, it doesn't Sep 29 18:56:55 JesusFreke, thanks Sep 29 18:59:42 <^cheeky> so not good, i have some crappy code for the inBitmap, unsure if it works, but yeah with that heap is hovering there Sep 29 19:00:48 11mb is practically heapsize for all apps Sep 29 19:00:56 !paste Sep 29 19:01:39 i know that i need to run a thread on the main thread to update the ui Sep 29 19:01:42 but how do that? Sep 29 19:01:43 http://codepad.org/X74QfnPi Sep 29 19:01:51 i'm having problems with that Sep 29 19:02:09 if somebody may help, i will apreciate :D Sep 29 19:02:50 <^cheeky> pfn: oh !!! lol this app one time was close 23 MB :P Sep 29 19:03:06 <^cheeky> how about them apples heh Sep 29 19:03:30 the postInvalidate() isn't working Sep 29 19:08:00 What would be the best way to overlay a bitmap over another bitmap (Merge) Sep 29 19:08:27 <^cheeky> Suchorski: oh nice drawing Sep 29 19:08:43 Also my app is finally in the play store :3 Sep 29 19:09:03 https://play.google.com/store/apps/details?id=com.Bieling.CrapChat Sep 29 19:09:44 <^cheeky> ohhh niceeeeeee Sep 29 19:09:57 <^cheeky> bas niiice! Sep 29 19:10:01 :3 Sep 29 19:10:11 Thanks Sep 29 19:10:22 <^cheeky> Suchorski: dont you have to umm send the thread to run this class Sep 29 19:11:22 <^cheeky> i have never done drawing view .. just setting views up .. and think i might see why my pic keep refreshing even after scroll has ended Sep 29 19:11:42 ^cheeky but the view isn't refreshing Sep 29 19:12:20 that is my problem Sep 29 19:13:02 <^cheeky> call on UI Trhead Sep 29 19:13:21 but how? Sep 29 19:13:23 can someone give me nice ressources for wifi examples / tutorials with android ? Sep 29 19:13:24 <^cheeky> that might work .. i read that somewhere flipping querries Sep 29 19:13:32 <^cheeky> hmmm Sep 29 19:13:57 <^cheeky> call invalidate with on the UI thread thing Sep 29 19:14:11 <^cheeky> ill g00gle Sep 29 19:15:37 ^cheeky but i need to call the invalidate all time Sep 29 19:16:00 i tried with handler, tried to change the extend from View to Activity Sep 29 19:16:08 othing works Sep 29 19:16:12 nothing* Sep 29 19:16:35 <^cheeky> ohhh try AsyncTask Sep 29 19:16:56 <^cheeky> onPostExecute Sep 29 19:16:58 hum Sep 29 19:17:04 will try Sep 29 19:17:12 how can i know if the thread is running? Sep 29 19:17:13 <^cheeky> oh man i dunno Sep 29 19:17:27 <^cheeky> DDMS Sep 29 19:17:36 <^cheeky> Log Sep 29 19:17:40 <^cheeky> Log.d Sep 29 19:18:14 Suchorski: in eclipse? Sep 29 19:18:39 <^cheeky> Suchorski: try postValidate Sep 29 19:19:15 gdrc yes Sep 29 19:20:09 Suchorski: in debug windows you see the threads Sep 29 19:21:30 hi guys, i have troubles with android sockets. Sep 29 19:21:31 how can i connect to 127.0.0.1 ? i want to connect to a service listening on my phone.. Sep 29 19:21:48 but android has some wrappers around the localhost address.... Sep 29 19:24:00 gdrc i have 3 threads is that correct? Sep 29 19:25:32 $*&#($&*(@#&$(*@&%¨(*@&%@% Sep 29 19:25:33 moveSnake = new Thread(this); Sep 29 19:25:33 Suchorski: I don't know, it depends on your app Sep 29 19:25:38 i forgot the "this" Sep 29 19:25:39 lol Sep 29 19:26:03 * Suchorski punch himself Sep 29 19:27:24 now i'll learn how to get touch events :D Sep 29 19:27:30 is there an onrotate event Sep 29 19:27:33 or something Sep 29 19:27:41 nvm Sep 29 19:29:57 <^cheeky> Bas_: where did you get your icon from Sep 29 19:36:02 Hello, I have activity that include two fragment, one list and another details, I use android:configchanges"orientation|screensize" to handle rotation, When i click on the item in list the item is selected, but when i rotate the screen i lost the highlight of the item but i got it again if i scroll in the list :/? Sep 29 19:36:05 My Girlfriend made it for me. It's a redraw of one of the results from google if you google "cute poop" Sep 29 19:36:19 Also is there a way to check if the rotation changed? Sep 29 19:36:42 have a method who tells me if a touch is inside of a square? Sep 29 19:36:53 triangualte it Sep 29 19:38:57 Schoentoon: check if its x is greater then the left corner and less then the right corer Sep 29 19:39:02 do the same for y Sep 29 19:41:20 math OP Sep 29 20:09:13 my android device manager keeps hanging all the time in win8, anyone familiar with this? Sep 29 20:09:48 have you tried not using windows 8? :D Sep 29 20:09:49 * JesusFreke ducks Sep 29 20:10:56 i have been thinking about leaving windows for linux Sep 29 20:11:04 but that wont be done tonight Sep 29 20:11:24 Well, I was mostly kidding. But I made that move about... 6 years ago. And haven't looked back. Sep 29 20:12:29 im doing a lot of microcontroller dev as well, pics etc. if i can do that on linux just as well i might change Sep 29 20:13:25 oh, nice. Yeah, I've done some of that on linux. The level of support varies based on what chip you're using, but I've been able to dev for a couple of different ones. Sep 29 20:14:11 I've programmed on an 8-bit 8051 chip, and an atmel AVR (i.e. the chip the non-arm arduino is based on) Sep 29 20:14:43 urk, PIC Sep 29 20:14:48 ;) Sep 29 20:14:52 ? Sep 29 20:15:20 I've yet to work with a PIC :) Sep 29 20:16:07 JesusFreke: iirc they are the older and odder family Sep 29 20:16:22 I had the good fortune of dealing only with 6800 and AVR :) Sep 29 20:16:33 p_l why dont you like PIC? Sep 29 20:16:43 wrong channel i guess though Sep 29 20:16:53 yeah, I'm familiar with PIC. just haven't dealt with them before/yet. Sep 29 20:16:56 S_J: odd word sizes? Sep 29 20:17:09 S_J: and afaik they were the oddest of the bunch Sep 29 20:17:40 p_l: is that much of a problem? Sep 29 20:17:46 S_J: sometimes yes Sep 29 20:18:04 but I haven't had much experience with PICs, it could change my opinion Sep 29 20:18:20 oh, I didn't notice he had mentioned PIC. (hence my confusion when you brought it up) Sep 29 20:18:51 though given the way the market looks now, I have bigger chances getting ARM Thumb instructions or AVR when going for "small" embedded Sep 29 20:19:09 (in big embedded, SPARC and PPC, ha!) Sep 29 20:20:02 The annoying thing with that 8051 that I was working with is that you had to have an external programmer to program it. The AVR is so much nicer, with its usb-enabled bootloader than can self-program. Sep 29 20:20:11 that can* Sep 29 20:20:22 JesusFreke: well, the latest maybe Sep 29 20:20:34 yeah, for the usb enabled ones, at least Sep 29 20:20:44 old AVRs still had programmers (well, at the very least a serial line was needed) Sep 29 20:20:44 I find it amusing that I can "make install" in my keyboard firmware project, and flash my keyboard on-the-fly Sep 29 20:21:20 although, sometimes this results in having to pull out my other keyboard.... :D Sep 29 20:21:35 "ah crap, what did I break this time?" Sep 29 20:21:56 * g00s had an eeprom eraser that used UV light ;) Sep 29 20:22:06 eprom Sep 29 20:22:24 epron Sep 29 20:22:38 or rather, e-pr0n Sep 29 20:23:08 and yeah, I had used one of those a bit in college. heh Sep 29 20:28:43 * pfn hasn't wanted to switch to linux from windows in forever Sep 29 20:28:53 I did linux on the desktop back in 2000 for like 4 years Sep 29 20:29:02 like 1998-2002 Sep 29 20:29:16 it didn't stick Sep 29 20:29:21 the modern DEs are IMO worse desktops than classic unix desktop... Sep 29 20:29:28 Yeah, I tried it a couple of times back around the same time Sep 29 20:29:33 and went back to windows Sep 29 20:29:34 I used to run fvwm2 and gnustep Sep 29 20:29:39 almost good enough, but not Sep 29 20:29:48 and I like the DE behavior of windows the best Sep 29 20:29:49 stuck w/ me, i find it quite nice for development, which is mostly what i do Sep 29 20:29:52 but then finally made the switch around.. 2008 or so, after I started getting into android platform development Sep 29 20:30:01 windows + a bash shell works great for development for me Sep 29 20:30:09 and I have numerous vms for doing crap in Sep 29 20:30:12 now the only thing I used windows for is gaming. heh Sep 29 20:30:18 18gb of ram on my windows desktop means I can run whatever the fuck vms I want Sep 29 20:30:22 not for me, i would have to install and maintain a large set of tools Sep 29 20:30:33 in Linux my distro does that for me :P Sep 29 20:30:35 same here, VMs running on Windows :) Sep 29 20:30:39 only tools I need on windows are java, git and mingw Sep 29 20:30:42 for windows Sep 29 20:30:47 if it's more involved, I use my vms Sep 29 20:30:53 yeah see, i use a crapton of commandline stuff in Linux Sep 29 20:31:09 I have python and ruby on windows, too Sep 29 20:31:11 if I need Sep 29 20:31:13 for analysis/file transformation/etc in conjunction w/ the dev stuff Sep 29 20:31:17 I even wrote a simple repo.py clone for windowx Sep 29 20:31:21 But yeah, windows + VM is certainly a viable option Sep 29 20:31:33 https://gist.github.com/pfn/6599272 Sep 29 20:31:39 so I can repo grep, repo clone and sync Sep 29 20:31:44 right but i don't actually have to write any thing other than a zsh one-liner 90% of the time in Linux :P Sep 29 20:31:50 that's not because of zsh or any single program Sep 29 20:32:02 it's because there's a crapton of stuff at my fingertips, all designed to work together Sep 29 20:32:07 * pfn shrugs Sep 29 20:32:11 Windows doesn't, and never has, had that. Sep 29 20:32:22 I don't use it most of the time, and like I said, I can use my vms to do anything more complex Sep 29 20:32:39 one of my vm's has a 1tb zfs zpool Sep 29 20:32:41 right, and i do dev most of the time, would be silly to spend most of my time in a VM :) Sep 29 20:32:43 on physical disk Sep 29 20:32:48 I do dev most of the time in a vm, too Sep 29 20:32:50 works great Sep 29 20:32:51 lol Sep 29 20:32:57 I still get >100mb/s out of vm disk Sep 29 20:33:02 i think a lot of the *nix command line tools have becomes less useful over time as they don't really work well with hierarchical formals like json Sep 29 20:33:02 wouldn't work so great for OpenGL dev Sep 29 20:33:29 works fine, I would run sbt on windows => run on a windows emulator Sep 29 20:33:33 and do dev in linux, if I needed to Sep 29 20:33:44 "do dev" = write code, use tools, whatever Sep 29 20:33:50 g00s: 1) they do, 2) if there's a need for it, there's a tool designed for it, that instantly works with everything else because it's all stdin/stdout based, instead of GUI based. Sep 29 20:34:10 I dunno what all you're talking about, though Sep 29 20:34:16 99% of the tools I want are covered by mingw Sep 29 20:34:24 1% of the tools i want are Sep 29 20:34:32 mingw is just a compiler >_< Sep 29 20:34:38 mingw is an environment Sep 29 20:34:41 not just compiler Sep 29 20:34:46 ah, well Sep 29 20:34:48 like cygwin, but without the wrapper bullshit Sep 29 20:34:56 rather Sep 29 20:34:58 msys Sep 29 20:35:06 I forget, I conflate them, mingw/msys Sep 29 20:35:50 ok, time to go out front and do some landscaping work... need to get my sprinklers put in, then I need to run a new ground wire for some of my electrical outlets Sep 29 20:36:00 how do I make my emulator smaller? i cant when i edit the device, no size option... Sep 29 20:36:28 http://www.cooperindustries.com/content/public/en/wiring_devices/products/receptacles/commercial/_15a/nema_5_15r/usb_tr7745.html Sep 29 20:36:29 I got 3 of those Sep 29 20:36:37 and I need to install them into ungrounded boxes :-/ Sep 29 20:37:05 well, 2 of them go into the bedroom, which is old 50's construction with ungrounded boxes Sep 29 20:37:11 the 3rd will probably go in my office Sep 29 20:37:16 which is all new construction Sep 29 20:37:33 S_J: you have to create a new device definition, and then switch the "device" field for the AVR Sep 29 20:37:44 AVD* Sep 29 20:37:59 S_J, when you actually launch the device from avd manager Sep 29 20:38:03 you choose the size you want it to be Sep 29 20:38:05 not when you create Sep 29 20:38:09 I'm assuming size on screen Sep 29 20:38:14 not reported size to code Sep 29 20:38:58 i couldn't tell you everything off-hand, but i have a dozen or more cross-compilers, a lot of tools for working with various compression/archive formats, file analysis/dumping stuff (admittedly, most of that i use is written by me), kernel level debugging of random programs, stuff like the pnm tools Sep 29 20:39:29 you mean netpbm Sep 29 20:39:42 and yeah, i could probably find alternatives on windows for the hundreds of things i use, but i would have to maintain it myself Sep 29 20:39:49 dozen? well, ndk includes all the cross compilers I need, 7za and unzip were pretty trivially installed Sep 29 20:39:59 that's a lot of cross compilers Sep 29 20:40:19 yyyeah i'm not talking one or two compression formats here Sep 29 20:40:28 i easily have to deal with 50 :x Sep 29 20:40:46 i'm not going to actually count it all :P Sep 29 20:40:53 that's a lot of formats Sep 29 20:41:10 and yes, when you deal w/ a good bit of embedded systems and such, you end up needing a lot Sep 29 20:41:50 some of the cross-compilers i still have to maintain myself, but it would be 10 times as hard to compile them on windows :/ Sep 29 20:42:00 probably Sep 29 20:42:11 ok, time to do some outside work for real Sep 29 20:42:17 and on Linux the larger suites are already available for lots of architectures, in cross-compiler form Sep 29 20:42:20 need to finish installing my new drip system Sep 29 20:42:26 and run the sprinkler timer wires Sep 29 20:42:29 good luck Sep 29 20:46:27 I'm looking for ideas on how to present users with error information from background, asynchronous (not AsyncTask but Threads) handlers. Sep 29 20:46:31 is there a gps included in all android phones and you can use it with your code? can you get position and travelled distance etc? Sep 29 20:47:06 S_J: there's a location service in the OS, which can provide you with either "coarse" or "fine" location (those are two different privilege levels) Sep 29 20:47:21 the "fine" location is usually provided by GPS, and you can get NMEA strings as well Sep 29 20:47:38 nearly every device I had ever seen had a GPS Sep 29 20:47:53 @S_J not all devices have GPS. All do have the location service which can work with multiple sources such as GPS, Cell tower location drivations and WiFi Sep 29 20:48:33 what is the location service called? Sep 29 20:49:06 nm Sep 29 20:49:17 android.location.Location Sep 29 20:50:13 If my non-UI thread needs to show an error dialog, what is the best way to do it? Sep 29 20:53:27 gustnado probably a notification if its important; or show it in the UI when the app comes to the FG Sep 29 20:55:49 @g00s - I had in mind an alert dialog, but that requires being on a UI thread (which may or may not be in the foreground. If it is in the foreground, I need to kick it to get it to fire off the dialog. Recommendations for that? Sep 29 20:56:33 dont show UI from services if your app's activities aren't bound to them Sep 29 20:56:44 It's not a service, it's a thread in the app Sep 29 20:56:51 but it's not the UI ghread Sep 29 20:57:02 ...can't type today, sigh Sep 29 21:01:01 @G00s - any other ideas? Sep 29 21:02:59 hmm Sep 29 21:03:18 i guess it depends what you are using / asynctask/ handlerthread, etc Sep 29 21:03:34 you could just post a runnable to the main thread thatinvokes the dialog Sep 29 21:03:43 if your bg thing keeps on going despite the error Sep 29 21:04:56 I am using a plain old Java Thread. It's an old app, so I can't choose a more optimal design... Sep 29 21:06:29 yeah, i was looking at asynctask bc a lot of people use that Sep 29 21:06:31 well, you can have handler in a plain old java thread Sep 29 21:06:35 but i dont use it Sep 29 21:06:38 This could happen while any of several activities are running (the fun of asynchronous processing). So I'm not sure how to make it pop up no matter what activity is running Sep 29 21:06:46 so just post a runnable to the main thread then, should work Sep 29 21:07:52 gustnado maybe if this thread is independent of activity, it should be in a service Sep 29 21:08:08 consider starting a service and then a HandlerThread, or plain thread Sep 29 21:08:18 anyhow, gotta run Sep 29 21:09:03 @g00s - I considered that, but it's too late to refactor (I have thousands of users and don't want to break the thing) Sep 29 21:09:09 Anyway, thanks for the thoughts Sep 29 21:09:23 np Sep 29 21:09:45 communicating errors from async things is always interesting ;) Sep 29 21:10:01 yep Sep 29 21:10:38 I think my problem here is that I need a context *and* the UI thread to show the dialog. I don't know if I can use the main app context for that or not. Sep 29 21:34:18 gustnado: that is a fairly bizarre position - why does having thousands of users prevent you from refactoring the application to make it better? Sep 29 21:42:43 @JesusFreke - because this part is extremely complex, and refactoring it is thus very complex, which can result in hard to find bugs - bugs that my beta testers may not find.... Sep 29 21:43:08 The app works. I'd rather kludge it a bit than break it and have my market rating plung as bugs hit users Sep 29 21:43:32 That isn't a bizarre position, it's pretty normal when you have working, successful software with a big user's base. Sep 29 21:43:35 user's <= users Sep 29 21:43:44 and yet, by staying with the sub-optimal design, you presumably make it more likely to introduce bugs in the future Sep 29 21:43:49 my emulator is ridiculous, why is it so slow? id ont get how to see my app. Sep 29 21:43:58 because you're trying to work around limitations of the design Sep 29 21:44:53 @JesusFreke... I think you are being too idealistic. You are right *if* there are a lot of enhancements to be made within the complicated area, but I don't anticipate many in the future. Working kludges beat broken elegant jewels in the real world of market ratings. Sep 29 21:45:37 And yes, I know I am working around limitations in the design. This was my first Android app. However, the specific issue I am asking about doesn't seem to be related to limitations in the design. Sep 29 21:46:04 (note: I didn't actually read the actual issue, I just found that statement you made strange) Sep 29 21:46:07 In fact, it is not clear to me that a service would be better. I've been doing concurrent programming for 45 years, so having my own threads is not the challenge it is to many folks. Sep 29 21:46:20 s/actually// Sep 29 21:46:20 @JesusFreke... that hazards of commenting without context :-) Sep 29 21:46:28 gustnado: not really Sep 29 21:46:33 ? Sep 29 21:46:39 gustnado: my comment was about your statement, not about your issue in general Sep 29 21:46:53 well, my statement is within the context of my issue, but whatever Sep 29 21:47:30 I still have a generic issue: an event happens asynchronous to my UI, and I want to show the user a dialog about it. It doesn't matter if that happens in a service or not (I suspect it's even harder with a service). Sep 29 21:47:32 Ideas? Sep 29 21:48:06 send an intent to start an activity? Sep 29 21:48:44 You'll have to have/grab some sort of context, of course. Sep 29 21:49:14 The application context should work fine, just for sending an intent Sep 29 21:51:39 Yeah, I guess I could use an activity. OTOH I always have an activity running when this happens (since it's not in a service) - I just don't know which activity is running. Sep 29 21:51:52 doesnt Log write to console` Sep 29 21:51:55 ? Sep 29 21:52:10 and ewhy could it be that the emulator is launching but not my app? Sep 29 21:52:13 Log writes to the log Sep 29 21:52:35 If you are using eclipse, look at the LogCat window Sep 29 21:54:03 is there no hellow orld example inclued so i can just get something up? Sep 29 21:56:15 http://lpaste.net/93614 Sep 29 21:56:20 ^^ my problem Sep 29 21:57:28 In Eclipse: File->New->Android Application Project; fill in a name. Keep hitting Next until you get to the end. Hit "Finish". Find your project in the explorer or Navigator, right-click and select "Run as Android Application" Sep 29 21:57:33 gustnado: for a dialog, the best solution I can think of would be to register a dynamic broadcast receiver in each activity, that listens for a broadcast that is sent from your other thread, using the application context Sep 29 21:57:51 since the broadcast receiver will have access to the activity, it can create a dialog using the activity context. Sep 29 21:59:28 Yeah, I could do that - a bunch of hassle, but it would indeed work - I hadn't thought of that. Thanks for the suggestion. Sep 29 21:59:52 yeah, annoying to register a receiver in all activities. Sep 29 22:00:56 exactly Sep 29 22:02:08 I think what I may do is just show the dialog in the main activity. I may do that more tightly coupled, by using the main activity handler, with a backup queue so the main activity can pick up anything that didn't fire because it was not active. Sep 29 22:03:10 I didn't mention: my app has one primary activity (not unusual) and all other activities end up back at the primary. The notification can wait until then, I think. Hmmm Sep 29 22:05:53 Actually, hmm. Just register a receiver in the main activity? The receiver should still be active when the activity is paused. I think (not positive) it should be fine to use the main activity's context to show the dialog, even if the main activity is currently paused. Sep 29 22:06:31 That way you don't have to keep a reference to the main activity's handler, from your other thread. Sep 29 22:07:26 The way I handle those references is to keep them in the Activity class, and have static methods that use them there. With care for concurrency, and catching Throwable, this always works... Sep 29 22:07:52 And I know that "catch Throwable" is evil in the Java world, but for some cases, in embedded apps like this, it's really the best thing to do. Sep 29 22:08:06 But I'll try the receiver trick Sep 29 22:13:28 "no command out put when running... " what doe sthat mean? Sep 29 22:28:23 why is the eumlator so unbearably slow? am i doign something wrong? it is unusable? Sep 29 22:29:33 S_J: http://developer.android.com/tools/devices/emulator.html#acceleration Sep 29 22:33:35 Hi. I'm working in Android studio, just kind of playing around with Android development. I'm trying to change the background color of my test app's PagerTitleStrip view in my main activity's XML file, but every time I try to run the app, it reverts the activity's XML. Sep 29 22:33:54 Any suggestions? Sep 29 22:34:16 collink: it actually changes the xml file on disk? or you just don't see the changes when running the application? Sep 29 22:34:46 it actually changes the file on disk Sep 29 22:35:03 I've tried editing it outside of Android Studio as well. still changes it. Sep 29 22:35:12 JesusFreke: ^ Sep 29 22:41:01 Greetings! I'm a bit stuck on viewpager + fragment + FragmentPagerAdapter usage. If I want some logic in a fragment to only be called when it's displayed, what method should I put that in ? onResume()? Sep 29 22:42:21 http://developer.android.com/guide/components/fragments.html explains the lifecycle Sep 29 22:47:24 If I use the android-sdk-plugin for sbt with an apklib dependancy and generate an intellij plugin, how can I get intellij to actually see the apklib in its scope and not give me errors? Sep 29 22:47:35 The apklib in question being sherlockactionbar Sep 29 22:48:07 I mean, generate intellij project, not intellij plugin.. Sep 29 22:49:26 Here's a video of exactly what I'm talking about happening with my activity XML file when I try to run my app after I make a change to it: http://www.youtube.com/watch?v=2M8Avxe0S6w&feature=youtu.be Sep 29 22:50:12 bdbaddog: You'd probably handle it somewhere in your adapter, since I'm not sure that fragments handled by FramgnetPagerAdapter are ever paused/resumed. Sep 29 22:50:25 FragmentPagerAdapter, even Sep 29 22:50:36 hey guys. I need a recomendation for a control which allows me to specify a time range (not a date picker), or information on creating custom views Sep 29 22:51:08 not a timepicker either ? Sep 29 22:51:20 bankai_, it might work Sep 29 22:51:29 Nilium: thanks. painful. I want my fragment to update visibility of some buttons in the activities layout and the page title. What's the best way to do that from the fragment? Or am I going about it all wrong. Sep 29 22:51:43 basically I need to collect what time a business opens and closes. Looking for as few clicks as possible Sep 29 22:52:08 TimePicker sounds like a good option for you Sep 29 22:52:11 Could just reimplement FragmentPagerAdapter to do what you want. It's a fairly small class. Sep 29 22:52:34 ohh Sep 29 22:52:37 this does look nice Sep 29 22:52:38 Whats the simplest way to to put a delay between the the loading of a webview, i amd loading in 2 urls, but need a delay between the two of them, i have tried sleep and systemclock.sleep but nothing is working.... Sep 29 22:52:43 That said, I'm not sure if there's really a good way to do that since I'm not familiar with how ViewPager works internally. Sep 29 22:54:15 Maybe also look at FragmentStatePagerAdapter. Not sure. Sep 29 22:56:32 Hi all. I registered an Intent Filter for my app. In my onNewIntent() function in MainActivity, I check a few variables for validity, and I want to hand that Intent off to another Activity (SecondActivity for example). What is the best way to do this? I think I want to launch SecondActivity and have it run onNewIntent() as well Sep 29 22:57:48 why do you need to double handle ? Sep 29 23:01:40 bankai_: MainActivty checks to see if a valid access code is stored. If not, the intent will be thrown away since the user doesn't have a valid access code to use the app. If a valid access code /is/ stored, I want to open SecondActivity with the intent that was passed to the app via the intent filter Sep 29 23:03:07 It is in SecondActivty that I have a ForegroundDispatch that does something with NFC Sep 29 23:07:11 any activity? Sep 29 23:12:14 TechEffigy: Was that directed to me? Sep 29 23:12:51 anyone :) Sep 29 23:13:13 anything interesting being developed? Sep 29 23:16:06 p_l ever look at ocaml ? Sep 29 23:24:44 so no one has any ideas about why my Activity XML keeps reloading from disk when I run my app? http://www.youtube.com/watch?v=2M8Avxe0S6w&feature=youtu.be Sep 29 23:26:32 configuration changes Sep 29 23:26:48 TechEffigy: can you ellaborate? Sep 29 23:26:51 elaborate* Sep 29 23:28:00 whenever theres a configuration change like orientation, then it will reload, or maybe ur just calling setcontentview in the wrong place Sep 29 23:29:06 TechEffigy: would that cause it to revert the XML file? Sep 29 23:29:42 maybe, what do u mean revert? Sep 29 23:31:12 TechEffigy: did you watch the video? When I run the app, as soon as I choose the device, in Android Studio the XML file goes back to before I made changes. It seems like maybe it's being replaced by the default? Sep 29 23:31:13 Hello guys Sep 29 23:31:19 * gdrc app almost done, excited! Sep 29 23:31:38 TechEffigy: I'm working with a default activity in a brand new project, FWIW Sep 29 23:32:17 and when does it reload the XML? Sep 29 23:32:53 I imagine it has to be doing it before it sends the app to my device, because the changes aren't reflected on the device. Sep 29 23:32:58 TechEffigy: ^ Sep 29 23:34:10 using eclipse? Sep 29 23:34:19 Android Studio Sep 29 23:35:14 ok, cant help u. make sure u save everything before run, and make sure ur setcontentview correctly Sep 29 23:37:18 TechEffigy: I am saving it before I build it/run it. Is it even possible for setContentView to change the file on disk though? Because that's what's happening. :( Sep 29 23:38:12 then u need to analyse the situation, ive run out of ideas Sep 29 23:42:59 collink: definitely weird. looks like an AS bug to me Sep 29 23:44:37 I'm updating AS right now Sep 30 00:01:05 When does onNewIntent() get called? After onCreate()/onResume(), or before? Sep 30 00:01:35 or is there no relation to onNewIntent() and the other two? Sep 30 00:04:34 "An activity will always be paused before receiving a new intent, so you can count on onResume() being called after this method." Sep 30 00:05:03 so before onResume, but onCreate won't be called, because the intent is being delivered to an existing (already created) activity Sep 30 00:05:08 at least, that's my understanding based on the docs :) Sep 30 00:05:37 actually, nevermind Sep 30 00:05:39 hmm Sep 30 00:06:14 Yeah, onCreate shouldn't be called in that case Sep 30 00:06:23 I'm not sure what the relation is with onStart() though Sep 30 00:06:52 hey guys, how can I change what a control looks like? I am thinking I should extend a view like Button Sep 30 00:06:54 thoughts? Sep 30 00:07:26 xximjasonxx: extend the thing that most closely matches the behavior that you want Sep 30 00:07:53 but keep in mind you can change the look of existing components without actually extended them Sep 30 00:08:00 extending* Sep 30 00:08:13 using styles, etc. Sep 30 00:08:17 JesusFreke, what I want to do is create a button that, like iOS, has a glyph to the right, and some text to the left Sep 30 00:08:30 JesusFreke: Thank you very much! Sep 30 00:08:33 the text changes depending on what values the user picks in my custom control Sep 30 00:08:58 clicking on the button opens up the custom composite control. What i am looking for right now, is how I can modify the structure of the view internally Sep 30 00:09:05 i do this in XAML with control templates Sep 30 00:09:54 compound view Sep 30 00:10:24 lasserix, is that what android calls composite views Sep 30 00:10:32 probably Sep 30 00:11:56 you want a button in which you can in code change the glyph and the text dynamically? Sep 30 00:12:12 not the glyph Sep 30 00:12:18 ? Sep 30 00:12:30 lasserix, you ever worked in XAML at all? Sep 30 00:12:53 no sorry Sep 30 00:13:12 you using c#/ xamarin? Sep 30 00:13:41 no, i was trying to better describe what i am looking to do :) Sep 30 00:14:19 oh well if you original question is "hey guys, how can I change what a control looks like? I am thinking I should extend a view like Button" what control are you originally using, and what specifically do you want to change about it? Sep 30 00:14:40 i want to change the button, so i can have the glyph to the right Sep 30 00:15:09 independant of the display text Sep 30 00:15:37 one sec Sep 30 00:16:20 you can use Sep 30 00:16:24 setcompounddrawable on the button Sep 30 00:16:26 in code Sep 30 00:16:55 that will put a drawable to left top right or bottom (or combo thereof) Sep 30 00:17:04 then you can switch on your user preferences Sep 30 00:17:13 to load whatever glyph you need Sep 30 00:17:21 and simply use a button Sep 30 00:17:29 Is it possible to start a new Activity, then have that new Activity call one of it's methods? ie: startActivity(new Intent( context, MyActivity.class )), then call MyActivity.handle()? Sep 30 00:18:16 Or, is it possible to add two Intents together? Sep 30 00:19:15 MarkyC when you are start new activity just put extra that you trigger the method when the new activity starts Sep 30 00:19:39 *put an extra into the intent, then pull it out of the bundle in the new activity, and if it exists trigger your method Sep 30 00:21:40 lasserix: Thank you, I'm going to try that Sep 30 00:23:29 hey xximjason Sep 30 00:23:32 any luck I got it to work Sep 30 00:23:53 lasserix, frankly i am not entirely sure how to do what you described Sep 30 00:24:07 so i am looking into it Sep 30 00:24:12 http://pastebin.com/sULmDC3N Sep 30 00:24:24 so first get an instance of the resource drawable Sep 30 00:24:49 then setBounds on that drawable (ie, explicitly set width/height of it) Sep 30 00:25:48 then use on your button setCompoundDrawables(left, top, right, bottom) so you can have 4 drawables in your button, pass null for nothing and make sure you call setBounds on the drawable before calling setComp... Sep 30 00:25:57 anyways now you can switch it out in your code, Sep 30 00:26:13 without having to subclass a button or do some compound view stuff Sep 30 00:26:25 not really important, I was exploring the glyph as a background to the button Sep 30 00:27:30 you could do that but the above is very, very simple and conforms to what you originally asked... Sep 30 00:29:17 it definitely is close Sep 30 00:29:35 i think if i can figure out how to draw the glyph with shapes xml Sep 30 00:29:58 lasserix: Does putExtras(Intent i) add an Action to the original Intent if Intent i has an Action? Sep 30 00:33:59 no Sep 30 00:34:15 extras are in addition to the action/data parameters Sep 30 00:35:02 so when you put extras (mBundle) you can pull mBundle from onCreate in the other activity, check if whatever you put into the bundle is there, if so trigger your method Sep 30 00:35:20 http://developer.android.com/reference/android/content/Intent.html Sep 30 00:39:31 So I just created a new project in Android Studio 0.2.10, and for some reason it can't resolve android.support. Anyone else experienced this? Sep 30 00:42:45 lasserix: Wouldn't I lose my Action and Type fields in the intent if I putExtras(mBundle)? Sep 30 00:43:00 collink: do you have support included in your project? Sep 30 00:45:30 <^cheeky> hi, so even if my images load .. and some .. even when there is a picture, in it, it keeps refreshing till it gets the right view, and it moves randomly in my grid view, i am not sure if its, coz i am using TreeSet which produces, a sorted list .. so everytime new items get added the images would theoretically move to ? Sep 30 00:47:05 Actually, I think I found another way to tackle this problem: does Intent.putExtras(intent) also put parcelableExtras in the Intent? Sep 30 00:47:32 Getting the following from eclipse when I add "implements ViewPager.OnPageChangeListener" .. The inherited method ViewPager.onPageScrolled(int, float, int) cannot hide the public abstract method in ViewPager.OnPageChangeListener Sep 30 00:47:46 can't seem to make that go away. any thouhgts? Sep 30 00:48:32 bdbaddog: is ViewPager.onPageScrolled(int, float, int) public? Sep 30 00:50:17 MarkyC: yes.. http://pastebin.mozilla.org/3169059 Sep 30 00:50:35 oh.. wrong args. weird.. Sep 30 00:50:54 <^cheeky> could some one please help me with this issue, i have had or point me in the right direction Sep 30 00:51:52 MarkyC: no Sep 30 00:52:06 MarkyC: sorry mistaken.. I'm not overloading onPageScrolled() Sep 30 00:52:20 MarkyC: look at http://developer.android.com/reference/android/content/Intent.html action/data params are distinct from extras bundle Sep 30 00:54:37 bdbaddog: You don't implement onPageScrolled(int position, float positionOffset, int positionOffsetPixels) in that posted code Sep 30 00:54:56 bdbaddog: hence the error. If you say you implement a Interface, you must implement all its methods Sep 30 00:55:36 lasserix: basically, I need to pass a Tag to the new Activity, how can I do this? Sep 30 00:55:43 weird. eclipse didn't create that one when I clicked create required.. Sep 30 00:55:54 as a string in the bundle as the extra Sep 30 00:56:29 lasserix: I pass the Tag as a String? So I must serialize the Tag? Sep 30 00:56:36 Tag? Sep 30 00:56:41 android.nfc.Tag Sep 30 00:57:03 and conviently it has writeToParcel(Parcel dest, int flags) Sep 30 00:57:35 Hi there, i need some guidance for my first android application. Sep 30 00:57:43 Basically it's an application that lists videogames, simply. For now i'm creating the "VideoGame" class. Every game will have a title, image, description and rating. My problem here is how can i save the image for the game in this class? Android doesnt support java.awt.image, so i need to know what people usually do when they need to use images. Sep 30 00:57:55 MarkyC and you can load the parcel into the bundle Sep 30 00:58:39 lasserix: Thanks again, you've been a great help. I'm going to try that. Sep 30 00:58:40 Rajni: lots of ways, you can save the byte array, you can save the bitmap, you can save it as a drawable Sep 30 00:58:52 are you retrieving the images from the web? Sep 30 00:59:09 lasserix, no i'll save it locally Sep 30 00:59:19 MarkyC: np, good luck. you might look into fragments because i am guessing you don't need actually to use seperate activities Sep 30 00:59:33 im renaming my game from "Skorpion Spaceball 6006" to "Spaceball 6006". i signed up for a marketing class. but the main motivation was crop-able title change. Sep 30 01:00:01 Rajni so you have all your images, drop them into res/drawables as png files and then use getResources().getDrawable(R.drawable.videogame1)... etc etc Sep 30 01:00:17 lasserix: I'm using fragments, but I've separated my MainActivity (which checks for an access code) and my ScanNFCTagActivity (which scans NFC tags) for better modularity. Sep 30 01:00:57 MarkyC: ahh okay, i was just saying because you can use the same technique (passing a bundle as an arg) between fragments within an acitivity slightly easier than between activities Sep 30 01:01:15 also you can do callbacks to fire off methods and the like more easily Sep 30 01:01:24 lasserix then in the "VideoGame" class i just need to save the image name and not the actual bitmap, right? Sep 30 01:02:07 Rajni: it depends on how you are using it, are you dumping these into a listview at some point? Sep 30 01:02:26 yes Sep 30 01:02:27 ^cheeky: I think you're not getting any responses because your question is hard to understand, and the lack of a code sample doesn't help. What does your TreeSet hold (data type)? Sep 30 01:02:30 Rajni: you could probably just save the reference to the drawable, and actually grab it when you need to display it Sep 30 01:03:27 JimmyCarter you should add some sex appeal SPACEBALLS 6996 ;p Sep 30 01:03:37 lasserix what do you mean with "the reference"? Sep 30 01:04:09 you have a bunch of images in your res/drawable folder, how does each instance of videogame know which image it is supposed to retrieve? Sep 30 01:04:10 <^cheeky> MarkyC: sorry, :(, its an Gallery item object. ill paste my retarded code, gimme a min , my comp is a turtle Sep 30 01:04:12 I've got a horizontal LinearLayout and two dummy LinearLayout's inside, each with its own TextView. The first TextView has layout_width=wrap_content and the second has layout_width=fill_parent. The problem is that the text inside the first TextView is cut short after a single character using ... Sep 30 01:04:23 lasserix image name Sep 30 01:04:33 so instead of this: "Text1 Text2 " I get "T... Text2 " Sep 30 01:05:07 Rajni, right but in android it's not simply an image name is a int that points to a resource, ie R.drawable.myVideoGameImage1 R.drawable.myVideoGameImage2 etc etc Sep 30 01:05:46 ambro why the double linearlayouts inside the root linear layout? and what are you trying to accomplish? Sep 30 01:06:04 oh ok i got it ;) thanks lasserix for your help, really nice! Sep 30 01:06:45 lasserix: want this: "Status: Running" or "Status: Not Running". I taught I should use a horizontal layour and put each part in its own TextView. Sep 30 01:07:08 Status/Running/Not Running should all be string resources Sep 30 01:07:13 Rajni what you could do is possible name the image file the name of the video game, then get list of your drawables, and when you instance your video game objects, search the list and pull the one whose name matches the title of the video game so it's a little more automatic Sep 30 01:08:03 are you trying to make two columns side by side of status messages? Sep 30 01:08:48 yeah something like that, but I don't really care how, it just needs to look sane Sep 30 01:08:52 lasserix i'll take that note :) thanks again Sep 30 01:09:10 ambro so the two columns should be of equal width? Sep 30 01:09:45 lasserix: no. I don't want this: "Status Running " there should not be too much space in between Status and Running Sep 30 01:10:16 oh Sep 30 01:10:27 it's unreadable if the screen is wide Sep 30 01:10:29 so you want a list of rows that go "Status: some-status" Sep 30 01:10:37 just one row Sep 30 01:10:53 and the second part changes dynamicaly Sep 30 01:11:07 uhh Sep 30 01:11:20 so how do I do it? It can't be that complex Sep 30 01:11:46 one sec Sep 30 01:13:15 http://pastebin.com/s5SQKs6t Sep 30 01:13:45 though if you're going to have a list of them, you'll want to use a list view where that becomes the row layout to inflate Sep 30 01:14:22 you can modify it to your taste (padding etc) but the layoutgravity=1 and the layoutwidth=0 on the second textview makes it take up the rest of the available space Sep 30 01:15:10 thanks, that worked! Sep 30 01:16:16 how about changing it at runtime? I suppose setText(int resid), but how do I get the resit? Sep 30 01:16:35 R.strings.foobar ? Sep 30 01:17:07 yeah Sep 30 01:17:54 you'll have to get reference to the textview so add android:id="@+id/tv_mytextviewstatuswhatever" to the xml then do Textview myTextview = (TextView) findViewById(R.id.tv_mytextviewstatuswhatever); Sep 30 01:18:19 in the activity (usually in oncreate after you call set content view) Sep 30 01:19:38 <^cheeky> MarkyC: hi again Sep 30 01:19:45 <^cheeky> http://pastebin.com/index/Jw6KdYjY Sep 30 01:19:54 did that, but R.strings.foobar doesn't work Sep 30 01:21:00 oh it's R.string, it's inconsistent with strings.xml Sep 30 01:21:03 <^cheeky> if anyone could give me some pointers .. here i really would like to improve, but i have this weird bug, my images are .. been repeated and they keep moving positions .. since i have enable the grid view to keep scrolling, and it grabs more pics from flikr Sep 30 01:21:28 bankai_: included in what way? Sep 30 01:22:10 ambro it's strings.xml but the resource id path is r.string. Sep 30 01:22:53 probably have to do something with gradle. I don't use AS, but you have to set it up as a separate dependency Sep 30 01:23:14 Hello, does anyone know anything about how Android malware bypass manifest file permissions? Sep 30 01:28:08 <^cheeky> that is very very cool, but bad i guess huh Sep 30 01:30:24 <^cheeky> is it because i am adding all on my list .. even though i am adding it to a TeeSet, why do i have repeated images, is that normal , since i appending it to the end of the list ? Sep 30 01:36:41 bankai_: delving down into the project browser in AS, in Android 4.2.2 > android.jar > android, there is no support module. Sep 30 01:38:11 ^cheeky: I'm new to Android, but from what I can tell, since the GridView has no bottom, FlickrFetchr continues to fetch GalleryItems, creating new GalleryItem instances for each downloaded item. This is why you notice the Set has duplicates (because a new Object is being created for every picture, and sets compare Object references for duplicate-checking) Sep 30 01:39:41 I think you need to /heavily/ refactor your code, and then think about how you would compare the images being downloaded to the images already downloaded. Sep 30 01:42:26 <^cheeky> i totally believe the refactoring part .. i cant write good code, but what did you mean by no bottom ? Sep 30 01:50:42 ^cheeky: If I were you: Check your project into a VCS (like Bitbucket or GitHub). Commit every 5-10 lines. Test after every commit. What I mean is the GridView downloads more images when you're at the bottom Sep 30 01:52:08 Or at least I think it does, onScroll() says if (firstVisibleItem + visibleItemCount >= totalItemCount && current_page == fetched_page) to download more. BTW: I usually put brackets around every part of an if statement, it's much easier to read Sep 30 01:53:16 It's when you're downloading new images that you're seeing duplicates, you need to find a way to figure out if a particular image has been downloaded (preferably /before/ downloading, so you save the user some bandwidth)! Sep 30 01:53:44 <^cheeky> i am such a n00b i havent even used any source control :( i just use, the history with android studio, yes it does not have a bottom i wanted it to be that way, so its the gallery items array list that been created new ever time , coz i say new to the download AsynTask Sep 30 01:54:18 <^cheeky> yeah it would suck for them to eat up their data package stuff thats cruel Sep 30 01:54:31 <^cheeky> :( i suck but i dont want to !!! Sep 30 01:54:52 <^cheeky> myself().StopWinningPlease() | Thank you ! Sep 30 01:56:02 <^cheeky> MarkyC: this is why i thought of adding all the items to an TreeSet, which should eradicate the duplicates Sep 30 01:56:04 <^cheeky> hmm Sep 30 01:57:06 ^cheeky: You're kinda on the right track (I'd probably use a set as well). But keep in mind two GalleryItem objects might be the same image, but their Object references are different. Sep 30 01:59:28 <^cheeky> yes that is why well i tried to mitigate that problem by overriding the compareTo method and using the objects UUID to check Sep 30 02:01:14 <^cheeky> MarkyC: perhaps its my // compareT0 method Sep 30 02:01:15 <^cheeky> http://pastebin.com/Fwhkg7k0 Sep 30 02:02:14 cheeky Sep 30 02:02:28 i believe if you use position as your reference to the item Sep 30 02:02:34 it'll give you wrong values Sep 30 02:02:45 because (i could be wrong, check in log cat) position recycles Sep 30 02:03:09 so if you have 12 grid items on screen position will always be 0-13 or something even if you've scrolled a couple hundrend down Sep 30 02:04:44 <^cheeky> i think i tried that permutation with even saving the position of the view, and set it to the holder Tag, but that failed, iam sorry .. but how exactly do you check for recycled items .. :( Sep 30 02:04:52 oh Sep 30 02:04:53 just put Sep 30 02:05:06 Log.d(TAG, "position is " + position) in your getView method Sep 30 02:05:20 <^cheeky> ohh Sep 30 02:05:22 see if position ever gets greater than however many items on one screen Sep 30 02:05:28 <^cheeky> i feel bad for asking thank you Sep 30 02:05:32 i think that's what the id (not position) is for Sep 30 02:09:14 Is there no better way to make a vertical seekbar than subclasing seekbar? Sep 30 02:10:55 The following DialogFragment (that uses ProgressDialog) never seems to respect setIndeterminate() - ie: it never shows a progress bar. Any ideas? https://gist.github.com/briandilley/e14f2bf176bd100679c0 Sep 30 02:12:00 jak custom view Sep 30 02:19:12 Anyone here compiles for android using sbt/android-sdk-plugin and can anwer some questions about building? Sep 30 02:21:14 So in other words, no. Sep 30 02:41:52 <^cheeky> lasserix: well when i sroll down .. the position starts off as 0, then show like 85 th position or how many ever and then goes back to 0, so my views are been recycled ? Sep 30 02:42:51 probably Sep 30 02:44:40 <^cheeky> you mentioned, that it shoudltn be more that number of items on the grid, but my list is always expanding Sep 30 02:45:42 im not sure on gridview looking up Sep 30 02:45:53 <^cheeky> me 2 i a m googling Sep 30 02:46:22 <^cheeky> and also afraid of what MarkyC mentioned that my treeSet might be tarded Sep 30 02:51:18 <^cheeky> oh oh ... Sep 30 02:51:40 <^cheeky> i hope this solved it read something ... Sep 30 02:51:49 * ^cheeky crosses fingers **** ENDING LOGGING AT Mon Sep 30 02:59:58 2013