**** BEGIN LOGGING AT Fri Apr 27 03:00:00 2012 Apr 27 03:08:13 hmm Apr 27 03:08:14 gimps Apr 27 03:08:41 is there a way to give users free copies of your app yet? Apr 27 03:08:47 besides sending apk? Apr 27 03:09:01 I got this on orientation change: 04-27 13:07:56.451: E/WindowManager(30521): Activity <>.Overview has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405ccab0 that was originally added here 04-27 13:07:56.451: E/WindowManager(30521): android.view.WindowLeaked: Activity <>.Overview has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405ccab0 that was originally added here Apr 27 03:09:24 What is this relevant to? No clue what a DecorView is. Apr 27 03:09:54 http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added Apr 27 03:09:59 3 secs on google Apr 27 03:10:04 So there is no way to give users free copies of your paid app yet? Apr 27 03:10:18 sarcasteak, you could make the app 'free' with limited functionality, then send them a keycode to enable full access... Apr 27 03:10:23 sarcasteak: not that I know of besides sending apk and installing via unknown sources Apr 27 03:10:28 then i'm updating 2 apps Apr 27 03:10:37 so dumb Apr 27 03:11:05 really kills android kickstarter projects if you want to give people free app Apr 27 03:11:09 for donating Apr 27 03:11:45 you'll have to just send them apk's Apr 27 03:11:48 QubeZ: ah Apr 27 03:11:50 they can still update via Market later Apr 27 03:12:02 how can they? Apr 27 03:12:08 it won't be on their google account Apr 27 03:12:09 sarcasteak: I guess that's why humble bundle went their own app + download apk way, huh Apr 27 03:12:11 so they can't update Apr 27 03:12:14 oh wait, not paid yea... Apr 27 03:12:40 they can install over the one they already have installed as long as its an upgrade i.e. versionCode incremented Apr 27 03:13:00 yea vadi, but making a user install apk manually is not a good deployment method Apr 27 03:13:31 nope. I agree that this should be handled better. Apr 27 03:13:38 sarcasteak: if you want a few users to have it, then have them pay for it and then refund them Apr 27 03:13:55 even apple has promo codes Apr 27 03:14:57 yea qubez, that might not be too bad, but I was going to try to kickstart my 75% complete game, and I want to give them a free copy if they donate 5 dollars or w/e Apr 27 03:15:10 so in theory it could be thousands of people Apr 27 03:15:37 send request to google. when enough people want it, they'll make it Apr 27 03:16:08 google doesn't seem to be very responsive to customers/emails though Apr 27 03:16:16 its IT support is a ghost town Apr 27 03:16:32 maybe I'll give it a try though Apr 27 03:16:33 agreed. Apr 27 03:16:43 maybe I can get a lead dev's email address or something Apr 27 03:17:30 thx for info guys Apr 27 03:17:36 sarcasteak, put it on google groups. Apr 27 03:17:44 the devs are pretty active there apparently Apr 27 03:17:58 is there a specific community you recall? Apr 27 03:18:21 hmm how the hell can I insert a null for a column in sqlite if another row has null in the same place? For example, I am copying a row from my table into another row and the code is working for the most part but when say parentId is null, then after I do the copy it ends up as 0 inserted into next row. Apr 27 03:18:33 its from the getInt method, but I need to ensure null is added Apr 27 03:18:43 I guess getInt is interpreting null value as 0 Apr 27 03:44:38 http://thinkandroid.wordpress.com/2010/01/11/custom-cursoradapters/ Apr 27 03:44:59 Can anyone tell me if that code is best practice? It seems very inefficient to me but I am not very familiar with cursoradapter Apr 27 03:46:23 for one thing, the constructor he uses is deprecated. Google says to use a loadermanager and a cursorloader, but that seems like way too many levels of abstraction for my brain Apr 27 03:48:23 so use a loadermanager and cursorloader Apr 27 03:48:31 but too bad cursorloader must be used with contentproviders Apr 27 03:48:37 make your own AsyncTaskLoader Apr 27 03:48:45 =S Apr 27 03:49:06 all i want to do is list elements of a DB in a listview fragment Apr 27 03:54:47 regarding Google getting back to people, they finally got back to me after 3 months for my request to bump up my Google Places daily quota from 100,000 queries/day to 400,000. After I made two changes to my app, they up'd it. Apr 27 03:54:53 wooohooooo Apr 27 03:55:23 oh... QubeZ were you the GPS to-do guy? Apr 27 03:55:29 *nod* Apr 27 03:55:42 do you know the All About Android podcast? Apr 27 03:55:50 Leeds: no Apr 27 03:56:02 do you know TWiT? Apr 27 03:57:02 no Apr 27 03:57:07 okay, twit is a podcast network (and also the flagship show on that network), aaa is their Android podcast... Apr 27 03:57:10 man im feeling stupid and out of touch now hehe Apr 27 03:57:58 in this week's edition, they were talking about some hack with locale to get location-related to-dos to work, and one of them said that they thought remember the milk might do it... you might want to give it a listen and drop them a line, get yourself some on-air publicity Apr 27 03:58:24 http://twit.tv/show/all-about-android/57 Apr 27 03:58:38 nice, thanks for the heads up Apr 27 03:58:49 huh, how do loaders communicate errors to their clients? Apr 27 03:59:43 np Apr 27 03:59:49 Leeds: wonder why they would need a "hack", Google Places offers what one would need to implement location based tasks like To Do Mapr has implemented Apr 27 04:00:05 i'll give it a listen Apr 27 04:00:17 ( pfn ): I make my loaders return a specific result on error Apr 27 04:00:43 from their shownotes, they were talking about astrid and locale together - I suspect they mean setting an alert in locale to start astrid when you're in/near a specific location Apr 27 04:01:08 it was towards the end of the show if you don't feel like a long listen Apr 27 04:01:12 oh, that sounds like proximity alerts Apr 27 04:02:12 the listener query they were answering was "I'm looking for a app that notifies me my to do or tasks by location." Apr 27 04:02:56 t0mless, yeah, that's so halfassed Apr 27 04:03:10 a bit, yea Apr 27 04:03:12 Leeds: cool man, much appreciated. I'll see how I can post to their site. Apr 27 04:03:30 QubeZ: I think you want to listen to it, then email them... Apr 27 04:03:32 they could have easily made an onLoaderError() callback with the other ones Apr 27 04:03:45 Leeds: ya, thats what I meant. Listening now. Apr 27 04:09:17 I don't need or want a content provider to use my database. What ways can I provide database objects to a listview that do not involve this requirement? Apr 27 04:10:13 Leeds: you sure its this episode? 57 ? Apr 27 04:10:19 QubeZ: pretty sure Apr 27 04:10:35 oh ok you're right, i see it in their notes... trying to find the place Apr 27 04:10:40 i'll keep scrubbing through Apr 27 04:10:48 I did say near the end :) Apr 27 04:11:01 it must be short, i might have skipped it Apr 27 04:11:06 im scrubbing the last 20 mins Apr 27 04:11:26 ahh found it Apr 27 04:16:02 I wonder if guava has an either type Apr 27 04:19:24 huh, guava doesn't have a pair type? :( Apr 27 04:19:33 or a pear? Apr 27 04:21:31 I guess I'll have my loaders return a result object that contains the data Apr 27 04:21:51 guys, what is the difference between SimpleCursorAdapter.bindView() and SimpleCursorAdapter.newView()? Apr 27 04:22:34 and which one is called by the adapter when it increments the cursor? Apr 27 04:23:38 hesperaux: watch the listview from google i/o by romain guy. I watched that 1 hr vid and learned how to implmenet adapter + listview properly Apr 27 04:23:42 i.e. with viewholder pattern Apr 27 04:23:51 QubeZ, i've seen that video Apr 27 04:24:11 it doesn't talk about CursorAdapters, only ArrayAdapters if i recall Apr 27 04:24:45 i don't think he mentions bindView or newView either, only getView() Apr 27 04:29:22 i dont use getView, i only overwrote newView and bindView in my adapter Apr 27 04:29:29 for my adapter Apr 27 04:33:11 when the screen fades out during an alertdialog, is there a way to put a view over this fade out? Apr 27 04:34:41 hmm, how do loaders continuously update results Apr 27 04:36:05 hesperaux: see the CursorAdapter#getView() Apr 27 04:43:03 hi, how can i implement the scrollable tabs on this android desgin guidelines page http://bit.ly/Iv7OS2 ?s it just using a regualr tab layout with Apr 27 04:43:11 the ongesture function? Apr 27 04:45:33 dude isnt that just a viewpager? Apr 27 04:46:54 oh it is Apr 27 04:46:58 thanks! Apr 27 04:47:31 just beginning android development, so never came across it before Apr 27 04:49:29 my question was about the differences between getView, bindView, and newView. I don't understand why there is a discrepancy there, and most of the examples for SimpleCursorAdapter use bindView and newView but do not override getView. Apr 27 04:53:33 cursoradapter overrides getView method, and it calls newView to create just the 'new view' and bindView to bind the cursor data to that new view. Apr 27 04:55:10 http://bit.ly/I6fmZC Apr 27 04:55:11 could you tell me how android show gui without config_vt in kernel Apr 27 04:55:51 so my cursoradapter still needs to implement getView as usual using viewholders and all that Apr 27 04:56:49 ducky_h, good link. i'll examine what they've done tomorrow Apr 27 04:56:58 man I got a lead on a job making GOBS of cash Apr 27 04:58:29 ron_frown: makeGOBSofcash.com? Apr 27 04:58:40 Does the documentation at d.android.com assume a working knowledge of Java? Apr 27 04:58:44 anybody have tips on how to create a floating view alongside a dialog? Apr 27 04:58:55 mukti, definitely Apr 27 04:59:26 no its actually legit Apr 27 04:59:29 hesperaux, but if you don't care the cost of 'findViewById', I think inheriting CursorAdapter things is simple. Apr 27 05:00:08 i had intended to fix getView() as usual, but i'm still figuring out how it relates to bindview and newview Apr 27 05:00:38 http://goo.gl/M5r9J <-- how the ad is in focus and the main screen is fade out Apr 27 05:02:51 asynctasks and activities. how you note the tasks that activity is distroyed? Apr 27 05:06:57 what is something with higher scope than a transaction? Apr 27 05:07:01 i installed the google api and want to create an app that uses the apis. can it be tested in the emulator or can it only be tested on an actual device Apr 27 05:07:04 something that contains multiple transactions? Apr 27 05:07:38 looking solely for nomenclature Apr 27 05:07:46 devslash: you can build an AVD which has the Google APIs, or not Apr 27 05:07:55 JakeWharton: session? Apr 27 05:08:14 i installed the apis , added the line in the manifest but it still won't load Apr 27 05:08:27 devslash: you can build an AVD which has the Google APIs, or not... did you do that? Apr 27 05:08:39 does the maps app need to be installed in the emulator Apr 27 05:08:47 not initially Apr 27 05:08:58 then you need a new AVD Apr 27 05:08:59 i mean, when i created it, i didn't specift Apr 27 05:09:05 you can't modify an existing and ? Apr 27 05:09:08 avd Apr 27 05:09:13 to use it Apr 27 05:09:59 much easier to create a new one Apr 27 05:10:18 you could have created it and be waiting for it to boot by now :) Apr 27 05:10:23 weird Apr 27 05:10:51 i went to the sdk manager. i downloaded the api and it changed from not installed to installed but now it says not installed again Apr 27 05:11:42 I've seen that before too Apr 27 05:11:51 I think it was becuase I did an upgrade of the avd manager at the same time Apr 27 05:12:11 hmm Apr 27 05:19:40 Leeds: ok I'm booting the new avd now Apr 27 05:22:33 I getInt on my cursor for a column that is null but getInt returns 0 in cases where its null... anyone know how to handle this situation? Make it actually return "" or null so I can insert that value into my new row? Apr 27 05:22:42 I'm doing a duplicate row function Apr 27 05:22:50 taking frickin forever Apr 27 05:23:42 Leeds: is it normal for it to take longer to boot an and that uses the google api ? Apr 27 05:24:09 devslash: try the x86 android project, its fast Apr 27 05:24:22 um how does that work ? Apr 27 05:24:29 is that like a native emulator ? Apr 27 05:24:40 no, but it's normal for the first boot to take long enough to jump in the car, run out to a restaurant, wait for a table, spend a while reading the menu, have a starter, main course, dessert, back to the car, fill up with fuel on the way home, and find it's almost done booting when you get back Apr 27 05:24:58 no kidding Apr 27 05:25:03 you install the image as an instance in virtualbox then boot it and you can even hook eclipse right into it so you can push/pull and run code directly from eclipse Apr 27 05:25:32 i might have to do that. Apr 27 05:25:41 see this and see if it works for your needs: http://www.android-x86.org/ Apr 27 05:25:50 its super fast Apr 27 05:26:35 er... alternatively you use the virtualised images which are now provided in the SDK? Apr 27 05:29:38 i don't think that'd work for me Apr 27 05:29:51 how will that work since i need the google api Apr 27 05:30:11 devslash: the android-x86 ? Apr 27 05:30:18 yes on android-x86 Apr 27 05:31:49 true, well i guess if you want fast emu... you can use the intel based 2.2 emu image in the sdk Apr 27 05:32:04 otherwise, keep using the old ones and wait for the newer images to be released Apr 27 05:32:32 Leeds: if i connect my device to my computer via usb can i run the app on the device while logging output interactively ? Apr 27 05:32:52 devslash: thats what I do Apr 27 05:33:02 how ? Apr 27 05:33:09 I'm not talking about android-x86 Apr 27 05:33:11 i haven't used emu for development in about 6 months Apr 27 05:33:24 devslash: ya, i run my code directly on a HTC Incredible Apr 27 05:33:27 my test phone Apr 27 05:33:38 using android-x86 ? Apr 27 05:33:52 no, eclipse directly to my phone via usb Apr 27 05:33:56 devslash: yes, you can do that - there are pros and cons vs the emulator Apr 27 05:34:09 well I'm testing an app that uses the gps Apr 27 05:34:17 i prefer the phone for my dev because I do a lot of location-aware stuff and its just better to use the real hw Apr 27 05:34:26 and it doesn't seem to be responding. I'm wondering if the gps works properly in the emulator Apr 27 05:34:29 devslash: you can use emu and push gps coords to the emu via DDMS Apr 27 05:34:38 but I found it to be flaky Apr 27 05:34:44 hence, I use a real phone Apr 27 05:35:02 can anyone here tell me why NONE of the multiupload.com links (which everyone doing new roms seems to love to publish through) ever works for me? Apr 27 05:35:16 I440r: thats not our problem Apr 27 05:35:27 correction: thats not our problem to solve Apr 27 05:35:32 im just asking if anyone knows WHY? Apr 27 05:35:38 no one knows Apr 27 05:35:48 is it just me? or the same for everyone Apr 27 05:35:55 yes Apr 27 05:35:58 I440r: this is the wrong place to ask Apr 27 05:36:15 united states federal gov started blatantly shutting down sites like that Apr 27 05:36:16 ok so whats the right place to ask Apr 27 05:36:29 I am sure the ones that remain are just trying to pre-emptively save their own asses Apr 27 05:36:41 #android-root if thats where those guys put roms Apr 27 05:37:34 ty Apr 27 05:38:06 how do i share my internet connection with the emulator ? Apr 27 05:38:26 it should just work Apr 27 05:38:46 it doesnt Apr 27 05:38:47 t Apr 27 05:38:55 how does it appear in the emulator ? Apr 27 05:39:09 does it connect via wifi Apr 27 05:40:57 by default emulator is routed to network traffic Apr 27 05:41:02 unless you are doing something weird Apr 27 05:41:06 i think i figured it out Apr 27 05:41:41 I read that you need to add -dns-server dnsipaddress in target run configurations Apr 27 05:43:58 yup Apr 27 05:44:02 that did the trick Apr 27 05:44:06 I never had to fuck wiht that Apr 27 05:47:04 hi, there Apr 27 05:47:30 I'm going to install a new gerrit instance, which release is better choose? 2.4 rc0 or 2.3? Apr 27 05:47:56 unless you plan on running it on your android phone, id say its irrelevant to the channel Apr 27 05:49:12 "After Samsung confirmed record earnings for the March quarter on Friday, a set of new analyses estimate that the company overtook Apple to become the world's largest smartphone vendor while simultaneously passing long-time leader Nokia for the top spot among global mobile phone vendors." Apr 27 05:54:36 they must be stoked Apr 27 06:05:08 heya h00s Apr 27 06:05:43 i need to try gerrit Apr 27 06:05:59 *i need to try gerrit in a context that's not AOSP Apr 27 06:12:14 holy fuck, this is amazing http://mashable.com/2012/04/26/planetary-resources-asteroid-mining-trillions/ Apr 27 06:13:37 er, wasn't that announced like a week ago? Apr 27 06:14:42 yeah, but i didn't see how much the asteroid was worth Apr 27 06:14:46 20T Apr 27 06:14:50 yeah, me neither Apr 27 06:14:56 actually i didn't even bother to read any articles Apr 27 06:14:57 headlines only Apr 27 06:15:00 <3 Twitter Apr 27 06:20:24 i installed the google api but when i do import com.google.android.maps.MapActivity; I'm getting an error that the class doesn't exist Apr 27 06:20:48 are you compiling with said API? Apr 27 06:21:01 i think so Apr 27 06:21:03 do you have uses-library in your manifes? Apr 27 06:21:06 yes Apr 27 06:21:16 Apr 27 06:21:30 which is right below android:label="@string/app_name" > Apr 27 06:22:08 if anyone thinks android is ugly now; this is what it looked like in early 2007 http://www.theverge.com/2012/4/25/2974939/android-in-early-2007-looked-very-different-than-it-does-today Apr 27 06:22:25 i developed for Android when it was a Blackberry Apr 27 06:22:29 and had no touchscreen Apr 27 06:22:34 JakeWharton: any idea? Apr 27 06:23:19 right in the middle of the first Android Developer Challenge they introduced Android 0.9 which totally revamped the whole platform moving it more towards a touchscreen-based UI Apr 27 06:23:28 I had to basically throw out 90% of my app Apr 27 06:23:35 :O Apr 27 06:24:10 I still have the Android 1.0 emulator but I can't find a 0.9 one anywhere Apr 27 06:24:17 nor the pre-release SDKs Apr 27 06:24:45 iirc you can still download it from google can't you ? Apr 27 06:25:02 SDK Manager only lets you go back as far as 1.5 Apr 27 06:25:37 any idea about my google maps issue Apr 27 06:25:53 nope Apr 27 06:26:10 ok i created a new and and set it to use google apis as the target Apr 27 06:26:29 avd Apr 27 06:27:29 g00s: when people complain to excess about the Android APIs in relation to iPhone I point them to screenshots like those and say "Applicatons that were developed for the pre-release SDKs still work on Android 4.0." Apr 27 06:27:43 i'm not saying our APIs don't suck every now and then Apr 27 06:27:48 but that's a damn impressive fact Apr 27 06:27:55 :) Apr 27 06:28:18 I really wish I could get my hands on those old SDKs Apr 27 06:28:19 "Kindle Fire makes up over half of Android tablet market share, says comScore" :( Apr 27 06:29:06 i fixed it Apr 27 06:29:57 I forgot how fucking sexy c# was Apr 27 06:29:58 =( Apr 27 06:29:59 JakeWharton: and the way you can make different layouts for different versions of android that is automatically selected kicks iOS right in the vagina Apr 27 06:30:22 ron_frown: getting a windows laptop soon to do wp development :D Apr 27 06:30:22 resource filtering is arguably the most powerful feature of Android Apr 27 06:30:30 and it truly is Apr 27 06:32:08 so c# is in my future Apr 27 06:34:38 dart is in my future Apr 27 06:34:40 or kotlin Apr 27 06:35:06 and neo4j Apr 27 06:39:44 never heard of any Apr 27 06:39:56 g00s - you done c# before? Apr 27 06:40:15 ron_frown: nope Apr 27 06:41:16 oh god Apr 27 06:41:19 I'm tempted to tell you not to Apr 27 06:41:51 its very spoiling Apr 27 06:51:30 I cringe at the thought of having to learn a language specific to a company Apr 27 06:51:44 Like Microsoft or Apple Apr 27 06:52:40 Only thought behind is to be as incompatible and as possible and hope for their monopoly to beat the other Apr 27 06:52:48 That's my feeling of it all at least Apr 27 06:53:02 as incompatible as possible* Apr 27 07:05:38 Hi! How can i send a file from one app to another (both developed by me)? And how can i check inside one app if the other is installed? Apr 27 07:12:01 Mikellip - actually both platforms you suggested (I'm guessing you were referring to obj-c and c#) are not specific to any platform Apr 27 07:12:20 sure they were created with something in mind, but mono is VERY capable outside windows Apr 27 07:12:29 and there are objc compilers for tons of platforms Apr 27 07:15:23 you can develop for android with it Apr 27 07:15:26 xamarin.net Apr 27 07:15:48 though, i wouldn't personally use it. Apr 27 07:17:25 why not? Apr 27 07:17:37 someone just told me to start learning it Apr 27 07:19:12 because I don't know C#, and because if I did, java is such a similar language that it wouldn't make sense to use C# to develop for android, when your skills will mostly transfer over to java after about a week of coding and reading docs. Apr 27 07:20:04 oh ok but I enjoy learning other langs Apr 27 07:20:31 so do I, but I also use the right tool for the job Apr 27 07:20:46 you should avoid introducing extra complexity into software if possible Apr 27 07:21:27 I'm having problems with a ExpandableListView. The child divider will not draw. It will just leave transparent space (exactly the size of the 'normal' divider). I tried XML and Java, but in both cases it won't draw the childdivider. Anyone knows why? Apr 27 07:21:48 I tried using eclipse a couple of times but it uses up resources quite a lot Apr 27 07:22:04 niles11_ make sure you didn't set fill_parent on the "child"'s height Apr 27 07:22:13 I think xamarin is to be used only for multi-platform Apr 27 07:22:20 Criztian: you need to get more ram Apr 27 07:22:28 eclipse allocates like 700mb just to have for its own private use Apr 27 07:22:39 it's not actually using that much, it allocates a heap and is stingy with the memory it reserves Apr 27 07:22:42 on a macbook pro Apr 27 07:22:48 I got 4gb Apr 27 07:22:57 eclipse works fine on my linux box with 4gb Apr 27 07:23:11 but i might have more free ram than you in general Apr 27 07:23:14 but I have other platforms open too that's the point Apr 27 07:23:31 well then you obviously need more ram Apr 27 07:23:39 will play a bit more with it Apr 27 07:28:47 sounds like google is kicking oracle Apr 27 07:28:50 's ass in court Apr 27 07:28:55 http://www.groklaw.net/article.php?story=20120426075025438 Apr 27 07:30:11 @readme do you mean the root layout in the xml that is inflated as a child? Because I set the height to wrap_content and it makes no difference Apr 27 07:30:43 niles11_: show me that layout Apr 27 07:31:46 lol funny how it was rendered as a comic book dialog Apr 27 07:35:30 @readme Apr 27 07:35:36 http://pastebin.com/CXaCdxz1 here you can find my code Apr 27 07:41:53 niles11_: why do you nest the relativelayout inside the linearlayout Apr 27 07:42:12 also I don't think that your problem is in this part of the code Apr 27 07:42:19 i looked and it renders ok Apr 27 07:42:26 at least, without your styles and such Apr 27 07:43:18 I nest the layouts because you can't give the root layout margins (at least, not on the left side, they will always be added to the right side). It's a bit stupid but I could only manage to get the layout I wanted with this nested layout. Apr 27 07:43:43 why not use padding Apr 27 07:44:43 the difference between margin and padding is that of inner and outer Apr 27 07:45:14 I know Apr 27 07:45:20 but I need the inner layout to have a background Apr 27 07:45:27 (so the relativelayout) Apr 27 07:46:14 Would I use padding, it will still make the background image use up the entire layout Apr 27 07:46:30 that is a good question Apr 27 07:48:52 why are you setting wrap_content on the layout_width of your root element? Apr 27 07:48:52 wtf, google drive tos Apr 27 07:49:00 g00s: i know right Apr 27 07:49:21 " When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide license to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes that we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content."' Apr 27 07:49:26 fuck you :) Apr 27 07:49:48 they are a data mining company dude Apr 27 07:49:53 i don't know why that surprises you Apr 27 07:49:55 yeah yeah yeah Apr 27 07:49:57 that's just google as usual Apr 27 07:50:00 they are standard terms Apr 27 07:50:07 g00s: can you just upload everything encrypted there? Apr 27 07:50:11 nobody at google gives a shit about your content Apr 27 07:50:36 they're all too busy with the free food, massages, unlimited supply of alphabetised desserts... Apr 27 07:50:46 Leeds: they are standard for google i guess :) Apr 27 07:51:17 g00s: standard for cloud storage... legally, letting you access your own stuff constitutes making a copy, so you have to give them permission Apr 27 07:52:13 Leeds: the tos for dropbox and the ms alternative are more restrictive; essentially what is required to make the service work (like copy data from one server to another) Apr 27 07:52:21 this is not that Apr 27 07:54:45 @readme: I set it to wrap content because I wanted to test that. You told me so, and I knew you were probably talking about the height, but I thought about testing the width too. Didn't change it yet, but it makes no difference to the way the layout looks Apr 27 07:55:05 dropbox don't actually appear to *have* a proper TOS anymore, just a chatty document which talks vaguely about terms Apr 27 07:55:53 niles11_: your layout is probably OK Apr 27 07:55:57 by accepting you give us the right to own you and your great ideas for the rest of your life Apr 27 07:55:57 problem must be somewhere else Apr 27 07:56:31 * readme keeps his good files in his own servers Apr 27 07:57:43 I can show you the Java file if you think the problem is in that file? Apr 27 07:58:33 niles11_: try to come up with some ideas as to why it doesn't work before you show us more Apr 27 07:58:55 print logs, etc. make a testcase. Apr 27 08:01:26 The problem is I don't know. I've had big problems with a standard ListView recently, and in the end I had to file a new issue on Google because it was just a bug. It seems to me something similar is the case here. It's starting to bug me a bit that I'm walking into all kinds of Android problems that should be really simple and obvious to use but just don't work because of bugs... Apr 27 08:03:32 pastebin the java code I guess, but take a screenshot of what you actually see and describe what the expected result was somewhere. Apr 27 08:12:47 @readme Apr 27 08:12:52 hello Apr 27 08:12:59 this is a screenshot of my problem Apr 27 08:13:02 http://niles11.dyndns.org/screenshot.png Apr 27 08:13:11 why am i getting this error when configuring eclise Apr 27 08:13:15 eclipse* Apr 27 08:13:16 Cannot complete the install because one or more required items could not be found. Apr 27 08:13:16 Software being installed: Android Development Tools 18.0.0.v201203301601-306762 (com.android.ide.eclipse.adt.feature.group 18.0.0.v201203301601-306762) Apr 27 08:13:17 Missing requirement: Android Development Tools 18.0.0.v201203301601-306762 (com.android.ide.eclipse.adt.feature.group 18.0.0.v201203301601-306762) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found Apr 27 08:16:12 hi Apr 27 08:16:51 I am new to the dev world. I just got my vm running and a kitchen set up. Where can I find a custom stock rom for the one s? Apr 27 08:16:52 I have an ImageView with an image set in it, how to fade out this current image and fade in a ne one ? Apr 27 08:16:56 new Apr 27 08:16:58 one Apr 27 08:17:38 xda was the first place I looked all I could find is senseless and themed Apr 27 08:17:47 all what what I found on google doesn't do it exactly Apr 27 08:19:34 niles11_: you're missing tyhe space between the header and the text there? Apr 27 08:20:33 I want the grey part to be attached to the green part Apr 27 08:25:32 it's not apparent to me why that is happening Apr 27 08:27:00 hello guys Apr 27 08:27:19 anyone have any ideas how to get list of image albums from content provider? Apr 27 08:29:41 o.k. better question what kitchen do you all use if any Apr 27 08:35:25 niles11_: post the layout please Apr 27 08:38:16 err guys.. anyone knows the answer to my questions? Apr 27 08:38:30 i have been searching for a while but i couldn't get the answers Apr 27 08:45:34 OK my little world has gone insane. Apr 27 08:45:41 android list targets # yields nothing Apr 27 08:45:54 strace android list targets 2>/dev/null # shows a bunch of targets. Apr 27 08:46:22 zylith: a vm and a kitchen doesn't make you a dev. this channel is about writing android applications. you may want to ask in #android-root Apr 27 08:46:26 Neeeeeeeeeeeeevermind. I suck. Apr 27 08:46:50 (I had an "android" shell alias) Apr 27 08:58:15 I never said I was a dev. Apr 27 08:58:25 well, you're in the wrong channel then Apr 27 09:12:40 i'm trying to get rid of all the missing contentDescription warnings Apr 27 09:12:52 for some UI elements there's no sensible description Apr 27 09:13:09 so i wonder if android ships with an @android:string/... which i could use for that Apr 27 09:13:17 @android:string/untitled for example? Apr 27 09:15:49 it's simple enough to define my own string for that, but i wonder if android already ships with a suitable string Apr 27 09:16:05 tapas Apr 27 09:16:09 yes Apr 27 09:16:18 For instance there is @android:string/ok Apr 27 09:19:49 what should I do to solve this: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.TransitionDrawable ? Apr 27 09:21:10 cyrilmottier: yeah i looked through these, but they seemed all to be pretty much specific.. Apr 27 09:21:17 maxagaz: Do not cast it :p. Apr 27 09:21:48 cyrilmottier: i created an empty string in strings.xml called "no_content_description".. this is good enough to remove the warnings and searchable if i lateron want to change it.. Apr 27 09:21:49 cyril, I like that :) Apr 27 09:22:24 cyrilmottier: indeed, that's because I did a setImageBitmap on the image view Apr 27 09:25:07 Has anyone tried ARCA yet? It does't log 3g/wifi signal strength at the time of crash, right? Apr 27 09:26:10 ACRA, typo Apr 27 09:28:43 tapas: I suggest you to remove the warning instead of using a useless string Apr 27 09:29:11 You can choose which warnings will be generated by lint Apr 27 09:46:50 heho Apr 27 10:57:49 Could anyone help me out. I'm trying to debug my application on my HTC One X but when I check the AVD manager it says the state is offline and under target is stated unknown =/ Apr 27 10:59:39 AVD is for the emulator, not for debugging on hardware Apr 27 11:00:02 http://developer.android.com/guide/developing/device.html Apr 27 11:01:05 Sorry I ment, when I press Run I can choose between actual devices and AVD devices. and there if gives the offline state Apr 27 11:04:17 Hi not sure if anyone will be able to help but I'm haveing difficulty setting up Eclipse with Android SDK with Processing along to this tutorial: http://ghostandthemachine.github.com/blog/2011/08/03/setup/ Apr 27 11:04:33 its saying there are build path errors Apr 27 11:12:36 I have 2 apps A and B. A has a file that i would like to transfer to B. So in A there is a button "Transfer file to B". But i'm wondering how to transfer the file from A to B :-) Apr 27 11:17:05 many ways Apr 27 11:17:12 fire off an intent to b Apr 27 11:17:25 if its a really small file, you can probably get away with dumping it into an extra Apr 27 11:17:38 if it's larger, i like to setup a content provider and send b the uri Apr 27 11:18:01 if you just dont give a fuck, dump it to the sd card and tell b the filename Apr 27 11:18:31 if you want to view your users files, setup an app engine server, upload via a, then download via b Apr 27 11:18:42 hi, would anyone know why my AsyncTask wont run if I change the targetApi level to 15 from 8? thx. Apr 27 11:19:03 (I only have one!) Apr 27 11:19:06 what happens when you try to run it? Apr 27 11:19:36 onPreExecute is executed, but doInBackground never. Apr 27 11:19:58 is here an exception in onPreExecute Apr 27 11:20:07 mikedg: Thank you very much. The file may be several mb huge and is already on sd card. So can i just call b to read that file directly? Apr 27 11:20:24 yup Apr 27 11:20:26 And is it possible to stay in a when hitting "Transfer file to B"? Apr 27 11:20:34 no, this happens even if my task methods contain only LOGs. Apr 27 11:20:48 yeah, youll want to send a broadcast in that case Apr 27 11:21:12 seems like an SDK issue, since all works fine on every phone/SDK, unless I change the targetversion in the manifest.. Apr 27 11:22:21 mikedg: does B receive a broadcast even if it's not running? Apr 27 11:35:48 tom@tralfamadore ~/Github/gdrive-cli $ ./gdrive-cli --insert test123.txt test123 None "text/plain" test123.txt Apr 27 11:36:00 sorry, missed the right window by a few px Apr 27 11:38:28 lol Apr 27 11:38:53 making acommand line interface for google drive? Apr 27 11:50:50 Hello, is there any Android developer here that can help me out with a bit of a pickle I am in. I currently have a listview that is populated using a string with an onItemClickListener attached to it. When I click on it launches a new activity via an intent. In this new activity i have a textview I wish to populate with certain information depending on which item that was clicked in the listview. Apr 27 11:53:34 kaspuh: use a bundle, the position clicked is passed to the onitemclicklistener Apr 27 11:53:53 so guys I want to turn my app into a service and I'm having a hard time finding a proper tutorial, can someone point me out in the right direction? :P Apr 27 11:54:32 brx_: sorry, but i am very new to programming. Could you please explain a bit more in detail ? Apr 27 11:55:07 well in your onitemclicklistener, an int is passed, that is the view position that was clicked in the listview Apr 27 11:55:54 brx_: Ok, and then depending on that view, i want to take data from somewhere and display it ? Apr 27 11:56:24 so try doing Log.d("position clicked", String.valueOf(int)); Apr 27 11:56:33 inside the listener Apr 27 11:56:55 then run the app, see if when you click each element the position is logcat'd Apr 27 11:59:35 brx_: Ok, yes i get different positions. Apr 27 11:59:55 try this to get the text of the clicked element Apr 27 12:00:03 final String text = ((TextView)view).getText(); Apr 27 12:00:05 hello Apr 27 12:00:34 that casts the clicked view to textview type and fetches the text Apr 27 12:01:00 if thats what you want, you can then bundle values using the Bundle class and pass this to the intent before calling the new activity Apr 27 12:01:40 brx_: I can use the integer as well, i just need to load a certain text in my new activity depending on which item was clickd Apr 27 12:02:14 Hi all Apr 27 12:02:32 then just bundle the position, use a String array inside your strings file to map the ints to whatever text you like in yournew activity Apr 27 12:02:50 can you put your code on pastebin and share the link so that we will all have a look at your code ? Apr 27 12:03:09 crazy_mind: me? sure Apr 27 12:05:15 kaspuh: http://www.remwebdevelopment.com/dev/a33/Passing-Bundles-Around-Activities.html Apr 27 12:05:40 look inside the onCLick function to see how you bundle the variable you want to pass to the new activity Apr 27 12:05:53 ok Apr 27 12:06:42 crazy_mind: Here you go. http://pastebin.com/cSZtpSBg Apr 27 12:07:06 brx_: Ok, will do. Thank you for your help. Apr 27 12:13:43 Is there anyway to find out what item in an item list contains a certain text so i can click that line with Robotium_ Apr 27 12:14:25 isnt it the same as anythign else? Apr 27 12:14:33 clickView("text") or whatever? Apr 27 12:14:39 oh Apr 27 12:14:48 didn't know i could do that haha Apr 27 12:14:49 let me try :P Apr 27 12:26:06 check this brothers do someone know what to use and in which particular way ? http://pastebin.com/q1kgqqup Apr 27 12:26:21 so guys I want to turn my app into a service and I'm having a hard time finding a proper tutorial, can someone point me out in the right direction? :P Apr 27 12:30:38 guys? Apr 27 12:34:15 how do I turn an app into a service? Apr 27 12:35:09 VitorM: have you looked at service example on dev.android.com? Apr 27 12:35:20 its really not much difference thatn an activity Apr 27 12:35:33 hmm, give me a sec, I'll check it out Apr 27 12:35:35 imagine it as an activity without a gui Apr 27 12:35:56 agree on it activity without a gui Apr 27 12:36:05 kay I'll try this one, thanks Apr 27 12:36:43 check this brothers do someone know what to use and in which particular way ? http://pastebin.com/q1kgqqup Apr 27 12:37:56 why do you think you need to turn an app into a service? Apr 27 12:38:05 that's such a weird way of thinking about something Apr 27 12:38:36 i am fairly certain he's thinking about it that way because he's coupled his bluetooth stuff to activities Apr 27 12:39:14 yup Apr 27 12:39:16 bluetooth stuff? Apr 27 12:39:23 anyone here ever had to deal with Samsung warranty Apr 27 12:39:29 Jug6ernaut: yeys Apr 27 12:39:30 and I need this to run as a service Apr 27 12:39:35 when the htc boots Apr 27 12:39:36 brx_: he talked about it yesterday Apr 27 12:39:39 why, i have 1 minute to answer questions before i go dark Apr 27 12:39:43 ahh i see Apr 27 12:39:52 mikedg how was it? Apr 27 12:39:57 VitorM: broadcastreceiver, get BOOT_COMPLETED broadcast, start service, done Apr 27 12:40:06 readme: thansk ;) Apr 27 12:40:19 Jug6ernaut: fine, my experience was with an i/o device Apr 27 12:40:30 i sent it out, they fixed it, got it back in like 2 weeks i think Apr 27 12:40:37 2 weeks? no bad Apr 27 12:40:40 they paid for shipping both ways Apr 27 12:40:46 awesome Apr 27 12:40:50 i didnt have a receipt Apr 27 12:40:57 my gnote's digitizer is crazy :\ Apr 27 12:41:04 well if its a io device lol Apr 27 12:43:31 how early do you guys wake up Apr 27 12:43:50 happy friday bitches! Apr 27 12:43:53 as late as i need to Apr 27 12:44:09 6:00 AM, yo Apr 27 12:44:18 4-5am Apr 27 12:44:23 im up at 4:20am est Apr 27 12:44:23 * readme woke up at 3A Apr 27 12:44:29 mikedg: nice :) Apr 27 12:44:36 early bird catches the worm Apr 27 12:44:39 what do you use that time for, coding? Apr 27 12:44:41 mikedg: you're EST too Apr 27 12:44:42 ? Apr 27 12:44:45 i dont smoke, its just coincience Apr 27 12:44:53 wongk: yes im est Apr 27 12:45:00 * readme EST Apr 27 12:45:03 I'm guessing he didnt say it as est if he lives elsewhere Apr 27 12:45:25 heh Apr 27 12:46:20 can anybody tell me why this code errors on a 2.3.3 emulator? http://pastebin.com/D8Pv3BYH Apr 27 12:46:38 stack trace would be helpful Apr 27 12:46:47 ugh need to focus, cya later guys Apr 27 12:46:55 readme; how do I get a stack trace? I can't find one anywhere... all I get is "process had to close" Apr 27 12:46:59 logcat Apr 27 12:47:05 ...? Apr 27 12:47:12 usually anr's are caused by blocking threads Apr 27 12:47:19 /data/anr/traces.txt Apr 27 12:47:41 i've seen dalvik crash before just on reading and rewriting files Apr 27 12:47:42 do you have to explicitly call ab.show? Apr 27 12:47:55 readme; where is the data folder? Apr 27 12:47:59 and is the theme for the activity one of the supported themes? Apr 27 12:48:00 on the emulator Apr 27 12:48:02 Theme.Sherlock? Apr 27 12:48:07 chrizc: adb shell Apr 27 12:48:26 readme; you're making no sense to me, I've been developing for android for two days. none of what you're saying means anything to me. Apr 27 12:48:41 chrizc: I can't help you if you're not willing to try running adb shell Apr 27 12:48:48 you could google "adb shell" Apr 27 12:48:51 .-. Apr 27 12:49:06 plus more or less you probably haven't found an official bug, but just done something wrong setting up abs Apr 27 12:51:11 well it would help if there was some decent documentation lying around on how the heck to set up abs and other android stuff. Apr 27 12:51:17 there is Apr 27 12:51:28 TBH you shouldn't be jumping into abs on day 2 of android dev Apr 27 12:51:34 haha Apr 27 12:51:37 maybe learn some more of the framework concept first Apr 27 12:51:51 readme; yesterday I was told by about 4 different people to use abs .-. Apr 27 12:51:57 that is fucking crazy talk Apr 27 12:52:05 chrizc: and you should, it doesn't mean you're going to understand how to set it all up Apr 27 12:52:11 thats true, but you need to help you help yourself Apr 27 12:52:16 abs includes sample projects Apr 27 12:52:22 check the theme for the activity Apr 27 12:53:13 using ABS is pretty easy Apr 27 12:53:15 before you try abs, at least try to write an app targeting 3.0+ that uses the native actionbar. Apr 27 12:53:27 otherwise you're going to be confused Apr 27 12:54:49 i can honestly say ive never used action bar but it looks easy :> Apr 27 12:54:58 brx_: it's barely different from using the menus Apr 27 12:55:13 ye figured as much Apr 27 12:56:00 i gotta upgrade my rom and start egtting some newer nicer apps i feel old school lol Apr 27 12:56:21 I don't personally find it hard. But I read the book pragmatic thinking and learning and now I realize again what it is like when you are really really new. Apr 27 12:56:25 you guys should read it Apr 27 12:56:34 it is easy to forget what it is like to be a greenhorn. Apr 27 12:57:36 greenhorn, quaint :> Apr 27 12:57:39 I need to play with fragments again Apr 27 12:57:48 I was one of the first to dive in head first Apr 27 12:57:54 and man I felt like I got burned bad by it Apr 27 12:58:18 hi , how to find function signature in eclipse ... quickly :@ Apr 27 12:58:36 right click, open declaration Apr 27 12:58:43 or mouseover and wait Apr 27 12:58:51 there is probably a shortcut key Apr 27 12:58:54 infact I know there is Apr 27 12:59:16 F3 Apr 27 12:59:59 mm Apr 27 13:00:22 Hi guys, do you know if actually is there a way to stream a youtube video (using youtube data api) using a VideoView? Apr 27 13:00:36 i need help with BroadcastReceiver and sendBroadcast(intent). Somehow the receiver is not called :-(. Please have a look at http://pastebin.com/ifwHAu8z Apr 27 13:00:50 stermi - dont know... probably not condoned... but I bet you could take advantage of the HTML5 version of youtube videos Apr 27 13:01:10 replman: you didn't close your activity tag. Apr 27 13:01:14 or rather Apr 27 13:01:18 the receiver is inside of the activity Apr 27 13:01:23 ron_frown, with not-native solution you have not full control of the system :) Apr 27 13:01:24 Broadcast Receivers are not Activities. Apr 27 13:01:38 place your receiver's tag outside of the activity's tag, but still within the application's tag. Apr 27 13:01:40 Uh, that's true Apr 27 13:01:47 receiver has to be outside the activity Apr 27 13:01:51 is it really compiling? Apr 27 13:02:18 yes, it compiled Apr 27 13:02:44 anyway yes, put it outside the Activity tag Apr 27 13:02:48 rll Apr 27 13:03:44 lov, stermi: Thanks alot. It worked :-) Apr 27 13:04:04 Hi. When an image is loaded, is the top row or bottom row of the image loaded first in memory? Apr 27 13:04:59 you're welcome Apr 27 13:06:20 panda81: why assume it's even loaded by row? Apr 27 13:06:41 plus loaded in memory is not the same thing as rastered, or displayed on screen Apr 27 13:07:05 readme: My image is flipped when texture mapped via Opengl. Apr 27 13:07:31 vertically? Apr 27 13:08:01 readme: flipped so that up is down and down is up Apr 27 13:08:31 which suggests the top row of the image is loaded first into memory Apr 27 13:08:43 \ Apr 27 13:08:50 panda81: you wanted us to just guess you were using GL? Apr 27 13:09:28 readme: ? No guess. Usage of GL was stated above Apr 27 13:09:35 as you said, it sounds to me like it's a problem with mapping. Apr 27 13:09:43 not with loading Apr 27 13:11:35 I assume if not using OGL, one needs not worry about the memory order Apr 27 13:12:40 http://code.google.com/p/opengles-book-samples/source/browse/#svn%2Ftrunk%2FAndroid%2FCh9_Simple_Texture2D Apr 27 13:13:36 hm, that one doesn't load an image, though. Apr 27 13:14:21 I have a listview with a button at the bottom of the list (added as a footerview). The button scrolls nicely along with the listview but when the list is too short (not enough items to fill the screen) the button is somewhere half-way on the screen. I'd like the button to be at the bottom if the list is too short, but also be at the bottom of the list (scrolling along) if the size of the list increases. Is this possible? Apr 27 13:15:23 possible, but probably a pain to implement. Apr 27 13:15:48 in your adapter you could just programmatically change the height of the view that contains the button, depending on the number of elements in your list. Apr 27 13:15:54 Uri u = Uri.fromFile(mCurrentFile); intent.setData(u); sendBroadcast(intent); Apr 27 13:15:57 The BroadcastReceiver.onReceive(context, intent) is called with intent.data is null. But i call it with Apr 27 13:16:07 with the line above :-) Apr 27 13:18:24 Hmm... I had hoped there would be an easier way Apr 27 13:19:38 ah, putExtras and getExtras did the job... Apr 27 13:30:14 how can I have something run every ~50 millliseconds? Apparently I have to poll & update my audiotrack because its notifiers are buggy. Apr 27 13:30:29 java.util.timer? Apr 27 13:31:11 android has a timer too Apr 27 13:31:45 handler.postdelayed? Apr 27 13:32:00 is there a difference? Apr 27 13:44:18 Hi Apr 27 13:44:25 howdies Apr 27 13:45:00 I try consume a GAE deployed Webservice but I can't pass my auth coockie Apr 27 13:45:26 I tryed a simple HTTP REQUEST with the Cookie set and it works : I got the WSDL back Apr 27 13:45:54 tstebut: I'm not sure what's android specific about this. Apr 27 13:46:05 but when using ksoap2 libs it doesn't work Apr 27 13:46:13 lov: ksoap2 lib Apr 27 13:46:13 I would, however, encourage you to use wireshark or some other app to verify what content you're sending or receiving Apr 27 13:46:19 tstebut: and? Apr 27 13:46:30 its deployed on android phone Apr 27 13:46:37 let me rephrase Apr 27 13:46:52 what part of your project actually references android specific apis and can't simply be cut out, put into a java project, and unit tested on your desktop? Apr 27 13:47:14 I can't Apr 27 13:47:27 can't what Apr 27 13:47:32 I just can-t becouse it uses the google account stored on the phone Apr 27 13:47:51 can't unit test it on my desktop Apr 27 13:47:54 "it" what Apr 27 13:48:01 you can't hardcode those values for testing? Apr 27 13:48:02 the app ^^ Apr 27 13:48:30 My android app is consuming the GAE webservices with ksoap2 lib thats all Apr 27 13:48:39 ksoap2 lib is android specific also Apr 27 13:48:58 I think it would be a real pain.... Apr 27 13:49:13 so I'm asking here about that lib Apr 27 13:49:21 alright, fine. Deploy to an emulator, use wireshark to see what your connection is actually sending/receiving. Apr 27 13:49:23 which is android specific also Apr 27 13:49:24 that's my advice. Apr 27 13:49:25 good luck. Apr 27 13:49:44 But hey, it actully is Apr 27 13:50:06 because...it got the WSDL from the phone with http_client from Apache lib Apr 27 13:50:31 that's when using ksoap2 that it does not go further with consuming ^^ Apr 27 13:51:11 And lov, even with an emulator I couldn't get the account ;) Apr 27 13:51:14 lov: what's the default app user id given by android? Is it the package? Apr 27 13:51:38 it's arbitrary Apr 27 13:51:53 afaik the accounts are stored on phones not emulatorss Apr 27 13:52:02 ok, again Apr 27 13:52:05 you need to decouple your logic Apr 27 13:52:10 I also red some articles about that...confirm Apr 27 13:52:14 so that you can directly unit test "what happens if I make a download request with values xyz" Apr 27 13:52:21 this is my advice Apr 27 13:52:27 couple all the things Apr 27 13:52:29 You're not going to magic some suggestion into existence Apr 27 13:52:49 I don't know what your download logic is, why it's not working, what ksoap2 would have to do with it, what your WSDL does, etc Apr 27 13:52:50 damn connection :( Apr 27 13:52:52 I also DON'T CARE. Apr 27 13:53:07 ok lov Apr 27 13:53:14 code1: the user is abritrary. It'll be something like user10056 Apr 27 13:53:27 I also tryed consuming with soap UI Apr 27 13:53:28 it basically depends on what order the app was installed wrt other apps on the phone Apr 27 13:53:31 I tryed locally Apr 27 13:53:35 all the same Apr 27 13:53:42 then perhaps the problem isn't with your app? Apr 27 13:53:44 lov: ok thanks. Apr 27 13:53:56 huh??perhaps Apr 27 13:54:02 But I can't prove it Apr 27 13:54:07 yes, you can. Apr 27 13:54:14 how ? Apr 27 13:54:19 You can verify the output you're sending on the device Apr 27 13:54:25 you're going to have a payload that you're sending, right? Apr 27 13:54:28 lov: in that case is it a good idea to ALWAYS just declare a sharedUserId - even if you might not need it? Apr 27 13:54:29 set a breakpoint before you send it Apr 27 13:54:34 copy it out with the debugger Apr 27 13:54:37 inspect it visually Apr 27 13:54:46 try pointing to your server with that payload, see what happens Apr 27 13:54:49 odds are it fails there too Apr 27 13:54:55 inspect your payload, try to figure out if there's a mistake there Apr 27 13:55:07 I just don't know how to put the cookie on the Http request that hold the SOAP envelope request itself..... Apr 27 13:55:10 code1: it might be. Apr 27 13:55:58 I did not manage to consume the WS anyhow because it is behind a google account that needs a cookie....well, ok, I'll go check on GAE channels...thank you Apr 27 13:56:31 do you know about such a channel ? Apr 27 13:56:50 no Apr 27 13:57:33 #gae has only 4 people Apr 27 14:00:22 If you release an app without setting it, is there a way to later have another app share process/data? Apr 27 14:08:23 fuck adt is still balls Apr 27 14:08:29 i open layout/something.xml Apr 27 14:08:35 and then layout-xlarge/something.xml Apr 27 14:08:37 and it wont open both Apr 27 14:08:42 it replaces the first tab in eclipse Apr 27 14:08:44 T_T Apr 27 14:08:45 I'm getting mixed answers to this question from search results: is it possible to access PhoneFactory and Phone via reflection? Apr 27 14:08:56 canadiancow|work: I think that's an eclipse thing, because sometimes it works Apr 27 14:09:35 i dont even get it though Apr 27 14:09:37 like HOW Apr 27 14:09:42 it's a freaking different file Apr 27 14:09:55 I basically want access to the com.android.internal.telephony.Phone.getCdmaPrlVersion() Apr 27 14:10:09 hello Apr 27 14:10:17 canadiancow|work: that's just sad Apr 27 14:10:33 im interested in sony smartwatch app dev Apr 27 14:10:44 canadiancow|work: but they're the same basename :-/ Apr 27 14:10:54 does anyone has good tutorials to start with the sdk ? Apr 27 14:10:58 so you're saying eclipse wont let me open two files with the same name? Apr 27 14:11:00 i dont buy that Apr 27 14:11:15 Estragon: d.android.com Apr 27 14:11:45 wongk: its a special sdk, I already know about anfroid dev :) Apr 27 14:11:52 oh Apr 27 14:13:45 canadiancow|work: it works sometimes Apr 27 14:14:54 on one hand, i'd like to think "if the bug is in adt, they would have fixed it by now" Apr 27 14:15:04 but you could just as easily s/adt/eclipse/, and it would apply equally well Apr 27 14:15:04 the fact that there's even the opportunity for that not to work is more than disappointing Apr 27 14:15:13 wongk +1 Apr 27 14:15:14 welcome to eclipse Apr 27 14:15:21 visual studio ftw Apr 27 14:15:29 best ide ive ever used Apr 27 14:15:39 agree to disagree on that point :P Apr 27 14:15:58 you're going to disagree that it's the best ide i have ever used? Apr 27 14:16:05 i'd like to see you back that up Apr 27 14:16:08 heh Apr 27 14:16:15 :P Apr 27 14:16:20 I wonder if the Google guys have actually fed back significant amounts of stuff to eclipse by now Apr 27 14:18:31 canadiancow|work: I really didn't like VS Apr 27 14:18:33 personal preference Apr 27 14:28:48 The only good IDE is a proper bash shell and vim. Apr 27 14:29:10 sounds very "integrated" ;) Apr 27 14:30:03 any ideas how to send touch gestures to pc via bluetooth? Apr 27 14:30:06 I want to have a part of the screen able to be swiped…is that possible? Apr 27 14:30:56 john_doe_jr: add swiping for view which is part of screen Apr 27 14:30:57 So I have 700MB of data where can put that on my device for testing? Or how? I believe this can go on the SD? or extra non app storage? What should I look up? Apr 27 14:31:28 Anyone here using debian? Apr 27 14:31:52 sending key events is working after adding KEYB profile to SDP Apr 27 14:31:54 TheBunny: that will *have* to go on external storage Apr 27 14:32:19 TheBunny: and since you've already read http://developer.android.com/guide/topics/data/data-storage.html you know what that means Apr 27 14:32:26 now a fire has like 8GB storage… is part of that then considered external? Apr 27 14:32:41 then those events are packed into keyb report and send via l2cap socket Apr 27 14:33:07 but how to handle gestures? Apr 27 14:34:02 I have already pointer report structure but sending it as keyb structure just doesn't work Apr 27 14:34:19 so let me guess when I plug a say FIRE into USB and I get a bunch of directories like music / photos etc that would be external storage? and I should be able to copy app data up there by hand? Apr 27 14:34:30 yes Apr 27 14:35:07 * TheBunny wonders if cocos has an api call for getting at this data... Apr 27 14:35:30 Oh I see the docs talk about what I just asked also Apr 27 14:35:33 Android does - what's cocos? Apr 27 14:35:57 cocos2D C++ 2d game engine, 10(?) plarforms Apr 27 14:36:19 oh, meh Apr 27 14:36:28 I know its smart enough to grab data from your resources or bundle / pak etc Apr 27 14:37:16 Leeds: Im porting C/C++ code I don't want to have to bridge a lot of code if I don't have to etc. Apr 27 14:42:14 Fisiu: could you elaborate? Apr 27 14:43:12 holy blals Apr 27 14:43:34 this is how eclipse renames a file: cp x.z y.z; rm x.z; Apr 27 14:43:40 lern2mv Apr 27 14:44:03 add listener for this view Apr 27 14:44:41 lol: "This method is deprecated. This method always returns true. Do not use. " Apr 27 14:46:01 bubbleguuum: ? setForeground(boolean) or something? Apr 27 14:46:22 Process.supportsProcesses() Apr 27 14:46:29 ah Apr 27 14:50:10 Is there any channel on iPhone dev? Apr 27 14:50:36 on freenode? that would seem ironic :P Apr 27 14:51:01 :) Apr 27 14:51:20 There's #objectiveC, barq Apr 27 14:51:32 and #iphonedev Apr 27 14:51:47 [10:49:59] * barq (~Adium@dmartinezoeckel-p.cs.ucl.ac.uk) has joined #android-dev Apr 27 14:51:47 [10:50:10] Is there any channel on iPhone dev? Apr 27 14:51:49 seriously? Apr 27 14:51:50 lov Apr 27 14:51:51 evancharlton Apr 27 14:51:56 weird.. when i run my little app on a pad the fonts suddenly look blurry Apr 27 14:52:04 a pad? Apr 27 14:52:05 though it's a standard TextView Apr 27 14:52:10 I'd suggest #android-root to bring Android to the iPhone Apr 27 14:52:13 maybe some compatibility mode.. Apr 27 14:52:29 [10:46:01] bubbleguuum: ? setForeground(boolean) or something? Apr 27 14:52:34 that method was removed in 3.something Apr 27 14:52:42 REMOVED Apr 27 14:52:47 and no-op'd in 2.0 Apr 27 14:53:03 lol #objectiveC is being taken over Apr 27 14:53:13 Does Android use virtual memory because files on flash can be memory mapped? Apr 27 14:53:14 ah right.. setting minSdkVersion and targetSdkVersion fixed it Apr 27 14:53:30 barq do you know what virtual memory is? Apr 27 14:53:41 freecandy nice guy you are XD Apr 27 14:54:54 canadiancow|work: No Apr 27 14:57:11 if i have an and in my new layout i want to place something next to a child from the include, is that doable? Apr 27 14:58:15 no Apr 27 14:58:17 barq: if you were not joking there is a #iphonedev Apr 27 14:58:31 nice troll Apr 27 14:58:31 canadiancow|work, hmm Apr 27 14:58:33 you coudlnt do that even if you had all the xml there, rather than an include Apr 27 14:58:33 thats a bummer Apr 27 14:58:53 you cant do it in a relative layout? Apr 27 14:58:58 layout_toLeftOf Apr 27 14:59:51 but that would require putting the other view INSIDE that relativelayout Apr 27 14:59:54 not as a sibling Apr 27 14:59:58 which is what the include does Apr 27 15:00:11 does anyone know where i can find some example privacy policies on google play? I cant find any apps that have one unless im justn ot looking in the right place Apr 27 15:00:11 oh i thought the include stuck everything as a child inside where you're including it Apr 27 15:00:25 whats a majority whip congressman Apr 27 15:00:50 <3 lov Apr 27 15:01:56 canadiancow|work: in Westminster-style parliaments, at least, 'the whip' means something like 'membership of a parliamentary party' - 'taking the whip' means agreeing to vote along party lines when appropriate Apr 27 15:02:57 hmmm ok Apr 27 15:03:25 so presumably a majority whip congressman is a congressman who is a member of the majority party in congress Apr 27 15:04:52 ninjasenses: usually that's in the EULA presented on first run of the app Apr 27 15:05:08 canadiancow|work: wikipedia. Apr 27 15:05:30 also, the only thing you need to know about american politics is that they're all trying to screw us over, they just pretend to be on different sides. Apr 27 15:05:33 see CISPA. Apr 27 15:06:02 well put, lov Apr 27 15:06:39 thank you, darlin Apr 27 15:06:55 dragorn: I know most apps embed them, but i wanted to see an example of it being used in googe play Apr 27 15:07:05 havent been able to find any :/ Apr 27 15:07:34 And I'm saying, there's no real codified method for showing in play, and it's probably non-binding even if they did Apr 27 15:07:47 and any modern privacy polciy is too big to fit in a description anyhow Apr 27 15:08:14 because no-one will simplify it to "hah hah you're fucked now". Apr 27 15:08:28 :D Apr 27 15:08:48 mm .. someone knows why adb can't find libncurses.so.5 ... and I Have libncurses.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncurses.so.5 Apr 27 15:08:52 ? Apr 27 15:09:14 it's almost definitely looking for it in 32bit Apr 27 15:09:28 find your distros 32bit compatibility packages Apr 27 15:10:07 ok Apr 27 15:10:14 dragorn: there is a new field for it in google play, you just provide a link Apr 27 15:10:58 aLeSD: if I remembered what the name of the package was for ubuntu i'd tell you (since I assume you're there). Apr 27 15:11:09 I just did it Apr 27 15:11:50 what is it called these days, aLeSD? Apr 27 15:12:00 looks like they changed the name of the package Apr 27 15:12:19 ia32-libs maybe Apr 27 15:12:37 libncurses5 i386 ... but I am using the ubuntu package manager ... so .. no idea Apr 27 15:12:55 ia32-libs - ia32 shared libraries for use on amd64 and ia64 systems Apr 27 15:13:02 I have two table layouts….I'd like to add a swipe to those 2 table layouts…how would I do that? Apr 27 15:13:03 ubuntu 12.04 it's really fast Apr 27 15:13:12 ia32 == i386 ?? Apr 27 15:13:18 mr_bono: yes Apr 27 15:13:24 mr_bono: intel arch, 32bit Apr 27 15:13:28 huh.. ok Apr 27 15:13:47 thanks dragorn, I would have skipped that, thinking it referred to Itanium Apr 27 15:14:09 which reminds me; anyone know how medfields arm emulation works? Since presumably it lies to the market to let you install arm-native packages, does it then try to get the intel one anyhow? Apr 27 15:14:21 mr_bono yes Apr 27 15:14:25 or do they just assume no-one is building against the intel native platform Apr 27 15:14:32 and run everything native via emulation Apr 27 15:14:43 that's the whole point - ia32 is i386, ia64 is itanic, x86-64 is AMD's 64-bit x86 extensions Apr 27 15:15:15 except x86-64 is also used to refer to intel 64 Apr 27 15:15:23 hehe.. I was going to call it Itanic, but didn't know if that was close to anyone's heart ;) Apr 27 15:17:12 dragorn: it's used for Intel's chips which implement (what was originally) AMD's 64-bit extensions - it's *never* (correctly) used for itanic Apr 27 15:24:14 I'm running an and with google api. i added under but when I run my app it crashes with the error "error inflating class com.google.android.maps.MapView Apr 27 15:27:18 LOLOLOL Apr 27 15:27:24 theres an ad in words with friends Apr 27 15:27:29 This is my ad Apr 27 15:27:31 cnn.com Apr 27 15:27:33 Here is line 2 Apr 27 15:28:04 nice Apr 27 15:29:53 mostly i see audible ads Apr 27 15:29:57 does audible even work in canada? Apr 27 15:30:15 why wouldn't it? Apr 27 15:30:16 I would imagine so Apr 27 15:30:23 well, hmm Apr 27 15:30:23 licensing/copyrights? Apr 27 15:30:32 yeah, it's possible that we don't allow accounts outside the us for licensing reasons Apr 27 15:30:37 christ Apr 27 15:30:44 and yet you're giving us all this ad money :) Apr 27 15:30:47 we're spending a ton of money on advertising when our app is proper fucked ._. Apr 27 15:30:58 half the ads i see in * with friends are audible Apr 27 15:30:59 lov: you work for audible? Apr 27 15:31:04 wongk: yes Apr 27 15:31:09 and i know how much moeny we make from advertising :P Apr 27 15:31:10 so now amazon :P Apr 27 15:31:15 yes Apr 27 15:31:22 my wife uses audible Apr 27 15:31:33 have her use it on an iphone. Apr 27 15:31:46 the playback won't just randomly stop because the player service isn't in the foreground. Apr 27 15:31:51 the android client behaves "interestingly" sometimes :P Apr 27 15:31:53 yes. Apr 27 15:31:54 has anyone used a mapview Apr 27 15:31:56 that is one word for it. Apr 27 15:32:16 I'm getting an error "Error inflating class com.google.android.maps.mapview" when i run my app Apr 27 15:32:32 lov: where is your office located? Apr 27 15:32:55 Newark Apr 27 15:32:55 devslash do you have the thing added in your manifest? Apr 27 15:33:00 newark Apr 27 15:33:03 yes Apr 27 15:33:07 ah, darn :P Apr 27 15:33:19 if you're interested, you could work out of seattle Apr 27 15:33:22 i was going to make a roundark joke, but mike and jared dont seem to be here Apr 27 15:33:26 lov: oh? Apr 27 15:33:26 under I have Apr 27 15:33:28 can i work out of toronto? Apr 27 15:33:35 wongk: /msg me if you're interested Apr 27 15:33:36 lov: seattle is at the top of my list Apr 27 15:33:38 ok devslash stogtfo Apr 27 15:33:43 ? Apr 27 15:33:52 read the topic Apr 27 15:34:08 ? Apr 27 15:34:15 I've read the docs Apr 27 15:34:28 read the topic Apr 27 15:34:37 ive read the topic! Apr 27 15:34:43 then gtfo Apr 27 15:34:55 eat me Apr 27 15:35:11 come here and i will Apr 27 15:38:12 can someone help me? Apr 27 15:38:22 i don't understand why this map view doesn't work Apr 27 15:39:34 devslash: I think he's referring to http://imgur.com/jacoj in particular Apr 27 15:39:57 its not a code issue so theres nothing to trace Apr 27 15:40:31 Hey all, quick question. Does anybody know a way to pop multiple activities off of the stack at the same time Apr 27 15:40:42 11:32:22 < devslash> I'm getting an error "Error inflating class com.google.android.maps.mapview" when i run my app Apr 27 15:40:49 thats from the xml Apr 27 15:41:00 Meaning start activity a, go to activity b, go to activity c. if back button is pressed, call finish on b and c, and go back to a Apr 27 15:41:01 i have no code other than the standard on create code Apr 27 15:41:18 thats created when you create a new project Apr 27 15:41:30 lov do you have the uses google maps permission in the manifest file Apr 27 15:41:39 yes Apr 27 15:42:08 what about INSIDE of the application tags Apr 27 15:42:17 yes Apr 27 15:42:40 heres my manifest Apr 27 15:42:41 http://pastebin.com/Vfk2eV6y Apr 27 15:42:51 I downloaded some code off the internet…the problem has the following errors: 'Project 'SimpleViewPager' is missing required source folder 'gen''….how do I generate the 'gen' folder? Apr 27 15:43:02 "I downloaded some code off the internet" Apr 27 15:43:04 I found your problem. Apr 27 15:43:41 lov: well, forget that it's downloaded…how do I generate the 'gen' folder…I think I use one of the platform-tools right? Apr 27 15:43:42 lov: can you check out my manifest Apr 27 15:43:45 And your xml file for your mapview? Apr 27 15:44:16 john_doe_jr: the gen dir is autogenerated. Apr 27 15:44:20 http://pastebin.com/BQSP4CvZ Apr 27 15:44:30 if you're using eclipse and it's not getting picked up, or isn't being autogenerated, delete it and create a new one. Apr 27 15:44:38 generate a new map key Apr 27 15:44:41 if you're still getting compile errors, check your resources for errors. Apr 27 15:44:47 lov: how do you create a new one? Apr 27 15:45:11 crazy_mind: you talking about the api key ? Apr 27 15:45:37 devslash: you might want to check for an api key. Shouldn't keep the class from inflating but I've seen stranger errors Apr 27 15:45:37 ... Apr 27 15:45:40 you create a folder. Apr 27 15:45:44 it's not special. Apr 27 15:45:46 it's just a folder. Apr 27 15:45:51 according to google they don't use that any more Apr 27 15:46:06 devslash: also make sure you're building against a google maps api and not just a regular one Apr 27 15:46:17 how do i make sure of that Apr 27 15:46:25 i did make sure that the build target uses the apis Apr 27 15:46:39 lov: alright I created the 'gen' folder…how do I get the memory addresses created in the java file though? Apr 27 15:47:17 yay, 2 permissions are required to kill an external app spawn by *my* app Apr 27 15:47:48 devslash: right click project folder in package explorer-> properties -> android -> Project Build Target should say google api's Apr 27 15:47:59 yes i did that Apr 27 15:48:13 I don't even want to know what you're asking. Apr 27 15:48:25 anyone use findbugs with android code? how do you get past the java.rmi.Remote crap? Apr 27 15:48:36 lov: you know the R.java file Apr 27 15:48:57 john_doe_jr: clean and rebuild your project. Apr 27 15:49:05 devslash: code for activity? Apr 27 15:49:15 theres no code Apr 27 15:49:35 devslash: you don't have an activity class? Apr 27 15:49:36 except for the on create code thats created when you create the project Apr 27 15:49:42 i do Apr 27 15:49:47 just the barebones code Apr 27 15:50:03 * pfn tries again Apr 27 15:50:11 devslash: thats the problem. Thats not gonna work. You need to have a class that extends map activity, and instantiates the map as well Apr 27 15:50:17 i did Apr 27 15:50:32 so that code is what I'm asking for Apr 27 15:50:52 hey all, does anyone know if it's possible to access the clipboard from a monkeyrunner script? Apr 27 15:51:19 lov: I'm getting the error message, 'Cannot find the class file for java.lang.Object. Fix the build path then try building the project'…any ideas why? Apr 27 15:51:30 http://pastebin.com/d5mGYFc1 Apr 27 15:54:34 ahh i fixed it Apr 27 15:55:26 try this for your manifest fil Apr 27 15:55:27 http://pastebin.com/9Ah0GBtq Apr 27 15:56:05 Cool, what was it? Apr 27 15:56:25 the api key Apr 27 15:56:35 I'm confused. A patch9 image is meant to be scaled at different resolutions. How come I can't just throw them in a single drawable folder and have them scale correctly from one device to the other? Apr 27 15:57:22 Hello! Apr 27 15:59:18 dlaroche, that's not what a 9patch is for Apr 27 15:59:44 it doesn't "scale" so much as "stretches" Apr 27 16:00:11 http://developer.android.com/images/ninepatch_raw.png Apr 27 16:00:30 is it better to have a folder hiearchy of folder for the different screen sizes then? Apr 27 16:00:58 better than what? Apr 27 16:01:42 lol: how to pause/stop a 3rd party app that you launch with startActivity ? : put your own app visible in the foreground. Apr 27 16:01:44 nvm I'm reading on it now Apr 27 16:03:59 whats the competitor to the padfone? Apr 27 16:04:03 theres some other company doing something like that Apr 27 16:22:58 Why does my app look right on a phone, but enlarged on a tablet? Even the title bar and font size is extremely big. Am I missing something? Apr 27 16:23:12 whats the targetSdkVersion Apr 27 16:23:50 and whats a "tablet" Apr 27 16:23:55 the manifest doesn't have one set Apr 27 16:23:59 give me screen resolution and density Apr 27 16:24:00 ok so set one Apr 27 16:26:57 I set it to 13 is this correct? Apr 27 16:30:53 i dont know Apr 27 16:30:54 is it? Apr 27 16:31:03 its a valid value Apr 27 16:31:08 only you know if its correct Apr 27 16:31:31 thats very philosophical Apr 27 16:31:33 your app is probably running in zoomed mode Apr 27 16:31:48 instead of whatever the opposite is; stretched mode? Apr 27 16:37:08 I just gently ripped apart an old acquaintance who proudly posted on Facebook that he'd released a new app and welcomed feedback... he'd build it with http://www.andromo.com/ Apr 27 16:37:20 he deleted the post after I got up to 6ish comments... Apr 27 16:38:07 evancharlton opposite is "let the layout lay out" Apr 27 16:38:08 wow, i can easily make a million dollar pro-quality app! sign me up! Apr 27 16:38:14 oh I bet this thing generates some awesome apps Apr 27 16:38:16 i hate these quick road to success (app making w/ no coding required) crap Apr 27 16:38:20 drives me nuts Apr 27 16:38:28 haters gonna hate Apr 27 16:38:45 basically, an RSS wrapper, sold (and sold for 1USD or 1GBP - so 50% more in the UK), with ads... also, had an actionbar and a menu! Apr 27 16:38:53 how do THEY make money Apr 27 16:39:27 canadiancow: ads in the generated app, revenue split 50/50 with the 'developer' - or $199 to build an ad-free app Apr 27 16:39:40 "Do you think you CAN'T create apps because you dont know how to code?" <-- lol Apr 27 16:39:43 YES Apr 27 16:39:44 ah Apr 27 16:39:51 +1 Apr 27 16:40:09 I've seen some android devices with 2 point multi-touch and 5 point... is it a hardware thing? does anyone know of a good tutorial for handling multitouch gestures? Apr 27 16:40:18 If I'm using 3rd party Jar files, where should I store them in my app? /res/raw ? Apr 27 16:40:30 Leeds: nice job advertising andromo to us; how much did they pay you? Apr 27 16:40:44 spankbot: libs/ Apr 27 16:40:45 as it happens, his RSS collection was for a specific political-ish purpose, which I agree with, and my last comment was an offer to work with him on a real app - but he deleted his post rather than replying Apr 27 16:41:04 which unfortunately makes me think he *was* doing it as a money thing, rather than as a way of supporting the cause Apr 27 16:41:24 pragma-: I wouldn't suggest for a second that anyone use their Apr 27 16:41:27 'service' Apr 27 16:41:34 evancharlton >> thanks man, btw, got my problem solved w/ the OnSensorChanged and Timer competing thread issue, your solution worked. Apr 27 16:42:14 is there a reason why fast scroll is disabled by default in AbsListView? it's so useful! Apr 27 16:42:29 Leeds: after watching that all about android 57 ep, I tweeted to @eileentv and she responded "Thank You"... at least she knows about To Do Mapr now =) Apr 27 16:42:46 QubeZ: I'll listen out for their glowing review next week :) Apr 27 16:43:03 too optimistic... but thanks! Apr 27 16:43:38 * pragma- builds a rom with fast scroll set to enabled for all list views Apr 27 16:43:55 fast scroll? Apr 27 16:43:56 ugh, and it's just struck me that what he was doing was *selling* an app with *ads* which was just a wrapper around *other people's* RSS feeds... ugh Apr 27 16:44:25 canadiancow|work: yes, the thumb scroll that appears when you scroll a huge list view -- if the dev thinks to enable it Apr 27 16:44:31 hey leeds Apr 27 16:44:38 I'm making good progress with my app Apr 27 16:44:41 Whoa, 1 whole download from Amazon AppStore after being on there for a week. Apr 27 16:44:41 * pragma- cuts out the dev and enables it by default for any and all list views. Apr 27 16:44:57 devslash: good stuff Apr 27 16:45:01 ah ok Pragma Apr 27 16:45:50 at least I give away my app which essentially shows ads against a free government RSS feed :) Apr 27 16:47:21 Leeds i have a private class thats defined like this: class mylocationlistener extends MapActivity implements LocationListener it listens for location updates and when there is an update onLocationChanged() is called. is there a way to call a method in my main class from within onlocationchanged()? Apr 27 16:47:23 has anybody put a header or footer on a GridView? Apr 27 16:48:09 i love how ListViews have a header and/or footer. stupid gridview. Apr 27 16:48:44 devslash: sorry, bedtime for me Apr 27 16:48:50 ok Apr 27 16:49:07 Leeds: what country? Apr 27 16:49:09 does anyone else know if this can be done? Apr 27 16:49:20 QubeZ: am I in? Hong Kong... Apr 27 16:49:30 EvilPenguin: why not just use a custom view? Apr 27 16:49:44 Leeds: nice! I'd love to visit one day. One of my best friends is from HK Apr 27 16:49:55 I have a private class thats defined like this: class mylocationlistener extends MapActivity implements LocationListener it listens for location updates and when there is an update onLocationChanged() is called. is there a way to call a method in my main class from within onlocationchanged()? Apr 27 16:50:20 QubeZ: let me know if you do :) Apr 27 16:50:53 not anytime soon, maybe another year or so.. just had a first child 3 weeks ago Apr 27 16:50:54 and now, I have to get up in 5 hours for a weekend in China, mainly for a visit to a theme park and a circus - g'night all :) Apr 27 16:51:05 man lucky bastard Apr 27 16:51:09 ah, yeah, might want to leave it a month or two... Apr 27 16:51:14 * Leeds waves and yawns Apr 27 16:59:19 can i have more than 1 class that extends MapActivity ? Apr 27 17:00:43 devslash: of course Apr 27 17:00:55 ok Apr 27 17:01:04 each class is a separate entity, you can extend MapActivity in each one if it implements the mapview Apr 27 17:02:34 ok this is my code Apr 27 17:02:35 http://pastebin.com/cDRgR8py Apr 27 17:03:02 in drawPoint() I'm getting a fatal error from the line MapView mapView = (MapView) findViewById(R.id.mapview); Apr 27 17:04:13 peeking Apr 27 17:04:58 i don't understand why i can't get a reference to my mapview Apr 27 17:05:13 it works in the main WhereAmI class but not in the listener class Apr 27 17:06:10 you haven't set your contentview Apr 27 17:06:16 ... Apr 27 17:06:25 what do you mean Apr 27 17:06:30 You're new'ing an activity in an activity Apr 27 17:06:33 Can't do that Apr 27 17:06:36 let me sew Apr 27 17:06:38 see Apr 27 17:06:50 wait, why are you createing a separate class instead of just subclassing? Apr 27 17:06:59 or an anonymous inner class Apr 27 17:07:17 LocationListener ll = new mylocationlistener(); <-- this is what SimonVT is referring to Apr 27 17:07:47 you should just use anonymous inner class for this listener Apr 27 17:07:57 I'm following code i found online that says you need to do it that way Apr 27 17:08:05 I doubt that Apr 27 17:08:12 And if it did, close that website immediately Apr 27 17:08:16 Find another tutorial Apr 27 17:08:24 ive looked at a few Apr 27 17:08:48 devslash: seriously, just anonymous inner class for your location listener Apr 27 17:08:59 what is anonymous inner class Apr 27 17:09:07 Or, implement it in WhereAmIActivity Apr 27 17:09:38 if i could call my own sub in WhereAmIActivity that'd be perfect Apr 27 17:09:55 ./s/sub/method Apr 27 17:11:26 SimonVT: how do i implement it in my main class ? Apr 27 17:11:29 im trying to acheive an accordion-like effect using the slidingdrawer class.. but the content layout doesn't cover the slidingdrawer's sibling layouts.. is there a way to do this? Apr 27 17:11:37 devslash: How did you implement it in your other class? Apr 27 17:11:54 class mylocationlistener extends MapActivity implements LocationListener { Apr 27 17:11:56 ahh Apr 27 17:12:11 so make whereami implement locationlistener ? Apr 27 17:12:18 yes Apr 27 17:12:50 devslash: also read up on anonymous inner class, will serve a good purpose for other things you would want to implement (if not for this one) Apr 27 17:13:35 that's seriously your package name? hehe Apr 27 17:13:56 or just hiding the real name from us Apr 27 17:14:31 what are good resource qualifiers to target 7inch tablets? Apr 27 17:15:54 sw600dp? Apr 27 17:16:39 aha. https://github.com/hamsterready/android-accordion-view .. thanks anyways. Apr 27 17:16:47 man i really hope the kindle fire gets upgraded to ICS Apr 27 17:16:49 officially Apr 27 17:16:59 supporting a 7 inch tablet without the new resource qualifiers is a massive pita Apr 27 17:17:29 ooo new support lib Apr 27 17:18:01 changelog? Apr 27 17:18:15 ctate evancharlton it doesnt have my fix in it :( Apr 27 17:21:04 new support lib?!? Apr 27 17:21:22 r8 Apr 27 17:21:27 wtf Apr 27 17:21:43 doesn't have mine either Apr 27 17:21:46 :( Apr 27 17:21:50 like, legit show stopping bugs Apr 27 17:21:51 r9 hopefully :P Apr 27 17:23:21 don't see anything useful in the changelog Apr 27 17:24:16 I see they added project files for Eclipse Apr 27 17:24:23 guess no one could figure out how to create from existing sources Apr 27 17:24:29 lol Apr 27 17:27:07 how do i reference another widget's property via xml? such as.. i need button2.width to equal however much width button1 was given. Apr 27 17:28:55 put them in a container Apr 27 17:29:15 set them to match_parent Apr 27 17:31:15 Huh, what's changed if no yours then? Apr 27 17:32:34 JakeWharton: no.. i need them to equally fill the height of the container.. more or less.. Apr 27 17:32:46 use weights Apr 27 17:33:02 SimonVT: they fixed some flag for PendingIntents Apr 27 17:33:21 :/ Apr 27 17:33:30 Well, if I git pull the support repo at least your changes are there Apr 27 17:33:32 hm... i'd still like to be able to reference another widget's allocated height/width/foo at runtime tho.. Apr 27 17:36:24 i'm from Qt's layouting system. android's seems primitive to me. Apr 27 17:37:15 i understand sacrifices were made for shrinking the footprint, but.. it's not an easy transition. Apr 27 17:37:17 djustice: it's certainly very different Apr 27 17:37:33 it's also much less mature Apr 27 17:37:55 wongk: i miss QSizePolicy already.. Apr 27 17:38:32 hey, anyone in here develop a widget with a configure activity? If so, what do you do if the user clears data for your app? Apr 27 17:38:59 expect them to remove the widget :P Apr 27 17:39:20 wongk: k, just making sure :) Apr 27 17:39:25 Hello.. Browsing the icons in drawable-hdpi, I see the icons have rounded corners and a gradient background.. If I switch some of the icons, should they to have rounded corners and the same gradient? Apr 27 17:39:36 Rely on some default settings? or display a "click here to set up widget" button Apr 27 17:39:38 it will display values... they just might not be of any real use Apr 27 17:39:46 I.e. the stat_sys_* icons Apr 27 17:40:08 https://twitter.com/#!/JakeWharton/status/195930249052168193 Apr 27 17:40:12 for canadiancow Apr 27 17:40:27 haha Apr 27 17:40:32 Scumbag bugdroid Apr 27 17:40:35 burn! ;) Apr 27 17:40:36 LOL Apr 27 17:41:33 JakeWharton: have you tried submitting patches _before_ they cut the release? Apr 27 17:41:45 my patches were 3 months old! Apr 27 17:41:46 No one? Apr 27 17:42:01 I'm actually not bitter Apr 27 17:42:12 I understand how it works. Just poking fun :) Apr 27 17:42:16 hello Apr 27 17:42:21 HOLLA Apr 27 17:44:30 I am hoping someone can clear one thing up for me. A few of my users are experiencing a null pointer exception and I am not sure what to make of it. Now I fear I have misunderstand parts of the dev guide: When I have activity A and I startActivityForREsult B and then go back to A. Do I need to persist Objects from Activity A to ensure they're still there? (Not the UI stuff, but one of my own Objects defined as a class variable) Apr 27 17:45:14 seriously; is the number of points multi-touch events handle hardware dependant? Are there devices that can support two-point, and others that support 5 point? Apr 27 17:45:17 yes, there is a potential for the activity to be destroyed completely depending on how long they sit on the second activity Apr 27 17:45:40 you should use onSaveInstanceState to save things Apr 27 17:45:47 metter: read about the activity lifecycle, and how you should persist state. Apr 27 17:45:53 you can re-read them from onResume Apr 27 17:46:50 JakeWharton, thank you! What I don't understand though is that this object is read from the Intent that started Activity A. So when Activity A gets destroyed for memory reasons and then restarted, is onCreate not called with the same initial intent? Apr 27 17:47:36 metter: You Need To Read About The Activity Lifecycle And How You Should Persist State Apr 27 17:47:36 (The damn problem is I can not really find it out myself because I've found no way to reproduce the situation.. :( ) Apr 27 17:47:39 *cough* Apr 27 17:48:05 lov, thanks. I have read the whole page yet I still am unsure as to wheter the Intent is resent or not.. Apr 27 17:48:06 *cough* http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle *cough* Apr 27 17:48:21 *cough* http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle *cough* Apr 27 17:48:33 *cough* http://developer.android.com/reference/android/app/Activity.html#SavingPersistentState *cough* Apr 27 17:49:40 * wongk hands lov a ricola Apr 27 17:52:11 lov, yes, but as I understand it the Activity is destroyed when I, for example, rotate the screen. Correct? Apr 27 17:53:09 or when Android needs the memory Apr 27 17:53:38 Correct. Apr 27 17:53:47 Which is why you need to save information relevant to recreating the activity Apr 27 17:53:53 when your activity is recreated, you'll get that information. Apr 27 17:53:58 Read the docs. Apr 27 17:54:32 So the original Intent that started the activity is NOT provided? This is really all I need to know and I could nowhere find that. Apr 27 17:55:21 * Hiraghm hands lov a Halls cherry menthol Apr 27 17:55:25 If you call getIntent you should get the original intent. Apr 27 17:55:41 But You Should Be Persisting All Relevant Information In Your OnSaveInstance Calls Apr 27 17:56:14 allright, thank you. so the persistence is not the problem I have :/ Apr 27 17:57:38 1024x600 mdpi is xlarge ??? Apr 27 17:59:26 I don't know offhand, however, if that's actually true about getIntent Apr 27 17:59:34 canadiancow|work: sure Apr 27 17:59:43 canadiancow|work: 1280x800 mdpi is xlarge Apr 27 17:59:55 so kindle fire is xlarge? Apr 27 17:59:59 lolno Apr 27 18:00:06 well actually maybe it is Apr 27 18:00:06 well kindle fire isn't HC, so, no Apr 27 18:00:08 I forget ._. Apr 27 18:00:15 kindle fire reports itself as large Apr 27 18:00:18 right Apr 27 18:00:22 but a similarly configured emulator reports itself as xlarge Apr 27 18:00:23 because xlarge doesn't exist pre-HC Apr 27 18:00:35 a 2.3 emulator says its xlarge Apr 27 18:00:40 small/normal/large/xlarge is such a fucking hack Apr 27 18:00:46 I'm so glad it's gone Apr 27 18:00:56 its not gone Apr 27 18:01:07 it wont be gone until 3.2+ has at least 80% of hte market Apr 27 18:01:26 it's gone, just not dead Apr 27 18:02:02 xlarge 500 An extra large screen configuration, at least 600x800db. Apr 27 18:02:05 db? Apr 27 18:02:52 http://developer.android.com/reference/android/R.attr.html#screenSize Apr 27 18:03:37 ugh where the fuck are our fires Apr 27 18:06:55 nerds Apr 27 18:07:03 google zerg rush Apr 27 18:12:11 dantheman__: oh hello, what is it like living 6 hours in the past? Apr 27 18:14:17 lov: it kinda rocks Apr 27 18:14:28 lov: sorry i was like sleeping and coding Apr 27 18:14:34 you know working Apr 27 18:14:56 * Hiraghm sighs Apr 27 18:15:04 I too was working Apr 27 18:15:27 lov: I still am Apr 27 18:15:35 yes, and so am I. Apr 27 18:15:40 lulz Apr 27 18:15:41 *tears*.. if i have a vertical linearlayout.. and it has 3 textview children.. i want the top textview to use 20% screen height, the middle to use 10%, and the bottom to use the other 70%.. what properties should i adjust? Apr 27 18:15:46 i'm getting unexpected results from hell... Apr 27 18:16:02 layout_weights = 2, 1, 7 Apr 27 18:16:27 hi canadiancow Apr 27 18:16:39 i thought, setting the textview's layout_height="0dp" and layout_weights ^ like that, should work.. Apr 27 18:16:55 it should work Apr 27 18:17:01 you probably did something wrong Apr 27 18:17:05 well then. Apr 27 18:17:11 pastebin Apr 27 18:17:19 *inserts fork into brain* Apr 27 18:17:20 are you doing everything in XML or code? Apr 27 18:17:20 one sec. Apr 27 18:17:25 xml Apr 27 18:17:41 its been months since I've done a layout in XML Apr 27 18:17:45 can't help you Apr 27 18:17:51 I do all of my layouts in code Apr 27 18:18:02 why are the images bigger in the APK file? I just reduced the image sizes by 700KB only to see the APK file increase in size. Apr 27 18:18:44 I'm planning on creating a game for android.. 2D.. Wondering if I should go for OpenGL or just using surfaceviews and whatnot.. :S Apr 27 18:18:57 speed? Apr 27 18:19:06 the best speed will always be GL. Apr 27 18:19:07 you should probably use gles. Apr 27 18:19:16 ? Apr 27 18:19:52 meh. found it. -___-.. top-level layout was wrap_content.. christ on a stick. Apr 27 18:20:24 yes, that's how it went down, as I recall Apr 27 18:22:07 openGL > everything Apr 27 18:22:33 For someone who's almost never used OpenGL, how hard would it be to create a simple 2D game (a moving ball which has to go through certain obstacles etc) Apr 27 18:22:36 XeruX you can try doing it in processing for android if you just wanna play Apr 27 18:23:33 if you get the source for library you can build a fairly complex game using traditional views and activities as well Apr 27 18:23:54 source for what library? Apr 27 18:23:59 evancharlton: we need a new one i think. to save us from the obvious failures that cost 30+ minutes of "wtf!?". Apr 27 18:24:44 djustice: I'm not sure what you're talking about. I was making a poor-taste joke about "christ on a stick" Apr 27 18:24:56 same. Apr 27 18:25:02 oh Apr 27 18:25:06 Processing? bwahahahahah Apr 27 18:25:17 if he had another christ on a stick to save us from obvious code fail.. i'd go to church every week. Apr 27 18:25:57 me and djustice just now: http://partner-ad.photobucket.com/albums/g409/jactrades/Gifs%20and%20Macros/wediditdorks.gif Apr 27 18:26:36 ha ;) Apr 27 18:26:36 that's hilarious Apr 27 18:26:39 Is it possible to add ActiobarSherlock to eclipse WITHOUT it creating a new project folder? I just want it to use the library folder in ActionbarSherlock folder that git manages Apr 27 18:26:44 evancharlton: high bump! Apr 27 18:26:44 Is there a way to prevent any app from running? Apr 27 18:26:55 Jonathan_Eyre: as a user, or from another app? Apr 27 18:26:56 Jonathan_Eyre: shut off your phone? Apr 27 18:27:04 As another app. Apr 27 18:27:05 damccull, no, as an android library project, it needs to be referenced as a fully-fledged project Apr 27 18:27:10 Jonathan_Eyre: No. Apr 27 18:27:20 ctate our changes arent in the new support lib :P Apr 27 18:27:25 pfn, Can I not simply add the project files to the existing folder structure? Apr 27 18:27:35 damccull, no Apr 27 18:27:39 damccull, not as a lib-project, no Apr 27 18:27:49 canadiancow|work: meh. Apr 27 18:27:52 What about simply removing all apps, and locking the market? Apr 27 18:28:15 what's the best way to keep my copy updated then? manually recopy all the source whenever I git pull? Apr 27 18:28:45 Jonathan_Eyre: your app cant' do that. Apr 27 18:28:46 ctate: Is there a way to lock all apps as a user? Apr 27 18:29:06 uninstall Apr 27 18:29:09 uninstalling an app is pretty much the only way to be sure it's not running Apr 27 18:29:15 what is you want to accomplish, Jonathan_Eyre ? Apr 27 18:29:27 some sort of "kid protected" mode or something? Apr 27 18:29:27 you can disable system apps on ICS Apr 27 18:29:36 cant let the chidlren see my porn apps! Apr 27 18:29:37 you could reboot the phone to safe mode Apr 27 18:29:43 ctate: Securing a tablet for school. Apr 27 18:29:59 Or for a kiosk of sorts Apr 27 18:30:01 ctate could he not create an app that registers as a security app or whatever? Apr 27 18:30:06 i'd say you should do a custom build with only the software you want to allow Apr 27 18:30:31 And then turn off the market/ prevent any apk from downloading? Apr 27 18:30:43 there are some apps on Market that do various levels of scary hackery to try to implement this Apr 27 18:31:00 Jonathan_Eyre, if you make a custom rom, you don't have to even add the market. it's not a default app Apr 27 18:31:12 I saw some kid locking apps, which is exactly what I want for the workspace. Apr 27 18:31:13 but they're not strictly realiable and they're the sort of thing that has to be rewritten for every release Apr 27 18:31:33 Any ideas why a Project > Clean doesn't regenerate the R.java files? Apr 27 18:31:49 john_doe_jr: because Eclipse is an ass? Apr 27 18:32:03 device administrators might be something for you to look up too, Jonathan_Eyre, though I don't know if it'll be useful at all Apr 27 18:32:22 What if I register my app as a security app? Is there a way to auto-flag everything as evil? Apr 27 18:32:27 ctate: besides that Apr 27 18:32:34 john_doe_jr, It is supposed to but sometimes it gets confused. Restarting eclipse seems to fix it usually Apr 27 18:34:48 Jonathan_Eyre, sounds like ctate's suggestion of a custom rom is what you need. Just don't install vending.apk, and you will then have to side-load any software. Maybe modify it so it requires a password to install any apks somehow Apr 27 18:35:14 basically there is just no infrastructure for this kind of thing Apr 27 18:35:16 sorry Apr 27 18:36:32 what's the most common way of executing an asynctask periodically? obviously something better than in a new thread with sleep Apr 27 18:36:47 emit: Handler, or AlarmManager Apr 27 18:37:05 yeah, if you want to run asynchronous stuff periodically, AsyncTask is not really the right tool for hte job. Apr 27 18:37:10 AsyncTasks are one-shot. Apr 27 18:37:22 Consider using handlers and timers Apr 27 18:37:43 if it needs to be a separate thread, HandlerThread is terribly convenient Apr 27 18:38:18 hi all Apr 27 18:38:42 you're blowing my mind Apr 27 18:38:59 I've got a Gallery thats populating from a list of images stored on sdcard Apr 27 18:40:20 when I take a new picture and add it to the list I call listadapter.notifyDataSetChanged() but the image thats just been added isnt being shown Apr 27 18:40:47 your media index needs to be updated Apr 27 18:40:49 the image is confirmed as saved on sdcard and in my db Apr 27 18:41:06 media index? Apr 27 18:41:08 or are you reading them from the FS directly? Apr 27 18:41:30 I have a sqlite db with the paths that I use to load them Apr 27 18:41:41 i see Apr 27 18:41:53 does your adapter interface with the ddb directly? Apr 27 18:41:58 in the run() of runnable in handler.postDelayed, is it or is it no in the ui event thread? Apr 27 18:42:20 emit: it runs on whatever thread calls .run() on it. Apr 27 18:42:30 i.e. it depends on how you've handled the Runnable to cause it to execute Apr 27 18:42:36 yeah wongk it runs the query then loads the Bitmaps and adds them Apr 27 18:43:31 MickeySoFine: do you have the image path in some list that the adapter is using, or do you have a cursor adapter that uses the DB directly? Apr 27 18:44:06 wongk, a cursor so that it gets all newly inserted items Apr 27 18:44:46 so are you re-running the query after inserting the new record in the DB, or are you using the cursor to adapter to do the insertion Apr 27 18:44:52 er Apr 27 18:45:05 are you using the adapter to do the insertion Apr 27 18:46:31 Im using onActivityResult() to insert and save the Bitmap Apr 27 18:46:49 this is also where I'm calling notifyDataSetChanged() Apr 27 18:46:55 what is the statement you use to do the insertion Apr 27 18:47:38 I set my ContentValues then call db.insert("images",null, values); Apr 27 18:47:52 you need to rerun the query on the adapter Apr 27 18:48:30 doesnt notifyDataSetChanged() cause thats to happen?? Apr 27 18:48:46 http://www.42gears.com/surelock/ Either these guys are a con, or it really is possible to have a lock-down app. Apr 27 18:49:08 MickeySoFine: no, that tells the view the adapter data changed, but your adapter data hasnt changed Apr 27 18:49:20 MickeySoFine: re-running the query will make that call for you Apr 27 18:49:57 http://developer.android.com/reference/android/support/v4/widget/CursorAdapter.html#changeCursor(android.database.Cursor) Apr 27 18:50:09 hm. what's the best way to declare a 'global'(?) constant string? as in, i'd rather not have to define TAG = "my_app" for each activity i want to call Log.d(TAG,... from. Apr 27 18:50:11 Jonathan_Eyre: I know I've seen apps that do it, but I believe they use some sketchy tactics. Never investigated, though. Apr 27 18:50:17 Should it be possible to push files to /system on a normal, non-rooted android phone? Apr 27 18:50:18 i imagine there is a better way to do this? Apr 27 18:50:27 djustice: public static final String TAG = "my_app" Apr 27 18:50:48 isn't xml better? Apr 27 18:50:48 just make a Consts class Apr 27 18:50:53 evancharlton: but then i would need Log.d(OtherActivity.TAG... no? Apr 27 18:51:00 or Consts.TAG.. Apr 27 18:51:05 djustice: import static com.my.Consts.TAG; Apr 27 18:51:08 er, http://developer.android.com/reference/android/widget/CursorAdapter.html#changeCursor(android.database.Cursor) Apr 27 18:51:22 ahhh. thank you, sir. Apr 27 18:51:52 w00t! pfn i did what I was trying to do Apr 27 18:56:04 ? Apr 27 18:56:05 cool Apr 27 18:56:32 pfn: He probably won at paper football. Apr 27 18:57:58 evancharlton: I guess I'm just gonna have to go ahead and be the "sketchy tactics" guy. Apr 27 18:59:20 are adb usb drivers os-specific or platform specific? just wondering if i should bug the vendor Apr 27 18:59:21 Jonathan_Eyre: keep in mind, they can always just uninstall your app... Apr 27 18:59:43 had to install windows just to flash an official rom.. Apr 27 19:00:02 os specific Apr 27 19:00:09 Wouldn't that be true of SureLock as well? Apr 27 19:00:13 ok, thanks :| Apr 27 19:00:20 Jonathan_Eyre: yeah Apr 27 19:00:33 nkuttler: also, flashing interface is phone-specific Apr 27 19:01:14 p_l: so there's no chance of finding a driver for the platform/mainboard etc? Apr 27 19:01:38 for this one http://www.easypix.eu/easypad970_en.html Apr 27 19:02:08 nkuttler: find JTAG -> ???? -> PROFIT Apr 27 19:02:30 also, root it, then overwrite flash from OS level Apr 27 19:02:59 p_l: will have a look Apr 27 19:03:01 evancharlton: Assuming that this is a school-wide app, I think it will be easy enough to re-install and keep the students out again. HOWEVER, isn't there a way to password protect system settings, even when safe-booting? Apr 27 19:03:14 Jonathan_Eyre: no Apr 27 19:03:36 lol, thanks Google! Apr 27 19:03:38 Android really hasn't adapted for this use-case yet Apr 27 19:03:49 Well, snot. Apr 27 19:04:11 nkuttler: most devices use standard mtd drivers in linux for storage, some might use MMC (sd-card stuff). You can flash the former with linux mtd tools, the latter can be simply overwritten with /bin/dd Apr 27 19:04:28 nkuttler: won't work without fixing any write-protect it might have, though Apr 27 19:06:26 is there a gui in the layout/.xml that allows you to add a pager? Apr 27 19:06:32 Odd question, but why would you encrypt your device if you can always get in with safe boot? Apr 27 19:08:35 anybody? Apr 27 19:11:23 Jonathan_Eyre: you can't Apr 27 19:11:43 Jonathan_Eyre: if you encrypt your device, your system still needs to be decrypted to boot android Apr 27 19:14:23 evancharlton: So I encrypt the device, presumably putting a password on the beast, and then they can't safe-boot without my permission? Apr 27 19:14:30 Or is that too easy? Apr 27 19:14:54 has anyone else used their vibrating gillete razor to stimulate their prostate Apr 27 19:15:16 Jonathan_Eyre: you need the key to boot, or at least to get /data iirc Apr 27 19:15:19 Jonathan_Eyre means u cant access the files unless the OS is booted up Apr 27 19:15:31 safeboot is probably not the same, tho idk what safeboot is Apr 27 19:16:28 Is there a widget for pager? Apr 27 19:16:51 Jonathan_Eyre: what do you mean by safeboot? Apr 27 19:17:03 recovery? safe mode? fastboot? Apr 27 19:17:36 that is the question lol Apr 27 19:17:47 evancharlton: I honestly don't know. Someone else threw that around an hour ago as a way to uninstall anything. Apr 27 19:17:59 lol Apr 27 19:21:31 just got an email from that Cerberus app saying An unauthorized SIM card has been inserted into your device. Apr 27 19:21:57 but my phone is in my hand, and I didn't do anything other than reboot it? Apr 27 19:30:19 Here's a question, any suggestions for a number pad? Apr 27 19:30:31 other than a view with a ton of buttons? I feel like this is more work than necessary Apr 27 19:30:33 i like the one on my keybaord Apr 27 19:30:43 android:inputType="number" Apr 27 19:30:44 or numeric Apr 27 19:30:46 or whatever it is Apr 27 19:31:30 Can I skin that somehow? I'm aiming for a full screen approach. Apr 27 19:31:45 diy Apr 27 19:32:07 Figured as much Apr 27 19:37:30 android noob: trying to find the right terminology so I can do a proper google search for the documentation Apr 27 19:37:44 i've created a custom view for a repetitive board game element, I'd like to pop up a contextual menu, but want it triggered on touch Apr 27 19:37:55 context menu doesn't seem right (requires long press) Apr 27 19:38:07 popup window seems too intensive Apr 27 19:38:18 is there some terminology for what I'm looking for? Apr 27 19:40:25 example of what I think I'm after http://developer.android.com/design/building-blocks/dialogs.html#popups Apr 27 19:41:21 jeppdev that's a dialog Apr 27 19:41:29 maybe styled differently Apr 27 19:41:31 but still a dialog Apr 27 19:41:38 you can pop up anything you want as a dialog Apr 27 19:41:43 theres a setCustomView() option or something Apr 27 19:42:42 setView(); Apr 27 19:43:17 how do i keep the selected item in the listview highlighted? Apr 27 19:43:27 thanks, canadiancow|work that should provide some good google fodder Apr 27 19:43:34 custom adapter, set background color Apr 27 19:43:35 ? Apr 27 19:45:21 Jug6ernaut: U mean in the getView method? wouldnt that make all the items highlighted? Apr 27 19:45:32 I just want the selected item to stay highlight.. Apr 27 19:45:46 om4r afaik u cant do that by default Apr 27 19:45:49 and if the user choses another one, it highlights the other one Apr 27 19:45:55 hmm Apr 27 19:46:05 im saying using a custom adapter and do the highlighting manually Apr 27 19:46:28 hmm Apr 27 19:46:54 can u explain what do u mean by manually Apr 27 19:47:12 there mgiht be a getAdapter().getPosition(x).getView() idk Apr 27 19:47:29 what adapter are u using Apr 27 19:47:50 call setSelected(true) and use a state list drawble Apr 27 19:47:58 there's an API demo or this Apr 27 19:47:59 for Apr 27 19:48:11 or that^^^ lol Apr 27 19:48:41 * Jug6ernaut finds he usually does shit the hard way :S Apr 27 19:50:02 ok ill check that out thanks Apr 27 19:52:53 Hi, if a button is already selected what is the best way to make sure when that button is clikcked again the event is not fired again? Apr 27 19:53:32 when it's cliccked ccall setDisabled? Apr 27 19:53:49 Okay il look into it. thx Apr 27 19:53:55 setClickable Apr 27 19:54:18 ohj yeah that Apr 27 19:54:21 Im looking for developpers that have tried to dev on sony smartdevices (smartwatch / smart headset) Apr 27 19:54:36 I have some issues with importing the api projects :( Apr 27 19:57:38 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/net/Uri.java#Uri.Builder.appendQueryParameter%28java.lang.String%2Cjava.lang.String%29 Apr 27 19:57:41 worst. method. ever. Apr 27 19:57:49 why no Map :( Apr 27 19:58:28 androidd inconsistent? well I never Apr 27 20:00:14 reading the morning news, i see apple isn't expanding their taxas campus at the moement because their tax breaks are in question. why the fuck does a company like apple need tax breaks Apr 27 20:00:29 i know, i know, to entice them to be /there/ Apr 27 20:00:50 more interesting: http://www.h-online.com/open/news/item/Oracle-vs-Google-former-Sun-CEOs-on-opposing-sides-1562795.html Apr 27 20:02:14 that's awesome Apr 27 20:02:42 g00s, who "needs" more money, but it's certainly an incentive for continuing business Apr 27 20:05:19 In the getView method of the ListView custom adapter.. how do i set the current view's background? Apr 27 20:05:21 "Citibank creates Android tablet app exclusively for Kindle Fire" .. wut Apr 27 20:05:25 Jug6ernaut, storkme_ I have 5 button. I need to disable/ or deactivate them individually. Apr 27 20:05:32 stupid citibank Apr 27 20:05:40 viperfx yes Apr 27 20:05:45 Each click does something different with the drawview Apr 27 20:05:58 holy hell.... apparently to install ruby, you need... ruby already installed Apr 27 20:06:03 How is Setclickable meant to be used since sdk says its for a view Apr 27 20:06:03 wtf Apr 27 20:06:19 that's a reall good question Apr 27 20:06:35 viperfx any view can be clickable, a button is just an extention of a view Apr 27 20:06:44 i ccan't think of a sufficiently sarcastic response so i shan't bother Apr 27 20:06:56 so say if the button was called button1 Apr 27 20:07:16 then how do i disable it? Apr 27 20:07:24 I have a onclick listener Apr 27 20:07:36 i guess if you use windoze , this is important http://www.h-online.com/security/news/item/Version-4-0-of-Microsoft-Security-Essentials-released-1562017.html Apr 27 20:07:46 in the onclick button1.setClicable(false) Apr 27 20:08:26 ew no; use setEnabled(false) Apr 27 20:08:52 in which case it will be *drawn* properly to indicate its inactive status Apr 27 20:09:06 whereas setClickable(false) will just make it look like it should work, but not actually do anything. Apr 27 20:09:18 kinda depends on the state list drawables :) Apr 27 20:09:30 if i use a switch statement to find which button is pressed like switch(v.getId()){ and select with case R.id.button1: Apr 27 20:09:34 in general you shouldn't have to muck with clickable when using stock widgets Apr 27 20:09:34 i notice the phone app in ics doesn't disab;e anything, they are just not clickable Apr 27 20:09:40 Is that still possible inside the case statement Apr 27 20:10:07 g00s: huh! ew. Apr 27 20:10:11 yes Apr 27 20:10:45 ctate: yes, the broderless buttons in the dialpad (on the bottom). i decided, if its fine for google, its fine for me - and i did my whole app that way :P Apr 27 20:10:53 * g00s runs Apr 27 20:11:14 lol Apr 27 20:11:23 Jug6ernaut: I cannot just access the button with button1.setEnabled(false); Apr 27 20:11:40 have to make the button final Apr 27 20:12:18 Oh right okay. Apr 27 20:16:12 Hmm does not seem to work. Here is a paste, have a quick look please, if you have time. Apr 27 20:16:13 http://pastebin.com/MsRvD9kr Apr 27 20:16:23 is there a way to reduce the sensitivity of onSensorChanged() ? Even with the device is idle, it's firing this event Apr 27 20:16:39 else, I'm using if (delta < -5 || delta > 5){ Apr 27 20:19:31 Any ideas Jug6ernaut? Apr 27 20:20:32 Ah got it! thanks for the help Apr 27 20:20:47 Good afternoon all. I'm having difficulty with the exifInterface class methods as shown here http://pastebin.com/AnEpJEMP and I woner could anyone provide some insight into what's going on here? Are image files not ulle written by the time ContentObserver is first triggered maybe? What else should I be looking at here? Apr 27 20:22:59 is there something else like a GridView with headers/footers? Apr 27 20:23:36 <[twisti]> hi, i have two AVDs, but in eclipse, only one shows up Apr 27 20:23:40 <[twisti]> whats the deal with that ? Apr 27 20:24:07 the both show up in the avd manager ? Apr 27 20:24:30 <[twisti]> yes Apr 27 20:24:55 check the launch configuration for the project maybe? Apr 27 20:25:07 <[twisti]> yes, thats where only one shows up Apr 27 20:25:44 One question - if a button is disabled using the setEnabled method then should that method not be enabled when another button is pressed? Apr 27 20:26:25 ital be local to that button instance Apr 27 20:26:38 i'm not sure i follow. disabling a button is just for making *just that button* (a) not respond to touch, and (b) draw itself in a way that indicates that it is not going to respond to touch Apr 27 20:27:38 twist: Eclipse is very picky about the AVD ini file format. Try repairing the AVD via AVD manager to get it to show up as a launch config option Apr 27 20:28:16 Well what im trying to achieve is that when a button is pressed, to do something it cant be repressed on that Apr 27 20:28:29 twist: it's also possible that eclipse doesn't think the missing AVD is running an OS version compatible with your project Apr 27 20:28:56 <[twisti]> hm, how do i set my project to allow whatever version 'upwards' ? Apr 27 20:29:09 <[twisti]> that could be it, the new avd that doesnt show up is 4.0.3 Apr 27 20:29:51 there'a a manifest tag where min and max version are specified. SImply remove the max version (I think) Apr 27 20:30:11 ctate: so to do what I want, I need to think of another way? Apr 27 20:30:18 Jug6ernaut: what does that mean? Apr 27 20:30:23 what do you want, viperfx ? Apr 27 20:30:39 Well what im trying to achieve is that when a button is pressed, to do something it cant be repressed on that Apr 27 20:30:56 <[twisti]> i see nothing like that, hillct Apr 27 20:31:02 so what you can do is setEnabled(false) on it from its own click handler Apr 27 20:31:14 I press Square and a square is drawn with a random color Apr 27 20:31:18 <[twisti]> i have this: android:minSdkVersion="7" Apr 27 20:31:19 <[twisti]> android:targetSdkVersion="15" /> Apr 27 20:31:22 but i should not be able to repress Apr 27 20:31:26 so if the user tried to tap twice, by the time the second rolls around the button is disabled and inactive Apr 27 20:31:28 <[twisti]> but that covers both avds Apr 27 20:31:43 twist look for a tag of the form: Apr 27 20:31:54 somebody mind chatting with me about a layout problem im having... Apr 27 20:31:59 that might also specify a max version Apr 27 20:32:18 * [twisti] points up Apr 27 20:32:22 Okay I understand ctate but how can I reenable that button when I click another button? because it seems to stay disabled. Apr 27 20:32:43 just call setEnabled(true) on it whenever you want Apr 27 20:32:45 mThatButton.setEnabled(true) Apr 27 20:33:09 twist: well, that's the tag I meant. If it's not there, that may in itself be a problem, so try inserting it with min API version specified, but not max Apr 27 20:33:12 yes but I cannot seem to access the buttons just the view. Apr 27 20:33:15 has anyone else been tempted to use their vibrating razor as a prostate stimulator? Apr 27 20:33:17 http://pastebin.com/MsRvD9kr Apr 27 20:33:19 * [twisti] points up again Apr 27 20:33:22 <[twisti]> thats what i have Apr 27 20:33:37 viperfx: make the buttons a member variable Apr 27 20:33:44 hmm. no sure then Apr 27 20:34:22 Does the problem AVD show up for other projects? (a newly created project)? Apr 27 20:34:23 not sure how.. Apr 27 20:34:27 yeah, you need to retain the Button pointers as class members, not just local variables inside onCreate() Apr 27 20:34:32 I thought setting it to final would do it Apr 27 20:34:34 then you can refer to them from anywhere in the class Apr 27 20:34:39 Okay Apr 27 20:34:47 viperfx: um, this is basic Java programming language stuff Apr 27 20:34:55 <[twisti]> aaah Apr 27 20:35:05 <[twisti]> i dont have the SDK linked in eclipse Apr 27 20:35:08 <[twisti]> that explains it Apr 27 20:35:17 <[twisti]> thanks for the idea with a new project Apr 27 20:35:17 viperfx: http://pastebin.com/EM6wbeyh Apr 27 20:35:20 aha! That' do it Apr 27 20:35:29 np Apr 27 20:35:51 no is there a grid view master in here? Apr 27 20:36:03 or a layout master... Apr 27 20:36:11 twist: any thoughts on my exifInterface file writing issues? Apr 27 20:36:31 <[twisti]> well, i know what a file is Apr 27 20:36:39 <[twisti]> but thats about all i understoof of your problem Apr 27 20:36:57 Oh right, hmm ye i should have got this. Apr 27 20:37:00 thanks. Apr 27 20:37:10 <[twisti]> you didnt actually ask your question while i was here either Apr 27 20:37:38 <[twisti]> but i know near nothing about android stuff Apr 27 20:37:47 <[twisti]> so unless its a general java thing i wont be much help Apr 27 20:38:57 I don't know i the exifInterface class is android-specific or not... but here's my question and related code Apr 27 20:38:58 I'm having difficulty with the exifInterface class methods as shown here http://pastebin.com/AnEpJEMP and I woner could anyone provide some insight into what's going on here? Are image files not ulle written by the time ContentObserver is first triggered maybe? What else should I be looking at here? Apr 27 20:40:36 <[twisti]> sorry, no idea Apr 27 20:41:18 K thanks Apr 27 20:47:41 [twisti]: can you chat for a minute? Apr 27 20:47:54 <[twisti]> uh, ok ? Apr 27 20:48:10 [twisti]: have you done any grip type layouts before? Apr 27 20:48:21 <[twisti]> ive never even heard of that Apr 27 20:48:27 s/grip/grid Apr 27 20:48:36 <[twisti]> is that swing ? Apr 27 20:48:48 GridView, ListView, TableLayout, etc... Apr 27 20:49:06 <[twisti]> i know tablelayout, thats a third party library for swing Apr 27 20:49:16 <[twisti]> never heard of the other two Apr 27 20:49:41 lol ok. Apr 27 20:49:50 has anybody ever used a GridView or ListView? Apr 27 20:50:28 I'm sure someone has Apr 27 20:50:33 http://www.forbes.com/sites/adriankingsleyhughes/2012/04/26/forrester-without-jobs-apple-will-coast-and-then-decelerate/ Apr 27 20:50:41 SimonVT: i didn't think anyone ever used listview :) Apr 27 20:50:48 It's overrated Apr 27 20:50:58 Vertical LinearLayout in a scrollview is much better Apr 27 20:51:04 i'm using a s3cr3t listview 2.0 Apr 27 20:51:05 ^^ Apr 27 20:51:26 I use SecretListViewFromContactsApp..View Apr 27 20:51:47 SimonVT: and why is a LL and a ScrollView better? Apr 27 20:51:49 aka PinnedHeaderListView Apr 27 20:51:52 I was joking Apr 27 20:53:28 You should ask a real question instead, you'll be more likely to a real answer Apr 27 20:53:53 I think I a word there Apr 27 20:54:05 i need a gridview with a header and footer that scrolls with view, not a fixed header/footer. Apr 27 20:54:38 create one Apr 27 20:54:41 gridview doesn't support that Apr 27 20:54:51 lol i know that SimonVT Apr 27 20:54:58 What QubeZ said Apr 27 20:55:47 damn this haleem (indian dish) is good Apr 27 20:55:50 Or, be smart with listview Apr 27 20:55:59 if you like indian food, get some good haleem people Apr 27 20:56:14 Google does this in market iirc. It's actually just a listview that looks like a gridview Apr 27 20:56:30 The adapter manages creating views with n items per row Apr 27 20:56:44 yeah i made a layout for my lsitviews that look just like a gridview. Apr 27 20:56:53 There you go Apr 27 20:57:13 but screen sizes is a problem Apr 27 20:57:24 because some screens can handle 3, and some can handle 4, and some can handle 8.. Apr 27 20:57:37 Manage that with dimensions in res Apr 27 20:58:07 layout 2 columns, layout-land 3 columns, layout-large 3 columns, layout-large-land 5 columns Apr 27 20:58:07 you mean naming folders for each dimension? Apr 27 20:58:09 Or whatever Apr 27 20:58:14 Or, get the screen size Apr 27 20:58:15 SimonVT: are you sure about this ? ( market / listview ) Apr 27 20:58:17 And do math Apr 27 20:58:22 g00s: Pretty sure Apr 27 20:58:38 g00s: That's how they achieve the "Loading" row at the bottom Apr 27 20:58:42 SimonVT: your first solution wont work Apr 27 20:58:46 SimonVT: it's the math solution im trying to avoid. Apr 27 20:59:12 Why wont my first solution work Apr 27 20:59:49 EvilPenguin: this is the first time I've heard a developer say they are trying to avoid the math solution Apr 27 21:00:00 QubeZ: are you kidding? I try to avoid math solutions all the time Apr 27 21:00:15 usually the built-ins are much smarter than I am Apr 27 21:00:46 I'm talking about for something that doesn't exist Apr 27 21:02:25 Wanted to run something by you guys... Apr 27 21:02:27 QubeZ: the math would only be get the screen size, divide by my sizes, divide that by my space, and layout. Apr 27 21:02:55 exactly what i do on iOS :) Apr 27 21:03:09 Anyone here have working code on how to send MMS in the background? Apr 27 21:03:29 talntid: we're not really a "pls to send the codes" kind of channel Apr 27 21:03:41 I'm handling recurring task in my alarm receiver. If a user sets a task for daily repeating and alarm goes off for it, in my alarm receiver I create the next task for them and set the alarm (again recurring). BUT I am trying to deal with a special case where the original task does not have alarm set therefore I cannot ever deal with it in my alarm receiver. So basically, no alarm set for the task (initially) but they have it set to Apr 27 21:04:00 I didn't ask for someone to send me codes. It appears to be missing from the API, so I was wondering exactly what I asked - Anyone here have working code on how to send MMS in the background? Apr 27 21:04:18 aka, has anyone successfully done this? Apr 27 21:04:33 ah, okay :) Apr 27 21:05:23 talntid: you're right, it is indeed missing. Apr 27 21:05:30 There's lots of info on google, but nobody seems to have actually "done" it. Apr 27 21:05:32 Every carrier has their own broken version of mms, as I understand Apr 27 21:05:48 The SMS app is just a sad, sad project :( Apr 27 21:06:10 talntid: pull the android source, take a look at the app for SMS, look at the MMS part. Apr 27 21:06:53 I have done that, but since I am new to android stuff, it's not all that clear to me yet. I am trying to figure out if it's a realistic goal before jumping in and learning to dev in android Apr 27 21:07:13 can I make an activity, launched by a receiver, show independently of my main app activity? Apr 27 21:07:29 talntid: in this particular case, I would honestly say that it's not. MMS is a mess. Apr 27 21:07:37 what gives me hope, is an app called "mightytext"... it seems to do MMS/SMS... Apr 27 21:07:39 it's a laudable goal but the implementation sucks. Apr 27 21:07:57 feel free to try it, but I can't promise success or anything. Apr 27 21:07:58 I think that deep down, MMS is just a special message sent over SMS... Apr 27 21:07:59 ironhalik: yes Apr 27 21:08:43 QubeZ: any quick pointers? Apr 27 21:12:44 ironhalik: what exactly are you trying to do? give a concrete example. For example, in my app -- I have an AlarmReceiver code to capture when task alarm goes off I set a pendingIntent and set's a notification icon in the status bar. WHen they user accesses that notificaiton, an Intent fires to launch an activity. Apr 27 21:12:53 so they can snooze, mark item completed etc... Apr 27 21:14:18 QubeZ: Ive got a Dialog themed activity that is started by onReceive in broadcast receiver. Currently, when the dialog activity pops up, the main application activity starts in the background too Apr 27 21:18:48 ironhalik: show us the code Apr 27 21:19:11 I am making an app that makes use of a dock. I know on my stock motorola atrix that in a car dock the car dock app can appear even if the screen is locked (launching any apps forces an unlock). Is this in AOSP? I googled around but nothing comes up as the terms are kind of generic. Apr 27 21:19:41 I kind of want to be able to just plop my phone in the dock and have it launch even if the screen is locked. It just shows a clock right now. Apr 27 21:21:24 Mgamerz: I seem to recall there's a permission for it Apr 27 21:21:30 for running on top of a lock screen Apr 27 21:21:44 yea... googlign for it. stackexchange seems to be getting me somewhere Apr 27 21:22:21 SimonVT: you use the pinned header list view? Apr 27 21:22:26 QubeZ: http://pastebin.com/fwNUfCAZ Apr 27 21:22:28 i found its API disgusting Apr 27 21:22:55 pinned header listview ? Apr 27 21:23:02 Mgamerz: WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED Apr 27 21:23:05 Mgamerz: start there Apr 27 21:23:15 g00s: from the people app Apr 27 21:23:25 thanks evancharlton Apr 27 21:27:38 JakeWharton: Yeah Apr 27 21:27:39 And it is Apr 27 21:27:52 Changed it quite a bit Apr 27 21:28:21 but it looks so nice :P Apr 27 21:29:53 I want to write my own version of that API Apr 27 21:30:08 You should Apr 27 21:30:08 once that doesn't require traversing the entire dataset initially Apr 27 21:30:21 Ah yeah, that blows Apr 27 21:30:22 ironhalik: side note, make sure to set in your manifest for Dialog this: android:excludeFromRecents="true" Apr 27 21:30:27 for the Dialog activity Apr 27 21:30:51 what mean 'P2P_UNSUPPORTED' :( http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.html#P2P_UNSUPPORTED Apr 27 21:31:46 Hi all … anyone here have suggestions on http://stackoverflow.com/questions/10289952/android-listview-and-edittexts-with-live-data Apr 27 21:32:21 QubeZ: thx, good tip Apr 27 21:32:46 ironhalik: I've never used Intent's in receivers before, I use PendingIntent Apr 27 21:32:58 not sure if this has something to do with it, someone more experienced than I can comment Apr 27 21:33:01 I'll keep looking at it Apr 27 21:33:32 QubeZ: Hmm, I applied the excludefromrecets on my main activity, and it doesn't show now Apr 27 21:33:56 QubeZ: and since the main activity is only for configuration, and is one level deep, it shouldnt break anything Apr 27 21:34:18 hmm wait, why on your main activity? That config should be applied to your .Dialog in manifest Apr 27 21:34:32 might be a hack, If I were you, celebrate short-term but try to understand this problem better Apr 27 21:35:20 I applied it for both Apr 27 21:35:33 How can I set a text to be on top of a drawview or linearlayout? Apr 27 21:35:46 Ill comment it in case it causes troble in the future Apr 27 21:35:54 QubeZ: anyway, thanks, helped a lot Apr 27 21:36:36 JakeWharton: Ever looked at ThreePaneLayout from the email app? Apr 27 21:36:45 Love that Apr 27 21:36:48 No Apr 27 21:36:57 ironhalik: well, dont apply to main activyt otherwise your main activity (app) will not be in your recent apps list Apr 27 21:37:00 I will though Apr 27 21:37:01 but thats up to you, g'luck Apr 27 21:37:37 Like mailboxes in left pane, emails in middle pane, right pane slides in and displays the email when one is clicked Apr 27 21:38:00 Indian food + Red Bull --- problems later tonight... hrmpff Apr 27 21:38:20 Wish I could turn the clock back 30 mins, reanalyze my situation Apr 27 21:38:35 How can a text view go on top of a linear layout? I have set the gravity to be top but that does not seem to be it Apr 27 21:38:46 viperfx: layout_gravity Apr 27 21:39:41 if you want the text in the textview to be at the top, then gravity... if you want a view (textview) to have gravity within layout then layout_gravity Apr 27 21:39:45 Hmm that still seems to push my drawview to the side Apr 27 21:39:46 i think i have that right :\ Apr 27 21:39:55 viperfx: post your xml holmes Apr 27 21:40:20 http://pastebin.com/uD6Jct6M Apr 27 21:42:58 hmm so you have weight on yoru drawview but not on the textview and you have weight on your LL Apr 27 21:43:05 looks like an incomplete picture Apr 27 21:43:13 tell me what you are trying to do here Apr 27 21:43:24 i.e. what you envision it to look like Apr 27 21:43:36 Trying to give the drawview the full space Apr 27 21:43:40 and text view to be on top Apr 27 21:44:18 well by default LL is horizontal so you need to first set its orientation vertical Apr 27 21:45:34 okay Apr 27 21:45:53 remove the weight from DrawView and remove layout_gravity from textview Apr 27 21:47:36 also, if you want to give drawview the "full space", then that leaves no room for your textview, why have the textview? Apr 27 21:48:02 or are you trying to where TV exists but DV takes up the rest of the space? Apr 27 21:48:20 yea Apr 27 21:48:30 if so, tv should be layout_height="wrap_content" like you have but DV should be fill_parent for layout_height Apr 27 21:48:43 and it'll consume the rest of the space, iirc Apr 27 21:51:26 QubeZ: hmm nearly. it not too bad with vertical set. But the TV still takes up space Apr 27 21:52:21 got a screenshot? Apr 27 21:53:56 http://cl.ly/0a2B0l1E3T0M0T3x2T17 Apr 27 21:54:21 isn't that what you want? Apr 27 21:56:01 Well ideally text view should be on top of the drawview. Sorry did i say the wrong thing? Apr 27 21:56:03 khttp://www.theverge.com/2012/4/27/2979892/jean-baptiste-queru-android-4-update-sony-aosp-contribution Apr 27 21:56:08 i thought it was 8 mos though Apr 27 21:56:21 viperfx: ok well we are getting miscommunication about what you mean by "top" Apr 27 21:56:36 on top like hierarchy or on top as in overlay? Apr 27 21:56:41 overlay :) Apr 27 21:56:48 ok see, better word choice Apr 27 21:57:00 I was trying to relate it to css Apr 27 21:57:05 i got confused :) Apr 27 21:57:41 viperfx: then you need to put FrameLayout inside your LinearLayout and make it Apr 27 21:57:55 Why even have a LL then Apr 27 21:58:13 SimonVT: true, I just didn't see the rest of his XML and wasn't sure if it might be needed for him for some reason Apr 27 21:58:31 but yet, it can be in the strictest sense Apr 27 21:58:37 s/yet/yea Apr 27 22:43:04 Hi, guys. I'm developing an app with a WebView. Everything works fine in Android 4.0.3 emulation, but I've noticed that in Android 2.2 emulation, my WebView loses its cookies between requests. :-( Any ideas? Apr 27 22:46:37 has anyone else been tempted to use their vibrating razor as a prostate stimulator? Apr 27 22:46:40 * g00s avoids webview at all costs Apr 27 22:47:12 all costs sounds expensive Apr 27 22:48:36 omg, i just fought the app widget intent....because i forgot to add it to manifest, lesson...learned (i hope) Apr 27 23:00:40 "OKMULGEE, Okla. -- The Oklahoma Highway Patrol says a portable methamphetamine lab exploded in a man's pants as he tried to run away from a state trooper during a traffic stop." Apr 27 23:00:58 oklahoma .. Apr 27 23:04:16 I need to share data from phoneapp to a webapp. I'm studing about c2dm and so far it seems i would use it just to authenticate and to avoid busy waiting, then it is not obvious (and this is my current doubt) how shall i share data from my mobile app to the web app. Soa doesn't seem a good altenative and i'm considering get and posts... any suggestion ? Apr 27 23:08:24 is there an intent that would launch the text messaging application, and go straight to reply mode for given contact? Apr 27 23:20:40 ok, let me change the question, on android would you make a rest or xmlrpc based app ? Apr 27 23:22:04 i don't see what android has to do with rest vs xmlrpc Apr 27 23:22:45 probably rest :) Apr 27 23:23:11 r0ver: everything boils down to get and post ... Apr 27 23:25:04 thanks guys, so far, it seems rest is better supported and documented than xmlrpc... (lazy developer here :) ) Apr 27 23:45:07 Is it possible to have URL connection's openConnection() be non-blocking? Apr 27 23:48:13 vadi2 threads Apr 27 23:48:26 That still makes it be blocking within the thread Apr 27 23:48:38 ofc Apr 27 23:49:26 could someone take a quick look at this code: http://pastebin.com/VKGekBTX Apr 27 23:49:38 and tell my wont it resolve contact name from number? :) Apr 27 23:58:25 hey guys, I have a question about the caching images and the speed of decoding bitmaps. If I have a bunch of smallish jpegs, wouldn't it be more memory efficient to cache the jpg as a byte array and decode it when I need the bitmap instead of caching the decoded bitmap? Whats the performance trade off there? Apr 27 23:59:42 Hi, I'm working on a app that is using the GPS quite heavily, but my main issue right now is the speed at which my Phone is recieving a GPS lock. Is there any way to write my app so it's using some form of service to recieve information faster so the end user won't think that the app has broken? Apr 28 00:01:35 twqla, you could use last known location or a courser location provider to get a faster lock. You don't want to keep the GPS on all the time… If you're just worried about user perception just show a loading spinner or something. Apr 28 00:01:45 coarse* Apr 28 00:05:15 jayd16 Gonna try the coarse location provider and LocationManager.NETWORK_PROVIDER, thank you Apr 28 00:06:38 twqla no prob. Although, I would still suggest letting the user know when its taking a long time to get a gps signal. That can just happen if you were in a tunnel or a faraday cage or something. Apr 28 00:06:50 I have a compound control class. A view that contains other views. I am trying to make it parcelable, but when I create MyView(Parcel in){} it tells me I must explicitly call another constructor. When I try to do this(context,null), I can't find a method to get me a context. getContext() exists but can't be used during construction... Apr 28 00:06:54 how do I do this? Apr 28 00:07:20 jayd16 I'll try to incorporate some thing in the HUD of the application :) Apr 28 00:09:34 damccull, you dont actually have the context. You're supposed to pass that in when you construct the view. Can you add it to your parcel constructor? Apr 28 00:10:43 jayd16, I don't know.a ll the examples show a simple MyClass(Parcel in). I wonder if androud would let me change that or if it needs that format to call the constructor. Apr 28 00:10:51 anyways, I'll keep looking. gotta head out for now Apr 28 00:11:11 damccull, I dont think its in Parcelable so I think you're safe there Apr 28 00:11:34 jayd16, I'll check it out later this evening :) Apr 28 00:54:35 With my actionbar-powered tabs: how can I make it so that scrolling sideways will change the tab? Apr 28 01:10:15 vadi2 viewpager Apr 28 01:10:54 thanks Apr 28 01:28:27 I'd like to have a button stay on top of the screen while a listview is scrollable - I put my listview into a scrollview for that, and it complains that this shouldn't be so. What's the proper way to make this layout happen? Apr 28 01:29:32 listview is already scrollable Apr 28 01:29:57 Oh derp. That's right, it won't scroll the whole view. Apr 28 01:48:37 this is the text from my router: Cann't use wireless interface to access web. Apr 28 01:48:41 shitty Apr 28 01:57:04 is there a way is there a way to set eclipse to run and debug an app on a device instead of the emulator ? Apr 28 01:57:43 devslash: same way you do on emulator, just point to the actual device instead Apr 28 01:57:54 Plug the device in. Apr 28 01:58:01 if your phone is plugged in, you can run debug on the phone as target instead of emu Apr 28 01:58:09 how ? when i plug it in via usb i don't see the device listed under run configurations Apr 28 01:58:21 I don't remember even having to tell it to do that, it just found it itself. ymmv. Apr 28 01:59:14 i never had to do that either, plugging in a phone then running as debug brought up the window for me to select the target Apr 28 01:59:20 I just choose my phone from the list Apr 28 01:59:39 so you'll have your avd list of emu's + phone (if eclipse/your PC recognizes the phone) Apr 28 01:59:52 QubeZ: open a command prompt and type in: adb kill-server and press enter Apr 28 02:00:01 follow that command with: adb devices enter press enter Apr 28 02:00:12 It doesn't even do that to me. For me it was like "where the hell is my emulator? And what the shit is running on my phone? Oh. Oh." Apr 28 02:00:15 if the command line doesnt list your device then its a driver issue Apr 28 02:00:33 Napalm: I'm helping devslash, I'm all good :) Apr 28 02:00:41 oh i mean devslash Apr 28 02:00:42 my phone is plugged in i went to run configurations but i don't see an option there Apr 28 02:00:49 do i have to enable usb debugging Apr 28 02:00:55 devslash: read what i just said Apr 28 02:01:33 devslash: also make sure your Run Configurations' Target is set to Automatic Apr 28 02:01:49 it is Apr 28 02:01:59 the do the commands i just wrote before hand Apr 28 02:02:05 i did dab devices and it shows emulator-5554 device Apr 28 02:02:09 hello Apr 28 02:02:20 devslash: did you kill-server before hand? Apr 28 02:02:29 no Apr 28 02:02:37 * Napalm rolls-eyes Apr 28 02:02:43 the adb server ? Apr 28 02:02:48 as i said, read what i wrote above Apr 28 02:02:59 open a command prompt and type in: adb kill-server and press enter Apr 28 02:03:03 follow that command with: adb devices enter press enter Apr 28 02:03:16 ok Apr 28 02:03:21 its not showing any devices Apr 28 02:03:37 is it showing any devices on command line? Apr 28 02:03:37 I'm on a mac. i can connect to it via dab file transfer (I'm on ICS) Apr 28 02:03:41 no Apr 28 02:03:50 then its a driver issue Apr 28 02:04:01 no. I'm on a mac not a pc Apr 28 02:04:09 same thing Apr 28 02:04:18 and it is recognized using the newer protocol used in ICS Apr 28 02:04:32 open command prompt Apr 28 02:04:39 type: cat ~/.android/adb_usb.ini Apr 28 02:04:54 devslash: the file protocol has nothing to do with debugging Apr 28 02:04:59 no devices are listed there Apr 28 02:05:13 listed where? Apr 28 02:05:21 in adb.ini Apr 28 02:05:29 type the command Apr 28 02:05:36 pastebin.com your result Apr 28 02:05:56 i can paste bin but theres only 3 commented lines Apr 28 02:06:02 ok fine Apr 28 02:06:07 now type: lsusb Apr 28 02:06:12 and pastebin.com the result Apr 28 02:06:23 i don't have that command Apr 28 02:06:27 thats linux only iirc Apr 28 02:06:33 i believe mac has it Apr 28 02:06:38 no Apr 28 02:07:00 devslash: system_profiler SPUSBDataType Apr 28 02:07:18 do you see your device listed Apr 28 02:07:39 no Apr 28 02:07:41 shit Apr 28 02:07:44 lol Apr 28 02:07:49 shit what? Apr 28 02:07:58 its not listed Apr 28 02:07:59 ok Apr 28 02:08:09 check your devices settings>dev Apr 28 02:08:14 make sure its enabled Apr 28 02:08:19 then unplug and replug the usb cable Apr 28 02:08:27 redo above command to see if it gets listed Apr 28 02:08:32 usb development is enabled Apr 28 02:08:44 unplug the usb, and replug it Apr 28 02:09:17 ahh now its being identified Apr 28 02:09:22 by system_profiler Apr 28 02:09:25 good Apr 28 02:09:26 now type Apr 28 02:09:29 adb devices Apr 28 02:09:31 does it get listed Apr 28 02:09:41 its showing Apr 28 02:09:42 42a10517037c7106 device Apr 28 02:09:45 good Apr 28 02:09:51 it should now work in Eclipse Apr 28 02:10:06 where in eclipse do i choose it ? Apr 28 02:10:09 run configurations Apr 28 02:10:15 just press run Apr 28 02:10:22 it will popup with a prompt to select the device Apr 28 02:10:40 thats if you have the Run Configuration > Target set to Automatic Apr 28 02:10:41 it just starts the emulator Apr 28 02:10:52 close the emulator Apr 28 02:10:56 and put it on automatic Apr 28 02:11:04 i did Apr 28 02:11:08 if it still doesnt work, you might want to restart Eclipse Apr 28 02:11:15 it should then pickup the device Apr 28 02:11:32 ip Apr 28 02:11:35 ok Apr 28 02:11:45 do you run an app called EasyTether on your Mac? Apr 28 02:11:53 no Apr 28 02:11:54 why ? Apr 28 02:11:54 apparently it can interfere with adb Apr 28 02:12:54 nope Apr 28 02:12:58 still launching the emulator Apr 28 02:13:13 is the emulator ticked in your run configuration? Apr 28 02:13:17 yes Apr 28 02:13:21 untick it Apr 28 02:14:03 ok Apr 28 02:14:10 thanks i think its working now Apr 28 02:26:19 Hey there. Can anyone help me with creating an app for my Android? Apr 28 02:26:48 read http://developer.android.com/guide/index.html Apr 28 02:26:48 GreyF0x: your going to have to be a little bit more specific Apr 28 02:26:49 all of it Apr 28 02:27:01 canadiancow: :) Apr 28 02:27:11 you smile, but... Apr 28 02:27:13 canadiancow: best advice ever Apr 28 02:27:15 its got a lot of good info Apr 28 02:27:21 ive read it, i know Apr 28 02:27:26 I want to create an app where when my bluetooth connects to my car, WifI turns off, and Pandora runs Apr 28 02:27:32 canadiancow, I wrote a basic app before reading that. I'm going through it now and am realizing how much of an idiot I am xD Apr 28 02:27:49 GreyF0x: good luck Apr 28 02:28:17 GreyF0x, had much programming experience? Apr 28 02:28:23 Not at all...hahaha Apr 28 02:28:33 But willing to learn... Apr 28 02:29:09 GreyF0x, I'm going to go out on a limb and say that android programming is not really an ideal start for learning how to program Apr 28 02:29:24 that sounds smart Apr 28 02:29:33 Yea...I know... Apr 28 02:29:55 especially an app like that, because although they are conceptually simple tasks, each of them is not nearly as simple for a glorified calculator to perform Apr 28 02:31:00 although it's nice to have a goal to work towards and learn each individual component Apr 28 02:31:04 Well, there's already code for it....the "Car Mode" app already starts when it connects to my bluetooth. Wouldn't I just be able to copy that code and tweek it for WiFi and Pandora? Apr 28 02:31:58 GreyF0x, getting your hands on the code may not be easy, and the licensing may present problems Apr 28 02:32:51 true....especially because each app is its own entity... Apr 28 02:33:24 well not really Apr 28 02:34:04 the issue is that it's been compiled into bytecode, which really isn't readable, and the developer is probably the only one with the actual code, and definitely the only one with full rights to it Apr 28 02:34:41 you could probably write your app to just call an intent for the pandora app Apr 28 02:35:17 Would I be able to do the same to turn off the WiFi? and vise versa when the bluetooth disconnects? Apr 28 02:35:53 it would really just be an app with an intent filter for bluetooth activation which sends intents for wifi deactivation and pandora Apr 28 02:35:57 i don't have much experience with this, but you could write a service that checks for whatever conditions you want Apr 28 02:36:05 yeah, exactly what Ginto8_ said Apr 28 02:37:33 How can I do that with my limited (non-existent, rather) programming knowledge Apr 28 02:37:46 hire someone lol Apr 28 02:37:50 you probably can't Apr 28 02:38:02 Ginto, you want to do it for me? =) Apr 28 02:38:04 or read http://developer.android.com/guide/index.html Apr 28 02:38:25 GreyF0x, tempting; I do need some experience Apr 28 02:38:37 I'll see what I can do **** ENDING LOGGING AT Sat Apr 28 03:00:00 2012