**** BEGIN LOGGING AT Sat Jun 29 02:59:59 2013 Jun 29 03:05:54 anyone? Jun 29 03:15:20 anyone tried the ouya yet ? Jun 29 03:15:43 I've got one... Jun 29 03:15:58 Google is building an Android Game Console ... http://online.wsj.com/article/SB10001424127887323689204578571992848684764.html Jun 29 03:16:31 Leeds: how do you like it ? and is it the kickstarter or the later released ? Jun 29 03:16:59 I heard the kickstarter had a lot of problems Jun 29 03:17:46 I got it through kickstarter, but AFAIK it's exactly the same as a retail unit Jun 29 03:18:43 basically, they screwed up their shipping - or they used a crappy shipper, who they blame for screwed-up shipping - and for some as-yet-unexplained reason they went into radio silence over it, plus their customer support couldn't keep up Jun 29 03:19:38 the device itself is... a touch slow, a touch out-of-date, and a touch lacking in great games - but they did deliver what they promised, in the end Jun 29 03:20:01 I saw some youtube vids saying the later released versions fixed some hardware and software issues Jun 29 03:20:31 like the touchpad doesn't work at all, and the buttons get stuck Jun 29 03:20:35 they've been pushing software upgrades, but everyone gets them - got a big one as soon as I powered it up, and another one when they did the retail release last week Jun 29 03:21:12 they did tweak the design of the controller very slightly to deal with sticky buttons... the touchpad works about as well as I'd expect, for a tiny touchpad in a game controller which is controlling a pointer on a TV screen Jun 29 03:21:45 cool I'll get one sometime soon Jun 29 03:21:54 its dirt cheap Jun 29 03:22:19 I think it's decent value for $100, but it's not a PS4 competitor Jun 29 03:22:26 and maybe that will inspire me to make some games Jun 29 03:22:37 runs emulators well, you can sideload plenty of stuff, video streaming Jun 29 03:23:15 they said it comes with builder tools to build games, did you check any out ? Jun 29 03:23:45 I haven't, but as far as I know it's pretty much just support for their in-app billing stuff at the moment Jun 29 03:23:50 yeah it would be worth it just for the EMU's alone Jun 29 03:24:06 otherwise it's just like building for any other Android device - obviously without google APIs, play services, etc. Jun 29 03:25:04 they got a lot of unfair stick for things like customs fees - although they can be brutal in some places... reports of people being charged $150 *extra* to get them delivered in Brazil, which has massive import duties on electronics to try to support local manufacturers Jun 29 03:25:08 just finding the ROMS for the emu's might be a problem Jun 29 03:25:36 that would be off-topic for this channel, but no, they're very easy to find :) Jun 29 03:56:16 join #android Jun 29 03:56:18 oops. Jun 29 03:58:47 busted. Jun 29 04:23:04 if i have one activity, then launch a new activity, how do i return to the previous activity without recreating it? Jun 29 04:23:12 seems mine is getting recreated every time i return ot it... Jun 29 04:23:25 i thought it would return to savedinstancestate Jun 29 05:08:57 do I need 32 bit support in 64 bit to get linux android to work? I downloaded the 64 bit but it still has 32 bit elf's Jun 29 05:20:58 What is Linux Android? Jun 29 05:21:20 android sdk on linux Jun 29 05:21:44 of course all android runs on linux on devices Jun 29 05:22:10 I just downloaded the 64bit SDK and running it under Java 8 worked great Jun 29 05:23:53 Ok, this might be cyanogen only, but... where the hell is the package I need to build to get out/host/linux-x86/bin/minigzip ? please :) Jun 29 05:24:02 I can't find the right build/ or system/ place to make Jun 29 05:24:07 hmm I don't have 32 bit support in my kernel.. Jun 29 05:28:32 Anyone heard of Tap Context? (http://www.tapcontext.com/) Jun 29 05:28:58 Just got a mail from them. Jun 29 05:29:37 Good timing too. We're in the end stages of our game and will have to choose an ad system soon. Jun 29 05:30:07 Ok, at least tell me. Why the fuck bionic/ ? why the name? Jun 29 05:30:50 bionic is the ABI that Android uses Jun 29 05:34:07 ok Jun 29 05:36:41 Is the frameworks/base/core/res/res mechanism a cyanogen thing or a AOS general one? Jun 29 05:39:05 bionicles! the lego warriors Jun 29 05:45:10 anyone any idea on this? http://stackoverflow.com/questions/17371679/main-ui-hangs-due-to-fetching-gps-geo-location Jun 29 06:16:25 I understand that the namespace is used to distinguish between apps. So do you take advantage of this when making a trial and paid version of the same app? E.g. com.example.myapp.trial and com.example.myapp.pro ? Jun 29 06:17:43 Or should the paid version overwrite the trial? But can they both exist in the app store? And what if I push an updated trial but not the pro -- will the trial then overwrite the users' pro during update? Jun 29 06:43:21 * Looney just had a eureka moment for app idea, rushing to play store to check Jun 29 06:50:48 anyone any idea on this? http://stackoverflow.com/questions/17371679/main-ui-hangs-due-to-fetching-gps-geo-location Jun 29 06:56:08 omid8bimo: have you tried turning it off and on again :-P Jun 29 06:56:39 Looney: its not windows dude! :D Jun 29 06:57:34 well it could be that your app takes a lot of time in main thread Jun 29 06:58:06 well probably. but why? when it supposed to do things in background, why UI hangs? Jun 29 07:00:43 The Spotify client has lists of playlists (and lists of songs). Each playlist (and song) has its title displayed in the list with a little gray triangle in the lower right corner of the text field. This triangle is in fact a button that, when clicked, expands a menu below the title. Is this a standard component+ Jun 29 07:00:44 ? Jun 29 07:01:28 and you are indoors probably, have you tried moving under the clear sky ? ? Jun 29 07:07:06 Looney: of course, the gps works if i dont use asynctask. but slows down the UI, so proper way is to use it via asynctask which casue the app not to respond Jun 29 07:08:15 asynctask causes app to not respond :-o Jun 29 07:08:37 I once made a POC app for gps and had it in main thread Jun 29 07:08:48 it worked fine for lower API level Jun 29 07:09:16 but for the higher levels I changed the strict mode or thereof Jun 29 07:10:23 so im doing something wrong in my class/activity. did you notice anything in my code? Jun 29 07:10:58 maybe its not working because the gps fetching and handling stuff is in another class than main activity UI Jun 29 07:12:03 omid8bimo, btw, when you get an ANR dialog you get a stack trace in logcat on 4.1+ Jun 29 07:12:59 omid8bimo, ey, why are you running the callback mechanism on UI thread?! Jun 29 07:13:13 Mavrik: didnt notice that. i guess that would be useful. Jun 29 07:13:17 for the location provider? Jun 29 07:13:24 Mavrik: what do you mean? which line? Jun 29 07:13:42 you're passing "Looper.getMainLooper()" when you're requesting location updates Jun 29 07:13:50 which means callback code will run on UI thread Jun 29 07:14:09 AsyncTask won't help you if you request your code to run on UI thread you know :) Jun 29 07:14:17 Mavrik: oh yeah, i had to do that due to the Looper error Jun 29 07:14:42 i thought thats the standard way to add Looper to my location request! Jun 29 07:15:40 yes it is Jun 29 07:15:53 but the MAIN looper is the UI thread looper Jun 29 07:16:20 omid8bimo, where exactly were you getting Looper errors? Jun 29 07:16:30 there's usually no reason for you to need a Looper in such code Jun 29 07:18:21 Mavrik: i got this error if i didnt set the Looper > http://pastebin.com/fszqh7dS Jun 29 07:21:02 ah, I see Jun 29 07:22:56 Mavrik: so? Jun 29 07:24:09 well you can create a handlerthread and grab a looper from there to keep all this stuff from running on UI thread Jun 29 07:24:16 OR you're doing something slow somewhere else. Jun 29 07:38:04 Mavrik: i thought its simpler than that. Jun 29 07:52:11 Mavrik: how can i call/create the looper in my other class so the AsyncTask works in the main acitivty? Jun 29 07:58:09 Does it make the http request synchronously ? Jun 29 07:58:09 https://gist.github.com/bluesm/5890287 Jun 29 08:00:09 bluesm, yes. Jun 29 08:03:08 Mavrik: So I do need stand alone thread to do this. Or I will block my whole app Jun 29 08:03:27 if you don't create another thread it'll block your UI thread and cause ANR messages Jun 29 08:03:42 bluesm, check the doc for AsyncTask and/or Loaders Jun 29 08:04:13 bluesm, http://developer.android.com/training/basics/network-ops/connecting.html Jun 29 08:16:08 hi Jun 29 08:17:46 In FrameLayout, I have an imageView, and textView. I want text view to be at the bottom and in the center, however gravity allows only one of those Jun 29 08:23:08 thank you, 369 users on this chan. Jun 29 08:23:29 I would much like to set gravity to bottom center, could anyone please help me? Jun 29 08:24:15 look Jun 29 08:24:26 communist-cookie: bottom|center it is easy Jun 29 08:42:14 :) Jun 29 08:45:41 hi guys, i can't seem to find android studio's "deploy to device" Jun 29 08:50:17 Has anyone here used something like GMailSender to send an email directly from an application ? Jun 29 08:50:39 or the mail.jar class ? Jun 29 09:01:19 Mavrik: ANR message is "not responding message' Jun 29 09:01:31 Mavrik: What does not respond mean ? Jun 29 09:01:52 ANR = Application Not Responding Jun 29 09:02:20 Napalm: Thanks for expansion of acronym :) Jun 29 09:02:40 bluesm, that means that UI thread did not process input events in certain set amount of time Jun 29 09:02:49 which means that the app actually stuttered Jun 29 09:06:37 Mavrik: So just "process" long time. Don't giving message "I'm done! hey You can now fire the appropriate events when user click this/that" Jun 29 09:06:46 no. Jun 29 09:06:54 you're not supposed to do ANYTHING that takes time on UI thread Jun 29 09:07:00 it makes the UI freeze Jun 29 09:07:18 e.g. networking stuff Jun 29 09:07:58 Mavrik: clarification, "you're not suppose to do ANOTHING that might take an unreasonable amount of time on the UI thread" Jun 29 09:08:24 e.g. raytracing Jun 29 09:08:28 yeah, anything that would force Android to drop frames to achieve 60fps :) Jun 29 09:09:02 Mavrik: Ok. I got that. But default thread is UI thread. So infinite loop in onCreate callback of Activity will eventually send ANR message. Jun 29 09:09:12 file i/o, loading or synchronously committing shared preferences, bitmap decoding Jun 29 09:09:13 yep Jun 29 09:09:26 bitmap decoding is a nice one! Jun 29 09:09:35 any message/runnable passed to the main ui handler that takes >8.5ms to execute will have a 50% chance of causing a frame to drop Jun 29 09:09:40 14mp on a s4 Jun 29 09:09:53 monsti: Em. Bitmap is bitmap there is nothing to decode right ? Jun 29 09:09:55 :P Jun 29 09:10:15 well png -> bitmap is decoding at it's best Jun 29 09:21:13 anyone to help me? only easy questions, cause it is my 2nd day android-programming Jun 29 09:23:00 d.android.com is your best friend then :) Jun 29 09:23:41 Mavrik: I'll visit it. Just one here, ok? Jun 29 09:23:44 Oh wait. Jun 29 09:23:49 I think I solved it. Jun 29 09:24:17 ;) Jun 29 09:24:24 It was easy :D Jun 29 09:24:57 * monsti is on day 0 of win8 mobile coding Jun 29 09:25:46 monsti: then I am on day 1, if you start with 0 :) how it going? Jun 29 09:26:26 monsti: you probably a good skilled man, i am retarded nooby teenage dude who studies biology and chemistry Jun 29 09:28:00 Hello, I want to preform a task when the user quits the app, so I'm using onDestroy() to call my cleanup function. It works but it also calls onDestroy() when the user changes layout from portrait to landscape which is not good for me. is there a way to detect that so I could avoid the cleanup in that case? Jun 29 09:30:43 viran: Activity#onUserLeaveHint() Jun 29 09:32:59 Napalm: thanks Jun 29 09:45:40 Napalm: my activity extends FragmentActivity. i've added protected void onUserLeaveHint () { super.onUserLeaveHint(); Log.i("abc","userleave"); } but it's not being called... any idea what i'm missing? Jun 29 09:49:03 it responds to Home, but not to back or something else Jun 29 09:49:26 add onBackPressed(); then Jun 29 09:51:42 hey guys what would be the best way to make android device work as a for example security panel with keyboard where when you enter a combination of buttons it does something? the thing is that it cannot be closed or interrupted in any other way Jun 29 09:51:44 connection = url.openConnection(); does not look dns (It's is necessary to provide IP adress to the URL constructor ) ? Jun 29 09:52:48 Is it possible to show the overflow item on the action bar even with a hardware menu key? My goal: Hide all items in the menu, but let users know that there are some options. Jun 29 09:53:34 Napalm: thanks Jun 29 09:59:18 bluesm: What exactly are you trying to do. Jun 29 09:59:40 In most cases, http-requests by Kevin Sawicki and OkHttp by Square will make your life much easier. Jun 29 10:00:33 the class which implements HttpURLConnection is responsible for DNS resolution Jun 29 10:00:44 kakazza: Just get string data from server and then parse it :] Jun 29 10:01:02 The Jake himself! Jun 29 10:01:05 * kakazza bows Jun 29 10:01:25 Are you still awake or already awake? Jun 29 10:02:48 still awake Jun 29 10:02:51 3am Jun 29 10:03:12 JakeWharton: You're somewhat friends with Kevin, right? Push him to make use of the Alpha/Beta Release features of the Play Store for the Github app. Sucks being stuck on the Dezember version and I don't want to build myself all the time (lazy!) Jun 29 10:03:36 Pretty please :3 Jun 29 10:03:50 Yeah. He's not working on the Android app at all currently. Jun 29 10:03:57 I can pass it along, but I feel the same pains Jun 29 10:04:11 Mine or his? ;p Jun 29 10:04:24 It seems he added another maintainer? Jun 29 10:05:18 yeah I saw someone else merging stuff Jun 29 10:05:21 maybe another employee Jun 29 10:05:29 haven't talked to him in a few weeks Jun 29 10:06:37 atermenji is a former GSoC student of mine. Not sure if he's working for github now. Jun 29 10:11:52 I'd like to put an image in an application and "map" it like in HTML (so that I can put other views in the areas). How can I achieve it? Jun 29 10:12:44 I thought about relative layout, but I'm a bit confused when I use dp and switch layout (i.e. from a Nexus 7 to another tablet size and resolution) Jun 29 10:13:01 ^-- proportions change and the distances change Jun 29 10:45:00 Can .apk file be unpacked? Jun 29 10:45:05 And changed? Jun 29 10:46:52 thank you Jun 29 10:48:59 uh Jun 29 10:49:05 what's your REAL problem? Jun 29 10:49:19 Eclipse deleted my R.java Jun 29 10:49:21 since I very much doubt anything connected to Android development would involve modifying actual .apk files. Jun 29 10:49:28 and? Jun 29 10:49:33 I had it exported a while ago. Jun 29 10:49:33 R.java is automatically generated anyway Jun 29 10:49:50 How can I regenerate it? Jun 29 10:50:01 clean the project Jun 29 10:50:03 it gets created when you build the project Jun 29 10:50:10 if you don't have .xml errors Jun 29 10:50:10 Yeah it was. Jun 29 10:50:52 Then I made some stuff, 3 activities, it is few, but I am just starting, made 4, it was errorful, I deleted it and R.java got deleted too, I don't know how and why :) Jun 29 10:51:38 sonOfRa: I runned Clean Up but R.java was not taken back to life Jun 29 10:52:08 re build the project maybe ? Jun 29 10:52:20 I have a working .apk file and wanted to unpack it into the project Jun 29 10:52:36 never touch R.java Jun 29 10:52:38 I upacked it using WinRar. But what's next? Jun 29 10:52:40 I didn't. Jun 29 10:52:52 it will be created again when you build your app Jun 29 10:53:17 I was doing stuff with onClicks and I run it and uh-oh, an error? Jun 29 10:53:32 it won't be created if your app build fails... Jun 29 10:53:42 so fix your compile errors Jun 29 10:54:23 It only generates fails due to the lack of it creation. Jun 29 10:54:43 In lines like: setContentView(R.layout.activity_magic); Jun 29 10:55:05 nope Jun 29 10:56:03 unless you're referring to a resource which isn't in your resources... and assuming you've cleaned... clean... always clean Jun 29 10:56:47 Oh wat. Jun 29 10:56:50 It helped Jun 29 10:58:05 My activity.xml contains 'android:onclick="onClickBut"' in a Button Jun 29 10:58:46 and in activity.java I have 'public void onClickBut(View arg0)' though it says that the function does not exist Jun 29 10:59:36 hello Jun 29 10:59:39 oh Jun 29 10:59:46 it is another sign of my retardiness Jun 29 11:00:02 i have a gridlayout that i want to split into 6 columns, but apparently it doesn't do it unless the buttons i have can fill 6 columns. is there any way to force it? Jun 29 11:03:26 http://pastie.org/8094096 should it work? Jun 29 11:14:50 What is the path to the SMS Database file in ICS? Jun 29 11:18:37 hi Jun 29 11:18:38 What LCD density should I use for the most chance at app compatibility in the play store? Jun 29 11:25:11 ShapeShifter499: what do you mean ? Jun 29 11:25:25 you just want to choose one ?? Jun 29 11:26:45 StingRay_, I'm talking about on my device Jun 29 11:27:03 StingRay_, Not developing a app sorry Jun 29 11:27:11 ah, wrong channel then Jun 29 11:27:27 someone in #android-dev pointed me here when I asked Jun 29 11:27:28 xD Jun 29 11:27:40 I mean #android-root Jun 29 11:27:46 *tab fail Jun 29 11:28:09 thats cause they didnt want to answer maybe Jun 29 11:28:17 or thought you were talking about app dev Jun 29 11:28:27 as did I to start with :) Jun 29 11:28:28 probably Jun 29 11:30:33 how can i get a gridlayout to split the screen into 6 columns? they're all fixed width Jun 29 11:31:39 Stavros: http://developer.android.com/reference/android/widget/GridLayout.html Jun 29 11:32:01 StingRay_: i've read that, it's clear as mud Jun 29 11:32:15 what? Jun 29 11:32:44 read again Jun 29 11:32:55 cause I think you must have had beer goggles Jun 29 11:33:05 cause it's very clear Jun 29 11:33:16 I cant think of a way it could be clearer Jun 29 11:33:29 well, in answering your question neways Jun 29 11:34:27 StingRay_: which part do you think answers my question? Jun 29 11:35:18 erm, at least 50+ of the 83 occurances or mention of the word "column" Jun 29 11:35:33 I really dont see how you could miss them all Jun 29 11:36:03 yeah, thanks for being a smartass, but setting columnCount defines the MAXIMUM number of columns, and doesn't say anything about their width Jun 29 11:36:17 maybe you should read the doc you pasted Jun 29 11:36:27 dont have to Jun 29 11:36:38 the width is controled by child Jun 29 11:36:46 like anything with variable content Jun 29 11:36:54 StingRay_: hey dude, i was looking for you :) Jun 29 11:37:18 StingRay_: can you take a look at this? http://stackoverflow.com/questions/17371679/main-ui-hangs-due-to-fetching-gps-geo-location Jun 29 11:38:20 StingRay_: hence my question of how i can split the screen evenly Jun 29 11:38:38 put in views with the same/equal width variant Jun 29 11:38:57 same dp/same weight/ same static like match_parent Jun 29 11:39:01 I would assume Jun 29 11:39:14 as is the case with most views like that Jun 29 11:39:18 listView etc Jun 29 11:39:47 Anyone know what a ITP-R208W is? Jun 29 11:40:14 hell if you put in something that didnt take the space fully, and the grid was match_parent, would still dist space equal I would think Jun 29 11:40:15 :) Jun 29 11:40:36 ah, nvm, had to search by the codename Jun 29 11:40:51 Am I able to see the data in InputStream ? Jun 29 11:41:29 hiya i made my first native function and compiled my c code. but eclipse puts it in libs/armabi/blah.so and when i run it my app cant find it there Jun 29 11:41:40 if i but my lib in libs/blah.so it does work Jun 29 11:41:57 *i put Jun 29 11:42:19 what am i missing Jun 29 11:42:49 StingRay_: hmm, thanks, it does match_parent but it's not taking the space fully... maybe the top view is doing something weird, i'll check, thanks Jun 29 11:46:26 is android stuck with maintianing this crappy style bollox now ? or will it be changed to something…more adaptable later …cause this is just getting me pissed off now Jun 29 11:46:27 :) Jun 29 11:46:39 morning everyone Jun 29 11:47:21 Does anyone know if an activity should instantiate a singleton, or, should it just call its static methods? Jun 29 11:52:14 hello Jun 29 11:52:51 can someone tell me if it is possible to use webview.PostUrl in order to login to this sort of loginsystem http://die-elite.bplaced.net/clansphere/ ? Jun 29 12:05:41 the problem is after using posturl i get redirected to the main page, not logged in. If i was logged in I would be at the userpanel, if logindata was false I would be at the loginscreen again so I am wondering if the CMS maybe blocks the post request Jun 29 12:06:07 but I cannot really imagine it since webbrowsers are not doing much different I think and they obviously work Jun 29 12:08:11 also other loginscripts work fine Jun 29 12:19:37 Flaiker: you aren't storing cookies, probably? Jun 29 12:20:05 no i am not Jun 29 12:20:11 you think that might be the problem? Jun 29 12:21:01 i thought as long as i use the same webview element it should store the cookies automatically by itself Jun 29 12:21:38 now that i think of it the loginsystems my code worked on were session based Jun 29 12:22:39 I am still looking for some suggestions in implementing a singleton pattern in android Jun 29 12:23:34 I would like to know if my activity should get the single instance and store it in a member variable; or, should it call its static methods to process any work? Jun 29 12:24:19 anyone any ideas on this? http://stackoverflow.com/questions/17371679/main-ui-hangs-due-to-fetching-gps-geo-location Jun 29 12:29:17 hi Jun 29 12:30:20 how can i mask a png? Jun 29 12:31:18 i don't find tutorial, i have this png https://www.dropbox.com/s/1lfkpi7sgt28l5h/battery.png and i have show a percentage of png Jun 29 12:44:28 I know how to downsample a large image memory-efficiently via BitmapFactory.Options.inSampleSize -- but how do I go the other way? Specifically, the goal is to crop a very large image, and save back the cropped section. The final cropped section itself very large. Jun 29 12:45:57 A jpeg? Jun 29 12:47:18 I can show a small version of the big image on the screen of course -- but now that i have the desired crop rectangle -- how can I go back to the original big image, and crop the (also pretty large) rectangle so I can save it? Jun 29 12:47:18 Most likely, yeah Jun 29 12:48:04 In principle, you only need to buffer 16 lines of a jpeg at a time. Jun 29 12:48:20 I've done this in C, for very large images on a small processor. Jun 29 12:48:29 (Well, very large for a processor with 200K of RAM) Jun 29 12:48:39 I don't know of a library to do this. Jun 29 12:53:23 is it save to say that a View.onDetachFromWindow is a safe way to implement a destroy/dispose type setup? Jun 29 12:53:38 rats. bad tethering... if someone had an answer for the "how to stream crop a large image", could you please re-state it? Jun 29 12:55:38 In principle, you only need to buffer 16 lines of a jpeg at a time. Jun 29 12:55:38 Mavrik (~mavrik@84.255.203.156) has joined #android-dev Jun 29 12:55:38 I've done this in C, for very large images on a small processor. Jun 29 12:55:38 (Well, very large for a processor with 200K of RAM) Jun 29 12:55:38 I don't know of a library to do this. Jun 29 12:55:38 if some knows how to take a picture and rotate if needed without having to capture the bytes before hand THEN rotate via creating another bitmap+matrix Jun 29 12:59:22 SpeedEvil: yep -- got that idea, thanks. The question I have is -- is there android support to "stream" the values rather than load it all Jun 29 12:59:22 SpeedEvil: *nod* understood -- basically, idea would be to roll my own jpegdecoder and go from there Jun 29 13:00:45 heh... fwiw, you might be able to just set an exif flag on (a jpeg) image; parsing the exif headers isn't too bad Jun 29 13:00:47 Basically. Jun 29 13:01:08 Or find a suitable library. Jun 29 13:01:55 how to know how many thread an android application has running Jun 29 13:03:03 Thread.activeCount() maybe omid8bimo Jun 29 13:03:21 or Thread.getAllStackTraces().keySet(); Jun 29 13:09:31 xastey_: i guess Thread.activeCount() would do it. although i get 3 thread when my app is doing nothing and its just a hello world! Jun 29 13:11:52 what are you trying to find out anyways? Jun 29 13:12:18 the thread count is by app I believe not system wide omid8bimo Jun 29 13:14:13 xastey_: well, im trying to find how many threads my current app have created Jun 29 13:16:39 then that should work.. 1=main looper 2, activity looper . Jun 29 13:16:51 not sure what the third is but that seems somewhat right Jun 29 13:17:15 xastey_: hmm. ok good Jun 29 13:17:33 omid8bimo, why do you expect it to be more.. its just a hello world app.. also why the concern? Jun 29 13:18:51 xastey_: no no, im reading about thread and stuff, and thought before i create a Runnable/thread objects, i check how many thread would be there by default Jun 29 13:19:18 i thought there should be one, but 3 for default app that does nothing was interesting Jun 29 13:19:29 you shouldn't need to do that yourself.. you can use an executor pool to handle that for you Jun 29 13:20:02 xastey_: handle what for me? Jun 29 13:20:32 you can select how many threads you want active at one time (if you submit thru the executor service) Jun 29 13:21:40 I'm having a problem with SurfaceDestroyed() method of SurfaceView. As far as I've read, SurfaceDestroyed is called when something else pops up on the screen, like e.g. a call. And the guideline says for the developer to clean up and make sure everything like music and access to SurfaceView must be stopped before exiting SurfaceDestroyed() method. When testing, in order to make sure it doesn't exit the method before it's ok, I tell the T Jun 29 13:21:41 hread to way 10 seconds. It clearly doesn't. And I can see why my app shouldn't be able to hang everything like that of course. But how then does one make sure it doesn't exit before things are ready? Jun 29 13:22:09 xastey_: aa got it Jun 29 13:23:09 mr_lou, if you debug step your code is it still invoked ? .. how much cleanup do you have to do? Jun 29 13:24:56 xastey, Basically all I'm currently doing is to set nextState = pause, and when wait until currentState = nextState, because that means the end of my game-loop is reached and it's ready. Jun 29 13:26:09 xastey, So I'm really just doing this: while(currentState!=pause) { nextState = pause; sleepSomeTime(); } Jun 29 13:26:15 Currently trying it without the sleep. Jun 29 13:26:40 xastey, I don't think that procedure is pretty. But it's what I've seen other devs do in countless Android examples. Jun 29 13:30:54 wow tech week has some figures on dev earnings Jun 29 13:30:59 for ios and android Jun 29 13:31:17 it's quite a big gap considering android numbers out there Jun 29 13:31:47 5:1 winner, iOS :( Jun 29 13:31:52 The fact that we cannot access a SurfaceView just because it's not visible, also doesn't make any sense to me. Jun 29 13:31:59 based on top grosing 200 apps Jun 29 13:32:09 StingRay_, That's no surprise. Everyone knows iOS is where the money is. Jun 29 13:32:19 yeah I know that Jun 29 13:32:24 just didnt think it was a 5:1 Jun 29 13:32:33 People like shiny things. Jun 29 13:32:52 Yea, that is a lot. Jun 29 13:33:54 But as far as I understand, it's not about iOS being better or having more users. It's a question of mentality. iOS users are generally just more willing to pay for their software. Jun 29 13:34:17 Android users wants free stuff, even if it's stuffed with ads. Jun 29 13:34:50 I despise the ad model really Jun 29 13:35:03 I don't like it either, but we gotta make money some how. Jun 29 13:35:14 You also need to take into account geography, I think. Jun 29 13:35:25 I'm going with Greystripe's fullscreen ad. Jun 29 13:35:26 iOS is fairly popular in the so called 'first world' Jun 29 13:36:56 YuviPanda very true but have you seen the mobile OS dist figures ? Jun 29 13:37:16 granted some parts of asia are like 0% ios Jun 29 13:37:39 but in the "1st" world, there is quite and even split if not more android Jun 29 13:38:06 true! I'm not saying geography is the only factor Jun 29 13:38:20 just that it is something to be ocnsidered when saying 'look at the marketshare vs revenue!' Jun 29 13:43:31 * mr_lou is almost done with his first Android game Jun 29 13:46:50 If I can manage to fix this bug that is. Jun 29 13:47:12 Have to say, coming from JavaME, Android seems messy here and there. Jun 29 13:48:08 And has some annoying limitations / certain ways you have to do things. Jun 29 13:49:51 That can be an advantage compared to TMTOWTDI. Jun 29 13:49:58 But doesn't have to be. Jun 29 13:50:26 What do game devs use these days? Things like Unity to deploy to all platforms or really write native code, maybe using libGDX and the likes? Jun 29 13:54:44 I don't know what TMTOWTDI is. Jun 29 13:55:13 And yes, there sure are a lot of devs that no longer writes a lot of code, but rather use drag'n'drop tools. I'm not one of them, and I don't like being forced to become one. Jun 29 13:55:43 I create the way to get string from the InputStream. Does it make any sense ? Jun 29 13:55:44 https://gist.github.com/bluesm/5891184 Jun 29 13:55:49 (While(true) loop) Jun 29 13:59:34 apache commons has an util Jun 29 14:00:49 There's More Than One Way To Do It, mr_lou Jun 29 14:01:14 mr_lou: I have no experience with stuff like Unity. Is it Drag'N'Drop? Jun 29 14:01:45 Dunno. Jun 29 14:01:56 I prefer to code everything myself. Jun 29 14:02:13 I don't feel comfortable using whatever tool. Jun 29 14:03:30 Anyone know of an lib that can do walkthroughs, or feature overviews easily Jun 29 14:03:47 thinks like to let a user know how to use a certain feature pointing to a button for instance Jun 29 14:03:51 if that makes sense Jun 29 14:04:33 xastey_: But what's wrong with my solution ? Jun 29 14:04:54 mr_lou: But is that code is any good ? Jun 29 14:06:04 bluesm, just read the input stream into a buffer and pass that buffer to new String Jun 29 14:06:12 bluesm, It runs fast on older devices, which is kind of part of the hobby. Fun to see a smooth scroll-picker on an older JavaME device. Jun 29 14:07:10 mr_lou: It's probably not to me. Jun 29 14:07:29 Ah, you're the one who's targetting API 4, right? Jun 29 14:07:49 kakazza, Yea, except the Greystripe ad API forces me up to API 7. Jun 29 14:08:06 bummer Jun 29 14:08:06 Well, lost another 9 customers! Jun 29 14:08:08 But fine Jun 29 14:08:11 lol Jun 29 14:08:19 hehe Jun 29 14:08:25 But we went over this already, I know you see it as a challenge. Jun 29 14:08:30 They can buy the ad-free version then. :-> Jun 29 14:08:40 is it horrible to shoot for 11? :) Jun 29 14:08:52 No Jun 29 14:09:06 the fragment stuff force me there... Jun 29 14:09:09 API 11 has <0.1% according to the Android Dashboard. Jun 29 14:09:16 Fragments are in support-v4 Jun 29 14:09:34 well maybe it was someting else... it was when i was working with the fragments that i hit it tho Jun 29 14:09:46 Either try to support 10+ using support-v4 or 15+ Jun 29 14:09:57 is it possible to alter a update file from the OEM to leave out junkware you dont want or will remvoing them break the update Jun 29 14:09:59 11-14 are <0.1% Jun 29 14:10:04 flipture: https://developer.android.com/about/dashboards/index.html Jun 29 14:10:30 kakazza: ah cool Jun 29 14:10:46 What's usually recommended here is to target API 15+. Unless you care about 2.3.x Jun 29 14:11:02 i see why you say 10 tho Jun 29 14:11:05 If you're already at API 11, might aswell go for 15 and use the available APIs there. Jun 29 14:11:10 true Jun 29 14:11:23 kakazza, Yes, it's a part of the hobby I enjoy. Then there's that other part of the hobby I don't enjoy. ;-) Things like needing to stop my game from accessing SurfaceView just because it's not visible. Not used to such weird things from JavaME. Jun 29 14:11:31 API 10 is only getting less and less. 15+ is 58% of the market. Jun 29 14:12:55 Is there any way of adding a Cancel button to a sharing intent? http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent Jun 29 14:15:06 xastey_: I could create StringBuffer. Is it good idea? Jun 29 14:15:13 this is all new to me so nothign to miss about the old :) Jun 29 14:15:17 But, when this game is done I don't think I'll engage myself in another Android project. I think I'll stick to the game-music department instead. Jun 29 14:15:22 <-- musician Jun 29 14:15:35 i'm getting close to having my app as functional as it needs to be to begin working on making the UI pretty :) Jun 29 14:15:41 just an byte[] buffer is good Jun 29 14:15:43 and thats exciting... Jun 29 14:15:54 read into that and then apply to new String Jun 29 14:16:13 mr_lou: speaking of musician, not sure how related but linux action show the other day they mentioned the need for a good sound board app for linux Jun 29 14:17:36 flipture, Thanks. I think I'll leave it to someone else though. I have www.IndieGameMusic.com as my project, which I'll put some more time into I think. Jun 29 14:17:47 Anyway, gotta go out for a while. See ya. Jun 29 14:17:49 kakazza: looks like my stuff compiles just fine on api 10. i guess i ended up not using whatever it was that wasn't compatible. maybe it was action bar stuff i messed with for a sec and realized i was getting ahead of myself... Jun 29 14:18:25 mr_lou: hah yeah, i might take it on as a side project. would be pretty simple... should be easy and would be cool to have something in the ubuntu app store Jun 29 14:19:20 mr_lou: and neat site... I'm a bit of a musician msyelf although I wouldn't call myself that. Jun 29 14:22:52 I don't get how I'm supposed to work around this page, http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions Jun 29 14:23:22 for every permission I have that is listed under that page, I need a corresponding that that mentions it along with the Not Required property? Jun 29 14:24:00 some of these permissions that I have are core to the functionality of the app, it wouldn't make sense to run it if the hardware that supports them is not available Jun 29 14:24:22 (for distributing to tablets, that is) Jun 29 14:28:38 hey, I am using the UncaughtExceptionHandler. Is it possible to catch the exception and still let the application running? Apparently upon exception it jumps to the handler and never goes back any more... Jun 29 14:29:53 Sicp: You only have to add required=false if you app does not rely on that feature to work properly. For example, maybe bluetooth is only a very, very small feature not everyone uses. Then you wouldn't want people not having BT to not see your app in the appstore. Jun 29 14:30:31 If it's a key component, it is required of course. For example a camera app will of course not make the camera optional. Jun 29 14:31:08 but the APK won't pass if there's still an app permission that's listed under that page Jun 29 14:31:22 all of what's listed in that page needs to have the not required tag in your app Jun 29 14:32:09 Won't pass? Jun 29 14:32:42 that Optimization page, it has little red X marks on it to signify whether your app has supported what they ask of apps that support Tablets.. Jun 29 14:32:55 it'll keep showing up as a red X mark until you provide what's asked Jun 29 14:33:59 let me just try something Jun 29 14:46:48 xastey_: But How I would find the size of InputStream ? Jun 29 14:47:44 Is there any way I can check if my activity is running? I was thinking about putting a watchdog thread that expects messages every X seconds from main activity. The question is how to make the activity send these periodic messages. Any idea? Jun 29 14:49:13 broadcast Jun 29 14:49:20 eventbus Jun 29 14:49:22 binding Jun 29 14:49:32 anotherkeyword Jun 29 14:49:38 intent/register Jun 29 14:49:55 subpub Jun 29 14:50:37 * StingRay_ wants a yatch Jun 29 14:52:35 hi! Jun 29 14:52:37 How to use the Action bar Sherlock in your project Jun 29 14:53:18 How can I make an app save the logcat log on the sd card or such, so I can get it even if the device wasn't connected through adb? Jun 29 14:58:43 i swear some people can't google for SHIT Jun 29 14:58:50 StingRay_, can I make my activity to broadcast events that I can catch in my watchdog thread? Jun 29 14:59:09 where is your……thread ? Jun 29 14:59:36 StingRay_, where? What do you mean Jun 29 15:00:09 complete this sentence….my watchdog thread was started in/from ……….. Jun 29 15:00:48 ... in main activity, on onStart() method Jun 29 15:01:31 makes sense? Jun 29 15:02:40 Apparently me problem is due to a bug from Google. http://code.google.com/p/android/issues/detail?id=38658 Jun 29 15:02:44 Great Jun 29 15:04:04 StingRay_, don't give up on me mate Jun 29 15:04:40 so your starting a thread in an activity ? Jun 29 15:04:47 and you want to what ? Jun 29 15:04:58 keep that thread going all the time ? Jun 29 15:05:04 StingRay_, yes Jun 29 15:05:08 beyond the activity and app ? Jun 29 15:05:16 I mean Jun 29 15:05:34 I believe that the activity may crash, and that thread will keep running, right? Jun 29 15:06:19 once started that thread becomes completely independent from activity, I believe. No? Jun 29 15:06:54 the idea is to make the activity send periodic messages to the thread, and if the activity hangs, that thread would notice that Jun 29 15:07:00 I think your attempting to use a thread as a service Jun 29 15:07:04 or mistaking the two Jun 29 15:07:31 probly, but you will enlighten me I am sure :) Jun 29 15:07:46 what do you suggest? Jun 29 15:07:56 1st thing is read http://developer.android.com/guide/components/services.html Jun 29 15:08:04 see if thats what your actually wanting Jun 29 15:08:05 :) Jun 29 15:10:03 StingRay_, ok, sounds good. Before getting into details about sevices, may I ask you the following. Would a service be able to know if an activity running gets stuck/hanged? Jun 29 15:10:25 you know thats a bug right ? Jun 29 15:10:35 and no, you dont use services to detect bugs Jun 29 15:10:44 you fix them Jun 29 15:10:47 stop them Jun 29 15:10:50 as a developer Jun 29 15:10:52 :) Jun 29 15:11:03 or at least catch them and account for them :) Jun 29 15:12:19 StingRay_, but I am not doing ordinary apps for Market, I am doing apps to test hardware and drivers that may fail in many weird situations, and I would like to know when those situations happen Jun 29 15:12:48 when is kinda irrelevant no ? Jun 29 15:12:49 so StingRay_ that camera error I was having came back.. the grey one Jun 29 15:12:54 why is a little more important Jun 29 15:13:46 xastey_: it's not some wild chineese device your using right ? Jun 29 15:13:52 StingRay_, so, you get my point Jun 29 15:14:03 StingRay_, what do you suggest? Jun 29 15:14:22 gmag: give me a situation where it would crash Jun 29 15:14:36 and the hardware/info/ops that would cause it Jun 29 15:15:05 gmag, is an exception thrown when this happens? Jun 29 15:15:32 no StingRay_ I get it on multiple devices .. I have a gnex and the other is a nexus s Jun 29 15:15:46 xastey_: same on all devices ? Jun 29 15:16:09 actually all my testing devices are nexus Jun 29 15:16:31 xastey_: want me to test on some non-nexi ? Jun 29 15:16:36 yes all the same Jun 29 15:16:43 I do have an s3.. I'll check that out Jun 29 15:16:45 StingRay_, I should not expect an exception, it may not give an exception and still the application gets stuck. StingRay_, actually, knowing when is very important for me, because this will be part of a batch of tests, and if that test hangs I can reboot the device and run other tests Jun 29 15:16:46 but its hard to produce it Jun 29 15:16:58 sometimes it will never happen.. other times it will happen everytime Jun 29 15:17:13 xastey_: your a freak!!! Jun 29 15:17:23 and everything you touch becomes freakish!! Jun 29 15:17:34 o so true :'( Jun 29 15:18:06 I wonder if its because I'm just using a normal color background Jun 29 15:18:14 and not some png Jun 29 15:19:00 xastey, no exception is thrown. Or at least I should not expect that Jun 29 15:19:15 gmag: then what stops it ? Jun 29 15:19:26 bad development ? Jun 29 15:19:28 :) Jun 29 15:19:51 you trying to catch sigfaults? Jun 29 15:20:34 why not add the checking to the driver and not the app loading it Jun 29 15:21:05 StingRay_, you must live in a perfect world, where do you live, I want to be your neighbour :D Jun 29 15:21:24 gmag: well your not giving any info Jun 29 15:21:25 at all Jun 29 15:21:35 so hard to even help/suggest Jun 29 15:23:46 StingRay_, O_O it's a very simple question, and you guys know the answer for sure, you guys are gurus. I just would like to have my app activity sending periodic messages to some listening service or thread or wahtever (you guys know what is better here). And if that servive stops receiving those messages then write a message to logcat. Jun 29 15:25:15 well just use a service Jun 29 15:25:19 with binding Jun 29 15:25:33 and use onBind,unBind or whatever to do it Jun 29 15:25:47 info is on that page i liked Jun 29 15:26:48 i suspect if you knew what a service was, and the types of service and communication methods Jun 29 15:26:54 you would not need to ask that question Jun 29 15:27:01 and that info is there in the docs Jun 29 15:27:36 After my webview.PostUrl request I just get redirected to the main page. Not to the "wrong login info"-page nor to the userpanel page. Not logged in ofc. What am I doing wrong? Jun 29 15:29:06 StingRay_, ok, thanks mate, it is very valuable for me to have a direction. If services would not be the solution at all you guys would not point me on that direction which spares me loads of time reading not so useful things. Jun 29 15:29:20 thats why I ask here Jun 29 15:29:46 well to me, and in that situation for me, as service is probably the correct choice Jun 29 15:29:59 btw, and less of a programmer than most in here! Jun 29 15:30:13 I'm a designer/aritsty/vfxy person Jun 29 15:30:36 StingRay_, well, you are more programmer than I am, at least in android :) Jun 29 15:30:59 I feel the need to keep reminding people of that, cause lots of the time, not sure my advice is the best, just happens that it's the "only" Jun 29 15:31:02 :) Jun 29 15:31:59 I appreciate that, ty Jun 29 15:53:45 Anyone knows what this means? WIN DEATH: Window{2c2346d8 SurfaceView paused=false} Jun 29 15:55:37 I am new to Android Application development, Jun 29 15:55:44 Using Mac OS x Jun 29 15:56:04 which eclipse version will you recommend me to download, Jun 29 15:56:10 to setup Android, Jun 29 15:56:21 the one that comes with adt Jun 29 15:56:34 what is adt? Jun 29 15:57:02 have you read any of the dev/ getting started ? Jun 29 15:57:18 Yes, I am there, Jun 29 15:57:30 then read what adt bundle is Jun 29 15:57:39 in downloads Jun 29 15:57:45 OK Jun 29 16:05:27 hey guys, I'm using a webview to display an tag (it must remain a webview). For some reason, when I set: webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); images that are larger than 900 pixels high, will not load. Any ideas why? Jun 29 16:07:41 "it must remain a webview" funny Jun 29 16:08:08 I knew the first suggestion would be to switch it to something else :P Jun 29 16:08:45 well it's a webpage Jun 29 16:09:14 it's not really a web page, the html is in a variable, I shove it into the webview Jun 29 16:09:37 the source location is irrelevant Jun 29 16:09:38 otherwise I have issues showing .gif images, and I also wanted to be able to play video through it Jun 29 16:09:46 it's still a webpage lol Jun 29 16:10:12 why show .gif images ? Jun 29 16:10:15 any ideas though? this is really weird Jun 29 16:10:23 because I have some animated gifs in my app Jun 29 16:10:39 drawable frame animation Jun 29 16:10:45 then you even have control too Jun 29 16:11:22 I'm downloading those .gifs on the fly, will that still work? Jun 29 16:11:51 people in #phonegap maybe better for answering mobile web stuff Jun 29 16:12:03 oh good idea Jun 29 16:12:04 their whole domain is a webview Jun 29 16:12:08 thanks! Jun 29 16:12:10 I think Jun 29 16:18:34 htc g1 has froyo on it. how do I do screen capture ? back + power is not doing it. Jun 29 16:24:31 whats key combination for screen capture on froyo htc g1 ? Jun 29 16:27:00 <|0xD34D|> ICS was when screenshots were available as part of the OS Jun 29 16:27:22 I have no experience in Java or any kind of android development. I need to know if one can spawn processes in android as they would in linux, can someone please answer this and other simple questions? Jun 29 16:27:31 You can take screenshots from DDMS/Monitor Jun 29 16:28:56 i'm working on the C++ backend but my android dev colleagues are telling me they can't use ffmpeg on android because they can't call a process like in linux, is this true? Jun 29 16:30:07 whats key combination for htc g1 froyo screen capture. back + power is not working. Jun 29 16:30:22 <|0xD34D|> mms_: there isn't one for froyo Jun 29 16:30:29 oh Jun 29 16:30:37 <|0xD34D|> hook up the device via usb and use ddms/monitor if you want to get a screenshot Jun 29 16:31:21 ok Jun 29 16:31:25 <|0xD34D|> xlinkz0: it is possible to run command line stuff from java http://developer.android.com/reference/java/lang/Process.html Jun 29 16:32:39 xlinkz0: I never used ffmpeg myself but there are quite a few projects using it. Jun 29 16:32:53 I think there are some on github when you search for "ffmpeg android' Jun 29 16:33:01 Using a .so Jun 29 16:33:58 so theoretically it should be possible? Jun 29 16:38:09 kakazza: the stuff i find is about wrapping ffmpeg source etc etc, can't ffmpeg be built into an executable and just executed? Jun 29 16:39:16 not without GPL licencing your app Jun 29 16:40:30 and wrapping ffmpec source isn't breaching any licenses? lol Jun 29 17:16:17 I just registered on google play store. I would like to publish an app to the play store. I can see that one can key using "keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048-validity 10000" and then use it to sign my apk. What I don't understand is what do I do with the RSA Public key that google has given me? What am I missing? Jun 29 17:16:47 Your license key for this application - that key - how do I use it in my apk? Jun 29 17:18:44 blib, you mean how to do http://developer.android.com/tools/publishing/app-signing.html this? Jun 29 17:20:19 RazielZ: I've a phonegap application that basically is a wrapper around ant Jun 29 17:20:25 but am not sure where the license key is used in there Jun 29 17:20:45 hmmmm Jun 29 17:20:49 That key is for http://developer.android.com/google/play/licensing/index.html Jun 29 17:20:53 RazielZ: I don't understand what do I do with the RSA public key? Jun 29 17:21:16 Which is why it's right below where it mentions licensing Jun 29 17:22:02 And also why it's a key for licensing, and not signing Jun 29 17:22:03 SimonVT: Does that mean if I don't care about google play licensing of my users, I just sign it with my own priv/pub key and upload it , and it would work? Jun 29 17:22:35 SimonVT: So for signing I just use my own public/private key, right? Jun 29 17:23:15 if its not a paid application, I don't need licensing then, right? Jun 29 17:27:38 SimonVT: when one uses keytool, does one always need a password? Jun 29 17:40:52 Ok i think i'm missing something... ANyone see anything wrong off the bat with this SQLite table creation? Jun 29 17:40:56 android.database.sqlite.SQLiteException: near "values": syntax error (code 1): , while compiling: CREATE TABLE filters(id INTEGER PRIMARY KEY,name TEXT,desc TEXT,query TEXT,values TEXT,hidden INTEGER) Jun 29 17:42:42 http://www.sqlite.org/lang_keywords.html Jun 29 17:42:45 Can't use values Jun 29 17:42:48 yep Jun 29 17:43:20 maybe try `values` Jun 29 17:43:25 ah! Jun 29 17:43:29 lol ok. i can change it Jun 29 17:43:32 didnt' realize it was protected Jun 29 17:43:34 or call it something else Jun 29 17:43:42 yeah thats easiest... Jun 29 17:43:49 was pulling my hair out staring at it :) Jun 29 17:44:20 thanks... Jun 29 17:45:15 Hi Guys, do i need any native code with JNI to use the VPNService class in my project? Jun 29 17:48:35 Although I will probably never attempt to do so, would it be possible to make my own Google Now cards? Jun 29 17:51:26 Hi Guys, I see OpenVPN using Native code, do i need use native code with JNI in order to create a fucntional VPN app using VPNService class? Jun 29 17:52:41 how can i save an sql query in a sql field? :) Jun 29 17:52:53 what do you mean Jun 29 17:53:01 Escape it Jun 29 17:53:18 well i'm creating a "filter" so i would like to temporarily, before i dynamically generate the query, to save theq uery in a field in the db Jun 29 17:53:21 ok Jun 29 17:53:27 i can look up excape cars for sqlite Jun 29 17:53:33 didnt' knwo if there was something funy there Jun 29 17:54:06 https://developer.android.com/reference/android/database/DatabaseUtils.html#sqlEscapeString(java.lang.String) Jun 29 17:55:54 ah, you rock! Jun 29 17:58:26 dang, yeah thast so much easier than what i had in mind :) Jun 29 17:59:02 The other way I don't know, but now you have a starting point Jun 29 17:59:40 yeah thats all i need... sometimes i just don't know where to begin my search. I don't mind doing the research myself but it helps to have a starting point so you dont' waste a ton of time going in the wrong direction :) Jun 29 17:59:49 Could also probably just Base64 encode it or something Jun 29 17:59:57 true Jun 29 18:00:08 i might should just not bother storing the query in the DB and generate it myself... Jun 29 18:00:23 i'm just trying to get the basic functionality working before i make it too complex... Jun 29 18:06:54 SimonVT: Thanks a lot Jun 29 18:07:15 if I move a android app to production, can I move it back to beta/alpha? Jun 29 18:07:34 I doubt it Jun 29 18:22:27 No, unless Google fixed it. Jun 29 18:22:39 I did that exact thing (by mistake) a few weeks ago. Jun 29 18:22:58 Took Google a couple of weeks to fix it (unpublish the prod version, which was not previously possible=. Jun 29 18:23:35 They said they had improved the process, but I'm not going to risk another faulty version in prod to test it. But feel free to see if there are any additional warnings or ways to reverse it if you are. Jun 29 18:23:42 if you DARE I meant. Jun 29 18:24:15 At least previously, any version pushed to prod could only be upgraded by another prod version, not removed. Jun 29 18:24:48 If you want/need to test it, make some test app that you can simply unpublish and forget about. Jun 29 18:24:59 Ah, timepicker was what is keepign me above api 10 Jun 29 18:25:08 with dialogFragment Jun 29 18:55:56 my client: "My designer is designing the screenshots for the app store in photoshop now." Jun 29 18:56:05 * tdignan facepalm Jun 29 18:56:44 of course, I just emailed him and told him it might be preferable to just take a screenshot of the real application. waiting back to see about that one. Jun 29 19:03:35 Tell them to make sure to leave a picture of the cursor in the middle of the screenshot Jun 29 19:09:29 Ologn, :p Jun 29 19:15:39 Hi Jun 29 19:16:49 I'm using a navigation drawer in my app. when the drawer is open it dims the rest of main layout. Jun 29 19:16:57 how can avoid that? Jun 29 19:20:47 Hi. I'm relatively new to programming and I'm not sure the best way to store data presented to the user in my application. Should the data be coded in class or externalized to a csv file or even sqllite db? It should never change. Maybe 100 or so record-like data. Error message : Description : Steps to take to trouble-shoot. Someone suggested a properties file to me. Is there a better way than that? Jun 29 19:24:01 I'm not asking for step-by-step, just a good place to start looking. Appreciate any help Jun 29 19:28:21 Torta: it depends on the data you want to store.. Jun 29 19:33:06 Torta: And size, lookup frequency, access methods etc. Jun 29 19:33:52 and relationships too maybe Jun 29 19:33:58 in the lookups I mean Jun 29 19:39:52 it would be text only and probably accessed after selecting a listview item in a new activity Jun 29 19:40:46 user would select the error from a list and be presented with a new screen with the error, description and steps Jun 29 19:41:00 Torta: One line, or a thousand. It really depends. No need to fill memory with data which is almost never accessed. On the other hand, no need to bash "secondary storage" for data which is used often and frequently. Jun 29 19:42:02 Torta: My advice? Use any method, make it work, and figure out the impact, and change if necessary. For such a small amount of data (guessing), put it in the code "array-style". Jun 29 19:43:47 Okay, I will give it a go. Thanks for the advice. Jun 29 19:44:29 im trying to send a message to a multi user chat room using asmack library and i get this error "couldn't setup local SOCKS5 proxy on port 7777: Address already in use" Jun 29 19:44:32 I'm creating different PendingIntent objects with different Intent objects and launching them with repetition intervals with AlarmManager. All the intents points to the same service but with different stringextra Jun 29 19:45:20 the system seems to be launching only one of them. Although they're different Intent instances, are the same as they are launching the same service the same way? Jun 29 19:45:44 If anybody remember my "fragment still active and visible while activity view with actionbar is gone" problem; In my activity's onCreate method I do a check for null for my fragment. If null, new it and replace a dummy element in layout. FIX ATTEMPT: If not null, check if detached, and if detached, reattach. Haven't seen the bug since. Does that make any sense? Jun 29 19:46:36 It's still a bit premature to conclude I fear; less than 24 hours since I attempted the fix. And the bug appears seldom enough that it's impossible to catch by sitting in front of the device. Jun 29 19:48:11 Before the fix attempt, I just new'ed a new fragment, and attempted to replace the same element (which could potentially fail I guess if the last fragment replace changes the id). Jun 29 19:48:39 Just new'ed IF NECESSARY I meant (if fragment pointer was null). Oh well, this is probably too much information anyway to make any sense. Jun 29 19:48:56 (too much information, too little context Jun 29 19:49:00 ) Jun 29 19:49:56 No, that doesn't really make sense Jun 29 19:50:51 Zuarko, services are basically singletons Jun 29 19:52:01 You'll get additional intents in one of the lifecycle methods Jun 29 19:52:44 SimonVT: Any idea why a fragment sometimes seem to go on alone, without the activity's actionbar and background color? Jun 29 19:53:09 (I'm talking about their respective views if that makes more sense) Jun 29 19:53:26 No, haven't heard of that issue before Jun 29 19:57:23 Actually, it could be this: http://stackoverflow.com/questions/7729877/android-relativelayout-background-drawable-disappears Jun 29 19:57:25 SimonVT, that's the idea, to launch the service (the onstartcommand method) at different intervals, but it only seems to work the last intent/pendingintent I launch Jun 29 19:57:55 If so, my "fix" works because the fragment is never replaced after replacing the dummy element the first time, only reattached (which may or may not mean anything). Jun 29 19:58:44 * kjeldahl has Daft Punk's "Get Lucky" playing in the background... Jun 29 19:59:11 get lucky and coding? Jun 29 19:59:15 a bad combo Jun 29 20:00:03 Dummy element? Jun 29 20:00:47 Just the id of a LinearLayout which gets replaced in a fragment transaction. Jun 29 20:01:08 ft.replace(R.id.container, mMatchListFragment); Jun 29 20:01:26 You're not replacing the linearlayout, you're replacing whatever fragment it's holding Jun 29 20:01:47 SimonVT: Which is none initially. Jun 29 20:02:11 I'm looking into creating a custom view which will arrange its internal views according to it's width. IE it will take a set of strings (usually one or two words), and then arrange them on rows according to their size, so as to take advatage of the available horizontal space. Jun 29 20:02:32 Hey SimonVT, remember how on 2.3.x BitmapFactory.decodeStream tends to blow up and go all null when the inputStream is a http input stream? Jun 29 20:02:47 No ;O Jun 29 20:02:52 I already figured out about onSizeChanged but just curious if anyone else has seen any code like this or what would be the easiest path or class to extend Jun 29 20:03:42 Well it kinda does, and I'm trying the workarounds that I found (one is overriding the skip function of the input stream and one is the read function) and I don't think it's really working... Jun 29 20:03:45 Wat do Jun 29 20:04:01 monsti: Fake it until you make it. ;-) Jun 29 20:04:39 kjeldahl: i have a better idea ;) learn until you understand Jun 29 20:05:56 RazielZ: Look at the source of Square's Picasso, they handle http streams Jun 29 20:06:07 what where how when Jun 29 20:06:29 Step 1: Google "square picasso" Jun 29 20:06:50 Maybe add an android in there if it doesn't find it Jun 29 20:08:07 monsti: This is learning: "Err and err and err again but less and less and less.” - Danish Poet, Piet Hein. Jun 29 20:08:10 I like the way you think Jun 29 20:08:22 >pom.xml Jun 29 20:08:28 oh god no Jun 29 20:08:44 Luckily I probably don't need to build it Jun 29 20:09:39 FYI the stream stuff with inSampleSize hasn't been released. It's on master though. Jun 29 20:10:05 I've never done any android development before (I mostly do web development). I'm wondering if anyone has experience with the APIs for barcode scanning, text to speech, and voice recognition that I could ask a few questions to. Jun 29 20:11:51 Speaking of bitmaps -- any suggestions on doing "stream" encoding/decoding of images? Besides using something like libjpeg-turbo or something. The goal is to do "resize-crop-save" from file A to file B, without needing to load the entire bitmap in memory. Jun 29 20:20:59 hello world Jun 29 20:22:09 ive a problem with my android installation. i cant play videoclips anywhere Jun 29 20:22:35 installation like - your emulator? Jun 29 20:22:47 or like - the source you wrote? Jun 29 20:22:52 not on youtube, the youtube app or on any app Jun 29 20:23:11 i am still trying to parse - hold Jun 29 20:23:35 instalation on my phone, maybe im wrong here, bt i dont know any other place where i can get some help ;) Jun 29 20:23:43 but* Jun 29 20:23:45 yeah #android is better Jun 29 20:23:53 Lokke: You've tried rebooting? And have you installed any other media player and then pressed "open always" or similar? Jun 29 20:24:13 * kjeldahl points to #android as well Jun 29 20:24:26 yes kjeldah, ive this problem since few months ;) Jun 29 20:24:26 why does this give me null pointer exception? myTextView.getText().toString(); Jun 29 20:24:59 ok thanks for your ears ;) Jun 29 20:26:50 myTextView is null or getText() returns null Jun 29 20:26:54 im using openfire server with the asmack library and I keep getting this error: http://pastebin.com/EmZSe9wu Jun 29 20:27:42 ok android is the better chan, but maybe u can tell me where the videocodecs are located Jun 29 20:28:45 or maybe someone can tell me what the job of "mediaserver" is? Jun 29 20:36:27 SimonVT, Picasso's stream looks pretty complex and I can hardly get half of what it does. I assume just copying it into my app wouldn't be the best of ideas... Jun 29 20:37:12 It handles a lot more than just decode a stream Jun 29 20:39:42 For any devs with apps out in the market; what do you use for feedback from users, issue/suggestion tracking and support? Jun 29 20:40:20 I guess I could try to manually buffer the stream in Jun 29 21:01:02 paddingLeft/Right for the button is padding inside, moving the text of the button Xdp to the right/left Jun 29 21:01:10 I want to move the button itself more to the left/right Jun 29 21:01:18 I remember facing this before Jun 29 21:02:24 what layout are you using? Jun 29 21:03:24 linear Jun 29 21:03:57 the buttons are either right next to each other, or with layout_weight equal they span the whole width and still only very little space between them Jun 29 21:04:46 What about margins? Jun 29 21:05:27 Hmmm Jun 29 21:05:43 yea, that did it Jun 29 21:05:44 thank you Jun 29 21:05:50 Sicp, as you said, padding is space inside the element, margin outside of it Jun 29 21:05:58 margins can be useful for spacing elements :) Jun 29 21:06:34 :) Jun 29 21:07:05 You're welcome :D Jun 29 21:08:14 margins have to be respected though Jun 29 21:08:36 by parent and layout conditions Jun 29 21:08:38 :) Jun 29 21:09:30 padding is explicit kinda Jun 29 22:44:08 can anyone tell me if one can easily save those gorgeous layout previews to png in android studio? Jun 29 22:52:51 Is AES in GCM m0de the preferred way these days? Jun 29 22:53:14 it makes sense, that what it does Jun 30 00:35:38 hey guys Jun 30 00:36:17 i am trying my luck and fortune with opengl es2 on android and Matrix.frustumM does not apply the actual clipping Jun 30 00:36:33 i tried to enable the depth test but that did not work either Jun 30 00:36:43 is there anything else that I am missing Jun 30 00:45:09 How do I display a NumberPicker in a DialogFragment? Currently I'm just referencing it directly in the AlertDialog Builder, but that just ouputs the toString() value. Is there a method I should be using? Jun 30 00:48:47 why are lines 34-36 giving me a null pointer? http://pastebin.com/3qNrb0rE Jun 30 00:48:57 cheese1756: not really sure what your doing Jun 30 00:49:01 or what your asking Jun 30 00:49:16 StingRay_: What is the proper way to put a NumberPicker in a DialogFragment? Jun 30 00:49:18 Is that clearer? Jun 30 00:49:21 a dialogFragment is just a fragment, you return what you want in onCreateView Jun 30 00:49:49 true_techie: prob cause inputFullName is erm…. null Jun 30 00:50:06 StingRay_: how is it null? Jun 30 00:50:21 cause whatever makes it not null, didnt Jun 30 00:50:31 and instead returned …. null Jun 30 00:50:46 inputFullName = (EditText) findViewById(R.id.registerName); Jun 30 00:50:52 assigned "null" Jun 30 00:50:56 at a guess :) Jun 30 00:51:41 but R.id.registerName exists Jun 30 00:52:26 fine Jun 30 00:52:34 put this after Jun 30 00:52:36 if(inputFullName==null){Toast.makeText(this,"nully",Toast.LENGTH_LONG).show();} Jun 30 00:52:49 after line 24 Jun 30 00:53:02 if it isn't null, you wont get the nully msg :) Jun 30 00:53:23 but I guess that you will Jun 30 00:53:36 could be wrong Jun 30 00:53:41 who knows Jun 30 00:53:44 :) Jun 30 00:53:45 and if it is null, that means it cant find the view Jun 30 00:53:55 indeed Jun 30 00:54:02 findViewById returned null Jun 30 00:54:16 cause the int point/resource name does not get found Jun 30 01:17:24 =\ still not seeing the problems. all the views are on the right layout **** ENDING LOGGING AT Sun Jun 30 02:59:58 2013