**** BEGIN LOGGING AT Sun Jun 30 02:59:58 2013 Jun 30 03:06:27 anyone has tried alpha testing their app here? Jun 30 03:06:38 I just added a user to my google groups, but on his phone I can't find my app Jun 30 03:18:00 I have a signed APK that I am trying to install on my phone. It says "Application not installed" after I try to install. How do I debug it? Jun 30 05:25:07 is hanging without error a symptom of not running an http request in an async task? Jun 30 05:25:18 blib: run logcat, it'll give you a reason Jun 30 05:25:35 achmode: it's a symptom of any blocking operation on the UI thread Jun 30 05:53:15 JakeWharton: has invalid digest for assets/www/topcoat/font/SorceSansPro-Bold.otf in /data/app/vmdl958602865.tmp - at java.util.jar.JarVerifier.invalidDigest(JarVerifier.java:131) ...at android.os.HandlerThread.run(HandlerThread.java:60) - D/InstallAppProgress( 8086): Installation error code: -103 Jun 30 05:53:19 any ideas what I am doing wrong? Jun 30 06:11:13 how can i show and hide a circle progressbar during a task inside "new Thread(new Runnable() ..." ? Jun 30 06:12:06 Why is SDK<13 so terrible :( Jun 30 06:12:37 omid8bimo, you have to call UI thread stuff from the thread Jun 30 06:13:43 Either with a handler Jun 30 06:14:22 Or with view.post Jun 30 06:14:32 http://developer.android.com/guide/components/processes-and-threads.html#WorkerThreads Jun 30 06:14:38 http://stackoverflow.com/questions/7693054/change-ui-elements-by-threads-in-android Jun 30 06:15:42 RazielZ: all right, let me see those links Jun 30 06:36:43 Did you guys also just get pushed over to google wallet from checkout? Jun 30 06:36:52 this thing looks half-baked Jun 30 06:37:54 can't see users email address, but can search if you have the exact email Jun 30 06:38:06 RazielZ: those were useful but still not quit what i need. im calling a method from another class to get gps lat/long inside this created thread in my main acitivty. i wanna how can i put a pause or something or a loop or anything that would apply here, to wait until lattitude is set, and then make the progressbar go away Jun 30 06:38:11 My thing says it'll transition on nov 20 Jun 30 06:38:18 * omid8bimo what a long description Jun 30 06:38:31 omid8bimo, uh Jun 30 06:39:34 Sooo what's wrong with calling post on the progressbar to make setVisibility gone when the latitude is set? Jun 30 06:41:23 nothing wrong with that, but when i set it inside run(), it doesnt even appear. its like it goes away so fast before lat is returned Jun 30 06:41:57 let me give you piece of that code Jun 30 06:42:29 http://pastebin.com/6X40tfG2 Jun 30 06:42:55 this one is not working the way it should. Jun 30 06:43:33 the progressbar circle is never shown; if i remove line 19, the progressbar circle appears but then never goes away Jun 30 06:44:21 Well, that's weird Jun 30 06:44:24 What's looper do? Jun 30 06:46:48 im not sure! :D i had to put the looper there for the thread to work. i read it on the sdk doc. Jun 30 06:47:41 basically all i done here is created an object from my GPS class, called it mNet, and then called it's method getLocation to start gps look up Jun 30 06:48:08 I think it doesn't actually wait until it gets a valid position Jun 30 06:48:12 and i put it in a thread to run it separate from UI thread. (hope so far i did it right) Jun 30 06:48:32 RazielZ: yes i think thats the case. any idea how to make it wait? Jun 30 06:50:39 Should use a location listener and wait for onLocationChanged, I think Jun 30 06:51:37 I'm not exactly sure how, since I didn't use gps stuff before Jun 30 06:53:58 Why connection doesn't have "getResponseCode" Jun 30 06:54:15 I mean instance of URLConnection Jun 30 06:55:50 What do you mean it doesn't have it? Jun 30 06:57:54 RazielZ: Doesn't have method that notify if connection was good or not Jun 30 06:58:35 Try HttpURLConnection instead of URLConnection Jun 30 07:04:51 Can you have a DrawerLayout as a sub layout (not as a root level layout) Jun 30 07:04:55 ? Jun 30 07:09:59 http://pe-images.s3.amazonaws.com/basics/photoshop-cs4/interface/tools-panel-fly-out-menu.gif Jun 30 07:10:04 Is something like that possible on android? Jun 30 07:13:58 Mmmmaybe with some fragment magic Jun 30 07:14:12 Or just making the whole UI in OpenGL. Jun 30 07:14:55 Or improvising something... XD Jun 30 07:15:18 RazielZ, OpenGL is very possible - but I'd have to write a lot of code for that Jun 30 07:15:22 Indeed Jun 30 07:15:25 Let me checkoutfragments Jun 30 07:16:24 Hmm - won't fragments be too heavy for a simple menu? Jun 30 07:16:36 Not necessarily Jun 30 07:16:59 It's a whole activity... I'm guessing it does a lot of stuff in the bg to process that Jun 30 07:17:12 Also, Anyone have any idea why on 2.3.x localFrameLayout.setLayoutParams(new AbsListView.LayoutParams(this.metrics.widthPixels / 3, this.metrics.widthPixels / 3)); doesn't do what it's supposed to? Jun 30 07:18:13 liquidmetal, yeah, but fragments are already used by system apps for menu arranging and stuff between phone and tablet UIs Jun 30 07:18:24 So I guess they're okay for it Jun 30 07:21:00 How it should look (4.2.2): http://i.imgur.com/ThxJkQ6.jpg Jun 30 07:21:15 How it looks on 2.3: http://i.imgur.com/vN53Acn.jpg Jun 30 07:21:19 wat do Jun 30 07:22:41 RazielZ: let me see those Jun 30 07:23:04 It's a gridview with a custom adapter that makes those fancy imagebuttons Jun 30 07:23:40 Well, framelayouts that act as fancy imagebuttons Jun 30 07:25:35 Maybe you need to get the width of the activity - not the whole screen? Jun 30 07:27:16 Hmmmm Jun 30 07:27:29 maybe I shoult do numColumns instead of "hard"coding the width Jun 30 07:27:31 should even Jun 30 07:29:52 hey, anyone here using Volley? Jun 30 07:29:53 Yeah, that works on 4.x and 2.3.x fine Jun 30 07:31:13 Java is slow, because it could handle exception ? Is any true in that statement ? Jun 30 07:32:04 I mean, if you have exceptions you need check every statement in runtime for correctness ? Right ? Jun 30 07:33:07 Java is slow because it runs in virtual machines Jun 30 07:33:14 RazielZ: But How it could be that i could "cast" to the HttpURLConnection and get appropriate method. Why URLConnection doesn't have such an method if the information about connection have to be in it (but is not accessible) Right? Jun 30 07:34:54 Because URLConnection doesn't have the additionnal HTTP(S) stuff built in Jun 30 07:35:17 If you're connecting to something that uses the http protocol you should use HttpURLConnection from the start Jun 30 07:35:42 ResponseCode is a http specific element, so it's not in the base URLConnection Jun 30 07:37:58 Time for "Why is API<13 so bad" round two! http://i.imgur.com/wCRtwxu.jpg see those nice, smooth, perfectly sized tabs with that use the same background as everything else? Jun 30 07:38:18 http://i.imgur.com/yUZdWkD.png too bad, it's me, 2.3! Jun 30 07:38:37 Can I make those less uselessly tall? Jun 30 07:38:57 Well, I guess they could be hard to press if I make them too small. Jun 30 07:39:26 lol Jun 30 07:39:42 RazielZ, are you testing it on two physical devices? Jun 30 07:39:51 yup Jun 30 07:44:11 Galaxy Nexus and GT i8160 Jun 30 07:45:45 Wavesonics: i've used it before Jun 30 07:45:50 And I have a GT s5570 that I'll test on once I find a microSD card for it Jun 30 07:46:19 Oh, and a nexus 7, but everything's fine on that. lol Jun 30 07:46:42 JakeWarton, did you just create a static RequestQueue at the application level or something? Jun 30 07:46:50 yes Jun 30 07:46:59 it's a singleton Jun 30 07:47:03 trying to decide where the best place to hold onto that is, just have it in my Application class for now Jun 30 07:47:10 RequestQueue it's self is? Jun 30 07:47:31 no, but you should treat it as one Jun 30 07:47:42 the Application class is a fine place for it Jun 30 07:48:47 ya it's pretty great, i've written pretty much the same thing for my app at work, nice to see a standard implimentation w\ a great interface Jun 30 07:49:00 implementation Jun 30 07:50:44 wish it could integrate w\ the LoaderManager though Jun 30 07:50:59 RazielZ: But if I use connection = url.openConnection(); ? Jun 30 07:52:05 bluesm, depends on what connection and url are Jun 30 07:52:35 HttpURLConnection con = (HttpURLConnection) new URL( Jun 30 07:52:36 urlHere).openConnection(); Jun 30 07:52:42 Woops, accidental newline. Jun 30 07:52:45 But that's what you should use Jun 30 07:53:36 Are there any good blogs/websites on android development that you guys follow? Jun 30 07:53:53 RazielZ: What could be another connection (other than HTTP ? ) ? Jun 30 07:54:11 ...what are you trying to connect to? Jun 30 07:54:27 liquidmetal, I just google crap when I need it. =D Jun 30 07:54:28 lol Jun 30 07:55:18 sure... but a blog that might have info about what's coming or reviews of dev process of some good apps Jun 30 07:55:30 RazielZ: I mean. URLconnection have data in it (about correctness of connection) But it can't interpret it ? Jun 30 07:55:33 i'd be interested in reading that kind of stuff Jun 30 07:56:13 bluesm, no, it doesn't Jun 30 07:56:16 I'm creating a new Intent(android.content.Intent.ACTION_SEND) to ask the user if he wants to share the hi-score he just achieved. If he cancels this, it seems that the share intent still hangs in the background, because the next game he plays is very chunky. If he did share it, then the share intent closes down and the next game runs smoothly. So how to kill the share intent if he cancels? stopService(intent) isn't doing the trick. Jun 30 07:56:27 Found this: http://stackoverflow.com/questions/11258083/forcing-an-intentservice-to-stop-immediately Jun 30 07:56:27 Response headers are part of the http Jun 30 07:56:43 - which indicates that it's apparently a problematic issue. But that was about a year ago. Jun 30 07:57:00 RazielZ: but casting doesn't create new data ? Is it ? Jun 30 07:57:18 Why do you have to cast it when you can just use a httpurlconnection from the start? Jun 30 07:57:44 Casting would probably make the data accessible, since the data is obviously on the connection Jun 30 07:57:52 RazielZ: HttpURLConnection con = (HttpURLConnection) new URL(urlHere).openConnection(); Jun 30 07:58:09 RazielZ: you cast "=(HttpURLConnection) " here. Jun 30 07:58:12 Oh, casting from the start Jun 30 07:58:28 Yeah, it makes the data accessible, since httpurlconnection knows how to interpret it Jun 30 07:58:36 I guess it's not really correct to say urlconnection doesn't HAVE it Jun 30 07:58:46 It doesn't have it interpreted. Or doesn't care for it. Jun 30 07:59:01 And can't access it quicky from one method Jun 30 08:00:19 RazielZ: Do you know how URLconnection store data ? Jun 30 08:01:54 Not really Jun 30 08:02:16 http://developer.android.com/reference/java/net/URLConnection.html http://developer.android.com/reference/java/net/HttpURLConnection.html look around these Jun 30 08:02:30 And the docs on oracle too if you have to Jun 30 08:03:12 RazielZ: Ok. Thank you very very much for your help :) Jun 30 08:03:16 RazielZ: And for your time :) Jun 30 08:03:43 No problem :D Jun 30 08:05:13 what do you mean "store data" Jun 30 08:05:26 it sends and receives data from a remote server Jun 30 08:44:19 anyone have any ideas for this? http://stackoverflow.com/questions/17387901/make-progressbar-circle-go-away-after-gps-coordinates-set Jun 30 09:20:30 Hi. Is this expected behaviour of ADT - my min SDK is 14 yet when I use the wizard to create an activity with scrollable tabs, the created class extends FragmentedActivity Jun 30 09:21:04 given that Im targeting only android 4, is there anything I actually need the support library for? Jun 30 09:23:19 ViewPager Jun 30 09:23:49 i would still recommend using the support library fragments and loaders even if your minSdkVersion is 14 Jun 30 09:28:57 thanks, JakeWharton, makes sense about ViewPager. How about choosing between FragmentedActivity and simply extending Activity? Should I trust ADT or trust my understanding (ie, use support lib only if not implemented in the SDK) Jun 30 09:29:30 you only have to extend FragmentActivity to use support library fragments or loaders Jun 30 09:29:49 otherwise you can use ViewPager and all the other helpers in a normal Activity (or anywhere) Jun 30 09:30:37 I see. Thanks! Jun 30 10:05:45 When to use a Loader and when to use an AsyncTask? The concepts seem very similiar. Jun 30 10:08:59 I basically used Loaders instead of AsyncTasks because they are easier to handle. But I wonder if there's more to it. Jun 30 10:29:34 Hi, can Android homescreen widgets use derrived classes? (like a class derived from an ImageView) Jun 30 10:29:45 I know widgets only support certain types. Jun 30 10:30:18 (what really annoys me about Android is the use of the term widget in the context of a homescreen widget and a non-homescreen widget) Jun 30 10:30:20 nope Jun 30 10:30:44 It's app widget in the context of a home screen, and widget in a non-homescreen context Jun 30 10:31:47 Thats explains why the class I just used to make rounded corners for widgets doesn't work for widgets... LOL... Jun 30 10:38:06 Hmm, even the XML rounded corners for imageviews doesn't seem to work for widgets. Not sure what I am missing here. I have a single linear layout with an imageview that fills it, and I just want to round off the corners for an appwidget. Jun 30 10:41:53 asdffdas. Jun 30 10:41:59 org.apache.harmony.luni.internal.net.www.protocol.http.UnknownLengthHttpInputStream.available(UnknownLengthHttpInputStream.java:52) Jun 30 10:42:03 Why do you do this to me, 2.3.4? Jun 30 10:43:31 nudge to 2.3.6 :) Jun 30 10:43:40 then think, well, close enought to 3.0 Jun 30 10:43:54 I tested on a 2.3.6 device and it works Jun 30 10:43:55 then think. well, no1 uses 3, push to 4.0 Jun 30 10:44:00 happy days Jun 30 10:44:09 But on 2.3.4 it does the java.io.IOException: BufferedInputStream is closed thing Jun 30 10:45:22 Anyone using Android Studio? Jun 30 10:45:36 Liking it so far, it's a massive improvement over Eclipse/ADT Jun 30 10:45:49 but I can't seem to find Comment/Uncomment code Jun 30 10:46:00 Ctrl+/ doesn't work? Jun 30 10:46:12 Or Cmd+/ if you're on a Mac Jun 30 10:47:03 Yep, that worked, I was looking for it in the context menu. Jun 30 10:47:34 I wouldn't know where it's located. I use that shortcut in pretty much all my editors :) Jun 30 10:48:42 I have the unfortunate task of writing C# in Visual Studio 2005 for my 9-5 job and tinker with Android/Java/Eclipse at weekend. Jun 30 10:48:51 It's not a nice combo, trust me... Jun 30 10:49:05 Can't you get a newer version of VS? Jun 30 10:49:20 VS 2013 which is coming up for example. Jun 30 10:49:58 We also have alot of legacy unmanaged C/C++ in there that needs alot of work to compile in anything newer. We only just moved from .NET1.1 (VS2003!!!) Jun 30 10:52:07 lol Jun 30 11:43:07 So the first 30 or so images get downloaded properly, then the bufferedinputstreams just decide to kill themselves over and over. Jun 30 11:43:19 I added a check for null that keeps retrying the same download till it gets it Jun 30 11:43:30 And it's slow as hell, but at least it's working and not crashing... Jun 30 11:46:52 Nevermind, apparently there's four of them that never work. Jun 30 11:49:16 Why does 2.3.4 still exist :[ Jun 30 11:59:57 erm, cause it was created Jun 30 12:00:04 and is still the biggest userbase Jun 30 12:00:08 active userbase Jun 30 12:01:23 StingRay_, yeah, which is why I'm trying to solve this Jun 30 12:01:28 And it won't work Jun 30 12:07:23 So out of 600 images, 10 to 20 just randomly decide they're not gonna download, no matter how many times the download is retried. Jun 30 12:07:30 Whythefuckdoyoudothis, 2.3.4 Jun 30 12:12:57 Alright, using a more fool-proof retry method seems to work Jun 30 12:13:07 Instead of retrying on the same connection it disconnects the whole thing and reconnects it. Jun 30 12:20:00 ....... http://i.imgur.com/pDDQfmQ.png metrics.widthPixels / 4 CLEARLY does not return what I'd expect it to on 2.3.4 Jun 30 12:20:07 What the cursewords. Jun 30 12:20:26 Halp pls Jun 30 12:24:37 huh? Jun 30 12:26:20 I'm usind DisplayMetrics to size those buttons relative to the screen width Jun 30 12:26:42 well give or take padding margins whatever it does Jun 30 12:26:47 So basically I'm setting both min and max width and height of the buttons to DisplayMetrics.widthPixels/4 Jun 30 12:26:48 in that pic Jun 30 12:27:20 There ain't supposed to be any padding, it's just making the whole button way bigger than width/4 is Jun 30 12:27:48 hang on Jun 30 12:27:52 It looks/works fine on literally every other android version Jun 30 12:27:56 the main button works Jun 30 12:27:58 Including 2.3.6 Jun 30 12:28:06 blue image Jun 30 12:28:12 they all "work" Jun 30 12:28:12 sec Jun 30 12:29:19 http://i.imgur.com/jCevQ3w.jpg here's how it should and does look on every other android version Jun 30 12:29:35 There's 4 buttons, both sizes of each is screenwidth/4 Jun 30 12:29:44 oh Jun 30 12:30:00 And then there's 2.3.4, which takes my width/4 and makes it something like 3*width/4 Jun 30 12:30:15 And then says fuck it, throws the second button next to the first huge ones, and pretends nothing happened Jun 30 12:30:19 whats the parent view ? Jun 30 12:30:24 relativelayout Jun 30 12:30:42 Uh, in a tabview Jun 30 12:31:10 so the reported disp metric width is wrong ? Jun 30 12:31:19 Apparently Jun 30 12:31:24 I'll output it to the log to check Jun 30 12:31:29 well you can kinda check that easy Jun 30 12:31:43 or is the ammeded layout params wrong Jun 30 12:32:01 how are you setting the width ? Jun 30 12:32:09 Why not just make the parent a linearlayout Jun 30 12:32:17 Use weight Jun 30 12:32:44 setMinimumHeight, setMinimumWidth, setMaxHeight, setMaxWidth on each button Jun 30 12:32:54 ooo Jun 30 12:32:55 SimonVT, I could probably make it linear for the skills tab Jun 30 12:33:03 why not use the layout params Jun 30 12:33:14 This is exactly what weight is for Jun 30 12:33:14 Iiii dunno Jun 30 12:33:32 Hmmmmm Jun 30 12:33:34 How2weight? Jun 30 12:33:44 well either use linearLayout like SimonVT says Jun 30 12:33:47 man, this laptop doesn't have my keymap setup, this is going to be a long day Jun 30 12:33:50 or set the width with layoutParams Jun 30 12:33:53 https://www.google.dk/search?q=android+how+to+weight Jun 30 12:48:41 I have http://forum.xda-developers.com/showthread.php?t=2331622 spl, radio. If I want to upgrade from radio 27.08 to 28.25 can I just put 28.25 zip on sdcard and from recovery update it ? Jun 30 12:49:58 Not a development question. Jun 30 12:50:03 #android-root Jun 30 12:51:20 ok thanks Jun 30 12:51:21 Well, using layoutparams made the dimensions proper buuuuuut Jun 30 12:51:35 does anyone have xp in working with RequestQueue? Jun 30 12:53:23 I'm trying to figure out how to write a server manager that will execute http requests to my server across my app Jun 30 12:53:40 in a good, battery saving, smart networking way Jun 30 12:53:49 Can anyone think up a hack in order to work around this bug: http://code.google.com/p/android/issues/detail?id=56062 ? Jun 30 12:53:56 if i want to make a project for java. creating a basic application in android would suffice ? Jun 30 12:54:07 it seems like my current solution (opening a thread for each request), is bad Jun 30 12:56:57 umm anyone ? Jun 30 12:57:10 i'll get learing android dev if it's enough of java Jun 30 12:59:21 RazielZ perhaps. Jun 30 12:59:44 Uh Jun 30 12:59:46 What do you wanna do? Jun 30 13:02:04 well i was thinking of a simple android application for taxi fares in my city Jun 30 13:09:39 * A_J pokes RazielZ Jun 30 13:10:15 To learn java and the android api? Jun 30 13:11:00 the project is going to be about java Jun 30 13:11:44 "adb pull /sdcard/lsd.trace" "traceview lsd". I am able to pull the file. But not start the traceview. I Jun 30 13:11:55 I'm writing the commands in cmd, is that wrong? Jun 30 13:12:13 RazielZ i dont currently know the android api would have to learn it. learning java in uni atm Jun 30 13:12:31 Well if it's for uni you should probably ask them if doing android is fine Jun 30 13:13:05 they were do a prokect on what ever you like. i'm just afraid i should not bite off more than i can chew Jun 30 13:14:54 RazielZ how much % of java goes into making an android application Jun 30 13:15:15 All the % Jun 30 13:15:40 Well, maybe not if you use lots of xml instead of direct coding for the UI Jun 30 13:15:52 oh that's a good thing. Jun 30 13:15:58 Depends what you mean by java.. Android has its own set of APIs for most things Jun 30 13:16:29 Yeah, but it's not like java can do much on itself, you'll use an API for at least the UI one way or the other if you want something with an UI Jun 30 13:16:50 Well, it can do much on itself, but you know. Jun 30 13:16:54 RazielZ well i'm learning basic java at the moment. Jun 30 13:17:39 is using the AndroidHttpClient a good way of creating a manager for the application server module? Jun 30 13:18:11 RazielZ what do you think i go forward learning android for the project ? Jun 30 13:18:25 Well Android's gonna be useful Jun 30 13:18:30 More so than, say, Java Swing Jun 30 13:18:31 So sure Jun 30 13:19:06 i've seen some decent tutorials on thenewboston Jun 30 13:19:18 i should start there, or can you recommend me a book Jun 30 13:20:24 google.com #1 book Jun 30 13:20:42 The way I do it is basically just search for whatever I need to do at the moment Jun 30 13:20:53 Which is not exactly optimal in some cases, but eh Jun 30 13:20:56 I blame adhd Jun 30 13:21:19 okie. i'll google around Jun 30 13:21:32 the complexity of the application i'm talking is not much i'm hoping ? Jun 30 13:21:35 Follow the official Guide. Jun 30 13:21:42 And Training Jun 30 13:21:48 * A_J requests a link Jun 30 13:21:55 Google Android Training Jun 30 13:22:04 If you wanna just hardcode a list of numbers and names and prices for taxis, no, it's not hard Jun 30 13:22:42 thepoosh: Jake would probably recommend OkHttp. It's an HTTP Client that is better than what's available and also has been accepted back into AOSP because of it. And you'll have the same HTTP Client on all platforms. Jun 30 13:23:12 RazielZ okie. maybe that and a little graphics. an formula to calculate it upto any number Jun 30 13:23:16 nothing else Jun 30 13:23:37 sounds double in a couple hours if you know what you're doing Jun 30 13:23:43 XD Jun 30 13:24:08 wow. that would be swell Jun 30 13:24:22 Depending on how much time you use each day and such you can probably have it pretty much done within 2 weeks Jun 30 13:24:43 that's if i know android api yea ? Jun 30 13:24:47 i'm learning it Jun 30 13:26:06 RazielZ i'll look around. just a last thing do you recommend new boston tutorials ? Jun 30 13:26:26 kakazza: thanks mate, I'll give it a look Jun 30 13:26:26 Link? I don't think I ever saw those Jun 30 13:26:58 http://thenewboston.org/list.php?cat=6 Jun 30 13:27:05 The New Boston tutorials are often outdated. I'd stick with the offical Training and Guidelines. Even if that means you'll have to read instead of watch :p Jun 30 13:27:11 Ah, videos Jun 30 13:27:17 I prefer text stuff for programming Jun 30 13:27:23 Hello Guys :) I am currently using canvas for a game. Two things: a) Can I determine whether I or the unlockCanvasandPost takes much time? and b) isn't there some openGL or other I could use, which uses the GPU instead of the CPU? (Something faster however for easy 2D, and for free) Jun 30 13:27:37 I don't find video format to be great in coding tutorials since you tend to have to pause every 5 seconds Jun 30 13:27:46 So you might as well have it in text form properly Jun 30 13:28:14 Darkchaos, OpenGL should use the GPU Jun 30 13:28:19 If it's still too slow you'll have to do it in NDK Jun 30 13:28:24 RazielZ yea. but helps out in the beginning i guess' Jun 30 13:28:30 NDK? Jun 30 13:28:45 At the moment I can only run stable with less than 20 96x96 Images :D Jun 30 13:28:55 metrics.widthPixels / 4 Jun 30 13:29:02 damnit copypaste Jun 30 13:29:04 http://developer.android.com/tools/sdk/ndk/index.html Jun 30 13:29:05 here Jun 30 13:29:16 also google opengl ndk Jun 30 13:31:24 kakazza: just looked at their website and github repo, this is only for the executing part, and not for the managing of connections and what requests to send out Jun 30 13:31:43 have you seen the android.net.http.RequestQueue? Jun 30 13:32:36 RazielZ thank you very much. Jun 30 13:32:44 are you here often ? Jun 30 13:32:49 anyone home Jun 30 13:33:09 no. Jun 30 13:33:12 Yeah, I tend to be on when I remember to manually join the channel because freenode is a... disliker of quick nickserv ids and joins Jun 30 13:33:52 RazielZ: Does opengl need ndk? Or is it just faster than the java port Jun 30 13:33:59 It's just faster Jun 30 13:34:09 http://developer.android.com/training/graphics/opengl/index.html Jun 30 13:34:13 this is how you do it without ndk Jun 30 13:34:16 kk. i'll ping if i get stuck ty again Jun 30 13:34:25 you too kakazza Jun 30 13:37:12 so, any knowledge on how to manage the connections? some type of queuing mechanism for http requests? Jun 30 13:37:54 I haven't touched Volley. I use a simple persistent queue (tape by Square). Jun 30 13:41:59 what's that android testing library that can mock out activities and contexts and stuff Jun 30 13:42:31 Robolectric? Jun 30 13:42:37 yep, thanks Jun 30 13:46:47 i'm 3 kloc into this refactor and it seems like it might be a good idea to start testing stuff Jun 30 13:48:40 Yeah, start testing now, now that you cannot verify if the original behavior still exists ;p Jun 30 13:52:29 How can I addRule to an existing layoutparam for width and height? Jun 30 13:53:18 In pixels, like you can set in the constructor Jun 30 13:53:27 Except I don't wanna make a new one because then I lose all the other stuff. Jun 30 13:53:37 So I'm trying to get the existing one off the view and add width and height... Jun 30 13:55:48 It's not a rule, it's just a field Jun 30 13:57:43 Well there's no function to set it... Jun 30 13:57:46 So what do I do? >: Jun 30 13:58:04 Ever set a variable to a value? Jun 30 13:58:16 Oh, it's not private? >_> Jun 30 13:58:21 wellp Jun 30 14:00:34 hello...anyone knows if it is still impossible to show the virtual keyboard with ndk without using jni? Jun 30 14:01:15 should onResume be used for interaction/actions on back button press ? ? Jun 30 14:02:58 we can try anyway rightis there a way to obtain app data from an app that is 'on sd' from a nandroid backup :P Jun 30 14:03:06 is there a way to obtain app data from an app that is 'on sd' from a nandroid backup :P Jun 30 14:21:49 Pssst SimonVT, if I have four textviews that overlap in space but only one is visible at a time, and I want them wrapped into a scrollview, I have to wrap each in a scrollview and only show one of the scrollviews at the same time too? Jun 30 14:40:28 No, just put them all in a framelayout Jun 30 14:40:36 Just that framelayout be a child of the scrollview Jun 30 14:40:44 Cool Jun 30 14:46:11 or just use the 1 and change it with the data you want Jun 30 14:46:25 rather than having 4, with only 1 vis at a time Jun 30 14:46:45 Yeah, but the text is dynamically generated from some stuff and has a quite a few html elements too, and that might make it slow to switch between them sometimes Jun 30 14:49:20 is there a way to obtain app data from an app that is 'on sd' from a nandroid backup :P Jun 30 14:50:01 #android-root might be the place to ask. Jun 30 14:51:31 roboelectric users, have you seen this before: java.lang.IncompatibleClassChangeError: class org.objectweb.asm.tree.ClassNode has interface org.objectweb.asm.ClassVisitor as super class Jun 30 14:51:47 fails at org.robolectric.RobolectricTestRunner.createRobolectricClassLoader( Jun 30 14:54:48 Any way to force a scrollview to always show the scrollbar but only if there's actually something to scroll through? Jun 30 14:55:44 RazielZ, the aren't "always" and "only if ___" parts at odds? Jun 30 14:56:03 Sortakinda Jun 30 14:57:22 funkbox, something is going wrong with the .class file parser. org.objectweb.asm is a commonly found library that allows you to interpret/edit the raw .class bytes in a Java compiled class, usually before they're loaded into memory by a classloader. Just figured I'd help you out there. Jun 30 14:58:17 It generally means a dependency is relying on a weird version of a member Jun 30 14:58:17 i am running with jdk 1.7.. maybe that's it Jun 30 14:58:50 nope. 1.6.. hm.. Jun 30 14:58:54 i.e. a third party piece of code still thinks another library's method is static when in reality it's been updating to a non-static member Jun 30 14:59:06 funkbox: Try updating to the absolute latest versions of each. Jun 30 14:59:24 Shouldn't matter what your java version is in this case. Jun 30 14:59:31 I mean, 6 vs 7 Jun 30 15:00:47 oh wow, i had otto there twice as 1.1.0 and 1.3.3 Jun 30 15:01:01 :) Remove the older one and see if it fixes it. Jun 30 15:02:14 i misread, i had otto and tape Jun 30 15:02:33 funkbox, so that isn't the issue? Jun 30 15:02:42 If I'm just starting off with Android Development, should I go for the Android Studio EAP directly or use Eclipse? Jun 30 15:03:19 Qix: nope. Jun 30 15:03:34 Soothsayer: android studio. Jun 30 15:03:49 Soothsayer, if you're okay about working with pre-release software, and you're not already comfortable with Eclipse, it's up to you if you want to use the studio. Otherwise, Eclipse has been a long-running standard and is tried and tested. Jun 30 15:04:08 funkbox, have you updated all of the libraries? Jun 30 15:04:42 checking now Jun 30 15:04:57 Is it the case that Android Studio is not production ready (as far as building apps are concerned)? Jun 30 15:05:17 funkbox, org.objectweb.asm.ClassVisitor Jun 30 15:05:26 i'm actually comfortable with Jetbrain IDE's (PHPStorm, WebStorm, etc).. so I don't want to go through the curve of learning Eclipse for only a short period of use. Jun 30 15:05:37 Soothsayer, no the apps should be just as production ready as you code them. The studio itself is pre-release. Jun 30 15:06:10 Don't think you'd have too much of a curve coming from Jetbrains to Eclipse. Jun 30 15:06:19 Especially with the ADT plugin for Eclipse Jun 30 15:06:32 http://developer.android.com/sdk/installing/installing-adt.html Jun 30 15:06:33 Soothsayer, the studio might do unexpected things at times, but generally, you're good to go with it Jun 30 15:06:39 ^ Jun 30 15:06:48 Personal preference; why not try both? :) Jun 30 15:06:53 if it does, you can always report them, and they will be fixed at some point in the near or distant future Jun 30 15:06:53 we have been using android studio exclusively and it's very stable. Jun 30 15:07:09 Since it's by google, I don't doubt it. Jun 30 15:07:20 You never know though :) It's pre-release for a reason. I'm sure the reason is good. Jun 30 15:07:44 the actual code editing part is intellij and is rock-solid. the android plugin stuff is google and some of the stuff is a little wonky, like gradle Jun 30 15:08:53 Qix: still no luck, might be android platform stuff Jun 30 15:09:54 funkbox, I doubt it seeing as how the exception is a result of a faulty ASM library :) Jun 30 15:10:08 Qix: i'm trying to find what'suding it Jun 30 15:12:38 ok maven finally found some stuff. 3 things that need updating including roboelectric Jun 30 15:13:32 lol xpl0iter was in here. Jun 30 15:13:41 funkbox, hopefully that fixes it :) Jun 30 15:14:19 Qix: did not. but progress Jun 30 15:14:30 and by progress i mean no progress Jun 30 15:14:50 running mvn:depedency-tree now Jun 30 15:14:53 That stacktrace you pasted is surely a faulty ASM JAR. There is nothing else it *could* be. Jun 30 15:15:03 It's pretty clear as to what the issue is. Jun 30 15:15:14 just seems a matter of fixing it Jun 30 15:16:53 and i think i found it Jun 30 15:17:02 net.minidev:json-smart:jar:2.0-RC2:compile Jun 30 15:17:03 funkbox, what version is asm-all-X.X.jar? Jun 30 15:17:43 3.3 something Jun 30 15:18:07 i actually ripped json smart out and replaced it with gson so it's never really used Jun 30 15:18:15 funkbox, yes like I said that version is bugged. Jun 30 15:18:16 http://grepcode.com/snapshot/repo1.maven.org/maven2/org.ow2.asm/asm-all/4.0 Jun 30 15:18:38 Qix: thanks! i'd have never found it Jun 30 15:19:05 If you're using maven, the POM information is the first link. Jun 30 15:19:37 i'm in a coffee shop with super shitty wifi :( Jun 30 15:20:23 Qix: funkbox sonOfRa thanks, will start off by trying Studio Jun 30 15:20:48 the only curve ill have to get through is all the documentation, books, etc talking about Eclipse. I'll have to find the equivalent ins tudio Jun 30 15:21:24 Soothsayer, I'd imagine they're similar as far as configurations go. Layout will probably be your main difference. Jun 30 15:22:27 Soothsayer: eclipse is a turd compared to android studio Jun 30 15:22:49 funkbox: I hope so :) Jun 30 15:24:18 Qix: different failure! Jun 30 15:24:24 funkbox: Qix .. ok I know, this might be a very common / let me google that for you question.. but could you suggest a good book as a starting point? (not the android reference site). I'm very proficient with Web Dev, OOP, Java & Programming Concepts. I just need to straight jump to Android in a structured manner. Something concise. Jun 30 15:25:22 do those "app recipes" or whatever Jun 30 15:25:52 Soothsayer, I learned using the android help files and started from there. o-o Jun 30 15:26:13 Then with the power of code hinting and javadocs I made my way around the framework until it all made sense Jun 30 15:26:38 The hardest thing for me to grasp (which is silly) were Bundles Jun 30 15:26:38 funkbox, what is the issue now? Jun 30 15:27:09 Qix: GoogleAnalytics crashing out in onCreate. stuff not necessary to run when running a test Jun 30 15:27:19 Ah, so ASM is running now? Jun 30 15:29:14 yep Jun 30 15:29:27 Cool :) Jun 30 15:29:58 Qix: now getActionBar() == null. progress Jun 30 15:30:12 :) Jun 30 15:38:08 hm.. why isn't it creating an action bar Jun 30 15:41:00 funkbox, remember that electrobot is simply a unit-testing library. It's not going to actually draw anything or create controls/windows; it's to test processing and logic on the system instead of the device/emu :) Jun 30 15:41:46 Qix: sure, but there must be a way to inject something as fundamental as an action bar Jun 30 15:42:10 O.o kbai Jun 30 15:59:03 If I'm using a searchwidget to search for stuff, what's the easiest way to also make the search work on api<11? Jun 30 15:59:36 RazielZ: www.google.com Jun 30 15:59:52 Thanks, you're helpful. Jun 30 16:00:56 for people that cant find a good search engine, or demostrate that they may have forgotten about a good search engine, that would be very helpful Jun 30 16:01:58 your welcome RazielZ Jun 30 16:02:14 You're* Jun 30 16:02:22 RazielZ Jun 30 16:02:33 do not correct me pal. Jun 30 16:02:48 But... I already did :( Jun 30 16:02:52 Can I have a time machine to fix it? Jun 30 16:02:56 if you don't wanna get corrected, make sure you can't get corrected ;) Jun 30 16:03:03 ^ Jun 30 16:03:43 want to* Jun 30 16:05:06 there's more, all depending on how much you care :) Jun 30 16:07:56 that guy is not being very stealthy :p Jun 30 16:10:58 I hate simplification Jun 30 16:11:13 makes me waste soooo much time fixing all the complext crap that is pointless Jun 30 16:11:22 complex* Jun 30 17:12:22 hello. Anybody nows what is the post-get sequence to connect twitter stream via api1.1 without using libraries Jun 30 17:12:28 ? Jun 30 17:21:42 anybodu can help me? Jun 30 17:22:00 prob. not Jun 30 17:22:02 :) Jun 30 17:43:07 I can't seem to find any way to change the theme of ADT (I would like a dark background). Do I have to get a plugin to do this? Jun 30 17:46:39 hi, i've been compiling aosp for quite some time but now, all of a sudden i get this Jun 30 17:46:41 frameworks/base/core/res/res/values/public.xml:883: error: Public symbol drawable/sym_call_incoming declared here is not defined. Jun 30 17:46:49 does anyone know what that's all about? Jun 30 17:47:02 i get a ton of that type of lines Jun 30 17:47:17 all saying public symbol * declared here is not defined Jun 30 17:51:39 hi Jun 30 17:53:15 http://pastebin.com/aY6ycWA0 << when building my project with NDK for android why would i be getting "Engine has not been Jun 30 17:53:26 err Jun 30 17:53:42 "Engine has not been declared" in GoToWorld(line 92) Jun 30 18:03:27 hello! Jun 30 18:03:39 This might be slightly off topic- but I need t otake a class on python Jun 30 18:03:57 what kind of generic programmin g advice should I include in the talk? Jun 30 18:04:19 I know this is grosely out of scope for this channel but anyone know anything about making money off of publishing ads? banner ads and such? I have a forum and recently got booted from adsense and am looking for a replacement... Jun 30 18:04:34 flipture, chitika? Jun 30 18:04:50 liquidmetal: cool, just saw that one on one of the lists i'm looking at. will check itout Jun 30 18:04:53 thx Jun 30 18:05:35 chitika, microsoft ads, yahoo ads and a million other ad networks out there:) Jun 30 18:05:44 whay did google ban you for Jun 30 18:06:07 restricted words and racey photos i think Jun 30 18:06:12 its still a little unclear Jun 30 18:06:21 i own a forum and have a younger userbase Jun 30 18:06:31 so they post topics like "check out this sexy car" Jun 30 18:06:32 did you have much in your account? Jun 30 18:06:35 and things like that kept getting flagged Jun 30 18:06:52 Fraz: they still pay me, i didn't get booted from my root url Jun 30 18:06:54 only /forums :) Jun 30 18:07:00 ah ok Jun 30 18:07:08 how much do you make Jun 30 18:07:12 if you dont mind me asking Jun 30 18:07:29 i tried to fix it, and even took out the "Eye Candy" sub forum to try to stay with them but they still said other things were flagging their stuff... Jun 30 18:07:35 from adsense, its about $200/mo Jun 30 18:07:36 not a ton Jun 30 18:07:45 my forum gets around 6mil hits per month Jun 30 18:07:54 a few sites with that much would be cool though Jun 30 18:07:56 :) Jun 30 18:08:05 6mil:o Jun 30 18:08:15 and only $200 a month Jun 30 18:08:16 yeah Jun 30 18:08:24 i'm not making to the potential... Jun 30 18:08:27 ever looked into private advertising? Jun 30 18:08:30 i've not put a TON of tiem into it Jun 30 18:08:42 or text link ads or something Jun 30 18:08:50 Fraz: how do you mean? I sell banner ads to local vendors and such Jun 30 18:08:51 for a yearly rate Jun 30 18:09:02 but dont' make a ton off of that either Jun 30 18:09:05 ah so you make more than just what you make from adsense Jun 30 18:09:08 yeah Jun 30 18:09:16 i have donations and vendor accounts Jun 30 18:09:40 i do it for the community mostly so making money off of it is a side thought Jun 30 18:09:52 240Atlanta.com, its for Nissan 240SX's... Jun 30 18:09:56 money should always be first prioriy:P Jun 30 18:10:11 In the past we've helped keep kids from drifting on the streets and had sanctioned drift events locally at turner field in the parkign lots Jun 30 18:10:13 money money money Jun 30 18:10:19 Fraz: well making my money back for the hosting is :) Jun 30 18:10:25 hehe Jun 30 18:10:32 cool Jun 30 18:46:28 hi everyone Jun 30 18:46:42 I am looking for some help with getting a runnable started Jun 30 18:48:56 A runnable is just an interface with a run method.. You don't start it Jun 30 18:49:14 if you mean a thread, new Thread(new Runnable(){}) Jun 30 18:49:23 or of course some runnable object. Jun 30 18:50:12 yes, I have something like these getting started from a singleton: Jun 30 18:50:23 if(sSgvSvrCommInstance.mMsSqlInterfaceThread == null || !sSgvSvrCommInstance.mMsSqlInterfaceThread.isAlive()) Jun 30 18:50:23 { Jun 30 18:50:23 sSgvSvrCommInstance.mMsSqlInterfaceThread = new Thread(sSgvSvrCommInstance.mMsSqlInterfaceRunnable); Jun 30 18:50:23 sSgvSvrCommInstance.mMsSqlInterfaceThread.start(); Jun 30 18:50:23 } Jun 30 18:50:43 Pastebin.. Jun 30 18:50:50 ok, hang on Jun 30 18:51:36 here u go: http://pastebin.com/2jXJYbq7 Jun 30 18:51:56 Those variable names... Jun 30 18:52:00 my problem is that when I call the thread start method, my runnable run method is never entered Jun 30 18:52:16 yes, they belong to the singleton Jun 30 18:52:18 lou_, did you debug it? Jun 30 18:52:25 Like, step through it? Jun 30 18:52:31 did you take out that conditional? Jun 30 18:52:41 Did you put an exception in the run() method? Jun 30 18:52:46 yes! Jun 30 18:52:50 All three Jun 30 18:52:51 ? Jun 30 18:53:02 trust me, we are not entering the run method for my runnable Jun 30 18:53:19 as soon as the thread start is called, it's lost in the ether Jun 30 18:53:55 i will post the runnable class in pastebin as well Jun 30 18:54:32 here is the runnable class: http://pastebin.com/0bDvZz5D Jun 30 18:54:45 lou_, after like 69 in that first pastebin, throw an exception and in the text put whether or not the isAlive() returns true Jun 30 18:55:03 throw new RuntimeException(Boolean.toString(sSgvSvrCommInstance.mMsSqlInterfaceThread.isAlive())); Jun 30 18:55:07 should work. Jun 30 18:55:16 i had a breakpoint there and placed that routine in my watch list and it displays true Jun 30 18:55:49 Well, everything else looks correct. Jun 30 18:56:16 and you set a breakpoint on line 27 of the second pastebin? Jun 30 18:56:18 yea, do u still want me to wrap the exception? Jun 30 18:56:47 i placed the breakpoint here: Looper.prepare(); Jun 30 18:56:50 not if you did a watch list entry Jun 30 18:57:00 hmm Jun 30 18:57:14 i did do the watch list entry and i made sure that we are calling the start method of thread Jun 30 18:57:36 and you had an actual coded exception in the run() method, not just a breakpoint? Jun 30 18:57:57 i ran into an issue yesterday and found that i needed to stick a looper in my runnable run method, then I ran into this issue Jun 30 18:58:34 just a breakpoint at the next line of try{ Jun 30 18:58:59 try a hard-coded unchecked exception before the try Jun 30 18:59:01 just to be safe. Jun 30 18:59:10 shouldn't matter, but eliminate all other possibilities Jun 30 18:59:17 confirm with the exception it's not being called. Jun 30 18:59:20 Dunno why you need that runnable at all.. Usually you'd just implement that in the threads run method.. Or simply use handlerthread Jun 30 18:59:30 ok, just like the one u posted earlier? Jun 30 18:59:51 lou_, sure but take out the part that checks for the thread being alive Jun 30 18:59:59 SimonVT, he has a loop he wants to run concurrently Jun 30 19:00:19 well, that's a philosophical discussion of thread extension and runnable implementation Jun 30 19:00:21 I don't know what that means Jun 30 19:00:32 ok Qix. brb Jun 30 19:01:09 lou_, just to be clear just create a new RuntimeException with the default constructor (no args) Jun 30 19:01:35 Not sure you can just loop a looper after you quit it.. Either way, you can just create a new handlerthread after you quit the old one Jun 30 19:02:15 ok, brb Jun 30 19:03:04 when i do that, looper throws an error of unreachable statement Jun 30 19:03:15 Oh, yes, comment that out. Jun 30 19:03:18 for the time being. Jun 30 19:03:34 hand on a second Jun 30 19:03:54 or trick it. I hate commenting so I do int i = 1; if(i % 1 == 0) throw new RuntimeException(); Jun 30 19:04:13 if i comment out the looper, I will get an exception for starting the thread without a looper. being that it isn't part of the UI thread Jun 30 19:04:49 lou_, for debugging purposes that's fine. Jun 30 19:04:54 just see if it throw Jun 30 19:04:55 throws* Jun 30 19:05:05 if it does, then uncomment the original code Jun 30 19:05:29 ok, here we go Jun 30 19:05:43 i did it with ur second suggestion Jun 30 19:05:50 am starting it up now Jun 30 19:06:53 brb Jun 30 19:06:59 hmmmm, it crashed right after calling the start method. let me do that again and look at the logcat Jun 30 19:08:04 hmmmmm, interesting. Jun 30 19:08:13 this is the error that I get: 06-30 15:07:07.530 26701-26728/com.lems111.sgvterminal E/AndroidRuntime: FATAL EXCEPTION: Thread-4069 Jun 30 19:08:14 java.lang.RuntimeException Jun 30 19:08:14 at com.lems111.sgvterminal.MsSqlInterfaceRunnable.run(MsSqlInterfaceRunnable.java:29) Jun 30 19:08:14 at java.lang.Thread.run(Thread.java:856) Jun 30 19:08:34 Looks right. Jun 30 19:08:43 So it is calle Jun 30 19:08:44 called* Jun 30 19:08:49 but, u know what's weird Jun 30 19:08:54 This means if your code isn't working, something with your logic is wrong Jun 30 19:09:14 i have a breakpoint at the exception line and at int i = 1; Jun 30 19:09:18 they never hit Jun 30 19:09:23 what IDE are you using Jun 30 19:09:35 the android one Jun 30 19:09:40 Android Studio? Jun 30 19:09:49 yup Jun 30 19:09:53 Could be a bug Jun 30 19:09:55 lol. Jun 30 19:09:58 It is pre-release Jun 30 19:10:01 how did i know u would say that Jun 30 19:10:06 shit Jun 30 19:10:16 this is no good Jun 30 19:10:16 more than likely the class itself didn't make it onto the debugger's classpath Jun 30 19:10:29 here is the thing though Jun 30 19:10:42 before i added the thread and the looper stuff Jun 30 19:11:04 I was calling my runnable from my ui thread and the breakpoint in my run method would hit Jun 30 19:11:24 hmmmmm, that adds to your theory Jun 30 19:11:47 :/ Jun 30 19:11:48 Threading shouldn't be an issue when it comes to breakpoints. Jun 30 19:12:07 However if you'd like to test that theory, where you call your thread's start method, instead call run() on the thread object Jun 30 19:12:27 and set a breakpoint for your runnable Jun 30 19:12:31 see if it dings. Jun 30 19:12:32 ok Jun 30 19:12:42 brb Jun 30 19:12:45 If that is the case, then it is most definitely a bug. Jun 30 19:12:51 that would run it in the ui thread though, right? Jun 30 19:13:16 i know for sure that my run method in my runnable class gets executed when it's started from the ui thread Jun 30 19:13:31 correct Jun 30 19:13:34 again, debugging purposes. Jun 30 19:15:03 yup. it hits my breakpoint inside the run method Jun 30 19:15:07 Huh. Jun 30 19:15:24 that just adds to what I saw yesterday Jun 30 19:15:30 If you wouldn't mind, would you make a new project and create a small test case? Jun 30 19:15:31 we are going in there either way. shit! Jun 30 19:15:43 lol. what's that? Jun 30 19:15:59 or, probably easier, what is the exact version/build of the studio you're using? Jun 30 19:17:15 AI 130.725679 Jun 30 19:17:33 built on june 27 Jun 30 19:19:55 Alright, downloading. I'll let you know if I can re-create it, lou_. For now just work with what you have :P If anything, might be time to switch IDEs if at all possible if breakpoints are a vital part of your workflow Jun 30 19:20:57 well, I would like to breakpoint anywhere I can; but, I could work with logging in the meantime :/ Jun 30 19:21:13 let me know what u find. this is interesting Jun 30 19:24:32 requires a 64-bit JDK >.> Jun 30 19:24:43 Going to have 4 JDKs installed now. Jun 30 19:24:50 6/7 x86/x64 Jun 30 19:26:09 lou_, are you updated to the latest version? Jun 30 19:26:18 hmmmmm, i have 32bit linux mint Jun 30 19:26:30 yup, i ran the update check when u asked for the build Jun 30 19:26:43 oh, latest version of jdk? Jun 30 19:33:08 hello. Anybody nows what is the post-get sequence to connect twitter stream via api1.1 without using libraries? Jun 30 19:35:44 I could obtain json file with application only auth, but I dont get what should I do for Single-user OAuth Jun 30 19:36:23 how do I get the smsTexts in a specific conversation? both sent and received? Jun 30 19:50:34 Just admit it; you're all dying to hear how I solved my "fragment showing, but activity view/background invisible". Seems like an Android bug: https://code.google.com/p/android/issues/detail?id=4394 . When activity gets recreated, settheme needs to be called before calling super.onCreate. Jun 30 19:51:58 Behaviour (Activity removal) could be provoked by activating the "Don't keep activities" option in the dev menu. Jun 30 19:53:36 Hi. I'm going through the Building Your First App tutorial. It's working, but the EditText's top is not aligned with the Button's top. Jun 30 19:53:44 I'm using Android Studio, and the designer is showing them as aligned. Jun 30 19:53:47 They're not aligned on my phone. Jun 30 19:55:36 Setting the layout_gravity to "top" isn't working. Jun 30 19:58:38 shmooz Jun 30 20:09:44 TacticalJoke: is it inside a relativelayout? Jun 30 20:09:52 A LinearLayout. Jun 30 20:10:05 Can a app provide a system wide TTS engine? Just like a app kan provide a input method? Jun 30 20:11:10 Okay, I think the problem is that the button's text is making it go lower. Jun 30 20:11:45 My app has a fairly standard actionbar, but it uses a custom view for the actionbar when editing (standard discard/done pattern). IF the OS kills my activity after inactivity, when my activity gets recreated the "list mode" navigation from my actionbar suddenly shows next to my custom discard/done view. What's the typical way to detect and avoid such a situation? Jun 30 20:12:11 wait, that's wrong. Jun 30 20:12:15 Wait,* Jun 30 20:13:38 It's just that the button is lower (both top and bottom) than the text box is. Jun 30 20:16:23 TacticalJoke: did you copy the xml? Jun 30 20:17:14 okamis_: Yeah, from the tutorial. Here it is: http://pastebin.com/E8VZAf3N Jun 30 20:17:58 TacticalJoke: what are you expecting ? Jun 30 20:18:15 I'm expecting the top of the EditText to be aligned with the top of the Button. Jun 30 20:18:22 But the Button's top is slightly lower. Jun 30 20:18:33 visually it can be Jun 30 20:18:39 view bounds it wont be Jun 30 20:18:53 Sorry? Jun 30 20:19:06 what you see could look like that Jun 30 20:19:19 based on the drawable or statelist Jun 30 20:19:30 but the actual view boundry will be aligned Jun 30 20:19:57 The GUI designer in Android Studio shows them as aligned. Jun 30 20:20:13 ok Jun 30 20:25:23 The button drawable has padding. The edittext one might not. Or it might have different padding. If you wish to align them exactly across all platform versions, provide your own drawables. Jun 30 20:30:28 If I use a RelativeLayout, I don't have this problem. Jun 30 20:30:34 It's just the LinearLayout thingy. Jun 30 20:34:01 Okay. Jun 30 20:34:11 Quick question: Does any serious app use title bars? Jun 30 20:34:36 https://play.google.com/store?hl=en_GB Jun 30 20:34:44 wellhttps://play.google.com/ Jun 30 20:34:51 https://play.google.com/ Jun 30 20:35:02 have a look for the "serious apps" and see Jun 30 20:35:50 I see that the Settings thing does. Jun 30 20:35:57 But I can't find anything else on my phone that does. Jun 30 20:36:02 I guess ActionBars replace title bars? Jun 30 20:36:32 how hard is it to send a text message on the users behalf? Jun 30 20:36:42 not very Jun 30 20:36:52 do they have to approve it each time? Jun 30 20:36:56 no Jun 30 20:37:09 thats just a permissions issue Jun 30 20:37:19 what ? Jun 30 20:37:37 i mean that if im grantd that permission i can send a text message Jun 30 20:37:41 on the users behalf right Jun 30 20:37:51 yes Jun 30 20:59:29 How do I change the background colour of a Button without removing the Button's click animation? Jun 30 20:59:55 Google isn't helping much. Jun 30 20:59:57 in code you would get the background, cast to statelist and edit the condition Jun 30 21:00:14 but in the end better just raplacing it with your own Jun 30 21:02:59 The click state is the background Jun 30 21:06:40 how to get the smsTexts i na conversation both the sent messages and received? Jun 30 21:09:29 read them from the dv Jun 30 21:09:31 db* Jun 30 21:10:45 StingRay_: http://stackoverflow.com/questions/848728/how-can-i-read-sms-messages-from-the-inbox-programmatically-in-android like that? Jun 30 21:11:23 up to you Jun 30 21:11:33 is there a more efficient solution or do I have to iterate over everything and patch it together? Jun 30 21:12:16 they are msgs, in a database, how would you get them if not to read and iterate ? Jun 30 21:13:05 nah, is it possible to get them from db, all msg from "a"? Jun 30 21:13:23 where A is a some sort of identity Jun 30 21:13:27 yeah Jun 30 21:13:31 it's a database Jun 30 21:13:38 sqlite Jun 30 21:13:44 supports queries Jun 30 21:13:56 but your still gonna get results 0-n Jun 30 21:15:54 thanks, just never worked with a db before Jun 30 21:21:17 I want to use condition address==friend.phoneNr, but the dbs phoneNr is +467123456, while friend.phoneNr is 07123456, any good solution or should I just get to it? Jun 30 21:33:17 If my OGL LWP works perfectly while previewing it, but once set does nothing, what could the problem be? Jun 30 22:18:11 I found this http://forum.xda-developers.com/showthread.php?p=43127660#post43127660 now how do I run that script please tell me , I have to android sdk installed Jun 30 22:19:50 jennie: ask in #android-root or something Jun 30 22:25:40 Are there any tools/libraries out there which allow me to build simple user interfaces fast? I'm looking for something other than default buttons to start activities and stuff. Or is it easy enough to make my own? Jun 30 22:26:36 what's slow about the current method? Jun 30 22:27:38 bankai_, Nothing, but I'm not a designer. So I guess I'm actually looking for some way to make good looking UIs fast. Jun 30 22:37:05 there are tools to prototype and design layouts really quick Jun 30 22:37:16 pencil and paper are the quickest Jun 30 22:37:17 :) Jun 30 22:38:43 * Bleeptech quietly kicks a box of crayons under StingRay_'s chair.. Jun 30 22:39:16 * StingRay_ looks at his wacom tablets, throws crayons back Jun 30 22:40:06 How does one get ActionBarSherlock working in Android Studio? Google brings up a whole load of different ideas, featuring confused people all over the place. Jun 30 22:40:11 What is the definite method? Jun 30 22:41:17 TacticalJoke: Be confused till it works.. Then be confused as to why it works? Jun 30 22:41:41 That sounds like what I'm expecting. Jun 30 22:43:31 TacticalJoke: Android Studio isn't actually meant to be used for production yet, ActionBarSherlock works just fine in regular IntelliJ Jun 30 22:44:05 Okay. I guess things will improve soon. Jun 30 22:44:29 Android Studio work fine for "production" Jun 30 22:46:20 JakeWharton: I'm not saying it doesn't, but google clearly states that it's still a preview and bugs may occur Jun 30 22:47:06 It's just an updated version of the android plugin. IDEA 13 is basically the same thing. Jun 30 22:52:50 srgtuszy: android studio works fine Jun 30 22:52:57 it's well above "alpha" quality Jun 30 22:54:05 So, is there an official way of getting ABS working in Android Studio? Jun 30 22:54:31 The dev branch has gradle build files Jun 30 22:55:06 IIRC using w/maven works fine Jun 30 23:12:50 JakeWharton, just publish aars already Jun 30 23:13:08 why the reluctance? Jun 30 23:13:29 if/when the format changes, publish a new version Jun 30 23:13:40 it seems pretty straightforward, though Jun 30 23:13:55 When did I say I was reluctant? Jun 30 23:13:58 a zip file with classes.jar, assets, res, jni, R.txt and AndroidManifest.xml all in the top level Jun 30 23:14:11 JakeWharton, the last time I saw an aar issue on abs' github Jun 30 23:14:21 and the fact that there's no aar published Jun 30 23:16:35 minSdkVersion=14, problem solved. Jun 30 23:17:07 1,000 problems created. :p Jun 30 23:49:07 Should Intent extras be static class fields or strings in strings.xml? Jun 30 23:49:24 The former seems weird to me. Jun 30 23:52:12 TacticalJoke if you plan on giving a "contract" class , static fields or something Jun 30 23:52:24 kinda like content provider contract classes maybe Jun 30 23:53:05 I guess I'm talking about communicating with other Activity instances. Jun 30 23:55:52 Is the next release of ABS gonna be simple to use in Android Studio? I don't know a lot abour Gradle. Jun 30 23:55:57 about* Jun 30 23:56:10 one line in the build.gradle Jun 30 23:56:12 simple enough? Jun 30 23:57:27 Okay. Jun 30 23:58:38 Unaccaptable! It should be half a line! Jul 01 00:06:10 hmm Jul 01 00:06:29 Fuckin drawTextOnPath should return the length of the path that was drawn upon with text Jul 01 00:06:30 :S Jul 01 00:09:19 This is gonna be a noob question, but... Jul 01 00:09:36 The first time I created a project with Android Studio, Gradle (I think) required Internet access. Jul 01 00:09:53 I gave access, but Android Studio reported that there was an error with the download. Jul 01 00:10:00 Android Studio has worked fine since then, so it seems okay. Jul 01 00:10:02 But what was that? Jul 01 00:11:12 man, I want another google experience phone on vzw, which one is that these days Jul 01 00:11:35 Galaxy S4 will probably be the best you can get :P Jul 01 00:37:59 why dont u make gyroscope out of pure software Jul 01 00:38:01 but the s4 isn't google experience Jul 01 00:38:26 KornKage: ... wat Jul 01 00:38:32 pfn: there's a version with google experience Jul 01 00:38:38 is there? Jul 01 00:38:38 650 USD, was it? Jul 01 00:38:41 pfn: yes Jul 01 00:38:44 the s4 dev edition is not google experience Jul 01 00:38:56 it isn't? Jul 01 00:38:56 it's just an unlocked bootloader without an official google rom Jul 01 00:39:08 otherwise I'd go and buy it Jul 01 00:39:27 pfn: according to Google I/O keynote, it was supposed to come with google rom Jul 01 00:39:35 it ended up on Jul 01 00:39:39 s/on/not Jul 01 00:39:46 Anyone know what i have to do to access shared preferences from a class that is called by my activity? Jul 01 00:40:08 ... wait, there's a market where Galaxy S-series come locked? Jul 01 00:40:16 http://www.samsung.com/us/mobile/cell-phones/SCH-I545ZKDVZW Jul 01 00:40:18 I could simply find a way to pass the value from the first activity but seems i should be able to access those preferences other places than just in the activity itself Jul 01 00:40:34 it dcomes with touchwiz Jul 01 00:41:12 ahhh, verizon. The reason why USA can't have nice things Jul 01 00:41:24 Android Studio is kinda laggy. Do y'all think it'll be lessy laggy when it's out of preview and stuff? Jul 01 00:41:58 probably not Jul 01 00:42:52 p_l, I could get cyanogenmod or something, but that sucks as a solution Jul 01 00:43:15 especially since there are already bootloader unlock methods for the non-dev editions Jul 01 00:43:18 Is it because it's written in Java? Jul 01 00:43:23 no Jul 01 00:44:00 I mean Android Studio. Jul 01 00:44:09 so? no Jul 01 00:44:58 I've never used a non-laggy Java app. Jul 01 00:45:07 On Windows, I mean. Jul 01 00:45:32 you haven't used many java apps then Jul 01 00:46:34 Can you give an example of a Windows Java app that isn't incredibly laggy? Jul 01 00:47:03 vuze Jul 01 00:47:28 eclipse isn't generally laggy, either Jul 01 00:48:13 Elipse is pretty laggy for me. Jul 01 00:48:20 get a nonlaggy computer Jul 01 00:48:23 Noticeable UI lag. Jul 01 00:57:44 ahahhahaha .... TIL ... "glassholes" XD Jul 01 00:59:38 anywhere know who to get free andoid sartphone Jul 01 00:59:40 ? Jul 01 01:01:12 Ask a friend, I guess. Jul 01 01:01:20 learn to shop lift Jul 01 01:03:12 * pfn ponders getting the dev edition s4 for shits and giggles Jul 01 01:03:23 at least with a tax deduction it becomes like 422, then add sales tax... ugh Jul 01 01:03:39 ahh but you can write off depreciation ;) Jul 01 01:03:48 I just deduct the full amount immediately Jul 01 01:03:52 you can't write off deprecation for that Jul 01 01:06:19 my tax man said i can, but maybe that's an AU thing Jul 01 01:11:35 what about cheap s4 Jul 01 01:11:50 700 euro is too much Jul 01 01:11:57 i was thikning more around 100 or less Jul 01 01:12:26 is there a trick to connecting an application to apache running under wamp? i have tried using 10.0.2.2 but the connection is refused/times out Jul 01 01:15:16 which IP is your server listening on? i think 10.0.2.2 maps to 'localhost' Jul 01 01:37:41 bankai_: yes, my server is listening on localhost. i was using androvm and Im about to try the regular emulator now Jul 01 01:42:07 what are we supposed to use since the sliding drawer is now deprecated? Jul 01 01:47:38 i am thinking of purchasing my first android phone for app development... originally, i thought win-phone was what i wanted, but then I learned they have no support for receiving notifications/events of incoming/outgoing calls, caller-id details, etc. Apple just plains sucks so I'm thinking Android is what i am looking for. I'm leaning towards something like a Samsung GS4, but wanted to Jul 01 01:47:38 get some input from people actually using/devloping for the device. Jul 01 01:48:46 homestarz: i develop on a mac for android... Jul 01 01:49:26 im mainly curious about the android device (stability) not the dev environment Jul 01 01:49:41 it's stable - there, easy :) Jul 01 01:50:52 one of my colleagues used to always complain that his android phone was unreliable...constantly crashing and since he upgraded to windows phone he was happy....lol i wasn't sure if the whole crashing thing was common? its not common for android to lockup is it? Jul 01 01:51:03 GS4 is a good device but think its a little retarded to say "Apple just plain sucks" Jul 01 01:52:19 well i just mean to say that i will not develop for apple devices Jul 01 01:52:39 they are too draconian in their policies Jul 01 01:52:42 for my taste Jul 01 01:53:30 FishEee: while Android devices have their own share of brain damage, Apple's bootloader is on par with Samsung device drivers Jul 01 01:54:14 good thing Samsung has been decreasing the amount of code written by their own devs :> Jul 01 01:54:37 lol Jul 01 01:55:47 homestarz: fixing misflashed iPhone was hell Jul 01 01:56:12 i bet Jul 01 01:56:43 the only way i would have an iphone is if it was jailbroken Jul 01 01:56:48 Anyway, I like samsung Galaxy series because they tend to have absolutely no blocks, at least in normal countries Jul 01 01:56:55 but i shouldn't have to jailbreak my device to use it so i just wont bother Jul 01 01:57:14 do you have a samsung galaxy? Jul 01 01:57:40 I had a very early Galaxy (Spica, i5700), and I have experience with S2 (i9100) Jul 01 01:57:56 what device do you prefer today? Jul 01 01:58:05 nowadays I have Nexus 4 :) Jul 01 01:58:44 that reminds me that I still didn't do the promised retirement party for Spica Jul 01 01:58:53 ill have to look at that one :) what carrier do u use? Jul 01 01:59:08 homestarz: T-Mobile, business contract Jul 01 01:59:21 but I am not in USA, so my experience might wildly differ :) Jul 01 01:59:44 afaik USA's T-Mobile != rest of the world's Jul 01 02:00:26 lol yeah its typically not a top pick in the usa. i have sprint..most ppl seem to prefer verizon Jul 01 02:00:54 homestarz: verizon seems to be straight way to locked device Jul 01 02:01:10 not a good choice if you want to travel outside USA, too :P Jul 01 02:01:18 true. Jul 01 02:01:51 what i really want is a phone that works on a phone network without a data plan... (i just want to use hte phone wifi) Jul 01 02:02:03 but the providers here will not sell the phones that way Jul 01 02:02:09 homestarz: buy a phone outside contract Jul 01 02:02:16 N4 used to be sold very cheaply Jul 01 02:02:54 if i buy the phone i can use it for wifi, but the carrier will not activate phone service Jul 01 02:03:04 get a nexus 4 Jul 01 02:03:14 its $350 unlocked no contract Jul 01 02:03:21 homestarz: UMTS/GSM networks don't have such weirdness Jul 01 02:03:30 get N4, get *any* SIM Jul 01 02:03:34 at&t is the only gsm in usa, no? Jul 01 02:03:49 and tmobile Jul 01 02:03:54 homestarz: more like Sprint and Verizon are the only CDMA (now that MetroPCS got gobbled by someone) Jul 01 02:04:17 and wasn't sprint taken over? Jul 01 02:04:23 codebutler do you have n4 in usa? Jul 01 02:04:27 yes Jul 01 02:04:29 no sprint is still standalone Jul 01 02:04:40 codebutler what network? Jul 01 02:04:45 tmobile Jul 01 02:05:05 two votes for tmobile n4 ;) Jul 01 02:05:08 i might have to try it Jul 01 02:05:17 buy it from google. Jul 01 02:05:19 homestarz: just remember that my experience is not from USA :) Jul 01 02:05:33 and but the phone from Google directly, then just get a SIM from network Jul 01 02:05:52 I had to import through eBay, because it wasn't (and iirc isn't) sold here Jul 01 02:06:51 ill give tmobile another look. i know their service is spotty in many areas i go, but im generally in a metropolitan area Jul 01 02:07:27 service aside, its the best option for a dev phone Jul 01 02:08:06 why do you say that? Jul 01 02:08:34 stock android, first to get updates... and its $300 Jul 01 02:10:12 i like that Jul 01 02:10:31 theres no way to take a n4 to cdma? Jul 01 02:10:35 like sprint/verizon? Jul 01 02:10:50 nope Jul 01 02:10:56 no CDMA version, afaik Jul 01 02:11:29 do tmobile & at&t share towers? Jul 01 02:12:32 no idea, don't think so Jul 01 02:12:43 US mobile networks are screwed up by EU standards Jul 01 02:13:29 i don't doubt it Jul 01 02:13:47 we can never do things the logical way Jul 01 02:15:26 so with tmobile, can i just signup for phone (no data plan) and use it with n4? Jul 01 02:16:10 homestarz: yes Jul 01 02:16:28 p_l: that has nothing to do with it. those companies own different spectrum and compete. Jul 01 02:16:30 just remember to buy the phone directly from google, and just buy a SIM from T-Mobile Jul 01 02:17:27 codebutler: I know. We do have similar cases here as well. But it's very, very rare for example to have a phone that can't use spectrum of any operator Jul 01 02:27:13 what do you guys pay for service? i'm seeing $70/month if i bring my own device... seems high Jul 01 02:27:22 (no contract) Jul 01 02:27:31 hmm... something around $10/mo Jul 01 02:27:54 up to $20 when I was doing a lot of international calls Jul 01 02:28:15 dang thats the plan i need Jul 01 02:28:41 homestarz: well, not USA :) Jul 01 02:28:56 but yes, it's cheap even here Jul 01 02:28:56 lol Jul 01 02:29:20 it's basically a business flexible plan - I have a base rate I pay every month (a bit under $10) plus extras depending on need Jul 01 02:29:48 for example, before going abroad I switch on extra bits for lower roaming and such Jul 01 02:30:35 thats a good idea Jul 01 02:30:46 right now i have a family plan on sprint Jul 01 02:31:07 so if i go with tmobile ill be carrying two phones and paying two bills lol Jul 01 02:31:20 id rather just have one... but the whole cdma/gsm Jul 01 02:35:05 having an issue with fragments where if I put the app in the background and bring it back up by clicking on it in applications the views that were populated are empty … has anyone seen this before? Jul 01 02:36:30 nownot: onSaveInstanceState Jul 01 02:36:46 bankai_: appreciate it, ill look into it Jul 01 02:41:52 bankai_: it looks like onSaveInstanceState is for the information held within the views, the main issue is all of the visual elements are missing off the screen also, does this help for this case? Jul 01 02:56:54 well $70/month for tmobile seems steep so ill probably stay with sprint with a cdma phone. n4 does look intriguing though Jul 01 02:58:07 i am feeling like android is the right way to go Jul 01 02:58:11 I thought you didn't want data? Jul 01 02:58:19 i dont Jul 01 02:58:25 but i already have a sprint plan Jul 01 02:58:28 (family) Jul 01 02:59:33 http://prepaid-phones.t-mobile.com/prepaid-plans **** ENDING LOGGING AT Mon Jul 01 02:59:58 2013