**** BEGIN LOGGING AT Thu Feb 21 02:59:59 2013 Feb 21 03:18:34 oh finally Feb 21 03:18:35 Hey all. I'm working on an app that uses mapping (first time I've done so) - I'm trying to test the mapping on my samsung galaxy s3. I need to run a mock journey through the app and was wondering if there's any tools or similar I can use to do so? Feb 21 03:20:42 hi Feb 21 03:21:45 Can someone post a link to the topic for beginners? is there a site on app dev for beginners or idiots/dummies? like similar to eloquentjavascript.net/ Feb 21 03:22:21 http://d.android.com/training Feb 21 03:27:58 novie, please stop Feb 21 03:28:40 blognewb: please do not sit here and troll in both channels. Feb 21 03:29:18 novie, im not trolling the channel. please stop with your baseless accusations Feb 21 03:30:01 blognewb: they aren't baseless. your previous message here was not necessary. you were provided a link. Feb 21 03:30:36 novie, my previous message does not constitute trolling. so i would appreciate you stop talking to me Feb 21 03:31:21 novie, please stop < and this was because.... Feb 21 03:31:32 you were given the link http://d.android.com/traning Feb 21 03:32:56 novie, that link you provided assumes java/py knowledge when i asked about a beginners level Feb 21 03:33:10 blognewb: android development assumes you know Java. Feb 21 03:33:22 you write android software in Java. Feb 21 03:40:45 is there a method to display my phones screen on my computer w/out rooting my phone Feb 21 03:41:24 adb? Feb 21 03:41:28 or rather, ddms Feb 21 03:41:42 how Feb 21 03:41:55 launch ddms Feb 21 03:42:00 click the little camera icon Feb 21 03:42:38 camera icon.. Feb 21 03:43:14 isnt this built into eclipse Feb 21 03:44:35 I've got a fragment extending ListFragment and everything seems to be kosher but nothing displays in the list. getCount returns the correct number, if I iterate over the items I can print out their contents. I've tried both setListAdapter and listView.setAdapter, but neither makes the list display my data. any suggestions for other things I can look at? Feb 21 03:45:09 canadiancow: does this just take a screenshot? i need it to be live Feb 21 03:48:02 i am programming one application iit has many textbox 20 is there one way to out all of them using a scroll bar to move first to last textbox Feb 21 03:49:45 tona: http://developer.android.com/reference/android/widget/ScrollView.html Feb 21 03:50:53 ah nevermind, it must have been something in my layout, copy/pasting the one from google's example made it all work Feb 21 03:51:01 ok Feb 21 03:51:27 but these component there is not on eclipse widget tab, is there one way to install it Feb 21 03:52:11 tona: huh ? Feb 21 03:53:19 can you help me how to install scrollview Feb 21 03:53:39 you don't 'install' it Feb 21 04:00:07 i found scroll view, but when i drag this just appear a white box how can i putt all my textbox into scrollview o just drag it and drop some place on my screen Feb 21 04:01:51 I have a linearlayout with a button in it. I created a onTouchListener. Both use the same instance of the onTouchListener. Inside the onTouchListener on ACTION DOWN, I need to get the parent linear layout if on the button or the linear layout itself. The parent background is a ShapeDrawable. I am unable to cast the buttons parent to a ShapeDrawable any idea why? Feb 21 04:03:29 MrCartel, have you tried just making the parent ShapeDrawable a field in the activity? Feb 21 04:04:07 farkerhaiku, a field? Feb 21 04:04:44 My layout is a bit more complex, but that gives a general idea. Feb 21 04:05:38 farkerhaiku, But I need to find it dynamically. Feb 21 04:06:31 That general bit of code is here: http://pastebin.com/PiMumUYn Feb 21 04:07:53 Sorry correct that: http://pastebin.com/CAiSmgr4 Feb 21 04:08:32 MrCartel, oh I see. Feb 21 04:09:50 it is a linear layout which holds two linear layouts which one of them holds a button Feb 21 04:10:42 however when I do a onTouchEvent, ie touch drag, it doesnt register if I touch the button and drag Feb 21 04:13:47 there any good launchers for use as a carputer control panel? Feb 21 04:16:56 MrCartel, it looks to me like your logic is wrong. if v is an instanceof LinearLayout, then you get the parent and the background. If not (the button case), you're getting child at 0 instead of the parent's parent's background Feb 21 04:17:55 farkerhaiku, its the opposite of that. if not v is instance of linearlayout, thus the button Feb 21 04:18:08 oh yeah, missed the ! Feb 21 04:18:41 are buttons the only thing that would show up as a ColorDrawable? Feb 21 04:19:19 why when i set scrollview it difficult to me to put one buttton and later one small image both have wrap in height and width is there one way to move object more freely Feb 21 04:21:00 tona, I don't know what you are trying to do? Move the objects more freely how? Like relative placement? I just make weighted LinearLayouts Feb 21 04:21:43 nesting them and what not. But now that I think about it are you talking about the gui thing? I dont know how to use that Feb 21 04:22:15 MrCartel, I don't know about that. good luck though Feb 21 04:22:32 thanks Feb 21 04:26:12 I guess I can just set tags and figure out where I am that way during the on touch. Feb 21 04:43:58 So if I have the same onTouchListener on a button within a linearlayout, what view gets passed into the listener? It looks like the tag on the view is always the linearlayouts. Feb 21 04:44:16 That is regardless of where I touch. But the view itself appears to be the button. Feb 21 04:47:21 MrCartel, I'd debug that by splitting the onTouchListeners up and clarifying when/if the button's listener was called. I've never run into that before, but it sounds like you're doing something a little more complicated than I've tried with onTouchListeners Feb 21 04:48:04 basically I'm checking for a swipe but allowing the buttons to work too Feb 21 05:10:05 Other than ColorDrawable, ShapeDrawable and Drawable what else could a view.getBackground be? Feb 21 05:22:36 MrCartel, Subclasses of Drawable: http://developer.android.com/reference/android/graphics/drawable/Drawable.html Feb 21 05:22:53 can someone lead me to step by step NDK tutorial series that takes me from baby steps like it starts with hello world application then it advances? Feb 21 05:28:25 I have a funny. http://www.thefunnyjunk.com/uploadedpics/851007440300.jpg Feb 21 05:33:35 Hi there, my android project in eclipse also try to use *.orig (files generated from merges and rebases in hg mercurial) how to stop that? Feb 21 05:56:51 <_genuser_> hello people, googling about rooting galaxy S. Few questions, will it allow me to upgrade the OS to a higher level? Or will it just remove the carrier locks on apps, etc? Feb 21 06:09:23 #android-root Feb 21 06:09:42 MrCartel: StateListDrawable, AnimationDrawable, NinePatchDrawable, etc... Feb 21 06:09:58 custom subclasses Feb 21 06:12:53 google play is working? Feb 21 06:19:03 squ: play working fine here, tables phones and web Feb 21 06:19:06 UK Feb 21 06:19:44 If I write an app that has permissions to read personal info (phone #), is there a policy on how I'm "allowed" to use that info? Feb 21 06:25:17 StingRay_, can't access it from nexus chrome - something about certificates Feb 21 06:25:30 Is there a better way than this to align a form¿ ? http://stackoverflow.com/questions/9332849/android-aligning-labels-in-forms Feb 21 06:26:46 squ: very odd, tried in chrome,ff,safari Feb 21 06:26:49 all fine Feb 21 06:28:31 hey StingRay_ . you have a multitude of browsers :) Feb 21 06:28:44 I have opera too Feb 21 06:28:49 didnt try that Feb 21 06:29:45 StingRay_: can you do me a favor - if you visit here http://developer.android.com/reference/android/app/package-summary.html Feb 21 06:30:03 ya Feb 21 06:30:06 using FF on your mac, does the scrolling in the left panes work from the touchpad ? Feb 21 06:30:14 oh hang on Feb 21 06:30:40 works in chrome / safari … as long as the mouse is over the pane, touchpad gesture to scroll effects that pane only Feb 21 06:30:44 oh touchpad Feb 21 06:30:45 ffs Feb 21 06:30:51 in ff, it scrolls the whole page, and i can't scroll those damn things Feb 21 06:30:57 lemme swap to mackbookpro then Feb 21 06:31:07 oh, didnt mean to be a hassle. thanks Feb 21 06:31:14 dont have ff Feb 21 06:31:18 arses Feb 21 06:31:19 no worries Feb 21 06:31:46 getting it Feb 21 06:31:59 you mean 2 finger scrolling dont work ? Feb 21 06:32:09 cause thats not a browser related thing at all Feb 21 06:32:10 :) Feb 21 06:32:22 StingRay_: chrome / safari are fine Feb 21 06:32:48 put the mouse in the "Interfaces" box for example, and use the gesture to scroll up or down. mine is screwed Feb 21 06:32:49 right anywhere on d.a*.com ? Feb 21 06:32:56 the link above Feb 21 06:33:05 but yeah, basically everywhere Feb 21 06:33:48 or both the Interfaces frame scrolls and the page scrolls at a different speed :P Feb 21 06:34:51 g00s: thats what I would expect Feb 21 06:35:02 or rather I'm not seeing anything un-expected Feb 21 06:35:19 ok, no worries. its hard to describe. thanks Feb 21 06:35:32 oh you mean Feb 21 06:35:34 right Feb 21 06:35:42 it should only scroll one Feb 21 06:35:48 ha! Feb 21 06:35:51 ew Feb 21 06:36:16 http://imageupload.co.uk/files/z992ui9wxboel7xuy2kg.png Feb 21 06:36:45 squ: i dont see that O.o Feb 21 06:36:52 maybe clear all your browser's data Feb 21 06:37:15 then again, you are coming from the UK and probably hitting different stuff Feb 21 06:37:43 Hello! I am trying to draw black circle (not filled, just a stroke) with shadow near stroke using setShadowLayer(). Is any alternative to setShadowLayer() because performance of this method of shadow creation is bad? Feb 21 06:37:47 I'm fine and in uk Feb 21 06:38:08 I'm not in uk Feb 21 06:38:39 really? Feb 21 06:38:46 STOP using our sh*t then Feb 21 06:38:48 :) Feb 21 06:38:56 imageupload.co.uk !!! Feb 21 06:38:59 ours Feb 21 06:39:38 :) Feb 21 06:39:47 do you another service? Feb 21 06:39:52 know Feb 21 06:45:19 hang on I can try it from germany Feb 21 06:45:41 squ: that happend to me when the date-time of my PC is somewhat switched to years before today Feb 21 06:45:50 so any certificate on any site fails Feb 21 06:45:57 than can be a cause Feb 21 06:46:20 germany = fine Feb 21 06:46:53 I see Feb 21 06:47:24 may be cause, I cleared data, fixed date. and got into g-play Feb 21 07:19:13 hello Feb 21 07:22:55 hi Feb 21 07:42:29 I really should learn regex Feb 21 07:43:40 can some1 tell me how to validate a string that should only have + and 0-9 ? Feb 21 07:43:55 ^[0-9+]+$ Feb 21 07:43:55 but dont need to have the "+" Feb 21 07:44:22 <\n> you mean like +1 or 1+? Feb 21 07:44:32 <\n> or any of those? Feb 21 07:45:25 well no, a string that is valid if it's like "123" or "+44 1908 308370" etc Feb 21 07:45:52 ^\\+?[0-9 ]+$ Feb 21 07:45:54 I was using a patterns.PHONE match Feb 21 07:46:16 <\n> ^\+?[0-9 ]+$ Feb 21 07:46:17 <\n> meh Feb 21 07:46:18 but thats a bit dense cause here in uk you can have numbers like "012" Feb 21 07:46:21 <\n> JakeWharton: was faster Feb 21 07:46:44 cheers guys Feb 21 07:46:54 <\n> why \\+? doesn't that match one or more '\'? Feb 21 07:47:18 Java string escaping Feb 21 07:47:25 <\n> oh Feb 21 07:47:44 I'm anticipating him copying into Pattern.compile("") Feb 21 07:48:06 good intuition :) Feb 21 07:49:59 hmm Feb 21 07:50:14 how can an sms message have a reply address of a word ? Feb 21 07:50:24 like I get "dominoes" Feb 21 07:50:28 as sender Feb 21 07:50:31 wierd Feb 21 07:50:36 weird* Feb 21 07:51:38 >android update Feb 21 07:51:42 >everything breaks Feb 21 07:51:43 >_> Feb 21 07:52:09 balls2thewall: the cup holding my coffee is still fine Feb 21 07:52:11 and working Feb 21 07:56:48 Anyone has any idea why my ABS searchview onquerytextlistener doesn't works? http://stackoverflow.com/questions/14991980/actionbarsherlock-searchview-setonquerytextlistener Feb 21 08:08:49 android ;_; pls stop sucking Feb 21 08:09:19 :) Feb 21 08:09:54 what the hell >_> after the update like each one of my projects is full of errors Feb 21 08:10:21 what ide do you use? Feb 21 08:10:30 eclipse Feb 21 08:19:54 how do I tell an element that's inside a Horizontal LinearLayout to stick itself to the right, always? Feb 21 08:20:08 they come up right next to each other right now as expected of a Horizontal LinearLayout Feb 21 08:20:19 but I want 1 element to the left and the remaining to on the far right Feb 21 08:22:23 well gravity Feb 21 08:22:26 but! Feb 21 08:22:31 nah you can't Feb 21 08:22:35 that would only work on opposing layouts Feb 21 08:22:55 your wanting a gap between them i take it ? Feb 21 08:23:12 I have this horizontal LinearLayout inside a RelativeLayout Feb 21 08:23:17 it's the XML for a header Feb 21 08:23:29 like (fixed width) (gap) (fixed width) ? Feb 21 08:23:38 the linear is set to fill_parent for width and wrap_content for height Feb 21 08:23:52 yea, yea Feb 21 08:24:02 what api ? Feb 21 08:24:05 any way other than padding? Feb 21 08:24:13 oh well there is the new "spacer" view type Feb 21 08:24:20 2.3.3 Feb 21 08:24:24 but you could use any view, like "view" Feb 21 08:24:27 does anybody has any experience with NFC... Feb 21 08:24:37 and set it to match_parent and give it a weight Feb 21 08:24:38 of 1 Feb 21 08:24:57 between the 2 Feb 21 08:24:59 :) Feb 21 08:26:13 Anyone has any idea why my ABS searchview onquerytextlistener doesn't works? http://stackoverflow.com/questions/14991980/actionbarsherlock-searchview-setonquerytextlistener Feb 21 08:29:47 must be a design philosophy, like opengl makes everything reverese compatible, dx makes nothing reverse compatible, and android/eclipse makes every update break the last one >_> Feb 21 08:30:53 balls2thewall: what problems ? Feb 21 08:31:00 cause I've not had any Feb 21 08:31:10 I think google engineers get a bonus for breaking build systems, especially ant-based ones Feb 21 08:31:20 <\n> lol Feb 21 08:31:40 ive heard intellij is better ide, maybe for this reason: sounds like linking problems eclipse runs into, not an artifact of android devkits Feb 21 08:32:03 intellij <3 Feb 21 08:32:13 balls2thewall: well, Eclipse doesn't seem to support... normal build processes Feb 21 08:32:13 Zharf: you use it ? Feb 21 08:32:19 but their custom "builders" Feb 21 08:32:28 what happens if Idea folds and all you guys are forced to use eclipse, bwahahaha Feb 21 08:32:30 I have even bought ultimate license Feb 21 08:32:41 g00s: there's open source :> Feb 21 08:32:45 g00s, then I'll use vim Feb 21 08:32:46 Zharf: do you know if you can have all the views across multi monitors ? like eclipse ? Feb 21 08:32:55 the graveyard, yeah - then intelliJ will just become like eclipse :D Feb 21 08:33:00 StingRay_, you can float views yes Feb 21 08:33:14 whats your ide of choice goos? Feb 21 08:33:22 notepad? Feb 21 08:33:36 StingRay_: just did it Feb 21 08:33:36 Zharf: so I can have https://www.dropbox.com/s/nmkvz061s8ek15q/monitors.png Feb 21 08:33:49 complained a bit due to my XMonad, but works Feb 21 08:34:16 oh, i'm splitting time between eclipse and intellij; i must not be a nirmal users because i use about 1% of the ide over plain text editing; basically just refactoring and auto imports :) so it probably doesn't matter what i use Feb 21 08:34:32 g00s: that's enough to pick Idea ;) Feb 21 08:34:37 hehe Feb 21 08:34:46 maybe ;) Feb 21 08:34:50 (read: look, ma, I can run a browser at the same time without trashing swap!) Feb 21 08:34:53 g00s! :) Feb 21 08:34:54 the problems is i got an sdk update which eclipse aparently doesnt support yet Feb 21 08:35:01 i use rubber duck debugging, so i hardly ever wind up in the debugger Feb 21 08:35:04 the google devs should make a custom cross compatible ide for tablets and desktops :) Feb 21 08:35:10 hey canadiancow :) Feb 21 08:35:12 StingRay_, I'll get back to you o nthat when I arrive at the office... a bit crappy to view that large image on my phone :p Feb 21 08:35:21 StingRay_, 10min Feb 21 08:35:21 lol Feb 21 08:35:22 balls2thewall: welcome to the world of "which eclipse version works with what" Feb 21 08:35:22 cheers Feb 21 08:35:36 balls2thewall: bonus level - non-overlapping version requirements Feb 21 08:35:38 if I can have that, I'm up for a switch/learning Feb 21 08:35:49 if not, then intelliJ can swivel Feb 21 08:36:37 one day we'll have a dedicated ide for android that doesn't suck, you'll see ;_; ... one day ;_; Feb 21 08:36:58 balls2thewall: see xamarin 2.0 ? Feb 21 08:37:13 pretty expensive tho :) Feb 21 08:37:17 balls2thewall nice nick Feb 21 08:37:59 i always think of that AC/DC song balls2thewall Feb 21 08:38:31 til ac/dc covered it from somewhere else Feb 21 08:38:56 hi, i want to create a virtual device in eclipse. i can choose from android 4.2 and 2.2 but when i choose 4.2, create is greyed out... i have installed the sdk-platform for both. can anybody tell me why i can't create a device with 4.2? Feb 21 08:39:46 i always do that directly from the avd manager 'android avd' Feb 21 08:40:27 g00s, that's what i am talking about. eclipse is using that Feb 21 08:41:31 so do you have any idea? Feb 21 08:41:47 create is greyed out until you give it a name and sdcard size Feb 21 08:41:56 i'm assuming you saw that tho :) Feb 21 08:42:02 >9000 MB Feb 21 08:42:13 anybody ? NFC experience ? Feb 21 08:42:20 no, it is greayed out until i choose 2.2. whenever i choose 4.2, it is greyed out again! Feb 21 08:42:28 i already gave it names and everything Feb 21 08:43:00 canadiancow, talking to me? Feb 21 08:44:06 are you trying to game the avd manager :P Feb 21 08:44:43 very funny -.- Feb 21 08:45:13 well, for 4.2, do you have the ARM image ? Feb 21 08:45:17 or the x86 image ? Feb 21 08:45:24 you need one of those /and/ the sdk Feb 21 08:45:40 go back to 'android' tool to see what you have Feb 21 08:46:14 i will, thanks Feb 21 08:46:38 setra: we've got meta-questions experience... Feb 21 08:46:51 Anyone has any idea why my ABS searchview onquerytextlistener doesn't works? http://stackoverflow.com/questions/14991980/actionbarsherlock-searchview-setonquerytextlistener Feb 21 08:48:45 good morning :) Feb 21 08:48:52 StingRay_, that's just streched eclipse across multiple monitors, is it not Feb 21 08:50:05 some good example of Tabhost? Feb 21 08:51:07 canadiancow: the android tool is asking me to download new 4.2 images, is that your handiwork :) Feb 21 08:51:51 oh wait, nm Feb 21 08:52:21 pebkac Feb 21 08:53:22 http://pastebin.com/chYhJivr any idea? Feb 21 08:53:40 have you declared this activity in your AndroidManifest.xml? Feb 21 08:53:43 Well, have you? Feb 21 08:54:53 me? Feb 21 08:55:00 oh wait Feb 21 08:55:17 i have two activities.. not one... Feb 21 08:56:01 hi. what is the "good" way to share an class instanze between different activities? Singleton-Class? Feb 21 08:56:11 Stummi: Myeah Feb 21 08:56:12 *instance Feb 21 08:56:22 thanks Silox|... this was it... Feb 21 08:57:25 dies "Myeah" means yes? ;) Feb 21 08:57:29 *does Feb 21 08:57:59 Zharf: you mean intellJ dont do it ? Feb 21 08:58:47 StingRay_: you can "float" any tab in IntelliJ Feb 21 08:59:14 oh, so I can have a view setup like my eclipse Feb 21 08:59:18 interesting Feb 21 09:00:50 yeah you could do the sameish with floating modes Feb 21 09:01:15 can you save floating mode view port setup/positions ? Feb 21 09:01:33 let me try, I haven't used the floating mode much :) Feb 21 09:01:34 * p_l meanwhile could use some extra memory... Feb 21 09:01:45 an extra screen is just a DP splitter away Feb 21 09:02:13 well for coding these monitors I have are a waste really Feb 21 09:02:30 wearing them down for text, makes me feel ill Feb 21 09:04:40 ehrm Feb 21 09:04:52 How can I add items dynamically to the ActionBar overflow menu? Feb 21 09:04:59 StingRay_, yes, it can save the positions of the floating tabs Feb 21 09:05:14 nice Feb 21 09:05:21 StingRay_, but I'm not sure if it had something to do with me selecting window -> store current layout as default :) Feb 21 09:05:22 thankyou for this Zharf Feb 21 09:05:27 but that's not really an issue I think :) Feb 21 09:07:57 http://eclipser.xmms2.org/idea-with-floating-tabs.png Feb 21 09:09:02 can someone explain this? this is how it should look normally: http://snag.gy/M2gV4.jpg and this is how it actually looks when i move the seekbar: http://snag.gy/QkUy8.jpg Feb 21 09:09:28 Stummi: I mean that ... meh ... static classes, singletons, meh. :P Feb 21 09:10:17 Styler2go: just looks like your duplicating textViews Feb 21 09:10:20 simples Feb 21 09:10:59 Silox|, so, whats the "good way", to use something across serval activities? Feb 21 09:11:02 StingRay_, I think the biggest "weird" thing that people find with idea coming from eclipse is that it doesn't have a workspace with multiple projects... it has a project with multiple modules Feb 21 09:11:15 http://pastebin.com/my6xLEqC Feb 21 09:13:06 Silox|, lets take for an example an weather app (no i am not writing an weather app). It has one "weather provider" whish shall be used on serval activities which provide different views for the weather and a widget Feb 21 09:13:17 *which Feb 21 09:13:31 Stummi: service Feb 21 09:14:34 StingRay_: Any idea? Feb 21 09:15:05 StingRay_, i will take a look. thanks Feb 21 09:18:54 Ge0rG: what does it mean? Feb 21 09:19:46 setra: nobody can answer your question because you did not say what you really need Feb 21 09:20:12 Ge0rG: Metaquestions ? no metaquestion it is a real question, since new Phones have NFC (near field communication) interface. just want to know if somebody has experience with that... Feb 21 09:20:56 setra: yes, somebody has experience with NFC. glad I could help you. Feb 21 09:21:54 Ge0rG: sorry I'm new with irc, could you please help me out to transform the metaquestion into an real question Feb 21 09:22:10 setra: since you haven't asked your question yet we don't know :D Feb 21 09:22:20 Stummi: Yeah, service seems a good solution there Feb 21 09:22:38 I'm just not a fan of making stuff static/singleton Feb 21 09:22:56 It's mostly a simple ugly solution for ... stuff that can be done neater Feb 21 09:23:42 setra: you have an nfc problem? describe it please. Feb 21 09:23:46 yeah, i know. I am new with android but developing java itself since a few years Feb 21 09:24:00 is NFC an RFID Reader? Feb 21 09:24:07 from java I know DI-Frameworks for doing this Feb 21 09:24:30 does NFC has an API? Feb 21 09:24:34 setra: nfc and rfid are overlapping terms not very well-defined Feb 21 09:24:37 Stummi: dagger is a Di framework that works on android; haven't seen the rest of your question Feb 21 09:24:59 setra: android has an nfc api, look at d.android.com Feb 21 09:26:29 basically I need NFC to read a custom made RFID tag, could that be accomplished with the standard API, since i read about NDEF (some standard the API is build around) Feb 21 09:28:03 setra: depends on the tag you have. you can find out more by testing the tag with an android phone and nxp tag reader app Feb 21 09:29:15 noone an idea? Feb 21 09:29:26 g00s, i think in my case Services are what I look for, but thanks for that hint, i will memorize it if i need DI anywhen in android :) Feb 21 09:29:37 ) Feb 21 09:32:13 Ge0rg: Thx I just found that Advanced NFC can do raw transfers, since I build/program the tag I can do whatever I want I guess. I have mayfair standard implented Feb 21 09:34:07 Is there a possibility to test NFC with an Emulator having a RFID Reader on my PC? Feb 21 09:34:29 setra: mayfair = mifare? :D Feb 21 09:34:57 timroes: mifare Feb 21 09:35:15 mifare is compatible to what i ahve yet seen as nfc readers in devices Feb 21 09:35:18 is there a way to use mltiple buttons "as once"? Feb 21 09:35:24 like a group of buttons? Feb 21 09:36:12 but using rfid reader from your pc might get hard, since afaik emulator still doesn't support usb forwarding (and even if, you would get a rfid reader forwarded, that I would assume behaves way different than the build in nfc reader) Feb 21 09:36:27 i have 8 buttons and i need one of them to stay active on click and all other buttons should not be marked as active... Feb 21 09:36:41 Styler2go: thats called radio button :D Feb 21 09:37:19 grr i'll ask my boss... Feb 21 09:37:31 but yeah, actually this is what i would need Feb 21 09:37:51 but there are toggle buttons and ofc u can code it, that if you press one all others gets unchecked Feb 21 09:37:55 ask? u need permission if you use built in widget? :D Feb 21 09:37:59 but that realy sounds like a case of radio buttonS :D Feb 21 09:38:13 yes radio buttons, maybe custom view Feb 21 09:38:32 i have a design concept Feb 21 09:38:39 which ii have to rebuild Feb 21 09:38:58 you can change radio buttons' views Feb 21 09:40:11 hmm Feb 21 09:40:39 StingRay_: this is my favorite landscape photographer. He's using some mamiya 7 http://www.brucepercy.co.uk/blog/2013/02/03/im-on-the-lofoten-islands Feb 21 09:43:07 lol Feb 21 09:43:26 my boss told me... these should be like checkboxes not radiobuttons but they have to look like buttons... Feb 21 09:44:09 badUIAdvice2Go Feb 21 09:44:15 Styler2go: tell him you are not doing a desktop app, though you could do iOS while using eclipse Feb 21 09:44:28 ? Feb 21 09:44:30 yeah Feb 21 09:44:34 would make the same sense :D Feb 21 09:44:45 but your boss seems to like that kind of nonsense :D Feb 21 09:45:03 nah... Feb 21 09:45:09 uhm Feb 21 09:45:17 thats so weird.. Feb 21 09:48:38 Lint has recently started to complain about MissingTranslation in EVERY language, regardless of the folders you have. before you you had res/values and res/values-it it was checking if your translation was in it only, now it complain you didn't provided all the others translations. Is there a way to tell Lint which languages I'm supporting? Feb 21 09:50:24 I do not want to ignore the error and I need a solution that I can commit with my source code Feb 21 09:55:13 anyone ever get emails from tapfame asking if you worked on 'app x' with a button 'Yes I did' ? Feb 21 10:01:02 uhm Feb 21 10:01:21 can someone explain this? this is how it should look normally: http://snag.gy/M2gV4.jpg and this is how it actually looks when i move the seekbar: http://snag.gy/QkUy8.jpg this is my code: http://pastebin.com/my6xLEqC Feb 21 10:16:27 Styler2go: why not log the value b4 you entering it in the text view? Feb 21 10:22:50 i found the mistake Feb 21 10:23:43 there was a layout included and it did not delete it... Feb 21 10:24:39 but... how would you attach a extview to a seekbar? Feb 21 10:27:23 hi all - dont aiming to start an argument with this but do you guys think we need more designers to be involved with the devs. I am just switching from apple iphone to android and I love android and the apps but I feel they just need more design, polish etc to look good as well as being functional - do I have a point?\ Feb 21 10:29:39 devswap: yes and no / subjective Feb 21 10:29:44 imho Feb 21 10:29:45 :) Feb 21 10:29:59 "I named a variable theySeeMeScrollingTheyHatin because I thought it would be funny, it's still in the code." Feb 21 10:30:48 stingray_: in what way do you think they dont? Feb 21 10:31:06 define "they" Feb 21 10:31:24 like I say, it's subjective Feb 21 10:31:43 I'm a VFX artist who is writing an android app Feb 21 10:31:51 does "they" include me ? Feb 21 10:32:38 and if "they" are big and professional , odds are they already have a design team Feb 21 10:32:50 :) Feb 21 10:33:11 stingray_: by they i mean apps. I just think if someone who doesnt really code / understand the technical elements looks at apps they look a little boring where as some of the ios apps look like pieces of art and they seem more desirable and make the platform more desirable. Feb 21 10:33:21 devswap: you definately need more designers in android process. look at all the garbage apps in the market (also from large companies!) Feb 21 10:33:47 but if I see such shit: http://www.freelancer.com/jobs/Android/ i don't wonder why there are so much crappy apps Feb 21 10:33:51 devswap: but what your saying is specific Feb 21 10:33:54 average something aroun 500$ for an app? :D Feb 21 10:34:13 probably makes up the average, but does not include all Feb 21 10:34:38 stingray_: not sure i understand why its specific - I think everything needs design? Feb 21 10:34:54 devswap: yes, but thats not what you said Feb 21 10:34:55 hi...does anybody know which is the best to use between these 4, MonoTouch,CoronaSDK,Appcelerator(Javascript),Cocos2d(Javascript)??criterias being 1.ios and android app store integration 2.ease of use (lots of documentation and active community) 3.speed of app Feb 21 10:34:55 StingRay_: yeah but i don't see much apps over 1000$ (just targeting one platform) Feb 21 10:35:01 making a console game, and little mobile app or a feature film is all the same Feb 21 10:35:19 console game, platformer, get it done for 400k if you want Feb 21 10:35:30 spend a mil or so and it will be better Feb 21 10:35:47 devswap: everything needs a good usability (and since ui design is imho a subset of this, i totally agree with you) Feb 21 10:36:58 timroes: the argument is not should something look good and work well etc Feb 21 10:37:02 thats always a given Feb 21 10:37:09 but since also the design guidelines are pretty new the sensibility of users as devs isn't so high about that yet Feb 21 10:37:33 timroes: the guidelines are easy to follow if you target ics + :) Feb 21 10:37:34 budget / time / quality Feb 21 10:37:37 and still there are some apps that are pretty nice and some that redesigned to be now pretty nice Feb 21 10:37:39 timroes: is there a definative set of android guidelines - I wouldnt mind reading that Feb 21 10:37:50 http://d.android.com/design Feb 21 10:38:23 timroes: see I dont agree with them, the design choices they ask you to make are ridiculous Feb 21 10:38:37 and most apps use them, piss me off sometimes Feb 21 10:38:41 this is an example of what I mean - this is a funky weather app - you may say functionally its not good but I am looking at the design and I dont think an app like this would ever appear on android currently http://thisissolar.com/ Feb 21 10:38:47 StingRay_: yeah the magical management triangle, but (i would say) esepcially in android quality is often the least important to all that Feb 21 10:39:28 StingRay_: "see I dont agree with them, the design choices they ask you to make are ridiculous" sorry who? i guess I lost track :D Feb 21 10:39:54 oh the android design guidelines Feb 21 10:40:07 2 reasons they fail in my mind Feb 21 10:40:29 1. they create visual uniformity (often really not a goal in design) Feb 21 10:40:49 it is a goal in mobile design, but i can explain later Feb 21 10:41:02 2. they disregard form/function (as on the trending dimensions of a phone, they make me angry on large screens) Feb 21 10:41:36 StingRay_: can you elaborate on #2 ? Feb 21 10:41:49 StingRay_: to (1) depending on what you understand with 'design'. for me 'design' is more than 'ui design' but for the part that IS ui design I would say uniformity is pretty important. it creates a consistency most users want Feb 21 10:41:50 have you guys had a look at thisissolar.com - do you know what i mean? Feb 21 10:42:16 especially on mobile devices where you have (a) small screens, you sometimes must hide functionallity, e.g. via long presses or such Feb 21 10:42:25 timroes: yes but not true if you think of the app as a product rather than extension Feb 21 10:42:31 yes i think uniformity is important too - same icons for settings - same way of getting back, common way to do menus etc Feb 21 10:42:32 if there is no constant guidelines on how to do it and every app takes its own way users will have a bad time Feb 21 10:42:37 devswap: the took a whole screen to say that :) Feb 21 10:43:04 and the gradient is gratuitous visual masturbation Feb 21 10:43:17 g00s: #2 something like ability for 1 handed operation Feb 21 10:43:21 something as simple as that Feb 21 10:43:24 (b) especially mobile devices have more novice users than desktop pcs from all my experiences. these kind of users that are not necessarily technical experienced might not get the 'mapping or metaphor' if every app uses its own Feb 21 10:43:26 ah, ok Feb 21 10:43:56 StingRay_: where does it say you should design for two handed operation? Feb 21 10:44:06 there are different UX targets, though Feb 21 10:44:18 appel1: when it tells me where and how to place and use UI functions Feb 21 10:44:27 g00s: i appreciate you could argue things in that particular app but I cant help but think if an android app was commissioned to display weather something like that wouldnt be considered it would just be 7 boxes with a weather symbol in each. Where if something like solar was designed and built it may push to platform to the more fashionable crowd rather than techies - am I making any sense or talking out of my ass Feb 21 10:44:42 Sometimes you don't (or rather, SHOULD NOT, in RFC speak) care about noobs without training, and instead insist on training being given Feb 21 10:44:51 StingRay_: it's a guide line, not absolute rules set in stone Feb 21 10:44:54 and to the product vs. extension: in the end its guidelines. I think they give a pretty well "goal" like the overall vision and principles, and give you a lot of good "default values" like spacings, building blocks. though ofc you can modify that, but I think you can do a lots of modification still most ppl would say: yeah thats following the guidelines, but still standing out a lot from other apps Feb 21 10:45:02 appel1: I know Feb 21 10:45:06 the best argument i have seen for design consistency, and there is empirical data here, is that most apps are intermittent use apps. The amount of time spent on any one is declining; the mobile context is 'continuous partial attention'. so as users kill time flopping between various apps, every briefly, its good that things are consistent Feb 21 10:45:23 devswap: you can do impressive design without being jarring Feb 21 10:45:23 my point was many devs follow as an absolute Feb 21 10:45:40 devswap: and jarring dissonance is not great visual design anyway Feb 21 10:45:51 devswap: http://i.imgur.com/Jpj3i.jpg i like the weathercard of google :) Feb 21 10:45:58 p_l: i agree but i don think there is enough design in android Feb 21 10:46:07 StingRay_: I absolutely hate apps that breaks those guidelines in really unexpected ways though, like an app I found recently that opens a swipe in menu when you press the back key :\ Feb 21 10:46:10 devswap: pre 4.0 I'd agree Feb 21 10:46:16 pre 2.3 was pretty awful, even Feb 21 10:46:21 StingRay_: that I would agree and say, ppl not understanding the goal of it are ofc the same worse ppl not using them at all :D Feb 21 10:46:48 appel1: oh thats just silly, but again, not on about functions and expected uses of hardware keys Feb 21 10:46:57 but a lot of the time the "nice design" seems to be "wheeee, what's UX and how do you eat it?" kids with photoshop Feb 21 10:47:28 I just think to a dev without the background in vfx or some design field, those guides are a little, well, as useful as they are not Feb 21 10:47:30 or 99% of html5-based apps I encounter/use Feb 21 10:47:37 what brings us back to the beginning: android apps would more often need UI designers :D Feb 21 10:47:51 p_l: html5 apps need a warning sticker in the play store Feb 21 10:47:54 everyone needs HCI specialist ;P Feb 21 10:48:00 "Warning, this is not an app" Feb 21 10:48:14 s/not an app/crap/ Feb 21 10:48:46 StingRay_: of course, blindly following guide lines without understanding is not good :) you have to know when it makes sense to do something different Feb 21 10:48:47 i still think google did a pretty good job on these guidelines also compared to other guidelines (e.g. windows ones [though i guess the ones I read that time are now pretty old]) Feb 21 10:49:12 now, with this example, what is with the chrome 'white boxes' … is this some affordance for interaction? can you drag the square or something? Feb 21 10:49:15 http://i.imgur.com/Jpj3i.jpg Feb 21 10:49:16 StingRay_: a lot of designers seems to like to change things around though just to be different and not for any style or usability reasons Feb 21 10:49:35 well, those guidelines are good if (A) you cant design, (B) you have no designer and (C) you would make stupid decisions Feb 21 10:49:49 g00s: they are "cards" and yes, you can drag (or rather, swipe them out) Feb 21 10:50:02 p_l: still using froyo :P Feb 21 10:50:04 appel1: dont get me wrong, I hate designers and myself sometimes for having that kind of background Feb 21 10:50:07 g00s: heh Feb 21 10:50:22 but I would never make a design choice that made a user thing "what was that" Feb 21 10:50:22 g00s: that's Google Now interface, to be specific, so it's 4.1 thing :) Feb 21 10:50:29 so we have another metaphor, cards. great Feb 21 10:50:35 g00s: not really Feb 21 10:50:49 it doesn't fit in many places Feb 21 10:51:01 think of it as big, swipe-able list view Feb 21 10:51:09 ahhh Feb 21 10:51:09 (it behaves like one, anyway) Feb 21 10:51:27 each "card" is a list item, big because it needs to show pretty big content Feb 21 10:51:30 i think that is a bad comparison, because I think you should never use cards where you would use a lsit view with big items Feb 21 10:51:51 timroes: well, I think the "cards" metaphor help enforce the separation of "kind" between elements Feb 21 10:52:09 p_l: agree Feb 21 10:52:10 cards are something that should make sense every card alone. so if the content only makes sense in a context with other 'list' items, I think you shouldn't make it a card, but a list Feb 21 10:52:11 i.e. normal list views work better when all elements are of similar type (think tweets, appointment list, etc.) Feb 21 10:52:22 very different data in the same list Feb 21 10:52:30 timroes: that's the thing - Google Now "cards" are independent entities Feb 21 10:52:33 yeah but that I wouldn't call a "list" then :) Feb 21 10:52:47 if the entries are not linked together Feb 21 10:53:04 timroes: I used "list" as point to jump off :) Feb 21 10:53:06 but thats just question of terminology, so yeah i agress with you Feb 21 10:53:26 gosh why can't i type 'agree' today anymore, i always type 'agress' Feb 21 10:53:43 ... too much ingress? ¬_¬> Feb 21 10:54:02 so g00s only use cards, if you could show each card in a separate activity and ppl still will understand and it would make sense :) Feb 21 10:54:20 if you cannot display each in an own activity or they are really similiar each item, don't use cards :) Feb 21 10:54:25 p_l: actually never played it :D Feb 21 10:55:32 timroes: ok, cool thanks Feb 21 10:55:55 timroes: is the card a UI building block mentioned by google anywhere ? Feb 21 10:56:10 there is nothing in the framework for it yet Feb 21 10:56:20 but several 3rd party libs for it Feb 21 10:56:47 quick question Feb 21 10:56:49 k, thx Feb 21 10:56:55 if I have to maintain an arraylist Feb 21 10:56:58 string Feb 21 10:57:08 better to convert to string[] to put in bundle ? Feb 21 10:57:25 tis only tiny 2-5 elements Feb 21 10:57:42 g00s: http://www.androidviews.net/2012/12/cardsui/ Feb 21 10:58:00 or is serializing fine given the size ? Feb 21 10:58:40 StingRay_: you can just put the list via putStringArrayList into i t Feb 21 10:58:55 timroes: cool, thanks. i'll have to play with Now I guess before i understand why this isn't just a linearLayout :) Feb 21 10:59:15 g00s: yeah and if you are in the US you will even have fun with it :D Feb 21 10:59:39 a bit boring here in germany. I see how much driving time to home when i am away, how much to work in the morning when i am home, and the weather :D Feb 21 10:59:58 sometimes i see 'photogenic' places around me, but as it seems i am not often around these places :D Feb 21 11:00:29 StingRay_: wuts the matter with getStringArrayListExtra :) Feb 21 11:00:58 g00s: nothing now Feb 21 11:01:00 :) Feb 21 11:01:08 :) Feb 21 11:01:17 I just thought objects in bundle == not good idea Feb 21 11:01:33 a handful are ok Feb 21 11:01:46 but i guess it parcels them Feb 21 11:01:48 there is a memory limit on the size of a bundle, don't remember Feb 21 11:02:05 g00s: you dont want me to remember that ? Feb 21 11:02:14 ok, attempting to forget you told me Feb 21 11:02:42 but out of interest b4 i forget it, what is the limit ? Feb 21 11:02:54 i'm serious, i dont remember :) Feb 21 11:03:09 oh I thought you were telling me not to remember Feb 21 11:03:19 as in a miss type "dont forget" Feb 21 11:03:21 :) Feb 21 11:04:01 well since the discussion about serial/bundle java crappiness last week Feb 21 11:04:11 me passively reading this channel Feb 21 11:04:21 I change how all my activity/fragments work Feb 21 11:04:36 implementing interfaces to fetch any kind of sizeable data Feb 21 11:04:51 hence why I both hate and like this channel Feb 21 11:05:24 the limit is 64kb, iirc Feb 21 11:05:48 actually that makes lots of sense Feb 21 11:06:11 cause the camera is limited to passing crappy thumbnail back in an intent Feb 21 11:07:01 always wondered why Feb 21 11:07:02 i had to deal with it a lot in trying to solve this problem http://stackoverflow.com/questions/4179594/what-is-the-correct-permission-handling-when-sending-sensitive-app-data-as-email Feb 21 11:07:46 it says "As a rough cut, >256K is too big" there though, so I guess I didn't remember correctly Feb 21 11:08:15 flodin: the content provider permission stuff confuses the fuck out of me Feb 21 11:08:26 that's probably because it's broken Feb 21 11:08:31 i have an issue now sending an attachment to gmail Feb 21 11:09:14 then you might actually be better off for reading that question and the solution Feb 21 11:09:24 yeah i will :) Feb 21 11:09:26 thx Feb 21 11:12:29 what was the problem with serial/bundle java crappiness btw? Feb 21 11:13:48 can't determine what cause keyboard to slide up when starting an activity with EditText Feb 21 11:13:52 help? Feb 21 11:13:58 flodin: developer thought "I know! I'll solve this problem with default serialization!" now dev has two problems Feb 21 11:14:02 is that default? Feb 21 11:16:24 flodin: dang. well, i think gmail has different apks for each platform, so its not like you're dealing with 'one gmail' Feb 21 11:16:32 i dont even know how to test this Feb 21 11:17:03 i was using the stock vanilla email app Feb 21 11:17:12 well, if you use the proposed solution, then it doesn't matter Feb 21 11:17:53 i can't put it in the Intent Feb 21 11:18:27 (too much data) Feb 21 11:18:39 no, the solution is to provide an URI to your data in Intent.EXTRA_STREAM Feb 21 11:18:55 oh, i do that already Feb 21 11:18:59 the URI should be world-readable, but contain a random text string that unauthorized apps can't guess Feb 21 11:19:07 ah, ok Feb 21 11:19:44 kind of how sharing by url works in e.g. google docs Feb 21 11:20:00 nobody can guess the URI, but anybody who gets the URI can see the document Feb 21 11:23:14 flodin: i must be blind, but I dont see your described solution ^^^ anywhere here Feb 21 11:23:35 that's odd. Do you see the section that says "3 Answers"? Feb 21 11:23:44 is that what getPreAuthorizedUri(Uri uri): does ? Feb 21 11:23:48 the solution is right below that, with a green checkmark Feb 21 11:23:49 yes Feb 21 11:23:57 ok, thx Feb 21 11:24:08 also, I elaborated on it in the comment Feb 21 11:25:25 i hate the way permissions work between apps; i should be able to add/revoke them at will; an app should be able to install with me only giving it a few perms Feb 21 11:27:20 i've actually seen that done on a few occasions and I thought "hey cool you can do that!?" Feb 21 11:27:38 now I don't remember which apps it was and I haven't seen it for a long time Feb 21 11:27:43 maybe I was dreaming Feb 21 11:37:19 http://vimeo.com/40281991 Feb 21 11:37:25 Interesting concept Feb 21 11:38:43 g00s: "optional" permissions, yes, it would be nice Feb 21 11:38:59 would anyone happen to have any clue how something like this could be achieved https://play.google.com/store/apps/details?id=com.np.omkar.unity#?t=W251bGwsMSwxLDIxMiwiY29tLm5wLm9ta2FyLnVuaXR5Il0. Feb 21 11:39:18 * balls2thewall referring to the side bar available outside the app Feb 21 11:39:37 balls2thewall: yes Feb 21 11:40:00 could i ask what are the keywords i should be searching for Feb 21 11:40:04 balls2thewall: let me find the english name, there's a permission for that Feb 21 11:41:02 balls2thewall: look at the Home sample in your android sdk samples. it shows how to make your own custom launcher Feb 21 11:41:52 balls2thewall: Feb 21 11:42:11 balls2thewall: WindowManager.LayoutParams.TYPE_SYSTEM_ALERT Feb 21 11:42:15 good morning to all . I am new to ADT. Feb 21 11:42:31 ok, will do, ty :) Feb 21 11:42:42 balls2thewall: see what i just gave you? Feb 21 11:42:52 it is not your own launcher Feb 21 11:43:36 balls2thewall: all you want to know is how to do a floating window system wide.. then thats what ive given you Feb 21 11:44:54 after reading first leson tutorial , tried to connect my mobile to pc. enabled debuging . Now trying to run my first HELLO WORLD APP. and it gives me an error. [2013-02-21 11:20:44 - myFirstApp] Uploading myFirstApp.apk onto device.....[2013-02-21 11:20:45 - myFirstApp] Installing myFirstApp.apk.......[2013-02-21 11:20:45 - myFirstApp] Installation failed due to invalid APK file! .. Feb 21 11:44:54 .[2013-02-21 11:20:45 - myFirstApp] Please check logcat output for more details.... [2013-02-21 11:20:45 - myFirstApp] Launch canceled! Feb 21 11:57:02 Hey colleagues. Feb 21 11:57:44 Problem: GridView with RelativeLayout cells, an ImageView with alignParent*=true, but is only 1px high. Feb 21 12:08:09 Lachezar: pastebin the layout for the cells Feb 21 12:11:19 after reading first leson tutorial , tried to connect my mobile to pc. enabled debuging . Now trying to run my first HELLO WORLD APP. and it gives me an error. [2013-02-21 11:20:44 - myFirstApp] Uploading myFirstApp.apk onto device.....[2013-02-21 11:20:45 - myFirstApp] Installing myFirstApp.apk.......[2013-02-21 11:20:45 - myFirstApp] Installation failed due to invalid APK file! .. Feb 21 12:11:19 .[2013-02-21 11:20:45 - myFirstApp] Please check logcat output for more details.... [2013-02-21 11:20:45 - myFirstApp] Launch canceled! Feb 21 12:15:55 hello Feb 21 12:16:07 can i add an image and a text to a imagebutton? Feb 21 12:16:10 or normal button? Feb 21 12:17:43 what do you want to achieve exactly? Feb 21 12:17:55 sounds like it's possible, but I'm not exactly sure what you want to do Feb 21 12:18:32 hi can some-one help a problem that I have when I call eglDestroyContex? Feb 21 12:26:57 I have a LinearLayout that has 1 textView and 2 buttons, I want them to look like so: Textview Button1 Button2 Feb 21 12:27:16 but I cannot do so except when I pad the textView Xdp to the right until the buttons are pushed over way to the right Feb 21 12:27:21 otherwise they don't....go there Feb 21 12:27:25 Styler2go: you can use just a normal Button Feb 21 12:27:30 Styler2go: no layouts Feb 21 12:28:05 Sicp: another view and use weight Feb 21 12:28:11 damn you StingRay_ Feb 21 12:28:22 with your views and your outlandish beliefs! Feb 21 12:28:27 haha ok I will try this View finally Feb 21 12:28:31 well Feb 21 12:28:36 you should use just relative Feb 21 12:28:56 I did try that but didn't know how to go about it; just placed all of the above in a LinearLayout Feb 21 12:29:01 it botched everything Feb 21 12:29:23 Styler2go: setCompoundDrawables Feb 21 12:29:39 Sicp: why cant you just do that with the layout_weight property? Feb 21 12:29:48 I haven't tried Feb 21 12:30:10 or a relative layout Feb 21 12:30:20 probably better if the parent is a LinearLayout Feb 21 12:31:12 Hey guys..!! Where do I start creating a database..? Feb 21 12:32:06 Sicp: just a thought if your sticking with linlayout Feb 21 12:32:22 just set your text view to match_parant weight = 1 Feb 21 12:32:25 I just used relativelayout inside the Linear and I used toRight/Left of Feb 21 12:32:25 :) Feb 21 12:32:36 I got them to go over where I want them but still not to the furthest of the screen Feb 21 12:32:48 and I've already set both layouts' width to fill Feb 21 12:33:20 Sicp: then you have padding or margin issues Feb 21 12:33:28 or your parent is set to wrap_content on width Feb 21 12:33:46 ah, it wasn't because of the right/left of :P Feb 21 12:33:49 it was still because of my padding Feb 21 12:34:09 the relative layout has produced for me what I would have gotten with Linear Horizontal Feb 21 12:34:11 let me try the weights Feb 21 12:34:18 ? Feb 21 12:34:35 RelativeLayout performs better than LinearLayout in most cases Feb 21 12:34:35 ah, no weights in Relative Feb 21 12:34:41 you dont need them Feb 21 12:34:45 sorry that i were afk... Feb 21 12:35:21 i want to have a button, on the left a text, on the right a picture Feb 21 12:35:42 Styler2go: yup, android:drawableRight Feb 21 12:36:13 Sicp: why do you need to use weights? Feb 21 12:36:43 http://pastie.org/6284484 <-- produces --> https://dl.dropbox.com/u/19390574/scrot.png Feb 21 12:37:23 btnTopShare alightParent right Feb 21 12:37:40 btnTopSettings alightLeftOf btnTopShare Feb 21 12:37:44 done Feb 21 12:37:51 Sicp: one moment Feb 21 12:38:21 Sicp: why have you got the linearlayout in there? Feb 21 12:38:27 I don't know :P Feb 21 12:38:29 it's useless Feb 21 12:38:30 lol Feb 21 12:38:49 but some diagram from Android Layouts did say that Relative spans from Linear Feb 21 12:38:52 one moment Feb 21 12:38:53 in a tree diagram Feb 21 12:39:13 Sicp: I just told ya what to do Feb 21 12:39:22 to get what you want Feb 21 12:39:47 yea I'm trying Feb 21 12:40:24 hmpf Feb 21 12:40:36 and, can i have an edittext that looks lika a button? Feb 21 12:40:38 dont forget you would have to move btnTopSettings below btnTopShare Feb 21 12:40:39 the same background? Feb 21 12:41:03 if you want Feb 21 12:41:17 haha this was easy :D Feb 21 12:41:28 Styler2go: just set the style="?android:attr/buttonStyle" Feb 21 12:41:34 yes :) Feb 21 12:41:51 Sicp: just editing your layout Feb 21 12:42:06 what you said made settings button stretch wayyyyyy much, StingRay_ Feb 21 12:42:37 but that's because I wasn't sure of what you meant by " btnTopShare alightParent right" so I gave it "android:layout_alignParentRight="true" Feb 21 12:43:01 there's no alignParent separately, there's alignParentRight="something" Feb 21 12:43:09 takes boolean Feb 21 12:43:34 is there a good example of how weight works? or can someone explain me? Feb 21 12:43:40 alightRight for one Feb 21 12:43:44 i am gettign some strange results... Feb 21 12:43:59 and alignLeftOf the thing on the right Feb 21 12:44:09 [ro.com.android.wifi-watchlist]: [GoogleGuest] <--- wat Feb 21 12:44:12 for those 2 things Feb 21 12:44:44 Sicp: http://pastie.org/6285027 Feb 21 12:44:45 that's what I did Feb 21 12:45:03 ^ THAT one works.. Feb 21 12:45:09 let me study the shit out of it Feb 21 12:45:09 thats what I said do Feb 21 12:45:11 haha Feb 21 12:45:16 lol Feb 21 12:45:24 wait a minute, that's what I did too Feb 21 12:45:29 cant be Feb 21 12:45:32 lol Feb 21 12:45:37 * StingRay_ gives up Feb 21 12:45:39 :) Feb 21 12:45:59 ohhhhhh Feb 21 12:45:59 * Napalm pats himself on the back.. one more win for the books Feb 21 12:46:04 you meant the textview Feb 21 12:46:10 I set it on the share button Feb 21 12:46:11 idiot Feb 21 12:53:59 uff Feb 21 12:54:23 this layout i am working on... so hardcore.. :D Feb 21 12:57:43 Hey guys, is there a definitive way to get the exact pixel distance of a pan gesture independent of DPI and etc? Need it for some openGL stuff, can't figure out a way that will work on all devices and devices like Galaxy Note seem to give me completely different coordinate data for touch and pen gestures... Feb 21 12:58:11 use a percentage or ratio Feb 21 12:58:32 offset / width = ratio Feb 21 12:58:39 If i have a started service and quit the activity that started it, how can i regain control, i.e. a handle to said service? does this require binding? Feb 21 12:59:08 my new favorite site.. no more need for greps on repo Feb 21 12:59:09 http://androidxref.com/ Feb 21 12:59:12 freiform: yeah Feb 21 12:59:32 freiform: the bind method can simply return a reference to the service if thats all you need Feb 21 12:59:57 dude, that trick is fucking cool Feb 21 13:00:05 Sicp: ? Feb 21 13:00:13 the one you and StingRay_ mentioned Feb 21 13:00:17 clever: i guess that would suffice. i just need access to it so i can stop or re-start it. Feb 21 13:00:21 Sicp: what one? Feb 21 13:00:23 fuck, should start reading Feb 21 13:00:27 the alignParent, etc... Feb 21 13:00:29 oh Feb 21 13:00:34 not really a trick Feb 21 13:00:42 I know :P Feb 21 13:00:46 it's basics Feb 21 13:00:51 101 Feb 21 13:00:55 001 Feb 21 13:01:09 na its 007 :D Feb 21 13:01:09 ok is there any standard emoticon lib in android ? Feb 21 13:01:13 oh yeaaaa Feb 21 13:01:50 freiform: use a intent service, send an intent then the service can use stopSelf() Feb 21 13:01:58 if its just start and stop control Feb 21 13:02:19 where is the ubuntu phone download link Feb 21 13:02:32 tis clearly the 21st today :) Feb 21 13:02:58 I see, thanks. And should I use me.getX() - me.getHistoricalX(0); or me.getX() - me.getHistoricalX(me.getHistorySize() -1); ? Feb 21 13:03:06 Where me is MotionEvent Feb 21 13:03:45 in the touchEventListener ? Feb 21 13:03:51 To be honest neither seems to be as precise as I'd hope, but then maybe I'm doing something else wrong so I'm not sure Feb 21 13:04:03 Yup Feb 21 13:04:14 Anonyneko: convert to floats first or use getRawX() Feb 21 13:05:16 Convert to floats? Feb 21 13:06:13 if i want to use a gridview in android < 15 i have to use the v7 support library, yes? Feb 21 13:07:17 Styler2go: gridview was there since api level 1? Feb 21 13:07:31 GridLayout i mean Feb 21 13:08:35 ah yeah you thats kind of aprt of v7 support library Feb 21 13:08:36 I have to fill menu items in OnCreateOptionsMenu() with values from an arraylist that's set in an AsyncTask. Any clue how to go about that? Feb 21 13:08:45 \extras\android\compatibility\v7\gridlayout Feb 21 13:08:54 https://wiki.ubuntu.com/TouchInstallProcess <--- some1 needs to sort their date awareness out!! Feb 21 13:09:11 mahmoud__: save your Menu handle edit it in AsyncTask Feb 21 13:09:13 StingRay_: 21th is not over yet :) Feb 21 13:09:13 timroes, can you tell me why it tells me: Description Resource Path Location Type Unexpected namespace prefix "app" found for tag android.support.v7.widget.GridLayout scrollbericht.xml /DokuMedia/res/layout line 35 Android Lint Problem Feb 21 13:09:48 timroes: sure that somewhere it nearly is!! Feb 21 13:09:58 Styler2go: you need to add the auto namespace prefix Feb 21 13:10:22 auto? Feb 21 13:10:57 Styler2go: xmlns:app="http://schemas.android.com/apk/res-auto" Feb 21 13:11:23 Napalm, how to get a reference for the inflated options menu in Class level? Feb 21 13:12:05 Napalm: in the xml> tag? Feb 21 13:12:47 mahmoud__: in onCreateOptionsMenu/onPrepareOptionsMenu you get a Menu object as the only parameter.. save it as a private class variable.. then you can access it from your asynctask Feb 21 13:13:09 add it to the root xml tag Feb 21 13:13:12 Styler2go: ^ Feb 21 13:13:15 Napalm, thanks. Feb 21 13:13:17 hm... Feb 21 13:13:19 right, back to work.. bye Feb 21 13:13:49 so you mean in my scrolview... Feb 21 13:17:01 not working... any other ideas? Feb 21 13:17:15 Styler2go: paste your xml Feb 21 13:24:31 its very long Feb 21 13:24:42 thats what she said Feb 21 13:25:16 http://pastebin.com/4xkVismp short version Feb 21 13:27:52 the autocomplete knows the app: prefix... Feb 21 13:28:29 oh, no, now it does not... Feb 21 13:36:51 no idea? Feb 21 13:37:15 For my app I use: android:theme="@style/AppTheme" . And AlertDialogs within the Activities looks nice and white/blue. But then I have an Activity themed to Theme.Dialog that looks old and ugly. How can I make this look the others? I have minSdkVersion at 10 so I can't use Theme.Holo.Dialog Feb 21 13:38:53 Holo.Theme.ialog Feb 21 13:39:05 or Holo.Light.Dialof Feb 21 13:39:08 *Dialog Feb 21 13:40:03 Did you read the whole sentence? :P Feb 21 13:41:01 ehrm Feb 21 13:41:09 my app uses minsdk 9 Feb 21 13:41:12 and works with holo Feb 21 13:41:14 so... Feb 21 13:41:31 hi. I've developed com.example.MyFirstApp now I've changed the activiy_main.xml, I run As Android Application, but the application does not change on the emulator. How to 'uninstall' on the Virtual Device and Reinstall the new version? thank you. Feb 21 13:41:45 It says Theme.Holo.Dialog requires API level 11 Feb 21 13:41:56 hmm Feb 21 13:42:04 use support library maybe? Feb 21 13:42:07 i am using v4 Feb 21 13:42:12 DaVinciIT, adb uninstall com.example.MyFirstApp Feb 21 13:42:15 and then install again Feb 21 13:42:19 that should do it Feb 21 13:42:32 Styler2go: I think I am Feb 21 13:42:42 Quacked: http://stackoverflow.com/questions/9681648/how-to-use-holo-light-theme-and-fall-back-to-light-on-pre-honeycomb-devices Feb 21 13:42:46 PLEASE HELP - I am able to use my girlfriends SGS3 (4.1.2) as debuging phone on ADT, but when trying to run app on SG Note2 (4.1.2) getting error - Installation failed due to invalid APK file!. Can anyone help ? also Note2 - Rooted , S3 (not rooted) Feb 21 13:44:22 thank you i try Feb 21 13:46:21 any ideas why ? Feb 21 13:47:06 timroes: you dont have an idea for my problem? Feb 21 13:47:18 eclispe: can I do "adb unistall" from Eclipse ? Feb 21 13:47:35 Styler2go: ah wait haven't looked at the xml file yet Feb 21 13:48:31 no DaVinciIT Feb 21 13:50:02 Styler2go: why do you use app: there? Feb 21 13:50:10 thank you. so everytime I change application code in Eclipse, I need to uninstall from device to run the new version? Feb 21 13:50:35 doesn't the support lib looks for android:columnCount? guessing, haven't used gridlayout yet Feb 21 13:50:47 Hello guys, when I connect my HTC Sensation to my PC through USB, my service app dissappears. Is that because Android OS decides to clean up my app because of low memory? Feb 21 13:51:28 timroes: its wasting to much time :( i have to use other things now... damn this... :D Feb 21 13:51:37 but no, you have to use another prefix... Feb 21 13:52:19 hmm kay Feb 21 13:52:40 PLEASE HELP - I am able to use my girlfriends SGS3 (4.1.2) as debuging phone on ADT, but when trying to run app on SG Note2 (4.1.2) getting error - Installation failed due to invalid APK file!. Can anyone help ? also Note2 - Rooted , S3 (not rooted). Feb 21 13:53:19 "adb uninstall com.example.myfirstapp" returns "Failure" Feb 21 13:53:32 iBnz, uninstall the app on Note2 and try again, I guess. Feb 21 13:54:19 Please guys, when I connect my HTC Sensation to my PC through USB, my service app dissappears. Is that because Android OS decides to clean up my app because of low memory or something? How can I see Android OS wants to clean up my activity or service? Feb 21 13:54:29 Can't seen much on logcat. Feb 21 13:55:06 timroes: how do I style the AlertDialog then? Feb 21 13:55:53 i thought you have an activity styled as dialog? Feb 21 13:56:04 Number5 app is not installed. (error - failed to install ) Feb 21 13:56:04 timroes: do you know how "Weight" works? Feb 21 13:56:17 Styler2go: tis in the docs Feb 21 13:56:26 and instead of using @android:style/Theme.Dialog in the xml you do the solution in the link Feb 21 13:56:29 timroes: if I style it as Theme.Dialog it will still look old Feb 21 13:56:39 Note2 settings for debug? Or allow third-party app to install...? Feb 21 13:56:48 Quacked: just do like in the link Feb 21 13:56:59 will a textview react in a different way than a linearlayout? Feb 21 13:57:04 timroes: if I do that, the AlertDialog cannot be shown by itself on top of every other app Feb 21 13:57:14 timroes: it will show a background Activity in fullscreen and AlertDialog on top Feb 21 13:57:15 Styler2go: to what ? Feb 21 13:57:25 weight ? Feb 21 13:57:29 as in layout weight ? Feb 21 13:57:33 read the docs Feb 21 13:57:36 no Feb 21 13:58:31 Quacked: you lost me, i understood you, that you had an activity styled with android:theme="@android:style/Theme.Dialog" so you can do the solution with the themes in different res folders to select a specific style Feb 21 13:58:51 I have done that Feb 21 13:58:55 in general you could do the EXACT solution to apply the theme for your whole activity (should also apply to dialogs then) Feb 21 13:59:04 paste your manifest Feb 21 14:00:42 ok Feb 21 14:00:42 http://pastebin.com/m4MPBdMt Feb 21 14:00:49 but I'm gonna try to explain again, hehe Feb 21 14:01:35 what activity causes the problem? Feb 21 14:01:49 AlertDialog Feb 21 14:02:08 Number5 Note2 settings for debug simmilar as S3. USB debugging mode ON . third party apps allowed to install. Feb 21 14:02:19 Quacked: you generate that from inside the code? Feb 21 14:02:22 Does Android has any Transparent phone ? e.g: http://www.huffingtonpost.co.uk/2013/02/18/polytron-technologies-transparent-see-through-phone-video_n_2709136.html?utm_hp_ref=uk Feb 21 14:03:35 iBnz, well I'm sorry can't help you now. I'm stuck with my own problem too :( But don't give up :) Feb 21 14:04:02 timroes: As the AlertDialog is a popup when my alarm sounds, it needs to be on top of other apps. I therefore do not use setContentView in DialogActivity, but instead use AlertDialog.Builder to show AlertDialog Feb 21 14:04:10 I want to disable usb port programmatically Feb 21 14:04:35 Quacked: and you said earlier AlertDialog generated via code looks all fine, but if you style an activity with Theme.Dialog it looks old Feb 21 14:04:46 and in your manifest i dont see any activity styled like a dialog at all Feb 21 14:04:54 I removed it, sorry Feb 21 14:05:14 within an app client wants to interrogate the device contact's list then determine which contacts don't have the app installed, is that doable? Feb 21 14:05:22 android:theme="@android:style/Theme.Dialog at line 33 Feb 21 14:06:14 yeah and if you create an own style for that @style/MyDialogStyle and a style file in the three different folders each parenting from a different style Feb 21 14:06:22 the values-v11 from Theme.Holo.Dialog etc. Feb 21 14:06:43 then you should be able to put android:theme="@style/MyDialogStyle" to that activity Feb 21 14:06:59 and it selects the style based on what api level you are running on Feb 21 14:07:04 so you will get holo where holo is available Feb 21 14:07:21 Number5 Thank you. sorry i am not able to help you with your problem. Feb 21 14:07:30 timroes: I think I understand. Let me try. Feb 21 14:07:48 is there an testview with an line below the text? Feb 21 14:08:17 text* Feb 21 14:10:27 Think it worked. Thanks, timroes. With the added bonus of understanding more of the values/value-11 etc :) Feb 21 14:10:42 you're welcome :) Feb 21 14:12:33 I am able to use SGS3 (4.1.2) as debuging phone on ADT, but when trying to run app on SG Note2 (4.1.2) getting error - Installation failed due to invalid APK file!. Can anyone help ? could it be something to do with ROOT Note2 - is rooted? Feb 21 14:12:49 no, it has nothing to do with rooting. Feb 21 14:12:57 you might want to just try rebuilding. Feb 21 14:13:22 you can also look at the logcat output to see if there's anything interesting, but good fucking luck with the 100 message / second spam. Feb 21 14:15:32 how can i see logcat output ? in ADT ? Feb 21 14:16:43 http://developer.android.com/tools/help/logcat.html Feb 21 14:16:49 http://developer.android.com/tools/debugging/ddms.html Feb 21 14:17:26 Hey guys..!! Where do I create a new class for DB operations..? Feb 21 14:18:11 anywhere you want, I guess? Feb 21 14:19:12 lov: Thanks..!! You mean can I place it in the main activity itself..? Feb 21 14:19:26 classception! Feb 21 14:21:51 If you create a String like this: "Countdown completed after" + valueOfCd + "minutes", is the correct way to do it like this? R.string.completedAfter + valueofCd + R.string.minutes? Feb 21 14:22:37 would at least result in something funny :D Feb 21 14:22:59 r.string... is just an int id of the resource you want to have Feb 21 14:23:24 you have to get the string before you try to concatenate it via getResources().getString.. Feb 21 14:23:51 also in general you shouldn't concatenate like that Feb 21 14:24:11 because you assume you have string1 + value + time unit, you really think its that order in every language? Feb 21 14:24:15 purezen: you can but I recommend that you not do that. Feb 21 14:24:41 purezen: I'd recommend that you go throug this: http://developer.android.com/training/basics/data-storage/databases.html first. Feb 21 14:24:59 Quacked: absolutely not. Feb 21 14:25:09 timroes: ah, makes sense Feb 21 14:25:10 you should create one string for the sentence "COuntdown completed after %d %s" then you can put the time in for the %d and %s you will put in another string Feb 21 14:25:14 You'd want a string like "Countdown completed after $1%d minutes" Feb 21 14:25:26 and then use String.format, or the varargs resource method Feb 21 14:25:27 lov: in fact I am going through that only.. but I am encountering a lot of problems with that.. Feb 21 14:25:30 or if you always assume minutes, what lov said :) Feb 21 14:25:45 Cool, thanks Feb 21 14:25:47 yeah, you might want to do $1%d $2%s if your time unit is variable Feb 21 14:26:09 or even $1%s where the string you inject is a string that you create elsewhere for time length, so you can do "3 hours 20 minutes" or something Feb 21 14:26:28 i18n is hard, lets go shopping. Feb 21 14:26:37 so you will end up finally with something like getResources().getString(R.string.compeltedAfter, valueofCs) Feb 21 14:26:55 (with having minutes fixed) Feb 21 14:27:23 lov: Here's what I am doing.. http://picpaste.com/Screenshot_from_2013-02-21_19_56_24-CGLSIoaI.png Feb 21 14:27:24 Good stuff Feb 21 14:27:37 lov: Hope you could point me where I am wrong.. Feb 21 14:27:53 well the first problem is that you posted a screenshot instead of using pastebin or something. Feb 21 14:28:09 Another thing is that you declared a constructor but with the wrong name Feb 21 14:28:19 I'd really say that your main problem is that you need to work on your Java first. Feb 21 14:28:41 in particular, learn what you're actually doing instead of copy/pasting Feb 21 14:28:42 purezen: and thirs you cannot create a private constructor in an abstract class, how the hell would you override it? Feb 21 14:28:54 override the class* Feb 21 14:29:25 lov: well.. could you point to me the concepts I need to be aware of then..? Feb 21 14:29:50 I'd start with http://docs.oracle.com/javase/tutorial/java/concepts/index.html Feb 21 14:29:52 timroes: ok.. I will look at that.. Feb 21 14:30:01 follow up with all of http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Feb 21 14:30:23 "why doesnt it compile" questions might be more appropriate in ##java, but hold off on mentioning that it's android or they'll just frown at you Feb 21 14:30:39 haha Feb 21 14:30:40 (unless they're actually android related issues, in which case ask here) Feb 21 14:30:52 (not knowing how OO works is not Android specific) Feb 21 14:31:21 lov: ok.. well.. Feb 21 14:31:43 lov: thanks a ton for all this..:-) am on it..!! Feb 21 14:33:10 So uh, if I load a bitmap in a background asynctask I'm almost guaranteed to have choppy openGL while it's loading? Feb 21 14:34:20 Like, 5 fps choppy when it has to draw, like, four to twelve polygons Feb 21 14:34:35 * lov shrugs Feb 21 14:35:02 I don't know why it'd affect openGL in particular but you might be affecting the UI thread somehow with your async task (unlikely) Feb 21 14:35:17 parsing the bitmap may be a little intensive. I don't know how long it takes. Feb 21 14:35:27 You might want to run the profiler or something when you do this Feb 21 14:36:03 or you might be starving the GPU of memory bandwidth Feb 21 14:37:05 It takes about a second or two on my Allwinner 1-core 1Ghz (something like 1000x1000 pic) Feb 21 14:37:09 I'm writing a simple camera app, where I'm reading some book code….I'm not getting why author has done same things in different way? http://bpaste.net/show/jusgktmQC17h1KFbfKSF/ Feb 21 14:37:27 When it's not loading animation is smooth Feb 21 14:37:34 When it's loading it gets crap Feb 21 14:37:59 System.arraycopy() looks like native call and guess would have been faster than adding a callback Feb 21 14:38:02 write a test activity that only loads that bitmap, and see how long it takes. Feb 21 14:38:29 frankly, if you're chomping on the cpu for a non-trivial amount of time, you're gonna have a bad day. Feb 21 14:38:41 lov: do you any inputs to put light on this? Feb 21 14:39:22 abhinavmehta: I don't. you could always email the author, I suspect he'd be happy to tell you. Feb 21 14:39:29 Well the bitmap loading time is all right Feb 21 14:39:39 lov: :) hmm Feb 21 14:39:48 It's going to cache anyway Feb 21 14:40:01 mind you, addCallbackBuffer doesn't do the same thing as System.arrayCopy Feb 21 14:40:08 so I doubt that you could in fact just swap them Feb 21 14:40:14 But the fact that it slows down OpenGL is kinda annoying Feb 21 14:41:00 Actually even less than a second, it loads in about a third of a second, but during that time I get like three frames Feb 21 14:41:02 Anonyneko: GPUs are in majority of cases on shared memory bus, and while there are DMA priorities (usually), it won't help if you have to send the request from cpu to gpu Feb 21 14:41:43 In other words, I'm fucked? Feb 21 14:41:49 lov: but frankly is there any difference the way both those lines behave? Feb 21 14:41:58 It's Mali 400, it's definitely on the same memory Feb 21 14:42:17 abhinavmehta: I don't know what camera.addCallbackBuffer actually does, so I can't comment. Feb 21 14:42:26 k Feb 21 14:42:36 hey, is it possible to pass "requires NEON" in the AndroidManifest.xml? For Play Store distribution? Feb 21 14:43:02 Anonyneko: well, do you have support for tracing in your firmware? (which version it is, btw?) Feb 21 14:44:10 4.1 Feb 21 14:44:15 No idea Feb 21 14:44:34 I attached ddms to it before, at the very least Feb 21 14:44:56 ok, 4.1 is supposed to have gl tracing and systemtap Feb 21 14:45:51 Omg android is HILARIOUS. Get this: it declares typeface values as enum in source xml, but TypedArray doesn't have getEnum()! The TextView source actually defines the values as static final ints and puts a TODO make work comment. HILARIOUS. All because prejudiced aversion to enums since the get go. What will they think of next?? Feb 21 14:47:10 greatjustice: patches welcome Feb 21 14:47:29 greatjustice: have you considered the possibility that knowing better than you the internals of DVM, they implemented it this way (DVM's behaviour with enums changed later on, though)? Feb 21 14:47:32 ...all right, I might have misplaced the blame a little, although it's still asynctask Feb 21 14:47:44 It's the effing garbage collector Feb 21 14:48:08 Honestly why does android hire these people? I'm not super brilliant but I could code better than the collective framework team Feb 21 14:48:36 greatjustice: Google is hiring. Feel free to submit your resume. Feb 21 14:48:39 I've found tens of bugs still in the code Feb 21 14:48:50 greatjustice: ahem. Feb 21 14:48:58 but I'm far too frustrated to submit Feb 21 14:48:59 greatjustice: enums were (and probably still are) very slow on Dalvik Feb 21 14:49:00 greatjustice: patches welcome. Feel free to fix this, and reference them on the cover letter when you apply. Feb 21 14:49:08 I can't really avoid GC there, too, gotta convert the damn texture to a 2^n size Feb 21 14:49:13 greatjustice: if you're doing anything fast you should avoid them ;) Feb 21 14:49:27 Eh. I can do better than working for crappy Android. Feb 21 14:49:37 then stop whining? Feb 21 14:50:02 greatjustice: in summary, "I raged about stuff without reading fine print explaining it, and now I am backpedaling to hide perceived shame isntead of owning up" Feb 21 14:51:07 Lol what? Defending this mess? For whose sake? I just wanna get rich obviously. Feb 21 14:51:39 I don't have to work for Google to want a decent api and get treated valuably as a developer Feb 21 14:52:32 And enums aren't bad. They never were. Ask the vm engineers one said so himself Feb 21 14:55:29 For your health: http://stackoverflow.com/questions/5143256/why-was-avoid-enums-where-you-only-need-ints-removed-from-androids-performanc Feb 21 14:57:08 I notice a class in the documentation called GooglePlayServicesUtil. It has a method called isPlayServicesAvailable() which is exactly what I need. Feb 21 14:57:15 But where is this class and how to I get it? Feb 21 14:57:37 A'ight, I have another stupid question Feb 21 14:57:50 Trying to run my app on a galaxy note 10'1 Feb 21 14:58:02 If I pan with a pen, it's smooth and perfect Feb 21 14:58:02 Amorgos: if it's not in the public API, it's not meant for public consumption and may disappear/break at any time. Feb 21 14:58:10 If I pan with a finger it's choppy as all fuck Feb 21 14:58:36 It's not the screen because the menu scrolls fine with the finger Feb 21 14:58:54 lov: it is in the public api Feb 21 14:58:56 But why could that happen in the app? I just listen to touch events like I normally do Feb 21 14:59:08 greatjustice: so? They changed it in docs. As for TypedArray, note that it's not generating normal classes or code Feb 21 15:00:21 hmph Feb 21 15:00:26 Amorgos: follow http://developer.android.com/google/play-services/setup.html to install it then Feb 21 15:01:02 ah ok. it's a lib project Feb 21 15:01:06 thanks Feb 21 15:01:17 I can't even google anything like this... Feb 21 15:02:55 Anonyneko: listen and do what with ? Feb 21 15:04:00 p_l: sorry I don't understand. I want to use attr android:typeface in my custom styleable. It is defined in . But I would like its value for my own code. But alas no getEnum() Feb 21 15:04:27 Listen with the ontouchlistener in a OnTouchEvent(MotionEvent) Feb 21 15:04:36 In a glsurfaceview Feb 21 15:04:50 It's bad practice to rely on fixed values I see. They may change across release or device god forbid Feb 21 15:04:50 greatjustice: The data generated by the resource framework is *not* DVM classes Feb 21 15:04:59 Get raw x, y, move opengl polygons by the same amount of pixels Feb 21 15:05:08 Works perfect with the s-pen Feb 21 15:05:40 Anonyneko: maybe spen uses diff thread ? Feb 21 15:05:42 But with the finger it's, like, registering the move gesture like once a second Feb 21 15:05:52 as a wrapper to touch event Feb 21 15:05:54 dunno Feb 21 15:05:58 dont have spen Feb 21 15:06:23 Even if it does... it's still weird because every other app doesn't seem to do that Feb 21 15:06:31 I want to let the user change the theme himself and I know that setTheme works fine if put before super.onCreate in Oncreate(). Should I then have a button that onclick will store a value in preferences and force a restart of the app? And then check that preference in onCreate and setTheme there? Surely there must be a better way :) Feb 21 15:06:35 and I don't do anything when i pan Feb 21 15:06:45 Like, no other threads are doing anything Feb 21 15:07:24 Anonyneko: create an empty test activity to verify what happens. Feb 21 15:07:36 it's possible that the phone gives that behavior (albiet unlikely) Feb 21 15:07:54 Well my chinese no-name doesn't have that issue so I'm confused Feb 21 15:08:01 I'll try that, thanks Feb 21 15:08:37 p_l: then why can I get Strings and String arrays and all the like via TypedArray? I understand resources are referred to by uniq id and fetched by resource classifier if thats what you mean. You're still being vague. Feb 21 15:09:36 I have a google reader app that allows for changing themes and that one looks to be reloading the Activity at least Feb 21 15:09:48 it's perfectly capable of smooth pinch zoom with fingers, too Feb 21 15:10:12 but not MotionEvent.ACTION_MOVE Feb 21 15:10:36 Quacked: letting android restart your activity (not app) is the path of least resistance in the end. Feb 21 15:11:11 greatjustice: what do you mean? Feb 21 15:11:57 greatjustice: the other types make sense when created through normal constructors/functions, whereas Enum would require building the class at runtime, and Reflection is still quite slow on DVM (maybe not in all paths) Feb 21 15:14:48 (and frankly speaking, afaik there's no runtime code generation lib for DVM to this day) Feb 21 15:15:00 p_l: okay well all I'm saying is putting together an entire attr.xml set with enum tags and having no code to possibly use them directly requires vast amounts of static final constants in any class that might want to use them. It's atrocious code design and a big waste of time for me. Feb 21 15:15:46 Android made a lot of enums in their xml and its all useless outside of vanilla classes Feb 21 15:16:58 it would be easier if JVM compatibility was broken (as it is now, while it uses different bytecode, it's semantically compatible) Feb 21 15:17:13 because then you could replace Enum accesses with some fast-path to storage Feb 21 15:18:51 Quacked: changing theme AFAIK is a configuration change (much like setting language) that churns through resource framework. Attempts to get around this procedure are pretty much broken, so you should stop now and go with the flow. Let the activity lifecycle reboot your activity. If that means saving temp data, then so be it. Youre much better off not fighting this one Feb 21 15:19:39 Sorry I misspoke. The restart isn't part of the lifecycle. Feb 21 15:23:23 p_l: or they just could have done the obvious thing and made AttributeSet.Typeface.SANS = 1 and we could all live in harmony. Feb 21 15:27:51 help im getting Failed to find style 'mapViewStyle' in current theme Feb 21 15:28:15 W/zipro(24289): Unable to open zip '/data/local/tmp/myFirstApp.apk': Permission denied . can anyone tel me why ? Feb 21 15:29:51 p_l: Or actually the most flexible and straightforward solution would be android.R.attr.Typeface.SANS, etc. for internals and R.attr.MyAttr.MyEnum for user defined stuff. So simple and elegant. Feb 21 15:31:17 How can i add a TabWidget which creates a new Tab onclick? :-/ Feb 21 15:31:50 iBnz: ls -l. Do you have permission to read the file? Feb 21 15:31:55 hi there Feb 21 15:33:36 greatjustice i just checked on my phone with root explorer. /data/local/tmp/myFirstApp.apk' TMP folder is empty Feb 21 15:34:14 iBnz: have you tried uninstalling/reinstalling the app? "adb uninstall " Feb 21 15:34:48 iBnz: I'm guessing here, but pretty sure android won't let you read apk like that. Likely requires root. Feb 21 15:35:15 Oh duh cant read Feb 21 15:35:44 In Android, we can execute AsynTask only once…so what if I want to use task again and again without creating new instance?? Feb 21 15:36:13 Change permissions chmod a+r methinks Feb 21 15:36:16 completenewbee i tried to run my app , on connected phone. Feb 21 15:36:28 and got error failed to install app Feb 21 15:36:31 is there some way, we can keep doInBackground in loop, while injecting input data at frequent intervals? Feb 21 15:36:32 I have an issue with a ksoap2 project, I have my CXF web services setup and they work via the service browser in eclipse. But, whenever I try to access them via my application I get the following Error (code included) http://pastebin.com/AxhVMRRk Feb 21 15:36:59 abhinavmehta: just create a new instance and. If your needing the task to stay running look into threading Feb 21 15:37:11 Installation failed due to invalid APK file! Feb 21 15:37:33 completenewbee: any quick pointer doing such stuff ? That would great help Feb 21 15:37:41 iBnz: I got that but im assuming you have a botched install present. If so then remove the apk, clean and reinstall. Feb 21 15:38:10 in short, im getting "The given SOAPAction does not match an operation" and have no idea why Feb 21 15:39:08 abhinavmehta: IIRC, async is once and done. There's a way to do Thread pooling and I'm pretty sure that's how android works, but haven't had a strong need to look into it (yet) Feb 21 15:39:50 abhinavmehta: pointer... I can help if you have a specific question but I have no idea what you are doing. http://developer.android.com/reference/java/lang/Thread.html for threading and http://developer.android.com/reference/java/lang/Runnable.html for runnable. Communication back and forth with the UI thread can use messages Feb 21 15:39:54 for a very simple line i will need an image? Feb 21 15:39:55 completenewbee as an absolute beginer. can i ask you how to execute "adb uninstall " command in ADT ? Feb 21 15:39:56 greatjustice, ok Feb 21 15:40:24 iBnz: you don't. You do adb uninstall your.package.name Feb 21 15:40:38 you also can't do it from within eclipse, you have to use the command line Feb 21 15:41:10 iBnz: ok... so if were really an absolute beginner I assume we are "hello worlding" or something. Did you get the app to run at all? Feb 21 15:41:45 abhinavmehta: the commands wait and notify would suffice, but I'm pretty sure that hogs CPU cycles though... unless dvm plays nice. Feb 21 15:42:11 greatjustice: hmm Feb 21 15:42:25 I've changed my activity.xml but when I try to run it goes as it was before I changed Feb 21 15:42:34 completenewbee: okay…I'm making my simpler and would share with you in a moment Feb 21 15:42:38 i got my hello world app running on s3 without any errors. . BUT NOT ON sgNote2 Feb 21 15:42:41 *code simpler Feb 21 15:42:43 http://goo.gl/ToIXc Feb 21 15:43:11 GOMADWarrior: delete the "gen" directory and it will recreate it automatically. Re-Run your app Feb 21 15:44:13 GOMADWarrior: sometimes eclipse needs a kick to know you changed enough to recompile Feb 21 15:45:00 iBnz: do you know if you app is present if you search under "settings->applications". I.E. does it show installed? If so remove it. Feb 21 15:45:00 completenewbee: here is the code, http://bpaste.net/show/DRGbnTEIVYz0E2YHYunO/ Feb 21 15:45:22 completenewbee NO. there are no such app installed. Feb 21 15:45:41 completenewbee: now I want to execute task written at line#23 again and again in separate thead at line#75 Feb 21 15:45:49 one more try because i'm compleatly stumped with this problem, But can anyone one help me with my SOAP > Android issue >>> http://pastebin.com/AxhVMRRk Feb 21 15:46:32 on galaxy note2 every time i am trying to run it from ADT , it gives me an error. Installation failed due to invalid APK file! . but on galaxy s3 it works as it should. Feb 21 15:46:42 abhinavmehta: yup.. this looks like something you could place inside a runnable and keep it running. Feb 21 15:47:20 completenewbee: sorry I'm poor in Java background, pointers ? Feb 21 15:47:42 completenewbee: I know basics of Java threading…but couldn't get you.. Feb 21 15:47:46 What's the optimal SystemClock.sleep time for touch events? Feb 21 15:48:32 still the same ;/ Feb 21 15:48:51 On some devices everything's lightning fast without sleep, on some (effing galaxy note 10.1) apparently at least 16 ms should be slept Feb 21 15:49:03 now I get Unfortunately, System UI has stopped Feb 21 15:49:15 And 16 ms on those that are lightning fast without it is kinda noticeable Feb 21 15:49:22 abhinavmehta: first what are you doing with the image when you receive it? Feb 21 15:49:55 completenewbee: I do some sort of feature extraction on image,, Feb 21 15:50:24 completenewbee: that feature extraction is written in C, so I will use native calls*JNI) for doing that further Feb 21 15:50:55 completenewbee on galaxy note2 every time i am trying to run it from ADT , it gives me an error. Installation failed due to invalid APK file! . but on galaxy s3 it works as it should. Feb 21 15:51:09 abhinavmehta: ok one second i will post you something Feb 21 15:51:20 completenewbee: k..thank you! Feb 21 15:53:11 #android-root Feb 21 15:53:14 sorry Feb 21 16:01:53 abhinavmehta: http://pastebin.com/4HqL50YQ Feb 21 16:03:04 completenewbee: :) thank you so much, you have done my job! Feb 21 16:03:06 no pasteban? Feb 21 16:03:14 oups wrong chan. sorry :) Feb 21 16:04:13 iBnz: it sounds like a botched install. Which is why we were pointing you to uninstalling. Feb 21 16:04:47 iBnz: if its really not present on the device then how are you attempting to install this? Are you using Eclipse and having it automatically install/reinstall? Feb 21 16:05:58 abhinavmehta: as for updating the progress onto the UI thread you will need to look at Handler and messenging to get your progress back onto the UI Feb 21 16:05:58 how would you guys create a list of checkboxes? 3 cols, every col over 4 rows... Feb 21 16:06:10 tablelayout? Feb 21 16:06:37 completenewbee: hmm.. Feb 21 16:10:08 ... Feb 21 16:10:11 completenewbee: I've read your snippet, you are taking it more low level, I mean to Java threads…isn't this could be achieved via Android AsyncTask? I mean, I'm thinking that Dalvik might me more optimized to run Android constructs than native Java one Feb 21 16:10:13 completenewbee i am using eclipse run on device option. Feb 21 16:10:36 completenewbee: about Dalvik, thats entirely my gut assumption Feb 21 16:10:47 hi all =) Feb 21 16:11:03 has anyone here used Gson ? Feb 21 16:11:25 fanno: every hour today Feb 21 16:12:58 abhinavmehta: yes it is. If you are more comfortable with an asynctask then simply recreate a new one each time. Generally if its a loading screen for instance I would use a asynctask. If its something that will be running the entire time (I.E. processing frames as the occur) I would look at more of a threading model. Feb 21 16:12:58 StingRay_: do you know if i can force a variable to be a string, even tho it is a object ? well issue is i am talking to an api and sometimes the field returns as string and sometimes as object Feb 21 16:13:18 but it's a string in an object ? Feb 21 16:13:25 completenewbee got it sorted. did a fresh reinstall of WHOLE ROM. now it is working. might be corrupted rom or smthng Feb 21 16:13:31 just cast it to a string Feb 21 16:13:47 iBnz: see http://stackoverflow.com/questions/7998101/eclipse-installation-failed-due-to-invalid-apk-file Feb 21 16:14:00 iBnz: great Feb 21 16:14:08 fanno: how come it's an object ? Feb 21 16:14:16 and sometimes a string ? Feb 21 16:14:18 :) Feb 21 16:15:01 StingRay_: i am getting JsonSyntaxExceptionm because the API sometimes returns the field as just fieldname: string and then other times fieldname: {....} Feb 21 16:15:02 completenewbee thank you for your time. pint of beer from me When you in UK Feb 21 16:15:08 so i need a way to deal with that =P Feb 21 16:15:43 abhinavmehta: just FYI the asynctask is just a wrapper for a thread Feb 21 16:16:06 abhinavmehta: nothing special going on here. Google just provided a framework for common usage. Feb 21 16:16:47 completenewbee: hmm, I got your point and agree with you, I understand that AsyncTask does some task and quits…but is there some way(or hack) via which we can inject input data to doInBAckground()…like the referenced link gives input for while-flag in this. (http://stackoverflow.com/questions/9131204/how-to-stop-asynctask-in-infinite-loop see answers) Feb 21 16:17:11 completenewbee: ohh..k. Sorry late to read you! Feb 21 16:18:20 ^ worst advice ever in that thread Feb 21 16:18:56 SimonVT: hmm actually yes, its breaks asynchronous assumptions. Feb 21 16:18:57 The accepted answer should be "Don't use AsyncTask for this" Feb 21 16:20:24 SimonVT: :) Feb 21 16:20:57 completenewbee: okay, I got basic nature now…I was thinking in wrong direction earlier; Thank you once again. :) Feb 21 16:27:43 anyone familiar with this error on 3.2 "I/AwesomePlayer( 33): mConnectingDataSource->connect() returned -1007 Feb 21 16:30:07 trying to stream an mp3 - works fine on 4.2 and above Feb 21 16:31:19 anyone know how to 'detach' android phone from osx so it can be used by a virtualbox guest? Feb 21 16:34:56 though it look slike it might be an emulator issue Feb 21 16:38:08 speakingcode-wor: plug it back in, with adb not running ? Feb 21 16:38:09 ingodid: are you trying this via an emulator? Feb 21 16:38:19 yeah Feb 21 16:38:27 just read that it might be the problem Feb 21 16:38:33 ingodid: try it from a real device Feb 21 16:38:50 great - now i have to find one :( Feb 21 16:38:56 StingRay_ i don't have adb on osx. just on the VM Feb 21 16:39:39 speakingcode-wor: well I dont understand what you want then Feb 21 16:39:58 speakingcode-wor: are you asking how to connect something to a VM ? using usb? Feb 21 16:40:46 when i try to mount it in the vm it says it is in use by the host Feb 21 16:41:05 but i can't find it in diskutil or finder or anything in the host (osx) Feb 21 16:41:36 speakingcode-wor: I think thats more of a VM/usb question Feb 21 16:43:19 yup, just thought i'd ask Feb 21 16:45:51 my emulator wont run Feb 21 16:46:01 it stays loading Feb 21 16:48:07 it can take a while GOMADWarrior... how much ram n cpu you got? Feb 21 16:49:02 1.8 ghz 3 gb Feb 21 16:49:45 yey ubunto phone released Feb 21 16:49:50 to the wild Feb 21 16:49:51 https://wiki.ubuntu.com/Touch/Install?action=show&redirect=TouchInstallProcess Feb 21 16:50:31 anyone around with long-term sqlite android experience? Feb 21 16:52:03 Napalm: no.... but I stayed at a holiday inn express last night... Feb 21 16:52:11 :D Feb 21 16:57:13 anybody tried ubuntu on Galaxy Nexus yet? Feb 21 16:58:49 Is it possible to change the theme of RingtonePreference? Even if my app has a white theme, selection of ringtones is always black Feb 21 17:01:11 Quacked: I havent worked with it but according to http://developer.android.com/reference/android/preference/RingtonePreference.html it should accept a AttributeSet Feb 21 17:02:46 hello there Feb 21 17:03:00 is there method to unmount sdcard Feb 21 17:03:17 from java or c++ or adb Feb 21 17:03:40 Quacked: yes Feb 21 17:03:42 I mean programmatically Feb 21 17:03:50 how can I do that ? Feb 21 17:04:44 :-D Feb 21 17:06:22 Quacked: http://androidxref.com/4.2.2_r1/xref/frameworks/base/core/java/android/preference/RingtonePreference.java#135 Feb 21 17:07:25 do you habe to flash to ubuntu phone, shreesh, or does it install on top of android? Feb 21 17:07:31 have* Feb 21 17:07:59 Quacked: as you see it starts a intent by calling startActivityForResult using the owning fragment or activity.. you need to override that function and examine the passed in intent.. if its ACTION_RINGTON_PICKER then display your own dialog Feb 21 17:08:07 speakingcode-wor: you have to flash it. Feb 21 17:09:08 Napalm: sounds like a lot of effort for a small issue :) Feb 21 17:09:19 Quacked: here is the current ringtone picker http://androidxref.com/4.2.2_r1/xref/packages/providers/MediaProvider/src/com/android/providers/media/RingtonePickerActivity.java Feb 21 17:10:09 which you can probably just copy verbatim into your app and in your manifest you can set the theme Feb 21 17:10:13 not really Feb 21 17:10:33 Meh. Thanks :p Feb 21 17:11:01 hey Feb 21 17:11:32 if(intent.getAction().equals(Intent.ACTION_RINGTONE_PICKER)){ intent.setClass(this, MyRingtonePicker.class); } super.startActivityForResult(........); Feb 21 17:11:33 tada Feb 21 17:11:35 magic Feb 21 17:12:19 does anyone else has the problem with AVD and Sync Tester not working on android 4.2? Feb 21 17:14:36 Napalm: yeah, but I simply set it in XML with and is done with it :p Feb 21 17:19:32 im getting Failed to install MySecondApp.apk on device 'emulator-5554! Feb 21 17:20:43 can I check if all characters in a String are supported by a particular Typefont? Feb 21 17:20:51 (at runtime) Feb 21 17:21:07 GOMADWarrior: uninstall/reinstall or reboot the AVD Feb 21 17:21:53 GOMADWarrior: also look at logcat to see why Feb 21 17:22:58 Napalm: protip: if (Intent.ACTION_RINGTONE_PICKER.equals(intent.getAction())) > intent.getAction().equals(Intent.ACTION_RINGTONE_PICKER) Feb 21 17:25:09 In a heavily multithreaded app, how can I ensure that I don't try to commit while the activity is paused? Feb 21 17:26:14 hwrd|work: set a flag in onPause() ? Feb 21 17:26:36 evancharlton: That seems… barbaric. Feb 21 17:26:51 :) Feb 21 17:26:57 But I guess there isn't a better way. Feb 21 17:27:30 is there a possibility to change the source code of the devtool app? Feb 21 17:28:31 evancharlton: it was just a quick example for someone, but agreed that also avoids null issues Feb 21 17:28:57 Quacked: i thought you were talking about the color of the popup window Feb 21 17:30:40 I was :) Feb 21 17:31:24 erm, your changing the color of the popup dialog from xml attributes for RingtonePreference? Feb 21 17:31:49 No, I meant that I'm not changing it, hehe Feb 21 17:32:14 I simply create it there in settings.xml Feb 21 17:32:15 oh Feb 21 17:32:51 has anyone encountered the problem where changing a view's id in the layout editor causes eclipse to change every layout with that id? Feb 21 17:33:07 it's driving me crazy Feb 21 17:33:17 part of the new ADT i believe Feb 21 17:33:17 Quacked: your calling Intent(RingtoneManager.ACTION_RINGTONE_PICKER) Feb 21 17:33:20 yeah dont use the UI renamer Feb 21 17:33:25 xml view Feb 21 17:33:27 :) Feb 21 17:33:41 man... ok fair enough Feb 21 17:33:46 ootinii: not like we would want to resuse ID's :) Feb 21 17:34:03 well it's like i change it from textView1 to something Feb 21 17:34:14 then every layout that happens to have textView1 Feb 21 17:34:17 gets changed Feb 21 17:34:21 very irritating Feb 21 17:34:25 i know Feb 21 17:34:46 completenewbee_: oh, ok Feb 21 17:35:05 Quacked: its like napalm said.. once you call that intent your relinquishing control for that back to the android system. You cant modify (without modifying all of them) the systems dialogs. You can recreate the same dialog using the links Napalm sent. Feb 21 17:35:23 I understand Feb 21 18:06:52 which build tool is recommendet for android app development? I tried with Maven but it lacks a lot of things Feb 21 18:07:34 stummi: what does it lack? Feb 21 18:07:44 (just curious, cause i am going to change all my projects to maven) Feb 21 18:10:07 timroes, i would expect that such a tool manages my manifest (sets the version from maven version) and my project.properties Feb 21 18:10:40 when i create an project with maven-archetype the manifest has the starting maven version (0.0.1-SNAPSHOT per default) but it doesn't get updated automatically when the maven-version changes Feb 21 18:10:48 or i did something wrong Feb 21 18:11:13 what about the project.properties? doesn't it set libraries you pull in as dependencies? Feb 21 18:13:23 timroes, the target is set in maven so i expect it gets updated on the project.properties. About the libraries i don't know Feb 21 18:14:00 stummi: oh that is really weak Feb 21 18:14:14 Maven doesn't use project.properties Feb 21 18:14:23 timroes, but don't take me too serious. I am very new with android development and maybe i am doing all wrong ;) Feb 21 18:14:43 but i think in general for dependency management most companies use maven for their projects?! Feb 21 18:14:46 Would my iPad 4 images be 'compatible' with high end android tablets. The images are 2048 x 1536 Feb 21 18:14:47 i am a java developer and in maven since a few years though Feb 21 18:14:53 stummi: if you're very new with android, don't bother with maven at all Feb 21 18:14:59 For full screen images Feb 21 18:15:00 stummi: just use eclipse to handle building your android project Feb 21 18:15:04 or, if you don't like eclipse, use the ant scripts Feb 21 18:15:06 SimonVT: but the maven plugin for android could modify that file depending on your information in the pom? Feb 21 18:15:09 look at the docs on d.android.com Feb 21 18:15:23 once you've gotten your feet wet, then worry about maven. Feb 21 18:15:23 timroes: I have no idea Feb 21 18:15:35 me neither :D Feb 21 18:15:46 never used it, but going to change my libs now to it, since enough ppl bothered me with it :D Feb 21 18:16:02 so am reading the maven reference atm, that is written horrible imho :D Feb 21 18:16:08 lov, thanks Feb 21 18:19:15 Can I use a Google-Account token from Google Play Services on a remote server? Feb 21 18:19:34 apple741: android comes in many different shapes (landscape/portrait) and sizes/densities. You asked a loaded question that really depends on what your doing and how its used. Feb 21 18:20:13 apple741: could it be used. Sure.... Would it need to be scaled/cropped/stretched etc... Sure.... Feb 21 18:20:35 apple741: can you do that through code... again sure. Feb 21 18:21:43 even though I installed the analytics_sdk, my android-sdk\extras\google\analytics_sdk_v2 folder remains empty Feb 21 18:21:49 (it only contains a source.properties) Feb 21 18:21:56 but I'm searching for a jar :S Feb 21 18:22:18 yet the SDK Manager says it "has been installed" Feb 21 18:22:38 svens, i think so, but you'll want to try it Feb 21 18:27:43 Thanks completenewbee that really helps :) If I have my images as both 1024x768 and 2048 x 1536 ignoring aspect ratios for now, how do I know as a general rule which version to load on tablet? Feb 21 18:28:14 apple741: you can get the display metrics Feb 21 18:28:36 apple741: see http://developer.android.com/guide/practices/screens_support.html Feb 21 18:29:04 what if your tablet is bigger than 2048x1536? Feb 21 18:29:17 then you have a googleTV device? Feb 21 18:29:19 apple741: skinny is android will choose which image from which folder to grab depending on what it thinks it needs Feb 21 18:29:28 hwrd|work, nexus 10 is higher res than that... Feb 21 18:30:10 apple741: check out http://developer.android.com/guide/practices/screens_support.html Feb 21 18:30:22 Thanks guys will check those links out now :) Feb 21 18:30:28 apple741: and again depending on what your doing with the image imageview for instance can stretch/shrink/crop Feb 21 18:30:34 oh, lol, completenewbee already pointed you there Feb 21 18:30:46 zinx: no worries Feb 21 18:31:19 apple741: fwiw the Android documentation is pretty good at this point, that site has a lot of good information on it for those getting in to Android development Feb 21 18:31:19 completenewbee: Thanks, that some really great advice. My first app on Android so just trying to make sure I know the basics well :) Feb 21 18:32:14 zinx: Thanks thats a great point, I've been looking at it a lot recently and its already been a big help :) Feb 21 18:32:59 apple741: ya, i tend to mention it because a lot of platform docs are not very good at all. Google did a really good job w/ the documentation :) Feb 21 18:34:07 Hi.. I am Kartik from India. I want to start contributing to Android community as a developer. Can I get some initial guidance here? Feb 21 18:34:14 canadiancow, I'm trying and get a "invalid credentials" error. the same token works fine using HttpUrlConnection on the phone. Is there something else than the token? maybe a cookie? Feb 21 18:35:28 kay_jpr: see http://source.android.com/ specifically "Get Involved" Feb 21 18:36:14 Yes I read that. Source code is being downloaded right now. Feb 21 18:36:37 kay_jpr: do you have a question? Feb 21 18:36:53 svens, not sure. i've only ever used it on the device that requested it Feb 21 18:37:16 After downloading, I would like to start working on something, maybe a beginner bug? Feb 21 18:38:08 kay_jpr: check out http://code.google.com/p/android/issues/list find something you can fix and fix it :) Feb 21 18:39:58 Thats helpful. Thanks :) Feb 21 18:41:14 kay_jpr, are you familiar with git and gerrit? Feb 21 18:42:10 not pretty much Feb 21 18:44:13 canadiancow, never mind, I fucked up something on the server side. it works, thanks. Feb 21 18:44:20 heh Feb 21 18:47:51 hi Feb 21 18:48:45 which does it happen if a set a parser with property "FEATURE_PROCESS:_NAMESPACES" to false Feb 21 18:49:30 and when call to getName method over an element e.g Feb 21 18:50:03 which string does it return: dc:creator or only creator? Feb 21 18:50:12 i'd recommend trying it out ;) Feb 21 18:50:23 jajaja Feb 21 18:50:51 don 't you know? Feb 21 18:50:55 ok ok Feb 21 18:51:26 I will tell you when I finish but I am not sure you will remember the issue jejejeje Feb 21 18:51:47 no, i dont know Feb 21 18:52:07 but it seems like something fairly easy to test :P Feb 21 19:02:58 but you know what? I do not say its a complex task but annoying, because even for a simple test case you have to think for a little structure to figure out the doubt but in this moment you are in another programming bubble, so if some caritative soul wants to help you it is always very welcome :)) Anyway, I do think it is very useful to learn how to resolve quickly this kind of issues by yourself. Feb 21 19:05:19 * StingRay_ dont like ubuntu phone Feb 21 19:05:52 i'm flashing it now. i don't expect to like it but i'm interested in seeing what they're doing Feb 21 19:06:01 yeah same Feb 21 19:06:08 I'm flashing back though Feb 21 19:06:12 the other way to you Feb 21 19:06:14 :) Feb 21 19:06:24 * StingRay_ waves as we pass Feb 21 19:06:28 haha Feb 21 19:08:52 kevinb: I didnt see anything that you cant do in android already Feb 21 19:09:04 things look nicer Feb 21 19:09:07 but thats just art Feb 21 19:09:53 i've felt that the user experience on ubuntu desktop has been kind of weak, things are poorly organized and inconsistent (even compared to android 2.x, and that's saying something) Feb 21 19:10:56 thats exactly the phone Feb 21 19:11:00 missing logic Feb 21 19:11:03 but looking pretty Feb 21 19:11:05 :) Feb 21 19:11:44 I've wrote Camera Activity which works fine, till until I don't switch application…once I press switch-between-app button, it throws error…if I press home button than again it won't bring up the camera open again…whats going wrong? (ref link: http://bpaste.net/show/2WnmPlhxt2nR7ldttHQm/) Feb 21 19:12:15 This activity is invoked by other activity using an intent. (providing details, if any required) Feb 21 19:12:39 abhinavmehta your not handling any config changes Feb 21 19:12:54 StingRay_: too bad. i develop personalization apps though so I always enjoy checking out new takes on the home and lockscreen to see if they inspire me. Feb 21 19:12:55 config changes? what are they? Feb 21 19:13:13 screen rotate, pause, stop etc Feb 21 19:13:21 config/lifecycle stuff Feb 21 19:13:25 ooh..yes Feb 21 19:13:50 see orientation change doesn't take place..because I fixed orientation in manifest Feb 21 19:14:19 and yes I know pause/stop…but not sure how should I manage this. Feb 21 19:16:49 . Feb 21 19:17:21 If onSaveInstanceState is called, does that mean onCreate has to be called before onResume? Feb 21 19:23:21 whenever i click the thing that should open the app list the emulator goes black and then restarts Feb 21 19:25:04 What do negative values coming off of the mic mean? Feb 21 19:25:18 TextView/Spannable question -- In a TextView, I want to set the color of a particular word to be green. Looks like this is possible by using Spannables, but I'm not sure what the best way to specificy where I want the blue color span to start and end. Feb 21 19:26:37 I see a bunch of examples online just hardcoding the start/end index.. I could like do a search for the word I want to highlight, but I don't want to accidentally highlight substrings of other words Feb 21 19:28:09 if you control the input, another method is to use Html.fromHtml and foo bar Feb 21 19:28:49 yeah I'm considering that Feb 21 19:29:14 If I go that route, is there any way to pull the color from a @colors resource? Feb 21 19:29:21 or do I have to actually hardcode the hex there Feb 21 19:29:34 you're better of doing the Spannable yourself Feb 21 19:30:54 ideally i want to use a spannable. It seems like the most robust way, but I can't think of a clean way to handle when the string is translated in multiple languages Feb 21 19:32:28 Hmm maybe I could wrap the substring I want to highlight in some kind of custom tag that gets parsed out by code Feb 21 19:33:16 anyone know where I can get drivers for Motorola Droid Razr HD... the ADB drivers? I set USB debug to enabled, and can't seem to get the red "X" to go away as far as ADB drivers when I connected on Win7. Feb 21 19:36:24 ah. think I found it. but I thought that earlier, too Feb 21 19:36:43 matt9: I had the same problem, mainly due to localisation Feb 21 19:37:28 Decided against substring highlighting Feb 21 19:42:04 unfortunately has stopped Feb 21 19:42:11 pierpark: yes Feb 21 19:42:17 oh too late Feb 21 19:43:42 alcapwn ah Feb 21 19:43:51 yeah i guess the highlighting thing isnt super critical Feb 21 19:43:55 might be more effort than its worth Feb 21 19:46:21 i think its fragment that makes it stop Feb 21 19:46:43 MapFragment Feb 21 19:48:40 Ahh I figured it out, the samples from the mic are instantaneous amplitude Feb 21 19:50:18 Is there some way to have a callback connected to the thread finished "event" in a Runnable? How can I tell when my thread is done? Feb 21 19:50:40 you could use like a loader or asynctask Feb 21 19:50:47 they both have finished callbacks Feb 21 19:50:58 I want to change a UI element when mic recording has finished Feb 21 19:51:09 Which tool is more appropriate? Feb 21 19:51:34 if the recording takes a given time, use AsyncTask Feb 21 19:52:24 Ge0rG: The recording stops when the average volume from the mic (in the last 100ms) drops below 275. Feb 21 19:52:35 today is a good day to go and hide under a rock Feb 21 19:53:02 my fix to drop password columns from the db was just deployed Feb 21 19:55:38 wat Feb 21 19:55:46 what app is this? Feb 21 19:57:13 deadmund: for notifications from the runnable use a handler see: http://pastebin.com/FSag6Mcc Feb 21 19:57:16 birbeck: eek. usually something to keep quiet... Feb 21 19:58:23 completenewbee: I see. Thanks! Feb 21 19:59:10 Suggestion: Don't download the USB drivers from Motorola unless you've already saved and shut-down your applications... because it WILL, without warning, force-close your entire system and reboot. Feb 21 20:01:21 Better yet... don't download anything from Motorola's website. :) And with that, hello everyone. It's quiet here this afternoon. Feb 21 20:07:11 hello, is it possible to have icons and text below with Serlock's SplitActionItems ? Feb 21 20:07:27 what i need to do is a action bar on botton of the screen in most of activities Feb 21 20:07:42 and support api 10 as well... Feb 21 20:14:13 Look at the examples. Feb 21 20:14:38 There's over a dozen examples that show all kinds of capabilities with it. They are very good for reference. Feb 21 20:15:10 Otherwise, when JakeWharton is around, he might be able to help you. But I'd advise not asking until you've tried and looked at the examples. Feb 21 20:15:11 anyone ever push mp3s onto their device through DDMS? Feb 21 20:15:16 * JakeWharton runs! Feb 21 20:15:29 look at samples++ Feb 21 20:15:36 * pierpark laughs hysterically. Feb 21 20:17:13 r0ver: Yeah, that's what I thought... that should be covered in the samples included with ActionBarSherlock and it's a very smooth and friendly process to implement. Forget asking JakeWharton... he might have an aneurysm. :p Feb 21 20:17:37 the API is also exactly the same as the native action bar. If you can figure out how to do it with the normal action bar, you can do it with ABS Feb 21 20:17:48 JakeWharton: Here's one for you... what IRC client and OS are you running? Feb 21 20:17:57 mac, limechat, at present Feb 21 20:18:05 Yeah, I love it.. Feb 21 20:18:18 pierpark: JakeWharton: thanks i've already watched the examples... also googling... what i need todo is very similar as SplitActionItems but adding text below icons... i've no idea how to look for it... ? Feb 21 20:18:30 You can't Feb 21 20:18:31 r0ver: custom action item view is the only way to have it below Feb 21 20:18:43 And does that scream at you when your name is mentioned? I'm trying to find a better client, but I'm on Ubuntu and or Win7 ... thanks for the info, nonetheless. Feb 21 20:18:45 ^ Feb 21 20:19:02 pierpark: I have it set up for "JakeWharton", "Jake Wharton", and even "jake" Feb 21 20:19:11 also matches inside URLs Feb 21 20:19:35 Nice. That'd definitely be a feature worth switching clients for. I need to go research now. Thanks! Feb 21 20:20:07 ug brb Feb 21 20:23:43 * OneChance aka pierpark Feb 21 20:23:52 Back. Feb 21 20:24:11 blah. Feb 21 20:24:43 is it possible to trigger an automatic code completion of a method override just by typing in eclipse? (rather than going to source -> implement/override methods/etc) ? Feb 21 20:25:22 I haven't seen that, but it'd be convenient. Feb 21 20:29:15 The ARM emulator image doesn't have the "ip" command installed, how can I add a custom route for testing? Feb 21 20:29:24 x86 image does have it Feb 21 20:29:35 route and ifconfig both seem broken Feb 21 20:30:15 mm... just googling "custom action item view", do you know any good tutorial to recommend ? Feb 21 20:30:25 tnzr: IntelliJ does that and I'm told Eclipse *should* Feb 21 20:31:13 * ChestCardChance will stop changing names now. one of those days... (pierpark) Feb 21 20:31:49 JakeWharton: hmm, maybe I'll just start using IntelliJ and not tell anyone :) Feb 21 20:32:02 I got the ultimate edition during the doomsday sale, it was only $50 Feb 21 20:32:14 excellent. i did the same. Feb 21 20:32:20 r0ver: "custom action item view" is just a layout with a few buttons in it Feb 21 20:32:20 I think you and romainguy were right, it really is superior to eclipse in pretty much every way Feb 21 20:32:24 As in, make your own layout Feb 21 20:32:43 tnzr: same. I just haven't used it yet. Installed though. Let me know what you think. Feb 21 20:32:59 SimonVT: aha... great thanks Feb 21 20:33:00 tnzr: and with that, I see what you already wrote ^^ Feb 21 20:33:25 ChestCardChance: read this: http://www.jetbrains.com/idea/webhelp/intellij-idea-vs-eclipse-terminology.html Feb 21 20:33:37 ChestCardChance: that will to make your transition much smoother Feb 21 20:34:50 Is it possible to estimate the number of lines a text will take before the textview is rendered? Feb 21 20:37:23 tnzr: you rock. thanks for that. Feb 21 20:38:00 tnzr: that's exactly why it's just "installed". :) Feb 21 20:38:47 ChestCardChance: no prob :) Feb 21 20:45:30 Hi, i've implemented a 3-level ExpandableListView, so the getChildView() is customized to return another ExpandableListView. I further needed to override the onMeasure() to recalculate the height correct. It works good so far, but now i recognized, that the statechange (expanding/collapsing) of the inner ExpListViews doesn't work everytime. I can't imagine why and can't see a pattern when it will occure. Anybody ideas? Hope its Feb 21 20:50:25 might anyone have any insight on a SecurityException when choosing a Picasa image from the gallery? (ICS 4.2.x)? Feb 21 21:02:11 hi, Feb 21 21:02:19 jules_ca: pastebin your logcat Feb 21 21:02:37 jules_ca: also, 4.2.x is not ICS :) Feb 21 21:04:07 sorry @evancharlton, I meant JellyBean. Let me get details of the exception, brb Feb 21 21:05:39 SecurityException stacktrace: http://pastebin.com/qh67pUL3 Feb 21 21:06:17 Strangely, only occurs when my Activity is "singleTask". But if I remove this, everything works normally... Feb 21 21:06:36 I'm trying to upload to php from android, and finding I don't understand http nearly as good as I wish I did. Feb 21 21:07:11 Which is better: 1) http://blog.sptechnolab.com/2011/03/09/android/android-upload-image-to-server/ Feb 21 21:07:19 or 2) http://getablogger.blogspot.in/2008/01/android-how-to-post-file-to-php-server.html Feb 21 21:07:41 i.e. something that encodes the image into a stream and base64 decodes it server side or something that uploads it as a file you can handle with request[file]? Feb 21 21:07:52 I don't know, which is better for you? Feb 21 21:08:21 I imagine elegance/simplicity is biggest concern, but performance would be nice too... Feb 21 21:09:07 I think what I'd like to be able to do is figure out how to add other post parameters along with if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) Feb 21 21:09:20 < njw> I imagine elegance/simplicity is biggest concern Feb 21 21:09:23 then what are you doing using php? Feb 21 21:09:50 well, ok, flame over. I'm not sure how to do multi-part post personally. You might want to read the HTTP docs. Feb 21 21:10:51 njw you ca use java NameValuePairs to pass the post params Feb 21 21:10:53 @lov - I concede your point, I'm using an inherited codebase and I'm not absolutely sure switching to something else is a urgent priority (although i'm open to it) Feb 21 21:11:09 @brx_ - yes, that's what I did before, but I used httpPost Feb 21 21:11:54 In this example I'm just using HttpURLConnection conn = (HttpURLConnection)connectURL.openConnection(); Feb 21 21:14:31 timroes: Dude, use spaces instead of tabs ;/ Feb 21 21:14:32 yeah, honestly, HttpURLConnection is the way forward, as the Android dev team maintains that. Feb 21 21:14:43 SimonVT: ofc i wont :D Feb 21 21:14:45 SimonVT: no way, tab supremicy. Feb 21 21:14:47 supremecy Feb 21 21:14:49 super duper Feb 21 21:14:51 whatever Feb 21 21:14:55 ofc Feb 21 21:14:57 srsly ;d Feb 21 21:15:02 because with tabs everyone can set it do what he wants Feb 21 21:15:07 jules_ca, that is correct Feb 21 21:15:09 njw, from what i can see the first link you posted should be sufficient from your needs, ive done stuff similar to that myself encoding an image and posting to php etc Feb 21 21:15:12 singletask works a little differently Feb 21 21:16:24 canadiancow: why is that? Feb 21 21:16:32 our team uses spaces. I quietly seethe and bide my time. Feb 21 21:16:59 All hail the spacebar Feb 21 21:17:03 @brx_ Is there any downside? the two approaches do not seem similar. Feb 21 21:17:09 SimonVT: one reason for spaces? Feb 21 21:17:18 i gather that the pythonheads have largely succeeded in pushing everything towards "spaces only" Feb 21 21:17:21 and if you say you can better align letter under letter, you are realy broken :D Feb 21 21:17:29 evancharlton: the pastebin you asked for http://pastebin.com/qh67pUL3 Feb 21 21:17:38 jules_ca, singletask uses a different activity lifecycle, and the automatic granting of permissions works with the normal activity lifecycle Feb 21 21:17:42 i.e. encoding into a stream versus whatever you call the "normal" version with request['file'] Feb 21 21:17:46 Your code wont look horrible on github Feb 21 21:17:48 your best option is to not use singletask for this Feb 21 21:17:53 timroes: technically tab width is standardized! but approximately nobody uses the standard width Feb 21 21:18:23 yeah so inserting a real tab gives every user the oportunity to use whatever she wants Feb 21 21:18:25 njw, i dunno which is the best Feb 21 21:18:32 in fact I use different tab width in vim than in my IDE Feb 21 21:18:41 canadiancow: thanks. is there any documentation or on-line discussion concerning these differences? My searches have been fruitless :( Feb 21 21:18:50 timroes: except people persist in thinking that they want to line up columns in code Feb 21 21:18:55 because in vim i often have vertical splits in ide only tabs Feb 21 21:18:55 which is teh s uck Feb 21 21:19:05 jules_ca, i'm not sure. Feb 21 21:19:21 ctate: that is the only reason ppl tell me, why i thinke specially in python spaces makes no sense :D Feb 21 21:19:35 since (at least I) normally don't split up my command over several rows :D Feb 21 21:19:58 and still i think, if you try to align letter under letter in source code, you are a bit broken :D Feb 21 21:20:07 suppose I thought i wanted to use the example I already have done with request['file'] type method, how would i add the parameter with name/value code? I (e.g. POST['id']=234234) - or should i just go with the example with the stream? is it "decent code" compressed seems positive. I'd really like to resize easily on Anroid, but that seems to be a later step... Feb 21 21:20:12 canadiancow: and to your knowledge, there's no way around this apparent restriction? I like my app singleTask! Feb 21 21:20:27 my knowledge is fairly limited here :P Feb 21 21:20:29 so when i get a new project from some used files i normally run over it in the beginning and change everything to tabs :D Feb 21 21:20:32 why do you want it singleTask? Feb 21 21:20:58 canadiancow: from a usability perspective, it just makes more sense Feb 21 21:21:07 what is the app? Feb 21 21:21:07 hmm. singleTask is actually not usually what you really want. Feb 21 21:21:16 also, what ctate said Feb 21 21:21:28 i dont know if i've ever seen someone use singleTask for a "good" reason :P Feb 21 21:21:32 timroes: literally all of the serious python programmers i know insist that spaces-only is the only sane thing for python Feb 21 21:21:51 why is my service failing to get stopped? I set it up by calling startService() then bindService(). But when I do unbindService() and stopService(), it just keeps running. Feb 21 21:22:00 well, the web browser is singleTask... Feb 21 21:22:01 ctate: i guess because the official coding style guides tells to use spaces instead of tabs Feb 21 21:22:07 ambro718: what do you mean by "keeps running"? Feb 21 21:22:12 but same with every guideline, if it doesn't make sense i won't use it :D Feb 21 21:22:22 ctate: onDestory is not called on the service Feb 21 21:22:28 onDestroy Feb 21 21:22:43 I start the service in application context. Feb 21 21:22:44 btw does anyone know if there are some xml schemas or dtd for android manifest (and/or layout though I consider it to be more complicated there) in the sources or somewhere else? searched for .dtd and .xsd files but nothing seemed promising Feb 21 21:22:58 and you're calling stopSelf() ? Feb 21 21:23:04 jules_ca: looks like you need com.google.android.gallery3d.permission.GALLERY_PROVIDER permission (though that's a strange permission nmae) Feb 21 21:23:22 ctate: no, I just call unbindService() and stopService(), should I call something else? Feb 21 21:24:07 ambro718: see: http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle If you close out of your app using finish does the service stop? Feb 21 21:24:25 ambro718: I suspect it will stop once the activity is destroyed as expected Feb 21 21:24:29 that can work, sure. you're sure you're calling stopService() with an exactly-matching intent to the one you used to startService() ? What does stopService() return? Feb 21 21:25:14 also you can look at the output of 'adb shell dumpsys activity services' to see exactly what the Activity Manager considers to be a 'running' service, and why it's running. Feb 21 21:25:48 @brx_ do you want me to let you know how it goes with the stream bit? the iOS phone code used the other way, not sure if that means anything though. Feb 21 21:26:09 jules_ca, that's probably a good example of one that really needs it :P Feb 21 21:26:22 ok then Feb 21 21:26:43 njw, ive never done it that way i cant really help you sowwy :< Feb 21 21:28:11 Hmmh. Feb 21 21:28:20 the bottom one seems more elegant here, any thoughts? http://stackoverflow.com/questions/4477629/how-to-upload-the-image-into-server Feb 21 21:29:09 Is ByteArrayBody ok to use? Feb 21 21:29:38 is there any instance where turning the screen off would not throw an Intent.ACTION_SCREEN_OFF? Feb 21 21:29:44 Anybody an idea why my inner ExpandableListViews inside the outer ExpandableListView are sometimes not expanding/collapsing? Feb 21 21:30:17 Did you put an ExpandableListView in an ExpandableListView? Yo dawg Feb 21 21:30:25 afternoon Feb 21 21:30:56 yes, have a screenshot, would you take a look? Feb 21 21:31:19 right now i'm trying to a canvas and displaying it on the screen, i use myCanvas.drawText(text,x,y,paint) and it works, but when i do myCanvas.drawBitmap(bmp,src,dst,paint) it does not display Feb 21 21:31:27 anyone have any ideas why this might be? Feb 21 21:31:37 keeping in mind that the text shows up, so it's not a matter of the alpha values or something Feb 21 21:32:58 ctate, completenewbee: I'm sure I'm calling stopService right, here's the services output, http://ideone.com/iNsMTW Feb 21 21:34:15 seems like some internal android network thing is using it? Feb 21 21:34:58 any ideas? Feb 21 21:35:31 My 3-Level-ExpandableListView: http://oi46.tinypic.com/5dkwn6.jpg When touching on Level2: 2.1 it doens't expand for example Feb 21 21:38:34 sorry, canadiancow and state, my web-based irc client crapped out. We were talking about my problem with single-task... Feb 21 21:38:35 right now i'm trying to a canvas and displaying it on the screen, i use myCanvas.drawText(text,x,y,paint) and it works, but when i do myCanvas.drawBitmap(bmp,src,dst,paint) it does not display, why? Feb 21 21:38:52 trying to draw on a* Feb 21 21:39:28 ctate: sorry, my web-based client failed. we were talking about singleTask... Feb 21 21:44:32 ambro718: as i read it, this is telling you that the service is not started, but it *is* currently bound Feb 21 21:44:54 ctate: but I didn't bind it, how do I get it to stop? Feb 21 21:45:08 err, *something* bound it Feb 21 21:45:22 ambro718, you can request to kill by pid Feb 21 21:45:30 it's a VpnService, what binds it is beyond my control Feb 21 21:45:48 kaneda^: I can't do that since it would kill my application Feb 21 21:45:54 ambro718: note this line: Feb 21 21:45:57 * ctate | * Client AppBindRecord{b650d700 ProcessRecord{b60aa970 1200:system/1000}} Feb 21 21:46:02 line 22 Feb 21 21:46:10 that is telling you which app has a binding to your service Feb 21 21:46:16 installing ubuntu now :) Feb 21 21:46:17 in this case, the OS itself has bound to it Feb 21 21:46:31 presumably because you've told it to use your vpn service or whatever Feb 21 21:47:49 I did whatever the VpnService docs tell me to do (VpnService.prepare(), wait for activity result, VpnService.Builder.establish()). Feb 21 21:48:28 Hey, I just updated my sdk tools to 21.1 and now eclipse is telling me that I need to have ADT version 21.1.0 or above, but checking for updates says that there are no updates. Can I manually update ADT? Feb 21 21:48:43 oh wait seems like I just have to close the tun file descriptor to get it to stop Feb 21 21:49:10 grrrrrr, i'm so confused, the overlay appears for the FIRST and LAST frame of the application, e.g. when i first start the app i see my green overlay in my bitmap, and on the LAST frame as i exit, but nothing in between, any ideas? Feb 21 21:49:35 using the same Paint i can see my drawText :| Feb 21 21:50:06 if i draw the bitmap second it masks the text as well, no clue why Feb 21 21:55:19 * kaneda^ grabs ctate and shakes Feb 21 21:55:26 ahhhhhhhhhhhhhhhhhhhhwhyyyyyyyyyyyyyyyyyyyy Feb 21 21:56:35 canadiancow, where art thou? Feb 21 21:59:36 this works perfectly in the example as well Feb 21 21:59:39 so...what did i do.... Feb 21 22:02:52 unfortunately google maps api demos has stopped Feb 21 22:03:05 * jps_ca wonders "if I send Dianne Hackborn a fruit basket, will she expedite the Android bug fix I need?" Feb 21 22:04:40 she might expedite a restraining order Feb 21 22:07:27 I downloaded the SDK for Linux, but it only contains Android-17, the latest APIs. Feb 21 22:07:40 Where can I get Android-8 and Android-15? Feb 21 22:08:19 Anyone have a good resource explaining Intent transitions and animation? Feb 21 22:08:20 android sdk manager supplied with the bundle Feb 21 22:09:27 birbeck:Personally, I couldn't find any SDK Manager in the Linux bundle. Feb 21 22:09:42 diki: android update sdk Feb 21 22:10:22 ^ from terminal... in the sdk-root/tools directory if you havent added it to your $PATH Feb 21 22:11:00 ooooo Feb 21 22:11:04 Chrome Pixel looks nice Feb 21 22:11:28 2560x1700@239ppi snap Feb 21 22:11:33 nice one Google! Feb 21 22:12:02 birbeck:Gotta fetch the JDK/JRE first Feb 21 22:13:19 could it be my blending mode? Feb 21 22:13:23 its a shame i cant develop android apps on Chrome Feb 21 22:13:29 PorterDuff.mode.SRC? Feb 21 22:13:50 Napalm: i would totally rock a chromebook as a dev computer if i could Feb 21 22:14:06 Napalm: but the dell xps13 w/ ubuntu is nice for that Feb 21 22:14:21 hey birbeck.. long time.. seen the new google pixel specs? Feb 21 22:15:29 not yet. only the rumors Feb 21 22:16:01 birbeck: links coming your way Feb 21 22:16:46 http://chrome.blogspot.co.uk/2013/02/the-chromebook-pixel-for-whats-next.html Feb 21 22:17:02 https://play.google.com/store/devices/details?id=chromebook_pixel_wifi Feb 21 22:17:40 ok it's not my blending mode Feb 21 22:17:43 :( Feb 21 22:18:33 * Napalm watches everyone drool over the Google Pixel tech specs Feb 21 22:19:03 Napalm: thats a damn expensive chromebook Feb 21 22:19:14 indeed, but you get what you pay for Feb 21 22:19:23 an i5? Feb 21 22:19:33 The body of the Pixel is made from an anodized aluminum alloy to create a smooth and durable surface; vents are hidden, screws are invisible and the stereo speakers are seamlessly tucked away beneath the backlit keyboard. The touchpad is made from etched glass, analyzed and honed using a laser microscope to ensure precise navigation. The Pixel also has powerful, full-range speakers for Feb 21 22:19:33 crisp sound, a 720p webcam for clear video, and a total of three microphones designed to cancel out surrounding noise. Feb 21 22:19:42 bit longer than i thought, my bad Feb 21 22:19:53 granted thats all you need for chrome, but man thats a steep price for just the monitor Feb 21 22:19:58 right now i'm trying to a canvas and displaying it on the screen, i use myCanvas.drawText(text,x,y,paint) and it works, but when i do myCanvas.drawBitmap(bmp,src,dst,paint) it does not display, why? Feb 21 22:20:00 so really nobody an idea to my ExpandableListView problem? :/ Feb 21 22:20:49 it displays on the FIRST and LAST frames only, abuh? Feb 21 22:20:52 the text appears on every frame Feb 21 22:21:27 Superior: i remember getting a head-ache last time i did one of those, i expect most other people feel the same Feb 21 22:22:08 kaneda^: it might be to do with hardware acceleration, try forcing it off Feb 21 22:22:29 Napalm, are you referring to this bug: code.google.com/p/android/issues/detail?id=22361 ? Feb 21 22:22:57 perhaps Feb 21 22:22:59 i forget Feb 21 22:23:10 lemme try it in any case, one sec Feb 21 22:23:24 kaneda^, wat Feb 21 22:23:43 canadiancow, i'm pulling out my hair trying to figure something out Feb 21 22:23:56 i feel this too, but i need to got it work and can't find tipps for a solution, or better saying I don't know what kind of problem it actually is Feb 21 22:24:03 and that requires me, personally, because... :P Feb 21 22:24:16 canadiancow, because moooooooooooooooo Feb 21 22:25:32 or can anybody short explain, what role a datasetobserver has in relation with an expandableListView? Feb 21 22:25:34 Napalm, the hardware accel tag is only available in 3.0+ Feb 21 22:25:41 Napalm, this is meant to work with 2.3.3+, what should i do? Feb 21 22:26:05 oh, it's not even added in 2.3.3, so it cant be this Feb 21 22:26:05 just test to see if turning it off makes it work Feb 21 22:26:14 Napalm, cant turn off what cant exist for the app Feb 21 22:26:28 are you running your app on an OS > 2.3.3 Feb 21 22:26:33 ? Feb 21 22:26:50 kaneda^: ^ Feb 21 22:26:51 yes, but i cant compile w/ the hardware accel tag because it's min sdk 2.3.3 Feb 21 22:26:59 yes you can Feb 21 22:27:06 set your target sdk Feb 21 22:27:16 target sdk is 4+ Feb 21 22:27:26 well you can add it then Feb 21 22:27:43 but min sdk is 2.3.3, and it gives me: Resource error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android' Feb 21 22:28:09 then at least you can test to see if thats the cause.. if it is.. then an alternative method to acheieve whatever it is you are doing can be found... otherwise now you know your problem and you can do conditional code to just turn it off for the view or something Feb 21 22:28:27 let me try through code Feb 21 22:28:43 kaneda^: are you in Eclipse? if so, right click your project and verify what Android SDK you are compiling against Feb 21 22:28:46 kaneda^, you need your build target to be >= 3.0 Feb 21 22:28:56 canadiancow, that's what i thought Feb 21 22:29:01 canadiancow: is is set to 4 Feb 21 22:29:20 *his is Feb 21 22:29:27 hows it going canadiancow? Feb 21 22:29:35 no, not targetSdkVersion Feb 21 22:29:42 and it is going well Feb 21 22:29:47 canadiancow, yah, i need to change the build settings for this :| Feb 21 22:29:50 i'll do it, JUST AS A TEST Feb 21 22:30:32 i dont expect it's the acceleration though Feb 21 22:30:36 i think ive seen enough sqlite to give me nightmares for life Feb 21 22:30:46 ugh, my brain now hurts Feb 21 22:30:48 :( Feb 21 22:31:14 Napalm, it's not the HW accel :( Feb 21 22:31:37 then your probably doing something wrong? forgetting to invalidate perhaps? Feb 21 22:31:57 Napalm, i'm following http://imrannazar.com/Augmented-Reality-with-the-Android-NDK%3a-Part-2 Feb 21 22:32:09 their example works and i'm doing it very close to the same Feb 21 22:32:25 why do I get "unfortunately app has stopped" ? Feb 21 22:32:35 "very close" is not "the same" Feb 21 22:32:35 GOMADWarrior, check logcat Feb 21 22:32:50 Napalm, it's the SAME in the java side, which is what's important here Feb 21 22:33:00 its empty Feb 21 22:33:12 GOMADWarrior, logcat is never empty unless it's not communicating with the device Feb 21 22:33:23 GOMADWarrior, ensure USB debugging is enabled on the device and your application has debug true Feb 21 22:33:40 specifically android:debuggable="true" in your application tag of your manifest fiel Feb 21 22:35:34 logcat still empty Feb 21 22:35:44 does anyone know of a callback that occurs after the screen goes off and before onStop() is called? Feb 21 22:35:49 err Feb 21 22:35:59 that's not exactly what I should be asking Feb 21 22:36:22 GOMADWarrior: its a bug.. open a cmd window and enter each of these in turn: adb kill-server then: adb devices Feb 21 22:36:29 that should rekick things back in Feb 21 22:36:38 and possibly sudo ./adb start-server after ;p Feb 21 22:36:46 often adb needs to be started w/ higher privs Feb 21 22:36:55 basically I'm trying to catch the Intent.ACTION_SCREEN_OFF action in a receiver, but it won't work if my onStop() unregisters the receiver... if I don't unregister in onStop(), then I end up with new receivers every time I turn the screen on and the receiver behaviors happen more and more times (as your turn it off and on) Feb 21 22:36:55 kaneda^: adb devices starts the server Feb 21 22:37:01 but not as a privileged user Feb 21 22:37:08 im not talking linux Feb 21 22:37:11 well Nix Feb 21 22:37:15 does anyone know a workaround for this? Feb 21 22:37:32 im windows Feb 21 22:37:37 adb isnt command Feb 21 22:37:40 Napalm, here's a sample of my code http://pastie.org/private/m8ueziyzlhnshrqnzbccg Feb 21 22:37:58 GOMADWarrior: you didnt setup your environment vars.. did you.. tut tut Feb 21 22:37:58 GOMADWarrior, in your android-sdks/platform-tools dir you'll find adb.exe Feb 21 22:38:52 I compiled and ran the demo application from eclipse, but how do I stop the run mode from DDMS Perspective. Feb 21 22:39:01 yes Feb 21 22:39:44 tnzr, use a manifest receiver Feb 21 22:39:49 Napalm, what's new Feb 21 22:39:54 I ran it on a real android device. nothing happens if I exit the application, eclipse stays online with device Feb 21 22:39:58 pfn: on it! thanks Feb 21 22:40:28 so I do adb.exe kill-server? Feb 21 22:40:40 pfn: hey buddy, hows it going? ive been working with sqlite for the past 4 hours Feb 21 22:41:00 Napalm, any ideas? Feb 21 22:41:27 its killed my inner belief in sql Feb 21 22:41:49 kaneda^: i cant really thing about much right now, brain is fried to a crisp Feb 21 22:41:58 i feel the same way :( Feb 21 22:42:26 ? Feb 21 22:43:33 right, im going to head off and get some late night food, then back to coding with a XmlPullParser Feb 21 22:43:41 laters Feb 21 22:44:53 How can I build a emulator from my device: motorola razr hd Feb 21 22:44:53 hi, I was wondering if adding a child to a view invalidates the other child views of the same parent Feb 21 22:45:52 crack3r: yes, and it causes a layout aswell Feb 21 22:46:46 Napalm: oh I see. Can I prevent a child from being invalidated by setting a flag or something? Feb 21 22:49:54 pfn: what if you are using a custom BroadcastReceiver, can you still push it in the manifest? Feb 21 22:50:56 pfn: cancel that I think I found an example Feb 21 22:51:54 tnzr, yeah, it's quite trivial, you just implement BroadcastReceiver and register it in manifest, and done Feb 21 22:52:29 pfn: can it go in an activity or does it have to go in the application block? or does that not matter? Feb 21 22:52:30 Napalm|afk, working with sqlite isn't so bad; but the apis in android are kind of unbearable vis a vis what you get outside of android Feb 21 22:52:37 tnzr, it goes in a top level public class Feb 21 22:53:32 pfn: sorry, I meant that I have a public extended BroadcastReceiver class, I'm just wondering where it should go in the manifest.. all examples point to within but I was wondering if I could stick it in an Feb 21 22:54:30 I get lots of "unexpected value" Feb 21 22:54:36 why would it go in Feb 21 22:54:59 there's my answer. :) Feb 21 22:55:37 sorry, I've never used one and am just getting the idea of how they work...the one I'm implementing has already been defined and currently is being registered/unregistered in an activity Feb 21 22:56:05 tnzr: http://developer.android.com/guide/topics/manifest/receiver-element.html Feb 21 22:57:07 ctate: thanks, I must have missed the "contained in:" section Feb 21 23:00:14 can anbody tell me how I can set a default value for a ListPreference? I've added a ListPreference in xml, set a String-Array (with times likes "15 minutes", "30 minutes", ...) as entries and an int-array as entryValues containing the number of minutes. How how can I set as default that e.g. "30 minutes" is automatically selected if the user hasn't set a value yet? Feb 21 23:01:50 so, secure adb huh, how on earth do you make the handshake start? foolishly updated my nexus 7, have the latest SDK, have restarted the machine and adb server, no dice Feb 21 23:02:08 robb_www: unplug/replug the USB cable? Feb 21 23:02:16 evan, tried, didnt help Feb 21 23:02:33 it says usb debugging is connected, it lies Feb 21 23:02:54 robb_www: "adb version" says what? Feb 21 23:03:02 1.0.29 Feb 21 23:03:26 robb_www: latest is .31, no? Feb 21 23:03:34 aha, it hasnt actually updated it, thats nice Feb 21 23:03:39 :) Feb 21 23:03:45 good call on checking that ;) Feb 21 23:03:50 * robb_www trusted the SDK manager Feb 21 23:04:18 robb_www: I got bit by it a little while ago, too :) Feb 21 23:06:09 it will be platform-tools which needs reinstalling right? Feb 21 23:06:26 robb_www: yeah Feb 21 23:06:45 ahh, SDK manager doesnt kill the server Feb 21 23:07:38 interesting, now i have a log in SDK manager saying it failed to stop the server :/ even though it obviously failed miserably at it before Feb 21 23:08:01 and i once again have the old adb installed :/ Feb 21 23:08:16 nevermind, got it sorted now Feb 21 23:09:02 Nice, compiled the GNU make binary Feb 21 23:09:09 now for the rest of the tools Feb 21 23:11:25 Any kind soul here have an HTC phone and wouldn't mind testing out a functionality in one of my apps for me? Feb 21 23:11:32 Hit me up here or PM, i'd appreciate it Feb 21 23:16:58 flodin: you there ? Feb 21 23:18:33 ok, i figured it out Feb 21 23:18:44 foo << 24 | foo << 16 | foo << 8 | foo Feb 21 23:18:48 android, why do you punish me? Feb 21 23:20:57 Why does my custom search suggestion display empty results? http://stackoverflow.com/questions/15014143/android-customsearchadapter-displays-empty-results Feb 21 23:21:48 oh damn.... Feb 21 23:21:58 Perl for Android...hmm Feb 21 23:31:13 how can I add a json.toString to a basicNameValuePair? Feb 21 23:31:59 is it possible to get a reference to a BroadcastReceiver defined in the manifest, or, for that receiver to get a reference to a particular Activity at runtime? Feb 21 23:32:24 that first part should say "for an Activity to get a reference to a BroadcastReceiver" Feb 21 23:52:04 Why does my custom search suggestion display empty results? http://stackoverflow.com/questions/15014143/android-customsearchadapter-displays-empty-results Feb 22 00:15:38 Hello. when creating my android app the R of R.layout.activity_main highlights if i add the library android.R then activity_main underlines with an error, what am i doing wrong? :( Feb 22 00:16:21 dont add android.R Feb 22 00:16:35 fully qualify it when needed Feb 22 00:16:50 or fully qualify your own R Feb 22 00:17:14 anyone seen an implementaiton of this: https://github.com/honcheng/PaperFold-for-iOS for andorid? Feb 22 00:21:18 Can you further explain what fully qualifying is? Feb 22 00:25:04 Danawar: android.R.layout.whatever vs R.layout.activity_main Feb 22 00:25:35 Sorry for not posting this sooner R cannot be resolved to a variable MainActivity.java /BackupTools/src/uk/ac/plymouthbackuptools line 12 Java Problem Feb 22 00:25:51 This is a completly new project just created in eclipse Feb 22 00:27:08 And the line of code causing the error is setContentView(R.layout.activity_main); Feb 22 00:43:13 Still same problem persists cant seem to fix it any one else can shead some light on the issue? Feb 22 01:00:34 is anyone familiar with how I can create a system service so that clients can access my service with "getSystemService" much like they do with ActivityManager Feb 22 01:00:38 and PackageManager Feb 22 01:03:58 you can't without building a custom ROM Feb 22 01:04:04 why do you want this? Feb 22 01:04:20 oh I am building a custom rom ctate Feb 22 01:04:28 the question still stands :) Feb 22 01:04:33 I would like me service to have full access to the framework Feb 22 01:04:47 if I run as a regular service, then I lose that ability :( Feb 22 01:04:59 I tried calling ServiceManager.addService(...) which works great Feb 22 01:05:02 now i have two questions :) Feb 22 01:05:11 and then from my client code, I can call ServiceManager.getService(...) Feb 22 01:05:33 to get the service, however the problem is that the client must also build as a system app so that it can have access to the ServiceManager in order to connect to me Feb 22 01:05:55 I would like normal apps (non-system apps) to be able to connect to my service.. much like ActivityMaanger and PackageManager can Feb 22 01:06:12 your service has to be run inside the system process, and be registered from there. look at SystemServer.java at how it sets up and registers all the system services. Feb 22 01:06:37 thanks ctate . I will take a look. yeah my service right now is running as "system" Feb 22 01:06:50 but note that normal apps won't be able to access your service anyway because ServiceManager is not public API Feb 22 01:06:50 and I am able to register it using ServiceManager.addService(...) directly Feb 22 01:07:02 when I do this, I am able to see my service from "adb shell service list" Feb 22 01:07:17 ctate: correct. I think that is the problem I am having :( Feb 22 01:07:30 what's wrong with just having them bind to your service? Feb 22 01:07:49 if I have a normal service, I am worried someone will call stopService Feb 22 01:07:53 and kill my service Feb 22 01:07:57 i said bind, not start. Feb 22 01:08:15 oh sorry, but it is still possible to call stopService Feb 22 01:08:22 nope Feb 22 01:08:31 or rather, it has no effect Feb 22 01:08:46 bind/unbind lifecycle is unrelated to start/stop lifecycle Feb 22 01:08:57 so if I run as a system service, and register the services in my AndroidManifest.xml Feb 22 01:09:00 like a normal service Feb 22 01:09:10 then regular apps can still connect to me? Feb 22 01:09:13 of course Feb 22 01:09:21 will I still have full access to the framework? Feb 22 01:09:30 of course Feb 22 01:09:50 ah, so it is the "running as system" user that is loading the framework into my process Feb 22 01:09:52 although that gets back to the whole question of what your service is *doing* that it needs to run as system. Feb 22 01:09:56 so that's why I have access to the ServiceManager Feb 22 01:10:16 no, it's because you are building as part of the platform/ROM build that gives you access to the ServiceManager Feb 22 01:10:26 anyone use opengl for transition animations between activities? anyone have a good example of using it? Feb 22 01:10:27 but that isn't available through the SDK Feb 22 01:10:49 ctate: ah I see. hmm. so what stops someone from loading it using the typical class loader approach? Feb 22 01:11:09 loading what, the ServiceManager? nothing. Feb 22 01:11:11 ctate: so can I load com.android.os.ServiceManager from a regular app? Feb 22 01:11:20 but it's not like it's actually very useful Feb 22 01:11:33 ctate: ah. I am learning a lot :) Feb 22 01:11:35 it's just a registry of known service binders Feb 22 01:11:56 ctate: the reason I need access to the framework, is because we have some custom libraries we've added Feb 22 01:12:04 some additional features that my service must use Feb 22 01:12:10 also anything that isn't in the public API is subject to arbitrary change at any time Feb 22 01:12:29 using custom libraries != needing privileged access to the whole OS Feb 22 01:12:40 lots of people use custom libraries in their apps :) Feb 22 01:12:54 oh. hmm. so what is the advantage then of running as "system" ? Feb 22 01:13:03 privileged access to the whole OS :) Feb 22 01:13:20 ctate: it was my understanding that running as "system" allows me to load the ServiceManager Feb 22 01:13:29 nope Feb 22 01:13:41 I actually read that statement from a blog entry somewhere.. so the guy must have been confused Feb 22 01:13:51 omg someone is wrong on the internet Feb 22 01:13:53 hah Feb 22 01:14:18 what functionality does your service provide? Feb 22 01:14:25 so what is actually stopping some arbitrary piece of code from stopping my service? Feb 22 01:14:57 you need to re-read the documentation on the Service lifecycle Feb 22 01:15:06 if someone has bound to your service Feb 22 01:15:13 that is not "start" / "stop" Feb 22 01:15:21 and trying to stop your service will do nothing Feb 22 01:15:31 the binding will not be affected, your service is still live to service the binding Feb 22 01:16:04 ctate: thanks for all the help Feb 22 01:16:05 http://developer.android.com/reference/android/content/Context.html#stopService(android.content.Intent) Feb 22 01:16:10 that is what got me nervous Feb 22 01:16:21 hey ctate I'm gonna assume you've never had ferrero's pocket coffee Feb 22 01:16:42 ctate: "Request that a given application service be stopped. If the service is not running, nothing happens. Otherwise it is stopped. Note that calls to startService() are not counted -- this stops the service no matter how many times it was started." Feb 22 01:16:47 wabz: i have! Feb 22 01:16:50 it is pretty good Feb 22 01:16:51 ctate: that's the quote that got me worried Feb 22 01:16:56 hehe Feb 22 01:16:58 sleepster: keep reading Feb 22 01:17:00 * ctate | Note that if a stopped service still has ServiceConnection objects bound to it with the BIND_AUTO_CREATE set, it will not be destroyed until all of these bindings are removed. See the Service documentation for more details on a service's lifecycle. Feb 22 01:17:36 ctate: ah. so if I create a ServiceConnection to myself, it will never close Feb 22 01:17:52 remember that "a ServiceConnection" here means "anyone who has called bindService" Feb 22 01:17:59 ctate: thanks. I'll try that approach Feb 22 01:18:07 so as long as anyone has bound to the service, it is still live Feb 22 01:18:24 back to my question: what functionality is this service going to provide to apps? Feb 22 01:18:36 the other issue I am tackling now is to prevent "unauthorized" users from accessing my service.. but I guess I can do that in "onbind" Feb 22 01:18:59 ctate: oh I am working on a "concept" that will provide some additional security features to Android Feb 22 01:19:04 read the documentation again. you can permission-check binding etc. Feb 22 01:19:15 ctate: my service is just the front interface to the clients that seek this additional security Feb 22 01:19:15 neat. like what? :) Feb 22 01:19:58 sleepster: that sounds like a fancy way to say "placebo" Feb 22 01:20:10 ctate: eventually, it will pull reputation down from the internet for APKs and allow only trusted APKs Feb 22 01:20:26 it also has some biometric unlocking of devices Feb 22 01:20:39 and destroys the phone image when it is stolen Feb 22 01:20:43 tiny stuff like this Feb 22 01:20:46 wabz: Pocket Coffee, preferably with the sugar crust, are my *second* favorite coffee candy :) Feb 22 01:21:43 the reason they don't ship it outside of europe is because they think any other climate ruins it :( Feb 22 01:21:55 though it's possible to find sometimes Feb 22 01:22:29 see also: Asbach Uralt filled chocolates with sugar crust :) Feb 22 01:22:30 sleepster: I take it back--that sounds like it could be interesting. Carry on :) Feb 22 01:39:34 anyone have any concept-development ideas for having a ListView that each item appears to float alone? as in.. seperated from the next item by a significant gap? Feb 22 01:41:11 Have multiple view types, where one is your content and one is just a big gap? Feb 22 01:41:41 Ah. I didn't think of that. Thanks for the input. Feb 22 01:42:41 There's a method in one of the adapter classes for returning how many types of view you have Feb 22 01:42:55 I did that once before but instead of a gap I was using it for category separation. That sounds like a fairly decent plan. Too bad there isn't some margin setting .. (that I know of) .. Feb 22 01:43:20 I definitely wasn't aware of THAT, either. I did it the hard way I think. Feb 22 01:44:14 In getView, you would check the view type and reuse/new instance as appropriate Feb 22 01:44:33 Which usually means the wrong way, but it worked and looked really good. Rounded top (first category), squared off items, and squared off secondary category separaters, etc.. Feb 22 01:44:43 Thanks so much for the information! I appreciate it. Feb 22 01:45:11 ChestCardChance: the type thing is in all adapter classes, just needs to be reimplemented Feb 22 01:47:58 clever: thanks! Feb 22 01:49:21 ChestCardChance: the type also controls which view you get back as convertView Feb 22 01:49:29 ChestCardChance: so you dont get the wrong layout back Feb 22 01:49:53 ChestCardChance: http://www.youtube.com/watch?v=wDBM6wVEO70 explains a lot of it Feb 22 01:50:47 great! thanks, headed over to watch that Feb 22 01:51:16 its an hour long, but i found many features i could use that didnt even think i needed Feb 22 01:52:45 sounds good Feb 22 02:26:01 Hello! Feb 22 02:34:32 who's online? Feb 22 02:40:37 no one Feb 22 02:40:39 ? Feb 22 02:48:45 I have questions about activities Feb 22 02:48:54 Should I start a new activity everytime I change the content view? Feb 22 02:50:27 kenrhads: no reason to do that unless your changing up window features Feb 22 02:51:30 I created an app to practice designing layouts. I created 2 layouts. the main activity has a button with a method to change the content view. The problem is that after the second layout is loaded, its buttons doesnt work. It crashes the app. Feb 22 02:52:30 in the second layout I have a TextView and a button that set it text to what is on the EditText Feb 22 02:52:50 kenrhads: code or errors would be easier :) Feb 22 02:53:28 I can send the code. By the way, all my code is in the main activity. I only have one file Feb 22 02:53:57 kenrhads: you dont normally (Im pretty sure you cant) setcontentview multiple times if thats what your talking about Feb 22 02:54:34 kenrhads: typically you would use a parent layout (FrameLayout, LinearLayout, etc....) and remove the children Feb 22 02:54:36 ohh. That is the problem I think. I set the content view 2 times. Feb 22 02:55:06 for the first layout I used a linearLayout and a relative for the second one Feb 22 02:55:42 kenrhads: have a look at http://developer.android.com/reference/android/widget/ViewFlipper.html Feb 22 02:56:49 kenrhads: you can either go that route or I simply use a LinearLayout as a parent and remove the child views. You can inflate partial views (partial xml files) directly into it Feb 22 02:59:42 Whats peoples thoughts on Xamarin? Feb 22 02:59:44 http://xamarin.com/studio Feb 22 02:59:45 ? **** ENDING LOGGING AT Fri Feb 22 02:59:58 2013