**** BEGIN LOGGING AT Wed Aug 01 02:59:59 2012 Aug 01 03:00:17 daniel110: how is your Java? Aug 01 03:01:20 Leeds: decent, how undestand how everything work and i can read and understand the source code of a program but i never actually built anything other tha simple scripts Aug 01 03:01:31 Maziz isn't 16/9 ratio resolution of 1280 be 1280x720? Aug 01 03:02:35 ah yeah. 16/19 Aug 01 03:02:48 for samsung it should be 16/10 then Aug 01 03:03:16 but still 16/9 and 16/10 should be not long correct Aug 01 03:03:16 tablet? Aug 01 03:03:22 and 4:3 should be long Aug 01 03:03:26 yeah tablet Aug 01 03:03:56 now all the tablets 4:3, 16:9 and 16:10 are using -notlong resources Aug 01 03:04:20 what annoys me, is the television industry has not lonly made fools of people but they have infected computer monitors with their "HD" 16:9 ratio resolution crap. Of course the industry might like this, real WUXGA screens, with more pixels have a higher rate of failure. :\ Aug 01 03:04:22 Leeds: why? Aug 01 03:04:54 daniel110: sorry, off making lemonade :) Aug 01 03:05:21 your point? Aug 01 03:05:29 Maziz 4:3 seems a bit square for tablet Aug 01 03:05:37 yeah it does Aug 01 03:05:37 Maziz it was a tangential rant, sorry :) Aug 01 03:05:47 but there's such a tablet. China made… LOL Aug 01 03:05:52 I'd say your best bet is to try to build something - anything... if you've worked through the basic training on the d.android.com site, you should know how things fit together, how the UI works, etc. - so if you just try to build something, get comfortable with the reference docs, you can learn that way Aug 01 03:06:00 I hate the fact it's getting harder and harder to find a full 1920x1200 resolution monitor. Aug 01 03:06:35 yeah. Aug 01 03:06:52 everything must be widescreen, because that's better for watching movies Aug 01 03:07:32 daniel110: your best bet is start your hands into project. Due to pressure of finishing the project, you will learn more than just taking some tutorial and try to learn something Aug 01 03:07:37 Leeds true, the widescreen is closer to the native shot. Aug 01 03:07:54 and obviously the only thing people use monitors for is video Aug 01 03:07:57 true, but not all tablet are widescreen (non-standard) Aug 01 03:08:29 anyway anybody can confirm the -notlong thing? Aug 01 03:08:59 * Jug6ernaut resists joke Aug 01 03:09:26 2ez Aug 01 03:09:30 yup Aug 01 03:10:58 ? Aug 01 03:12:36 Maziz: you just asked hundreds of people to confirm the "notlong thing"... which could be an invitation, if you're a bloke (which let's face it, you probably are), that you are 'not long' Aug 01 03:14:13 fine, then any body can confirm -notlong identifier in android doesn't work or the usage in correct layout-sw600dp-notlong? Aug 01 03:15:07 the usage is correct - the important question is if the devices in question are reporting themselves as long or not Aug 01 03:15:28 so what you need to do is put a debug log, callback, whatever, which lets you know what the device claims to be, long or not Aug 01 03:15:44 how would you check if the device reports as long or not Aug 01 03:16:04 http://developer.android.com/reference/android/content/res/Configuration.html#SCREENLAYOUT_LONG_NO Aug 01 03:18:12 i see. What exactly long and -notlong checks? What condition where it will return not long what what is the condition for long? In my understanding if the device ratio is >1.5 it should be long. Aug 01 03:19:01 it checks what the device reports Aug 01 03:20:04 hrm, Aug 01 03:20:57 the xml flavor of android UI kinda reminds me of Flex. Aug 01 03:27:02 newz2000: yes, this one Aug 01 03:27:09 ;-) Aug 01 03:28:10 I just got notified that google changed the policy for content in google play, http://play.google.com/about/developer-content-policy.html Aug 01 03:28:20 Now it says: Aug 01 03:28:25 Apps that are created by an automated tool or wizard service must not be submitted to Google Play by the operator of that service on behalf of other persons. Aug 01 03:28:36 I'm trying to make an app that makes it easy for people to make apps. Not spam. Aug 01 03:28:59 Any suggestions for ways to accomplish what I'm trying to do? Aug 01 03:29:15 Easily made apps... Aug 01 03:29:52 well, I mean non-programmers. Aug 01 03:30:09 Obviously I can spit out an apk and let them publish it, but it kind of defeats the purpose of making their life easy. Aug 01 03:30:11 you mean an Android app which generates Android apps? Aug 01 03:30:19 no, it'd be a webapp Aug 01 03:30:41 I think it's very clear - you cannot submit the app to the play store on behalf of your users Aug 01 03:30:55 you can spit out an apk and let them publish is Aug 01 03:30:56 it Aug 01 03:31:18 I could let them register a play dev account and make me a developer for them Aug 01 03:31:32 that would proably be easier, but still more painful than I'd hope for Aug 01 03:31:46 oh what my android device doesn't show SVGs in the browser Aug 01 03:31:56 anything pre-3 apparently >:( Aug 01 03:32:08 I see there are a quite a few niche websites doing something similar, curious if they're just not doing it right or if there is a legit way to get this done. Aug 01 03:33:03 newz2000: I've got to say, I don't think you'll get much sympathy around here - most real developers aren't likely to welcome app generators which allow people to churn out simplistic cookie-cutter apps to flood the market - which let's face it, is what app generators do Aug 01 03:34:06 I can certainly relate, it's not my idea of fun either, but we are here to serve customers. Aug 01 03:34:06 * Jug6ernaut want going to say anything Aug 01 03:34:28 And I'd much rather build cool apps that are not cookie cutter. I'd hope that clients get a taste of mobile and want more. Aug 01 03:34:53 Polluted app store serves no 1 Aug 01 03:35:17 Jug6ernaut: except the polluters, short term Aug 01 03:35:22 Is the web less valuable because there are lots of boutique websites that have no real conent? Aug 01 03:35:42 not trying to start an argument or anything, I do understand the sentiment Aug 01 03:36:09 i guess I don't understand why people would be concerned about users creating simplistic apps. Aug 01 03:36:32 Web is not presented as consolidated Aug 01 03:37:45 Again, not trying to be confrontational, just curious: Do you lose out if Joe the Plumber has a vanity app? Aug 01 03:38:36 we all lose out if the market is perceived as a mess of junk Aug 01 03:38:46 hmm, good point Aug 01 03:39:02 and tbh, I think that is in part what clients are asking for. The app store equiv of comic sans. Aug 01 03:39:30 so I'm glad - nothing personal, you seem a fine chap - that Google has effectively banned your business model Aug 01 03:39:52 nothing to stop you cranking out vanity apps manually Aug 01 03:40:22 I wish we didn't have app stores. This kind of stuff is what the web is for. Aug 01 03:40:34 But now when people want something, instead of goign to the web they go to the app store. Aug 01 03:40:37 then put your cookie-cutter apps on the web Aug 01 03:41:11 Omg no, app store is great Aug 01 03:41:21 You'd still need a central repository for discoverability Aug 01 03:41:30 I find agree with its...sorting some time Aug 01 03:41:33 sure, "JunkMall.com" Aug 01 03:41:39 Well that's what page rank is for, really. Garbage falls to teh bottom of the list. Aug 01 03:41:47 And honestly that's where vanity stuff should be. Aug 01 03:42:00 If you look for Joe the Plumber's Website then it's the first result, otherwise it's the last. Aug 01 03:42:30 but, I'm getting off topic. Aug 01 03:42:35 Sorry for that rant Aug 01 03:44:14 I do believe, actually, that the web is less valuable with the seo generated garbage proliferating in the past 10 years especially. Aug 01 03:46:45 well, SEO is one thing I don't do. I don't consider it in the same class as vanity sites. Aug 01 03:48:05 SimonVT I'm not sure you need a central repository. I long to a return to the 90s where each open source project was on it's own website. I really don't like "sourceforge", and I think much of the personality of the application is now lost in some bizarre application home template crap, essentially institutionalizing a fair number of apps that call sourceforge home. Aug 01 03:48:22 No, certainly not. But dilution of the accessible space is a major problem that can creep up on people and completely ruin something wonderful. Aug 01 03:49:44 InphraRed: By central repository, I really meant search engine Aug 01 03:50:25 themirror: I wonder if it's avoidable. As the play store grows in popularity, having a presence in the store will become a requirement for any self respecting business, like having a blog was a few years ago and having a homepage a few years before that. Aug 01 03:52:50 ya cuz when i need a drain unplugged i'm gonna need to install an app ahead of time for whoever i choose Aug 01 03:53:06 Yeah not sure. It's up the developers what will become of the Play Store. Which is why Android needs to consolidate design suggestions and usability tips imo Aug 01 03:53:22 themirror: isn't that what they've been doing this year? Aug 01 03:53:38 I've spent countless hours digging on stackoverflow for a good android way of doing stuff Aug 01 03:54:01 Did you try the docs? Aug 01 03:54:09 There are a lot of misguided recommendations littered around popular spots on the web Aug 01 03:54:10 The design and patterns used in ICS is pretty well documented Aug 01 03:54:16 docs? docs? why on earth would you read *docs*? Aug 01 03:54:33 Lol I've scoured the docs Aug 01 03:54:44 * doogan gasps Aug 01 03:54:47 know them by heart now for what I need Aug 01 03:55:16 but there have been too many times something wasn't mentioned or clear Aug 01 03:55:45 But yes lately its been better Aug 01 03:56:13 but imo in the past month only with the new d.android site Aug 01 03:56:25 Google's in a tough spot, because they have to crap on their early supports like HTC and Samsung who build UI kits on top of Android. Aug 01 03:56:42 Or allow them to be different, inconsistent Aug 01 03:58:42 Also, I should specify that my above criticisms are targeted mostly to game development Aug 01 03:58:47 Not really Aug 01 03:58:57 There's not a lot of focus on what color your buttons are Aug 01 03:59:50 But whatever my game is almost done, so ill shut my mouth and take my millions :X Aug 01 04:00:55 themirror what kind of game are you developing? Aug 01 04:01:58 Casual, brain train. Not going into details, but its pretty intuitive, addicting, and challenging so I'm excited Aug 01 04:02:22 just have to thwart the pirates. Crash their decompilers Aug 01 04:02:53 some of the java decompilers I have worked with, and compared to source, are pretty damn good. Aug 01 04:03:19 I was mostly interested in if your game was 3D or 2D and sprites or something Aug 01 04:04:40 2D, real basic graphics Aug 01 04:12:46 are there any hooks that allow me to use apt with a traditional Android build? Aug 01 04:13:48 as in debian apt ? Aug 01 04:13:53 no javac apt Aug 01 04:13:53 hehe Aug 01 04:14:09 JakeWharton: to install userspace stuff? while in theory you could retarget it into a directory instead of using chroot, and use non-root stuff... i haven't heard of it being done Aug 01 04:14:13 oh, that's not what you were asking Aug 01 04:14:25 annotation processing tool with javac Aug 01 04:15:03 I know if a .jar includes apt stuff it'll get executed but I want it as part of an Android library project Aug 01 04:28:38 "Ads must not simulate or impersonate system notifications or warnings." Aug 01 04:28:44 \o/ Aug 01 04:39:08 do people really make any money off ads? Aug 01 04:40:02 hi Aug 01 04:40:21 tler Aug 01 04:42:05 g00s: as if those unscrupulous ad makers will adhere to that Aug 01 04:43:35 do you have to pay to have your app distributed from google play? Aug 01 04:44:20 a one-time $25 sign-up fee, last I checked Aug 01 04:44:35 that doesn't seem bad, especially not as much as ADN Aug 01 04:44:51 why are there so many ads in 'free' apps then? Aug 01 04:47:00 carpet bombing works Aug 01 04:51:54 <_genuser_> any body use the sqlite dbs? Aug 01 04:52:38 InphraRed people use admob. For an example, my good buddy made the DDR clone Beats and says he takes home $600 a month pocket money from it. Aug 01 04:53:27 <_genuser_> you guys sell apps vs. use admob? Aug 01 04:57:05 _genuser_ I don't use sqlite atm, but plenty do. You should just ask your question Aug 01 05:26:19 is there a way to make the edittext widget go to the next line when the user input reaches the max width of the device? Aug 01 05:39:42 Greetings! Aug 01 05:40:47 I'm trying to build an old Android project of mine in Eclipse Juno with ADT 20, and I can't seem to get another project's code to be included in the APK -- just keep getting NoClassDefFoundErrors Aug 01 05:41:27 I don't know whether referencing projects directly works, so I tried exporting the referenced project into a JAR and copying it into the libs folder -- no dice. Aug 01 05:42:18 I've also added it to the build path in various manners (both external JAR and as just JAR), cleaned, and re-built the project. Aug 01 05:42:44 Still, it builds but I get NoClassDefFound at the point in the program that references the JAR. Aug 01 05:43:18 My Mac keeps ANRing Aug 01 05:43:20 I'm really at a loss as to what I should try next. Aug 01 05:43:23 or FCing Aug 01 05:43:27 take your pick Aug 01 05:47:13 i am using openFilInput to save a file, but where does it save it Aug 01 05:48:55 daniel110 default is internal memory with MODE_PRIVATE Aug 01 05:50:00 themirror: how can i find the file? Aug 01 05:50:08 and saving the file should be done with openFileOutput. Use an OutputStreamWriter with the stream Aug 01 05:51:02 sorry yes openFileOuput Aug 01 05:51:41 Save with openFileOutput("myFn", 0) and read with openFileInput("myFn") Aug 01 05:52:27 themirror: But is there a way i can find the file like i would find a file on my sd card? Aug 01 05:52:31 any paid-app-publisher from germany here? Aug 01 05:53:58 daniel110 I don't understand. What scenario do you have in which you don't know what file you're looking for from the code? Aug 01 05:54:45 I am writing a notepad and i want the file to be saved as a regular text file so i can move it around Aug 01 05:56:39 Okay, so pick a name for it, save to internal and on menu item click, use onclick listener or whatever to pass its filename to your file reading function Aug 01 05:57:18 When its moved, update its stored path Aug 01 05:59:08 <_genuser_> ok, if you guys use sqlite, do you deploy a created db with the app? Or do you implement public class DictionaryOpenHelper extends SQLiteOpenHelper { Aug 01 05:59:35 <_genuser_> and then create the db on first run using the public class DictionaryOpenHelper extends SQLiteOpenHelper { Aug 01 06:00:00 <_genuser_> sorry bad paste - SQLiteOpenHelper . Aug 01 06:01:14 daniel110, I would do Pattern.compile on a special character as delimiter in a master file that stores filename and path per line. Hope this helps Aug 01 06:14:06 does anyone know how i can restrict my game to only work on a minimum android device resolition or higher? i am aware of "android:requiresSmallestWidthDp" for the manifest, but it requires honeycomb target and its not actually used as a filter on google play Aug 01 06:15:15 Don't do that - let everyone enjoy your game. :P Aug 01 06:15:29 nexsoftware: !!!! Aug 01 06:15:51 id love to, but at the moment i would much rather restrict it and not get a bunch of negative reviews while i am fixing it Aug 01 06:15:59 pshh Aug 01 06:16:19 does anyone have a very large stich? Aug 01 06:16:20 stick* Aug 01 06:20:26 unhappyrobot: not sure, but a Google search turned this up http://stackoverflow.com/questions/7536836/cannot-get-android-market-to-exclude-small-screen-phones-for-this-app Aug 01 06:21:38 themirror: thanks, i have restricted small screens..but its not enough unfortunately Aug 01 06:22:27 sorry not sure haven't looked into it much Aug 01 06:22:40 :D Aug 01 06:24:41 You could ignore the warning on using the compatible-screens element: http://developer.android.com/guide/topics/manifest/compatible-screens-element.html Aug 01 06:25:58 Alright... I've tried creating a brand new project from scratch and I still can't get it to reference code in a JAR :( Aug 01 06:26:13 Beginning to think there's a bug with Eclipse or ADT or something... Aug 01 06:26:34 have you added the jar to the project? Aug 01 06:27:08 it's really not that hard Aug 01 06:27:20 <_genuser_> man, every complex control requires extending another thing. Just curious how people make it all happen on the same activity. Aug 01 06:27:31 <_genuser_> for example, custom listview requires extending listactivity. Aug 01 06:27:39 no Aug 01 06:27:41 it doesn't Aug 01 06:27:55 <_genuser_> can you keep it in a separate class, and then use it in the layout for main activity. Aug 01 06:28:09 ListView is independent of Activity Aug 01 06:28:15 ListActivity is just a convenience class Aug 01 06:28:16 nothing more Aug 01 06:28:26 <_genuser_> romainguy: new dev to android. from the tutorials on custom listview, it seemed that way. Aug 01 06:29:11 Snuffel: Yes I've added it it... I realize this isn't hard, that's why I'm boggled as to why it's not working! Aug 01 06:29:25 <_genuser_> romainguy: so it is possible to implement a custom listview without extending listactivity? Aug 01 06:29:30 yes it is Aug 01 06:29:55 I've tried just copying it into the libs folder, then adding it as JAR, then adding it as external JAR, with cleans/builds in between each of those Aug 01 06:29:58 <_genuser_> ok, so far my googling is showing results where every sample is extending listActivity. Aug 01 06:30:12 <_genuser_> will keep googling then. Unless you have any specific pointers to use for googling. Aug 01 06:30:16 like I said, ListActivity is just a convenient way to use ListView Aug 01 06:31:02 _genuser_: you know you don't need a custom ListView to put custom layouts in the list... right? Aug 01 06:31:14 all it does (to summarize) is do a findViewById() for you Aug 01 06:31:23 <_genuser_> Leeds: no, I didn't. second day coding android. Aug 01 06:31:50 <_genuser_> ok, basic need is viewpager that has a arraylistfragment implemented with fragmentpager. Aug 01 06:31:54 _genuser_: is that what you want to do? Aug 01 06:33:16 <_genuser_> Leeds: correct, need to put custom item layout in a ListView. Aug 01 06:33:49 the adapter controls the views which populate the ListView Aug 01 06:34:52 <_genuser_> JakeWharton: so in the layout where ListView is defined, I need to specify a custom view for the items? Aug 01 06:35:03 no, it would be a separate layout file Aug 01 06:35:36 <_genuser_> oh ok. so just create a new layout file and define the layout. Aug 01 06:35:42 <_genuser_> then how do I enforce the ListView to use that? Aug 01 06:35:54 through the adapter Aug 01 06:37:12 <_genuser_> where is does the following? setListAdapter(new ArrayAdapter(getActivity(), Aug 01 06:37:15 <_genuser_> android.R.layout.simple_list_item_1, Cheeses.sCheeseStrings)); Aug 01 06:37:42 wat Aug 01 06:37:45 Please read the docs. :) Aug 01 06:38:07 <_genuser_> themirror: glad to read the doc. Just need to know which one to read. if anyone helps, I appreciate it. :) Aug 01 06:38:40 <_genuser_> JakeWharton: basically do I specify the custom layout in the call to setListAdapter then? Aug 01 06:40:44 <_genuser_> I think I see it. the setListAdapter need the adapter you mentioned earlier. This adapter will control the layout. Aug 01 06:52:24 cool, we have a taranchula hanging out on the outside of the building Aug 01 06:52:53 i'm going to go and ask him what his fav mobile platform is Aug 01 06:53:23 take a picture pls Aug 01 06:53:42 k, hold on. i'll need my tripod cause my camera really sucks Aug 01 06:53:58 where do you live XD Aug 01 06:54:03 a tarantula on the side of the house Aug 01 06:54:09 g00s: maybe you can find a book on taking pictures of spiders :p Aug 01 06:54:19 lol Aug 01 06:54:28 :P Aug 01 06:54:35 all i have now is a powershot g9 Aug 01 06:54:38 aweful Aug 01 06:55:08 I just got an Olympus OM-D E-M5 Aug 01 06:55:12 it's a nice camera Aug 01 07:01:07 Guys, How do I create only one instance of activity in my activity stack Aug 01 07:01:19 A->B->C->D->B Aug 01 07:01:27 currently I have 2 B created Aug 01 07:01:37 I want D to go to the old B Aug 01 07:01:48 hmmm Aug 01 07:02:33 Is singleInstance is what I should use? Aug 01 07:03:09 but doc says it creates a new task for this activity, I don't know if I want that Aug 01 07:03:33 romainguy: that little sony rx100 or whatever it is called looks like a nice alternative to the s100 Aug 01 07:03:42 but my s95 is dead Aug 01 07:04:03 http://sh4ka.fr/android/galaxys3/from_0perm_to_INSTALL_PACKAGES_on_galaxy_S3.html Aug 01 07:04:08 good times. Aug 01 07:06:02 ok, here is my mobile analyst Mr Spider http://i.imgur.com/GbrMQ.jpg Aug 01 07:06:34 maybe he will pose later Aug 01 07:07:40 g00s: yep looks awesome Aug 01 07:07:54 :) Aug 01 07:08:09 *shudders* i wouldnt leave the house lo Aug 01 07:09:37 gross Aug 01 07:09:46 i wish my irc client didnt show images inline.. Aug 01 07:11:55 what Aug 01 07:12:03 what client is that Aug 01 07:12:44 textual for mac Aug 01 07:14:38 interesting, i didn't know the google play store used jMonkeyEngine Aug 01 07:17:13 unhappyrobot: they don't… yet Aug 01 07:17:33 at least i'm fairly certain of that Aug 01 07:18:05 its in the settings page listed under licenses Aug 01 07:18:12 maybe we'll have to complete an intelligence game before being allowed to review apps Aug 01 07:18:20 unhappyrobot: yeah i know. i saw it there as well Aug 01 07:18:43 that would be great Aug 01 07:37:22 I am building ICU Library for Android .. I downloaded the source from https://github.com/android/platform_external_icu4c then i ran ndk-built but i ended up getting some issues like missing files and all Aug 01 07:37:59 I am facing this same problem https://groups.google.com/forum/?fromgroups#!topic/android-ndk/-tZIm-Ywugw Aug 01 07:55:13 well, i'mm glad i didn't learn wp7 dev; seems like wp8 won't use silverlight/xna Aug 01 07:55:28 basically WinRT w/o js support Aug 01 07:55:34 yeah Aug 01 07:56:17 Reading a lot of documentation I found people recommend having a helper per table in sqlite. Is this really a good pattern to follow? Aug 01 07:56:36 helper per table ? Aug 01 07:56:55 you can have 1 helper for the whole app if you want Aug 01 07:57:07 Thats what I do Aug 01 07:57:34 if you deal with background threads or asynctasks you will need another helper Aug 01 07:57:41 only the thread that opened the helper can write to it Aug 01 07:57:47 But I read from several sources putting things in a separate helper per table is a recommendation Aug 01 07:57:49 sqllite is singly threaded anyways Aug 01 07:57:53 But no reason is given. Aug 01 07:57:56 i fail to see how/why Aug 01 07:58:38 Well that clears that up then Aug 01 07:58:40 Thanks. Aug 01 07:58:57 glad i could share what is thought to be bad advice Aug 01 07:59:40 g00s: I thought they said that WP7 apps would still run? Aug 01 08:00:53 i do not think they will Aug 01 08:00:54 hi guys, i am having some issues with my remoteviews, when i use the addview it seems like stuff i have added on the last run somehow gets cached? is that possible? using removeallviews somwhat helps the problem, but its a bit inconsistend Aug 01 08:05:06 Leeds: you had a raspberry pi right ? Aug 01 08:05:17 yup, got it last week Aug 01 08:05:20 http://techpp.com/2012/08/01/raspberry-pi-to-get-android-4-0/ Aug 01 08:05:32 yeah, saw that :) Aug 01 08:05:39 btw, are you making any cool gadgets with it ? Aug 01 08:06:09 sweet Aug 01 08:06:38 doesn't make wating 10 more weaks easier though Aug 01 08:06:42 waiting even Aug 01 08:06:45 nah, all I've done with it so far is run raspbmc Aug 01 08:07:03 which by itself is quite impressive, given the size/price of the thing Aug 01 08:07:07 has anyone expermineted with hyphenation and WebViews? Because it's nor working for me ;) Aug 01 08:22:13 romainguy: which camera did you say you just got? (scrollback is gone) Aug 01 08:22:21 Olympus OM-D E-M5 Aug 01 08:24:03 i wonder if the canon eos-m will be good; i'm not really up for carrying full dslr stuff on my treks Aug 01 08:24:35 for trail running, the s95 was great; for last & light a 4/3rds or something would be ideal Aug 01 08:25:19 cool, weather sealed body on the om-d Aug 01 08:25:36 meh Aug 01 08:25:42 I couldn't care less about that Aug 01 08:25:54 my last camera died from water :( Aug 01 08:26:18 but it seems like it would be a really tough job to seal a camera well Aug 01 08:26:39 i was looking for a umbrella hat Aug 01 08:28:07 romainguy: what is your favorite feature(s) of that camera ? Aug 01 08:28:51 g00s: lag-free EVF, great lenses, amazing image stabilization Aug 01 08:29:10 and I can mount my Leica lenses on it Aug 01 08:29:13 Heard iPhone3GS is really inexpensive in India courtesy Aircel Aug 01 08:30:24 c_nick: i guess more people in india will have an iPhone than electricity then Aug 01 08:30:37 g00s: haha Aug 01 08:31:11 sounds like they fixed their electrical issue Aug 01 08:31:21 well, long term not, but for the meanwhile Aug 01 08:51:54 halo, I have a question about android application life cycle. I would like to like if it is possible to know the whole application is on the background? I want to make a task running throughout my application, until the app is destroyed or the user press home button. I know there is onDestroy callback in an activity. But how do I know the user pressed home button? I have to stop the resources to avoid the battery going to die. Aug 01 08:53:27 Don't mess with lifecycle Aug 01 08:53:35 if u read docs Aug 01 08:53:46 release resources in onpause Aug 01 08:53:59 And save whatever there too Aug 01 08:54:19 you can't and shouldn't know about home button presses Aug 01 08:56:41 And don't try to kill app on home press either. The system will destroy if necessary. Just make your app run as light as possible after onpause is called and bulk back up in onResume if needed, feigning an application restart for the user if desired Aug 01 08:57:19 themirror: but, let say, I have a socket-io, which start when the activity start. According to what you say, I should stop it in onPause. Rright? But, within the application, I may launch other activity and then onPause is triggered for the first activity. Then, at this time, the socket is stop. When I go back to the first application, I need to restart the socket again which I don't want. Aug 01 08:58:37 Look into services and background threads Aug 01 08:58:52 the docs are your friend. Time for bed sorry Aug 01 08:58:57 edwinkcw: I usually make a binding service. When no bindings are left, I let the service destroy itself. I use that for location-based apps mainly, to make sure the GPS icon disappears when the app is no longer visible. Aug 01 08:59:23 I bind the service in every activity (through a base activity that I extend, usually). Aug 01 08:59:48 HDroid: oh, I am not familiar with the binding service. Aug 01 09:04:05 hi guys, i am having some issues with my remoteviews, when i use the addview it seems like stuff i have added on the last run somehow gets cached? is that possible? using removeallviews somwhat helps the problem, but its a bit inconsistend Aug 01 09:04:27 hey, is there a known bug / problem with android.media.ToneGenerator in 4.1.1? I'm implementing an app that uses the SIP stack and want to play a ringback sound in onRingBack in my SipAudioCall.Listener. It worked with ICS but doesn't play a sound now. Aug 01 09:04:39 HDroid: I sort of do the opposite with GPS, i want GPS to continue always, since the lock-on time can be prohibitively long Aug 01 09:07:15 asperon, are you adding the view in code? If there's a pointer to the object that remains, its state will be whatever you set it to last. If you want it to be garbage collected, make sure there are no references to it Aug 01 09:08:00 i am trying to find out which asynctask keeps my process alive after pressing back from the last activity Aug 01 09:08:03 themirror: yes, i am adding it in code, i have a "base" xml file and then i add some items at some times and other items at other times, but these items tend to stay on the next execution Aug 01 09:08:16 i looked at the threads in ddms but it just says "asynctask" Aug 01 09:08:17 themirror: ie, on the next onUpdate Aug 01 09:08:35 i'll try starting it with debug Aug 01 09:08:45 Jak_o_Shadows: even when your app is inactive? What's the rating for your app? :P Aug 01 09:09:30 Gambit-: are you still researching security / android ? Aug 01 09:09:45 HDroid: Unreleased to the paly store. It's ok, I also have nearly continous network use and wakelock as well. Aug 01 09:09:57 It's a damn good thing it needs these features. Aug 01 09:10:05 Jak_o_Shadows: hah ok, I imagine your app is somewhat of an edge case. Aug 01 09:10:13 asperon: Well that's your problem. You are binding the view to a local or field and so whatever state changes you make will stick with the object. Put in a reset method to change those properties to default or set that variable to null somewhere Aug 01 09:10:39 themirror: it looks something like this: http://paste2.org/p/2090165 Aug 01 09:10:43 HDroid: Slightly, but i have aims to make it a bit more general. The world needs another android GPS race tracking program. Aug 01 09:10:58 sorry about the crap intendention Aug 01 09:12:09 and the problem is that if mMenuMode is true, that gets rendered, and then the next time, when its false, those parts of the removeview are still there? Aug 01 09:13:45 hello, sorry by the offtopic but.. Aug 01 09:13:49 I need help from a chinese guy, someone over here please¿? Aug 01 09:13:55 Jak_o_Shadows: ah ok, different case... I imagine users of my restaurant finder wouldn't appreciate it keeping a wakelock when they're not in the mood to search restaurants Aug 01 09:14:07 romainguy: you have any clue as to what i am doing wrong? Aug 01 09:14:55 asperon, other than my suggestions, check to make sure the transparency conditional is true to reset the imageview resource Aug 01 09:15:20 Put a log.d in there Aug 01 09:15:37 themirror: its not always true, thats a setting, ie, if i toggle it the background shows/hides Aug 01 09:16:02 that works, the problem is that somehow the button stuff remains in the removeview after the mMenuMode is false Aug 01 09:16:09 And actually, I was wrong when I just said that haha pretty tired Aug 01 09:16:33 i am toying with the idea of creating an empty xml layout, load that and do an updatewidget at the top of the code, but that just feels wrong Aug 01 09:19:31 HDroid: sorry, I still don't know how to do it. Should I unbind the service on onPause? Aug 01 09:22:03 edwinkcw: yeah, there's 2 strategies: 1) bind in onStart, unbind in onStop or 2) bind in onResume, unbind in onPause, whichever fits your use case best. Aug 01 09:23:29 HDroid: but when should I kill the service? or the service should stop himself? how does the service know the application is not active? Aug 01 09:28:19 http://developer.android.com/guide/components/bound-services.html Aug 01 09:28:41 It doesn't know if the application is active, it does know whether it is visible, though. Aug 01 09:49:09 hi Aug 01 09:49:28 Excuse me, is it possible to have the same activity twice in the activity stack ? Aug 01 09:49:47 i am having a deja vu Aug 01 10:04:22 hi all. I'm having an issue that my gps location app stops working if I user other apps at the same time that also use the gps. Aug 01 10:05:08 did anyone else had this issue? Aug 01 10:10:40 amro_: thats strange. are you registering for gps events in the activity or do you have a service? Aug 01 10:10:59 i have a service thats listening for gps Aug 01 10:11:17 Ge0rG: thats reprogramming itself every 30seconds to do that Aug 01 10:11:49 amro_: why not just register once for periodic locations? Aug 01 10:12:12 * Ge0rG only ever had problems with gps on HTC/cm7, due to a broken libgps Aug 01 10:13:04 Ge0rg: because i also need to store the points in the local db, send them when i have internet, and i want to do all of this in background Aug 01 10:13:32 and i want it to do this every 30s after i get the point Aug 01 10:13:57 but can another app make mine crash because it is using the gps? Aug 01 10:14:10 morning, all Aug 01 10:14:13 <[maTa]> i am creating homescreen widget with postgres driver. i am connection to database and making select. everythings fine. i connect normaly but when i send select commant i got log.i VFY: unable to find class referenced in signature (Ljava/awt/Point;) and select query does not return anything. hmm anyone Aug 01 10:14:15 using requestLocationUpdates Aug 01 10:14:18 amro_: no. but the OS can kill your service due to low memory Aug 01 10:14:51 I've been trawling through Samsung's GT-I9100 source dumps to try and work out which UpdateN.zip source tree they've used to build the stock firmware I'm running Aug 01 10:14:54 Hello. I am getting weird 'Leaked Window' when using showDialog(int). What am I doing wrong? Aug 01 10:14:57 is there a list somewhere? Aug 01 10:15:02 Ge0rG: it's sticky, so thats not it, also i have a samsung s2, so memory is not a problem Aug 01 10:15:02 halo all, I read lots of resources, but I still don Aug 01 10:15:10 I still don't understand service Aug 01 10:15:13 [maTa]: seems like the code you're using is expecting java.awt.Point, which is part of the regular Java distribution but not Android. Aug 01 10:17:23 <[maTa]> HDroid: hmm yup i got some dead code at pgpoint... how to avoid that? i other apps i am using same code i everythin fine Aug 01 10:18:24 In other apps you're using the exact same code and it's not throwing that exception? That sounds strange. Aug 01 10:19:51 HDroid: if I use Bound service, I suppose you are saying I should bind the service when Activity A onResume, and unbind on the onPause, and the same for the Activity B. However, I think there should be some times that the service has no binding, and I got killed. Aug 01 10:19:52 <[maTa]> HDroid: yup same Aug 01 10:20:10 [maTa]: Android apps??? Aug 01 10:20:46 edwinkcw: well, the binding happens before the unbinding, not sure if that's a glitch that happens to suit my case or designed behavior. Aug 01 10:22:24 HDroid: but when I start the activity B from A, I think onPause is called first before the onResume of B Aug 01 10:22:43 <[maTa]> HDroid: yes Aug 01 10:22:59 [maTa]: dunno t hen... _something_ must be different. Aug 01 10:23:30 edwinkcw: not so with onStart / onStop I believe. Aug 01 10:24:11 HDroid: not sure, still thinking how to have a soketio connection throughout the application. Aug 01 10:25:14 There is no other concept of "active application" that I am aware of. Aug 01 10:26:37 but the point is that I don't know when to kill the connection. Aug 01 10:27:18 The dumb solution would be to reconnect the connection for every activity, but it may take lots of overhead. Aug 01 10:28:33 The only alternative I see is to manually maintain an activity visibility counter in a service, but the binding system worked for me. Aug 01 10:29:28 sounds not a good way. Aug 01 10:29:48 HDroid: btw, do you have any resource that is good for learning service? Aug 01 10:30:04 Nothing apart from what's up at developer.android.com Aug 01 10:30:11 It Aug 01 10:30:17 's not the nicest of patterns Aug 01 10:30:27 But that's a platform limitation we have to deal with. Aug 01 10:30:58 HDroid: ok, let me check this Aug 01 10:32:48 HDroid: a dumb question again. When should I use service. It sounds to me that I can use thread instead. Aug 01 10:33:06 Is android.permission.WRITE_CALENDAR for Google Calendar? Aug 01 10:33:14 edwinkcw: How are you going to manage it? Aug 01 10:33:29 hi guys, the api 14+ automatic margin for widgets, does it work? :) Aug 01 10:33:34 HDroid: you mean the thread? Aug 01 10:33:38 Yes Aug 01 10:33:46 where would the physical platform location be for "Google Inc.:Google APIs:15" ?? Aug 01 10:33:50 A service is just a nice wrapper for that sort of thing. Aug 01 10:33:59 Somewhere in America! Aug 01 10:34:09 have a global access of the instance of thread. Then I can stop or start it. Aug 01 10:34:24 like the normal "/android/platforms" it' not under the same location Aug 01 10:34:28 i have set the android:targetSdkVersion to 16, and use the feature described on http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout t refer dimension using api level Aug 01 10:34:31 edwinkcw: so you just reinvented a service :D Aug 01 10:34:52 but when the margin is set to 0 the widget is larger then the news and weather widget Aug 01 10:35:01 if i force it to be 8dp it looks good Aug 01 10:35:04 HDroid: but the google doc told me that service is not a thread Aug 01 10:36:15 edwinkcw: yes, so either you manage the thread in the service, or you extend your thread to act like a service... in which case you're pretty much reinventing it. Aug 01 10:37:04 HDroid: I think I should write something to have a concrete concept. It is still quite vague for me. Aug 01 10:37:25 edwinkcw: yes, it helps if you just play with it for a while. Aug 01 10:37:52 HDroid: thanks a lot Aug 01 10:38:52 I hope you can figure it out... it's a tricky thing on Android. Aug 01 10:39:43 I don't really get why there's no simple "app running / visible to user" pattern anywhere, it's a legitimate concern, even if the app itself has to remain modular because of resource constraints. Aug 01 10:41:44 HDroid: yep, in fact, I can be irresponsible developer, just whole the connection and wont't kill it until the application is destroyed. Aug 01 10:42:49 HDroid: even when I download some apps in Play Store, I still don't know what it is doing. It may have a long run thread which consume my phone batttery. Aug 01 10:42:56 lookin for new android work if anyone knows any :) Aug 01 10:43:31 edwinkcw: yep, and it does happen. More than once have I encountered apps that drain the battery. Aug 01 10:43:31 gaz`: i have one for you Aug 01 10:43:40 i need an icu library for android Aug 01 10:43:44 Though the comments apply some pressure. Aug 01 10:43:51 icu? Aug 01 10:44:54 HDroid: http://stackoverflow.com/questions/7783127/keep-socket-connection-between-activities-on-android Aug 01 10:45:12 HDroid: sounds I should do it in onDestory as well.. Aug 01 10:45:41 HDroid: but the onDestroy may not be called if the users won Aug 01 10:45:50 't use the phone probably Aug 01 10:45:52 Is anyone else having problems logging into the developer console on Google Play? Aug 01 10:46:44 edwinkcw: onDestroy doesn't relate to visibility, an activity can stay active for days, sometimes. Aug 01 10:47:26 HDroid: yep, the user should press back to quit the app. But I think some users will just simply press home Aug 01 10:47:27 onPause happens right before an activity becomes invisible, onStop right after it. onDestroy can get called much later. Aug 01 10:47:39 Indeed and onPause / onStop will catch that. Aug 01 10:48:09 HDroid: yep, but onPause/onStop will be trigger when I launch a new activity. Aug 01 10:48:20 HDroid: hard to deal with ... Aug 01 10:50:33 edwinkcw: well, in my experience, the service is always bound before it gets killed if I sue onStart and onStop... so try if that works for you. Aug 01 10:51:11 If you use the service for lifecycle management only and keep a singleton object for the connection somewhere, you can add a mechanism to handle a delay for a few seconds Aug 01 10:51:40 I.e. poll your object, if it hasn't received a ping from the service in say, 2-3 seconds, disconnect and clean up.. Aug 01 10:52:08 If there's a longer delay between one activity's onstop and another one's onstart you have other problems :) Aug 01 10:53:07 Hi guys, i want to move a Video view into another parent without the lagg overhead of .remove and readding the player Aug 01 10:53:25 (i think it has to re-load the media this way) Aug 01 10:57:21 Stormsys: are you pausing the video before you move the player? Aug 01 11:02:30 onCreateContextMenu(menu, view, menuinfo). Can I somehow inside of that method figure you which item in the ListView that triggered (by a long click) the contextmenu to be created? thanks Aug 01 11:02:43 /s/you/out Aug 01 11:02:50 :s* Aug 01 11:02:56 lol :D Aug 01 11:03:25 johanhar: not sure if this is correct, but I think it is Aug 01 11:03:48 Found something here: http://stackoverflow.com/questions/2321332/detecting-which-selected-item-in-a-listview-spawned-the-contextmenu-android Aug 01 11:03:53 feeeling super unproductive ;-/ Aug 01 11:03:54 nvm that won't work....anybody else have ideas? Aug 01 11:04:12 gaz': I have been that way for the last few days Aug 01 11:04:19 sucks eh Aug 01 11:04:24 i just finished 9 months with a company Aug 01 11:04:29 working 10 hrs+ a day Aug 01 11:04:34 yeah, and then the harder you try to get motivated the less you become Aug 01 11:04:37 and they still havent paid me properly Aug 01 11:04:39 yeh! Aug 01 11:04:57 gaz': where is the company located? Aug 01 11:04:58 not felt this burned out in ages, just takign time away from coding prob soft me out but i got to earn Aug 01 11:05:50 I hate when companies don't pay out right. I have a lawyer for when that happens :) Aug 01 11:07:42 uk Aug 01 11:11:54 Hello, Can someone tell me where I can find good resources concerning opengl initialisation in android? Aug 01 11:11:59 happens way too ooften to me dlan Aug 01 11:12:01 dlaroche Aug 01 11:12:13 just the choice between food for 2 days or a gas for a month Aug 01 11:12:18 went for the gas.... Aug 01 11:12:27 I'm just wondering if my boss forgot to pay me or not Aug 01 11:12:35 lol Aug 01 11:12:39 they will if they can get away with it Aug 01 11:12:45 even at big companies Aug 01 11:12:47 that sucks to hear bro. Companies like that should be exposed and humiliated :) Aug 01 11:12:48 you can get gas for a month for the same amount as food for 2 days? Aug 01 11:12:58 yeh Aug 01 11:13:02 either you eat a lot or gas is cheap Aug 01 11:13:19 In the states we are paying around $3.50 a gallon Aug 01 11:13:21 Snuffel: when he says "food" he means "beer and hookers" Aug 01 11:13:44 Leeds: good morning to you too leeds :) Aug 01 11:14:24 gas for a month costs me 22.2 usd Aug 01 11:14:30 good evening from Asia Aug 01 11:14:33 holy fuck Aug 01 11:14:38 i did get paid! Aug 01 11:14:52 never ever what ive asdked for it comes in £1000 installments Aug 01 11:14:55 which REALLY sucks Aug 01 11:14:58 but atleast i have money Aug 01 11:15:05 I didn't :( Aug 01 11:15:08 every day i check and nothing Aug 01 11:15:18 then today,,, something, peanuts but peanuts i can eat Aug 01 11:15:45 basically itll go to the landlord Aug 01 11:15:47 and friends Aug 01 11:15:49 :-/ Aug 01 11:15:51 *and* my Nexus 7 didn't arrive yet Aug 01 11:16:19 my watch hasnt arrived yet Aug 01 11:16:25 the more i read the more i hate it tho Aug 01 11:16:39 do u know it needs constant bluetooth pairing to EVEN be a watch Aug 01 11:16:55 so if u leave ur phone on the bar, go to the toilet, and need to know the time u cant, Aug 01 11:17:12 paid my rent today, paid my mortgage yesterday... don't have incoming rent or salary Aug 01 11:17:20 :-{ Aug 01 11:17:34 im 2 moinths late on rent, and will never have a mortgage Aug 01 11:18:20 I'm genuinely not worried that my boss is trying to avoid paying - but up to now he's always paid by cheque, last month he took our back details so he could pay by standing order, just worried that he forgot to do it Aug 01 11:18:31 he's decent, but sometimes forgetful Aug 01 11:18:36 lucky Aug 01 11:18:47 i joined an agency but even they dont have work Aug 01 11:18:48 I have had to remind him about payday once or twice before :) Aug 01 11:18:52 after all these exams and shit Aug 01 11:19:37 he once came into town after I reminded him, realised he forgot to bring his cheque book, so went to the bank and took out a wad of cash to pay us Aug 01 11:19:53 the way it should be! Aug 01 11:20:08 also really need to send in my tax return - needs to be in this week... I hate paperwork Aug 01 11:20:35 me too, we should have personal assistants for anything annoying Aug 01 11:20:45 actually should be in by tomorrow, but I'm sure there'll be no problem if they get it on Friday or Monday Aug 01 11:21:51 I would just be happy to work for another company, and get away from my own work Aug 01 11:22:48 Instead of me making all the decisions, it would be nice to just follow some order for a while. Aug 01 11:23:48 It's not possible to take a view and ask for a child with a given id or tag? I can't seem to find any method like that in the API/documentation. For real? Aug 01 11:23:55 I get to get paid (sooner or later) while working without any direction, management - or indeed any contact whatsoever with my boss in the past 6 weeks or so Aug 01 11:23:57 i just wish i knew where towork to get the good android work, someone gets it cause the middlemen reach me at i got 100th of what they get Aug 01 11:24:09 johanhar: sure it is Aug 01 11:25:15 Leeds, do you have a keyword or something I can google for such a solution? Thanks Aug 01 11:25:32 I had one company contact me on an iOS port, and I way under bided the job for $1,200. Had to eventually turn them down, but would like to get paid by others for the work I do :) Aug 01 11:25:44 johanhar: findViewById is a method on View... Aug 01 11:25:50 hmm Aug 01 11:26:01 johanhar: view.findViewById(R.id.?) Aug 01 11:26:07 How did I miss that? Aug 01 11:26:08 :D Aug 01 11:26:09 THanks... Aug 01 11:26:11 view being the parent view Aug 01 11:26:18 yeah but doesnt it go up the chain though Aug 01 11:26:23 i had some bug a while back related to that Aug 01 11:26:24 and forgot Aug 01 11:26:27 what it was Aug 01 11:26:28 not sure Aug 01 11:26:56 when you create your own custom dialog, you can reference the children of the dialog this way Aug 01 11:27:40 it's definitely meant to only search the children Aug 01 11:27:42 "the children of the dialog" part2!! Aug 01 11:27:45 like what I was doing was progrmatically creating a list of identical views Aug 01 11:27:56 oh no i think i was breaking with inflate Aug 01 11:27:58 thats it Aug 01 11:28:11 I get this message from the console (in red colors) trying to start my app in the emulator: ActivityManager: Warning: Activity not started, its current task has been brought to the front Aug 01 11:28:28 sinc eits already running Aug 01 11:28:34 How do I make it stop? Aug 01 11:28:41 yeah ignore everything i said Aug 01 11:28:47 i got another sony smart watch yesterday, cant connect 2 to the same phone at once Aug 01 11:28:48 :( Aug 01 11:28:50 i just add space to the code and recompile Aug 01 11:28:52 johanhar: download taks killer Aug 01 11:28:58 ^task Aug 01 11:29:04 mikedg is it really shit? Aug 01 11:29:05 but this is a emulator, hmm Aug 01 11:29:17 or Project, Clean Aug 01 11:29:20 then run Aug 01 11:29:32 johanhar or add a space to code and recompile Aug 01 11:29:40 quicker than clean Aug 01 11:29:48 but not better ;) Aug 01 11:29:55 i think tis better Aug 01 11:29:56 :) Aug 01 11:30:11 with the way Eclipse behaves I'm always cleaning Aug 01 11:30:36 Clean my projects more then I do my room :) Aug 01 11:30:45 gaz`: thanks Aug 01 11:30:55 ant clean && ant debug && adb install -r bin/foobar.apk Aug 01 11:31:19 damn it now my chocolate biscuits have fused together Aug 01 11:31:26 cam this dayget any worse :) Aug 01 11:31:53 gaz': just take a knife to them, I'm sure the will still taste the same Aug 01 11:32:13 im eating 4 fused! Aug 01 11:32:18 taste sensation Aug 01 11:32:22 dlaroche, i am pausing it. should i not? Aug 01 11:32:55 Stormsys: I was originally going to tell you to pause it then move it, but you may try it without pausing it and see how the system handles it then Aug 01 11:37:44 I am using the ViewPager from the support library Aug 01 11:37:51 and sometimes the tab bar just dissapears Aug 01 11:38:41 peopleperhour has gone rubbish Aug 01 11:41:24 oh my mistake Aug 01 11:43:13 cant you just do ant clean debug install Aug 01 11:43:38 I dunno - ant is a black box to me Aug 01 11:44:42 * Ge0rG just realized that project butter is a huge vintage thing. folks used to sync stuff to vertical retrace back in the early 90ies already... Aug 01 11:44:54 hey mikedg Aug 01 11:44:56 hows it going? Aug 01 11:46:08 it's going as well as it can be while trying to debug a dalvik or jdk bug Aug 01 11:46:28 oooo Aug 01 11:46:32 lucky you Aug 01 11:47:14 have you rooted your Nexus 7 yet? If you have open a shell as root and type: pm create-user test Aug 01 11:47:20 mikedg: ^ Aug 01 11:47:38 now when you long press on power button and you get the reboot options, you also have an option to switch to another user Aug 01 11:47:40 :D Aug 01 11:47:47 called test Aug 01 11:47:49 of all things lol Aug 01 11:48:25 I guess multiple users is coming in KLP Aug 01 11:48:33 indeed Aug 01 11:48:36 it works fine actually Aug 01 11:48:48 per-app data per user Aug 01 11:49:40 thats awesome Aug 01 11:49:48 indeed Aug 01 11:49:51 it gets better Aug 01 11:49:52 :D Aug 01 11:49:57 im not rooting my devices anymore Aug 01 11:50:12 Quick question, I have a fragment that needs to be 'invalidated', but it's in a different activity Aug 01 11:50:14 which reminds me, i intended to write a post for g+ this morning bitching about root access Aug 01 11:50:26 should i just force the activity to re-fresh itself each time it's entered? Aug 01 11:50:27 the way it's implemented now is fucking irresponsible Aug 01 11:50:39 mikedg: how so? Aug 01 11:50:52 afaik it relies on exploits Aug 01 11:51:00 nope, mine didnt Aug 01 11:51:00 no granualarity in what apps giving acces can do Aug 01 11:51:06 ah Aug 01 11:51:12 well it is "unsupported" Aug 01 11:51:17 erm Aug 01 11:51:20 no its not Aug 01 11:51:26 its supported as such Aug 01 11:51:36 unlocking your bootloader is allowed Aug 01 11:51:47 mikedg: yes you can, thats what SuperSU is all about Aug 01 11:51:53 I'm not saying it's dissalowed. Aug 01 11:51:54 it asks the user to allow access to root Aug 01 11:52:00 ohhh Aug 01 11:52:08 ignore me danharibo Aug 01 11:52:10 ;) Aug 01 11:52:37 is supersu actually included with any custom roms? Aug 01 11:52:48 Cyanogen came with it iirc Aug 01 11:53:15 oh hrm Aug 01 11:53:19 nevermind then Aug 01 11:53:29 hmm what would u guys charge for app that takes 10 weeks to dev Aug 01 11:53:44 Depends on the purpose of the App tbh Aug 01 11:53:45 too much Aug 01 11:53:46 lol Aug 01 11:53:46 10 full weeks? Aug 01 11:53:51 yes Aug 01 11:54:00 $10k Aug 01 11:54:02 say 50 hrs a week Aug 01 11:54:20 60k usd Aug 01 11:54:28 lol Aug 01 11:54:33 60k! Aug 01 11:54:34 nice Aug 01 11:55:32 you get paid over 100us an hr? Aug 01 11:55:59 ifi asked for 60k the laughter would be heard across the globe :) Aug 01 11:56:03 10 to 20k maybe yeh Aug 01 11:56:40 20$ an hour? Aug 01 11:56:46 I am looking for the best way to remove PendingIntents from LocationManager.addProximityAlert, removeUpdates wants a PendingIntent, is it better to rebuild the object or should I save a reference to it? Aug 01 11:56:50 50 us what i try for Aug 01 11:57:08 hmm emu is saying "Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY" when i try to install my apk Aug 01 11:57:23 gaz`: using google maps on an emu without it? Aug 01 11:57:30 ah yes Aug 01 11:57:31 must be Aug 01 11:57:32 and they are going to go for the lowest bid and get a shit app Aug 01 11:57:43 have you guys seen the shit adobe and nbc put together for the olympics Aug 01 11:57:45 what a piece of crap Aug 01 11:57:53 nope Aug 01 11:57:55 BBC coverage is excelent Aug 01 11:58:20 it makes my galaxy nexus perform worse than a G1 while scrolling Aug 01 11:58:27 haha Aug 01 11:58:34 nice Aug 01 11:58:38 it has no indicators for how long lists or galleries are or when you hit the start or finish Aug 01 11:58:52 opening a video opens it in portrait waits a few seconds then goes to landscape Aug 01 11:58:53 thats half the issue, people are scrambling to make andorid apps Aug 01 11:59:04 oh we need android version of this app Aug 01 11:59:05 it just flat out doesnt work according to many reviews on many devices Aug 01 11:59:16 only now are execs moving to android phones themselves so they still dont know Aug 01 11:59:37 i bet some middle man made 200k US, and the coder got 3000 us Aug 01 12:00:33 In eclipse, when creating new files, is it possible to put android-files on top instead of having to go to "others" all the time? Aug 01 12:01:07 i finally saw the dark knight rises Aug 01 12:01:12 so we can talk about spoilers in here Aug 01 12:01:14 Ge0rG so how do i get my app to run, use another emu with google maps lib installed? Aug 01 12:01:24 nvm found it Aug 01 12:01:32 johanhar: you mean like right click > new > android project? so that "android project" is moved to the top of the list Aug 01 12:01:40 no mikedg Aug 01 12:01:41 you cant Aug 01 12:01:42 gaz`: create a new emu with the Google APIs Aug 01 12:01:45 i havent seen it yet Aug 01 12:01:47 has anyone used GCM yet? Aug 01 12:02:14 johanhar: where did you find it? im curious Aug 01 12:02:14 I'm a bit confused, I'm not sure why i need to register a broadcast receiver AND a intent service? Aug 01 12:02:33 soooo im wondering how the middlemen get the work before the freelancers.. altho i guess its offtopic:) Aug 01 12:02:49 damn you Napalm Aug 01 12:03:00 gaz`: they talk better Aug 01 12:03:46 they must be linked with agency or something with lists of apps coming in Aug 01 12:04:39 i am batman Aug 01 12:04:45 of android development Aug 01 12:04:47 cool bro Aug 01 12:05:07 haha Aug 01 12:07:36 hey guys, got a gps related question Aug 01 12:08:01 lets say, i need a gps position that needs to be very accurate Aug 01 12:08:02 anyone not used gcm yet? Aug 01 12:08:25 Napalm: windows -> customize perspective Aug 01 12:08:45 does it make any sense to collect like 10 points in quick succession and calculate the average from those points? Aug 01 12:09:03 or wont this improve accuracy in any way? Aug 01 12:10:55 johanhar: thanks Aug 01 12:10:56 dont know how android gps code works, maybe thats what android already does by default Aug 01 12:12:17 oh hi Aug 01 12:14:58 is there a way of changing buffering settings for VideoView component? i need latency as low as possible for my streamed video Aug 01 12:16:33 streamed from PTZ camera, that can be controlled remotely (rotated and zoomed) from my android device, so the low latency is crucial requirement Aug 01 12:21:01 I have an Activity with fragments. The content of those fragments is generated from SOAP response (think about it like getting article list from RSS). When the orientation of device changes, the SOAP request is send again. How to prevent this (so, to send just one request on app start)? Aug 01 12:21:51 Pitel_laptop: Cache the result Aug 01 12:23:35 lifecycle question: if i start another activity and call finish() on the current one, is there a guarantee about the order in which onPause on the current one and onCreate on the new one is called? Aug 01 12:24:11 wtf is android.process.acore Aug 01 12:24:22 danharibo: i tried to save it to property of the object, but it seems it is destroyed on orientation change and new one is crated. Aug 01 12:25:24 Pitel_laptop: Don't cache it in memory, Cache in your applications' cache directory Aug 01 12:26:13 what's invoked when a user switches back to the application from another app? is there anything better than onResume? Aug 01 12:26:57 funktronic: onRestart might be what you're looking for Aug 01 12:27:36 danharibo: thanks, will look at that right after i get some gummy bears Aug 01 12:28:39 tapas: why do you nee dot care about that Aug 01 12:29:37 JakeWharton: were you aware of this http://stackoverflow.com/questions/11631999/actionbarsherlock-collapsible-item-crash-on-orientation-change-ics ? I'm getting this crash on Nexus S with Android 4.1 Aug 01 12:29:53 is that the jake wharton ? Aug 01 12:30:07 nope Aug 01 12:30:09 the jake wharton? Aug 01 12:30:12 is that a dance? Aug 01 12:30:14 yes Aug 01 12:30:16 just some other fool with the same name as THE jake wharton Aug 01 12:30:16 cool Aug 01 12:30:29 this JakeWharton is black Aug 01 12:30:33 the real one is a cracker Aug 01 12:30:35 like the hokey pokey Aug 01 12:31:01 honkey pokey Aug 01 12:31:17 how unconventional Aug 01 12:32:24 Hello all.. anyone know, how to mark as read sms? I already use from stackoverflow amd other forum.. but still not work.. i want to make simple popup sms Aug 01 12:32:58 the emulator is really slow for me (on a MacBook Air 11'' mid 201).. is this normal? Aug 01 12:33:04 jwbuurlage: yes Aug 01 12:33:15 jwbuurlage: emulators are useless, use a device Aug 01 12:33:19 Pitel_laptop: you can resolve your problem by using a Loader Aug 01 12:33:20 How do I know if my activity is alive or not? I mean, I create a new one, but would like the old one to stay alive, can I control this? Aug 01 12:33:43 meh, was hoping I could do without an actual device for a while :p Aug 01 12:34:04 then learn to be a very patient man Aug 01 12:34:05 Pitel_laptop: loaders keep a reference to their data and redeliver the result without re-requesting it on config change Aug 01 12:34:12 the emulator is fine for mid-range phone emulation Aug 01 12:34:20 Napalm: https://developer.android.com/reference/android/support/v4/app/Fragment.html#setRetainInstance(boolean) I guess I want this more. Aug 01 12:34:39 Pitel_laptop: no you dont want that Aug 01 12:34:44 lol Aug 01 12:34:47 it suffers when you put a big screen on it - and you can't really expect it to emulator a quad-core GHz+ device Aug 01 12:35:15 thats your choice, but if your just trying to keep the result of your SOAP so it doesnt re-request it, i would recommend a loader Aug 01 12:35:29 I'm used to the iPhone-sim, but could've expected this much from an emulator.. Aug 01 12:36:06 Napalm: well, I don't want exactly to keep the result, I want to keep the created UI. Aug 01 12:36:20 jwbuurlage: won't be anywhere as fast Aug 01 12:36:41 Pitel_laptop: then change your manifest so that the activity accepts the configChange for orientation Aug 01 12:36:48 because it's emulating an entire device from the CPU up, not simulating Aug 01 12:36:50 jwbuurlage, newer emulators (4.x stuff) are actually using x86 images internally and thus CPU emulation isn't needed, which is done with all older images Aug 01 12:36:56 yeah, what Leeds says Aug 01 12:37:12 the x86 emulator i tried was also super slow Aug 01 12:37:25 :/ Aug 01 12:37:37 hmm okay, thanks guys Aug 01 12:40:35 my emus messing up and process crashing Aug 01 12:40:40 android.process.acore Aug 01 12:40:45 hello, anyone using sqlite3 on android JB ? Aug 01 12:40:45 still is well annoying i just want to demo my app Aug 01 12:41:32 Napalm: hmm, this migth be exactly what I want :) Aug 01 12:41:57 where can i find information about the resolution of the (virtual) rotation vector sensor for different phones? Aug 01 12:42:12 whats the weather like there Leeds- madness here Aug 01 12:42:32 typhoon out there, i got shit falling off shelves Aug 01 12:43:09 hot and smoggy here - this storm isn't coming anywhere near us Aug 01 12:43:23 ah Aug 01 12:43:29 had the biggest storm since 1999 hit us last week though... Aug 01 12:43:37 nice Aug 01 12:44:05 the first time they've used the level 10 alert, the maximum, since 1999 Aug 01 12:44:18 my app failed :( Aug 01 12:44:21 is it possible to make an ExpandableListView behave like a regular ListView (merge all children into the same group and remove the group element)? Aug 01 12:52:22 if i've submitted a patch to gerrit for review is there any sort of magic rain dance i need to do to get someone to actually look at it or do i just wait? Aug 01 12:52:54 <_zoom_> hi, how to read string from resources while am in Asyn class? Aug 01 12:54:33 Pass a context, read it like you always do Aug 01 12:55:21 and watch out, as the context might vanish if the user does something unexpectedly Aug 01 12:55:34 gaz`: do you have official government warnings, official shutdowns, etc? Aug 01 12:55:37 Unless you pass application context Aug 01 13:02:36 the context won't vanish, it will just be "leaked" until the async task completes Aug 01 13:21:00 anyone got a phone with a gyrosensor? Aug 01 13:21:43 apparently... Aug 01 13:22:06 lies Aug 01 13:22:43 are the values stable, i.e. they don't change when the phone is simply laying on the table? Aug 01 13:23:51 problem with the rotation sensor based on the magnetic sensor is that the values fluctuate too much Aug 01 13:25:19 no idea Aug 01 13:25:34 run me up a test app and I'll let you know the results :) Aug 01 13:25:53 e.g. on my phone on a scale from -1 to 1 there's an error of about 0.03 Aug 01 13:26:03 thanks :) Aug 01 13:27:06 I'm having an issue with the android-maven-plugin and IDEA - a project isn't building properly in IDEA due to R.layout.main Aug 01 13:27:25 (namely: R.layout.main isn't resolving, ever.) Aug 01 13:27:54 (Well... in IDEA.) Aug 01 13:28:34 Anyone familiar with vold? Aug 01 13:29:10 hello all Aug 01 13:29:17 hello you Aug 01 13:29:37 holas Aug 01 13:29:40 i'm having trouble w/ having multiple fragments, every time i try to add a tab to my tabhost using my tab manager it always invokes the same class Aug 01 13:29:54 it's very strange Aug 01 13:30:26 i have a log in my newinstance function, and no matter which tab i'm calling it instantiates the same kind of fragment Aug 01 13:33:31 now, it passes the correct bundle Aug 01 13:33:38 but to the wrong class Aug 01 13:33:45 what could be happening? Aug 01 13:34:26 nvm, i found the problem :D Aug 01 13:38:06 Hmm.. Any way to "script" in java? Aug 01 13:38:17 Can I try codesnippets in eclipse? Aug 01 13:38:19 Any plugin? Aug 01 13:38:27 That require no main method and compiling Aug 01 13:40:12 johanhar - I don't think that this is possible. I always have a "Test" project for testing code snippets Aug 01 13:40:48 if this code snippets don't use android related commands it is pretty easy Aug 01 13:42:09 Pinas: ok Aug 01 13:42:36 javascript? Aug 01 13:42:37 :D Aug 01 13:43:00 johanhar: for android, no. Aug 01 13:43:06 johanhar: for regular java, yes, absolutely Aug 01 13:43:23 but for android you'd actually need a dvm running with the appropriate frameworks Aug 01 13:44:08 where can i find a list of permissions and their protectionlevel Aug 01 13:49:30 Is it possible to keep a pressed state on buttons? Almost like checkboxes. Click the button and it goes into pressed state, press again and release it? Aug 01 13:49:50 Why not use a checkbox? Aug 01 13:50:04 or a toggle Aug 01 13:50:15 i like the toggles android 4 has Aug 01 13:50:33 http://developer.android.com/guide/topics/ui/controls/togglebutton.html Aug 01 13:50:40 there are also Toggleable Buttons. Aug 01 13:51:07 I am workin with API 2.1 Aug 01 13:51:12 I mean android 2.1 Aug 01 13:51:39 ToggleButton is API Level 1 Aug 01 13:51:41 togglebutton from api level 1, nice, thanks Aug 01 13:52:34 [09:49:51] Why not use a checkbox? Aug 01 13:56:23 Leeds, I tested with "sensor kinetics" Aug 01 13:56:25 so when you order a nexus 7, it lets you check a box along the lines of "autmatically setup with my google account" Aug 01 13:56:28 I have created a compound component using linearLayout but when I set on onclick event listener on this element, it doesn't work at all. any idea? Thanks Aug 01 13:56:30 what exactly does that do? Aug 01 13:56:58 it has your account set up already afaik Aug 01 13:57:12 like da kindle Aug 01 13:57:16 can someone tell me how I can get the appname (not the packagename) of an app with given UID ? Aug 01 13:57:19 so if the shipment was intercepted Aug 01 13:57:24 all my emails could be accessed? Aug 01 13:57:34 canadiancow|work: it still requires your password to set up Aug 01 13:57:42 so it just has your email address prepopulated? Aug 01 13:57:45 yes Aug 01 13:57:48 lol? Aug 01 13:57:55 that seems... trivial? Aug 01 13:57:57 thats amusing Aug 01 13:58:37 wtf is the point of that? Aug 01 13:58:39 EPG: what value(s) are you interested in then? Aug 01 13:59:21 i'm ahead of the curve enough to order the brand new google tablet, but ccan't figure out how to key in my email address? Aug 01 13:59:26 rotation vector, z value Aug 01 13:59:40 I guess it's for people who are new to android Aug 01 13:59:41 hi. Can anyone let me know why this code works in plain java: http://pastebin.com/Xg18WyYh but not in Android? Aug 01 13:59:46 is the box checked by default? Aug 01 13:59:54 it's DatagramSocket related Aug 01 14:00:49 alemos: does your app have permission to network Aug 01 14:00:58 *to use the network Aug 01 14:01:12 deebo: I do have android.permission.INTERNET Aug 01 14:01:34 help please :) Aug 01 14:02:09 EPG: the derived rotation sensor - as opposed to the raw gyro - seems to be rock-solid here while it's sitting on a desk Aug 01 14:02:26 deebo: anymore ideas? Aug 01 14:02:51 alemos: not really no Aug 01 14:02:57 how stable is the gyro? Aug 01 14:03:11 development 0x20 Additional flag from base permission type: this permission can also (optionally) be granted to development applications. Aug 01 14:03:23 anyone else with ideas regarding this DatagramSocket problem? Aug 01 14:03:24 anyone have a better description of that protectionLevel attribute for permissions? Aug 01 14:03:29 the gyro Z seems to be flipping +/- 0.006 or so Aug 01 14:03:56 ok, also [-1,1] intervall? Aug 01 14:04:24 so the problem im having is i checked that box when i ordered my nexus 7 from google play Aug 01 14:04:49 no, range 34.9 Aug 01 14:04:59 I have created a compound component using linearLayout but when I set on onclick event listener on this element, it doesn't work at all. any idea? Thanks Aug 01 14:07:09 Leeds, thanks a lot, which phone model is this? Aug 01 14:07:26 HTC One X (international quad-core) Aug 01 14:07:36 hello. i'm broadcasting an intent to my MainActivity. how can i access the activities' ActionBar from the BroadcastReceiver? Aug 01 14:07:57 ok, if you want you can betatest my app when it's finished :) Aug 01 14:08:05 ok :) Aug 01 14:09:13 Papierkorb: you don't. encapsulation Aug 01 14:11:03 hey, if i want to add an animation Aug 01 14:11:08 in what res folder do i add it? Aug 01 14:11:14 wongk: do you have some example code (or something similar)? Aug 01 14:11:26 an example of what? Aug 01 14:11:42 how to update UI elements from a broadcastreceiver Aug 01 14:12:08 you can't Aug 01 14:12:19 you send a message to the Activity to tell it to update Aug 01 14:12:25 ^^ Aug 01 14:12:35 well, either way, how? Aug 01 14:12:44 where do i add an animation? Aug 01 14:13:06 a listener or a handler Aug 01 14:13:42 deebo: think I need to wait for this thread to send the package before returning? Aug 01 14:13:44 int he drawable folder Aug 01 14:24:26 hi, how can you fill a spinner using a contentprovider with SQLite? the only tutorials I've found use SimpleCursorAdapter which is deprecated Aug 01 14:24:58 i have kind of deadlock here... https://developer.android.com/guide/topics/manifest/activity-element.html#config and the screenSize attribute. I have my minSdkVersion set to 8 and target to 15. So I can't just write screenSize to manifest and just orientation does not trigger the onConfigurationChanged() method. If I lower the target version, app is "ugly", and if I increment the min version, lot of users won't be able to use it. Now what? Aug 01 14:24:59 Can I set the screenSize parameter in the code somehow? Aug 01 14:26:26 oh, maybe I can set it with version specific xml resource... :) Aug 01 14:27:34 hey guys, when you want to steal a gpl app and release it closed source, whats are some tips to make sure it's hard to discover that you did that Aug 01 14:28:53 mikedg: you don't Aug 01 14:29:01 that opens you up to a lawsuit Aug 01 14:29:08 it also makes you a huge jerk Aug 01 14:29:24 mikedg: make sure you set the evil flag in the manifest Aug 01 14:29:39 Just put a disclaminer: "This app does NOT use GPL code from mikedg: just do it, no one cares unless you get rich Aug 01 14:30:16 Versuchen: mikedg is already rich Aug 01 14:30:19 mikedg: the better thing to do is dynamically link to lgpl code, that way you're only on the hook for releasing modifications to the lgpl part Aug 01 14:30:46 I normally just threaten the top 10 contributors, something about the wife or kids usually keeps them silent. Aug 01 14:31:38 So I have a question about fragments.. Aug 01 14:31:41 One guy didn't respond to threats against his wife or kids, so I threatened to steal his Steam account, problem solved. Aug 01 14:31:49 I created a new Android project and chose the fragment layout Aug 01 14:32:26 However, I am a bit confused as to how to customize the detailfragment layout Aug 01 14:32:43 Which currently just looks like this: http://bpaste.net/show/EugZZwB8UX4cF9I241H6/ Aug 01 14:33:21 So you don't know how to make xml layouts? Aug 01 14:33:34 No, I do Aug 01 14:33:41 Then.. do that Aug 01 14:33:44 but not in the sense of fragments apparently.. Aug 01 14:34:01 because traditionally, you declared a layout type.. RelativeLayout for example Aug 01 14:34:12 while this particular layout just has a single TextView declared Aug 01 14:34:28 There's nothing special about how you make layouts used in fragments Aug 01 14:34:39 Do the same as you always did Aug 01 14:34:42 oh, so I can just treat it as a regular layout? cool Aug 01 14:34:57 SimonVT: though what about: tools:context=".PanelDetailFragment" Aug 01 14:35:08 never seen the tools:context stuff before Aug 01 14:35:27 That's probably just a hint for lint when it does some of its checks Aug 01 14:35:31 You don't need that Aug 01 14:36:24 SimonVT: ah ok, thanks for clarifying things Aug 01 14:36:30 Much appreciated Aug 01 14:40:03 is there a heading view somewhere ? Aug 01 14:40:59 git bisect best feature ever Aug 01 14:41:50 Has anyone seen HttpURLConnection (HUC)'s getResponseCode() return -1 when using HttpResponseCache and the response is cached? There is an AOSP bug (http://code.google.com/p/android/issues/detail?id=7787) supposedly released in the Honeycomb target, but I'm seeing the issue even on ICS. Aug 01 14:52:20 Hi, I have a map activity that registers a content observer for updating map overlays. I instantiate it in onCreate(). However, every time I go to another activity and return, onCreate() is called again and a new observer is made. Why is onCreate being called so much? I thought it was only after the activity was destroyed Aug 01 14:53:18 I think it also fires when the activity is resumed 0after going back or home or such) Aug 01 14:53:57 no it shouldnt be, oncreate is only called when the activity is destroyed and needs to be recreated Aug 01 14:53:59 It does not Aug 01 14:54:04 What Jug6ernaut said Aug 01 14:54:58 new MyActivity().onCreate(new Bundle); Aug 01 14:55:02 new MyActivity().onCreate(new Bundle()); Aug 01 14:55:26 :| Aug 01 14:55:28 canadiancow|work: wtf is that Aug 01 14:55:41 That's why I am confused, I'm never actually even leaving the app, so it shouldn't be called for destruction by the os Aug 01 14:55:44 its how you create a new activity! Aug 01 14:55:51 blasphemy is what it is Aug 01 14:55:51 :D Aug 01 14:56:13 lk16 are you changing orientation? Aug 01 14:56:25 nope Aug 01 14:56:38 canadiancow|work the sade thing is, ive seen shit like that b4 :\ Aug 01 14:56:44 :( Aug 01 14:56:54 lk16: android is at liberty to remove activity any time it's not visible though. Aug 01 14:56:59 lk16 log all ur on* methods and see whats happening as you go through ur app Aug 01 14:57:01 lk16: Did you add some strange manifest tags, or enable some developer options? Aug 01 14:57:19 Jug6ernaut: will do Aug 01 14:57:20 lk16: so you can't really program your code on the idea that the activity always exists. You might try to collect features of your application into a Service that exist independent of the UI Aug 01 14:57:23 canadiancow|work like ppl calling onPause, i mean i didnt know shit at one time, but i dont think i was ever that bad Aug 01 14:57:53 i was never that bad Aug 01 14:57:55 because i rtfm Aug 01 14:58:16 also off of what alankila said, always check that ur objects are null b4 initializing Aug 01 14:58:25 theres bad like "hi im new to android and i dont know how i should use fragments" and theres "hi im new to android and new MyActivity().onCreate(new Bundle()); isn't doing anything" Aug 01 14:58:28 lol Aug 01 14:58:38 haha Aug 01 14:58:55 well, the problem is, ppl try to get into android, without even knowing java Aug 01 14:59:05 or ANY language Aug 01 14:59:06 Hm, I need a Context.. new MyActivity(), problem solved Aug 01 14:59:13 lol Aug 01 14:59:29 "i cant call getSharedPreferences from my fragment wth?" Aug 01 14:59:31 umm Aug 01 14:59:32 well Aug 01 14:59:59 * Jug6ernaut hates when ppl dont put qualifiing paths for function calls Aug 01 15:01:13 any one have experience in working socketio in android? Just want to discuss the good way to do it Aug 01 15:01:38 socketio? Aug 01 15:01:52 I've had trouble with that recently Aug 01 15:03:11 Mavrik: yep, socketio Aug 01 15:03:13 to all concerned: the activity was calling onDestroy() when the back button was pressed. I don't think this is default behavior but I'm on the emulator so who knows Aug 01 15:03:27 Mavrik: http://socket.io/ Aug 01 15:03:44 ah, so you want to connect to a server that uses socket.io as a library? Aug 01 15:04:08 lk16: That is default behavior Aug 01 15:04:12 back button finishes the activity Aug 01 15:04:14 lk16: when back button is pressed, it is going to pop your app out of the stack. So it ill trigger onDestroy Aug 01 15:04:35 ah, didn't realize that Aug 01 15:04:42 that would explain it! Aug 01 15:04:50 thanks Aug 01 15:05:06 Mavrik: yep. in fact, I want to keep the socket connection when the app start. And kill the connection when the app quit. Aug 01 15:05:26 Mavrik: no matter the user press home or press back to quit the app Aug 01 15:06:35 huh, I have a nasty feeling you want to do something you should do with GCM :P Aug 01 15:07:26 Mavrik: not really, just want to keep a connection, and when the server has update. The server can send the update immediately via the socket. Aug 01 15:08:03 Mavrik: if I do it using gcm, I may received lots of notification. Aug 01 15:08:34 hello, can anyone help me with something? Aug 01 15:08:34 http://paste.ubuntu.com/1123554/ Aug 01 15:08:44 why isn't the loading screen displaying? Aug 01 15:08:48 caca is in another thread Aug 01 15:08:52 When I make a socket connection, I can send/recieve data, but it won't let me multithread. Even though socketIO is on a runnable class, it won't let me, say, draw to the screen until the connection is closed Aug 01 15:08:59 edwinkcw, hmm, ok, Ive played around with this: https://github.com/Gottox/socket.io-java-client Aug 01 15:09:08 edwinkcw, however I havent tested it extensively or used it in production Aug 01 15:09:16 CurlyBrace: that's not multithreading :P Aug 01 15:09:24 CurlyBrace: you need to create a new Thread and pass it that runnable. Aug 01 15:09:27 CurlyBrace: I think you have to update the UI using UI Thread Aug 01 15:09:31 that too Aug 01 15:09:38 you need to perform UI updates on the UI thread Aug 01 15:09:43 Hmm... Aug 01 15:09:48 I guess that makes sense Aug 01 15:10:01 use a Handler, or send Runnables as args to runOnUiThread, or call postInvalidate, or one of many other things. Aug 01 15:10:04 make a new thread for ui updates :P Aug 01 15:10:08 (don't) Aug 01 15:10:08 shush. Aug 01 15:10:26 CurlyBrace, another way is do it using services Aug 01 15:10:36 same for loin Aug 01 15:10:48 lov i am using a thread Aug 01 15:10:50 loin: you need to call start() Aug 01 15:10:51 not run() Aug 01 15:10:54 I...hadn't looked into services Aug 01 15:10:56 run just runs your run() method in the current thread Aug 01 15:11:06 I am making a really weird app structure Aug 01 15:11:06 start() actually starts up the thread as another thread and then calls run() on that new thread Aug 01 15:11:10 I probably should though Aug 01 15:11:13 CurlyBrace: possibly :P Aug 01 15:11:17 oh lov, you're absolutely right Aug 01 15:11:18 Mavrik: yep, I implemented by own socketio client Aug 01 15:11:33 loin: http://docs.oracle.com/javase/tutorial/essential/concurrency/index.html Aug 01 15:11:38 I VERY strongly recommend that you read this. Aug 01 15:11:54 Mavrik: but the problem is that, I don't know when to start the connection and more important is that, I don't know when to kill the connection Aug 01 15:12:48 Mavrik: I can do them onStart and onStop. But when I launching new activity within the app, the socket connection is closed. I don't want that. I want to connection is closed when the app is quit / killed Aug 01 15:13:22 edwinkcw: You need to understand how Android works Aug 01 15:13:26 edwinkcw: you PROBABLY want to use a Service Aug 01 15:14:02 edwinkcw, and why you cannot put the logic of sockets connection in a service? Aug 01 15:14:02 edwinkcw: you could also use a singleton or some such, as each activity shares the same heap space Aug 01 15:14:14 lov: yep, I also heard of Service. But the same question, when should I stop the service? Aug 01 15:14:24 edwinkcw: whenever you no longer need it. Aug 01 15:14:50 edwinkcw: Read the service docs. This case is handled via binding and autocreating Aug 01 15:14:51 lov: in words, I don't need to service when I quit the app. But how do I know that? Aug 01 15:15:12 edwinkcw: your service can call stopService() on itself, but won't actually end until all bindings are removed Aug 01 15:15:19 edwinkcw: READ THE SERVICE DOCUMENTATION Aug 01 15:15:28 lov: some ppl just quit the app by pressing home button, but they are not quitting the app, they just putting it in the background Aug 01 15:15:32 would private final static byte[] version = ByteBuffer.allocate(2).putShort((short) 1).array(); Be the correct representation of an uint16 with a 2 bytes length with 1 as data? Aug 01 15:15:43 edwinkcw: I understand this Aug 01 15:15:50 edwinkcw: I understand exactly what your usecase is and what your problem is Aug 01 15:15:56 edwinkcw: this is a usecase that services can handle easily Aug 01 15:15:58 edwinkcw: http://developer.android.com/reference/android/app/Service.html Aug 01 15:15:59 read this Aug 01 15:16:07 edwinkcw, yep, use a service Aug 01 15:16:10 edwinkcw: Read about the Service lifecycle Aug 01 15:16:13 please do that and then come back Aug 01 15:16:14 lov: ok, wait a moment, lt me read it Aug 01 15:16:35 lol Aug 01 15:16:51 lov, why can't i update the view from another thread? Aug 01 15:17:13 because ui thread Aug 01 15:17:19 loin, you can use a method called runOnUIThread for this. Aug 01 15:17:45 loin: because you can't do drawing off of the UI thread. For now, just accept this as a fait accompli. Aug 01 15:18:18 or can you ;) Aug 01 15:18:46 lov: stupid question, I am reading the doc of service, but I cannot find information about "the service is going to be destroyed when no body binding it" Aug 01 15:18:57 they should name the next version of android 'ky jelly' Aug 01 15:19:02 edwinkcw: Go to the part with "Service lifecycle" Aug 01 15:19:04 read the last paragraph Aug 01 15:19:08 it talks about when the service will be stopped Aug 01 15:19:10 lov: ok Aug 01 15:19:17 anyways, switched to intellij for android development. seems there's less errors Aug 01 15:20:11 JonathanSS, that worked but it's weird Aug 01 15:20:32 loin: you can use Handlers Aug 01 15:20:35 or you can use postInvalidate Aug 01 15:20:39 or you can use several other routes Aug 01 15:20:49 anyone else notice eclipse going retarded and only allowing one export before crapping the bed? I find the second (or Nth) time I export an application with signing for the market, eclipse stops making valid apks. They install, but they're missing critical things. Like my main activity. Aug 01 15:21:02 Have to reload eclipse to get it to behave again. At which point it behaves once. Aug 01 15:21:04 dragorn: never seen that before Aug 01 15:21:06 loin, Methods of drawing are not thread-safe; then we have to use this ways to do it. Aug 01 15:21:10 evancharlton: man it's annoying. Aug 01 15:21:26 JonathanSS, i've seen stranger things Aug 01 15:21:27 I'll chalk it up to "god dammit eclipse" and move on w/ my life I guess Aug 01 15:21:50 hey guys, when you want to steal a gpl app and release it closed source, whats are some tips to make sure it's hard to discover that you did that Aug 01 15:21:58 dragorn: I haven't seen that before. It's possible that there's a screw-up with proguard, though. Aug 01 15:22:07 I got to the end of that sentence before I realized it was mikedg Aug 01 15:22:19 i want to vertically impale the developers of eclipse bugs and buggy plugins Aug 01 15:22:31 dont use eclipse to export your fucking apps for deployment Aug 01 15:22:34 mikedg: don't even bother obfuscating, no one is going to care because gpl apps are garbage anyway Aug 01 15:22:35 thats just asking for herpes Aug 01 15:23:18 lov, evancharlton: my problem was using 1.6.0_25 of the jdk to build Aug 01 15:23:51 mikedg: the jdk isn't GPL software Aug 01 15:23:59 lov: I just read the doc about service. I decide to do binding on onResume and unbinding onPause. What if I start a new activity? It sounds to me that there are some time that the service having no body binding it. Will the service call onDestroy when I call startActivity? Aug 01 15:24:10 lov: the problemi had the other day Aug 01 15:24:12 not todays problem Aug 01 15:24:13 edwinkcw: you call startService if you want it to stick around. Aug 01 15:25:00 edwinkcw: just remember to do stopSelf() when its not needed anymore Aug 01 15:25:17 ^^ Aug 01 15:25:30 lov: ok, but just to clarify, if the service is stopped and I call startActivity, the service is destroyed, right? Aug 01 15:25:40 edwinkcw: not necessarily Aug 01 15:25:51 edwinkcw: calling startActivity doesn't call onDestroy on the previous activity (barring task states we won't get into) Aug 01 15:25:54 assuming I do binding and unbinding on onResume and onPause Aug 01 15:25:57 it just puts it into the previous part of the stack. Aug 01 15:26:15 you'll probably want to handle binding in onStart/onStop or more likely onCreate/onDestroy Aug 01 15:26:22 it depends on your scenario Aug 01 15:27:27 lov: putting unbind in onDestroy has the problem that the user may press home and the connection may keep forever. Aug 01 15:27:46 edwinkcw: until the application is reaped by Android Aug 01 15:27:51 lov: but I think how service solve the problem in this case, thanks. Aug 01 15:27:52 edwinkcw: but that's not really an issue. Aug 01 15:28:02 edwinkcw: services are much more lightweight than you think. Aug 01 15:28:05 edwinkcw, do some exercises of Services :) it`s a cool thing of Android development :) Aug 01 15:28:18 ^^ Aug 01 15:28:22 lov: but the socket connection may consume lots of battery Aug 01 15:28:40 edwinkcw: ok, you need to define your requirements. Aug 01 15:28:45 edwinkcw: you can always postDelayed a Runnable to stopSelf after a delay Aug 01 15:28:48 lets say that the user decides to open an email, and then come back to your app. Aug 01 15:28:54 what do you want to do? Aug 01 15:28:58 do you want the network connection to go away? Aug 01 15:29:00 do you want it to stick around? Aug 01 15:29:10 lov: no in this case Aug 01 15:29:12 You could always (as napalm suggest) provides a timer to kill your service after a certain period. Aug 01 15:29:15 edwinkercw why you need to keep a connection opened? Aug 01 15:29:34 edwinkcw: most games will end up removing their resources when they're not in the foreground anyway. Aug 01 15:31:03 lov: yep, but when I was thinking stopping the connection in onStop, when I launch a new activity within the application, the connection is killed. Aug 01 15:31:46 lov: after the new activity is close and return back to previous activity, it has to reconnect again. I don't want this situation. Aug 01 15:31:56 edwinkcw: so use onCreate/onDestroy Aug 01 15:32:39 lov: as I say before, what about a user pressing home button and thinking he quitted the app. Aug 01 15:32:52 * lov shrugs Aug 01 15:32:58 as far as he's concerned, he did quit the app. Aug 01 15:33:07 lov: then, the connection is closed only when Android os killed my app Aug 01 15:33:12 edwinkcw: depending on what type of app you're using, you could always have the service declare itself as a foreground service Aug 01 15:33:20 that provides a notification that the service is present. Aug 01 15:33:36 edwinkcw: have your service a normal startService sticky and have your activities call a function to register and deregister onPause and onResume and maintain a counter, when onPause in the service is called and counter is zero postDelayed a stopSelf() and have onResume cancel it Aug 01 15:33:39 simple Aug 01 15:33:44 or what Napalm said Aug 01 15:34:44 wow Aug 01 15:34:58 intellij community edition is so much better than eclipse shit edition Aug 01 15:35:00 * sysRPL is working on an android game which ogs players into irc channels on the efnet and freenode networks Aug 01 15:35:07 Napalm: thanks for your recommendation. But I am sorry that I am not quite familiar with service yet. I may have to write it to have concrete concept first. Aug 01 15:35:18 * logs Aug 01 15:35:48 edwinkcw: do that. Play around with services. You'll start to grok what they do. Aug 01 15:35:51 dogarrhea2: awesome, glad you like it Aug 01 15:36:00 dogarrhea2, \o/ Aug 01 15:36:02 lov: foreground service may help as well. Aug 01 15:36:12 11:33:19 < lov> edwinkcw: depending on what type of app you're using, you could always have the service declare itself as a foreground service Aug 01 15:36:25 please please tell me how do I add more frequencies to my android inbuilt radio Aug 01 15:36:28 I ended up buying IDEA ultimate Aug 01 15:36:34 I want to listen 20mhz FM Aug 01 15:36:40 jennie: not here. Go to #android or #android-root Aug 01 15:36:41 lov: thanks, let me figure it out. Aug 01 15:42:31 jennie: pics Aug 01 15:42:47 or stacktrace Aug 01 15:44:14 hey guys, I'm trying to implement in-app billing and it's my first time doing so. When I test it, the store comes up and says "Sample Title", "Sample Merchant", etc. I built it off sample code and I can't find those strings anywhere in the code. Is this because Google recognizes that the payment request is coming from my merchant account? Aug 01 15:44:47 those are probably specified in your dev console Aug 01 15:45:07 hey guys i was trying to create a music app that integrates spotify and last.fm, i have downloaded the respective APIs but couldn't find any resources to start. Aug 01 15:45:13 any suggestions? Aug 01 15:46:31 rather can you head me to some place where i can learn about working with various third party APIs for mobile development> Aug 01 15:46:52 Is it possible to make the new logcat stop autoscrolling when I move the mouse wheel? Aug 01 15:46:55 Like the old one used to Aug 01 15:47:04 Now I have to keep clicking the scroll lock button Aug 01 15:47:44 canadiancow|work, I have checked my merchant account which says "information that will be shown to buyers", and none of it says test anything, it's all accurate. Aug 01 15:51:26 pallavagrawal: not really. Different 3rd parties will have different api styles. Aug 01 15:51:40 pallavagrawal: odds are that all of them will provide Android Libraries, which you can reference in your project properties Aug 01 15:52:32 lov: since i have never worked with any api, i used the official Last.fm api it gives a rough documentation, how am i supposed to proceed? Aug 01 15:53:13 pallavagrawal: I have no idea what any of the pandora, last.fm, etc apis are. Aug 01 15:53:16 Are they just networking apis? Aug 01 15:53:19 are they actual android libraries? Aug 01 15:53:27 is there even java code, or is it just a set of documentation? Aug 01 15:53:40 dunno, spotify api has a bunch of ".c" files Aug 01 15:53:44 your question is extremely general Aug 01 15:53:57 ah, those tricksy .c files Aug 01 15:54:04 pallavagrawal: are you supposed to compile them using the NDK? Do they mention whether they work for Android? Aug 01 15:54:15 pallavagrawal: the onus is on you to do any sort of research whatsoever here Aug 01 15:54:29 it's possible that they're meant for winphone6 only or something Aug 01 15:54:51 lov: really? i have to figure out how everything else. Its specifically for android i am sure about that. Aug 01 15:55:29 pallavagrawal: in that case, you'll need to download and use the Android NDK to compile those .c files into a .so which you can reference from Java Aug 01 15:55:46 (or if you have an irrational hatred of Java, you can develop solely in C, but you can only target 2.3 and above) Aug 01 15:56:06 http://developer.android.com/tools/sdk/ndk/index.html Aug 01 15:57:14 lov: okay once i do all the referencing, how do i integrate into my app? Aug 01 15:57:34 pallavagrawal: I'm sure there are plenty of people here who would tell you exactly how to write your app... Aug 01 15:57:52 pallavagrawal: you put the .so into your libs dir, and use JNI to hook this together Aug 01 15:58:03 lov: i just looked it has a .so file Aug 01 15:58:07 pallavagrawal: your questions are really extremely general, and I'd recommend that you search StackOverflow for questions like "how do I write native code in android" Aug 01 15:58:09 y'know, for appropriate compensation Aug 01 15:58:16 pallavagrawal: are there any .java files? Aug 01 15:58:29 pallavagrawal: where did this API come from? Aug 01 15:58:46 i downloaded from spotify website Aug 01 15:58:49 lov: gimme a minute Aug 01 15:59:42 lov: .pc and .so files Aug 01 15:59:47 no .java files Aug 01 16:00:27 lov: brb Aug 01 16:00:39 what is the Label: field when you create a new activity in intellij Aug 01 16:02:23 lov: I'd guess it's https://developer.spotify.com/technologies/libspotify/ - "Libspotify is available for Windows, Mac OS X (x86 / x86_64), iOS, and Linux (x86 / x86_64 / ARM)." Aug 01 16:03:14 hmm, they do have an ARM/Android binary of the library there Aug 01 16:10:06 Hello. I'm attempting to load a custom image on my phone (using http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images) as a guide. However, cat /proc/mtd shows up blank on my phone (I even used an emulator on the phone to confirm this). Why don't I have partitions? Thanks in advance. Aug 01 16:15:23 fully_human: sounds like you want #android-root or #xda-devs Aug 01 16:15:48 fully_human: try cat /proc/partitions Aug 01 16:15:53 also, sounds like you need to learn to read channel topics Aug 01 16:16:02 is there a problem with this line? m_bCancel.setOnClickListener((OnClickListener) this); Aug 01 16:16:39 hip2p: no…if you implement it in the current Class Aug 01 16:16:57 hip2p: it = OnClickListeer Aug 01 16:17:15 hey, if i want to build for API10, and i really need a gridview, what can i do about it? Aug 01 16:17:43 kaneda^: do you mean GridLayout? Aug 01 16:17:51 yes Aug 01 16:17:59 it's in the support library, no? Aug 01 16:18:02 kaneda^: i believe GridLayout is in the compatibility library Aug 01 16:18:07 edwinkcw hmm ok Aug 01 16:18:08 oh nice! Aug 01 16:18:15 thank god, i need a gallery Aug 01 16:18:49 my eclipse says: View requires API level 14 (current min is 10): Aug 01 16:19:38 nvm, i dont have the package yet Aug 01 16:20:22 hrm, it says support library is installed Aug 01 16:20:37 kaneda^: v7 support library Aug 01 16:20:39 it's a library project not a jar Aug 01 16:21:08 i dont see it in my sdk manager Aug 01 16:23:57 http://www.uploadscreenshot.com/image/1267040/8249065 Aug 01 16:24:42 the compatability library includes 3 different "sub-libraries" Aug 01 16:24:54 v4 is the main version, then there v7 and v11 Aug 01 16:25:10 thay have different classes and support different minimum api levels Aug 01 16:25:11 what about v8 Aug 01 16:25:15 i need my fruits and veggies Aug 01 16:25:21 you hush :P Aug 01 16:25:21 in one easy to drink library Aug 01 16:25:32 i found it in android-sdks\extras\android\support\v7\gridlayout Aug 01 16:33:17 Leeds: So can you just give me a list of tasks to get this thing working? Aug 01 16:36:01 Leeds: as in can you just give me a course of action since i am new to this stuff Aug 01 16:41:19 lov: are you around? Aug 01 16:46:20 pallavagrawal: Download the NDK, play around Aug 01 16:46:54 pallavagrawal: Search stackoverflow for "Android ndk .so" or JNI or something Aug 01 16:48:51 lov: yeah i am just downloading that. So i wrote half code that plays music from library in SDK, and this API is written in NDK, so it would be really nice of you if you could brief a procedure to follow to make an .apk file out of it. Aug 01 16:49:55 pallavagrawal: have you downloaded the NDK yet? Aug 01 16:49:59 pallavagrawal: you should download the NDK Aug 01 16:50:04 and then look at the documentation that comes with it Aug 01 16:50:15 the documentation that explains exactly these things Aug 01 16:50:23 instead of asking random people on irc Aug 01 16:50:36 this would make everyone happier Aug 01 16:50:49 Is there an already built-in layout where I can take Views of various widths and, with a specific amount of horizontal and vertical padding, put in these Views so that they're centered horizontally but once there's no more room on a row for the next View, it simply puts it on the next row? It's not exactly a Grid or TableLayout, since some rows may contain more Views than others simply Aug 01 16:50:49 depending on their sizes Aug 01 16:51:08 lov: sounds great either way! thanks for the help! Aug 01 16:51:51 lov: just one more question. what do i do with a .jar API? Aug 01 16:51:57 The only constants I'd have between each view are the spacing between each view and the height of the View Aug 01 16:53:56 pallavagrawal: you probably shove it in the libs dir, refresh your eclipse project, and program against it. Aug 01 16:56:55 anyone know where files that deal with reading/writing to sdcards are in source? Aug 01 16:57:37 So I've got this in-app billing code in my app "BillingHelper.requestPurchase(mContext, "android.test.purchased");". How do I get this tied to my app on the market though? It says I'm not allow to modify in app purchases because my app doesn't request the BILLING permission, but this is a new thing I've added since the last release... so do I have to push my APK to the play store with untested code before I can mess around with Aug 01 16:57:37 this? Aug 01 16:58:07 do the names of xml files in res/layout have significance when it comes to event handling/ Aug 01 16:59:47 wow, surprised to find that on iOS you have to go through this stupid kludge to call app code from within javascript hosted in the webview Aug 01 17:00:38 calling window.location = "foo://mystuffhere"; and parsing/handling that manually. and to return data, you have to call from objc into an agreed upon javascript function defined within the webview. how stupid Aug 01 17:00:57 lov: i did that, but how do i include it in my main app> Aug 01 17:03:42 it's included automatically Aug 01 17:04:54 dead trigger is now free on ios Aug 01 17:04:56 fucking fucktard Aug 01 17:04:58 s Aug 01 17:05:04 lov: but don't i need to include it in activities ? Aug 01 17:05:33 pallavagrawal: it's a fucking jar Aug 01 17:05:36 it's just class files Aug 01 17:05:37 nice Aug 01 17:05:48 if you need to use it in an activity, import and reference classes as appropriate Aug 01 17:05:53 it's not magic Aug 01 17:05:54 it's not special Aug 01 17:06:06 if you don't know what you're doing with Android, I'd very strongly recommend that you learn that part first Aug 01 17:06:41 mikedg, is the main thing that people feel cheated because they bought it early on, and now people get it for free? Aug 01 17:06:57 design question, say you have some operation that would take more than a second or two Aug 01 17:07:15 whats the accepted way to show a loading Aug 01 17:07:22 like big spinning circle Aug 01 17:07:26 loading bar Aug 01 17:07:32 Ravenheart, ProgressBar? Aug 01 17:07:54 yea but should i show it in the middle of the activity Aug 01 17:08:02 or top or in the notification area Aug 01 17:08:41 difficult to say, i would probably put the "one or two" second operation in a thread, and then where the data is gonna pop up put an indeterminate progressbar Aug 01 17:08:47 Ravenheart: depends on what you're doing Aug 01 17:08:51 Ravenheart: you could show a ProgressDialog Aug 01 17:09:10 alternately, a ProgressBar in some part of your UI if you're only loading one particular part and other things can be interacted with Aug 01 17:09:28 its a login screen Aug 01 17:09:49 probably not gonna need to be interacting with that while its loading... Aug 01 17:09:50 Yeah, I'd recommend a non-cancelable ProgressDialog Aug 01 17:09:54 is it too hard to put a spinning circle inside a button Aug 01 17:10:04 wtf?! Aug 01 17:10:14 whats the name Aug 01 17:10:17 Ravenheart: surprisingly yes. ImageButton doesn't extend Button, so you'd have to hide the button and show another Aug 01 17:10:31 Ravenheart: you're probably thinking of Pinwheel Aug 01 17:10:33 ProgressDialog like what lov says sounds the best option for a login screen Aug 01 17:10:42 but Android uses a horizontal indeterminate ProgressBar for that Aug 01 17:10:52 http://i.stack.imgur.com/h6viz.gif this Aug 01 17:11:03 13:10:39 < lov> Ravenheart: you're probably thinking of Pinwheel Aug 01 17:11:08 13:10:51 < lov> but Android uses a horizontal indeterminate ProgressBar for that Aug 01 17:11:21 lov, do you know/understand what the whole hurrah is about dead trigger? Aug 01 17:11:58 j0hnsm1th: I didn't know that there was a hurrah Aug 01 17:12:10 dead trigger is now free on ios Aug 01 17:12:11 fucking fucktard Aug 01 17:12:11 s Aug 01 17:12:18 ? lol Aug 01 17:12:43 * lov shrugs Aug 01 17:12:49 just ignore anything that mikedg says Aug 01 17:13:01 noted. Aug 01 17:15:29 lov, aaah that was it they claimed it was as a result of piracy Aug 01 17:15:58 j0hnsm1th: not surprising Aug 01 17:17:19 when i use the gridlayout as a library project for my project my project erases and then does not regenerate the gen//R.java file Aug 01 17:17:21 what's going on? Aug 01 17:18:06 lol @ Build.VERSION.SDK_INT not working.. you can't even check your own os version to see if you can use os verion checking? Aug 01 17:18:12 seems retarded Aug 01 17:18:52 what are you talking about Aug 01 17:19:30 I agree with lov Aug 01 17:19:37 the only reason SDK_INT wouldn't work is because you're running on a 1.5 device that doesn't actually have that field yet Aug 01 17:19:47 but really no one is using 1.5 so don't bother worrying about backwards compat for that Aug 01 17:20:14 if SDK_INT doesn't work on a device, something is dramatically wrong because it's just a static frameworks field, so I don't know what you're talking about. Aug 01 17:20:20 hmmmmm? Aug 01 17:20:50 this is the second consecutive day dogarrhea2 has been in here trolling Aug 01 17:21:20 lov, the whole point of it is to detect whether or not you can use a feature :/ Aug 01 17:21:28 dogarrhea2: right, and? Aug 01 17:21:31 the whole premise of this idea is wrong if it doesn't work EVERYWHERE Aug 01 17:21:31 what is not working about it Aug 01 17:21:39 13:21:39 < lov> what is not working about it Aug 01 17:21:43 13:21:47 < lov> 13:21:39 < lov> what is not working about it Aug 01 17:21:47 lov: it's API3+ Aug 01 17:21:50 that it doesn't do checking everywhere Aug 01 17:22:00 instead of saying "lawl its broken" please explain where and why it's broken Aug 01 17:22:01 so if you're on 1.0, it won't work! Aug 01 17:22:03 in specific Aug 01 17:22:17 if it's supposed to see if you can do something on a certain version, yet this checking doesn't apply to all versions, that's pretty much broken Aug 01 17:22:24 logically speaking it's stupid Aug 01 17:22:26 dogarrhea2: what the hell are you talking about Aug 01 17:22:37 dogarrhea2: please provide an example with source Aug 01 17:22:47 so when i add the JAR that comes w/ gridlayout i get no compile time errors Aug 01 17:22:53 dogarrhea2: prior to 1.6 there was only Build.VERSION.SDK which was a string that you had to parse. SDK_INT was introduced because that's stupid, and SDK is deprecated. Aug 01 17:23:03 but following the instructions they give me yields a runtime error about not being about to find it's R generated file Aug 01 17:23:05 no no no. i don't need to go there. if you provide version checking that is not useable with certain versions, that's just paridoxical Aug 01 17:23:13 >_< Aug 01 17:23:19 so then i made it into a library project, used that, and then my own R file fails to be generated Aug 01 17:23:19 google wallet just stopped sucking Aug 01 17:23:21 dogarrhea2: are you intentionally being an idiot? Aug 01 17:23:27 where were you when google wallet became useful? Aug 01 17:23:30 dogarrhea2: you're not making any sense Aug 01 17:23:30 yeah but what if the SDK versino overflows an int? then what? Aug 01 17:23:31 evncharlton, please stick with the arguments. Aug 01 17:23:39 mikedg how did it stop sucking Aug 01 17:23:39 dogarrhea2: provide source Aug 01 17:23:44 anyone here want to talk about android dev? Aug 01 17:23:46 dogarrhea2: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Aug 01 17:24:01 i don't need to. OS version checking should just work everywhere. Aug 01 17:24:07 dogarrhea2: IT. DOES. Aug 01 17:24:11 ^^ Aug 01 17:24:29 dogarrhea2: the fact that it changed from a String to an int involves about 10 lines of overhead for me, total, in a utility method. Aug 01 17:24:45 and the fact that only 1.5 doesn't support it at this points means I can just take out that code and reference SDK_INT Aug 01 17:24:47 so, anyone have any ideas about gridlayout in v7 support? Aug 01 17:24:48 because fuck 1.5 Aug 01 17:24:49 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) { doSomeLegacyShit(); } Aug 01 17:24:55 dogarrhea2: that will work everywhere Aug 01 17:25:06 evancharlton: b-b-b-b-but what about 1.5?!?!?! Aug 01 17:25:21 lov: don't make me smack you Aug 01 17:25:24 ok there we go Aug 01 17:25:31 wasn't hard was it? it doesn't work on 1.5 Aug 01 17:25:39 jesus christ Aug 01 17:25:45 gridlayout, do you know it? Aug 01 17:25:45 13:24:37 < lov> dogarrhea2: the fact that it changed from a String to an int involves about 10 lines of overhead for me, total, in a utility method. Aug 01 17:25:47 dogarrhea2: so use Build.VERSION.SDK Aug 01 17:25:48 13:24:53 < lov> and the fact that only 1.5 doesn't support it at this points means I can just take out that code and reference SDK_INT Aug 01 17:25:59 the API changed. Aug 01 17:26:00 it happened. Aug 01 17:26:05 everyone was notified, everyone changed. Aug 01 17:26:12 kaneda^: your project won't generate an R file if it can't compile. My guess is you have a problem in a layout somewhere. Aug 01 17:26:16 and no one uses cupcake anymore anyway Aug 01 17:26:18 who still uses 1.5 anyway? Aug 01 17:26:21 seriously, you're just trolling at this point Aug 01 17:26:26 ==lov Aug 01 17:26:40 S3nsat10n, this only occurs when i import gridlayout from v7 support as a library project Aug 01 17:26:40 PROGRAMMING IS HARD SO I'M GOING TO BLAME THE FRAMEWORK Aug 01 17:27:02 S3nsat10n, if i import the accompanying JAR i get no compile-time errors but a runtime error occurs when it fails to find gridlayout's R Aug 01 17:27:43 serious question, though. Does anyone really still use 1.5? Aug 01 17:27:52 evancharlton, there's a reason why cobol -> c -> java and very few people do cobol. precisely what you said, anyways, Caution: Using the SDK_INT to prevent older system's from executing new APIs works in this way on Android 2.0 (API level 5) and higher only. Older versions will encounter a runtime exception. Aug 01 17:27:57 I think there are some severly EOL customers in Canada Aug 01 17:28:01 who have 3 year contracts Aug 01 17:28:03 that's it. Aug 01 17:28:05 ah Aug 01 17:28:07 even the G1 upgrade to 1.6 Aug 01 17:28:10 i point out a problem and the beehive awakens... Aug 01 17:28:22 dogarrhea2: it's not a problem Aug 01 17:28:26 that's what we just tried to explain to you Aug 01 17:28:34 kaneda^: hmmm Aug 01 17:28:37 lov I didn't realize android doesn't update to the latest version on all phones.. it actually updates to earlier versions on certain phones / plans? Aug 01 17:28:51 hip2p: it doesn't downgrade. Aug 01 17:29:01 hip2p: users on 1.5 phones are using shitty, shitty phones that never got a 1.6 upgrade Aug 01 17:29:11 hip2p: even the G1 got a 1.6 upgrade, so that should say something Aug 01 17:29:16 [10:24] if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) { doSomeLegacyShit(); } [10:24] dogarrhea2: that will work everywhere <--- except the thing i'm reading says runtime exception Aug 01 17:29:27 is the doc wrong? Aug 01 17:29:31 dogarrhea2: where is the thing you are reading, please? Aug 01 17:29:41 http://developer.android.com/training/basics/activity-lifecycle/starting.html Aug 01 17:29:47 that wont work on 1.x Aug 01 17:29:50 hmm I guess I don't understand the version numbers. I have 4.0.4 right now... why don't those 1.5 phones just upgrade to 4.0.4? Is it because they're not equipped hardware-wise to handle it? Aug 01 17:29:57 you cant reference a non-existant method in a loaded class Aug 01 17:30:01 dogarrhea2: that has nothing to do with Build.VERSION.SDK_INT Aug 01 17:30:02 dogarrhea2: that's inaccurate; it should say 1.6, not 2.0 Aug 01 17:30:10 dogarrhea2: that has to do with changes in dalvik Aug 01 17:30:19 dogarrhea2: it's true that this code, as written, won't actually work on 1.5 because that API wasn't present on 1.5 Aug 01 17:30:27 so what's the proper way to do version checking ? Aug 01 17:30:32 exactly that Aug 01 17:30:36 but minsdkversion >= 7 Aug 01 17:30:38 dogarrhea2: do you care about 1.5 users? yes or no. Aug 01 17:30:42 yes or no and we'll go from there Aug 01 17:30:46 yes Aug 01 17:30:49 ok Aug 01 17:31:24 dogarrhea2: http://code.google.com/p/android-mileage/source/browse/trunk/src/com/evancharlton/mileage/services/AutomaticBackupService.java#95 Aug 01 17:31:36 dogarrhea2: http://pastebin.com/755XBx1y Aug 01 17:31:37 dogarrhea2: please read from L95 to the end Aug 01 17:32:18 dogarrhea2: and that's being obscenely verbose because I was bored Aug 01 17:32:40 dogarrhea2: easier would be to just use reflection to see if the member exists, and if it does to query it. Aug 01 17:32:41 oh yea you dont have have SDK_INT Aug 01 17:33:22 dogarrhea2: I went looking in our code for that reflection, but we don't even have it anymore since I took it out because we stopped supporting 1.5 Aug 01 17:33:39 the backwards compatibility article I linked references it, though, you could look at that. Aug 01 17:33:49 point is, the frameworks changed somewhat, the sky isn't falling. Aug 01 17:35:23 if I *just* added an in-app purchase item on my dev account, does it take time for it to appear as a valid purchasable item? I recompiled my code to do BillingHelper.requestPurchase(mContext, "com.me.myapp.item1") where item1 is the ID I have set in the play store dev console Aug 01 17:36:18 why isn't an exception caught even if it is in a try-catch block? Aug 01 17:37:19 http://paste.ubuntu.com/1123771/ Aug 01 17:38:06 exception is not caught http://paste.ubuntu.com/1123773/ Aug 01 17:39:37 hehe seems hacky. using try catch blocks to control flow. Aug 01 17:39:50 either way it's good enough for me :/ Aug 01 17:40:00 loin: if it's not Aug 01 17:40:52 dogarrhea2, well, if the connection is established, display the fetched content, otherwise display the error Aug 01 17:40:56 seams resonable to me Aug 01 17:41:22 oh i was referring to the other version checking thing Aug 01 17:41:31 scumbag google plus, sends spam, wants me to make account to disable spam Aug 01 17:41:35 if one api is supported do something, else throw error and keep going Aug 01 17:42:01 dogarrhea2: OK. What's your proposal, aside from "do everything perfectly the first time, no mistakes possible" Aug 01 17:43:19 no need to get nasty here. the points are valid. as i said earlier the hack is good enough for me Aug 01 17:44:49 13:46 < dogarrhea2> no need to get nasty here. <-- lol Aug 01 17:45:05 Can anyone here offer some insight about http://stackoverflow.com/questions/11762683/why-did-recognitionlistener-stop-working-in-jellybean ? Aug 01 17:45:28 dogarrhea2: you shouldn't be using try/catch for flow control Aug 01 17:45:33 this whole conversation has not been worth the value you'll get out of supporting 0.2% (and falling) of the Android OS install base Aug 01 17:49:43 S3nsat10n: I accidentally broke donut a while ago and got a polite email from a user Aug 01 17:49:48 it's trivial to support, so you might as well Aug 01 17:49:55 however, caring about SDK vs SDK_INT ... meh Aug 01 17:51:02 evancharlton: yeah, my intention wasn't that you shouldn't support it Aug 01 17:52:17 i make sure all my apps support all the way back to bannana cream pie Aug 01 17:52:31 it means I have to drop features like Thread but it's worth it Aug 01 17:53:15 mikedg: seems legit :) Aug 01 17:53:33 2l3g172qu17 Aug 01 17:53:44 i'm just saying.. submarine screen doors aren't very useful. Aug 01 17:55:23 mew Aug 01 17:56:23 Anyone familiar with uploading a file to a CherryPy server from an app using HTTP Post? I'm having some trouble on the android side related to formulating the Http post... Aug 01 17:57:12 at least in the old days uploading files via http post was a pain in the ass Aug 01 17:57:36 I posted the relevant stuffs on Stackexchange: http://stackoverflow.com/questions/11764273/android-cherrypy-trying-to-upload-a-file-string-or-bytearray-from-android-a Aug 01 17:57:42 I'm trying to see if there's an easier way Aug 01 17:57:56 I honestly just want to upload a string to CherryPy Aug 01 18:00:19 S3nsat10n, the answer was to add the dim file from the gridlayout project but not the attrs Aug 01 18:00:25 and then use it as a project library Aug 01 18:00:37 kaneda^: nice sleuthing Aug 01 18:00:51 PsyX: post.setEntity(new ByteArrayEntity("your string".getBytes())); Aug 01 18:01:30 Anyone have any problems using Signpost OAuth API with Android 4+, not being able to use provider.retrieveRequestToken() ? Aug 01 18:03:25 lemme try that real quick Aug 01 18:03:32 is there an android-legal channel? Aug 01 18:03:38 concerning the shop and things like that? Aug 01 18:04:28 what name do you request an in app purchase? If I have an app com.example.myapp, and I have an in app item called sword, would I call BillingHelper.requestPurchase(mContext, "com.example.myapp.sword"); ?? Aug 01 18:04:43 S3nsat10n: I still get a HTTPError: (404, 'Missing parameters: myFile') Aug 01 18:06:05 anyone? Aug 01 18:07:58 PsyX: if you just want to upload a string, you don't need to do a multipart...if you're doing multipart, then you need to use a MultiPartEntity, I believe Aug 01 18:08:22 what I posted above will work if you're just working with strings/file contents Aug 01 18:08:25 as plain text Aug 01 18:09:09 multipartentity's will allow you to set parameter names...which is what your server's pissed about Aug 01 18:10:12 The server has this:
Aug 01 18:10:18 http://blog.tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ Aug 01 18:10:45 if I just want to send strings, do you suggest I change the enctype? Aug 01 18:10:52 is the syntax for in-app purchases com.package.name.itemid? Aug 01 18:11:12 PsyX: http://stackoverflow.com/a/11765073/1569419 Aug 01 18:11:55 what Napalm said Aug 01 18:12:10 PsyX: i just fixed a bug Aug 01 18:12:16 edited the code Aug 01 18:12:19 should work now Aug 01 18:14:18 [11:04] if i have a "helper" android app which calls another app that isn't free (not owned by me), can i sell this helper app? [11:04] == AndroUser has changed nick to Juest [11:04] what are the implications of selling this app that calls another paid for app? Aug 01 18:14:44 dogarrhea2: I'm not quite sure what you mean. it depends on how you're calling it. Aug 01 18:15:09 dogarrhea2: for example, if you have PaperCamera installed, you could always call it to take a picture and return that picture in the intent return value Aug 01 18:15:23 however, there's no guarantee that Paper Camera won't change their app structure in a way that breaks your app Aug 01 18:15:31 Napalm: It's not finding the MultipartEntity and FileBody classes Aug 01 18:15:45 as far as whether this is "legal", I have no idea; you'd have to ask a lawyer. It's probably fine, since they're exposing an API publicly via their manifest. Aug 01 18:16:55 suppose someone writes a non free camera app (stupid example). and i write an app that calls the camera app 20 times a second as a feature. Aug 01 18:17:07 what are the implications of selling my app that calls the camera app 20 times a second Aug 01 18:17:11 PsyX: read the post doogan linked you too, it tells you what jar files you need to add Aug 01 18:17:17 assuming they dont' even have a public api Aug 01 18:17:21 http://blog.tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ Aug 01 18:17:47 gotcha, will go ahead and do that Aug 01 18:17:57 dogarrhea2: if they don't expose something in the manifest, you can't call their app, period. Aug 01 18:18:13 you can certainly launch their app Aug 01 18:18:16 right? Aug 01 18:18:24 dogarrhea2: if an item in your manifest doesn't have the "exported" flag, other applications (including launcher) can't reference it. Aug 01 18:18:37 ok Aug 01 18:18:42 just because you can call startActivity doesn't mean that it does anything useful for you, though. Aug 01 18:18:45 lov: incorrect, if they have an intent-filter they can Aug 01 18:18:51 intent-filter makes it public Aug 01 18:18:55 exported Aug 01 18:19:02 er Aug 01 18:19:05 so you need to also set exported="false" on those Aug 01 18:19:19 hmm. Aug 01 18:19:26 oh, know what, you're right Aug 01 18:19:27 lov: found that all your apps have bugs now? Aug 01 18:19:28 herp derp Aug 01 18:19:28 :D Aug 01 18:19:37 "bugs" Aug 01 18:19:38 hehe Aug 01 18:20:04 anyway, suffice to say, things being publicly exported in the manifest counts as a publicly visible api Aug 01 18:20:11 (whether or not the exported flag is there) Aug 01 18:20:36 you can, technically, call startActivityForResult on one of those activities, or call startService with some parameters, or query their content provider, etc Aug 01 18:20:41 whether that's actually useful is another story. Aug 01 18:20:53 camera apps will specify an activity with an intent filter that will take a picture and return it Aug 01 18:21:15 that is, assuming that the app is considered a candidate when you send a "take picture" intent Aug 01 18:21:39 I'd consider it legal to call startActivityForResult against that, but I'm not a lawyer. Aug 01 18:21:58 Someone with lots of money and not a lot of humor could easily file a lawsuit against you, claiming that their app is "protected software" or some garbage Aug 01 18:22:06 again, talk to a lawyer, not randos on irc Aug 01 18:22:42 I'm getting a null pointer exception on this line: TextView editText = (TextView) findViewById(R.id.textView3); editText.setText(test); .... anyone have an idea why? Aug 01 18:22:54 findViewById is returning null Aug 01 18:22:57 textView3 can't be found in your layout Aug 01 18:23:01 you either didn't call setContentView, or you called it on the wrong layout, etc Aug 01 18:23:04 ok thanks Aug 01 18:23:09 hip2p call setcontentview first Aug 01 18:26:19 let's say I have 2 activities, each with an EditText. Can I give both the same id? Aug 01 18:28:33 hip2p: yes Aug 01 18:28:44 hip2p: the activities don't have the edittexts, the layouts do Aug 01 18:28:57 (unless you're creating the EditText programatically, but that's ok too) Aug 01 18:29:10 hip2p: multiple activities can use the same layout file, there's no problem with this. Aug 01 18:29:17 lov the reason I ask is because I have several layouts with the same EditText id, and that's when I received the null pointer exception. When I changed the ids, the null pointer went away Aug 01 18:30:18 hmmmmmm Aug 01 18:30:41 so, i thought that by setting all of the elements but one to GONE in a grid view that said remaining element would be pushed to the top-left most corner Aug 01 18:30:43 it's not, any ideas? Aug 01 18:41:02 I have a public Handler mTransactionHandler = new Handler(){} method that connects to the network. I'm getting an error saying I'm using the main thread, but I thought handlers use different threads? Aug 01 18:41:36 they don't Aug 01 18:41:42 they use the main thread unless you tell them otherwise Aug 01 18:41:52 ah ok Aug 01 18:42:10 Whichever thread instantiates the handler owns it Aug 01 18:42:55 ok thanks Aug 01 18:45:08 Napalm: I get java.lang.NoClassDefFoundError: org.apache.http.entity.mime.MultipartEntity on MultipartEntity mpEntity = new MultipartEntity(); now Aug 01 18:45:42 PsyX: you didnt import the library correctly into your project Aug 01 18:46:28 hello, can anyone tell me from which activity/fragment I should extend if I just have 2 or 3 Settings. PreferenceActivity + Fragment seems a little much for such little settings to me, doesn't it? Aug 01 18:46:43 looks like a ctrl+shift+o fixed it Aug 01 18:46:46 :) Aug 01 18:46:50 Greegoor: just use PreferenceActivity w/o fragments. Aug 01 18:47:15 thank you sir! Aug 01 18:47:45 lov: oh that is still possible? First I wanted to do it like this, but then I noticed that addPreferencesFromResource is deprecated Aug 01 18:47:47 whats the hotkey for auto-format in eclipse Aug 01 18:47:55 ctrl+shift+f Aug 01 18:48:10 thank you Greegoor Aug 01 18:49:30 Greegoor: it's deprecated because you should be using Fragments, but you can still use it just fine Aug 01 18:49:39 fragments is great once you get it working ;) Aug 01 18:50:21 can you give a frameLayout an onClickListener in XML? Aug 01 18:50:24 there's the whole "woops we forgot PreferenceFragment in the ACL" situation too Aug 01 18:50:49 lov: okay thank you very much :) Aug 01 18:52:10 so it possible to use a SwitchPreference as a header with PreferenceFragments? Aug 01 18:53:28 http://phandroid.com/2012/08/01/google-finally-launches-official-dedicated-android-blog/ Aug 01 18:54:04 dont you need something like a fragmentactivity as the controller? Aug 01 18:54:50 g00s: amusingly enough, the actual blog doesn't load :> Aug 01 18:55:57 it does here Aug 01 18:56:06 the android waved at me Aug 01 18:57:17 so is all the content from here http://android-developers.blogspot.com/ being migrated over ? Aug 01 18:57:32 or is that still a dedicated blog that gets updated separately Aug 01 18:57:40 jpstevans: have you tried setting the onClick xml flag? Point it to a function in your Activity that is public void and only takes a View as parameter Aug 01 18:57:42 that's the developer blog Aug 01 18:57:54 i assume it will stay separate Aug 01 18:57:59 wongk: ok Aug 01 18:58:36 Hey guys, I'm running into an issue with imageview. I have scaletype set to fitCenter and adjust view bounds set to true. Everything works great except for when I set an image thats a bit too wide. When w >> h the image doesn't display and image view seems to have no width or height. Has anyone seen this before? Aug 01 19:00:47 strange... Aug 01 19:01:52 hmmm… if I set the parent relative layout to a set width and not wrap content, it seems to display ok…but thats not what I want Aug 01 19:02:06 How can I test to see if in app purchasing is working if I can't open the in-app purchase screen? Aug 01 19:16:10 Napalm: Any idea what I'd need to do to the server side if I just wanted to upload strings? Aug 01 19:16:36 you know your uploading a file atm Aug 01 19:16:40 if you just want to upload a string Aug 01 19:16:44 just post it Aug 01 19:16:54 PsyX: ^ Aug 01 19:16:54 Why don't these Intent / intent filter match? http://pastebin.com/istuB6Xf Aug 01 19:17:50 BlackYue: remove setType() if it still doesnt work then add an actual mime type Aug 01 19:18:12 where is the source for the android debug bridge daemon? Aug 01 19:18:28 and where does the adb daemon usually live on a device? Aug 01 19:18:37 Napalm: what would I need to change on the server? Right now the form looks like:

Upload a file

filename:
" Aug 01 19:18:55 >_< Aug 01 19:19:04 PsyX: learn what HTTP is and how it works Aug 01 19:19:10 hint: it's not related to HTML Aug 01 19:20:41 I'm aware, just currently stupid, especially with the way CherryPy works Aug 01 19:20:41 Is it possible to add multiple events in the calendar at once? (aka importing) Aug 01 19:21:57 rektide: thats called adbd and its in the repo, i think its in git clone https://android.googlesource.com/platform/system/core Aug 01 19:22:29 Napalm: Removing the setType(), the chooser dialog just said "Impossible to locate and app to execute this action" (Android in portuguese here, don't know what would be the exact message in english). Using a mime type (I tested with 'image/jpg') the chooser still don't list my activity Aug 01 19:23:11 lov: I just re-read my question and facepalmed... haha, wow. Aug 01 19:23:40 BlackYue: try and force export it android:exported="true" Aug 01 19:23:58 Don't know if that matters, but the activity/intent-filter/calling code are all in the same app Aug 01 19:24:08 nope it doesnt matter Aug 01 19:26:10 BlackYue: why do you have the mime type filter anyway? Aug 01 19:26:28 the documentation states only the subtype can be * Aug 01 19:26:32 Napalm: that's crazy, adb.c appears to be both the adb host and the adbd daemon Aug 01 19:26:42 PsyX: glad I could help. Aug 01 19:26:51 BlackYue: like text/*, if its not specified then its going to match it Aug 01 19:26:56 what kind of lunatic scheme this is, delightfully mad & aggressive code re-use in action Aug 01 19:27:31 lov: have you played with the installd daemon? its fun :D Aug 01 19:28:14 Napalm: Actually I wasn't sure about set mime type or not Aug 01 19:28:21 Well, exported=true didn't work =( Aug 01 19:28:57 BlackYue: didnt think it would Aug 01 19:37:36 BlackYue: got it working then? Aug 01 19:38:55 No Aug 01 19:39:20 But I noticed it does work if I just use another action (ex: ACTION_PICK) Aug 01 19:43:40 BlackYue: i know why your original was not working Aug 01 19:45:02 "ACTION_GET_CONTENT with MIME type */* and category CATEGORY_OPENABLE -- Display all pickers for data that can be opened with ContentResolver.openInputStream(), " Aug 01 19:45:28 BlackYue: i expect that means it has to match scheme content:// because its trying to resolve a ContentProvider Aug 01 19:46:03 http://developer.android.com/reference/android/content/ContentResolver.html#openInputStream(android.net.Uri) Aug 01 19:46:05 yup Aug 01 19:47:43 I've got two tabhost..how do I reference them? Aug 01 19:49:01 Napalm: Ok, but it still didn't work when I set an actual mime type Aug 01 19:49:33 BlackYue: but your doing it on an activity and not contentprovider Aug 01 19:49:39 BlackYue: what are you trying to achieve with this? Aug 01 19:52:55 Napalm: I just want to let the user select a file to import on my app. This can be done through a file browser like app to select a file that's already on the file system, or the user can pick the file directly from a server of mine on the internet. The later case is what I'm trying to implement now Aug 01 19:53:55 quick question about threading, say i want to run something async and then fire an event Aug 01 19:54:00 what would be best to use Aug 01 19:54:09 am looking at AsyncTask and Runnable atm Aug 01 19:54:25 but they don't seem as simple as what i'd use in C# Aug 01 19:56:28 Can't GET_CONTENT be used with activities? Aug 01 19:56:52 i need it to basically have many async methods in one class that when finished fire up events Aug 01 19:56:57 one event per method Aug 01 19:57:21 Ravenheart, async is what u want. Manually, I do it with a custom rolled event function like onResult wrapped in a runOnUiThread Aug 01 19:58:04 can i have many AsyncTasks in one class Aug 01 19:58:46 am basically making a web service convenience class that would do all the work and just fire events per each action Aug 01 20:00:17 wait BlackYue Aug 01 20:00:24 i think i forgot something Aug 01 20:00:26 let me test Aug 01 20:01:37 is it possible for a fragment to be displayed and interactable but not attached to an activity? Aug 01 20:02:00 canadiancow|work, from the last two days of research, i'd say no Aug 01 20:02:08 you can turn a fragment into ana ctivity and launch it with an intent instead Aug 01 20:02:09 canadiancow|work: how would that work? Aug 01 20:03:00 like, even to replace a fragment you have to make a call to a parent activity/controller Aug 01 20:03:04 so i'm not sure how'd you interact with it Aug 01 20:03:06 canadiancow|work: do you mean attached to view tree? because you can attach a fragment to a new view tree in a new window if you want it floating... but a fragment needs a context so its going to still be associated with the activity Aug 01 20:03:52 no, i mean getActivity() == null Aug 01 20:03:58 in an onClick() method Aug 01 20:04:06 canadiancow|work, i think that breaks the android data model Aug 01 20:04:25 cuuuz, that onClick method needs to be in some activityyyyy in order to inflate a laayyoouutt Aug 01 20:04:43 cuuuuuuz, gui operations must be done in the GUI thread, aka the main activity in your case Aug 01 20:05:03 canadiancow|work: Weird things happen.. I have to null-check getActivity in a fragments actionmode callback Aug 01 20:05:15 SimonVT, that is strange, i dont use callback thankfully :| Aug 01 20:07:32 well it happened :\ Aug 01 20:07:37 but im not even sure waht to do there Aug 01 20:07:50 like... i HATE stupid if (x == null) return; Aug 01 20:07:52 I added an image to my drawable folder named thumbs_up_clicked.jpg. I then added this line to my code: butUp.setImageResource(android.R.drawable.thumbs_up_clicked); ..... it's saying thumbs_up_clicked cannot be resolved? Aug 01 20:07:55 it's the worst kind of error checking Aug 01 20:08:34 hip2p: Might want to reference your own resources (i.e. not android.R) Aug 01 20:09:18 canadiancow|work, seems to be the way though Aug 01 20:09:41 hip2p, indeed, try just R and letting eclipse resolve the dependency to your package Aug 01 20:09:48 ok thanks Aug 01 20:10:13 canadiancow|work, no, the worst kind of error checking is not at all Aug 01 20:10:19 disagree Aug 01 20:10:30 i'd rather see an NPE than just have something not work Aug 01 20:10:54 nah, i'd rather catch it, debug it with some extra info Aug 01 20:11:00 BlackYue: http://pastebin.com/sT4EWyJZ should work on an activity Aug 01 20:11:17 but what are you debugging in this case? Aug 01 20:11:20 you can just try { set foo; } catch (Exception e) { Log.e("Activity","FARK: "+e.getMessage()); } Aug 01 20:11:26 "user clicked a button on a fragment that was not attached to an activity" Aug 01 20:11:29 ah ok I had to regenerate R Aug 01 20:11:39 except Log.e doesnt show up in market dev cosnole errors Aug 01 20:12:16 In app billing is frustrating. I still cannot find out how to query google to find out if an in-app purchase had been made in the past. HOW!? Aug 01 20:13:37 Napalm: Worked! thank you guy Aug 01 20:13:45 BlackYue: startActivityForResult(Intent.createChooser(new Intent("android.intent.action.GET_CONTENT").setType("image/*"), "Select Image"), 10); Aug 01 20:13:52 BlackYue: your calling like that also right? Aug 01 20:14:03 at least something like that Aug 01 20:14:14 Yes Aug 01 20:14:39 canadiancow|work, oh, what about Log.i? Aug 01 20:14:48 that's the most generic log level yah? Aug 01 20:15:08 logs dont show up in the dev console Aug 01 20:15:14 only uncaught exceptions Aug 01 20:15:21 they do when i push to the phone Aug 01 20:15:23 and only if the user clicks the "send report" button Aug 01 20:16:01 I don't think kaneda^ knows what the dev console is Aug 01 20:16:17 Napalm: Is it possible to make this intent filter match only in this place? I mean, I wouldn't want it to be matched in other situations where someone use GET_CONTENT to pick a file Aug 01 20:16:43 logcat? Aug 01 20:16:55 Log.i definitely goes into my logcat Aug 01 20:16:57 no Aug 01 20:16:59 BlackYue: you mean only have it work internally in your app? Aug 01 20:17:00 not logcat Aug 01 20:17:02 Where you upload your apps Aug 01 20:17:07 ooooh Aug 01 20:17:13 yah, i dont knwo what that is actually Aug 01 20:17:41 i've been doing python and j2ee for the last year, havent released an android app since 1.6 Aug 01 20:18:17 Napalm: yes Aug 01 20:19:20 BlackYue: yes, add android:exported="false" to your activity, it should still work, but just internally Aug 01 20:19:48 ok, thank you once again! Aug 01 20:28:22 SearchViewCompat really only covers the core basics doesnt it :( Aug 01 20:28:59 was really hoping for onClose and setIconified Aug 01 20:29:03 use the one in ABS Aug 01 20:29:06 it works great Aug 01 20:29:14 or it was almost perfect when i last checked, but its been updated since then Aug 01 20:29:37 kaneda^, the dev console hasnt changed that much Aug 01 20:29:37 im using ABS now, entirely unaware of a SearchView being implemented in there Aug 01 20:30:45 https://github.com/JakeWharton/ActionBarSherlock/blob/dev/library/src/com/actionbarsherlock/widget/SearchView.java Aug 01 20:30:50 its not in 4.1.0 Aug 01 20:30:56 but the source is there Aug 01 20:31:20 ahh no wonder Aug 01 20:31:29 huh, has google wallet been unpublished for this update? Aug 01 20:31:45 thanks for the heads up canadiancow Aug 01 20:31:46 can't find it on play from an incognito window Aug 01 20:32:31 i found it Aug 01 20:32:40 but i cant use it in canada :( Aug 01 20:32:53 nevermind, found the direct link Aug 01 20:33:04 they've prevented it from being searched on Aug 01 20:34:01 Is it possible to query a content provider from a content observer? I have an observer querying a provider, but the query call is ignored and the inscoping method returns prematurely Aug 01 20:34:31 canadiancow|work, maybe it'll work now after thsi update since they're allowing all visa and mastercards and amex/discover in now? Aug 01 20:35:24 pfn: can i get the direct link Aug 01 20:35:31 no pfn Aug 01 20:35:36 it said it wouldnt work on my provider Aug 01 20:35:41 the app doesnt even show up in the launcher on my n7 Aug 01 20:35:48 https://play.google.com/store/apps/details?id=com.google.android.apps.walletnfcrel&hl=en Aug 01 20:36:05 Napalm, you shoulda signed up for it and google voice while you were stateside Aug 01 20:36:22 pfn: i did Aug 01 20:36:29 but ive reset my nexus Aug 01 20:36:29 oh, thought you didn't Aug 01 20:36:35 how annoying Aug 01 20:36:42 havent you got a direct link? Aug 01 20:36:50 you want a link to the apk? Aug 01 20:37:06 the website let me install it from there, even though it's not searchable or available on vzw Aug 01 20:37:55 too bad you can't setup custom card art in your own wallet Aug 01 20:37:57 that'd be cool Aug 01 20:39:08 and it'd be nice if you could name your cards... instead of VISA-1234 Aug 01 20:41:53 pfn: Wallet has already got all my cards ive used on google checkout listed .. after the update Aug 01 20:41:53 :P Aug 01 20:41:55 :O Aug 01 20:42:09 Napalm, nice--I wonder if you'll actually be able to use it anywhere Aug 01 20:42:12 pfn: the pictures of my cards have my name on it Aug 01 20:42:17 marketenabler seems to enable wallet Aug 01 20:42:18 dont yours? Aug 01 20:42:31 Napalm, has my name, sure, but I have like 10 different credit cards :p Aug 01 20:42:36 pfn: we already have nfc/rfid payments Aug 01 20:42:55 fuck i need a US address Aug 01 20:42:56 T_T Aug 01 20:43:26 so just giving me the last 4 digits of my card is pretty useless Aug 01 20:43:39 I wanna name my cards like BofA MC, or BofA debit Aug 01 20:48:36 the wallet update looks awesome Aug 01 20:48:48 . Aug 01 20:48:50 they have implemented everything i talked to them about a few months ago Aug 01 20:48:51 birbeck wut? :D Aug 01 20:49:08 birbeck: like what? Aug 01 20:49:40 web access, enabling all cards, syncing across devices Aug 01 20:49:54 web access? Aug 01 20:50:15 yeah, for managing your cards and seeing your transactions in the web browser Aug 01 20:50:34 and i usually have 3 phones on me, they all have different cards and balances Aug 01 20:50:59 i cant check the transactions made with one on another Aug 01 20:51:22 and everytime i would get a new phone i would have to call support to activate it Aug 01 20:52:01 bascially i gave them a huge laundry list of bugs and useful features, they told me they would put me in the next beta, but they never contacted me again Aug 01 20:52:05 now they have added everything Aug 01 20:52:56 im probably the only person that uses it everyday and maintains a fulltime balance on my pre-paid cards Aug 01 20:54:59 Hi hi Aug 01 21:09:23 I wonder how chargebacks and disputes work since google is now a middleman in payment processing Aug 01 21:09:27 that's kind of a pita Aug 01 21:10:19 since they proxy the payment for you... Aug 01 21:10:23 im pretty sure you handle those directly with the card issuer Aug 01 21:10:52 also getting a copy of invoices and stuff Aug 01 21:11:07 also from your issuer Aug 01 21:11:11 it's not a common occurrence, but I've requested them from the banks on occasion Aug 01 21:11:21 but how can they get the actual invoice, unless google also proxies that info to them Aug 01 21:11:43 sounds like a big logistical pain Aug 01 21:12:28 google would not process the payments Aug 01 21:12:37 but that's exactly what they say they're doing Aug 01 21:12:55 google is putting it on their account for your behalf, and then charging your card for the amount they got charged Aug 01 21:13:11 hmm, i havent read the release notes, but being in the android cloud payments space, im pretty certain they are a passthrough Aug 01 21:13:27 Google Wallet will facilitate the payment to the merchant using a virtual MasterCard PayPass account Aug 01 21:13:30 oh, thats just kinda stupid Aug 01 21:13:35 Google Wallet will then charge your selected payment card for the full amount of the transaction, which will appear on your bank statement as Google *merchant name Aug 01 21:13:49 I wonder how that works for section 75 issues. Aug 01 21:14:01 Hmm - is google wallet even available in the UK Aug 01 21:14:10 it's not supposed to b Aug 01 21:14:11 e Aug 01 21:14:22 ah. Aug 01 21:14:23 pfn: well considering google loses money every time you make a transaction, they probably just eat it if its <10 Aug 01 21:14:47 they lose the transaction processing fee, indeed Aug 01 21:15:02 birbeck, but like I said, it's all a pain for the consumer if there's any dispute or stuff happening Aug 01 21:15:14 and stuff around getting invoice copies, etc. Aug 01 21:15:17 is there a resolution to submenus leaking windows on rotation?, ive been ignoring them but it seems so wrong Aug 01 21:15:28 don't leak them? Aug 01 21:15:38 i dont think it would really complicate it, you would still call your bank, for disputes Aug 01 21:15:39 (section 75 = for transactions over 100 pounds, your credit card provider is jointly and severally liable for the purchase - so if your X doesn't turn up, you can dispute w either the retailer or the card company. Aug 01 21:15:59 chargebacks happen at the issuer Aug 01 21:16:14 can anyone tell me just what method I need to call to query google to see if an in app item has been purchased? I'm completely burnt out after googling all day to no avail... Aug 01 21:16:33 ninjai, shouldn't it be in the IAP api docs? Aug 01 21:16:59 pfn, its part of the OptionsMenu in a FragmentActivity, i have handled dialogs manually before, but given that I dont initiate the submenu opening in the first place im unaware of any way to avoid the leak Aug 01 21:17:21 pfn, yes and no, I've been through them like 3 times plus many tutorials and its my first time doing in app billing and I'm so close to finishing. If I publish this now, people who uninstall wont get their purchases back.. Aug 01 21:19:09 pfn, you can name yours cards in the new google wallet when you set them up Aug 01 21:19:17 birbeck, it doesn't seem to let me Aug 01 21:19:32 Do I have to create a new project to make a widget for my app? Aug 01 21:19:55 seems nobody cares about these submenus: http://code.google.com/p/android/issues/detail?id=22730 Aug 01 21:20:03 fucking motorola and listviews Aug 01 21:20:06 like seriously Aug 01 21:20:07 argh Aug 01 21:23:33 How do I get from BillingHelper.restoreTransactionInformatio(nonce) to finding out if item "a" was purchased or not? I can't find any methods to do this in the API doc for in app billing.... Aug 01 21:23:45 I'm asking a simple question. Why is nobody answering? :| Aug 01 21:24:13 Kake_Fisk: because everyone is busy, and if you read the documentation, you will realise your answer is: no, you can use the same app Aug 01 21:24:27 Thank you Aug 01 21:25:09 canadiancow, lol Aug 01 21:25:15 Napalm If it makes you feel any better I wanted to know that too, but knew it was too trivial to ask here. Aug 01 21:26:18 ninjai: store a receipt on a server with a user id and a list of products they've purchased Aug 01 21:26:41 * S3nsat10n isn't sure if Google will handle receipting for you Aug 01 21:26:52 birbeck: not lol :( Aug 01 21:28:14 S3nsat10n, I was hoping for a more simple solution. I'm just starting out in developing and I'm not so horribly committed to have a server to store transactions. If I can do "BillingHelper.restoreTransactionInformation...", isn't that the same as receipting? Aug 01 21:28:15 anybody know how the sd card mounts in source? Aug 01 21:29:55 http://community.developer.motorola.com/t5/MOTODEV-Blog/Why-Does-My-ListView-Look-Different/ba-p/17462 Aug 01 21:30:03 "Because overScrollFooter was added in Android 2.3, and you want your application to run on multiple Android versions, you should define it in a theme that works on Gingerbread and up." Aug 01 21:30:08 xml attributes are safe, arent they? Aug 01 21:30:30 if you are building against an api version that supports it, yes Aug 01 21:30:44 canadiancow|work: yes Aug 01 21:30:46 and if you aren't, it wont matter how you do it... Aug 01 21:30:52 so wtf is moto smoking Aug 01 21:31:28 canadiancow|work: what are you trying to do? turn off overScroll? Aug 01 21:31:43 ninjai: my understanding is that if you use the 'managed user account' approach, you don't have to worry about any other steps...just call that method and restore what you get back Aug 01 21:31:46 he wants to get rid of the motorla listview background Aug 01 21:31:55 Napalm read that article Aug 01 21:32:03 like ughhhghghghg Aug 01 21:32:04 once the products are back in the app, then check if product 'a' is there Aug 01 21:32:25 canadiancow: yeah i agree, but generally i respect device themes Aug 01 21:32:40 if the app is ugly, then atleast its consistently ugly :) Aug 01 21:33:00 but dont break shit Aug 01 21:33:01 like Aug 01 21:33:09 though i did have to change it in one app that was using radically different backgrounds for the listview items Aug 01 21:33:39 S3nsat10n, perhaps I need to change my implementation then, because I essentially just remove ads if a donation is made. Once this happens, I have a boolean stored that says this version has had a donation applied to it and all ad sections are bypassed with a boolean check. I need to get the transation information so I can set my boolean to the correct value. Or am I over thinking this somehow? What can I do? Aug 01 21:34:09 because if the user uninstalls and re-installed, they will need to donate again, as it stands.. Aug 01 21:34:33 ninjai: just make a product called 'donation' and if the person makes one, purchase it Aug 01 21:35:04 you'll either get a product back or not when you restore Aug 01 21:35:46 marvelous: "java.lang.RuntimeException: Performing pause of activity that is not resumed" Aug 01 21:35:49 is this the right place to ask questions relating to hacking Android itself? Aug 01 21:36:58 the best part of that exception is the stack trace, everything originates from dalvik, com.android, android, and java.lang, nothing to do with me Aug 01 21:38:11 S3nsat10n, I'm not sure what you mean. Does google not keep track of or receipts for any in app purchases? Aug 01 21:38:43 Pwnna: read the channel topic you probably want #android-root Aug 01 21:38:57 yeah, i was debating. Aug 01 21:39:03 alirght thanks Aug 01 21:39:18 robb_www: incorrect, you can still cause it Aug 01 21:40:00 Napalm, interesting Aug 01 21:44:09 cant see what would cause it though, im not calling recreate, or onResume/onPause/onCreate directly Aug 01 21:44:17 so if I call RESTORE_TRANSACTIONS, those "transactions" are just in magic land? How the hell do I get *any* information about what was purchased with RESTORE_TRANSACTIONS? Aug 01 21:45:57 ninjai: if you're setting them up as managed transactions, google will keep track of the purchases Aug 01 21:46:32 http://developer.android.com/guide/google/play/billing/billing_admin.html#billing-purchase-type Aug 01 21:46:59 S3nsat10n, but how can I tell the status of them from within my app? Like I was saying earlier, I have a boolean that disables ads. I need to get some sort of information from RESTORE_TRANSACTIONS in order to make a decision or not. This is where I'm stuck Aug 01 21:48:08 like if I have items a, b and c, and user1 has purchased only item c, how can I tell? Waht if I have a statement that says if(c.isPurchased){ ... } Aug 01 21:48:13 it seems like there is no way to do that Aug 01 21:49:23 store that information on the device Aug 01 21:49:49 which brings me back to the original problem, an app reinstall Aug 01 21:50:03 or a phone upgrade Aug 01 21:50:04 etc Aug 01 21:50:49 http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/14608-android-app-billing-tutorial.html Aug 01 21:53:47 I'll give that a read, S3nsat10n, thanks Aug 01 21:57:03 except this code it weird. what language is this? Aug 01 22:01:00 vb on android, oh dear Aug 01 22:09:00 vb on android ? Aug 01 22:23:19 So there are hundreds of Android devices, eh... what I was wondering is: if there is a partial list of Android devices (popular ones especially) round the world? Different names, IDs, etc. Aug 01 22:23:39 Even a breakdown of hardware would be super cool. Aug 01 22:23:51 sureaint: what for ? Aug 01 22:24:30 just to know which hardware (i.e. wireless chipsets, cameras, etc) are more popular or used more often Aug 01 22:24:44 so I can maybe start writing drivers for those? Aug 01 22:25:02 Heck, I'd be really happy if there was something like `lshw` for Android phones Aug 01 22:25:22 the guys at #android-root will be able to help you more ... drivers aren't really a common topic here Aug 01 22:35:35 will BillingHelper.latestPurchase.isPurchased() return true if the item to be purchased has already been purchased and is a managed item? Aug 01 22:38:34 guys, im planning an app, what method is the normal for navigating through the app , action bar? or menu items? Aug 01 22:39:15 Depend on your sdk Aug 01 22:39:43 squadzone: im actually doing it through sl4a Aug 01 22:40:39 Don't use the Menu button. It is deprecated. Aug 01 22:40:53 .what your target sdk? If 14 above use actionbar if both for above or below 14 use actionbar sherlock Aug 01 22:42:49 if i want to cache downloaded images/text (stored as Drawables and Strings) is it better to use internal or external storage? Aug 01 22:43:32 gr8 thanks all , that's what i need :) Aug 01 22:43:35 it could eat up quite a bit of space, so i don't want to use up limited internal space, but it doesn't seem like something other apps should be allowed to access Aug 01 22:43:43 Depends on if you want them accessible to the user outside its sandbox Aug 01 22:44:09 If large images, you don't have a choice really Aug 01 22:46:54 themirror, CQN: ill have to think about that Aug 01 22:47:48 For stable.. use internal.. Aug 01 22:47:54 themirror, CQN: b4 starting i would really like to know from devs point of view, is sl4a capable of producing app just as good and nice as normal development? Aug 01 22:48:04 apps* Aug 01 22:48:09 So cant get FCs Aug 01 22:48:28 If external unmounted or damage Aug 01 22:49:09 u can always get FC's Aug 01 22:50:13 taljurf, I target as high api I can and support 2.1 and up. If you absolutely need a feature of a higher Android version, then bump up but otherwise things should be fine. It's highly dependent on what you want to do Aug 01 22:50:50 Then catch'em all xD Aug 01 22:53:38 How can I check for click on a widget? Aug 01 22:53:49 Onclicklistener Aug 01 22:53:50 button Aug 01 22:53:51 Not a component on a widget, but the widget itself Aug 01 22:54:19 themirror: no, what I need is pretty simple, smthng like an app which contains info, a map, and directories, nothing complicated but good looking , so far i've been using python with sl4a and html for pages Aug 01 22:55:08 Kake_Fisk: If declared in xml, use android:onClick and name a function that is public void and takes a View as only parameter Aug 01 22:55:26 ^agreed Aug 01 22:55:42 I'll try that, thanks Aug 01 22:56:16 Public void blabla (View v) { Aug 01 22:57:04 taljurf, if I were you I'd just get started. Don't worry about that now, api target is simply a flag in manifest... Aug 01 22:58:00 If you want to know for sure, check the full features list of each api Aug 01 22:58:38 themirror: gr8 ill do ^^ Aug 01 23:00:14 If my widget doesn't show up in the widget list, is there any common mistakes? Aug 01 23:09:43 themirror: what's the maximum "acceptable" space to use in internal storage? Aug 01 23:10:38 Sorry don't know off hand. What does Google say Aug 01 23:10:48 ...use ALL the space? Aug 01 23:11:32 To be safe, assume user is about to max out Aug 01 23:13:18 themirror: there's a cachedir option for internal storage Aug 01 23:13:34 the device will automatically delete cache files when internal storage is running low Aug 01 23:13:53 Okay, widget displays in list now, but I can't add it to the homescreen Aug 01 23:17:01 CQN sounds good just be sure to null check each cache lookup then Aug 01 23:18:56 themirror: you mean before assuming a file is there and trying to pull it? Aug 01 23:19:05 Yep Aug 01 23:19:53 Widget works :D Aug 01 23:23:40 themirror: alright, thanks Aug 01 23:23:51 :) Aug 01 23:24:04 hi all, I have a ScrollView defined in xml and I'm trying to keep the vertical scrollbar permenantly visible. I've tried all the commands I can find on the web: android:scrollbarAlwaysDrawVerticalTrack="true", android:fadeScrollbars="false", android:scrollbarFadeDuration="9999999" as well as disabling fade in the java code Aug 01 23:24:18 none of them are working, the vertical scrollbar disappears almost immediately Aug 01 23:24:41 Project uses Google APIs 2.3.3 Aug 01 23:24:49 g00s: while the use of VB on Android is... weird, it's nice to see more languages :) Aug 01 23:24:50 Any ideas what is causing this not to work ? Aug 01 23:25:16 All I want is to make it clear to that user that there are more items that they can scroll down to Aug 01 23:25:25 p_l|home, got scala, more than enough to satisfy any need ;-) Aug 01 23:26:05 pfn: I tried once, I tried twice, Scala still didn't manage to ensnare me Aug 01 23:26:31 I think its track record is worse than maven's, cause I actually got some project once to work with maven Aug 01 23:26:41 (before chucking the thing for overcomplexity) Aug 01 23:26:43 Anyone have experience with admob? Aug 01 23:26:54 Is it possible to make Drawable Shape draw horizontal lines each 16 pixels? Aug 01 23:27:55 p_l|home, running just about any other language on android has approximately the same level of complexity Aug 01 23:28:58 Kake Fisk off top of my head, make a resource of one pixel followed by 15 transparent, tile it (programmatically to avoid tiling bug) Aug 01 23:29:55 pfn: the complexity bit was wrt maven. In case of Scala... it would probably look cooler to me if I haven't really encountered it after Haskell, CL and Erlang Aug 01 23:30:28 p_l|home, well, if you want haskell, cl or erlang on android; scala is your best answer Aug 01 23:30:45 Oh, I have to do it programatically? Aug 01 23:30:47 you can use scalaz to use just about everything haskell feature, and actors for erlang's threading mechanisms Aug 01 23:31:26 Kake_Fisk unfortunately, you ought to. Xml tile has a bug through honeycomb Aug 01 23:31:35 Ahh, okay. Thanks Aug 01 23:32:04 it will draw without tile once in a blue moon. Romain said so on some stackoverflow thread Aug 01 23:32:09 pfn: ... you know that the "use X for Erlang's threading" is probably the worst argument ever? Cause it's not message-passing shared-nothing concurrency that makes erlang unique :D Aug 01 23:32:32 p_l|home, only thing I know about it that makes it unique to me :p Aug 01 23:33:04 Ew haskell. I took a haskell class in college and hated it. Good idea, terrible implementation Aug 01 23:33:12 pfn: because that's what people who don't use erlang think it's about ;) Aug 01 23:33:24 themirror: depends on how old your course material was :D Aug 01 23:33:52 * pfn isn't a fan of haskell for its terseness Aug 01 23:33:58 lots of scala tries to emulate that, and I don't like it Aug 01 23:34:09 themirror: mine was horrible (for Haskell). The thing was written for compiler that wasn't updated since a long time, and despite Haskell having sort-of spec (Haskell98, Haskell2010) the old one is ... obsolete Aug 01 23:34:14 Anyone have a min to help me? Aug 01 23:34:24 I'm looking for an example certificate to install from sd card Aug 01 23:34:35 Anyone have experience with admob for android? Aug 01 23:35:52 p_l|home, anyway, if your target is the jvm or anything similar, scala is a no-brainer choice Aug 01 23:35:59 T-Dub ask your question directly. I haven't used it, but don't expect anyone to help if that's all you're asking Aug 01 23:36:18 meh, I wish gson would name the field that failed to decode, rather than line/column in json Aug 01 23:36:40 Has anyone gotten house ads and mediation to work in admob? I'm having trouble understanding what some things mean. Aug 01 23:39:28 android-dev seems to be missing a section on "capturing sound" or maybe the indices don't really show this topic Aug 01 23:39:39 er http://developer.android.com Aug 01 23:40:29 nevermind foudn it Aug 01 23:40:43 https://developer.android.com/guide/topics/media/audio-capture.html Aug 01 23:48:10 what should i do with that class? Aug 01 23:49:11 holas Aug 01 23:49:25 sup? Aug 01 23:49:44 if i want to write an arbitrary object to file, does it have to have a getBytes method? Aug 02 00:01:05 Does anyone how admob chooses which house ad will be displayed? Aug 02 00:03:52 hmm. intellij says: "USB device not found" Aug 02 00:07:21 guys, because of my python-only-developing abilities i've never tried anything other than sl4a, this q may sound naive, what would u use mainly in android apps dev? Aug 02 00:07:28 what language i mean Aug 02 00:07:48 Java is the 'native' language for Android Aug 02 00:08:15 Leeds: so to normally develop apps on android, i have to know java Aug 02 00:08:21 is it that way? Aug 02 00:08:24 you should, yes Aug 02 00:08:50 The closest way you would get to using another language Aug 02 00:09:10 would be to wrap a bunch of cpp, iirc in a java frame (like for a game or something fast) Aug 02 00:10:15 You could always use ndk, but without knowing java, you're gonna be in a world of pain Aug 02 00:11:03 :( img clear now , thanks anyway :) Aug 02 00:11:21 Java isn't terribly different from python. Use eclipse Aug 02 00:13:29 themirror: when i read java i can understand it, but not to the level of being able to use it as a lang, so what im intending to do is check some samples, and modify them to my needs :) Aug 02 00:13:50 are you familiar with cpp? Aug 02 00:14:30 C++* Aug 02 00:14:41 Good luck to you. When I was in school, Java was canon, python was sugar Aug 02 00:17:43 i have basic cpp knowledge, still not enough :( Aug 02 00:17:59 Learn a bit of java first as you make your first app Aug 02 00:18:07 (use a framework/example one from google) Aug 02 00:18:15 then as you progress, dive into the ndk later Aug 02 00:19:25 CurlyBrace: looks like i have to sooner or later , almost all platforms require it Aug 02 00:19:42 Bleh this darn brightness code is still giving me issue... can anyone give me hand? I'll past bin the code for that file. Aug 02 00:19:49 Paste* Aug 02 00:21:32 Wow, typo fail xD sorry guys. Aug 02 00:25:36 DeadByLead: I was going to help you but then I noticed you said "past" instead of "paste" and now I'm too disgusted to give you the time of day. Aug 02 00:25:49 :p Aug 02 00:26:53 gah Aug 02 00:27:06 can anyone help me with some sdcard sourrce problems? Aug 02 00:27:25 CurlyBrace: what's your question ? Aug 02 00:27:30 I want an activity that's devided by a horizontal bar that can be dragged up and down. In the upper and lower regions there will be scrollable layouts. Are there any tutorials you know of that involve something like this? Aug 02 00:27:35 divided* Aug 02 00:27:42 Where is the code specific to mounting the sd card from AOSP? Aug 02 00:27:58 I can find where things in general are mounted, but I think that is shared code for mounting anything, not JUST the sdcard Aug 02 00:28:29 CurlyBrace: that sounds like a #android-root question Aug 02 00:28:50 I've asked in each chat about 4 times each today =/ Aug 02 00:29:33 ugh, guava doesn't have a fold function? ftl Aug 02 00:31:54 pfn: just use java like a normal person Aug 02 00:33:21 In the future everyone will use D Aug 02 00:33:36 in the past, many people used E Aug 02 00:34:03 everyone knows … http://imgur.com/gallery/sNH1T Aug 02 00:35:25 I just want a nice clean function to get an aggregate on a list... shouldn't be hard... Aug 02 00:35:26 bacon is the answer for clogged arteries Aug 02 00:35:40 NO BACON Aug 02 00:35:45 and these days bacon is overpriced and overrated Aug 02 00:35:53 pragma-: but thats one solution for population control, so it is still the answer Aug 02 00:35:58 they don't make bacon like they used to decades ago Aug 02 00:39:34 sumbitch, nest passed me over Aug 02 00:44:13 Hi guys, I'm trying to make an http post which includes string title, string description, and a list of images, onto a asp.net mvc action - anyone do anything similar to this? Aug 02 00:51:06 I'm a little confused... in the Eclipse graphical layout, my activity looks fine. When I run the app on my phone, some of the layouts have different dimensions. Any suggestions? Aug 02 00:52:50 hip2p: make sure the screen size in the graphical layout is the same as your phone if you want them to look the same Aug 02 00:53:19 also make sure you're not setting the sizes in px or making assumptions about the screen size Aug 02 00:53:39 ok thanks Aug 02 00:55:21 anyone know the mount point for the sd card? Aug 02 00:55:26 Is there any super easy way to package a web app as an android app? it's all html/javascript. Aug 02 00:55:43 Azelphur: WebView Aug 02 00:56:04 ryanm, I assume that's a GUI widget, was hoping to not have to dive into java Aug 02 00:56:30 Why in wiredaccessoryobserver we have a assumption regarding the headset state.I don't see a point why android assumes that in single sysfs we will be reporting both headset and headphone?Can we change this file? Aug 02 00:56:40 you are correct. You shouldn't have to do too much, though - it's basically a fully-functional browser Aug 02 00:57:07 fair enough, ty :) Aug 02 00:57:50 frameworks/base/services/java/com/android/server/WiredAccessoryObserver.java this file to be specific.Can we change it?As my kernel is latest and we are using extcon driver. Aug 02 00:58:23 anish[1]: you definitely can't change it as an app developer, no Aug 02 00:58:32 No as a OEM? Aug 02 00:59:33 Leeds, As a OEM?I feel that there is an inherent assumption here in this file about the reporting events. Aug 02 00:59:56 there is an inherent assumption that developers in this channel are working on apps... Aug 02 01:00:18 fair enough. Aug 02 01:18:40 why can I adjust the height of my relative layout all the way till it reaches "match parent", at which point it reverts to the original size it was at before resizing? Aug 02 01:19:26 What? Aug 02 01:22:01 I'm having a hard time explaining this Aug 02 01:22:46 yep Aug 02 01:23:20 ^lol Aug 02 01:33:20 so, I have a relative layout inside of a scroll view. I want the relative view to be the same size as the scroll view. However, when I drag the relative layout to match the size of the scroll view, it reverts back to about half the size of the scroll view Aug 02 01:33:27 all I want is for the relative to be the same as the scroll Aug 02 01:37:07 it's weird... I can resize the relative layout to be any size except for the exact size of the scroll view Aug 02 01:38:40 Having the child of a scrollview being match_parent makes no sense Aug 02 01:38:53 ok Aug 02 01:39:34 I just think it's weird to have the relative layout be slightly smaller than the scroll view Aug 02 01:39:37 it feels wrong Aug 02 01:39:49 What are you trying to do Aug 02 01:40:29 You want the relativelayout to be the exact same size as the scrollview.. Aug 02 01:40:32 I have 2 scroll views with a linear layout bar that separates them horizontally Aug 02 01:40:33 This means no scrolling Aug 02 01:40:36 I doubt that's what you want Aug 02 01:40:49 perhaps I should just get rid of the relative layouts Aug 02 01:41:01 scrollview can only have 1 child Aug 02 01:41:12 ok so ya I gotta keep the relative layouts then Aug 02 01:42:42 I don't really care how the scrollviews are positioned.. What are you trying to achieve with the content of them Aug 02 01:43:18 I want the content of the upper scroll view to be a very large textview, and then the lower scroll view will be a comments section Aug 02 01:43:47 the textview size will vary, as will the number of comments Aug 02 01:43:58 So the comments should probably be a listview Aug 02 01:44:12 hmm Aug 02 01:44:34 the upper one makes sense as a scroll view, right? Aug 02 01:44:50 Perhaps Aug 02 01:44:59 Is it necessary for the text to always be visible? Aug 02 01:45:09 if no, it could be a header of the listview Aug 02 01:45:41 well, I want to separate the two layouts because the upper one might also have pictures, videos, etc Aug 02 01:45:41 imo it should be a header you can scroll away to look at comments Aug 02 01:46:06 Once you're done with the content, that space is wasted Aug 02 01:46:42 what I'd really like is to have the separating bar be adjustable so that I can move it up to see more comments or move it down to see more of the text Aug 02 01:46:46 but I'm not sure how to do that Aug 02 01:48:11 is it possible to make a linearlayout movable so I can hide more of the upper or lower? Aug 02 01:48:23 With a custom view, sure Aug 02 01:48:32 ok cool I'll try that Aug 02 01:49:02 thanks for the help - it's hard for me to explain this Aug 02 01:49:27 Think about how the user is going to consume your content Aug 02 01:50:10 yea the best way would be to have this separating bar that can move up and down Aug 02 01:50:27 so the user can move back and forth between the text, videos, pics, etc and the comments Aug 02 01:51:23 Why not just have it as a header Aug 02 01:51:30 user scrolls down, text disappears automatically Aug 02 01:51:38 No need to readjust parts of the ui Aug 02 01:51:57 imagine youtube where the top part is the video and the lower part is the comments Aug 02 01:51:59 And if it's a large text, they first need to readjust the ui to see all of it Aug 02 01:52:08 I don't want the video to be pushed off the page because it's the focal point, ya know Aug 02 01:53:17 That's one case where it might make sense Aug 02 01:53:31 But unless your content is only video, I don't really like it Aug 02 01:53:39 Oh well Aug 02 01:53:43 hmm Aug 02 01:53:50 do you have an example of using a header in that fashion? Aug 02 01:54:04 Think of it as the first item in a listview Aug 02 01:54:07 right Aug 02 01:56:41 guys, when was the menu button depricated? Aug 02 01:57:09 4.0 Aug 02 02:00:22 canadiancow: so ics = no menu button at all? Aug 02 02:00:33 well... you can put ICS on a phone with a menu button Aug 02 02:00:44 in which case it just triggers the overflow menu in the actionbar Aug 02 02:00:55 and some OEMs are still including it in new devices Aug 02 02:01:32 canadiancow: no from a software wise no menu right? Aug 02 02:02:34 taljurf, just forget it ever existed :) Aug 02 02:03:44 themirror: oh, because i found something which i thought was written in 2012, nm its since 2009 Aug 02 02:06:19 taljurf: i believe if you use the actionbar by default the otherflow icon will dissapear even the device is ics+ provided it has a menu button Aug 02 02:06:50 dont you get the virtual software menu button appear? Aug 02 02:07:07 ugh, virtual software menu button ugh Aug 02 02:07:17 no, you have to explicitly say you want it if they have a hardware menu button Aug 02 02:07:25 That's legacy support Aug 02 02:07:39 If you have that, there's a pretty good chance your app sucks Aug 02 02:07:53 lol it's not so bad Aug 02 02:08:03 Napalm: i do, but whats the use if current and future hardware dont Aug 02 02:08:06 it's pretty bad if it's a current app Aug 02 02:08:14 ^ Aug 02 02:08:18 im supporting 2.2+ on my current project and deving on 4.0.4 Aug 02 02:08:44 haven't had any major issues yet Aug 02 02:09:14 "there's a pretty good chance your app sucks" , nice one simon :) Aug 02 02:14:06 im supporting 2.1+ and devving on 4.1.1 Aug 02 02:14:11 its all aobut knowing thea pis Aug 02 02:14:13 the apis Aug 02 02:14:15 and not being a noob Aug 02 02:14:20 and doing view.setAlpha(0); Aug 02 02:14:30 ^ this Aug 02 02:15:11 does anyone know why my traceview wont work? it just says something about usage: -r regression only Aug 02 02:15:28 googling has proved to be futile Aug 02 02:54:40 http://developer.android.com/about/dashboards/index.html Aug 02 02:54:46 that's pretty impressive - ICS just overtook Froyo Aug 02 02:56:03 Woah Aug 02 02:56:04 how Aug 02 02:56:12 What massive amount of phones just got activated? Aug 02 02:56:28 You're pretty impressive Aug 02 02:56:33 lots of upgrades actually happening Aug 02 02:56:43 * p_l suspects giant CM9 install party Aug 02 02:57:13 or a lot of owners of cheap devices getting a new cheap device like Swift L7 or similar Aug 02 02:57:30 I don't know anyone running under 2.2 Aug 02 02:57:48 I doubt CM is on enough devices to make an impact on the stats Aug 02 02:58:31 SimonVT: it was, iirc, responsible for some big jumps on some devices, iirc Aug 02 02:59:17 Wow xhdpi-large from unlisted to 4.5% Aug 02 02:59:34 anyway, I suspect this was more people's contracts expiring and thus getting a new phone, which coincidentially resulted in ICS jump Aug 02 02:59:47 According to their own stats they are on just under 3m users.. That's a weeks worth of activations **** ENDING LOGGING AT Thu Aug 02 02:59:58 2012