**** BEGIN LOGGING AT Sat Feb 09 02:59:58 2013 Feb 09 03:20:15 What would be the best way to record audio/video from an android app? Feb 09 03:22:29 yoonchee: use the camera ? Feb 09 03:23:25 StingRay_: without using a camera to record the screen (for highest quality) Feb 09 03:25:53 how do i add a dropdown list widget? Feb 09 03:26:27 yoonchee: oh now I get you Feb 09 03:26:34 well where it pops up a selection menu Feb 09 03:26:34 you want to record the app Feb 09 03:26:49 right, i would like to create a video trailer for the app Feb 09 03:26:50 erm, emulator or some hdmi out + capture hardware Feb 09 03:28:16 hm that would be an option Feb 09 03:31:14 is there any way to detect a device inactivity other than using Intent.ACTION_SCREEN_OFF? Feb 09 03:31:32 how else would it be inactive? Feb 09 03:32:03 inactive as in no user interaction Feb 09 03:32:11 well that's most of the time Feb 09 03:32:26 i'm looking for alternatives to ACTION_SCREEN_OFF Feb 09 03:32:36 so long as no button is being pressed and the screen isn't being touched that satisfies what you said Feb 09 03:32:41 rcosta: for when the screen is off ? Feb 09 03:32:46 there is no alternative Feb 09 03:33:00 suppose there maybe a dim action too Feb 09 03:33:26 but only if DIM is on, and I think it's a setting Feb 09 03:33:30 user setting Feb 09 03:36:53 rcosta: I think you should think about what it is your after and for what use Feb 09 03:37:02 then ask again Feb 09 03:38:30 StingRay_: I know what I'm after, the idea is to develop a screensaver Feb 09 03:38:38 which will play some videos Feb 09 03:39:24 hmmm Feb 09 03:39:27 a screensaver is usually activated when screen goes off with the ACTION_SCREEN_OFF Feb 09 03:39:57 that will eat battery like mad I would imagine Feb 09 03:40:30 Android 4.2 has "dreams" which are basically screen savers while the device is plugged in. third party apps can implement dreams Feb 09 03:41:15 however, some devices allow you to define that screen should never turn off Feb 09 03:41:39 for example, when USB connected Feb 09 03:42:10 i want to understand which alternatives may I have to detect inactivity Feb 09 03:42:50 rooting/using private APIs won't be a problem Feb 09 03:47:25 on a related matter. Feb 09 03:47:46 are third party lock screen widgets - 4.2 - available? Feb 09 03:48:04 i've got a simple app with just a spinner, and i'm getting android.view.InflateException: Binary XML file Error inflating class android.widget.Spinner Feb 09 03:49:01 the entries come from a menu resource Feb 09 03:50:34 hi Feb 09 03:50:36 SpeedEvil: yes Feb 09 03:51:02 any good ideas for app ? Feb 09 03:54:54 shmooz: yes Feb 09 03:56:08 StingRay_: what is it ? Feb 09 03:56:20 well I'm doing it Feb 09 03:56:28 will tell you when it's released Feb 09 03:56:30 :) Feb 09 03:56:39 I have a list of about 10 Feb 09 03:56:44 i'm on the 1st atm Feb 09 03:56:45 :) Feb 09 03:56:54 bah Feb 09 03:56:58 just tell us Feb 09 03:57:05 us ? Feb 09 03:57:11 how to send android file a windows explorer Feb 09 03:57:11 you mean you? Feb 09 03:57:11 I'd almost pay a small fee to get rid of the retarded 4.2 clock Feb 09 03:57:44 well I need some good ideas to write my next app Feb 09 03:58:02 shmooz: so basically your asking people so you can steal their ideas ? Feb 09 03:58:04 nice Feb 09 03:58:16 no, not steal Feb 09 03:58:31 "duplicate" ;) Feb 09 03:58:57 no, just talk about ideas of whats needed or what would be cool Feb 09 03:59:11 what's missing Feb 09 03:59:22 shmooz: 'a timed brightness' plus 'screen filter' to make the screen dim at predefined times, to more than the hardware normally allows Feb 09 03:59:22 well what do you see as missing ? Feb 09 04:00:10 shmooz: lock screen flashlight widget Feb 09 04:00:34 hmmm Feb 09 04:00:40 how to send android file a windows explorer xp Feb 09 04:01:06 tona: you question makes no sense Feb 09 04:01:38 or maybe the answer is USB Mass Storage or MTP depending on your OS version Feb 09 04:01:40 unless we are also drunk Feb 09 04:01:56 tona you have to connect the two machines with a usb cable and choose 'disk drive' as connection type instead of 'charge only' Feb 09 04:02:23 i want to send or transfer a file using socket and paste it directly c:\ folder windows explorer Feb 09 04:02:56 sounds like a hack Feb 09 04:03:30 whast the best way to disable/capture and control dispatch of all touch events in an activity ? Feb 09 04:04:12 SpeedEvil the lockscreen flashlight idea is good Feb 09 04:05:12 ideally I'd like it so you merely press the power button, and if the screen is downwards, turn the light on Feb 09 04:05:32 good idea Feb 09 04:05:40 it can be done Feb 09 04:06:43 and ideally if you must ad support it, a premium version with no internet permission or others Feb 09 04:07:25 that way you can get the quickest access during unexpected darkouts Feb 09 04:13:22 i flashed cwm through odin, and flashed su through cwm just now. do i have "busybox" ? Feb 09 04:13:35 i got a galaxy note 1 Feb 09 04:15:29 if you do do it, can you pm me the name? Feb 09 04:15:33 SpeedEvil: http://www.androidauthority.com/tiny-flashlight-flashlight-from-your-lock-screen-47038/ Feb 09 04:15:37 how can i send one file by ftp one server using android Feb 09 04:17:32 hmm Feb 09 04:17:48 no ad free version Feb 09 04:22:25 if we made a add free donation only version I wonder Feb 09 04:42:24 how to i send one file into cell phone to pc explorer Feb 09 05:09:05 How do you guys use the designer to design rows of ListViews? And following that question, is there any way to have the designer populate a ListView with dummy data so that I can see how it looks without running my app? Feb 09 05:10:50 mdkess: not sure what you mean with your 1st question, but as for the second, not aware of that feature but that wouldn't be too bad Feb 09 05:11:17 but since it's easy to view the item layout, guess we just have to use our minds to imagine duplicates Feb 09 05:12:25 First question I just mean get the dimensions reasonable. Feb 09 05:12:51 well really the dimensions are based on both content and screen size Feb 09 05:13:19 so I just play till it looks correct Feb 09 05:13:43 and make sure it's dynamic enought to cope with diff screen configs/orientation Feb 09 05:16:34 Alright, thanks. Feb 09 05:53:13 i have an app that plays audio. When a user is listening to some audio on it I need the app to stay on when the user turns the screen to his/her device off or starts using a different app...how can this be accomplished"? Feb 09 05:57:58 service Feb 09 06:10:58 hello all Feb 09 06:11:27 StingRay_ your my man... why did AbsoluteLayout get canned? and why is there no replacement...I know RelativeLayout is good, but what is the reasoning behind this? Feb 09 06:12:01 relative layout is better i guess Feb 09 06:12:03 To Do Mapr 1.7 is out... check it out: https://play.google.com/store/apps/details?id=com.controlledsenility.android.todomapr Feb 09 06:12:08 more control yet maybe lighter Feb 09 06:12:24 KillmeSoftly: absolutelayout is horrible for accomodate for various screen sizes and densities Feb 09 06:12:27 its too static Feb 09 06:13:03 QubeZ dude you need to take the room echo outta the girls voice on your promo vid Feb 09 06:13:07 tis annoying Feb 09 06:13:29 StingRay_: hmm will make a note Feb 09 06:13:37 takes a few minutes to get right in something like audition Feb 09 06:13:44 ok Feb 09 06:14:07 QubeZ: really nice vid and presentation but that audio Feb 09 06:14:15 needs to be sorted :) Feb 09 06:14:18 sort it Feb 09 06:14:19 now Feb 09 06:14:20 now Feb 09 06:14:21 ! Feb 09 06:14:34 still though...there is no reason why they should have completely canned it... Feb 09 06:14:46 I don't do that but I'll send it to my buddy Feb 09 06:15:17 KillmeSoftly: its not useful, you can do anything with relative layout, frame layout, linear layout etc.. Feb 09 06:15:39 yeah i know i know.. ok im done Feb 09 06:15:39 you can accomplish anything with the ones provided and so absolute is absolutely useless.... see what I did right there? Feb 09 06:15:56 lol Feb 09 06:16:05 nt rly Feb 09 06:16:15 hmm fail i guess Feb 09 06:16:16 heh Feb 09 06:16:27 QubeZ: are your todomapr screenshot up to date? Feb 09 06:16:33 g00s: yes Feb 09 06:16:40 i see a few things Feb 09 06:16:48 g00s: im open Feb 09 06:16:59 first, the 6-pack is passe :) Feb 09 06:17:13 put the user right into the most common task Feb 09 06:17:21 g00s: I know... we're going to redesign in 2.0 Feb 09 06:17:28 ok Feb 09 06:17:32 we're looking to do something more like Strava Run app Feb 09 06:17:40 list-based, menu drawer style type thing Feb 09 06:17:56 and make the main screen the most useful thing but for now the Dashboard allows quick add of tasks Feb 09 06:18:09 g00s: but noted... what else do you see? Feb 09 06:18:47 im my own harshest critic so you wont hurt my feelings. All I care about is progress and quality. Feb 09 06:18:52 screen 2: your row headers are more lightweight than the first row of text; a typography thing. for example, "Ritchfield super target" is heavier than "No Due Date" Feb 09 06:19:31 screen 3: add to list & scan aren't standard button heights Feb 09 06:19:36 was gonna say that there is a LARGE inconsistency of colour and style between all screens Feb 09 06:19:46 g00s: you think the row headers should have heavier weight? Feb 09 06:20:26 probably, where does the user's eye hop? probably row header first, then the correct row second Feb 09 06:20:40 this is graphics design, visual weight, typography Feb 09 06:20:41 g00s: *nod*, I been meaning to update those heights... lots of stuff to do still. I'll put that down, good suggestion. Feb 09 06:21:08 g00s: you're right Feb 09 06:21:21 the map: that transparent box has a caret thingy, is that meant to be a touch target ? Feb 09 06:21:28 I need to update some style code Feb 09 06:21:46 g00s: yes, to hide the details Feb 09 06:21:54 to hide distnace, fuel, time Feb 09 06:21:59 target needs tobe bigger, the standard 9mm or whatever Feb 09 06:22:01 its a bit small for touch target Feb 09 06:22:19 agreed Feb 09 06:23:21 otherwise looks nice :) Feb 09 06:23:40 g00s: thanks, I appreciate the feedback. So hard to get it on reviews. Feb 09 06:23:56 Reviews are usually "it works, thanks" or "it sucks, uninstalled!" Feb 09 06:23:58 honestly, i'm still using froyo so i don't really know what a good holo app should look/behave like, except for what the guidelines say Feb 09 06:24:06 although the latest review of the app was surprising... im happy about it Feb 09 06:24:12 congrats Feb 09 06:24:26 proximity tasks really made it so much more useful Feb 09 06:24:35 are you using ABS ? Feb 09 06:24:35 next build, Im adding a proximity map Feb 09 06:24:39 g00s: yes Feb 09 06:24:50 ok, well i don't see the standard left carat thingy Feb 09 06:25:06 is your navigation structure following guidelines ? Feb 09 06:25:22 g00s: I was deciding between using the Home button but not sure Feb 09 06:25:44 I'll probably add that, there are a ton of guidelines we're epically failing on here but it'll improve over time Feb 09 06:25:52 ok Feb 09 06:26:28 romainguy_: seems pretty cool http://www.gizmag.com/panasonic-micro-color-splitter/26165/ Feb 09 06:26:48 that's pretty cool Feb 09 06:26:51 which reminds me Feb 09 06:26:58 I need to sell some gear... Feb 09 06:28:32 i'm guessing you're not selling your Leicas :) Feb 09 06:29:09 I have a 5dmk2 that I want rid of Feb 09 06:29:27 and few L's too Feb 09 06:29:38 L series* Feb 09 06:30:21 g00s: no, the Olympus OM-D EM-5 and some Canon stuff Feb 09 06:31:00 romainguy_: what canon stuff ? Feb 09 06:31:11 oh actually dont matter neways, your too far away Feb 09 06:31:22 StingRay_: 45mm TS, 24-105mm, maybe 85mm 1.2 Feb 09 06:31:42 the 85 I wouldn't mind Feb 09 06:32:04 but like I say, too far Feb 09 06:32:25 I sent my 5D Mk II to Australia :) Feb 09 06:32:32 and the Queen doesn't skimp on raping you on imports here Feb 09 06:33:16 import charges* Feb 09 06:33:53 :) Feb 09 06:34:42 romainguy_: what was your reaction when you upgraded from the MKII to MKIII? Were you happy with the impovements? Feb 09 06:35:16 g00s: the autofocus is amazing Feb 09 06:35:40 ahh, dat yes Feb 09 06:35:53 g00s: better screen, better viewfinder Feb 09 06:35:53 wait that implies the 5dmk2 has autofocus Feb 09 06:36:05 but in a weird way I miss the Mk II Feb 09 06:36:29 i didn't get the impression that the sensor was all that different Feb 09 06:36:38 it is Feb 09 06:36:59 it's not a huge change but it renders a bit differently, especially noise Feb 09 06:37:21 but I hope to use the Leica M for landscape photography Feb 09 06:37:25 I just grabbed a 21mm Feb 09 06:40:13 if i could afford it some day, i hope to get a Mamiya 7 medium format Feb 09 06:40:45 g00s: why that over hass? Feb 09 06:40:57 played with a 645 once Feb 09 06:41:01 not a 7 Feb 09 06:41:19 oh, i have only seen the results of one, and somebody was using it next to me i haven't been able to handle it Feb 09 06:41:31 the lenses seem amazing Feb 09 06:41:41 well my next cam purchase will be video Feb 09 06:41:45 g00s: Leica S lenses are even better Feb 09 06:41:48 the blackmagic one Feb 09 06:42:06 romainguy_: the build quality of the mamiya didn't seem … so great tho. dunno how to explain it Feb 09 06:42:56 i prefer a 1:1 or 4:3 aspect ratio Feb 09 06:43:14 I had an H3D 39 for a while Feb 09 06:43:24 it was amazing but I didn't like shooting with it Feb 09 06:47:00 Can you create a web view from an html string, or do you need a file? Feb 09 06:49:06 romainguy_: i looked at a Nikon d3200 the other day (as my first dslr) ; seemed nice but … i couldn't get used to the UI; maybe i'm used to the canon UI. I like my C1/C2 - could not find that on the d3200 Feb 09 06:49:41 g00s: then get a Canon Feb 09 06:50:46 how do i go about updating cwm version? Feb 09 06:50:50 oops sorry Feb 09 06:50:52 wrong channel Feb 09 07:00:25 so i'm using the youtube api for android in my app......how the hell can i get a search function to search for youtube videos Feb 09 07:03:52 romainguy: if you start using a Leica M for landscape, what will your MKIII find any more use ? Feb 09 07:05:26 is there anyway to allow a user to move a fragment or view around freely? for example say i display a dialogfragment that says whatever, is there anyway the user can "grab" that fragment by touuching it and move it around the activity? Feb 09 07:06:19 Hello, all. I am having trouble passing a HashMap between activities. I made the object parcelable ,and then tried serializable, but the receiving activity is still getting null when getParcelableExtra is called. I see in the debugger that there is a HashMap with the values I want inside it under mMap and parcel able is null. Any ideas? Feb 09 07:07:11 KillmeSoftly: if you implement that functionality yourself using the methods to move views around then yes Feb 09 07:09:03 Tricknology: i dont see any Intent.put(…) suitable for a Map Feb 09 07:09:07 and it doesn't look like there's an API for search in your app Feb 09 07:09:13 I know, thats the weird thing Feb 09 07:09:14 you can, however, delegate to the YouTube app: https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubeIntents#canResolveSearchIntent(android.content.Context) Feb 09 07:09:15 but check this out Feb 09 07:09:21 1 sec Feb 09 07:09:44 you really should't be passing that much data through an intent Feb 09 07:10:01 if you try it, it will resolve to putExtra(String name, Serializable value) … probably Feb 09 07:13:17 http://i.imgur.com/tPEK25P.png Feb 09 07:13:27 hi everyone Feb 09 07:13:40 so, in this screenshot there are nice all-caps headers above each listview category: Feb 09 07:13:41 http://cdn-static.zdnet.com/i/story/40/10/025057/android-ics-2.jpg Feb 09 07:13:51 but i can't figure out how to put those in my app Feb 09 07:14:00 as you can see, parcelleddata is null, but the mMap has the hash map i want Feb 09 07:14:01 is there a predefined android.R.layout for them? Feb 09 07:14:27 mlaux, no you have to make that custome Feb 09 07:14:44 unless they implemented that new list view in newer sdks Feb 09 07:14:50 :( Feb 09 07:14:51 alrighty Feb 09 07:14:59 you have to do it through a custom unflater Feb 09 07:15:02 inflater* Feb 09 07:15:28 i'm already doing that for my listview entries so it shouldn't be too difficult Feb 09 07:15:29 thanks Feb 09 07:15:55 yeah, jut make a new view and have your inflater throw that one in every time you want a new category Feb 09 07:16:01 or.. you can use extended listview Feb 09 07:16:32 Tricknology you using putSeri* or just putExtra ? Feb 09 07:16:38 putExtra Feb 09 07:16:52 your custom object implements seri* Feb 09 07:16:53 ? Feb 09 07:17:26 yes, that was an experiment Feb 09 07:17:34 use putSer* then and as long as you cast properly I dont see why it wont work, I have done things like that Feb 09 07:18:23 "i.putSer*"? Feb 09 07:18:59 sorry get Feb 09 07:19:11 <-- 07am been up all night Feb 09 07:19:34 extras.getSerializable(""); Feb 09 07:19:42 cool, trying now, thanks Feb 09 07:19:48 casting to hashmap Feb 09 07:19:52 cast it properly and should work Feb 09 07:20:15 (HashMap)extras.getSerializable("stringtag"); Feb 09 07:22:42 you sir. are the shiznit Feb 09 07:22:50 thanks. I've been trying to figure that out for sooo long Feb 09 07:22:50 why not use Parcelable? Feb 09 07:22:54 i tried Feb 09 07:23:04 it was showing up in mMap instead of parceable Feb 09 07:23:09 hmm Feb 09 07:23:16 but this works just fine. Feb 09 07:23:21 k Feb 09 07:23:35 when would parcel able be superior Feb 09 07:23:36 ? Feb 09 07:23:46 compared to what Feb 09 07:23:53 serializable Feb 09 07:23:56 always Feb 09 07:24:11 well, never say always, but almost always ;) Feb 09 07:24:18 how so? Feb 09 07:24:28 can you give an example please? Feb 09 07:24:38 the reasons why … go back very far Feb 09 07:24:47 faster Feb 09 07:24:51 more efficient pack format Feb 09 07:24:59 java serialization is stupid, stupid, stupid Feb 09 07:25:00 avoid at all costs Feb 09 07:25:09 lol ok Feb 09 07:25:24 I use Parcelable to package up my custom objects to pass around activities Feb 09 07:25:25 but i tried to use the parcel able and i was still receiving null in B Feb 09 07:25:30 but, as I said before, you really shouldn't be passing immense chunks of data through intents Feb 09 07:25:43 how should it be done/ Feb 09 07:25:49 it's only about 5 doubles Feb 09 07:25:57 I wanna be a dev Feb 09 07:25:59 that's not too bad Feb 09 07:26:06 kj4: me too! Feb 09 07:26:15 you should put them somewhere accessible to both activities and then put a hint in the intent Feb 09 07:26:24 now now now Feb 09 07:26:25 aah I've done that Feb 09 07:26:28 like sqldatabase Feb 09 07:26:31 is that faster? Feb 09 07:26:41 when I tell you to read a book I don't speak the entire text to you, i just say hey go look at book XYZ Feb 09 07:27:01 sql might be overkill for the 5 doubles Feb 09 07:27:25 maybe just make a parcelable holder that holds the 5 doubles :P Feb 09 07:27:25 on so maybe sharedprefs Feb 09 07:27:37 like a hashmap Feb 09 07:27:38 no, too much i/o for no reason Feb 09 07:27:44 it gets really messy Feb 09 07:27:47 trust me Feb 09 07:27:56 thats why i want a hash map of objects Feb 09 07:28:11 Tricknology: why not just create a class with 5 doubles then create an object from that class, initialize the doubles and Parcelable that Feb 09 07:28:13 objects hold a handful of doubles, then i can just get/set them Feb 09 07:28:23 i am :) thanks to the serializable Feb 09 07:28:31 I do that in my GeocodedCoordinates class which has 2 Strings and 2 doubles Feb 09 07:28:42 Tricknology: you're missing the point... point being use Parceable :) Feb 09 07:28:47 we'll, the parcel able didn't work out too well for me :( Feb 09 07:28:54 sry, autocorrect.. Feb 09 07:29:02 Tricknology: so giving up and using something less efficient is the way to go? Feb 09 07:29:06 come on dude Feb 09 07:29:13 no way, QubeZ Feb 09 07:29:17 hehe Feb 09 07:29:25 kick his ass QubeZ Feb 09 07:29:26 if you can show me why mine isn't working then that would be sweet, i'll use that Feb 09 07:29:40 Tricknology: show us the code and we'll help Feb 09 07:30:36 http://pastebin.com/sk9Dk0F9 Feb 09 07:30:37 thanks Feb 09 07:30:45 that is the custom object Feb 09 07:31:24 k peeking Feb 09 07:31:28 if they're just doubles why are you not just setting them as doubles on the intent with different keys? Feb 09 07:31:48 como? Feb 09 07:32:00 i made the vars public out of laziness, instead of using getters and setters Feb 09 07:32:18 also, use double, not Double Feb 09 07:32:21 i don't always, just this case doesn't matter because the values are short lived Feb 09 07:32:31 i was thinking i might want to use null sometime Feb 09 07:32:55 Tricknology: ya what Jake said, you're overcomplicating this Feb 09 07:32:56 if null then calculate.. instead of using something like -9999999999 Feb 09 07:33:05 use different keys for your doubles and put in the intent Feb 09 07:33:31 what do I need to learn first? C? Feb 09 07:33:41 java :) Feb 09 07:34:06 Tricknology: .putExtra("cv", myVal); .putExtra("gamma", myGammaVal); Feb 09 07:34:06 Java Feb 09 07:34:07 ... Feb 09 07:34:37 ok.. but won't that make the code kind of nasty on the receiving end? Feb 09 07:34:42 i just want a nice package Feb 09 07:34:46 and put the keys as static final String constants accessible in both places Feb 09 07:34:58 I herd that's not a good first language Feb 09 07:35:08 kj4: only one way to find out Feb 09 07:35:16 in the end i want a hash map of initial and final values, i want this because there might be intermediate values i1, i2, i3.. Feb 09 07:35:20 Tricknology: you can also create a method that creates an instance of your object from a bundle Feb 09 07:35:36 romain, i like that Feb 09 07:35:48 Tricknology: so your Parcelable class looks fine except for the non-initializing in the Constructor... but now how do you instantiate the object, initialize it and pass in the data via Intent.... can you show that code? Feb 09 07:37:16 like so: http://pastebin.com/DbFaNSme Feb 09 07:38:44 Tricknology: isn't it suppose to be a putParcelableExtra? Feb 09 07:38:51 or something similar Feb 09 07:38:56 maybe that's it!!! Feb 09 07:38:59 i just putExtra Feb 09 07:39:08 *forehead slap* Feb 09 07:39:21 err.. facepalm Feb 09 07:39:50 ash only likes putParcelableArrayList() Feb 09 07:40:05 *Extra Feb 09 07:41:04 I think you're right so far... how are you getting it in the other activity? Feb 09 07:41:43 i wasn't until stringray suggested serializable Feb 09 07:41:50 Values values = (Values) getIntent.getExtras().getParcelable("initialvalues"); Feb 09 07:41:56 ooh Feb 09 07:42:10 or rather... Feb 09 07:42:15 Values values = (Values) getIntent.getExtras().getParcelable("initial_values"); Feb 09 07:42:38 initial_values = (Values)getIntent().getExtras().getParcelableExtra("initial_values"); Feb 09 07:43:09 oops Feb 09 07:43:14 initial_values = (Values)getIntent().getExtras().getParcelable("initial_values"); Feb 09 07:43:42 *nod* Feb 09 07:43:50 either that way or through bundle, same thing Feb 09 07:44:00 null? Feb 09 07:44:07 parcel able is null in the bundle Feb 09 07:44:15 like so:http://imgur.com/tPEK25P Feb 09 07:44:30 in this instance i was trying to pass a hash map Feb 09 07:47:15 you should change your Double to double as romainguy suggested in that Values class Feb 09 07:48:16 even if i wasn't to test flu null? Feb 09 07:48:19 for* Feb 09 07:48:29 its a calculator of sorts, it solves for the missing values Feb 09 07:48:50 and it works now :) magic Feb 09 07:49:12 works? Feb 09 07:49:38 ..with values as the object being parceled. I'm going to try it with a HashMap now Feb 09 07:49:47 activity B is receiving the data Feb 09 07:49:50 Hi! I've using SimonVT numberpicker backport with ABS, on 4.* it shows normal, but on 2.* it's black with glitches. My theme descendant from Theme.Sherlock.Light and values for picker taken from example. How to fix it? Feb 09 07:50:08 Bundle b = intent.getExtras(); Feb 09 07:50:08 initial_values = (Values)b.getParcelable("initial_values"); Feb 09 07:50:21 Tricknology: ya Feb 09 07:50:50 i was using getParcelableExtra i believe Feb 09 07:51:29 There is no getParcelableExtra method Feb 09 07:53:39 anyhow glad it's working Feb 09 07:53:42 im out Feb 09 07:55:12 gnight QubeZ Feb 09 07:55:41 night, thanks for the suggestions. I added to the laundry list Feb 09 07:55:46 ;) Feb 09 07:56:09 thank you thank you. Feb 09 07:56:56 anytime, helping users avoid Serializable -- one person at a time Feb 09 07:56:57 =) Feb 09 07:57:14 :D Feb 09 07:57:15 QubeZ: why's that? Feb 09 07:57:25 Gavilan2: google it Feb 09 07:57:39 you are passing all the data instead an address to the data Feb 09 08:42:38 Hi, I'm having some trouble filling a listview with wifi info... (beginner) Feb 09 08:42:39 http://bpaste.net/show/gh9LlxWfrOaamEIU4qKk/ Feb 09 08:42:53 could someone please take a look at my codee and tell me why it crashes? Feb 09 08:43:50 it compiles fine etc Feb 09 08:44:26 whats the stacktrace? Feb 09 08:46:00 @Trinity: I don't get one.. just "Unfortuantely, MainActivity has stopped" on my phone when I run it Feb 09 08:46:13 i mean @karlsve Feb 09 08:46:47 VitamnP: so you dont get any logcat output or similar things? Feb 09 08:49:38 um no Feb 09 08:49:42 don't seem to Feb 09 08:51:58 VitamnP: thats weird there should be some kind of output telling you what caused the crash Feb 09 08:53:22 ahh OK I've discovered ddms Feb 09 08:55:18 aha, no permission to access wifi state Feb 09 08:55:36 @karlsve thanks Feb 09 08:55:52 VitamnP: ^^ exactly what i thought Feb 09 08:56:22 @karlsve still getting my head around some of the tools..... apologies for silly question Feb 09 08:56:48 VitamnP: no problem always a pleasure to be of any help Feb 09 09:33:05 is something like TypedArray a = context.obtainStyledAttributes(attrs, new int { android.R.attr.text }, 0, 0); supposed to work? Feb 09 09:33:17 after this call the subsequent a.getString(android.R.attr.text) throws an ArrayIndexOutOfBounds Feb 09 09:34:21 It's a.getString(0) Feb 09 09:35:48 Usually you'd do obtainStyledAttributes(attrs, R.styleable.SomeStyleable, 0, 0); and a.getString(R.styleable.SomeStyleable_someAttribute), where R.styleable.SomeStyleable is an array, and R.styleable.SomeStyleable_someAttribute is an array index Feb 09 09:36:20 if take System.currentTimeInMillis() and then use it in the constructor of Date why does it show me a time different than the phone? Feb 09 09:36:32 I also noticed the time returned isn't UTC Feb 09 09:37:05 I also use Date to init a GregorianCalendar object Feb 09 09:39:32 SimonVT: right, let me put the entire question differently. Is it possible to obtain the styled attributes for both android defined attributes as well as custom ones? Feb 09 09:40:14 I'm trying to do so by making an array out of R.styleable.MyCustomView and adding the specific android:* attributes I need Feb 09 09:40:25 Just add them to your xml definition Feb 09 09:40:35 Feb 09 09:40:35 after the obtainStyledAttributes a.getString(R.styleable.MyCustomView_someStringAttribute); works just fine Feb 09 09:40:50 R.styleable.SomeStyleable_android_text Feb 09 09:41:23 aha right Feb 09 09:41:50 so in my declare-stylable I add a then? Feb 09 09:42:22 No, not format="string" Feb 09 09:42:25 Just what I wrote Feb 09 09:42:50 then the resource generator wouldn't add them Feb 09 09:43:03 there is no R.stylable.MyCustomView_android_text Feb 09 09:44:10 You just add to your declare-styleable Feb 09 09:44:14 No format Feb 09 09:45:35 ah Feb 09 09:54:24 Hey! I want to draw a drop shadow with "Paint" how would I go about this? Feb 09 10:00:15 thank you SimonVT. one more question: is there any reference as to how this should be done? Feb 09 10:00:33 javadocs for obtainStyledATtributes are severely lacking here imho Feb 09 10:00:41 Eh, no idea :p Feb 09 10:01:43 Just spend some time playing around with it Feb 09 10:01:49 Look at how the framework classes handles it Feb 09 10:02:00 It's pretty simple really Feb 09 10:06:59 goodmorning all Feb 09 10:08:06 i've made an app that use acs 122u rfid reader connected to a usb host. each time that i run the app it ask me the permission to use usb host . There is some way to bypass this? Feb 09 10:14:28 OK then maybe somebody knows how to draw a border in a canvas. Like a not filled out shape Feb 09 10:17:52 I love you guys Feb 09 10:17:53 what the heck are those guys on facebook doing? Those EXTRA_TEXT intent extra-bug is there now for months. Feb 09 10:17:55 all of you Feb 09 10:18:27 now write my code for me, minions Feb 09 10:18:32 krotos> the popup should allow you to use your app for that device always ? Feb 09 10:19:10 krotos> there's no way to do it always programmatically, unless you have root Feb 09 10:23:48 anyone know how to handle sig figs? Feb 09 10:23:56 and is it tedious... Feb 09 10:31:14 Alright then. How do I do animation on a value in Canvas? Feb 09 10:32:06 Invalidate your view, draw the new value Feb 09 10:32:53 hello. Could you suggest me some good learning material/examples on creating a service that broadcasts messages via sendbroadcast() ? Feb 09 10:35:11 SimonVT: how to wait in between? Feb 09 10:35:29 Chainfire: when my app star, ask me to use usb host . If i check the box it not ask to me untill i reboot Feb 09 10:35:39 Chainfire: i'm working on a MK-802 II Feb 09 10:36:48 i've alredy tried to put my apk into system/app (in order to become a system app ) but nothing changed Feb 09 10:36:50 SimonVT: What type of animation would I be using? It seems like most are for views. Feb 09 10:37:20 marrrk: You could just use a Handler, post a Runnable every x ms that invalidates your view Feb 09 10:37:39 post? Feb 09 10:39:57 I don't understand Feb 09 10:42:40 Can you say it different words please? Feb 09 10:43:49 Chainfire: if i obtain root access, what's the procedure for bypass this? Feb 09 10:43:51 postOnAnimation(new Runnable() { @Override public void run() { invalidate(); }});, postDelayed on older platforms Feb 09 10:44:39 do you think the overhead of that runnable is acceptable for a simple toggle switch? Feb 09 10:44:48 what is the best way to communicate from a service to a background thread, asynchronously, without implementing your own message passing interface? Feb 09 10:45:28 in my sdk, where can I find the button-xml's? Feb 09 10:45:29 What do you mean? Feb 09 10:45:34 and the .9.pngs for the buttons Feb 09 10:46:59 I mean what I'm trying to do is copy the iOS toggle button. It has a nice eased animation of the circle (handle) when you click and when you stop dragging to whichever side is nearest. I thought that maybe for such a small interface element doing that Runnable might be overkill, but I don't have any arguments rather than intuition. Feb 09 10:47:41 SimonVT, do you know what I mean? Feb 09 10:47:47 I think the solution is pretty simple, though :S Feb 09 10:48:05 in sdk-root/sources there aren't any *re*sources :s Feb 09 10:48:08 I don't see what overhead you're talking about Feb 09 10:48:08 (which I would need) Feb 09 10:48:22 I thought a runnable was a new thread. Feb 09 10:48:30 Thread is a new Thread Feb 09 10:48:38 Runnable is just an interface with a run() method Feb 09 10:48:57 Actually also I just saw there is a function that is called: postInvalidateOnAnimation(); do you think that does the same? Feb 09 10:49:40 You need to invalidate more than once Feb 09 10:49:49 And you also need to calculate the handles new position Feb 09 10:50:03 Yes okay so that all goes into that inner Runnable class? Feb 09 10:50:31 I still have no idea on how I would initiate the animation though. Feb 09 10:51:35 You should probably look at some class that already does some animation Feb 09 10:53:25 Yes I would like to but there are so many kinds of animations, that's why I don't know where to start. Feb 09 10:54:37 ValueAnimator looks good Feb 09 10:54:37 SimonVT: another thing, the layout for my custom view looks like a